addCourse.vue 371 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526
  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. <div style="margin-left:25px;">
  1776. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="display: flex;align-items: center;">全选</el-checkbox>
  1777. </div>
  1778. <el-checkbox-group v-model="checkboxList3" @change="handleCheckedTeacherJuriChange" class="people_name" v-if="teacherJuri.length">
  1779. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1780. <div class="t_j_box">
  1781. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1782. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1783. </el-tooltip>
  1784. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1785. <el-tooltip placement="top" :content="item.username">
  1786. <span>{{ item.username }}</span>
  1787. </el-tooltip>
  1788. <el-tooltip placement="top" :content="item.school">
  1789. <span>{{ item.school }}</span>
  1790. </el-tooltip>
  1791. </div>
  1792. </el-checkbox>
  1793. </el-checkbox-group>
  1794. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1795. </div>
  1796. <div style="margin-top: 10px;">
  1797. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1798. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1799. @current-change="handleCurrentChange"></el-pagination>
  1800. </div>
  1801. <span slot="footer" class="dialog-footer">
  1802. <el-button @click="page = 0;dialogVisibleMember = false;">取 消</el-button>
  1803. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1804. </span>
  1805. </el-dialog>
  1806. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1807. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  1808. <div style="height:100%">
  1809. <div class="a_add_title" style="
  1810. display: flex;
  1811. flex-direction: row;
  1812. align-items: center;
  1813. justify-content: center;
  1814. ">
  1815. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  1816. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1817. </div>
  1818. <div class="a_addBox" style="height:calc(100% - 50px)">
  1819. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  1820. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1821. <div class="a_add_checkType">
  1822. <span :class="{
  1823. active:
  1824. askJson.askJson[index1].type == '1' ||
  1825. !askJson.askJson[index1].type,
  1826. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  1827. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  1828. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  1829. </div>
  1830. <div class="a_add_head">
  1831. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  1832. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1833. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  1834. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  1835. </div>
  1836. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  1837. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  1838. </div>
  1839. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  1840. </div>
  1841. <div class="a_add_head_div">
  1842. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1843. </el-button>
  1844. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  1845. </div>
  1846. </div>
  1847. <div class="a_add_body">
  1848. <div class="a_add_input" style="flex-direction: column;">
  1849. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1850. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  1851. <div style="margin-right: 10px">
  1852. 选项{{ checkIndex + 1 }}
  1853. </div>
  1854. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  1855. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  1856. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  1857. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  1858. </div>
  1859. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  1860. </div>
  1861. <div class="a_add_body_div">
  1862. <el-button type="primary" size="small"
  1863. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  1864. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  1865. v-if="askJson.askJson[index1].askItem != 1">删除
  1866. </el-button>
  1867. </div>
  1868. </div>
  1869. </div>
  1870. <!-- <div class="a_add_body_div">
  1871. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1872. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1873. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1874. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1875. </el-button>
  1876. </div> -->
  1877. </div>
  1878. </div>
  1879. </div>
  1880. </div>
  1881. <span slot="footer" class="dialog-footer">
  1882. <el-button @click="closePan(4)">取 消</el-button>
  1883. <el-button type="primary" @click="addAsk">确 定</el-button>
  1884. </span>
  1885. </el-dialog>
  1886. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1887. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  1888. <div style="height:100%">
  1889. <!-- <div class="a_add_title" style="
  1890. display: flex;
  1891. flex-direction: row;
  1892. align-items: center;
  1893. justify-content: center;
  1894. ">
  1895. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1896. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1897. </div> -->
  1898. <div class="a_addBox" style="height:100%">
  1899. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  1900. <!-- 请输入题目内容 -->
  1901. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  1902. v-if="isPasteChoice">智能粘贴</button>
  1903. </div>
  1904. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1905. <div class="a_add_checkType">
  1906. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1907. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1908. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1909. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1910. </div>
  1911. <div class="a_add_head">
  1912. <div class="timuUpImg">
  1913. <div style="display: flex;align-items: center;">
  1914. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1915. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  1916. placeholder="请输入题目">
  1917. </el-input> -->
  1918. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  1919. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  1920. @change="() => { $forceUpdate() }"></textarea>
  1921. </div>
  1922. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  1923. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  1924. </div>
  1925. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  1926. </div>
  1927. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  1928. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1929. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  1930. </div>
  1931. </div>
  1932. <div class="a_add_head_div">
  1933. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1934. </el-button>
  1935. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  1936. </div>
  1937. </div>
  1938. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1939. testJson.testJson[index1].timuList.length
  1940. ">
  1941. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1942. @click.stop="previewImg(timg.src)">
  1943. <img :src="timg.src" alt="" />
  1944. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  1945. <img src="../../../assets/icon/delete.png" alt="" />
  1946. </div>
  1947. </div>
  1948. </div>
  1949. <div class="a_add_body">
  1950. <div class="a_add_input a_add_input_choice">
  1951. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  1952. @change="() => { $forceUpdate() }">
  1953. <div class="radioBox">
  1954. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1955. .testItem" :key="checkIndex" :label="checkIndex">
  1956. <div style="margin-right: 10px">
  1957. 选项{{ checkIndex + 1 }}
  1958. </div>
  1959. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  1960. testJson.testJson[index1].checkList[checkIndex]
  1961. .imgType &&
  1962. testJson.testJson[index1].checkList[checkIndex]
  1963. .imgType == 1
  1964. ">
  1965. <div class="inImg" @click.stop="
  1966. previewImg(
  1967. testJson.testJson[index1].checkList[checkIndex]
  1968. .src
  1969. )
  1970. ">
  1971. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  1972. .src
  1973. " lazy />
  1974. <!-- <img :src="
  1975. testJson.testJson[index1].checkList[checkIndex]
  1976. .src
  1977. " alt="" /> -->
  1978. </div>
  1979. </div>
  1980. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  1981. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  1982. @change="() => { $forceUpdate() }"></textarea>
  1983. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  1984. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  1985. </div>
  1986. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  1987. </div>
  1988. <div class="xzUpImg" @click.stop="addImg($event)">
  1989. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1990. <input type="file" accept="image/*" style="display: none"
  1991. @change="beforeUploadTi($event, index1, checkIndex)" />
  1992. </div>
  1993. <div class="a_add_body_div">
  1994. <el-button type="primary" size="small"
  1995. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  1996. <el-button type="primary" size="small"
  1997. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  1998. v-if="testJson.testJson[index1].testItem != 1">删除
  1999. </el-button>
  2000. </div>
  2001. </el-radio>
  2002. </div>
  2003. </el-radio-group>
  2004. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2005. @change="() => { $forceUpdate() }">
  2006. <div class="radioBox">
  2007. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2008. .testItem" :key="checkIndex1" :label="checkIndex1">
  2009. <div style="margin-right: 10px">
  2010. 选项{{ checkIndex1 + 1 }}
  2011. </div>
  2012. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2013. testJson.testJson[index1].checkList[checkIndex1]
  2014. .imgType &&
  2015. testJson.testJson[index1].checkList[checkIndex1]
  2016. .imgType == 1
  2017. ">
  2018. <div class="inImg" @click.stop="
  2019. previewImg(
  2020. testJson.testJson[index1].checkList[checkIndex1]
  2021. .src
  2022. )
  2023. ">
  2024. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2025. .src
  2026. " lazy />
  2027. <!-- <img :src="
  2028. testJson.testJson[index1].checkList[checkIndex1]
  2029. .src
  2030. " alt="" /> -->
  2031. </div>
  2032. </div>
  2033. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2034. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2035. @change="() => { $forceUpdate() }"></textarea>
  2036. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2037. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2038. </div>
  2039. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2040. </div>
  2041. <div class="xzUpImg" @click.stop="addImg($event)">
  2042. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2043. <input type="file" accept="image/*" style="display: none"
  2044. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2045. </div>
  2046. <div class="a_add_body_div">
  2047. <el-button type="primary" size="small"
  2048. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2049. <el-button type="primary" size="small"
  2050. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2051. v-if="testJson.testJson[index1].testItem != 1">删除
  2052. </el-button>
  2053. </div>
  2054. </el-checkbox>
  2055. </div>
  2056. </el-checkbox-group>
  2057. </div>
  2058. <!-- <div class="a_add_body_div">
  2059. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2060. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2061. v-if="testJson.testJson[index1].testItem != 1">删除
  2062. </el-button>
  2063. </div> -->
  2064. </div>
  2065. </div>
  2066. </div>
  2067. </div>
  2068. <span slot="footer" class="dialog-footer">
  2069. <el-button @click="closePan(45)">取 消</el-button>
  2070. <el-button type="primary" @click="addTest">确 定</el-button>
  2071. </span>
  2072. </el-dialog>
  2073. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2074. :before-close="handleClose" class="dialog_diy addToolsDia">
  2075. <div class="toolChoose" style="padding: 0 0 0 30px">
  2076. <div class="tools">
  2077. <div class="leftTools" style="
  2078. width: 95%;
  2079. padding: 0 0 15px 0;
  2080. margin: 15px 0;
  2081. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2082. <div style="
  2083. display: flex;
  2084. flex-direction: row;
  2085. align-items: baseline;
  2086. flex-wrap: nowrap;
  2087. justify-content: flex-start;
  2088. position: relative;
  2089. ">
  2090. <div class="chooseWho">
  2091. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2092. 互动类
  2093. </div>
  2094. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2095. 思维类
  2096. </div>
  2097. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2098. 评价类
  2099. </div>
  2100. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2101. 其他
  2102. </div>
  2103. </div>
  2104. </div>
  2105. <div style="min-height: 163px">
  2106. <div class="toolSort" v-if="chapToolsType == 0">
  2107. <div class="tool">
  2108. <div class="whiteBIcon" @click="chapAddTools(8)">
  2109. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2110. <div style="margin: 5px 0">素材库</div>
  2111. </div>
  2112. <div class="check" @click="chapAddTools(8)">
  2113. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2114. <div class="checkDiv" v-else>
  2115. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div class="toolSort" v-if="chapToolsType == 1">
  2121. <div class="tool">
  2122. <div class="whiteBIcon" @click="chapAddTools(7)">
  2123. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2124. <div style="margin: 5px 0">思维网格</div>
  2125. </div>
  2126. <div class="check" @click="chapAddTools(7)">
  2127. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2128. <div class="checkDiv" v-else>
  2129. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2130. </div>
  2131. </div>
  2132. </div>
  2133. <div class="tool">
  2134. <div class="whiteBIcon" @click="chapAddTools(1)">
  2135. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2136. <div style="margin: 5px 0">电子白板</div>
  2137. </div>
  2138. <div class="check" @click="chapAddTools(1)">
  2139. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2140. <div class="checkDiv" v-else>
  2141. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2142. </div>
  2143. </div>
  2144. </div>
  2145. <div class="tool">
  2146. <div class="whiteBIcon" @click="chapAddTools(2)">
  2147. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2148. <div style="margin: 5px 0">便签</div>
  2149. </div>
  2150. <div class="check" @click="chapAddTools(2)">
  2151. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2152. <div class="checkDiv" v-else>
  2153. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. <div class="tool">
  2158. <div class="whiteBIcon" @click="chapAddTools(6)">
  2159. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2160. <div style="margin: 5px 0">协同文档</div>
  2161. </div>
  2162. <div class="check" @click="chapAddTools(6)">
  2163. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2164. <div class="checkDiv" v-else>
  2165. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div class="tool">
  2170. <div class="whiteBIcon" @click="chapAddTools(3)">
  2171. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2172. <div style="margin: 5px 0">思维导图</div>
  2173. </div>
  2174. <div class="check" @click="chapAddTools(3)">
  2175. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2176. <div class="checkDiv" v-else>
  2177. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2178. </div>
  2179. </div>
  2180. </div>
  2181. <div class="tool">
  2182. <div class="whiteBIcon" @click="chapAddTools(31)">
  2183. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2184. <div style="margin: 5px 0">数学画板</div>
  2185. </div>
  2186. <div class="check" @click="chapAddTools(31)">
  2187. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2188. <div class="checkDiv" v-else>
  2189. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. <div class="toolSort" v-if="chapToolsType == 2">
  2195. <div class="tool">
  2196. <div class="whiteBIcon" @click="chapAddTools(5)">
  2197. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2198. <div style="margin: 5px 0">量规评分</div>
  2199. </div>
  2200. <div class="check" @click="chapAddTools(5)">
  2201. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2202. <div class="checkDiv" v-else>
  2203. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2204. </div>
  2205. </div>
  2206. </div>
  2207. <div class="tool">
  2208. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2209. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2210. <div style="margin: 5px 0">问卷调查</div>
  2211. </div>
  2212. <div class="check" @click="chapAddTools(4)">
  2213. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2214. <div class="checkDiv" v-else>
  2215. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2216. </div>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. </div>
  2221. <div>
  2222. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2223. v-model="itemTools.toolDetail" />
  2224. </div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. <span slot="footer" class="dialog-footer">
  2229. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2230. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2231. </span>
  2232. </el-dialog>
  2233. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2234. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  2235. <div>
  2236. <div class="a_add_title" style="
  2237. display: flex;
  2238. flex-direction: column;
  2239. align-items: flex-start;
  2240. justify-content: center;
  2241. ">
  2242. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2243. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  2244. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  2245. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  2246. </div>
  2247. </div>
  2248. <span slot="footer" class="dialog-footer">
  2249. <el-button @click="closePan(15)">取 消</el-button>
  2250. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2251. </span>
  2252. </el-dialog>
  2253. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2254. :before-close="handleClose" class="dialog_diy">
  2255. <div>
  2256. <div class="a_add_title" style="
  2257. display: flex;
  2258. flex-direction: column;
  2259. align-items: flex-start;
  2260. justify-content: center;
  2261. ">
  2262. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2263. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2264. </div>
  2265. </div>
  2266. <span slot="footer" class="dialog-footer">
  2267. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2268. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2269. </span>
  2270. </el-dialog>
  2271. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  2272. :before-close="handleClose" class="dialog_diy">
  2273. <div>
  2274. <div class="fileCss" style="padding-top: 20px">
  2275. <div>
  2276. <button class="info_btn" @click="addImg($event)">
  2277. 选择本地文件
  2278. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2279. </button>
  2280. <div class="spanName">选择本地文件</div>
  2281. </div>
  2282. <!-- <div>
  2283. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  2284. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2285. <img :src="cover[0].url" alt="" />
  2286. <div class="deletePic" @click="deleteSysPic">
  2287. <img src="../../../assets/icon/delete.png" alt="" />
  2288. </div>
  2289. </div>
  2290. <div class="spanName">选择系统文件</div>
  2291. </div> -->
  2292. <div>
  2293. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  2294. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  2295. <img :src="cover[0].url" alt="" />
  2296. <div class="deletePic" @click="deleteSysPic">
  2297. <img src="../../../assets/icon/delete.png" alt="" />
  2298. </div>
  2299. </div>
  2300. <div class="spanName">选择网络文件</div>
  2301. </div>
  2302. </div>
  2303. <!-- <div class="fileCss">
  2304. <div>选择本地文件</div>
  2305. <div>选择系统文件</div>
  2306. </div> -->
  2307. </div>
  2308. <span slot="footer" class="dialog-footer">
  2309. <el-button @click="choosePicVisible = false">取 消</el-button>
  2310. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2311. </span>
  2312. </el-dialog>
  2313. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2314. :before-close="handleClose" class="dialog_diy">
  2315. <div class="cru_selectBox" style="margin: 0">
  2316. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2317. 绘画
  2318. </div>
  2319. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2320. 科技
  2321. </div>
  2322. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2323. 人文
  2324. </div>
  2325. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2326. 艺术
  2327. </div>
  2328. </div>
  2329. <div class="sysPicBox">
  2330. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2331. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2332. </div>
  2333. </div>
  2334. </el-dialog>
  2335. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  2336. :before-close="handleClose" class="dialog_diy">
  2337. <div>
  2338. <div class="people_top_right" style="display: flex;align-items: center;">
  2339. <div style="position: relative; width: 100%;">
  2340. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  2341. @keyup.enter.native="resetImage()"></el-input>
  2342. <div class="search_img" @click="resetImage" style="right: 10px;">
  2343. <img src="../../../assets/icon/search.png" alt />
  2344. </div>
  2345. </div>
  2346. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  2347. </div>
  2348. <div class="sysPicBox" v-loading="imageloading">
  2349. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  2350. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  2351. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  2352. </div>
  2353. </div>
  2354. </div>
  2355. </el-dialog>
  2356. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2357. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  2358. <div v-if="selectJson" style="height:100%">
  2359. <div class="select_box1" v-if="selectSteps == 1">
  2360. <div class="select_box1_img">
  2361. <div class="select_box1_title">
  2362. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  2363. </div>
  2364. <div class="select_box1_add_img">
  2365. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2366. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2367. <img src="../../../assets/icon/addPoster.png" alt="" />
  2368. </div>
  2369. <div class="isSysPic" v-else>
  2370. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2371. <div class="deletePic" @click="deleteSelectPic">
  2372. <img src="../../../assets/icon/delete.png" alt="" />
  2373. </div>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. <div class="select_box1_select">
  2378. <div class="select_box1_title">
  2379. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  2380. </div>
  2381. <div class="select_box1_select_box">
  2382. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2383. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  2384. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2385. <div class="select_box1_select_box_add">
  2386. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2387. 添加</el-button>
  2388. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2389. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. </div>
  2394. <div v-if="selectSteps == 2" style="height:100%">
  2395. <div class="select_box2">
  2396. <div class="select_box2_title">设置每道题目的正确选项</div>
  2397. <div class="select_box2_box">
  2398. <div class="select_box2_img">
  2399. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2400. </div>
  2401. <div class="select_box2_answer">
  2402. <div class="select_answer_title">根据题目选择对应答案</div>
  2403. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2404. <span>{{ checkIndex + 1 }}、</span>
  2405. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2406. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2407. </el-option>
  2408. </el-select>
  2409. </div>
  2410. </div>
  2411. </div>
  2412. </div>
  2413. </div>
  2414. </div>
  2415. <span slot="footer" class="dialog-footer">
  2416. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2417. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2418. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2419. </span>
  2420. </el-dialog>
  2421. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2422. :before-close="handleClose" class="dialog_diy">
  2423. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2424. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2425. <div class="pjCss" style="width: 100%">
  2426. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2427. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2428. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2429. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2430. <div class="remove" @click="deletRateList(eIndex)"></div>
  2431. <div style="width: 100%; display: flex">
  2432. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2433. <el-rate v-model="eItem.score" disabled></el-rate>
  2434. </div>
  2435. <div class="elist_inptu_text" style="align-items: flex-start">
  2436. <span style="min-width: 100px; text-align: right">描述:</span>
  2437. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div class="addToolFun" @click="addRateList()">
  2442. <div class="addToolImg">
  2443. <img src="../../../assets/icon/add.png" alt />
  2444. </div>
  2445. <div>添加</div>
  2446. </div>
  2447. </div>
  2448. </div>
  2449. <span slot="footer" class="dialog-footer">
  2450. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2451. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2452. </span>
  2453. </el-dialog>
  2454. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2455. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  2456. <div style="height: 100%;">
  2457. <div class="sentenBox" style="height: 100%;">
  2458. <div class="addSen" @click="addSt">添加题目</div>
  2459. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  2460. <div class="sentenTopBox">
  2461. <div class="sentenTop" :index="stIndex + 1">
  2462. <div>题目设置</div>
  2463. <div>
  2464. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  2465. </div>
  2466. <div @click="addSen(stIndex)">添加</div>
  2467. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2468. </div>
  2469. </div>
  2470. <div class="cardList">
  2471. <div v-if="st.addSentence.length > 0" class="cardBox">
  2472. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2473. @click="setRightAnswer(s, stIndex, sIndex)">
  2474. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2475. <div>{{ s }}</div>
  2476. </el-tooltip>
  2477. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2478. <img src="../../../assets/icon/delete.png" alt="" />
  2479. </div>
  2480. </div>
  2481. </div>
  2482. <div class="card">
  2483. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2484. </div>
  2485. </div>
  2486. <div class="rightCardBox">
  2487. <div>正确顺序</div>
  2488. <div class="rightCardList">
  2489. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2490. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2491. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2492. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2493. <div>{{ r }}</div>
  2494. </el-tooltip>
  2495. </div>
  2496. <div>{{ rIndex + 1 }}</div>
  2497. </div>
  2498. </div>
  2499. <div class="card" v-if="st.rightAnswer.length == 0">
  2500. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2501. </div>
  2502. <div class="card" v-else>
  2503. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. <span slot="footer" class="dialog-footer">
  2511. <el-button @click="closePan(47)">取 消</el-button>
  2512. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2513. </span>
  2514. </el-dialog>
  2515. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2516. :before-close="handleClose" class="dialog_diy">
  2517. <el-form>
  2518. <!-- <el-form-item label="文本标题">
  2519. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2520. </el-form-item> -->
  2521. <div>表格内容</div>
  2522. <Table v-model="tableJson.text" @change="change"></Table>
  2523. </el-form>
  2524. <span slot="footer" class="dialog-footer">
  2525. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2526. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2527. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2528. </span>
  2529. </el-dialog>
  2530. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2531. :before-close="handleClose" class="dialog_diy">
  2532. <el-form>
  2533. <!-- <el-form-item label="文本标题">
  2534. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2535. </el-form-item> -->
  2536. <div>文档内容</div>
  2537. <editor-bar v-model="wordJson.text"></editor-bar>
  2538. </el-form>
  2539. <span slot="footer" class="dialog-footer">
  2540. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2541. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2542. </span>
  2543. </el-dialog>
  2544. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2545. :before-close="handleClose" class="dialog_diy">
  2546. <div style="
  2547. width: 100%;
  2548. display: flex;
  2549. flex-direction: row;
  2550. flex-wrap: nowrap;
  2551. align-items: center;
  2552. justify-content: center;
  2553. ">
  2554. <div>班级:</div>
  2555. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2556. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2557. </el-option>
  2558. </el-select>
  2559. </div>
  2560. <span slot="footer" class="dialog-footer">
  2561. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2562. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2563. </span>
  2564. </el-dialog>
  2565. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2566. :before-close="handleClose" class="dialog_diy">
  2567. <div style="
  2568. width: 100%;
  2569. display: flex;
  2570. flex-direction: row;
  2571. flex-wrap: nowrap;
  2572. align-items: center;
  2573. justify-content: center;
  2574. ">
  2575. <div>随机码:</div>
  2576. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2577. </div>
  2578. <span slot="footer" class="dialog-footer">
  2579. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2580. <el-button type="primary" @click="addInvite">确定</el-button>
  2581. </span>
  2582. </el-dialog>
  2583. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  2584. :before-close="handleClose" class="dialog_diy">
  2585. <div>
  2586. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  2587. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2588. </div>
  2589. <span slot="footer" class="dialog-footer">
  2590. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2591. <el-button type="primary" @click="addPreTime">确定</el-button>
  2592. </span>
  2593. </el-dialog>
  2594. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2595. class="dialog_diy">
  2596. <div>
  2597. <div style="
  2598. width: 100%;
  2599. display: flex;
  2600. flex-direction: row;
  2601. flex-wrap: nowrap;
  2602. align-content: center;
  2603. align-items: center;
  2604. justify-content: space-between;
  2605. ">
  2606. <div style="
  2607. display: flex;
  2608. flex-flow: row nowrap;
  2609. align-items: flex-start;
  2610. width: 100%;
  2611. flex-direction: column;
  2612. flex-wrap: nowrap;
  2613. position: relative;
  2614. ">
  2615. <div class="e_box">
  2616. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2617. <div class="e_card_picture">
  2618. <img src="../../../assets/e_picture.png" />
  2619. </div>
  2620. <div class="e_card_name">
  2621. <span>{{ item.title }}</span>
  2622. </div>
  2623. <div class="e_card_btn">
  2624. <span @click="checkEva(item.id, 2)">导入</span>
  2625. </div>
  2626. </div>
  2627. <div class="addEva" @click="openT">
  2628. <img src="../../../assets/icon/addEva.png" alt="" />
  2629. </div>
  2630. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2631. 暂无数据
  2632. </div>
  2633. </div>
  2634. </div>
  2635. </div>
  2636. </div>
  2637. <span slot="footer" class="dialog-footer">
  2638. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2639. </span>
  2640. </el-dialog>
  2641. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2642. :before-close="handleClose" class="dialog_diy">
  2643. <div class="groupBox">
  2644. <div v-if="groupJson.group" class="groupContent">
  2645. <div class="groupTitle">请设置小组数量及名称</div>
  2646. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2647. <span class="groupn">第{{ index + 1 }}组名称:</span>
  2648. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2649. <div class="groupBtn">
  2650. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  2651. 添加</el-button>
  2652. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2653. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div class="groupContent">
  2658. <div class="groupTitle">请设置每组人数</div>
  2659. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2660. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2661. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  2662. @change="numberPan"></el-input>
  2663. </div>
  2664. </div>
  2665. <span slot="footer" class="dialog-footer">
  2666. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2667. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2668. </span>
  2669. </el-dialog>
  2670. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  2671. :before-close="handleClose" class="dialog_diy">
  2672. <div style="
  2673. width: 100%;
  2674. display: flex;
  2675. flex-direction: row;
  2676. flex-wrap: nowrap;
  2677. align-items: center;
  2678. justify-content: center;
  2679. ">
  2680. <div style="min-width: fit-content;">文件名称:</div>
  2681. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  2682. </div>
  2683. <span slot="footer" class="dialog-footer">
  2684. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  2685. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  2686. </span>
  2687. </el-dialog>
  2688. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  2689. </div>
  2690. </template>
  2691. <script>
  2692. import "../../../common/aws-sdk-2.235.1.min.js";
  2693. import { tools as toolsData } from "../../../common/tools.js";
  2694. import $ from "jquery";
  2695. import EditorBar from "../../../components/tools/wangEnduit";
  2696. import Table from "../../../components/tools/table";
  2697. import Mind from "../../tools/jsmind2";
  2698. import Time from "../../tools/time.vue";
  2699. import Sunburst from "../../tools/sunburst";
  2700. import SeeBoard from "../../tools/seeBoard";
  2701. import weilaiData from "../components/weilai.js";
  2702. import sourceDialog from "../teacherSource/dialog.vue";
  2703. import interVideo from "../interVideo/index.vue";
  2704. import groupBox from "./group/group.vue"
  2705. export default {
  2706. components: {
  2707. EditorBar,
  2708. Mind,
  2709. Time,
  2710. Sunburst,
  2711. SeeBoard,
  2712. Table,
  2713. sourceDialog,
  2714. interVideo,
  2715. groupBox
  2716. },
  2717. data() {
  2718. return {
  2719. checkAll: false,
  2720. chooseType: 1,
  2721. checkedCities: [],
  2722. isIndeterminate: true,
  2723. isSysPic: false,
  2724. isSysPic2: false,
  2725. steps: 1,
  2726. nbOrder: 0,
  2727. courseId: "",
  2728. chapToolsType: 0,
  2729. chapTools: [
  2730. {
  2731. tools: [],
  2732. toolDetail: "",
  2733. },
  2734. ],
  2735. line: "",
  2736. lineTitle: "",
  2737. sysPic: [],
  2738. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2739. sentenceList2: [],
  2740. isPushTitleList: [],
  2741. lineCount: 0,
  2742. lineType: 0,
  2743. chapCount: 0,
  2744. courseName: "",
  2745. isTeacherSee: true,
  2746. courseText: "",
  2747. preTime: 0,
  2748. formLabelWidth: "100px",
  2749. choosePicVisible: false,
  2750. sysPicVisible: false,
  2751. uploadLoading1: false,
  2752. noneBtnImg: false,
  2753. updateBoolean2: false,
  2754. unitIndex: 0,
  2755. taskCount: 0,
  2756. dialogVisible: false,
  2757. dialogVisible1: false,
  2758. dialogVisible2: false,
  2759. dialogVisible3: false,
  2760. dialogVisible4: false,
  2761. dialogVisible5: false,
  2762. dialogVisible6: false,
  2763. dialogVisible7: false,
  2764. dialogVisible8: false,
  2765. dialogVisible9: false,
  2766. dialogVisibleClass: false,
  2767. dialogVisibleMember: false,
  2768. dialogVisibleMp3: false,
  2769. dialogVisibleSelect: false,
  2770. dialogVisibleSentence: false,
  2771. dialogVisibleRate: false,
  2772. dialogVisibleChoice: false,
  2773. dialogVisiblemb: false,
  2774. dialogVisibleInvite: false,
  2775. dialogVisibleSource: false,
  2776. dialogVisibleVideo: false,
  2777. dialogVisibleupdataVideoT: false,
  2778. isClickColor: 1,
  2779. toolIndexType: "",
  2780. publicTool: 0,
  2781. searchPeople: "",
  2782. searchTN: "",
  2783. userid: this.$route.query.userid,
  2784. oid: this.$route.query.oid,
  2785. org: this.$route.query.org,
  2786. role: this.$route.query.role,
  2787. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2788. dialogVisibleTable: false,
  2789. dialogVisibleWord: false,
  2790. tableJson: { text: "" },
  2791. wordJson: { text: "" },
  2792. dialogVisibleMoreUpload: false,
  2793. dialogVisiblePreTime: false,
  2794. uploadJson: [],
  2795. classJuri: [],
  2796. gradeList: [],
  2797. cover: [], //课程封面
  2798. myWord: [],
  2799. evaJuri: [],
  2800. evalua: "",
  2801. targetArray: [],
  2802. eTitle: "",
  2803. eJson: {},
  2804. fid: "", //一级
  2805. sid: "", //二级
  2806. tid: "", //二级
  2807. typeMode: 1,
  2808. eJSONNum: 0,
  2809. data: {
  2810. meta: {
  2811. name: "example",
  2812. author: "dd@163.com",
  2813. version: "0.2",
  2814. },
  2815. format: "node_array",
  2816. data: [{ id: "root", isroot: true, topic: "" }],
  2817. },
  2818. askJson: {
  2819. askCount: 1,
  2820. askTitle: "",
  2821. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2822. },
  2823. askJson2: {},
  2824. testJson: {},
  2825. testJson2: {},
  2826. selectJson: {},
  2827. selectJson2: {},
  2828. rateJson: [],
  2829. unitJson2: [],
  2830. unitJson: [
  2831. {
  2832. dyName: "", //单元标题
  2833. chapterInfo: [
  2834. {
  2835. isread: false,
  2836. chapterid: this.guid(),
  2837. title: "",
  2838. courseName: "",
  2839. taskJson: [
  2840. {
  2841. task: "",
  2842. taskDetail: "",
  2843. chapterData: [],
  2844. toolChoose: [
  2845. {
  2846. tool: [],
  2847. toolDetail: "",
  2848. toolType: 0,
  2849. askCount: 1,
  2850. askTitle: "",
  2851. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2852. },
  2853. ],
  2854. toolText: "",
  2855. isShowTools: false,
  2856. askCount: 1,
  2857. isFold: 0,
  2858. askTitle: "",
  2859. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2860. checkJson: [{ checkCount: [], checkPerent: [] }],
  2861. homeworkList: [],
  2862. },
  2863. ],
  2864. itemCount: 1,
  2865. fileList1: [],
  2866. video: [],
  2867. testData: [],
  2868. pData: [],
  2869. templateArray: [],
  2870. },
  2871. ],
  2872. },
  2873. ],
  2874. studentJuri: [],
  2875. teacherJuri: [],
  2876. checkboxList: [],
  2877. checkboxList2: [],
  2878. checkboxList3: [],
  2879. courseDetail: "",
  2880. classList: [],
  2881. classSearch: "",
  2882. gradeId: "",
  2883. number: "",
  2884. tTitle: "",
  2885. tdetail: "",
  2886. templateC: {},
  2887. AttText: {},
  2888. AttTextType: 0,
  2889. AttTextIndex: 0,
  2890. cTemplate: "",
  2891. CourseType: [],
  2892. CourseType2: [],
  2893. CourseTypeJson: {},
  2894. courseTypeId: [],
  2895. courseTypeSon: [],
  2896. clearArray: [],
  2897. pTypeCheck: [],
  2898. pTypeCheckName: [],
  2899. loading: false,
  2900. toolType: 0,
  2901. inputShow: true,
  2902. inputShow2: true,
  2903. toolIndex: 0,
  2904. cidType: 0,
  2905. answerQ: "",
  2906. answerQ2: "",
  2907. grade: [],
  2908. grade2: [],
  2909. courseUserid: "",
  2910. timer: null,
  2911. timer2: null,
  2912. pasteTimer: null,
  2913. checkId: "",
  2914. isDelete: 1,
  2915. addindex: 0,
  2916. selectSteps: 1,
  2917. groupJson: {},
  2918. dialogVisibleGroup: false,
  2919. rightBoxHeight: 0,
  2920. ManAarray: [],
  2921. checkBoolean: false,
  2922. inviteCode: [],
  2923. inviteId: "",
  2924. icode: "",
  2925. easyArray: [2, 4],
  2926. sourceData: {},
  2927. updateSourcePan: false,
  2928. videoJson: {},
  2929. isBtnDisplay: false,
  2930. isPasteTask: false,
  2931. isPasteChoice: false,
  2932. sysPicVisible2: false,
  2933. imageloading: false,
  2934. searchImageValue: "",
  2935. ppage: 1,
  2936. imageList: [],
  2937. heightPx: '100%',
  2938. toolsData: toolsData,
  2939. pageSize: 20,
  2940. total: 0,
  2941. page: 0,
  2942. isLoading2: false,
  2943. };
  2944. },
  2945. directives: {
  2946. autoHeight: {
  2947. update(el, binding) {
  2948. const { value } = binding
  2949. if (value && typeof value === 'number') {
  2950. el.style.height = `${value}px`
  2951. } else {
  2952. el.style.height = 'auto'
  2953. }
  2954. },
  2955. componentUpdated(el) {
  2956. el.style.height = `${el.scrollHeight + 5}px`
  2957. },
  2958. },
  2959. },
  2960. computed: {
  2961. // rightBoxHeight: function () {
  2962. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  2963. // },
  2964. offsetLetfPx: function () {
  2965. //addnum可以直接在模板语法里面用,相当于data内的值
  2966. return (
  2967. $(".cru_select")[this.unitIndex] &&
  2968. $(".cru_select")[this.unitIndex].offsetLeft
  2969. );
  2970. },
  2971. getMan2() {
  2972. return function (people) {
  2973. let _people = people;
  2974. let _people2 = "";
  2975. if (this.ManAarray.length) {
  2976. for (var i = 0; i < this.ManAarray.length; i++) {
  2977. if (this.ManAarray[i].userid == people) {
  2978. _people2 = this.ManAarray[i].name;
  2979. break;
  2980. }
  2981. }
  2982. }
  2983. if (people == this.courseUserid) {
  2984. return "";
  2985. }
  2986. return this.ManAarray.length ? _people2 : "";
  2987. };
  2988. },
  2989. getListMan2() {
  2990. return function (list) {
  2991. let _people2 = [];
  2992. if (this.ManAarray.length) {
  2993. for (var j = 0; j < list.length; j++) {
  2994. let people = list[j];
  2995. for (var i = 0; i < this.ManAarray.length; i++) {
  2996. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  2997. _people2.push(this.ManAarray[i].name);
  2998. break;
  2999. }
  3000. }
  3001. }
  3002. }
  3003. return this.ManAarray.length ? _people2.join("、") : "";
  3004. };
  3005. },
  3006. isInvite() {
  3007. return function (cid) {
  3008. let array = [];
  3009. for (var i = 0; i < this.inviteCode.length; i++) {
  3010. array.push(this.inviteCode[i].cid);
  3011. }
  3012. return array.indexOf(cid) != -1;
  3013. };
  3014. },
  3015. getInviteCodeC() {
  3016. return function (cid) {
  3017. let array = [];
  3018. for (var i = 0; i < this.inviteCode.length; i++) {
  3019. array.push(this.inviteCode[i].cid);
  3020. }
  3021. return this.inviteCode[array.indexOf(cid)].ic;
  3022. };
  3023. },
  3024. getClassC() {
  3025. return function (c) {
  3026. let _c2 = "";
  3027. if (this.grade.length) {
  3028. for (var i = 0; i < this.grade.length; i++) {
  3029. if (this.grade[i].id == c) {
  3030. _c2 = this.grade[i].name;
  3031. break;
  3032. }
  3033. }
  3034. }
  3035. return this.grade.length ? _c2 : "";
  3036. };
  3037. },
  3038. getListClassC() {
  3039. return function (list) {
  3040. let _c2 = [];
  3041. if (this.grade.length) {
  3042. for (var j = 0; j < list.length; j++) {
  3043. let c = list[j]
  3044. for (var i = 0; i < this.grade.length; i++) {
  3045. if (this.grade[i].id == c) {
  3046. _c2.push(this.grade[i].name);
  3047. break;
  3048. }
  3049. }
  3050. }
  3051. }
  3052. return this.grade.length ? _c2.join('、') : "";
  3053. };
  3054. },
  3055. },
  3056. watch: {
  3057. checkboxList2(newValue, oldValue) {
  3058. if (this.grade.length && newValue) {
  3059. this.classList = []
  3060. for (var j = 0; j < this.grade.length; j++) {
  3061. if (newValue.indexOf(this.grade[j].id) !== -1) {
  3062. this.classList.push(this.grade[j])
  3063. }
  3064. }
  3065. }
  3066. },
  3067. unitIndex(newValue, oldValue) {
  3068. if (this.isDelete == 2) {
  3069. this.isDelete = 1;
  3070. return;
  3071. }
  3072. if (this.cid != "") {
  3073. let _unitIndex = oldValue;
  3074. if (
  3075. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3076. JSON.stringify(this.unitJson[_unitIndex])
  3077. ) {
  3078. this.$refs.rightboxR.scrollTop = 0;
  3079. return;
  3080. }
  3081. let cPan = 1;
  3082. for (
  3083. var j = 0;
  3084. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3085. j++
  3086. ) {
  3087. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3088. j
  3089. ].proVisible = false;
  3090. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3091. j
  3092. ].proVisible2 = false;
  3093. if (
  3094. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3095. .length > 1
  3096. ) {
  3097. for (
  3098. var z = 0;
  3099. z <
  3100. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3101. .length;
  3102. z++
  3103. ) {
  3104. if (
  3105. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3106. .toolChoose[z].tool.length
  3107. ) {
  3108. this.$message.error("请把工具添加完整");
  3109. cPan = 2;
  3110. break;
  3111. }
  3112. }
  3113. }
  3114. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3115. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3116. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3117. (ele) => {
  3118. return ele.value != "";
  3119. }
  3120. );
  3121. }
  3122. }
  3123. if (cPan == 2) {
  3124. this.unitIndex = oldValue;
  3125. return;
  3126. }
  3127. for (var i = 0; i < this.unitJson.length; i++) {
  3128. if (this.addindex != i) {
  3129. delete this.unitJson[i].isUpdate;
  3130. }
  3131. }
  3132. this.$refs.rightboxR.scrollTop = 0;
  3133. this.addindex = -1;
  3134. let params = [
  3135. {
  3136. cid: this.cid,
  3137. chapters: JSON.stringify(this.unitJson),
  3138. uid: this.userid,
  3139. unitIndex: _unitIndex,
  3140. },
  3141. ];
  3142. this.ajax
  3143. .post(this.$store.state.api + "updateWorkNew4", params)
  3144. .then((res) => {
  3145. // this.$message({
  3146. // message: "修改成功",
  3147. // type: "success",
  3148. // });
  3149. // this.courseId = this.cid;
  3150. })
  3151. .catch((err) => {
  3152. this.$message.error("网络不佳");
  3153. console.error(err);
  3154. });
  3155. }
  3156. },
  3157. steps(newValue) {
  3158. if (newValue == 4) {
  3159. this.goTo(
  3160. "/synergyCourse?userid=" +
  3161. this.userid +
  3162. "&oid=" +
  3163. this.oid +
  3164. "&org=" +
  3165. this.org +
  3166. "&role=" +
  3167. this.role
  3168. );
  3169. }
  3170. },
  3171. },
  3172. methods: {
  3173. handleCurrentChange(val) {
  3174. // console.log(`当前页: ${val}`);
  3175. this.page = val;
  3176. this.getTeacher();
  3177. this.checkAll=false;
  3178. this.isIndeterminate = true;
  3179. },
  3180. openAI() {
  3181. window.parent.postMessage({ tools: "64" }, "*");
  3182. },
  3183. setMan() {
  3184. // let teacherJuri = this.teacherJuri2;
  3185. this.ManAarray = [];
  3186. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3187. if (_user.indexOf(this.userid) == -1) {
  3188. _user.push(this.userid);
  3189. }
  3190. if (_user.indexOf(this.courseUserid) == -1) {
  3191. _user.push(this.courseUserid);
  3192. }
  3193. let params = {
  3194. uid: _user.join(","),
  3195. };
  3196. this.ajax
  3197. .get(this.$store.state.api + "getAllUserById", params)
  3198. .then((res) => {
  3199. let teacherJuri = res.data[0];
  3200. this.ManAarray = teacherJuri;
  3201. })
  3202. .catch((err) => {
  3203. console.error(err);
  3204. });
  3205. },
  3206. previewImg(url) {
  3207. this.$hevueImgPreview(url);
  3208. },
  3209. btnDisplay(bool) {
  3210. this.isBtnDisplay = bool
  3211. },
  3212. scrollChange() {
  3213. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3214. // document.querySelector('.course_left').scrollHeight
  3215. // document.querySelector('.stepsBottom2').scrollHeight
  3216. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  3217. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3218. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  3219. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  3220. let top = $(".rightBox")[0].scrollTop - maxheight;
  3221. // if (top < client) {
  3222. // $('.stepsBottom2')[0].style.position = 'absolute'
  3223. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3224. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3225. // } else
  3226. if (top > 0) {
  3227. let top = $(".rightBox")[0].offsetTop;
  3228. $(".stepsBottom2")[0].style.position = "fixed";
  3229. $(".stepsBottom2")[0].style.top = top + "px";
  3230. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  3231. // $('.stepsBottom2')[0].style.top = top + 'px'
  3232. } else {
  3233. $(".stepsBottom2")[0].style.position = "absolute";
  3234. $(".stepsBottom2")[0].style.top = "0px";
  3235. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  3236. }
  3237. const clientHeight = $(".rightBox")[0].clientHeight;
  3238. const scrollTop = $(".rightBox")[0].scrollTop;
  3239. const scrollHeight = $(".rightBox")[0].scrollHeight;
  3240. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  3241. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  3242. }
  3243. },
  3244. handleCheckAllChange(val) {
  3245. this.checkboxList3 = [];
  3246. if(val){
  3247. this.teacherJuri.forEach(item=>{
  3248. this.checkboxList3.push(item.userid);
  3249. })
  3250. }
  3251. this.isIndeterminate = false;
  3252. },
  3253. handleCheckedTeacherJuriChange(value) {
  3254. let checkedCount = value.length;
  3255. this.checkAll = checkedCount === this.teacherJuri.length;
  3256. this.isIndeterminate =
  3257. checkedCount > 0 && checkedCount < this.teacherJuri.length;
  3258. },
  3259. addHw(e) {
  3260. var el = e.currentTarget;
  3261. el.getElementsByTagName("input")[0].click();
  3262. },
  3263. change(val) {
  3264. if (this.dialogVisible1) {
  3265. this.tdetail = val
  3266. } else if (this.dialogVisible6) {
  3267. this.AttText.text = val
  3268. } else if (this.dialogVisible2) {
  3269. this.cTemplate = val
  3270. } else if (this.dialogVisibleTable) {
  3271. this.tableJson.text = val
  3272. }
  3273. this.$forceUpdate();
  3274. console.log(val);
  3275. },
  3276. change2(val) {
  3277. console.log(val);
  3278. this.$forceUpdate();
  3279. },
  3280. handleClose(done) {
  3281. this.page = 0;
  3282. done();
  3283. },
  3284. closePan(tool) {
  3285. if (tool == 15) {
  3286. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  3287. this.dialogVisible8 = false
  3288. } else {
  3289. this.closeConfirm(tool);
  3290. }
  3291. } else if (tool == 4) {
  3292. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  3293. this.dialogVisible5 = false
  3294. } else {
  3295. this.closeConfirm(tool);
  3296. }
  3297. } else if (tool == 45) {
  3298. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  3299. this.dialogVisibleChoice = false
  3300. } else {
  3301. this.closeConfirm(tool);
  3302. }
  3303. } else if (tool == 41) {
  3304. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  3305. this.dialogVisibleSelect = false
  3306. } else {
  3307. this.closeConfirm(tool);
  3308. }
  3309. } else if (tool == 47) {
  3310. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  3311. this.dialogVisibleSentence = false
  3312. } else {
  3313. this.closeConfirm(tool);
  3314. }
  3315. }
  3316. },
  3317. closeConfirm(tool) {
  3318. this
  3319. .$confirm("是否保存已编辑内容?", "提示", {
  3320. confirmButtonText: "保存",
  3321. cancelButtonText: "不保存",
  3322. distinguishCancelAndClose: true,
  3323. type: "warning",
  3324. })
  3325. .then(() => {
  3326. if (tool == 15) {
  3327. this.addAnswer();
  3328. } else if (tool == 4) {
  3329. this.addAsk();
  3330. } else if (tool == 45) {
  3331. this.addTest();
  3332. } else if (tool == 41) {
  3333. this.addSelectAnswer();
  3334. } else if (tool == 47) {
  3335. this.addSentenceTool();
  3336. }
  3337. })
  3338. .catch(() => {
  3339. if (tool == 15) {
  3340. this.dialogVisible8 = false;
  3341. } else if (tool == 4) {
  3342. this.dialogVisible5 = false;
  3343. } else if (tool == 45) {
  3344. this.dialogVisibleChoice = false;
  3345. } else if (tool == 41) {
  3346. this.dialogVisibleSelect = false;
  3347. } else if (tool == 47) {
  3348. this.dialogVisibleSentence = false;
  3349. }
  3350. });
  3351. },
  3352. imgChange2(i, j) {
  3353. var _tmp = this.testJson.testJson[i].checkList[j];
  3354. this.noneBtnImg = _tmp.length >= 1;
  3355. },
  3356. imgChange3(i) {
  3357. var _tmp = this.testJson.testJson[i];
  3358. this.noneBtnImg = _tmp.length >= 1;
  3359. },
  3360. imgChange1(file, fileList, type, itemTaskIndex) {
  3361. if (type == 1) {
  3362. var _tmp = this.cover;
  3363. } else if (
  3364. type == 2 ||
  3365. type == 3 ||
  3366. type == 6 ||
  3367. type == 7 ||
  3368. type == 8
  3369. ) {
  3370. var _tmp =
  3371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3372. .chapterData;
  3373. } else if (type == 4) {
  3374. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3375. } else {
  3376. var _tmp =
  3377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3378. .homeworkList;
  3379. }
  3380. this.noneBtnImg = _tmp.length >= 1;
  3381. },
  3382. goTo(path) {
  3383. this.$router.push(path);
  3384. },
  3385. guid() {
  3386. var _num,
  3387. i,
  3388. _guid = "";
  3389. for (i = 0; i < 32; i++) {
  3390. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3391. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3392. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3393. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3394. _guid += "-";
  3395. }
  3396. }
  3397. return _guid;
  3398. },
  3399. lastSteps() {
  3400. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  3401. this.goTo(
  3402. "/synergyCourse?userid=" +
  3403. this.userid +
  3404. "&oid=" +
  3405. this.oid +
  3406. "&org=" +
  3407. this.org +
  3408. "&role=" +
  3409. this.role
  3410. );
  3411. } else {
  3412. this
  3413. .$confirm("是否保存已编辑内容?", "提示", {
  3414. confirmButtonText: "保存",
  3415. cancelButtonText: "不保存",
  3416. distinguishCancelAndClose: true,
  3417. type: "warning",
  3418. })
  3419. .then(() => {
  3420. if (this.cid == "" || this.cid == undefined) {
  3421. if (this.courseName == "") {
  3422. this.$message.error("请补充填写课程名称");
  3423. return;
  3424. } else {
  3425. this.addWork();
  3426. }
  3427. } else {
  3428. if (this.courseName == "") {
  3429. this.$message.error("请补充填写课程名称");
  3430. return;
  3431. } else {
  3432. // if (this.userid != this.courseUserid && this.role != "1") {
  3433. // this.updateWork2();
  3434. // } else {
  3435. this.updateWork();
  3436. // }
  3437. }
  3438. }
  3439. })
  3440. .catch((v) => {
  3441. console.log(v)
  3442. if (v == "cancel") {
  3443. this.goTo(
  3444. "/synergyCourse?userid=" +
  3445. this.userid +
  3446. "&oid=" +
  3447. this.oid +
  3448. "&org=" +
  3449. this.org +
  3450. "&role=" +
  3451. this.role
  3452. );
  3453. }
  3454. });
  3455. }
  3456. },
  3457. nextSteps() {
  3458. if (this.cid == "" || this.cid == undefined) {
  3459. if (this.courseName == "") {
  3460. this.$message.error("请补充填写课程名称");
  3461. return;
  3462. } else {
  3463. this.addWork();
  3464. }
  3465. } else {
  3466. if (this.courseName == "") {
  3467. this.$message.error("请补充填写课程名称");
  3468. return;
  3469. } else {
  3470. // if (this.userid != this.courseUserid && this.role != "1") {
  3471. // this.updateWork2();
  3472. // } else {
  3473. this.updateWork();
  3474. // }
  3475. }
  3476. }
  3477. this.$refs.stepBox.scrollTop = 0;
  3478. },
  3479. changeName() {
  3480. if (this.cid == "" || this.cid == undefined) {
  3481. if (this.courseName == "") {
  3482. this.$message.error("请补充填写课程名称");
  3483. return;
  3484. } else {
  3485. this.addWork(2);
  3486. }
  3487. } else {
  3488. if (this.courseName == "") {
  3489. this.$message.error("请补充填写课程名称");
  3490. return;
  3491. } else {
  3492. this.updateWork(2);
  3493. }
  3494. }
  3495. },
  3496. unitSet(i) {
  3497. this.unitIndex = i;
  3498. // this.$refs.rightboxR.scrollTop = 0;
  3499. },
  3500. time() {
  3501. if (!this.now) {
  3502. this.now = new Date().getTime();
  3503. return true;
  3504. } else {
  3505. let time = new Date().getTime();
  3506. if (time - this.now > 3000) {
  3507. this.now = time;
  3508. return true;
  3509. } else {
  3510. return false;
  3511. }
  3512. }
  3513. },
  3514. deleteUnit(i) {
  3515. var _this = this;
  3516. if (_this.time()) {
  3517. _this
  3518. .$confirm("确定删除此单元吗?", "提示", {
  3519. confirmButtonText: "确定",
  3520. cancelButtonText: "取消",
  3521. type: "warning",
  3522. })
  3523. .then(() => {
  3524. _this.isDelete = 2;
  3525. // _this.unitIndex = _this.unitIndex - 1;
  3526. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3527. // _this.$message.success("删除成功");
  3528. })
  3529. .catch(() => {
  3530. return;
  3531. });
  3532. }
  3533. },
  3534. deleteWork(chapid) {
  3535. let params = [
  3536. {
  3537. cid: this.cid,
  3538. chapters: JSON.stringify(this.unitJson),
  3539. uid: this.userid,
  3540. chapid: chapid,
  3541. },
  3542. ];
  3543. this.ajax
  3544. .post(this.$store.state.api + "deleteWork", params)
  3545. .then((res) => {
  3546. this.$message({
  3547. message: "删除成功",
  3548. type: "success",
  3549. });
  3550. this.unitJson.splice(this.unitIndex, 1);
  3551. this.unitIndex = this.unitIndex - 1;
  3552. })
  3553. .catch((err) => {
  3554. this.$message.error("网络不佳");
  3555. console.error(err);
  3556. });
  3557. },
  3558. deleteTool(itemTaskIndex, i) {
  3559. var _this = this;
  3560. if (_this.time()) {
  3561. _this
  3562. .$confirm("确定删除此工具吗?", "提示", {
  3563. confirmButtonText: "确定",
  3564. cancelButtonText: "取消",
  3565. type: "warning",
  3566. })
  3567. .then(() => {
  3568. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3569. itemTaskIndex
  3570. ].toolChoose.splice(i, 1);
  3571. _this.$message.success("删除成功");
  3572. })
  3573. .catch(() => {
  3574. return;
  3575. });
  3576. }
  3577. },
  3578. deleteSentence(i) {
  3579. var _this = this;
  3580. _this
  3581. .$confirm("确定删除此题目吗?", "提示", {
  3582. confirmButtonText: "确定",
  3583. cancelButtonText: "取消",
  3584. type: "warning",
  3585. })
  3586. .then(() => {
  3587. _this.sentenceList.splice(i, 1);
  3588. _this.$message.success("删除成功");
  3589. })
  3590. .catch(() => {
  3591. return;
  3592. });
  3593. },
  3594. deleteS(s, i, j) {
  3595. this.sentenceList[i].addSentence.splice(j, 1);
  3596. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3597. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3598. this.sentenceList[i].rightAnswer.splice(a, 1);
  3599. }
  3600. },
  3601. openT() {
  3602. window.parent.postMessage({ tools: "25" }, "*");
  3603. },
  3604. deleteTask(i) {
  3605. var _this = this;
  3606. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3607. _this
  3608. .$confirm("确定删除此任务吗?", "提示", {
  3609. confirmButtonText: "确定",
  3610. cancelButtonText: "取消",
  3611. type: "warning",
  3612. })
  3613. .then(() => {
  3614. if (i == 0) {
  3615. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3616. i + 1
  3617. ].chapterData = JSON.parse(
  3618. JSON.stringify(
  3619. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  3620. .chapterData
  3621. )
  3622. );
  3623. }
  3624. _this.$forceUpdate();
  3625. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  3626. _this.$message.success("删除成功");
  3627. // this.$nextTick(() => {
  3628. // $('.stepsBottom2')[0].style.transition = 'unset'
  3629. // setTimeout(() => {
  3630. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3631. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3632. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3633. // if (top > client) {
  3634. // $('.stepsBottom2')[0].style.top = client + 'px'
  3635. // }
  3636. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3637. // this.$forceUpdate()
  3638. // }, 500)
  3639. // })
  3640. })
  3641. .catch(() => {
  3642. return;
  3643. });
  3644. },
  3645. handlePictureCardPreview(file) {
  3646. this.dialogImageUrl = file.url;
  3647. },
  3648. clean(i, c) {
  3649. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3650. },
  3651. handle_remove1(file, fileList, type) {
  3652. var _tmp = this.cover;
  3653. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3654. // if (_tmp[i].uid == file.uid) {
  3655. // _tmp.splice(i, 1);
  3656. // break;
  3657. // }
  3658. // this.cover = _tmp;
  3659. // }
  3660. this.cover = [];
  3661. this.noneBtnImg = this.cover.length >= 1;
  3662. this.isSysPic = false;
  3663. this.isSysPic2 = false;
  3664. this.$forceUpdate();
  3665. },
  3666. addImg(e) {
  3667. var el = e.currentTarget;
  3668. el.getElementsByTagName("input")[0].click();
  3669. e.target.value = "";
  3670. },
  3671. addChaptersTools(i) {
  3672. this.chapTools = [
  3673. {
  3674. tools: [],
  3675. toolDetail: "",
  3676. },
  3677. ];
  3678. this.chapCount = i;
  3679. this.dialogVisible4 = true;
  3680. },
  3681. isNoFinsh() {
  3682. this.$message.warning("功能正在开发中");
  3683. },
  3684. addAttText(i) {
  3685. this.AttText = {
  3686. title: "",
  3687. text: "",
  3688. };
  3689. this.taskCount = i;
  3690. this.AttTextType = 0;
  3691. this.$forceUpdate();
  3692. this.dialogVisible6 = true;
  3693. setTimeout(() => {
  3694. this.$refs['fuInput'].focus();
  3695. }, 100);
  3696. },
  3697. openLine(i) {
  3698. this.line = "";
  3699. this.lineCount = i;
  3700. this.lineType = 0;
  3701. this.$forceUpdate();
  3702. this.dialogVisible7 = true;
  3703. },
  3704. pasteLine(i) {
  3705. navigator.clipboard
  3706. .readText()
  3707. .then((v) => {
  3708. console.log("获取剪贴板成功:", v);
  3709. const html = v;
  3710. const regex = /src="(.*?)"/g;
  3711. const match = regex.exec(html);
  3712. if (match && match[1]) {
  3713. console.log(match[1]);
  3714. this.$message.success("粘贴成功");
  3715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3716. i
  3717. ].chapterData.push({
  3718. name: "链接",
  3719. title: "嵌入代码",
  3720. url: match[1],
  3721. type: 8,
  3722. });
  3723. } else {
  3724. // console.log("未找到包含 src 属性的 iframe");
  3725. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  3726. }
  3727. })
  3728. .catch((v) => {
  3729. console.log("获取剪贴板失败: ", v);
  3730. });
  3731. },
  3732. openSource(i) {
  3733. this.lineCount = i;
  3734. this.sourceData = {};
  3735. this.dialogVisibleSource = true;
  3736. this.updateSourcePan = false;
  3737. },
  3738. addSource() {
  3739. if (!Object.keys(this.sourceData).length) {
  3740. this.$message.error("请选择要上传的资源");
  3741. return;
  3742. }
  3743. let keys = Object.keys(this.sourceData);
  3744. for (var i = 0; i < keys.length; i++) {
  3745. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3746. this.lineCount
  3747. ].chapterData.push({
  3748. name: "链接",
  3749. title: this.sourceData[keys[i]].name,
  3750. url: this.sourceData[keys[i]].url,
  3751. type: 14,
  3752. id: keys[i]
  3753. });
  3754. }
  3755. this.$forceUpdate();
  3756. this.dialogVisibleSource = false;
  3757. },
  3758. updateSource() {
  3759. if (!Object.keys(this.sourceData).length) {
  3760. this.$message.error("请选择要上传的资源");
  3761. return;
  3762. }
  3763. let keys = Object.keys(this.sourceData);
  3764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3765. this.taskCount
  3766. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  3767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3768. this.taskCount
  3769. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  3770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3771. this.taskCount
  3772. ].chapterData[this.lineCount].id = keys[0];
  3773. this.updateSourcePan = false;
  3774. this.$forceUpdate();
  3775. this.dialogVisibleSource = false;
  3776. },
  3777. deleteM(i, j) {
  3778. this.testJson.testJson[i].timuList.splice(j, 1);
  3779. },
  3780. beforeUploadTiMu(event, i) {
  3781. const loading = this.openLoading();
  3782. var file = event.target.files[0];
  3783. var credentials = {
  3784. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3785. secretAccessKey: "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",
  3786. }; //秘钥形式的登录上传
  3787. window.AWS.config.update(credentials);
  3788. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3789. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3790. var _this = this;
  3791. if (file) {
  3792. var params = {
  3793. Key:
  3794. file.name.split(".")[0] +
  3795. new Date().getTime() +
  3796. "." +
  3797. file.name.split(".")[file.name.split(".").length - 1],
  3798. ContentType: file.type,
  3799. Body: file,
  3800. "Access-Control-Allow-Credentials": "*",
  3801. ACL: "public-read",
  3802. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3803. var options = {
  3804. partSize: 2048 * 1024 * 1024,
  3805. queueSize: 2,
  3806. leavePartsOnError: true,
  3807. };
  3808. bucket
  3809. .upload(params, options)
  3810. .on("httpUploadProgress", function (evt) {
  3811. //这里可以写进度条
  3812. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3813. })
  3814. .send(function (err, data) {
  3815. loading.close();
  3816. if (err) {
  3817. _this.$message.error("上传失败");
  3818. } else {
  3819. if (_this.testJson.testJson[i].timuList) {
  3820. _this.testJson.testJson[i].timuList.push({
  3821. src: data.Location,
  3822. });
  3823. } else {
  3824. _this.testJson.testJson[i].timuList = [];
  3825. _this.testJson.testJson[i].timuList.push({
  3826. src: data.Location,
  3827. });
  3828. }
  3829. _this.imgChange3(i);
  3830. _this.$forceUpdate();
  3831. }
  3832. });
  3833. }
  3834. },
  3835. beforeUploadTi(event, i, j) {
  3836. const loading = this.openLoading();
  3837. var file = event.target.files[0];
  3838. var credentials = {
  3839. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3840. secretAccessKey: "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",
  3841. }; //秘钥形式的登录上传
  3842. window.AWS.config.update(credentials);
  3843. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3844. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3845. var _this = this;
  3846. if (file) {
  3847. var params = {
  3848. Key:
  3849. file.name.split(".")[0] +
  3850. new Date().getTime() +
  3851. "." +
  3852. file.name.split(".")[file.name.split(".").length - 1],
  3853. ContentType: file.type,
  3854. Body: file,
  3855. "Access-Control-Allow-Credentials": "*",
  3856. ACL: "public-read",
  3857. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3858. var options = {
  3859. partSize: 2048 * 1024 * 1024,
  3860. queueSize: 2,
  3861. leavePartsOnError: true,
  3862. };
  3863. bucket
  3864. .upload(params, options)
  3865. .on("httpUploadProgress", function (evt) {
  3866. //这里可以写进度条
  3867. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3868. })
  3869. .send(function (err, data) {
  3870. loading.close();
  3871. if (err) {
  3872. _this.$message.error("上传失败");
  3873. } else {
  3874. _this.testJson.testJson[i].checkList[j] = {};
  3875. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3876. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3877. _this.imgChange2(i, j);
  3878. _this.$forceUpdate();
  3879. }
  3880. });
  3881. }
  3882. },
  3883. beforeUpload1(event, type) {
  3884. // const loading = this.openLoading();
  3885. var file = event.target.files[0];
  3886. var credentials = {
  3887. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3888. secretAccessKey: "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",
  3889. }; //秘钥形式的登录上传
  3890. window.AWS.config.update(credentials);
  3891. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3892. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3893. var _this = this;
  3894. if (file) {
  3895. var params = {
  3896. Key:
  3897. file.name.split(".")[0] +
  3898. new Date().getTime() +
  3899. "." +
  3900. file.name.split(".")[file.name.split(".").length - 1],
  3901. ContentType: file.type,
  3902. Body: file,
  3903. "Access-Control-Allow-Credentials": "*",
  3904. ACL: "public-read",
  3905. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3906. var options = {
  3907. partSize: 2048 * 1024 * 1024,
  3908. queueSize: 2,
  3909. leavePartsOnError: true,
  3910. };
  3911. bucket
  3912. .upload(params, options)
  3913. .on("httpUploadProgress", function (evt) {
  3914. //这里可以写进度条
  3915. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3916. })
  3917. .send(function (err, data) {
  3918. // loading.close();
  3919. if (err) {
  3920. // var a = _this.$refs.upload1.uploadFiles;
  3921. // a.splice(a.length - 1, a.length);
  3922. _this.$message.error("上传失败");
  3923. } else {
  3924. _this.cover.push({
  3925. name: file.name,
  3926. url: data.Location,
  3927. uid: file.uid,
  3928. });
  3929. _this.imgChange1(null, null, 1, null);
  3930. _this.choosePicVisible = false;
  3931. console.log(data.Location);
  3932. }
  3933. });
  3934. }
  3935. },
  3936. beforeUploadSelect(event, type) {
  3937. // const loading = this.openLoading();
  3938. var file = event.target.files[0];
  3939. var credentials = {
  3940. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3941. secretAccessKey: "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",
  3942. }; //秘钥形式的登录上传
  3943. window.AWS.config.update(credentials);
  3944. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3945. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3946. var _this = this;
  3947. if (file) {
  3948. var params = {
  3949. Key:
  3950. file.name.split(".")[0] +
  3951. new Date().getTime() +
  3952. "." +
  3953. file.name.split(".")[file.name.split(".").length - 1],
  3954. ContentType: file.type,
  3955. Body: file,
  3956. "Access-Control-Allow-Credentials": "*",
  3957. ACL: "public-read",
  3958. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3959. var options = {
  3960. partSize: 2048 * 1024 * 1024,
  3961. queueSize: 2,
  3962. leavePartsOnError: true,
  3963. };
  3964. bucket
  3965. .upload(params, options)
  3966. .on("httpUploadProgress", function (evt) {
  3967. //这里可以写进度条
  3968. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3969. })
  3970. .send(function (err, data) {
  3971. // loading.close();
  3972. if (err) {
  3973. _this.$message.error("上传失败");
  3974. } else {
  3975. _this.selectJson.url = data.Location;
  3976. console.log(data.Location);
  3977. }
  3978. });
  3979. }
  3980. },
  3981. chooseSysPic(p) {
  3982. this.cover = []
  3983. setTimeout(() => {
  3984. this.cover[0] = {
  3985. name: "系统图片.png",
  3986. url: p,
  3987. };
  3988. this.imgChange1(null, null, 1, null);
  3989. this.$forceUpdate();
  3990. }, 0);
  3991. this.isSysPic = true;
  3992. this.isSysPic2 = false;
  3993. this.sysPicVisible = false;
  3994. this.$forceUpdate();
  3995. },
  3996. chooseSysPic2(p) {
  3997. this.cover = []
  3998. setTimeout(() => {
  3999. this.cover[0] = {
  4000. name: "网络图片.png",
  4001. url: p,
  4002. };
  4003. this.imgChange1(null, null, 1, null);
  4004. this.$forceUpdate();
  4005. }, 0);
  4006. this.isSysPic2 = true;
  4007. this.isSysPic = false;
  4008. this.sysPicVisible2 = false;
  4009. this.$forceUpdate();
  4010. },
  4011. beforeUpload(data) {
  4012. this.$refs.upload1.uploadFiles;
  4013. this.uploadLoading1 = true;
  4014. var file = data.file;
  4015. var credentials = {
  4016. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4017. secretAccessKey: "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",
  4018. }; //秘钥形式的登录上传
  4019. window.AWS.config.update(credentials);
  4020. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4021. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4022. var _this = this;
  4023. if (file) {
  4024. var params = {
  4025. Key:
  4026. file.name.split(".")[0] +
  4027. new Date().getTime() +
  4028. "." +
  4029. file.name.split(".")[file.name.split(".").length - 1],
  4030. ContentType: file.type,
  4031. Body: file,
  4032. "Access-Control-Allow-Credentials": "*",
  4033. ACL: "public-read",
  4034. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4035. var options = {
  4036. partSize: 2048 * 1024 * 1024,
  4037. queueSize: 2,
  4038. leavePartsOnError: true,
  4039. };
  4040. bucket
  4041. .upload(params, options)
  4042. .on("httpUploadProgress", function (evt) {
  4043. //这里可以写进度条
  4044. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4045. })
  4046. .send(function (err, data) {
  4047. _this.uploadLoading1 = false;
  4048. if (err) {
  4049. // var a = _this.$refs.upload1.uploadFiles;
  4050. // a.splice(a.length - 1, a.length);
  4051. _this.$message.error("上传失败");
  4052. } else {
  4053. //上传成功处理
  4054. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4055. name: file.name,
  4056. url: data.Location,
  4057. uid: file.uid,
  4058. });
  4059. _this.imgChange();
  4060. console.log(data.Location);
  4061. }
  4062. });
  4063. }
  4064. },
  4065. onExceed() {
  4066. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4067. },
  4068. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4069. // const loading = this.openLoading();
  4070. var file = event.target.files[0];
  4071. var credentials = {
  4072. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4073. secretAccessKey: "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",
  4074. }; //秘钥形式的登录上传
  4075. window.AWS.config.update(credentials);
  4076. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4077. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4078. var _this = this;
  4079. if (type == 3) {
  4080. var b = [
  4081. "DOC",
  4082. "DOCX",
  4083. "DOCM",
  4084. "DOTM",
  4085. "DOTX",
  4086. "PPTX",
  4087. "PPSX",
  4088. "PPT",
  4089. "PPS",
  4090. "PPTM",
  4091. "POTM",
  4092. "PPAM",
  4093. "POTX",
  4094. "PPSM",
  4095. "XLSX",
  4096. "XLS",
  4097. ];
  4098. if (
  4099. b.indexOf(
  4100. file.name
  4101. .split(".")
  4102. [file.name.split(".").length - 1].toLocaleUpperCase()
  4103. ) != -1
  4104. ) {
  4105. if (file.size / 1024 / 1024 > 80) {
  4106. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4107. this.inputShow = true;
  4108. // var a = _this.$refs.upload1.uploadFiles;
  4109. // a.splice(a.length - 1, a.length);
  4110. // loading.close();
  4111. return;
  4112. }
  4113. } else if (
  4114. file.name
  4115. .split(".")
  4116. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4117. ) {
  4118. if (file.size / 1024 / 1024 > 80) {
  4119. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4120. this.inputShow = true;
  4121. // var a = _this.$refs.upload1.uploadFiles;
  4122. // a.splice(a.length - 1, a.length);
  4123. // loading.close();
  4124. return;
  4125. }
  4126. }
  4127. }
  4128. this.inputShow = false;
  4129. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4130. itemTaskIndex
  4131. ].progress = 0;
  4132. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4133. itemTaskIndex
  4134. ].proVisible = true;
  4135. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4136. itemTaskIndex
  4137. ].isFinishSize = 0;
  4138. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4139. itemTaskIndex
  4140. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4141. _this.$forceUpdate();
  4142. if (file) {
  4143. var params = {
  4144. Key:
  4145. file.name.split(".")[0] +
  4146. new Date().getTime() +
  4147. "." +
  4148. file.name.split(".")[file.name.split(".").length - 1],
  4149. ContentType: file.type,
  4150. Body: file,
  4151. "Access-Control-Allow-Credentials": "*",
  4152. ACL: "public-read",
  4153. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4154. var options = {
  4155. partSize: 2048 * 1024 * 1024,
  4156. queueSize: 2,
  4157. leavePartsOnError: true,
  4158. };
  4159. bucket
  4160. .upload(params, options)
  4161. .on("httpUploadProgress", function (evt) {
  4162. //这里可以写进度条
  4163. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4164. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4165. itemTaskIndex
  4166. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4167. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4168. itemTaskIndex
  4169. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4170. _this.$forceUpdate();
  4171. })
  4172. .send(function (err, data) {
  4173. // loading.close();
  4174. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4175. itemTaskIndex
  4176. ].progress = 100;
  4177. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4178. itemTaskIndex
  4179. ].isFinishSize =
  4180. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4181. itemTaskIndex
  4182. ].isAllSize;
  4183. _this.$forceUpdate();
  4184. setTimeout(() => {
  4185. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4186. itemTaskIndex
  4187. ].proVisible = false;
  4188. _this.$forceUpdate();
  4189. }, 1000);
  4190. _this.inputShow = true;
  4191. if (err) {
  4192. // var a = _this.$refs.upload1.uploadFiles;
  4193. // a.splice(a.length - 1, a.length);
  4194. _this.$message.error("上传失败");
  4195. } else {
  4196. if (type == 13) {
  4197. let _type = 2;
  4198. var imgA = [
  4199. "png",
  4200. "jpg",
  4201. "jpeg",
  4202. "bmp",
  4203. "gif",
  4204. "webp",
  4205. "psd",
  4206. "svg",
  4207. "tiff",
  4208. ];
  4209. var fileA = [
  4210. "PDF",
  4211. "DOC",
  4212. "DOCX",
  4213. "DOCM",
  4214. "DOTM",
  4215. "DOTX",
  4216. "PPTX",
  4217. "PPSX",
  4218. "PPT",
  4219. "PPS",
  4220. "PPTM",
  4221. "POTM",
  4222. "PPAM",
  4223. "POTX",
  4224. "PPSM",
  4225. "XLSX",
  4226. "XLS",
  4227. ];
  4228. var videoA = [
  4229. "AVI",
  4230. "NAVI",
  4231. "MPEG",
  4232. "ASF",
  4233. "MOV",
  4234. "WMV",
  4235. "3GP",
  4236. "RM",
  4237. "RMVB",
  4238. "FLV",
  4239. "F4V",
  4240. "H.264",
  4241. "H.265",
  4242. "REAL VIDEO",
  4243. "MKV",
  4244. "WebM",
  4245. "HDDVD",
  4246. "MP4",
  4247. "MPG",
  4248. "M4V",
  4249. "MGV",
  4250. "OGV",
  4251. "QTM",
  4252. "STR",
  4253. "AMC",
  4254. "DVX",
  4255. "EVO",
  4256. "DAT",
  4257. "OGG",
  4258. "OGM",
  4259. ];
  4260. if (
  4261. fileA.indexOf(
  4262. data.Location.split(".")[
  4263. data.Location.split(".").length - 1
  4264. ].toLocaleUpperCase()
  4265. ) != -1
  4266. ) {
  4267. _type = 3;
  4268. } else if (
  4269. videoA.indexOf(
  4270. data.Location.split(".")[
  4271. data.Location.split(".").length - 1
  4272. ].toLocaleUpperCase()
  4273. ) != -1
  4274. ) {
  4275. _type = 2;
  4276. } else if (
  4277. imgA.indexOf(
  4278. data.Location.split(".")[
  4279. data.Location.split(".").length - 1
  4280. ].toLocaleLowerCase()
  4281. ) != -1
  4282. ) {
  4283. _type = 13;
  4284. } else {
  4285. _type = 12;
  4286. }
  4287. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4288. itemTaskIndex
  4289. ].chapterData.push({
  4290. name: file.name,
  4291. url: data.Location,
  4292. uid: file.uid,
  4293. type: _type,
  4294. });
  4295. _this.imgChange1(null, null, _type, itemTaskIndex);
  4296. } else if (type == 2 || type == 3 || type == 12) {
  4297. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4298. itemTaskIndex
  4299. ].chapterData.push({
  4300. name: file.name,
  4301. url: data.Location,
  4302. uid: file.uid,
  4303. type: type,
  4304. });
  4305. _this.imgChange1(null, null, type, itemTaskIndex);
  4306. } else if (type == 4) {
  4307. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4308. itemTaskIndex
  4309. ].fileList1.push({
  4310. name: file.name,
  4311. url: data.Location,
  4312. uid: file.uid,
  4313. });
  4314. _this.imgChange1(null, null, type, itemTaskIndex);
  4315. } else if (type == 5) {
  4316. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4317. itemTaskIndex
  4318. ].homeworkList.push({
  4319. name: file.name,
  4320. url: data.Location,
  4321. uid: file.uid,
  4322. });
  4323. _this.imgChange1(null, null, type, itemTaskIndex);
  4324. }
  4325. console.log(data.Location);
  4326. }
  4327. });
  4328. }
  4329. },
  4330. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4331. // const loading = this.openLoading();
  4332. var file = event.target.files[0];
  4333. var credentials = {
  4334. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4335. secretAccessKey: "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",
  4336. }; //秘钥形式的登录上传
  4337. window.AWS.config.update(credentials);
  4338. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4339. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4340. var _this = this;
  4341. if (type == 3) {
  4342. var b = [
  4343. "DOC",
  4344. "DOCX",
  4345. "DOCM",
  4346. "DOTM",
  4347. "DOTX",
  4348. "PPTX",
  4349. "PPSX",
  4350. "PPT",
  4351. "PPS",
  4352. "PPTM",
  4353. "POTM",
  4354. "PPAM",
  4355. "POTX",
  4356. "PPSM",
  4357. ];
  4358. if (
  4359. b.indexOf(
  4360. file.name
  4361. .split(".")
  4362. [file.name.split(".").length - 1].toLocaleUpperCase()
  4363. ) != -1
  4364. ) {
  4365. if (file.size / 1024 / 1024 > 80) {
  4366. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4367. this.inputShow = true;
  4368. // var a = _this.$refs.upload1.uploadFiles;
  4369. // a.splice(a.length - 1, a.length);
  4370. // loading.close();
  4371. return;
  4372. }
  4373. } else if (
  4374. file.name
  4375. .split(".")
  4376. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4377. ) {
  4378. if (file.size / 1024 / 1024 > 80) {
  4379. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4380. this.inputShow = true;
  4381. // var a = _this.$refs.upload1.uploadFiles;
  4382. // a.splice(a.length - 1, a.length);
  4383. // loading.close();
  4384. return;
  4385. }
  4386. }
  4387. }
  4388. this.inputShow = false;
  4389. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4390. itemTaskIndex
  4391. ].progress = 0;
  4392. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4393. itemTaskIndex
  4394. ].proVisible = true;
  4395. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4396. itemTaskIndex
  4397. ].isFinishSize = 0;
  4398. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4399. itemTaskIndex
  4400. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4401. _this.$forceUpdate();
  4402. if (file) {
  4403. var params = {
  4404. Key:
  4405. file.name.split(".")[0] +
  4406. new Date().getTime() +
  4407. "." +
  4408. file.name.split(".")[file.name.split(".").length - 1],
  4409. ContentType: file.type,
  4410. Body: file,
  4411. "Access-Control-Allow-Credentials": "*",
  4412. ACL: "public-read",
  4413. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4414. var options = {
  4415. partSize: 2048 * 1024 * 1024,
  4416. queueSize: 2,
  4417. leavePartsOnError: true,
  4418. };
  4419. bucket
  4420. .upload(params, options)
  4421. .on("httpUploadProgress", function (evt) {
  4422. //这里可以写进度条
  4423. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4424. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4425. itemTaskIndex
  4426. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4427. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4428. itemTaskIndex
  4429. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4430. _this.$forceUpdate();
  4431. })
  4432. .send(function (err, data) {
  4433. // loading.close();
  4434. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4435. itemTaskIndex
  4436. ].progress = 100;
  4437. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4438. itemTaskIndex
  4439. ].isFinishSize =
  4440. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4441. itemTaskIndex
  4442. ].isAllSize;
  4443. _this.$forceUpdate();
  4444. setTimeout(() => {
  4445. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4446. itemTaskIndex
  4447. ].proVisible = false;
  4448. _this.$forceUpdate();
  4449. }, 1000);
  4450. _this.inputShow = true;
  4451. if (err) {
  4452. // var a = _this.$refs.upload1.uploadFiles;
  4453. // a.splice(a.length - 1, a.length);
  4454. _this.$message.error("上传失败");
  4455. } else {
  4456. if (type == 2 || type == 3) {
  4457. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4458. itemTaskIndex
  4459. ].chapterData.push({
  4460. name: file.name,
  4461. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4462. // itemTaskIndex
  4463. // ].chapterData.length+1),
  4464. url: data.Location,
  4465. uid: file.uid,
  4466. type: type,
  4467. text: string,
  4468. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4469. // itemTaskIndex
  4470. // ].chapterData.length + 1),
  4471. });
  4472. _this.imgChange1(null, null, type, itemTaskIndex);
  4473. } else if (type == 4) {
  4474. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4475. itemTaskIndex
  4476. ].fileList1.push({
  4477. name: file.name,
  4478. url: data.Location,
  4479. uid: file.uid,
  4480. });
  4481. _this.imgChange1(null, null, type, itemTaskIndex);
  4482. } else if (type == 5) {
  4483. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4484. itemTaskIndex
  4485. ].homeworkList.push({
  4486. name: file.name,
  4487. url: data.Location,
  4488. uid: file.uid,
  4489. });
  4490. _this.imgChange1(null, null, type, itemTaskIndex);
  4491. }
  4492. console.log(data.Location);
  4493. }
  4494. });
  4495. }
  4496. },
  4497. addunit() {
  4498. this.unitJson.push({
  4499. dyName: "", //单元标题
  4500. isUpdate: 1,
  4501. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4502. chapterInfo: [
  4503. {
  4504. isread: false,
  4505. chapterid: this.guid(),
  4506. title: "",
  4507. courseName: "",
  4508. taskJson: [
  4509. {
  4510. task: "",
  4511. taskDetail: "",
  4512. chapterData: [],
  4513. toolText: "",
  4514. toolChoose: [
  4515. {
  4516. tool: [],
  4517. toolDetail: "",
  4518. toolType: 0,
  4519. askCount: 1,
  4520. askTitle: "",
  4521. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4522. },
  4523. ],
  4524. isShowTools: false,
  4525. askCount: 1,
  4526. isFold: 0,
  4527. askTitle: "",
  4528. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4529. checkJson: [{ checkCount: [], checkPerent: [] }],
  4530. homeworkList: [],
  4531. },
  4532. ],
  4533. itemCount: 1,
  4534. fileList1: [],
  4535. video: [],
  4536. testData: [],
  4537. pData: [],
  4538. templateArray: [],
  4539. },
  4540. ],
  4541. });
  4542. this.addindex = this.unitJson.length - 1;
  4543. setTimeout(() => {
  4544. this.unitIndex = this.unitJson.length - 1;
  4545. this.unitSet(this.unitIndex);
  4546. }, 0);
  4547. },
  4548. addToolFun(itemTaskIndex) {
  4549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4550. itemTaskIndex
  4551. ].toolChoose.push({
  4552. tool: [],
  4553. toolDetail: "",
  4554. toolType: 0,
  4555. askCount: 1,
  4556. askTitle: "",
  4557. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4558. });
  4559. },
  4560. addTaskBorder() {
  4561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4562. task: "",
  4563. taskDetail: "",
  4564. chapterData: [],
  4565. toolChoose: [
  4566. {
  4567. tool: [],
  4568. toolDetail: "",
  4569. toolType: 0,
  4570. askCount: 1,
  4571. askTitle: "",
  4572. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4573. },
  4574. ],
  4575. toolText: "",
  4576. isShowTools: false,
  4577. askCount: 1,
  4578. isFold: 0,
  4579. askTitle: "",
  4580. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4581. checkJson: [{ checkCount: [], checkPerent: [] }],
  4582. homeworkList: [],
  4583. });
  4584. },
  4585. add(e, i) {
  4586. var el = e.currentTarget;
  4587. el.getElementsByTagName("input")[0].click();
  4588. },
  4589. fold(i, e, type) {
  4590. var a = e.currentTarget.parentElement.parentElement;
  4591. var b = e.currentTarget.parentElement;
  4592. if (type == 1) {
  4593. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4594. a.className += " smallTaskBorder";
  4595. b.className += " funBlockTop";
  4596. } else {
  4597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4598. a.className = "taskBorder";
  4599. b.className = "funBlock";
  4600. }
  4601. console.log(e);
  4602. },
  4603. fold2(i) {
  4604. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  4605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  4606. } else {
  4607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  4608. }
  4609. setTimeout(() => {
  4610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  4611. setTimeout(() => {
  4612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  4613. }, 0);
  4614. }, 0);
  4615. this.$forceUpdate();
  4616. },
  4617. foldC(i) {
  4618. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  4619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  4620. } else {
  4621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  4622. }
  4623. this.$forceUpdate();
  4624. },
  4625. fold3(i, ti) {
  4626. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  4627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  4628. } else {
  4629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  4630. }
  4631. this.$forceUpdate();
  4632. },
  4633. deleteHomeworkBox(unitIndex, index, i) {
  4634. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4635. this.taskCount
  4636. ].homeworkList.splice(i, 1);
  4637. },
  4638. getStudent() {
  4639. let params = {
  4640. oid: this.oid,
  4641. cu: "",
  4642. cn: this.searchPeople,
  4643. };
  4644. this.ajax
  4645. .get(this.$store.state.api + "selectStudentAdd", params)
  4646. .then((res) => {
  4647. this.studentJuri = res.data[0];
  4648. })
  4649. .catch((err) => {
  4650. this.isLoading = false;
  4651. console.error(err);
  4652. });
  4653. },
  4654. getTeacher() {
  4655. let params = {
  4656. org:
  4657. this.org && this.org != "undefined" && this.org != "null"
  4658. ? this.org
  4659. : "",
  4660. oid: this.oid,
  4661. cu: "",
  4662. cn: this.searchTN,
  4663. page: this.page,
  4664. pageSize: this.pageSize,
  4665. };
  4666. this.ajax
  4667. .get(
  4668. this.$store.state.api +
  4669. (this.org && this.org != "undefined" && this.org != "null"
  4670. ? "selectUserByOidS2"
  4671. : "selectUserByOidS2"),
  4672. params
  4673. )
  4674. .then((res) => {
  4675. let teacherJuri = res.data[0];
  4676. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  4677. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  4678. for (var i = 0; i < teacherJuri.length; i++) {
  4679. if (teacherJuri[i].userid == this.userid) {
  4680. teacherJuri.splice(i, 1);
  4681. break;
  4682. }
  4683. }
  4684. this.teacherJuri = teacherJuri;
  4685. })
  4686. .catch((err) => {
  4687. console.error(err);
  4688. });
  4689. },
  4690. searchStudent() {
  4691. this.getStudent();
  4692. },
  4693. selectGrage() {
  4694. let params = {
  4695. oid: this.oid,
  4696. };
  4697. this.ajax
  4698. .get(this.$store.state.api + "selectGrageBySchool", params)
  4699. .then((res) => {
  4700. this.gradeList = res.data[0];
  4701. })
  4702. .catch((err) => {
  4703. this.isLoading = false;
  4704. console.error(err);
  4705. });
  4706. },
  4707. //获取班级列表
  4708. getClass() {
  4709. let params = {
  4710. oid: this.oid,
  4711. gid: this.gradeId,
  4712. cn: this.classSearch,
  4713. };
  4714. this.ajax
  4715. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  4716. .then((res) => {
  4717. if (!this.grade.length) {
  4718. this.grade = res.data[0];
  4719. }
  4720. this.grade2 = res.data[0];
  4721. this.classJuri = res.data[0];
  4722. })
  4723. .catch((err) => {
  4724. this.isLoading = false;
  4725. console.error(err);
  4726. });
  4727. },
  4728. CourseType2Change(val) {
  4729. this.pTypeCheck = [];
  4730. for (var i = 0; i < this.CourseType2.length; i++) {
  4731. let typeA = this.CourseType2[i];
  4732. if (val.indexOf(typeA.name) != -1) {
  4733. this.pTypeCheck.push(...typeA.id);
  4734. }
  4735. }
  4736. },
  4737. getChapterData(e, i, j, ic, type) {
  4738. e.stopPropagation();
  4739. this.updataC = true;
  4740. this.icc = ic;
  4741. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4742. console.log("还不能下载图片喔");
  4743. }
  4744. },
  4745. deleteChapterData(e, i, j, ic, taskI) {
  4746. e.stopPropagation();
  4747. let _this = this;
  4748. _this
  4749. .$confirm("确定删除此项?", "提示", {
  4750. confirmButtonText: "确定",
  4751. cancelButtonText: "取消",
  4752. type: "warning",
  4753. })
  4754. .then(() => {
  4755. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4756. })
  4757. .catch(() => {
  4758. return;
  4759. });
  4760. },
  4761. updataVideoT(e, i, j, ic) {
  4762. // e.stopPropagation();
  4763. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4764. // ic
  4765. // ].name = JSON.parse(JSON.stringify(e.target.value));
  4766. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4767. ic
  4768. ].name;
  4769. this.taskCount = j;
  4770. this.lineCount = ic;
  4771. this.dialogVisibleupdataVideoT = true;
  4772. this.$forceUpdate();
  4773. },
  4774. updataVideoC() {
  4775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  4776. this.dialogVisibleupdataVideoT = false;
  4777. this.$forceUpdate();
  4778. },
  4779. upCd(e, i, j, taskCount, ic) {
  4780. e.stopPropagation();
  4781. if (ic == 0) {
  4782. return;
  4783. }
  4784. var a =
  4785. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4786. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4787. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4788. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4789. this.$forceUpdate();
  4790. },
  4791. downCd(e, i, j, taskCount, ic) {
  4792. e.stopPropagation();
  4793. if (
  4794. ic ==
  4795. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4796. 1
  4797. ) {
  4798. return;
  4799. }
  4800. var a =
  4801. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4802. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4803. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4804. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4805. this.$forceUpdate();
  4806. },
  4807. addWork(type) {
  4808. let cPan = 1;
  4809. for (var i = 0; i < this.unitJson.length; i++) {
  4810. for (
  4811. var j = 0;
  4812. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4813. j++
  4814. ) {
  4815. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4816. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4817. if (
  4818. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4819. ) {
  4820. for (
  4821. var z = 0;
  4822. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4823. z++
  4824. ) {
  4825. if (
  4826. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4827. .length
  4828. ) {
  4829. this.$message.error("请把工具添加完整");
  4830. cPan = 2;
  4831. break;
  4832. }
  4833. }
  4834. }
  4835. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4836. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4837. i
  4838. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4839. return ele.value != "";
  4840. });
  4841. }
  4842. }
  4843. }
  4844. this.inputShow = true;
  4845. if (cPan == 2) {
  4846. return;
  4847. }
  4848. this.isLoading2 = true
  4849. for (var i = 0; i < this.unitJson.length; i++) {
  4850. delete this.unitJson[i].isUpdate;
  4851. }
  4852. let params = [
  4853. {
  4854. uid: this.userid,
  4855. title: this.courseName.replace(/%/g, "%25"),
  4856. brief: this.courseText.replace(/%/g, "%25"),
  4857. cover:
  4858. this.cover.length > 0
  4859. ? JSON.stringify(this.cover)
  4860. : JSON.stringify([
  4861. {
  4862. name: "noBanner.jpg",
  4863. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4864. uid: 1656409780264,
  4865. status: "success",
  4866. },
  4867. ]),
  4868. evaId: this.evalua,
  4869. astudent:
  4870. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4871. see: this.isTeacherSee == true ? 1 : 0,
  4872. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4873. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4874. courseType: JSON.stringify(this.courseTypeId),
  4875. ateacher:
  4876. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4877. inviteCode: JSON.stringify(this.inviteCode),
  4878. },
  4879. ];
  4880. this.ajax
  4881. .post(this.$store.state.api + "addSynergyCourse", params)
  4882. .then((res) => {
  4883. this.isLoading2 = false
  4884. console.log(this.steps);
  4885. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4886. this.$message({
  4887. message: "新增成功",
  4888. type: "success",
  4889. });
  4890. // }
  4891. this.number = res.data.ordernumber;
  4892. this.courseId = res.data.courseId;
  4893. this.cid = res.data.courseId;
  4894. this.courseUserid = this.userid;
  4895. this.islogin = true;
  4896. if (type != 2) {
  4897. this.steps = 4;
  4898. } else {
  4899. this.selectCourseDetail222();
  4900. }
  4901. })
  4902. .catch((err) => {
  4903. this.$message.error("网络不佳");
  4904. console.error(err);
  4905. });
  4906. },
  4907. selectCourseDetail222() {
  4908. let params = {
  4909. cid: this.cid,
  4910. };
  4911. this.ajax
  4912. .get(this.$store.state.api + "select_synergy", params)
  4913. .then((res) => {
  4914. this.courseDetail = res.data[0][0]
  4915. });
  4916. },
  4917. goCourse() {
  4918. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4919. },
  4920. updateWork2() {
  4921. let _unitIndex = this.unitIndex;
  4922. let cPan = 1;
  4923. for (
  4924. var j = 0;
  4925. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4926. j++
  4927. ) {
  4928. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4929. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4930. j
  4931. ].proVisible2 = false;
  4932. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4933. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4934. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4935. (ele) => {
  4936. return ele.value != "";
  4937. }
  4938. );
  4939. }
  4940. }
  4941. this.inputShow = true;
  4942. if (cPan == 2) {
  4943. return;
  4944. }
  4945. let params = [
  4946. {
  4947. cid: this.cid,
  4948. chapters: JSON.stringify(this.unitJson),
  4949. uid: this.userid,
  4950. unitIndex: _unitIndex,
  4951. },
  4952. ];
  4953. this.ajax
  4954. .post(this.$store.state.api + "updateWorkNew4", params)
  4955. .then((res) => {
  4956. this.$message({
  4957. message: "修改成功",
  4958. type: "success",
  4959. });
  4960. this.courseId = this.cid;
  4961. })
  4962. .catch((err) => {
  4963. this.$message.error("网络不佳");
  4964. console.error(err);
  4965. });
  4966. },
  4967. updateWork(type) {
  4968. let that =this;
  4969. let cPan = 1;
  4970. for (var i = 0; i < this.unitJson.length; i++) {
  4971. for (
  4972. var j = 0;
  4973. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4974. j++
  4975. ) {
  4976. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4977. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4978. if (
  4979. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4980. ) {
  4981. for (
  4982. var z = 0;
  4983. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4984. z++
  4985. ) {
  4986. if (
  4987. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4988. .length
  4989. ) {
  4990. this.$message.error("请把工具添加完整");
  4991. cPan = 2;
  4992. break;
  4993. }
  4994. }
  4995. }
  4996. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4997. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4998. i
  4999. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5000. return ele.value != "";
  5001. });
  5002. }
  5003. }
  5004. }
  5005. this.inputShow = true;
  5006. if (cPan == 2) {
  5007. return;
  5008. }
  5009. for (var i = 0; i < this.unitJson.length; i++) {
  5010. delete this.unitJson[i].isUpdate;
  5011. }
  5012. let params = [
  5013. {
  5014. cid: this.cid,
  5015. title: this.courseName.replace(/%/g, "%25"),
  5016. brief: this.courseText.replace(/%/g, "%25"),
  5017. cover:
  5018. this.cover.length > 0
  5019. ? JSON.stringify(this.cover)
  5020. : JSON.stringify([
  5021. {
  5022. name: "noBanner.jpg",
  5023. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5024. uid: 1656409780264,
  5025. status: "success",
  5026. },
  5027. ]),
  5028. evaId: this.evalua,
  5029. astudent:
  5030. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5031. see: this.isTeacherSee == true ? 1 : 0,
  5032. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5033. template: this.myWord != "undefined" ? this.myWord : [],
  5034. uid: this.userid,
  5035. courseType: JSON.stringify(this.courseTypeId),
  5036. ateacher:
  5037. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5038. inviteCode: JSON.stringify(this.inviteCode),
  5039. },
  5040. ];
  5041. this.ajax
  5042. .post(this.$store.state.api + "updateSynergy", params)
  5043. .then((res) => {
  5044. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5045. that.open(that.cid,that.userid);
  5046. if (this.cidType == 1) {
  5047. this.$message({
  5048. message: "修改成功",
  5049. type: "success",
  5050. });
  5051. } else {
  5052. this.$message({
  5053. message: "新增成功",
  5054. type: "success",
  5055. });
  5056. }
  5057. // }
  5058. this.number = this.nbOrder;
  5059. this.courseId = this.cid;
  5060. if (type != 2) {
  5061. this.steps = 4;
  5062. }
  5063. })
  5064. .catch((err) => {
  5065. this.$message.error("网络不佳");
  5066. console.error(err);
  5067. });
  5068. },
  5069. open(cid, uid) {
  5070. window.parent.postMessage(
  5071. {
  5072. tools: "opencCscl",
  5073. cid: cid,
  5074. gid: '',
  5075. },
  5076. "*"
  5077. );
  5078. },
  5079. guid() {
  5080. var _num,
  5081. i,
  5082. _guid = "";
  5083. for (i = 0; i < 32; i++) {
  5084. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5085. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5086. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5087. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5088. _guid += "-";
  5089. }
  5090. }
  5091. return _guid;
  5092. },
  5093. insertWord() {
  5094. this.dialogVisible1 = true;
  5095. this.updateBoolean2 = false;
  5096. this.tTitle = "";
  5097. this.tdetail = "";
  5098. },
  5099. addWord() {
  5100. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5101. name: this.tTitle,
  5102. content: this.tdetail,
  5103. uid: this.guid(),
  5104. });
  5105. this.dialogVisible1 = false;
  5106. },
  5107. upWord() { },
  5108. selectWord(uid, i, c) {
  5109. this.dialogVisible1 = true;
  5110. this.updateBoolean2 = true;
  5111. if (
  5112. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5113. ) {
  5114. this.tTitle =
  5115. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5116. this.tdetail =
  5117. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5118. }
  5119. },
  5120. isAddPP() {
  5121. if (this.checkboxList.length > 0) {
  5122. this.$message({
  5123. message: "添加成功",
  5124. type: "success",
  5125. });
  5126. this.dialogVisible3 = false;
  5127. } else {
  5128. this.$message({
  5129. message: "请添加课程成员",
  5130. type: "error",
  5131. });
  5132. }
  5133. },
  5134. isAddClass() {
  5135. this.dialogVisibleClass = false;
  5136. },
  5137. isAddPPTeacher() {
  5138. this.page = 0;
  5139. this.dialogVisibleMember = false;
  5140. this.setMan();
  5141. this.checkAll=false;
  5142. this.isIndeterminate=true;
  5143. },
  5144. getTemplate() {
  5145. this.ajax
  5146. .get(this.$store.state.api + "getCourseTemplateT", "")
  5147. .then((res) => {
  5148. this.templateArray = res.data[0];
  5149. this.getTemplateOid();
  5150. this.$forceUpdate();
  5151. })
  5152. .catch((err) => { });
  5153. },
  5154. getTemplateOid() {
  5155. let params = {
  5156. oid: this.oid,
  5157. };
  5158. this.ajax
  5159. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5160. .then((res) => {
  5161. if (res.data[0].length) {
  5162. this.templateArray = [...res.data[0], ...this.templateArray];
  5163. }
  5164. this.getTemplateOrg();
  5165. this.$forceUpdate();
  5166. })
  5167. .catch((err) => { });
  5168. },
  5169. getTemplateOrg() {
  5170. let params = {
  5171. oid: this.org,
  5172. };
  5173. this.ajax
  5174. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5175. .then((res) => {
  5176. if (res.data[0].length) {
  5177. this.templateArray = [...res.data[0], ...this.templateArray];
  5178. }
  5179. this.$forceUpdate();
  5180. })
  5181. .catch((err) => { });
  5182. },
  5183. clearChoose() {
  5184. this.clearArray.splice(this.templateC.id, 1);
  5185. this.dialogVisible2 = false;
  5186. },
  5187. clearAttText() {
  5188. this.AttText = {
  5189. title: "",
  5190. text: "",
  5191. };
  5192. this.dialogVisible6 = false;
  5193. },
  5194. clearLine() {
  5195. this.line = "";
  5196. this.dialogVisible7 = false;
  5197. },
  5198. checkTemplate(res) {
  5199. let _this = this;
  5200. _this
  5201. .$confirm("确定选择此模板吗?", "提示", {
  5202. confirmButtonText: "确定",
  5203. cancelButtonText: "取消",
  5204. type: "warning",
  5205. })
  5206. .then(() => {
  5207. _this.unitJson = JSON.parse(res.chapters);
  5208. _this.steps++;
  5209. setTimeout(() => {
  5210. this.checkEva(this.checkId);
  5211. }, 1000);
  5212. })
  5213. .catch(() => {
  5214. return;
  5215. });
  5216. },
  5217. checkTemplate1(w) {
  5218. this.steps++;
  5219. },
  5220. checkTemplate2() {
  5221. let _this = this;
  5222. _this
  5223. .$confirm("确定选择空模板吗?", "提示", {
  5224. confirmButtonText: "确定",
  5225. cancelButtonText: "取消",
  5226. type: "warning",
  5227. })
  5228. .then(() => {
  5229. _this.unitIndex = 0;
  5230. _this.unitJson = [
  5231. {
  5232. dyName: "", //单元标题
  5233. chapterInfo: [
  5234. {
  5235. isread: false,
  5236. chapterid: this.guid(),
  5237. title: "",
  5238. courseName: "",
  5239. taskJson: [
  5240. {
  5241. task: "",
  5242. taskDetail: "",
  5243. chapterData: [],
  5244. toolText: "",
  5245. toolChoose: [
  5246. {
  5247. tool: [],
  5248. toolDetail: "",
  5249. toolType: 0,
  5250. askCount: 1,
  5251. askTitle: "",
  5252. askJson: [
  5253. { askstitle: "", askItem: 1, checkList: [] },
  5254. ],
  5255. },
  5256. ],
  5257. isShowTools: false,
  5258. askCount: 1,
  5259. isFold: 0,
  5260. askTitle: "",
  5261. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5262. checkJson: [{ checkCount: [], checkPerent: [] }],
  5263. homeworkList: [],
  5264. },
  5265. ],
  5266. itemCount: 1,
  5267. fileList1: [],
  5268. video: [],
  5269. testData: [],
  5270. pData: [],
  5271. templateArray: [],
  5272. },
  5273. ],
  5274. },
  5275. ];
  5276. this.steps++;
  5277. this.updateWork();
  5278. })
  5279. .catch(() => {
  5280. return;
  5281. });
  5282. },
  5283. checkTemplate3() {
  5284. let _this = this;
  5285. _this
  5286. .$confirm("确定选择简易模式吗?", "提示", {
  5287. confirmButtonText: "确定",
  5288. cancelButtonText: "取消",
  5289. type: "warning",
  5290. })
  5291. .then(() => {
  5292. _this.unitIndex = 0;
  5293. _this.unitJson = [
  5294. {
  5295. dyName: "", //单元标题
  5296. easy: 1,
  5297. chapterInfo: [
  5298. {
  5299. isread: false,
  5300. chapterid: this.guid(),
  5301. title: "",
  5302. courseName: "",
  5303. taskJson: [
  5304. {
  5305. task: "",
  5306. taskDetail: "",
  5307. chapterData: [],
  5308. toolText: "",
  5309. toolChoose: [
  5310. {
  5311. tool: [],
  5312. toolDetail: "",
  5313. toolType: 0,
  5314. askCount: 1,
  5315. askTitle: "",
  5316. askJson: [
  5317. { askstitle: "", askItem: 1, checkList: [] },
  5318. ],
  5319. },
  5320. ],
  5321. isShowTools: false,
  5322. askCount: 1,
  5323. isFold: 0,
  5324. askTitle: "",
  5325. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5326. checkJson: [{ checkCount: [], checkPerent: [] }],
  5327. homeworkList: [],
  5328. },
  5329. ],
  5330. itemCount: 1,
  5331. fileList1: [],
  5332. video: [],
  5333. testData: [],
  5334. pData: [],
  5335. templateArray: [],
  5336. },
  5337. ],
  5338. },
  5339. ];
  5340. this.steps++;
  5341. this.updateWork();
  5342. })
  5343. .catch(() => {
  5344. return;
  5345. });
  5346. },
  5347. checkTemplate4() {
  5348. let _this = this;
  5349. _this
  5350. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5351. confirmButtonText: "确定",
  5352. cancelButtonText: "取消",
  5353. type: "warning",
  5354. })
  5355. .then(() => {
  5356. _this.unitIndex = 0;
  5357. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5358. this.steps++;
  5359. this.updateWork();
  5360. })
  5361. .catch(() => {
  5362. return;
  5363. });
  5364. },
  5365. wordNext() {
  5366. this.dialogVisible2 = false;
  5367. },
  5368. isAddOrUpdateAttText() {
  5369. if (this.AttTextType == 0) {
  5370. this.addAttTextMessage();
  5371. } else {
  5372. this.updateAttText();
  5373. }
  5374. },
  5375. isAddOrUpdateLine() {
  5376. if (!this.lineTitle) {
  5377. this.$message.error("请填写链接标题");
  5378. return;
  5379. }
  5380. if (this.lineType == 0) {
  5381. this.addLine();
  5382. } else {
  5383. this.updateLine();
  5384. }
  5385. },
  5386. addAttTextMessage() {
  5387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5388. this.taskCount
  5389. ].chapterData.push({
  5390. name: this.AttText.title,
  5391. url: this.AttText.text,
  5392. type: 6,
  5393. });
  5394. this.imgChange1(null, null, 6, this.taskCount);
  5395. this.dialogVisible6 = false;
  5396. },
  5397. selectAttText(itemTaskIndex, i) {
  5398. this.AttText.title =
  5399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5400. itemTaskIndex
  5401. ].chapterData[i].name;
  5402. this.AttText.text =
  5403. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5404. itemTaskIndex
  5405. ].chapterData[i].url;
  5406. this.taskCount = itemTaskIndex;
  5407. this.AttTextIndex = i;
  5408. this.AttTextType = 1;
  5409. this.dialogVisible6 = true;
  5410. },
  5411. updateAttText() {
  5412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5413. this.taskCount
  5414. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5416. this.taskCount
  5417. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5418. this.dialogVisible6 = false;
  5419. },
  5420. addLine() {
  5421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5422. this.lineCount
  5423. ].chapterData.push({
  5424. name: "链接",
  5425. title: this.lineTitle,
  5426. url: this.line,
  5427. type: 8,
  5428. });
  5429. this.imgChange1(null, null, 8, this.lineCount);
  5430. this.dialogVisible7 = false;
  5431. },
  5432. selectLine(itemTaskIndex, i) {
  5433. this.line =
  5434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5435. itemTaskIndex
  5436. ].chapterData[i].url;
  5437. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5438. itemTaskIndex
  5439. ].chapterData[i].title
  5440. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5441. .chapterData[i].title
  5442. : "";
  5443. this.taskCount = itemTaskIndex;
  5444. this.lineCount = i;
  5445. this.lineType = 1;
  5446. this.dialogVisible7 = true;
  5447. },
  5448. openUpdateSource(itemTaskIndex, i) {
  5449. this.sourceData = {}
  5450. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  5451. this.sourceData[source.id] = {}
  5452. this.sourceData[source.id].name = source.title
  5453. this.sourceData[source.id].url = source.url
  5454. this.dialogVisibleSource = true;
  5455. this.updateSourcePan = true;
  5456. this.taskCount = itemTaskIndex;
  5457. this.lineCount = i;
  5458. },
  5459. updateLine() {
  5460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5461. this.taskCount
  5462. ].chapterData[this.lineCount].url = this.line;
  5463. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5464. this.taskCount
  5465. ].chapterData[this.lineCount].title = this.lineTitle;
  5466. this.dialogVisible7 = false;
  5467. },
  5468. addPP() {
  5469. this.dialogVisible3 = true;
  5470. },
  5471. goTo(path) {
  5472. this.$router.push(path);
  5473. },
  5474. openTools(itemTaskIndex, i, toolIndex) {
  5475. this.toolIndex = toolIndex;
  5476. this.taskCount = itemTaskIndex;
  5477. if (i == 4) {
  5478. if (toolIndex == null) {
  5479. var a =
  5480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5481. .chapterData;
  5482. for (var i = 0; i < a.length; i++) {
  5483. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5484. this.askJson =
  5485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5486. itemTaskIndex
  5487. ].chapterData[i].askJson;
  5488. }
  5489. }
  5490. } else {
  5491. this.askJson = JSON.parse(
  5492. JSON.stringify(
  5493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5494. itemTaskIndex
  5495. ].toolChoose[toolIndex]
  5496. )
  5497. );
  5498. }
  5499. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  5500. this.dialogVisible5 = true;
  5501. } else if (i == 45) {
  5502. if (
  5503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5504. .toolChoose[toolIndex].testJson
  5505. ) {
  5506. this.testJson = JSON.parse(
  5507. JSON.stringify(
  5508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5509. itemTaskIndex
  5510. ].toolChoose[toolIndex].testJson
  5511. )
  5512. );
  5513. } else {
  5514. var testJson = {
  5515. testCount: 1,
  5516. testTitle: "",
  5517. testJson: [
  5518. {
  5519. teststitle: "",
  5520. testItem: 1,
  5521. checkList: [],
  5522. timuList: [],
  5523. answer: [],
  5524. type: "1",
  5525. },
  5526. ],
  5527. };
  5528. this.testJson = testJson;
  5529. }
  5530. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  5531. this.dialogVisibleChoice = true;
  5532. } else if (i == 47) {
  5533. if (
  5534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5535. .toolChoose[toolIndex].sentenceList
  5536. ) {
  5537. this.sentenceList = JSON.parse(
  5538. JSON.stringify(
  5539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5540. itemTaskIndex
  5541. ].toolChoose[toolIndex].sentenceList
  5542. )
  5543. );
  5544. } else {
  5545. var sentenceList = [
  5546. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5547. ];
  5548. this.sentenceList = sentenceList;
  5549. }
  5550. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  5551. this.dialogVisibleSentence = true;
  5552. } else if (i == 48) {
  5553. if (
  5554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5555. .toolChoose[toolIndex].tableJson
  5556. ) {
  5557. this.tableJson = JSON.parse(
  5558. JSON.stringify(
  5559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5560. itemTaskIndex
  5561. ].toolChoose[toolIndex].tableJson
  5562. )
  5563. );
  5564. } else {
  5565. var tableJson = { text: "" };
  5566. this.tableJson = tableJson;
  5567. }
  5568. this.dialogVisibleTable = true;
  5569. } else if (i == 52) {
  5570. if (
  5571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5572. .toolChoose[toolIndex].wordJson
  5573. ) {
  5574. this.wordJson = JSON.parse(
  5575. JSON.stringify(
  5576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5577. itemTaskIndex
  5578. ].toolChoose[toolIndex].wordJson
  5579. )
  5580. );
  5581. } else {
  5582. var wordJson = { text: "" };
  5583. this.wordJson = wordJson;
  5584. }
  5585. this.dialogVisibleWord = true;
  5586. // else if (i == 50) {
  5587. // if (
  5588. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5589. // .toolChoose[toolIndex].uploadJson
  5590. // ) {
  5591. // this.uploadJson = JSON.parse(
  5592. // JSON.stringify(
  5593. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5594. // itemTaskIndex
  5595. // ].toolChoose[toolIndex].uploadJson
  5596. // )
  5597. // );
  5598. // } else {
  5599. // var uploadJson = [];
  5600. // this.uploadJson = uploadJson;
  5601. // }
  5602. // this.dialogVisibleMoreUpload = true;
  5603. // }
  5604. } else if (i == 10) {
  5605. if (
  5606. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5607. .toolChoose[toolIndex].preTime
  5608. ) {
  5609. this.preTime = JSON.parse(
  5610. JSON.stringify(
  5611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5612. itemTaskIndex
  5613. ].toolChoose[toolIndex].preTime
  5614. )
  5615. );
  5616. } else {
  5617. var preTime = 0;
  5618. this.preTime = preTime;
  5619. }
  5620. this.dialogVisiblePreTime = true;
  5621. } else if (i == 49) {
  5622. if (
  5623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5624. .toolChoose[toolIndex].groupJson
  5625. ) {
  5626. this.groupJson = JSON.parse(
  5627. JSON.stringify(
  5628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5629. itemTaskIndex
  5630. ].toolChoose[toolIndex].groupJson
  5631. )
  5632. );
  5633. } else {
  5634. var groupJson = {
  5635. group: [{ name: "第1组" }],
  5636. number: undefined,
  5637. islock: 1,
  5638. };
  5639. this.groupJson = groupJson;
  5640. }
  5641. this.dialogVisibleGroup = true;
  5642. } else if (i == 62) {
  5643. if (
  5644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5645. .toolChoose[toolIndex].videoJson
  5646. ) {
  5647. this.videoJson = JSON.parse(
  5648. JSON.stringify(
  5649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5650. itemTaskIndex
  5651. ].toolChoose[toolIndex].videoJson
  5652. )
  5653. );
  5654. } else {
  5655. var videoJson = {
  5656. video: "",
  5657. setting: [],
  5658. };
  5659. this.videoJson = videoJson;
  5660. }
  5661. this.dialogVisibleVideo = true;
  5662. } else if (i == 15) {
  5663. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5664. itemTaskIndex
  5665. ].toolChoose[toolIndex].answerQ
  5666. ? JSON.parse(
  5667. JSON.stringify(
  5668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5669. itemTaskIndex
  5670. ].toolChoose[toolIndex].answerQ
  5671. )
  5672. )
  5673. : "";
  5674. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  5675. this.dialogVisible8 = true;
  5676. } else if (i == 40) {
  5677. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5678. itemTaskIndex
  5679. ].toolChoose[toolIndex].rateJson
  5680. ? JSON.parse(
  5681. JSON.stringify(
  5682. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5683. itemTaskIndex
  5684. ].toolChoose[toolIndex].rateJson
  5685. )
  5686. )
  5687. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5688. this.selectSteps = 1;
  5689. this.dialogVisibleRate = true;
  5690. } else if (i == 42) {
  5691. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5692. itemTaskIndex
  5693. ].toolChoose[toolIndex].answerQ
  5694. ? JSON.parse(
  5695. JSON.stringify(
  5696. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5697. itemTaskIndex
  5698. ].toolChoose[toolIndex].answerQ
  5699. )
  5700. )
  5701. : "";
  5702. this.dialogVisibleMp3 = true;
  5703. } else if (i == 41) {
  5704. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5705. itemTaskIndex
  5706. ].toolChoose[toolIndex].selectJson
  5707. ? JSON.parse(
  5708. JSON.stringify(
  5709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5710. itemTaskIndex
  5711. ].toolChoose[toolIndex].selectJson
  5712. )
  5713. )
  5714. : { url: "", select: [], answer: [] };
  5715. this.selectSteps = 1;
  5716. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  5717. this.dialogVisibleSelect = true;
  5718. } else if (i == 3) {
  5719. if (!this.cid) {
  5720. this.$message.error(
  5721. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5722. );
  5723. return;
  5724. }
  5725. window.parent.postMessage(
  5726. {
  5727. tools: "3y",
  5728. cid: this.cid,
  5729. stage: this.unitIndex,
  5730. task: itemTaskIndex,
  5731. tool: toolIndex,
  5732. },
  5733. "*"
  5734. );
  5735. } else if (i == 1) {
  5736. if (!this.cid) {
  5737. this.$message.error(
  5738. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5739. );
  5740. return;
  5741. }
  5742. window.parent.postMessage(
  5743. {
  5744. tools: "1y",
  5745. cid: this.cid,
  5746. stage: this.unitIndex,
  5747. task: itemTaskIndex,
  5748. tool: toolIndex,
  5749. },
  5750. "*"
  5751. );
  5752. } else if (i == 57) {
  5753. if (!this.cid) {
  5754. this.$message.error(
  5755. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5756. );
  5757. return;
  5758. }
  5759. window.parent.postMessage(
  5760. {
  5761. tools: "57y",
  5762. cid: this.cid,
  5763. stage: this.unitIndex,
  5764. task: itemTaskIndex,
  5765. tool: toolIndex,
  5766. },
  5767. "*"
  5768. );
  5769. }
  5770. },
  5771. chapAddTools(i) {
  5772. if (this.chapTools[0].tools.length == 0) {
  5773. this.chapTools[0].tools.push(i);
  5774. } else {
  5775. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5776. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5777. } else {
  5778. this.chapTools[0].tools.push(i);
  5779. }
  5780. }
  5781. this.$forceUpdate();
  5782. },
  5783. addChaptersDataTools() {
  5784. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5786. this.chapCount
  5787. ].chapterData.push({
  5788. name: this.chapTools[0].toolDetail,
  5789. url: this.chapTools[0].tools,
  5790. type: 7,
  5791. askJson: this.askJson,
  5792. });
  5793. } else {
  5794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5795. this.chapCount
  5796. ].chapterData.push({
  5797. name: this.chapTools[0].toolDetail,
  5798. url: this.chapTools[0].tools,
  5799. type: 7,
  5800. });
  5801. }
  5802. this.imgChange1(null, null, 7, this.chapCount);
  5803. this.dialogVisible4 = false;
  5804. },
  5805. addTools(i, itemTaskIndex, toolIndex) {
  5806. // if (
  5807. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5808. // .toolChoose[toolIndex].tool.length == 0
  5809. // ) {
  5810. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5811. // itemTaskIndex
  5812. // ].toolChoose[toolIndex].tool.push(i);
  5813. // } else {
  5814. // if (
  5815. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5816. // itemTaskIndex
  5817. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5818. // ) {
  5819. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5820. // itemTaskIndex
  5821. // ].toolChoose[toolIndex].tool.splice(
  5822. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5823. // itemTaskIndex
  5824. // ].toolChoose[toolIndex].tool.indexOf(i),
  5825. // 1
  5826. // );
  5827. // } else {
  5828. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5829. // itemTaskIndex
  5830. // ].toolChoose[toolIndex].tool.push(i);
  5831. // }
  5832. // console.log(
  5833. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5834. // .toolChoose[toolIndex].tool
  5835. // );
  5836. // }
  5837. if (i == 4) {
  5838. if (
  5839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5840. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5841. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5842. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5844. .toolChoose[toolIndex].askJson[0].checkList < 2
  5845. ) {
  5846. this.openTools(itemTaskIndex, 4, toolIndex);
  5847. // this.$message({
  5848. // message: "请填写完整问卷内容",
  5849. // type: "error",
  5850. // });
  5851. return;
  5852. }
  5853. }
  5854. if (i == 45) {
  5855. if (
  5856. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5857. .toolChoose[toolIndex].testJson ||
  5858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5859. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5861. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5862. ) {
  5863. this.openTools(itemTaskIndex, 45, toolIndex);
  5864. // this.$message({
  5865. // message: "请填写完整问卷内容",
  5866. // type: "error",
  5867. // });
  5868. return;
  5869. }
  5870. }
  5871. if (i == 47) {
  5872. if (
  5873. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5874. .toolChoose[toolIndex].sentenceList ||
  5875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5876. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5877. ) {
  5878. this.openTools(itemTaskIndex, 47, toolIndex);
  5879. return;
  5880. }
  5881. }
  5882. // if (i == 48) {
  5883. // if (
  5884. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5885. // .toolChoose[toolIndex].tableJson
  5886. // ) {
  5887. // this.openTools(itemTaskIndex, 48, toolIndex);
  5888. // return;
  5889. // }
  5890. // }
  5891. // if (i == 50) {
  5892. // if (
  5893. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5894. // .toolChoose[toolIndex].uploadJson
  5895. // ) {
  5896. // this.openTools(itemTaskIndex, 50, toolIndex);
  5897. // return;
  5898. // }
  5899. // }
  5900. if (i == 49) {
  5901. if (
  5902. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5903. .toolChoose[toolIndex].groupJson
  5904. ) {
  5905. this.openTools(itemTaskIndex, 49, toolIndex);
  5906. return;
  5907. }
  5908. }
  5909. if (i == 62) {
  5910. if (
  5911. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5912. .toolChoose[toolIndex].videoJson
  5913. ) {
  5914. this.openTools(itemTaskIndex, 62, toolIndex);
  5915. return;
  5916. }
  5917. }
  5918. if (i == 15) {
  5919. if (
  5920. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5921. .toolChoose[toolIndex].answerQ ||
  5922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5923. .toolChoose[toolIndex].answerQ == ""
  5924. ) {
  5925. this.openTools(itemTaskIndex, 15, toolIndex);
  5926. // this.$message({
  5927. // message: "请填写问答内容",
  5928. // type: "error",
  5929. // });
  5930. return;
  5931. }
  5932. }
  5933. if (i == 40) {
  5934. if (
  5935. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5936. .toolChoose[toolIndex].rateJson ||
  5937. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5938. .toolChoose[toolIndex].rateJson.length
  5939. ) {
  5940. this.openTools(itemTaskIndex, 40, toolIndex);
  5941. return;
  5942. }
  5943. }
  5944. if (i == 41) {
  5945. if (
  5946. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5947. .toolChoose[toolIndex].selectJson ||
  5948. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5949. .toolChoose[toolIndex].selectJson.url == "" ||
  5950. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5951. .toolChoose[toolIndex].selectJson.select.length ||
  5952. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5953. .toolChoose[toolIndex].selectJson.answer.length
  5954. ) {
  5955. this.openTools(itemTaskIndex, 41, toolIndex);
  5956. return;
  5957. }
  5958. }
  5959. if (i == 42) {
  5960. if (
  5961. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5962. .toolChoose[toolIndex].answerQ ||
  5963. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5964. .toolChoose[toolIndex].answerQ == ""
  5965. ) {
  5966. this.openTools(itemTaskIndex, 42, toolIndex);
  5967. return;
  5968. }
  5969. }
  5970. if (
  5971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5972. .toolChoose[toolIndex].tool.length > 0
  5973. ) {
  5974. if (
  5975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5976. itemTaskIndex
  5977. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5978. ) {
  5979. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5980. itemTaskIndex
  5981. ].toolChoose[toolIndex].tool.splice(
  5982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5983. itemTaskIndex
  5984. ].toolChoose[toolIndex].tool.indexOf(i),
  5985. 1
  5986. );
  5987. } else {
  5988. // this.$message({
  5989. // message: "每个工具只能添加一个",
  5990. // type: "error",
  5991. // });
  5992. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5993. itemTaskIndex
  5994. ].toolChoose[toolIndex].tool = [];
  5995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5996. itemTaskIndex
  5997. ].toolChoose[toolIndex].tool.push(i);
  5998. }
  5999. } else {
  6000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6001. itemTaskIndex
  6002. ].toolChoose[toolIndex].tool.push(i);
  6003. }
  6004. this.$forceUpdate();
  6005. },
  6006. addAskList(index) {
  6007. this.askJson.askJson.splice(index + 1, 0, {
  6008. askstitle: "",
  6009. askItem: 1,
  6010. checkList: [],
  6011. })
  6012. this.askJson.askCount++;
  6013. },
  6014. addTestList(index) {
  6015. this.testJson.testJson.splice(index + 1, 0, {
  6016. teststitle: "",
  6017. testItem: 1,
  6018. checkList: [],
  6019. timuList: [],
  6020. answer: [],
  6021. type: "1",
  6022. })
  6023. this.testJson.testCount++;
  6024. },
  6025. deleteAskList(index) {
  6026. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6027. this.askJson.askJson.splice(index, 1);
  6028. this.askJson.askCount--;
  6029. } else {
  6030. let _this = this;
  6031. _this
  6032. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6033. confirmButtonText: "确定",
  6034. cancelButtonText: "取消",
  6035. type: "warning",
  6036. })
  6037. .then(() => {
  6038. _this.askJson.askJson.splice(index, 1);
  6039. _this.askJson.askCount--;
  6040. })
  6041. .catch(() => {
  6042. return;
  6043. });
  6044. }
  6045. },
  6046. deleteTestList(index) {
  6047. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6048. this.testJson.testJson.splice(index, 1);
  6049. this.testJson.testCount--;
  6050. } else {
  6051. let _this = this;
  6052. _this
  6053. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6054. confirmButtonText: "确定",
  6055. cancelButtonText: "取消",
  6056. type: "warning",
  6057. })
  6058. .then(() => {
  6059. _this.testJson.testJson.splice(index, 1);
  6060. _this.testJson.testCount--;
  6061. })
  6062. .catch(() => {
  6063. return;
  6064. });
  6065. }
  6066. },
  6067. askMove(type, index) {
  6068. if (type == 1) {
  6069. if (index > 0) {
  6070. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  6071. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6072. this.askJson.askJson[index - 1] = b;
  6073. this.askJson.askJson[index] = a;
  6074. }
  6075. } else {
  6076. if (
  6077. index < this.askJson.askJson.length - 1
  6078. ) {
  6079. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  6080. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6081. this.askJson.askJson[index + 1] = b;
  6082. this.askJson.askJson[index] = a;
  6083. }
  6084. }
  6085. this.$forceUpdate();
  6086. },
  6087. checkMove(type, index, checkIndex) {
  6088. if (type == 1) {
  6089. if (checkIndex > 0) {
  6090. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  6091. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6092. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  6093. this.askJson.askJson[index].checkList[checkIndex] = a;
  6094. }
  6095. } else {
  6096. if (
  6097. checkIndex < this.askJson.askJson[index].checkList.length - 1
  6098. ) {
  6099. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  6100. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6101. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  6102. this.askJson.askJson[index].checkList[checkIndex] = a;
  6103. }
  6104. }
  6105. this.$forceUpdate();
  6106. },
  6107. testMove(type, index) {
  6108. if (type == 1) {
  6109. if (index > 0) {
  6110. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  6111. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6112. this.testJson.testJson[index - 1] = b;
  6113. this.testJson.testJson[index] = a;
  6114. }
  6115. } else {
  6116. if (
  6117. index < this.testJson.testJson.length - 1
  6118. ) {
  6119. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  6120. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6121. this.testJson.testJson[index + 1] = b;
  6122. this.testJson.testJson[index] = a;
  6123. }
  6124. }
  6125. this.$forceUpdate();
  6126. },
  6127. tcheckMove(type, index, checkIndex) {
  6128. if (type == 1) {
  6129. if (checkIndex > 0) {
  6130. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  6131. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6132. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  6133. this.testJson.testJson[index].checkList[checkIndex] = a;
  6134. }
  6135. } else {
  6136. if (
  6137. checkIndex < this.testJson.testJson[index].checkList.length - 1
  6138. ) {
  6139. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  6140. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6141. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  6142. this.testJson.testJson[index].checkList[checkIndex] = a;
  6143. }
  6144. }
  6145. this.$forceUpdate();
  6146. },
  6147. addcheckList(json, index) {
  6148. // json.checkList.length++;
  6149. json.checkList.splice(index + 1, 0, '')
  6150. json.askItem++;
  6151. this.$forceUpdate();
  6152. },
  6153. deletecheckList(json, index) {
  6154. // json.checkList.length--;
  6155. json.checkList.splice(index, 1)
  6156. json.askItem--;
  6157. this.$forceUpdate();
  6158. },
  6159. addTcheckList(json, index) {
  6160. // json.checkList.length++;
  6161. json.checkList.splice(index + 1, 0, '')
  6162. json.testItem++;
  6163. this.$forceUpdate();
  6164. },
  6165. deleteTcheckList(json, index) {
  6166. // json.checkList.length--;
  6167. json.checkList.splice(index, 1)
  6168. json.testItem--;
  6169. this.$forceUpdate();
  6170. },
  6171. checkTestType(type, json) {
  6172. json.type = type;
  6173. setTimeout(() => {
  6174. json.answer = [];
  6175. }, 100)
  6176. this.$forceUpdate();
  6177. },
  6178. checkAskType(type, json) {
  6179. json.type = type;
  6180. // json.checkList = [];
  6181. this.$forceUpdate();
  6182. },
  6183. addSelectList(json) {
  6184. json.select.push("");
  6185. json.answer.push("");
  6186. },
  6187. deleteSelectList(json) {
  6188. // json.select.length--;
  6189. // json.answer.length--;
  6190. json.select.splice(json.select.length - 1, 1);
  6191. json.answer.splice(json.answer.length - 1, 1);
  6192. },
  6193. addAsk() {
  6194. if (this.askJson.askTitle === "") {
  6195. this.$message.error("标题不能为空!");
  6196. return;
  6197. }
  6198. var aj = this.askJson.askJson;
  6199. var b = 1;
  6200. for (var i = 0; i < aj.length; i++) {
  6201. if (aj[i].askstitle === "") {
  6202. var a = 1;
  6203. for (let index = 0; index < aj[i].askItem; index++) {
  6204. const element = aj[i].checkList[index]
  6205. ? aj[i].checkList[index]
  6206. : "";
  6207. if (element != "") {
  6208. b++;
  6209. this.$message.error(`请将题目${i + 1}填写完整。`);
  6210. return;
  6211. } else {
  6212. a++;
  6213. }
  6214. }
  6215. if (b == 1) {
  6216. this.$message.error("至少填写一个问题");
  6217. return;
  6218. }
  6219. } else if (aj[i].askstitle != "") {
  6220. for (let index = 0; index < aj[i].askItem; index++) {
  6221. const element = aj[i].checkList[index]
  6222. ? aj[i].checkList[index]
  6223. : "";
  6224. var index = 0;
  6225. for (var z = 0; z < aj[i].checkList.length; z++) {
  6226. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6227. if (checkC != "") {
  6228. index++;
  6229. } else {
  6230. this.$message.error(`题目${i + 1}选项不能为空!`);
  6231. return;
  6232. }
  6233. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6234. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6235. if (checkC == checkC2) {
  6236. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6237. return;
  6238. }
  6239. }
  6240. }
  6241. b++;
  6242. if (index < 2) {
  6243. this.$message.error("每道题目至少需要设置2个选项。");
  6244. return;
  6245. }
  6246. }
  6247. }
  6248. }
  6249. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6250. var elc = el.checkList.filter((element) => {
  6251. return element != "";
  6252. });
  6253. return el.askstitle != "" && elc.length != 0;
  6254. });
  6255. if (!this.dialogVisible4) {
  6256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6257. this.taskCount
  6258. ].toolChoose[this.toolIndex] = this.askJson;
  6259. }
  6260. this.dialogVisible5 = false;
  6261. if (
  6262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6263. .toolChoose[this.toolIndex].tool != 4
  6264. ) {
  6265. this.addTools(4, this.taskCount, this.toolIndex);
  6266. }
  6267. },
  6268. addTest() {
  6269. // if (this.testJson.testTitle === "") {
  6270. // this.$message.error("标题不能为空!");
  6271. // return;
  6272. // }
  6273. var aj = this.testJson.testJson;
  6274. var b = 1;
  6275. for (var i = 0; i < aj.length; i++) {
  6276. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6277. var a = 1;
  6278. for (let index = 0; index < aj[i].testItem; index++) {
  6279. const element = aj[i].checkList[index]
  6280. ? aj[i].checkList[index]
  6281. : "";
  6282. if (element != "") {
  6283. b++;
  6284. this.$message.error(`请将题目${i + 1}填写完整。`);
  6285. return;
  6286. } else {
  6287. a++;
  6288. }
  6289. }
  6290. if (b == 1) {
  6291. this.$message.error("至少填写一个问题");
  6292. return;
  6293. }
  6294. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6295. for (let index = 0; index < aj[i].testItem; index++) {
  6296. const element = aj[i].checkList[index]
  6297. ? aj[i].checkList[index]
  6298. : "";
  6299. var index = 0;
  6300. for (var z = 0; z < aj[i].checkList.length; z++) {
  6301. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6302. if (checkC != "") {
  6303. index++;
  6304. } else {
  6305. this.$message.error(`题目${i + 1}选项不能为空!`);
  6306. return;
  6307. }
  6308. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6309. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6310. if (checkC == checkC2) {
  6311. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6312. return;
  6313. }
  6314. }
  6315. }
  6316. b++;
  6317. if (index < 2) {
  6318. this.$message.error("每道题目至少需要设置2个选项。");
  6319. return;
  6320. }
  6321. if (
  6322. (aj[i].type == "2" && !aj[i].answer.length) ||
  6323. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  6324. ) {
  6325. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  6326. return;
  6327. }
  6328. }
  6329. }
  6330. }
  6331. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6332. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6333. var elc = el.checkList.filter((element) => {
  6334. return element != "";
  6335. });
  6336. return (
  6337. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6338. );
  6339. });
  6340. isTestJson.testCount = isTestJson.testJson.length;
  6341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6342. this.taskCount
  6343. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6344. this.dialogVisibleChoice = false;
  6345. if (
  6346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6347. .toolChoose[this.toolIndex].tool != 45
  6348. ) {
  6349. this.addTools(45, this.taskCount, this.toolIndex);
  6350. }
  6351. },
  6352. addVideoJson(videoJson) {
  6353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6354. this.taskCount
  6355. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6356. this.dialogVisibleVideo = false;
  6357. if (
  6358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6359. .toolChoose[this.toolIndex].tool != 62
  6360. ) {
  6361. this.addTools(62, this.taskCount, this.toolIndex);
  6362. }
  6363. },
  6364. //自动获取剪贴板
  6365. pasteOption() {
  6366. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6367. if (!iframe) {
  6368. this.$message.error("请使用AI共创生成题目");
  6369. return;
  6370. }
  6371. let copyData = iframe.contentWindow.copyData;
  6372. if (!copyData || !copyData.selectData.length) {
  6373. this.$message.error("请使用AI共创生成题目");
  6374. return;
  6375. }
  6376. let selectData = copyData.selectData;
  6377. for (var i = 0; i < selectData.length; i++) {
  6378. let answer = 0;
  6379. switch (selectData[i].answer[0]) {
  6380. case "A":
  6381. answer = 0;
  6382. break;
  6383. case "B":
  6384. answer = 1;
  6385. break;
  6386. case "C":
  6387. answer = 2;
  6388. break;
  6389. case "D":
  6390. answer = 3;
  6391. break;
  6392. case "E":
  6393. answer = 4;
  6394. break;
  6395. default:
  6396. break;
  6397. }
  6398. this.testJson.testJson.push({
  6399. teststitle: selectData[i].subject,
  6400. testItem: selectData[i].options.length,
  6401. checkList: selectData[i].options,
  6402. timuList: [],
  6403. answer: answer,
  6404. type: "1",
  6405. });
  6406. this.testJson.testCount++;
  6407. }
  6408. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6409. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6410. var elc = el.checkList.filter((element) => {
  6411. return element != "";
  6412. });
  6413. return (
  6414. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6415. );
  6416. });
  6417. isTestJson.testCount = isTestJson.testJson.length;
  6418. this.testJson = isTestJson;
  6419. this.$forceUpdate();
  6420. },
  6421. pasteTask() {
  6422. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6423. if (!iframe) {
  6424. this.$message.error("请使用AI共创生成");
  6425. return;
  6426. }
  6427. let copyData = iframe.contentWindow.copyData;
  6428. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6429. this.$message.error("请使用AI共创生成");
  6430. return;
  6431. }
  6432. let stageTasksData = copyData.tasksData;
  6433. let taskA = [];
  6434. let tasks = stageTasksData;
  6435. for (var j = 0; j < tasks.length; j++) {
  6436. taskA.push({
  6437. task: tasks[j].taskName,
  6438. taskDetail: tasks[j].taskDecs,
  6439. chapterData: [],
  6440. toolText: "",
  6441. toolChoose: [
  6442. {
  6443. tool: [],
  6444. toolDetail: "",
  6445. toolType: 0,
  6446. askCount: 1,
  6447. askTitle: "",
  6448. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6449. },
  6450. ],
  6451. isShowTools: false,
  6452. askCount: 1,
  6453. isFold: 0,
  6454. askTitle: "",
  6455. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6456. checkJson: [{ checkCount: [], checkPerent: [] }],
  6457. homeworkList: [],
  6458. });
  6459. }
  6460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6461. this.$forceUpdate();
  6462. },
  6463. pasteStage() {
  6464. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6465. if (!iframe) {
  6466. this.$message.error("请使用AI共创生成");
  6467. return;
  6468. }
  6469. let copyData = iframe.contentWindow.copyData;
  6470. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6471. this.$message.error("请使用AI共创生成");
  6472. return;
  6473. }
  6474. let stageData = copyData.stageData;
  6475. let stage = [];
  6476. for (var i = 0; i < stageData.length; i++) {
  6477. stage.push({
  6478. dyName: stageData[i], //单元标题
  6479. chapterInfo: [
  6480. {
  6481. isread: false,
  6482. chapterid: this.guid(),
  6483. title: "",
  6484. courseName: "",
  6485. taskJson: [
  6486. {
  6487. task: "",
  6488. taskDetail: "",
  6489. chapterData: [],
  6490. toolText: "",
  6491. toolChoose: [
  6492. {
  6493. tool: [],
  6494. toolDetail: "",
  6495. toolType: 0,
  6496. askCount: 1,
  6497. askTitle: "",
  6498. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6499. },
  6500. ],
  6501. isShowTools: false,
  6502. askCount: 1,
  6503. isFold: 0,
  6504. askTitle: "",
  6505. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6506. checkJson: [{ checkCount: [], checkPerent: [] }],
  6507. homeworkList: [],
  6508. },
  6509. ],
  6510. itemCount: 1,
  6511. fileList1: [],
  6512. video: [],
  6513. testData: [],
  6514. pData: [],
  6515. templateArray: [],
  6516. },
  6517. ],
  6518. });
  6519. }
  6520. let _this = this;
  6521. _this
  6522. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6523. confirmButtonText: "确定",
  6524. cancelButtonText: "取消",
  6525. type: "warning",
  6526. })
  6527. .then(() => {
  6528. _this.unitIndex = 0;
  6529. _this.unitJson = stage;
  6530. _this.steps++;
  6531. _this.updateWork();
  6532. })
  6533. .catch(() => {
  6534. return;
  6535. });
  6536. },
  6537. addAnswer() {
  6538. if (this.answerQ == "") {
  6539. this.$message.error("请输入您想要问的问题");
  6540. return;
  6541. }
  6542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6543. this.taskCount
  6544. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6545. this.dialogVisible8 = false;
  6546. if (
  6547. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6548. .toolChoose[this.toolIndex].tool != 15
  6549. ) {
  6550. this.addTools(15, this.taskCount, this.toolIndex);
  6551. }
  6552. },
  6553. addMp3Answer() {
  6554. if (this.answerQ == "") {
  6555. this.$message.error("请输入您想要回答的问题");
  6556. return;
  6557. }
  6558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6559. this.taskCount
  6560. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6561. this.dialogVisibleMp3 = false;
  6562. },
  6563. addRateAnswer() {
  6564. var a = 1;
  6565. for (var i = 0; i < this.rateJson.length; i++) {
  6566. if (this.rateJson[i].value == "") {
  6567. a = 2;
  6568. break;
  6569. }
  6570. }
  6571. if (a == 2) {
  6572. this.$message.error("请把评价信息填写完整");
  6573. return;
  6574. }
  6575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6576. this.taskCount
  6577. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6578. this.dialogVisibleRate = false;
  6579. if (
  6580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6581. .toolChoose[this.toolIndex].tool != 40
  6582. ) {
  6583. this.addTools(40, this.taskCount, this.toolIndex);
  6584. }
  6585. },
  6586. addSelectAnswer() {
  6587. if (this.selectJson.url == "") {
  6588. this.$message.error("请上传题目");
  6589. return;
  6590. }
  6591. if (!this.selectJson.select.length) {
  6592. this.$message.error("请添加选项");
  6593. return;
  6594. }
  6595. if (!this.selectJson.answer.length) {
  6596. this.$message.error("请设置答案");
  6597. return;
  6598. }
  6599. var a = 1;
  6600. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6601. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6602. a = 2;
  6603. }
  6604. }
  6605. if (a == 2) {
  6606. this.$message.error("请设置答案");
  6607. return;
  6608. }
  6609. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6610. this.taskCount
  6611. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6612. this.dialogVisibleSelect = false;
  6613. if (
  6614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6615. .toolChoose[this.toolIndex].tool != 41
  6616. ) {
  6617. this.addTools(41, this.taskCount, this.toolIndex);
  6618. }
  6619. },
  6620. nextSelectSteps() {
  6621. if (this.selectJson.url == "") {
  6622. this.$message.error("请上传题目");
  6623. return;
  6624. }
  6625. if (!this.selectJson.select.length) {
  6626. this.$message.error("请添加选项");
  6627. return;
  6628. } else {
  6629. for (var z = 0; z < this.selectJson.select.length; z++) {
  6630. let checkC = this.selectJson.select[z];
  6631. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  6632. let checkC2 = this.selectJson.select[z2];
  6633. if (checkC == checkC2) {
  6634. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6635. return;
  6636. }
  6637. }
  6638. }
  6639. }
  6640. var a = 1;
  6641. for (var i = 0; i < this.selectJson.select.length; i++) {
  6642. if (!this.selectJson.select[i]) {
  6643. a = 2;
  6644. }
  6645. }
  6646. if (a == 2) {
  6647. this.$message.error("添加的选项不能为空");
  6648. return;
  6649. }
  6650. this.selectSteps++;
  6651. },
  6652. selectCourseDetail() {
  6653. if (this.cid == "" || this.cid == undefined) {
  6654. console.log("这是新增课程");
  6655. this.selectAllType();
  6656. } else {
  6657. this.cidType = 1;
  6658. let params = {
  6659. cid: this.cid,
  6660. };
  6661. this.ajax
  6662. .get(this.$store.state.api + "select_synergy", params)
  6663. .then((res) => {
  6664. this.loading = true;
  6665. this.courseDetail = res.data[0][0]
  6666. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6667. for (var j = 0; j < this.unitJson.length; j++) {
  6668. for (
  6669. var k = 0;
  6670. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6671. k++
  6672. ) {
  6673. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6674. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6675. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6676. : [];
  6677. let _chapterData = [];
  6678. for (
  6679. var c = 0;
  6680. c <
  6681. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6682. .length;
  6683. c++
  6684. ) {
  6685. if (
  6686. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6687. ) {
  6688. _chapterData.push(
  6689. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6690. );
  6691. }
  6692. }
  6693. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6694. _chapterData;
  6695. }
  6696. }
  6697. this.$forceUpdate();
  6698. this.courseName = res.data[0][0].title;
  6699. this.courseText = res.data[0][0].brief;
  6700. this.evalua = res.data[0][0].evaId;
  6701. this.cover = JSON.parse(res.data[0][0].cover);
  6702. this.noneBtnImg = this.cover.length >= 1;
  6703. // this.checkboxList =
  6704. // res.data[0][0].course_student.length > 0
  6705. // ? JSON.parse(res.data[0][0].course_student)
  6706. // : [];
  6707. this.checkboxList2 = res.data[0][0].juri
  6708. ? res.data[0][0].juri.split(",")
  6709. : [];
  6710. this.inviteCode = [];
  6711. for (var i = 0; i < res.data[2].length; i++) {
  6712. this.inviteCode.push({
  6713. cid: res.data[2][i].classid,
  6714. ic: res.data[2][i].code,
  6715. });
  6716. }
  6717. this.checkboxList3 = res.data[0][0].course_teacher
  6718. ? res.data[0][0].course_teacher.split(",")
  6719. : [];
  6720. // this.isTeacherSee =
  6721. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6722. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6723. this.myWord = res.data[0][0].template;
  6724. this.templateC.id = "123";
  6725. this.courseUserid = res.data[0][0].userid;
  6726. // if(this.courseUserid == this.userid){
  6727. // this.InviteChange(this.checkboxList2)
  6728. // }
  6729. this.nbOrder = res.data[0][0].ordernumber;
  6730. this.courseTypeId = [];
  6731. for (var i = 0; i < res.data[1].length; i++) {
  6732. this.courseTypeId.push(res.data[1][i].typeid);
  6733. }
  6734. console.log(this.courseTypeId);
  6735. // if (this.timer) clearInterval(this.timer);
  6736. if (this.timer) clearTimeout(this.timer);
  6737. this.timer = null;
  6738. // this.timer = setInterval(() => {
  6739. // this.seleteCourseUpdate();
  6740. this.setMan();
  6741. this.selectAllType();
  6742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  6743. // }, 5000);
  6744. this.$forceUpdate();
  6745. setTimeout(() => {
  6746. this.checkEva(this.evalua);
  6747. }, 0);
  6748. })
  6749. .catch((err) => {
  6750. console.error(err);
  6751. });
  6752. }
  6753. },
  6754. seleteCourseUpdate() {
  6755. let params = {
  6756. cid: this.cid,
  6757. };
  6758. this.ajax
  6759. .get(this.$store.state.api + "select_synergy", params)
  6760. .then((res) => {
  6761. // console.log(this.unitJson);
  6762. let unitJson = JSON.parse(res.data[0][0].chapters);
  6763. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6764. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6765. let _unitJson = [];
  6766. let _chapAarry = [];
  6767. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6768. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6769. let index = 1;
  6770. let chapindex;
  6771. if (_unitJson2.length > unitJson.length) {
  6772. for (let c = 0; c < _unitJson2.length; c++) {
  6773. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6774. }
  6775. for (let j = 0; j < unitJson.length; j++) {
  6776. let count = 0;
  6777. for (let k = 0; k < _unitJson2.length; k++) {
  6778. if (
  6779. unitJson[j].chapterInfo[0].chapterid ==
  6780. _unitJson2[k].chapterInfo[0].chapterid
  6781. ) {
  6782. count++;
  6783. _chapAarry.splice(
  6784. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6785. 1
  6786. );
  6787. _unitJson.push(unitJson[j]);
  6788. break;
  6789. }
  6790. }
  6791. // if(count === 0){
  6792. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6793. // }
  6794. }
  6795. for (let k = 0; k < _unitJson2.length; k++) {
  6796. if (_unitJson2[k].isUpdate == 1) {
  6797. _chapAarry.splice(
  6798. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6799. 1
  6800. );
  6801. _unitJson.push(_unitJson2[k]);
  6802. }
  6803. }
  6804. console.log(_chapAarry);
  6805. for (let d = 0; d < _unitJson2.length; d++) {
  6806. if (
  6807. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6808. ) {
  6809. if (_unitIndex == d) {
  6810. index = 2;
  6811. }
  6812. chapindex = d;
  6813. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6814. }
  6815. }
  6816. } else {
  6817. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6818. }
  6819. for (let i = 0; i < unitJson.length; i++) {
  6820. if (
  6821. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6822. _unitJson[i].chapterInfo[0].chapterid !=
  6823. unitJson[i].chapterInfo[0].chapterid
  6824. ) {
  6825. if (i == _unitJson.length - 1) {
  6826. // this.unitIndex++
  6827. _unitIndex2++;
  6828. }
  6829. _unitJson.splice(i, 0, unitJson[i]);
  6830. } else if (i > _unitJson.length - 1) {
  6831. _unitJson.push(unitJson[i]);
  6832. } else if (
  6833. _unitJson[i].chapterInfo[0].chapterid ==
  6834. unitJson[i].chapterInfo[0].chapterid
  6835. ) {
  6836. _unitJson[i] = unitJson[i];
  6837. }
  6838. // if (i == _unitIndex) {
  6839. // continue;
  6840. // } else
  6841. }
  6842. if (_chapAarry.length && index != 2) {
  6843. if (chapindex < _unitIndex) {
  6844. this.isDelete = 2;
  6845. // this.unitIndex--;
  6846. _unitIndex2--;
  6847. } else if (
  6848. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6849. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6850. ) {
  6851. this.isDelete = 2;
  6852. for (let n = 0; n < _unitJson.length; n++) {
  6853. if (
  6854. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6855. _unitJson[n].chapterInfo[0].chapterid
  6856. ) {
  6857. // this.unitIndex = n;
  6858. _unitIndex2 = n;
  6859. _unitJson[n] = _unitJson2[_unitIndex];
  6860. break;
  6861. }
  6862. }
  6863. }
  6864. } else if (index != 2) {
  6865. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6866. _unitJson2[_unitIndex];
  6867. for (
  6868. var ci = 0;
  6869. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6870. ci++
  6871. ) {
  6872. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6873. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6874. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6875. .toolChoose
  6876. : [];
  6877. let _chapterData = [];
  6878. for (
  6879. var c = 0;
  6880. c <
  6881. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6882. .length;
  6883. c++
  6884. ) {
  6885. if (
  6886. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6887. .chapterData[c]
  6888. ) {
  6889. _chapterData.push(
  6890. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6891. .chapterData[c]
  6892. );
  6893. }
  6894. }
  6895. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6896. _chapterData;
  6897. }
  6898. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6899. }
  6900. if (index == 1) {
  6901. this.unitJson = _unitJson;
  6902. this.$forceUpdate();
  6903. setTimeout(() => {
  6904. if (this.unitIndex != _unitIndex2) {
  6905. this.isDelete = 2;
  6906. this.unitIndex = _unitIndex2;
  6907. }
  6908. }, 0);
  6909. this.timer = setTimeout(() => {
  6910. this.seleteCourseUpdate();
  6911. }, 1000);
  6912. } else if (index == 2) {
  6913. let _this = this;
  6914. _this
  6915. .$confirm(
  6916. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6917. "提示",
  6918. {
  6919. confirmButtonText: "需要",
  6920. cancelButtonText: "取消",
  6921. type: "warning",
  6922. }
  6923. )
  6924. .then(() => {
  6925. if (_this.time()) {
  6926. _this.restoreWork(
  6927. _chapAarry[0],
  6928. _unitJson,
  6929. chapindex,
  6930. _unitJson2,
  6931. _unitIndex2
  6932. );
  6933. }
  6934. })
  6935. .catch(() => {
  6936. _this.unitJson = _unitJson;
  6937. _this.$forceUpdate();
  6938. setTimeout(() => {
  6939. if (this.unitIndex != _unitIndex2) {
  6940. this.isDelete = 2;
  6941. this.unitIndex = _unitIndex2;
  6942. }
  6943. }, 0);
  6944. _this.timer = setTimeout(() => {
  6945. _this.seleteCourseUpdate();
  6946. }, 1000);
  6947. });
  6948. }
  6949. })
  6950. .catch((err) => {
  6951. console.error(err);
  6952. });
  6953. },
  6954. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6955. let params = [
  6956. {
  6957. cid: this.cid,
  6958. chapters: JSON.stringify(this.unitJson),
  6959. uid: this.userid,
  6960. chapid: chapid,
  6961. },
  6962. ];
  6963. this.ajax
  6964. .post(this.$store.state.api + "restoreWork", params)
  6965. .then((res) => {
  6966. this.$message({
  6967. message: "恢复成功",
  6968. type: "success",
  6969. });
  6970. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6971. this.unitJson = unitJson;
  6972. this.$forceUpdate();
  6973. setTimeout(() => {
  6974. if (this.unitIndex != unitIndex2) {
  6975. this.isDelete = 2;
  6976. this.unitIndex = unitIndex2;
  6977. }
  6978. }, 0);
  6979. this.timer = setTimeout(() => {
  6980. this.seleteCourseUpdate();
  6981. }, 1000);
  6982. })
  6983. .catch((err) => {
  6984. this.$message.error("网络不佳");
  6985. console.error(err);
  6986. });
  6987. },
  6988. getTypeName() {
  6989. console.log(this.courseTypeId);
  6990. this.$forceUpdate();
  6991. },
  6992. selectAllType() {
  6993. let params = {
  6994. org: this.org && this.org != "" ? this.org : "",
  6995. oid: this.oid && this.oid != "" ? this.oid : "",
  6996. };
  6997. this.ajax
  6998. .get(this.$store.state.api + "selectAllType", params)
  6999. .then((res) => {
  7000. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7001. res.data[0] = [...res.data[0], ...res.data[4]]
  7002. }
  7003. this.CourseType = res.data;
  7004. this.CourseType2 = [
  7005. { name: "智见课程", id: [] },
  7006. { name: "智行课程", id: [] },
  7007. { name: "智创课程", id: [] },
  7008. ];
  7009. for (var cti = 0; cti < res.data[0].length; cti++) {
  7010. if (
  7011. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7012. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7013. ) {
  7014. this.CourseType2[0].id.push(res.data[0][cti].id);
  7015. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7016. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7017. this.CourseType2[1].id.push(res.data[0][cti].id);
  7018. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7019. this.CourseType2[2].id.push(res.data[0][cti].id);
  7020. }
  7021. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  7022. res.data[0][cti].name = "年级";
  7023. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7024. res.data[0][cti].name = "学科";
  7025. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7026. res.data[0][cti].name = "主题";
  7027. }
  7028. }
  7029. let _courseTypeId = [];
  7030. for (var i = 0; i < res.data[0].length; i++) {
  7031. if (!this.cid) {
  7032. this.courseTypeId[res.data[0][i].id] = [];
  7033. }
  7034. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7035. // }
  7036. this.CourseTypeJson[res.data[0][i].id] = [];
  7037. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7038. if (res.data[0][i].name == "栏目") {
  7039. this.CourseType[0][i].name = "主题";
  7040. }
  7041. }
  7042. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7043. for (var j = 0; j < res.data[1].length; j++) {
  7044. if (
  7045. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7046. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7047. ) {
  7048. _courseTypeId.push(res.data[1][j].id);
  7049. }
  7050. if (res.data[0][i].id == res.data[1][j].pid) {
  7051. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7052. }
  7053. }
  7054. } else {
  7055. if (res.data[2].length > 0) {
  7056. for (var j = 0; j < res.data[2].length; j++) {
  7057. if (
  7058. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7059. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7060. ) {
  7061. _courseTypeId.push(res.data[2][j].id);
  7062. }
  7063. if (res.data[0][i].id == res.data[2][j].pid) {
  7064. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7065. }
  7066. }
  7067. }
  7068. if (res.data[3].length > 0) {
  7069. for (var j = 0; j < res.data[3].length; j++) {
  7070. if (
  7071. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7072. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7073. ) {
  7074. _courseTypeId.push(res.data[3][j].id);
  7075. }
  7076. if (res.data[0][i].id == res.data[3][j].pid) {
  7077. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7078. }
  7079. }
  7080. }
  7081. }
  7082. }
  7083. this.courseTypeId = _courseTypeId;
  7084. })
  7085. .catch((err) => {
  7086. console.error(err);
  7087. });
  7088. },
  7089. selectType() {
  7090. this.ajax
  7091. .get(this.$store.state.api + "selectType")
  7092. .then((res) => {
  7093. this.CourseType = res.data;
  7094. for (var i = 0; i < res.data[0].length; i++) {
  7095. if (!this.cid) {
  7096. this.courseTypeId[res.data[0][i].id] = "";
  7097. }
  7098. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7099. if (res.data[0][i].name == "栏目") {
  7100. this.CourseType[0][i].name = "主题";
  7101. }
  7102. }
  7103. for (var j = 0; j < res.data[1].length; j++) {
  7104. if (res.data[0][i].id == res.data[1][j].pid) {
  7105. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7106. this.CourseTypeJson[res.data[0][i].id] = [];
  7107. }
  7108. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7109. }
  7110. }
  7111. }
  7112. this.selectTypeByOid();
  7113. this.selectTypeByOrg();
  7114. })
  7115. .catch((err) => {
  7116. console.error(err);
  7117. });
  7118. },
  7119. selectTypeByOid() {
  7120. let params = {
  7121. oid: this.oid,
  7122. };
  7123. this.ajax
  7124. .get(this.$store.state.api + "selectTypeByOid", params)
  7125. .then((res) => {
  7126. for (var i = 0; i < res.data[0].length; i++) {
  7127. for (var j = 0; j < res.data[1].length; j++) {
  7128. if (res.data[0][i].id == res.data[1][j].pid) {
  7129. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7130. this.CourseTypeJson[res.data[0][i].id] = [];
  7131. }
  7132. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7133. }
  7134. }
  7135. }
  7136. })
  7137. .catch((err) => {
  7138. console.error(err);
  7139. });
  7140. },
  7141. selectTypeByOrg() {
  7142. let params = {
  7143. oid: this.org,
  7144. };
  7145. this.ajax
  7146. .get(this.$store.state.api + "selectTypeByOrg", params)
  7147. .then((res) => {
  7148. for (var i = 0; i < res.data[0].length; i++) {
  7149. for (var j = 0; j < res.data[1].length; j++) {
  7150. if (res.data[0][i].id == res.data[1][j].pid) {
  7151. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7152. this.CourseTypeJson[res.data[0][i].id] = [];
  7153. }
  7154. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7155. }
  7156. }
  7157. }
  7158. this.$forceUpdate();
  7159. })
  7160. .catch((err) => {
  7161. console.error(err);
  7162. });
  7163. },
  7164. OtherMb(type) {
  7165. this.typeMode = type;
  7166. setTimeout(() => {
  7167. this.checkEva(this.checkId);
  7168. }, 0);
  7169. },
  7170. openMember() {
  7171. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  7172. this.$message.error('非管理员和创建者不可编辑')
  7173. return;
  7174. }
  7175. this.searchTN = "";
  7176. this.page = 1
  7177. this.getTeacher();
  7178. this.dialogVisibleMember = true;
  7179. },
  7180. checkEva(id, type) {
  7181. this.dialogVisiblemb = false;
  7182. this.selectEva();
  7183. if (this.evalua != id && type == 2) {
  7184. this.$message.success("导入成功");
  7185. }
  7186. this.evalua = id;
  7187. this.checkId = id;
  7188. if (this.evalua != "") {
  7189. for (var i = 0; i < this.evaJuri.length; i++) {
  7190. if (this.evalua == this.evaJuri[i].id) {
  7191. this.eTitle = this.evaJuri[i].title;
  7192. this.eJson = JSON.parse(this.evaJuri[i].content);
  7193. }
  7194. }
  7195. this.data.data = [];
  7196. this.$forceUpdate();
  7197. setTimeout(() => {
  7198. this.setMindData();
  7199. }, 500);
  7200. }
  7201. },
  7202. deleteEva() {
  7203. let _this = this;
  7204. if (_this.evalua == "") {
  7205. this.$message.warning("内容已经清空了,请勿重复清空");
  7206. return;
  7207. }
  7208. _this
  7209. .$confirm("确定删除此目标吗?", "提示", {
  7210. confirmButtonText: "确定",
  7211. cancelButtonText: "取消",
  7212. type: "warning",
  7213. })
  7214. .then(() => {
  7215. _this.evalua = "";
  7216. _this.checkId = "";
  7217. _this.eTitle = "";
  7218. let _unitJson = _this.unitJson;
  7219. for (var i = 0; i < _unitJson.length; i++) {
  7220. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7221. for (var j = 0; j < _task.length; j++) {
  7222. let _eList = _task[j].eList;
  7223. for (var k = 0; k < _eList.length; k++) {
  7224. delete _eList[k].target;
  7225. }
  7226. }
  7227. }
  7228. _this.$forceUpdate();
  7229. if (_this.cid) {
  7230. _this.updateWork();
  7231. }
  7232. })
  7233. .catch(() => {
  7234. return;
  7235. });
  7236. },
  7237. selectEva() {
  7238. let params = {
  7239. oid: this.oid,
  7240. };
  7241. this.ajax
  7242. .get(this.$store.state.api + "selectAllEvaluation", params)
  7243. .then((res) => {
  7244. this.evaJuri = res.data[0];
  7245. })
  7246. .catch((err) => {
  7247. console.error(err);
  7248. });
  7249. },
  7250. setMindData() {
  7251. let targetArray = [];
  7252. this.data.data = [];
  7253. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7254. let _eJson = Object.keys(this.eJson);
  7255. let _e = this.eJson;
  7256. for (let i = 0; i < _eJson.length; i++) {
  7257. let element = _e[_eJson[i]];
  7258. this.data.data.push({
  7259. id: element.id,
  7260. parentid: "root",
  7261. topic: element.name,
  7262. });
  7263. // targetArray.push({
  7264. // id: element.id,
  7265. // parentid: "root",
  7266. // name: element.name,
  7267. // });
  7268. targetArray.push({
  7269. value: element.name,
  7270. label: element.name,
  7271. children: [],
  7272. });
  7273. let _eJsonc = Object.keys(element.child);
  7274. let _e2 = element.child;
  7275. for (let j = 0; j < _eJsonc.length; j++) {
  7276. let _ec = _e2[_eJsonc[j]];
  7277. this.data.data.push({
  7278. id: _ec.id,
  7279. parentid: element.id,
  7280. topic: _ec.name,
  7281. });
  7282. // targetArray.push({
  7283. // id: _ec.id,
  7284. // parentid: element.id,
  7285. // name: _ec.name,
  7286. // });
  7287. targetArray[i].children.push({
  7288. value: _ec.name,
  7289. label: _ec.name,
  7290. children: [],
  7291. });
  7292. let _eJsonz = Object.keys(_ec.child);
  7293. let _e3 = _ec.child;
  7294. for (let z = 0; z < _eJsonz.length; z++) {
  7295. let _ez = _e3[_eJsonz[z]];
  7296. this.data.data.push({
  7297. id: _ez.id,
  7298. parentid: _ec.id,
  7299. topic: _ez.name,
  7300. });
  7301. // targetArray.push({
  7302. // id: _ez.id,
  7303. // parentid: _ec.id,
  7304. // name: _ez.name,
  7305. // });
  7306. targetArray[i].children[j].children.push({
  7307. value: _ez.name,
  7308. label: _ez.name,
  7309. });
  7310. }
  7311. }
  7312. }
  7313. this.targetArray = targetArray;
  7314. this.$forceUpdate();
  7315. },
  7316. /*添加评价 */
  7317. addEList(index, tIndex) {
  7318. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7319. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7320. value: "",
  7321. detail: "",
  7322. score: 5,
  7323. })
  7324. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7325. { value: "", detail: "", score: 5 },
  7326. ]);
  7327. this.$forceUpdate();
  7328. },
  7329. forceUpdate() {
  7330. this.$forceUpdate();
  7331. },
  7332. deletEList(index, tIndex, eIndex) {
  7333. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7334. eIndex,
  7335. 1
  7336. );
  7337. this.$forceUpdate();
  7338. },
  7339. getChoosePic(t) {
  7340. this.chooseType = t;
  7341. this.getAllBanner();
  7342. },
  7343. getAllBanner() {
  7344. this.sysPicVisible = true;
  7345. let params = {
  7346. t: this.chooseType,
  7347. };
  7348. this.ajax
  7349. .get(this.$store.state.api + "selectAllBanner", params)
  7350. .then((res) => {
  7351. this.sysPic = res.data[0];
  7352. })
  7353. .catch((err) => {
  7354. console.error(err);
  7355. });
  7356. },
  7357. // getClass() {
  7358. // let params = {
  7359. // oid: this.oid,
  7360. // };
  7361. // this.ajax
  7362. // .get(this.$store.state.api + "selectClassBySchool", params)
  7363. // .then((res) => {
  7364. // this.classJuri = res.data[0];
  7365. // })
  7366. // .catch((err) => {
  7367. // console.error(err);
  7368. // });
  7369. // },
  7370. deleteSysPic() {
  7371. this.cover = [];
  7372. this.isSysPic = false;
  7373. this.isSysPic2 = false;
  7374. },
  7375. deleteSelectPic() {
  7376. this.selectJson.url = "";
  7377. },
  7378. setEListStar() {
  7379. this.$forceUpdate();
  7380. },
  7381. deletRateList(i) {
  7382. this.rateJson.splice(i, 1);
  7383. },
  7384. addRateList() {
  7385. this.rateJson.push({ detail: "", score: 5, value: "" });
  7386. },
  7387. addSt() {
  7388. this.sentenceList.push({
  7389. sentenceTitle: "",
  7390. addSentence: [],
  7391. rightAnswer: [],
  7392. });
  7393. },
  7394. addSen(i) {
  7395. if (!this.sentenceList[i].sentenceTitle) {
  7396. this.$message.error("请填写卡片内容!");
  7397. return;
  7398. }
  7399. if (this.sentenceList[i].sentenceTitle.length > 10) {
  7400. this.$message.error("卡片内容字数不能超过10位");
  7401. return;
  7402. }
  7403. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  7404. this.$message.error("不能添加重复的卡片内容!");
  7405. return;
  7406. }
  7407. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7408. // this.isPushTitleList.push(this.sentenceTitle);
  7409. this.sentenceList[i].sentenceTitle = "";
  7410. },
  7411. setRightAnswer(s, i, j) {
  7412. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7413. this.sentenceList[i].rightAnswer.push(s);
  7414. }
  7415. },
  7416. returnCard(r, i, j) {
  7417. this.sentenceList[i].rightAnswer.splice(j, 1);
  7418. },
  7419. addSentenceTool() {
  7420. for (var i = 0; i < this.sentenceList.length; i++) {
  7421. if (this.sentenceList[i].rightAnswer.length == 0) {
  7422. this.$message.error(`请将题目${i + 1}设置完整。`);
  7423. return;
  7424. }
  7425. if (
  7426. this.sentenceList[i].addSentence.length !=
  7427. this.sentenceList[i].rightAnswer.length
  7428. ) {
  7429. this.$message.error(`请将题目${i + 1}设置完整。`);
  7430. return;
  7431. }
  7432. }
  7433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7434. this.taskCount
  7435. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7436. this.sentenceList = [
  7437. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7438. ];
  7439. this.dialogVisibleSentence = false;
  7440. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7441. // itemTaskIndex
  7442. // ].toolChoose[toolIndex].tool = [];
  7443. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7444. // itemTaskIndex
  7445. // ].toolChoose[toolIndex].tool.push(i);
  7446. if (
  7447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7448. .toolChoose[this.toolIndex].tool != 47
  7449. ) {
  7450. this.addTools(47, this.taskCount, this.toolIndex);
  7451. }
  7452. },
  7453. addTableJson() {
  7454. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7455. // this.$message.error("请将信息填写完整!");
  7456. // return;
  7457. // }
  7458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7459. this.taskCount
  7460. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7461. // this.tableJson = [{ text: "" }];
  7462. // this.dialogVisibleTable = false;
  7463. this.$message.success("上传成功");
  7464. if (
  7465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7466. .toolChoose[this.toolIndex].tool != 48
  7467. ) {
  7468. this.addTools(48, this.taskCount, this.toolIndex);
  7469. }
  7470. },
  7471. addWordJson() {
  7472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7473. this.taskCount
  7474. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7475. // this.wordJson = [{ text: "" }];
  7476. // this.dialogVisibleWord = false;
  7477. this.$message.success("上传成功");
  7478. if (
  7479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7480. .toolChoose[this.toolIndex].tool != 52
  7481. ) {
  7482. this.addTools(52, this.taskCount, this.toolIndex);
  7483. }
  7484. },
  7485. addMoreUpload() {
  7486. if (this.uploadJson.length == 0) {
  7487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7488. this.taskCount
  7489. ].toolChoose[this.toolIndex].uploadJson = [];
  7490. } else {
  7491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7492. this.taskCount
  7493. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7494. }
  7495. this.uploadJson = [];
  7496. this.dialogVisibleMoreUpload = false;
  7497. if (
  7498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7499. .toolChoose[this.toolIndex].tool != 50
  7500. ) {
  7501. this.addTools(50, this.taskCount, this.toolIndex);
  7502. }
  7503. },
  7504. addPreTime() {
  7505. if (this.preTime == 0) {
  7506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7507. this.taskCount
  7508. ].toolChoose[this.toolIndex].preTime = 0;
  7509. } else {
  7510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7511. this.taskCount
  7512. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7513. }
  7514. this.preTime = 0;
  7515. this.dialogVisiblePreTime = false;
  7516. if (
  7517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7518. .toolChoose[this.toolIndex].tool != 10
  7519. ) {
  7520. this.addTools(10, this.taskCount, this.toolIndex);
  7521. }
  7522. },
  7523. goToTask(i) {
  7524. this.toolIndexType = ''
  7525. if (this.isClickColor == (i + 1)) {
  7526. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7528. } else {
  7529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7530. }
  7531. this.$forceUpdate();
  7532. return;
  7533. }
  7534. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7536. } else {
  7537. document.querySelectorAll(".rightBox")[0].scrollTop =
  7538. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  7539. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  7540. this.isClickColor = i + 1;
  7541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7542. }
  7543. this.$forceUpdate();
  7544. },
  7545. taskMove(type, index) {
  7546. // this
  7547. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7548. // confirmButtonText: "确定",
  7549. // cancelButtonText: "取消",
  7550. // type: "warning",
  7551. // })
  7552. // .then(() => {
  7553. if (type == 1) {
  7554. if (index > 0) {
  7555. let a = JSON.parse(
  7556. JSON.stringify(
  7557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7558. )
  7559. );
  7560. let b = JSON.parse(
  7561. JSON.stringify(
  7562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7563. )
  7564. );
  7565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7568. if (index - 1 == 0) {
  7569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7570. index - 1
  7571. ].chapterData = a.chapterData;
  7572. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7573. index
  7574. ].chapterData = b.chapterData;
  7575. }
  7576. }
  7577. } else {
  7578. if (
  7579. index <
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7581. ) {
  7582. let a = JSON.parse(
  7583. JSON.stringify(
  7584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7585. )
  7586. );
  7587. let b = JSON.parse(
  7588. JSON.stringify(
  7589. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7590. )
  7591. );
  7592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7593. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7595. if (index == 0) {
  7596. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7597. index + 1
  7598. ].chapterData = a.chapterData;
  7599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7600. index
  7601. ].chapterData = b.chapterData;
  7602. }
  7603. }
  7604. }
  7605. this.$forceUpdate();
  7606. // })
  7607. // .catch(() => {
  7608. // return;
  7609. // })
  7610. },
  7611. addGroup(i) {
  7612. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7613. this.groupJson.group.push({
  7614. name: "第" + (this.groupJson.group.length + 1) + "组",
  7615. });
  7616. },
  7617. deleteGroup(i) {
  7618. this.groupJson.group.splice(i, 1);
  7619. },
  7620. numberPan() {
  7621. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  7622. this.$message.error('请输入2-10的数字')
  7623. this.groupJson.number = ''
  7624. }
  7625. },
  7626. addGroupJson() {
  7627. for (var i = 0; i < this.groupJson.group.length; i++) {
  7628. if (!this.groupJson.group[i].name) {
  7629. this.$message.error("请将信息填写完整!");
  7630. return;
  7631. }
  7632. }
  7633. if (!this.groupJson.number) {
  7634. this.$message.error("请将信息填写完整!");
  7635. return;
  7636. }
  7637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7638. this.taskCount
  7639. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7640. JSON.stringify(this.groupJson)
  7641. );
  7642. this.dialogVisibleGroup = false;
  7643. this.groupJson = {};
  7644. if (
  7645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7646. .toolChoose[this.toolIndex].tool != 49
  7647. ) {
  7648. this.addTools(49, this.taskCount, this.toolIndex);
  7649. }
  7650. },
  7651. updateTime(preTime) {
  7652. this.preTime = preTime;
  7653. },
  7654. InviteChange(val) {
  7655. console.log(val);
  7656. return;
  7657. let array = JSON.parse(JSON.stringify(val));
  7658. this.inviteCode = this.inviteCode.filter((el) => {
  7659. if (val.indexOf(el.cid) != -1) {
  7660. array.splice(array.indexOf(el.cid), 1);
  7661. return el;
  7662. }
  7663. });
  7664. for (var i = 0; i < array.length; i++) {
  7665. this.getInviteCode(array[i]);
  7666. }
  7667. },
  7668. async getInviteCode(cid) {
  7669. let code = this.randomNumber();
  7670. let params = {
  7671. code: code,
  7672. oid: this.oid,
  7673. };
  7674. let type = 1;
  7675. for (var i = 0; i < this.inviteCode.length; i++) {
  7676. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7677. type = 2;
  7678. }
  7679. }
  7680. if (type == 2) {
  7681. this.getInviteCode(cid);
  7682. return;
  7683. }
  7684. const res = await this.ajax.get(
  7685. this.$store.state.api + "selectInviteCode2",
  7686. params
  7687. );
  7688. if (
  7689. res.data.length &&
  7690. res.data[0].length &&
  7691. res.data[0][0].courseId != this.cid
  7692. ) {
  7693. this.getInviteCode(cid);
  7694. return;
  7695. }
  7696. let array = [];
  7697. for (var i = 0; i < this.inviteCode.length; i++) {
  7698. array.push(this.inviteCode[i].cid);
  7699. }
  7700. if (array.indexOf(cid) != -1) {
  7701. this.inviteCode[array.indexOf(cid)].ic = code;
  7702. } else {
  7703. this.inviteCode.push({ cid: cid, ic: code });
  7704. }
  7705. },
  7706. OpenInviteD(cid) {
  7707. let array = [];
  7708. this.icode = "";
  7709. for (var i = 0; i < this.inviteCode.length; i++) {
  7710. array.push(this.inviteCode[i].cid);
  7711. }
  7712. if (array.indexOf(cid) != -1) {
  7713. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7714. }
  7715. this.inviteId = cid;
  7716. this.dialogVisibleInvite = true;
  7717. },
  7718. addInvite() {
  7719. let reg = /^[A-Za-z0-9]{4,}$/;
  7720. if (!reg.test(this.icode)) {
  7721. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7722. return;
  7723. }
  7724. let type = 1;
  7725. for (var i = 0; i < this.inviteCode.length; i++) {
  7726. if (
  7727. this.inviteCode[i].cid != this.inviteId &&
  7728. this.icode == this.inviteCode[i].ic
  7729. ) {
  7730. type = 2;
  7731. }
  7732. }
  7733. if (type == 2) {
  7734. this.$message.error("已有此随机码,不能重复");
  7735. return;
  7736. }
  7737. let params = {
  7738. code: this.icode,
  7739. oid: this.oid,
  7740. };
  7741. this.ajax
  7742. .get(this.$store.state.api + "selectInviteCode", params)
  7743. .then((res) => {
  7744. if (
  7745. res.data.length &&
  7746. res.data[0].length &&
  7747. res.data[0][0].courseId != this.cid
  7748. ) {
  7749. this.$message.error("已有此随机码,不能重复");
  7750. return;
  7751. }
  7752. let array = [];
  7753. for (var i = 0; i < this.inviteCode.length; i++) {
  7754. array.push(this.inviteCode[i].cid);
  7755. }
  7756. if (array.indexOf(this.inviteId) != -1) {
  7757. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7758. } else {
  7759. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7760. }
  7761. this.icode = "";
  7762. this.dialogVisibleInvite = false;
  7763. })
  7764. .catch((err) => {
  7765. console.error(err);
  7766. });
  7767. },
  7768. randomNumber() {
  7769. // 随机生成两位数
  7770. // let num = Math.floor(Math.random() * 900) + 100;
  7771. // 生成 0 到 99 之间的随机整数
  7772. const randomNumber = Math.floor(Math.random() * 100);
  7773. // 如果随机数小于 10,补上前导零
  7774. const num =
  7775. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7776. // 随机生成两个大写字母
  7777. let letters = "";
  7778. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7779. for (let i = 0; i < 3; i++) {
  7780. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7781. }
  7782. // 随机生成两位数字和字母的组合
  7783. let mix = "";
  7784. let chars =
  7785. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7786. for (let i = 0; i < 3; i++) {
  7787. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7788. mix += char;
  7789. }
  7790. // 随机选择一种类型
  7791. let type = Math.floor(Math.random() * 3);
  7792. return num;
  7793. // 根据类型输出结果
  7794. switch (type) {
  7795. case 0:
  7796. console.log(num); // 输出两位数
  7797. return num;
  7798. case 1:
  7799. console.log(letters); // 输出两个大写字母
  7800. return letters;
  7801. case 2:
  7802. console.log(mix); // 输出两位数字和字母的组合
  7803. return mix;
  7804. }
  7805. },
  7806. getPaste() {
  7807. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7808. if (!iframe) {
  7809. return;
  7810. }
  7811. let copyData = iframe.contentWindow.copyData;
  7812. // if (copyData && copyData.stageData && copyData.stageData.length) {
  7813. // this.isPasteStage = true
  7814. // }
  7815. if (copyData && copyData.selectData.length) {
  7816. this.isPasteChoice = true
  7817. }
  7818. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  7819. this.isPasteTask = true
  7820. }
  7821. },
  7822. searchImage() {
  7823. var _this = this;
  7824. _this.imageList = []
  7825. if (!_this.searchImageValue) {
  7826. _this.sysPicVisible2 = true
  7827. return
  7828. }
  7829. _this.imageloading = true
  7830. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  7831. page: _this.ppage,
  7832. pagesize: 9,
  7833. query: _this.searchImageValue
  7834. }).then(function (response) {
  7835. // console.log(response.data.data);
  7836. var data = response.data.FunctionResponse.result;
  7837. for (var i = 0; i < data.length; i++) {
  7838. _this.imageList.push({ url: data[i].thumbnail })
  7839. }
  7840. _this.imageloading = false
  7841. }).catch(function (error) {
  7842. console.log(error);
  7843. });
  7844. _this.sysPicVisible2 = true
  7845. },
  7846. changePicture() {
  7847. this.ppage++
  7848. this.searchImage()
  7849. },
  7850. resetImage() {
  7851. this.ppage = 1
  7852. this.searchImage()
  7853. },
  7854. jumpGj(i, j) {
  7855. if ((i + 1) != this.isClickColor) {
  7856. this.isClickColor = (i + 1)
  7857. }
  7858. var a = document.scrollingElement;
  7859. this.toolIndexType = `gj${i}${j}`
  7860. let target = document.querySelector(`#gj${i}${j}`);
  7861. if (target) {
  7862. target.scrollIntoView(true);
  7863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  7864. // setTimeout(() => {
  7865. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  7866. // }, 0);
  7867. }
  7868. },
  7869. },
  7870. beforeDestroy() {
  7871. clearTimeout(this.timer);
  7872. this.timer = null;
  7873. clearInterval(this.timer2);
  7874. this.timer2 = null;
  7875. clearInterval(this.pasteTimer);
  7876. this.pasteTimer = null;
  7877. },
  7878. beforeRouteLeave(to, from, next) {
  7879. clearTimeout(this.timer);
  7880. this.timer = null;
  7881. clearInterval(this.timer2);
  7882. this.timer2 = null;
  7883. clearInterval(this.pasteTimer);
  7884. this.pasteTimer = null;
  7885. next();
  7886. },
  7887. created() {
  7888. this.getStudent();
  7889. this.getTeacher();
  7890. this.getClass();
  7891. this.selectGrage();
  7892. this.getTemplate();
  7893. // this.selectType();
  7894. this.selectEva();
  7895. this.loading = false;
  7896. this.timer2 = setInterval(() => {
  7897. this.selectEva();
  7898. }, 5000);
  7899. this.pasteTimer = setInterval(() => {
  7900. this.getPaste();
  7901. }, 1000);
  7902. setTimeout(() => {
  7903. this.selectCourseDetail();
  7904. }, 500);
  7905. },
  7906. mounted() {
  7907. this.$nextTick(() => {
  7908. //监听这个dom的scroll事件
  7909. // $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  7910. // this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  7911. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7912. this.$forceUpdate();
  7913. });
  7914. },
  7915. };
  7916. </script>
  7917. <style scoped>
  7918. @media screen and (max-width: 1280px) {
  7919. .mbCss {
  7920. flex-direction: column !important;
  7921. }
  7922. .pjCss {
  7923. width: 100% !important;
  7924. }
  7925. .evaCss {
  7926. width: 100% !important;
  7927. }
  7928. }
  7929. .dialog_diy>>>.el-dialog__header {
  7930. background: #3c3c3c !important;
  7931. padding: 15px 20px;
  7932. }
  7933. .dialog_diy>>>.el-dialog__title {
  7934. color: #fff;
  7935. }
  7936. .dialog_diy>>>.el-dialog__headerbtn {
  7937. top: 19px;
  7938. }
  7939. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7940. color: #fff;
  7941. }
  7942. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7943. color: #fff;
  7944. }
  7945. .dialog_diy>>>.el-dialog__body,
  7946. .dialog_diy>>>.el-dialog__footer {
  7947. background: #fafafa;
  7948. }
  7949. .dialog_diy3>>>.el-dialog__body,
  7950. .dialog_diy3>>>.el-dialog__footer {
  7951. background: #eee !important;
  7952. }
  7953. .dialog_diy3>>>.el-dialog__body {
  7954. padding: 20px 20px;
  7955. }
  7956. .source_diy>>>.el-dialog {
  7957. height: 100% !important;
  7958. margin: 0 auto !important;
  7959. }
  7960. .source_diy>>>.el-dialog__body {
  7961. height: calc(100% - 185px);
  7962. overflow: auto;
  7963. background: #e6eaf0;
  7964. }
  7965. .source_diy>>>.el-dialog__footer {
  7966. background: #e6eaf0 !important;
  7967. }
  7968. .left {
  7969. border-right: 1px solid rgb(60, 94, 143);
  7970. display: flex;
  7971. flex-direction: column;
  7972. align-items: center;
  7973. min-height: 600px;
  7974. width: 385px;
  7975. height: 80%;
  7976. }
  7977. .tips {
  7978. color: rgb(128, 128, 128);
  7979. font-size: 12px;
  7980. width: 270px;
  7981. margin: 40px;
  7982. }
  7983. .pb_content {
  7984. height: 100% !important;
  7985. /* margin: 0 20px 0 20px; */
  7986. }
  7987. .pb_content_body {
  7988. width: 100% !important;
  7989. height: 100%;
  7990. }
  7991. .info_solid {
  7992. width: 270px;
  7993. height: 30px;
  7994. border-left: 1px solid #bdbdbd;
  7995. margin: 10px 0px 10px 30px;
  7996. }
  7997. .info_steps {
  7998. width: 270px;
  7999. font-size: 0.875rem;
  8000. display: flex;
  8001. align-items: center;
  8002. }
  8003. .info_steps span:nth-child(1) {
  8004. width: 30px;
  8005. height: 30px;
  8006. background: rgba(0, 0, 0, 0.38);
  8007. display: block;
  8008. color: #fff;
  8009. border-radius: 40px;
  8010. text-align: center;
  8011. line-height: 30px;
  8012. }
  8013. .steps_active {
  8014. background: #3d67bc !important;
  8015. }
  8016. .info_steps span:nth-child(2) {
  8017. margin-left: 5px;
  8018. }
  8019. .right {
  8020. height: 100%;
  8021. width: calc(100% - 40px);
  8022. display: flex;
  8023. overflow: hidden;
  8024. margin: 0 auto;
  8025. }
  8026. .basic_box {
  8027. margin: 0 auto;
  8028. position: relative;
  8029. padding: 0 20px 0 20px;
  8030. }
  8031. .basic_box2 {
  8032. position: relative;
  8033. width: calc(100% - 300px);
  8034. }
  8035. .basic_box_success {
  8036. width: 100%;
  8037. height: 100%;
  8038. padding: 50px 0;
  8039. position: relative;
  8040. text-align: center;
  8041. /* border-bottom: 1px solid #bfbfbf; */
  8042. box-sizing: border-box;
  8043. display: flex;
  8044. align-items: center;
  8045. flex-direction: column;
  8046. justify-content: center;
  8047. }
  8048. .info_title {
  8049. font-size: 1.5em;
  8050. margin-right: 25px;
  8051. /* margin: 20px 30px 20px 30px; */
  8052. }
  8053. .bInfo_title {
  8054. text-align: left;
  8055. margin: 10px 0;
  8056. }
  8057. .small_title {
  8058. font-size: 14px;
  8059. line-height: 40px;
  8060. }
  8061. .chapter_beizhu {
  8062. font-size: 12px;
  8063. font-weight: bold;
  8064. float: right;
  8065. color: rgb(128, 128, 128);
  8066. margin-top: 5px;
  8067. }
  8068. .chapter_uploadBox1 {
  8069. text-align: left;
  8070. background-color: rgb(242, 242, 242);
  8071. width: 100%;
  8072. height: 67px;
  8073. padding: 0px 15px;
  8074. border-radius: 8px;
  8075. overflow: hidden;
  8076. font-size: 16px;
  8077. box-sizing: border-box;
  8078. position: relative;
  8079. }
  8080. .chapter_add {
  8081. width: 100%;
  8082. height: 32px;
  8083. margin-top: 15px;
  8084. cursor: pointer;
  8085. }
  8086. .chapter_add_l {
  8087. margin-left: 5px;
  8088. width: 30px;
  8089. height: 30px;
  8090. float: left;
  8091. border: 1px solid #aaa;
  8092. color: #aaa;
  8093. border-radius: 50%;
  8094. font-size: 25px;
  8095. text-align: center;
  8096. }
  8097. .chapter_add_r {
  8098. font-size: 18px;
  8099. height: 40px;
  8100. line-height: 30px;
  8101. text-indent: 10px;
  8102. color: #aaa;
  8103. }
  8104. .chapter_add_r span {
  8105. font-size: 12px;
  8106. color: rgb(204, 204, 204);
  8107. }
  8108. .chapter_add_input {
  8109. display: none;
  8110. }
  8111. .line {
  8112. width: 85%;
  8113. margin: 0 auto;
  8114. border-top: 1px solid #e5e5e5;
  8115. margin-top: 20px;
  8116. }
  8117. .info_btnBox {
  8118. width: calc(100%);
  8119. display: flex;
  8120. justify-content: center;
  8121. height: 70px;
  8122. align-items: center;
  8123. background: #fff;
  8124. margin: 0 auto;
  8125. border-top: 2px solid rgb(228, 232, 237);
  8126. box-sizing: border-box;
  8127. border-radius: 0px 0 5px 5px;
  8128. }
  8129. .info_btnBox2 {
  8130. width: calc(100%);
  8131. display: flex;
  8132. justify-content: center;
  8133. height: 20px;
  8134. align-items: center;
  8135. background: #fff;
  8136. margin: 0 auto;
  8137. border-top: 2px solid rgb(228, 232, 237);
  8138. box-sizing: border-box;
  8139. overflow: hidden;
  8140. cursor: pointer;
  8141. }
  8142. .info_btnBox3 {
  8143. width: calc(100%);
  8144. display: flex;
  8145. justify-content: flex-end;
  8146. padding: 0 20px;
  8147. height: 60px;
  8148. align-items: center;
  8149. background: unset;
  8150. margin: 10px auto 0;
  8151. /* border-top: 1px solid rgb(228, 232, 237); */
  8152. box-sizing: border-box;
  8153. overflow: hidden;
  8154. cursor: pointer;
  8155. background: #fff;
  8156. border-radius: 10px;
  8157. }
  8158. .info_btn+.info_btn {
  8159. margin-left: 15px;
  8160. }
  8161. .info_btn,
  8162. .teacherWord {
  8163. color: #fff;
  8164. background-color: #0f7eff;
  8165. padding: 8px 24px;
  8166. font-size: 0.9375rem;
  8167. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8168. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8169. min-width: 64px;
  8170. font-weight: 500;
  8171. border-radius: 4px;
  8172. box-sizing: border-box;
  8173. border: none;
  8174. cursor: pointer;
  8175. }
  8176. .teacherWord {
  8177. width: 105px !important;
  8178. text-align: center !important;
  8179. line-height: 36px !important;
  8180. padding: 0 !important;
  8181. font-size: 14px !important;
  8182. margin: 10px 0 !important;
  8183. }
  8184. .wordTeacher {
  8185. display: flex;
  8186. flex-direction: column;
  8187. width: 20%;
  8188. text-align: center;
  8189. font-size: 14px;
  8190. margin: 30px 30px 0 10px;
  8191. background: #fff;
  8192. position: relative;
  8193. border-radius: 5px;
  8194. padding: 25px 0px;
  8195. }
  8196. .wordPic {
  8197. margin: 0 auto;
  8198. width: 60px;
  8199. height: 60px;
  8200. cursor: pointer;
  8201. }
  8202. .deleteWord {
  8203. width: 22px;
  8204. height: 22px;
  8205. position: absolute;
  8206. right: 5px;
  8207. top: -15px;
  8208. cursor: pointer;
  8209. display: none;
  8210. z-index: 999;
  8211. }
  8212. .wordPic>img,
  8213. .deleteWord>img,
  8214. .addToolImg>img {
  8215. width: 100%;
  8216. height: 100%;
  8217. }
  8218. .info_btn:hover {
  8219. background-color: #4f7cd5 !important;
  8220. }
  8221. .cru_selectBox {
  8222. display: flex;
  8223. margin: 24px 0 10px;
  8224. flex-wrap: nowrap;
  8225. white-space: nowrap;
  8226. overflow: auto;
  8227. position: relative;
  8228. height: 47px;
  8229. }
  8230. .cru_selectBox::-webkit-scrollbar {
  8231. /*滚动条整体样式*/
  8232. width: 6px;
  8233. /*高宽分别对应横竖滚动条的尺寸*/
  8234. height: 6px;
  8235. }
  8236. /*定义滚动条轨道 内阴影+圆角*/
  8237. .cru_selectBox::-webkit-scrollbar-track {
  8238. border-radius: 10px;
  8239. background-color: #eee;
  8240. }
  8241. /*定义滑块 内阴影+圆角*/
  8242. .cru_selectBox::-webkit-scrollbar-thumb {
  8243. border-radius: 10px;
  8244. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8245. background-color: rgba(0, 0, 0, 0.1);
  8246. }
  8247. .cru_line {
  8248. position: absolute;
  8249. bottom: 0px;
  8250. transition: all 0.5s;
  8251. left: 0px;
  8252. width: 125px;
  8253. margin-left: -25px;
  8254. }
  8255. .cru_select {
  8256. font-size: 21px;
  8257. margin-right: 37px;
  8258. margin-left: 5px;
  8259. cursor: pointer;
  8260. color: #a6a6a6;
  8261. }
  8262. .cru_selected {
  8263. color: #0b7fc2 !important;
  8264. }
  8265. .chapter_contentbox {
  8266. display: flex;
  8267. align-items: center;
  8268. margin-top: 15px;
  8269. }
  8270. .chapter_contentbox .cc_title {
  8271. margin: 0px;
  8272. color: black;
  8273. display: block;
  8274. white-space: nowrap;
  8275. overflow: hidden;
  8276. text-overflow: ellipsis;
  8277. margin-right: 20px;
  8278. font-size: 18px;
  8279. height: 20px;
  8280. line-height: 22px;
  8281. min-width: fit-content;
  8282. display: flex;
  8283. }
  8284. .chapter_contentbox .cc_title::before {
  8285. content: '';
  8286. height: 100%;
  8287. width: 3px;
  8288. background: #3681FC;
  8289. border-radius: 3px;
  8290. opacity: 1;
  8291. display: block;
  8292. margin-right: 10px;
  8293. }
  8294. .chapter_contentbox .cc_input {
  8295. width: 100%;
  8296. display: flex;
  8297. }
  8298. .show_taskD {
  8299. min-width: fit-content;
  8300. margin-left: 10px;
  8301. display: flex;
  8302. align-items: center;
  8303. font-size: 14px;
  8304. cursor: pointer;
  8305. color: #717C8D;
  8306. }
  8307. .show_taskD>img {
  8308. width: 15px;
  8309. margin-right: 5px;
  8310. transition: .2s all;
  8311. transform: rotate(-90deg);
  8312. }
  8313. .show_taskD.show>img {
  8314. transform: rotate(0deg);
  8315. }
  8316. .show_toolD {
  8317. min-width: fit-content;
  8318. margin-left: 10px;
  8319. display: flex;
  8320. align-items: center;
  8321. font-size: 14px;
  8322. cursor: pointer;
  8323. color: #717C8D;
  8324. position: absolute;
  8325. right: 45px;
  8326. top: 5px;
  8327. }
  8328. .show_toolD>img {
  8329. width: 15px;
  8330. margin-right: 5px;
  8331. transition: .2s all;
  8332. transform: rotate(-90deg);
  8333. }
  8334. .show_toolD.show>img {
  8335. transform: rotate(0deg);
  8336. }
  8337. .remove {
  8338. background-image: url("../../../assets/icon/new/delete_u.png");
  8339. cursor: pointer;
  8340. opacity: 0.5;
  8341. width: 30px;
  8342. min-width: 30px;
  8343. height: 30px;
  8344. background-size: 100% 100%;
  8345. background-repeat: no-repeat;
  8346. margin-left: 10px;
  8347. }
  8348. .remove1 {
  8349. background-image: url("../../../assets/remove1.png");
  8350. background-repeat: no-repeat;
  8351. background-position: 5px 10px;
  8352. width: 40px;
  8353. height: 50px;
  8354. cursor: pointer;
  8355. margin-left: 10px;
  8356. }
  8357. .binfo_input {
  8358. width: 100%;
  8359. margin: 0;
  8360. padding: 12px 14px;
  8361. display: block;
  8362. min-width: 0;
  8363. outline: none;
  8364. box-sizing: border-box;
  8365. background: none;
  8366. border: none;
  8367. border-radius: 4px;
  8368. background: #fff;
  8369. font-size: 16px;
  8370. resize: none;
  8371. font-family: 'Microsoft YaHei';
  8372. min-height: 48px;
  8373. border: 1.5px solid #CAD1DC;
  8374. }
  8375. .binfo_textarea {
  8376. border: 1.5px solid #CAD1DC;
  8377. font-size: 16px;
  8378. resize: none;
  8379. background: #f6f6f6;
  8380. font-family: 'Microsoft YaHei';
  8381. }
  8382. .binfo_input:focus-visible {
  8383. border: 1.5px solid #3681FC !important;
  8384. }
  8385. .time {
  8386. display: flex;
  8387. margin: 35px 0 80px 0;
  8388. }
  8389. .chapter_btnbox {
  8390. width: 160px;
  8391. border-radius: 5px;
  8392. border: 2px dashed gray;
  8393. display: flex;
  8394. padding: 8px 50px;
  8395. align-items: center;
  8396. justify-content: center;
  8397. margin: 30px auto 0;
  8398. cursor: pointer;
  8399. }
  8400. .icon_add {
  8401. position: relative;
  8402. width: 24px;
  8403. padding-top: 20px;
  8404. border-radius: 100%;
  8405. border-width: 2px;
  8406. border-style: solid;
  8407. border-color: gray;
  8408. }
  8409. .icon_add i:nth-child(1) {
  8410. position: absolute;
  8411. left: 50%;
  8412. top: 50%;
  8413. height: 60%;
  8414. transform: translate(-50%, -50%);
  8415. border-width: 1px;
  8416. border-style: solid;
  8417. border-color: inherit;
  8418. }
  8419. .icon_add i:nth-child(2) {
  8420. position: absolute;
  8421. top: 50%;
  8422. left: 50%;
  8423. width: 60%;
  8424. transform: translate(-50%, -50%);
  8425. border-width: 1px;
  8426. border-style: solid;
  8427. border-color: inherit;
  8428. }
  8429. .chapter_btn_w {
  8430. font-size: 0.9375rem;
  8431. font-weight: bold;
  8432. color: gray;
  8433. margin-left: 20px;
  8434. }
  8435. .disUoloadSty>>>.el-icon-plus {
  8436. display: none !important;
  8437. /* 上传按钮隐藏 */
  8438. }
  8439. .imgLeft {
  8440. margin: 15px 0;
  8441. }
  8442. .add_info_box {
  8443. margin: 20px 0 0;
  8444. display: flex;
  8445. flex-wrap: wrap;
  8446. }
  8447. .add_info_box button {
  8448. margin: 0 20px 10px 0;
  8449. }
  8450. .add_info_box2 {
  8451. display: flex;
  8452. align-items: center;
  8453. flex-wrap: wrap;
  8454. }
  8455. .add_info_box2::after {
  8456. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8457. color: red;
  8458. font-size: 14px;
  8459. margin-bottom: 10px;
  8460. }
  8461. .add_chapters_box {
  8462. text-align: left;
  8463. background-color: #fff;
  8464. width: 100%;
  8465. border-radius: 4px;
  8466. font-size: 16px;
  8467. box-sizing: border-box;
  8468. position: relative;
  8469. padding: 0 15px;
  8470. height: auto;
  8471. overflow-y: auto;
  8472. overflow-x: hidden;
  8473. border: 1px solid #CAD1DC;
  8474. }
  8475. .add_chapters_box.add_c_none {
  8476. display: flex;
  8477. justify-content: center;
  8478. align-items: center;
  8479. padding: 15px;
  8480. }
  8481. .add_c_none>img {
  8482. width: 25px;
  8483. }
  8484. .add_chapters_box.add_c_none>span {
  8485. font-size: 14px;
  8486. font-weight: 400;
  8487. margin: 0 0 5px 5px;
  8488. }
  8489. .homework_box {
  8490. display: flex;
  8491. align-items: flex-start;
  8492. flex-wrap: wrap;
  8493. margin: 15px 0 0 0;
  8494. flex-direction: column;
  8495. align-content: flex-start;
  8496. }
  8497. .course_homework {
  8498. display: flex;
  8499. justify-content: center;
  8500. flex-direction: row;
  8501. align-items: center;
  8502. margin: 0 10px 0 0;
  8503. }
  8504. .course_homework>>>.el-input__inner {
  8505. width: 140px;
  8506. margin-left: 15px;
  8507. }
  8508. .chapter_upload_move {
  8509. position: relative;
  8510. background-color: #fff;
  8511. position: absolute;
  8512. width: 100%;
  8513. top: 0px;
  8514. left: 0px;
  8515. border: 1px solid #eee;
  8516. border-radius: 5px;
  8517. transition: width 2s;
  8518. -moz-transition: width 2s;
  8519. -webkit-transition: width 2s;
  8520. -o-transition: width 2s;
  8521. }
  8522. .chapter_upload_l_i {
  8523. background-image: url("../../../assets/icon.png");
  8524. background-position: 3px -165px;
  8525. width: 30px;
  8526. height: 30px;
  8527. margin: 10px auto 0 auto;
  8528. }
  8529. .course_input_box {
  8530. display: flex;
  8531. margin-right: 20px;
  8532. width: 100%;
  8533. align-items: center;
  8534. position: relative;
  8535. }
  8536. .course_input_box>.binfo_input {
  8537. width: calc(100% - 0 - 200px - 20px);
  8538. margin: 0 10px;
  8539. }
  8540. .bb_courseIcon {
  8541. width: 57px;
  8542. height: 45px;
  8543. background: #F0F4FA;
  8544. border-radius: 5px 0px 0px 5px;
  8545. display: flex;
  8546. align-items: center;
  8547. justify-content: center;
  8548. border-right: 1.5px solid rgb(202, 209, 220);
  8549. box-sizing: border-box;
  8550. position: absolute;
  8551. left: 1.5px
  8552. }
  8553. .bb_courseIcon>img {
  8554. width: 25px;
  8555. height: auto
  8556. }
  8557. .big_box {
  8558. /* margin-top: 20px; */
  8559. display: flex;
  8560. justify-content: space-between;
  8561. /* border-bottom: 1px solid #E0E2ED; */
  8562. }
  8563. .left_first {
  8564. display: flex;
  8565. flex-direction: column;
  8566. flex-wrap: nowrap;
  8567. width: calc(100% - 310px);
  8568. padding: 20px;
  8569. box-sizing: border-box;
  8570. background: #fff;
  8571. border-radius: 5px;
  8572. }
  8573. .right_first {
  8574. width: 300px;
  8575. display: flex;
  8576. align-items: center;
  8577. justify-content: center;
  8578. /* border-left: 1px solid #E0E2ED; */
  8579. box-sizing: border-box;
  8580. padding: 20px;
  8581. flex-direction: column;
  8582. background: #fff;
  8583. border-radius: 5px;
  8584. }
  8585. .ai_box {
  8586. width: 204px;
  8587. display: flex;
  8588. justify-content: flex-end;
  8589. margin-bottom: 15px;
  8590. }
  8591. .ai_content {
  8592. display: flex;
  8593. align-items: center;
  8594. font-size: 14px;
  8595. padding: 7px 20px;
  8596. box-sizing: border-box;
  8597. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  8598. border-radius: 12px;
  8599. font-weight: 700;
  8600. cursor: pointer;
  8601. }
  8602. .ai_content>img {
  8603. width: 40px;
  8604. margin-right: 5px;
  8605. }
  8606. .c_info_title {
  8607. padding: 15px 0 15px 0;
  8608. font-size: 16px;
  8609. font-weight: bold;
  8610. margin: 0 0 0 20px;
  8611. box-sizing: border-box;
  8612. display: flex;
  8613. align-items: center;
  8614. line-height: 20px;
  8615. }
  8616. .c_info_title::before {
  8617. content: '';
  8618. display: block;
  8619. width: 3px;
  8620. height: 20px;
  8621. background: #0061FF;
  8622. border-radius: 3px;
  8623. margin: 0 5px 0 0;
  8624. }
  8625. .right_title {
  8626. /* height: 30px; */
  8627. padding: 0 20px;
  8628. font-size: 18px;
  8629. font-weight: bold;
  8630. /* color: #0f7eff; */
  8631. margin: 20px auto 0;
  8632. display: flex;
  8633. /* justify-content: space-between; */
  8634. align-items: center;
  8635. }
  8636. .people {
  8637. border: 1px solid rgb(229 229 229);
  8638. border-radius: 5px;
  8639. width: 100%;
  8640. }
  8641. .people_top {
  8642. display: flex;
  8643. width: 100%;
  8644. /* justify-content: space-between; */
  8645. /* align-items: center; */
  8646. flex-direction: column;
  8647. padding: 10px 10px 0;
  8648. box-sizing: border-box;
  8649. }
  8650. .people_nav,
  8651. .people_top_right {
  8652. /* padding: 20px 0 0 20px; */
  8653. }
  8654. .people_top_right {
  8655. height: 40px;
  8656. margin-bottom: 10px;
  8657. }
  8658. .people_search {
  8659. display: flex;
  8660. position: relative;
  8661. }
  8662. .people_search>>>.el-input__inner {
  8663. /* height: 25px; */
  8664. width: 95%;
  8665. }
  8666. .search_img {
  8667. width: 20px;
  8668. height: 20px;
  8669. position: absolute;
  8670. right: 30px;
  8671. top: 50%;
  8672. transform: translateY(-50%);
  8673. }
  8674. .search_img>img {
  8675. width: 100%;
  8676. height: 100%;
  8677. }
  8678. .people_name {
  8679. height: 40vh;
  8680. display: flex;
  8681. justify-content: flex-start;
  8682. padding: 10px 0 0 25px;
  8683. flex-direction: column;
  8684. flex-wrap: nowrap;
  8685. overflow-y: auto;
  8686. overflow-x: hidden;
  8687. flex-direction: column;
  8688. }
  8689. .p_box {
  8690. position: relative;
  8691. }
  8692. .people_name>>>.el-checkbox {
  8693. width: 100%;
  8694. display: flex;
  8695. align-items: center;
  8696. margin-bottom: 10px;
  8697. }
  8698. .people_name>>>.el-checkbox__label {
  8699. text-overflow: ellipsis;
  8700. overflow: hidden;
  8701. width: calc(100%);
  8702. }
  8703. .people_name2>>>.el-checkbox__label {
  8704. width: calc(100% - 130px);
  8705. }
  8706. .inviteCode {
  8707. position: absolute;
  8708. right: 30px;
  8709. color: #237ade;
  8710. top: 0;
  8711. cursor: pointer;
  8712. font-size: 13px;
  8713. }
  8714. .noneInvite {
  8715. color: #a8a8a8;
  8716. }
  8717. .inviteImg {
  8718. position: absolute;
  8719. right: 5px;
  8720. top: 0;
  8721. width: 20px;
  8722. }
  8723. .right_img {
  8724. width: 150px;
  8725. height: 150px;
  8726. margin: 20px auto;
  8727. }
  8728. .right_img>img {
  8729. width: 100%;
  8730. height: 100%;
  8731. }
  8732. .number {
  8733. margin-top: 20px;
  8734. color: #4aa6ff;
  8735. text-decoration: underline;
  8736. }
  8737. .success_button {
  8738. display: flex;
  8739. text-align: center;
  8740. margin: 5% 0 auto;
  8741. flex-direction: row;
  8742. justify-content: center;
  8743. }
  8744. .look_course {
  8745. margin-right: 40px;
  8746. background: #3d67bc;
  8747. width: 200px;
  8748. height: 35px;
  8749. line-height: 35px;
  8750. color: #fff;
  8751. text-align: center;
  8752. font-size: 14px;
  8753. border-radius: 5px;
  8754. cursor: pointer;
  8755. }
  8756. .attend_others {
  8757. width: 250px;
  8758. background: #4fb13c;
  8759. height: 35px;
  8760. line-height: 35px;
  8761. color: #fff;
  8762. text-align: center;
  8763. font-size: 14px;
  8764. border-radius: 5px;
  8765. cursor: pointer;
  8766. }
  8767. .dialog_diy2>>>.el-dialog__body {
  8768. text-align: center;
  8769. }
  8770. .write_togother {
  8771. position: absolute;
  8772. right: 45px;
  8773. display: flex;
  8774. top: 5%;
  8775. }
  8776. .write_people {
  8777. font-size: 14px;
  8778. line-height: 50px;
  8779. padding-right: 10px;
  8780. }
  8781. .end_write {
  8782. background: #3d67bc;
  8783. color: #fff;
  8784. width: 100px;
  8785. height: 35px;
  8786. line-height: 35px;
  8787. text-align: center;
  8788. font-size: 14px;
  8789. border-radius: 5px;
  8790. cursor: pointer;
  8791. }
  8792. .chapter_upload+.chapter_upload {
  8793. /* margin-top: 15px; */
  8794. border-top: 1px solid #E7EBF1;
  8795. }
  8796. .chapter_upload {
  8797. height: 45px;
  8798. position: relative;
  8799. display: flex;
  8800. align-items: center;
  8801. width: 100%;
  8802. min-height: 45px;
  8803. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  8804. /* border-radius: 4px; */
  8805. overflow: hidden;
  8806. box-sizing: border-box;
  8807. }
  8808. .chapter_upload_t {
  8809. background-color: #fff;
  8810. position: absolute;
  8811. height: 100%;
  8812. top: 0px;
  8813. left: 0px;
  8814. box-sizing: border-box;
  8815. }
  8816. .chapter_upload_o {
  8817. width: 100%;
  8818. height: 100%;
  8819. position: relative;
  8820. z-index: 1;
  8821. }
  8822. .chapter_upload_ic {
  8823. margin: 0 15px 0px auto;
  8824. display: flex;
  8825. align-items: center;
  8826. }
  8827. .chapter_upload_ic_l {
  8828. width: 50px;
  8829. height: 50px;
  8830. float: left;
  8831. }
  8832. .chapter_upload_ic_l div {
  8833. width: 30px;
  8834. height: 35px;
  8835. background: url("../../../assets/icon/icon.png");
  8836. }
  8837. .chapter_upload_ic_edit {
  8838. height: 100%;
  8839. display: flex;
  8840. align-items: center;
  8841. cursor: pointer;
  8842. margin: 0 10px 0 0;
  8843. }
  8844. .chapter_upload_ic_edit div {
  8845. width: 18px;
  8846. height: 18px;
  8847. background-image: url("../../../assets/icon/new/edit_u.png");
  8848. background-size: 100% 100%;
  8849. }
  8850. .chapter_upload_ic_r {
  8851. height: 100%;
  8852. display: flex;
  8853. align-items: center;
  8854. cursor: pointer;
  8855. }
  8856. .chapter_upload_ic_r div {
  8857. width: 18px;
  8858. height: 18px;
  8859. background-image: url("../../../assets/icon/new/delete_u.png");
  8860. background-size: 100% 100%;
  8861. }
  8862. .chapter_upload_n {
  8863. display: flex;
  8864. text-indent: 10px;
  8865. text-decoration: none;
  8866. text-overflow: ellipsis;
  8867. white-space: nowrap;
  8868. overflow: hidden;
  8869. width: 55%;
  8870. margin-left: 10px;
  8871. cursor: pointer;
  8872. margin-top: 2px;
  8873. align-items: center;
  8874. }
  8875. .chapter_upload_l_i2,
  8876. .chapter_upload_l_i3,
  8877. .chapter_upload_l_i8,
  8878. .chapter_upload_l_i6,
  8879. .chapter_upload_l_i12,
  8880. .chapter_upload_l_i14,
  8881. .chapter_upload_l_i13 {
  8882. width: 15px;
  8883. height: 15px;
  8884. background-size: 100% 100%;
  8885. }
  8886. .chapter_upload_l_i2 {
  8887. background-image: url("../../../assets/icon/new/u_word.png");
  8888. }
  8889. .chapter_upload_l_i3 {
  8890. background-image: url("../../../assets/icon/new/u_video.png");
  8891. }
  8892. .chapter_upload_l_i8 {
  8893. background-image: url("../../../assets/icon/new/u_url.png");
  8894. }
  8895. .chapter_upload_l_i14 {
  8896. background-image: url("../../../assets/icon/new/u_source.png");
  8897. }
  8898. .chapter_upload_l_i6 {
  8899. background-image: url("../../../assets/icon/new/u_picture.png");
  8900. }
  8901. .chapter_upload_l_i12 {
  8902. background-image: url("../../../assets/icon/new/u_word.png");
  8903. }
  8904. .chapter_upload_l_i13 {
  8905. background-image: url("../../../assets/icon/new/u_img.png");
  8906. }
  8907. .chapter_upload_noSee {
  8908. background-image: url("../../../assets/icon/new/u_noUpload.png");
  8909. width: 18px;
  8910. height: 18px;
  8911. background-size: 100% 100%;
  8912. display: block;
  8913. margin-right: 10px;
  8914. }
  8915. .chapter_upload_ud {
  8916. display: flex;
  8917. flex-direction: row;
  8918. justify-content: center;
  8919. margin: 0 10px 0 0;
  8920. }
  8921. .chapter_upload_ud>.chapter_upload_up {
  8922. margin-bottom: 0;
  8923. margin-right: 10px;
  8924. }
  8925. .chapter_upload_down,
  8926. .chapter_upload_up {
  8927. width: 20px;
  8928. height: 20px;
  8929. background: #e4eaf2;
  8930. cursor: pointer;
  8931. margin: 0 auto;
  8932. border-radius: 5px;
  8933. display: flex;
  8934. justify-content: center;
  8935. align-items: center;
  8936. }
  8937. .chapter_upload_up::after,
  8938. .chapter_upload_down::after {
  8939. content: '';
  8940. background-image: url('../../../assets/icon/new/downBtn.png');
  8941. width: 13px;
  8942. height: 13px;
  8943. background-size: 100% 100%;
  8944. display: block;
  8945. }
  8946. .chapter_upload_up::after {
  8947. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  8948. }
  8949. .chapter_upload_up {
  8950. margin-bottom: 5px;
  8951. }
  8952. .addWordStyle {
  8953. display: flex;
  8954. flex-direction: row;
  8955. justify-content: flex-start;
  8956. overflow-x: auto;
  8957. white-space: nowrap;
  8958. flex-wrap: wrap;
  8959. }
  8960. /* table 样式 */
  8961. .cont>>>table {
  8962. border-top: 1px solid #ccc;
  8963. border-left: 1px solid #ccc;
  8964. }
  8965. .cont>>>table td,
  8966. .cont>>>table th {
  8967. border-bottom: 1px solid #ccc;
  8968. border-right: 1px solid #ccc;
  8969. /* padding: 20px 5px; */
  8970. padding: 5px 10px;
  8971. max-width: 0px;
  8972. height: 30px;
  8973. vertical-align: baseline;
  8974. }
  8975. .cont>>>table th {
  8976. border-bottom: 2px solid #ccc;
  8977. text-align: center;
  8978. }
  8979. /* blockquote 样式 */
  8980. .cont>>>blockquote {
  8981. display: block;
  8982. border-left: 8px solid #d0e5f2;
  8983. padding: 5px 10px;
  8984. margin: 10px 0;
  8985. line-height: 1.4;
  8986. font-size: 100%;
  8987. background-color: #f1f1f1;
  8988. }
  8989. /* code 样式 */
  8990. .cont>>>code {
  8991. display: inline-block;
  8992. /* *display: inline; */
  8993. zoom: 1;
  8994. background-color: #f1f1f1;
  8995. border-radius: 3px;
  8996. padding: 3px 5px;
  8997. margin: 0 3px;
  8998. }
  8999. .cont>>>pre code {
  9000. display: block;
  9001. }
  9002. /* ul ol 样式 */
  9003. .cont>>>ul,
  9004. ol {
  9005. margin: 10px 0 10px 20px;
  9006. }
  9007. .wordbox {
  9008. display: flex;
  9009. flex-wrap: wrap;
  9010. cursor: pointer;
  9011. width: 100%;
  9012. }
  9013. .checkword {
  9014. width: 22px;
  9015. height: 22px;
  9016. margin: 10px auto 0;
  9017. cursor: pointer;
  9018. }
  9019. .checkword img {
  9020. width: 100%;
  9021. }
  9022. .stepBg {
  9023. display: flex;
  9024. flex-direction: column;
  9025. justify-content: space-between;
  9026. align-items: center;
  9027. background: #fff;
  9028. width: 300px;
  9029. margin: 0 25px 0 0;
  9030. }
  9031. .stepTop {
  9032. min-width: 300px;
  9033. width: 300px;
  9034. /* border-radius: 10px; */
  9035. display: flex;
  9036. flex-direction: column;
  9037. justify-content: flex-start;
  9038. align-items: center;
  9039. flex-wrap: nowrap;
  9040. background: #fff;
  9041. /* top: 18%; */
  9042. }
  9043. .stepTop>div {
  9044. height: 80px;
  9045. width: 85%;
  9046. cursor: pointer;
  9047. margin: 10px 0;
  9048. border-radius: 10px;
  9049. }
  9050. .first,
  9051. .second,
  9052. .third,
  9053. .four {
  9054. background: #4a83d0;
  9055. height: 90px;
  9056. color: #fff;
  9057. display: flex;
  9058. flex-direction: row;
  9059. align-items: center;
  9060. justify-content: center;
  9061. }
  9062. .first>div:nth-child(1),
  9063. .second>div:nth-child(1),
  9064. .third>div:nth-child(1),
  9065. .four>div:nth-child(1) {
  9066. margin: 5px 10px 0 0;
  9067. width: 2rem;
  9068. }
  9069. .firstNo,
  9070. .secondNo,
  9071. .thirdNo,
  9072. .fourNo {
  9073. background: #e7e7e7;
  9074. color: #adadad;
  9075. display: flex;
  9076. flex-direction: row;
  9077. align-items: center;
  9078. justify-content: center;
  9079. }
  9080. .firstNo>div:nth-child(1),
  9081. .secondNo>div:nth-child(1),
  9082. .thirdNo>div:nth-child(1),
  9083. .fourNo>div:nth-child(1) {
  9084. margin: 5px 10px 0 0;
  9085. width: 2rem;
  9086. }
  9087. .uploadWidth>>>.el-upload {
  9088. width: 60px;
  9089. height: 60px;
  9090. position: relative;
  9091. }
  9092. .addPeople {
  9093. background: #fa6060;
  9094. width: 150px;
  9095. height: 40px;
  9096. color: #fff;
  9097. border-radius: 5px;
  9098. text-align: center;
  9099. line-height: 40px;
  9100. font-size: 14px;
  9101. cursor: pointer;
  9102. }
  9103. .kcImg {
  9104. width: 60px;
  9105. margin-left: 10px;
  9106. }
  9107. .zyImg {
  9108. width: 55px;
  9109. margin: 0 10px;
  9110. }
  9111. .deleteZy {
  9112. width: 20px;
  9113. position: absolute;
  9114. top: 5px;
  9115. right: 5px;
  9116. cursor: pointer;
  9117. }
  9118. .kcImg>img,
  9119. .zyImg>img,
  9120. .deleteZy>img {
  9121. width: 100%;
  9122. height: 100%;
  9123. }
  9124. .zyBox {
  9125. display: flex;
  9126. flex-direction: row;
  9127. align-items: center;
  9128. background: #67d37d;
  9129. color: #fff;
  9130. width: 210px;
  9131. margin: 20px 20px 0 0;
  9132. border-radius: 10px;
  9133. height: 70px;
  9134. position: relative;
  9135. }
  9136. .upCss {
  9137. display: flex;
  9138. flex-direction: row;
  9139. justify-content: flex-start;
  9140. }
  9141. .upCss>>>.el-icon-plus {
  9142. position: none !important;
  9143. width: 200px;
  9144. height: 100px;
  9145. display: flex;
  9146. flex-wrap: nowrap;
  9147. flex-direction: column;
  9148. align-items: center;
  9149. justify-content: center;
  9150. border: 1px dashed #ccc;
  9151. min-width: 78px;
  9152. min-height: 100px;
  9153. z-index: 999;
  9154. }
  9155. .upCss>>>.el-upload-list__item-name {
  9156. width: 100px;
  9157. white-space: nowrap;
  9158. overflow: hidden;
  9159. text-overflow: ellipsis;
  9160. }
  9161. .upCss>>>.el-upload-list__item .el-icon-close {
  9162. font-size: 20px;
  9163. z-index: 9999;
  9164. }
  9165. .addStageImg {
  9166. min-width: 25px;
  9167. min-height: 25px;
  9168. width: 25px;
  9169. height: 25px;
  9170. cursor: pointer;
  9171. }
  9172. .addHW {
  9173. width: 28px;
  9174. height: 28px;
  9175. cursor: pointer;
  9176. }
  9177. .addStageImg>img,
  9178. .addHW>img {
  9179. width: 100%;
  9180. height: 100%;
  9181. }
  9182. .addNewPP>>>.el-dialog__body {
  9183. padding: 5px 20px;
  9184. }
  9185. .addNewPP>>>.el-dialog {
  9186. margin-top: 5vh !important;
  9187. }
  9188. .addNewPP2>>>.el-dialog__body {
  9189. padding: 5px 0;
  9190. }
  9191. .addNewPP2>>>.el-dialog {
  9192. margin-top: 5vh !important;
  9193. }
  9194. .isHeight {
  9195. height: 680px;
  9196. }
  9197. .toolChoose {
  9198. display: flex;
  9199. /* width: 100%; */
  9200. flex-direction: row;
  9201. flex-wrap: wrap;
  9202. }
  9203. .tool {
  9204. display: flex;
  9205. flex-direction: column;
  9206. flex-wrap: nowrap;
  9207. width: fit-content;
  9208. margin: 10px 0 10px 0;
  9209. align-items: center;
  9210. }
  9211. .tool+.tool {
  9212. margin-right: 45px;
  9213. }
  9214. .whiteBIcon {
  9215. width: 80px;
  9216. cursor: pointer;
  9217. display: flex;
  9218. flex-direction: column;
  9219. flex-wrap: nowrap;
  9220. align-items: center;
  9221. font-size: 14px;
  9222. }
  9223. .whiteBIcon>img,
  9224. .toolIcon>img,
  9225. .arrow>img {
  9226. width: 100%;
  9227. height: 100%;
  9228. }
  9229. .check img {
  9230. width: 20px;
  9231. height: 20px;
  9232. }
  9233. .whiteBIcon>img {
  9234. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9235. border-radius: 15px;
  9236. }
  9237. .whiteBIcon>div:nth-child(2) {
  9238. height: 20px;
  9239. line-height: 20px;
  9240. }
  9241. .check {
  9242. /* width: 20px;
  9243. height: 20px; */
  9244. cursor: pointer;
  9245. margin: 10px 0 0;
  9246. }
  9247. .checkDiv {
  9248. display: flex;
  9249. align-items: center;
  9250. }
  9251. .checkDiv span {
  9252. margin-left: 5px;
  9253. color: #858585;
  9254. }
  9255. .customWidth>>>.el-dialog {
  9256. min-width: 500px !important;
  9257. }
  9258. .a_addBox {
  9259. margin: 10px 0;
  9260. background: #fff;
  9261. padding: 15px;
  9262. /* max-height: 600px; */
  9263. overflow: auto;
  9264. }
  9265. .a_add_box {
  9266. border-bottom: 2px solid #eee;
  9267. padding-bottom: 25px;
  9268. }
  9269. .a_add_head {
  9270. display: flex;
  9271. align-items: center;
  9272. justify-content: space-between;
  9273. margin: 10px 0 0 0;
  9274. font-size: 18px;
  9275. }
  9276. .a_add_checkType {
  9277. margin-top: 10px;
  9278. display: flex;
  9279. font-size: 14px;
  9280. align-items: center;
  9281. }
  9282. .a_add_checkType span {
  9283. box-sizing: border-box;
  9284. padding: 0 0 5px 0;
  9285. cursor: pointer;
  9286. }
  9287. .a_add_checkType span+span {
  9288. margin-left: 10px;
  9289. }
  9290. .a_add_checkType .active {
  9291. border-bottom: 2px solid #409eff;
  9292. color: #409eff;
  9293. }
  9294. .a_add_head .a_add_head_input {
  9295. width: 100%;
  9296. }
  9297. .a_add_head .a_add_head_div {
  9298. display: flex;
  9299. align-items: center;
  9300. justify-content: space-between;
  9301. }
  9302. .a_add_body {
  9303. display: flex;
  9304. /* align-items: center; */
  9305. align-items: flex-end;
  9306. }
  9307. .a_add_input {
  9308. display: flex;
  9309. align-items: center;
  9310. flex-wrap: wrap;
  9311. }
  9312. .a_add_input_choice {
  9313. flex-direction: column;
  9314. margin-right: 10px;
  9315. }
  9316. .a_add_input_choice>>>.el-radio {
  9317. display: flex;
  9318. align-items: center;
  9319. flex-direction: row-reverse;
  9320. margin: 30px 0 0 0;
  9321. position: relative;
  9322. }
  9323. .a_add_input_choice>>>.el-checkbox {
  9324. display: flex;
  9325. align-items: center;
  9326. flex-direction: row-reverse;
  9327. margin: 30px 0 0 0;
  9328. position: relative;
  9329. }
  9330. .width100 {
  9331. width: 100%;
  9332. }
  9333. .a_add_input .a_add_persent {
  9334. width: 100%;
  9335. }
  9336. .a_add_persent_div {
  9337. width: 100%;
  9338. display: flex;
  9339. align-items: center;
  9340. }
  9341. .a_add_persent_div span {
  9342. margin: 5px 0;
  9343. }
  9344. .a_add_persent_div span:nth-child(1) {
  9345. width: 30%;
  9346. }
  9347. .a_add_persent_div span:nth-child(2) {
  9348. width: 7%;
  9349. }
  9350. .a_add_persent_div span:nth-child(3) {
  9351. width: 40%;
  9352. }
  9353. .a_add_body_div {
  9354. display: flex;
  9355. align-items: center;
  9356. justify-content: center;
  9357. /* flex-direction: column; */
  9358. position: absolute;
  9359. right: -20px;
  9360. transform: translateX(100%);
  9361. }
  9362. .a_add_body_div>>>.el-button--primary {
  9363. background: #466b99;
  9364. border: none;
  9365. }
  9366. .all_choose {
  9367. display: flex;
  9368. flex-direction: row;
  9369. align-items: flex-start;
  9370. width: 100%;
  9371. }
  9372. .all_choose>span {
  9373. min-width: fit-content;
  9374. display: block;
  9375. white-space: nowrap;
  9376. overflow: hidden;
  9377. text-overflow: ellipsis;
  9378. margin-right: 20px;
  9379. font-weight: bold;
  9380. font-size: 14px;
  9381. }
  9382. .all_choose>>>.el-checkbox-group {
  9383. display: flex;
  9384. flex-direction: row;
  9385. width: 100%;
  9386. flex-wrap: wrap;
  9387. align-content: center;
  9388. justify-content: flex-start;
  9389. align-items: center;
  9390. margin-top: 3px;
  9391. }
  9392. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9393. margin-bottom: 10px;
  9394. display: flex;
  9395. flex-direction: row;
  9396. align-items: center;
  9397. margin-right: 10px;
  9398. }
  9399. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9400. min-width: 80px;
  9401. overflow: hidden;
  9402. width: 80px;
  9403. text-overflow: ellipsis;
  9404. white-space: nowrap;
  9405. }
  9406. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9407. width: auto;
  9408. }
  9409. .choose>div:nth-child(3)>span {
  9410. /* letter-spacing: 0 !important; */
  9411. }
  9412. .choose {
  9413. display: flex;
  9414. flex-direction: column;
  9415. flex-wrap: nowrap;
  9416. height: 100%;
  9417. justify-content: space-evenly;
  9418. align-items: flex-start;
  9419. }
  9420. .both {
  9421. display: flex;
  9422. flex-direction: row;
  9423. flex-wrap: wrap;
  9424. width: 100%;
  9425. align-items: center;
  9426. justify-content: flex-start;
  9427. margin: 15px 0;
  9428. }
  9429. .notice>>>.el-dialog {
  9430. width: 500px !important;
  9431. text-align: center;
  9432. }
  9433. .notice>>>.el-button {
  9434. margin-top: 20px;
  9435. }
  9436. .whiteBg {
  9437. background: #fff;
  9438. border-radius: 10px;
  9439. }
  9440. .wb_j_box {
  9441. display: flex;
  9442. width: 100%;
  9443. padding: 10px 20px;
  9444. box-sizing: border-box;
  9445. }
  9446. .wb_j_box_content {
  9447. width: calc(100% - 55% - 100px);
  9448. display: flex;
  9449. align-items: center;
  9450. }
  9451. .wb_j_box_p_box {
  9452. max-width: calc(100% - 200px);
  9453. word-break: break-all;
  9454. overflow: hidden;
  9455. margin: 0 0 0 10px;
  9456. font-size: 14px;
  9457. color: #6e6e6e;
  9458. }
  9459. .chooseWho {
  9460. display: flex;
  9461. width: 410px;
  9462. flex-direction: row;
  9463. flex-wrap: nowrap;
  9464. justify-content: space-between;
  9465. padding-bottom: 10px;
  9466. }
  9467. .chooseWho>div {
  9468. cursor: pointer;
  9469. padding-bottom: 10px;
  9470. font-weight: bold;
  9471. }
  9472. .isChooseActive {
  9473. color: #3e88f4;
  9474. border-bottom: 2px solid #2f80f3;
  9475. }
  9476. .toolSort {
  9477. display: flex;
  9478. flex-direction: row;
  9479. flex-wrap: wrap;
  9480. justify-content: flex-start;
  9481. align-items: flex-start;
  9482. }
  9483. .toolSort>div {
  9484. margin-right: 45px;
  9485. }
  9486. .tools {
  9487. width: 100%;
  9488. display: flex;
  9489. flex-direction: column;
  9490. flex-wrap: nowrap;
  9491. align-items: flex-start;
  9492. }
  9493. .leftTools,
  9494. .rightTools {
  9495. width: 50%;
  9496. }
  9497. .leftTools+.leftTools {
  9498. border-top: 1px solid #dbdbdb;
  9499. padding-top: 30px;
  9500. }
  9501. .rightTools {
  9502. display: flex;
  9503. flex-direction: row;
  9504. flex-wrap: nowrap;
  9505. justify-content: space-around;
  9506. }
  9507. .firstToolList {
  9508. display: flex;
  9509. flex-direction: column;
  9510. flex-wrap: nowrap;
  9511. align-items: center;
  9512. }
  9513. .iconList {
  9514. display: flex;
  9515. flex-direction: row;
  9516. flex-wrap: wrap;
  9517. justify-content: flex-start;
  9518. align-items: center;
  9519. margin: 20px 0 5px 0;
  9520. width: 240px;
  9521. min-width: 240px;
  9522. }
  9523. .iconTool {
  9524. display: flex;
  9525. flex-direction: column;
  9526. flex-wrap: nowrap;
  9527. align-items: center;
  9528. justify-content: flex-start;
  9529. margin: 15px 10px;
  9530. }
  9531. .toolIcon {
  9532. width: 50px;
  9533. }
  9534. .taskBorder {
  9535. /*border: 1px solid #e1e1e1; */
  9536. border-radius: 8px;
  9537. margin-top: 10px;
  9538. /* min-height: 1160px; */
  9539. position: relative;
  9540. background: #fff;
  9541. padding: 20px 20px 0;
  9542. overflow: hidden;
  9543. box-sizing: border-box;
  9544. }
  9545. .smallTaskBorder {
  9546. height: 170px;
  9547. min-height: 170px !important;
  9548. overflow: hidden;
  9549. }
  9550. .taskBorder>div {
  9551. /* padding: 30px 0 10px 30px; */
  9552. }
  9553. .addTaskBorder {
  9554. /* border: 2px solid #5E9AFC; */
  9555. border-radius: 8px;
  9556. margin-top: 10px;
  9557. cursor: pointer;
  9558. /* height: 50px;
  9559. line-height: 50px; */
  9560. background: #fff;
  9561. padding: 15px 0;
  9562. display: flex;
  9563. align-items: center;
  9564. justify-content: center;
  9565. }
  9566. /* .addTaskBorder>div {
  9567. margin: 0 auto;
  9568. display: flex;
  9569. align-items: center;
  9570. justify-content: center;
  9571. }
  9572. .addTaskBorder>div>img {
  9573. width: 20px;
  9574. }
  9575. .addTaskBorder>div>span {
  9576. font-size: 16px;
  9577. margin-left: 10px;
  9578. color: #5E9AFC;
  9579. } */
  9580. .funBlock {
  9581. display: flex;
  9582. padding: 15px 0;
  9583. flex-direction: row;
  9584. justify-content: flex-end;
  9585. align-items: center;
  9586. position: absolute;
  9587. right: 15px;
  9588. bottom: 35px;
  9589. }
  9590. .fold {
  9591. display: flex;
  9592. margin: 0 10px;
  9593. flex-direction: row;
  9594. align-items: center;
  9595. cursor: pointer;
  9596. }
  9597. .arrow {
  9598. width: 15px;
  9599. height: 15px;
  9600. margin-left: 10px;
  9601. }
  9602. .addToolFun {
  9603. display: flex;
  9604. width: 150px;
  9605. flex-direction: row;
  9606. align-items: center;
  9607. justify-content: center;
  9608. border: 1px dashed;
  9609. border-radius: 5px;
  9610. height: 50px;
  9611. margin: 20px auto 35px;
  9612. cursor: pointer;
  9613. }
  9614. .addToolFun2 {
  9615. display: flex;
  9616. width: 150px;
  9617. border: 2px dashed #CAD1DC;
  9618. flex-direction: row;
  9619. align-items: center;
  9620. justify-content: center;
  9621. border-radius: 5px;
  9622. height: 50px;
  9623. margin: 0 auto 0;
  9624. cursor: pointer;
  9625. }
  9626. .addToolImg {
  9627. width: 20px;
  9628. height: 20px;
  9629. margin-right: 10px;
  9630. }
  9631. .addToolsDia>>>.el-dialog__body {
  9632. padding: 20px;
  9633. }
  9634. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9635. padding: 0;
  9636. }
  9637. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9638. padding: 0;
  9639. border-bottom: none;
  9640. margin-bottom: 0;
  9641. }
  9642. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9643. width: 100%;
  9644. }
  9645. .lineCss>>>.el-form-item__label {
  9646. width: auto !important;
  9647. }
  9648. .lineCss>>>.el-form-item__content {
  9649. margin-left: 50px !important;
  9650. }
  9651. .newSteps {
  9652. display: flex;
  9653. width: 100% !important;
  9654. height: 80px;
  9655. cursor: pointer;
  9656. margin: 10px 0;
  9657. border-radius: 10px;
  9658. flex-direction: row;
  9659. align-content: center;
  9660. justify-content: center;
  9661. align-items: center;
  9662. margin: 0 !important;
  9663. }
  9664. /* 评价样式 */
  9665. .elist_css {
  9666. padding-bottom: 60px !important;
  9667. }
  9668. .elist_title {
  9669. margin-bottom: 10px;
  9670. }
  9671. .elist_input {}
  9672. .elist_input_box {
  9673. display: flex;
  9674. align-items: center;
  9675. flex-wrap: wrap;
  9676. }
  9677. .elist_input_box+.elist_input_box {
  9678. margin-top: 30px;
  9679. }
  9680. .elist_input .elist_input_box input {
  9681. font: inherit;
  9682. color: currentColor;
  9683. /* width: 200px; */
  9684. max-width: 200px;
  9685. padding: 8px 14px;
  9686. display: block;
  9687. min-width: 0;
  9688. outline: none;
  9689. border: 1px solid rgba(0, 0, 0, 0.23);
  9690. border-radius: 4px;
  9691. box-sizing: border-box;
  9692. background: #fff;
  9693. margin: 0 5px 0 0;
  9694. }
  9695. .elist_input .elist_input_box span {
  9696. height: 36px;
  9697. line-height: 36px;
  9698. color: rgb(82, 82, 82);
  9699. min-width: 80px;
  9700. }
  9701. .elist_input .elist_input_box .remove {
  9702. height: 20px;
  9703. width: 20px;
  9704. min-width: 20px;
  9705. background-size: 100% 100%;
  9706. background-position: unset;
  9707. margin-left: 5px;
  9708. }
  9709. .elist_input_box>>>.el-rate {
  9710. display: flex;
  9711. height: 36px;
  9712. align-items: center;
  9713. }
  9714. .elist_input_box .elist_inptu_text {
  9715. width: 100%;
  9716. display: flex;
  9717. align-items: center;
  9718. margin-top: 10px;
  9719. }
  9720. .elist_input_box .elist_inptu_text input {
  9721. /* width: 500px; */
  9722. width: 100%;
  9723. max-width: unset;
  9724. }
  9725. .elist_input_box>>>.el-rate__icon {
  9726. font-size: 24px;
  9727. }
  9728. .elist_btn {
  9729. margin-top: 10px;
  9730. }
  9731. .lineTitle {
  9732. /* margin-top: 15px; */
  9733. width: 110px;
  9734. font-size: 16px;
  9735. display: flex;
  9736. align-items: center;
  9737. line-height: 20px;
  9738. }
  9739. .lineTitle::before {
  9740. content: '';
  9741. display: block;
  9742. width: 3px;
  9743. height: 20px;
  9744. background: #0061FF;
  9745. border-radius: 3px;
  9746. margin: 0 5px 0 0;
  9747. }
  9748. .courseTop {
  9749. display: flex;
  9750. flex-direction: row;
  9751. justify-content: space-between;
  9752. align-items: center;
  9753. width: calc(100%);
  9754. padding: 10px 0;
  9755. margin: 0 auto;
  9756. }
  9757. .stepsNav {
  9758. display: flex;
  9759. flex-direction: row;
  9760. justify-content: flex-start;
  9761. align-items: center;
  9762. }
  9763. .stepsWord {
  9764. font-size: 18px;
  9765. color: #fff;
  9766. font-weight: bold;
  9767. margin-left: auto;
  9768. background: rgb(15, 126, 255);
  9769. border-radius: 5px;
  9770. padding: 3px 25px;
  9771. box-sizing: border-box;
  9772. }
  9773. .rightBox {
  9774. width: calc(100%);
  9775. background: #F0F2F5;
  9776. /* border-radius: 10px; */
  9777. overflow: auto;
  9778. height: calc(100% - 120px);
  9779. margin: 0 auto;
  9780. position: relative;
  9781. box-sizing: border-box;
  9782. border-radius: 5px;
  9783. }
  9784. .e_add_top {
  9785. display: flex;
  9786. justify-content: space-between;
  9787. padding: 20px 20px 0 20px;
  9788. border-radius: 3px;
  9789. background: #fff;
  9790. }
  9791. .e_add_title2 {
  9792. display: flex;
  9793. align-items: center;
  9794. }
  9795. .e_add_title2 span {
  9796. width: 40px;
  9797. }
  9798. .e_add_title {
  9799. display: flex;
  9800. align-items: center;
  9801. color: #b8b8b8;
  9802. font-size: 18px;
  9803. position: relative;
  9804. height: 40px;
  9805. }
  9806. .e_add_title span {
  9807. margin-right: 10px;
  9808. }
  9809. .e_add_title .el_input {
  9810. width: 300px;
  9811. }
  9812. .e_add_title>>>.el-input__inner {
  9813. width: 400px;
  9814. }
  9815. .e_add_btn {}
  9816. .e_add_content {
  9817. display: flex;
  9818. width: 100%;
  9819. }
  9820. .e_add_list {
  9821. background: #fff;
  9822. height: 500px;
  9823. width: 210px;
  9824. position: relative;
  9825. margin: 15px 5px 0 0;
  9826. flex-shrink: 0;
  9827. display: flex;
  9828. flex-direction: column;
  9829. }
  9830. .e_add_list_title {
  9831. font-size: 20px;
  9832. width: 100%;
  9833. box-sizing: border-box;
  9834. padding: 15px 40px;
  9835. text-align: center;
  9836. border-bottom: 1px solid #eaeaea;
  9837. position: relative;
  9838. display: flex;
  9839. align-items: center;
  9840. justify-content: center;
  9841. height: 57px;
  9842. background: #f6f6f6;
  9843. }
  9844. .e_add_list_title span {
  9845. overflow: hidden;
  9846. white-space: nowrap;
  9847. text-overflow: ellipsis;
  9848. }
  9849. .e_add_list_title img {
  9850. position: absolute;
  9851. right: 15px;
  9852. width: 25px;
  9853. cursor: pointer;
  9854. top: 50%;
  9855. transform: translateY(-50%);
  9856. }
  9857. .e_add_list_body {
  9858. height: calc(100% - 187px);
  9859. overflow: auto;
  9860. }
  9861. .e_add_list_child {
  9862. width: 100%;
  9863. display: flex;
  9864. align-items: center;
  9865. justify-content: center;
  9866. position: relative;
  9867. box-sizing: border-box;
  9868. padding: 15px 40px;
  9869. text-align: center;
  9870. }
  9871. .e_add_list_child span {
  9872. overflow: hidden;
  9873. white-space: nowrap;
  9874. text-overflow: ellipsis;
  9875. cursor: pointer;
  9876. }
  9877. .e_add_list_child img {
  9878. position: absolute;
  9879. right: 10px;
  9880. width: 21px;
  9881. cursor: pointer;
  9882. top: 50%;
  9883. transform: translateY(-50%);
  9884. }
  9885. .e_add_list_child+.e_add_list_child {
  9886. border-top: 1px solid #eaeaea;
  9887. }
  9888. .e_add_list_child .active {
  9889. color: #409eff;
  9890. }
  9891. .e_add_list_btn {
  9892. position: absolute;
  9893. bottom: 0;
  9894. height: 50px;
  9895. background: rgb(120, 120, 254);
  9896. width: 100%;
  9897. color: #fff;
  9898. font-size: 16px;
  9899. text-align: center;
  9900. line-height: 50px;
  9901. cursor: pointer;
  9902. }
  9903. .e_add_list_detail {
  9904. position: absolute;
  9905. bottom: 0;
  9906. height: 130px;
  9907. background: rgb(120, 120, 254);
  9908. width: 100%;
  9909. color: #fff;
  9910. font-size: 16px;
  9911. display: flex;
  9912. align-items: center;
  9913. justify-content: center;
  9914. }
  9915. .e_add_list_detail textarea {
  9916. height: 90%;
  9917. width: 95%;
  9918. border: none;
  9919. resize: none;
  9920. outline: none;
  9921. padding: 5px;
  9922. box-sizing: border-box;
  9923. }
  9924. .e_add_list_pbox {
  9925. width: 100%;
  9926. }
  9927. .e_add_list_pbox_title {
  9928. height: 50px;
  9929. background: #fff;
  9930. display: flex;
  9931. align-items: center;
  9932. width: 100%;
  9933. box-sizing: border-box;
  9934. padding: 0 20px;
  9935. flex-direction: row;
  9936. flex-wrap: wrap;
  9937. }
  9938. .type_title {
  9939. font-size: 18px;
  9940. font-weight: 700;
  9941. }
  9942. .type_content {
  9943. font-size: 16px;
  9944. margin-left: 30px;
  9945. }
  9946. .type_content span+span {
  9947. margin-left: 20px;
  9948. }
  9949. .type_content span {
  9950. cursor: pointer;
  9951. padding-bottom: 5px;
  9952. box-sizing: border-box;
  9953. }
  9954. .type_content .active {
  9955. color: #409eff;
  9956. border-bottom: 2px solid #409eff;
  9957. }
  9958. .e_add_list_pbox_content {
  9959. height: calc(100% - 50px);
  9960. display: flex;
  9961. align-items: center;
  9962. width: 100%;
  9963. background: #fff;
  9964. }
  9965. .mbCss {
  9966. width: 100%;
  9967. display: flex;
  9968. flex-direction: row;
  9969. flex-wrap: nowrap;
  9970. align-content: center;
  9971. align-items: flex-start;
  9972. justify-content: flex-start;
  9973. }
  9974. .pjCss {
  9975. /* width: 42%; */
  9976. width: calc(100% - 55%);
  9977. display: flex;
  9978. flex-direction: column;
  9979. flex-wrap: nowrap;
  9980. align-items: flex-start;
  9981. margin-top: 1.5%;
  9982. }
  9983. .e_box {
  9984. display: flex;
  9985. flex-wrap: wrap;
  9986. max-height: 500px;
  9987. align-items: flex-start;
  9988. overflow: auto;
  9989. }
  9990. .e_card {
  9991. border: 1px solid #ccc;
  9992. background: #fff;
  9993. margin-right: 20px;
  9994. width: 270px;
  9995. display: flex;
  9996. flex-direction: column;
  9997. align-items: center;
  9998. border-radius: 5px;
  9999. margin-top: 10px;
  10000. text-align: center;
  10001. }
  10002. .e_card_picture {
  10003. margin: 10px 0;
  10004. }
  10005. .e_card_picture>img {
  10006. width: 50px;
  10007. }
  10008. .e_card_name {
  10009. width: 100%;
  10010. padding: 0 10px;
  10011. box-sizing: border-box;
  10012. margin-bottom: 10px;
  10013. overflow: hidden;
  10014. text-overflow: ellipsis;
  10015. white-space: nowrap;
  10016. }
  10017. .e_card_time {
  10018. width: 100%;
  10019. padding: 0 10px;
  10020. box-sizing: border-box;
  10021. font-size: 15px;
  10022. color: #c3c3c3;
  10023. margin-bottom: 10px;
  10024. }
  10025. .e_card_btn {
  10026. height: 40px;
  10027. display: flex;
  10028. align-items: center;
  10029. width: 100%;
  10030. background: rgb(244, 244, 244);
  10031. }
  10032. .e_card_btn:hover {
  10033. background: rgb(221 221 221);
  10034. }
  10035. .e_card_btn span {
  10036. flex: 1 1 auto;
  10037. text-align: center;
  10038. cursor: pointer;
  10039. }
  10040. .addEva {
  10041. border: 1px solid #ccc;
  10042. background: #fff;
  10043. margin-right: 20px;
  10044. width: 270px;
  10045. height: 149px;
  10046. display: flex;
  10047. flex-direction: column;
  10048. align-items: center;
  10049. border-radius: 5px;
  10050. margin-top: 10px;
  10051. text-align: center;
  10052. cursor: pointer;
  10053. justify-content: center;
  10054. }
  10055. .addEva>img {
  10056. width: 50px;
  10057. object-fit: cover;
  10058. }
  10059. .uploadFm {
  10060. border: 1px dashed #ccc;
  10061. width: 100%;
  10062. height: 140px;
  10063. position: relative;
  10064. cursor: pointer;
  10065. display: flex;
  10066. flex-direction: column;
  10067. justify-content: center;
  10068. align-items: center;
  10069. font-size: 14px;
  10070. color: #6e6e6e;
  10071. }
  10072. .uploadFm>img {
  10073. width: 50px;
  10074. }
  10075. .fileCss {
  10076. width: 100%;
  10077. display: flex;
  10078. flex-direction: row;
  10079. flex-wrap: nowrap;
  10080. justify-content: space-around;
  10081. align-items: center;
  10082. padding-top: 15px;
  10083. }
  10084. .fileCss>div {
  10085. display: flex;
  10086. flex-direction: column;
  10087. align-items: center;
  10088. }
  10089. .fileCss .spanName {
  10090. margin-top: 10px
  10091. }
  10092. .sysPicBox {
  10093. display: flex;
  10094. flex-direction: row;
  10095. flex-wrap: wrap;
  10096. align-content: flex-start;
  10097. height: 435px;
  10098. overflow: auto;
  10099. position: relative;
  10100. }
  10101. .picNone {
  10102. position: absolute;
  10103. left: 50%;
  10104. top: 45%;
  10105. transform: translate(-50%, -50%);
  10106. width: fit-content;
  10107. color: #9c9c9c;
  10108. }
  10109. .sysPic {
  10110. width: 200px;
  10111. height: 115px;
  10112. margin: 0 20px 20px 0;
  10113. cursor: pointer;
  10114. }
  10115. .sysPic>img,
  10116. .isSysPic>img,
  10117. .deletePic>img {
  10118. width: 100%;
  10119. height: 100%;
  10120. object-fit: cover;
  10121. }
  10122. .isSysPic {
  10123. width: 200px;
  10124. height: 115px;
  10125. position: relative;
  10126. }
  10127. .deletePic {
  10128. width: 20px;
  10129. height: 20px;
  10130. position: absolute;
  10131. top: 0;
  10132. right: 0;
  10133. cursor: pointer;
  10134. }
  10135. .select_box1 {
  10136. height: 100%;
  10137. }
  10138. .select_box1_img {
  10139. background: #fff;
  10140. border-radius: 5px;
  10141. padding: 15px;
  10142. box-sizing: border-box;
  10143. margin-bottom: 20px;
  10144. }
  10145. .select_box1_title {
  10146. padding: 0 0 15px 0;
  10147. border-bottom: 1px solid #eee;
  10148. margin-bottom: 15px;
  10149. }
  10150. .select_box1_title span:nth-child(1) {
  10151. font-size: 16px;
  10152. margin-right: 20px;
  10153. color: #000;
  10154. }
  10155. .select_box1_title span:nth-child(2) {
  10156. font-size: 14px;
  10157. color: rgb(112, 112, 112);
  10158. }
  10159. .select_box1_add_img {}
  10160. .select_box1_select {
  10161. background: #fff;
  10162. border-radius: 5px;
  10163. padding: 15px;
  10164. box-sizing: border-box;
  10165. height: calc(100% - 200px);
  10166. overflow: auto;
  10167. }
  10168. .select_box2 {
  10169. height: 100%;
  10170. }
  10171. .select_box2_title {
  10172. background: #fff;
  10173. border-radius: 5px;
  10174. padding: 5px 10px;
  10175. box-sizing: border-box;
  10176. margin-bottom: 10px;
  10177. }
  10178. .select_box2_box {
  10179. display: flex;
  10180. height: calc(100% - 30px);
  10181. }
  10182. .select_box2_img {
  10183. width: calc(100% - 310px);
  10184. height: 100%;
  10185. overflow: auto;
  10186. background: #fff;
  10187. border-radius: 5px;
  10188. }
  10189. .select_box2_img img {
  10190. width: 100%;
  10191. }
  10192. .select_box2_answer {
  10193. background: #fff;
  10194. margin-left: 10px;
  10195. border-radius: 5px;
  10196. width: 300px;
  10197. overflow: auto;
  10198. height: 100%;
  10199. display: flex;
  10200. flex-direction: column;
  10201. align-items: center;
  10202. padding-top: 10px;
  10203. box-sizing: border-box;
  10204. }
  10205. .select_box2_answer_box {
  10206. margin: 0 0 10px 0;
  10207. width: 85%;
  10208. }
  10209. .rate_textarea {
  10210. font: inherit;
  10211. color: currentColor;
  10212. width: 100%;
  10213. padding: 8px 14px;
  10214. display: block;
  10215. min-width: 0;
  10216. outline: none;
  10217. border: 1px solid rgba(0, 0, 0, 0.23);
  10218. border-radius: 4px;
  10219. box-sizing: border-box;
  10220. background: #fff;
  10221. margin: 0 20px 0 0;
  10222. resize: none;
  10223. }
  10224. .select_answer_title {
  10225. text-align: left;
  10226. width: 85%;
  10227. margin-bottom: 10px;
  10228. font-size: 18px;
  10229. color: #8e8e8e;
  10230. }
  10231. .mask {
  10232. background-color: rgb(0 0 0 / 30%);
  10233. /* position: fixed; */
  10234. position: absolute;
  10235. top: 0;
  10236. left: 0;
  10237. width: 100%;
  10238. height: 100%;
  10239. z-index: 90;
  10240. display: flex;
  10241. align-items: center;
  10242. justify-content: center;
  10243. }
  10244. .progressBox {
  10245. width: 300px;
  10246. height: 150px;
  10247. background: #fff;
  10248. border-radius: 10px;
  10249. box-shadow: 0 0 6px 1px #bfbfbf;
  10250. display: flex;
  10251. align-items: center;
  10252. justify-content: center;
  10253. flex-direction: column;
  10254. position: relative;
  10255. color: #6c6c6c;
  10256. }
  10257. .progressBox>>>.el-progress-bar__outer {
  10258. background-color: #d1dfff !important;
  10259. }
  10260. .progressBox .lbox {
  10261. height: 50px;
  10262. font-size: 19px;
  10263. display: flex;
  10264. align-items: center;
  10265. color: #747474;
  10266. }
  10267. .progressBox .lbox img {
  10268. width: 40px;
  10269. margin-right: 20px;
  10270. }
  10271. .closeCss {
  10272. position: absolute;
  10273. top: 8px;
  10274. right: 8px;
  10275. cursor: pointer;
  10276. width: 20px;
  10277. height: 20px;
  10278. }
  10279. .closeCss>img {
  10280. width: 100%;
  10281. height: 100%;
  10282. }
  10283. .updateTips::after {
  10284. content: "协同建构不支持修改基本信息,只支持加入分组。";
  10285. font-size: 14px;
  10286. margin-left: 20px;
  10287. font-weight: 400;
  10288. color: #ff3a3a;
  10289. }
  10290. .updateMask {
  10291. width: 100%;
  10292. z-index: 3;
  10293. top: 0;
  10294. position: absolute;
  10295. /* background-color: rgba(0,0,0,.3); */
  10296. }
  10297. .t_j_box {
  10298. display: flex;
  10299. }
  10300. .t_j_box span:nth-child(1) {
  10301. width: 15%;
  10302. overflow: hidden;
  10303. margin-right: 10px;
  10304. text-overflow: ellipsis;
  10305. white-space: nowrap;
  10306. }
  10307. .t_j_box span:nth-child(2) {
  10308. min-width: 30px;
  10309. margin-right: 10px;
  10310. }
  10311. .t_j_box span:nth-child(3) {
  10312. width: 38%;
  10313. overflow: hidden;
  10314. text-overflow: ellipsis;
  10315. margin-right: 10px;
  10316. }
  10317. .t_j_box span:nth-child(4) {
  10318. max-width: calc(45% - 60px);
  10319. overflow: hidden;
  10320. text-overflow: ellipsis;
  10321. }
  10322. .sentenBox {
  10323. background: #fff;
  10324. height: 600px;
  10325. overflow: auto;
  10326. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10327. background-position: 102%;
  10328. background-repeat: no-repeat;
  10329. background-size: 60%;
  10330. }
  10331. .sentenBox>.sentenContent {
  10332. padding-bottom: 10px;
  10333. width: 97%;
  10334. margin: 0 auto;
  10335. }
  10336. .sentenBox>.sentenContent+.sentenContent {
  10337. border-top: 1px solid #cbcbcb;
  10338. }
  10339. .addSen {
  10340. background: #409efe;
  10341. width: 90px;
  10342. color: #fff;
  10343. height: 35px;
  10344. text-align: center;
  10345. line-height: 35px;
  10346. border-radius: 5px;
  10347. float: right;
  10348. margin: 10px 20px 0 0;
  10349. cursor: pointer;
  10350. }
  10351. .sentenTop {
  10352. display: flex;
  10353. flex-direction: row;
  10354. flex-wrap: nowrap;
  10355. align-items: center;
  10356. }
  10357. .sentenTop::before {
  10358. content: attr(index);
  10359. background: #3681fc;
  10360. border-radius: 50%;
  10361. color: #fff;
  10362. width: 25px;
  10363. height: 25px;
  10364. min-width: 25px;
  10365. min-height: 25px;
  10366. text-align: center;
  10367. line-height: 25px;
  10368. margin-right: 5px;
  10369. }
  10370. .sentenTop>div:nth-child(2) {
  10371. width: 300px;
  10372. margin: 0 15px;
  10373. }
  10374. .sentenTop>div:nth-child(3) {
  10375. background: #409efe;
  10376. color: #fff;
  10377. width: 65px;
  10378. height: 35px;
  10379. text-align: center;
  10380. line-height: 35px;
  10381. border-radius: 5px;
  10382. cursor: pointer;
  10383. }
  10384. .cardList {
  10385. padding: 20px 0 20px 0;
  10386. display: flex;
  10387. flex-direction: row;
  10388. flex-wrap: wrap;
  10389. align-items: center;
  10390. box-sizing: border-box;
  10391. border-bottom: 1px solid #f4f4f4;
  10392. width: 98%;
  10393. margin: 0 auto;
  10394. }
  10395. .rightCardList {
  10396. display: flex;
  10397. flex-wrap: wrap;
  10398. }
  10399. .cardBox {
  10400. display: flex;
  10401. flex-direction: row;
  10402. flex-wrap: wrap;
  10403. align-items: center;
  10404. align-content: center;
  10405. }
  10406. .isCard,
  10407. .isCard1 {
  10408. width: auto;
  10409. padding: 0 20px;
  10410. height: 65px;
  10411. text-align: center;
  10412. line-height: 65px;
  10413. font-size: 14px;
  10414. cursor: pointer;
  10415. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10416. background-size: 100% 100%;
  10417. position: relative;
  10418. z-index: 99;
  10419. }
  10420. .isCard1 {
  10421. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10422. }
  10423. .isCard:hover .deleteWord {
  10424. display: block;
  10425. }
  10426. .isCard>div:nth-child(1),
  10427. .isCard1>div:nth-child(1) {
  10428. white-space: nowrap;
  10429. overflow: hidden;
  10430. text-overflow: ellipsis;
  10431. width: 100%;
  10432. margin: 0 auto;
  10433. }
  10434. .card {
  10435. width: 140px;
  10436. height: 65px;
  10437. }
  10438. .card>img {
  10439. width: 100%;
  10440. height: 100%;
  10441. }
  10442. .rightCardBox {
  10443. width: 98%;
  10444. margin: 10px auto 0;
  10445. }
  10446. .rightCardBox>div:nth-child(1) {
  10447. margin-bottom: 10px;
  10448. }
  10449. .cardCss {
  10450. display: flex;
  10451. flex-direction: column;
  10452. flex-wrap: nowrap;
  10453. align-items: center;
  10454. border-bottom: 3px solid #b4c3d3;
  10455. padding: 0 0 5px 0;
  10456. /* margin-right: 10px; */
  10457. }
  10458. .cardCss>div:nth-child(2) {
  10459. background: #5b7b9d;
  10460. color: #fff;
  10461. width: 20px;
  10462. height: 20px;
  10463. border-radius: 50%;
  10464. text-align: center;
  10465. line-height: 20px;
  10466. }
  10467. .sentenTopBox {
  10468. display: flex;
  10469. flex-direction: row;
  10470. flex-wrap: nowrap;
  10471. align-items: center;
  10472. justify-content: space-between;
  10473. padding: 55px 0 0 20px;
  10474. box-sizing: border-box;
  10475. width: 85%;
  10476. }
  10477. .stepsBottom {
  10478. width: 85%;
  10479. margin-bottom: 20px;
  10480. box-shadow: 0 0 10px 10px #f7f7f7;
  10481. background: #f7f7f7;
  10482. border-radius: 10px;
  10483. overflow: hidden;
  10484. }
  10485. .course_left {
  10486. width: 300px;
  10487. height: auto;
  10488. position: relative;
  10489. }
  10490. .stepsBottom2 {
  10491. width: 300px;
  10492. margin: 10px 0;
  10493. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10494. /* background: #f7f7f7; */
  10495. border-radius: 8px;
  10496. overflow: hidden;
  10497. height: fit-content;
  10498. position: relative;
  10499. /* transition: all .5s; */
  10500. }
  10501. .navTop {
  10502. background: #53749b;
  10503. color: #fff;
  10504. height: 40px;
  10505. line-height: 40px;
  10506. padding-left: 15px;
  10507. font-size: 18px;
  10508. }
  10509. .navBottom {
  10510. background: #fff;
  10511. height: calc(100vh - 210px);
  10512. overflow: auto;
  10513. }
  10514. .navTask {
  10515. display: flex;
  10516. flex-direction: row;
  10517. flex-wrap: nowrap;
  10518. align-items: center;
  10519. padding: 10px 10px 10px 0;
  10520. cursor: pointer;
  10521. background: #ffffff;
  10522. width: 95%;
  10523. margin: 10px auto 0;
  10524. box-sizing: border-box;
  10525. border-radius: 5px;
  10526. flex-wrap: wrap;
  10527. }
  10528. .navTask::before {
  10529. content: '';
  10530. display: block;
  10531. width: 16px;
  10532. height: 16px;
  10533. background-image: url(../../../assets/icon/new/icon_arrow.png);
  10534. background-size: 100%;
  10535. margin-left: 10px;
  10536. }
  10537. .isNavOpen::before {
  10538. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  10539. }
  10540. .isNavTask {
  10541. /* background: #3681FC; */
  10542. background: #EEF3FB;
  10543. }
  10544. .isNavTask .nt_taskName {
  10545. /* color: #fff !important; */
  10546. font-weight: bold !important;
  10547. color: #0061FF !important;
  10548. }
  10549. .isNavTask .nt_taskTitle {
  10550. /* color: #AECCFE !important; */
  10551. font-weight: bold !important;
  10552. color: #0061FF !important;
  10553. }
  10554. .navTask .nt_taskBox {
  10555. width: calc(100% - 85px);
  10556. padding: 0 10px 0 5px;
  10557. box-sizing: border-box;
  10558. box-sizing: border-box;
  10559. display: flex;
  10560. flex-direction: row;
  10561. flex-wrap: nowrap;
  10562. align-items: baseline;
  10563. }
  10564. .navTask .nt_taskTitle {
  10565. /* color: #717C8D; */
  10566. color: #060E17;
  10567. line-height: 25px;
  10568. font-size: 16px;
  10569. min-width: 45px;
  10570. }
  10571. .navTask .nt_taskName {
  10572. /* color: #fff; */
  10573. /* max-width: 130px; */
  10574. /* width: 100%; */
  10575. max-width: calc(100% - 50px);
  10576. white-space: nowrap;
  10577. overflow: hidden;
  10578. text-overflow: ellipsis;
  10579. font-size: 16px;
  10580. color: #060E17;
  10581. /* color: #0E1E33; */
  10582. }
  10583. .gjBox {
  10584. width: calc(100% - 25px);
  10585. padding: 0 0 0 0;
  10586. box-sizing: border-box;
  10587. border-left: 1px solid #CAD1DC;
  10588. margin-left: 25px;
  10589. }
  10590. .gjBox>div {
  10591. display: flex;
  10592. align-items: center;
  10593. }
  10594. .gjBox>div::before {
  10595. content: '';
  10596. height: 1px;
  10597. width: 10px;
  10598. background: #CAD1DC;
  10599. display: block;
  10600. margin-right: 5px;
  10601. }
  10602. .gjCss {
  10603. display: flex;
  10604. flex-direction: row;
  10605. flex-wrap: nowrap;
  10606. align-items: center;
  10607. padding: 15px 0;
  10608. box-sizing: border-box;
  10609. font-size: 14px;
  10610. cursor: pointer;
  10611. }
  10612. .isGjCss {
  10613. color: #0061ff;
  10614. }
  10615. .groupBox {}
  10616. .groupContent+.groupContent {
  10617. margin-top: 30px;
  10618. }
  10619. .groupTitle {
  10620. font-size: 24px;
  10621. color: rgb(80, 80, 80);
  10622. margin-bottom: 20px;
  10623. }
  10624. .groupName {
  10625. display: flex;
  10626. align-items: center;
  10627. }
  10628. .groupn {
  10629. font-size: 15px;
  10630. margin-right: 10px;
  10631. }
  10632. .groupName+.groupName {
  10633. margin-top: 15px;
  10634. }
  10635. .groupBtn {
  10636. margin-left: 10px;
  10637. }
  10638. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10639. text-align: left;
  10640. }
  10641. .radioBox>div {
  10642. margin: 10px 0 0 10px;
  10643. }
  10644. .radioBox>>>.el-radio__input,
  10645. .radioBox>>>.el-checkbox__inner {
  10646. margin-left: 10px;
  10647. }
  10648. .radioBox>>>.el-radio__label,
  10649. .radioBox>>>.el-checkbox__label {
  10650. display: flex;
  10651. align-items: center;
  10652. }
  10653. .inImg {
  10654. width: 50px;
  10655. }
  10656. .inImg>img {
  10657. width: 100%;
  10658. height: 100%;
  10659. object-fit: cover;
  10660. }
  10661. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10662. height: auto;
  10663. padding: 10px;
  10664. margin: 0;
  10665. }
  10666. .upCss>>>.el-upload-list {
  10667. width: 100%;
  10668. }
  10669. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10670. width: 100%;
  10671. height: 120px;
  10672. object-fit: contain;
  10673. background: unset;
  10674. margin-left: 0;
  10675. }
  10676. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10677. display: none;
  10678. }
  10679. .tcMember+.tcMember::before {
  10680. content: "、";
  10681. }
  10682. .xzUpImg {
  10683. width: 25px;
  10684. height: 25px;
  10685. min-width: 25px;
  10686. min-height: 25px;
  10687. cursor: pointer;
  10688. margin: 0 10px;
  10689. }
  10690. .xzUpImg>img {
  10691. width: 100%;
  10692. height: 100%;
  10693. }
  10694. .closeCss {
  10695. position: absolute;
  10696. top: 8px;
  10697. right: 8px;
  10698. cursor: pointer;
  10699. width: 20px;
  10700. height: 20px;
  10701. }
  10702. .closeCss>img {
  10703. width: 100%;
  10704. height: 100%;
  10705. }
  10706. .moveBtn {
  10707. display: flex;
  10708. flex-direction: row;
  10709. flex-wrap: nowrap;
  10710. align-items: center;
  10711. width: 55px;
  10712. }
  10713. .timuUpImg {
  10714. display: flex;
  10715. flex-direction: row;
  10716. align-items: center;
  10717. width: 100%;
  10718. margin-right: 10px;
  10719. }
  10720. .timuUpImg>div:nth-child(1) {
  10721. margin-right: 10px;
  10722. display: flex;
  10723. align-items: center;
  10724. width: 100%;
  10725. }
  10726. .timuImgBox {
  10727. margin: 10px 0;
  10728. display: flex;
  10729. flex-direction: column;
  10730. flex-wrap: wrap;
  10731. align-items: flex-start;
  10732. }
  10733. .timuImg {
  10734. width: 100px;
  10735. margin: 5px 0;
  10736. cursor: pointer;
  10737. position: relative;
  10738. }
  10739. .timuImg:hover .deleteWord {
  10740. display: block;
  10741. }
  10742. .deleteWord {
  10743. width: 25px;
  10744. height: 25px;
  10745. position: absolute;
  10746. right: -5px;
  10747. top: -5px;
  10748. cursor: pointer;
  10749. display: none;
  10750. }
  10751. .timuImg>img,
  10752. .deleteWord>img {
  10753. width: 100%;
  10754. height: 100%;
  10755. object-fit: cover;
  10756. }
  10757. .e_add_delete {
  10758. cursor: pointer;
  10759. margin-left: 10px;
  10760. }
  10761. .pType_box {
  10762. margin-top: 30px;
  10763. align-items: flex-end;
  10764. }
  10765. .noneBox {
  10766. height: 100%;
  10767. width: 100%;
  10768. display: flex;
  10769. align-items: center;
  10770. justify-content: center;
  10771. margin-top: 150px;
  10772. }
  10773. .noneBox>img {
  10774. width: 300px;
  10775. }
  10776. .textarea_css {
  10777. display: block;
  10778. resize: none;
  10779. padding: 10px 15px;
  10780. line-height: 1.5;
  10781. box-sizing: border-box;
  10782. width: 100%;
  10783. font-size: 14px;
  10784. color: #606266;
  10785. background-color: #FFF;
  10786. background-image: none;
  10787. border: 1px solid #DCDFE6;
  10788. border-radius: 4px;
  10789. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  10790. outline: none;
  10791. overflow: hidden;
  10792. height: 46px;
  10793. font-family: 'Microsoft YaHei';
  10794. }
  10795. .textarea_css::-webkit-input-placeholder {
  10796. color: #C0C4CC
  10797. }
  10798. .textarea_css:focus {
  10799. border-color: #409EFF;
  10800. outline: 0;
  10801. }
  10802. .moveBtn2 {
  10803. flex-direction: column;
  10804. width: fit-content;
  10805. margin: 0 10px 0 10px;
  10806. }
  10807. .moveBtn2 .chapter_upload_down,
  10808. .moveBtn2 .chapter_upload_up {
  10809. width: 16px;
  10810. height: 16px;
  10811. }
  10812. .moveBtn2 .chapter_upload_up::after,
  10813. .moveBtn2 .chapter_upload_down::after {
  10814. width: 10px;
  10815. height: 10px;
  10816. }
  10817. .fullStyle>>>.el-dialog__body {
  10818. height: calc(100% - 125px) !important;
  10819. box-sizing: border-box;
  10820. }
  10821. .fullStyle>>>.el-dialog {
  10822. width: 100% !important;
  10823. max-width: 100% !important;
  10824. height: 100% !important;
  10825. margin: 0 !important;
  10826. }
  10827. .fullStyle {
  10828. width: 100% !important;
  10829. max-width: 100% !important;
  10830. height: 100% !important;
  10831. margin: 0 auto !important;
  10832. }
  10833. .wb_j_box_btn {
  10834. width: calc(100% - 30px);
  10835. display: flex;
  10836. height: 40px;
  10837. border: 1.5px solid #CAD1DC;
  10838. border-radius: 4px;
  10839. box-sizing: border-box;
  10840. align-items: center;
  10841. font-size: 14px;
  10842. cursor: pointer;
  10843. overflow: hidden;
  10844. }
  10845. .wb_j_box_btn:hover {
  10846. border: 1.5px solid #0061FF;
  10847. }
  10848. .wb_j_box_title {
  10849. background: #F0F4FA;
  10850. height: 100%;
  10851. line-height: 40px;
  10852. width: 90px;
  10853. text-align: center;
  10854. color: #060E17;
  10855. border-right: 1.5px solid #CAD1DC;
  10856. box-sizing: border-box;
  10857. }
  10858. .wb_j_box_btn_c {
  10859. width: calc(100% - 90px);
  10860. padding: 0 35px 0 10px;
  10861. box-sizing: border-box;
  10862. position: relative;
  10863. }
  10864. .wb_j_box_span {
  10865. width: 100%;
  10866. overflow: hidden;
  10867. white-space: nowrap;
  10868. text-overflow: ellipsis;
  10869. word-wrap: break-word;
  10870. color: #717C8D;
  10871. }
  10872. .wb_j_box_arrow {
  10873. content: '';
  10874. width: 14px;
  10875. height: 14px;
  10876. background: url(../../../assets/icon/new/u_arrow.png);
  10877. background-size: 100% 100%;
  10878. position: absolute;
  10879. right: 12px;
  10880. top: 50%;
  10881. transform: translateY(-50%);
  10882. }
  10883. .check_classBox {
  10884. height: 400px;
  10885. display: flex;
  10886. border-top: 1.5px solid #E7EBF1;
  10887. border-bottom: 1.5px solid #E7EBF1;
  10888. }
  10889. .check_class_right {
  10890. width: 130px;
  10891. border-right: 1px solid #E7EBF1;
  10892. display: flex;
  10893. align-items: center;
  10894. flex-direction: column;
  10895. height: 100%;
  10896. overflow: auto;
  10897. padding: 15px 0;
  10898. box-sizing: border-box;
  10899. }
  10900. .check_class {
  10901. width: 85%;
  10902. border-radius: 5px;
  10903. height: 30px;
  10904. line-height: 30px;
  10905. text-align: center;
  10906. padding: 0 10px;
  10907. box-sizing: border-box;
  10908. cursor: pointer;
  10909. white-space: nowrap;
  10910. overflow: hidden;
  10911. text-overflow: ellipsis;
  10912. }
  10913. .check_class.activeX {
  10914. background: #E0EAFB;
  10915. color: #3681FC;
  10916. font-weight: 700;
  10917. }
  10918. .check_class+.check_class {
  10919. margin-top: 15px;
  10920. }
  10921. .check_class_left {
  10922. background: #FAFAFA;
  10923. width: calc(100% - 130px);
  10924. padding: 15px;
  10925. box-sizing: border-box;
  10926. }
  10927. .check_class_left_title {
  10928. font-size: 16px;
  10929. font-weight: 700;
  10930. margin-bottom: 10px;
  10931. }
  10932. .check_class_item {
  10933. display: flex;
  10934. flex-wrap: wrap;
  10935. height: calc(100% - 45px);
  10936. overflow: auto;
  10937. justify-content: flex-start;
  10938. align-items: flex-start;
  10939. align-content: flex-start;
  10940. }
  10941. .class_item {
  10942. margin: 0 15px 15px 0;
  10943. }
  10944. .class_item:hover>>>.el-checkbox__label {
  10945. color: #409EFF;
  10946. }
  10947. .class_item>>>.el-checkbox__label {
  10948. color: #0E1E33;
  10949. }
  10950. .class_item:hover>>>.el-checkbox__inner {
  10951. border-color: #409EFF;
  10952. }
  10953. .class_item>>>.el-checkbox,
  10954. .class_item>>>.el-checkbox__input {
  10955. display: flex;
  10956. align-items: center;
  10957. }
  10958. .tipsBox {
  10959. text-align: center;
  10960. line-height: 200px;
  10961. font-size: 20px;
  10962. }</style>