addCourse.vue 645 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5">
  3. <!-- 阶段模式 -->
  4. <div class="pb_content_body" style="position: relative; margin: 0">
  5. <div class="right">
  6. <div class="courseTop">
  7. <div class="stepsNav" v-if="!gotype">
  8. <el-breadcrumb separator-class="el-icon-arrow-right">
  9. <el-breadcrumb-item
  10. :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }"
  21. >{{ lang.ssCourseMgmt }}</el-breadcrumb-item
  22. >
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">{{ lang.AddCourse }}</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. <div class="r_pub_button_retrun" @click="retrunCourse">{{ lang.return }}</div>
  29. </div>
  30. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  31. <div ref="stepBox" class="stepBox">
  32. <div class="stepBg" v-if="false">
  33. <div
  34. :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }"
  35. @mouseenter="stepDisplay(true)"
  36. @mouseleave="stepDisplay(false)"
  37. >
  38. <div
  39. v-if="steps > 0 && isStepDisplay"
  40. class="first"
  41. @click="navSteps(1)"
  42. >
  43. <div>
  44. <img src="../../../assets/icon/first.png" alt />
  45. </div>
  46. <div>{{ lang.Fillinbasicinformation }}</div>
  47. </div>
  48. <div
  49. v-else-if="isStepDisplay"
  50. class="firstNo"
  51. @click="navSteps(1)"
  52. >
  53. <div>
  54. <img src="../../../assets/icon/firstNo.png" alt />
  55. </div>
  56. <div>{{ lang.Fillinbasicinformation }}</div>
  57. </div>
  58. <div
  59. class="stepBorder"
  60. :class="{ 'border-active': steps > 1 }"
  61. v-if="cidType === 0 && isStepDisplay"
  62. ></div>
  63. <div
  64. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  65. class="second"
  66. @click="navSteps(2)"
  67. >
  68. <div style="margin: 5px 10px 0 0; width: 2rem">
  69. <img src="../../../assets/icon/second.png" alt />
  70. </div>
  71. <div>{{ lang.ssSelectTemp }}</div>
  72. </div>
  73. <div
  74. v-else-if="cidType === 0 && isStepDisplay"
  75. class="secondNo"
  76. @click="navSteps(2)"
  77. >
  78. <div>
  79. <img src="../../../assets/icon/secondNo.png" alt />
  80. </div>
  81. <div>{{ lang.ssSelectTemp }}</div>
  82. </div>
  83. <div
  84. v-if="isStepDisplay"
  85. class="stepBorder"
  86. :class="{ 'border-active': steps > 2 }"
  87. ></div>
  88. <div
  89. v-if="steps > 2 && isStepDisplay"
  90. class="third"
  91. @click="navSteps(3)"
  92. >
  93. <div>
  94. <img src="../../../assets/icon/third.png" alt />
  95. </div>
  96. <div>{{ lang.Uploadcoursecontent }}</div>
  97. </div>
  98. <div
  99. v-else-if="isStepDisplay"
  100. class="thirdNo"
  101. @click="navSteps(3)"
  102. >
  103. <div>
  104. <img src="../../../assets/icon/thirdNo.png" alt />
  105. </div>
  106. <div>{{ lang.Uploadcoursecontent }}</div>
  107. </div>
  108. <div
  109. v-if="isStepDisplay"
  110. class="stepBorder"
  111. :class="{ 'border-active': steps > 3 }"
  112. ></div>
  113. <div v-if="steps > 3 && isStepDisplay" class="four">
  114. <div>
  115. <img src="../../../assets/icon/four.png" alt />
  116. </div>
  117. <div>{{ lang.Uploadcompleted }}</div>
  118. </div>
  119. <div v-else-if="isStepDisplay" class="fourNo">
  120. <div>
  121. <img src="../../../assets/icon/fourNo.png" alt />
  122. </div>
  123. <div>{{ lang.Uploadcompleted }}</div>
  124. </div>
  125. </div>
  126. </div>
  127. <div
  128. class="rightBox"
  129. :key="updateKey"
  130. ref='scrollContainer'
  131. v-if="steps == 1"
  132. @mousewheel="scrollChange"
  133. style="padding: 0"
  134. :style="{
  135. height:
  136. !isStepDisplay && !isBtnDisplay
  137. ? 'calc(100% - 20px)'
  138. : 'calc(100% - 100px)',
  139. }"
  140. >
  141. <div
  142. class="updateMask"
  143. :style="{
  144. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  145. }"
  146. v-if="cid && userid != courseUserid && role != '1'"
  147. ></div>
  148. <div class="whiteBg" style="background: unset; padding: 0">
  149. <div>
  150. <div class="basic_box" style="padding: 0">
  151. <div class="big_box">
  152. <div class="left_first">
  153. <div
  154. :class="{
  155. updateTips:
  156. cid && userid != courseUserid && role != '1',
  157. }"
  158. >
  159. <div style="width: 100%">
  160. <div class="course_input_box">
  161. <div class="bb_courseIcon">
  162. <img src="../../../assets/icon/new/course.png" />
  163. </div>
  164. <input
  165. type="text"
  166. :placeholder="lang.ssEnterName"
  167. class="binfo_input"
  168. v-model="courseName"
  169. style="
  170. border: 1.5px solid rgb(202, 209, 220);
  171. margin: 0px 10px 0px 0px;
  172. border-radius: 5px;
  173. font-weight: 600;
  174. padding: 12px 14px 12px 71px;
  175. "
  176. @change="saveCourse"
  177. />
  178. <el-switch
  179. v-model="highSetting"
  180. :active-text="lang.AdvancedSettings"
  181. style="justify-content: center; width: 200px"
  182. ></el-switch>
  183. <el-switch
  184. v-model="isTeacherSee"
  185. :active-text="lang.ssPublish"
  186. style="justify-content: center; width: 200px"
  187. ></el-switch>
  188. </div>
  189. </div>
  190. </div>
  191. <div
  192. class="pType_box all_choose"
  193. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  194. >
  195. <span>{{ lang.type }}</span>
  196. <!-- 学科+ 主题+ 未来+ -->
  197. <el-radio-group
  198. @change="CourseType2Change"
  199. v-model="pTypeCheckName"
  200. style="display: flex; align-items: center"
  201. >
  202. <div
  203. class="all_choose"
  204. style="width: 100px"
  205. v-for="(item, index) in CourseType2"
  206. :key="index"
  207. >
  208. <el-radio :label="item.name">{{
  209. item.name
  210. }}</el-radio>
  211. </div>
  212. </el-radio-group>
  213. </div>
  214. <div class="both">
  215. <div class="choose" v-if="oid != '91796dfb-8791-11ef-9b30-005056b86db5'">
  216. <div
  217. class="all_choose"
  218. v-for="(item, index) in CourseType[0]"
  219. :key="index"
  220. >
  221. <span
  222. v-if="
  223. CourseTypeJson[item.id].length > 0 &&
  224. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  225. ? pTypeCheck.indexOf(item.id) != -1
  226. : true)
  227. "
  228. >{{ item.name }}:</span
  229. >
  230. <el-checkbox-group
  231. v-model="courseTypeId"
  232. v-if="
  233. CourseTypeJson[item.id].length > 0 &&
  234. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  235. ? pTypeCheck.indexOf(item.id) != -1
  236. : true)
  237. "
  238. >
  239. <el-checkbox
  240. v-for="item1 in CourseTypeJson[item.id]"
  241. :key="item1.id"
  242. :label="item1.id"
  243. >{{ item1.name }}</el-checkbox
  244. >
  245. </el-checkbox-group>
  246. <!-- <div
  247. v-else
  248. style="font-size: 14px; margin-left: -8px"
  249. >
  250. {{ lang.None }}
  251. </div> -->
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <div class="right_first">
  257. <!-- <div class="ai_box">
  258. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>{{ lang.ssAICreation }}</span></div>
  259. </div> -->
  260. <div
  261. class="c_info_title"
  262. style="padding: 0 0 15px; margin: 0 auto 0 0"
  263. >
  264. {{ lang.ssUploadCover }}
  265. </div>
  266. <div style="width: 100%">
  267. <div
  268. class="uploadFm"
  269. @click="choosePicVisible = true"
  270. :class="{ uploadFm2: cover.length }"
  271. >
  272. <img
  273. src="../../../assets/icon/addPoster.png"
  274. alt=""
  275. v-if="cover.length == 0"
  276. />
  277. <img
  278. :src="cover[0].url"
  279. alt=""
  280. class="cover_p"
  281. v-else
  282. />
  283. <div v-if="cover.length == 0">{{ lang.AddCoverimage }}</div>
  284. <div class="cover_mask">
  285. <img
  286. src="../../../assets/icon/new/cover_update.png"
  287. /><span style="margin-top: 5px">{{ lang.UpdateCover }}</span>
  288. </div>
  289. </div>
  290. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  291. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  292. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  293. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  294. <i class="el-icon-plus"></i>
  295. </el-upload> -->
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. <div class="whiteBg" style="background: #fff; margin: 10px 0">
  303. <div class="whiteBg" style="border-radius: 0" :style="{paddingBottom: highSetting ? '0px' : '15px'}">
  304. <div class="c_info_title">{{ lang.CourseAccessSettings }}</div>
  305. <div class="wb_j_box">
  306. <div class="wb_j_box_content">
  307. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  308. (dialogVisibleClass = true),
  309. (classSearch = ''),
  310. (gradeId = ''),
  311. getClass()
  312. ">{{ lang.ssAddClass }}</button>
  313. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  314. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  315. getClassC(tc) }}</span>
  316. </div> -->
  317. <div
  318. class="wb_j_box_btn"
  319. @click="
  320. (dialogVisibleClass = true),
  321. (classSearch = ''),
  322. (gradeId = ''),
  323. getClass()
  324. "
  325. >
  326. <div class="wb_j_box_title">{{ lang.ssTeachClass }}</div>
  327. <div class="wb_j_box_btn_c">
  328. <el-tooltip
  329. effect="dark"
  330. :content="getListClassC(checkboxList2)"
  331. placement="top"
  332. v-if="checkboxList2.length"
  333. popper-class="text_tooltip2"
  334. >
  335. <div class="wb_j_box_span">
  336. {{ getListClassC(checkboxList2) }}
  337. </div>
  338. </el-tooltip>
  339. <div v-else class="wb_j_box_span">{{ lang.SelectTeachingClass }}</div>
  340. <div class="wb_j_box_arrow"></div>
  341. </div>
  342. </div>
  343. </div>
  344. <div class="wb_j_box_content" v-if="highSetting">
  345. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  346. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  347. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  348. checkBoolean
  349. ? checkboxList3
  350. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  351. v-if="checkboxList3.length > 6 && !checkBoolean">{{ lang.ssMore }}</span>
  352. </div> -->
  353. <div class="wb_j_box_btn" @click="openMember">
  354. <div class="wb_j_box_title">{{ lang.ssCollaborators }}</div>
  355. <div class="wb_j_box_btn_c">
  356. <!-- <el-tooltip
  357. effect="dark"
  358. :content="getListMan2(checkboxList3)"
  359. placement="top"
  360. v-if="checkboxList3.length"
  361. popper-class="text_tooltip2"
  362. > -->
  363. <div class="wb_j_box_span" v-if="checkboxList3.length">
  364. {{ getListMan2(checkboxList3) }}
  365. </div>
  366. <!-- </el-tooltip> -->
  367. <div v-else class="wb_j_box_span">{{ lang.Psac }}</div>
  368. <div class="wb_j_box_arrow"></div>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="highSetting">
  375. <div class="c_info_title">{{ lang.CourseDescription }}</div>
  376. <div
  377. style="width: 100%; padding: 0px 20px; box-sizing: border-box"
  378. >
  379. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  380. <textarea
  381. v-autoHeight="68"
  382. rows="2"
  383. class="binfo_input binfo_textarea"
  384. cols
  385. v-model="courseText"
  386. :placeholder="lang.EnterCourseDescription"
  387. ></textarea>
  388. </div>
  389. </div>
  390. </div>
  391. <div
  392. class="whiteBg"
  393. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  394. v-if="highSetting"
  395. >
  396. <div class="c_info_title">{{ lang.ObjectivesManagement }}</div>
  397. <div style="margin: 0 auto; padding: 0 20px">
  398. <div
  399. style="
  400. width: 95%;
  401. min-height: 200px;
  402. border: 1px solid #cad1dc;
  403. border-radius: 4px;
  404. position: relative;
  405. "
  406. >
  407. <div class="e_add_top">
  408. <div class="e_add_title">
  409. <button
  410. class="c_pub_button_delete pub_btn_delete_img"
  411. @click="deleteEva()"
  412. v-if="evalua"
  413. >
  414. {{ lang.DeleteL }}
  415. </button>
  416. <button
  417. class="c_pub_button_confirm pub_btn_add_img2"
  418. @click="dialogVisiblemb = true"
  419. >
  420. {{ lang.ssAdd }}
  421. </button>
  422. <!-- <span>当前使用目标管理</span>
  423. <span>{{ eTitle ? eTitle : lang.ssAddObjMgmt }}</span>
  424. <img
  425. src="../../../assets/line.png"
  426. class="cru_line"
  427. style="
  428. width: 125px;
  429. height: 20px;
  430. bottom: -10px;
  431. left: 155px;
  432. "
  433. /> -->
  434. </div>
  435. <div
  436. style="
  437. display: flex;
  438. flex-direction: row;
  439. align-items: center;
  440. "
  441. >
  442. <!-- <el-button
  443. type="primary"
  444. size="small"
  445. @click="dialogVisiblemb = true"
  446. >{{ lang.ssAddObjMgmt }}</el-button
  447. >
  448. <el-button
  449. type="primary"
  450. size="small"
  451. @click="deleteEva()"
  452. >{{ lang.ssClear }}</el-button
  453. > -->
  454. <!-- <div class="e_add_delete" @click="deleteEva()">
  455. <img src="../../../assets/icon/delete.png" alt="" />
  456. </div> -->
  457. </div>
  458. </div>
  459. <div v-if="evalua == ''">
  460. <div class="noneBox">
  461. <img src="../../../assets/icon/new/eva_none.png" />
  462. <span>{{ lang.enterObjectiveManagement }}</span>
  463. </div>
  464. </div>
  465. <div class="e_add_content" v-else>
  466. <div class="e_add_list_pbox">
  467. <div class="e_add_list_pbox_title">
  468. <span class="type_title">{{ lang.SwitchMode }}</span>
  469. <div class="type_content">
  470. <span
  471. :class="{ active: typeMode == 1 }"
  472. @click="OtherMb(1)"
  473. >{{ lang.TreeView }}</span
  474. >
  475. <span
  476. :class="{ active: typeMode == 2 }"
  477. @click="OtherMb(2)"
  478. >{{ lang.CompassView }}</span
  479. >
  480. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  481. </div>
  482. </div>
  483. <div class="e_add_list_pbox_content">
  484. <Mind
  485. :showBar="false"
  486. :mindData="data"
  487. v-if="typeMode == 1"
  488. ></Mind>
  489. <Sunburst
  490. :Josn="eJson"
  491. :num="eJSONNum"
  492. style="width: 100%"
  493. v-if="typeMode == 2"
  494. ></Sunburst>
  495. <SeeBoard
  496. :Josn="eJson"
  497. :num="eJSONNum"
  498. :ename="eTitle"
  499. style="width: 100%"
  500. v-if="typeMode == 3"
  501. >
  502. </SeeBoard>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. <div class="rb_c_box">
  511. <div
  512. class="rb_c_box_left"
  513. v-if="unitJson[unitIndex].easy != 1"
  514. >
  515. <div class="stepsBottom">
  516. <!-- <div class="navTop">辅助导航</div> -->
  517. <div class="navBottom" v-if="courseState == 2">
  518. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  519. <div class="nt_taskBox" style="width: 100%;">
  520. <div class="nt_taskTitle"
  521. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  522. unitIndex + 1 }}</div>
  523. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  524. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  525. <span>{{ unitJson[unitIndex].dyName }}</span>
  526. </el-tooltip>
  527. </div>
  528. </div>
  529. </div> -->
  530. <div
  531. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  532. .taskJson"
  533. :key="tIndex"
  534. :class="{
  535. dragOverTop:
  536. newIndex === tIndex &&
  537. typeIndex == 'task-' + tIndex &&
  538. oldIndex > tIndex &&
  539. dragType == 'task',
  540. dragOverBottom:
  541. newIndex === tIndex &&
  542. typeIndex == 'task-' + tIndex &&
  543. oldIndex < tIndex &&
  544. dragType == 'task',
  545. }"
  546. >
  547. <div
  548. @dragstart="dragTaskStart(t, tIndex, 0)"
  549. @dragover.prevent="dragTaskOver(tIndex, 0)"
  550. @dragend="dragTaskEnd()"
  551. :draggable="isdrag == 'task-' + tIndex"
  552. @click="goToTask(tIndex)"
  553. class="navTask"
  554. :class="{
  555. isNavTask:
  556. isClickColor > 0 && isClickColor == tIndex + 1,
  557. isNavOpen: t.toolOpen,
  558. }"
  559. >
  560. <div
  561. @click.stop="taskOpen(tIndex, 0)"
  562. class="chapter_upload_open"
  563. ></div>
  564. <div
  565. @mousedown="isdrag = 'task-' + tIndex"
  566. @mouseup="isdrag = ''"
  567. @touchstart="isdrag = 'task-' + tIndex"
  568. @touchend="isdrag = ''"
  569. style="left: 8px"
  570. class="chapter_upload_drag"
  571. ></div>
  572. <div class="nt_taskBox">
  573. <div class="nt_taskTitle">{{ lang.ssTaskColon.replace(/\*/g, tIndex + 1) }}</div>
  574. <div class="nt_taskName">
  575. <el-tooltip
  576. effect="light"
  577. :content="t.task ? t.task : lang.ssUnnamedTask"
  578. placement="top"
  579. >
  580. <span>{{ t.task ? t.task : lang.ssUnnamedTask }}</span>
  581. </el-tooltip>
  582. </div>
  583. </div>
  584. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  585. 1
  586. ">
  587. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  588. @click.stop="taskMove(1, tIndex)"></div>
  589. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  590. @click.stop="taskMove(2, tIndex)"></div>
  591. </div> -->
  592. </div>
  593. <div
  594. class="gjBox"
  595. v-if="t.toolChoose.length && t.toolOpen"
  596. >
  597. <div
  598. v-for="(tool, toolIndex2) in t.toolChoose"
  599. :key="toolIndex2"
  600. @click="jumpGj(tIndex, toolIndex2)"
  601. >
  602. <div
  603. class="gjCss"
  604. :class="{
  605. isGjCss:
  606. toolIndexType == `gj${tIndex}${toolIndex2}`,
  607. }"
  608. >
  609. <div>{{ lang.ssTool.replace(/\*/g, toolIndex2 + 1) }}</div>
  610. <div>
  611. {{
  612. toolsData[tool.tool[0]] &&
  613. toolsData[tool.tool[0]].name
  614. }}
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. </div>
  620. </div>
  621. <div class="navBottom" v-if="courseState == 1">
  622. <div
  623. v-for="(stage, stageIndex) in unitJson"
  624. :key="stageIndex"
  625. class="stageBox"
  626. :class="{
  627. dragOverTop:
  628. newIndex === stageIndex &&
  629. typeIndex == 'Unit-' + stageIndex &&
  630. oldIndex > stageIndex &&
  631. dragType == 'Unit',
  632. dragOverBottom:
  633. newIndex === stageIndex &&
  634. typeIndex == 'Unit-' + stageIndex &&
  635. oldIndex < stageIndex &&
  636. dragType == 'Unit',
  637. }"
  638. >
  639. <div
  640. @dragstart="dragUnitStart(stage, stageIndex)"
  641. @dragover.prevent="dragUnitOver(stageIndex)"
  642. @dragend="dragUnitEnd()"
  643. :draggable="isdrag == 'unit-' + stageIndex"
  644. @click="unitSet2(stageIndex)"
  645. class="navStage"
  646. :class="{
  647. isNavStage: stageIndex == unitIndex,
  648. isNavStageOpen: stage.toolOpen,
  649. }"
  650. >
  651. <div
  652. @mousedown="isdrag = 'unit-' + stageIndex"
  653. @mouseup="isdrag = ''"
  654. @touchstart="isdrag = 'unit-' + stageIndex"
  655. @touchend="isdrag = ''"
  656. style="left: 8px"
  657. class="chapter_upload_drag"
  658. ></div>
  659. <div class="nt_taskBox">
  660. <div class="nt_taskTitle">
  661. {{ lang.ssStage.replace(/\*/g, stageIndex + 1) }}:
  662. </div>
  663. <div class="nt_taskName">
  664. <el-tooltip
  665. effect="light"
  666. :content="
  667. stage.dyName ? stage.dyName : lang.ssUnnamedStage
  668. "
  669. placement="top"
  670. >
  671. <span>{{
  672. stage.dyName ? stage.dyName : lang.ssUnnamedStage
  673. }}</span>
  674. </el-tooltip>
  675. </div>
  676. </div>
  677. <div
  678. @click.stop="unitOpen(stageIndex)"
  679. class="chapter_unit_open"
  680. ></div>
  681. </div>
  682. <div
  683. v-for="(t, tIndex) in unitJson[stageIndex]
  684. .chapterInfo[0].taskJson"
  685. :key="`${stageIndex}-${tIndex}`"
  686. :class="{
  687. dragOverTop:
  688. newIndex === tIndex &&
  689. typeIndex == 'task-' + tIndex &&
  690. ((oldIndex > tIndex &&
  691. stageIndex == checkUnitIndex) ||
  692. (oldIndex == tIndex &&
  693. stageIndex == checkUnitIndex &&
  694. checkUnitIndex != oldUnitIndex)) &&
  695. dragType == 'task',
  696. dragOverBottom:
  697. newIndex === tIndex &&
  698. typeIndex == 'task-' + tIndex &&
  699. oldIndex < tIndex &&
  700. stageIndex == checkUnitIndex &&
  701. dragType == 'task',
  702. }"
  703. :style="{ display: stage.toolOpen ? 'block' : 'none' }"
  704. >
  705. <div
  706. @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  707. @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  708. @dragend="dragTaskEnd()"
  709. :draggable="
  710. isdrag == 'task-' + stageIndex + '-' + tIndex
  711. "
  712. @click="goToTask2(tIndex, stageIndex)"
  713. class="navTask"
  714. style="padding-left: 12px"
  715. :class="{
  716. isNavTask:
  717. isClickColor > 0 &&
  718. isClickColor == tIndex + 1 &&
  719. stageIndex == unitIndex,
  720. isNavOpen: t.toolOpen,
  721. }"
  722. >
  723. <div
  724. @click.stop="taskOpen(tIndex, stageIndex)"
  725. class="chapter_upload_open"
  726. ></div>
  727. <div
  728. @mousedown="
  729. isdrag = 'task-' + stageIndex + '-' + tIndex
  730. "
  731. @mouseup="isdrag = ''"
  732. @touchstart="
  733. isdrag = 'task-' + stageIndex + '-' + tIndex
  734. "
  735. @touchend="isdrag = ''"
  736. style="left: 20px"
  737. class="chapter_upload_drag"
  738. ></div>
  739. <div
  740. class="nt_taskBox"
  741. style="width: calc(100% - 52px)"
  742. >
  743. <div class="nt_taskTitle">
  744. {{ lang.ssTaskColon.replace(/\*/g, tIndex + 1) }}
  745. </div>
  746. <div class="nt_taskName">
  747. <el-tooltip
  748. effect="light"
  749. :content="t.task ? t.task : lang.ssUnnamedTask"
  750. placement="top"
  751. >
  752. <span>{{
  753. t.task ? t.task : lang.ssUnnamedTask
  754. }}</span>
  755. </el-tooltip>
  756. </div>
  757. </div>
  758. </div>
  759. <div
  760. class="gjBox"
  761. v-if="t.toolChoose.length && t.toolOpen"
  762. >
  763. <div
  764. v-for="(tool, toolIndex2) in t.toolChoose"
  765. :key="toolIndex2"
  766. @click="jumpGj2(tIndex, toolIndex2, stageIndex)"
  767. >
  768. <div
  769. class="gjCss"
  770. :class="{
  771. isGjCss:
  772. toolIndexType ==
  773. `gj${tIndex}${toolIndex2}${stageIndex}`,
  774. }"
  775. >
  776. <div>{{ lang.ssTool.replace(/\*/g, toolIndex2 + 1) }}</div>
  777. <div>
  778. {{
  779. toolsData[tool.tool[0]] &&
  780. toolsData[tool.tool[0]].name
  781. }}
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. </div>
  791. <div class="rb_c_box_right">
  792. <!-- <div class="rb_c_box_btn">
  793. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">{{ lang.ssSmartPaste }}</button>
  794. </div> -->
  795. <div class="basic_box" ref="unitBox">
  796. <div
  797. style="
  798. display: flex;
  799. flex-direction: row;
  800. align-items: center;
  801. position: sticky;
  802. top: 0;
  803. z-index: 99;
  804. width: 100%;
  805. padding: 0 20px 0 20px;
  806. box-sizing: border-box;
  807. background: #fff;
  808. border-radius: 8px;
  809. "
  810. >
  811. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  812. <div
  813. class="cru_selectBox"
  814. :style="{
  815. maxWidth: isPasteTask
  816. ? 'calc(100% - 335px)'
  817. : 'calc(100% - 190px)',
  818. }"
  819. v-if="courseState == 1"
  820. >
  821. <div
  822. v-for="(item, index) in unitJson"
  823. :key="index"
  824. class="cru_select"
  825. :class="unitIndex == index ? 'cru_selected' : ''"
  826. @click="unitSet(index)"
  827. >
  828. <!-- item.dyName ? item.dyName : -->
  829. <span
  830. v-if="
  831. unitJson[unitJson.length - 1].easy == 4 ||
  832. unitJson[unitJson.length - 1].easy == 6
  833. "
  834. >{{
  835. item.dyName
  836. ? item.dyName
  837. : lang.ssStage.replace(/\*/g, (index + 1))
  838. }}</span
  839. >
  840. <span v-else>{{ lang.ssStage.replace(/\*/g, (index + 1)) }}</span>
  841. </div>
  842. <div
  843. class="cru_line"
  844. :style="{
  845. left: offsetLetfPx + 'px',
  846. }"
  847. ></div>
  848. </div>
  849. <div
  850. class="addStageImg"
  851. @click="addunit()"
  852. v-if="
  853. !(unitJson[unitJson.length - 1].easy == 4) &&
  854. !(unitJson[unitJson.length - 1].easy == 6) &&
  855. courseState == 1
  856. "
  857. >
  858. <img src="../../../assets/icon/new/addStage.png" alt />
  859. </div>
  860. <button
  861. class="c_pub_button_add pub_btn_add_img"
  862. @click="updateCourseState(1)"
  863. v-if="courseState == 2"
  864. style="margin: 15px 0"
  865. >
  866. {{ lang.ssNewStage }}
  867. </button>
  868. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  869. <button
  870. class="c_pub_button_add"
  871. @click="openStageBox"
  872. v-show="false"
  873. style="margin: 0 0 0 auto"
  874. >
  875. {{ lang.ssStageOrder }}
  876. </button>
  877. <button
  878. class="c_pub_button_add pub_btn_paste_img"
  879. @click="pasteTask()"
  880. v-if="steps == 3 && isPasteTask"
  881. style="margin: 0 0 0 auto"
  882. >
  883. {{ lang.ssSmartPaste }}
  884. </button>
  885. <button
  886. class="c_pub_button_confirm pub_btn_template_img"
  887. v-if="lang.lang != 'com'"
  888. @click="openTemplate"
  889. :style="{
  890. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  891. }"
  892. style="padding: 0 12px"
  893. >
  894. {{ lang.ssSelectTemp }}
  895. </button>
  896. </div>
  897. <div
  898. style="margin: 0 0 10px 0; padding: 0"
  899. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  900. :key="index"
  901. >
  902. <div class="chapter_box" v-if="courseState == 1">
  903. <div class="chapter_contentbox">
  904. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  905. <div class="cc_input">
  906. <input
  907. ref="dyInput"
  908. type="text"
  909. :placeholder="lang.ssEnterStageTitle"
  910. class="binfo_input"
  911. v-model="unitJson[unitIndex].dyName"
  912. />
  913. </div>
  914. <div
  915. class="remove"
  916. v-if="
  917. (unitJson.length > 1 || courseState != 2) &&
  918. !(unitJson[unitJson.length - 1].easy == 4) &&
  919. !(unitJson[unitJson.length - 1].easy == 6)
  920. "
  921. @click="deleteUnit(unitIndex)"
  922. ></div>
  923. </div>
  924. </div>
  925. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  926. margin: 50px 0px 10px;
  927. font-size: 1.5em;
  928. font-weight: 700;
  929. color: #0f7eff;
  930. ">
  931. {{ lang.ssAddTask }}
  932. </div> -->
  933. <div
  934. class="taskBorder"
  935. :style="{
  936. minHeight: unitJson[unitIndex].easy && 'unset',
  937. }"
  938. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  939. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  940. :key="itemTaskIndex"
  941. >
  942. <div style="background: #fff; border-radius: 5px">
  943. <div class="taskTitle">{{ lang.ssTaskNum.replace(/\*/g, (itemTaskIndex + 1)) }}</div>
  944. <!-- padding: 20px; -->
  945. <div v-if="unitJson[unitIndex].easy != 1">
  946. <div
  947. :style="{
  948. marginBottom:
  949. unitJson[unitIndex].easy == 3 ||
  950. (unitJson[unitIndex].easy == 5 &&
  951. itemTask.taskType == 1)
  952. ? '75px'
  953. : '0',
  954. }"
  955. >
  956. <div
  957. style="
  958. display: flex;
  959. margin: 0px 0 20px;
  960. flex-direction: row;
  961. justify-content: flex-start;
  962. align-items: center;
  963. "
  964. >
  965. <div class="lineTitle">{{ lang.ssTaskOverview }}</div>
  966. </div>
  967. <div
  968. :id="'task' + itemTaskIndex"
  969. class="chapter_contentbox"
  970. style="
  971. flex-direction: row;
  972. justify-content: flex-start;
  973. align-items: center;
  974. margin: 0;
  975. "
  976. >
  977. <!-- <div class="cc_title">
  978. {{ lang.ssTaskColon.replace(/\*/g, (itemTaskIndex + 1).toString()) }}
  979. </div> -->
  980. <div class="cc_input">
  981. <input
  982. type="text"
  983. :placeholder="lang.ssEnterTaskName"
  984. class="binfo_input"
  985. style="border-radius: 4px"
  986. v-model="
  987. unitJson[unitIndex].chapterInfo[0].taskJson[
  988. itemTaskIndex
  989. ].task
  990. "
  991. />
  992. </div>
  993. <div
  994. class="remove"
  995. v-if="
  996. item.taskJson.length > 1 &&
  997. (!unitJson[unitIndex].easy ||
  998. unitJson[unitIndex].easy == 6)
  999. "
  1000. @click="deleteTask(itemTaskIndex)"
  1001. ></div>
  1002. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1003. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1004. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1005. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1006. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1007. </div> -->
  1008. </div>
  1009. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1010. display: flex;
  1011. margin: 20px 0;
  1012. flex-direction: row;
  1013. justify-content: flex-start;
  1014. align-items: center;
  1015. ">
  1016. <div class="lineTitle">任务描述</div>
  1017. </div> && !itemTask.isFold2-->
  1018. <div
  1019. v-if="
  1020. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1021. -1
  1022. "
  1023. style="margin-top: 20px"
  1024. >
  1025. <div style="margin-bottom: 5px;font-size: 14px;">{{ lang.Tipformula }}</div>
  1026. <editor-bar
  1027. class="addEditor"
  1028. style="margin: 0"
  1029. :placeholder="lang.ssEnterTaskDesc"
  1030. v-model="
  1031. unitJson[unitIndex].chapterInfo[0].taskJson[
  1032. itemTaskIndex
  1033. ].taskDetail
  1034. "
  1035. @change="change"
  1036. ></editor-bar>
  1037. <!-- <textarea
  1038. rows="6"
  1039. class="binfo_input"
  1040. placeholder="请输入任务描述"
  1041. cols
  1042. style="width: 70.5% !important; height: 120px"
  1043. v-model="
  1044. unitJson[unitIndex].chapterInfo[0].taskJson[
  1045. itemTaskIndex
  1046. ].taskDetail
  1047. "
  1048. ></textarea>-->
  1049. </div>
  1050. </div>
  1051. </div>
  1052. <div
  1053. style="position: relative"
  1054. v-if="
  1055. !unitJson[unitIndex].easy ||
  1056. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1057. "
  1058. >
  1059. <div
  1060. style="
  1061. display: flex;
  1062. flex-direction: row;
  1063. justify-content: space-between;
  1064. align-items: center;
  1065. "
  1066. :style="{
  1067. margin: !itemTask.isFoldchapter
  1068. ? '20px 0 10px'
  1069. : '20px 0 0',
  1070. }"
  1071. >
  1072. <div
  1073. style="margin-bottom: 10px"
  1074. class="lineTitle clineTitle"
  1075. >
  1076. {{ lang.ssLearningContent }}
  1077. </div>
  1078. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1079. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1080. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1081. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1082. <!-- <div class="line"></div> -->
  1083. </div>
  1084. <!-- v-if="!itemTask.isFoldchapter" -->
  1085. <div>
  1086. <div
  1087. class="add_chapters_box add_c_none"
  1088. v-if="
  1089. itemTask.chapterData &&
  1090. itemTask.chapterData.length == 0
  1091. "
  1092. >
  1093. <img
  1094. src="../../../assets/icon/new/c_none.png"
  1095. alt
  1096. /><span>{{ lang.ssPleaseAddLearningContent }}</span>
  1097. </div>
  1098. <div
  1099. v-else
  1100. class="add_chapters_box"
  1101. style="display: flex; flex-direction: column"
  1102. >
  1103. <div
  1104. @dragstart="
  1105. dragStart(item1, index1, itemTaskIndex)
  1106. "
  1107. @dragover.prevent="
  1108. dragOver(index1, itemTaskIndex)
  1109. "
  1110. @dragend="dragEnd()"
  1111. :draggable="
  1112. isdrag ==
  1113. 'chapter-' + itemTaskIndex + '-' + index1
  1114. "
  1115. class="chapter_upload"
  1116. v-for="(item1, index1) in itemTask.chapterData"
  1117. :key="item1.id"
  1118. @click="
  1119. getChapterData(
  1120. $event,
  1121. unitIndex,
  1122. index,
  1123. index1,
  1124. item1.type
  1125. )
  1126. "
  1127. :class="{
  1128. dragOverTop2:
  1129. newIndex === index1 &&
  1130. typeIndex ==
  1131. 'chapter-' +
  1132. itemTaskIndex +
  1133. '-' +
  1134. index1 &&
  1135. oldIndex > index1 &&
  1136. dragType == 'drag',
  1137. dragOverBottom2:
  1138. newIndex === index1 &&
  1139. typeIndex ==
  1140. 'chapter-' +
  1141. itemTaskIndex +
  1142. '-' +
  1143. index1 &&
  1144. oldIndex < index1 &&
  1145. dragType == 'drag',
  1146. }"
  1147. >
  1148. <div
  1149. @mousedown="
  1150. isdrag =
  1151. 'chapter-' + itemTaskIndex + '-' + index1
  1152. "
  1153. @mouseup="isdrag = ''"
  1154. @touchstart="
  1155. isdrag =
  1156. 'chapter-' + itemTaskIndex + '-' + index1
  1157. "
  1158. @touchend="isdrag = ''"
  1159. class="chapter_upload_drag"
  1160. ></div>
  1161. <div
  1162. class="chapter_upload_o"
  1163. style="
  1164. position: relative;
  1165. display: flex;
  1166. align-items: center;
  1167. "
  1168. >
  1169. <div
  1170. class="chapter_upload_l"
  1171. style="padding: 1px 0 0 10px"
  1172. >
  1173. <div
  1174. v-if="item1.type == 2"
  1175. class="chapter_upload_l_i2"
  1176. ></div>
  1177. <div
  1178. v-if="item1.type == 3 || item1.type == 16"
  1179. class="chapter_upload_l_i3"
  1180. style="margin-left: 1px"
  1181. ></div>
  1182. <div
  1183. v-if="item1.type == 6"
  1184. class="chapter_upload_l_i6"
  1185. style="margin-left: 1px"
  1186. ></div>
  1187. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1188. <div
  1189. v-if="item1.type == 8"
  1190. class="chapter_upload_l_i8"
  1191. style="margin-left: 1px"
  1192. ></div>
  1193. <div
  1194. v-if="item1.type == 14"
  1195. class="chapter_upload_l_i14"
  1196. style="margin-left: 1px"
  1197. ></div>
  1198. <div
  1199. v-if="item1.type == 12"
  1200. class="chapter_upload_l_i12"
  1201. style="margin-left: 1px"
  1202. ></div>
  1203. <div
  1204. v-if="item1.type == 13"
  1205. class="chapter_upload_l_i13"
  1206. style="margin-left: 1px"
  1207. ></div>
  1208. <div
  1209. v-if="item1.type == 15"
  1210. class="chapter_upload_l_i15"
  1211. style="margin-left: 1px"
  1212. ></div>
  1213. <div
  1214. v-if="item1.type == 17"
  1215. class="chapter_upload_l_i8"
  1216. style="margin-left: 1px"
  1217. ></div>
  1218. </div>
  1219. <div class="chapter_upload_n">
  1220. <input
  1221. readonly="true"
  1222. v-if="
  1223. item1.type == 16
  1224. "
  1225. :placeholder="item1.name"
  1226. @click="
  1227. openCodeEditor(1,item1, unitIndex,itemTaskIndex, index1)
  1228. "
  1229. style="
  1230. border: none;
  1231. outline: none;
  1232. width: 80%;
  1233. minwidth: 215px;
  1234. z-index: 99;
  1235. font-size: 14px;
  1236. white-space: nowrap;
  1237. overflow: hidden;
  1238. text-overflow: ellipsis;
  1239. "
  1240. />
  1241. <input
  1242. readonly="true"
  1243. v-if="
  1244. item1.type == 2 ||
  1245. item1.type == 3 ||
  1246. item1.type == 12 ||
  1247. item1.type == 13 ||
  1248. item1.type == 7
  1249. "
  1250. :placeholder="item1.name"
  1251. @click="
  1252. updataVideoT(
  1253. $event,
  1254. unitIndex,
  1255. itemTaskIndex,
  1256. index1
  1257. )
  1258. "
  1259. style="
  1260. border: none;
  1261. outline: none;
  1262. width: 80%;
  1263. minwidth: 215px;
  1264. z-index: 99;
  1265. font-size: 14px;
  1266. white-space: nowrap;
  1267. overflow: hidden;
  1268. text-overflow: ellipsis;
  1269. "
  1270. />
  1271. <input
  1272. :placeholder="item1.name"
  1273. v-if="item1.type == 6"
  1274. style="
  1275. border: none;
  1276. outline: none;
  1277. width: 80%;
  1278. white-space: nowrap;
  1279. overflow: hidden;
  1280. text-overflow: ellipsis;
  1281. "
  1282. readonly="true"
  1283. @click="
  1284. selectAttText(itemTaskIndex, index1)
  1285. "
  1286. />
  1287. <input
  1288. :placeholder="
  1289. item1.title ? item1.title : lang.ssLink
  1290. "
  1291. v-if="item1.type == 8"
  1292. style="
  1293. border: none;
  1294. outline: none;
  1295. width: 80%;
  1296. white-space: nowrap;
  1297. overflow: hidden;
  1298. text-overflow: ellipsis;
  1299. "
  1300. readonly="true"
  1301. @click="selectLine(itemTaskIndex, index1)"
  1302. />
  1303. <input
  1304. :placeholder="
  1305. item1.title ? item1.title : lang.ssCodeUpload
  1306. "
  1307. v-if="item1.type == 17"
  1308. style="
  1309. border: none;
  1310. outline: none;
  1311. width: 80%;
  1312. white-space: nowrap;
  1313. overflow: hidden;
  1314. text-overflow: ellipsis;
  1315. "
  1316. readonly="true"
  1317. @click="changeHTmlPage(itemTaskIndex, index1)"
  1318. />
  1319. <input
  1320. :placeholder="
  1321. item1.title ? item1.title : lang.ssLink
  1322. "
  1323. v-if="item1.type == 14"
  1324. style="
  1325. border: none;
  1326. outline: none;
  1327. width: 80%;
  1328. white-space: nowrap;
  1329. overflow: hidden;
  1330. text-overflow: ellipsis;
  1331. "
  1332. readonly="true"
  1333. @click="
  1334. openUpdateSource(itemTaskIndex, index1)
  1335. "
  1336. />
  1337. <input
  1338. :placeholder="
  1339. item1.title ? item1.title : lang.ssAiApp
  1340. "
  1341. v-if="item1.type == 15"
  1342. style="
  1343. border: none;
  1344. outline: none;
  1345. width: 80%;
  1346. white-space: nowrap;
  1347. overflow: hidden;
  1348. text-overflow: ellipsis;
  1349. "
  1350. readonly="true"
  1351. @click="selectLine(0, index1)"
  1352. />
  1353. </div>
  1354. <div class="chapter_upload_ic">
  1355. <div
  1356. class="chapter_upload_noSee"
  1357. v-if="item1.type == 12"
  1358. ></div>
  1359. <div
  1360. class="chapter_upload_ud"
  1361. style="z-index: 99"
  1362. >
  1363. <div
  1364. class="chapter_upload_up"
  1365. @click="
  1366. upCd(
  1367. $event,
  1368. unitIndex,
  1369. index,
  1370. itemTaskIndex,
  1371. index1
  1372. )
  1373. "
  1374. ></div>
  1375. <div
  1376. class="chapter_upload_down"
  1377. @click="
  1378. downCd(
  1379. $event,
  1380. unitIndex,
  1381. index,
  1382. itemTaskIndex,
  1383. index1
  1384. )
  1385. "
  1386. ></div>
  1387. </div>
  1388. <div
  1389. class="chapter_upload_ic_edit"
  1390. v-if="
  1391. item1.type == 2 ||
  1392. item1.type == 3 ||
  1393. item1.type == 12 ||
  1394. item1.type == 13 ||
  1395. item1.type == 7
  1396. "
  1397. @click.stop="
  1398. updataVideoT(
  1399. $event,
  1400. unitIndex,
  1401. itemTaskIndex,
  1402. index1
  1403. )
  1404. "
  1405. >
  1406. <div></div>
  1407. </div>
  1408. <div
  1409. class="chapter_upload_ic_edit"
  1410. v-if="
  1411. item1.type == 16
  1412. "
  1413. @click.stop="
  1414. openCodeEditor(1,item1, unitIndex,itemTaskIndex, index1)
  1415. "
  1416. >
  1417. <div></div>
  1418. </div>
  1419. <div
  1420. class="chapter_upload_ic_edit"
  1421. v-if="item1.type == 6"
  1422. @click="
  1423. selectAttText(itemTaskIndex, index1)
  1424. "
  1425. >
  1426. <div></div>
  1427. </div>
  1428. <div
  1429. class="chapter_upload_ic_edit"
  1430. v-if="item1.type == 8 || item1.type == 15"
  1431. @click="selectLine(itemTaskIndex, index1)"
  1432. >
  1433. <div></div>
  1434. </div>
  1435. <div
  1436. class="chapter_upload_ic_edit"
  1437. v-if="item1.type == 17"
  1438. @click="changeHTmlPage(itemTaskIndex, index1)"
  1439. >
  1440. <div></div>
  1441. </div>
  1442. <div
  1443. class="chapter_upload_ic_edit"
  1444. v-if="item1.type == 14"
  1445. @click="
  1446. openUpdateSource(itemTaskIndex, index1)
  1447. "
  1448. >
  1449. <div></div>
  1450. </div>
  1451. <div
  1452. class="chapter_upload_ic_r"
  1453. @click.stop="
  1454. deleteChapterData(
  1455. $event,
  1456. unitIndex,
  1457. index,
  1458. index1,
  1459. itemTaskIndex
  1460. )
  1461. "
  1462. >
  1463. <div></div>
  1464. </div>
  1465. </div>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. </div>
  1470. <!-- v-if="!itemTask.isFoldchapter" -->
  1471. <div class="add_info_box" style="margin: 10px 0 0">
  1472. <button
  1473. class="c_pub_button_add pub_btn_add_img"
  1474. @click="addImg($event)"
  1475. >
  1476. {{ lang.Files }}
  1477. <input
  1478. type="file"
  1479. accept="*"
  1480. style="display: none"
  1481. v-if="inputShow"
  1482. @change="
  1483. beforeUpload2(
  1484. $event,
  1485. unitIndex,
  1486. 13,
  1487. itemTaskIndex
  1488. )
  1489. "
  1490. />
  1491. </button>
  1492. <button
  1493. class="c_pub_button_add pub_btn_add_img"
  1494. @click="addAttText(itemTaskIndex)"
  1495. >
  1496. {{ lang.TextImages }}
  1497. </button>
  1498. <button
  1499. class="c_pub_button_add pub_btn_add_img"
  1500. @click="openLine(itemTaskIndex)"
  1501. >
  1502. {{ lang.Links }}
  1503. </button>
  1504. <button
  1505. class="c_pub_button_add pub_btn_add_img"
  1506. @click="pasteLine(itemTaskIndex)"
  1507. >
  1508. {{ lang.Code }}
  1509. </button>
  1510. <button
  1511. class="c_pub_button_add pub_btn_add_img"
  1512. @click="openSource(itemTaskIndex)"
  1513. >
  1514. {{ lang.resource }}
  1515. </button>
  1516. <button
  1517. class="c_pub_button_add pub_btn_add_img"
  1518. @click="openAddApp(itemTaskIndex)"
  1519. >
  1520. {{ lang.Intelligentapplication }}
  1521. </button>
  1522. <button
  1523. class="c_pub_button_add pub_btn_add_img"
  1524. @click="openCodeEditor(0,'',unitIndex,itemTaskIndex ,'')"
  1525. >
  1526. {{ lang.CodeEditor }}
  1527. </button>
  1528. <button
  1529. class="c_pub_button_add pub_btn_add_img"
  1530. @click="uploadZIPFile(itemTaskIndex)"
  1531. >
  1532. {{ lang.ssCodeUpload }}
  1533. </button>
  1534. </div>
  1535. <div
  1536. v-if="
  1537. unitJson[unitIndex].chapterInfo[0].taskJson[
  1538. itemTaskIndex
  1539. ].proVisible
  1540. "
  1541. class="mask"
  1542. >
  1543. <div class="progressBox">
  1544. <!-- <div id="closePro" class="closeCss">
  1545. <img src="../../../../assets/icon/close.png" alt />
  1546. </div> -->
  1547. <div class="lbox">
  1548. <img
  1549. src="../../../assets/loading.gif"
  1550. />{{ lang.ssUploadWait }}
  1551. </div>
  1552. <div style="margin-bottom: 10px">
  1553. <span
  1554. >{{
  1555. unitJson[unitIndex].chapterInfo[0].taskJson[
  1556. itemTaskIndex
  1557. ].isFinishSize
  1558. }}M</span
  1559. >
  1560. /
  1561. <span
  1562. >{{
  1563. unitJson[unitIndex].chapterInfo[0].taskJson[
  1564. itemTaskIndex
  1565. ].isAllSize
  1566. }}M</span
  1567. >
  1568. </div>
  1569. <el-progress
  1570. :text-inside="true"
  1571. :stroke-width="20"
  1572. :percentage="
  1573. unitJson[unitIndex].chapterInfo[0].taskJson[
  1574. itemTaskIndex
  1575. ].progress
  1576. ? unitJson[unitIndex].chapterInfo[0]
  1577. .taskJson[itemTaskIndex].progress
  1578. : 0
  1579. "
  1580. style="width: 80%"
  1581. ></el-progress>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div
  1586. v-if="
  1587. unitJson[unitIndex].easy == 1 ||
  1588. (unitJson[unitIndex].easy == 5 &&
  1589. itemTask.taskType == 2)
  1590. "
  1591. >
  1592. <div>
  1593. <div
  1594. class="add_chapters_box add_c_none"
  1595. v-if="
  1596. itemTask.chapterData &&
  1597. itemTask.chapterData.length == 0
  1598. "
  1599. >
  1600. <img src="../../../assets/icon/new/c_none.png" alt />
  1601. </div>
  1602. <div
  1603. v-else
  1604. class="add_chapters_box"
  1605. style="display: flex; flex-direction: column"
  1606. >
  1607. <div
  1608. @dragstart="dragStart(item1, index1, index)"
  1609. @dragover.prevent="
  1610. dragOver(index1, itemTaskIndex)
  1611. "
  1612. @dragend="dragEnd()"
  1613. :draggable="
  1614. isdrag ==
  1615. 'chapter-' + itemTaskIndex + '-' + index1
  1616. "
  1617. class="chapter_upload"
  1618. v-for="(item1, index1) in itemTask.chapterData"
  1619. :key="item1.id"
  1620. @click="
  1621. getChapterData(
  1622. $event,
  1623. unitIndex,
  1624. index,
  1625. index1,
  1626. item1.type
  1627. )
  1628. "
  1629. :class="{
  1630. dragOverTop2:
  1631. newIndex === index1 &&
  1632. typeIndex ==
  1633. 'chapter-' +
  1634. itemTaskIndex +
  1635. '-' +
  1636. index1 &&
  1637. oldIndex > index1,
  1638. dragOverBottom2:
  1639. newIndex === index1 &&
  1640. typeIndex ==
  1641. 'chapter-' +
  1642. itemTaskIndex +
  1643. '-' +
  1644. index1 &&
  1645. oldIndex < index1,
  1646. }"
  1647. >
  1648. <div
  1649. @mousedown="
  1650. isdrag =
  1651. 'chapter-' + itemTaskIndex + '-' + index1
  1652. "
  1653. @mouseup="isdrag = ''"
  1654. @touchstart="
  1655. isdrag =
  1656. 'chapter-' + itemTaskIndex + '-' + index1
  1657. "
  1658. @touchend="isdrag = ''"
  1659. class="chapter_upload_drag"
  1660. ></div>
  1661. <div
  1662. class="chapter_upload_t"
  1663. style="width: 100%"
  1664. ></div>
  1665. <div
  1666. class="chapter_upload_o"
  1667. style="
  1668. position: relative;
  1669. display: flex;
  1670. align-items: center;
  1671. "
  1672. >
  1673. <div
  1674. class="chapter_upload_l"
  1675. style="padding: 1px 0 0 10px"
  1676. >
  1677. <div
  1678. v-if="item1.type == 2"
  1679. class="chapter_upload_l_i2"
  1680. ></div>
  1681. <div
  1682. v-if="item1.type == 3"
  1683. class="chapter_upload_l_i3"
  1684. style="margin-left: 1px"
  1685. ></div>
  1686. <div
  1687. v-if="item1.type == 6"
  1688. class="chapter_upload_l_i6"
  1689. style="margin-left: 1px"
  1690. ></div>
  1691. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1692. <div
  1693. v-if="item1.type == 8"
  1694. class="chapter_upload_l_i8"
  1695. style="margin-left: 1px"
  1696. ></div>
  1697. <div
  1698. v-if="item1.type == 14"
  1699. class="chapter_upload_l_i14"
  1700. style="margin-left: 1px"
  1701. ></div>
  1702. <div
  1703. v-if="item1.type == 12"
  1704. class="chapter_upload_l_i12"
  1705. style="margin-left: 1px"
  1706. ></div>
  1707. <div
  1708. v-if="item1.type == 13"
  1709. class="chapter_upload_l_i13"
  1710. style="margin-left: 1px"
  1711. ></div>
  1712. <div
  1713. v-if="item1.type == 15"
  1714. class="chapter_upload_l_i15"
  1715. style="margin-left: 1px"
  1716. ></div>
  1717. <div
  1718. v-if="item1.type == 17"
  1719. class="chapter_upload_l_i8"
  1720. style="margin-left: 1px"
  1721. ></div>
  1722. </div>
  1723. <div class="chapter_upload_n">
  1724. <span
  1725. style="
  1726. font-size: 14px;
  1727. color: rgb(109, 109, 109);
  1728. height: 14px;
  1729. line-height: 14px;
  1730. "
  1731. v-if="
  1732. item1.type == 2 ||
  1733. item1.type == 3 ||
  1734. item1.type == 7
  1735. "
  1736. >{{ item1.text }}-</span
  1737. >
  1738. <input
  1739. readonly="true"
  1740. v-if="
  1741. item1.type == 2 ||
  1742. item1.type == 3 ||
  1743. item1.type == 7
  1744. "
  1745. :placeholder="item1.name"
  1746. @click="
  1747. updataVideoT(
  1748. $event,
  1749. unitIndex,
  1750. itemTaskIndex,
  1751. index1
  1752. )
  1753. "
  1754. style="
  1755. border: none;
  1756. outline: none;
  1757. width: 80%;
  1758. minwidth: 215px;
  1759. z-index: 99;
  1760. font-size: 14px;
  1761. white-space: nowrap;
  1762. overflow: hidden;
  1763. text-overflow: ellipsis;
  1764. "
  1765. />
  1766. <input
  1767. :placeholder="item1.name"
  1768. v-if="item1.type == 6"
  1769. style="
  1770. border: none;
  1771. outline: none;
  1772. width: 80%;
  1773. white-space: nowrap;
  1774. overflow: hidden;
  1775. text-overflow: ellipsis;
  1776. "
  1777. readonly="true"
  1778. @click="
  1779. selectAttText(itemTaskIndex, index1)
  1780. "
  1781. />
  1782. <input
  1783. :placeholder="
  1784. item1.title ? item1.title : lang.ssLink
  1785. "
  1786. v-if="item1.type == 8 || item1.type == 14"
  1787. style="
  1788. border: none;
  1789. outline: none;
  1790. width: 80%;
  1791. white-space: nowrap;
  1792. overflow: hidden;
  1793. text-overflow: ellipsis;
  1794. "
  1795. readonly="true"
  1796. @click="selectLine(itemTaskIndex, index1)"
  1797. />
  1798. <input
  1799. :placeholder="
  1800. item1.title ? item1.title : lang.ssCodeUpload
  1801. "
  1802. v-if="item1.type == 17"
  1803. style="
  1804. border: none;
  1805. outline: none;
  1806. width: 80%;
  1807. white-space: nowrap;
  1808. overflow: hidden;
  1809. text-overflow: ellipsis;
  1810. "
  1811. readonly="true"
  1812. @click="changeHTmlPage(itemTaskIndex, index1)"
  1813. />
  1814. <input
  1815. :placeholder="
  1816. item1.title ? item1.title : lang.ssAiApp
  1817. "
  1818. v-if="item1.type == 15"
  1819. style="
  1820. border: none;
  1821. outline: none;
  1822. width: 80%;
  1823. white-space: nowrap;
  1824. overflow: hidden;
  1825. text-overflow: ellipsis;
  1826. "
  1827. readonly="true"
  1828. @click="selectLine(0, index1)"
  1829. />
  1830. </div>
  1831. <div class="chapter_upload_ic">
  1832. <div
  1833. class="chapter_upload_noSee"
  1834. v-if="item1.type == 12"
  1835. ></div>
  1836. <div
  1837. class="chapter_upload_ud"
  1838. style="z-index: 99"
  1839. >
  1840. <div
  1841. class="chapter_upload_up"
  1842. @click="
  1843. upCd(
  1844. $event,
  1845. unitIndex,
  1846. index,
  1847. itemTaskIndex,
  1848. index1
  1849. )
  1850. "
  1851. ></div>
  1852. <div
  1853. class="chapter_upload_down"
  1854. @click="
  1855. downCd(
  1856. $event,
  1857. unitIndex,
  1858. index,
  1859. itemTaskIndex,
  1860. index1
  1861. )
  1862. "
  1863. ></div>
  1864. </div>
  1865. <div
  1866. class="chapter_upload_ic_edit"
  1867. v-if="
  1868. item1.type == 2 ||
  1869. item1.type == 3 ||
  1870. item1.type == 12 ||
  1871. item1.type == 13 ||
  1872. item1.type == 7
  1873. "
  1874. @click.stop="
  1875. updataVideoT(
  1876. $event,
  1877. unitIndex,
  1878. itemTaskIndex,
  1879. index1
  1880. )
  1881. "
  1882. >
  1883. <div></div>
  1884. </div>
  1885. <div
  1886. class="chapter_upload_ic_edit"
  1887. v-if="item1.type == 6"
  1888. @click="
  1889. selectAttText(itemTaskIndex, index1)
  1890. "
  1891. >
  1892. <div></div>
  1893. </div>
  1894. <div
  1895. class="chapter_upload_ic_edit"
  1896. v-if="item1.type == 8 || item1.type == 15"
  1897. @click="selectLine(itemTaskIndex, index1)"
  1898. >
  1899. <div></div>
  1900. </div>
  1901. <div
  1902. class="chapter_upload_ic_edit"
  1903. v-if="item1.type == 14"
  1904. @click="
  1905. openUpdateSource(itemTaskIndex, index1)
  1906. "
  1907. >
  1908. <div></div>
  1909. </div>
  1910. <div
  1911. class="chapter_upload_ic_r"
  1912. @click.stop="
  1913. deleteChapterData(
  1914. $event,
  1915. unitIndex,
  1916. index,
  1917. index1,
  1918. itemTaskIndex
  1919. )
  1920. "
  1921. >
  1922. <div></div>
  1923. </div>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. </div>
  1928. </div>
  1929. <div class="add_info_box" style="margin: 10px 0 0">
  1930. <button
  1931. class="c_pub_button_add pub_btn_add_img"
  1932. @click="addImg($event)"
  1933. >
  1934. <span style="color: red">*</span>
  1935. {{ lang.ssTeachingDesign }}
  1936. <input
  1937. type="file"
  1938. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1939. style="display: none"
  1940. v-if="inputShow"
  1941. @change="
  1942. beforeUpload3(
  1943. $event,
  1944. unitIndex,
  1945. 3,
  1946. itemTaskIndex,
  1947. '教学设计'
  1948. )
  1949. "
  1950. />
  1951. </button>
  1952. <button
  1953. class="c_pub_button_add pub_btn_add_img"
  1954. @click="addImg($event)"
  1955. >
  1956. <span style="color: red">*</span>
  1957. {{ lang.ssTeachingCourseware }}
  1958. <input
  1959. type="file"
  1960. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1961. style="display: none"
  1962. v-if="inputShow"
  1963. @change="
  1964. beforeUpload3(
  1965. $event,
  1966. unitIndex,
  1967. 3,
  1968. itemTaskIndex,
  1969. '教学课件'
  1970. )
  1971. "
  1972. />
  1973. </button>
  1974. <button
  1975. class="c_pub_button_add pub_btn_add_img"
  1976. @click="addImg($event)"
  1977. >
  1978. {{ lang.ssTeachingVideo }}
  1979. <input
  1980. type="file"
  1981. accept="video/mp4, video/quicktime, video/x-msvideo"
  1982. style="display: none"
  1983. v-if="inputShow"
  1984. @change="
  1985. beforeUpload3(
  1986. $event,
  1987. unitIndex,
  1988. 2,
  1989. itemTaskIndex,
  1990. lang.ssTeachingVideo
  1991. )
  1992. "
  1993. />
  1994. </button>
  1995. <button
  1996. class="c_pub_button_add pub_btn_add_img"
  1997. @click="addImg($event)"
  1998. >
  1999. {{ lang.ssTeachingAudio }}
  2000. <input
  2001. type="file"
  2002. accept="audio/*"
  2003. style="display: none"
  2004. v-if="inputShow"
  2005. @change="
  2006. beforeUpload3(
  2007. $event,
  2008. unitIndex,
  2009. 2,
  2010. itemTaskIndex,
  2011. lang.ssTeachingAudio
  2012. )
  2013. "
  2014. />
  2015. </button>
  2016. <button
  2017. class="c_pub_button_add pub_btn_add_img"
  2018. @click="addImg($event)"
  2019. >
  2020. {{ lang.ssLearningSheet }}
  2021. <input
  2022. type="file"
  2023. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2024. style="display: none"
  2025. v-if="inputShow"
  2026. @change="
  2027. beforeUpload3(
  2028. $event,
  2029. unitIndex,
  2030. 3,
  2031. itemTaskIndex,
  2032. lang.ssLearningSheet
  2033. )
  2034. "
  2035. />
  2036. </button>
  2037. </div>
  2038. <div
  2039. v-if="
  2040. unitJson[unitIndex].chapterInfo[0].taskJson[
  2041. itemTaskIndex
  2042. ].proVisible
  2043. "
  2044. class="mask"
  2045. >
  2046. <div class="progressBox">
  2047. <!-- <div id="closePro" class="closeCss">
  2048. <img src="../../../../assets/icon/close.png" alt />
  2049. </div> -->
  2050. <div class="lbox">
  2051. <img
  2052. src="../../../assets/loading.gif"
  2053. />{{ lang.ssUploadWait }}
  2054. </div>
  2055. <div style="margin-bottom: 10px">
  2056. <span
  2057. >{{
  2058. unitJson[unitIndex].chapterInfo[0].taskJson[
  2059. itemTaskIndex
  2060. ].isFinishSize
  2061. }}M</span
  2062. >
  2063. /
  2064. <span
  2065. >{{
  2066. unitJson[unitIndex].chapterInfo[0].taskJson[
  2067. itemTaskIndex
  2068. ].isAllSize
  2069. }}M</span
  2070. >
  2071. </div>
  2072. <el-progress
  2073. :text-inside="true"
  2074. :stroke-width="20"
  2075. :percentage="
  2076. unitJson[unitIndex].chapterInfo[0].taskJson[
  2077. itemTaskIndex
  2078. ].progress
  2079. ? unitJson[unitIndex].chapterInfo[0]
  2080. .taskJson[itemTaskIndex].progress
  2081. : 0
  2082. "
  2083. style="width: 80%"
  2084. ></el-progress>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. </div>
  2089. <!-- padding: 20px; -->
  2090. <div
  2091. style="
  2092. background: #fff;
  2093. border-radius: 5px;
  2094. margin-top: 15px;
  2095. "
  2096. >
  2097. <div
  2098. v-if="
  2099. unitJson[unitIndex].easy != 3 &&
  2100. !(
  2101. unitJson[unitIndex].easy == 5 &&
  2102. itemTask.taskType == 1
  2103. )
  2104. "
  2105. style="
  2106. flex-direction: row;
  2107. justify-content: flex-start;
  2108. align-items: center;
  2109. "
  2110. >
  2111. <div
  2112. style="
  2113. display: flex;
  2114. flex-direction: row;
  2115. align-items: center;
  2116. margin: 5px 0 20px;
  2117. "
  2118. >
  2119. <div class="lineTitle clineTitle">
  2120. {{
  2121. !unitJson[unitIndex].easy ||
  2122. unitJson[unitIndex].easy == 6 ||
  2123. easyArray.indexOf(unitJson[unitIndex].easy) !=
  2124. -1
  2125. ? lang.ssPracticeContent
  2126. : lang.ssEvaluationContent
  2127. }}
  2128. </div>
  2129. <!-- <div class="line" style="width: 90%"></div> -->
  2130. </div>
  2131. </div>
  2132. <div
  2133. v-if="
  2134. unitJson[unitIndex].easy == 6 ||
  2135. !unitJson[unitIndex].easy
  2136. "
  2137. class="toolChoose"
  2138. >
  2139. <div class="tools">
  2140. <div
  2141. class="leftTools"
  2142. style="width: 100%"
  2143. v-for="(
  2144. itemTool, toolIndex
  2145. ) in itemTask.toolChoose"
  2146. :key="toolIndex"
  2147. >
  2148. <div
  2149. style="
  2150. display: flex;
  2151. flex-direction: row;
  2152. align-items: baseline;
  2153. flex-wrap: nowrap;
  2154. justify-content: flex-start;
  2155. position: relative;
  2156. "
  2157. >
  2158. <div
  2159. style="margin-right: 20px; font-weight: bold"
  2160. :id="'gj' + itemTaskIndex + '' + toolIndex"
  2161. >
  2162. {{ lang.ssTool.replace(/\*/g, (toolIndex + 1)) }}:
  2163. </div>
  2164. <div class="chooseWho">
  2165. <div
  2166. :class="
  2167. itemTool.toolType == 0
  2168. ? 'isChooseActive'
  2169. : ''
  2170. "
  2171. @click="
  2172. (itemTool.toolType = 0),
  2173. (itemTool.isFold3 = false),
  2174. $forceUpdate()
  2175. "
  2176. >
  2177. {{ lang.ssInteract }}
  2178. </div>
  2179. <div
  2180. :class="
  2181. itemTool.toolType == 1
  2182. ? 'isChooseActive'
  2183. : ''
  2184. "
  2185. @click="
  2186. (itemTool.toolType = 1),
  2187. (itemTool.isFold3 = false),
  2188. $forceUpdate()
  2189. "
  2190. >
  2191. {{ lang.ssCognitive }}
  2192. </div>
  2193. <div
  2194. :class="
  2195. itemTool.toolType == 6
  2196. ? 'isChooseActive'
  2197. : ''
  2198. "
  2199. @click="
  2200. (itemTool.toolType = 6),
  2201. (itemTool.isFold3 = false),
  2202. $forceUpdate()
  2203. "
  2204. >
  2205. {{ lang.ssCoopType }}
  2206. </div>
  2207. <div
  2208. :class="
  2209. itemTool.toolType == 2
  2210. ? 'isChooseActive'
  2211. : ''
  2212. "
  2213. @click="
  2214. (itemTool.toolType = 2),
  2215. (itemTool.isFold3 = false),
  2216. $forceUpdate()
  2217. "
  2218. >
  2219. {{ lang.ssAssessment }}
  2220. </div>
  2221. <div
  2222. :class="
  2223. itemTool.toolType == 7
  2224. ? 'isChooseActive'
  2225. : ''
  2226. "
  2227. @click="
  2228. (itemTool.toolType = 7),
  2229. (itemTool.isFold3 = false),
  2230. $forceUpdate()
  2231. "
  2232. >
  2233. {{ lang.ssEval }}
  2234. </div>
  2235. <div
  2236. :class="
  2237. itemTool.toolType == 3
  2238. ? 'isChooseActive'
  2239. : ''
  2240. "
  2241. @click="
  2242. (itemTool.toolType = 3),
  2243. (itemTool.isFold3 = false),
  2244. $forceUpdate()
  2245. "
  2246. >
  2247. {{ lang.ssProgType }}
  2248. </div>
  2249. <div
  2250. :class="
  2251. itemTool.toolType == 5
  2252. ? 'isChooseActive'
  2253. : ''
  2254. "
  2255. @click="
  2256. (itemTool.toolType = 5),
  2257. (itemTool.isFold3 = false),
  2258. $forceUpdate()
  2259. "
  2260. >
  2261. {{ lang.ssSubject }}
  2262. </div>
  2263. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2264. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2265. 其他
  2266. </div> -->
  2267. </div>
  2268. <div
  2269. class="chapter_upload_ud2"
  2270. style="z-index: 9; margin: 0 0 0 auto"
  2271. :style="{
  2272. margin:
  2273. itemTask.toolChoose.length > 1
  2274. ? '0px 35px 0px auto'
  2275. : '0 0 0 auto',
  2276. }"
  2277. v-if="itemTask.toolChoose.length > 1"
  2278. >
  2279. <div
  2280. class="chapter_upload_up2"
  2281. @click.stop="
  2282. upTool(
  2283. $event,
  2284. unitIndex,
  2285. itemTaskIndex,
  2286. toolIndex
  2287. )
  2288. "
  2289. >
  2290. {{ lang.ssMoveUp }}
  2291. </div>
  2292. <div
  2293. class="chapter_upload_down2"
  2294. @click.stop="
  2295. downTool(
  2296. $event,
  2297. unitIndex,
  2298. itemTaskIndex,
  2299. toolIndex
  2300. )
  2301. "
  2302. >
  2303. {{ lang.ssMoveDown }}
  2304. </div>
  2305. </div>
  2306. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2307. @click="fold3(itemTaskIndex, toolIndex)"
  2308. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2309. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2310. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2311. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2312. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2313. <div
  2314. class="remove"
  2315. @click="deleteTool(itemTaskIndex, toolIndex)"
  2316. v-if="itemTask.toolChoose.length > 1"
  2317. style="
  2318. position: absolute;
  2319. right: 0;
  2320. top: -5px;
  2321. "
  2322. ></div>
  2323. </div>
  2324. <!-- v-show="!itemTool.isFold3" -->
  2325. <div style="min-height: 163px">
  2326. <div
  2327. class="toolSort"
  2328. v-if="itemTool.toolType == 0"
  2329. >
  2330. <!-- <div class="tool">
  2331. <div
  2332. class="whiteBIcon"
  2333. @click="addTools(8, itemTaskIndex, toolIndex)"
  2334. >
  2335. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2336. <div style="margin: 5px 0">素材库</div>
  2337. </div>
  2338. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2339. <img
  2340. src="../../../assets/icon/checkNo.png"
  2341. alt
  2342. v-if="itemTool.tool.indexOf(8) == -1"
  2343. />
  2344. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2345. alt /><span>已选择</span></div>
  2346. </div>
  2347. </div>-->
  2348. <!-- <div class="tool">
  2349. <div
  2350. class="whiteBIcon"
  2351. @click="addTools(17, itemTaskIndex, toolIndex)"
  2352. >
  2353. <img
  2354. src="../../../assets/icon/secondToolList/library.png"
  2355. alt
  2356. />
  2357. <div style="margin: 5px 0">学习资料</div>
  2358. </div>
  2359. <div
  2360. class="check"
  2361. @click="addTools(17, itemTaskIndex, toolIndex)"
  2362. >
  2363. <img
  2364. src="../../../assets/icon/checkNo.png"
  2365. alt
  2366. v-if="itemTool.tool.indexOf(17) == -1"
  2367. />
  2368. <img
  2369. src="../../../assets/icon/checkedIs.png"
  2370. alt
  2371. v-else
  2372. />
  2373. </div>10
  2374. </div> -->
  2375. <div
  2376. class="tool"
  2377. :class="{
  2378. isToolChoose:
  2379. itemTool.tool.indexOf(10) != -1,
  2380. }"
  2381. @click="
  2382. addTools(10, itemTaskIndex, toolIndex)
  2383. "
  2384. >
  2385. <div
  2386. class="whiteBIcon"
  2387. @click.stop="
  2388. openTools(itemTaskIndex, 10, toolIndex)
  2389. "
  2390. >
  2391. <img
  2392. src="../../../assets/icon/thirdToolList/time.png"
  2393. alt
  2394. />
  2395. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  2396. </div>
  2397. <div class="noCTool">
  2398. <img
  2399. src="../../../assets/icon/new/isToolC.png"
  2400. alt=""
  2401. />
  2402. </div>
  2403. <div
  2404. class="isCTool"
  2405. v-if="itemTool.tool.indexOf(10) != -1"
  2406. >
  2407. <img
  2408. src="../../../assets/icon/new/isToolC.png"
  2409. alt=""
  2410. />
  2411. </div>
  2412. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2413. <img src="../../../assets/icon/checkNo.png" alt
  2414. v-if="itemTool.tool.indexOf(10) == -1" />
  2415. <div class="checkDiv" v-else>
  2416. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2417. </div>
  2418. </div> -->
  2419. </div>
  2420. <div
  2421. class="tool"
  2422. :class="{
  2423. isToolChoose:
  2424. itemTool.tool.indexOf(65) != -1,
  2425. }"
  2426. @click="
  2427. addTools(65, itemTaskIndex, toolIndex)
  2428. "
  2429. >
  2430. <div
  2431. class="whiteBIcon"
  2432. @click.stop="
  2433. addTools(65, itemTaskIndex, toolIndex)
  2434. "
  2435. >
  2436. <img
  2437. src="../../../assets/icon/firstToolList/pickPeople.png"
  2438. alt
  2439. />
  2440. <div style="margin: 5px 0">{{ lang.ssPickPeople }}</div>
  2441. </div>
  2442. <div class="noCTool">
  2443. <img
  2444. src="../../../assets/icon/new/isToolC.png"
  2445. alt=""
  2446. />
  2447. </div>
  2448. <div
  2449. class="isCTool"
  2450. v-if="itemTool.tool.indexOf(65) != -1"
  2451. >
  2452. <img
  2453. src="../../../assets/icon/new/isToolC.png"
  2454. alt=""
  2455. />
  2456. </div>
  2457. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2458. <img src="../../../assets/icon/checkNo.png" alt
  2459. v-if="itemTool.tool.indexOf(65) == -1" />
  2460. <div class="checkDiv" v-else>
  2461. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2462. </div>
  2463. </div> -->
  2464. </div>
  2465. <!-- <div class="tool">
  2466. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2467. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2468. <div style="margin: 5px 0">{{ lang.ssStuGroup }}</div>
  2469. </div>
  2470. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2471. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2472. <div class="checkDiv" v-else>
  2473. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2474. </div>
  2475. </div>
  2476. </div> -->
  2477. <!-- <div class="tool">
  2478. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2479. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2480. <div style="margin: 5px 0">交互视频</div>
  2481. </div>
  2482. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2483. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2484. <div class="checkDiv" v-else>
  2485. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2486. </div>
  2487. </div>
  2488. </div> -->
  2489. <div class="tool" :class="{
  2490. isToolChoose:
  2491. itemTool.tool.indexOf(72) != -1,
  2492. }" @click="
  2493. addTools(72, itemTaskIndex, toolIndex)
  2494. ">
  2495. <div class="whiteBIcon" @click.stop="
  2496. openTools(itemTaskIndex, 72, toolIndex)
  2497. ">
  2498. <img
  2499. style="object-fit: cover;height: 80px;"
  2500. :src="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson ?
  2501. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.json.icon :
  2502. require('../../../assets/icon/firstToolList/appStore.png')"
  2503. alt />
  2504. <div style="margin: 5px 0" >
  2505. <div
  2506. v-if="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson"
  2507. >
  2508. <el-tooltip class="item" effect="dark"
  2509. :content="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name"
  2510. placement="top">
  2511. <div class="Ovh">
  2512. {{unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name}}
  2513. </div>
  2514. </el-tooltip>
  2515. </div>
  2516. <span v-else>
  2517. {{ lang.ssAppCenter }}
  2518. </span>
  2519. </div>
  2520. </div>
  2521. <div class="noCTool">
  2522. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2523. </div>
  2524. <div class="isCTool" v-if="itemTool.tool.indexOf(72) != -1">
  2525. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2526. </div>
  2527. </div>
  2528. </div>
  2529. <div
  2530. class="toolSort"
  2531. v-if="itemTool.toolType == 1"
  2532. >
  2533. <div
  2534. class="tool"
  2535. :class="{
  2536. isToolChoose:
  2537. itemTool.tool.indexOf(7) != -1,
  2538. }"
  2539. @click="
  2540. addTools(7, itemTaskIndex, toolIndex)
  2541. "
  2542. >
  2543. <div
  2544. class="whiteBIcon"
  2545. @click.stop="
  2546. addTools(7, itemTaskIndex, toolIndex)
  2547. "
  2548. >
  2549. <img
  2550. src="../../../assets/icon/secondToolList/mindNetwork.png"
  2551. alt
  2552. />
  2553. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  2554. </div>
  2555. <div class="noCTool">
  2556. <img
  2557. src="../../../assets/icon/new/isToolC.png"
  2558. alt=""
  2559. />
  2560. </div>
  2561. <div
  2562. class="isCTool"
  2563. v-if="itemTool.tool.indexOf(7) != -1"
  2564. >
  2565. <img
  2566. src="../../../assets/icon/new/isToolC.png"
  2567. alt=""
  2568. />
  2569. </div>
  2570. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2571. <img src="../../../assets/icon/checkNo.png" alt
  2572. v-if="itemTool.tool.indexOf(7) == -1" />
  2573. <div class="checkDiv" v-else>
  2574. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2575. </div>
  2576. </div> -->
  2577. </div>
  2578. <div
  2579. class="tool"
  2580. :class="{
  2581. isToolChoose:
  2582. itemTool.tool.indexOf(1) != -1,
  2583. }"
  2584. @click="
  2585. addTools(1, itemTaskIndex, toolIndex)
  2586. "
  2587. >
  2588. <div
  2589. class="whiteBIcon"
  2590. @click.stop="
  2591. openTools(itemTaskIndex, 1, toolIndex)
  2592. "
  2593. >
  2594. <img
  2595. src="../../../assets/icon/secondToolList/whiteBoard.png"
  2596. alt
  2597. />
  2598. <div style="margin: 5px 0">{{ lang.ssEWhite }}</div>
  2599. </div>
  2600. <div class="noCTool">
  2601. <img
  2602. src="../../../assets/icon/new/isToolC.png"
  2603. alt=""
  2604. />
  2605. </div>
  2606. <div
  2607. class="isCTool"
  2608. v-if="itemTool.tool.indexOf(1) != -1"
  2609. >
  2610. <img
  2611. src="../../../assets/icon/new/isToolC.png"
  2612. alt=""
  2613. />
  2614. </div>
  2615. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2616. <img src="../../../assets/icon/checkNo.png" alt
  2617. v-if="itemTool.tool.indexOf(1) == -1" />
  2618. <div class="checkDiv" v-else>
  2619. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2620. </div>
  2621. </div> -->
  2622. </div>
  2623. <!-- <div class="tool">
  2624. <div
  2625. class="whiteBIcon"
  2626. @click="addTools(2, itemTaskIndex, toolIndex)"
  2627. >
  2628. <img
  2629. src="../../../assets/icon/secondToolList/note.png"
  2630. alt
  2631. />
  2632. <div style="margin: 5px 0">便签</div>
  2633. </div>
  2634. <div
  2635. class="check"
  2636. @click="addTools(2, itemTaskIndex, toolIndex)"
  2637. >
  2638. <img
  2639. src="../../../assets/icon/checkNo.png"
  2640. alt
  2641. v-if="itemTool.tool.indexOf(2) == -1"
  2642. />
  2643. <div class="checkDiv" v-else>
  2644. <img
  2645. src="../../../assets/icon/checkedIs.png"
  2646. alt
  2647. /><span>已选择</span>
  2648. </div>
  2649. </div>
  2650. </div> -->
  2651. <!-- <div class="tool">
  2652. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2653. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2654. <div style="margin: 5px 0">协同文档</div>
  2655. </div>
  2656. <div
  2657. class="check"
  2658. @click="addTools(6, itemTaskIndex, toolIndex)"
  2659. >
  2660. <img
  2661. src="../../../assets/icon/checkNo.png"
  2662. alt
  2663. v-if="itemTool.tool.indexOf(6) == -1"
  2664. />
  2665. <div class="checkDiv" v-else>
  2666. <img
  2667. src="../../../assets/icon/checkedIs.png"
  2668. alt
  2669. /><span>已选择</span>
  2670. </div>
  2671. </div>
  2672. </div> -->
  2673. <div
  2674. class="tool"
  2675. :class="{
  2676. isToolChoose:
  2677. itemTool.tool.indexOf(52) != -1,
  2678. }"
  2679. @click="
  2680. addTools(52, itemTaskIndex, toolIndex)
  2681. "
  2682. >
  2683. <div
  2684. class="whiteBIcon"
  2685. @click.stop="
  2686. openTools(itemTaskIndex, 52, toolIndex)
  2687. "
  2688. >
  2689. <img
  2690. src="../../../assets/icon/fourthToolList/text.png"
  2691. alt
  2692. />
  2693. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  2694. </div>
  2695. <div class="noCTool">
  2696. <img
  2697. src="../../../assets/icon/new/isToolC.png"
  2698. alt=""
  2699. />
  2700. </div>
  2701. <div
  2702. class="isCTool"
  2703. v-if="itemTool.tool.indexOf(52) != -1"
  2704. >
  2705. <img
  2706. src="../../../assets/icon/new/isToolC.png"
  2707. alt=""
  2708. />
  2709. </div>
  2710. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2711. <img src="../../../assets/icon/checkNo.png" alt
  2712. v-if="itemTool.tool.indexOf(52) == -1" />
  2713. <div class="checkDiv" v-else>
  2714. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2715. </div>
  2716. </div> -->
  2717. </div>
  2718. <div
  2719. class="tool"
  2720. :class="{
  2721. isToolChoose:
  2722. itemTool.tool.indexOf(3) != -1,
  2723. }"
  2724. @click="
  2725. addTools(3, itemTaskIndex, toolIndex)
  2726. "
  2727. >
  2728. <div
  2729. class="whiteBIcon"
  2730. @click.stop="
  2731. openTools(itemTaskIndex, 3, toolIndex)
  2732. "
  2733. >
  2734. <img
  2735. src="../../../assets/icon/secondToolList/mindMapping.png"
  2736. alt
  2737. />
  2738. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  2739. </div>
  2740. <div class="noCTool">
  2741. <img
  2742. src="../../../assets/icon/new/isToolC.png"
  2743. alt=""
  2744. />
  2745. </div>
  2746. <div
  2747. class="isCTool"
  2748. v-if="itemTool.tool.indexOf(3) != -1"
  2749. >
  2750. <img
  2751. src="../../../assets/icon/new/isToolC.png"
  2752. alt=""
  2753. />
  2754. </div>
  2755. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2756. <img src="../../../assets/icon/checkNo.png" alt
  2757. v-if="itemTool.tool.indexOf(3) == -1" />
  2758. <div class="checkDiv" v-else>
  2759. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2760. </div>
  2761. </div> -->
  2762. </div>
  2763. <div
  2764. class="tool"
  2765. :class="{
  2766. isToolChoose:
  2767. itemTool.tool.indexOf(48) != -1,
  2768. }"
  2769. @click="
  2770. addTools(48, itemTaskIndex, toolIndex)
  2771. "
  2772. >
  2773. <div
  2774. class="whiteBIcon"
  2775. @click.stop="
  2776. openTools(itemTaskIndex, 48, toolIndex)
  2777. "
  2778. >
  2779. <img
  2780. src="../../../assets/icon/fourthToolList/table.png"
  2781. alt
  2782. />
  2783. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  2784. </div>
  2785. <div class="noCTool">
  2786. <img
  2787. src="../../../assets/icon/new/isToolC.png"
  2788. alt=""
  2789. />
  2790. </div>
  2791. <div
  2792. class="isCTool"
  2793. v-if="itemTool.tool.indexOf(48) != -1"
  2794. >
  2795. <img
  2796. src="../../../assets/icon/new/isToolC.png"
  2797. alt=""
  2798. />
  2799. </div>
  2800. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2801. <img src="../../../assets/icon/checkNo.png" alt
  2802. v-if="itemTool.tool.indexOf(48) == -1" />
  2803. <div class="checkDiv" v-else>
  2804. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2805. </div>
  2806. </div> -->
  2807. </div>
  2808. </div>
  2809. <div
  2810. class="toolSort"
  2811. v-if="itemTool.toolType == 6"
  2812. >
  2813. <div
  2814. class="tool"
  2815. :class="{
  2816. isToolChoose:
  2817. itemTool.tool.indexOf(49) != -1,
  2818. }"
  2819. @click="
  2820. addTools(49, itemTaskIndex, toolIndex)
  2821. "
  2822. >
  2823. <div
  2824. class="whiteBIcon"
  2825. @click.stop="
  2826. openTools(itemTaskIndex, 49, toolIndex)
  2827. "
  2828. >
  2829. <img
  2830. src="../../../assets/icon/fourthToolList/group.png"
  2831. alt
  2832. />
  2833. <div style="margin: 5px 0">{{ lang.ssStuGroup }}</div>
  2834. </div>
  2835. <div class="noCTool">
  2836. <img
  2837. src="../../../assets/icon/new/isToolC.png"
  2838. alt=""
  2839. />
  2840. </div>
  2841. <div
  2842. class="isCTool"
  2843. v-if="itemTool.tool.indexOf(49) != -1"
  2844. >
  2845. <img
  2846. src="../../../assets/icon/new/isToolC.png"
  2847. alt=""
  2848. />
  2849. </div>
  2850. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2851. <img src="../../../assets/icon/checkNo.png" alt
  2852. v-if="itemTool.tool.indexOf(49) == -1" />
  2853. <div class="checkDiv" v-else>
  2854. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2855. </div>
  2856. </div> -->
  2857. </div>
  2858. </div>
  2859. <div
  2860. class="toolSort"
  2861. v-if="itemTool.toolType == 2"
  2862. >
  2863. <!-- <div class="tool">
  2864. <div
  2865. class="whiteBIcon"
  2866. @click="addTools(5, itemTaskIndex, toolIndex)"
  2867. >
  2868. <img
  2869. src="../../../assets/icon/thirdToolList/score.png"
  2870. alt
  2871. />
  2872. <div style="margin: 5px 0">量规评分</div>
  2873. </div>
  2874. <div
  2875. class="check"
  2876. @click="addTools(5, itemTaskIndex, toolIndex)"
  2877. >
  2878. <img
  2879. src="../../../assets/icon/checkNo.png"
  2880. alt
  2881. v-if="itemTool.tool.indexOf(5) == -1"
  2882. />
  2883. <img
  2884. src="../../../assets/icon/checkedIs.png"
  2885. alt
  2886. v-else
  2887. />
  2888. </div>
  2889. </div>-->
  2890. <div
  2891. class="tool"
  2892. :class="{
  2893. isToolChoose:
  2894. itemTool.tool.indexOf(4) != -1,
  2895. }"
  2896. @click="
  2897. addTools(4, itemTaskIndex, toolIndex)
  2898. "
  2899. >
  2900. <div
  2901. class="whiteBIcon"
  2902. @click.stop="
  2903. openTools(itemTaskIndex, 4, toolIndex)
  2904. "
  2905. >
  2906. <img
  2907. src="../../../assets/icon/thirdToolList/ask.png"
  2908. alt
  2909. />
  2910. <div style="margin: 5px 0">{{ lang.ssQuest }}</div>
  2911. </div>
  2912. <div class="noCTool">
  2913. <img
  2914. src="../../../assets/icon/new/isToolC.png"
  2915. alt=""
  2916. />
  2917. </div>
  2918. <div
  2919. class="isCTool"
  2920. v-if="itemTool.tool.indexOf(4) != -1"
  2921. >
  2922. <img
  2923. src="../../../assets/icon/new/isToolC.png"
  2924. alt=""
  2925. />
  2926. </div>
  2927. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2928. <img src="../../../assets/icon/checkNo.png" alt
  2929. v-if="itemTool.tool.indexOf(4) == -1" />
  2930. <div class="checkDiv" v-else>
  2931. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2932. </div>
  2933. </div> -->
  2934. </div>
  2935. <div
  2936. class="tool"
  2937. :class="{
  2938. isToolChoose:
  2939. itemTool.tool.indexOf(45) != -1,
  2940. }"
  2941. @click="
  2942. addTools(45, itemTaskIndex, toolIndex)
  2943. "
  2944. >
  2945. <div
  2946. class="whiteBIcon"
  2947. @click="
  2948. openTools(itemTaskIndex, 45, toolIndex)
  2949. "
  2950. >
  2951. <img
  2952. src="../../../assets/icon/thirdToolList/choose.png"
  2953. alt
  2954. />
  2955. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  2956. </div>
  2957. <div class="noCTool">
  2958. <img
  2959. src="../../../assets/icon/new/isToolC.png"
  2960. alt=""
  2961. />
  2962. </div>
  2963. <div
  2964. class="isCTool"
  2965. v-if="itemTool.tool.indexOf(45) != -1"
  2966. >
  2967. <img
  2968. src="../../../assets/icon/new/isToolC.png"
  2969. alt=""
  2970. />
  2971. </div>
  2972. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2973. <img src="../../../assets/icon/checkNo.png" alt
  2974. v-if="itemTool.tool.indexOf(45) == -1" />
  2975. <div class="checkDiv" v-else>
  2976. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2977. </div>
  2978. </div> -->
  2979. </div>
  2980. <div
  2981. class="tool"
  2982. :class="{
  2983. isToolChoose:
  2984. itemTool.tool.indexOf(15) != -1,
  2985. }"
  2986. @click="
  2987. addTools(15, itemTaskIndex, toolIndex)
  2988. "
  2989. >
  2990. <div
  2991. class="whiteBIcon"
  2992. @click.stop="
  2993. openTools(itemTaskIndex, 15, toolIndex)
  2994. "
  2995. >
  2996. <img
  2997. src="../../../assets/icon/thirdToolList/answer.png"
  2998. alt
  2999. />
  3000. <div style="margin: 5px 0">{{ lang.ssQA }}</div>
  3001. </div>
  3002. <div class="noCTool">
  3003. <img
  3004. src="../../../assets/icon/new/isToolC.png"
  3005. alt=""
  3006. />
  3007. </div>
  3008. <div
  3009. class="isCTool"
  3010. v-if="itemTool.tool.indexOf(15) != -1"
  3011. >
  3012. <img
  3013. src="../../../assets/icon/new/isToolC.png"
  3014. alt=""
  3015. />
  3016. </div>
  3017. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3018. <img src="../../../assets/icon/checkNo.png" alt
  3019. v-if="itemTool.tool.indexOf(15) == -1" />
  3020. <div class="checkDiv" v-else>
  3021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3022. </div>
  3023. </div> -->
  3024. </div>
  3025. <div
  3026. class="tool"
  3027. :class="{
  3028. isToolChoose:
  3029. itemTool.tool.indexOf(16) != -1,
  3030. }"
  3031. @click="
  3032. addTools(16, itemTaskIndex, toolIndex)
  3033. "
  3034. >
  3035. <div
  3036. class="whiteBIcon"
  3037. @click.stop="
  3038. addTools(16, itemTaskIndex, toolIndex)
  3039. "
  3040. >
  3041. <img
  3042. src="../../../assets/icon/thirdToolList/work.png"
  3043. alt
  3044. />
  3045. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  3046. </div>
  3047. <div class="noCTool">
  3048. <img
  3049. src="../../../assets/icon/new/isToolC.png"
  3050. alt=""
  3051. />
  3052. </div>
  3053. <div
  3054. class="isCTool"
  3055. v-if="itemTool.tool.indexOf(16) != -1"
  3056. >
  3057. <img
  3058. src="../../../assets/icon/new/isToolC.png"
  3059. alt=""
  3060. />
  3061. </div>
  3062. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3063. <img src="../../../assets/icon/checkNo.png" alt
  3064. v-if="itemTool.tool.indexOf(16) == -1" />
  3065. <div class="checkDiv" v-else>
  3066. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3067. </div>
  3068. </div> -->
  3069. </div>
  3070. <div
  3071. class="tool"
  3072. :class="{
  3073. isToolChoose:
  3074. itemTool.tool.indexOf(50) != -1,
  3075. }"
  3076. @click="
  3077. addTools(50, itemTaskIndex, toolIndex)
  3078. "
  3079. >
  3080. <div
  3081. class="whiteBIcon"
  3082. @click.stop="
  3083. addTools(50, itemTaskIndex, toolIndex)
  3084. "
  3085. >
  3086. <img
  3087. src="../../../assets/icon/thirdToolList/plwork.png"
  3088. alt
  3089. />
  3090. <div style="margin: 5px 0">{{ lang.ssBatchUp }}</div>
  3091. </div>
  3092. <div class="noCTool">
  3093. <img
  3094. src="../../../assets/icon/new/isToolC.png"
  3095. alt=""
  3096. />
  3097. </div>
  3098. <div
  3099. class="isCTool"
  3100. v-if="itemTool.tool.indexOf(50) != -1"
  3101. >
  3102. <img
  3103. src="../../../assets/icon/new/isToolC.png"
  3104. alt=""
  3105. />
  3106. </div>
  3107. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3108. <img src="../../../assets/icon/checkNo.png" alt
  3109. v-if="itemTool.tool.indexOf(50) == -1" />
  3110. <div class="checkDiv" v-else>
  3111. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3112. </div>
  3113. </div> -->
  3114. </div>
  3115. <!-- <div class="tool">
  3116. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3117. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3118. <div style="margin: 5px 0">个人评价</div>
  3119. </div>
  3120. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3121. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3122. <div class="checkDiv" v-else>
  3123. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3124. </div>
  3125. </div>
  3126. </div> -->
  3127. <div
  3128. class="tool"
  3129. :class="{
  3130. isToolChoose:
  3131. itemTool.tool.indexOf(41) != -1,
  3132. }"
  3133. @click="
  3134. addTools(41, itemTaskIndex, toolIndex)
  3135. "
  3136. >
  3137. <div
  3138. class="whiteBIcon"
  3139. @click.stop="
  3140. openTools(itemTaskIndex, 41, toolIndex)
  3141. "
  3142. >
  3143. <img
  3144. src="../../../assets/icon/thirdToolList/select.png"
  3145. alt
  3146. />
  3147. <div style="margin: 5px 0">{{ lang.ssSelMatch }}</div>
  3148. </div>
  3149. <div class="noCTool">
  3150. <img
  3151. src="../../../assets/icon/new/isToolC.png"
  3152. alt=""
  3153. />
  3154. </div>
  3155. <div
  3156. class="isCTool"
  3157. v-if="itemTool.tool.indexOf(41) != -1"
  3158. >
  3159. <img
  3160. src="../../../assets/icon/new/isToolC.png"
  3161. alt=""
  3162. />
  3163. </div>
  3164. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3165. <img src="../../../assets/icon/checkNo.png" alt
  3166. v-if="itemTool.tool.indexOf(41) == -1" />
  3167. <div class="checkDiv" v-else>
  3168. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3169. </div>
  3170. </div> -->
  3171. </div>
  3172. <div
  3173. class="tool"
  3174. :class="{
  3175. isToolChoose:
  3176. itemTool.tool.indexOf(47) != -1,
  3177. }"
  3178. @click="
  3179. addTools(47, itemTaskIndex, toolIndex)
  3180. "
  3181. >
  3182. <div
  3183. class="whiteBIcon"
  3184. @click.stop="
  3185. openTools(itemTaskIndex, 47, toolIndex)
  3186. "
  3187. >
  3188. <img
  3189. src="../../../assets/icon/fourthToolList/conSentences.png"
  3190. alt
  3191. />
  3192. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  3193. </div>
  3194. <div class="noCTool">
  3195. <img
  3196. src="../../../assets/icon/new/isToolC.png"
  3197. alt=""
  3198. />
  3199. </div>
  3200. <div
  3201. class="isCTool"
  3202. v-if="itemTool.tool.indexOf(47) != -1"
  3203. >
  3204. <img
  3205. src="../../../assets/icon/new/isToolC.png"
  3206. alt=""
  3207. />
  3208. </div>
  3209. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3210. <img src="../../../assets/icon/checkNo.png" alt
  3211. v-if="itemTool.tool.indexOf(47) == -1" />
  3212. <div class="checkDiv" v-else>
  3213. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3214. </div>
  3215. </div> -->
  3216. </div>
  3217. <!-- <div class="tool">
  3218. <div
  3219. class="whiteBIcon"
  3220. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3221. >
  3222. <img
  3223. src="../../../assets/icon/thirdToolList/mp3.png"
  3224. alt
  3225. />
  3226. <div style="margin: 5px 0">上传音频</div>
  3227. </div>
  3228. <div
  3229. class="check"
  3230. @click="addTools(42, itemTaskIndex, toolIndex)"
  3231. >
  3232. <img
  3233. src="../../../assets/icon/checkNo.png"
  3234. alt
  3235. v-if="itemTool.tool.indexOf(42) == -1"
  3236. />
  3237. <img
  3238. src="../../../assets/icon/checkedIs.png"
  3239. alt
  3240. v-else
  3241. />
  3242. </div>
  3243. </div> -->
  3244. </div>
  3245. <div
  3246. class="toolSort"
  3247. v-if="itemTool.toolType == 3"
  3248. >
  3249. <div
  3250. class="tool"
  3251. :class="{
  3252. isToolChoose:
  3253. itemTool.tool.indexOf(18) != -1,
  3254. }"
  3255. @click="
  3256. addTools(18, itemTaskIndex, toolIndex)
  3257. "
  3258. >
  3259. <div
  3260. class="whiteBIcon"
  3261. @click.stop="
  3262. addTools(18, itemTaskIndex, toolIndex)
  3263. "
  3264. >
  3265. <img
  3266. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3267. alt
  3268. />
  3269. <div style="margin: 5px 0">{{ lang.ssTrainPlat }}</div>
  3270. </div>
  3271. <div class="noCTool">
  3272. <img
  3273. src="../../../assets/icon/new/isToolC.png"
  3274. alt=""
  3275. />
  3276. </div>
  3277. <div
  3278. class="isCTool"
  3279. v-if="itemTool.tool.indexOf(18) != -1"
  3280. >
  3281. <img
  3282. src="../../../assets/icon/new/isToolC.png"
  3283. alt=""
  3284. />
  3285. </div>
  3286. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3287. <img src="../../../assets/icon/checkNo.png" alt
  3288. v-if="itemTool.tool.indexOf(18) == -1" />
  3289. <div class="checkDiv" v-else>
  3290. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3291. </div>
  3292. </div> -->
  3293. </div>
  3294. <div
  3295. class="tool"
  3296. :class="{
  3297. isToolChoose:
  3298. itemTool.tool.indexOf(21) != -1,
  3299. }"
  3300. @click="
  3301. addTools(21, itemTaskIndex, toolIndex)
  3302. "
  3303. >
  3304. <div
  3305. class="whiteBIcon"
  3306. @click.stop="
  3307. addTools(21, itemTaskIndex, toolIndex)
  3308. "
  3309. >
  3310. <img
  3311. src="../../../assets/icon/fourthToolList/program.png"
  3312. alt
  3313. />
  3314. <div style="margin: 5px 0">
  3315. {{ lang.ssAiotBlockly }}
  3316. </div>
  3317. </div>
  3318. <div class="noCTool">
  3319. <img
  3320. src="../../../assets/icon/new/isToolC.png"
  3321. alt=""
  3322. />
  3323. </div>
  3324. <div
  3325. class="isCTool"
  3326. v-if="itemTool.tool.indexOf(21) != -1"
  3327. >
  3328. <img
  3329. src="../../../assets/icon/new/isToolC.png"
  3330. alt=""
  3331. />
  3332. </div>
  3333. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3334. <img src="../../../assets/icon/checkNo.png" alt
  3335. v-if="itemTool.tool.indexOf(21) == -1" />
  3336. <div class="checkDiv" v-else>
  3337. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3338. </div>
  3339. </div> -->
  3340. </div>
  3341. <!-- <div class="tool">
  3342. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3343. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3344. <div style="margin: 5px 0">AI体验</div>
  3345. </div>
  3346. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3347. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3348. <div class="checkDiv" v-else>
  3349. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3350. </div>
  3351. </div>
  3352. </div> -->
  3353. <div
  3354. class="tool"
  3355. :class="{
  3356. isToolChoose:
  3357. itemTool.tool.indexOf(23) != -1,
  3358. }"
  3359. @click="
  3360. addTools(23, itemTaskIndex, toolIndex)
  3361. "
  3362. >
  3363. <div
  3364. class="whiteBIcon"
  3365. @click.stop="
  3366. addTools(23, itemTaskIndex, toolIndex)
  3367. "
  3368. >
  3369. <img
  3370. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3371. alt
  3372. />
  3373. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  3374. </div>
  3375. <div class="noCTool">
  3376. <img
  3377. src="../../../assets/icon/new/isToolC.png"
  3378. alt=""
  3379. />
  3380. </div>
  3381. <div
  3382. class="isCTool"
  3383. v-if="itemTool.tool.indexOf(23) != -1"
  3384. >
  3385. <img
  3386. src="../../../assets/icon/new/isToolC.png"
  3387. alt=""
  3388. />
  3389. </div>
  3390. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3391. <img src="../../../assets/icon/checkNo.png" alt
  3392. v-if="itemTool.tool.indexOf(23) == -1" />
  3393. <div class="checkDiv" v-else>
  3394. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3395. </div>
  3396. </div> -->
  3397. </div>
  3398. <div
  3399. class="tool"
  3400. :class="{
  3401. isToolChoose:
  3402. itemTool.tool.indexOf(24) != -1,
  3403. }"
  3404. @click="
  3405. addTools(24, itemTaskIndex, toolIndex)
  3406. "
  3407. >
  3408. <div
  3409. class="whiteBIcon"
  3410. @click.stop="
  3411. addTools(24, itemTaskIndex, toolIndex)
  3412. "
  3413. >
  3414. <img
  3415. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3416. alt
  3417. />
  3418. <div style="margin: 5px 0">
  3419. {{ lang.ssAiBlockly }}
  3420. </div>
  3421. </div>
  3422. <div class="noCTool">
  3423. <img
  3424. src="../../../assets/icon/new/isToolC.png"
  3425. alt=""
  3426. />
  3427. </div>
  3428. <div
  3429. class="isCTool"
  3430. v-if="itemTool.tool.indexOf(24) != -1"
  3431. >
  3432. <img
  3433. src="../../../assets/icon/new/isToolC.png"
  3434. alt=""
  3435. />
  3436. </div>
  3437. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3438. <img src="../../../assets/icon/checkNo.png" alt
  3439. v-if="itemTool.tool.indexOf(24) == -1" />
  3440. <div class="checkDiv" v-else>
  3441. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3442. </div>
  3443. </div> -->
  3444. </div>
  3445. <div
  3446. class="tool"
  3447. :class="{
  3448. isToolChoose:
  3449. itemTool.tool.indexOf(32) != -1,
  3450. }"
  3451. @click="
  3452. addTools(32, itemTaskIndex, toolIndex)
  3453. "
  3454. >
  3455. <div
  3456. class="whiteBIcon"
  3457. @click.stop="
  3458. addTools(32, itemTaskIndex, toolIndex)
  3459. "
  3460. >
  3461. <img
  3462. src="../../../assets/icon/thirdToolList/code.png"
  3463. alt
  3464. />
  3465. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  3466. </div>
  3467. <div class="noCTool">
  3468. <img
  3469. src="../../../assets/icon/new/isToolC.png"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div
  3474. class="isCTool"
  3475. v-if="itemTool.tool.indexOf(32) != -1"
  3476. >
  3477. <img
  3478. src="../../../assets/icon/new/isToolC.png"
  3479. alt=""
  3480. />
  3481. </div>
  3482. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3483. <img src="../../../assets/icon/checkNo.png" alt
  3484. v-if="itemTool.tool.indexOf(32) == -1" />
  3485. <div class="checkDiv" v-else>
  3486. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3487. </div>
  3488. </div> -->
  3489. </div>
  3490. <div
  3491. class="tool"
  3492. :class="{
  3493. isToolChoose:
  3494. itemTool.tool.indexOf(57) != -1,
  3495. }"
  3496. @click="
  3497. addTools(57, itemTaskIndex, toolIndex)
  3498. "
  3499. >
  3500. <div
  3501. class="whiteBIcon"
  3502. @click.stop="
  3503. openTools(itemTaskIndex, 57, toolIndex)
  3504. "
  3505. >
  3506. <img
  3507. src="../../../assets/icon/fourthToolList/cocopi.png"
  3508. alt
  3509. />
  3510. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  3511. </div>
  3512. <div class="noCTool">
  3513. <img
  3514. src="../../../assets/icon/new/isToolC.png"
  3515. alt=""
  3516. />
  3517. </div>
  3518. <div
  3519. class="isCTool"
  3520. v-if="itemTool.tool.indexOf(57) != -1"
  3521. >
  3522. <img
  3523. src="../../../assets/icon/new/isToolC.png"
  3524. alt=""
  3525. />
  3526. </div>
  3527. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3528. <img src="../../../assets/icon/checkNo.png" alt
  3529. v-if="itemTool.tool.indexOf(57) == -1" />
  3530. <div class="checkDiv" v-else>
  3531. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3532. </div>
  3533. </div> -->
  3534. </div>
  3535. <div
  3536. class="tool"
  3537. :class="{
  3538. isToolChoose:
  3539. itemTool.tool.indexOf(63) != -1,
  3540. }"
  3541. @click="
  3542. addTools(63, itemTaskIndex, toolIndex)
  3543. "
  3544. >
  3545. <div
  3546. class="whiteBIcon"
  3547. @click.stop="
  3548. addTools(63, itemTaskIndex, toolIndex)
  3549. "
  3550. >
  3551. <img
  3552. src="../../../assets/icon/fourthToolList/Wood.png"
  3553. alt
  3554. />
  3555. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  3556. </div>
  3557. <div class="noCTool">
  3558. <img
  3559. src="../../../assets/icon/new/isToolC.png"
  3560. alt=""
  3561. />
  3562. </div>
  3563. <div
  3564. class="isCTool"
  3565. v-if="itemTool.tool.indexOf(63) != -1"
  3566. >
  3567. <img
  3568. src="../../../assets/icon/new/isToolC.png"
  3569. alt=""
  3570. />
  3571. </div>
  3572. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3573. <img src="../../../assets/icon/checkNo.png" alt
  3574. v-if="itemTool.tool.indexOf(63) == -1" />
  3575. <div class="checkDiv" v-else>
  3576. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3577. </div>
  3578. </div> -->
  3579. </div>
  3580. <!-- <div
  3581. class="tool"
  3582. :class="{
  3583. isToolChoose:
  3584. itemTool.tool.indexOf(71) != -1,
  3585. }"
  3586. @click="
  3587. addTools(71, itemTaskIndex, toolIndex)
  3588. "
  3589. >
  3590. <div
  3591. class="whiteBIcon"
  3592. @click.stop="
  3593. addTools(71, itemTaskIndex, toolIndex)
  3594. "
  3595. >
  3596. <img
  3597. src="../../../assets/icon/fourthToolList/chatgpt.png"
  3598. alt
  3599. />
  3600. <div style="margin: 5px 0">AI智能体</div>
  3601. </div>
  3602. <div class="noCTool">
  3603. <img
  3604. src="../../../assets/icon/new/isToolC.png"
  3605. alt=""
  3606. />
  3607. </div>
  3608. <div
  3609. class="isCTool"
  3610. v-if="itemTool.tool.indexOf(71) != -1"
  3611. >
  3612. <img
  3613. src="../../../assets/icon/new/isToolC.png"
  3614. alt=""
  3615. />
  3616. </div>
  3617. </div> -->
  3618. </div>
  3619. <div
  3620. class="toolSort"
  3621. v-if="itemTool.toolType == 7"
  3622. >
  3623. <div
  3624. class="tool"
  3625. :class="{
  3626. isToolChoose:
  3627. itemTool.tool.indexOf(40) != -1,
  3628. }"
  3629. @click.stop="
  3630. addTools(40, itemTaskIndex, toolIndex)
  3631. "
  3632. >
  3633. <div
  3634. class="whiteBIcon"
  3635. @click.stop="
  3636. openTools(itemTaskIndex, 40, toolIndex)
  3637. "
  3638. >
  3639. <img
  3640. src="../../../assets/icon/thirdToolList/eval.png"
  3641. alt
  3642. />
  3643. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  3644. </div>
  3645. <div class="noCTool">
  3646. <img
  3647. src="../../../assets/icon/new/isToolC.png"
  3648. alt=""
  3649. />
  3650. </div>
  3651. <div
  3652. class="isCTool"
  3653. v-if="itemTool.tool.indexOf(40) != -1"
  3654. >
  3655. <img
  3656. src="../../../assets/icon/new/isToolC.png"
  3657. alt=""
  3658. />
  3659. </div>
  3660. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3661. <img src="../../../assets/icon/checkNo.png" alt
  3662. v-if="itemTool.tool.indexOf(40) == -1" />
  3663. <div class="checkDiv" v-else>
  3664. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3665. </div>
  3666. </div> -->
  3667. </div>
  3668. </div>
  3669. <div
  3670. class="toolSort"
  3671. v-if="itemTool.toolType == 5"
  3672. >
  3673. <div
  3674. class="tool"
  3675. :class="{
  3676. isToolChoose:
  3677. itemTool.tool.indexOf(28) != -1,
  3678. }"
  3679. @click="
  3680. addTools(28, itemTaskIndex, toolIndex)
  3681. "
  3682. >
  3683. <div
  3684. class="whiteBIcon"
  3685. @click.stop="
  3686. addTools(28, itemTaskIndex, toolIndex)
  3687. "
  3688. >
  3689. <img
  3690. src="../../../assets/icon/secondToolList/translation.png"
  3691. alt
  3692. />
  3693. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  3694. </div>
  3695. <div class="noCTool">
  3696. <img
  3697. src="../../../assets/icon/new/isToolC.png"
  3698. alt=""
  3699. />
  3700. </div>
  3701. <div
  3702. class="isCTool"
  3703. v-if="itemTool.tool.indexOf(28) != -1"
  3704. >
  3705. <img
  3706. src="../../../assets/icon/new/isToolC.png"
  3707. alt=""
  3708. />
  3709. </div>
  3710. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3711. <img src="../../../assets/icon/checkNo.png" alt
  3712. v-if="itemTool.tool.indexOf(28) == -1" />
  3713. <div class="checkDiv" v-else>
  3714. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3715. </div>
  3716. </div> -->
  3717. </div>
  3718. <div
  3719. class="tool"
  3720. :class="{
  3721. isToolChoose:
  3722. itemTool.tool.indexOf(31) != -1,
  3723. }"
  3724. @click="
  3725. addTools(31, itemTaskIndex, toolIndex)
  3726. "
  3727. >
  3728. <div
  3729. class="whiteBIcon"
  3730. @click.stop="
  3731. addTools(31, itemTaskIndex, toolIndex)
  3732. "
  3733. >
  3734. <img
  3735. src="../../../assets/icon/secondToolList/networkPanel.png"
  3736. alt
  3737. />
  3738. <div style="margin: 5px 0">{{ lang.ssDigital }}</div>
  3739. </div>
  3740. <div class="noCTool">
  3741. <img
  3742. src="../../../assets/icon/new/isToolC.png"
  3743. alt=""
  3744. />
  3745. </div>
  3746. <div
  3747. class="isCTool"
  3748. v-if="itemTool.tool.indexOf(31) != -1"
  3749. >
  3750. <img
  3751. src="../../../assets/icon/new/isToolC.png"
  3752. alt=""
  3753. />
  3754. </div>
  3755. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3756. <img src="../../../assets/icon/checkNo.png" alt
  3757. v-if="itemTool.tool.indexOf(31) == -1" />
  3758. <div class="checkDiv" v-else>
  3759. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3760. </div>
  3761. </div> -->
  3762. </div>
  3763. <div
  3764. class="tool"
  3765. :class="{
  3766. isToolChoose:
  3767. itemTool.tool.indexOf(39) != -1,
  3768. }"
  3769. @click="
  3770. addTools(39, itemTaskIndex, toolIndex)
  3771. "
  3772. >
  3773. <div
  3774. class="whiteBIcon"
  3775. @click.stop="
  3776. addTools(39, itemTaskIndex, toolIndex)
  3777. "
  3778. >
  3779. <img
  3780. src="../../../assets/icon/secondToolList/GeoGebra.png"
  3781. alt
  3782. />
  3783. <div style="margin: 5px 0">GeoGebra</div>
  3784. </div>
  3785. <div class="noCTool">
  3786. <img
  3787. src="../../../assets/icon/new/isToolC.png"
  3788. alt=""
  3789. />
  3790. </div>
  3791. <div
  3792. class="isCTool"
  3793. v-if="itemTool.tool.indexOf(39) != -1"
  3794. >
  3795. <img
  3796. src="../../../assets/icon/new/isToolC.png"
  3797. alt=""
  3798. />
  3799. </div>
  3800. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3801. <img src="../../../assets/icon/checkNo.png" alt
  3802. v-if="itemTool.tool.indexOf(39) == -1" />
  3803. <div class="checkDiv" v-else>
  3804. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3805. </div>
  3806. </div> -->
  3807. </div>
  3808. <div
  3809. class="tool"
  3810. :class="{
  3811. isToolChoose:
  3812. itemTool.tool.indexOf(66) != -1,
  3813. }"
  3814. @click="
  3815. addTools(66, itemTaskIndex, toolIndex)
  3816. "
  3817. >
  3818. <div
  3819. class="whiteBIcon"
  3820. @click.stop="
  3821. addTools(66, itemTaskIndex, toolIndex)
  3822. "
  3823. >
  3824. <img
  3825. src="../../../assets/icon/secondToolList/formulaEdi.png"
  3826. alt
  3827. />
  3828. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  3829. </div>
  3830. <div class="noCTool">
  3831. <img
  3832. src="../../../assets/icon/new/isToolC.png"
  3833. alt=""
  3834. />
  3835. </div>
  3836. <div
  3837. class="isCTool"
  3838. v-if="itemTool.tool.indexOf(66) != -1"
  3839. >
  3840. <img
  3841. src="../../../assets/icon/new/isToolC.png"
  3842. alt=""
  3843. />
  3844. </div>
  3845. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3846. <img src="../../../assets/icon/checkNo.png" alt
  3847. v-if="itemTool.tool.indexOf(66) == -1" />
  3848. <div class="checkDiv" v-else>
  3849. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3850. </div>
  3851. </div> -->
  3852. </div>
  3853. <!-- <div class="tool">
  3854. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3855. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3856. <div style="margin: 5px 0">分子结构</div>
  3857. </div>
  3858. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3859. <img src="../../../assets/icon/checkNo.png" alt
  3860. v-if="itemTool.tool.indexOf(67) == -1" />
  3861. <div class="checkDiv" v-else>
  3862. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3863. </div>
  3864. </div>
  3865. </div> -->
  3866. <!-- <div
  3867. class="tool"
  3868. :class="{
  3869. isToolChoose:
  3870. itemTool.tool.indexOf(68) != -1,
  3871. }"
  3872. @click="
  3873. addTools(68, itemTaskIndex, toolIndex)
  3874. "
  3875. >
  3876. <div
  3877. class="whiteBIcon"
  3878. @click.stop="
  3879. addTools(68, itemTaskIndex, toolIndex)
  3880. "
  3881. >
  3882. <img
  3883. src="../../../assets/icon/secondToolList/timeAxis.png"
  3884. alt
  3885. />
  3886. <div style="margin: 5px 0">时间轴</div>
  3887. </div>
  3888. <div class="noCTool">
  3889. <img
  3890. src="../../../assets/icon/new/isToolC.png"
  3891. alt=""
  3892. />
  3893. </div>
  3894. <div
  3895. class="isCTool"
  3896. v-if="itemTool.tool.indexOf(68) != -1"
  3897. >
  3898. <img
  3899. src="../../../assets/icon/new/isToolC.png"
  3900. alt=""
  3901. />
  3902. </div> -->
  3903. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3904. <img src="../../../assets/icon/checkNo.png" alt
  3905. v-if="itemTool.tool.indexOf(68) == -1" />
  3906. <div class="checkDiv" v-else>
  3907. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3908. </div>
  3909. </div> -->
  3910. <!-- </div> -->
  3911. <div
  3912. class="tool"
  3913. :class="{
  3914. isToolChoose:
  3915. itemTool.tool.indexOf(69) != -1,
  3916. }"
  3917. @click="
  3918. addTools(69, itemTaskIndex, toolIndex)
  3919. "
  3920. >
  3921. <div
  3922. class="whiteBIcon"
  3923. @click.stop="
  3924. openTools(itemTaskIndex, 69, toolIndex)
  3925. "
  3926. >
  3927. <img
  3928. src="../../../assets/icon/thirdToolList/english.png"
  3929. alt
  3930. />
  3931. <div style="margin: 5px 0">{{ lang.ssEngWrite }}</div>
  3932. </div>
  3933. <div class="noCTool">
  3934. <img
  3935. src="../../../assets/icon/new/isToolC.png"
  3936. alt=""
  3937. />
  3938. </div>
  3939. <div
  3940. class="isCTool"
  3941. v-if="itemTool.tool.indexOf(69) != -1"
  3942. >
  3943. <img
  3944. src="../../../assets/icon/new/isToolC.png"
  3945. alt=""
  3946. />
  3947. </div>
  3948. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3949. <img src="../../../assets/icon/checkNo.png" alt
  3950. v-if="itemTool.tool.indexOf(4) == -1" />
  3951. <div class="checkDiv" v-else>
  3952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3953. </div>
  3954. </div> -->
  3955. </div>
  3956. <div
  3957. class="tool"
  3958. :class="{
  3959. isToolChoose:
  3960. itemTool.tool.indexOf(70) != -1,
  3961. }"
  3962. @click="
  3963. addTools(70, itemTaskIndex, toolIndex)
  3964. "
  3965. >
  3966. <div
  3967. class="whiteBIcon"
  3968. @click.stop="
  3969. openTools(itemTaskIndex, 70, toolIndex)
  3970. "
  3971. >
  3972. <img
  3973. src="../../../assets/icon/thirdToolList/englishVoice.png"
  3974. alt
  3975. />
  3976. <div style="margin: 5px 0">{{ lang.ssEngSpeak }}</div>
  3977. </div>
  3978. <div class="noCTool">
  3979. <img
  3980. src="../../../assets/icon/new/isToolC.png"
  3981. alt=""
  3982. />
  3983. </div>
  3984. <div
  3985. class="isCTool"
  3986. v-if="itemTool.tool.indexOf(70) != -1"
  3987. >
  3988. <img
  3989. src="../../../assets/icon/new/isToolC.png"
  3990. alt=""
  3991. />
  3992. </div>
  3993. </div>
  3994. <!-- <div class="tool">
  3995. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3996. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3997. <div style="margin: 5px 0">翻译</div>
  3998. </div>
  3999. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  4000. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  4001. <div class="checkDiv" v-else>
  4002. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4003. </div>
  4004. </div>
  4005. </div>
  4006. <div class="tool">
  4007. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  4008. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  4009. <div style="margin: 5px 0">魔盒识字</div>
  4010. </div>
  4011. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  4012. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  4013. <div class="checkDiv" v-else>
  4014. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4015. </div>
  4016. </div>
  4017. </div>
  4018. <div class="tool">
  4019. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  4020. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  4021. <div style="margin: 5px 0">24点</div>
  4022. </div>
  4023. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  4024. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  4025. <div class="checkDiv" v-else>
  4026. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4027. </div>
  4028. </div>
  4029. </div>
  4030. <div class="tool">
  4031. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  4032. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4033. <div style="margin: 5px 0">数学画板</div>
  4034. </div>
  4035. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  4036. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  4037. <div class="checkDiv" v-else>
  4038. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4039. </div>
  4040. </div>
  4041. </div>
  4042. <div class="tool">
  4043. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  4044. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  4045. <div style="margin: 5px 0">GeoGebra</div>
  4046. </div>
  4047. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  4048. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  4049. <div class="checkDiv" v-else>
  4050. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4051. </div>
  4052. </div>
  4053. </div>
  4054. <div class="tool">
  4055. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  4056. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  4057. <div style="margin: 5px 0">模拟驾驶</div>
  4058. </div>
  4059. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  4060. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  4061. <div class="checkDiv" v-else>
  4062. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4063. </div>
  4064. </div>
  4065. </div>
  4066. <div class="tool">
  4067. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  4068. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  4069. <div style="margin: 5px 0">路径搜索</div>
  4070. </div>
  4071. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  4072. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  4073. <div class="checkDiv" v-else>
  4074. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4075. </div>
  4076. </div>
  4077. </div>
  4078. <div class="tool">
  4079. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  4080. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  4081. <div style="margin: 5px 0">深度学习</div>
  4082. </div>
  4083. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  4084. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  4085. <div class="checkDiv" v-else>
  4086. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4087. </div>
  4088. </div>
  4089. </div>
  4090. <div class="tool">
  4091. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  4092. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  4093. <div style="margin: 5px 0">全历史</div>
  4094. </div>
  4095. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  4096. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  4097. <div class="checkDiv" v-else>
  4098. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4099. </div>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div class="toolSort" v-if="itemTool.toolType == 4">
  4104. <div class="tool">
  4105. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  4106. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  4107. <div style="margin: 5px 0">课程设计</div>
  4108. </div>
  4109. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  4110. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  4111. <div class="checkDiv" v-else>
  4112. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4113. </div>
  4114. </div>
  4115. </div>
  4116. <div class="tool">
  4117. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  4118. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  4119. <div style="margin: 5px 0">目标管理</div>
  4120. </div>
  4121. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  4122. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  4123. <div class="checkDiv" v-else>
  4124. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4125. </div>
  4126. </div>
  4127. </div> -->
  4128. <!-- <div class="tool">
  4129. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4130. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4131. <div style="margin: 5px 0">汉字宫</div>
  4132. </div>
  4133. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4134. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4135. <div class="checkDiv" v-else>
  4136. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4137. </div>
  4138. </div>
  4139. </div> -->
  4140. </div>
  4141. </div>
  4142. <!-- v-show="!itemTool.isFold3" -->
  4143. <div>
  4144. <textarea
  4145. rows="2"
  4146. v-autoHeight="70"
  4147. type="text"
  4148. :placeholder="lang.ssAddToolDesc"
  4149. class="binfo_input"
  4150. style="
  4151. margin: 0 0 20px 0;
  4152. width: 100% !important;
  4153. "
  4154. v-model="itemTool.toolDetail"
  4155. ></textarea>
  4156. </div>
  4157. </div>
  4158. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  4159. <div class="addToolImg">
  4160. <img src="../../../assets/icon/add.png" alt />
  4161. </div>
  4162. <div>添加工具</div>
  4163. </div> -->
  4164. <button
  4165. class="c_pub_button_add pub_btn_tool_img"
  4166. @click="addToolFun(itemTaskIndex)"
  4167. style="
  4168. margin: 0 auto;
  4169. padding: 0 30px;
  4170. height: 45px;
  4171. "
  4172. >
  4173. {{ lang.ssAddTool }}
  4174. </button>
  4175. </div>
  4176. </div>
  4177. <div
  4178. v-else-if="
  4179. unitJson[unitIndex].easy == 2 ||
  4180. unitJson[unitIndex].easy == 4
  4181. "
  4182. class="toolChoose"
  4183. style="padding: 0 0 40px"
  4184. >
  4185. <div class="tools">
  4186. <div
  4187. class="leftTools"
  4188. style="width: 100%"
  4189. v-for="(
  4190. itemTool, toolIndex
  4191. ) in itemTask.toolChoose"
  4192. :key="toolIndex"
  4193. >
  4194. <div>
  4195. <textarea
  4196. rows="3"
  4197. type="text"
  4198. :placeholder="lang.ssAddToolDesc"
  4199. class="binfo_input"
  4200. style="
  4201. margin: 0 0 20px 0;
  4202. width: 100% !important;
  4203. "
  4204. v-model="itemTool.toolDetail"
  4205. ></textarea>
  4206. </div>
  4207. <div
  4208. style="
  4209. display: flex;
  4210. flex-direction: row;
  4211. align-items: baseline;
  4212. flex-wrap: nowrap;
  4213. justify-content: flex-start;
  4214. position: relative;
  4215. "
  4216. >
  4217. <div
  4218. style="margin-right: 20px; font-weight: bold"
  4219. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4220. >
  4221. {{ lang.ssTool.replace(/\*/g, (toolIndex + 1)) }}:
  4222. </div>
  4223. <div
  4224. class="remove"
  4225. @click="deleteTool(itemTaskIndex, toolIndex)"
  4226. v-if="itemTask.toolChoose.length > 1"
  4227. style="right: 0"
  4228. ></div>
  4229. </div>
  4230. <div style="min-height: 163px">
  4231. <div class="toolSort">
  4232. <div class="tool">
  4233. <div
  4234. class="whiteBIcon"
  4235. @click="
  4236. openTools(itemTaskIndex, 1, toolIndex)
  4237. "
  4238. >
  4239. <img
  4240. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4241. alt
  4242. />
  4243. <div style="margin: 5px 0">{{ lang.ssEWhite }}</div>
  4244. </div>
  4245. <div
  4246. class="check"
  4247. @click="
  4248. addTools(1, itemTaskIndex, toolIndex)
  4249. "
  4250. >
  4251. <img
  4252. src="../../../assets/icon/checkNo.png"
  4253. alt
  4254. v-if="itemTool.tool.indexOf(1) == -1"
  4255. />
  4256. <div class="checkDiv" v-else>
  4257. <img
  4258. src="../../../assets/icon/checkedIs.png"
  4259. alt
  4260. /><span>{{ lang.Selected }}</span>
  4261. </div>
  4262. </div>
  4263. </div>
  4264. <div class="tool">
  4265. <div
  4266. class="whiteBIcon"
  4267. @click="
  4268. openTools(itemTaskIndex, 52, toolIndex)
  4269. "
  4270. >
  4271. <img
  4272. src="../../../assets/icon/fourthToolList/text.png"
  4273. alt
  4274. />
  4275. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  4276. </div>
  4277. <div
  4278. class="check"
  4279. @click="
  4280. addTools(52, itemTaskIndex, toolIndex)
  4281. "
  4282. >
  4283. <img
  4284. src="../../../assets/icon/checkNo.png"
  4285. alt
  4286. v-if="itemTool.tool.indexOf(52) == -1"
  4287. />
  4288. <div class="checkDiv" v-else>
  4289. <img
  4290. src="../../../assets/icon/checkedIs.png"
  4291. alt
  4292. /><span>{{ lang.Selected }}</span>
  4293. </div>
  4294. </div>
  4295. </div>
  4296. <div class="tool">
  4297. <div
  4298. class="whiteBIcon"
  4299. @click="
  4300. openTools(itemTaskIndex, 3, toolIndex)
  4301. "
  4302. >
  4303. <img
  4304. src="../../../assets/icon/secondToolList/mindMapping.png"
  4305. alt
  4306. />
  4307. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  4308. </div>
  4309. <div
  4310. class="check"
  4311. @click="
  4312. addTools(3, itemTaskIndex, toolIndex)
  4313. "
  4314. >
  4315. <img
  4316. src="../../../assets/icon/checkNo.png"
  4317. alt
  4318. v-if="itemTool.tool.indexOf(3) == -1"
  4319. />
  4320. <div class="checkDiv" v-else>
  4321. <img
  4322. src="../../../assets/icon/checkedIs.png"
  4323. alt
  4324. /><span>{{ lang.Selected }}</span>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. <div class="tool">
  4329. <div
  4330. class="whiteBIcon"
  4331. @click="
  4332. openTools(itemTaskIndex, 4, toolIndex)
  4333. "
  4334. >
  4335. <img
  4336. src="../../../assets/icon/thirdToolList/ask.png"
  4337. alt
  4338. />
  4339. <div style="margin: 5px 0">{{ lang.ssQuest }}</div>
  4340. </div>
  4341. <div
  4342. class="check"
  4343. @click="
  4344. addTools(4, itemTaskIndex, toolIndex)
  4345. "
  4346. >
  4347. <img
  4348. src="../../../assets/icon/checkNo.png"
  4349. alt
  4350. v-if="itemTool.tool.indexOf(4) == -1"
  4351. />
  4352. <div class="checkDiv" v-else>
  4353. <img
  4354. src="../../../assets/icon/checkedIs.png"
  4355. alt
  4356. /><span>{{ lang.Selected }}</span>
  4357. </div>
  4358. </div>
  4359. </div>
  4360. <div class="tool">
  4361. <div
  4362. class="whiteBIcon"
  4363. @click="
  4364. openTools(itemTaskIndex, 45, toolIndex)
  4365. "
  4366. >
  4367. <img
  4368. src="../../../assets/icon/thirdToolList/choose.png"
  4369. alt
  4370. />
  4371. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  4372. </div>
  4373. <div
  4374. class="check"
  4375. @click="
  4376. addTools(45, itemTaskIndex, toolIndex)
  4377. "
  4378. >
  4379. <img
  4380. src="../../../assets/icon/checkNo.png"
  4381. alt
  4382. v-if="itemTool.tool.indexOf(45) == -1"
  4383. />
  4384. <div class="checkDiv" v-else>
  4385. <img
  4386. src="../../../assets/icon/checkedIs.png"
  4387. alt
  4388. /><span>{{ lang.Selected }}</span>
  4389. </div>
  4390. </div>
  4391. </div>
  4392. <div class="tool">
  4393. <div
  4394. class="whiteBIcon"
  4395. @click="
  4396. openTools(itemTaskIndex, 15, toolIndex)
  4397. "
  4398. >
  4399. <img
  4400. src="../../../assets/icon/thirdToolList/answer.png"
  4401. alt
  4402. />
  4403. <div style="margin: 5px 0">{{ lang.ssQA }}</div>
  4404. </div>
  4405. <div
  4406. class="check"
  4407. @click="
  4408. addTools(15, itemTaskIndex, toolIndex)
  4409. "
  4410. >
  4411. <img
  4412. src="../../../assets/icon/checkNo.png"
  4413. alt
  4414. v-if="itemTool.tool.indexOf(15) == -1"
  4415. />
  4416. <div class="checkDiv" v-else>
  4417. <img
  4418. src="../../../assets/icon/checkedIs.png"
  4419. alt
  4420. /><span>{{ lang.Selected }}</span>
  4421. </div>
  4422. </div>
  4423. </div>
  4424. <div class="tool">
  4425. <div
  4426. class="whiteBIcon"
  4427. @click="
  4428. addTools(16, itemTaskIndex, toolIndex)
  4429. "
  4430. >
  4431. <img
  4432. src="../../../assets/icon/thirdToolList/work.png"
  4433. alt
  4434. />
  4435. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  4436. </div>
  4437. <div
  4438. class="check"
  4439. @click="
  4440. addTools(16, itemTaskIndex, toolIndex)
  4441. "
  4442. >
  4443. <img
  4444. src="../../../assets/icon/checkNo.png"
  4445. alt
  4446. v-if="itemTool.tool.indexOf(16) == -1"
  4447. />
  4448. <div class="checkDiv" v-else>
  4449. <img
  4450. src="../../../assets/icon/checkedIs.png"
  4451. alt
  4452. /><span>{{ lang.Selected }}</span>
  4453. </div>
  4454. </div>
  4455. </div>
  4456. <div class="tool">
  4457. <div
  4458. class="whiteBIcon"
  4459. @click="
  4460. openTools(itemTaskIndex, 50, toolIndex)
  4461. "
  4462. >
  4463. <img
  4464. src="../../../assets/icon/thirdToolList/plwork.png"
  4465. alt
  4466. />
  4467. <div style="margin: 5px 0">{{ lang.ssBatchUp }}</div>
  4468. </div>
  4469. <div
  4470. class="check"
  4471. @click="
  4472. addTools(50, itemTaskIndex, toolIndex)
  4473. "
  4474. >
  4475. <img
  4476. src="../../../assets/icon/checkNo.png"
  4477. alt
  4478. v-if="itemTool.tool.indexOf(50) == -1"
  4479. />
  4480. <div class="checkDiv" v-else>
  4481. <img
  4482. src="../../../assets/icon/checkedIs.png"
  4483. alt
  4484. /><span>{{ lang.Selected }}</span>
  4485. </div>
  4486. </div>
  4487. </div>
  4488. <div class="tool">
  4489. <div
  4490. class="whiteBIcon"
  4491. @click="
  4492. openTools(itemTaskIndex, 41, toolIndex)
  4493. "
  4494. >
  4495. <img
  4496. src="../../../assets/icon/thirdToolList/select.png"
  4497. alt
  4498. />
  4499. <div style="margin: 5px 0">{{ lang.ssSelMatch }}</div>
  4500. </div>
  4501. <div
  4502. class="check"
  4503. @click="
  4504. addTools(41, itemTaskIndex, toolIndex)
  4505. "
  4506. >
  4507. <img
  4508. src="../../../assets/icon/checkNo.png"
  4509. alt
  4510. v-if="itemTool.tool.indexOf(41) == -1"
  4511. />
  4512. <div class="checkDiv" v-else>
  4513. <img
  4514. src="../../../assets/icon/checkedIs.png"
  4515. alt
  4516. /><span>{{ lang.Selected }}</span>
  4517. </div>
  4518. </div>
  4519. </div>
  4520. <div class="tool">
  4521. <div
  4522. class="whiteBIcon"
  4523. @click="
  4524. openTools(itemTaskIndex, 47, toolIndex)
  4525. "
  4526. >
  4527. <img
  4528. src="../../../assets/icon/fourthToolList/conSentences.png"
  4529. alt
  4530. />
  4531. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  4532. </div>
  4533. <div
  4534. class="check"
  4535. @click="
  4536. addTools(47, itemTaskIndex, toolIndex)
  4537. "
  4538. >
  4539. <img
  4540. src="../../../assets/icon/checkNo.png"
  4541. alt
  4542. v-if="itemTool.tool.indexOf(47) == -1"
  4543. />
  4544. <div class="checkDiv" v-else>
  4545. <img
  4546. src="../../../assets/icon/checkedIs.png"
  4547. alt
  4548. /><span>{{ lang.Selected }}</span>
  4549. </div>
  4550. </div>
  4551. </div>
  4552. <div class="tool">
  4553. <div
  4554. class="whiteBIcon"
  4555. @click="
  4556. openTools(itemTaskIndex, 48, toolIndex)
  4557. "
  4558. >
  4559. <img
  4560. src="../../../assets/icon/fourthToolList/table.png"
  4561. alt
  4562. />
  4563. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  4564. </div>
  4565. <div
  4566. class="check"
  4567. @click="
  4568. addTools(48, itemTaskIndex, toolIndex)
  4569. "
  4570. >
  4571. <img
  4572. src="../../../assets/icon/checkNo.png"
  4573. alt
  4574. v-if="itemTool.tool.indexOf(48) == -1"
  4575. />
  4576. <div class="checkDiv" v-else>
  4577. <img
  4578. src="../../../assets/icon/checkedIs.png"
  4579. alt
  4580. /><span>{{ lang.Selected }}</span>
  4581. </div>
  4582. </div>
  4583. </div>
  4584. </div>
  4585. </div>
  4586. </div>
  4587. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4588. <div class="addToolImg">
  4589. <img src="../../../assets/icon/add.png" alt />
  4590. </div>
  4591. <div>添加工具</div>
  4592. </div> -->
  4593. <button
  4594. class="c_pub_button_add pub_btn_tool_img"
  4595. @click="addToolFun(itemTaskIndex)"
  4596. style="margin: 35px auto 20px"
  4597. >
  4598. {{ lang.ssAddTool }}
  4599. </button>
  4600. </div>
  4601. </div>
  4602. <div
  4603. v-else-if="
  4604. unitJson[unitIndex].easy == 1 ||
  4605. (unitJson[unitIndex].easy == 5 &&
  4606. itemTask.taskType == 2)
  4607. "
  4608. class="toolChoose"
  4609. style="padding: 0 0 40px"
  4610. >
  4611. <div class="tools">
  4612. <div
  4613. class="leftTools"
  4614. style="width: 100%; padding: 0 0 15px 0"
  4615. v-for="(
  4616. itemTool, toolIndex
  4617. ) in itemTask.toolChoose"
  4618. :key="toolIndex"
  4619. >
  4620. <div style="min-height: 163px">
  4621. <div class="toolSort">
  4622. <div class="tool">
  4623. <div
  4624. class="whiteBIcon"
  4625. @click="
  4626. openTools(itemTaskIndex, 50, toolIndex)
  4627. "
  4628. >
  4629. <img
  4630. src="../../../assets/icon/thirdToolList/plwork.png"
  4631. alt
  4632. />
  4633. <div style="margin: 5px 0">{{ lang.ssBatchUp }}</div>
  4634. </div>
  4635. <div
  4636. class="check"
  4637. @click="
  4638. addTools(50, itemTaskIndex, toolIndex)
  4639. "
  4640. >
  4641. <img
  4642. src="../../../assets/icon/checkNo.png"
  4643. alt
  4644. v-if="itemTool.tool.indexOf(50) == -1"
  4645. />
  4646. <div class="checkDiv" v-else>
  4647. <img
  4648. src="../../../assets/icon/checkedIs.png"
  4649. alt
  4650. /><span>{{ lang.Selected }}</span>
  4651. </div>
  4652. </div>
  4653. </div>
  4654. </div>
  4655. </div>
  4656. </div>
  4657. </div>
  4658. </div>
  4659. <div
  4660. class="elist_css"
  4661. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4662. >
  4663. <div class="elist_title">
  4664. <div
  4665. style="
  4666. display: flex;
  4667. flex-direction: row;
  4668. align-items: center;
  4669. margin: 20px 0;
  4670. "
  4671. >
  4672. <div class="lineTitle clineTitle">{{ lang.ssEvalSetting }}</div>
  4673. <!-- <div class="line" style="width: 90%"></div> -->
  4674. </div>
  4675. </div>
  4676. <div class="mbCss">
  4677. <div
  4678. class="pjCss"
  4679. :style="{
  4680. width: itemTask.isEvaFold
  4681. ? 'calc(100% - 55%)'
  4682. : 'calc(100% - 120px)',
  4683. }"
  4684. >
  4685. <div
  4686. v-if="itemTask.eList && itemTask.eList.length"
  4687. class="elist_input"
  4688. >
  4689. <div
  4690. v-for="(eItem, eIndex) in itemTask.eList"
  4691. :key="eIndex"
  4692. class="elist_input_box"
  4693. >
  4694. <span>{{ lang.ssEvalDimension }}</span>
  4695. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4696. <input
  4697. type="input"
  4698. v-model="itemTask.eList[eIndex].value"
  4699. :placeholder="lang.ssFillEvaDim"
  4700. />
  4701. <!-- </el-tooltip> -->
  4702. <!-- <span>评星等级:</span>
  4703. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4704. disabled></el-rate> -->
  4705. <div
  4706. class="remove"
  4707. @click="
  4708. deletEList(
  4709. unitIndex,
  4710. itemTaskIndex,
  4711. eIndex
  4712. )
  4713. "
  4714. ></div>
  4715. <div class="elist_inptu_text">
  4716. <span>{{ lang.ssDimensionDesc }}</span>
  4717. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4718. <input
  4719. type="input"
  4720. v-model="itemTask.eList[eIndex].detail"
  4721. :placeholder="lang.ssFillDimDesc"
  4722. />
  4723. <!-- </el-tooltip> -->
  4724. </div>
  4725. <div class="elist_inptu_text" v-if="evalua">
  4726. <span>{{ lang.ssTargetColon }}</span>
  4727. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4728. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4729. @change="forceUpdate()">
  4730. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4731. :value="e.name">
  4732. </el-option>
  4733. </el-select> -->
  4734. <el-cascader
  4735. :options="targetArray"
  4736. v-model="itemTask.eList[eIndex].target"
  4737. :props="{ checkStrictly: true }"
  4738. :show-all-levels="false"
  4739. clearable
  4740. ></el-cascader>
  4741. </div>
  4742. </div>
  4743. </div>
  4744. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4745. style="margin: 35px 35px 0 0">
  4746. <div class="addToolImg">
  4747. <img src="../../../assets/icon/add.png" alt />
  4748. </div>
  4749. <div>添加</div>
  4750. </div> -->
  4751. <div class="eva_btn_box">
  4752. <div class="eva_btn_left_box">
  4753. <button
  4754. class="c_pub_button_add pub_btn_eval_img"
  4755. @click="addEList(unitIndex, itemTaskIndex)"
  4756. >
  4757. {{ lang.ssAdd }}
  4758. </button>
  4759. <button
  4760. class="c_pub_button_add pub_btn_eval_source_img"
  4761. @click="openEList(unitIndex, itemTaskIndex)"
  4762. >
  4763. {{ lang.resource }}
  4764. </button>
  4765. </div>
  4766. <button
  4767. class="c_pub_button_add"
  4768. @click="addCET(unitIndex, itemTaskIndex)"
  4769. v-if="itemTask.eList && itemTask.eList.length"
  4770. >
  4771. {{ lang.ssAddResTemp }}
  4772. </button>
  4773. </div>
  4774. </div>
  4775. <div
  4776. v-if="evalua"
  4777. style="
  4778. border: 1px solid #e5e5e5;
  4779. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4780. "
  4781. :style="{
  4782. width: itemTask.isEvaFold ? '55%' : '116px',
  4783. }"
  4784. class="evaCss"
  4785. >
  4786. <!-- <div class="e_add_top">
  4787. <div class="e_add_title">
  4788. <span>当前使用目标管理</span>
  4789. <span>{{ eTitle }}</span>
  4790. <img src="../../../assets/line.png" class="cru_line" style="
  4791. width: 125px;
  4792. height: 20px;
  4793. bottom: -10px;
  4794. left: 155px;
  4795. " />
  4796. </div>
  4797. </div> -->
  4798. <div class="e_add_content" style="width: 100%">
  4799. <div
  4800. class="e_add_list_pbox"
  4801. style="width: 100%"
  4802. >
  4803. <div class="e_add_list_pbox_title">
  4804. <span
  4805. class="type_title"
  4806. v-if="itemTask.isEvaFold"
  4807. >{{ lang.ssSwitchMode }}</span
  4808. >
  4809. <div
  4810. class="type_content"
  4811. v-if="itemTask.isEvaFold"
  4812. >
  4813. <span
  4814. :class="{ active: typeMode == 1 }"
  4815. @click="OtherMb(1, itemTaskIndex)"
  4816. >{{ lang.ssTargetTree }}</span
  4817. >
  4818. <span
  4819. :class="{ active: typeMode == 2 }"
  4820. @click="OtherMb(2, itemTaskIndex)"
  4821. >{{ lang.ssTargetCompass }}</span
  4822. >
  4823. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4824. </div>
  4825. <div
  4826. v-if="itemTask.isEvaFold"
  4827. class="show_taskD show"
  4828. style="margin: 0 0 0 auto"
  4829. @click="foldEva(itemTaskIndex)"
  4830. >
  4831. <img
  4832. src="../../../assets/icon/new/icon-slide.png"
  4833. />{{ lang.ssCollapseTarget }}
  4834. </div>
  4835. <div
  4836. v-else
  4837. style="margin: 0 0 0 auto"
  4838. class="show_taskD"
  4839. @click="foldEva(itemTaskIndex)"
  4840. >
  4841. <img
  4842. src="../../../assets/icon/new/icon-slide.png"
  4843. />{{ lang.ssExpandTarget }}
  4844. </div>
  4845. </div>
  4846. <div
  4847. class="e_add_list_pbox_content"
  4848. v-if="itemTask.isEvaFold"
  4849. style="min-height: 200px"
  4850. >
  4851. <Mind
  4852. :showBar="false"
  4853. :mindData="data"
  4854. style="width: 100%"
  4855. :jsmindId="
  4856. unitIndex + '-' + itemTaskIndex + 'mind'
  4857. "
  4858. v-if="typeMode == 1"
  4859. ></Mind>
  4860. <Sunburst
  4861. :Josn="eJson"
  4862. :num="eJSONNum"
  4863. style="width: 100%"
  4864. v-if="typeMode == 2"
  4865. >
  4866. </Sunburst>
  4867. <SeeBoard
  4868. :Josn="eJson"
  4869. :num="eJSONNum"
  4870. :ename="eTitle"
  4871. style="width: 100%"
  4872. v-if="typeMode == 3"
  4873. ></SeeBoard>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. </div>
  4880. <div class="funBlock" style="padding: 0">
  4881. <div
  4882. class="fold"
  4883. @click="fold(itemTaskIndex, $event)"
  4884. >
  4885. <div
  4886. class="arrow"
  4887. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4888. ></div>
  4889. <div>
  4890. {{
  4891. itemTask.isFold === 1 ? lang.ssExpandTask : lang.ssFoldTask
  4892. }}
  4893. </div>
  4894. </div>
  4895. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4896. <div>展开</div>
  4897. <div class="arrow">
  4898. <img src="../../../assets/icon/expand.png" alt />
  4899. </div>
  4900. </div> -->
  4901. </div>
  4902. </div>
  4903. </div>
  4904. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4905. <!-- <div>
  4906. <img src="../../../../assets/icon/new/addStage.png" alt />
  4907. <span>添加任务</span>
  4908. </div> -->
  4909. <button
  4910. class="c_pub_button_confirm pub_btn_add_task_img"
  4911. @click="addTaskBorder"
  4912. >
  4913. {{ lang.ssAddTask }}
  4914. </button>
  4915. </div>
  4916. </div>
  4917. <!-- <div class="info_btnBox3">
  4918. <button
  4919. class="c_pub_button_return pub_btn_return_img"
  4920. v-if="steps == 1"
  4921. @click="
  4922. goTo(
  4923. '/course?userid=' +
  4924. userid +
  4925. '&oid=' +
  4926. oid +
  4927. '&org=' +
  4928. org +
  4929. '&role=' +
  4930. role
  4931. )
  4932. "
  4933. >
  4934. 返回课程
  4935. </button>
  4936. <button
  4937. class="c_pub_button_return pub_btn_last_img"
  4938. v-if="steps > 1 && steps != 5"
  4939. @click="lastSteps"
  4940. style="background: #dbdbdb"
  4941. >
  4942. {{ steps == 4 ? lang.ssBackCourse : lang.ssLastStep }}
  4943. </button>
  4944. <button
  4945. class="c_pub_button_confirm"
  4946. v-if="steps < 4"
  4947. @click="nextSteps"
  4948. :class="{
  4949. pub_btn_next_img: steps != 3,
  4950. pub_btn_finish_img: steps == 3,
  4951. }"
  4952. >
  4953. {{ steps == 3 ? "确认上传" : "下一步" }}
  4954. </button>
  4955. </div> -->
  4956. </div>
  4957. </div>
  4958. </div>
  4959. <div class="info_btnBox3">
  4960. <button
  4961. class="c_pub_button_return pub_btn_return_img"
  4962. v-if="steps == 1"
  4963. @click="
  4964. goTo(
  4965. '/course?userid=' +
  4966. userid +
  4967. '&oid=' +
  4968. oid +
  4969. '&org=' +
  4970. org +
  4971. '&role=' +
  4972. role
  4973. )
  4974. "
  4975. >
  4976. {{ lang.ssBackCourse }}
  4977. </button>
  4978. <button
  4979. class="c_pub_button_return pub_btn_last_img"
  4980. v-if="steps > 1 && steps != 5"
  4981. @click="lastSteps"
  4982. >
  4983. {{ steps == 4 ? lang.ssBackCourse : lang.ssLastStep }}
  4984. </button>
  4985. <button
  4986. class="c_pub_button_confirm"
  4987. v-if="steps < 4"
  4988. @click="nextSteps"
  4989. :class="{
  4990. pub_btn_next_img: steps != 3,
  4991. pub_btn_finish_img: steps == 3,
  4992. }"
  4993. >
  4994. {{ lang.ssConfirmUp }}
  4995. </button>
  4996. </div>
  4997. </div>
  4998. <div
  4999. class="rightBox"
  5000. v-if="steps == 2"
  5001. :style="{
  5002. height:
  5003. !isStepDisplay && !isBtnDisplay
  5004. ? 'calc(100% - 40px)'
  5005. : 'calc(100% - 100px)',
  5006. }"
  5007. >
  5008. <div
  5009. class="basic_box"
  5010. style="
  5011. padding: 20px 30px 0px !important;
  5012. box-sizing: border-box;
  5013. height: calc(100% - 80px);
  5014. overflow: auto;
  5015. background: #fff;
  5016. "
  5017. >
  5018. <!-- <div
  5019. style="
  5020. color: #b8b8b8;
  5021. background: #fff;
  5022. width: 26%;
  5023. height: 40px;
  5024. border-radius: 15px;
  5025. padding-left: 20px;
  5026. line-height: 40px;
  5027. font-size: 17px;
  5028. box-shadow: 0px 1px 2px 2px #e0e0e0;
  5029. "
  5030. >-->
  5031. <div
  5032. class="right_title"
  5033. style="border: none; margin: 0; padding: 0"
  5034. >
  5035. {{ lang.choosecoursetemplate }}
  5036. </div>
  5037. <div class="wordbox">
  5038. <div class="wordTeacher" @click="checkTemplate2()">
  5039. <div class="wordPic">
  5040. <img src="../../../assets/icon/new/template_none.png" alt />
  5041. </div>
  5042. <div
  5043. style="
  5044. margin-top: 10px;
  5045. line-height: 19px;
  5046. overflow: hidden;
  5047. text-overflow: ellipsis;
  5048. white-space: nowrap;
  5049. padding: 0 20px;
  5050. "
  5051. >
  5052. {{ lang.BlankTemplate }}
  5053. </div>
  5054. </div>
  5055. <div
  5056. class="wordTeacher"
  5057. v-for="(aa, indexF) in templateArray"
  5058. :key="indexF"
  5059. @click="checkTemplate(aa)"
  5060. >
  5061. <div class="wordPic">
  5062. <img src="../../../assets/icon/new/template.png" alt />
  5063. </div>
  5064. <div
  5065. style="
  5066. margin-top: 10px;
  5067. line-height: 19px;
  5068. overflow: hidden;
  5069. text-overflow: ellipsis;
  5070. white-space: nowrap;
  5071. padding: 0 20px;
  5072. "
  5073. >
  5074. {{ aa.title }}
  5075. </div>
  5076. </div>
  5077. <div
  5078. class="wordTeacher"
  5079. @click="checkTemplate3()"
  5080. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  5081. >
  5082. <div class="wordPic">
  5083. <img src="../../../assets/icon/new/template.png" alt />
  5084. </div>
  5085. <div
  5086. style="
  5087. margin-top: 10px;
  5088. line-height: 19px;
  5089. overflow: hidden;
  5090. text-overflow: ellipsis;
  5091. white-space: nowrap;
  5092. padding: 0 20px;
  5093. "
  5094. >
  5095. {{ lang.ssSimpleTemp }}
  5096. </div>
  5097. </div>
  5098. <div
  5099. class="wordTeacher"
  5100. @click="pasteStage()"
  5101. v-if="isPasteStage"
  5102. >
  5103. <div class="wordPic">
  5104. <img src="../../../assets/icon/new/template.png" alt />
  5105. </div>
  5106. <div
  5107. style="
  5108. margin-top: 10px;
  5109. line-height: 19px;
  5110. overflow: hidden;
  5111. text-overflow: ellipsis;
  5112. white-space: nowrap;
  5113. padding: 0 20px;
  5114. "
  5115. >
  5116. {{ lang.ssSmartPasteMode }}
  5117. </div>
  5118. </div>
  5119. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  5120. <div class="wordPic">
  5121. <img src="../../../assets/icon/wordMub.png" alt />
  5122. </div>
  5123. <div style="
  5124. margin-top: 10px;
  5125. line-height: 19px;
  5126. overflow: hidden;
  5127. text-overflow: ellipsis;
  5128. white-space: nowrap;
  5129. padding: 0 20px;
  5130. ">
  5131. 未来小学课程设计
  5132. </div>
  5133. </div> -->
  5134. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  5135. <div class="wordPic">
  5136. <img src="../../../assets/icon/wordMub.png" alt />
  5137. </div>
  5138. <div style="
  5139. margin-top: 10px;
  5140. line-height: 19px;
  5141. overflow: hidden;
  5142. text-overflow: ellipsis;
  5143. white-space: nowrap;
  5144. padding: 0 20px;
  5145. ">
  5146. 我的课程
  5147. </div>
  5148. </div> -->
  5149. </div>
  5150. </div>
  5151. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  5152. <button
  5153. class="c_pub_button_return pub_btn_return_img"
  5154. v-if="steps == 1"
  5155. @click="
  5156. goTo(
  5157. '/course?userid=' +
  5158. userid +
  5159. '&oid=' +
  5160. oid +
  5161. '&org=' +
  5162. org +
  5163. '&role=' +
  5164. role
  5165. )
  5166. "
  5167. >
  5168. {{ lang.ssBackCourse }}
  5169. </button>
  5170. <button
  5171. class="c_pub_button_return pub_btn_last_img"
  5172. v-if="steps > 1 && steps != 5"
  5173. @click="lastSteps"
  5174. >
  5175. {{ steps == 4 ? lang.ssBackCourse : lang.ssLastStep }}
  5176. </button>
  5177. <button
  5178. class="c_pub_button_confirm"
  5179. v-if="steps < 4"
  5180. @click="nextSteps"
  5181. :class="{
  5182. pub_btn_next_img: steps != 3,
  5183. pub_btn_finish_img: steps == 3,
  5184. }"
  5185. >
  5186. {{ steps == 3 ? lang.ssConfirmUp : lang.ssNextStep }}
  5187. </button>
  5188. </div>
  5189. </div>
  5190. <div
  5191. style="
  5192. width: calc(100% - 20px);
  5193. background: rgb(255, 255, 255);
  5194. border-radius: 10px;
  5195. "
  5196. v-if="steps == 4"
  5197. >
  5198. <div class="basic_box_success">
  5199. <div class="right_img">
  5200. <img src="../../../assets/icon/right.png" alt />
  5201. </div>
  5202. <div style="font-weight: bold">{{ lang.ssSuccess }}</div>
  5203. <!-- <div>您的课程编号</div>
  5204. <div class="number">{{ number }}</div>-->
  5205. <!-- <div class="success_button">
  5206. <div class="look_course" @click="isNoFinsh">
  5207. 邀请老师协同编辑
  5208. </div>
  5209. <div class="attend_others" @click="goCourse">预览课程</div>
  5210. </div> -->
  5211. </div>
  5212. </div>
  5213. <div
  5214. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  5215. @mouseenter="btnDisplay(true)"
  5216. @mouseleave="btnDisplay(false)"
  5217. v-if="false"
  5218. >
  5219. <button
  5220. class="c_pub_button_return pub_btn_return_img"
  5221. v-if="steps == 1 && isBtnDisplay"
  5222. @click="
  5223. goTo(
  5224. '/course?userid=' +
  5225. userid +
  5226. '&oid=' +
  5227. oid +
  5228. '&org=' +
  5229. org +
  5230. '&role=' +
  5231. role
  5232. )
  5233. "
  5234. >
  5235. {{ lang.ssBackCourse }}
  5236. </button>
  5237. <button
  5238. class="c_pub_button_return pub_btn_last_img"
  5239. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5240. @click="lastSteps"
  5241. >
  5242. {{ steps == 4 ? lang.ssBackCourse : lang.ssLastStep }}
  5243. </button>
  5244. <button
  5245. class="c_pub_button_confirm"
  5246. v-if="steps < 4 && isBtnDisplay"
  5247. @click="nextSteps"
  5248. :class="{
  5249. pub_btn_next_img: steps != 3,
  5250. pub_btn_finish_img: steps == 3,
  5251. }"
  5252. >
  5253. {{ lang.ssConfirmUp }}
  5254. </button>
  5255. </div>
  5256. </div>
  5257. </div>
  5258. </div>
  5259. <el-dialog
  5260. :title="lang.ssTip"
  5261. :visible.sync="dialogVisible"
  5262. :append-to-body="true"
  5263. width="25%"
  5264. :before-close="handleClose"
  5265. class="dialog_diy2 customWidth"
  5266. >
  5267. <div>{{ lang.ssCopyLinkInvite }}</div>
  5268. <div>http://www.boomyon.com/index-zhang.com</div>
  5269. <span slot="footer" class="dialog-footer">
  5270. <el-button type="primary">{{ lang.ssCopyLinkShare }}</el-button>
  5271. <el-button @click="dialogVisible = false">{{ lang.ssCancel }}</el-button>
  5272. </span>
  5273. </el-dialog>
  5274. <el-dialog
  5275. :title="updateBoolean2 ? lang.ssViewDoc : lang.ssAddDoc"
  5276. :visible.sync="dialogVisible1"
  5277. :append-to-body="true"
  5278. width="25%"
  5279. :before-close="handleClose"
  5280. class="dialog_diy2 customWidth"
  5281. >
  5282. <el-form>
  5283. <el-form-item :label="lang.ssDocTitle">
  5284. <el-input
  5285. v-model="tTitle"
  5286. auto-complete="off"
  5287. :placeholder="lang.ssEnterDocTitle"
  5288. ></el-input>
  5289. </el-form-item>
  5290. <div>{{ lang.ssDocIntro }}</div>
  5291. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5292. </el-form>
  5293. <span slot="footer" class="dialog-footer">
  5294. <el-button @click="dialogVisible1 = false">{{ lang.ssCancel }}</el-button>
  5295. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5296. >{{ lang.ssAdd }}</el-button
  5297. >
  5298. <el-button type="primary" @click="upWord" v-else>{{ lang.ssModify }}</el-button>
  5299. </span>
  5300. </el-dialog>
  5301. <el-dialog
  5302. :title="lang.ssAddDoc"
  5303. :visible.sync="dialogVisible2"
  5304. :append-to-body="true"
  5305. width="500px"
  5306. :before-close="handleClose"
  5307. class="dialog_diy"
  5308. >
  5309. <el-form>
  5310. <el-form-item :label="lang.ssDocTitle">
  5311. <el-input
  5312. v-model="templateC.title"
  5313. auto-complete="off"
  5314. :placeholder="lang.ssEnterDocTitle"
  5315. ></el-input>
  5316. </el-form-item>
  5317. <div>{{ lang.ssDocContent }}</div>
  5318. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5319. </el-form>
  5320. <span slot="footer" class="dialog-footer">
  5321. <el-button @click="clearChoose">{{ lang.ssCancel }}</el-button>
  5322. <el-button type="primary" @click="wordNext()">{{ lang.ssConfirm }}</el-button>
  5323. </span>
  5324. </el-dialog>
  5325. <el-dialog
  5326. :title="lang.ssAddRichText"
  5327. :visible.sync="dialogVisible6"
  5328. :append-to-body="true"
  5329. width="500px"
  5330. :before-close="handleClose"
  5331. class="dialog_diy"
  5332. >
  5333. <el-form>
  5334. <el-form-item :label="lang.ssTextTitle">
  5335. <el-input
  5336. ref="fuInput"
  5337. v-model="AttText.title"
  5338. auto-complete="off"
  5339. @input="change2"
  5340. :placeholder="lang.ssEnterTextT"
  5341. ></el-input>
  5342. </el-form-item>
  5343. <!-- <div>富文本内容</div> -->
  5344. <editor-bar
  5345. v-model="AttText.text"
  5346. @change="change"
  5347. v-if="dialogVisible6"
  5348. ></editor-bar>
  5349. </el-form>
  5350. <span slot="footer" class="dialog-footer">
  5351. <el-button @click="clearAttText">{{ lang.ssCancel }}</el-button>
  5352. <el-button type="primary" @click="isAddOrUpdateAttText">{{ lang.ssConfirm }}</el-button>
  5353. </span>
  5354. </el-dialog>
  5355. <el-dialog
  5356. :title="lang.ssAddLink"
  5357. :visible.sync="dialogVisible7"
  5358. :append-to-body="true"
  5359. width="500px"
  5360. :before-close="handleClose"
  5361. class="dialog_diy lineCss"
  5362. >
  5363. <el-form>
  5364. <el-form-item :label="lang.ssTitle" :label-width="formLabelWidth">
  5365. <span>
  5366. <el-input
  5367. :placeholder="lang.ssEnterLinkT"
  5368. clearable
  5369. v-model="lineTitle"
  5370. class="add_input"
  5371. ></el-input>
  5372. </span>
  5373. </el-form-item>
  5374. <el-form-item :label="lang.ssLink" :label-width="formLabelWidth">
  5375. <span>
  5376. <el-input
  5377. :placeholder="lang.ssEnterLink"
  5378. clearable
  5379. v-model="line"
  5380. class="add_input"
  5381. ></el-input>
  5382. </span>
  5383. </el-form-item>
  5384. </el-form>
  5385. <span slot="footer" class="dialog-footer">
  5386. <el-button @click="clearLine">{{ lang.ssCancel }}</el-button>
  5387. <el-button type="primary" @click="isAddOrUpdateLine">{{ lang.ssConfirm }}</el-button>
  5388. </span>
  5389. </el-dialog>
  5390. <el-dialog
  5391. :title="updateSourcePan ? lang.ssModifyResource : lang.ssAddResource"
  5392. :visible.sync="dialogVisibleSource"
  5393. :append-to-body="true"
  5394. width="100%"
  5395. :before-close="handleClose"
  5396. class="dialog_diy source_diy"
  5397. >
  5398. <div>
  5399. <sourceDialog
  5400. :sourceData.sync="sourceData"
  5401. :updateSourcePan="updateSourcePan"
  5402. ></sourceDialog>
  5403. </div>
  5404. <span slot="footer" class="dialog-footer">
  5405. <el-button @click="dialogVisibleSource = false">{{ lang.ssCancel }}</el-button>
  5406. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5407. >{{ lang.ssConfirm }}</el-button
  5408. >
  5409. <el-button type="primary" @click="updateSource" v-else>{{ lang.ssConfirm }}</el-button>
  5410. </span>
  5411. </el-dialog>
  5412. <el-dialog
  5413. :title="lang.ssAddCourseM"
  5414. :visible.sync="dialogVisible3"
  5415. :append-to-body="true"
  5416. width="25%"
  5417. height="80%"
  5418. :before-close="handleClose"
  5419. class="addNewPP customWidth"
  5420. >
  5421. <div class="people">
  5422. <div class="people_top">
  5423. <div class="people_nav">{{ lang.ssSelectMem }}</div>
  5424. <div class="people_top_right">
  5425. <div class="people_search">
  5426. <el-input
  5427. style="height: 100%"
  5428. :placeholder="lang.ssSearchMem"
  5429. v-model="searchPeople"
  5430. ></el-input>
  5431. <div class="search_img" @click="searchStudent">
  5432. <img src="../../../assets/icon/search.png" alt />
  5433. </div>
  5434. </div>
  5435. </div>
  5436. </div>
  5437. <el-checkbox-group v-model="checkboxList" class="people_name">
  5438. <el-checkbox
  5439. v-for="item in studentJuri"
  5440. :key="item.userid"
  5441. :label="item.userid"
  5442. >{{ item.name ? item.name : lang.ssNoStuAvail }}</el-checkbox
  5443. >
  5444. </el-checkbox-group>
  5445. </div>
  5446. <span slot="footer" class="dialog-footer">
  5447. <el-button @click="dialogVisible3 = false">{{ lang.ssCancel }}</el-button>
  5448. <el-button type="primary" @click="isAddPP">{{ lang.ssConfirm }}</el-button>
  5449. </span>
  5450. </el-dialog>
  5451. <el-dialog
  5452. :title="lang.ssSelectTeac"
  5453. :visible.sync="dialogVisibleClass"
  5454. :append-to-body="true"
  5455. width="600px"
  5456. height="80%"
  5457. :before-close="handleClose"
  5458. class="addNewPP2"
  5459. >
  5460. <div class="check_classBox">
  5461. <div class="check_class_right">
  5462. <div
  5463. class="check_class"
  5464. :class="{ activeX: gradeId == '' }"
  5465. @click="(gradeId = ''), getClass()"
  5466. >
  5467. {{ lang.ssAll }}
  5468. </div>
  5469. <el-tooltip
  5470. placement="top"
  5471. :content="item.name"
  5472. v-for="(item, index) in gradeList"
  5473. :key="index"
  5474. >
  5475. <div
  5476. class="check_class"
  5477. :class="{ activeX: gradeId == item.id }"
  5478. @click="(gradeId = item.id), getClass()"
  5479. >
  5480. {{ item.name }}
  5481. </div>
  5482. </el-tooltip>
  5483. </div>
  5484. <div class="check_class_left">
  5485. <div class="check_class_all_box">
  5486. <div class="check_class_left_title">{{ lang.ssSelectClass }}</div>
  5487. <div style="display: flex; align-items: center; margin-left: auto">
  5488. <el-checkbox
  5489. v-model="checkAll"
  5490. @change="handleCheckAllChange"
  5491. class="all_check"
  5492. >{{ lang.ssSelectAll }}</el-checkbox
  5493. >
  5494. </div>
  5495. </div>
  5496. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5497. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5498. </div> -->
  5499. <el-checkbox-group
  5500. v-model="checkboxList2"
  5501. class="check_class_item"
  5502. @change="InviteChange"
  5503. v-if="grade2.length"
  5504. >
  5505. <div v-for="item in grade2" :key="item.id" class="class_item">
  5506. <el-checkbox :label="item.id">
  5507. {{ item.name }}
  5508. </el-checkbox>
  5509. </div>
  5510. </el-checkbox-group>
  5511. <div v-if="!grade2.length">{{ lang.ssNoData }}</div>
  5512. </div>
  5513. </div>
  5514. <span slot="footer" class="dialog-footer">
  5515. <el-button @click="dialogVisibleClass = false">{{ lang.ssCancel }}</el-button>
  5516. <el-button type="primary" @click="isAddClass">{{ lang.ssConfirm }}</el-button>
  5517. </span>
  5518. </el-dialog>
  5519. <el-dialog
  5520. :title="lang.ssAddMember"
  5521. :visible.sync="dialogVisibleMember"
  5522. :append-to-body="true"
  5523. width="25%"
  5524. height="80%"
  5525. :before-close="handleClose"
  5526. class="addNewPP customWidth"
  5527. >
  5528. <div style="display: flex;justify-content: space-between;">
  5529. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  5530. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  5531. {{ lang.ssAll }}
  5532. </div>
  5533. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)" v-for="(i) in CollaborativeTeaList" :key="i.id">
  5534. <el-tooltip
  5535. placement="top"
  5536. :content="i.name"
  5537. >
  5538. <span>{{i.name}}</span>
  5539. </el-tooltip>
  5540. </div>
  5541. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  5542. {{ lang.ssOther }}
  5543. </div>
  5544. </div>
  5545. <div style="width: calc(100% - 100px);" v-loading="CollLoading">
  5546. <div class="people">
  5547. <div class="people_top">
  5548. <div class="people_top_right">
  5549. <div class="people_search">
  5550. <el-input
  5551. :placeholder="lang.ssSearchMem"
  5552. v-model="searchTN"
  5553. @keyup.enter.native="getTeacher(collid)"
  5554. ></el-input>
  5555. <div class="search_img" @click="getTeacher(collid)">
  5556. <img src="../../../assets/icon/search.png" alt />
  5557. </div>
  5558. </div>
  5559. </div>
  5560. <div class="people_nav" style="display: flex; align-items: center">
  5561. <div class="check_class_left_title">{{ lang.ssSelectMem }}</div>
  5562. <div style="display: flex; align-items: center; margin-left: auto">
  5563. <el-checkbox
  5564. v-model="checkAll2"
  5565. @change="handleCheckAllChange2"
  5566. class="all_check"
  5567. >{{ lang.ssSelectAll }}</el-checkbox
  5568. >
  5569. </div>
  5570. </div>
  5571. </div>
  5572. <el-checkbox-group
  5573. v-model="checkboxList3"
  5574. class="people_name"
  5575. v-if="teacherJuri.length"
  5576. @change="InviteChange2"
  5577. >
  5578. <el-checkbox
  5579. v-for="item in teacherJuri"
  5580. :key="item.userid"
  5581. :label="item.userid"
  5582. >
  5583. <div class="t_j_box">
  5584. <el-tooltip
  5585. placement="top"
  5586. :content="item.name ? item.name : lang.ssNoName"
  5587. >
  5588. <span>{{ item.name ? item.name : lang.ssNoName }}</span>
  5589. </el-tooltip>
  5590. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5591. <span>{{ item.username.split('@')[0] }}</span>
  5592. </el-tooltip>
  5593. <el-tooltip placement="top" :content="item.school">
  5594. <span>{{ item.school }}</span>
  5595. </el-tooltip>
  5596. </div>
  5597. </el-checkbox>
  5598. </el-checkbox-group>
  5599. <div style="text-align: center; margin-top: 10px" v-else>{{ lang.ssNoData }}</div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. <span slot="footer" class="dialog-footer">
  5604. <el-button @click="dialogVisibleMember = false">{{ lang.ssCancel }}</el-button>
  5605. <el-button type="primary" @click="isAddPPTeacher">{{ lang.ssConfirm }}</el-button>
  5606. </span>
  5607. </el-dialog>
  5608. <el-dialog
  5609. :title="lang.ssCreateQues"
  5610. :visible.sync="dialogVisible5"
  5611. :append-to-body="true"
  5612. width="800px"
  5613. :before-close="
  5614. (done) => {
  5615. closePan(4);
  5616. }
  5617. "
  5618. class="dialog_diy fullStyle"
  5619. >
  5620. <div style="height: 100%">
  5621. <div
  5622. class="a_add_title"
  5623. style="
  5624. display: flex;
  5625. flex-direction: row;
  5626. align-items: center;
  5627. justify-content: center;
  5628. "
  5629. >
  5630. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5631. <el-input
  5632. v-model="askJson.askTitle"
  5633. :placeholder="lang.ssEnterTitle"
  5634. style="width: 400px"
  5635. ></el-input>
  5636. </div>
  5637. <div class="a_addBox" style="height: calc(100% - 50px)">
  5638. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5639. <div
  5640. class="a_add_box"
  5641. v-for="(item1, index1) in askJson.askCount"
  5642. :key="index1"
  5643. >
  5644. <div class="a_add_checkType">
  5645. <span
  5646. :class="{
  5647. active:
  5648. askJson.askJson[index1].type == '1' ||
  5649. !askJson.askJson[index1].type,
  5650. }"
  5651. @click="checkAskType('1', askJson.askJson[index1])"
  5652. >{{ lang.ssSingleCh }}</span
  5653. >
  5654. <span
  5655. :class="{ active: askJson.askJson[index1].type == '2' }"
  5656. @click="checkAskType('2', askJson.askJson[index1])"
  5657. >{{ lang.ssMultipleCh }}</span
  5658. >
  5659. </div>
  5660. <div class="a_add_head">
  5661. <div
  5662. style="
  5663. display: flex;
  5664. align-items: center;
  5665. width: 100%;
  5666. margin-right: 20px;
  5667. "
  5668. >
  5669. <span style="min-width: fit-content">{{
  5670. index1 + 1 + "、"
  5671. }}</span>
  5672. <textarea
  5673. class="a_add_head_input textarea_css"
  5674. v-autoHeight="40"
  5675. v-model="askJson.askJson[index1].askstitle"
  5676. :placeholder="lang.ssEnterQues"
  5677. @change="
  5678. () => {
  5679. $forceUpdate();
  5680. }
  5681. "
  5682. ></textarea>
  5683. </div>
  5684. <div
  5685. class="moveBtn moveBtn2"
  5686. style="margin: 0 20px 0 0px"
  5687. v-if="askJson.askCount != 1"
  5688. >
  5689. <div
  5690. class="chapter_upload_up"
  5691. @click.stop="askMove(1, index1)"
  5692. ></div>
  5693. <div
  5694. class="chapter_upload_down"
  5695. @click.stop="askMove(2, index1)"
  5696. ></div>
  5697. </div>
  5698. <div class="a_add_head_div">
  5699. <el-button
  5700. type="primary"
  5701. size="small"
  5702. @click="deleteAskList(index1)"
  5703. v-if="askJson.askCount != 1"
  5704. >{{ lang.Delete }}
  5705. </el-button>
  5706. <el-button
  5707. type="primary"
  5708. size="small"
  5709. @click="addAskList(index1)"
  5710. >{{ lang.ssAdd }}</el-button
  5711. >
  5712. </div>
  5713. </div>
  5714. <div class="a_add_body">
  5715. <div class="a_add_input" style="flex-direction: column">
  5716. <div
  5717. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5718. :key="checkIndex"
  5719. style="
  5720. margin: 20px 10px 0 0;
  5721. display: flex;
  5722. align-items: center;
  5723. position: relative;
  5724. "
  5725. >
  5726. <div style="margin-right: 10px">{{ optionTypeList[checkIndex] }}.</div>
  5727. <textarea
  5728. class="a_add_head_input textarea_css"
  5729. v-autoHeight="40"
  5730. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5731. :placeholder="lang.ssEnterOpt"
  5732. style="width: 300px"
  5733. @change="
  5734. () => {
  5735. $forceUpdate();
  5736. }
  5737. "
  5738. ></textarea>
  5739. <div
  5740. class="moveBtn moveBtn2"
  5741. style="margin: 0 0px 0 20px"
  5742. v-if="askJson.askJson[index1].askItem != 1"
  5743. >
  5744. <div
  5745. class="chapter_upload_up"
  5746. @click.stop="checkMove(1, index1, checkIndex)"
  5747. ></div>
  5748. <div
  5749. class="chapter_upload_down"
  5750. @click.stop="checkMove(2, index1, checkIndex)"
  5751. ></div>
  5752. </div>
  5753. <div class="a_add_body_div">
  5754. <el-button
  5755. type="primary"
  5756. size="small"
  5757. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5758. >{{ lang.ssAdd }}</el-button
  5759. >
  5760. <el-button
  5761. type="primary"
  5762. size="small"
  5763. @click="
  5764. deletecheckList(askJson.askJson[index1], checkIndex)
  5765. "
  5766. v-if="askJson.askJson[index1].askItem != 1"
  5767. >{{ lang.Delete }}
  5768. </el-button>
  5769. </div>
  5770. </div>
  5771. </div>
  5772. <!-- <div class="a_add_body_div">
  5773. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5774. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5775. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5776. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5777. </el-button>
  5778. </div> -->
  5779. </div>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <span slot="footer" class="dialog-footer">
  5784. <el-button @click="closePan(4)">{{ lang.ssCancel }}</el-button>
  5785. <el-button type="primary" @click="addAsk">{{ lang.ssConfirm }}</el-button>
  5786. </span>
  5787. </el-dialog>
  5788. <el-dialog
  5789. :title="lang.ssCreateQues"
  5790. :visible.sync="dialogVisibleChoice"
  5791. :append-to-body="true"
  5792. width="800px"
  5793. :before-close="
  5794. (done) => {
  5795. closePan(45);
  5796. }
  5797. "
  5798. class="dialog_diy fullStyle"
  5799. >
  5800. <div style="height: 100%">
  5801. <!-- <div class="a_add_title" style="
  5802. display: flex;
  5803. flex-direction: row;
  5804. align-items: center;
  5805. justify-content: center;
  5806. ">
  5807. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5808. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5809. </div> -->
  5810. <div class="a_addBox" style="height: 100%">
  5811. <div
  5812. style="
  5813. font-size: 16px;
  5814. color: #c7c7c7;
  5815. display: flex;
  5816. align-items: center;
  5817. "
  5818. >
  5819. <!-- 请输入题目内容 -->
  5820. <button
  5821. class="c_pub_button_add pub_btn_paste_img"
  5822. @click="pasteOption"
  5823. style="margin-left: 10px"
  5824. v-if="isPasteChoice"
  5825. >
  5826. {{ lang.ssSmartPaste }}
  5827. </button>
  5828. </div>
  5829. <div
  5830. class="a_add_box"
  5831. v-for="(item1, index1) in testJson.testCount"
  5832. :key="index1"
  5833. >
  5834. <div class="a_add_checkType">
  5835. <span
  5836. :class="{ active: testJson.testJson[index1].type == '1' }"
  5837. @click="checkTestType('1', testJson.testJson[index1])"
  5838. >{{ lang.ssSingleCh }}</span
  5839. >
  5840. <span
  5841. :class="{ active: testJson.testJson[index1].type == '2' }"
  5842. @click="checkTestType('2', testJson.testJson[index1])"
  5843. >{{ lang.ssMultipleCh }}</span
  5844. >
  5845. </div>
  5846. <div class="a_add_head">
  5847. <div class="timuUpImg">
  5848. <div style="display: flex; align-items: center">
  5849. <span style="min-width: fit-content">{{
  5850. index1 + 1 + "、"
  5851. }}</span>
  5852. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5853. placeholder="请输入题目">
  5854. </el-input> -->
  5855. <textarea
  5856. class="a_add_head_input textarea_css"
  5857. v-autoHeight="40"
  5858. v-model="testJson.testJson[index1].teststitle"
  5859. :placeholder="lang.ssEnterQues"
  5860. @change="
  5861. () => {
  5862. $forceUpdate();
  5863. }
  5864. "
  5865. ></textarea>
  5866. </div>
  5867. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5868. <div
  5869. class="chapter_upload_up"
  5870. @click.stop="testMove(1, index1)"
  5871. ></div>
  5872. <div
  5873. class="chapter_upload_down"
  5874. @click.stop="testMove(2, index1)"
  5875. ></div>
  5876. </div>
  5877. <div
  5878. class="xzUpImg"
  5879. @click.stop="addImg($event)"
  5880. style="margin-right: 10px"
  5881. >
  5882. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5883. <input
  5884. type="file"
  5885. accept="image/*"
  5886. style="display: none"
  5887. @change="beforeUploadTiMu($event, index1)"
  5888. />
  5889. </div>
  5890. </div>
  5891. <div class="a_add_head_div">
  5892. <el-button
  5893. type="primary"
  5894. size="small"
  5895. @click="deleteTestList(index1)"
  5896. v-if="testJson.testCount != 1"
  5897. >{{ lang.Delete }}
  5898. </el-button>
  5899. <el-button
  5900. type="primary"
  5901. size="small"
  5902. @click="addTestList(index1)"
  5903. >{{ lang.ssAdd }}</el-button
  5904. >
  5905. </div>
  5906. </div>
  5907. <div
  5908. class="timuImgBox"
  5909. v-if="
  5910. testJson.testJson[index1].timuList &&
  5911. testJson.testJson[index1].timuList.length
  5912. "
  5913. >
  5914. <div
  5915. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5916. :key="tIndex"
  5917. class="timuImg"
  5918. @click.stop="previewImg(timg.src)"
  5919. >
  5920. <img :src="timg.src" alt="" />
  5921. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5922. <img src="../../../assets/icon/delete.png" alt="" />
  5923. </div>
  5924. </div>
  5925. </div>
  5926. <div class="a_add_body">
  5927. <div class="a_add_input a_add_input_choice">
  5928. <el-radio-group
  5929. v-model="testJson.testJson[index1].answer"
  5930. v-if="testJson.testJson[index1].type == 1"
  5931. @change="
  5932. () => {
  5933. $forceUpdate();
  5934. }
  5935. "
  5936. >
  5937. <div class="radioBox">
  5938. <el-radio
  5939. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5940. .testItem"
  5941. :key="checkIndex"
  5942. :label="checkIndex"
  5943. >
  5944. <div style="margin-right: 10px">
  5945. {{ optionTypeList[checkIndex] }}.
  5946. </div>
  5947. <div
  5948. style="margin-right: 10px; width: 300px"
  5949. v-if="
  5950. testJson.testJson[index1].checkList[checkIndex] &&
  5951. testJson.testJson[index1].checkList[checkIndex]
  5952. .imgType &&
  5953. testJson.testJson[index1].checkList[checkIndex]
  5954. .imgType == 1
  5955. "
  5956. >
  5957. <div
  5958. class="inImg"
  5959. @click.stop="
  5960. previewImg(
  5961. testJson.testJson[index1].checkList[checkIndex]
  5962. .src
  5963. )
  5964. "
  5965. >
  5966. <el-image
  5967. :src="
  5968. testJson.testJson[index1].checkList[checkIndex]
  5969. .src
  5970. "
  5971. lazy
  5972. />
  5973. <!-- <img :src="
  5974. testJson.testJson[index1].checkList[checkIndex]
  5975. .src
  5976. " alt="" /> -->
  5977. </div>
  5978. </div>
  5979. <textarea
  5980. class="a_add_head_input textarea_css"
  5981. v-autoHeight="40"
  5982. v-else
  5983. v-model="
  5984. testJson.testJson[index1].checkList[checkIndex]
  5985. "
  5986. :placeholder="lang.ssEnterOpt"
  5987. style="width: 300px; margin-right: 10px"
  5988. @change="
  5989. () => {
  5990. $forceUpdate();
  5991. }
  5992. "
  5993. ></textarea>
  5994. <div class="xzUpImg" @click.stop="addImg($event)">
  5995. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5996. <input
  5997. type="file"
  5998. accept="image/*"
  5999. style="display: none"
  6000. @change="beforeUploadTi($event, index1, checkIndex)"
  6001. />
  6002. </div>
  6003. <div
  6004. class="moveBtn moveBtn2"
  6005. v-if="testJson.testJson[index1].testItem != 1"
  6006. >
  6007. <div
  6008. class="chapter_upload_up"
  6009. @click.stop="tcheckMove(1, index1, checkIndex)"
  6010. ></div>
  6011. <div
  6012. class="chapter_upload_down"
  6013. @click.stop="tcheckMove(2, index1, checkIndex)"
  6014. ></div>
  6015. </div>
  6016. <div class="a_add_body_div">
  6017. <el-button
  6018. type="primary"
  6019. size="small"
  6020. @click.stop="
  6021. addTcheckList(testJson.testJson[index1], checkIndex)
  6022. "
  6023. >{{ lang.ssAdd }}</el-button
  6024. >
  6025. <el-button
  6026. type="primary"
  6027. size="small"
  6028. @click.stop="
  6029. deleteTcheckList(
  6030. testJson.testJson[index1],
  6031. checkIndex
  6032. )
  6033. "
  6034. v-if="testJson.testJson[index1].testItem != 1"
  6035. >{{ lang.Delete }}
  6036. </el-button>
  6037. </div>
  6038. </el-radio>
  6039. </div>
  6040. </el-radio-group>
  6041. <el-checkbox-group
  6042. v-model="testJson.testJson[index1].answer"
  6043. v-if="testJson.testJson[index1].type == '2'"
  6044. @change="
  6045. () => {
  6046. $forceUpdate();
  6047. }
  6048. "
  6049. >
  6050. <div class="radioBox">
  6051. <el-checkbox
  6052. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  6053. .testItem"
  6054. :key="checkIndex1"
  6055. :label="checkIndex1"
  6056. >
  6057. <div style="margin-right: 10px">
  6058. {{ optionTypeList[checkIndex1] }}.
  6059. </div>
  6060. <div
  6061. style="margin-right: 10px; width: 300px"
  6062. v-if="
  6063. testJson.testJson[index1].checkList[checkIndex1] &&
  6064. testJson.testJson[index1].checkList[checkIndex1]
  6065. .imgType &&
  6066. testJson.testJson[index1].checkList[checkIndex1]
  6067. .imgType == 1
  6068. "
  6069. >
  6070. <div
  6071. class="inImg"
  6072. @click.stop="
  6073. previewImg(
  6074. testJson.testJson[index1].checkList[checkIndex1]
  6075. .src
  6076. )
  6077. "
  6078. >
  6079. <el-image
  6080. :src="
  6081. testJson.testJson[index1].checkList[checkIndex1]
  6082. .src
  6083. "
  6084. lazy
  6085. />
  6086. <!-- <img :src="
  6087. testJson.testJson[index1].checkList[checkIndex1]
  6088. .src
  6089. " alt="" /> -->
  6090. </div>
  6091. </div>
  6092. <textarea
  6093. class="a_add_head_input textarea_css"
  6094. v-autoHeight="40"
  6095. v-else
  6096. v-model="
  6097. testJson.testJson[index1].checkList[checkIndex1]
  6098. "
  6099. :placeholder="lang.ssEnterOpt"
  6100. style="width: 300px; margin-right: 10px"
  6101. @change="
  6102. () => {
  6103. $forceUpdate();
  6104. }
  6105. "
  6106. ></textarea>
  6107. <div class="xzUpImg" @click.stop="addImg($event)">
  6108. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  6109. <input
  6110. type="file"
  6111. accept="image/*"
  6112. style="display: none"
  6113. @change="beforeUploadTi($event, index1, checkIndex1)"
  6114. />
  6115. </div>
  6116. <div
  6117. class="moveBtn moveBtn2"
  6118. v-if="testJson.testJson[index1].testItem != 1"
  6119. >
  6120. <div
  6121. class="chapter_upload_up"
  6122. @click.stop="tcheckMove(1, index1, checkIndex1)"
  6123. ></div>
  6124. <div
  6125. class="chapter_upload_down"
  6126. @click.stop="tcheckMove(2, index1, checkIndex1)"
  6127. ></div>
  6128. </div>
  6129. <div class="a_add_body_div">
  6130. <el-button
  6131. type="primary"
  6132. size="small"
  6133. @click.stop="
  6134. addTcheckList(
  6135. testJson.testJson[index1],
  6136. checkIndex1
  6137. )
  6138. "
  6139. >{{ lang.ssAdd }}</el-button
  6140. >
  6141. <el-button
  6142. type="primary"
  6143. size="small"
  6144. @click.stop="
  6145. deleteTcheckList(
  6146. testJson.testJson[index1],
  6147. checkIndex1
  6148. )
  6149. "
  6150. v-if="testJson.testJson[index1].testItem != 1"
  6151. >{{ lang.Delete }}
  6152. </el-button>
  6153. </div>
  6154. </el-checkbox>
  6155. </div>
  6156. </el-checkbox-group>
  6157. </div>
  6158. <!-- <div class="a_add_body_div">
  6159. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  6160. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  6161. v-if="testJson.testJson[index1].testItem != 1">删除
  6162. </el-button>
  6163. </div> -->
  6164. </div>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <span slot="footer" class="dialog-footer">
  6169. <el-button @click="closePan(45)">{{ lang.ssCancel }}</el-button>
  6170. <el-button type="primary" @click="addTest">{{ lang.ssConfirm }}</el-button>
  6171. </span>
  6172. </el-dialog>
  6173. <el-dialog
  6174. :title="lang.ssAddTool"
  6175. :visible.sync="dialogVisible4"
  6176. :append-to-body="true"
  6177. width="600px"
  6178. :before-close="handleClose"
  6179. class="dialog_diy addToolsDia"
  6180. >
  6181. <div class="toolChoose">
  6182. <div class="tools">
  6183. <div
  6184. class="leftTools"
  6185. style="width: 100%; padding: 0 0 15px 0"
  6186. v-for="(itemTools, itemToolsIndex) in chapTools"
  6187. :key="itemToolsIndex"
  6188. >
  6189. <div
  6190. style="
  6191. display: flex;
  6192. flex-direction: row;
  6193. align-items: baseline;
  6194. flex-wrap: nowrap;
  6195. justify-content: flex-start;
  6196. position: relative;
  6197. "
  6198. >
  6199. <div class="chooseWho">
  6200. <div
  6201. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  6202. @click="chapToolsType = 0"
  6203. >
  6204. {{ lang.ssInteract }}
  6205. </div>
  6206. <div
  6207. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  6208. @click="chapToolsType = 1"
  6209. >
  6210. {{ lang.ssCognitive }}
  6211. </div>
  6212. <div
  6213. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6214. @click="chapToolsType = 2"
  6215. >
  6216. {{ lang.ssEval }}
  6217. </div>
  6218. <div
  6219. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6220. @click="chapToolsType = 2"
  6221. >
  6222. {{ lang.ssOther }}
  6223. </div>
  6224. </div>
  6225. </div>
  6226. <div style="min-height: 163px">
  6227. <div class="toolSort" v-if="chapToolsType == 0">
  6228. <div
  6229. class="tool"
  6230. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  6231. @click="chapAddTools(8)"
  6232. >
  6233. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  6234. <img
  6235. src="../../../assets/icon/secondToolList/library.png"
  6236. alt
  6237. />
  6238. <div style="margin: 5px 0">{{ lang.ssMaterial }}</div>
  6239. </div>
  6240. <div class="noCTool">
  6241. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6242. </div>
  6243. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6244. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6245. </div>
  6246. <!-- <div class="check" @click="chapAddTools(8)">
  6247. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6248. <div class="checkDiv" v-else>
  6249. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6250. </div>
  6251. </div> -->
  6252. </div>
  6253. </div>
  6254. <div class="toolSort" v-if="chapToolsType == 1">
  6255. <div
  6256. class="tool"
  6257. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6258. @click="chapAddTools(7)"
  6259. >
  6260. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6261. <img
  6262. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6263. alt
  6264. />
  6265. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  6266. </div>
  6267. <div class="noCTool">
  6268. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6269. </div>
  6270. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6271. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6272. </div>
  6273. <!-- <div class="check" @click="chapAddTools(7)">
  6274. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6275. <div class="checkDiv" v-else>
  6276. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6277. </div>
  6278. </div> -->
  6279. </div>
  6280. <div
  6281. class="tool"
  6282. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6283. @click="chapAddTools(1)"
  6284. >
  6285. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6286. <img
  6287. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6288. alt
  6289. />
  6290. <div style="margin: 5px 0">{{ lang.ssEWhite }}</div>
  6291. </div>
  6292. <div class="noCTool">
  6293. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6294. </div>
  6295. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6296. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6297. </div>
  6298. <!-- <div class="check" @click="chapAddTools(1)">
  6299. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6300. <div class="checkDiv" v-else>
  6301. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6302. </div>
  6303. </div> -->
  6304. </div>
  6305. <div
  6306. class="tool"
  6307. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6308. @click="chapAddTools(2)"
  6309. >
  6310. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6311. <img src="../../../assets/icon/secondToolList/note.png" alt />
  6312. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  6313. </div>
  6314. <div class="noCTool">
  6315. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6316. </div>
  6317. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6318. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6319. </div>
  6320. <!-- <div class="check" @click="chapAddTools(2)">
  6321. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6322. <div class="checkDiv" v-else>
  6323. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6324. </div>
  6325. </div> -->
  6326. </div>
  6327. <div
  6328. class="tool"
  6329. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6330. @click="chapAddTools(6)"
  6331. >
  6332. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6333. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  6334. <div style="margin: 5px 0">{{ lang.ssCollDoc }}</div>
  6335. </div>
  6336. <div class="noCTool">
  6337. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6338. </div>
  6339. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6340. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6341. </div>
  6342. <!-- <div class="check" @click="chapAddTools(6)">
  6343. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6344. <div class="checkDiv" v-else>
  6345. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6346. </div>
  6347. </div> -->
  6348. </div>
  6349. <div
  6350. class="tool"
  6351. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6352. @click="chapAddTools(3)"
  6353. >
  6354. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6355. <img
  6356. src="../../../assets/icon/secondToolList/mindMapping.png"
  6357. alt
  6358. />
  6359. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  6360. </div>
  6361. <div class="noCTool">
  6362. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6363. </div>
  6364. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6365. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6366. </div>
  6367. <!-- <div class="check" @click="chapAddTools(3)">
  6368. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6369. <div class="checkDiv" v-else>
  6370. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6371. </div>
  6372. </div> -->
  6373. </div>
  6374. <div
  6375. class="tool"
  6376. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6377. @click="chapAddTools(31)"
  6378. >
  6379. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6380. <img
  6381. src="../../../assets/icon/secondToolList/networkPanel.png"
  6382. alt
  6383. />
  6384. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  6385. </div>
  6386. <div class="noCTool">
  6387. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6388. </div>
  6389. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6390. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6391. </div>
  6392. <!-- <div class="check" @click="chapAddTools(31)">
  6393. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6394. <div class="checkDiv" v-else>
  6395. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6396. </div>
  6397. </div> -->
  6398. </div>
  6399. </div>
  6400. <div class="toolSort" v-if="chapToolsType == 2">
  6401. <div
  6402. class="tool"
  6403. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6404. @click="chapAddTools(5)"
  6405. >
  6406. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6407. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  6408. <div style="margin: 5px 0">{{ lang.ssGaugeRate }}</div>
  6409. </div>
  6410. <div class="noCTool">
  6411. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6412. </div>
  6413. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6414. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6415. </div>
  6416. <!-- <div class="check" @click="chapAddTools(5)">
  6417. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6418. <div class="checkDiv" v-else>
  6419. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6420. </div>
  6421. </div> -->
  6422. </div>
  6423. <div
  6424. class="tool"
  6425. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6426. @click="chapAddTools(4)"
  6427. >
  6428. <div
  6429. class="whiteBIcon"
  6430. @click.stop="openTools(chapCount, 4, null)"
  6431. >
  6432. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6433. <div style="margin: 5px 0">{{ lang.ssQuest }}</div>
  6434. </div>
  6435. <div class="noCTool">
  6436. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6437. </div>
  6438. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6439. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6440. </div>
  6441. <!-- <div class="check" @click="chapAddTools(4)">
  6442. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6443. <div class="checkDiv" v-else>
  6444. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6445. </div>
  6446. </div> -->
  6447. </div>
  6448. </div>
  6449. </div>
  6450. <div>
  6451. <input
  6452. type="text"
  6453. :placeholder="lang.ssToolDesc"
  6454. class="binfo_input"
  6455. style="margin: 20px 0; width: 100% !important"
  6456. v-model="itemTools.toolDetail"
  6457. />
  6458. </div>
  6459. </div>
  6460. </div>
  6461. </div>
  6462. <span slot="footer" class="dialog-footer">
  6463. <el-button @click="dialogVisible4 = false">{{ lang.ssCancel }}</el-button>
  6464. <el-button type="primary" @click="addChaptersDataTools">{{ lang.ssConfirm }}</el-button>
  6465. </span>
  6466. </el-dialog>
  6467. <el-dialog
  6468. :title="lang.ssAddQA"
  6469. :visible.sync="dialogVisible8"
  6470. :append-to-body="true"
  6471. width="500px"
  6472. :before-close="
  6473. (done) => {
  6474. closePan(15);
  6475. }
  6476. "
  6477. class="dialog_diy"
  6478. >
  6479. <div>
  6480. <div
  6481. class="a_add_title"
  6482. style="
  6483. display: flex;
  6484. flex-direction: column;
  6485. align-items: flex-start;
  6486. justify-content: center;
  6487. "
  6488. >
  6489. <div style="margin-bottom: 20px; font-size: 20px">{{ lang.ssQuestion }}</div>
  6490. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6491. <textarea
  6492. rows="1"
  6493. v-autoHeight="40"
  6494. type="text"
  6495. :placeholder="lang.ssEnterQues2"
  6496. class="binfo_input"
  6497. style="width: 100% !important; border: 1px solid #dcdfe6"
  6498. v-model="answerQ"
  6499. ></textarea>
  6500. </div>
  6501. </div>
  6502. <span slot="footer" class="dialog-footer">
  6503. <el-button @click="closePan(15)">{{ lang.ssCancel }}</el-button>
  6504. <el-button type="primary" @click="addAnswer">{{ lang.ssConfirm }}</el-button>
  6505. </span>
  6506. </el-dialog>
  6507. <el-dialog
  6508. :title="lang.ssAddQues"
  6509. :visible.sync="dialogVisibleMp3"
  6510. :append-to-body="true"
  6511. width="500px"
  6512. :before-close="handleClose"
  6513. class="dialog_diy"
  6514. >
  6515. <div>
  6516. <div
  6517. class="a_add_title"
  6518. style="
  6519. display: flex;
  6520. flex-direction: column;
  6521. align-items: flex-start;
  6522. justify-content: center;
  6523. "
  6524. >
  6525. <div style="margin-bottom: 20px; font-size: 20px">{{ lang.ssQuestion }}</div>
  6526. <el-input
  6527. v-model="answerQ"
  6528. :placeholder="lang.ssEnterWant"
  6529. ></el-input>
  6530. </div>
  6531. </div>
  6532. <span slot="footer" class="dialog-footer">
  6533. <el-button @click="dialogVisibleMp3 = false">{{ lang.ssCancel }}</el-button>
  6534. <el-button type="primary" @click="addMp3Answer">{{ lang.ssConfirm }}</el-button>
  6535. </span>
  6536. </el-dialog>
  6537. <el-dialog
  6538. :title="lang.ssUploadPic"
  6539. :visible.sync="choosePicVisible"
  6540. :append-to-body="true"
  6541. width="600px"
  6542. :before-close="handleClose"
  6543. class="dialog_diy"
  6544. >
  6545. <div>
  6546. <div class="fileCss" style="padding-top: 20px">
  6547. <div>
  6548. <button class="info_btn" @click="addImg($event)">
  6549. {{ lang.SelectLocalImage }}
  6550. <input
  6551. type="file"
  6552. accept="image/*"
  6553. style="display: none"
  6554. @change="beforeUpload1"
  6555. />
  6556. </button>
  6557. <!-- <div class="spanName">{{ lang.SelectLocalImage }}</div> -->
  6558. </div>
  6559. <!-- <div>
  6560. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6561. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6562. <img :src="cover[0].url" alt="" />
  6563. <div class="deletePic" @click="deleteSysPic">
  6564. <img src="../../../assets/icon/delete.png" alt="" />
  6565. </div>
  6566. </div>
  6567. <div class="spanName">选择系统文件</div>
  6568. </div> -->
  6569. <div>
  6570. <el-button
  6571. @click="(searchImageValue = courseName), resetImage()"
  6572. v-if="isSysPic2 == false"
  6573. >{{ lang.SelectWebImage }}</el-button
  6574. >
  6575. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6576. <img :src="cover[0].url" alt="" />
  6577. <div class="deletePic" @click="deleteSysPic">
  6578. <img src="../../../assets/icon/delete.png" alt="" />
  6579. </div>
  6580. </div>
  6581. <!-- <div class="spanName">{{ lang.ssSelectNet }}</div> -->
  6582. </div>
  6583. </div>
  6584. <!-- <div class="fileCss">
  6585. </div> -->
  6586. </div>
  6587. <span slot="footer" class="dialog-footer">
  6588. <el-button @click="choosePicVisible = false">{{ lang.ssCancel }}</el-button>
  6589. <el-button type="primary" @click="choosePicVisible = false"
  6590. >{{ lang.ssConfirm }}</el-button
  6591. >
  6592. </span>
  6593. </el-dialog>
  6594. <el-dialog
  6595. :title="lang.ssSelectSys"
  6596. :visible.sync="sysPicVisible"
  6597. :append-to-body="true"
  6598. width="710px"
  6599. :before-close="handleClose"
  6600. class="dialog_diy"
  6601. >
  6602. <div class="cru_selectBox" style="margin: 0">
  6603. <div
  6604. @click="getChoosePic(1)"
  6605. class="cru_select"
  6606. :class="chooseType == 1 ? 'cru_selected' : ''"
  6607. >
  6608. {{ lang.ssPainting }}
  6609. </div>
  6610. <div
  6611. @click="getChoosePic(2)"
  6612. class="cru_select"
  6613. :class="chooseType == 2 ? 'cru_selected' : ''"
  6614. >
  6615. {{ lang.ssScience }}
  6616. </div>
  6617. <div
  6618. @click="getChoosePic(3)"
  6619. class="cru_select"
  6620. :class="chooseType == 3 ? 'cru_selected' : ''"
  6621. >
  6622. {{ lang.ssHumanity }}
  6623. </div>
  6624. <div
  6625. @click="getChoosePic(4)"
  6626. class="cru_select"
  6627. :class="chooseType == 4 ? 'cru_selected' : ''"
  6628. >
  6629. {{ lang.ssArt }}
  6630. </div>
  6631. </div>
  6632. <div class="sysPicBox">
  6633. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6634. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6635. </div>
  6636. </div>
  6637. </el-dialog>
  6638. <el-dialog
  6639. :title="lang.SelectWebImage"
  6640. :visible.sync="sysPicVisible2"
  6641. :append-to-body="true"
  6642. width="710px"
  6643. :before-close="handleClose"
  6644. class="dialog_diy"
  6645. >
  6646. <div>
  6647. <div
  6648. class="people_top_right"
  6649. style="display: flex; align-items: center"
  6650. >
  6651. <div style="position: relative; width: 100%">
  6652. <el-input
  6653. style="height: 100%"
  6654. :placeholder="lang.ssSearchImg"
  6655. v-model="searchImageValue"
  6656. @keyup.enter.native="resetImage()"
  6657. ></el-input>
  6658. <div class="search_img" @click="resetImage" style="right: 10px">
  6659. <img src="../../../assets/icon/search.png" alt />
  6660. </div>
  6661. </div>
  6662. <el-button
  6663. type="primary"
  6664. size="default"
  6665. style="margin-left: 10px"
  6666. @click="changePicture"
  6667. >{{ lang.ssChangeGrp }}</el-button
  6668. >
  6669. </div>
  6670. <div class="sysPicBox" v-loading="imageloading">
  6671. <!-- <div class="picNone" v-if="!imageList.length">
  6672. {{ lang.ssEnterKeyImg }}
  6673. </div> -->
  6674. <div
  6675. v-for="(sys, sysIndex) in imageList"
  6676. :key="sysIndex"
  6677. class="sysPic"
  6678. >
  6679. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6680. </div>
  6681. </div>
  6682. </div>
  6683. </el-dialog>
  6684. <el-dialog
  6685. :title="lang.ssSelMatch"
  6686. :visible.sync="dialogVisibleSelect"
  6687. :append-to-body="true"
  6688. width="800px"
  6689. :before-close="
  6690. (done) => {
  6691. closePan(41);
  6692. }
  6693. "
  6694. class="dialog_diy dialog_diy3 fullStyle"
  6695. >
  6696. <div v-if="selectJson" style="height: 100%">
  6697. <div class="select_box1" v-if="selectSteps == 1">
  6698. <div class="select_box1_img">
  6699. <div class="select_box1_title">
  6700. <span>{{ lang.ssUploadQuesImg }}</span
  6701. ><span>{{ lang.ssTipUpload }}</span>
  6702. </div>
  6703. <div class="select_box1_add_img">
  6704. <div
  6705. class="uploadFm"
  6706. @click="addImg($event)"
  6707. v-if="!selectJson.url"
  6708. >
  6709. <input
  6710. type="file"
  6711. accept="image/*"
  6712. style="display: none"
  6713. @change="beforeUploadSelect"
  6714. />
  6715. <img src="../../../assets/icon/addPoster.png" alt="" />
  6716. </div>
  6717. <div class="isSysPic" v-else>
  6718. <img
  6719. :src="selectJson.url"
  6720. alt=""
  6721. @click="previewImg(selectJson.url)"
  6722. />
  6723. <div class="deletePic" @click="deleteSelectPic">
  6724. <img src="../../../assets/icon/delete.png" alt="" />
  6725. </div>
  6726. </div>
  6727. </div>
  6728. </div>
  6729. <div class="select_box1_select">
  6730. <div class="select_box1_title">
  6731. <span>{{ lang.ssAddOpt }}</span
  6732. ><span
  6733. >{{ lang.ssTipEnterOpt }}</span
  6734. >
  6735. </div>
  6736. <div class="select_box1_select_box">
  6737. <el-input
  6738. v-for="(item2, checkIndex) in selectJson.select"
  6739. :key="checkIndex"
  6740. v-model="selectJson.select[checkIndex]"
  6741. :placeholder="lang.ssEnterOpt"
  6742. style="width: 150px; margin: 10px 10px 0 0"
  6743. ></el-input>
  6744. <div class="select_box1_select_box_add">
  6745. <el-button
  6746. style="margin: 10px 0px 0 0"
  6747. type="primary"
  6748. size="small"
  6749. @click="addSelectList(selectJson)"
  6750. >
  6751. {{ lang.ssAdd }}</el-button
  6752. >
  6753. <el-button
  6754. type="primary"
  6755. size="small"
  6756. style="margin: 10px 0 0 0"
  6757. @click="deleteSelectList(selectJson)"
  6758. v-if="selectJson.select && selectJson.select.length > 0"
  6759. >{{ lang.ssDelete }}</el-button
  6760. >
  6761. </div>
  6762. </div>
  6763. </div>
  6764. </div>
  6765. <div v-if="selectSteps == 2" style="height: 100%">
  6766. <div class="select_box2">
  6767. <div class="select_box2_title">{{ lang.ssSetCorrect }}</div>
  6768. <div class="select_box2_box">
  6769. <div class="select_box2_img">
  6770. <img
  6771. :src="selectJson.url"
  6772. alt=""
  6773. @click="previewImg(selectJson.url)"
  6774. />
  6775. </div>
  6776. <div class="select_box2_answer">
  6777. <div class="select_answer_title">{{ lang.ssSelectAns }}</div>
  6778. <div
  6779. class="select_box2_answer_box"
  6780. v-for="(item2, checkIndex) in selectJson.select"
  6781. :key="checkIndex"
  6782. >
  6783. <span>{{ checkIndex + 1 }}、</span>
  6784. <el-select
  6785. v-model="selectJson.answer[checkIndex]"
  6786. :placeholder="lang.ssSelectCorrect"
  6787. >
  6788. <el-option
  6789. v-for="(e, eIndex) in selectJson.select"
  6790. :key="eIndex"
  6791. :label="e"
  6792. :value="eIndex"
  6793. >
  6794. </el-option>
  6795. </el-select>
  6796. </div>
  6797. </div>
  6798. </div>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. <span slot="footer" class="dialog-footer">
  6803. <el-button
  6804. type="primary"
  6805. @click="nextSelectSteps()"
  6806. v-if="selectSteps == 1"
  6807. >{{ lang.ssNextStep }}</el-button
  6808. >
  6809. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6810. >{{ lang.ssLastStep }}</el-button
  6811. >
  6812. <el-button
  6813. type="primary"
  6814. @click="addSelectAnswer"
  6815. v-if="selectSteps == 2"
  6816. >{{ lang.ssConfirm }}</el-button
  6817. >
  6818. </span>
  6819. </el-dialog>
  6820. <el-dialog
  6821. :title="lang.ssAddEva"
  6822. :visible.sync="dialogVisibleRate"
  6823. :append-to-body="true"
  6824. width="650px"
  6825. :before-close="handleClose"
  6826. class="dialog_diy"
  6827. >
  6828. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6829. <div style="font-size: 18px; color: #a9a9a9">{{ lang.ssEnterEva }}</div>
  6830. <div class="pjCss" style="width: 100%">
  6831. <div
  6832. v-if="rateJson.length"
  6833. class="elist_input"
  6834. style="height: 360px; overflow: auto"
  6835. >
  6836. <div
  6837. v-for="(eItem, eIndex) in rateJson"
  6838. :key="eIndex"
  6839. class="elist_input_box"
  6840. >
  6841. <span style="min-width: 100px; text-align: right"
  6842. >{{ lang.ssEvaCriteria }}</span
  6843. >
  6844. <input
  6845. type="input"
  6846. v-model="eItem.value"
  6847. :placeholder="lang.ssFillEvaDim"
  6848. />
  6849. <div class="remove" @click="deletRateList(eIndex)"></div>
  6850. <div style="width: 100%; display: flex">
  6851. <span style="min-width: 100px; text-align: right"
  6852. >{{ lang.ssRatingLevel }}</span
  6853. >
  6854. <el-rate v-model="eItem.score" disabled></el-rate>
  6855. </div>
  6856. <div class="elist_inptu_text" style="align-items: flex-start">
  6857. <span style="min-width: 100px; text-align: right">{{ lang.ssDesc }}</span>
  6858. <textarea
  6859. class="rate_textarea"
  6860. :rows="3"
  6861. v-model="eItem.detail"
  6862. :placeholder="lang.ssFillDimDesc"
  6863. ></textarea>
  6864. </div>
  6865. </div>
  6866. </div>
  6867. <div class="addToolFun" @click="addRateList()">
  6868. <div class="addToolImg">
  6869. <img src="../../../assets/icon/add.png" alt />
  6870. </div>
  6871. <div>{{ lang.ssAdd }}</div>
  6872. </div>
  6873. </div>
  6874. </div>
  6875. <span slot="footer" class="dialog-footer">
  6876. <el-button @click="dialogVisibleRate = false">{{ lang.ssCancel }}</el-button>
  6877. <el-button type="primary" @click="addRateAnswer">{{ lang.ssConfirm }}</el-button>
  6878. </span>
  6879. </el-dialog>
  6880. <el-dialog
  6881. :title="lang.ssSortSet"
  6882. :visible.sync="dialogVisibleSentence"
  6883. :append-to-body="true"
  6884. width="1000px"
  6885. :before-close="
  6886. (done) => {
  6887. closePan(47);
  6888. }
  6889. "
  6890. class="dialog_diy dialog_diy3 fullStyle"
  6891. >
  6892. <div style="height: 100%">
  6893. <div class="sentenBox" style="height: 100%">
  6894. <div class="addSen" @click="addSt">{{ lang.ssAddQues2 }}</div>
  6895. <div
  6896. v-for="(st, stIndex) in sentenceList"
  6897. :key="stIndex"
  6898. class="sentenContent"
  6899. >
  6900. <div class="sentenTopBox">
  6901. <div class="sentenTop" :index="stIndex + 1">
  6902. <div>{{ lang.ssQuesSet }}</div>
  6903. <div>
  6904. <el-input
  6905. :placeholder="lang.ssEnterCard"
  6906. v-model="st.sentenceTitle"
  6907. :maxlength="10"
  6908. ></el-input>
  6909. </div>
  6910. <div @click="addSen(stIndex)">{{ lang.ssAdd }}</div>
  6911. <div
  6912. class="remove1"
  6913. v-if="sentenceList.length > 1"
  6914. @click="deleteSentence(stIndex)"
  6915. ></div>
  6916. </div>
  6917. </div>
  6918. <div class="cardList">
  6919. <div v-if="st.addSentence.length > 0" class="cardBox">
  6920. <div
  6921. class="isCard"
  6922. v-for="(s, sIndex) in st.addSentence"
  6923. :key="sIndex"
  6924. @click="setRightAnswer(s, stIndex, sIndex)"
  6925. >
  6926. <el-tooltip
  6927. class="item"
  6928. effect="light"
  6929. :content="s"
  6930. placement="top"
  6931. >
  6932. <div>{{ s }}</div>
  6933. </el-tooltip>
  6934. <div
  6935. class="deleteWord"
  6936. @click.stop="deleteS(s, stIndex, sIndex)"
  6937. >
  6938. <img src="../../../assets/icon/delete.png" alt="" />
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div class="card">
  6943. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  6944. </div>
  6945. </div>
  6946. <div class="rightCardBox">
  6947. <div>{{ lang.ssCorrectOrder }}</div>
  6948. <div class="rightCardList">
  6949. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6950. <div
  6951. v-for="(r, rIndex) in st.rightAnswer"
  6952. :key="rIndex"
  6953. class="cardCss"
  6954. >
  6955. <div
  6956. class="isCard1"
  6957. @click="returnCard(r, stIndex, rIndex)"
  6958. >
  6959. <el-tooltip
  6960. class="item"
  6961. effect="light"
  6962. :content="r"
  6963. placement="top"
  6964. >
  6965. <div>{{ r }}</div>
  6966. </el-tooltip>
  6967. </div>
  6968. <div>{{ rIndex + 1 }}</div>
  6969. </div>
  6970. </div>
  6971. <div class="card" v-if="st.rightAnswer.length == 0">
  6972. <img
  6973. src="../../../assets/icon/conSentences/noAnswer.png"
  6974. alt=""
  6975. />
  6976. </div>
  6977. <div class="card" v-else>
  6978. <img
  6979. src="../../../assets/icon/conSentences/clickNo.png"
  6980. alt=""
  6981. />
  6982. </div>
  6983. </div>
  6984. </div>
  6985. </div>
  6986. </div>
  6987. </div>
  6988. <span slot="footer" class="dialog-footer">
  6989. <el-button @click="closePan(47)">{{ lang.ssCancel }}</el-button>
  6990. <el-button type="primary" @click="addSentenceTool">{{ lang.ssConfirm }}</el-button>
  6991. </span>
  6992. </el-dialog>
  6993. <el-dialog
  6994. :title="lang.ssAddTable"
  6995. :visible.sync="dialogVisibleTable"
  6996. :append-to-body="true"
  6997. width="95%"
  6998. :before-close="handleClose"
  6999. class="dialog_diy"
  7000. >
  7001. <el-form>
  7002. <!-- <el-form-item label="文本标题">
  7003. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  7004. </el-form-item> -->
  7005. <div>{{ lang.ssTableContent }}</div>
  7006. <Table v-model="tableJson.text" @change="change"></Table>
  7007. </el-form>
  7008. <span slot="footer" class="dialog-footer">
  7009. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  7010. <el-button type="primary" @click="addTableJson">lang.ssConfirm</el-button> -->
  7011. <el-button type="primary" @click="addTableJson">{{ lang.ssUploadTemp }}</el-button>
  7012. </span>
  7013. </el-dialog>
  7014. <el-dialog
  7015. :title="lang.ssAddDoc"
  7016. :visible.sync="dialogVisibleWord"
  7017. :append-to-body="true"
  7018. width="95%"
  7019. :before-close="handleClose"
  7020. class="dialog_diy"
  7021. >
  7022. <el-form>
  7023. <!-- <el-form-item label="文本标题">
  7024. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  7025. </el-form-item> -->
  7026. <div>{{ lang.ssDocContent }}</div>
  7027. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  7028. </el-form>
  7029. <span slot="footer" class="dialog-footer">
  7030. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  7031. <el-button type="primary" @click="addWordJson">{{ lang.ssUploadTemp }}</el-button>
  7032. </span>
  7033. </el-dialog>
  7034. <el-dialog
  7035. :title="lang.ssAddClass"
  7036. :visible.sync="dialogVisibleMoreUpload"
  7037. :append-to-body="true"
  7038. width="30%"
  7039. :before-close="handleClose"
  7040. class="dialog_diy"
  7041. >
  7042. <div
  7043. style="
  7044. width: 100%;
  7045. display: flex;
  7046. flex-direction: row;
  7047. flex-wrap: nowrap;
  7048. align-items: center;
  7049. justify-content: center;
  7050. "
  7051. >
  7052. <div>{{ lang.ssClassColon }}</div>
  7053. <el-select multiple v-model="uploadJson" :placeholder="lang.ssSelect">
  7054. <el-option
  7055. v-for="item in classJuri"
  7056. :key="item.id"
  7057. :label="item.name"
  7058. :value="item.id"
  7059. >
  7060. </el-option>
  7061. </el-select>
  7062. </div>
  7063. <span slot="footer" class="dialog-footer">
  7064. <el-button @click="dialogVisibleMoreUpload = false">{{ lang.ssCancel }}</el-button>
  7065. <el-button type="primary" @click="addMoreUpload">{{ lang.ssConfirm }}</el-button>
  7066. </span>
  7067. </el-dialog>
  7068. <el-dialog
  7069. :title="lang.ssSetRandom"
  7070. :visible.sync="dialogVisibleInvite"
  7071. :append-to-body="true"
  7072. width="360px"
  7073. :before-close="handleClose"
  7074. class="dialog_diy"
  7075. >
  7076. <div
  7077. style="
  7078. width: 100%;
  7079. display: flex;
  7080. flex-direction: row;
  7081. flex-wrap: nowrap;
  7082. align-items: center;
  7083. justify-content: center;
  7084. "
  7085. >
  7086. <div>{{ lang.ssRandomColon }}</div>
  7087. <el-input
  7088. v-model="icode"
  7089. style="width: 240px"
  7090. :placeholder="lang.ssEnterRandom"
  7091. ></el-input>
  7092. </div>
  7093. <span slot="footer" class="dialog-footer">
  7094. <el-button @click="dialogVisibleInvite = false">{{ lang.ssCancel }}</el-button>
  7095. <el-button type="primary" @click="addInvite">{{ lang.ssConfirm }}</el-button>
  7096. </span>
  7097. </el-dialog>
  7098. <el-dialog
  7099. :title="lang.ssAddPreTime"
  7100. :visible.sync="dialogVisiblePreTime"
  7101. :append-to-body="true"
  7102. width="450px"
  7103. :before-close="handleClose"
  7104. class="dialog_diy"
  7105. >
  7106. <div>
  7107. <div style="margin-bottom: 20px; color: #999">
  7108. {{ lang.ssTipClick }}
  7109. </div>
  7110. <Time
  7111. :preTime="preTime"
  7112. @updateTimeNum="updateTime"
  7113. v-if="dialogVisiblePreTime"
  7114. ></Time>
  7115. </div>
  7116. <span slot="footer" class="dialog-footer">
  7117. <el-button @click="dialogVisiblePreTime = false">{{ lang.ssCancel }}</el-button>
  7118. <el-button type="primary" @click="addPreTime">{{ lang.ssConfirm }}</el-button>
  7119. </span>
  7120. </el-dialog>
  7121. <el-dialog
  7122. :title="lang.ssImportTarget"
  7123. :visible.sync="dialogVisiblemb"
  7124. :append-to-body="true"
  7125. width="70%"
  7126. :before-close="handleClose"
  7127. class="dialog_diy"
  7128. >
  7129. <div>
  7130. <div
  7131. style="
  7132. width: 100%;
  7133. display: flex;
  7134. flex-direction: row;
  7135. flex-wrap: nowrap;
  7136. align-content: center;
  7137. align-items: center;
  7138. justify-content: space-between;
  7139. "
  7140. >
  7141. <div
  7142. style="
  7143. display: flex;
  7144. flex-flow: row nowrap;
  7145. align-items: flex-start;
  7146. width: 100%;
  7147. flex-direction: column;
  7148. flex-wrap: nowrap;
  7149. position: relative;
  7150. "
  7151. >
  7152. <div class="e_box">
  7153. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  7154. <div class="e_card_picture">
  7155. <img src="../../../assets/e_picture.png" />
  7156. </div>
  7157. <div class="e_card_name">
  7158. <span>{{ item.title }}</span>
  7159. </div>
  7160. <div class="e_card_btn">
  7161. <span @click="checkEva(item.id, 2)">导入</span>
  7162. </div>
  7163. </div> -->
  7164. <!-- <div class="addEva" @click="openT">
  7165. <img src="../../../assets/icon/addEva.png" alt="" />
  7166. </div> -->
  7167. <div
  7168. style="
  7169. display: flex;
  7170. justify-content: flex-end;
  7171. margin-bottom: 10px;
  7172. "
  7173. >
  7174. <el-button @click="openT" type="primary" size="small"
  7175. >{{ lang.ssAddTarget }}</el-button
  7176. >
  7177. </div>
  7178. <el-table
  7179. v-if="evaJuri.length"
  7180. ref="table"
  7181. :data="evaJuri"
  7182. border
  7183. :fit="true"
  7184. style="width: 100%"
  7185. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  7186. :row-class-name="tableRowClassName"
  7187. >
  7188. <el-table-column
  7189. :label="lang.ssTargetName"
  7190. min-width="15"
  7191. align="center"
  7192. prop="title"
  7193. >
  7194. </el-table-column>
  7195. <el-table-column
  7196. prop="username"
  7197. :label="lang.ssOwner"
  7198. min-width="15"
  7199. align="center"
  7200. >
  7201. </el-table-column>
  7202. <el-table-column :label="lang.ssAction" width="250px">
  7203. <template slot-scope="scope">
  7204. <div class="btnBox">
  7205. <el-button
  7206. type="primary"
  7207. size="small"
  7208. @click="checkEva(scope.row.id, 2)"
  7209. >{{ lang.ssImport }}</el-button
  7210. >
  7211. </div>
  7212. </template>
  7213. </el-table-column>
  7214. </el-table>
  7215. <div
  7216. v-if="evaJuri.length === 0"
  7217. style="margin: 0 auto; color: #6e6e6e"
  7218. >
  7219. {{ lang.ssNoData }}
  7220. </div>
  7221. </div>
  7222. </div>
  7223. </div>
  7224. </div>
  7225. <span slot="footer" class="dialog-footer">
  7226. <el-button @click="dialogVisiblemb = false">{{ lang.ssCancel }}</el-button>
  7227. </span>
  7228. </el-dialog>
  7229. <el-dialog
  7230. :title="lang.ssGroupSet"
  7231. :visible.sync="dialogVisibleGroup"
  7232. :append-to-body="true"
  7233. width="650px"
  7234. :before-close="handleClose"
  7235. class="dialog_diy"
  7236. >
  7237. <div class="groupBox">
  7238. <div v-if="groupJson.group" class="groupContent">
  7239. <div class="groupTitle">{{ lang.ssSetGroupNum }}</div>
  7240. <div
  7241. v-for="(item, index) in groupJson.group"
  7242. :key="index"
  7243. class="groupName"
  7244. >
  7245. <span class="groupn">{{ lang.ssGroupName.replace(/\*/g, (index + 1).toString()) }}</span>
  7246. <el-input
  7247. v-model="item.name"
  7248. :placeholder="lang.ssEnterName2"
  7249. style="width: 250px"
  7250. ></el-input>
  7251. <div class="groupBtn">
  7252. <el-button
  7253. type="primary"
  7254. size="small"
  7255. @click="addGroup(index)"
  7256. v-if="groupJson.group.length - 1 == index"
  7257. >
  7258. {{ lang.ssAdd }}</el-button
  7259. >
  7260. <el-button
  7261. type="primary"
  7262. size="small"
  7263. @click="deleteGroup(index)"
  7264. v-if="groupJson.group && groupJson.group.length > 1"
  7265. >{{ lang.ssDelete }}</el-button
  7266. >
  7267. </div>
  7268. </div>
  7269. </div>
  7270. <div class="groupContent">
  7271. <div class="groupTitle">{{ lang.ssSetGroupPer }}</div>
  7272. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7273. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7274. <el-input
  7275. v-model="groupJson.number"
  7276. style="width: 150px"
  7277. :placeholder="lang.ssEnterNum"
  7278. @change="numberPan"
  7279. ></el-input>
  7280. </div>
  7281. </div>
  7282. <span slot="footer" class="dialog-footer">
  7283. <el-button @click="dialogVisibleGroup = false">{{ lang.ssCancel }}</el-button>
  7284. <el-button type="primary" @click="addGroupJson">{{ lang.ssConfirm }}</el-button>
  7285. </span>
  7286. </el-dialog>
  7287. <el-dialog
  7288. :title="lang.ssModifyName"
  7289. :visible.sync="dialogVisibleupdataVideoT"
  7290. :append-to-body="true"
  7291. width="500px"
  7292. :before-close="handleClose"
  7293. class="dialog_diy"
  7294. >
  7295. <div
  7296. style="
  7297. width: 100%;
  7298. display: flex;
  7299. flex-direction: row;
  7300. flex-wrap: nowrap;
  7301. align-items: center;
  7302. justify-content: center;
  7303. "
  7304. >
  7305. <div style="min-width: fit-content">{{ lang.ssFileNameColon }}</div>
  7306. <el-input v-model="line" :placeholder="lang.ssEnterModifyName"></el-input>
  7307. </div>
  7308. <span slot="footer" class="dialog-footer">
  7309. <el-button @click="dialogVisibleupdataVideoT = false">{{ lang.ssCancel }}</el-button>
  7310. <el-button type="primary" @click="updataVideoC">{{ lang.ssConfirmBtn }}</el-button>
  7311. </span>
  7312. </el-dialog>
  7313. <el-dialog
  7314. :title="lang.ssCreateEssay"
  7315. :visible.sync="englishDialogVisible"
  7316. :append-to-body="true"
  7317. width="800px"
  7318. :before-close="
  7319. (done) => {
  7320. closePan(69);
  7321. }
  7322. "
  7323. class="dialog_diy fullStyle fullStyle1"
  7324. >
  7325. <englishRight
  7326. :englishList="englishList"
  7327. :oid="oid"
  7328. ref="engJson"
  7329. @setJson="addEnglish"
  7330. ></englishRight>
  7331. <span slot="footer" class="dialog-footer">
  7332. <el-button @click="englishDialogVisible = false">{{ lang.ssCancel }}</el-button>
  7333. <el-button type="primary" @click="addEnglish">{{ lang.ssConfirm }}</el-button>
  7334. </span>
  7335. </el-dialog>
  7336. <el-dialog
  7337. :title="lang.ssSelectTemplate"
  7338. :visible.sync="templateDialog"
  7339. :append-to-body="true"
  7340. width="630px"
  7341. :before-close="handleClose"
  7342. class="dialog_diy"
  7343. >
  7344. <div class="template_box">
  7345. <div
  7346. class="wordTeacher"
  7347. v-for="(aa, indexF) in templateArray"
  7348. :key="indexF"
  7349. @click="checkctJson(aa)"
  7350. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7351. >
  7352. <div class="wordPic">
  7353. <img src="../../../assets/icon/new/course_template.png" alt />
  7354. </div>
  7355. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7356. <div
  7357. style="
  7358. margin-top: 10px;
  7359. line-height: 19px;
  7360. overflow: hidden;
  7361. text-overflow: ellipsis;
  7362. white-space: nowrap;
  7363. padding: 0 10px;
  7364. box-sizing: border-box;
  7365. width: 100%;
  7366. "
  7367. >
  7368. {{ aa.title }}
  7369. </div>
  7370. </el-tooltip>
  7371. </div>
  7372. <div
  7373. class="wordTeacher"
  7374. @click="checkctJson({ id: 1 })"
  7375. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7376. :class="{ wordTeacherA: ctJson.id == 1 }"
  7377. >
  7378. <div class="wordPic">
  7379. <img src="../../../assets/icon/new/course_template.png" alt />
  7380. </div>
  7381. <div
  7382. style="
  7383. margin-top: 10px;
  7384. line-height: 19px;
  7385. overflow: hidden;
  7386. text-overflow: ellipsis;
  7387. white-space: nowrap;
  7388. padding: 0 20px;
  7389. "
  7390. >
  7391. {{ lang.ssSimpleTemp }}
  7392. </div>
  7393. </div>
  7394. <div
  7395. class="wordTeacher"
  7396. @click="checkctJson({ id: 2 })"
  7397. v-if="isPasteStage"
  7398. :class="{ wordTeacherA: ctJson.id == 2 }"
  7399. >
  7400. <div class="wordPic">
  7401. <img src="../../../assets/icon/new/course_template.png" alt />
  7402. </div>
  7403. <div
  7404. style="
  7405. margin-top: 10px;
  7406. line-height: 19px;
  7407. overflow: hidden;
  7408. text-overflow: ellipsis;
  7409. white-space: nowrap;
  7410. padding: 0 20px;
  7411. "
  7412. >
  7413. {{ lang.ssSmartPasteMode }}
  7414. </div>
  7415. </div>
  7416. </div>
  7417. <span slot="footer" class="dialog-footer">
  7418. <el-button @click="templateDialog = false">取 消</el-button>
  7419. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7420. </span>
  7421. </el-dialog>
  7422. <interVideo
  7423. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7424. :videoJson="videoJson"
  7425. @add="addVideoJson"
  7426. ></interVideo>
  7427. <el-dialog
  7428. :title="lang.ssChangeStage"
  7429. :visible.sync="dialogVisibleStageChange"
  7430. :append-to-body="true"
  7431. width="400px"
  7432. :before-close="handleClose"
  7433. class="dialog_diy dialog_diyStage"
  7434. >
  7435. <div class="change_stageBox">
  7436. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7437. <div class="nt_taskBox">
  7438. <div class="nt_taskTitle">{{ lang.ssStage.replace(/\*/g, (tIndex + 1).toString()) }}</div>
  7439. <div class="nt_taskName">
  7440. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7441. <span>{{ t.dyName }}</span>
  7442. </el-tooltip>
  7443. </div>
  7444. </div>
  7445. <div class="moveBtn" v-if="unitJson3.length > 1">
  7446. <div
  7447. class="chapter_upload_up"
  7448. @click.stop="stageMove(1, tIndex)"
  7449. ></div>
  7450. <div
  7451. class="chapter_upload_down"
  7452. @click.stop="stageMove(2, tIndex)"
  7453. ></div>
  7454. </div>
  7455. </div>
  7456. </div>
  7457. <span slot="footer" class="dialog-footer">
  7458. <el-button @click="dialogVisibleStageChange = false">{{ lang.ssCancel }}</el-button>
  7459. <el-button type="primary" @click="updateChange">{{ lang.ssConfirm }}</el-button>
  7460. </span>
  7461. </el-dialog>
  7462. <el-dialog
  7463. :title="lang.ssAddResTemp"
  7464. :visible.sync="cetBoxDialog"
  7465. :append-to-body="true"
  7466. width="400px"
  7467. :before-close="handleClose"
  7468. class="dialog_diy"
  7469. >
  7470. <div class="addTypeChoose" style="justify-content: center">
  7471. <div style="min-width: 100px">{{ lang.ssTempName }}</div>
  7472. <el-input v-model="templateName" style="width: 200px"></el-input>
  7473. </div>
  7474. <div class="addTypeBox">
  7475. <div class="addTypeChoose">
  7476. <div style="min-width: 100px">{{ lang.ssSelectOne }}</div>
  7477. <el-select
  7478. v-model="setTypeJson.one"
  7479. :placeholder="lang.ssSelect"
  7480. @change="getTwoType(setTypeJson.one)"
  7481. style="width: 200px"
  7482. >
  7483. <el-option
  7484. v-for="(item, index) in oneJson"
  7485. :key="index"
  7486. :label="item.name"
  7487. :value="item.id"
  7488. >
  7489. </el-option>
  7490. </el-select>
  7491. </div>
  7492. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7493. <div style="min-width: 100px">{{ lang.ssSelectTwo }}</div>
  7494. <el-select
  7495. v-model="setTypeJson.two"
  7496. :placeholder="lang.ssSelect"
  7497. style="width: 200px"
  7498. >
  7499. <el-option
  7500. v-for="(item1, index1) in twoJson"
  7501. :key="index1"
  7502. :label="item1.name"
  7503. :value="item1.id"
  7504. >
  7505. </el-option>
  7506. </el-select>
  7507. </div>
  7508. </div>
  7509. <span slot="footer" class="dialog-footer">
  7510. <el-button type="primary" @click="addCETemplate()">{{ lang.ssConfirm2 }}</el-button>
  7511. <el-button @click="close()">{{ lang.ssClose }}</el-button>
  7512. </span>
  7513. </el-dialog>
  7514. <evaBox
  7515. :userid="userid"
  7516. :oid="oid"
  7517. :org="org"
  7518. :dialogVisibleEva.sync="evaBoxDialog"
  7519. @updateEvaJson="updateEvaJson"
  7520. ></evaBox>
  7521. <EnglishVoice
  7522. :oid="oid"
  7523. :org="org"
  7524. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7525. :englishVoiceJson="englishVoiceJson"
  7526. @setEnglishVoiceJson="setEnglishVoiceJson"
  7527. ></EnglishVoice>
  7528. <appDialog ref="appDialog" @success="selectAppSuccess"></appDialog>
  7529. <CodeEditor ref="CodeEditorRef" @success="addHtmlSuccess"></CodeEditor>
  7530. <selectHtmlPageDialog ref="selectHtmlPageDialogRef" @success="selectHtmlPageSuccess"/>
  7531. </div>
  7532. </template>
  7533. <script>
  7534. import "../../../common/aws-sdk-2.235.1.min.js";
  7535. import { tools as toolsData } from "../../../common/tools.js";
  7536. // import "../../../common/aws-sdk-2.99.0.min.js";
  7537. import $ from "jquery";
  7538. import EditorBar from "../../../components/tools/wangEnduit";
  7539. import Table from "../../../components/tools/table";
  7540. import Mind from "../../tools/jsmind2";
  7541. import Time from "../../tools/time.vue";
  7542. import Sunburst from "../../tools/sunburst";
  7543. import SeeBoard from "../../tools/seeBoard";
  7544. import weilaiData from "../components/weilai.js";
  7545. import sourceDialog from "../teacherSource/dialog.vue";
  7546. import interVideo from "../interVideo/index.vue";
  7547. import englishRight from "../components/englishRight.vue";
  7548. import evaBox from "../evaBox/index.vue";
  7549. import EnglishVoice from "../EnglishVoice/index.vue";
  7550. import appDialog from '../components/appDialog.vue'
  7551. import { myMixin } from "@/mixins/mixin.js"
  7552. import CodeEditor from "../components/CodeEditor";
  7553. import { uploadFileMixin } from "../../tools/uploadFileMixin.js";
  7554. var OpenCC = require("opencc-js");
  7555. let converter = OpenCC.Converter({
  7556. from:'hk',
  7557. to:'cn'
  7558. })
  7559. import JSZip from 'jszip'
  7560. import selectHtmlPageDialog from '../dialog/selectHtmlPageDialog.vue'
  7561. export default {
  7562. mixins: [ myMixin,uploadFileMixin ],
  7563. components: {
  7564. CodeEditor,
  7565. EditorBar,
  7566. Mind,
  7567. Time,
  7568. Sunburst,
  7569. SeeBoard,
  7570. Table,
  7571. sourceDialog,
  7572. interVideo,
  7573. englishRight,
  7574. evaBox,
  7575. EnglishVoice,
  7576. appDialog,
  7577. selectHtmlPageDialog,
  7578. },
  7579. data() {
  7580. return {
  7581. gotype:(window.topU && window.topU.gotype) ? window.topU.gotype : '',
  7582. checkAll: false,
  7583. checkAll2: false,
  7584. chooseType: 1,
  7585. checkedCities: [],
  7586. isIndeterminate: true,
  7587. isIndeterminate2: true,
  7588. isSysPic: false,
  7589. isSysPic2: false,
  7590. steps: 1,
  7591. nbOrder: 0,
  7592. courseId: "",
  7593. chapToolsType: 0,
  7594. chapTools: [
  7595. {
  7596. tools: [],
  7597. toolDetail: "",
  7598. },
  7599. ],
  7600. line: "",
  7601. lineTitle: "",
  7602. sysPic: [],
  7603. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7604. sentenceList2: [],
  7605. isPushTitleList: [],
  7606. lineCount: 0,
  7607. lineType: 0,
  7608. chapCount: 0,
  7609. courseName: "",
  7610. isTeacherSee: false,
  7611. highSetting: false,
  7612. courseText: "",
  7613. preTime: 0,
  7614. formLabelWidth: "100px",
  7615. choosePicVisible: false,
  7616. sysPicVisible: false,
  7617. sysPicVisible2: false,
  7618. uploadLoading1: false,
  7619. noneBtnImg: false,
  7620. updateBoolean2: false,
  7621. unitIndex: 0,
  7622. taskCount: 0,
  7623. dialogVisible: false,
  7624. dialogVisible1: false,
  7625. dialogVisible2: false,
  7626. dialogVisible3: false,
  7627. dialogVisible4: false,
  7628. dialogVisible5: false,
  7629. dialogVisible6: false,
  7630. dialogVisible7: false,
  7631. dialogVisible8: false,
  7632. dialogVisible9: false,
  7633. dialogVisibleClass: false,
  7634. dialogVisibleMember: false,
  7635. dialogVisibleMp3: false,
  7636. dialogVisibleSelect: false,
  7637. dialogVisibleSentence: false,
  7638. dialogVisibleRate: false,
  7639. dialogVisibleChoice: false,
  7640. dialogVisiblemb: false,
  7641. dialogVisibleInvite: false,
  7642. dialogVisibleSource: false,
  7643. dialogVisibleVideo: false,
  7644. dialogVisibleStageChange: false,
  7645. dialogVisibleupdataVideoT: false,
  7646. englishDialogVisible: false,
  7647. templateDialog: false,
  7648. ctJson: {},
  7649. isClickColor: 1,
  7650. toolIndexType: "",
  7651. publicTool: 0,
  7652. searchPeople: "",
  7653. searchTN: "",
  7654. collid: '',
  7655. CollLoading: false,
  7656. userid: this.$route.query.userid,
  7657. oid: this.$route.query.oid,
  7658. org: this.$route.query.org,
  7659. role: this.$route.query.role,
  7660. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7661. dialogVisibleTable: false,
  7662. dialogVisibleWord: false,
  7663. tableJson: { text: "" },
  7664. wordJson: { text: "" },
  7665. dialogVisibleMoreUpload: false,
  7666. dialogVisiblePreTime: false,
  7667. uploadJson: [],
  7668. classJuri: [],
  7669. gradeList: [],
  7670. cover: [], //课程封面
  7671. myWord: [],
  7672. evaJuri: [],
  7673. evalua: "",
  7674. targetArray: [],
  7675. eTitle: "",
  7676. eJson: {},
  7677. fid: "", //一级
  7678. sid: "", //二级
  7679. tid: "", //二级
  7680. typeMode: 1,
  7681. eJSONNum: 0,
  7682. data: {
  7683. meta: {
  7684. name: "example",
  7685. author: "dd@163.com",
  7686. version: "0.2",
  7687. },
  7688. format: "node_array",
  7689. data: [{ id: "root", isroot: true, topic: "" }],
  7690. },
  7691. askJson: {
  7692. askCount: 1,
  7693. askTitle: "",
  7694. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7695. },
  7696. askJson2: {},
  7697. testJson: {},
  7698. testJson2: {},
  7699. selectJson: {},
  7700. selectJson2: {},
  7701. rateJson: [],
  7702. unitJson2: [],
  7703. unitJson3: [],
  7704. unitJson: [
  7705. {
  7706. dyName: "", //单元标题
  7707. chapterInfo: [
  7708. {
  7709. isread: false,
  7710. chapterid: this.guid(),
  7711. title: "",
  7712. courseName: "",
  7713. taskJson: [
  7714. {
  7715. task: "",
  7716. taskDetail: "",
  7717. chapterData: [],
  7718. toolText: "",
  7719. toolChoose: [
  7720. {
  7721. tool: [],
  7722. toolDetail: "",
  7723. toolType: 0,
  7724. askCount: 1,
  7725. askTitle: "",
  7726. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7727. },
  7728. ],
  7729. isShowTools: false,
  7730. askCount: 1,
  7731. isFold: 1,
  7732. askTitle: "",
  7733. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7734. checkJson: [{ checkCount: [], checkPerent: [] }],
  7735. homeworkList: [],
  7736. },
  7737. ],
  7738. itemCount: 1,
  7739. fileList1: [],
  7740. video: [],
  7741. testData: [],
  7742. pData: [],
  7743. templateArray: [],
  7744. },
  7745. ],
  7746. },
  7747. ],
  7748. templateArray: [],
  7749. studentJuri: [],
  7750. teacherJuri: [],
  7751. CollaborativeTeaList: [],
  7752. checkboxList: [],
  7753. checkboxList2: [],
  7754. checkboxList3: [],
  7755. classSearch: "",
  7756. gradeId: "",
  7757. number: "",
  7758. tTitle: "",
  7759. tdetail: "",
  7760. templateC: {},
  7761. AttText: {},
  7762. AttTextType: 0,
  7763. AttTextIndex: 0,
  7764. cTemplate: "",
  7765. CourseType: [],
  7766. CourseType1: [],
  7767. CourseType2: [],
  7768. CourseTypeJson: {},
  7769. CourseTypeJson1: {},
  7770. courseTypeId: [],
  7771. courseTypeId1: [],
  7772. courseTypeSon: [],
  7773. clearArray: [],
  7774. pTypeCheck: [],
  7775. pTypeCheckName: [],
  7776. loading: false,
  7777. toolType: 0,
  7778. inputShow: true,
  7779. inputShow2: true,
  7780. toolIndex: 0,
  7781. cidType: 0,
  7782. answerQ: "",
  7783. answerQ2: "",
  7784. grade: [],
  7785. grade2: [],
  7786. courseUserid: "",
  7787. timer: null,
  7788. timer2: null,
  7789. pasteTimer: null,
  7790. checkId: "",
  7791. isDelete: 1,
  7792. addindex: 0,
  7793. selectSteps: 1,
  7794. groupJson: {},
  7795. dialogVisibleGroup: false,
  7796. rightBoxHeight: 10,
  7797. ManAarray: [],
  7798. checkBoolean: false,
  7799. inviteCode: [],
  7800. inviteId: "",
  7801. icode: "",
  7802. easyArray: [2, 4],
  7803. sourceData: {},
  7804. updateSourcePan: false,
  7805. videoJson: {},
  7806. isBtnDisplay: false,
  7807. isStepDisplay: false,
  7808. isPasteStage: false,
  7809. isPasteTask: false,
  7810. isPasteChoice: false,
  7811. imageList: [],
  7812. imageloading: false,
  7813. searchImageValue: "",
  7814. ppage: 1,
  7815. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  7816. oldIndex: 0,
  7817. dragType: "",
  7818. oldUnitIndex: 0,
  7819. oldData: null,
  7820. newIndex: "",
  7821. englishList: {},
  7822. typeIndex: "",
  7823. courseState: 2,
  7824. taskJSONa: [
  7825. {
  7826. task: "",
  7827. taskDetail: "",
  7828. chapterData: [],
  7829. toolText: "",
  7830. toolChoose: [
  7831. {
  7832. tool: [],
  7833. toolDetail: "",
  7834. toolType: 0,
  7835. askCount: 1,
  7836. askTitle: "",
  7837. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7838. },
  7839. ],
  7840. isShowTools: false,
  7841. askCount: 1,
  7842. isFold: 1,
  7843. askTitle: "",
  7844. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7845. checkJson: [{ checkCount: [], checkPerent: [] }],
  7846. homeworkList: [],
  7847. },
  7848. ],
  7849. checkUnitIndex: 0,
  7850. isdrag: "",
  7851. evaIndex: "",
  7852. evatIndex: "",
  7853. evaBoxDialog: false,
  7854. EnglishVoiceDialog: false,
  7855. englishVoiceJson: {},
  7856. cetIndex: "",
  7857. cettIndex: "",
  7858. cetBoxDialog: false,
  7859. templateName: "",
  7860. setTypeJson: {
  7861. one: "",
  7862. two: "",
  7863. },
  7864. twoJson: [],
  7865. oneJson: [],
  7866. updateKey:1,
  7867. optionTypeList:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'],
  7868. changeId:"",
  7869. // 荔园集团下的学校
  7870. mergedList: [
  7871. "3823a6a5-1b6e-11f0-a66a-005056924926",
  7872. "292e34dc-1b6e-11f0-a66a-005056924926",
  7873. "21d6b367-1b6e-11f0-a66a-005056924926",
  7874. "1a1a172d-1b6e-11f0-a66a-005056924926",
  7875. "1197f86b-1b6e-11f0-a66a-005056924926",
  7876. "f235659b-1b6d-11f0-a66a-005056924926",
  7877. "d87b62d3-1b6d-11f0-a66a-005056924926",
  7878. "c25ea59b-1b6d-11f0-a66a-005056924926",
  7879. ],
  7880. };
  7881. },
  7882. directives: {
  7883. autoHeight: {
  7884. update(el, binding) {
  7885. const { value } = binding;
  7886. if (value && typeof value === "number") {
  7887. el.style.height = `${value}px`;
  7888. } else {
  7889. el.style.height = "auto";
  7890. }
  7891. },
  7892. componentUpdated(el) {
  7893. el.style.height = `${el.scrollHeight + 5}px`;
  7894. },
  7895. },
  7896. },
  7897. computed: {
  7898. // rightBoxHeight: function () {
  7899. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7900. // },
  7901. offsetLetfPx: function () {
  7902. //addnum可以直接在模板语法里面用,相当于data内的值
  7903. return (
  7904. $(".cru_select")[this.unitIndex] &&
  7905. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7906. );
  7907. },
  7908. getMan2() {
  7909. return function (people) {
  7910. let _people = people;
  7911. let _people2 = "";
  7912. if (this.ManAarray.length) {
  7913. _people2 = this.ManAarray.find(man => man.userid === people).name || "";
  7914. }
  7915. if (people === this.courseUserid) {
  7916. return "";
  7917. }
  7918. return _people2;
  7919. };
  7920. },
  7921. getListMan2() {
  7922. return function (list) {
  7923. console.log('getListMan2',list);
  7924. let _people2 = [];
  7925. if (this.ManAarray.length) {
  7926. list.slice(0, 10).forEach(people => {
  7927. let name = this.ManAarray.find(man => man.userid === people && people !== this.courseUserid).name || "";
  7928. if (name) {
  7929. _people2.push(name);
  7930. }
  7931. });
  7932. }
  7933. return _people2.join("、");
  7934. };
  7935. },
  7936. isInvite() {
  7937. return function (cid) {
  7938. let array = [];
  7939. for (var i = 0; i < this.inviteCode.length; i++) {
  7940. array.push(this.inviteCode[i].cid);
  7941. }
  7942. return array.indexOf(cid) != -1;
  7943. };
  7944. },
  7945. getInviteCodeC() {
  7946. return function (cid) {
  7947. let array = [];
  7948. for (var i = 0; i < this.inviteCode.length; i++) {
  7949. array.push(this.inviteCode[i].cid);
  7950. }
  7951. return this.inviteCode[array.indexOf(cid)].ic;
  7952. };
  7953. },
  7954. getClassC() {
  7955. return function (c) {
  7956. let _c2 = "";
  7957. if (this.grade.length) {
  7958. for (var i = 0; i < this.grade.length; i++) {
  7959. if (this.grade[i].id == c) {
  7960. _c2 = this.grade[i].name;
  7961. break;
  7962. }
  7963. }
  7964. }
  7965. return this.grade.length ? _c2 : "";
  7966. };
  7967. },
  7968. getListClassC() {
  7969. return function (list) {
  7970. let _c2 = [];
  7971. if (this.grade.length) {
  7972. for (var j = 0; j < list.length; j++) {
  7973. let c = list[j];
  7974. for (var i = 0; i < this.grade.length; i++) {
  7975. if (this.grade[i].id == c) {
  7976. _c2.push(this.grade[i].name);
  7977. break;
  7978. }
  7979. }
  7980. }
  7981. }
  7982. return this.grade.length ? _c2.join("、") : "";
  7983. };
  7984. },
  7985. },
  7986. watch: {
  7987. unitIndex(newValue, oldValue) {
  7988. if (this.isDelete == 2) {
  7989. this.isDelete = 1;
  7990. return;
  7991. }
  7992. if (this.cid != "") {
  7993. let _unitIndex = oldValue;
  7994. if (
  7995. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7996. JSON.stringify(this.unitJson[_unitIndex])
  7997. ) {
  7998. // this.$refs.rightboxR.scrollTop = 0;
  7999. return;
  8000. }
  8001. let cPan = 1;
  8002. for (
  8003. var j = 0;
  8004. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8005. j++
  8006. ) {
  8007. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8008. j
  8009. ].proVisible = false;
  8010. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8011. j
  8012. ].proVisible2 = false;
  8013. if (
  8014. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8015. .length > 1
  8016. ) {
  8017. for (
  8018. var z = 0;
  8019. z <
  8020. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8021. .length;
  8022. z++
  8023. ) {
  8024. if (
  8025. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  8026. .toolChoose[z].tool.length
  8027. ) {
  8028. this.$message.error(this.lang.ssAddToolFull);
  8029. cPan = 2;
  8030. break;
  8031. }
  8032. }
  8033. }
  8034. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8035. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8036. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8037. (ele) => {
  8038. return ele.value != "";
  8039. }
  8040. );
  8041. }
  8042. }
  8043. if (cPan == 2) {
  8044. this.unitIndex = oldValue;
  8045. return;
  8046. }
  8047. for (var i = 0; i < this.unitJson.length; i++) {
  8048. if (this.addindex != i) {
  8049. delete this.unitJson[i].isUpdate;
  8050. }
  8051. }
  8052. // this.$refs.rightboxR.scrollTop = 0;
  8053. this.addindex = -1;
  8054. let params = [
  8055. {
  8056. cid: this.cid,
  8057. chapters: JSON.stringify(this.unitJson),
  8058. uid: this.userid,
  8059. unitIndex: _unitIndex,
  8060. },
  8061. ];
  8062. this.ajax
  8063. .post(this.$store.state.api + "updateWorkNew4", params)
  8064. .then((res) => {
  8065. // this.$message({
  8066. // message: "修改成功",
  8067. // type: "success",
  8068. // });
  8069. // this.courseId = this.cid;
  8070. })
  8071. .catch((err) => {
  8072. this.$message.error(this.lang.ssNetPoor);
  8073. console.error(err);
  8074. });
  8075. }
  8076. },
  8077. steps(newValue, old) {
  8078. if(newValue === 0){
  8079. this.steps = 1
  8080. }
  8081. if (newValue == 4) {
  8082. let cPan = 1;
  8083. for (var i = 0; i < this.unitJson.length; i++) {
  8084. for (
  8085. var j = 0;
  8086. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8087. j++
  8088. ) {
  8089. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8090. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8091. if (
  8092. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8093. ) {
  8094. for (
  8095. var z = 0;
  8096. z <
  8097. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8098. z++
  8099. ) {
  8100. if (
  8101. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  8102. .tool.length
  8103. ) {
  8104. this.$message.error(this.lang.ssAddToolFull);
  8105. cPan = 2;
  8106. break;
  8107. }
  8108. }
  8109. }
  8110. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8111. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8112. i
  8113. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8114. return ele.value != "";
  8115. });
  8116. }
  8117. }
  8118. }
  8119. this.inputShow = true;
  8120. if (cPan == 2) {
  8121. this.steps = old;
  8122. return;
  8123. }
  8124. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  8125. try {
  8126. window.topU.U.UF.F.closeWindow(window.topU.$("#openCourseUpdate"));
  8127. } catch (error) {
  8128. }
  8129. }
  8130. this.goTo(
  8131. "/course?userid=" +
  8132. this.userid +
  8133. "&oid=" +
  8134. this.oid +
  8135. "&org=" +
  8136. this.org +
  8137. "&role=" +
  8138. this.role
  8139. );
  8140. }
  8141. },
  8142. },
  8143. methods: {
  8144. tableRowClassName({ row, rowIndex }) {
  8145. if ((rowIndex + 1) % 2 === 0) {
  8146. return "even_row";
  8147. } else {
  8148. return "";
  8149. }
  8150. },
  8151. close() {
  8152. this.cetIndex = "";
  8153. this.cettIndex = "";
  8154. this.templateName = "";
  8155. this.cetBoxDialog = false;
  8156. },
  8157. openAI() {
  8158. window.topU.postMessage({ tools: "64" }, "*");
  8159. },
  8160. setMan() {
  8161. // let teacherJuri = this.teacherJuri2;
  8162. this.ManAarray = [];
  8163. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  8164. if (_user.indexOf(this.userid) == -1) {
  8165. _user.push(this.userid);
  8166. }
  8167. if (_user.indexOf(this.courseUserid) == -1) {
  8168. _user.push(this.courseUserid);
  8169. }
  8170. let params = [{
  8171. uid: _user.join(","),
  8172. }];
  8173. this.ajax
  8174. .post(this.$store.state.api + "getAllUserByIdP", params)
  8175. .then((res) => {
  8176. let teacherJuri = res.data[0];
  8177. this.ManAarray = teacherJuri;
  8178. })
  8179. .catch((err) => {
  8180. console.error(err);
  8181. });
  8182. },
  8183. previewImg(url) {
  8184. this.$hevueImgPreview(url);
  8185. },
  8186. btnDisplay(bool) {
  8187. this.isBtnDisplay = bool;
  8188. },
  8189. stepDisplay(bool) {
  8190. this.isStepDisplay = bool;
  8191. },
  8192. scrollChange() {
  8193. // this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  8194. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  8195. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  8196. this.rightBoxHeight = height1 + height2
  8197. },
  8198. addHw(e) {
  8199. var el = e.currentTarget;
  8200. el.getElementsByTagName("input")[0].click();
  8201. },
  8202. change(val) {
  8203. if (this.dialogVisible1) {
  8204. this.tdetail = val;
  8205. } else if (this.dialogVisible6) {
  8206. this.AttText.text = val;
  8207. } else if (this.dialogVisible2) {
  8208. this.cTemplate = val;
  8209. } else if (this.dialogVisibleTable) {
  8210. this.tableJson.text = val;
  8211. }
  8212. this.$forceUpdate();
  8213. console.log(val);
  8214. },
  8215. change2(val) {
  8216. console.log(val);
  8217. this.$forceUpdate();
  8218. },
  8219. handleClose(done) {
  8220. done();
  8221. },
  8222. closePan(tool) {
  8223. if (tool == 15) {
  8224. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  8225. this.dialogVisible8 = false;
  8226. } else {
  8227. this.closeConfirm(tool);
  8228. }
  8229. } else if (tool == 4) {
  8230. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  8231. this.dialogVisible5 = false;
  8232. } else {
  8233. this.closeConfirm(tool);
  8234. }
  8235. } else if (tool == 45) {
  8236. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  8237. this.dialogVisibleChoice = false;
  8238. } else {
  8239. this.closeConfirm(tool);
  8240. }
  8241. } else if (tool == 41) {
  8242. if (
  8243. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8244. ) {
  8245. this.dialogVisibleSelect = false;
  8246. } else {
  8247. this.closeConfirm(tool);
  8248. }
  8249. } else if (tool == 47) {
  8250. if (
  8251. JSON.stringify(this.sentenceList) ==
  8252. JSON.stringify(this.sentenceList2)
  8253. ) {
  8254. this.dialogVisibleSentence = false;
  8255. } else {
  8256. this.closeConfirm(tool);
  8257. }
  8258. } else if (tool == 69) {
  8259. if (
  8260. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8261. ) {
  8262. this.englishDialogVisible = false;
  8263. } else {
  8264. this.closeConfirm(tool);
  8265. }
  8266. }
  8267. },
  8268. closeConfirm(tool) {
  8269. this.$confirm(this.lang.ssSaveEditContent, this.lang.ssTip, {
  8270. confirmButtonText: this.lang.ssSave,
  8271. cancelButtonText: this.lang.ssNotSave,
  8272. type: "warning",
  8273. })
  8274. .then(() => {
  8275. if (tool == 15) {
  8276. this.addAnswer();
  8277. } else if (tool == 4) {
  8278. this.addAsk();
  8279. } else if (tool == 45) {
  8280. this.addTest();
  8281. } else if (tool == 41) {
  8282. this.addSelectAnswer();
  8283. } else if (tool == 47) {
  8284. this.addSentenceTool();
  8285. } else if (tool == 69) {
  8286. this.addEnglish();
  8287. }
  8288. })
  8289. .catch(() => {
  8290. if (tool == 15) {
  8291. this.dialogVisible8 = false;
  8292. } else if (tool == 4) {
  8293. this.dialogVisible5 = false;
  8294. } else if (tool == 45) {
  8295. this.dialogVisibleChoice = false;
  8296. } else if (tool == 41) {
  8297. this.dialogVisibleSelect = false;
  8298. } else if (tool == 47) {
  8299. this.dialogVisibleSentence = false;
  8300. } else if (tool == 69) {
  8301. this.englishDialogVisible = false;
  8302. }
  8303. });
  8304. },
  8305. addEnglish(jsonType) {
  8306. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8307. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8308. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8309. if (
  8310. this.englishList.engTitle == "" ||
  8311. this.englishList.englishText == ""
  8312. ) {
  8313. this.$message.error(this.lang.ssFillComplete);
  8314. return;
  8315. }
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8317. this.taskCount
  8318. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8319. this.englishList = {};
  8320. if (jsonType && jsonType == 1) {
  8321. this.englishDialogVisible = true;
  8322. } else {
  8323. this.englishDialogVisible = false;
  8324. }
  8325. if (
  8326. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8327. .toolChoose[this.toolIndex].tool != 69
  8328. ) {
  8329. this.addTools(69, this.taskCount, this.toolIndex);
  8330. }
  8331. },
  8332. imgChange2(i, j) {
  8333. var _tmp = this.testJson.testJson[i].checkList[j];
  8334. this.noneBtnImg = _tmp.length >= 1;
  8335. },
  8336. imgChange3(i) {
  8337. var _tmp = this.testJson.testJson[i];
  8338. this.noneBtnImg = _tmp.length >= 1;
  8339. },
  8340. imgChange1(file, fileList, type, itemTaskIndex) {
  8341. if (type == 1) {
  8342. var _tmp = this.cover;
  8343. } else if (
  8344. type == 2 ||
  8345. type == 3 ||
  8346. type == 6 ||
  8347. type == 7 ||
  8348. type == 8
  8349. ) {
  8350. var _tmp =
  8351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8352. .chapterData;
  8353. } else if (type == 4) {
  8354. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8355. } else {
  8356. var _tmp =
  8357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8358. .homeworkList;
  8359. }
  8360. this.noneBtnImg = _tmp.length >= 1;
  8361. },
  8362. goTo(path) {
  8363. this.$router.push(path);
  8364. },
  8365. guid() {
  8366. var _num,
  8367. i,
  8368. _guid = "";
  8369. for (i = 0; i < 32; i++) {
  8370. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8371. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8372. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8373. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8374. _guid += "-";
  8375. }
  8376. }
  8377. return _guid;
  8378. },
  8379. retrunCourse() {
  8380. this.$confirm(this.lang.ssSaveEditContent, this.lang.ssTip, {
  8381. confirmButtonText: this.lang.ssSave,
  8382. cancelButtonText: this.lang.ssNotSave,
  8383. distinguishCancelAndClose: true,
  8384. type: "warning",
  8385. })
  8386. .then(() => {
  8387. if (this.cid == "" || this.cid == undefined) {
  8388. if (this.courseName == "") {
  8389. this.$message.error(this.lang.ssFillCourseName);
  8390. return;
  8391. } else {
  8392. this.addWork();
  8393. }
  8394. this.steps = 4;
  8395. } else {
  8396. if (this.courseName == "") {
  8397. this.$message.error(this.lang.ssFillCourseName);
  8398. return;
  8399. } else {
  8400. if (this.userid != this.courseUserid && this.role != "1") {
  8401. this.updateWork2();
  8402. } else {
  8403. this.updateWork();
  8404. }
  8405. this.steps = 4;
  8406. }
  8407. }
  8408. })
  8409. .catch((v) => {
  8410. console.log(v);
  8411. if (v == "cancel" && this.gotype == 'backCourseCon') {
  8412. this.goTo(
  8413. "/CourseCon?userid=" +
  8414. this.userid +
  8415. "&oid=" +
  8416. this.oid +
  8417. "&org=" +
  8418. this.org +
  8419. "&role=" +
  8420. this.role +
  8421. "&gotype=1"
  8422. );
  8423. }else if(v == "cancel"){
  8424. this.goTo(
  8425. "/course?userid=" +
  8426. this.userid +
  8427. "&oid=" +
  8428. this.oid +
  8429. "&org=" +
  8430. this.org +
  8431. "&role=" +
  8432. this.role
  8433. );
  8434. }
  8435. });
  8436. },
  8437. lastSteps() {
  8438. if (this.steps == 4) {
  8439. this.goTo(
  8440. "/course?userid=" +
  8441. this.userid +
  8442. "&oid=" +
  8443. this.oid +
  8444. "&org=" +
  8445. this.org +
  8446. "&role=" +
  8447. this.role
  8448. );
  8449. } else {
  8450. // if (this.cidType == 0) {
  8451. // this.steps--;
  8452. // if (this.steps == 1) {
  8453. // setTimeout(() => {
  8454. // this.checkEva(this.checkId);
  8455. // setTimeout(() => {
  8456. // this.checkEva(this.checkId);
  8457. // }, 100);
  8458. // }, 100);
  8459. // }
  8460. // } else {
  8461. if (this.steps == 3) {
  8462. this.steps = 1;
  8463. setTimeout(() => {
  8464. this.checkEva(this.checkId);
  8465. setTimeout(() => {
  8466. this.checkEva(this.checkId);
  8467. }, 100);
  8468. }, 100);
  8469. }
  8470. // }
  8471. }
  8472. },
  8473. navSteps(s) {
  8474. if (this.courseName == "") {
  8475. this.$message.error(this.lang.ssFillCourseName);
  8476. return;
  8477. }
  8478. if (this.cidType == 0) {
  8479. if (this.steps == 1) {
  8480. if (this.cid == "" || this.cid == undefined) {
  8481. this.addWork();
  8482. } else {
  8483. if (this.userid != this.courseUserid && this.role != "1") {
  8484. // this.updateWork2();
  8485. } else {
  8486. this.updateWork();
  8487. }
  8488. }
  8489. }
  8490. if (s == 1) {
  8491. this.steps = 1;
  8492. setTimeout(() => {
  8493. this.checkEva(this.checkId);
  8494. setTimeout(() => {
  8495. this.checkEva(this.checkId);
  8496. }, 100);
  8497. }, 100);
  8498. }
  8499. if (s == 2) {
  8500. this.steps = 2;
  8501. }
  8502. if (s == 3) {
  8503. this.cTemplate = this.templateC.content;
  8504. this.dialogVisible2 = false;
  8505. this.steps = 3;
  8506. this.isClickColor = 1;
  8507. this.unitJson[
  8508. this.unitIndex
  8509. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8510. this.$forceUpdate();
  8511. setTimeout(() => {
  8512. this.checkEva(this.checkId);
  8513. setTimeout(() => {
  8514. this.checkEva(this.checkId);
  8515. }, 100);
  8516. }, 1000);
  8517. }
  8518. } else {
  8519. if (this.steps == 1) {
  8520. if (this.cid == "" || this.cid == undefined) {
  8521. this.addWork();
  8522. } else {
  8523. if (this.userid != this.courseUserid && this.role != "1") {
  8524. // this.updateWork2();
  8525. } else {
  8526. this.updateWork();
  8527. }
  8528. }
  8529. }
  8530. if (s == 1) {
  8531. this.steps = 1;
  8532. setTimeout(() => {
  8533. this.checkEva(this.checkId);
  8534. setTimeout(() => {
  8535. this.checkEva(this.checkId);
  8536. }, 100);
  8537. }, 100);
  8538. }
  8539. if (s == 3) {
  8540. this.cTemplate = this.templateC.content;
  8541. this.dialogVisible2 = false;
  8542. this.steps = 3;
  8543. this.isClickColor = 1;
  8544. this.unitJson[
  8545. this.unitIndex
  8546. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8547. this.$forceUpdate();
  8548. setTimeout(() => {
  8549. this.checkEva(this.checkId);
  8550. setTimeout(() => {
  8551. this.checkEva(this.checkId);
  8552. }, 100);
  8553. }, 1000);
  8554. }
  8555. }
  8556. this.$refs.stepBox.scrollTop = 0;
  8557. },
  8558. nextSteps() {
  8559. // if (this.cidType == 1) {
  8560. // if (this.steps == 1) {
  8561. // if (this.courseName != "") {
  8562. // this.steps = 3;
  8563. // this.isClickColor = 1;
  8564. // this.unitJson[
  8565. // this.unitIndex
  8566. // ].chapterInfo[0].taskJson[0].toolOpen = true;
  8567. // this.$forceUpdate();
  8568. // setTimeout(() => {
  8569. // this.checkEva(this.checkId);
  8570. // setTimeout(() => {
  8571. // this.checkEva(this.checkId);
  8572. // }, 100);
  8573. // }, 1000);
  8574. // if (this.cid == "" || this.cid == undefined) {
  8575. // this.addWork();
  8576. // } else {
  8577. // if (this.userid != this.courseUserid && this.role != "1") {
  8578. // // this.updateWork2();
  8579. // } else {
  8580. // this.updateWork();
  8581. // }
  8582. // }
  8583. // } else {
  8584. // this.$message.error(this.lang.ssFillCourseName);
  8585. // return;
  8586. // }
  8587. // } else if (this.steps == 3) {
  8588. if (this.cid == "" || this.cid == undefined) {
  8589. if (this.courseName == "") {
  8590. this.$message.error(this.lang.ssFillCourseName);
  8591. return;
  8592. } else {
  8593. this.addWork();
  8594. // this.steps++;
  8595. this.steps = 4;
  8596. }
  8597. } else {
  8598. if (this.courseName == "") {
  8599. this.$message.error(this.lang.ssFillCourseName);
  8600. return;
  8601. } else {
  8602. if (this.userid != this.courseUserid && this.role != "1") {
  8603. this.updateWork2();
  8604. } else {
  8605. this.updateWork();
  8606. }
  8607. // this.steps++;
  8608. this.steps = 4;
  8609. }
  8610. }
  8611. // }
  8612. // } else {
  8613. // if (this.steps == 1) {
  8614. // if (this.courseName != "") {
  8615. // if (this.cid == "" || this.cid == undefined) {
  8616. // this.addWork();
  8617. // } else {
  8618. // if (this.userid != this.courseUserid && this.role != "1") {
  8619. // // this.updateWork2();
  8620. // } else {
  8621. // this.updateWork();
  8622. // }
  8623. // }
  8624. // this.steps++;
  8625. // } else {
  8626. // this.$message.error(this.lang.ssFillCourseName);
  8627. // return;
  8628. // }
  8629. // } else if (this.steps == 2) {
  8630. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8631. // this.cTemplate = this.templateC.content;
  8632. // }
  8633. // this.dialogVisible2 = false;
  8634. // this.steps++;
  8635. // setTimeout(() => {
  8636. // this.checkEva(this.checkId);
  8637. // setTimeout(() => {
  8638. // this.checkEva(this.checkId);
  8639. // }, 100);
  8640. // }, 1000);
  8641. // } else if (this.steps == 3) {
  8642. // if (this.cid == "" || this.cid == undefined) {
  8643. // if (this.courseName == "") {
  8644. // this.$message.error(this.lang.ssFillCourseName);
  8645. // return;
  8646. // } else {
  8647. // this.addWork();
  8648. // this.steps++;
  8649. // }
  8650. // } else {
  8651. // if (this.courseName == "") {
  8652. // this.$message.error(this.lang.ssFillCourseName);
  8653. // return;
  8654. // } else {
  8655. // if (this.userid != this.courseUserid && this.role != "1") {
  8656. // this.updateWork2();
  8657. // } else {
  8658. // this.updateWork();
  8659. // }
  8660. // this.steps++;
  8661. // }
  8662. // }
  8663. // }
  8664. // }
  8665. // this.$refs.stepBox.scrollTop = 0;
  8666. },
  8667. unitSet(i) {
  8668. if (this.unitIndex == i) {
  8669. return;
  8670. }
  8671. this.unitIndex = i;
  8672. this.isClickColor = 1;
  8673. // this.$refs.rightboxR.scrollTop = 0;
  8674. this.$refs.unitBox.scrollTop = 0;
  8675. },
  8676. panUnitJson() {
  8677. let _unitIndex = this.unitIndex;
  8678. let cPan = 1;
  8679. for (
  8680. var j = 0;
  8681. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8682. j++
  8683. ) {
  8684. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8685. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8686. j
  8687. ].proVisible2 = false;
  8688. if (
  8689. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8690. .length > 1
  8691. ) {
  8692. for (
  8693. var z = 0;
  8694. z <
  8695. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8696. .length;
  8697. z++
  8698. ) {
  8699. if (
  8700. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8701. z
  8702. ].tool.length
  8703. ) {
  8704. this.$message.error(this.lang.ssAddToolFull);
  8705. cPan = 2;
  8706. break;
  8707. }
  8708. }
  8709. }
  8710. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8711. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8712. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8713. (ele) => {
  8714. return ele.value != "";
  8715. }
  8716. );
  8717. }
  8718. }
  8719. return cPan;
  8720. },
  8721. unitOpen(i) {
  8722. if (this.unitJson[i].toolOpen) {
  8723. this.unitJson[i].toolOpen = false;
  8724. } else {
  8725. this.unitJson[i].toolOpen = true;
  8726. }
  8727. this.updateWork();
  8728. this.$forceUpdate();
  8729. },
  8730. unitSet2(i) {
  8731. if (this.panUnitJson() == 2) {
  8732. return;
  8733. }
  8734. // if(this.unitJson[i].toolOpen){
  8735. // this.unitJson[i].toolOpen = false
  8736. // this.updateWork()
  8737. // this.$forceUpdate()
  8738. // return
  8739. // }else {
  8740. this.unitJson[i].toolOpen = true;
  8741. // }
  8742. this.$forceUpdate();
  8743. if (this.unitIndex == i) {
  8744. return;
  8745. }
  8746. this.unitIndex = i;
  8747. this.isClickColor = 1;
  8748. // this.$refs.rightboxR.scrollTop = 0;
  8749. this.$refs.unitBox.scrollTop = 0;
  8750. },
  8751. updateCourseState(i) {
  8752. let params = [
  8753. {
  8754. cid: this.cid,
  8755. state: i,
  8756. },
  8757. ];
  8758. this.ajax
  8759. .post(this.$store.state.api + "updateCourseMode", params)
  8760. .then((res) => {
  8761. this.courseState = i;
  8762. })
  8763. .catch((err) => {
  8764. this.$message.error(this.lang.ssNetPoor);
  8765. console.error(err);
  8766. });
  8767. },
  8768. time() {
  8769. if (!this.now) {
  8770. this.now = new Date().getTime();
  8771. return true;
  8772. } else {
  8773. let time = new Date().getTime();
  8774. if (time - this.now > 3000) {
  8775. this.now = time;
  8776. return true;
  8777. } else {
  8778. return false;
  8779. }
  8780. }
  8781. },
  8782. deleteUnit(i) {
  8783. var _this = this;
  8784. if (i == 0 && _this.unitJson.length == 1) {
  8785. _this
  8786. .$confirm(_this.lang.ssSwitchTask, _this.lang.ssTip, {
  8787. confirmButtonText: _this.lang.ssConfirm,
  8788. cancelButtonText: _this.lang.ssCancel,
  8789. type: "warning",
  8790. })
  8791. .then(() => {
  8792. _this.unitJson[i].dyName = "";
  8793. _this.updateCourseState(2);
  8794. })
  8795. .catch(() => {
  8796. return;
  8797. });
  8798. } else {
  8799. _this
  8800. .$confirm(_this.lang.ssDeleteStage, _this.lang.ssTip, {
  8801. confirmButtonText: _this.lang.ssConfirm,
  8802. cancelButtonText: _this.lang.ssCancel,
  8803. type: "warning",
  8804. })
  8805. .then(() => {
  8806. _this.isDelete = 2;
  8807. // _this.unitIndex = _this.unitIndex - 1;
  8808. if(_this.cid){
  8809. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8810. }else {
  8811. _this.$message({
  8812. message: _this.lang.ssDeleteSucc,
  8813. type: "success",
  8814. });
  8815. let task = JSON.parse(
  8816. JSON.stringify(
  8817. _this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8818. )
  8819. );
  8820. _this.unitJson.splice(_this.unitIndex, 1);
  8821. if (_this.unitIndex == 0) {
  8822. _this.unitIndex = 0;
  8823. } else {
  8824. _this.unitIndex = _this.unitIndex - 1;
  8825. }
  8826. if (JSON.stringify(task) != JSON.stringify(_this.taskJSONa)) {
  8827. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson = [
  8828. ..._this.unitJson[_this.unitIndex].chapterInfo[0].taskJson,
  8829. ...task,
  8830. ];
  8831. }
  8832. }
  8833. // _this.$message.success("删除成功");
  8834. })
  8835. .catch(() => {
  8836. return;
  8837. });
  8838. }
  8839. },
  8840. deleteWork(chapid) {
  8841. let params = [
  8842. {
  8843. cid: this.cid,
  8844. chapters: JSON.stringify(this.unitJson),
  8845. uid: this.userid,
  8846. chapid: chapid,
  8847. },
  8848. ];
  8849. this.ajax
  8850. .post(this.$store.state.api + "deleteWork", params)
  8851. .then((res) => {
  8852. this.$message({
  8853. message: this.lang.ssDeleteSucc,
  8854. type: "success",
  8855. });
  8856. let task = JSON.parse(
  8857. JSON.stringify(
  8858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8859. )
  8860. );
  8861. this.unitJson.splice(this.unitIndex, 1);
  8862. if (this.unitIndex == 0) {
  8863. this.unitIndex = 0;
  8864. } else {
  8865. this.unitIndex = this.unitIndex - 1;
  8866. }
  8867. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8869. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8870. ...task,
  8871. ];
  8872. }
  8873. })
  8874. .catch((err) => {
  8875. this.$message.error(this.lang.ssNetPoor);
  8876. console.error(err);
  8877. });
  8878. },
  8879. deleteTool(itemTaskIndex, i) {
  8880. var _this = this;
  8881. if (_this.time()) {
  8882. _this
  8883. .$confirm(_this.lang.ssDeleteTool, _this.lang.ssTip, {
  8884. confirmButtonText: _this.lang.ssConfirm,
  8885. cancelButtonText: _this.lang.ssCancel,
  8886. type: "warning",
  8887. })
  8888. .then(() => {
  8889. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8890. itemTaskIndex
  8891. ].toolChoose.splice(i, 1);
  8892. _this.$message.success(_this.lang.ssDeleteSucc);
  8893. })
  8894. .catch(() => {
  8895. return;
  8896. });
  8897. }
  8898. },
  8899. deleteSentence(i) {
  8900. var _this = this;
  8901. _this
  8902. .$confirm(_this.lang.ssDeleteQues, _this.lang.ssTip, {
  8903. confirmButtonText: _this.lang.ssConfirm,
  8904. cancelButtonText: _this.lang.ssCancel,
  8905. type: "warning",
  8906. })
  8907. .then(() => {
  8908. _this.sentenceList.splice(i, 1);
  8909. _this.$message.success(_this.lang.ssDeleteSucc);
  8910. })
  8911. .catch(() => {
  8912. return;
  8913. });
  8914. },
  8915. deleteS(s, i, j) {
  8916. this.sentenceList[i].addSentence.splice(j, 1);
  8917. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8918. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8919. this.sentenceList[i].rightAnswer.splice(a, 1);
  8920. }
  8921. },
  8922. openT() {
  8923. window.topU.postMessage({ tools: "25" }, "*");
  8924. },
  8925. deleteTask(i) {
  8926. var _this = this;
  8927. if (_this.time()) {
  8928. _this
  8929. .$confirm(
  8930. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8931. 1 ==
  8932. i
  8933. ? _this.lang.ssDeleteTask
  8934. : _this.lang.ssSwitchTaskDel,
  8935. _this.lang.ssTip,
  8936. {
  8937. confirmButtonText: _this.lang.ssConfirm,
  8938. cancelButtonText: _this.lang.ssCancel,
  8939. type: "warning",
  8940. }
  8941. )
  8942. .then(() => {
  8943. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8944. i,
  8945. 1
  8946. );
  8947. _this.$message.success(_this.lang.ssDeleteSucc);
  8948. })
  8949. .catch(() => {
  8950. return;
  8951. });
  8952. }
  8953. },
  8954. handlePictureCardPreview(file) {
  8955. this.dialogImageUrl = file.url;
  8956. },
  8957. clean(i, c) {
  8958. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8959. },
  8960. handle_remove1(file, fileList, type) {
  8961. var _tmp = this.cover;
  8962. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8963. // if (_tmp[i].uid == file.uid) {
  8964. // _tmp.splice(i, 1);
  8965. // break;
  8966. // }
  8967. // this.cover = _tmp;
  8968. // }
  8969. this.cover = [];
  8970. this.noneBtnImg = this.cover.length >= 1;
  8971. this.isSysPic = false;
  8972. this.isSysPic2 = false;
  8973. this.$forceUpdate();
  8974. },
  8975. addImg(e) {
  8976. var el = e.currentTarget;
  8977. el.getElementsByTagName("input")[0].click();
  8978. e.target.value = "";
  8979. },
  8980. addChaptersTools(i) {
  8981. this.chapTools = [
  8982. {
  8983. tools: [],
  8984. toolDetail: "",
  8985. },
  8986. ];
  8987. this.chapCount = i;
  8988. this.dialogVisible4 = true;
  8989. },
  8990. isNoFinsh() {
  8991. this.$message.warning(this.lang.ssInDev);
  8992. },
  8993. addAttText(i) {
  8994. this.AttText = {
  8995. title: "",
  8996. text: "",
  8997. };
  8998. this.taskCount = i;
  8999. this.AttTextType = 0;
  9000. this.$forceUpdate();
  9001. this.dialogVisible6 = true;
  9002. setTimeout(() => {
  9003. this.$refs["fuInput"].focus();
  9004. }, 100);
  9005. },
  9006. openLine(i) {
  9007. this.line = "";
  9008. this.lineCount = i;
  9009. this.lineType = 0;
  9010. this.$forceUpdate();
  9011. this.dialogVisible7 = true;
  9012. },
  9013. pasteLine(i) {
  9014. navigator.clipboard
  9015. .readText()
  9016. .then((v) => {
  9017. console.log("获取剪贴板成功:", v);
  9018. const html = v;
  9019. const regex = /src="(.*?)"/g;
  9020. const match = regex.exec(html);
  9021. if (match && match[1]) {
  9022. console.log(match[1]);
  9023. this.$message.success(this.lang.ssPasteSucc);
  9024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9025. i
  9026. ].chapterData.push({
  9027. name: this.lang.ssLink,
  9028. title: this.lang.ssEmbedCode,
  9029. url: match[1],
  9030. type: 8,
  9031. });
  9032. } else {
  9033. // console.log("未找到包含 src 属性的 iframe");
  9034. this.$message.error(this.lang.ssNoPasteObj);
  9035. }
  9036. })
  9037. .catch((v) => {
  9038. console.log("获取剪贴板失败: ", v);
  9039. });
  9040. },
  9041. openSource(i) {
  9042. this.lineCount = i;
  9043. this.sourceData = {};
  9044. this.dialogVisibleSource = true;
  9045. this.updateSourcePan = false;
  9046. },
  9047. addSource() {
  9048. if (!Object.keys(this.sourceData).length) {
  9049. this.$message.error(this.lang.ssSelectResUp);
  9050. return;
  9051. }
  9052. let keys = Object.keys(this.sourceData);
  9053. for (var i = 0; i < keys.length; i++) {
  9054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9055. this.lineCount
  9056. ].chapterData.push({
  9057. name: this.lang.ssLink,
  9058. title: this.sourceData[keys[i]].name,
  9059. url: this.sourceData[keys[i]].url,
  9060. type: 14,
  9061. id: keys[i],
  9062. });
  9063. }
  9064. this.$forceUpdate();
  9065. this.dialogVisibleSource = false;
  9066. },
  9067. updateSource() {
  9068. if (!Object.keys(this.sourceData).length) {
  9069. this.$message.error(this.lang.ssSelectResUp);
  9070. return;
  9071. }
  9072. let keys = Object.keys(this.sourceData);
  9073. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9074. this.taskCount
  9075. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  9076. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9077. this.taskCount
  9078. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  9079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9080. this.taskCount
  9081. ].chapterData[this.lineCount].id = keys[0];
  9082. this.updateSourcePan = false;
  9083. this.$forceUpdate();
  9084. this.dialogVisibleSource = false;
  9085. },
  9086. deleteM(i, j) {
  9087. this.testJson.testJson[i].timuList.splice(j, 1);
  9088. },
  9089. beforeUploadTiMu(event, i) {
  9090. const loading = this.openLoading();
  9091. var file = event.target.files[0];
  9092. var credentials = {
  9093. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9094. secretAccessKey: "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",
  9095. }; //秘钥形式的登录上传
  9096. window.AWS.config.update(credentials);
  9097. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9098. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9099. var _this = this;
  9100. if (file) {
  9101. var params = {
  9102. Key:
  9103. file.name.split(".")[0] +
  9104. new Date().getTime() +
  9105. "." +
  9106. file.name.split(".")[file.name.split(".").length - 1],
  9107. ContentType: file.type,
  9108. Body: file,
  9109. "Access-Control-Allow-Credentials": "*",
  9110. ACL: "public-read",
  9111. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9112. var options = {
  9113. partSize: 2048 * 1024 * 1024,
  9114. queueSize: 2,
  9115. leavePartsOnError: true,
  9116. };
  9117. bucket
  9118. .upload(params, options)
  9119. .on("httpUploadProgress", function (evt) {
  9120. //这里可以写进度条
  9121. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9122. })
  9123. .send(function (err, data) {
  9124. loading.close();
  9125. if (err) {
  9126. _this.$message.error(_this.lang.ssUploadFail);
  9127. } else {
  9128. if (_this.testJson.testJson[i].timuList) {
  9129. _this.testJson.testJson[i].timuList.push({
  9130. src: data.Location,
  9131. });
  9132. } else {
  9133. _this.testJson.testJson[i].timuList = [];
  9134. _this.testJson.testJson[i].timuList.push({
  9135. src: data.Location,
  9136. });
  9137. }
  9138. _this.imgChange3(i);
  9139. _this.$forceUpdate();
  9140. }
  9141. });
  9142. }
  9143. },
  9144. beforeUploadTi(event, i, j) {
  9145. const loading = this.openLoading();
  9146. var file = event.target.files[0];
  9147. var credentials = {
  9148. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9149. secretAccessKey: "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",
  9150. }; //秘钥形式的登录上传
  9151. window.AWS.config.update(credentials);
  9152. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9153. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9154. var _this = this;
  9155. if (file) {
  9156. var params = {
  9157. Key:
  9158. file.name.split(".")[0] +
  9159. new Date().getTime() +
  9160. "." +
  9161. file.name.split(".")[file.name.split(".").length - 1],
  9162. ContentType: file.type,
  9163. Body: file,
  9164. "Access-Control-Allow-Credentials": "*",
  9165. ACL: "public-read",
  9166. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9167. var options = {
  9168. partSize: 2048 * 1024 * 1024,
  9169. queueSize: 2,
  9170. leavePartsOnError: true,
  9171. };
  9172. bucket
  9173. .upload(params, options)
  9174. .on("httpUploadProgress", function (evt) {
  9175. //这里可以写进度条
  9176. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9177. })
  9178. .send(function (err, data) {
  9179. loading.close();
  9180. if (err) {
  9181. _this.$message.error(_this.lang.ssUploadFail);
  9182. } else {
  9183. _this.testJson.testJson[i].checkList[j] = {};
  9184. _this.testJson.testJson[i].checkList[j].src = data.Location;
  9185. _this.testJson.testJson[i].checkList[j].imgType = 1;
  9186. _this.imgChange2(i, j);
  9187. _this.$forceUpdate();
  9188. }
  9189. });
  9190. }
  9191. },
  9192. beforeUpload1(event, type) {
  9193. // const loading = this.openLoading();
  9194. var file = event.target.files[0];
  9195. var credentials = {
  9196. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9197. secretAccessKey: "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",
  9198. }; //秘钥形式的登录上传
  9199. window.AWS.config.update(credentials);
  9200. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9201. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9202. var _this = this;
  9203. if (file) {
  9204. var params = {
  9205. Key:
  9206. file.name.split(".")[0] +
  9207. new Date().getTime() +
  9208. "." +
  9209. file.name.split(".")[file.name.split(".").length - 1],
  9210. ContentType: file.type,
  9211. Body: file,
  9212. "Access-Control-Allow-Credentials": "*",
  9213. ACL: "public-read",
  9214. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9215. var options = {
  9216. partSize: 2048 * 1024 * 1024,
  9217. queueSize: 2,
  9218. leavePartsOnError: true,
  9219. };
  9220. bucket
  9221. .upload(params, options)
  9222. .on("httpUploadProgress", function (evt) {
  9223. //这里可以写进度条
  9224. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9225. })
  9226. .send(function (err, data) {
  9227. // loading.close();
  9228. if (err) {
  9229. // var a = _this.$refs.upload1.uploadFiles;
  9230. // a.splice(a.length - 1, a.length);
  9231. _this.$message.error(_this.lang.ssUploadFail);
  9232. } else {
  9233. // _this.cover.push({
  9234. // name: file.name,
  9235. // url: data.Location,
  9236. // uid: file.uid,
  9237. // });
  9238. _this.cover = [
  9239. {
  9240. name: file.name,
  9241. url: data.Location,
  9242. uid: file.uid,
  9243. },
  9244. ];
  9245. _this.imgChange1(null, null, 1, null);
  9246. _this.choosePicVisible = false;
  9247. console.log(data.Location);
  9248. }
  9249. });
  9250. }
  9251. },
  9252. beforeUploadSelect(event, type) {
  9253. // const loading = this.openLoading();
  9254. var file = event.target.files[0];
  9255. var credentials = {
  9256. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9257. secretAccessKey: "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",
  9258. }; //秘钥形式的登录上传
  9259. window.AWS.config.update(credentials);
  9260. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9261. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9262. var _this = this;
  9263. if (file) {
  9264. var params = {
  9265. Key:
  9266. file.name.split(".")[0] +
  9267. new Date().getTime() +
  9268. "." +
  9269. file.name.split(".")[file.name.split(".").length - 1],
  9270. ContentType: file.type,
  9271. Body: file,
  9272. "Access-Control-Allow-Credentials": "*",
  9273. ACL: "public-read",
  9274. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9275. var options = {
  9276. partSize: 2048 * 1024 * 1024,
  9277. queueSize: 2,
  9278. leavePartsOnError: true,
  9279. };
  9280. bucket
  9281. .upload(params, options)
  9282. .on("httpUploadProgress", function (evt) {
  9283. //这里可以写进度条
  9284. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9285. })
  9286. .send(function (err, data) {
  9287. // loading.close();
  9288. if (err) {
  9289. _this.$message.error(_this.lang.ssUploadFail);
  9290. } else {
  9291. _this.selectJson.url = data.Location;
  9292. console.log(data.Location);
  9293. }
  9294. });
  9295. }
  9296. },
  9297. chooseSysPic(p) {
  9298. this.cover = [];
  9299. setTimeout(() => {
  9300. this.cover[0] = {
  9301. name: this.lang.ssSystemPic,
  9302. url: p,
  9303. };
  9304. this.imgChange1(null, null, 1, null);
  9305. this.$forceUpdate();
  9306. }, 0);
  9307. this.isSysPic = true;
  9308. this.isSysPic2 = false;
  9309. this.sysPicVisible = false;
  9310. this.$forceUpdate();
  9311. },
  9312. chooseSysPic2(p) {
  9313. this.cover = [];
  9314. setTimeout(() => {
  9315. this.cover[0] = {
  9316. name: this.lang.ssNetworkPic,
  9317. url: p,
  9318. };
  9319. this.imgChange1(null, null, 1, null);
  9320. this.$forceUpdate();
  9321. }, 0);
  9322. this.isSysPic2 = true;
  9323. this.isSysPic = false;
  9324. this.sysPicVisible2 = false;
  9325. this.$forceUpdate();
  9326. },
  9327. beforeUpload(data) {
  9328. this.$refs.upload1.uploadFiles;
  9329. this.uploadLoading1 = true;
  9330. var file = data.file;
  9331. var credentials = {
  9332. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9333. secretAccessKey: "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",
  9334. }; //秘钥形式的登录上传
  9335. window.AWS.config.update(credentials);
  9336. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9337. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9338. var _this = this;
  9339. if (file) {
  9340. var params = {
  9341. Key:
  9342. file.name.split(".")[0] +
  9343. new Date().getTime() +
  9344. "." +
  9345. file.name.split(".")[file.name.split(".").length - 1],
  9346. ContentType: file.type,
  9347. Body: file,
  9348. "Access-Control-Allow-Credentials": "*",
  9349. ACL: "public-read",
  9350. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9351. var options = {
  9352. partSize: 2048 * 1024 * 1024,
  9353. queueSize: 2,
  9354. leavePartsOnError: true,
  9355. };
  9356. bucket
  9357. .upload(params, options)
  9358. .on("httpUploadProgress", function (evt) {
  9359. //这里可以写进度条
  9360. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9361. })
  9362. .send(function (err, data) {
  9363. _this.uploadLoading1 = false;
  9364. if (err) {
  9365. // var a = _this.$refs.upload1.uploadFiles;
  9366. // a.splice(a.length - 1, a.length);
  9367. _this.$message.error(_this.lang.ssUploadFail);
  9368. } else {
  9369. //上传成功处理
  9370. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9371. name: file.name,
  9372. url: data.Location,
  9373. uid: file.uid,
  9374. });
  9375. _this.imgChange();
  9376. console.log(data.Location);
  9377. }
  9378. });
  9379. }
  9380. },
  9381. onExceed() {
  9382. this.$message.error(this.lang.ssCoverOneUp);
  9383. },
  9384. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9385. // const loading = this.openLoading();
  9386. var file = event.target.files[0];
  9387. var credentials = {
  9388. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9389. secretAccessKey: "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",
  9390. }; //秘钥形式的登录上传
  9391. window.AWS.config.update(credentials);
  9392. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9393. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9394. var _this = this;
  9395. if (type == 3) {
  9396. var b = [
  9397. "DOC",
  9398. "DOCX",
  9399. "DOCM",
  9400. "DOTM",
  9401. "DOTX",
  9402. "PPTX",
  9403. "PPSX",
  9404. "PPT",
  9405. "PPS",
  9406. "PPTM",
  9407. "POTM",
  9408. "PPAM",
  9409. "POTX",
  9410. "PPSM",
  9411. ];
  9412. if (
  9413. b.indexOf(
  9414. file.name
  9415. .split(".")
  9416. [file.name.split(".").length - 1].toLocaleUpperCase()
  9417. ) != -1
  9418. ) {
  9419. if (file.size / 1024 / 1024 > 80) {
  9420. this.$message.error(this.lang.ssFileOver80MB);
  9421. this.inputShow = true;
  9422. // var a = _this.$refs.upload1.uploadFiles;
  9423. // a.splice(a.length - 1, a.length);
  9424. // loading.close();
  9425. return;
  9426. }
  9427. } else if (
  9428. file.name
  9429. .split(".")
  9430. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9431. ) {
  9432. if (file.size / 1024 / 1024 > 80) {
  9433. this.$message.error(this.lang.ssAddFileOver80);
  9434. this.inputShow = true;
  9435. // var a = _this.$refs.upload1.uploadFiles;
  9436. // a.splice(a.length - 1, a.length);
  9437. // loading.close();
  9438. return;
  9439. }
  9440. }
  9441. }
  9442. this.inputShow = false;
  9443. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9444. itemTaskIndex
  9445. ].progress = 0;
  9446. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9447. itemTaskIndex
  9448. ].proVisible = true;
  9449. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9450. itemTaskIndex
  9451. ].isFinishSize = 0;
  9452. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9453. itemTaskIndex
  9454. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9455. _this.$forceUpdate();
  9456. if (file) {
  9457. var params = {
  9458. Key:
  9459. file.name.split(".")[0] +
  9460. new Date().getTime() +
  9461. "." +
  9462. file.name.split(".")[file.name.split(".").length - 1],
  9463. ContentType: file.type,
  9464. Body: file,
  9465. "Access-Control-Allow-Credentials": "*",
  9466. ACL: "public-read",
  9467. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9468. var options = {
  9469. partSize: 2048 * 1024 * 1024,
  9470. queueSize: 2,
  9471. leavePartsOnError: true,
  9472. };
  9473. bucket
  9474. .upload(params, options)
  9475. .on("httpUploadProgress", function (evt) {
  9476. //这里可以写进度条
  9477. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9478. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9479. itemTaskIndex
  9480. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9481. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9482. itemTaskIndex
  9483. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9484. _this.$forceUpdate();
  9485. })
  9486. .send(function (err, data) {
  9487. // loading.close();
  9488. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9489. itemTaskIndex
  9490. ].progress = 100;
  9491. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9492. itemTaskIndex
  9493. ].isFinishSize =
  9494. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9495. itemTaskIndex
  9496. ].isAllSize;
  9497. _this.$forceUpdate();
  9498. setTimeout(() => {
  9499. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9500. itemTaskIndex
  9501. ].proVisible = false;
  9502. _this.$forceUpdate();
  9503. }, 1000);
  9504. _this.inputShow = true;
  9505. if (err) {
  9506. // var a = _this.$refs.upload1.uploadFiles;
  9507. // a.splice(a.length - 1, a.length);
  9508. _this.$message.error(_this.lang.ssUploadFail);
  9509. } else {
  9510. if (type == 13) {
  9511. let _type = 2;
  9512. var imgA = [
  9513. "png",
  9514. "jpg",
  9515. "jpeg",
  9516. "bmp",
  9517. "gif",
  9518. "webp",
  9519. "psd",
  9520. "svg",
  9521. "tiff",
  9522. ];
  9523. var fileA = [
  9524. "PDF",
  9525. "DOC",
  9526. "DOCX",
  9527. "DOCM",
  9528. "DOTM",
  9529. "DOTX",
  9530. "PPTX",
  9531. "PPSX",
  9532. "PPT",
  9533. "PPS",
  9534. "PPTM",
  9535. "POTM",
  9536. "PPAM",
  9537. "POTX",
  9538. "PPSM",
  9539. "XLSX",
  9540. "XLS",
  9541. ];
  9542. var videoA = [
  9543. "AVI",
  9544. "NAVI",
  9545. "MPEG",
  9546. "ASF",
  9547. "MOV",
  9548. "WMV",
  9549. "3GP",
  9550. "RM",
  9551. "RMVB",
  9552. "FLV",
  9553. "F4V",
  9554. "H.264",
  9555. "H.265",
  9556. "REAL VIDEO",
  9557. "MKV",
  9558. "WebM",
  9559. "HDDVD",
  9560. "MP4",
  9561. "MPG",
  9562. "M4V",
  9563. "MGV",
  9564. "OGV",
  9565. "QTM",
  9566. "STR",
  9567. "AMC",
  9568. "DVX",
  9569. "EVO",
  9570. "DAT",
  9571. "OGG",
  9572. "OGM",
  9573. ];
  9574. if (
  9575. fileA.indexOf(
  9576. data.Location.split(".")[
  9577. data.Location.split(".").length - 1
  9578. ].toLocaleUpperCase()
  9579. ) != -1
  9580. ) {
  9581. _type = 3;
  9582. } else if (
  9583. videoA.indexOf(
  9584. data.Location.split(".")[
  9585. data.Location.split(".").length - 1
  9586. ].toLocaleUpperCase()
  9587. ) != -1
  9588. ) {
  9589. _type = 2;
  9590. } else if (
  9591. imgA.indexOf(
  9592. data.Location.split(".")[
  9593. data.Location.split(".").length - 1
  9594. ].toLocaleLowerCase()
  9595. ) != -1
  9596. ) {
  9597. _type = 13;
  9598. } else {
  9599. _type = 12;
  9600. }
  9601. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9602. itemTaskIndex
  9603. ].chapterData.push({
  9604. name: file.name,
  9605. url: data.Location,
  9606. uid: file.uid,
  9607. type: _type,
  9608. });
  9609. _this.imgChange1(null, null, _type, itemTaskIndex);
  9610. } else if (type == 2 || type == 3 || type == 12) {
  9611. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9612. itemTaskIndex
  9613. ].chapterData.push({
  9614. name: file.name,
  9615. url: data.Location,
  9616. uid: file.uid,
  9617. type: type,
  9618. });
  9619. _this.imgChange1(null, null, type, itemTaskIndex);
  9620. } else if (type == 4) {
  9621. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9622. itemTaskIndex
  9623. ].fileList1.push({
  9624. name: file.name,
  9625. url: data.Location,
  9626. uid: file.uid,
  9627. });
  9628. _this.imgChange1(null, null, type, itemTaskIndex);
  9629. } else if (type == 5) {
  9630. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9631. itemTaskIndex
  9632. ].homeworkList.push({
  9633. name: file.name,
  9634. url: data.Location,
  9635. uid: file.uid,
  9636. });
  9637. _this.imgChange1(null, null, type, itemTaskIndex);
  9638. }
  9639. console.log(data.Location);
  9640. }
  9641. });
  9642. }
  9643. },
  9644. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9645. // const loading = this.openLoading();
  9646. var file = event.target.files[0];
  9647. var credentials = {
  9648. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9649. secretAccessKey: "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",
  9650. }; //秘钥形式的登录上传
  9651. window.AWS.config.update(credentials);
  9652. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9653. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9654. var _this = this;
  9655. if (type == 3) {
  9656. var b = [
  9657. "DOC",
  9658. "DOCX",
  9659. "DOCM",
  9660. "DOTM",
  9661. "DOTX",
  9662. "PPTX",
  9663. "PPSX",
  9664. "PPT",
  9665. "PPS",
  9666. "PPTM",
  9667. "POTM",
  9668. "PPAM",
  9669. "POTX",
  9670. "PPSM",
  9671. ];
  9672. if (
  9673. b.indexOf(
  9674. file.name
  9675. .split(".")
  9676. [file.name.split(".").length - 1].toLocaleUpperCase()
  9677. ) != -1
  9678. ) {
  9679. if (file.size / 1024 / 1024 > 80) {
  9680. this.$message.error(this.lang.ssFileOver80MB);
  9681. this.inputShow = true;
  9682. // var a = _this.$refs.upload1.uploadFiles;
  9683. // a.splice(a.length - 1, a.length);
  9684. // loading.close();
  9685. return;
  9686. }
  9687. } else if (
  9688. file.name
  9689. .split(".")
  9690. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9691. ) {
  9692. if (file.size / 1024 / 1024 > 80) {
  9693. this.$message.error(this.lang.ssAddFileOver80);
  9694. this.inputShow = true;
  9695. // var a = _this.$refs.upload1.uploadFiles;
  9696. // a.splice(a.length - 1, a.length);
  9697. // loading.close();
  9698. return;
  9699. }
  9700. }
  9701. }
  9702. this.inputShow = false;
  9703. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9704. itemTaskIndex
  9705. ].progress = 0;
  9706. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9707. itemTaskIndex
  9708. ].proVisible = true;
  9709. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9710. itemTaskIndex
  9711. ].isFinishSize = 0;
  9712. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9713. itemTaskIndex
  9714. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9715. _this.$forceUpdate();
  9716. if (file) {
  9717. var params = {
  9718. Key:
  9719. file.name.split(".")[0] +
  9720. new Date().getTime() +
  9721. "." +
  9722. file.name.split(".")[file.name.split(".").length - 1],
  9723. ContentType: file.type,
  9724. Body: file,
  9725. "Access-Control-Allow-Credentials": "*",
  9726. ACL: "public-read",
  9727. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9728. var options = {
  9729. partSize: 2048 * 1024 * 1024,
  9730. queueSize: 2,
  9731. leavePartsOnError: true,
  9732. };
  9733. bucket
  9734. .upload(params, options)
  9735. .on("httpUploadProgress", function (evt) {
  9736. //这里可以写进度条
  9737. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9738. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9739. itemTaskIndex
  9740. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9741. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9742. itemTaskIndex
  9743. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9744. _this.$forceUpdate();
  9745. })
  9746. .send(function (err, data) {
  9747. // loading.close();
  9748. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9749. itemTaskIndex
  9750. ].progress = 100;
  9751. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9752. itemTaskIndex
  9753. ].isFinishSize =
  9754. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9755. itemTaskIndex
  9756. ].isAllSize;
  9757. _this.$forceUpdate();
  9758. setTimeout(() => {
  9759. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9760. itemTaskIndex
  9761. ].proVisible = false;
  9762. _this.$forceUpdate();
  9763. }, 1000);
  9764. _this.inputShow = true;
  9765. if (err) {
  9766. // var a = _this.$refs.upload1.uploadFiles;
  9767. // a.splice(a.length - 1, a.length);
  9768. _this.$message.error(_this.lang.ssUploadFail);
  9769. } else {
  9770. if (type == 2 || type == 3) {
  9771. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9772. itemTaskIndex
  9773. ].chapterData.push({
  9774. name: file.name,
  9775. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9776. // itemTaskIndex
  9777. // ].chapterData.length+1),
  9778. url: data.Location,
  9779. uid: file.uid,
  9780. type: type,
  9781. text: string,
  9782. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9783. // itemTaskIndex
  9784. // ].chapterData.length + 1),
  9785. });
  9786. _this.imgChange1(null, null, type, itemTaskIndex);
  9787. } else if (type == 4) {
  9788. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9789. itemTaskIndex
  9790. ].fileList1.push({
  9791. name: file.name,
  9792. url: data.Location,
  9793. uid: file.uid,
  9794. });
  9795. _this.imgChange1(null, null, type, itemTaskIndex);
  9796. } else if (type == 5) {
  9797. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9798. itemTaskIndex
  9799. ].homeworkList.push({
  9800. name: file.name,
  9801. url: data.Location,
  9802. uid: file.uid,
  9803. });
  9804. _this.imgChange1(null, null, type, itemTaskIndex);
  9805. }
  9806. console.log(data.Location);
  9807. }
  9808. });
  9809. }
  9810. },
  9811. addunit() {
  9812. this.unitJson.push({
  9813. dyName: "", //单元标题
  9814. isUpdate: 1,
  9815. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9816. chapterInfo: [
  9817. {
  9818. isread: false,
  9819. chapterid: this.guid(),
  9820. title: "",
  9821. courseName: "",
  9822. taskJson: [
  9823. {
  9824. task: "",
  9825. taskDetail: "",
  9826. chapterData: [],
  9827. toolText: "",
  9828. toolChoose: [
  9829. {
  9830. tool: [],
  9831. toolDetail: "",
  9832. toolType: 0,
  9833. askCount: 1,
  9834. askTitle: "",
  9835. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9836. },
  9837. ],
  9838. isShowTools: false,
  9839. askCount: 1,
  9840. isFold: 1,
  9841. askTitle: "",
  9842. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9843. checkJson: [{ checkCount: [], checkPerent: [] }],
  9844. homeworkList: [],
  9845. },
  9846. ],
  9847. itemCount: 1,
  9848. fileList1: [],
  9849. video: [],
  9850. testData: [],
  9851. pData: [],
  9852. templateArray: [],
  9853. },
  9854. ],
  9855. });
  9856. this.addindex = this.unitJson.length - 1;
  9857. setTimeout(() => {
  9858. this.unitIndex = this.unitJson.length - 1;
  9859. setTimeout(() => {
  9860. console.log(this.$refs.dyInput);
  9861. this.$refs.dyInput[0].focus();
  9862. }, 100);
  9863. this.unitSet(this.unitIndex);
  9864. }, 0);
  9865. },
  9866. addToolFun(itemTaskIndex) {
  9867. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9868. itemTaskIndex
  9869. ].toolChoose.push({
  9870. tool: [],
  9871. toolDetail: "",
  9872. toolType: 0,
  9873. askCount: 1,
  9874. askTitle: "",
  9875. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9876. });
  9877. },
  9878. addTaskBorder() {
  9879. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9880. task: "",
  9881. taskDetail: "",
  9882. chapterData: [],
  9883. toolText: "",
  9884. toolChoose: [
  9885. {
  9886. tool: [],
  9887. toolDetail: "",
  9888. toolType: 0,
  9889. askCount: 1,
  9890. askTitle: "",
  9891. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9892. },
  9893. ],
  9894. isShowTools: false,
  9895. askCount: 1,
  9896. isFold: 1, //任务收起状态
  9897. askTitle: "",
  9898. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9899. checkJson: [{ checkCount: [], checkPerent: [] }],
  9900. homeworkList: [],
  9901. });
  9902. setTimeout(() => {
  9903. this.checkEva(this.checkId);
  9904. setTimeout(() => {
  9905. this.checkEva(this.checkId);
  9906. }, 100);
  9907. }, 100);
  9908. },
  9909. add(e, i) {
  9910. var el = e.currentTarget;
  9911. el.getElementsByTagName("input")[0].click();
  9912. },
  9913. fold(i, e) {
  9914. if (
  9915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9916. ) {
  9917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9918. } else {
  9919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9920. }
  9921. },
  9922. fold2(i) {
  9923. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9925. i
  9926. ].isFold2 = false;
  9927. } else {
  9928. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9929. }
  9930. this.$forceUpdate();
  9931. },
  9932. foldEva(i) {
  9933. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9934. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9935. i
  9936. ].isEvaFold = false;
  9937. } else {
  9938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9939. i
  9940. ].isEvaFold = true;
  9941. setTimeout(() => {
  9942. this.checkEva(this.checkId);
  9943. setTimeout(() => {
  9944. this.checkEva(this.checkId);
  9945. }, 500);
  9946. }, 0);
  9947. }
  9948. this.$forceUpdate();
  9949. },
  9950. foldC(i) {
  9951. if (
  9952. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9953. ) {
  9954. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9955. i
  9956. ].isFoldchapter = false;
  9957. } else {
  9958. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9959. i
  9960. ].isFoldchapter = true;
  9961. }
  9962. this.$forceUpdate();
  9963. },
  9964. fold3(i, ti) {
  9965. if (
  9966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9967. .isFold3
  9968. ) {
  9969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9970. ti
  9971. ].isFold3 = false;
  9972. } else {
  9973. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9974. ti
  9975. ].isFold3 = true;
  9976. }
  9977. this.$forceUpdate();
  9978. },
  9979. deleteHomeworkBox(unitIndex, index, i) {
  9980. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9981. this.taskCount
  9982. ].homeworkList.splice(i, 1);
  9983. },
  9984. getStudent() {
  9985. let params = {
  9986. oid: this.oid,
  9987. cu: "",
  9988. cn: this.searchPeople,
  9989. };
  9990. this.ajax
  9991. .get(this.$store.state.api + "selectStudentAdd", params)
  9992. .then((res) => {
  9993. this.studentJuri = res.data[0];
  9994. })
  9995. .catch((err) => {
  9996. this.isLoading = false;
  9997. console.error(err);
  9998. });
  9999. },
  10000. // 添加协同成员其他选项按钮
  10001. getTeacherCopy(){
  10002. this.CollLoading=true
  10003. this.collid = ''
  10004. this.collid = '1xpz'
  10005. let params = {
  10006. oid:
  10007. this.org && this.org != "undefined" && this.org != "null"
  10008. ? this.org
  10009. : this.oid,
  10010. cu: "",
  10011. cn: this.searchTN,
  10012. coll: ''
  10013. };
  10014. this.ajax
  10015. .get(
  10016. this.$store.state.api +
  10017. (this.org && this.org != "undefined" && this.org != "null"
  10018. ? "selectCollaborativeMembersOrg"
  10019. : "selectCollaborativeMembers"),
  10020. params
  10021. )
  10022. .then((res) => {
  10023. let teacherJuri = res.data[0];
  10024. this.CollaborativeTeaList = res.data[1];
  10025. for (var i = 0; i < teacherJuri.length; i++) {
  10026. if (teacherJuri[i].userid == this.userid) {
  10027. teacherJuri.splice(i, 1);
  10028. break;
  10029. }
  10030. }
  10031. this.teacherJuri = teacherJuri.filter((i,index)=>{
  10032. return (i.cclassid == '' || i.cclassid == null)
  10033. })
  10034. console.log(' this.teacherJuri', this.teacherJuri);
  10035. let _check = [];
  10036. let _check2 = [];
  10037. for (var i = 0; i < this.teacherJuri.length; i++) {
  10038. var gid = this.teacherJuri[i].userid;
  10039. _check.push(gid);
  10040. }
  10041. for (var i = 0; i < this.checkboxList3.length; i++) {
  10042. var _id = this.checkboxList3[i];
  10043. if (_check.indexOf(_id) !== -1) {
  10044. _check2.push(_id);
  10045. }
  10046. }
  10047. if (_check2.length==0 && _check.length==0) {
  10048. }else{
  10049. this.checkAll2 = _check2.length === _check.length;
  10050. }
  10051. this.CollLoading=false
  10052. })
  10053. .catch((err) => {
  10054. console.error(err);
  10055. this.CollLoading=false
  10056. });
  10057. },
  10058. getTeacher(val) {
  10059. this.CollLoading=true
  10060. this.collid = ''
  10061. this.collid = !val ? '' : val
  10062. let params = {
  10063. oid:
  10064. this.org && this.org != "undefined" && this.org != "null"
  10065. ? this.org
  10066. : this.oid,
  10067. cu: "",
  10068. cn: this.searchTN,
  10069. coll: this.collid
  10070. };
  10071. this.ajax
  10072. .get(
  10073. this.$store.state.api +
  10074. (this.org && this.org != "undefined" && this.org != "null"
  10075. ? "selectCollaborativeMembersOrg"
  10076. : "selectCollaborativeMembers"),
  10077. params
  10078. )
  10079. .then((res) => {
  10080. let teacherJuri = res.data[0];
  10081. this.CollaborativeTeaList = res.data[1];
  10082. for (var i = 0; i < teacherJuri.length; i++) {
  10083. if (teacherJuri[i].userid == this.userid) {
  10084. teacherJuri.splice(i, 1);
  10085. break;
  10086. }
  10087. }
  10088. this.teacherJuri = teacherJuri;
  10089. let _check = [];
  10090. let _check2 = [];
  10091. for (var i = 0; i < this.teacherJuri.length; i++) {
  10092. var gid = this.teacherJuri[i].userid;
  10093. _check.push(gid);
  10094. }
  10095. for (var i = 0; i < this.checkboxList3.length; i++) {
  10096. var _id = this.checkboxList3[i];
  10097. if (_check.indexOf(_id) !== -1) {
  10098. _check2.push(_id);
  10099. }
  10100. }
  10101. if (_check2.length==0 && _check.length==0) {
  10102. }else{
  10103. this.checkAll2 = _check2.length === _check.length;
  10104. }
  10105. this.CollLoading=false
  10106. })
  10107. .catch((err) => {
  10108. console.error(err);
  10109. this.CollLoading=false
  10110. });
  10111. },
  10112. searchStudent() {
  10113. this.getStudent();
  10114. },
  10115. selectGrage() {
  10116. let params = {
  10117. oid: this.oid,
  10118. };
  10119. this.ajax
  10120. .get(this.$store.state.api + "selectGrageBySchool", params)
  10121. .then((res) => {
  10122. this.gradeList = res.data[0];
  10123. })
  10124. .catch((err) => {
  10125. this.isLoading = false;
  10126. console.error(err);
  10127. });
  10128. },
  10129. //获取班级列表
  10130. getClass() {
  10131. let params = {
  10132. oid: this.oid,
  10133. gid: this.gradeId,
  10134. cn: this.classSearch,
  10135. };
  10136. this.ajax
  10137. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  10138. .then((res) => {
  10139. if (!this.grade.length) {
  10140. this.grade = res.data[0];
  10141. }
  10142. this.grade2 = res.data[0];
  10143. this.classJuri = res.data[0];
  10144. let _check = [];
  10145. let _check2 = [];
  10146. for (var i = 0; i < this.grade2.length; i++) {
  10147. var gid = this.grade2[i].id;
  10148. _check.push(gid);
  10149. }
  10150. for (var i = 0; i < this.checkboxList2.length; i++) {
  10151. var _id = this.checkboxList2[i];
  10152. if (_check.indexOf(_id) !== -1) {
  10153. _check2.push(_id);
  10154. }
  10155. }
  10156. this.checkAll = _check2.length === _check.length;
  10157. })
  10158. .catch((err) => {
  10159. this.isLoading = false;
  10160. console.error(err);
  10161. });
  10162. },
  10163. CourseType2Change(val) {
  10164. this.pTypeCheck = [];
  10165. for (var i = 0; i < this.CourseType2.length; i++) {
  10166. let typeA = this.CourseType2[i];
  10167. if (val.indexOf(typeA.name) != -1) {
  10168. this.pTypeCheck.push(...typeA.id);
  10169. }
  10170. }
  10171. },
  10172. getChapterData(e, i, j, ic, type) {
  10173. e.stopPropagation();
  10174. this.updataC = true;
  10175. this.icc = ic;
  10176. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  10177. console.log("还不能下载图片喔");
  10178. }
  10179. },
  10180. deleteChapterData(e, i, j, ic, taskI) {
  10181. e.stopPropagation();
  10182. let _this = this;
  10183. _this
  10184. .$confirm(_this.lang.ssDeleteItem, _this.lang.ssTip, {
  10185. confirmButtonText: _this.lang.ssConfirm,
  10186. cancelButtonText: _this.lang.ssCancel,
  10187. type: "warning",
  10188. })
  10189. .then(() => {
  10190. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  10191. ic,
  10192. 1
  10193. );
  10194. })
  10195. .catch(() => {
  10196. return;
  10197. });
  10198. },
  10199. updataVideoT(e, i, j, ic) {
  10200. // e.stopPropagation();
  10201. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  10202. // ic
  10203. // ].name = JSON.parse(JSON.stringify(e.target.value));
  10204. this.line =
  10205. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[ic].name;
  10206. this.taskCount = j;
  10207. this.lineCount = ic;
  10208. this.dialogVisibleupdataVideoT = true;
  10209. this.$forceUpdate();
  10210. },
  10211. updataVideoC() {
  10212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10213. this.taskCount
  10214. ].chapterData[this.lineCount].name = JSON.parse(
  10215. JSON.stringify(this.line)
  10216. );
  10217. this.dialogVisibleupdataVideoT = false;
  10218. this.$forceUpdate();
  10219. },
  10220. upCd(e, i, j, taskCount, ic) {
  10221. e.stopPropagation();
  10222. if (ic == 0) {
  10223. return;
  10224. }
  10225. var a = JSON.parse(
  10226. JSON.stringify(
  10227. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10228. ic - 1
  10229. ]
  10230. )
  10231. );
  10232. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  10233. JSON.parse(
  10234. JSON.stringify(
  10235. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10236. )
  10237. );
  10238. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10239. this.$forceUpdate();
  10240. },
  10241. downCd(e, i, j, taskCount, ic) {
  10242. e.stopPropagation();
  10243. if (
  10244. ic ==
  10245. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  10246. 1
  10247. ) {
  10248. return;
  10249. }
  10250. var a = JSON.parse(
  10251. JSON.stringify(
  10252. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10253. ic + 1
  10254. ]
  10255. )
  10256. );
  10257. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  10258. JSON.parse(
  10259. JSON.stringify(
  10260. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10261. )
  10262. );
  10263. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10264. this.$forceUpdate();
  10265. },
  10266. async upTool(e, i, j, tooli) {
  10267. e.stopPropagation();
  10268. if (tooli == 0) {
  10269. return;
  10270. }
  10271. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  10272. let count2 = await this.getWorksCount(3, i, j, tooli);
  10273. if (count1 > 0 || count2 > 0) {
  10274. this.$confirm(
  10275. this.lang.ssSwitchMove,
  10276. this.lang.ssTip,
  10277. {
  10278. confirmButtonText: this.lang.ssConfirm,
  10279. cancelButtonText: this.lang.ssCancel,
  10280. type: "warning",
  10281. }
  10282. )
  10283. .then(() => {
  10284. var a = JSON.parse(
  10285. JSON.stringify(
  10286. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10287. tooli - 1
  10288. ]
  10289. )
  10290. );
  10291. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10292. JSON.parse(
  10293. JSON.stringify(
  10294. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10295. )
  10296. );
  10297. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10298. this.$forceUpdate();
  10299. this.moveWork(3, i, j, tooli - 1, i, j, tooli);
  10300. this.updateWork();
  10301. })
  10302. .catch(() => {
  10303. return;
  10304. });
  10305. } else {
  10306. var a = JSON.parse(
  10307. JSON.stringify(
  10308. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  10309. )
  10310. );
  10311. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10312. JSON.parse(
  10313. JSON.stringify(
  10314. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10315. )
  10316. );
  10317. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10318. this.$forceUpdate();
  10319. }
  10320. },
  10321. async downTool(e, i, j, tooli) {
  10322. e.stopPropagation();
  10323. if (
  10324. tooli ==
  10325. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  10326. ) {
  10327. return;
  10328. }
  10329. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  10330. let count2 = await this.getWorksCount(3, i, j, tooli);
  10331. if (count1 > 0 || count2 > 0) {
  10332. this.$confirm(
  10333. this.lang.ssSwitchMove,
  10334. this.lang.ssTip,
  10335. {
  10336. confirmButtonText: this.lang.ssConfirm,
  10337. cancelButtonText: this.lang.ssCancel,
  10338. type: "warning",
  10339. }
  10340. )
  10341. .then(() => {
  10342. var a = JSON.parse(
  10343. JSON.stringify(
  10344. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10345. tooli + 1
  10346. ]
  10347. )
  10348. );
  10349. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10350. JSON.parse(
  10351. JSON.stringify(
  10352. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10353. )
  10354. );
  10355. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10356. this.$forceUpdate();
  10357. this.moveWork(3, i, j, tooli + 1, i, j, tooli);
  10358. this.updateWork();
  10359. })
  10360. .catch(() => {
  10361. return;
  10362. });
  10363. } else {
  10364. var a = JSON.parse(
  10365. JSON.stringify(
  10366. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10367. )
  10368. );
  10369. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10370. JSON.parse(
  10371. JSON.stringify(
  10372. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10373. )
  10374. );
  10375. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10376. this.$forceUpdate();
  10377. }
  10378. },
  10379. addWork() {
  10380. let cPan = 1;
  10381. for (var i = 0; i < this.unitJson.length; i++) {
  10382. for (
  10383. var j = 0;
  10384. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10385. j++
  10386. ) {
  10387. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10388. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10389. if (
  10390. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10391. ) {
  10392. for (
  10393. var z = 0;
  10394. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10395. z++
  10396. ) {
  10397. if (
  10398. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10399. .length
  10400. ) {
  10401. this.$message.error(this.lang.ssAddToolFull);
  10402. cPan = 2;
  10403. break;
  10404. }
  10405. }
  10406. }
  10407. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10408. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10409. i
  10410. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10411. return ele.value != "";
  10412. });
  10413. }
  10414. }
  10415. }
  10416. this.inputShow = true;
  10417. if (cPan == 2) {
  10418. this.steps--;
  10419. return;
  10420. }
  10421. for (var i = 0; i < this.unitJson.length; i++) {
  10422. delete this.unitJson[i].isUpdate;
  10423. }
  10424. let imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png'
  10425. if (this.lang.lang == 'com') {
  10426. imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20260112142829_1081_2831768354076152.png'
  10427. }
  10428. let params = [
  10429. {
  10430. uid: this.userid,
  10431. title: this.courseName,
  10432. brief: this.courseText,
  10433. cover:
  10434. this.cover.length > 0
  10435. ? JSON.stringify(this.cover)
  10436. : JSON.stringify([
  10437. {
  10438. name: "noBanner.jpg",
  10439. url: imgUrl,
  10440. uid: 1656409780264,
  10441. status: "success",
  10442. },
  10443. ]),
  10444. evaId: this.evalua,
  10445. astudent:
  10446. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10447. see: this.isTeacherSee == true ? 1 : 0,
  10448. chapters: JSON.stringify(this.unitJson),
  10449. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10450. courseType: JSON.stringify(this.courseTypeId),
  10451. ateacher:
  10452. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10453. inviteCode: JSON.stringify(this.inviteCode),
  10454. highSetting: this.highSetting == true ? 1 : 0,
  10455. courseState: this.courseState,
  10456. },
  10457. ];
  10458. this.ajax
  10459. .post(this.$store.state.api + "addWorkNew2New", params)
  10460. .then((res) => {
  10461. console.log(this.steps);
  10462. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10463. this.$message({
  10464. message: this.lang.ssAddOk,
  10465. type: "success",
  10466. });
  10467. }
  10468. this.number = res.data.ordernumber;
  10469. this.courseId = res.data.courseId;
  10470. this.cid = res.data.courseId;
  10471. this.courseUserid = this.userid;
  10472. this.islogin = true;
  10473. // this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10474. })
  10475. .catch((err) => {
  10476. // this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10477. this.$message.error(this.lang.ssNetPoor);
  10478. console.error(err);
  10479. });
  10480. },
  10481. goCourse() {
  10482. window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
  10483. },
  10484. updateWork2() {
  10485. let _unitIndex = this.unitIndex;
  10486. let cPan = 1;
  10487. for (
  10488. var j = 0;
  10489. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10490. j++
  10491. ) {
  10492. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10493. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10494. j
  10495. ].proVisible2 = false;
  10496. if (
  10497. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10498. .length > 1
  10499. ) {
  10500. for (
  10501. var z = 0;
  10502. z <
  10503. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10504. .length;
  10505. z++
  10506. ) {
  10507. if (
  10508. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10509. z
  10510. ].tool.length
  10511. ) {
  10512. this.$message.error(this.lang.ssAddToolFull);
  10513. cPan = 2;
  10514. break;
  10515. }
  10516. }
  10517. }
  10518. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10519. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10520. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10521. (ele) => {
  10522. return ele.value != "";
  10523. }
  10524. );
  10525. }
  10526. }
  10527. this.inputShow = true;
  10528. if (cPan == 2) {
  10529. this.steps--;
  10530. return;
  10531. }
  10532. let params = [
  10533. {
  10534. cid: this.cid,
  10535. chapters: JSON.stringify(this.unitJson),
  10536. uid: this.userid,
  10537. unitIndex: _unitIndex,
  10538. },
  10539. ];
  10540. this.ajax
  10541. .post(this.$store.state.api + "updateWorkNew4", params)
  10542. .then((res) => {
  10543. this.$message({
  10544. message: this.lang.ssUpdateSuccessful,
  10545. type: "success",
  10546. });
  10547. this.courseId = this.cid;
  10548. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10549. })
  10550. .catch((err) => {
  10551. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10552. this.$message.error(this.lang.ssNetPoor);
  10553. console.error(err);
  10554. });
  10555. },
  10556. updateWork3(unitIndex) {
  10557. let _unitIndex = unitIndex;
  10558. let cPan = 1;
  10559. for (
  10560. var j = 0;
  10561. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10562. j++
  10563. ) {
  10564. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10565. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10566. j
  10567. ].proVisible2 = false;
  10568. if (
  10569. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10570. .length > 1
  10571. ) {
  10572. for (
  10573. var z = 0;
  10574. z <
  10575. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10576. .length;
  10577. z++
  10578. ) {
  10579. if (
  10580. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10581. z
  10582. ].tool.length
  10583. ) {
  10584. this.$message.error(this.lang.ssAddToolFull);
  10585. cPan = 2;
  10586. break;
  10587. }
  10588. }
  10589. }
  10590. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10591. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10592. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10593. (ele) => {
  10594. return ele.value != "";
  10595. }
  10596. );
  10597. }
  10598. }
  10599. this.inputShow = true;
  10600. if (cPan == 2) {
  10601. this.steps--;
  10602. return;
  10603. }
  10604. let params = [
  10605. {
  10606. cid: this.cid,
  10607. chapters: JSON.stringify(this.unitJson),
  10608. uid: this.userid,
  10609. unitIndex: _unitIndex,
  10610. },
  10611. ];
  10612. this.ajax
  10613. .post(this.$store.state.api + "updateWorkNew4", params)
  10614. .then((res) => {
  10615. // this.$message({
  10616. // message: "修改成功",
  10617. // type: "success",
  10618. // });
  10619. this.courseId = this.cid;
  10620. })
  10621. .catch((err) => {
  10622. this.$message.error(this.lang.ssNetPoor);
  10623. console.error(err);
  10624. });
  10625. },
  10626. updateWork() {
  10627. let cPan = 1;
  10628. for (var i = 0; i < this.unitJson.length; i++) {
  10629. for (
  10630. var j = 0;
  10631. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10632. j++
  10633. ) {
  10634. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10635. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10636. if (
  10637. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10638. ) {
  10639. for (
  10640. var z = 0;
  10641. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10642. z++
  10643. ) {
  10644. if (
  10645. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10646. .length
  10647. ) {
  10648. this.$message.error(this.lang.ssAddToolFull);
  10649. cPan = 2;
  10650. break;
  10651. }
  10652. }
  10653. }
  10654. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10655. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10656. i
  10657. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10658. return ele.value != "";
  10659. });
  10660. }
  10661. }
  10662. }
  10663. this.inputShow = true;
  10664. if (cPan == 2) {
  10665. this.steps--;
  10666. return;
  10667. }
  10668. for (var i = 0; i < this.unitJson.length; i++) {
  10669. delete this.unitJson[i].isUpdate;
  10670. }
  10671. let imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png'
  10672. if (this.lang.lang == 'com') {
  10673. imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20260112142829_1081_2831768354076152.png'
  10674. }
  10675. let params = [
  10676. {
  10677. cid: this.cid,
  10678. title: this.courseName,
  10679. brief: this.courseText,
  10680. cover:
  10681. this.cover.length > 0
  10682. ? JSON.stringify(this.cover)
  10683. : JSON.stringify([
  10684. {
  10685. name: "noBanner.jpg",
  10686. url: imgUrl,
  10687. uid: 1656409780264,
  10688. status: "success",
  10689. },
  10690. ]),
  10691. evaId: this.evalua,
  10692. astudent:
  10693. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10694. see: this.isTeacherSee == true ? 1 : 0,
  10695. chapters: JSON.stringify(this.unitJson),
  10696. template: this.myWord != "undefined" ? this.myWord : [],
  10697. uid: this.userid,
  10698. courseType: JSON.stringify(this.courseTypeId),
  10699. ateacher:
  10700. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10701. inviteCode: JSON.stringify(this.inviteCode),
  10702. highSetting: this.highSetting == true ? 1 : 0,
  10703. },
  10704. ];
  10705. this.ajax
  10706. .post(this.$store.state.api + "updateWorkNew2New", params)
  10707. .then((res) => {
  10708. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10709. if (this.cidType == 1) {
  10710. this.$message({
  10711. message: this.lang.ssUpdateSuccessful,
  10712. type: "success",
  10713. });
  10714. } else {
  10715. this.$message({
  10716. message: this.lang.ssAddOk,
  10717. type: "success",
  10718. });
  10719. }
  10720. }
  10721. this.number = this.nbOrder;
  10722. this.courseId = this.cid;
  10723. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10724. })
  10725. .catch((err) => {
  10726. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10727. this.$message.error(this.lang.ssNetPoor);
  10728. console.error(err);
  10729. });
  10730. },
  10731. insertWord() {
  10732. this.dialogVisible1 = true;
  10733. this.updateBoolean2 = false;
  10734. this.tTitle = "";
  10735. this.tdetail = "";
  10736. },
  10737. addWord() {
  10738. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10739. name: this.tTitle,
  10740. content: this.tdetail,
  10741. uid: this.guid(),
  10742. });
  10743. this.dialogVisible1 = false;
  10744. },
  10745. upWord() {},
  10746. selectWord(uid, i, c) {
  10747. this.dialogVisible1 = true;
  10748. this.updateBoolean2 = true;
  10749. if (
  10750. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10751. ) {
  10752. this.tTitle =
  10753. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10754. this.tdetail =
  10755. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10756. }
  10757. },
  10758. isAddPP() {
  10759. if (this.checkboxList.length > 0) {
  10760. this.$message({
  10761. message: this.lang.ssAddOk,
  10762. type: "success",
  10763. });
  10764. this.dialogVisible3 = false;
  10765. } else {
  10766. this.$message({
  10767. message: this.lang.ssPlsAddCM,
  10768. type: "error",
  10769. });
  10770. }
  10771. },
  10772. isAddClass() {
  10773. this.dialogVisibleClass = false;
  10774. },
  10775. isAddPPTeacher() {
  10776. this.dialogVisibleMember = false;
  10777. this.setMan();
  10778. },
  10779. getTemplate() {
  10780. this.ajax
  10781. .get(this.$store.state.api + "getCourseTemplateT", "")
  10782. .then((res) => {
  10783. this.templateArray = res.data[0];
  10784. this.getTemplateOid();
  10785. this.$forceUpdate();
  10786. })
  10787. .catch((err) => {});
  10788. },
  10789. getTemplateOid() {
  10790. let params = {
  10791. oid: this.oid,
  10792. };
  10793. this.ajax
  10794. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10795. .then((res) => {
  10796. if (res.data[0].length) {
  10797. this.templateArray = [...res.data[0], ...this.templateArray];
  10798. }
  10799. this.getTemplateOrg();
  10800. this.$forceUpdate();
  10801. })
  10802. .catch((err) => {});
  10803. },
  10804. getTemplateOrg() {
  10805. let params = {
  10806. oid: this.org,
  10807. };
  10808. this.ajax
  10809. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10810. .then((res) => {
  10811. if (res.data[0].length) {
  10812. this.templateArray = [...res.data[0], ...this.templateArray];
  10813. }
  10814. this.$forceUpdate();
  10815. })
  10816. .catch((err) => {});
  10817. },
  10818. clearChoose() {
  10819. this.clearArray.splice(this.templateC.id, 1);
  10820. this.dialogVisible2 = false;
  10821. },
  10822. clearAttText() {
  10823. this.AttText = {
  10824. title: "",
  10825. text: "",
  10826. };
  10827. this.dialogVisible6 = false;
  10828. },
  10829. clearLine() {
  10830. this.line = "";
  10831. this.dialogVisible7 = false;
  10832. },
  10833. openTemplate() {
  10834. this.ctJson = {};
  10835. this.templateDialog = true;
  10836. },
  10837. checkctJson(json) {
  10838. if (this.ctJson.id == json.id) {
  10839. this.ctJson = {};
  10840. } else {
  10841. this.ctJson = json;
  10842. }
  10843. },
  10844. addTemplate(res) {
  10845. let _this = this;
  10846. let _res = [];
  10847. if (res.id == 1) {
  10848. _res = [
  10849. {
  10850. dyName: "", //单元标题
  10851. easy: 1,
  10852. chapterInfo: [
  10853. {
  10854. isread: false,
  10855. chapterid: this.guid(),
  10856. title: "",
  10857. courseName: "",
  10858. taskJson: [
  10859. {
  10860. task: "",
  10861. taskDetail: "",
  10862. chapterData: [],
  10863. toolText: "",
  10864. toolChoose: [
  10865. {
  10866. tool: [],
  10867. toolDetail: "",
  10868. toolType: 0,
  10869. askCount: 1,
  10870. askTitle: "",
  10871. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10872. },
  10873. ],
  10874. isShowTools: false,
  10875. askCount: 1,
  10876. isFold: 1,
  10877. askTitle: "",
  10878. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10879. checkJson: [{ checkCount: [], checkPerent: [] }],
  10880. homeworkList: [],
  10881. },
  10882. ],
  10883. itemCount: 1,
  10884. fileList1: [],
  10885. video: [],
  10886. testData: [],
  10887. pData: [],
  10888. templateArray: [],
  10889. },
  10890. ],
  10891. },
  10892. ];
  10893. this.updateCourseState(1);
  10894. } else if (res.id == 2) {
  10895. let stageData = [];
  10896. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  10897. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  10898. if (!iframe && !iframe2) {
  10899. this.$message.error(this.lang.ssUseAI);
  10900. return;
  10901. }
  10902. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10903. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10904. if (
  10905. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10906. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10907. ) {
  10908. this.$message.error(this.lang.ssUseAI);
  10909. return;
  10910. }
  10911. stageData = copyData
  10912. ? copyData.stageData
  10913. : copyData2
  10914. ? copyData2.stageData
  10915. : [""];
  10916. for (var i = 0; i < stageData.length; i++) {
  10917. _res.push({
  10918. dyName: stageData[i], //单元标题
  10919. chapterInfo: [
  10920. {
  10921. isread: false,
  10922. chapterid: this.guid(),
  10923. title: "",
  10924. courseName: "",
  10925. taskJson: [
  10926. {
  10927. task: "",
  10928. taskDetail: "",
  10929. chapterData: [],
  10930. toolText: "",
  10931. toolChoose: [
  10932. {
  10933. tool: [],
  10934. toolDetail: "",
  10935. toolType: 0,
  10936. askCount: 1,
  10937. askTitle: "",
  10938. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10939. },
  10940. ],
  10941. isShowTools: false,
  10942. askCount: 1,
  10943. isFold: 1,
  10944. askTitle: "",
  10945. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10946. checkJson: [{ checkCount: [], checkPerent: [] }],
  10947. homeworkList: [],
  10948. },
  10949. ],
  10950. itemCount: 1,
  10951. fileList1: [],
  10952. video: [],
  10953. testData: [],
  10954. pData: [],
  10955. templateArray: [],
  10956. },
  10957. ],
  10958. });
  10959. }
  10960. this.updateCourseState(1);
  10961. } else if (!Object.keys(res).length) {
  10962. this.$message.error(this.lang.ssSelectTemplate);
  10963. retrun;
  10964. } else {
  10965. _res = JSON.parse(res.chapters);
  10966. this.updateCourseState(parseInt(res.state));
  10967. }
  10968. if(_this.unitJson.length == 1
  10969. && _this.unitJson[0].chapterInfo[0].taskJson.length == 1
  10970. && !_this.unitJson[0].chapterInfo[0].taskJson[0].task
  10971. && !_this.unitJson[0].chapterInfo[0].taskJson[0].taskDetail
  10972. && !_this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.length){
  10973. _this.unitJson = _res;
  10974. if(_this.cid){
  10975. _this.updateWork();
  10976. }
  10977. // _this.steps++;
  10978. _this.templateDialog = false;
  10979. setTimeout(() => {
  10980. this.checkEva(this.checkId);
  10981. setTimeout(() => {
  10982. this.checkEva(this.checkId);
  10983. }, 100);
  10984. }, 1000);
  10985. }else{
  10986. _this
  10987. .$confirm(
  10988. _this.lang.ssConfirmTemp,
  10989. _this.lang.ssTip,
  10990. {
  10991. confirmButtonText: _this.lang.ssConfirm,
  10992. cancelButtonText: _this.lang.ssCancel,
  10993. type: "warning",
  10994. }
  10995. )
  10996. .then(() => {
  10997. _this.unitJson = _res;
  10998. if(_this.cid){
  10999. _this.updateWork();
  11000. }
  11001. // _this.steps++;
  11002. _this.templateDialog = false;
  11003. setTimeout(() => {
  11004. this.checkEva(this.checkId);
  11005. setTimeout(() => {
  11006. this.checkEva(this.checkId);
  11007. }, 100);
  11008. }, 1000);
  11009. })
  11010. .catch(() => {
  11011. return;
  11012. });
  11013. }
  11014. },
  11015. checkTemplate(res) {
  11016. let _this = this;
  11017. _this
  11018. .$confirm(
  11019. _this.lang.ssConfirmTemp,
  11020. _this.lang.ssTip,
  11021. {
  11022. confirmButtonText: _this.lang.ssConfirm,
  11023. cancelButtonText: _this.lang.ssCancel,
  11024. type: "warning",
  11025. }
  11026. )
  11027. .then(() => {
  11028. _this.unitJson = JSON.parse(res.chapters);
  11029. _this.steps++;
  11030. setTimeout(() => {
  11031. this.checkEva(this.checkId);
  11032. setTimeout(() => {
  11033. this.checkEva(this.checkId);
  11034. }, 100);
  11035. }, 1000);
  11036. })
  11037. .catch(() => {
  11038. return;
  11039. });
  11040. },
  11041. checkTemplate1(w) {
  11042. this.steps++;
  11043. },
  11044. checkTemplate2() {
  11045. let _this = this;
  11046. _this
  11047. .$confirm(_this.lang.ssChooseEmpty, _this.lang.ssTip, {
  11048. confirmButtonText: _this.lang.ssConfirm,
  11049. cancelButtonText: _this.lang.ssCancel,
  11050. type: "warning",
  11051. })
  11052. .then(() => {
  11053. _this.unitIndex = 0;
  11054. _this.unitJson = [
  11055. {
  11056. dyName: "", //单元标题
  11057. chapterInfo: [
  11058. {
  11059. isread: false,
  11060. chapterid: this.guid(),
  11061. title: "",
  11062. courseName: "",
  11063. taskJson: [
  11064. {
  11065. task: "",
  11066. taskDetail: "",
  11067. chapterData: [],
  11068. toolText: "",
  11069. toolChoose: [
  11070. {
  11071. tool: [],
  11072. toolDetail: "",
  11073. toolType: 0,
  11074. askCount: 1,
  11075. askTitle: "",
  11076. askJson: [
  11077. { askstitle: "", askItem: 1, checkList: [] },
  11078. ],
  11079. },
  11080. ],
  11081. isShowTools: false,
  11082. askCount: 1,
  11083. isFold: 1,
  11084. askTitle: "",
  11085. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11086. checkJson: [{ checkCount: [], checkPerent: [] }],
  11087. homeworkList: [],
  11088. },
  11089. ],
  11090. itemCount: 1,
  11091. fileList1: [],
  11092. video: [],
  11093. testData: [],
  11094. pData: [],
  11095. templateArray: [],
  11096. },
  11097. ],
  11098. },
  11099. ];
  11100. this.steps++;
  11101. setTimeout(() => {
  11102. this.checkEva(this.checkId);
  11103. setTimeout(() => {
  11104. this.checkEva(this.checkId);
  11105. }, 100);
  11106. }, 1000);
  11107. this.updateWork();
  11108. })
  11109. .catch(() => {
  11110. return;
  11111. });
  11112. },
  11113. checkTemplate3() {
  11114. let _this = this;
  11115. _this
  11116. .$confirm(_this.lang.ssChooseSimple, _this.lang.ssTip, {
  11117. confirmButtonText: _this.lang.ssConfirm,
  11118. cancelButtonText: _this.lang.ssCancel,
  11119. type: "warning",
  11120. })
  11121. .then(() => {
  11122. _this.unitIndex = 0;
  11123. _this.unitJson = [
  11124. {
  11125. dyName: "", //单元标题
  11126. easy: 1,
  11127. chapterInfo: [
  11128. {
  11129. isread: false,
  11130. chapterid: this.guid(),
  11131. title: "",
  11132. courseName: "",
  11133. taskJson: [
  11134. {
  11135. task: "",
  11136. taskDetail: "",
  11137. chapterData: [],
  11138. toolText: "",
  11139. toolChoose: [
  11140. {
  11141. tool: [],
  11142. toolDetail: "",
  11143. toolType: 0,
  11144. askCount: 1,
  11145. askTitle: "",
  11146. askJson: [
  11147. { askstitle: "", askItem: 1, checkList: [] },
  11148. ],
  11149. },
  11150. ],
  11151. isShowTools: false,
  11152. askCount: 1,
  11153. isFold: 1,
  11154. askTitle: "",
  11155. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11156. checkJson: [{ checkCount: [], checkPerent: [] }],
  11157. homeworkList: [],
  11158. },
  11159. ],
  11160. itemCount: 1,
  11161. fileList1: [],
  11162. video: [],
  11163. testData: [],
  11164. pData: [],
  11165. templateArray: [],
  11166. },
  11167. ],
  11168. },
  11169. ];
  11170. // this.steps++;
  11171. this.updateWork();
  11172. })
  11173. .catch(() => {
  11174. return;
  11175. });
  11176. },
  11177. checkTemplate4() {
  11178. let _this = this;
  11179. _this
  11180. .$confirm(_this.lang.ssChooseFuture, _this.lang.ssTip, {
  11181. confirmButtonText: _this.lang.ssConfirm,
  11182. cancelButtonText: _this.lang.ssCancel,
  11183. type: "warning",
  11184. })
  11185. .then(() => {
  11186. _this.unitIndex = 0;
  11187. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  11188. this.steps++;
  11189. this.updateWork();
  11190. })
  11191. .catch(() => {
  11192. return;
  11193. });
  11194. },
  11195. wordNext() {
  11196. this.dialogVisible2 = false;
  11197. },
  11198. isAddOrUpdateAttText() {
  11199. if (this.AttTextType == 0) {
  11200. this.addAttTextMessage();
  11201. } else {
  11202. this.updateAttText();
  11203. }
  11204. },
  11205. isAddOrUpdateLine() {
  11206. if (!this.lineTitle) {
  11207. this.$message.error(this.lang.ssLinkTitle);
  11208. return;
  11209. }
  11210. if (this.lineType == 0) {
  11211. this.addLine();
  11212. } else {
  11213. this.updateLine();
  11214. }
  11215. },
  11216. addAttTextMessage() {
  11217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11218. this.taskCount
  11219. ].chapterData.push({
  11220. name: this.AttText.title,
  11221. url: this.AttText.text,
  11222. type: 6,
  11223. });
  11224. this.imgChange1(null, null, 6, this.taskCount);
  11225. this.dialogVisible6 = false;
  11226. },
  11227. selectAttText(itemTaskIndex, i) {
  11228. this.AttText.title =
  11229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11230. itemTaskIndex
  11231. ].chapterData[i].name;
  11232. this.AttText.text =
  11233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11234. itemTaskIndex
  11235. ].chapterData[i].url;
  11236. this.taskCount = itemTaskIndex;
  11237. this.AttTextIndex = i;
  11238. this.AttTextType = 1;
  11239. this.dialogVisible6 = true;
  11240. },
  11241. updateAttText() {
  11242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11243. this.taskCount
  11244. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  11245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11246. this.taskCount
  11247. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  11248. this.dialogVisible6 = false;
  11249. },
  11250. addLine() {
  11251. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11252. this.lineCount
  11253. ].chapterData.push({
  11254. name: this.lang.ssLink,
  11255. title: this.lineTitle,
  11256. url: this.line,
  11257. type: 8,
  11258. });
  11259. this.imgChange1(null, null, 8, this.lineCount);
  11260. this.dialogVisible7 = false;
  11261. },
  11262. selectLine(itemTaskIndex, i) {
  11263. this.line =
  11264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11265. itemTaskIndex
  11266. ].chapterData[i].url;
  11267. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11268. itemTaskIndex
  11269. ].chapterData[i].title
  11270. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11271. .chapterData[i].title
  11272. : "";
  11273. this.taskCount = itemTaskIndex;
  11274. this.lineCount = i;
  11275. this.lineType = 1;
  11276. this.dialogVisible7 = true;
  11277. },
  11278. openUpdateSource(itemTaskIndex, i) {
  11279. this.sourceData = {};
  11280. let source =
  11281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11282. .chapterData[i];
  11283. this.sourceData[source.id] = {};
  11284. this.sourceData[source.id].name = source.title;
  11285. this.sourceData[source.id].url = source.url;
  11286. this.dialogVisibleSource = true;
  11287. this.updateSourcePan = true;
  11288. this.taskCount = itemTaskIndex;
  11289. this.lineCount = i;
  11290. },
  11291. updateLine() {
  11292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11293. this.taskCount
  11294. ].chapterData[this.lineCount].url = this.line;
  11295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11296. this.taskCount
  11297. ].chapterData[this.lineCount].title = this.lineTitle;
  11298. this.dialogVisible7 = false;
  11299. },
  11300. addPP() {
  11301. this.dialogVisible3 = true;
  11302. },
  11303. goTo(path) {
  11304. this.$router.push(path);
  11305. },
  11306. openTools(itemTaskIndex, i, toolIndex) {
  11307. this.toolIndex = toolIndex;
  11308. this.taskCount = itemTaskIndex;
  11309. if (i == 4) {
  11310. if (toolIndex == null) {
  11311. var a =
  11312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11313. .chapterData;
  11314. for (var i = 0; i < a.length; i++) {
  11315. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  11316. this.askJson =
  11317. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11318. itemTaskIndex
  11319. ].chapterData[i].askJson;
  11320. }
  11321. }
  11322. } else {
  11323. this.askJson = JSON.parse(
  11324. JSON.stringify(
  11325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11326. itemTaskIndex
  11327. ].toolChoose[toolIndex]
  11328. )
  11329. );
  11330. }
  11331. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  11332. this.dialogVisible5 = true;
  11333. } else if (i == 45) {
  11334. if (
  11335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11336. .toolChoose[toolIndex].testJson
  11337. ) {
  11338. this.testJson = JSON.parse(
  11339. JSON.stringify(
  11340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11341. itemTaskIndex
  11342. ].toolChoose[toolIndex].testJson
  11343. )
  11344. );
  11345. } else {
  11346. var testJson = {
  11347. testCount: 1,
  11348. testTitle: "",
  11349. testJson: [
  11350. {
  11351. teststitle: "",
  11352. testItem: 1,
  11353. checkList: [],
  11354. timuList: [],
  11355. answer: [],
  11356. type: "1",
  11357. },
  11358. ],
  11359. };
  11360. this.testJson = testJson;
  11361. }
  11362. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  11363. this.dialogVisibleChoice = true;
  11364. } else if (i == 47) {
  11365. if (
  11366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11367. .toolChoose[toolIndex].sentenceList
  11368. ) {
  11369. this.sentenceList = JSON.parse(
  11370. JSON.stringify(
  11371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11372. itemTaskIndex
  11373. ].toolChoose[toolIndex].sentenceList
  11374. )
  11375. );
  11376. } else {
  11377. var sentenceList = [
  11378. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11379. ];
  11380. this.sentenceList = sentenceList;
  11381. }
  11382. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11383. this.dialogVisibleSentence = true;
  11384. } else if (i == 48) {
  11385. if (
  11386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11387. .toolChoose[toolIndex].tableJson
  11388. ) {
  11389. this.tableJson = JSON.parse(
  11390. JSON.stringify(
  11391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11392. itemTaskIndex
  11393. ].toolChoose[toolIndex].tableJson
  11394. )
  11395. );
  11396. } else {
  11397. var tableJson = { text: "" };
  11398. this.tableJson = tableJson;
  11399. }
  11400. this.dialogVisibleTable = true;
  11401. } else if (i == 52) {
  11402. if (
  11403. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11404. .toolChoose[toolIndex].wordJson
  11405. ) {
  11406. this.wordJson = JSON.parse(
  11407. JSON.stringify(
  11408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11409. itemTaskIndex
  11410. ].toolChoose[toolIndex].wordJson
  11411. )
  11412. );
  11413. } else {
  11414. var wordJson = { text: "" };
  11415. this.wordJson = wordJson;
  11416. }
  11417. this.dialogVisibleWord = true;
  11418. // else if (i == 50) {
  11419. // if (
  11420. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11421. // .toolChoose[toolIndex].uploadJson
  11422. // ) {
  11423. // this.uploadJson = JSON.parse(
  11424. // JSON.stringify(
  11425. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11426. // itemTaskIndex
  11427. // ].toolChoose[toolIndex].uploadJson
  11428. // )
  11429. // );
  11430. // } else {
  11431. // var uploadJson = [];
  11432. // this.uploadJson = uploadJson;
  11433. // }
  11434. // this.dialogVisibleMoreUpload = true;
  11435. // }
  11436. } else if (i == 10) {
  11437. if (
  11438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11439. .toolChoose[toolIndex].preTime
  11440. ) {
  11441. this.preTime = JSON.parse(
  11442. JSON.stringify(
  11443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11444. itemTaskIndex
  11445. ].toolChoose[toolIndex].preTime
  11446. )
  11447. );
  11448. } else {
  11449. var preTime = 0;
  11450. this.preTime = preTime;
  11451. }
  11452. this.dialogVisiblePreTime = true;
  11453. } else if (i == 49) {
  11454. if (
  11455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11456. .toolChoose[toolIndex].groupJson
  11457. ) {
  11458. this.groupJson = JSON.parse(
  11459. JSON.stringify(
  11460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11461. itemTaskIndex
  11462. ].toolChoose[toolIndex].groupJson
  11463. )
  11464. );
  11465. } else {
  11466. var groupJson = {
  11467. group: [{ name: this.lang.ssGroup.replace(/\*/g, "1") }],
  11468. number: undefined,
  11469. islock: 1,
  11470. };
  11471. this.groupJson = groupJson;
  11472. }
  11473. this.dialogVisibleGroup = true;
  11474. } else if (i == 62) {
  11475. if (
  11476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11477. .toolChoose[toolIndex].videoJson
  11478. ) {
  11479. this.videoJson = JSON.parse(
  11480. JSON.stringify(
  11481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11482. itemTaskIndex
  11483. ].toolChoose[toolIndex].videoJson
  11484. )
  11485. );
  11486. } else {
  11487. var videoJson = {
  11488. video: "",
  11489. setting: [],
  11490. };
  11491. this.videoJson = videoJson;
  11492. }
  11493. this.dialogVisibleVideo = true;
  11494. } else if (i == 15) {
  11495. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11496. itemTaskIndex
  11497. ].toolChoose[toolIndex].answerQ
  11498. ? JSON.parse(
  11499. JSON.stringify(
  11500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11501. itemTaskIndex
  11502. ].toolChoose[toolIndex].answerQ
  11503. )
  11504. )
  11505. : "";
  11506. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11507. this.dialogVisible8 = true;
  11508. } else if (i == 40) {
  11509. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11510. itemTaskIndex
  11511. ].toolChoose[toolIndex].rateJson
  11512. ? JSON.parse(
  11513. JSON.stringify(
  11514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11515. itemTaskIndex
  11516. ].toolChoose[toolIndex].rateJson
  11517. )
  11518. )
  11519. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11520. this.selectSteps = 1;
  11521. this.dialogVisibleRate = true;
  11522. } else if (i == 42) {
  11523. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11524. itemTaskIndex
  11525. ].toolChoose[toolIndex].answerQ
  11526. ? JSON.parse(
  11527. JSON.stringify(
  11528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11529. itemTaskIndex
  11530. ].toolChoose[toolIndex].answerQ
  11531. )
  11532. )
  11533. : "";
  11534. this.dialogVisibleMp3 = true;
  11535. } else if (i == 41) {
  11536. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11537. itemTaskIndex
  11538. ].toolChoose[toolIndex].selectJson
  11539. ? JSON.parse(
  11540. JSON.stringify(
  11541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11542. itemTaskIndex
  11543. ].toolChoose[toolIndex].selectJson
  11544. )
  11545. )
  11546. : { url: "", select: [], answer: [] };
  11547. this.selectSteps = 1;
  11548. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11549. this.dialogVisibleSelect = true;
  11550. } else if (i == 3) {
  11551. if (!this.cid) {
  11552. this.$message.error(
  11553. this.lang.ssAddingTemplates
  11554. );
  11555. return;
  11556. }
  11557. window.topU.postMessage(
  11558. {
  11559. tools: "3y",
  11560. cid: this.cid,
  11561. stage: this.unitIndex,
  11562. task: itemTaskIndex,
  11563. tool: toolIndex,
  11564. },
  11565. "*"
  11566. );
  11567. } else if (i == 1) {
  11568. if (!this.cid) {
  11569. this.$message.error(
  11570. this.lang.ssAddingTemplates
  11571. );
  11572. return;
  11573. }
  11574. window.topU.postMessage(
  11575. {
  11576. tools: "1y",
  11577. cid: this.cid,
  11578. stage: this.unitIndex,
  11579. task: itemTaskIndex,
  11580. tool: toolIndex,
  11581. },
  11582. "*"
  11583. );
  11584. } else if (i == 57) {
  11585. if (!this.cid) {
  11586. this.$message.error(
  11587. this.lang.ssAddingTemplates
  11588. );
  11589. return;
  11590. }
  11591. window.topU.postMessage(
  11592. {
  11593. tools: "57y",
  11594. cid: this.cid,
  11595. stage: this.unitIndex,
  11596. task: itemTaskIndex,
  11597. tool: toolIndex,
  11598. },
  11599. "*"
  11600. );
  11601. } else if (i == 69) {
  11602. this.englishList = {};
  11603. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11604. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11605. ? JSON.parse(
  11606. JSON.stringify(
  11607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11608. itemTaskIndex
  11609. ].toolChoose[toolIndex].englishList
  11610. )
  11611. )
  11612. : {};
  11613. this.$forceUpdate();
  11614. this.englishDialogVisible = true;
  11615. } else if (i == 70) {
  11616. this.englishVoiceJson = {};
  11617. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11618. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11619. ? JSON.parse(
  11620. JSON.stringify(
  11621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11622. itemTaskIndex
  11623. ].toolChoose[toolIndex].englishVoiceJson
  11624. )
  11625. )
  11626. : {
  11627. title:'',
  11628. detail:'',
  11629. array:[]
  11630. };
  11631. // {
  11632. // time: "",
  11633. // class: "",
  11634. // difficulty: 0,
  11635. // topic: "",
  11636. // isShow: false,
  11637. // eva: 0,
  11638. // aiEva: {
  11639. // isAiEva: false,
  11640. // aiEvaChoose: [],
  11641. // },
  11642. // allfType: [],
  11643. // englishJson: {},
  11644. // };
  11645. this.$forceUpdate();
  11646. this.EnglishVoiceDialog = true;
  11647. }else if(i == 72){
  11648. let appJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11649. itemTaskIndex
  11650. ].toolChoose[toolIndex].appJson
  11651. ? JSON.parse(
  11652. JSON.stringify(
  11653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11654. itemTaskIndex
  11655. ].toolChoose[toolIndex].appJson
  11656. )
  11657. )
  11658. : {
  11659. url:'',
  11660. };
  11661. this.$forceUpdate();
  11662. this.$refs.appDialog.openG(appJson,this.unitIndex,itemTaskIndex,toolIndex);
  11663. }
  11664. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
  11665. && !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
  11666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
  11667. }
  11668. },
  11669. setEnglishVoiceJson(val) {
  11670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11671. this.taskCount
  11672. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11673. JSON.stringify(val)
  11674. );
  11675. this.$forceUpdate();
  11676. if (
  11677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11678. .toolChoose[this.toolIndex].tool != 70
  11679. ) {
  11680. this.addTools(70, this.taskCount, this.toolIndex);
  11681. }
  11682. },
  11683. chapAddTools(i) {
  11684. if (this.chapTools[0].tools.length == 0) {
  11685. this.chapTools[0].tools.push(i);
  11686. } else {
  11687. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11688. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11689. } else {
  11690. this.chapTools[0].tools.push(i);
  11691. }
  11692. }
  11693. this.$forceUpdate();
  11694. },
  11695. addChaptersDataTools() {
  11696. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11698. this.chapCount
  11699. ].chapterData.push({
  11700. name: this.chapTools[0].toolDetail,
  11701. url: this.chapTools[0].tools,
  11702. type: 7,
  11703. askJson: this.askJson,
  11704. });
  11705. } else {
  11706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11707. this.chapCount
  11708. ].chapterData.push({
  11709. name: this.chapTools[0].toolDetail,
  11710. url: this.chapTools[0].tools,
  11711. type: 7,
  11712. });
  11713. }
  11714. this.imgChange1(null, null, 7, this.chapCount);
  11715. this.dialogVisible4 = false;
  11716. },
  11717. addTools(i, itemTaskIndex, toolIndex) {
  11718. // if (
  11719. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11720. // .toolChoose[toolIndex].tool.length == 0
  11721. // ) {
  11722. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11723. // itemTaskIndex
  11724. // ].toolChoose[toolIndex].tool.push(i);
  11725. // } else {
  11726. // if (
  11727. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11728. // itemTaskIndex
  11729. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11730. // ) {
  11731. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11732. // itemTaskIndex
  11733. // ].toolChoose[toolIndex].tool.splice(
  11734. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11735. // itemTaskIndex
  11736. // ].toolChoose[toolIndex].tool.indexOf(i),
  11737. // 1
  11738. // );
  11739. // } else {
  11740. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11741. // itemTaskIndex
  11742. // ].toolChoose[toolIndex].tool.push(i);
  11743. // }
  11744. // console.log(
  11745. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11746. // .toolChoose[toolIndex].tool
  11747. // );
  11748. // }
  11749. if (i == 4) {
  11750. if (
  11751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11752. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11754. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11755. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11756. .toolChoose[toolIndex].askJson[0].checkList < 2
  11757. ) {
  11758. this.openTools(itemTaskIndex, 4, toolIndex);
  11759. // this.$message({
  11760. // message: "请填写完整问卷内容",
  11761. // type: "error",
  11762. // });
  11763. return;
  11764. }
  11765. }
  11766. if (i == 45) {
  11767. if (
  11768. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11769. .toolChoose[toolIndex].testJson ||
  11770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11771. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11773. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11774. ) {
  11775. this.openTools(itemTaskIndex, 45, toolIndex);
  11776. // this.$message({
  11777. // message: "请填写完整问卷内容",
  11778. // type: "error",
  11779. // });
  11780. return;
  11781. }
  11782. }
  11783. if (i == 47) {
  11784. if (
  11785. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11786. .toolChoose[toolIndex].sentenceList ||
  11787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11788. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11789. ) {
  11790. this.openTools(itemTaskIndex, 47, toolIndex);
  11791. return;
  11792. }
  11793. }
  11794. if (i == 69) {
  11795. if (
  11796. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11797. .toolChoose[toolIndex].englishList
  11798. ) {
  11799. this.openTools(itemTaskIndex, 69, toolIndex);
  11800. return;
  11801. }
  11802. }
  11803. if (i == 70) {
  11804. if (
  11805. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11806. .toolChoose[toolIndex].englishVoiceJson
  11807. ) {
  11808. this.openTools(itemTaskIndex, 70, toolIndex);
  11809. return;
  11810. }
  11811. }
  11812. if(i == 72){
  11813. if (
  11814. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11815. .toolChoose[toolIndex].appJson || Object.keys(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11816. .toolChoose[toolIndex].appJson).length == 0
  11817. ) {
  11818. this.openTools(itemTaskIndex, 72, toolIndex);
  11819. return;
  11820. }
  11821. }
  11822. // if (i == 48) {
  11823. // if (
  11824. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11825. // .toolChoose[toolIndex].tableJson
  11826. // ) {
  11827. // this.openTools(itemTaskIndex, 48, toolIndex);
  11828. // return;
  11829. // }
  11830. // }
  11831. // if (i == 50) {
  11832. // if (
  11833. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11834. // .toolChoose[toolIndex].uploadJson
  11835. // ) {
  11836. // this.openTools(itemTaskIndex, 50, toolIndex);
  11837. // return;
  11838. // }
  11839. // }
  11840. if (i == 49) {
  11841. if (
  11842. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11843. .toolChoose[toolIndex].groupJson
  11844. ) {
  11845. this.openTools(itemTaskIndex, 49, toolIndex);
  11846. return;
  11847. }
  11848. }
  11849. if (i == 62) {
  11850. if (
  11851. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11852. .toolChoose[toolIndex].videoJson
  11853. ) {
  11854. this.openTools(itemTaskIndex, 62, toolIndex);
  11855. return;
  11856. }
  11857. }
  11858. if (i == 15) {
  11859. if (
  11860. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11861. .toolChoose[toolIndex].answerQ ||
  11862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11863. .toolChoose[toolIndex].answerQ == ""
  11864. ) {
  11865. this.openTools(itemTaskIndex, 15, toolIndex);
  11866. // this.$message({
  11867. // message: "请填写问答内容",
  11868. // type: "error",
  11869. // });
  11870. return;
  11871. }
  11872. }
  11873. if (i == 40) {
  11874. if (
  11875. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11876. .toolChoose[toolIndex].rateJson ||
  11877. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11878. .toolChoose[toolIndex].rateJson.length
  11879. ) {
  11880. this.openTools(itemTaskIndex, 40, toolIndex);
  11881. return;
  11882. }
  11883. }
  11884. if (i == 41) {
  11885. if (
  11886. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11887. .toolChoose[toolIndex].selectJson ||
  11888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11889. .toolChoose[toolIndex].selectJson.url == "" ||
  11890. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11891. .toolChoose[toolIndex].selectJson.select.length ||
  11892. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11893. .toolChoose[toolIndex].selectJson.answer.length
  11894. ) {
  11895. this.openTools(itemTaskIndex, 41, toolIndex);
  11896. return;
  11897. }
  11898. }
  11899. if (i == 42) {
  11900. if (
  11901. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11902. .toolChoose[toolIndex].answerQ ||
  11903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11904. .toolChoose[toolIndex].answerQ == ""
  11905. ) {
  11906. this.openTools(itemTaskIndex, 42, toolIndex);
  11907. return;
  11908. }
  11909. }
  11910. if (
  11911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11912. .toolChoose[toolIndex].tool.length > 0
  11913. ) {
  11914. if (
  11915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11916. itemTaskIndex
  11917. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11918. ) {
  11919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11920. itemTaskIndex
  11921. ].toolChoose[toolIndex].tool.splice(
  11922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11923. itemTaskIndex
  11924. ].toolChoose[toolIndex].tool.indexOf(i),
  11925. 1
  11926. );
  11927. } else {
  11928. // this.$message({
  11929. // message: "每个工具只能添加一个",
  11930. // type: "error",
  11931. // });
  11932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11933. itemTaskIndex
  11934. ].toolChoose[toolIndex].tool = [];
  11935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11936. itemTaskIndex
  11937. ].toolChoose[toolIndex].tool.push(i);
  11938. }
  11939. } else {
  11940. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11941. itemTaskIndex
  11942. ].toolChoose[toolIndex].tool.push(i);
  11943. }
  11944. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
  11945. && !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
  11946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
  11947. }
  11948. this.$forceUpdate();
  11949. },
  11950. addAskList(index) {
  11951. this.askJson.askJson.splice(index + 1, 0, {
  11952. askstitle: "",
  11953. askItem: 1,
  11954. checkList: [],
  11955. });
  11956. this.askJson.askCount++;
  11957. },
  11958. addTestList(index) {
  11959. this.testJson.testJson.splice(index + 1, 0, {
  11960. teststitle: "",
  11961. testItem: 1,
  11962. checkList: [],
  11963. timuList: [],
  11964. answer: [],
  11965. type: "1",
  11966. });
  11967. this.testJson.testCount++;
  11968. },
  11969. deleteAskList(index) {
  11970. if (
  11971. !this.askJson.askJson[index].askstitle &&
  11972. this.askJson.askJson[index].askItem == 1 &&
  11973. !this.askJson.askJson[index].checkList[0]
  11974. ) {
  11975. this.askJson.askJson.splice(index, 1);
  11976. this.askJson.askCount--;
  11977. } else {
  11978. let _this = this;
  11979. _this
  11980. .$confirm(this.lang.ssIrrevers, this.lang.ssTip, {
  11981. confirmButtonText: this.lang.ssConfirm,
  11982. cancelButtonText: this.lang.ssCancel,
  11983. type: "warning",
  11984. })
  11985. .then(() => {
  11986. _this.askJson.askJson.splice(index, 1);
  11987. _this.askJson.askCount--;
  11988. })
  11989. .catch(() => {
  11990. return;
  11991. });
  11992. }
  11993. },
  11994. deleteTestList(index) {
  11995. if (
  11996. !this.testJson.testJson[index].teststitle &&
  11997. this.testJson.testJson[index].testItem == 1 &&
  11998. !this.testJson.testJson[index].checkList[0]
  11999. ) {
  12000. this.testJson.testJson.splice(index, 1);
  12001. this.testJson.testCount--;
  12002. } else {
  12003. let _this = this;
  12004. _this
  12005. .$confirm(this.lang.ssIrrevers, this.lang.ssTip, {
  12006. confirmButtonText: this.lang.ssConfirm,
  12007. cancelButtonText: this.lang.ssCancel,
  12008. type: "warning",
  12009. })
  12010. .then(() => {
  12011. _this.testJson.testJson.splice(index, 1);
  12012. _this.testJson.testCount--;
  12013. })
  12014. .catch(() => {
  12015. return;
  12016. });
  12017. }
  12018. },
  12019. askMove(type, index) {
  12020. if (type == 1) {
  12021. if (index > 0) {
  12022. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  12023. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  12024. this.askJson.askJson[index - 1] = b;
  12025. this.askJson.askJson[index] = a;
  12026. }
  12027. } else {
  12028. if (index < this.askJson.askJson.length - 1) {
  12029. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  12030. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  12031. this.askJson.askJson[index + 1] = b;
  12032. this.askJson.askJson[index] = a;
  12033. }
  12034. }
  12035. this.$forceUpdate();
  12036. },
  12037. checkMove(type, index, checkIndex) {
  12038. if (type == 1) {
  12039. if (checkIndex > 0) {
  12040. let a = JSON.parse(
  12041. JSON.stringify(
  12042. this.askJson.askJson[index].checkList[checkIndex - 1]
  12043. )
  12044. );
  12045. let b = JSON.parse(
  12046. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  12047. );
  12048. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  12049. this.askJson.askJson[index].checkList[checkIndex] = a;
  12050. }
  12051. } else {
  12052. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  12053. let a = JSON.parse(
  12054. JSON.stringify(
  12055. this.askJson.askJson[index].checkList[checkIndex + 1]
  12056. )
  12057. );
  12058. let b = JSON.parse(
  12059. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  12060. );
  12061. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  12062. this.askJson.askJson[index].checkList[checkIndex] = a;
  12063. }
  12064. }
  12065. this.$forceUpdate();
  12066. },
  12067. testMove(type, index) {
  12068. if (type == 1) {
  12069. if (index > 0) {
  12070. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  12071. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  12072. this.testJson.testJson[index - 1] = b;
  12073. this.testJson.testJson[index] = a;
  12074. }
  12075. } else {
  12076. if (index < this.testJson.testJson.length - 1) {
  12077. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  12078. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  12079. this.testJson.testJson[index + 1] = b;
  12080. this.testJson.testJson[index] = a;
  12081. }
  12082. }
  12083. this.$forceUpdate();
  12084. },
  12085. tcheckMove(type, index, checkIndex) {
  12086. if (type == 1) {
  12087. if (checkIndex > 0) {
  12088. let a = JSON.parse(
  12089. JSON.stringify(
  12090. this.testJson.testJson[index].checkList[checkIndex - 1]
  12091. )
  12092. );
  12093. let b = JSON.parse(
  12094. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  12095. );
  12096. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  12097. this.testJson.testJson[index].checkList[checkIndex] = a;
  12098. }
  12099. } else {
  12100. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  12101. let a = JSON.parse(
  12102. JSON.stringify(
  12103. this.testJson.testJson[index].checkList[checkIndex + 1]
  12104. )
  12105. );
  12106. let b = JSON.parse(
  12107. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  12108. );
  12109. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  12110. this.testJson.testJson[index].checkList[checkIndex] = a;
  12111. }
  12112. }
  12113. this.$forceUpdate();
  12114. },
  12115. addcheckList(json, index) {
  12116. // json.checkList.length++;
  12117. json.checkList.splice(index + 1, 0, "");
  12118. json.askItem++;
  12119. this.$forceUpdate();
  12120. },
  12121. deletecheckList(json, index) {
  12122. // json.checkList.length--;
  12123. json.checkList.splice(index, 1);
  12124. json.askItem--;
  12125. this.$forceUpdate();
  12126. },
  12127. addTcheckList(json, index) {
  12128. // json.checkList.length++;
  12129. json.checkList.splice(index + 1, 0, "");
  12130. json.testItem++;
  12131. this.$forceUpdate();
  12132. },
  12133. deleteTcheckList(json, index) {
  12134. // json.checkList.length--;
  12135. json.checkList.splice(index, 1);
  12136. json.testItem--;
  12137. this.$forceUpdate();
  12138. },
  12139. checkTestType(type, json) {
  12140. json.type = type;
  12141. setTimeout(() => {
  12142. json.answer = [];
  12143. }, 100);
  12144. },
  12145. checkAskType(type, json) {
  12146. json.type = type;
  12147. // json.checkList = [];
  12148. this.$forceUpdate();
  12149. },
  12150. addSelectList(json) {
  12151. json.select.push("");
  12152. json.answer.push("");
  12153. },
  12154. deleteSelectList(json) {
  12155. // json.select.length--;
  12156. // json.answer.length--;
  12157. json.select.splice(json.select.length - 1, 1);
  12158. json.answer.splice(json.answer.length - 1, 1);
  12159. },
  12160. addAsk() {
  12161. if (this.askJson.askTitle === "") {
  12162. this.$message.error(this.lang.ssTitleEmpty);
  12163. return;
  12164. }
  12165. var aj = this.askJson.askJson;
  12166. var b = 1;
  12167. for (var i = 0; i < aj.length; i++) {
  12168. if (aj[i].askstitle === "") {
  12169. var a = 1;
  12170. for (let index = 0; index < aj[i].askItem; index++) {
  12171. const element = aj[i].checkList[index]
  12172. ? aj[i].checkList[index]
  12173. : "";
  12174. if (element != "") {
  12175. b++;
  12176. this.$message.error(`请将题目${i + 1}填写完整。`);
  12177. return;
  12178. } else {
  12179. a++;
  12180. }
  12181. }
  12182. if (b == 1) {
  12183. this.$message.error(this.lang.ssOneQues);
  12184. return;
  12185. }
  12186. } else if (aj[i].askstitle != "") {
  12187. for (let index = 0; index < aj[i].askItem; index++) {
  12188. const element = aj[i].checkList[index]
  12189. ? aj[i].checkList[index]
  12190. : "";
  12191. var index = 0;
  12192. for (var z = 0; z < aj[i].checkList.length; z++) {
  12193. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  12194. if (checkC != "") {
  12195. index++;
  12196. } else {
  12197. this.$message.error(this.lang.ssOptEmpty.replace(/\*/g, i + 1));
  12198. return;
  12199. }
  12200. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  12201. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  12202. if (checkC == checkC2) {
  12203. this.$message.error(
  12204. this.lang.ssOptDup.replace(/\*/g, i + 1).replace(/&/g, this.optionTypeList[z]).replace(/\$/g, this.optionTypeList[z2])
  12205. );
  12206. return;
  12207. }
  12208. }
  12209. }
  12210. b++;
  12211. if (index < 2) {
  12212. this.$message.error(this.lang.ssEachQues);
  12213. return;
  12214. }
  12215. }
  12216. }
  12217. }
  12218. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  12219. var elc = el.checkList.filter((element) => {
  12220. return element != "";
  12221. });
  12222. return el.askstitle != "" && elc.length != 0;
  12223. });
  12224. if (!this.dialogVisible4) {
  12225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12226. this.taskCount
  12227. ].toolChoose[this.toolIndex] = this.askJson;
  12228. }
  12229. this.dialogVisible5 = false;
  12230. if (
  12231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12232. .toolChoose[this.toolIndex].tool != 4
  12233. ) {
  12234. this.addTools(4, this.taskCount, this.toolIndex);
  12235. }
  12236. },
  12237. addTest() {
  12238. // if (this.testJson.testTitle === "") {
  12239. // this.$message.error("标题不能为空!");
  12240. // return;
  12241. // }
  12242. var aj = this.testJson.testJson;
  12243. var b = 1;
  12244. for (var i = 0; i < aj.length; i++) {
  12245. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  12246. var a = 1;
  12247. for (let index = 0; index < aj[i].testItem; index++) {
  12248. const element = aj[i].checkList[index]
  12249. ? aj[i].checkList[index]
  12250. : "";
  12251. if (element != "") {
  12252. b++;
  12253. this.$message.error(this.lang.ssFillTitle.replace(/\*/g, i + 1));
  12254. return;
  12255. } else {
  12256. a++;
  12257. }
  12258. }
  12259. if (b == 1) {
  12260. this.$message.error(this.lang.ssOneQues);
  12261. return;
  12262. }
  12263. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  12264. for (let index = 0; index < aj[i].testItem; index++) {
  12265. const element = aj[i].checkList[index]
  12266. ? aj[i].checkList[index]
  12267. : "";
  12268. var index = 0;
  12269. for (var z = 0; z < aj[i].checkList.length; z++) {
  12270. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  12271. if (checkC != "") {
  12272. index++;
  12273. } else {
  12274. this.$message.error(this.lang.ssOptEmpty.replace(/\*/g, i + 1));
  12275. return;
  12276. }
  12277. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  12278. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  12279. if (checkC == checkC2) {
  12280. this.$message.error(
  12281. this.lang.ssOptDup.replace(/\*/g, i + 1).replace(/&/g, this.optionTypeList[z]).replace(/\$/g, this.optionTypeList[z2])
  12282. );
  12283. return;
  12284. }
  12285. }
  12286. }
  12287. b++;
  12288. if (index < 2) {
  12289. this.$message.error(this.lang.ssEachQues);
  12290. return;
  12291. }
  12292. if (
  12293. (aj[i].type == "2" && !aj[i].answer.length) ||
  12294. (aj[i].type == "1" &&
  12295. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  12296. (aj[i].answer !== 0 && !aj[i].answer)))
  12297. ) {
  12298. this.$message.error(this.lang.ssCorrectOpt.replace(/\*/, (i + 1).toString()));
  12299. return;
  12300. }
  12301. }
  12302. }
  12303. }
  12304. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12305. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12306. var elc = el.checkList.filter((element) => {
  12307. return element != "";
  12308. });
  12309. return (
  12310. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  12311. );
  12312. });
  12313. isTestJson.testCount = isTestJson.testJson.length;
  12314. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12315. this.taskCount
  12316. ].toolChoose[this.toolIndex].testJson = isTestJson;
  12317. this.dialogVisibleChoice = false;
  12318. if (
  12319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12320. .toolChoose[this.toolIndex].tool != 45
  12321. ) {
  12322. this.addTools(45, this.taskCount, this.toolIndex);
  12323. }
  12324. },
  12325. addVideoJson(videoJson) {
  12326. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12327. this.taskCount
  12328. ].toolChoose[this.toolIndex].videoJson = videoJson;
  12329. this.dialogVisibleVideo = false;
  12330. if (
  12331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12332. .toolChoose[this.toolIndex].tool != 62
  12333. ) {
  12334. this.addTools(62, this.taskCount, this.toolIndex);
  12335. }
  12336. },
  12337. //自动获取剪贴板
  12338. pasteOption() {
  12339. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12340. if (!iframe) {
  12341. this.$message.error(this.lang.ssUseAIQues);
  12342. return;
  12343. }
  12344. let copyData = iframe.contentWindow.copyData;
  12345. if (!copyData || !copyData.selectData.length) {
  12346. this.$message.error(this.lang.ssUseAIQues);
  12347. return;
  12348. }
  12349. let selectData = copyData.selectData;
  12350. for (var i = 0; i < selectData.length; i++) {
  12351. let answer = 0;
  12352. switch (selectData[i].answer[0]) {
  12353. case "A":
  12354. answer = 0;
  12355. break;
  12356. case "B":
  12357. answer = 1;
  12358. break;
  12359. case "C":
  12360. answer = 2;
  12361. break;
  12362. case "D":
  12363. answer = 3;
  12364. break;
  12365. case "E":
  12366. answer = 4;
  12367. break;
  12368. default:
  12369. break;
  12370. }
  12371. this.testJson.testJson.push({
  12372. teststitle: selectData[i].subject,
  12373. testItem: selectData[i].options.length,
  12374. checkList: selectData[i].options,
  12375. timuList: [],
  12376. answer: answer,
  12377. type: "1",
  12378. });
  12379. this.testJson.testCount++;
  12380. }
  12381. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12382. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12383. var elc = el.checkList.filter((element) => {
  12384. return element != "";
  12385. });
  12386. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  12387. });
  12388. isTestJson.testCount = isTestJson.testJson.length;
  12389. if (!isTestJson.testCount) {
  12390. return;
  12391. }
  12392. this.testJson = isTestJson;
  12393. this.$forceUpdate();
  12394. },
  12395. pasteTask(taskJson) {
  12396. let stageTasksData = [];
  12397. if (taskJson) {
  12398. stageTasksData = taskJson;
  12399. } else {
  12400. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12401. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  12402. if (!iframe && !iframe2) {
  12403. this.$message.error(this.lang.ssUseAI);
  12404. return;
  12405. }
  12406. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12407. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12408. if (
  12409. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  12410. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  12411. ) {
  12412. this.$message.error(this.lang.ssUseAI);
  12413. return;
  12414. }
  12415. stageTasksData = copyData
  12416. ? copyData.tasksData
  12417. : copyData2
  12418. ? copyData2.tasksData
  12419. : [{ taskName: "", taskDecs: "" }];
  12420. }
  12421. let taskA = [];
  12422. let tasks = stageTasksData;
  12423. for (var j = 0; j < tasks.length; j++) {
  12424. taskA.push({
  12425. task: tasks[j].taskName,
  12426. taskDetail: tasks[j].taskDecs,
  12427. chapterData: [],
  12428. toolText: "",
  12429. toolChoose: [
  12430. {
  12431. tool: [],
  12432. toolDetail: "",
  12433. toolType: 0,
  12434. askCount: 1,
  12435. askTitle: "",
  12436. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12437. },
  12438. ],
  12439. isShowTools: false,
  12440. askCount: 1,
  12441. isFold: 1,
  12442. askTitle: "",
  12443. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12444. checkJson: [{ checkCount: [], checkPerent: [] }],
  12445. homeworkList: [],
  12446. });
  12447. }
  12448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12449. this.$forceUpdate();
  12450. },
  12451. pasteStage(stageJson) {
  12452. let stageData = [];
  12453. if (stageJson) {
  12454. stageData = stageJson;
  12455. } else {
  12456. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12457. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  12458. if (!iframe && !iframe2) {
  12459. this.$message.error(this.lang.ssUseAI);
  12460. return;
  12461. }
  12462. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12463. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12464. if (
  12465. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  12466. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  12467. ) {
  12468. this.$message.error(this.lang.ssUseAI);
  12469. return;
  12470. }
  12471. stageData = copyData
  12472. ? copyData.stageData
  12473. : copyData2
  12474. ? copyData2.stageData
  12475. : [""];
  12476. }
  12477. let stage = [];
  12478. for (var i = 0; i < stageData.length; i++) {
  12479. stage.push({
  12480. dyName: stageData[i], //单元标题
  12481. chapterInfo: [
  12482. {
  12483. isread: false,
  12484. chapterid: this.guid(),
  12485. title: "",
  12486. courseName: "",
  12487. taskJson: [
  12488. {
  12489. task: "",
  12490. taskDetail: "",
  12491. chapterData: [],
  12492. toolText: "",
  12493. toolChoose: [
  12494. {
  12495. tool: [],
  12496. toolDetail: "",
  12497. toolType: 0,
  12498. askCount: 1,
  12499. askTitle: "",
  12500. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12501. },
  12502. ],
  12503. isShowTools: false,
  12504. askCount: 1,
  12505. isFold: 1,
  12506. askTitle: "",
  12507. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12508. checkJson: [{ checkCount: [], checkPerent: [] }],
  12509. homeworkList: [],
  12510. },
  12511. ],
  12512. itemCount: 1,
  12513. fileList1: [],
  12514. video: [],
  12515. testData: [],
  12516. pData: [],
  12517. templateArray: [],
  12518. },
  12519. ],
  12520. });
  12521. }
  12522. let _this = this;
  12523. if (stageJson) {
  12524. if (!_this.cid) {
  12525. _this.unitJson = stage;
  12526. } else {
  12527. _this.unitIndex = 0;
  12528. _this.unitJson = stage;
  12529. _this.updateWork();
  12530. }
  12531. } else {
  12532. _this
  12533. .$confirm(
  12534. this.lang.ssSmartPasteTemp,
  12535. this.lang.ssTip,
  12536. {
  12537. confirmButtonText: this.lang.ssConfirm,
  12538. cancelButtonText: this.lang.ssCancel,
  12539. type: "warning",
  12540. }
  12541. )
  12542. .then(() => {
  12543. _this.unitIndex = 0;
  12544. _this.unitJson = stage;
  12545. // _this.steps++;
  12546. _this.updateWork();
  12547. })
  12548. .catch(() => {
  12549. return;
  12550. });
  12551. }
  12552. },
  12553. openStageBox() {
  12554. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12555. this.dialogVisibleStageChange = true;
  12556. },
  12557. updateChange() {
  12558. this.$confirm(
  12559. this.lang.ssStageSeqDel,
  12560. this.lang.ssTip,
  12561. {
  12562. confirmButtonText: this.lang.ssConfirm,
  12563. cancelButtonText: this.lang.ssCancel,
  12564. type: "warning",
  12565. }
  12566. )
  12567. .then(() => {
  12568. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12569. this.updateWork();
  12570. this.dialogVisibleStageChange = false;
  12571. })
  12572. .catch(() => {
  12573. return;
  12574. });
  12575. },
  12576. addAnswer() {
  12577. if (this.answerQ == "") {
  12578. this.$message.error(this.lang.ssEnterQuesL);
  12579. return;
  12580. }
  12581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12582. this.taskCount
  12583. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12584. this.dialogVisible8 = false;
  12585. if (
  12586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12587. .toolChoose[this.toolIndex].tool != 15
  12588. ) {
  12589. this.addTools(15, this.taskCount, this.toolIndex);
  12590. }
  12591. },
  12592. addMp3Answer() {
  12593. if (this.answerQ == "") {
  12594. this.$message.error(this.lang.ssEnterWant);
  12595. return;
  12596. }
  12597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12598. this.taskCount
  12599. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12600. this.dialogVisibleMp3 = false;
  12601. },
  12602. addRateAnswer() {
  12603. var a = 1;
  12604. for (var i = 0; i < this.rateJson.length; i++) {
  12605. if (this.rateJson[i].value == "") {
  12606. a = 2;
  12607. break;
  12608. }
  12609. }
  12610. if (a == 2) {
  12611. this.$message.error(this.lang.ssFillEvaInfo);
  12612. return;
  12613. }
  12614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12615. this.taskCount
  12616. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12617. this.dialogVisibleRate = false;
  12618. if (
  12619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12620. .toolChoose[this.toolIndex].tool != 40
  12621. ) {
  12622. this.addTools(40, this.taskCount, this.toolIndex);
  12623. }
  12624. },
  12625. addSelectAnswer() {
  12626. if (this.selectJson.url == "") {
  12627. this.$message.error(this.lang.ssUploadQues);
  12628. return;
  12629. }
  12630. if (!this.selectJson.select.length) {
  12631. this.$message.error(this.lang.ssPlsAddOpt);
  12632. return;
  12633. }
  12634. if (!this.selectJson.answer.length) {
  12635. this.$message.error(this.lang.ssSetAns);
  12636. return;
  12637. }
  12638. var a = 1;
  12639. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12640. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12641. a = 2;
  12642. }
  12643. }
  12644. if (a == 2) {
  12645. this.$message.error(this.lang.ssSetAns);
  12646. return;
  12647. }
  12648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12649. this.taskCount
  12650. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12651. this.dialogVisibleSelect = false;
  12652. if (
  12653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12654. .toolChoose[this.toolIndex].tool != 41
  12655. ) {
  12656. this.addTools(41, this.taskCount, this.toolIndex);
  12657. }
  12658. },
  12659. nextSelectSteps() {
  12660. if (this.selectJson.url == "") {
  12661. this.$message.error(this.lang.ssUploadQues);
  12662. return;
  12663. }
  12664. if (!this.selectJson.select.length) {
  12665. this.$message.error(this.lang.ssPlsAddOpt);
  12666. return;
  12667. } else {
  12668. for (var z = 0; z < this.selectJson.select.length; z++) {
  12669. let checkC = this.selectJson.select[z];
  12670. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12671. let checkC2 = this.selectJson.select[z2];
  12672. if (checkC == checkC2) {
  12673. this.$message.error(
  12674. this.lang.ssOptDup.replace(/\*/, (z + 1).toString()).replace(/\$/, (z2 + 1).toString())
  12675. );
  12676. return;
  12677. }
  12678. }
  12679. }
  12680. }
  12681. var a = 1;
  12682. for (var i = 0; i < this.selectJson.select.length; i++) {
  12683. if (!this.selectJson.select[i]) {
  12684. a = 2;
  12685. }
  12686. }
  12687. if (a == 2) {
  12688. this.$message.error(this.lang.ssOptEmpty2);
  12689. return;
  12690. }
  12691. this.selectSteps++;
  12692. },
  12693. selectCourseDetail() {
  12694. if (this.cid == "" || this.cid == undefined) {
  12695. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12696. this.isTeacherSee = true;
  12697. }
  12698. console.log("这是新增课程");
  12699. this.selectAllType();
  12700. } else {
  12701. this.cidType = 1;
  12702. let params = {
  12703. cid: this.cid,
  12704. };
  12705. this.ajax
  12706. .get(this.$store.state.api + "select_course_detail", params)
  12707. .then((res) => {
  12708. this.loading = true;
  12709. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12710. this.courseState = res.data[0][0].state;
  12711. for (var j = 0; j < this.unitJson.length; j++) {
  12712. for (
  12713. var k = 0;
  12714. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12715. k++
  12716. ) {
  12717. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12718. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12719. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12720. : [];
  12721. let _chapterData = [];
  12722. for (
  12723. var c = 0;
  12724. c <
  12725. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12726. .length;
  12727. c++
  12728. ) {
  12729. if (
  12730. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12731. ) {
  12732. _chapterData.push(
  12733. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12734. );
  12735. }
  12736. }
  12737. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12738. _chapterData;
  12739. }
  12740. }
  12741. this.$forceUpdate();
  12742. this.courseName = res.data[0][0].title;
  12743. this.courseText = res.data[0][0].brief;
  12744. this.evalua = res.data[0][0].evaId;
  12745. this.cover = JSON.parse(res.data[0][0].cover);
  12746. this.noneBtnImg = this.cover.length >= 1;
  12747. // this.checkboxList =
  12748. // res.data[0][0].course_student.length > 0
  12749. // ? JSON.parse(res.data[0][0].course_student)
  12750. // : [];
  12751. this.checkboxList2 = res.data[0][0].juri
  12752. ? res.data[0][0].juri.split(",")
  12753. : [];
  12754. this.inviteCode = [];
  12755. for (var i = 0; i < res.data[2].length; i++) {
  12756. this.inviteCode.push({
  12757. cid: res.data[2][i].classid,
  12758. ic: res.data[2][i].code,
  12759. });
  12760. }
  12761. this.checkboxList3 = res.data[0][0].course_teacher
  12762. ? res.data[0][0].course_teacher.split(",")
  12763. : [];
  12764. // this.isTeacherSee =
  12765. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12766. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12767. this.highSetting = res.data[0][0].highSetting == 1 ? true : false;
  12768. this.myWord = res.data[0][0].template;
  12769. this.templateC.id = "123";
  12770. this.courseUserid = res.data[0][0].userid;
  12771. // if(this.courseUserid == this.userid){
  12772. // this.InviteChange(this.checkboxList2)
  12773. // }
  12774. this.nbOrder = res.data[0][0].ordernumber;
  12775. this.courseTypeId = [];
  12776. for (var i = 0; i < res.data[1].length; i++) {
  12777. this.courseTypeId.push(res.data[1][i].typeid);
  12778. }
  12779. console.log(this.courseTypeId);
  12780. // if (this.timer) clearInterval(this.timer);
  12781. if (this.timer) clearTimeout(this.timer);
  12782. this.timer = null;
  12783. // this.timer = setInterval(() => {
  12784. this.seleteCourseUpdate();
  12785. this.setMan();
  12786. this.selectAllType();
  12787. this.unitJson[
  12788. this.unitIndex
  12789. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12790. // }, 5000);
  12791. this.$forceUpdate();
  12792. setTimeout(() => {
  12793. this.checkEva(this.evalua);
  12794. setTimeout(() => {
  12795. this.checkEva(this.evalua);
  12796. }, 100);
  12797. }, 100);
  12798. })
  12799. .catch((err) => {
  12800. console.error(err);
  12801. });
  12802. }
  12803. },
  12804. seleteCourseUpdate() {
  12805. let params = {
  12806. cid: this.cid,
  12807. };
  12808. this.ajax
  12809. .get(this.$store.state.api + "select_course_detail", params)
  12810. .then((res) => {
  12811. // console.log(this.unitJson);
  12812. let unitJson = JSON.parse(res.data[0][0].chapters);
  12813. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12814. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12815. let _unitJson = [];
  12816. let _chapAarry = [];
  12817. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12818. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12819. let index = 1;
  12820. let chapindex;
  12821. if (_unitJson2.length > unitJson.length) {
  12822. for (let c = 0; c < _unitJson2.length; c++) {
  12823. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12824. }
  12825. for (let j = 0; j < unitJson.length; j++) {
  12826. let count = 0;
  12827. for (let k = 0; k < _unitJson2.length; k++) {
  12828. if (
  12829. unitJson[j].chapterInfo[0].chapterid ==
  12830. _unitJson2[k].chapterInfo[0].chapterid
  12831. ) {
  12832. count++;
  12833. _chapAarry.splice(
  12834. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12835. 1
  12836. );
  12837. _unitJson.push(unitJson[j]);
  12838. break;
  12839. }
  12840. }
  12841. // if(count === 0){
  12842. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12843. // }
  12844. }
  12845. for (let k = 0; k < _unitJson2.length; k++) {
  12846. if (_unitJson2[k].isUpdate == 1) {
  12847. _chapAarry.splice(
  12848. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12849. 1
  12850. );
  12851. _unitJson.push(_unitJson2[k]);
  12852. }
  12853. }
  12854. console.log(_chapAarry);
  12855. for (let d = 0; d < _unitJson2.length; d++) {
  12856. if (
  12857. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12858. ) {
  12859. if (_unitIndex == d) {
  12860. index = 2;
  12861. }
  12862. chapindex = d;
  12863. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12864. }
  12865. }
  12866. } else {
  12867. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12868. }
  12869. for (let i = 0; i < unitJson.length; i++) {
  12870. if (
  12871. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12872. _unitJson[i].chapterInfo[0].chapterid !=
  12873. unitJson[i].chapterInfo[0].chapterid
  12874. ) {
  12875. if (i == _unitJson.length - 1) {
  12876. // this.unitIndex++
  12877. _unitIndex2++;
  12878. }
  12879. _unitJson.splice(i, 0, unitJson[i]);
  12880. } else if (i > _unitJson.length - 1) {
  12881. _unitJson.push(unitJson[i]);
  12882. } else if (
  12883. _unitJson[i].chapterInfo[0].chapterid ==
  12884. unitJson[i].chapterInfo[0].chapterid
  12885. ) {
  12886. _unitJson[i] = unitJson[i];
  12887. }
  12888. // if (i == _unitIndex) {
  12889. // continue;
  12890. // } else
  12891. }
  12892. if (_chapAarry.length && index != 2) {
  12893. if (chapindex < _unitIndex) {
  12894. this.isDelete = 2;
  12895. // this.unitIndex--;
  12896. _unitIndex2--;
  12897. } else if (
  12898. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12899. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12900. ) {
  12901. this.isDelete = 2;
  12902. for (let n = 0; n < _unitJson.length; n++) {
  12903. if (
  12904. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12905. _unitJson[n].chapterInfo[0].chapterid
  12906. ) {
  12907. // this.unitIndex = n;
  12908. _unitIndex2 = n;
  12909. _unitJson[n] = _unitJson2[_unitIndex];
  12910. break;
  12911. }
  12912. }
  12913. }
  12914. } else if (index != 2) {
  12915. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12916. _unitJson2[_unitIndex];
  12917. for (
  12918. var ci = 0;
  12919. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12920. ci++
  12921. ) {
  12922. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12923. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12924. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12925. .toolChoose
  12926. : [];
  12927. let _chapterData = [];
  12928. for (
  12929. var c = 0;
  12930. c <
  12931. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12932. .length;
  12933. c++
  12934. ) {
  12935. if (
  12936. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12937. .chapterData[c]
  12938. ) {
  12939. _chapterData.push(
  12940. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12941. .chapterData[c]
  12942. );
  12943. }
  12944. }
  12945. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12946. _chapterData;
  12947. }
  12948. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12949. }
  12950. if (index == 1) {
  12951. this.unitJson = _unitJson;
  12952. this.$forceUpdate();
  12953. setTimeout(() => {
  12954. if (this.unitIndex != _unitIndex2) {
  12955. this.isDelete = 2;
  12956. this.unitIndex = _unitIndex2;
  12957. }
  12958. }, 0);
  12959. this.timer = setTimeout(() => {
  12960. this.seleteCourseUpdate();
  12961. }, 5000);
  12962. } else if (index == 2) {
  12963. let _this = this;
  12964. _this
  12965. .$confirm(
  12966. this.lang.ssStageDeletedRestore,
  12967. this.lang.ssTip,
  12968. {
  12969. confirmButtonText: this.lang.ssNeed,
  12970. cancelButtonText: this.lang.ssCancel,
  12971. type: "warning",
  12972. }
  12973. )
  12974. .then(() => {
  12975. if (_this.time()) {
  12976. _this.restoreWork(
  12977. _chapAarry[0],
  12978. _unitJson,
  12979. chapindex,
  12980. _unitJson2,
  12981. _unitIndex2
  12982. );
  12983. }
  12984. })
  12985. .catch(() => {
  12986. _this.unitJson = _unitJson;
  12987. _this.$forceUpdate();
  12988. setTimeout(() => {
  12989. if (this.unitIndex != _unitIndex2) {
  12990. this.isDelete = 2;
  12991. this.unitIndex = _unitIndex2;
  12992. }
  12993. }, 0);
  12994. _this.timer = setTimeout(() => {
  12995. _this.seleteCourseUpdate();
  12996. }, 5000);
  12997. });
  12998. }
  12999. // 在复制操作之前记录滚动位置
  13000. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  13001. // 执行复制操作
  13002. // 复制操作完成后恢复滚动位置
  13003. this.$nextTick(() => {
  13004. if(this.$refs.scrollContainer){
  13005. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  13006. }
  13007. });
  13008. })
  13009. .catch((err) => {
  13010. console.error(err);
  13011. });
  13012. },
  13013. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  13014. let params = [
  13015. {
  13016. cid: this.cid,
  13017. chapters: JSON.stringify(this.unitJson),
  13018. uid: this.userid,
  13019. chapid: chapid,
  13020. },
  13021. ];
  13022. this.ajax
  13023. .post(this.$store.state.api + "restoreWork", params)
  13024. .then((res) => {
  13025. this.$message({
  13026. message: this.lang.ssRecoverySuccessful,
  13027. type: "success",
  13028. });
  13029. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  13030. this.unitJson = unitJson;
  13031. this.$forceUpdate();
  13032. setTimeout(() => {
  13033. if (this.unitIndex != unitIndex2) {
  13034. this.isDelete = 2;
  13035. this.unitIndex = unitIndex2;
  13036. }
  13037. }, 0);
  13038. this.timer = setTimeout(() => {
  13039. this.seleteCourseUpdate();
  13040. }, 5000);
  13041. })
  13042. .catch((err) => {
  13043. this.$message.error(this.lang.ssNetPoor);
  13044. console.error(err);
  13045. });
  13046. },
  13047. getTypeName() {
  13048. console.log(this.courseTypeId);
  13049. this.$forceUpdate();
  13050. },
  13051. selectAllType() {
  13052. let params = {
  13053. org: this.org && this.org != "" ? this.org : "",
  13054. oid: this.oid && this.oid != "" ? this.oid : "",
  13055. stand: this.lang.lang
  13056. };
  13057. this.ajax
  13058. .get(this.$store.state.api + "selectAllTypeStand", params)
  13059. .then((res) => {
  13060. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  13061. res.data[0] = [...res.data[0], ...res.data[4]];
  13062. }
  13063. this.CourseType = res.data;
  13064. this.CourseType2 = [
  13065. { name: this.lang.ssZhijian, id: [] },
  13066. { name: this.lang.ssZhixing, id: [] },
  13067. { name: this.lang.ssIntelli, id: [] },
  13068. ];
  13069. for (var cti = 0; cti < res.data[0].length; cti++) {
  13070. if (
  13071. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  13072. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  13073. ) {
  13074. this.CourseType2[0].id.push(res.data[0][cti].id);
  13075. } else if (
  13076. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  13077. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  13078. ) {
  13079. this.CourseType2[1].id.push(res.data[0][cti].id);
  13080. } else if (
  13081. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  13082. ) {
  13083. this.CourseType2[2].id.push(res.data[0][cti].id);
  13084. }
  13085. if (
  13086. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  13087. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  13088. ) {
  13089. res.data[0][cti].name = this.lang.ssGradeType;
  13090. } else if (
  13091. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  13092. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  13093. ) {
  13094. res.data[0][cti].name = this.lang.ssSubjectCategory;
  13095. } else if (
  13096. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  13097. ) {
  13098. res.data[0][cti].name = this.lang.ssThemeType;
  13099. }
  13100. }
  13101. let _courseTypeId = [];
  13102. for (var i = 0; i < res.data[0].length; i++) {
  13103. if (!this.cid) {
  13104. this.courseTypeId[res.data[0][i].id] = [];
  13105. }
  13106. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  13107. // }
  13108. this.CourseTypeJson[res.data[0][i].id] = [];
  13109. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  13110. if (res.data[0][i].name == this.lang.ssColumn) {
  13111. this.CourseType[0][i].name = this.lang.ssThemeType;
  13112. }
  13113. }
  13114. if (res.data[2].length == 0 && res.data[3].length == 0) {
  13115. for (var j = 0; j < res.data[1].length; j++) {
  13116. if (
  13117. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  13118. _courseTypeId.indexOf(res.data[1][j].id) == -1
  13119. ) {
  13120. _courseTypeId.push(res.data[1][j].id);
  13121. }
  13122. if (res.data[0][i].id == res.data[1][j].pid) {
  13123. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  13124. }
  13125. }
  13126. } else {
  13127. if (res.data[2].length > 0) {
  13128. for (var j = 0; j < res.data[2].length; j++) {
  13129. if (
  13130. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  13131. _courseTypeId.indexOf(res.data[2][j].id) == -1
  13132. ) {
  13133. _courseTypeId.push(res.data[2][j].id);
  13134. }
  13135. if (res.data[0][i].id == res.data[2][j].pid) {
  13136. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  13137. }
  13138. }
  13139. }
  13140. if (res.data[3].length > 0) {
  13141. for (var j = 0; j < res.data[3].length; j++) {
  13142. if (
  13143. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  13144. _courseTypeId.indexOf(res.data[3][j].id) == -1
  13145. ) {
  13146. _courseTypeId.push(res.data[3][j].id);
  13147. }
  13148. if (res.data[0][i].id == res.data[3][j].pid) {
  13149. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  13150. }
  13151. }
  13152. }
  13153. }
  13154. }
  13155. if (this.CourseType[0] && this.CourseType[0].length && this.lang.lang == 'com') {
  13156. this.CourseType[0] = this.CourseType[0].filter(item => item.id != '34629bcc-d02f-11ec-8c78-005056b86db5');
  13157. }
  13158. this.courseTypeId = _courseTypeId;
  13159. })
  13160. .catch((err) => {
  13161. console.error(err);
  13162. });
  13163. },
  13164. selectType() {
  13165. this.ajax
  13166. .get(this.$store.state.api + "selectType")
  13167. .then((res) => {
  13168. this.CourseType = res.data;
  13169. for (var i = 0; i < res.data[0].length; i++) {
  13170. if (!this.cid) {
  13171. this.courseTypeId[res.data[0][i].id] = "";
  13172. }
  13173. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  13174. if (res.data[0][i].name == this.lang.ssColumn) {
  13175. this.CourseType[0][i].name = this.lang.ssThemeType;
  13176. }
  13177. }
  13178. for (var j = 0; j < res.data[1].length; j++) {
  13179. if (res.data[0][i].id == res.data[1][j].pid) {
  13180. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13181. this.CourseTypeJson[res.data[0][i].id] = [];
  13182. }
  13183. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  13184. }
  13185. }
  13186. }
  13187. this.selectTypeByOid();
  13188. this.selectTypeByOrg();
  13189. })
  13190. .catch((err) => {
  13191. console.error(err);
  13192. });
  13193. },
  13194. selectTypeByOid() {
  13195. let params = {
  13196. oid: this.oid,
  13197. };
  13198. this.ajax
  13199. .get(this.$store.state.api + "selectTypeByOid", params)
  13200. .then((res) => {
  13201. for (var i = 0; i < res.data[0].length; i++) {
  13202. for (var j = 0; j < res.data[1].length; j++) {
  13203. if (res.data[0][i].id == res.data[1][j].pid) {
  13204. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13205. this.CourseTypeJson[res.data[0][i].id] = [];
  13206. }
  13207. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  13208. }
  13209. }
  13210. }
  13211. })
  13212. .catch((err) => {
  13213. console.error(err);
  13214. });
  13215. },
  13216. selectTypeByOrg() {
  13217. let params = {
  13218. oid: this.org,
  13219. };
  13220. this.ajax
  13221. .get(this.$store.state.api + "selectTypeByOrg", params)
  13222. .then((res) => {
  13223. for (var i = 0; i < res.data[0].length; i++) {
  13224. for (var j = 0; j < res.data[1].length; j++) {
  13225. if (res.data[0][i].id == res.data[1][j].pid) {
  13226. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13227. this.CourseTypeJson[res.data[0][i].id] = [];
  13228. }
  13229. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  13230. }
  13231. }
  13232. }
  13233. this.$forceUpdate();
  13234. })
  13235. .catch((err) => {
  13236. console.error(err);
  13237. });
  13238. },
  13239. OtherMb(type, task) {
  13240. if (task === 0 || task) {
  13241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13242. task
  13243. ].isEvaFold = true;
  13244. }
  13245. this.typeMode = type;
  13246. setTimeout(() => {
  13247. this.checkEva(this.checkId);
  13248. setTimeout(() => {
  13249. this.checkEva(this.checkId);
  13250. }, 100);
  13251. }, 100);
  13252. },
  13253. openMember() {
  13254. this.searchTN = "";
  13255. this.getTeacher();
  13256. this.dialogVisibleMember = true;
  13257. },
  13258. checkEva(id, type) {
  13259. this.dialogVisiblemb = false;
  13260. this.selectEva();
  13261. if (this.evalua != id && type == 2) {
  13262. this.$message.success(this.lang.ssImportOk);
  13263. setTimeout(() => {
  13264. this.checkEva(id);
  13265. }, 100);
  13266. }
  13267. this.evalua = id;
  13268. this.checkId = id;
  13269. if (this.evalua != "") {
  13270. for (var i = 0; i < this.evaJuri.length; i++) {
  13271. if (this.evalua == this.evaJuri[i].id) {
  13272. this.eTitle = this.evaJuri[i].title;
  13273. this.eJson = JSON.parse(this.evaJuri[i].content);
  13274. }
  13275. }
  13276. this.data.data = [];
  13277. this.$forceUpdate();
  13278. setTimeout(() => {
  13279. this.setMindData();
  13280. }, 1000);
  13281. }
  13282. },
  13283. deleteEva() {
  13284. let _this = this;
  13285. if (_this.evalua == "") {
  13286. this.$message.warning(this.lang.ssClearAgain);
  13287. return;
  13288. }
  13289. _this
  13290. .$confirm(this.lang.ssDelTarget, this.lang.ssTip, {
  13291. confirmButtonText: this.lang.ssConfirm,
  13292. cancelButtonText: this.lang.ssCancel,
  13293. type: "warning",
  13294. })
  13295. .then(() => {
  13296. _this.evalua = "";
  13297. _this.checkId = "";
  13298. _this.eTitle = "";
  13299. let _unitJson = _this.unitJson;
  13300. for (var i = 0; i < _unitJson.length; i++) {
  13301. let _task = _unitJson[i].chapterInfo[0].taskJson;
  13302. for (var j = 0; j < _task.length; j++) {
  13303. let _eList = _task[j].eList;
  13304. for (var k = 0; k < _eList.length; k++) {
  13305. delete _eList[k].target;
  13306. }
  13307. }
  13308. }
  13309. _this.$forceUpdate();
  13310. if (_this.cid) {
  13311. _this.updateWork();
  13312. }
  13313. })
  13314. .catch(() => {
  13315. return;
  13316. });
  13317. },
  13318. selectEva() {
  13319. let params = {
  13320. oid: this.oid,
  13321. };
  13322. this.ajax
  13323. .get(this.$store.state.api + "selectAllEvaluation", params)
  13324. .then((res) => {
  13325. this.evaJuri = res.data[0];
  13326. // 在复制操作之前记录滚动位置
  13327. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  13328. // 执行复制操作
  13329. // 复制操作完成后恢复滚动位置
  13330. this.$nextTick(() => {
  13331. if(this.$refs.scrollContainer){
  13332. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  13333. }
  13334. });
  13335. })
  13336. .catch((err) => {
  13337. console.error(err);
  13338. });
  13339. },
  13340. setMindData() {
  13341. let targetArray = [];
  13342. this.data.data = [];
  13343. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  13344. let _eJson = Object.keys(this.eJson);
  13345. let _e = this.eJson;
  13346. for (let i = 0; i < _eJson.length; i++) {
  13347. let element = _e[_eJson[i]];
  13348. this.data.data.push({
  13349. id: element.id,
  13350. parentid: "root",
  13351. topic: element.name,
  13352. });
  13353. // targetArray.push({
  13354. // id: element.id,
  13355. // parentid: "root",
  13356. // name: element.name,
  13357. // });
  13358. targetArray.push({
  13359. value: element.name,
  13360. label: element.name,
  13361. children: [],
  13362. });
  13363. let _eJsonc = Object.keys(element.child);
  13364. let _e2 = element.child;
  13365. for (let j = 0; j < _eJsonc.length; j++) {
  13366. let _ec = _e2[_eJsonc[j]];
  13367. this.data.data.push({
  13368. id: _ec.id,
  13369. parentid: element.id,
  13370. topic: _ec.name,
  13371. });
  13372. // targetArray.push({
  13373. // id: _ec.id,
  13374. // parentid: element.id,
  13375. // name: _ec.name,
  13376. // });
  13377. targetArray[i].children.push({
  13378. value: _ec.name,
  13379. label: _ec.name,
  13380. children: [],
  13381. });
  13382. let _eJsonz = Object.keys(_ec.child);
  13383. let _e3 = _ec.child;
  13384. for (let z = 0; z < _eJsonz.length; z++) {
  13385. let _ez = _e3[_eJsonz[z]];
  13386. this.data.data.push({
  13387. id: _ez.id,
  13388. parentid: _ec.id,
  13389. topic: _ez.name,
  13390. });
  13391. // targetArray.push({
  13392. // id: _ez.id,
  13393. // parentid: _ec.id,
  13394. // name: _ez.name,
  13395. // });
  13396. targetArray[i].children[j].children.push({
  13397. value: _ez.name,
  13398. label: _ez.name,
  13399. });
  13400. }
  13401. }
  13402. }
  13403. this.targetArray = targetArray;
  13404. this.$forceUpdate();
  13405. },
  13406. /*添加评价 */
  13407. addEList(index, tIndex) {
  13408. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  13409. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  13410. value: "",
  13411. detail: "",
  13412. score: 5,
  13413. })
  13414. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  13415. { value: "", detail: "", score: 5 },
  13416. ]);
  13417. this.$forceUpdate();
  13418. },
  13419. openEList(index, tIndex) {
  13420. this.evaIndex = index;
  13421. this.evatIndex = tIndex;
  13422. this.evaBoxDialog = true;
  13423. },
  13424. addCET(index, tIndex) {
  13425. this.cetIndex = index;
  13426. this.cettIndex = tIndex;
  13427. this.selectAllType1();
  13428. },
  13429. addCETemplate() {
  13430. var array =
  13431. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  13432. .eList;
  13433. let params = [
  13434. {
  13435. uid: this.userid,
  13436. n: this.templateName,
  13437. json: JSON.stringify(array),
  13438. t: 1,
  13439. oid: this.oid,
  13440. },
  13441. ];
  13442. this.ajax
  13443. .post(this.$store.state.api + "addCETShare", params)
  13444. .then((res) => {
  13445. this.addTypeByCET(res.data[0][0].id);
  13446. })
  13447. .catch((err) => {
  13448. this.$message.error(this.lang.ssNetPoor);
  13449. console.error(err);
  13450. });
  13451. },
  13452. addTypeByCET(id) {
  13453. if (this.setTypeJson.two == "") {
  13454. this.$message.warning(this.lang.ssSelSecAdd);
  13455. return;
  13456. }
  13457. let params = {
  13458. cid: id,
  13459. };
  13460. this.ajax
  13461. .get(this.$store.state.api + "deleteCETLabel", params)
  13462. .then((res) => {
  13463. for (var i = 0; i < 2; i++) {
  13464. let tid = "";
  13465. if (i == 0) {
  13466. tid = this.setTypeJson.one;
  13467. } else {
  13468. tid = this.setTypeJson.two;
  13469. }
  13470. let params = [
  13471. {
  13472. cid: id,
  13473. tid: tid,
  13474. uid: this.userid,
  13475. },
  13476. ];
  13477. this.ajax
  13478. .post(this.$store.state.api + "addCETLabel", params)
  13479. .then((res) => {
  13480. this.$message({
  13481. message: this.lang.ssAddOk,
  13482. type: "success",
  13483. });
  13484. this.close();
  13485. })
  13486. .catch((err) => {
  13487. this.$message.error(this.lang.ssNetPoor);
  13488. console.error(err);
  13489. });
  13490. }
  13491. })
  13492. .catch((err) => {
  13493. this.$message.error(this.lang.ssNetPoor);
  13494. console.error(err);
  13495. });
  13496. },
  13497. updateEvaJson(array) {
  13498. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13499. this.evatIndex
  13500. ].eList = array;
  13501. },
  13502. forceUpdate() {
  13503. this.$forceUpdate();
  13504. },
  13505. deletEList(index, tIndex, eIndex) {
  13506. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13507. eIndex,
  13508. 1
  13509. );
  13510. this.$forceUpdate();
  13511. },
  13512. getChoosePic(t) {
  13513. this.chooseType = t;
  13514. this.getAllBanner();
  13515. },
  13516. getAllBanner() {
  13517. this.sysPicVisible = true;
  13518. let params = {
  13519. t: this.chooseType,
  13520. };
  13521. this.ajax
  13522. .get(this.$store.state.api + "selectAllBanner", params)
  13523. .then((res) => {
  13524. this.sysPic = res.data[0];
  13525. })
  13526. .catch((err) => {
  13527. console.error(err);
  13528. });
  13529. },
  13530. // getClass() {
  13531. // let params = {
  13532. // oid: this.oid,
  13533. // };
  13534. // this.ajax
  13535. // .get(this.$store.state.api + "selectClassBySchool", params)
  13536. // .then((res) => {
  13537. // this.classJuri = res.data[0];
  13538. // })
  13539. // .catch((err) => {
  13540. // console.error(err);
  13541. // });
  13542. // },
  13543. deleteSysPic() {
  13544. this.cover = [];
  13545. this.isSysPic = false;
  13546. this.isSysPic2 = false;
  13547. },
  13548. deleteSelectPic() {
  13549. this.selectJson.url = "";
  13550. },
  13551. setEListStar() {
  13552. this.$forceUpdate();
  13553. },
  13554. deletRateList(i) {
  13555. this.rateJson.splice(i, 1);
  13556. },
  13557. addRateList() {
  13558. this.rateJson.push({ detail: "", score: 5, value: "" });
  13559. },
  13560. addSt() {
  13561. this.sentenceList.push({
  13562. sentenceTitle: "",
  13563. addSentence: [],
  13564. rightAnswer: [],
  13565. });
  13566. },
  13567. addSen(i) {
  13568. if (!this.sentenceList[i].sentenceTitle) {
  13569. this.$message.error(this.lang.ssFillCard);
  13570. return;
  13571. }
  13572. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13573. this.$message.error(this.lang.ssCardOver10);
  13574. return;
  13575. }
  13576. if (
  13577. this.sentenceList[i].addSentence.indexOf(
  13578. this.sentenceList[i].sentenceTitle
  13579. ) !== -1
  13580. ) {
  13581. this.$message.error(this.lang.ssNoDupCard);
  13582. return;
  13583. }
  13584. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13585. // this.isPushTitleList.push(this.sentenceTitle);
  13586. this.sentenceList[i].sentenceTitle = "";
  13587. },
  13588. setRightAnswer(s, i, j) {
  13589. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13590. this.sentenceList[i].rightAnswer.push(s);
  13591. }
  13592. },
  13593. returnCard(r, i, j) {
  13594. this.sentenceList[i].rightAnswer.splice(j, 1);
  13595. },
  13596. addSentenceTool() {
  13597. for (var i = 0; i < this.sentenceList.length; i++) {
  13598. if (this.sentenceList[i].rightAnswer.length == 0) {
  13599. this.$message.error(this.lang.ssSetComplete.replace(/\*/g, i + 1));
  13600. return;
  13601. }
  13602. if (
  13603. this.sentenceList[i].addSentence.length !=
  13604. this.sentenceList[i].rightAnswer.length
  13605. ) {
  13606. this.$message.error(this.lang.ssSetComplete.replace(/\*/g, i + 1));
  13607. return;
  13608. }
  13609. }
  13610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13611. this.taskCount
  13612. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13613. this.sentenceList = [
  13614. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13615. ];
  13616. this.dialogVisibleSentence = false;
  13617. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13618. // itemTaskIndex
  13619. // ].toolChoose[toolIndex].tool = [];
  13620. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13621. // itemTaskIndex
  13622. // ].toolChoose[toolIndex].tool.push(i);
  13623. if (
  13624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13625. .toolChoose[this.toolIndex].tool != 47
  13626. ) {
  13627. this.addTools(47, this.taskCount, this.toolIndex);
  13628. }
  13629. },
  13630. addTableJson() {
  13631. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13632. // this.$message.error("请将信息填写完整!");
  13633. // return;
  13634. // }
  13635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13636. this.taskCount
  13637. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13638. // this.tableJson = [{ text: "" }];
  13639. // this.dialogVisibleTable = false;
  13640. this.$message.success(this.lang.ssUploadSucc);
  13641. if (
  13642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13643. .toolChoose[this.toolIndex].tool != 48
  13644. ) {
  13645. this.addTools(48, this.taskCount, this.toolIndex);
  13646. }
  13647. },
  13648. addWordJson() {
  13649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13650. this.taskCount
  13651. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13652. // this.wordJson = [{ text: "" }];
  13653. // this.dialogVisibleWord = false;
  13654. this.$message.success(this.lang.ssUploadSucc);
  13655. if (
  13656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13657. .toolChoose[this.toolIndex].tool != 52
  13658. ) {
  13659. this.addTools(52, this.taskCount, this.toolIndex);
  13660. }
  13661. },
  13662. addMoreUpload() {
  13663. if (this.uploadJson.length == 0) {
  13664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13665. this.taskCount
  13666. ].toolChoose[this.toolIndex].uploadJson = [];
  13667. } else {
  13668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13669. this.taskCount
  13670. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13671. }
  13672. this.uploadJson = [];
  13673. this.dialogVisibleMoreUpload = false;
  13674. if (
  13675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13676. .toolChoose[this.toolIndex].tool != 50
  13677. ) {
  13678. this.addTools(50, this.taskCount, this.toolIndex);
  13679. }
  13680. },
  13681. addPreTime() {
  13682. if (this.preTime == 0) {
  13683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13684. this.taskCount
  13685. ].toolChoose[this.toolIndex].preTime = 0;
  13686. } else {
  13687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13688. this.taskCount
  13689. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13690. }
  13691. this.preTime = 0;
  13692. this.dialogVisiblePreTime = false;
  13693. if (
  13694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13695. .toolChoose[this.toolIndex].tool != 10
  13696. ) {
  13697. this.addTools(10, this.taskCount, this.toolIndex);
  13698. }
  13699. },
  13700. goToTask(i) {
  13701. this.toolIndexType = "";
  13702. if (this.isClickColor == i + 1) {
  13703. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13704. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13705. // } else {
  13706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13707. i
  13708. ].toolOpen = true;
  13709. // }
  13710. this.$forceUpdate();
  13711. return;
  13712. }
  13713. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13714. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13715. // } else {
  13716. document.querySelectorAll(".basic_box")[0].scrollTop =
  13717. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13718. this.isClickColor = i + 1;
  13719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13720. // }
  13721. this.$forceUpdate();
  13722. },
  13723. taskOpen(i, stageIndex) {
  13724. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13725. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13726. } else {
  13727. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13728. }
  13729. if(this.cid){
  13730. this.updateWork3(stageIndex);
  13731. }
  13732. this.$forceUpdate();
  13733. },
  13734. goToTask2(i, stage) {
  13735. this.toolIndexType = "";
  13736. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13737. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13738. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13739. // } else {
  13740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13741. i
  13742. ].toolOpen = true;
  13743. // }
  13744. this.$forceUpdate();
  13745. return;
  13746. }
  13747. if (this.unitIndex != stage) {
  13748. if (this.panUnitJson() == 2) {
  13749. return;
  13750. }
  13751. this.unitSet(stage);
  13752. }
  13753. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13754. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13755. // } else {
  13756. document.querySelectorAll(".basic_box")[0].scrollTop =
  13757. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13758. this.isClickColor = i + 1;
  13759. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13760. // }
  13761. this.$forceUpdate();
  13762. },
  13763. taskMove(type, index) {
  13764. this.$confirm(
  13765. this.lang.ssSwitchTaskDel,
  13766. this.lang.ssTip,
  13767. {
  13768. confirmButtonText: this.lang.ssConfirm,
  13769. cancelButtonText: this.lang.ssCancel,
  13770. type: "warning",
  13771. }
  13772. )
  13773. .then(() => {
  13774. if (type == 1) {
  13775. if (index > 0) {
  13776. let a = JSON.parse(
  13777. JSON.stringify(
  13778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13779. index - 1
  13780. ]
  13781. )
  13782. );
  13783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13786. }
  13787. } else {
  13788. if (
  13789. index <
  13790. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13791. ) {
  13792. let a = JSON.parse(
  13793. JSON.stringify(
  13794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13795. index + 1
  13796. ]
  13797. )
  13798. );
  13799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13800. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13802. }
  13803. }
  13804. this.$forceUpdate();
  13805. })
  13806. .catch(() => {
  13807. return;
  13808. });
  13809. },
  13810. stageMove(type, index) {
  13811. if (type == 1) {
  13812. if (index > 0) {
  13813. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13814. let acid = JSON.parse(
  13815. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13816. );
  13817. let bcid = JSON.parse(
  13818. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13819. );
  13820. this.unitJson3[index - 1] = this.unitJson3[index];
  13821. this.unitJson3[index] = a;
  13822. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13823. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13824. }
  13825. } else {
  13826. if (index < this.unitJson3.length - 1) {
  13827. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13828. let acid = JSON.parse(
  13829. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13830. );
  13831. let bcid = JSON.parse(
  13832. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13833. );
  13834. this.unitJson3[index + 1] = this.unitJson3[index];
  13835. this.unitJson3[index] = a;
  13836. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13837. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13838. }
  13839. }
  13840. this.$forceUpdate();
  13841. },
  13842. addGroup(i) {
  13843. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13844. this.groupJson.group.push({
  13845. name: this.lang.ssGroup.replace(/\*/g, (this.groupJson.group.length + 1)),
  13846. });
  13847. },
  13848. deleteGroup(i) {
  13849. this.groupJson.group.splice(i, 1);
  13850. },
  13851. numberPan() {
  13852. if (
  13853. /[^\d]/.test(this.groupJson.number) ||
  13854. this.groupJson.number < 2 ||
  13855. this.groupJson.number > 10
  13856. ) {
  13857. this.$message.error(this.lang.ssEnterNum);
  13858. this.groupJson.number = "";
  13859. }
  13860. },
  13861. addGroupJson() {
  13862. for (var i = 0; i < this.groupJson.group.length; i++) {
  13863. if (!this.groupJson.group[i].name) {
  13864. this.$message.error(this.lang.ssFillInfo);
  13865. return;
  13866. }
  13867. }
  13868. if (!this.groupJson.number) {
  13869. this.$message.error("请将信息填写完整!");
  13870. return;
  13871. }
  13872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13873. this.taskCount
  13874. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13875. JSON.stringify(this.groupJson)
  13876. );
  13877. this.dialogVisibleGroup = false;
  13878. this.groupJson = {};
  13879. if (
  13880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13881. .toolChoose[this.toolIndex].tool != 49
  13882. ) {
  13883. this.addTools(49, this.taskCount, this.toolIndex);
  13884. }
  13885. },
  13886. updateTime(preTime) {
  13887. this.preTime = preTime;
  13888. },
  13889. InviteChange(val) {
  13890. console.log(val);
  13891. let _check = [];
  13892. let _check2 = [];
  13893. for (var i = 0; i < this.grade2.length; i++) {
  13894. var gid = this.grade2[i].id;
  13895. _check.push(gid);
  13896. }
  13897. for (var i = 0; i < this.checkboxList2.length; i++) {
  13898. var _id = this.checkboxList2[i];
  13899. if (_check.indexOf(_id) !== -1) {
  13900. _check2.push(_id);
  13901. }
  13902. }
  13903. this.checkAll = _check2.length === _check.length;
  13904. // return;
  13905. // let array = JSON.parse(JSON.stringify(val));
  13906. // this.inviteCode = this.inviteCode.filter((el) => {
  13907. // if (val.indexOf(el.cid) != -1) {
  13908. // array.splice(array.indexOf(el.cid), 1);
  13909. // return el;
  13910. // }
  13911. // });
  13912. // for (var i = 0; i < array.length; i++) {
  13913. // this.getInviteCode(array[i]);
  13914. // }
  13915. },
  13916. InviteChange2(val) {
  13917. console.log(val);
  13918. let _check = [];
  13919. let _check2 = [];
  13920. for (var i = 0; i < this.teacherJuri.length; i++) {
  13921. var gid = this.teacherJuri[i].userid;
  13922. _check.push(gid);
  13923. }
  13924. for (var i = 0; i < this.checkboxList3.length; i++) {
  13925. var _id = this.checkboxList3[i];
  13926. if (_check.indexOf(_id) !== -1) {
  13927. _check2.push(_id);
  13928. }
  13929. }
  13930. this.checkAll2 = _check2.length === _check.length;
  13931. this.setMan();
  13932. // return;
  13933. // let array = JSON.parse(JSON.stringify(val));
  13934. // this.inviteCode = this.inviteCode.filter((el) => {
  13935. // if (val.indexOf(el.cid) != -1) {
  13936. // array.splice(array.indexOf(el.cid), 1);
  13937. // return el;
  13938. // }
  13939. // });
  13940. // for (var i = 0; i < array.length; i++) {
  13941. // this.getInviteCode(array[i]);
  13942. // }
  13943. },
  13944. handleCheckAllChange(val) {
  13945. if (val) {
  13946. for (var i = 0; i < this.grade2.length; i++) {
  13947. var gid = this.grade2[i].id;
  13948. if (this.checkboxList2.indexOf(gid) === -1) {
  13949. this.checkboxList2.push(gid);
  13950. }
  13951. }
  13952. } else {
  13953. let _check = [];
  13954. let _check2 = [];
  13955. for (var i = 0; i < this.grade2.length; i++) {
  13956. var gid = this.grade2[i].id;
  13957. _check.push(gid);
  13958. }
  13959. for (var i = 0; i < this.checkboxList2.length; i++) {
  13960. var _id = this.checkboxList2[i];
  13961. if (_check.indexOf(_id) === -1) {
  13962. _check2.push(_id);
  13963. }
  13964. }
  13965. this.checkboxList2 = _check2;
  13966. }
  13967. this.isIndeterminate = false;
  13968. },
  13969. handleCheckAllChange2(val) {
  13970. if (val) {
  13971. for (var i = 0; i < this.teacherJuri.length; i++) {
  13972. var gid = this.teacherJuri[i].userid;
  13973. if (this.checkboxList3.indexOf(gid) === -1) {
  13974. this.checkboxList3.push(gid);
  13975. }
  13976. }
  13977. } else {
  13978. let _check = [];
  13979. let _check2 = [];
  13980. for (var i = 0; i < this.teacherJuri.length; i++) {
  13981. var gid = this.teacherJuri[i].userid;
  13982. _check.push(gid);
  13983. }
  13984. for (var i = 0; i < this.checkboxList3.length; i++) {
  13985. var _id = this.checkboxList3[i];
  13986. if (_check.indexOf(_id) === -1) {
  13987. _check2.push(_id);
  13988. }
  13989. }
  13990. this.checkboxList3 = _check2;
  13991. }
  13992. this.isIndeterminate2 = false;
  13993. },
  13994. async getInviteCode(cid) {
  13995. let code = this.randomNumber();
  13996. let params = {
  13997. code: code,
  13998. oid: this.oid,
  13999. };
  14000. let type = 1;
  14001. for (var i = 0; i < this.inviteCode.length; i++) {
  14002. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  14003. type = 2;
  14004. }
  14005. }
  14006. if (type == 2) {
  14007. this.getInviteCode(cid);
  14008. return;
  14009. }
  14010. const res = await this.ajax.get(
  14011. this.$store.state.api + "selectInviteCode2",
  14012. params
  14013. );
  14014. if (
  14015. res.data.length &&
  14016. res.data[0].length &&
  14017. res.data[0][0].courseId != this.cid
  14018. ) {
  14019. this.getInviteCode(cid);
  14020. return;
  14021. }
  14022. let array = [];
  14023. for (var i = 0; i < this.inviteCode.length; i++) {
  14024. array.push(this.inviteCode[i].cid);
  14025. }
  14026. if (array.indexOf(cid) != -1) {
  14027. this.inviteCode[array.indexOf(cid)].ic = code;
  14028. } else {
  14029. this.inviteCode.push({ cid: cid, ic: code });
  14030. }
  14031. },
  14032. OpenInviteD(cid) {
  14033. let array = [];
  14034. this.icode = "";
  14035. for (var i = 0; i < this.inviteCode.length; i++) {
  14036. array.push(this.inviteCode[i].cid);
  14037. }
  14038. if (array.indexOf(cid) != -1) {
  14039. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  14040. }
  14041. this.inviteId = cid;
  14042. this.dialogVisibleInvite = true;
  14043. },
  14044. addInvite() {
  14045. let reg = /^[A-Za-z0-9]{4,}$/;
  14046. if (!reg.test(this.icode)) {
  14047. this.$message.error(this.lang.ssInputCode);
  14048. return;
  14049. }
  14050. let type = 1;
  14051. for (var i = 0; i < this.inviteCode.length; i++) {
  14052. if (
  14053. this.inviteCode[i].cid != this.inviteId &&
  14054. this.icode == this.inviteCode[i].ic
  14055. ) {
  14056. type = 2;
  14057. }
  14058. }
  14059. if (type == 2) {
  14060. this.$message.error(this.lang.ssCodeDup);
  14061. return;
  14062. }
  14063. let params = {
  14064. code: this.icode,
  14065. oid: this.oid,
  14066. };
  14067. this.ajax
  14068. .get(this.$store.state.api + "selectInviteCode", params)
  14069. .then((res) => {
  14070. if (
  14071. res.data.length &&
  14072. res.data[0].length &&
  14073. res.data[0][0].courseId != this.cid
  14074. ) {
  14075. this.$message.error(this.lang.ssCodeDup);
  14076. return;
  14077. }
  14078. let array = [];
  14079. for (var i = 0; i < this.inviteCode.length; i++) {
  14080. array.push(this.inviteCode[i].cid);
  14081. }
  14082. if (array.indexOf(this.inviteId) != -1) {
  14083. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  14084. } else {
  14085. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  14086. }
  14087. this.icode = "";
  14088. this.dialogVisibleInvite = false;
  14089. })
  14090. .catch((err) => {
  14091. console.error(err);
  14092. });
  14093. },
  14094. randomNumber() {
  14095. // 随机生成两位数
  14096. // let num = Math.floor(Math.random() * 900) + 100;
  14097. // 生成 0 到 99 之间的随机整数
  14098. const randomNumber = Math.floor(Math.random() * 100);
  14099. // 如果随机数小于 10,补上前导零
  14100. const num =
  14101. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  14102. // 随机生成两个大写字母
  14103. let letters = "";
  14104. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  14105. for (let i = 0; i < 3; i++) {
  14106. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  14107. }
  14108. // 随机生成两位数字和字母的组合
  14109. let mix = "";
  14110. let chars =
  14111. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  14112. for (let i = 0; i < 3; i++) {
  14113. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  14114. mix += char;
  14115. }
  14116. // 随机选择一种类型
  14117. let type = Math.floor(Math.random() * 3);
  14118. return num;
  14119. // 根据类型输出结果
  14120. switch (type) {
  14121. case 0:
  14122. console.log(num); // 输出两位数
  14123. return num;
  14124. case 1:
  14125. console.log(letters); // 输出两个大写字母
  14126. return letters;
  14127. case 2:
  14128. console.log(mix); // 输出两位数字和字母的组合
  14129. return mix;
  14130. }
  14131. },
  14132. getPaste() {
  14133. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  14134. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  14135. if (!iframe && !iframe2) {
  14136. return;
  14137. }
  14138. let copyData = iframe ? iframe.contentWindow.copyData : false;
  14139. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  14140. if (copyData && copyData.stageData && copyData.stageData.length) {
  14141. this.isPasteStage = true;
  14142. }
  14143. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  14144. this.isPasteStage = true;
  14145. }
  14146. if (copyData && copyData.selectData.length) {
  14147. this.isPasteChoice = true;
  14148. }
  14149. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  14150. this.isPasteTask = true;
  14151. }
  14152. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  14153. this.isPasteTask = true;
  14154. }
  14155. },
  14156. saveCourse(){
  14157. if (this.cid == "" || this.cid == undefined) {
  14158. this.addWork();
  14159. } else {
  14160. if (this.userid != this.courseUserid && this.role != "1") {
  14161. this.updateWork2();
  14162. } else {
  14163. this.updateWork();
  14164. }
  14165. }
  14166. },
  14167. searchImage() {
  14168. var _this = this;
  14169. _this.imageList = [];
  14170. if (!_this.searchImageValue) {
  14171. _this.sysPicVisible2 = true;
  14172. return;
  14173. }
  14174. _this.imageloading = true;
  14175. _this.ajax
  14176. .post("https://gpt.cocorobo.cn/search_image", {
  14177. page: _this.ppage,
  14178. pagesize: 9,
  14179. query: _this.searchImageValue,
  14180. })
  14181. .then(function (response) {
  14182. // console.log(response.data.data);
  14183. var data = response.data.FunctionResponse.result;
  14184. for (var i = 0; i < data.length; i++) {
  14185. _this.imageList.push({ url: data[i].thumbnail });
  14186. }
  14187. _this.imageloading = false;
  14188. })
  14189. .catch(function (error) {
  14190. console.log(error);
  14191. });
  14192. _this.sysPicVisible2 = true;
  14193. },
  14194. changePicture() {
  14195. this.ppage++;
  14196. this.searchImage();
  14197. },
  14198. resetImage() {
  14199. this.ppage = 1;
  14200. this.searchImage();
  14201. },
  14202. jumpGj(i, j) {
  14203. if (i + 1 != this.isClickColor) {
  14204. this.isClickColor = i + 1;
  14205. }
  14206. var a = document.scrollingElement;
  14207. this.toolIndexType = `gj${i}${j}`;
  14208. let target = document.querySelector(`#gj${i}${j}`);
  14209. if (target) {
  14210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  14211. setTimeout(() => {
  14212. target.scrollIntoView(true);
  14213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  14214. j
  14215. ].isFold3 = false;
  14216. setTimeout(() => {
  14217. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  14218. }, 0);
  14219. }, 0);
  14220. }
  14221. },
  14222. jumpGj2(i, j, k) {
  14223. if (this.unitIndex != k) {
  14224. if (this.panUnitJson() == 2) {
  14225. return;
  14226. }
  14227. this.unitSet(k);
  14228. }
  14229. setTimeout(() => {
  14230. if (i + 1 != this.isClickColor) {
  14231. this.isClickColor = i + 1;
  14232. }
  14233. var a = document.scrollingElement;
  14234. this.toolIndexType = `gj${i}${j}${k}`;
  14235. let target = document.querySelector(`#gj${i}${j}`);
  14236. if (target) {
  14237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  14238. setTimeout(() => {
  14239. target.scrollIntoView(true);
  14240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  14241. j
  14242. ].isFold3 = false;
  14243. setTimeout(() => {
  14244. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  14245. }, 0);
  14246. }, 0);
  14247. }
  14248. }, 0);
  14249. },
  14250. dragStart(val, i, j) {
  14251. console.log(this.taskCount);
  14252. this.dragType = "drag";
  14253. this.taskCount = j;
  14254. this.oldIndex = i;
  14255. this.oldData = val;
  14256. },
  14257. dragOver(i, j) {
  14258. this.typeIndex = "chapter-" + j + "-" + i;
  14259. this.newIndex = i;
  14260. },
  14261. dragEnd() {
  14262. if (this.dragType != "drag") {
  14263. this.typeIndex = "";
  14264. this.newIndex = "";
  14265. this.dragType = "";
  14266. this.isdrag = "";
  14267. return;
  14268. }
  14269. console.log(this.taskCount);
  14270. let newItems = [
  14271. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  14272. .chapterData,
  14273. ];
  14274. // 删除老的节点
  14275. newItems.splice(this.oldIndex, 1);
  14276. // 在列表中目标位置增加新的节点
  14277. newItems.splice(this.newIndex, 0, this.oldData);
  14278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14279. this.taskCount
  14280. ].chapterData = [...newItems];
  14281. this.typeIndex = "";
  14282. this.newIndex = "";
  14283. this.dragType = "";
  14284. this.isdrag = "";
  14285. this.$forceUpdate();
  14286. },
  14287. dragTaskStart(val, i, j) {
  14288. this.dragType = "task";
  14289. this.oldIndex = i;
  14290. this.oldData = val;
  14291. this.oldUnitIndex = j;
  14292. },
  14293. dragTaskOver(i, j) {
  14294. this.typeIndex = "task-" + i;
  14295. this.newIndex = i;
  14296. this.checkUnitIndex = j;
  14297. },
  14298. async dragTaskEnd() {
  14299. if (this.dragType != "task") {
  14300. this.newIndex = "";
  14301. this.dragType = "";
  14302. this.typeIndex = "";
  14303. this.checkUnitIndex = "";
  14304. this.isdrag = "";
  14305. return;
  14306. }
  14307. if (
  14308. this.newIndex == this.oldIndex &&
  14309. this.oldUnitIndex == this.checkUnitIndex
  14310. ) {
  14311. this.newIndex = "";
  14312. this.dragType = "";
  14313. this.typeIndex = "";
  14314. this.checkUnitIndex = "";
  14315. this.isdrag = "";
  14316. return;
  14317. }
  14318. let count1 = await this.getWorksCount(
  14319. 2,
  14320. this.checkUnitIndex,
  14321. this.newIndex,
  14322. 0
  14323. );
  14324. let count2 = await this.getWorksCount(
  14325. 2,
  14326. this.oldUnitIndex,
  14327. this.oldIndex,
  14328. 0
  14329. );
  14330. if (count1 > 0 || count2 > 0) {
  14331. this.$confirm(
  14332. this.lang.ssTaskMoveAll,
  14333. this.lang.ssTip,
  14334. {
  14335. confirmButtonText: this.lang.ssConfirm,
  14336. cancelButtonText: this.lang.ssCancel,
  14337. type: "warning",
  14338. }
  14339. )
  14340. .then(() => {
  14341. if (this.oldUnitIndex != this.checkUnitIndex) {
  14342. let newItems = [
  14343. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14344. ];
  14345. // 删除老的节点
  14346. newItems.splice(this.oldIndex, 1);
  14347. // 在列表中目标位置增加新的节点
  14348. let newItems2 = [
  14349. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14350. ];
  14351. newItems2.splice(this.newIndex, 0, this.oldData);
  14352. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14353. ...newItems,
  14354. ];
  14355. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14356. ...newItems2,
  14357. ];
  14358. } else {
  14359. let newItems = [
  14360. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14361. ];
  14362. // 删除老的节点
  14363. newItems.splice(this.oldIndex, 1);
  14364. // 在列表中目标位置增加新的节点
  14365. newItems.splice(this.newIndex, 0, this.oldData);
  14366. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14367. ...newItems,
  14368. ];
  14369. }
  14370. this.moveWork(2, this.checkUnitIndex, this.newIndex, 0, this.oldUnitIndex, this.oldIndex, 0);
  14371. this.typeIndex = "";
  14372. this.newIndex = "";
  14373. this.dragType = "";
  14374. this.checkUnitIndex = "";
  14375. this.isdrag = "";
  14376. this.updateWork();
  14377. this.$forceUpdate();
  14378. })
  14379. .catch(() => {
  14380. this.newIndex = "";
  14381. this.dragType = "";
  14382. this.typeIndex = "";
  14383. this.checkUnitIndex = "";
  14384. this.isdrag = "";
  14385. return;
  14386. });
  14387. } else {
  14388. if (this.oldUnitIndex != this.checkUnitIndex) {
  14389. let newItems = [
  14390. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14391. ];
  14392. // 删除老的节点
  14393. newItems.splice(this.oldIndex, 1);
  14394. // 在列表中目标位置增加新的节点
  14395. let newItems2 = [
  14396. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14397. ];
  14398. newItems2.splice(this.newIndex, 0, this.oldData);
  14399. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14400. ...newItems,
  14401. ];
  14402. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14403. ...newItems2,
  14404. ];
  14405. } else {
  14406. let newItems = [
  14407. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14408. ];
  14409. // 删除老的节点
  14410. newItems.splice(this.oldIndex, 1);
  14411. // 在列表中目标位置增加新的节点
  14412. newItems.splice(this.newIndex, 0, this.oldData);
  14413. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14414. ...newItems,
  14415. ];
  14416. }
  14417. this.typeIndex = "";
  14418. this.newIndex = "";
  14419. this.dragType = "";
  14420. this.checkUnitIndex = "";
  14421. this.isdrag = "";
  14422. this.updateWork();
  14423. this.$forceUpdate();
  14424. }
  14425. },
  14426. dragUnitStart(val, i) {
  14427. this.dragType = "Unit";
  14428. this.oldIndex = i;
  14429. this.oldData = val;
  14430. },
  14431. dragUnitOver(i) {
  14432. this.typeIndex = "Unit-" + i;
  14433. this.newIndex = i;
  14434. console.log(i, this.unitJson[i].toolOpen);
  14435. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  14436. this.unitJson[i].toolOpen = true;
  14437. this.updateWork();
  14438. this.$forceUpdate();
  14439. }
  14440. },
  14441. async dragUnitEnd() {
  14442. if (this.dragType != "Unit") {
  14443. this.newIndex = "";
  14444. this.dragType = "";
  14445. this.typeIndex = "";
  14446. this.isdrag = "";
  14447. return;
  14448. }
  14449. if (this.newIndex == this.oldIndex) {
  14450. this.newIndex = "";
  14451. this.dragType = "";
  14452. this.typeIndex = "";
  14453. this.isdrag = "";
  14454. return;
  14455. }
  14456. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  14457. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  14458. console.log(count1, count2);
  14459. if (count1 > 0 || count2 > 0) {
  14460. this.$confirm(
  14461. this.lang.ssStageMove,
  14462. this.lang.ssTip,
  14463. {
  14464. confirmButtonText: this.lang.ssConfirm,
  14465. cancelButtonText: this.lang.ssCancel,
  14466. type: "warning",
  14467. }
  14468. )
  14469. .then(() => {
  14470. let newItems = [...this.unitJson];
  14471. // 删除老的节点
  14472. newItems.splice(this.oldIndex, 1);
  14473. // 在列表中目标位置增加新的节点
  14474. newItems.splice(this.newIndex, 0, this.oldData);
  14475. this.unitJson = [...newItems];
  14476. this.moveWork(1, this.newIndex, 0, 0, this.oldIndex, 0, 0);
  14477. this.typeIndex = "";
  14478. this.newIndex = "";
  14479. this.dragType = "";
  14480. this.isdrag = "";
  14481. this.updateWork();
  14482. this.$forceUpdate();
  14483. })
  14484. .catch(() => {
  14485. this.newIndex = "";
  14486. this.dragType = "";
  14487. this.typeIndex = "";
  14488. this.isdrag = "";
  14489. return;
  14490. });
  14491. } else {
  14492. let newItems = [...this.unitJson];
  14493. // 删除老的节点
  14494. newItems.splice(this.oldIndex, 1);
  14495. // 在列表中目标位置增加新的节点
  14496. newItems.splice(this.newIndex, 0, this.oldData);
  14497. this.unitJson = [...newItems];
  14498. this.typeIndex = "";
  14499. this.newIndex = "";
  14500. this.dragType = "";
  14501. this.isdrag = "";
  14502. this.updateWork();
  14503. this.$forceUpdate();
  14504. }
  14505. },
  14506. getWorksCount(type, stage, task, tool) {
  14507. return new Promise((resolve, reject) => {
  14508. let params = [
  14509. {
  14510. cid: this.cid,
  14511. stage: stage,
  14512. task: task,
  14513. tool: tool,
  14514. type: type,
  14515. },
  14516. ];
  14517. this.ajax
  14518. .post(this.$store.state.api + "getCourseWorkCount", params)
  14519. .then((res) => {
  14520. let count = res.data[0][0].count;
  14521. resolve(count);
  14522. })
  14523. .catch((err) => {
  14524. resolve(0);
  14525. this.$message.error(this.lang.ssNetPoor);
  14526. console.error(err);
  14527. });
  14528. });
  14529. },
  14530. moveWork(type, nstage, ntask, ntool, ostage, otask, otool) {
  14531. // type: int 类型
  14532. // nstage, ntask, ntool: 新目标位置(目标单元/任务/工具)
  14533. // ostage, otask, otool: 原始位置
  14534. // this.cid 课程id
  14535. let params = [
  14536. {
  14537. cid: this.cid,
  14538. nstage: nstage,
  14539. ntask: ntask,
  14540. ntool: ntool,
  14541. type: type,
  14542. ostage: ostage,
  14543. otask: otask,
  14544. otool: otool
  14545. }
  14546. ];
  14547. return this.ajax
  14548. .post(this.$store.state.api + "moveCourseWork", params)
  14549. .then(res => {
  14550. console.log(res);
  14551. })
  14552. .catch(err => {
  14553. console.error("移动作品失败,网络异常");
  14554. console.error(err);
  14555. throw err;
  14556. });
  14557. },
  14558. getTwoType(id) {
  14559. this.twoJson = [];
  14560. var array = this.CourseTypeJson1[
  14561. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14562. ].filter((e) => {
  14563. return e.ppid == id;
  14564. });
  14565. this.twoJson = array;
  14566. this.$forceUpdate();
  14567. },
  14568. ctype() {
  14569. this.oneJson =
  14570. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14571. },
  14572. selectAllType1() {
  14573. this.CourseType1 = [];
  14574. this.CourseTypeJson1 = {};
  14575. this.courseTypeId1 = {};
  14576. this.$forceUpdate();
  14577. let params = {
  14578. org: this.org && this.org != "" ? this.org : "",
  14579. oid: this.oid && this.oid != "" ? this.oid : "",
  14580. };
  14581. this.ajax
  14582. .get(this.$store.state.api + "selectAllEvaType", params)
  14583. .then((res) => {
  14584. this.CourseType1 = res.data;
  14585. for (var i = 0; i < res.data[0].length; i++) {
  14586. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14587. res.data[0][i].name = this.lang.ssLevel1;
  14588. } else if (
  14589. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14590. ) {
  14591. res.data[0][i].name = this.lang.ssLevel2;
  14592. }
  14593. if (!this.cid) {
  14594. this.courseTypeId1[res.data[0][i].id] = [];
  14595. }
  14596. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14597. this.CourseTypeJson1[res.data[0][i].id] = [];
  14598. }
  14599. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14600. for (var j = 0; j < res.data[1].length; j++) {
  14601. if (res.data[0][i].id == res.data[1][j].pid) {
  14602. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14603. }
  14604. }
  14605. // } else {
  14606. if (res.data[2].length > 0) {
  14607. for (var j = 0; j < res.data[2].length; j++) {
  14608. if (res.data[0][i].id == res.data[2][j].pid) {
  14609. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14610. }
  14611. }
  14612. }
  14613. if (res.data[3].length > 0) {
  14614. for (var j = 0; j < res.data[3].length; j++) {
  14615. if (res.data[0][i].id == res.data[3][j].pid) {
  14616. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14617. }
  14618. }
  14619. }
  14620. // }
  14621. }
  14622. this.ctype();
  14623. this.cetBoxDialog = true;
  14624. })
  14625. .catch((err) => {
  14626. console.error(err);
  14627. });
  14628. },
  14629. openCodeEditor(type,val, unitIndex,itemTaskIndex,index1){
  14630. console.log('openCodeEditor',type,val,unitIndex,itemTaskIndex,index1);
  14631. this.$refs.CodeEditorRef.open(type,val, unitIndex,itemTaskIndex, index1)
  14632. },
  14633. addHtmlSuccess({Tname,url,type,unitIndex,itemTaskIndex,index1}){
  14634. console.log('addHtmlSuccess',name,url,'type:',type,'unitIndex',unitIndex,'itemTaskIndex',itemTaskIndex,'index1',index1);
  14635. if (type == 1) {
  14636. this.unitJson[unitIndex].chapterInfo[0].taskJson[
  14637. itemTaskIndex
  14638. ].chapterData.splice(index1,1,{
  14639. name: Tname,
  14640. url: url,
  14641. type: 16
  14642. })
  14643. }else{
  14644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14645. itemTaskIndex
  14646. ].chapterData.push({
  14647. name: Tname,
  14648. url: url,
  14649. type: 16
  14650. });
  14651. }
  14652. },
  14653. openAddApp(i) {
  14654. this.lineCount = i;
  14655. let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14656. this.lineCount
  14657. ].chapterData.findIndex(i => i.type == 15);
  14658. let _obj = {}
  14659. if (_index != -1) {
  14660. _obj = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14661. this.lineCount
  14662. ].chapterData[_index]
  14663. }
  14664. this.$refs.appDialog.openG(_obj, "", "", "", 2);
  14665. },
  14666. selectAppSuccess({ data, type }) {
  14667. let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14668. this.lineCount
  14669. ].chapterData.findIndex(i => i.type == 15);
  14670. if (_index != -1) {
  14671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14672. this.lineCount
  14673. ].chapterData.splice(_index, 1);
  14674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14675. this.lineCount
  14676. ].chapterData.push({
  14677. name: data.name,
  14678. title: data.name,
  14679. id:data.id,
  14680. url: data.url,
  14681. type: 15
  14682. });
  14683. } else {
  14684. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14685. this.lineCount
  14686. ].chapterData.push({
  14687. name: data.name,
  14688. title: data.name,
  14689. id:data.id,
  14690. url: data.url,
  14691. type: 15
  14692. });
  14693. }
  14694. this.imgChange1(null, null, 8, this.lineCount);
  14695. this.dialogVisible7 = false;
  14696. },
  14697. // zip压缩文件上传
  14698. uploadZIPFile(i){
  14699. this.lineCount = i;
  14700. // 只支持上传zip文件
  14701. let input = document.createElement('input');
  14702. input.type = 'file';
  14703. input.accept = '.zip';
  14704. input.style.display = 'none';
  14705. // 只允许上传一个文件
  14706. input.multiple = false;
  14707. input.onchange = async (e) => {
  14708. let file = e.target.files[0];
  14709. if (!file) return;
  14710. if (file.type !== 'application/zip' && !file.name.endsWith('.zip')) {
  14711. this.$message.error(this.lang.ssOnlyZip);
  14712. return;
  14713. }
  14714. try{
  14715. const zip = new JSZip();
  14716. const content = await zip.loadAsync(file);
  14717. let _fileStructure = this.buildFileStructure(file,content);
  14718. let _time = new Date().getTime();
  14719. let _resultList = await this.uploadZipFileFn(_fileStructure.files,`${_time}_${_fileStructure.folderName}`);
  14720. this.changeId = "";
  14721. this.$refs.selectHtmlPageDialogRef.open(_resultList);
  14722. }catch(e){
  14723. console.log(e)
  14724. this.$message.error(this.lang.ssZipFail)
  14725. }
  14726. };
  14727. document.body.appendChild(input);
  14728. input.click();
  14729. setTimeout(() => {
  14730. document.body.removeChild(input);
  14731. }, 1000);
  14732. },
  14733. // 构建文件结构树
  14734. buildFileStructure(file,zip) {
  14735. const root = {
  14736. folderName: file.name.replace(/\.[^/.]+$/, ""), // 移除扩展名
  14737. files: []
  14738. };
  14739. // 遍历ZIP文件中的所有文件/文件夹
  14740. zip.forEach((relativePath, file) => {
  14741. if (file.dir) return; // 跳过目录
  14742. const parts = relativePath.split('/');
  14743. let currentLevel = root.files;
  14744. for (let i = 0; i < parts.length; i++) {
  14745. const part = parts[i];
  14746. const isLast = i === parts.length - 1;
  14747. if (isLast) {
  14748. // 添加文件
  14749. currentLevel.push({fileName:part,file:file});
  14750. } else {
  14751. // 查找或创建文件夹
  14752. let folder = currentLevel.find(item =>
  14753. typeof item === 'object' && item.folderName === part
  14754. );
  14755. if (!folder) {
  14756. folder = {
  14757. folderName: part,
  14758. files: []
  14759. };
  14760. currentLevel.push(folder);
  14761. }
  14762. currentLevel = folder.files;
  14763. }
  14764. }
  14765. });
  14766. return root;
  14767. },
  14768. //按路径上传文件
  14769. async uploadZipFileFn(fileList,path){
  14770. return new Promise(async (resolve)=>{
  14771. let _copyFileList = fileList;
  14772. let promise = [];
  14773. for(let i = 0; i < _copyFileList.length; i++){
  14774. if(_copyFileList[i].folderName){
  14775. let _path = `${path}/${_copyFileList[i].folderName}`;
  14776. promise.push(this.uploadZipFileFn(_copyFileList[i].files,_path).then(res=>{
  14777. _copyFileList[i].files = res;
  14778. }))
  14779. }else if(_copyFileList[i].fileName){
  14780. // 将 ZIP 条目转换为文件对象
  14781. const blob = await _copyFileList[i].file.async('blob');
  14782. // 根据文件名设置type
  14783. let type = 'text/html';
  14784. if (_copyFileList[i].fileName.endsWith('.js')) {
  14785. type = 'application/javascript';
  14786. } else if (_copyFileList[i].fileName.endsWith('.css')) {
  14787. type = 'text/css';
  14788. } else if (_copyFileList[i].fileName.endsWith('.json')) {
  14789. type = 'application/json';
  14790. } else if (_copyFileList[i].fileName.endsWith('.png')) {
  14791. type = 'image/png';
  14792. } else if (_copyFileList[i].fileName.endsWith('.jpg') || _copyFileList[i].fileName.endsWith('.jpeg')) {
  14793. type = 'image/jpeg';
  14794. } else if (_copyFileList[i].fileName.endsWith('.gif')) {
  14795. type = 'image/gif';
  14796. } else if (_copyFileList[i].fileName.endsWith('.svg')) {
  14797. type = 'image/svg+xml';
  14798. } else if (_copyFileList[i].fileName.endsWith('.html') || _copyFileList[i].fileName.endsWith('.htm')) {
  14799. type = 'text/html';
  14800. } else if (_copyFileList[i].fileName.endsWith('.txt')) {
  14801. type = 'text/plain';
  14802. } else if (_copyFileList[i].fileName.endsWith('.pdf')) {
  14803. type = 'application/pdf';
  14804. } else if (_copyFileList[i].fileName.endsWith('.mp3')) {
  14805. type = 'audio/mpeg';
  14806. } else if (_copyFileList[i].fileName.endsWith('.mp4')) {
  14807. type = 'video/mp4';
  14808. } else if (_copyFileList[i].fileName.endsWith('.zip')) {
  14809. type = 'application/zip';
  14810. } else if (_copyFileList[i].fileName.endsWith('.xml')) {
  14811. type = 'application/xml';
  14812. } else if (_copyFileList[i].fileName.endsWith('.csv')) {
  14813. type = 'text/csv';
  14814. } else if (_copyFileList[i].fileName.endsWith('.md')) {
  14815. type = 'text/markdown';
  14816. }
  14817. let _file = new File([blob], _copyFileList[i].fileName, {type: type, lastModified: new Date().getTime()});
  14818. promise.push(this.awsupload({file:_file,path:`${path}/${_copyFileList[i].fileName}`}).then(res=>{
  14819. delete _copyFileList[i].file;
  14820. _copyFileList[i].url = decodeURIComponent(res.Location);
  14821. }))
  14822. }
  14823. }
  14824. Promise.all(promise).then(res=>{
  14825. resolve(_copyFileList);
  14826. })
  14827. })
  14828. },
  14829. selectHtmlPageSuccess(data){
  14830. let _selectFile = data.find(i=>i.isSelect==="1");
  14831. if(!_selectFile){
  14832. this.changeId = "";
  14833. return this.$message.info(this.lang.ssNoPageSel)
  14834. }
  14835. console.log("_selectFile",_selectFile)
  14836. let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14837. this.lineCount
  14838. ].chapterData.findIndex(i => i.type == 17 && i.id == this.changeId);
  14839. if (_index != -1) {
  14840. console.log("_index",_index)
  14841. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14842. this.lineCount
  14843. ].chapterData[_index] = {
  14844. name: _selectFile.fileName,
  14845. title: _selectFile.fileName,
  14846. id:this.changeId,
  14847. url: _selectFile.url,
  14848. fileList:data,
  14849. type: 17
  14850. };
  14851. } else {
  14852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14853. this.lineCount
  14854. ].chapterData.push({
  14855. name: _selectFile.fileName,
  14856. title: _selectFile.fileName,
  14857. id:new Date().getTime(),
  14858. url: _selectFile.url,
  14859. fileList:data,
  14860. type: 17
  14861. });
  14862. }
  14863. this.changeId = "";
  14864. this.$forceUpdate();
  14865. this.$refs.selectHtmlPageDialogRef.close();
  14866. },
  14867. changeHTmlPage(itemTaskIndex,i){
  14868. let _data = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14869. itemTaskIndex
  14870. ].chapterData[i];
  14871. this.lineCount = itemTaskIndex;
  14872. this.changeId = _data.id;
  14873. this.$refs.selectHtmlPageDialogRef.open(_data.fileList);
  14874. }
  14875. },
  14876. beforeDestroy() {
  14877. clearTimeout(this.timer);
  14878. this.timer = null;
  14879. clearInterval(this.timer2);
  14880. this.timer2 = null;
  14881. clearInterval(this.pasteTimer);
  14882. this.pasteTimer = null;
  14883. },
  14884. beforeRouteLeave(to, from, next) {
  14885. clearTimeout(this.timer);
  14886. this.timer = null;
  14887. clearInterval(this.timer2);
  14888. this.timer2 = null;
  14889. clearInterval(this.pasteTimer);
  14890. this.pasteTimer = null;
  14891. next();
  14892. },
  14893. mounted(){
  14894. this.$nextTick(()=>{
  14895. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  14896. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  14897. this.rightBoxHeight = height1 + height2
  14898. })
  14899. },
  14900. created() {
  14901. this.getStudent();
  14902. this.getTeacher();
  14903. this.getClass();
  14904. this.selectGrage();
  14905. this.getTemplate();
  14906. // this.selectType();
  14907. this.selectEva();
  14908. this.loading = false;
  14909. this.timer2 = setInterval(() => {
  14910. this.selectEva();
  14911. }, 5000);
  14912. this.pasteTimer = setInterval(() => {
  14913. this.getPaste();
  14914. }, 1000);
  14915. setTimeout(() => {
  14916. this.selectCourseDetail();
  14917. }, 500);
  14918. let _this = this;
  14919. window.pasteStage = function (json) {
  14920. _this.pasteStage(json);
  14921. };
  14922. window.pasteTask = function (json) {
  14923. _this.pasteTask(json);
  14924. };
  14925. },
  14926. };
  14927. </script>
  14928. <style scoped>
  14929. @media screen and (max-width: 1280px) {
  14930. .mbCss {
  14931. flex-direction: column !important;
  14932. }
  14933. .pjCss {
  14934. width: 100% !important;
  14935. }
  14936. .evaCss {
  14937. width: 100% !important;
  14938. margin-top: 10px;
  14939. }
  14940. }
  14941. .el-table >>> .even_row {
  14942. background-color: #f1f1f1 !important;
  14943. }
  14944. .dialog_diy >>> .el-dialog__header {
  14945. background: #3c3c3c !important;
  14946. padding: 15px 20px;
  14947. }
  14948. .dialog_diy >>> .el-dialog__title {
  14949. color: #fff;
  14950. }
  14951. .dialog_diy >>> .el-dialog__headerbtn {
  14952. top: 19px;
  14953. }
  14954. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14955. color: #fff;
  14956. }
  14957. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14958. color: #fff;
  14959. }
  14960. .dialog_diy >>> .el-dialog__body,
  14961. .dialog_diy >>> .el-dialog__footer {
  14962. background: #fafafa;
  14963. }
  14964. .dialog_diy3 >>> .el-dialog__body,
  14965. .dialog_diy3 >>> .el-dialog__footer {
  14966. background: #eee !important;
  14967. }
  14968. .dialog_diy3 >>> .el-dialog__body {
  14969. padding: 20px 20px;
  14970. }
  14971. .dialog_diyStage >>> .el-dialog__body {
  14972. padding: 10px;
  14973. }
  14974. .source_diy >>> .el-dialog {
  14975. height: 100% !important;
  14976. margin: 0 auto !important;
  14977. }
  14978. .source_diy >>> .el-dialog__body {
  14979. height: calc(100% - 185px);
  14980. overflow: auto;
  14981. background: #e6eaf0;
  14982. }
  14983. .source_diy >>> .el-dialog__footer {
  14984. background: #e6eaf0 !important;
  14985. }
  14986. .left {
  14987. border-right: 1px solid rgb(60, 94, 143);
  14988. display: flex;
  14989. flex-direction: column;
  14990. align-items: center;
  14991. min-height: 600px;
  14992. width: 385px;
  14993. height: 80%;
  14994. }
  14995. .tips {
  14996. color: rgb(128, 128, 128);
  14997. font-size: 12px;
  14998. width: 270px;
  14999. margin: 40px;
  15000. }
  15001. .pb_content {
  15002. height: 100% !important;
  15003. /* margin: 0 20px 0 20px; */
  15004. }
  15005. .pb_content_body {
  15006. width: 100% !important;
  15007. height: 100%;
  15008. }
  15009. .info_solid {
  15010. width: 270px;
  15011. height: 30px;
  15012. border-left: 1px solid #bdbdbd;
  15013. margin: 10px 0px 10px 30px;
  15014. }
  15015. .info_steps {
  15016. width: 270px;
  15017. font-size: 0.875rem;
  15018. display: flex;
  15019. align-items: center;
  15020. }
  15021. .info_steps span:nth-child(1) {
  15022. width: 30px;
  15023. height: 30px;
  15024. background: rgba(0, 0, 0, 0.38);
  15025. display: block;
  15026. color: #fff;
  15027. border-radius: 40px;
  15028. text-align: center;
  15029. line-height: 30px;
  15030. }
  15031. .steps_active {
  15032. background: #3d67bc !important;
  15033. }
  15034. .info_steps span:nth-child(2) {
  15035. margin-left: 5px;
  15036. }
  15037. .right {
  15038. height: 100%;
  15039. width: 100%;
  15040. display: flex;
  15041. overflow: hidden;
  15042. flex-direction: column;
  15043. }
  15044. .basic_box {
  15045. margin: 0 auto;
  15046. position: relative;
  15047. padding: 0 20px 0 20px;
  15048. }
  15049. .basic_box_success {
  15050. width: 100%;
  15051. min-height: 455px;
  15052. padding: 50px 0;
  15053. position: relative;
  15054. text-align: center;
  15055. border-bottom: 1px solid #bfbfbf;
  15056. box-sizing: border-box;
  15057. display: flex;
  15058. align-items: center;
  15059. flex-direction: column;
  15060. justify-content: center;
  15061. }
  15062. .info_title {
  15063. font-size: 1.5em;
  15064. margin-right: 25px;
  15065. /* margin: 20px 30px 20px 30px; */
  15066. }
  15067. .bInfo_title {
  15068. text-align: left;
  15069. margin: 10px 0;
  15070. }
  15071. .small_title {
  15072. font-size: 14px;
  15073. line-height: 40px;
  15074. }
  15075. .chapter_beizhu {
  15076. font-size: 12px;
  15077. font-weight: bold;
  15078. float: right;
  15079. color: rgb(128, 128, 128);
  15080. margin-top: 5px;
  15081. }
  15082. .chapter_uploadBox1 {
  15083. text-align: left;
  15084. background-color: rgb(242, 242, 242);
  15085. width: 100%;
  15086. height: 67px;
  15087. padding: 0px 15px;
  15088. border-radius: 8px;
  15089. overflow: hidden;
  15090. font-size: 16px;
  15091. box-sizing: border-box;
  15092. position: relative;
  15093. }
  15094. .chapter_add {
  15095. width: 100%;
  15096. height: 32px;
  15097. margin-top: 15px;
  15098. cursor: pointer;
  15099. }
  15100. .chapter_add_l {
  15101. margin-left: 5px;
  15102. width: 30px;
  15103. height: 30px;
  15104. float: left;
  15105. border: 1px solid #aaa;
  15106. color: #aaa;
  15107. border-radius: 50%;
  15108. font-size: 25px;
  15109. text-align: center;
  15110. }
  15111. .chapter_add_r {
  15112. font-size: 18px;
  15113. height: 40px;
  15114. line-height: 30px;
  15115. text-indent: 10px;
  15116. color: #aaa;
  15117. }
  15118. .chapter_add_r span {
  15119. font-size: 12px;
  15120. color: rgb(204, 204, 204);
  15121. }
  15122. .chapter_add_input {
  15123. display: none;
  15124. }
  15125. .line {
  15126. width: 85%;
  15127. margin: 0 auto;
  15128. border-top: 1px solid #e5e5e5;
  15129. margin-top: 20px;
  15130. }
  15131. .info_btnBox {
  15132. width: calc(100%);
  15133. display: flex;
  15134. justify-content: center;
  15135. height: 80px;
  15136. align-items: center;
  15137. background: #fff;
  15138. margin: 0 auto;
  15139. border-top: 2px solid rgb(228, 232, 237);
  15140. box-sizing: border-box;
  15141. }
  15142. .info_btnBox2 {
  15143. width: calc(100%);
  15144. display: flex;
  15145. justify-content: center;
  15146. height: 20px;
  15147. align-items: center;
  15148. background: #fff;
  15149. margin: 0 auto;
  15150. border-top: 2px solid rgb(228, 232, 237);
  15151. box-sizing: border-box;
  15152. overflow: hidden;
  15153. cursor: pointer;
  15154. }
  15155. .info_btnBox3 {
  15156. width: calc(100%);
  15157. display: flex;
  15158. justify-content: flex-end;
  15159. padding: 0 20px;
  15160. height: 60px;
  15161. align-items: center;
  15162. background: unset;
  15163. margin: 0 auto;
  15164. /* border-top: 1px solid rgb(228, 232, 237); */
  15165. box-sizing: border-box;
  15166. overflow: hidden;
  15167. cursor: pointer;
  15168. background: #fff;
  15169. border-radius: 10px;
  15170. }
  15171. .info_btn + .info_btn {
  15172. margin-left: 15px;
  15173. }
  15174. .info_btn,
  15175. .teacherWord {
  15176. color: #fff;
  15177. background-color: #0f7eff;
  15178. padding: 8px 24px;
  15179. font-size: 0.9375rem;
  15180. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  15181. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  15182. min-width: 64px;
  15183. font-weight: 500;
  15184. border-radius: 4px;
  15185. box-sizing: border-box;
  15186. border: none;
  15187. cursor: pointer;
  15188. }
  15189. .teacherWord {
  15190. width: 105px !important;
  15191. text-align: center !important;
  15192. line-height: 36px !important;
  15193. padding: 0 !important;
  15194. font-size: 14px !important;
  15195. margin: 10px 0 !important;
  15196. }
  15197. .template_box {
  15198. display: flex;
  15199. flex-wrap: wrap;
  15200. }
  15201. .wordTeacher {
  15202. display: flex;
  15203. flex-direction: column;
  15204. width: 100px;
  15205. height: 100px;
  15206. text-align: center;
  15207. font-size: 13px;
  15208. margin: 0 20px 20px 0;
  15209. background: #f0f4fa;
  15210. position: relative;
  15211. border-radius: 5px;
  15212. align-items: center;
  15213. justify-content: center;
  15214. border: 1px solid #cad1dc;
  15215. color: #0e1e33;
  15216. /* padding: 25px 0px; */
  15217. cursor: pointer;
  15218. }
  15219. .wordTeacher::after {
  15220. content: "";
  15221. display: block;
  15222. position: absolute;
  15223. width: 15px;
  15224. height: 15px;
  15225. right: 10px;
  15226. top: 10px;
  15227. background-image: url(../../../assets/icon/new/choose_a.png);
  15228. background-size: 100% 100%;
  15229. }
  15230. .wordTeacherA::after {
  15231. background-image: url(../../../assets/icon/new/choose_b.png);
  15232. }
  15233. .wordTeacher:nth-child(5n) {
  15234. margin-right: 0px;
  15235. }
  15236. .wordPic {
  15237. margin: 0 auto;
  15238. width: 30px;
  15239. height: 30px;
  15240. cursor: pointer;
  15241. }
  15242. .deleteWord {
  15243. width: 22px;
  15244. height: 22px;
  15245. position: absolute;
  15246. right: 5px;
  15247. top: -15px;
  15248. cursor: pointer;
  15249. display: none;
  15250. z-index: 999;
  15251. }
  15252. .wordPic > img,
  15253. .deleteWord > img,
  15254. .addToolImg > img {
  15255. width: 100%;
  15256. height: 100%;
  15257. }
  15258. .info_btn:hover {
  15259. background-color: #4f7cd5 !important;
  15260. }
  15261. .cru_selectBox {
  15262. display: flex;
  15263. margin: 15px 0;
  15264. flex-wrap: nowrap;
  15265. white-space: nowrap;
  15266. overflow: auto;
  15267. position: relative;
  15268. height: 40px;
  15269. max-width: calc(100% - 175px);
  15270. }
  15271. .cru_selectBox::-webkit-scrollbar {
  15272. /*滚动条整体样式*/
  15273. width: 6px;
  15274. /*高宽分别对应横竖滚动条的尺寸*/
  15275. height: 6px;
  15276. }
  15277. /*定义滚动条轨道 内阴影+圆角*/
  15278. .cru_selectBox::-webkit-scrollbar-track {
  15279. border-radius: 10px;
  15280. background-color: #eee;
  15281. }
  15282. /*定义滑块 内阴影+圆角*/
  15283. .cru_selectBox::-webkit-scrollbar-thumb {
  15284. border-radius: 10px;
  15285. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  15286. background-color: rgba(0, 0, 0, 0.1);
  15287. }
  15288. .cru_line {
  15289. position: absolute;
  15290. bottom: 0px;
  15291. transition: all 0.5s;
  15292. left: 0px;
  15293. width: 50px;
  15294. height: 4px;
  15295. left: 10px;
  15296. border-radius: 2px;
  15297. background: #3681fc;
  15298. }
  15299. .cru_select {
  15300. font-size: 18px;
  15301. margin-right: 20px;
  15302. margin-left: 5px;
  15303. cursor: pointer;
  15304. color: #0e1e33;
  15305. }
  15306. .cru_select:hover {
  15307. color: #3681fc !important;
  15308. }
  15309. .cru_selected {
  15310. color: #3681fc !important;
  15311. font-weight: bold;
  15312. }
  15313. .chapter_box {
  15314. margin-top: 10px;
  15315. width: 100%;
  15316. padding: 10px 20px;
  15317. background: #fff;
  15318. border-radius: 8px;
  15319. box-sizing: border-box;
  15320. }
  15321. .chapter_contentbox {
  15322. display: flex;
  15323. align-items: center;
  15324. /* margin-top: 15px; */
  15325. }
  15326. .chapter_contentbox .cc_title {
  15327. margin: 0px;
  15328. color: black;
  15329. display: block;
  15330. white-space: nowrap;
  15331. overflow: hidden;
  15332. text-overflow: ellipsis;
  15333. margin-right: 20px;
  15334. font-size: 18px;
  15335. height: 20px;
  15336. line-height: 22px;
  15337. min-width: fit-content;
  15338. display: flex;
  15339. }
  15340. .chapter_contentbox .cc_title::before {
  15341. content: "";
  15342. height: 100%;
  15343. width: 3px;
  15344. background: #3681fc;
  15345. border-radius: 3px;
  15346. opacity: 1;
  15347. display: block;
  15348. margin-right: 10px;
  15349. }
  15350. .chapter_contentbox .cc_input {
  15351. width: 100%;
  15352. display: flex;
  15353. }
  15354. .show_taskD {
  15355. min-width: fit-content;
  15356. margin-left: 10px;
  15357. display: flex;
  15358. align-items: center;
  15359. font-size: 14px;
  15360. cursor: pointer;
  15361. color: #717c8d;
  15362. }
  15363. .show_taskD > img {
  15364. width: 15px;
  15365. margin-right: 5px;
  15366. transition: 0.2s all;
  15367. transform: rotate(-90deg);
  15368. }
  15369. .show_taskD.show > img {
  15370. transform: rotate(0deg);
  15371. }
  15372. .show_toolD {
  15373. min-width: fit-content;
  15374. margin-left: 10px;
  15375. display: flex;
  15376. align-items: center;
  15377. font-size: 14px;
  15378. cursor: pointer;
  15379. color: #717c8d;
  15380. /* position: absolute;
  15381. right: 45px;
  15382. top: 5px; */
  15383. }
  15384. .show_toolD > img {
  15385. width: 15px;
  15386. margin-right: 5px;
  15387. transition: 0.2s all;
  15388. transform: rotate(-90deg);
  15389. }
  15390. .show_toolD.show > img {
  15391. transform: rotate(0deg);
  15392. }
  15393. .remove {
  15394. background-image: url("../../../assets/icon/new/delete_u.png");
  15395. cursor: pointer;
  15396. opacity: 0.5;
  15397. width: 30px;
  15398. min-width: 30px;
  15399. height: 30px;
  15400. background-size: 100% 100%;
  15401. background-repeat: no-repeat;
  15402. margin-left: 10px;
  15403. }
  15404. .remove1 {
  15405. background-image: url("../../../assets/remove1.png");
  15406. background-repeat: no-repeat;
  15407. background-position: 5px 10px;
  15408. width: 40px;
  15409. height: 50px;
  15410. cursor: pointer;
  15411. margin-left: 10px;
  15412. }
  15413. .binfo_input {
  15414. width: 100%;
  15415. margin: 0;
  15416. padding: 12px 14px;
  15417. display: block;
  15418. min-width: 0;
  15419. outline: none;
  15420. box-sizing: border-box;
  15421. background: none;
  15422. border: none;
  15423. border-radius: 4px;
  15424. background: #fff;
  15425. font-size: 16px;
  15426. resize: none;
  15427. font-family: "Microsoft YaHei";
  15428. min-height: 48px;
  15429. /* border: 1px solid #3682fc00; */
  15430. border: 1.5px solid #cad1dc;
  15431. }
  15432. .binfo_textarea {
  15433. border: 1.5px solid #cad1dc;
  15434. font-size: 16px;
  15435. resize: none;
  15436. /* background: #f6f6f6; */
  15437. font-family: "Microsoft YaHei";
  15438. }
  15439. .binfo_input:focus-visible {
  15440. border: 1.5px solid #3681fc !important;
  15441. }
  15442. .time {
  15443. display: flex;
  15444. margin: 35px 0 80px 0;
  15445. }
  15446. .chapter_btnbox {
  15447. width: 160px;
  15448. border-radius: 5px;
  15449. border: 2px dashed gray;
  15450. display: flex;
  15451. padding: 8px 50px;
  15452. align-items: center;
  15453. justify-content: center;
  15454. margin: 30px auto 0;
  15455. cursor: pointer;
  15456. }
  15457. .icon_add {
  15458. position: relative;
  15459. width: 24px;
  15460. padding-top: 20px;
  15461. border-radius: 100%;
  15462. border-width: 2px;
  15463. border-style: solid;
  15464. border-color: gray;
  15465. }
  15466. .icon_add i:nth-child(1) {
  15467. position: absolute;
  15468. left: 50%;
  15469. top: 50%;
  15470. height: 60%;
  15471. transform: translate(-50%, -50%);
  15472. border-width: 1px;
  15473. border-style: solid;
  15474. border-color: inherit;
  15475. }
  15476. .icon_add i:nth-child(2) {
  15477. position: absolute;
  15478. top: 50%;
  15479. left: 50%;
  15480. width: 60%;
  15481. transform: translate(-50%, -50%);
  15482. border-width: 1px;
  15483. border-style: solid;
  15484. border-color: inherit;
  15485. }
  15486. .chapter_btn_w {
  15487. font-size: 0.9375rem;
  15488. font-weight: bold;
  15489. color: gray;
  15490. margin-left: 20px;
  15491. }
  15492. .disUoloadSty >>> .el-icon-plus {
  15493. display: none !important;
  15494. /* 上传按钮隐藏 */
  15495. }
  15496. .imgLeft {
  15497. margin: 15px 0;
  15498. }
  15499. .add_info_box {
  15500. margin: 0 0 0 auto;
  15501. display: flex;
  15502. flex-wrap: wrap;
  15503. }
  15504. .add_info_box button {
  15505. margin: 0 5px 10px 0;
  15506. }
  15507. .add_info_box2 {
  15508. display: flex;
  15509. align-items: center;
  15510. flex-wrap: wrap;
  15511. }
  15512. .add_info_box2::after {
  15513. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  15514. color: red;
  15515. font-size: 14px;
  15516. margin-bottom: 10px;
  15517. }
  15518. .add_chapters_box {
  15519. text-align: left;
  15520. background-color: #fff;
  15521. width: 100%;
  15522. border-radius: 4px;
  15523. font-size: 16px;
  15524. box-sizing: border-box;
  15525. position: relative;
  15526. padding: 0 15px;
  15527. height: auto;
  15528. overflow-y: auto;
  15529. overflow-x: hidden;
  15530. border: 1px solid #cad1dc;
  15531. }
  15532. .add_chapters_box.add_c_none {
  15533. display: flex;
  15534. justify-content: center;
  15535. align-items: center;
  15536. padding: 15px;
  15537. }
  15538. .add_c_none > img {
  15539. width: 25px;
  15540. }
  15541. .add_chapters_box.add_c_none > span {
  15542. font-size: 14px;
  15543. font-weight: 400;
  15544. margin: 0 0 5px 5px;
  15545. }
  15546. .homework_box {
  15547. display: flex;
  15548. align-items: flex-start;
  15549. flex-wrap: wrap;
  15550. margin: 15px 0 0 0;
  15551. flex-direction: column;
  15552. align-content: flex-start;
  15553. }
  15554. .course_homework {
  15555. display: flex;
  15556. justify-content: center;
  15557. flex-direction: row;
  15558. align-items: center;
  15559. margin: 0 10px 0 0;
  15560. }
  15561. .course_homework >>> .el-input__inner {
  15562. width: 140px;
  15563. margin-left: 15px;
  15564. }
  15565. .chapter_upload_move {
  15566. position: relative;
  15567. background-color: #fff;
  15568. position: absolute;
  15569. width: 100%;
  15570. top: 0px;
  15571. left: 0px;
  15572. border: 1px solid #eee;
  15573. border-radius: 5px;
  15574. transition: width 2s;
  15575. -moz-transition: width 2s;
  15576. -webkit-transition: width 2s;
  15577. -o-transition: width 2s;
  15578. }
  15579. .chapter_upload_l_i {
  15580. background-image: url("../../../assets/icon.png");
  15581. background-position: 3px -165px;
  15582. width: 30px;
  15583. height: 30px;
  15584. margin: 10px auto 0 auto;
  15585. }
  15586. .course_input_box {
  15587. display: flex;
  15588. margin-right: 20px;
  15589. width: 100%;
  15590. align-items: center;
  15591. position: relative;
  15592. }
  15593. .course_input_box > .binfo_input {
  15594. width: calc(100% - 0 - 200px - 20px);
  15595. margin: 0 10px;
  15596. }
  15597. .bb_courseIcon {
  15598. width: 57px;
  15599. height: 45px;
  15600. background: #f0f4fa;
  15601. border-radius: 5px 0px 0px 5px;
  15602. display: flex;
  15603. align-items: center;
  15604. justify-content: center;
  15605. border-right: 1.5px solid rgb(202, 209, 220);
  15606. box-sizing: border-box;
  15607. position: absolute;
  15608. left: 1.5px;
  15609. }
  15610. .bb_courseIcon > img {
  15611. width: 25px;
  15612. height: auto;
  15613. }
  15614. .big_box {
  15615. /* margin-top: 20px; */
  15616. display: flex;
  15617. justify-content: space-between;
  15618. /* border-bottom: 1px solid #E0E2ED; */
  15619. }
  15620. .left_first {
  15621. display: flex;
  15622. flex-direction: column;
  15623. flex-wrap: nowrap;
  15624. width: calc(100% - 310px);
  15625. padding: 20px;
  15626. box-sizing: border-box;
  15627. background: #fff;
  15628. border-radius: 5px;
  15629. }
  15630. .right_first {
  15631. width: 300px;
  15632. display: flex;
  15633. align-items: center;
  15634. justify-content: center;
  15635. /* border-left: 1px solid #E0E2ED; */
  15636. box-sizing: border-box;
  15637. padding: 20px;
  15638. flex-direction: column;
  15639. background: #fff;
  15640. border-radius: 5px;
  15641. }
  15642. .ai_box {
  15643. width: 204px;
  15644. display: flex;
  15645. justify-content: flex-end;
  15646. margin-bottom: 15px;
  15647. }
  15648. .ai_content {
  15649. display: flex;
  15650. align-items: center;
  15651. font-size: 14px;
  15652. padding: 7px 20px;
  15653. box-sizing: border-box;
  15654. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  15655. border-radius: 12px;
  15656. font-weight: 700;
  15657. cursor: pointer;
  15658. }
  15659. .ai_content > img {
  15660. width: 40px;
  15661. margin-right: 5px;
  15662. }
  15663. .c_info_title {
  15664. padding: 15px 0 15px 0;
  15665. font-size: 16px;
  15666. font-weight: bold;
  15667. margin: 0 0 0 20px;
  15668. box-sizing: border-box;
  15669. display: flex;
  15670. align-items: center;
  15671. line-height: 20px;
  15672. }
  15673. .c_info_title::before {
  15674. content: "";
  15675. display: block;
  15676. width: 3px;
  15677. height: 20px;
  15678. background: #0061ff;
  15679. border-radius: 3px;
  15680. margin: 0 5px 0 0;
  15681. }
  15682. .right_title {
  15683. height: 30px;
  15684. padding: 15px 0 15px 20px;
  15685. border-bottom: 1px solid #f2f2f2;
  15686. font-size: 1.5em;
  15687. font-weight: bold;
  15688. color: #0f7eff;
  15689. margin: 0 auto;
  15690. }
  15691. .people {
  15692. border: 1px solid rgb(229 229 229);
  15693. /* height: 495px; */
  15694. height: 350px;
  15695. border-radius: 5px;
  15696. width: 100%;
  15697. overflow: auto;
  15698. }
  15699. .people_top {
  15700. display: flex;
  15701. width: 100%;
  15702. /* justify-content: space-between; */
  15703. /* align-items: center; */
  15704. flex-direction: column;
  15705. padding: 10px 10px 0;
  15706. box-sizing: border-box;
  15707. }
  15708. .people_nav,
  15709. .people_top_right {
  15710. /* padding: 20px 0 0 20px; */
  15711. }
  15712. .people_top_right {
  15713. height: 40px;
  15714. margin-bottom: 10px;
  15715. }
  15716. .people_search {
  15717. display: flex;
  15718. position: relative;
  15719. }
  15720. .people_search >>> .el-input__inner {
  15721. /* height: 25px; */
  15722. width: 100%;
  15723. }
  15724. .search_img {
  15725. width: 20px;
  15726. height: 20px;
  15727. position: absolute;
  15728. right: 10px;
  15729. top: 50%;
  15730. transform: translateY(-50%);
  15731. }
  15732. .search_img > img {
  15733. width: 100%;
  15734. height: 100%;
  15735. }
  15736. .people_name {
  15737. display: flex;
  15738. justify-content: flex-start;
  15739. padding: 20px 10px;
  15740. flex-direction: column;
  15741. flex-wrap: wrap;
  15742. }
  15743. .p_box {
  15744. position: relative;
  15745. }
  15746. .people_name >>> .el-checkbox {
  15747. width: 100%;
  15748. display: flex;
  15749. align-items: center;
  15750. margin-bottom: 10px;
  15751. }
  15752. .people_name >>> .el-checkbox__label {
  15753. text-overflow: ellipsis;
  15754. overflow: hidden;
  15755. width: calc(100%);
  15756. }
  15757. .people_name2 >>> .el-checkbox__label {
  15758. width: calc(100% - 130px);
  15759. }
  15760. .inviteCode {
  15761. position: absolute;
  15762. right: 30px;
  15763. color: #237ade;
  15764. top: 0;
  15765. cursor: pointer;
  15766. font-size: 13px;
  15767. }
  15768. .noneInvite {
  15769. color: #a8a8a8;
  15770. }
  15771. .inviteImg {
  15772. position: absolute;
  15773. right: 5px;
  15774. top: 0;
  15775. width: 20px;
  15776. }
  15777. .right_img {
  15778. width: 150px;
  15779. height: 150px;
  15780. margin: 0 auto;
  15781. }
  15782. .right_img > img {
  15783. width: 100%;
  15784. height: 100%;
  15785. }
  15786. .number {
  15787. margin-top: 20px;
  15788. color: #4aa6ff;
  15789. text-decoration: underline;
  15790. }
  15791. .success_button {
  15792. display: flex;
  15793. text-align: center;
  15794. margin: 5% 0 auto;
  15795. flex-direction: row;
  15796. justify-content: center;
  15797. }
  15798. .look_course {
  15799. margin-right: 40px;
  15800. background: #3d67bc;
  15801. width: 200px;
  15802. height: 35px;
  15803. line-height: 35px;
  15804. color: #fff;
  15805. text-align: center;
  15806. font-size: 14px;
  15807. border-radius: 5px;
  15808. cursor: pointer;
  15809. }
  15810. .attend_others {
  15811. width: 250px;
  15812. background: #4fb13c;
  15813. height: 35px;
  15814. line-height: 35px;
  15815. color: #fff;
  15816. text-align: center;
  15817. font-size: 14px;
  15818. border-radius: 5px;
  15819. cursor: pointer;
  15820. }
  15821. .dialog_diy2 >>> .el-dialog__body {
  15822. text-align: center;
  15823. }
  15824. .write_togother {
  15825. position: absolute;
  15826. right: 45px;
  15827. display: flex;
  15828. top: 5%;
  15829. }
  15830. .write_people {
  15831. font-size: 14px;
  15832. line-height: 50px;
  15833. padding-right: 10px;
  15834. }
  15835. .end_write {
  15836. background: #3d67bc;
  15837. color: #fff;
  15838. width: 100px;
  15839. height: 35px;
  15840. line-height: 35px;
  15841. text-align: center;
  15842. font-size: 14px;
  15843. border-radius: 5px;
  15844. cursor: pointer;
  15845. }
  15846. .chapter_upload + .chapter_upload {
  15847. /* margin-top: 15px; */
  15848. border-top: 1px solid #e7ebf1;
  15849. }
  15850. .chapter_upload {
  15851. height: 45px;
  15852. position: relative;
  15853. display: flex;
  15854. align-items: center;
  15855. width: 100%;
  15856. min-height: 45px;
  15857. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15858. /* border-radius: 4px; */
  15859. /* overflow: hidden; */
  15860. box-sizing: border-box;
  15861. }
  15862. .chapter_upload_drag {
  15863. position: absolute;
  15864. cursor: pointer;
  15865. width: 16px;
  15866. height: 16px;
  15867. left: -9px;
  15868. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  15869. background-size: 100% 100%;
  15870. z-index: 10;
  15871. display: none;
  15872. }
  15873. .isNavStage > .chapter_upload_drag {
  15874. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  15875. }
  15876. .chapter_upload_t {
  15877. background-color: #fff;
  15878. position: absolute;
  15879. height: 100%;
  15880. top: 0px;
  15881. left: 0px;
  15882. box-sizing: border-box;
  15883. }
  15884. .chapter_upload_o {
  15885. width: 100%;
  15886. height: 100%;
  15887. position: relative;
  15888. z-index: 1;
  15889. }
  15890. .chapter_upload_ic {
  15891. margin: 0 15px 0px auto;
  15892. display: flex;
  15893. align-items: center;
  15894. }
  15895. .chapter_upload_ic_l {
  15896. width: 50px;
  15897. height: 50px;
  15898. float: left;
  15899. }
  15900. .chapter_upload_ic_l div {
  15901. width: 30px;
  15902. height: 35px;
  15903. background: url("../../../assets/icon/icon.png");
  15904. }
  15905. .chapter_upload_ic_edit {
  15906. height: 100%;
  15907. display: flex;
  15908. align-items: center;
  15909. cursor: pointer;
  15910. margin: 0 10px 0 0;
  15911. }
  15912. .chapter_upload_ic_edit div {
  15913. width: 18px;
  15914. height: 18px;
  15915. background-image: url("../../../assets/icon/new/edit_u.png");
  15916. background-size: 100% 100%;
  15917. }
  15918. .chapter_upload_ic_r {
  15919. height: 100%;
  15920. display: flex;
  15921. align-items: center;
  15922. cursor: pointer;
  15923. }
  15924. .chapter_upload_ic_r div {
  15925. width: 18px;
  15926. height: 18px;
  15927. background-image: url("../../../assets/icon/new/delete_u.png");
  15928. background-size: 100% 100%;
  15929. }
  15930. .chapter_upload_n {
  15931. display: flex;
  15932. text-indent: 10px;
  15933. text-decoration: none;
  15934. text-overflow: ellipsis;
  15935. white-space: nowrap;
  15936. overflow: hidden;
  15937. width: 55%;
  15938. margin-left: 10px;
  15939. cursor: pointer;
  15940. margin-top: 2px;
  15941. align-items: center;
  15942. }
  15943. .chapter_upload_l_i2,
  15944. .chapter_upload_l_i3,
  15945. .chapter_upload_l_i8,
  15946. .chapter_upload_l_i6,
  15947. .chapter_upload_l_i12,
  15948. .chapter_upload_l_i14,
  15949. .chapter_upload_l_i13,
  15950. .chapter_upload_l_i15 {
  15951. width: 15px;
  15952. height: 15px;
  15953. background-size: 100% 100%;
  15954. }
  15955. .chapter_upload_l_i2 {
  15956. background-image: url("../../../assets/icon/new/u_word.png");
  15957. }
  15958. .chapter_upload_l_i3 {
  15959. background-image: url("../../../assets/icon/new/u_video.png");
  15960. }
  15961. .chapter_upload_l_i8 {
  15962. background-image: url("../../../assets/icon/new/u_url.png");
  15963. }
  15964. .chapter_upload_l_i14 {
  15965. background-image: url("../../../assets/icon/new/u_source.png");
  15966. }
  15967. .chapter_upload_l_i15 {
  15968. background-image: url("../../../assets/icon/new/appStore.png");
  15969. }
  15970. .chapter_upload_l_i6 {
  15971. background-image: url("../../../assets/icon/new/u_picture.png");
  15972. }
  15973. .chapter_upload_l_i12 {
  15974. background-image: url("../../../assets/icon/new/u_word.png");
  15975. }
  15976. .chapter_upload_l_i13 {
  15977. background-image: url("../../../assets/icon/new/u_img.png");
  15978. }
  15979. .chapter_upload_noSee {
  15980. background-image: url("../../../assets/icon/new/u_noUpload.png");
  15981. width: 18px;
  15982. height: 18px;
  15983. background-size: 100% 100%;
  15984. display: block;
  15985. margin-right: 10px;
  15986. }
  15987. .chapter_upload_ud {
  15988. display: flex;
  15989. flex-direction: row;
  15990. justify-content: center;
  15991. margin: 0 10px 0 0;
  15992. }
  15993. .chapter_upload_ud > .chapter_upload_up {
  15994. margin-bottom: 0;
  15995. margin-right: 10px;
  15996. }
  15997. .chapter_upload_down,
  15998. .chapter_upload_up {
  15999. width: 20px;
  16000. height: 20px;
  16001. background: #e4eaf2;
  16002. cursor: pointer;
  16003. margin: 0 auto;
  16004. border-radius: 5px;
  16005. display: flex;
  16006. justify-content: center;
  16007. align-items: center;
  16008. }
  16009. .chapter_upload_up::after,
  16010. .chapter_upload_down::after {
  16011. content: "";
  16012. background-image: url("../../../assets/icon/new/downBtn.png");
  16013. width: 13px;
  16014. height: 13px;
  16015. background-size: 100% 100%;
  16016. display: block;
  16017. }
  16018. .chapter_upload_up::after {
  16019. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  16020. }
  16021. .chapter_upload_up {
  16022. margin-bottom: 5px;
  16023. }
  16024. .chapter_upload_ud2 {
  16025. display: flex;
  16026. flex-direction: row;
  16027. justify-content: center;
  16028. margin: 0 10px 0 0;
  16029. }
  16030. .chapter_upload_ud2 > .chapter_upload_up2 {
  16031. margin-bottom: 0;
  16032. margin-right: 10px;
  16033. }
  16034. .chapter_upload_down2,
  16035. .chapter_upload_up2 {
  16036. cursor: pointer;
  16037. margin: 0 auto;
  16038. border-radius: 5px;
  16039. display: flex;
  16040. justify-content: center;
  16041. align-items: center;
  16042. color: #717c8d;
  16043. font-size: 14px;
  16044. }
  16045. .chapter_upload_up2 {
  16046. margin-right: 10px;
  16047. }
  16048. .chapter_upload_up2::before,
  16049. .chapter_upload_down2::before {
  16050. content: "";
  16051. background-image: url("../../../assets/icon/new/c_down.png");
  16052. width: 14px;
  16053. height: 14px;
  16054. background-size: 100% 100%;
  16055. display: block;
  16056. margin-right: 5px;
  16057. }
  16058. .chapter_upload_up2::before {
  16059. background-image: url("../../../assets/icon/new/c_up.png") !important;
  16060. }
  16061. .addWordStyle {
  16062. display: flex;
  16063. flex-direction: row;
  16064. justify-content: flex-start;
  16065. overflow-x: auto;
  16066. white-space: nowrap;
  16067. flex-wrap: wrap;
  16068. }
  16069. /* table 样式 */
  16070. .cont >>> table {
  16071. border-top: 1px solid #ccc;
  16072. border-left: 1px solid #ccc;
  16073. }
  16074. .cont >>> table td,
  16075. .cont >>> table th {
  16076. border-bottom: 1px solid #ccc;
  16077. border-right: 1px solid #ccc;
  16078. /* padding: 20px 5px; */
  16079. padding: 5px 10px;
  16080. max-width: 0px;
  16081. height: 30px;
  16082. vertical-align: baseline;
  16083. }
  16084. .cont >>> table th {
  16085. border-bottom: 2px solid #ccc;
  16086. text-align: center;
  16087. }
  16088. /* blockquote 样式 */
  16089. .cont >>> blockquote {
  16090. display: block;
  16091. border-left: 8px solid #d0e5f2;
  16092. padding: 5px 10px;
  16093. margin: 10px 0;
  16094. line-height: 1.4;
  16095. font-size: 100%;
  16096. background-color: #f1f1f1;
  16097. }
  16098. /* code 样式 */
  16099. .cont >>> code {
  16100. display: inline-block;
  16101. /* *display: inline; */
  16102. zoom: 1;
  16103. background-color: #f1f1f1;
  16104. border-radius: 3px;
  16105. padding: 3px 5px;
  16106. margin: 0 3px;
  16107. }
  16108. .cont >>> pre code {
  16109. display: block;
  16110. }
  16111. /* ul ol 样式 */
  16112. .cont >>> ul,
  16113. ol {
  16114. margin: 10px 0 10px 20px;
  16115. }
  16116. .wordbox {
  16117. display: flex;
  16118. flex-wrap: wrap;
  16119. cursor: pointer;
  16120. width: 100%;
  16121. }
  16122. .checkword {
  16123. width: 22px;
  16124. height: 22px;
  16125. margin: 10px auto 0;
  16126. cursor: pointer;
  16127. }
  16128. .checkword img {
  16129. width: 100%;
  16130. }
  16131. .stepBg {
  16132. display: flex;
  16133. justify-content: space-between;
  16134. align-items: center;
  16135. background: #fff;
  16136. width: calc(100%);
  16137. margin: 0 auto;
  16138. }
  16139. .stepBorder {
  16140. height: 3px !important;
  16141. background: #cad1dc;
  16142. width: 100px !important;
  16143. margin: 0 15px !important;
  16144. position: relative;
  16145. }
  16146. .border-active {
  16147. background: #3681fc !important;
  16148. }
  16149. .border-active::before,
  16150. .border-active::after {
  16151. border-color: #3681fc !important;
  16152. }
  16153. .stepBorder::before,
  16154. .stepBorder::after {
  16155. content: "";
  16156. width: 9px;
  16157. height: 9px;
  16158. background: #ffffff;
  16159. opacity: 1;
  16160. border: 2px solid #acb4bf;
  16161. display: block;
  16162. box-sizing: border-box;
  16163. border-radius: 50%;
  16164. position: absolute;
  16165. top: 50%;
  16166. transform: translateY(-50%);
  16167. }
  16168. .stepBorder::after {
  16169. right: -9px;
  16170. }
  16171. .stepTop {
  16172. width: 100%;
  16173. /* border-radius: 10px; */
  16174. display: flex;
  16175. justify-content: center;
  16176. align-items: center;
  16177. flex-wrap: nowrap;
  16178. background: #fff;
  16179. /* top: 18%; */
  16180. height: 80px;
  16181. border-bottom: 2px solid rgb(228, 232, 237);
  16182. box-sizing: border-box;
  16183. }
  16184. .stepTop2 {
  16185. width: 100%;
  16186. /* border-radius: 10px; */
  16187. display: flex;
  16188. justify-content: center;
  16189. align-items: center;
  16190. flex-wrap: nowrap;
  16191. background: #fff;
  16192. /* top: 18%; */
  16193. height: 20px;
  16194. border-bottom: 2px solid rgb(228, 232, 237);
  16195. box-sizing: border-box;
  16196. overflow: hidden;
  16197. cursor: pointer;
  16198. }
  16199. .stepTop > div img {
  16200. width: 100%;
  16201. }
  16202. .stepTop > div {
  16203. height: 50px;
  16204. width: 180px;
  16205. cursor: pointer;
  16206. margin: 10px 0;
  16207. border-radius: 10px;
  16208. }
  16209. .first,
  16210. .second,
  16211. .third,
  16212. .four {
  16213. background: #3681fc;
  16214. height: 90px;
  16215. color: #fff;
  16216. display: flex;
  16217. flex-direction: row;
  16218. align-items: center;
  16219. justify-content: center;
  16220. }
  16221. .first > div:nth-child(1),
  16222. .second > div:nth-child(1),
  16223. .third > div:nth-child(1),
  16224. .four > div:nth-child(1) {
  16225. margin: 5px 10px 0 0;
  16226. width: 2rem;
  16227. }
  16228. .firstNo,
  16229. .secondNo,
  16230. .thirdNo,
  16231. .fourNo {
  16232. background: #e7e7e7;
  16233. color: #adadad;
  16234. display: flex;
  16235. flex-direction: row;
  16236. align-items: center;
  16237. justify-content: center;
  16238. }
  16239. .firstNo > div:nth-child(1),
  16240. .secondNo > div:nth-child(1),
  16241. .thirdNo > div:nth-child(1),
  16242. .fourNo > div:nth-child(1) {
  16243. margin: 5px 10px 0 0;
  16244. width: 2rem;
  16245. }
  16246. .uploadWidth >>> .el-upload {
  16247. width: 60px;
  16248. height: 60px;
  16249. position: relative;
  16250. }
  16251. .addPeople {
  16252. background: #fa6060;
  16253. width: 150px;
  16254. height: 40px;
  16255. color: #fff;
  16256. border-radius: 5px;
  16257. text-align: center;
  16258. line-height: 40px;
  16259. font-size: 14px;
  16260. cursor: pointer;
  16261. }
  16262. .kcImg {
  16263. width: 60px;
  16264. margin-left: 10px;
  16265. }
  16266. .zyImg {
  16267. width: 55px;
  16268. margin: 0 10px;
  16269. }
  16270. .deleteZy {
  16271. width: 20px;
  16272. position: absolute;
  16273. top: 5px;
  16274. right: 5px;
  16275. cursor: pointer;
  16276. }
  16277. .kcImg > img,
  16278. .zyImg > img,
  16279. .deleteZy > img {
  16280. width: 100%;
  16281. height: 100%;
  16282. }
  16283. .zyBox {
  16284. display: flex;
  16285. flex-direction: row;
  16286. align-items: center;
  16287. background: #67d37d;
  16288. color: #fff;
  16289. width: 210px;
  16290. margin: 20px 20px 0 0;
  16291. border-radius: 10px;
  16292. height: 70px;
  16293. position: relative;
  16294. }
  16295. .upCss {
  16296. display: flex;
  16297. flex-direction: row;
  16298. justify-content: flex-start;
  16299. }
  16300. .upCss >>> .el-icon-plus {
  16301. position: none !important;
  16302. width: 200px;
  16303. height: 100px;
  16304. display: flex;
  16305. flex-wrap: nowrap;
  16306. flex-direction: column;
  16307. align-items: center;
  16308. justify-content: center;
  16309. border: 1px dashed #ccc;
  16310. min-width: 78px;
  16311. min-height: 100px;
  16312. z-index: 999;
  16313. }
  16314. .upCss >>> .el-upload-list__item-name {
  16315. width: 100px;
  16316. white-space: nowrap;
  16317. overflow: hidden;
  16318. text-overflow: ellipsis;
  16319. }
  16320. .upCss >>> .el-upload-list__item .el-icon-close {
  16321. font-size: 20px;
  16322. z-index: 9999;
  16323. }
  16324. .addStageImg {
  16325. min-width: 20px;
  16326. min-height: 20px;
  16327. width: 20px;
  16328. height: 20px;
  16329. cursor: pointer;
  16330. }
  16331. .addHW {
  16332. width: 28px;
  16333. height: 28px;
  16334. cursor: pointer;
  16335. }
  16336. .addStageImg > img,
  16337. .addHW > img {
  16338. width: 100%;
  16339. height: 100%;
  16340. }
  16341. .addNewPP >>> .el-dialog__body {
  16342. padding: 5px 20px;
  16343. }
  16344. .addNewPP >>> .el-dialog {
  16345. margin-top: 5vh !important;
  16346. }
  16347. .addNewPP2 >>> .el-dialog__body {
  16348. padding: 5px 0;
  16349. }
  16350. .addNewPP2 >>> .el-dialog {
  16351. margin-top: 5vh !important;
  16352. }
  16353. .isHeight {
  16354. height: 680px;
  16355. }
  16356. .toolChoose {
  16357. display: flex;
  16358. /* width: 100%; */
  16359. flex-direction: row;
  16360. flex-wrap: wrap;
  16361. }
  16362. .tool,
  16363. .isToolChoose {
  16364. display: flex;
  16365. flex-direction: column;
  16366. flex-wrap: nowrap;
  16367. width: fit-content;
  16368. margin: 10px 0 10px 0;
  16369. align-items: center;
  16370. border: 2px solid #dbdbdb00;
  16371. padding: 10px 20px;
  16372. border-radius: 5px;
  16373. cursor: pointer;
  16374. /* box-shadow: 0 0 2px 0px #dedede; */
  16375. position: relative;
  16376. box-sizing: border-box;
  16377. }
  16378. .tool:hover {
  16379. border: 2px solid #a5c7ff;
  16380. }
  16381. .tool:hover > .noCTool {
  16382. display: block;
  16383. opacity: 0.5;
  16384. }
  16385. .isToolChoose {
  16386. border: 2px solid #438aff !important;
  16387. box-shadow: 0 0 2px 0px #438aff;
  16388. opacity: 1 !important;
  16389. }
  16390. .isCTool,
  16391. .noCTool {
  16392. width: 30px;
  16393. height: 30px;
  16394. position: absolute;
  16395. top: -4px;
  16396. right: -4px;
  16397. }
  16398. .noCTool {
  16399. display: none;
  16400. }
  16401. .isCTool > img,
  16402. .noCTool > img {
  16403. width: 100%;
  16404. height: 100%;
  16405. }
  16406. .tool + .tool {
  16407. margin-right: 10px;
  16408. }
  16409. .whiteBIcon {
  16410. width: 80px;
  16411. cursor: pointer;
  16412. display: flex;
  16413. flex-direction: column;
  16414. flex-wrap: nowrap;
  16415. align-items: center;
  16416. font-size: 14px;
  16417. }
  16418. .whiteBIcon > img,
  16419. .toolIcon > img,
  16420. .arrow > img {
  16421. width: 100%;
  16422. height: 100%;
  16423. }
  16424. .check img {
  16425. width: 20px;
  16426. height: 20px;
  16427. }
  16428. .whiteBIcon > img {
  16429. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  16430. border-radius: 15px;
  16431. }
  16432. .whiteBIcon > div:nth-child(2) {
  16433. height: 20px;
  16434. line-height: 20px;
  16435. }
  16436. .check {
  16437. /* width: 20px;
  16438. height: 20px; */
  16439. cursor: pointer;
  16440. margin: 10px 0 0;
  16441. }
  16442. .checkDiv {
  16443. display: flex;
  16444. align-items: center;
  16445. }
  16446. .checkDiv span {
  16447. margin-left: 5px;
  16448. color: #858585;
  16449. }
  16450. .customWidth >>> .el-dialog {
  16451. min-width: 600px !important;
  16452. }
  16453. .CollaborativeCss {
  16454. width: 100%;
  16455. display: flex;
  16456. justify-content: center;
  16457. align-items: center;
  16458. box-sizing: border-box;
  16459. padding: 10px 0;
  16460. cursor: pointer;
  16461. }
  16462. .CollaborativeCss >>> .el-tooltip {
  16463. overflow: hidden;
  16464. white-space: nowrap;
  16465. text-overflow: ellipsis;
  16466. }
  16467. .CollaborativeCss2 {
  16468. background: #e0eafb;
  16469. color: #3681fc;
  16470. font-weight: 700;
  16471. border-radius: 5px;
  16472. }
  16473. .a_addBox {
  16474. margin: 10px 0;
  16475. background: #fff;
  16476. padding: 15px;
  16477. /* max-height: 600px; */
  16478. overflow: auto;
  16479. }
  16480. .a_add_box {
  16481. border-bottom: 2px solid #eee;
  16482. padding-bottom: 25px;
  16483. }
  16484. .a_add_head {
  16485. display: flex;
  16486. align-items: center;
  16487. justify-content: space-between;
  16488. margin: 10px 0 0 0;
  16489. font-size: 18px;
  16490. }
  16491. .a_add_checkType {
  16492. margin-top: 10px;
  16493. display: flex;
  16494. font-size: 14px;
  16495. align-items: center;
  16496. }
  16497. .a_add_checkType span {
  16498. box-sizing: border-box;
  16499. padding: 0 0 5px 0;
  16500. cursor: pointer;
  16501. }
  16502. .a_add_checkType span + span {
  16503. margin-left: 10px;
  16504. }
  16505. .a_add_checkType .active {
  16506. border-bottom: 2px solid #409eff;
  16507. color: #409eff;
  16508. }
  16509. .a_add_head .a_add_head_input {
  16510. /* width: 540px; */
  16511. width: 100%;
  16512. }
  16513. .a_add_head .a_add_head_div {
  16514. display: flex;
  16515. align-items: center;
  16516. justify-content: space-between;
  16517. }
  16518. .a_add_body {
  16519. display: flex;
  16520. /* align-items: center; */
  16521. align-items: flex-end;
  16522. }
  16523. .a_add_input {
  16524. display: flex;
  16525. align-items: center;
  16526. flex-wrap: wrap;
  16527. }
  16528. .a_add_input_choice {
  16529. flex-direction: column;
  16530. margin-right: 10px;
  16531. }
  16532. .a_add_input_choice >>> .el-radio {
  16533. display: flex;
  16534. align-items: center;
  16535. flex-direction: row-reverse;
  16536. margin: 30px 0 0 0;
  16537. position: relative;
  16538. }
  16539. .a_add_input_choice >>> .el-checkbox {
  16540. display: flex;
  16541. align-items: center;
  16542. flex-direction: row-reverse;
  16543. margin: 30px 0 0 0;
  16544. position: relative;
  16545. }
  16546. .width100 {
  16547. width: 100%;
  16548. }
  16549. .a_add_input .a_add_persent {
  16550. width: 100%;
  16551. }
  16552. .a_add_persent_div {
  16553. width: 100%;
  16554. display: flex;
  16555. align-items: center;
  16556. }
  16557. .a_add_persent_div span {
  16558. margin: 5px 0;
  16559. }
  16560. .a_add_persent_div span:nth-child(1) {
  16561. width: 30%;
  16562. }
  16563. .a_add_persent_div span:nth-child(2) {
  16564. width: 7%;
  16565. }
  16566. .a_add_persent_div span:nth-child(3) {
  16567. width: 40%;
  16568. }
  16569. .a_add_body_div {
  16570. display: flex;
  16571. align-items: center;
  16572. justify-content: center;
  16573. /* flex-direction: column; */
  16574. position: absolute;
  16575. right: -20px;
  16576. transform: translateX(100%);
  16577. }
  16578. .a_add_body_div >>> .el-button--primary {
  16579. background: #466b99;
  16580. border: none;
  16581. }
  16582. .all_choose {
  16583. display: flex;
  16584. flex-direction: row;
  16585. align-items: flex-start;
  16586. width: 100%;
  16587. }
  16588. .all_choose + .all_choose {
  16589. /* margin-top: 10px */
  16590. }
  16591. .all_choose > span {
  16592. min-width: fit-content;
  16593. display: block;
  16594. white-space: nowrap;
  16595. overflow: hidden;
  16596. text-overflow: ellipsis;
  16597. margin-right: 20px;
  16598. font-weight: bold;
  16599. font-size: 14px;
  16600. }
  16601. .all_choose >>> .el-checkbox-group {
  16602. display: flex;
  16603. flex-direction: row;
  16604. width: 100%;
  16605. flex-wrap: wrap;
  16606. align-content: center;
  16607. justify-content: flex-start;
  16608. align-items: center;
  16609. margin-top: 3px;
  16610. }
  16611. .all_choose > .el-checkbox-group >>> .el-checkbox {
  16612. margin-bottom: 10px;
  16613. display: flex;
  16614. flex-direction: row;
  16615. align-items: center;
  16616. margin-right: 10px;
  16617. }
  16618. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  16619. min-width: 80px;
  16620. overflow: hidden;
  16621. /* width: 80px; */
  16622. text-overflow: ellipsis;
  16623. white-space: nowrap;
  16624. }
  16625. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  16626. width: auto;
  16627. }
  16628. .choose > div:nth-child(3) > span {
  16629. /* letter-spacing: 0 !important; */
  16630. }
  16631. .choose {
  16632. display: flex;
  16633. flex-direction: column;
  16634. flex-wrap: nowrap;
  16635. height: 100%;
  16636. justify-content: space-evenly;
  16637. align-items: flex-start;
  16638. }
  16639. .both {
  16640. display: flex;
  16641. flex-direction: row;
  16642. flex-wrap: wrap;
  16643. width: 100%;
  16644. align-items: center;
  16645. justify-content: flex-start;
  16646. margin: 15px 0;
  16647. }
  16648. .notice >>> .el-dialog {
  16649. width: 500px !important;
  16650. text-align: center;
  16651. }
  16652. .notice >>> .el-button {
  16653. margin-top: 20px;
  16654. }
  16655. .whiteBg {
  16656. /* background: #fff; */
  16657. border-radius: 10px;
  16658. }
  16659. .wb_j_box {
  16660. display: flex;
  16661. width: 100%;
  16662. padding: 0 20px 0;
  16663. box-sizing: border-box;
  16664. }
  16665. .wb_j_box_content {
  16666. width: calc(100% - 55% - 100px);
  16667. display: flex;
  16668. align-items: center;
  16669. }
  16670. .wb_j_box_p_box {
  16671. max-width: calc(100% - 200px);
  16672. word-break: break-all;
  16673. overflow: hidden;
  16674. margin: 0 0 0 10px;
  16675. font-size: 14px;
  16676. color: #6e6e6e;
  16677. z-index: 999;
  16678. }
  16679. .chooseWho {
  16680. display: flex;
  16681. /* width: 410px; */
  16682. gap:15px;
  16683. flex-direction: row;
  16684. flex-wrap: nowrap;
  16685. justify-content: space-between;
  16686. padding-bottom: 10px;
  16687. }
  16688. .chooseWho > div {
  16689. cursor: pointer;
  16690. padding-bottom: 10px;
  16691. font-weight: bold;
  16692. }
  16693. .isChooseActive {
  16694. color: #3e88f4;
  16695. border-bottom: 2px solid #2f80f3;
  16696. }
  16697. .toolSort {
  16698. display: flex;
  16699. flex-direction: row;
  16700. flex-wrap: wrap;
  16701. justify-content: flex-start;
  16702. align-items: flex-start;
  16703. }
  16704. .toolSort > div {
  16705. margin-right: 10px;
  16706. }
  16707. .tools {
  16708. width: 100%;
  16709. display: flex;
  16710. flex-direction: column;
  16711. flex-wrap: nowrap;
  16712. align-items: flex-start;
  16713. }
  16714. .leftTools,
  16715. .rightTools {
  16716. width: 50%;
  16717. }
  16718. .leftTools + .leftTools {
  16719. border-top: 1px solid #dbdbdb;
  16720. padding-top: 30px;
  16721. }
  16722. .rightTools {
  16723. display: flex;
  16724. flex-direction: row;
  16725. flex-wrap: nowrap;
  16726. justify-content: space-around;
  16727. }
  16728. .firstToolList {
  16729. display: flex;
  16730. flex-direction: column;
  16731. flex-wrap: nowrap;
  16732. align-items: center;
  16733. }
  16734. .iconList {
  16735. display: flex;
  16736. flex-direction: row;
  16737. flex-wrap: wrap;
  16738. justify-content: flex-start;
  16739. align-items: center;
  16740. margin: 20px 0 5px 0;
  16741. width: 240px;
  16742. min-width: 240px;
  16743. }
  16744. .iconTool {
  16745. display: flex;
  16746. flex-direction: column;
  16747. flex-wrap: nowrap;
  16748. align-items: center;
  16749. justify-content: flex-start;
  16750. margin: 15px 10px;
  16751. }
  16752. .toolIcon {
  16753. width: 50px;
  16754. }
  16755. .taskBorder {
  16756. /* border: 1px solid #CAD1DC; */
  16757. border-radius: 10px;
  16758. margin-top: 10px;
  16759. min-height: 670px;
  16760. position: relative;
  16761. background: #fff;
  16762. padding: 20px;
  16763. overflow: hidden;
  16764. box-sizing: border-box;
  16765. }
  16766. .smallTaskBorder {
  16767. height: 405px;
  16768. min-height: 405px !important;
  16769. overflow: hidden;
  16770. }
  16771. /* .taskBorder>div {
  16772. padding: 30px 30px 10px;
  16773. } */
  16774. .addTaskBorder {
  16775. /* border: 2px solid #5E9AFC; */
  16776. border-radius: 8px;
  16777. margin-top: 10px;
  16778. cursor: pointer;
  16779. /* height: 50px;
  16780. line-height: 50px; */
  16781. background: #fff;
  16782. padding: 15px 0;
  16783. display: flex;
  16784. align-items: center;
  16785. justify-content: center;
  16786. }
  16787. /* .addTaskBorder>div {
  16788. margin: 0 auto;
  16789. display: flex;
  16790. align-items: center;
  16791. justify-content: center;
  16792. }
  16793. .addTaskBorder>div>img {
  16794. width: 20px;
  16795. }
  16796. .addTaskBorder>div>span {
  16797. font-size: 16px;
  16798. margin-left: 10px;
  16799. color: #5E9AFC;
  16800. } */
  16801. .funBlock {
  16802. display: flex;
  16803. padding: 15px 0;
  16804. flex-direction: row;
  16805. justify-content: center;
  16806. align-items: center;
  16807. position: absolute;
  16808. right: 0;
  16809. bottom: 0;
  16810. background: #fff;
  16811. width: 100%;
  16812. height: 60px;
  16813. z-index: 9;
  16814. }
  16815. .fold {
  16816. display: flex;
  16817. margin: 0 20px;
  16818. flex-direction: row;
  16819. align-items: center;
  16820. cursor: pointer;
  16821. color: #2b7bff;
  16822. }
  16823. .arrow {
  16824. margin-right: 8px;
  16825. width: 16px;
  16826. height: 16px;
  16827. min-width: 16px;
  16828. min-height: 16px;
  16829. background-size: 100% 100%;
  16830. display: block;
  16831. background-image: url(../../../assets/icon/new/u_up.png);
  16832. /* border-left: 7px solid transparent;
  16833. border-bottom: 7px solid #717C8D;
  16834. border-top: 0px solid transparent;
  16835. border-right: 7px solid transparent; */
  16836. /* box-sizing: border-box; */
  16837. transition: all 0.3s;
  16838. }
  16839. .arrowZ {
  16840. transform: rotate(180deg);
  16841. }
  16842. .addToolFun {
  16843. display: flex;
  16844. width: 150px;
  16845. flex-direction: row;
  16846. align-items: center;
  16847. justify-content: center;
  16848. border: 2px dashed #cad1dc;
  16849. border-radius: 5px;
  16850. height: 50px;
  16851. margin: 35px auto 0;
  16852. cursor: pointer;
  16853. }
  16854. .addToolFun2 {
  16855. display: flex;
  16856. width: 150px;
  16857. border: 2px dashed #cad1dc;
  16858. flex-direction: row;
  16859. align-items: center;
  16860. justify-content: center;
  16861. border-radius: 5px;
  16862. height: 50px;
  16863. margin: 0 auto 0;
  16864. cursor: pointer;
  16865. }
  16866. .addToolFun2 > div,
  16867. .addToolFun > div {
  16868. display: flex;
  16869. line-height: 50px;
  16870. }
  16871. .addToolImg {
  16872. width: 20px;
  16873. height: 20px;
  16874. margin-right: 10px;
  16875. }
  16876. .addToolsDia >>> .el-dialog__body {
  16877. padding: 20px;
  16878. }
  16879. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16880. padding: 0;
  16881. }
  16882. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16883. padding: 0;
  16884. border-bottom: none;
  16885. margin-bottom: 0;
  16886. }
  16887. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16888. width: 100%;
  16889. }
  16890. .lineCss >>> .el-form-item__label {
  16891. width: auto !important;
  16892. }
  16893. .lineCss >>> .el-form-item__content {
  16894. margin-left: 50px !important;
  16895. }
  16896. .newSteps {
  16897. display: flex;
  16898. width: 100% !important;
  16899. /* height: 80px; */
  16900. cursor: pointer;
  16901. margin: 10px 0;
  16902. border-radius: 10px;
  16903. flex-direction: row;
  16904. align-content: center;
  16905. justify-content: center;
  16906. align-items: center;
  16907. margin: 0 !important;
  16908. }
  16909. /* 评价样式 */
  16910. .elist_css {
  16911. padding-bottom: 75px !important;
  16912. }
  16913. .elist_title {
  16914. margin-bottom: 10px;
  16915. }
  16916. .elist_input {
  16917. width: 100%;
  16918. }
  16919. .elist_input_box {
  16920. display: flex;
  16921. align-items: center;
  16922. flex-wrap: wrap;
  16923. }
  16924. .elist_input_box + .elist_input_box {
  16925. margin-top: 30px;
  16926. }
  16927. .elist_input .elist_input_box input {
  16928. font: inherit;
  16929. color: currentColor;
  16930. width: 100%;
  16931. /* max-width: calc(100% - 385px); */
  16932. max-width: calc(100% - 150px);
  16933. padding: 8px 14px;
  16934. display: block;
  16935. min-width: 0;
  16936. outline: none;
  16937. border: 1px solid rgba(0, 0, 0, 0.23);
  16938. border-radius: 4px;
  16939. box-sizing: border-box;
  16940. background: #fff;
  16941. margin: 0 20px 0 0;
  16942. }
  16943. .elist_input .elist_input_box span {
  16944. height: 36px;
  16945. line-height: 36px;
  16946. color: rgb(82, 82, 82);
  16947. min-width: 80px;
  16948. }
  16949. .elist_input .elist_input_box .remove {
  16950. height: 20px;
  16951. width: 20px;
  16952. min-height: 20px;
  16953. min-width: 20px;
  16954. background-size: 100% 100%;
  16955. background-position: unset;
  16956. margin-left: 5px;
  16957. }
  16958. .elist_input_box >>> .el-rate {
  16959. display: flex;
  16960. height: 36px;
  16961. align-items: center;
  16962. }
  16963. .elist_input_box .elist_inptu_text {
  16964. width: 100%;
  16965. display: flex;
  16966. align-items: center;
  16967. margin-top: 10px;
  16968. }
  16969. .elist_input_box .elist_inptu_text input {
  16970. /* width: 500px; */
  16971. width: 100%;
  16972. max-width: unset;
  16973. }
  16974. .elist_input_box >>> .el-rate__icon {
  16975. font-size: 24px;
  16976. }
  16977. .elist_btn {
  16978. margin-top: 10px;
  16979. }
  16980. .lineTitle {
  16981. /* margin-top: 15px; */
  16982. /* width: 110px; */
  16983. font-size: 16px;
  16984. display: flex;
  16985. align-items: center;
  16986. line-height: 20px;
  16987. }
  16988. .lineTitle::before {
  16989. content: "";
  16990. display: block;
  16991. width: 3px;
  16992. height: 20px;
  16993. background: #0061ff;
  16994. border-radius: 3px;
  16995. margin: 0 5px 0 0;
  16996. }
  16997. .clineTitle::before {
  16998. content: "";
  16999. display: block;
  17000. min-width: 10px;
  17001. width: 10px;
  17002. height: 10px;
  17003. background: #0061ff;
  17004. border-radius: 50%;
  17005. margin: 0 5px 0 0;
  17006. }
  17007. .courseTop {
  17008. display: flex;
  17009. flex-direction: row;
  17010. justify-content: space-between;
  17011. align-items: center;
  17012. width: calc(100% - 40px);
  17013. margin: 0 auto;
  17014. padding: 10px 0;
  17015. }
  17016. .stepsNav {
  17017. display: flex;
  17018. flex-direction: row;
  17019. justify-content: flex-start;
  17020. align-items: center;
  17021. }
  17022. .stepsWord {
  17023. font-size: 18px;
  17024. color: #fff;
  17025. font-weight: bold;
  17026. margin-left: auto;
  17027. background: rgb(15, 126, 255);
  17028. border-radius: 5px;
  17029. padding: 3px 25px;
  17030. box-sizing: border-box;
  17031. }
  17032. .stepBox {
  17033. width: calc(100% - 40px);
  17034. height: calc(100% - 50px);
  17035. overflow: hidden;
  17036. border-radius: 5px;
  17037. margin: 0 auto;
  17038. }
  17039. .rightBox {
  17040. width: calc(100%);
  17041. background: #f0f2f5;
  17042. /* border-radius: 10px; */
  17043. overflow: auto;
  17044. height: calc(100% - 150px);
  17045. margin: 0 auto;
  17046. position: relative;
  17047. box-sizing: border-box;
  17048. }
  17049. .e_add_top {
  17050. display: flex;
  17051. justify-content: space-between;
  17052. background: #fff;
  17053. position: absolute;
  17054. right: 20px;
  17055. height: 50px;
  17056. align-items: center;
  17057. }
  17058. .e_add_title2 {
  17059. display: flex;
  17060. align-items: center;
  17061. }
  17062. .e_add_title2 span {
  17063. width: 40px;
  17064. }
  17065. .e_add_title {
  17066. display: flex;
  17067. align-items: center;
  17068. color: #b8b8b8;
  17069. font-size: 18px;
  17070. position: relative;
  17071. height: 40px;
  17072. }
  17073. .e_add_title span {
  17074. margin-right: 10px;
  17075. }
  17076. .e_add_title .el_input {
  17077. width: 300px;
  17078. }
  17079. .e_add_title >>> .el-input__inner {
  17080. width: 400px;
  17081. }
  17082. .e_add_btn {
  17083. }
  17084. .e_add_content {
  17085. display: flex;
  17086. width: 100%;
  17087. }
  17088. .e_add_list {
  17089. background: #fff;
  17090. height: 500px;
  17091. width: 210px;
  17092. position: relative;
  17093. margin: 15px 5px 0 0;
  17094. flex-shrink: 0;
  17095. display: flex;
  17096. flex-direction: column;
  17097. }
  17098. .e_add_list_title {
  17099. font-size: 20px;
  17100. width: 100%;
  17101. box-sizing: border-box;
  17102. padding: 15px 40px;
  17103. text-align: center;
  17104. border-bottom: 1px solid #eaeaea;
  17105. position: relative;
  17106. display: flex;
  17107. align-items: center;
  17108. justify-content: center;
  17109. height: 57px;
  17110. background: #f6f6f6;
  17111. }
  17112. .e_add_list_title span {
  17113. overflow: hidden;
  17114. white-space: nowrap;
  17115. text-overflow: ellipsis;
  17116. }
  17117. .e_add_list_title img {
  17118. position: absolute;
  17119. right: 15px;
  17120. width: 25px;
  17121. cursor: pointer;
  17122. top: 50%;
  17123. transform: translateY(-50%);
  17124. }
  17125. .e_add_list_body {
  17126. height: calc(100% - 187px);
  17127. overflow: auto;
  17128. }
  17129. .e_add_list_child {
  17130. width: 100%;
  17131. display: flex;
  17132. align-items: center;
  17133. justify-content: center;
  17134. position: relative;
  17135. box-sizing: border-box;
  17136. padding: 15px 40px;
  17137. text-align: center;
  17138. }
  17139. .e_add_list_child span {
  17140. overflow: hidden;
  17141. white-space: nowrap;
  17142. text-overflow: ellipsis;
  17143. cursor: pointer;
  17144. }
  17145. .e_add_list_child img {
  17146. position: absolute;
  17147. right: 10px;
  17148. width: 21px;
  17149. cursor: pointer;
  17150. top: 50%;
  17151. transform: translateY(-50%);
  17152. }
  17153. .e_add_list_child + .e_add_list_child {
  17154. border-top: 1px solid #eaeaea;
  17155. }
  17156. .e_add_list_child .active {
  17157. color: #409eff;
  17158. }
  17159. .e_add_list_btn {
  17160. position: absolute;
  17161. bottom: 0;
  17162. height: 50px;
  17163. background: rgb(120, 120, 254);
  17164. width: 100%;
  17165. color: #fff;
  17166. font-size: 16px;
  17167. text-align: center;
  17168. line-height: 50px;
  17169. cursor: pointer;
  17170. }
  17171. .e_add_list_detail {
  17172. position: absolute;
  17173. bottom: 0;
  17174. height: 130px;
  17175. background: rgb(120, 120, 254);
  17176. width: 100%;
  17177. color: #fff;
  17178. font-size: 16px;
  17179. display: flex;
  17180. align-items: center;
  17181. justify-content: center;
  17182. }
  17183. .e_add_list_detail textarea {
  17184. height: 90%;
  17185. width: 95%;
  17186. border: none;
  17187. resize: none;
  17188. outline: none;
  17189. padding: 5px;
  17190. box-sizing: border-box;
  17191. }
  17192. .e_add_list_pbox {
  17193. width: 100%;
  17194. }
  17195. .e_add_list_pbox_title {
  17196. height: 50px;
  17197. background: #fff;
  17198. display: flex;
  17199. align-items: center;
  17200. width: 100%;
  17201. box-sizing: border-box;
  17202. padding: 0 20px;
  17203. flex-direction: row;
  17204. flex-wrap: wrap;
  17205. }
  17206. .type_title {
  17207. font-size: 18px;
  17208. font-weight: 700;
  17209. }
  17210. .type_content {
  17211. font-size: 16px;
  17212. margin-left: 30px;
  17213. }
  17214. .type_content span + span {
  17215. margin-left: 20px;
  17216. }
  17217. .type_content span {
  17218. cursor: pointer;
  17219. padding-bottom: 5px;
  17220. box-sizing: border-box;
  17221. }
  17222. .type_content .active {
  17223. color: #409eff;
  17224. border-bottom: 2px solid #409eff;
  17225. }
  17226. .e_add_list_pbox_content {
  17227. height: calc(100% - 50px);
  17228. display: flex;
  17229. align-items: center;
  17230. width: 100%;
  17231. background: #fff;
  17232. }
  17233. .mbCss {
  17234. width: 100%;
  17235. display: flex;
  17236. flex-direction: row;
  17237. flex-wrap: nowrap;
  17238. align-content: center;
  17239. align-items: flex-start;
  17240. justify-content: flex-start;
  17241. }
  17242. .pjCss {
  17243. /* width: 42%; */
  17244. width: calc(100% - 55%);
  17245. display: flex;
  17246. flex-direction: column;
  17247. flex-wrap: nowrap;
  17248. align-items: flex-start;
  17249. }
  17250. .e_box {
  17251. /* display: flex; */
  17252. flex-wrap: wrap;
  17253. max-height: 500px;
  17254. align-items: flex-start;
  17255. overflow: auto;
  17256. width: 100%;
  17257. }
  17258. .e_card {
  17259. border: 1px solid #ccc;
  17260. background: #fff;
  17261. margin-right: 20px;
  17262. width: 270px;
  17263. display: flex;
  17264. flex-direction: column;
  17265. align-items: center;
  17266. border-radius: 5px;
  17267. margin-top: 10px;
  17268. text-align: center;
  17269. }
  17270. .e_card_picture {
  17271. margin: 10px 0;
  17272. }
  17273. .e_card_picture > img {
  17274. width: 50px;
  17275. }
  17276. .e_card_name {
  17277. width: 100%;
  17278. padding: 0 10px;
  17279. box-sizing: border-box;
  17280. margin-bottom: 10px;
  17281. overflow: hidden;
  17282. text-overflow: ellipsis;
  17283. white-space: nowrap;
  17284. }
  17285. .e_card_time {
  17286. width: 100%;
  17287. padding: 0 10px;
  17288. box-sizing: border-box;
  17289. font-size: 15px;
  17290. color: #c3c3c3;
  17291. margin-bottom: 10px;
  17292. }
  17293. .e_card_btn {
  17294. height: 40px;
  17295. display: flex;
  17296. align-items: center;
  17297. width: 100%;
  17298. background: rgb(244, 244, 244);
  17299. }
  17300. .e_card_btn:hover {
  17301. background: rgb(221 221 221);
  17302. }
  17303. .e_card_btn span {
  17304. flex: 1 1 auto;
  17305. text-align: center;
  17306. cursor: pointer;
  17307. }
  17308. .addEva {
  17309. border: 1px solid #ccc;
  17310. background: #fff;
  17311. margin-right: 20px;
  17312. width: 270px;
  17313. height: 149px;
  17314. display: flex;
  17315. flex-direction: column;
  17316. align-items: center;
  17317. border-radius: 5px;
  17318. margin-top: 10px;
  17319. text-align: center;
  17320. cursor: pointer;
  17321. justify-content: center;
  17322. }
  17323. .addEva > img {
  17324. width: 50px;
  17325. object-fit: cover;
  17326. }
  17327. .uploadFm {
  17328. border: 1px dashed #ccc;
  17329. width: 100%;
  17330. height: 140px;
  17331. position: relative;
  17332. cursor: pointer;
  17333. display: flex;
  17334. flex-direction: column;
  17335. justify-content: center;
  17336. align-items: center;
  17337. font-size: 14px;
  17338. color: #6e6e6e;
  17339. position: relative;
  17340. }
  17341. .cover_p {
  17342. width: 100% !important;
  17343. height: 100%;
  17344. object-fit: cover;
  17345. }
  17346. .uploadFm2:hover .cover_mask {
  17347. display: flex !important;
  17348. }
  17349. .cover_mask {
  17350. display: none;
  17351. width: 100%;
  17352. height: 100%;
  17353. position: absolute;
  17354. background: #00000054;
  17355. align-items: center;
  17356. justify-content: center;
  17357. flex-direction: column;
  17358. }
  17359. .cover_mask > img {
  17360. width: 30px;
  17361. }
  17362. .cover_mask > span {
  17363. color: #fff;
  17364. font-size: 12px;
  17365. }
  17366. .uploadFm > img {
  17367. width: 50px;
  17368. }
  17369. .fileCss {
  17370. width: 100%;
  17371. display: flex;
  17372. flex-direction: row;
  17373. flex-wrap: nowrap;
  17374. justify-content: space-around;
  17375. align-items: center;
  17376. padding-top: 15px;
  17377. }
  17378. .fileCss > div {
  17379. display: flex;
  17380. flex-direction: column;
  17381. align-items: center;
  17382. }
  17383. .fileCss .spanName {
  17384. margin-top: 10px;
  17385. }
  17386. .sysPicBox {
  17387. display: flex;
  17388. flex-direction: row;
  17389. flex-wrap: wrap;
  17390. align-content: flex-start;
  17391. height: 435px;
  17392. overflow: auto;
  17393. position: relative;
  17394. }
  17395. .picNone {
  17396. position: absolute;
  17397. left: 50%;
  17398. top: 45%;
  17399. transform: translate(-50%, -50%);
  17400. width: fit-content;
  17401. color: #9c9c9c;
  17402. }
  17403. .sysPic {
  17404. width: 200px;
  17405. height: 115px;
  17406. margin: 0 20px 20px 0;
  17407. cursor: pointer;
  17408. }
  17409. .sysPic > img,
  17410. .isSysPic > img,
  17411. .deletePic > img {
  17412. width: 100%;
  17413. height: 100%;
  17414. object-fit: cover;
  17415. }
  17416. .isSysPic {
  17417. width: 200px;
  17418. height: 115px;
  17419. position: relative;
  17420. }
  17421. .deletePic {
  17422. width: 20px;
  17423. height: 20px;
  17424. position: absolute;
  17425. top: 0;
  17426. right: 0;
  17427. cursor: pointer;
  17428. }
  17429. .select_box1 {
  17430. height: 100%;
  17431. }
  17432. .select_box1_img {
  17433. background: #fff;
  17434. border-radius: 5px;
  17435. padding: 15px;
  17436. box-sizing: border-box;
  17437. margin-bottom: 20px;
  17438. }
  17439. .select_box1_title {
  17440. padding: 0 0 15px 0;
  17441. border-bottom: 1px solid #eee;
  17442. margin-bottom: 15px;
  17443. }
  17444. .select_box1_title span:nth-child(1) {
  17445. font-size: 16px;
  17446. margin-right: 20px;
  17447. color: #000;
  17448. }
  17449. .select_box1_title span:nth-child(2) {
  17450. font-size: 14px;
  17451. color: rgb(112, 112, 112);
  17452. }
  17453. .select_box1_add_img {
  17454. }
  17455. .select_box1_select {
  17456. background: #fff;
  17457. border-radius: 5px;
  17458. padding: 15px;
  17459. box-sizing: border-box;
  17460. height: calc(100% - 200px);
  17461. overflow: auto;
  17462. }
  17463. .select_box2 {
  17464. height: 100%;
  17465. }
  17466. .select_box2_title {
  17467. background: #fff;
  17468. border-radius: 5px;
  17469. padding: 5px 10px;
  17470. box-sizing: border-box;
  17471. margin-bottom: 10px;
  17472. }
  17473. .select_box2_box {
  17474. display: flex;
  17475. height: calc(100% - 30px);
  17476. }
  17477. .select_box2_img {
  17478. width: calc(100% - 310px);
  17479. height: 100%;
  17480. overflow: auto;
  17481. background: #fff;
  17482. border-radius: 5px;
  17483. }
  17484. .select_box2_img img {
  17485. width: 100%;
  17486. }
  17487. .select_box2_answer {
  17488. background: #fff;
  17489. margin-left: 10px;
  17490. border-radius: 5px;
  17491. width: 300px;
  17492. overflow: auto;
  17493. height: 100%;
  17494. display: flex;
  17495. flex-direction: column;
  17496. align-items: center;
  17497. padding-top: 10px;
  17498. box-sizing: border-box;
  17499. }
  17500. .select_box2_answer_box {
  17501. margin: 0 0 10px 0;
  17502. width: 85%;
  17503. }
  17504. .rate_textarea {
  17505. font: inherit;
  17506. color: currentColor;
  17507. width: 100%;
  17508. padding: 8px 14px;
  17509. display: block;
  17510. min-width: 0;
  17511. outline: none;
  17512. border: 1px solid rgba(0, 0, 0, 0.23);
  17513. border-radius: 4px;
  17514. box-sizing: border-box;
  17515. background: #fff;
  17516. margin: 0 20px 0 0;
  17517. resize: none;
  17518. }
  17519. .select_answer_title {
  17520. text-align: left;
  17521. width: 85%;
  17522. margin-bottom: 10px;
  17523. font-size: 18px;
  17524. color: #8e8e8e;
  17525. }
  17526. .mask {
  17527. background-color: rgb(0 0 0 / 30%);
  17528. /* position: fixed; */
  17529. position: absolute;
  17530. top: 0;
  17531. left: 0;
  17532. width: 100%;
  17533. height: 100%;
  17534. z-index: 90;
  17535. display: flex;
  17536. align-items: center;
  17537. justify-content: center;
  17538. }
  17539. .progressBox {
  17540. width: 300px;
  17541. height: 150px;
  17542. background: #fff;
  17543. border-radius: 10px;
  17544. box-shadow: 0 0 6px 1px #bfbfbf;
  17545. display: flex;
  17546. align-items: center;
  17547. justify-content: center;
  17548. flex-direction: column;
  17549. position: relative;
  17550. color: #6c6c6c;
  17551. }
  17552. .progressBox >>> .el-progress-bar__outer {
  17553. background-color: #d1dfff !important;
  17554. }
  17555. .progressBox .lbox {
  17556. height: 50px;
  17557. font-size: 19px;
  17558. display: flex;
  17559. align-items: center;
  17560. color: #747474;
  17561. }
  17562. .progressBox .lbox img {
  17563. width: 40px;
  17564. margin-right: 20px;
  17565. }
  17566. .closeCss {
  17567. position: absolute;
  17568. top: 8px;
  17569. right: 8px;
  17570. cursor: pointer;
  17571. width: 20px;
  17572. height: 20px;
  17573. }
  17574. .closeCss > img {
  17575. width: 100%;
  17576. height: 100%;
  17577. }
  17578. .updateTips::before {
  17579. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  17580. font-size: 14px;
  17581. margin-left: 20px;
  17582. font-weight: 400;
  17583. color: #ff3a3a;
  17584. margin-bottom: 10px;
  17585. display: block;
  17586. }
  17587. .updateMask {
  17588. width: 100%;
  17589. z-index: 3;
  17590. top: 0;
  17591. position: absolute;
  17592. /* background-color: rgba(0,0,0,.3); */
  17593. }
  17594. .t_j_box {
  17595. display: flex;
  17596. }
  17597. .t_j_box span:nth-child(1) {
  17598. width: 15%;
  17599. overflow: hidden;
  17600. margin-right: 10px;
  17601. text-overflow: ellipsis;
  17602. white-space: nowrap;
  17603. }
  17604. .t_j_box span:nth-child(2) {
  17605. width: 30%;
  17606. overflow: hidden;
  17607. text-overflow: ellipsis;
  17608. margin-right: 10px;
  17609. }
  17610. .t_j_box span:nth-child(3) {
  17611. max-width: calc(55% - 20px);
  17612. overflow: hidden;
  17613. text-overflow: ellipsis;
  17614. }
  17615. .sentenBox {
  17616. background: #fff;
  17617. height: 600px;
  17618. overflow: auto;
  17619. background-image: url("../../../assets/icon/conSentences/csBg.png");
  17620. background-position: 102%;
  17621. background-repeat: no-repeat;
  17622. background-size: 60%;
  17623. }
  17624. .sentenBox > .sentenContent {
  17625. padding-bottom: 10px;
  17626. width: 97%;
  17627. margin: 0 auto;
  17628. }
  17629. .sentenBox > .sentenContent + .sentenContent {
  17630. border-top: 1px solid #cbcbcb;
  17631. }
  17632. .addSen {
  17633. background: #409efe;
  17634. width: 90px;
  17635. color: #fff;
  17636. height: 35px;
  17637. text-align: center;
  17638. line-height: 35px;
  17639. border-radius: 5px;
  17640. float: right;
  17641. margin: 10px 20px 0 0;
  17642. cursor: pointer;
  17643. }
  17644. .sentenTop {
  17645. display: flex;
  17646. flex-direction: row;
  17647. flex-wrap: nowrap;
  17648. align-items: center;
  17649. }
  17650. .sentenTop::before {
  17651. content: attr(index);
  17652. background: #3681fc;
  17653. border-radius: 50%;
  17654. color: #fff;
  17655. width: 25px;
  17656. height: 25px;
  17657. min-width: 25px;
  17658. min-height: 25px;
  17659. text-align: center;
  17660. line-height: 25px;
  17661. margin-right: 5px;
  17662. }
  17663. .sentenTop > div:nth-child(2) {
  17664. width: 300px;
  17665. margin: 0 15px;
  17666. }
  17667. .sentenTop > div:nth-child(3) {
  17668. background: #409efe;
  17669. color: #fff;
  17670. width: 65px;
  17671. height: 35px;
  17672. text-align: center;
  17673. line-height: 35px;
  17674. border-radius: 5px;
  17675. cursor: pointer;
  17676. }
  17677. .cardList {
  17678. padding: 30px 0 20px 0;
  17679. display: flex;
  17680. flex-direction: row;
  17681. flex-wrap: wrap;
  17682. align-items: center;
  17683. box-sizing: border-box;
  17684. border-bottom: 1px solid #f4f4f4;
  17685. width: 98%;
  17686. margin: 0 auto;
  17687. }
  17688. .rightCardList {
  17689. display: flex;
  17690. flex-wrap: wrap;
  17691. }
  17692. .cardBox {
  17693. display: flex;
  17694. flex-direction: row;
  17695. flex-wrap: wrap;
  17696. align-items: center;
  17697. align-content: center;
  17698. }
  17699. .isCard,
  17700. .isCard1 {
  17701. width: auto;
  17702. padding: 0 20px;
  17703. height: 65px;
  17704. text-align: center;
  17705. line-height: 65px;
  17706. font-size: 14px;
  17707. cursor: pointer;
  17708. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  17709. background-size: 100% 100%;
  17710. position: relative;
  17711. z-index: 99;
  17712. }
  17713. .isCard1 {
  17714. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  17715. }
  17716. .isCard:hover .deleteWord {
  17717. display: block;
  17718. }
  17719. .isCard > div:nth-child(1),
  17720. .isCard1 > div:nth-child(1) {
  17721. white-space: nowrap;
  17722. overflow: hidden;
  17723. text-overflow: ellipsis;
  17724. width: 100%;
  17725. margin: 0 auto;
  17726. }
  17727. .card {
  17728. width: 140px;
  17729. height: 65px;
  17730. }
  17731. .card > img {
  17732. width: 100%;
  17733. height: 100%;
  17734. }
  17735. .rightCardBox {
  17736. width: 98%;
  17737. margin: 10px auto 0;
  17738. }
  17739. .rightCardBox > div:nth-child(1) {
  17740. margin-bottom: 10px;
  17741. }
  17742. .cardCss {
  17743. display: flex;
  17744. flex-direction: column;
  17745. flex-wrap: nowrap;
  17746. align-items: center;
  17747. border-bottom: 3px solid #b4c3d3;
  17748. padding: 0 0 5px 0;
  17749. /* margin-right: 10px; */
  17750. }
  17751. .cardCss > div:nth-child(2) {
  17752. background: #5b7b9d;
  17753. color: #fff;
  17754. width: 20px;
  17755. height: 20px;
  17756. border-radius: 50%;
  17757. text-align: center;
  17758. line-height: 20px;
  17759. }
  17760. .sentenTopBox {
  17761. display: flex;
  17762. flex-direction: row;
  17763. flex-wrap: nowrap;
  17764. align-items: center;
  17765. justify-content: space-between;
  17766. padding: 55px 0 0 20px;
  17767. box-sizing: border-box;
  17768. width: 85%;
  17769. }
  17770. .stepsBottom {
  17771. width: 100%;
  17772. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17773. background: #fff;
  17774. border-radius: 10px;
  17775. overflow: hidden;
  17776. height: 100%;
  17777. height: calc(100vh - 300px);
  17778. position: sticky;
  17779. top: 0;
  17780. }
  17781. .navTop {
  17782. background: #53749b;
  17783. color: #fff;
  17784. height: 40px;
  17785. line-height: 40px;
  17786. padding-left: 15px;
  17787. font-size: 18px;
  17788. }
  17789. .navBottom {
  17790. /* background: #6b91b7; */
  17791. height: 100%;
  17792. overflow: auto;
  17793. padding: 10px 0;
  17794. box-sizing: border-box;
  17795. }
  17796. .navStage {
  17797. display: flex;
  17798. flex-direction: row;
  17799. flex-wrap: nowrap;
  17800. align-items: center;
  17801. padding: 10px 10px 10px 0;
  17802. cursor: pointer;
  17803. background: #ffffff;
  17804. width: 95%;
  17805. margin: 5px auto 5px;
  17806. box-sizing: border-box;
  17807. border-radius: 5px;
  17808. flex-wrap: wrap;
  17809. position: relative;
  17810. }
  17811. .navStage:hover > .chapter_upload_drag {
  17812. display: block;
  17813. }
  17814. .navTask:hover > .chapter_upload_drag {
  17815. display: block;
  17816. }
  17817. .chapter_upload:hover > .chapter_upload_drag {
  17818. display: block;
  17819. }
  17820. .navStage::before {
  17821. content: "";
  17822. display: block;
  17823. width: 16px;
  17824. height: 16px;
  17825. background-image: url(../../../assets/icon/new/icon_stage.png);
  17826. background-size: 100%;
  17827. margin-left: 25px;
  17828. }
  17829. .navStage .chapter_unit_open {
  17830. content: "";
  17831. display: block;
  17832. width: 16px;
  17833. height: 16px;
  17834. background-image: url(../../../assets/icon/new/down.png);
  17835. transform: rotate(-90deg);
  17836. background-size: 100%;
  17837. margin-left: 10px;
  17838. transition: all 0.5s;
  17839. }
  17840. .isNavStageOpen .chapter_unit_open {
  17841. transform: rotate(0deg);
  17842. }
  17843. .isNavStage {
  17844. background: #0061ff;
  17845. }
  17846. .isNavStage::before {
  17847. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  17848. }
  17849. .isNavStage .chapter_unit_open {
  17850. background-image: url(../../../assets/icon/new/downC.png);
  17851. }
  17852. .isNavStage .nt_taskName {
  17853. font-weight: bold !important;
  17854. color: #ffffff !important;
  17855. }
  17856. .isNavStage .nt_taskTitle {
  17857. font-weight: bold !important;
  17858. color: #fff !important;
  17859. }
  17860. .navStage .nt_taskBox {
  17861. width: calc(100% - 68px);
  17862. padding: 0 0 0 5px;
  17863. box-sizing: border-box;
  17864. box-sizing: border-box;
  17865. display: flex;
  17866. flex-direction: row;
  17867. flex-wrap: nowrap;
  17868. align-items: baseline;
  17869. }
  17870. .navStage .nt_taskTitle {
  17871. color: #060e17;
  17872. line-height: 25px;
  17873. font-size: 16px;
  17874. }
  17875. .navStage .nt_taskName {
  17876. max-width: calc(100% - 82px);
  17877. white-space: nowrap;
  17878. overflow: hidden;
  17879. text-overflow: ellipsis;
  17880. font-size: 16px;
  17881. color: #060e17;
  17882. }
  17883. .navTask {
  17884. display: flex;
  17885. flex-direction: row;
  17886. flex-wrap: nowrap;
  17887. align-items: center;
  17888. padding: 10px 10px 10px 0;
  17889. cursor: pointer;
  17890. background: #ffffff;
  17891. width: 95%;
  17892. margin: 5px auto 5px;
  17893. box-sizing: border-box;
  17894. border-radius: 5px;
  17895. flex-wrap: wrap;
  17896. position: relative;
  17897. }
  17898. .navTask .chapter_upload_open {
  17899. content: "";
  17900. display: block;
  17901. width: 16px;
  17902. height: 16px;
  17903. background-image: url(../../../assets/icon/new/icon_arrow.png);
  17904. background-size: 100%;
  17905. margin-left: 23px;
  17906. }
  17907. .noImage .chapter_upload_open {
  17908. display: none;
  17909. background-image: unset !important;
  17910. }
  17911. .isNavOpen .chapter_upload_open {
  17912. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  17913. transform: rotate(90deg);
  17914. }
  17915. .isNavTask .chapter_upload_open {
  17916. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  17917. transform: rotate(-90deg);
  17918. }
  17919. .isNavTask.isNavOpen .chapter_upload_open {
  17920. transform: rotate(0deg);
  17921. }
  17922. .dragOverTop {
  17923. border-top: 2px solid #0061ff !important;
  17924. border-radius: 0 !important;
  17925. margin-top: 10px;
  17926. }
  17927. .dragOverBottom {
  17928. border-bottom: 2px solid #0061ff !important;
  17929. border-radius: 0 !important;
  17930. margin-top: 10px;
  17931. }
  17932. .dragOverTop2 {
  17933. border-top: 2px solid #0061ff !important;
  17934. border-radius: 0 !important;
  17935. }
  17936. .dragOverBottom2 {
  17937. border-bottom: 2px solid #0061ff !important;
  17938. border-radius: 0 !important;
  17939. }
  17940. .isNavTask {
  17941. /* background: #3681FC; */
  17942. background: #eef3fb;
  17943. }
  17944. .isNavTask > .chapter_upload_drag {
  17945. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  17946. }
  17947. .isNavTask .nt_taskName {
  17948. /* color: #fff !important; */
  17949. font-weight: bold !important;
  17950. color: #0061ff !important;
  17951. }
  17952. .isNavTask .nt_taskTitle {
  17953. /* color: #AECCFE !important; */
  17954. font-weight: bold !important;
  17955. color: #0061ff !important;
  17956. }
  17957. .navTask .nt_taskBox {
  17958. width: calc(100% - 40px);
  17959. padding: 0 0 0 5px;
  17960. box-sizing: border-box;
  17961. box-sizing: border-box;
  17962. display: flex;
  17963. flex-direction: row;
  17964. flex-wrap: nowrap;
  17965. align-items: baseline;
  17966. }
  17967. .navTask .nt_taskTitle {
  17968. /* color: #717C8D; */
  17969. color: #060e17;
  17970. line-height: 25px;
  17971. font-size: 16px;
  17972. /* min-width: 66px; */
  17973. }
  17974. .navTask .nt_taskName {
  17975. /* color: #fff; */
  17976. /* max-width: 130px; */
  17977. /* width: 100%; */
  17978. max-width: calc(100% - 66px);
  17979. font-size: 16px;
  17980. color: #060e17;
  17981. /* color: #0E1E33; */
  17982. }
  17983. .navTask .nt_taskName span {
  17984. width: 100%;
  17985. white-space: nowrap;
  17986. overflow: hidden;
  17987. text-overflow: ellipsis;
  17988. display: block;
  17989. }
  17990. .gjBox {
  17991. width: calc(100% - 25px);
  17992. padding: 0 0 0 0;
  17993. box-sizing: border-box;
  17994. border-left: 1px solid #cad1dc;
  17995. margin-left: 25px;
  17996. }
  17997. .gjBox > div {
  17998. display: flex;
  17999. align-items: center;
  18000. }
  18001. .gjBox > div::before {
  18002. content: "";
  18003. height: 1px;
  18004. width: 10px;
  18005. background: #cad1dc;
  18006. display: block;
  18007. margin-right: 5px;
  18008. }
  18009. .gjCss {
  18010. display: flex;
  18011. flex-direction: row;
  18012. flex-wrap: nowrap;
  18013. align-items: center;
  18014. padding: 15px 0;
  18015. box-sizing: border-box;
  18016. font-size: 14px;
  18017. cursor: pointer;
  18018. }
  18019. .isGjCss {
  18020. color: #0061ff;
  18021. }
  18022. .groupBox {
  18023. }
  18024. .groupContent + .groupContent {
  18025. margin-top: 30px;
  18026. }
  18027. .groupTitle {
  18028. font-size: 24px;
  18029. color: rgb(80, 80, 80);
  18030. margin-bottom: 20px;
  18031. }
  18032. .groupName {
  18033. display: flex;
  18034. align-items: center;
  18035. }
  18036. .groupn {
  18037. font-size: 15px;
  18038. margin-right: 10px;
  18039. }
  18040. .groupName + .groupName {
  18041. margin-top: 15px;
  18042. }
  18043. .groupBtn {
  18044. margin-left: 10px;
  18045. }
  18046. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  18047. text-align: left;
  18048. }
  18049. .radioBox > div {
  18050. margin: 10px 0 0 10px;
  18051. }
  18052. .radioBox >>> .el-radio__input,
  18053. .radioBox >>> .el-checkbox__inner {
  18054. margin-left: 10px;
  18055. }
  18056. .radioBox >>> .el-radio__label,
  18057. .radioBox >>> .el-checkbox__label {
  18058. display: flex;
  18059. align-items: center;
  18060. }
  18061. .inImg {
  18062. width: 50px;
  18063. }
  18064. .inImg > img {
  18065. width: 100%;
  18066. height: 100%;
  18067. object-fit: cover;
  18068. }
  18069. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  18070. height: auto;
  18071. padding: 10px;
  18072. margin: 0;
  18073. }
  18074. .upCss >>> .el-upload-list {
  18075. width: 100%;
  18076. }
  18077. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  18078. width: 100%;
  18079. height: 120px;
  18080. object-fit: contain;
  18081. background: unset;
  18082. margin-left: 0;
  18083. }
  18084. .upCss
  18085. >>> .el-upload-list--picture
  18086. .el-upload-list__item.is-success
  18087. .el-upload-list__item-name {
  18088. display: none;
  18089. }
  18090. .tcMember + .tcMember::before {
  18091. content: "、";
  18092. }
  18093. .xzUpImg {
  18094. width: 25px;
  18095. height: 25px;
  18096. min-width: 25px;
  18097. min-height: 25px;
  18098. cursor: pointer;
  18099. margin: 0 10px;
  18100. }
  18101. .xzUpImg > img {
  18102. width: 100%;
  18103. height: 100%;
  18104. }
  18105. .closeCss {
  18106. position: absolute;
  18107. top: 8px;
  18108. right: 8px;
  18109. cursor: pointer;
  18110. width: 20px;
  18111. height: 20px;
  18112. }
  18113. .closeCss > img {
  18114. width: 100%;
  18115. height: 100%;
  18116. }
  18117. .moveBtn {
  18118. display: flex;
  18119. flex-direction: row;
  18120. flex-wrap: nowrap;
  18121. align-items: center;
  18122. width: 55px;
  18123. }
  18124. .timuUpImg {
  18125. display: flex;
  18126. flex-direction: row;
  18127. align-items: center;
  18128. width: 100%;
  18129. margin-right: 10px;
  18130. }
  18131. .timuUpImg > div:nth-child(1) {
  18132. margin-right: 10px;
  18133. display: flex;
  18134. align-items: center;
  18135. width: 100%;
  18136. }
  18137. .timuImgBox {
  18138. margin: 10px 0;
  18139. display: flex;
  18140. flex-direction: column;
  18141. flex-wrap: wrap;
  18142. align-items: flex-start;
  18143. }
  18144. .timuImg {
  18145. width: 100px;
  18146. margin: 5px 0;
  18147. cursor: pointer;
  18148. position: relative;
  18149. }
  18150. .timuImg:hover .deleteWord {
  18151. display: block;
  18152. }
  18153. .deleteWord {
  18154. width: 25px;
  18155. height: 25px;
  18156. position: absolute;
  18157. right: -5px;
  18158. top: -5px;
  18159. cursor: pointer;
  18160. display: none;
  18161. }
  18162. .timuImg > img,
  18163. .deleteWord > img {
  18164. width: 100%;
  18165. height: 100%;
  18166. object-fit: cover;
  18167. }
  18168. .e_add_delete {
  18169. cursor: pointer;
  18170. margin-left: 10px;
  18171. }
  18172. .pType_box {
  18173. margin-top: 30px;
  18174. align-items: flex-end;
  18175. }
  18176. .noneBox {
  18177. height: 200px;
  18178. width: 100%;
  18179. display: flex;
  18180. align-items: center;
  18181. justify-content: center;
  18182. flex-direction: column;
  18183. /* margin-top: 150px; */
  18184. }
  18185. .noneBox > img {
  18186. width: 95px;
  18187. }
  18188. .noneBox > span {
  18189. margin-top: 10px;
  18190. color: #717c8d;
  18191. }
  18192. .rb_c_box {
  18193. width: 100%;
  18194. /* height: 100%; */
  18195. display: flex;
  18196. /* padding: 20px; */
  18197. box-sizing: border-box;
  18198. justify-content: space-between;
  18199. margin-top: 10px;
  18200. }
  18201. .rb_c_box_left {
  18202. /* min-height: 500px; */
  18203. /* background: #fff; */
  18204. width: 270px;
  18205. min-width: 270px;
  18206. border-radius: 8px;
  18207. margin-right: 10px;
  18208. /* position: sticky; */
  18209. }
  18210. .rb_c_box_right {
  18211. height: auto;
  18212. width: calc(100% - 280px);
  18213. /* overflow: hidden; */
  18214. }
  18215. .rb_c_box_btn {
  18216. display: flex;
  18217. justify-content: flex-start;
  18218. height: 50px;
  18219. align-items: center;
  18220. }
  18221. .rb_c_box_right > .basic_box {
  18222. /* background: #fff; */
  18223. border-radius: 0;
  18224. /* height: calc(100% - 0px); */
  18225. /* overflow: auto; */
  18226. padding: 0;
  18227. }
  18228. .textarea_css {
  18229. display: block;
  18230. resize: none;
  18231. padding: 10px 15px;
  18232. line-height: 1.5;
  18233. box-sizing: border-box;
  18234. width: 100%;
  18235. font-size: 14px;
  18236. color: #606266;
  18237. background-color: #fff;
  18238. background-image: none;
  18239. border: 1px solid #dcdfe6;
  18240. border-radius: 4px;
  18241. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  18242. outline: none;
  18243. overflow: hidden;
  18244. height: 46px;
  18245. font-family: "Microsoft YaHei";
  18246. }
  18247. .textarea_css::-webkit-input-placeholder {
  18248. color: #c0c4cc;
  18249. }
  18250. .textarea_css:focus {
  18251. border-color: #409eff;
  18252. outline: 0;
  18253. }
  18254. .addEditor >>> .text {
  18255. height: auto;
  18256. min-height: 200px;
  18257. }
  18258. .addEditor >>> .w-e-text-container {
  18259. min-height: 100px;
  18260. }
  18261. .moveBtn2 {
  18262. flex-direction: column;
  18263. width: fit-content;
  18264. margin: 0 10px 0 10px;
  18265. }
  18266. .moveBtn2 .chapter_upload_down,
  18267. .moveBtn2 .chapter_upload_up {
  18268. width: 16px;
  18269. height: 16px;
  18270. }
  18271. .moveBtn2 .chapter_upload_up::after,
  18272. .moveBtn2 .chapter_upload_down::after {
  18273. width: 10px;
  18274. height: 10px;
  18275. }
  18276. .fullStyle >>> .el-dialog__body {
  18277. height: calc(100% - 125px) !important;
  18278. box-sizing: border-box;
  18279. }
  18280. .fullStyle1 >>> .el-dialog__body {
  18281. height: auto !important;
  18282. }
  18283. .fullStyle >>> .el-dialog {
  18284. width: 100% !important;
  18285. max-width: 100% !important;
  18286. height: 100% !important;
  18287. margin: 0 !important;
  18288. }
  18289. .fullStyle {
  18290. width: 100% !important;
  18291. max-width: 100% !important;
  18292. height: 100% !important;
  18293. margin: 0 auto !important;
  18294. }
  18295. .wb_j_box_btn {
  18296. width: calc(100% - 30px);
  18297. display: flex;
  18298. height: 40px;
  18299. border: 1.5px solid #cad1dc;
  18300. border-radius: 4px;
  18301. box-sizing: border-box;
  18302. align-items: center;
  18303. font-size: 14px;
  18304. cursor: pointer;
  18305. overflow: hidden;
  18306. }
  18307. .wb_j_box_btn:hover {
  18308. border: 1.5px solid #0061ff;
  18309. }
  18310. .wb_j_box_title {
  18311. background: #f0f4fa;
  18312. height: 100%;
  18313. line-height: 40px;
  18314. /* width: 105px; */
  18315. min-width: 115px;
  18316. text-align: center;
  18317. color: #060e17;
  18318. border-right: 1.5px solid #cad1dc;
  18319. box-sizing: border-box;
  18320. }
  18321. .wb_j_box_btn_c {
  18322. width: calc(100% - 90px);
  18323. padding: 0 35px 0 10px;
  18324. box-sizing: border-box;
  18325. position: relative;
  18326. }
  18327. .wb_j_box_span {
  18328. width: 100%;
  18329. overflow: hidden;
  18330. white-space: nowrap;
  18331. text-overflow: ellipsis;
  18332. word-wrap: break-word;
  18333. color: #717c8d;
  18334. }
  18335. .wb_j_box_arrow {
  18336. content: "";
  18337. width: 14px;
  18338. height: 14px;
  18339. background: url(../../../assets/icon/new/u_arrow.png);
  18340. background-size: 100% 100%;
  18341. position: absolute;
  18342. right: 12px;
  18343. top: 50%;
  18344. transform: translateY(-50%);
  18345. }
  18346. .check_classBox {
  18347. height: 400px;
  18348. display: flex;
  18349. border-top: 1.5px solid #e7ebf1;
  18350. border-bottom: 1.5px solid #e7ebf1;
  18351. }
  18352. .check_class_right {
  18353. width: 130px;
  18354. border-right: 1px solid #e7ebf1;
  18355. display: flex;
  18356. align-items: center;
  18357. flex-direction: column;
  18358. height: 100%;
  18359. overflow: auto;
  18360. padding: 15px 0;
  18361. box-sizing: border-box;
  18362. }
  18363. .check_class {
  18364. width: 85%;
  18365. border-radius: 5px;
  18366. height: 30px;
  18367. min-height: 30px;
  18368. line-height: 30px;
  18369. text-align: center;
  18370. padding: 0 10px;
  18371. box-sizing: border-box;
  18372. cursor: pointer;
  18373. white-space: nowrap;
  18374. overflow: hidden;
  18375. text-overflow: ellipsis;
  18376. }
  18377. .check_class.activeX {
  18378. background: #e0eafb;
  18379. color: #3681fc;
  18380. font-weight: 700;
  18381. }
  18382. .check_class + .check_class {
  18383. margin-top: 15px;
  18384. }
  18385. .check_class_left {
  18386. background: #fafafa;
  18387. width: calc(100% - 130px);
  18388. padding: 15px;
  18389. box-sizing: border-box;
  18390. }
  18391. .check_class_all_box {
  18392. display: flex;
  18393. margin-bottom: 10px;
  18394. }
  18395. .all_check {
  18396. display: flex;
  18397. align-items: center;
  18398. padding: 2px 0 0;
  18399. margin-left: 10px;
  18400. }
  18401. .all_check >>> .el-checkbox__label {
  18402. line-height: 18px;
  18403. }
  18404. .check_class_left_title {
  18405. font-size: 16px;
  18406. font-weight: 700;
  18407. }
  18408. .check_class_item {
  18409. display: flex;
  18410. flex-wrap: wrap;
  18411. height: calc(100% - 45px);
  18412. overflow: auto;
  18413. justify-content: flex-start;
  18414. align-items: flex-start;
  18415. align-content: flex-start;
  18416. }
  18417. .class_item:first-child {
  18418. /* margin: 0 15px 15px 67px; */
  18419. }
  18420. .class_item {
  18421. margin: 0 15px 15px 0;
  18422. }
  18423. .class_item:hover >>> .el-checkbox__label {
  18424. color: #409eff;
  18425. }
  18426. .class_item >>> .el-checkbox__label {
  18427. color: #0e1e33;
  18428. }
  18429. .class_item:hover >>> .el-checkbox__inner {
  18430. border-color: #409eff;
  18431. }
  18432. .class_item >>> .el-checkbox,
  18433. .class_item >>> .el-checkbox__input {
  18434. display: flex;
  18435. align-items: center;
  18436. }
  18437. .taskTitle {
  18438. font-size: 20px;
  18439. font-weight: bold;
  18440. margin-bottom: 35px;
  18441. }
  18442. .taskTitle:after {
  18443. content: "";
  18444. width: 100%;
  18445. display: block;
  18446. height: 1px;
  18447. background: #cad1dc;
  18448. position: absolute;
  18449. left: 0;
  18450. margin: 15px 0 0;
  18451. }
  18452. .eva_btn_box {
  18453. margin: 20px 0px 0 0;
  18454. display: flex;
  18455. flex-direction: row;
  18456. flex-wrap: nowrap;
  18457. align-items: center;
  18458. justify-content: space-between;
  18459. width: 100%;
  18460. }
  18461. .eva_btn_left_box {
  18462. display: flex;
  18463. flex-direction: row;
  18464. flex-wrap: nowrap;
  18465. align-items: center;
  18466. }
  18467. .addTypeChoose {
  18468. display: flex;
  18469. flex-direction: row;
  18470. flex-wrap: nowrap;
  18471. align-items: center;
  18472. margin: 15px 0;
  18473. }
  18474. .addTypeBox {
  18475. display: flex;
  18476. flex-direction: column;
  18477. flex-wrap: nowrap;
  18478. align-items: center;
  18479. }
  18480. .addTypeChoose {
  18481. display: flex;
  18482. flex-direction: row;
  18483. flex-wrap: nowrap;
  18484. align-items: center;
  18485. margin: 15px 0;
  18486. }
  18487. .text_panel >>> .text{
  18488. height: 400px;
  18489. }
  18490. .Ovh{
  18491. width: 4em;
  18492. -webkit-line-clamp: 2;
  18493. text-align: center;
  18494. display: -webkit-box;
  18495. -webkit-box-orient: vertical;
  18496. overflow: hidden;
  18497. text-overflow: ellipsis;
  18498. }
  18499. </style>