addCourse.vue 619 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item
  9. :to="{
  10. path:
  11. '/course?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&role=' +
  18. role,
  19. }"
  20. >课程管理</el-breadcrumb-item
  21. >
  22. <el-breadcrumb-item>
  23. <span style="color: rgb(15, 126, 255)">添加课程</span>
  24. </el-breadcrumb-item>
  25. </el-breadcrumb>
  26. </div>
  27. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  28. </div>
  29. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  30. <div ref="stepBox" class="stepBox">
  31. <div class="stepBg" v-if="false">
  32. <div
  33. :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }"
  34. @mouseenter="stepDisplay(true)"
  35. @mouseleave="stepDisplay(false)"
  36. >
  37. <div
  38. v-if="steps > 0 && isStepDisplay"
  39. class="first"
  40. @click="navSteps(1)"
  41. >
  42. <div>
  43. <img src="../../../assets/icon/first.png" alt />
  44. </div>
  45. <div>填写基本信息</div>
  46. </div>
  47. <div
  48. v-else-if="isStepDisplay"
  49. class="firstNo"
  50. @click="navSteps(1)"
  51. >
  52. <div>
  53. <img src="../../../assets/icon/firstNo.png" alt />
  54. </div>
  55. <div>填写基本信息</div>
  56. </div>
  57. <div
  58. class="stepBorder"
  59. :class="{ 'border-active': steps > 1 }"
  60. v-if="cidType === 0 && isStepDisplay"
  61. ></div>
  62. <div
  63. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  64. class="second"
  65. @click="navSteps(2)"
  66. >
  67. <div style="margin: 5px 10px 0 0; width: 2rem">
  68. <img src="../../../assets/icon/second.png" alt />
  69. </div>
  70. <div>选择课程模板</div>
  71. </div>
  72. <div
  73. v-else-if="cidType === 0 && isStepDisplay"
  74. class="secondNo"
  75. @click="navSteps(2)"
  76. >
  77. <div>
  78. <img src="../../../assets/icon/secondNo.png" alt />
  79. </div>
  80. <div>选择课程模板</div>
  81. </div>
  82. <div
  83. v-if="isStepDisplay"
  84. class="stepBorder"
  85. :class="{ 'border-active': steps > 2 }"
  86. ></div>
  87. <div
  88. v-if="steps > 2 && isStepDisplay"
  89. class="third"
  90. @click="navSteps(3)"
  91. >
  92. <div>
  93. <img src="../../../assets/icon/third.png" alt />
  94. </div>
  95. <div>上传课程内容</div>
  96. </div>
  97. <div
  98. v-else-if="isStepDisplay"
  99. class="thirdNo"
  100. @click="navSteps(3)"
  101. >
  102. <div>
  103. <img src="../../../assets/icon/thirdNo.png" alt />
  104. </div>
  105. <div>上传课程内容</div>
  106. </div>
  107. <div
  108. v-if="isStepDisplay"
  109. class="stepBorder"
  110. :class="{ 'border-active': steps > 3 }"
  111. ></div>
  112. <div v-if="steps > 3 && isStepDisplay" class="four">
  113. <div>
  114. <img src="../../../assets/icon/four.png" alt />
  115. </div>
  116. <div>上传完成</div>
  117. </div>
  118. <div v-else-if="isStepDisplay" class="fourNo">
  119. <div>
  120. <img src="../../../assets/icon/fourNo.png" alt />
  121. </div>
  122. <div>上传完成</div>
  123. </div>
  124. </div>
  125. </div>
  126. <div
  127. class="rightBox"
  128. :key="updateKey"
  129. ref='scrollContainer'
  130. v-if="steps == 1"
  131. @mousewheel="scrollChange"
  132. style="padding: 0"
  133. :style="{
  134. height:
  135. !isStepDisplay && !isBtnDisplay
  136. ? 'calc(100% - 20px)'
  137. : 'calc(100% - 100px)',
  138. }"
  139. >
  140. <div
  141. class="updateMask"
  142. :style="{
  143. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  144. }"
  145. v-if="cid && userid != courseUserid && role != '1'"
  146. ></div>
  147. <div class="whiteBg" style="background: unset; padding: 0">
  148. <div>
  149. <div class="basic_box" style="padding: 0">
  150. <div class="big_box">
  151. <div class="left_first">
  152. <div
  153. :class="{
  154. updateTips:
  155. cid && userid != courseUserid && role != '1',
  156. }"
  157. >
  158. <div style="width: 100%">
  159. <div class="course_input_box">
  160. <div class="bb_courseIcon">
  161. <img src="../../../assets/icon/new/course.png" />
  162. </div>
  163. <input
  164. type="text"
  165. placeholder="请输入课程名称"
  166. class="binfo_input"
  167. v-model="courseName"
  168. style="
  169. border: 1.5px solid rgb(202, 209, 220);
  170. margin: 0px 10px 0px 0px;
  171. border-radius: 5px;
  172. font-weight: 600;
  173. padding: 12px 14px 12px 71px;
  174. "
  175. />
  176. <el-switch
  177. v-model="highSetting"
  178. active-text="高级设置"
  179. style="justify-content: center; width: 200px"
  180. ></el-switch>
  181. <el-switch
  182. v-model="isTeacherSee"
  183. active-text="是否公开此课程"
  184. style="justify-content: center; width: 200px"
  185. ></el-switch>
  186. </div>
  187. </div>
  188. </div>
  189. <div
  190. class="pType_box all_choose"
  191. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  192. >
  193. <span>类型</span>
  194. <!-- 学科+ 主题+ 未来+ -->
  195. <el-radio-group
  196. @change="CourseType2Change"
  197. v-model="pTypeCheckName"
  198. style="display: flex; align-items: center"
  199. >
  200. <div
  201. class="all_choose"
  202. style="width: 100px"
  203. v-for="(item, index) in CourseType2"
  204. :key="index"
  205. >
  206. <el-radio :label="item.name">{{
  207. item.name
  208. }}</el-radio>
  209. </div>
  210. </el-radio-group>
  211. </div>
  212. <div class="both">
  213. <div class="choose">
  214. <div
  215. class="all_choose"
  216. v-for="(item, index) in CourseType[0]"
  217. :key="index"
  218. >
  219. <span
  220. v-if="
  221. CourseTypeJson[item.id].length > 0 &&
  222. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  223. ? pTypeCheck.indexOf(item.id) != -1
  224. : true)
  225. "
  226. >{{ item.name }}:</span
  227. >
  228. <el-checkbox-group
  229. v-model="courseTypeId"
  230. v-if="
  231. CourseTypeJson[item.id].length > 0 &&
  232. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  233. ? pTypeCheck.indexOf(item.id) != -1
  234. : true)
  235. "
  236. >
  237. <el-checkbox
  238. v-for="item1 in CourseTypeJson[item.id]"
  239. :key="item1.id"
  240. :label="item1.id"
  241. >{{ item1.name }}</el-checkbox
  242. >
  243. </el-checkbox-group>
  244. <!-- <div
  245. v-else
  246. style="font-size: 14px; margin-left: -8px"
  247. >
  248. 暂无
  249. </div> -->
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="right_first">
  255. <!-- <div class="ai_box">
  256. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  257. </div> -->
  258. <div
  259. class="c_info_title"
  260. style="padding: 0 0 15px; margin: 0 auto 0 0"
  261. >
  262. 上传封面
  263. </div>
  264. <div style="width: 100%">
  265. <div
  266. class="uploadFm"
  267. @click="choosePicVisible = true"
  268. :class="{ uploadFm2: cover.length }"
  269. >
  270. <img
  271. src="../../../assets/icon/addPoster.png"
  272. alt=""
  273. v-if="cover.length == 0"
  274. />
  275. <img
  276. :src="cover[0].url"
  277. alt=""
  278. class="cover_p"
  279. v-else
  280. />
  281. <div v-if="cover.length == 0">点击添加封面</div>
  282. <div class="cover_mask">
  283. <img
  284. src="../../../assets/icon/new/cover_update.png"
  285. /><span style="margin-top: 5px">修改封面</span>
  286. </div>
  287. </div>
  288. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  289. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  290. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  291. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  292. <i class="el-icon-plus"></i>
  293. </el-upload> -->
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="whiteBg" style="background: #fff; margin: 10px 0">
  301. <div class="whiteBg" style="border-radius: 0" :style="{paddingBottom: highSetting ? '0px' : '15px'}">
  302. <div class="c_info_title">课程权限设置</div>
  303. <div class="wb_j_box">
  304. <div class="wb_j_box_content">
  305. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  306. (dialogVisibleClass = true),
  307. (classSearch = ''),
  308. (gradeId = ''),
  309. getClass()
  310. ">添加班级</button>
  311. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  312. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  313. getClassC(tc) }}</span>
  314. </div> -->
  315. <div
  316. class="wb_j_box_btn"
  317. @click="
  318. (dialogVisibleClass = true),
  319. (classSearch = ''),
  320. (gradeId = ''),
  321. getClass()
  322. "
  323. >
  324. <div class="wb_j_box_title">授课班级</div>
  325. <div class="wb_j_box_btn_c">
  326. <el-tooltip
  327. effect="dark"
  328. :content="getListClassC(checkboxList2)"
  329. placement="top"
  330. v-if="checkboxList2.length"
  331. popper-class="text_tooltip2"
  332. >
  333. <div class="wb_j_box_span">
  334. {{ getListClassC(checkboxList2) }}
  335. </div>
  336. </el-tooltip>
  337. <div v-else class="wb_j_box_span">请选择授课班级</div>
  338. <div class="wb_j_box_arrow"></div>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="wb_j_box_content" v-if="highSetting">
  343. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  344. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  345. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  346. checkBoolean
  347. ? checkboxList3
  348. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  349. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  350. </div> -->
  351. <div class="wb_j_box_btn" @click="openMember">
  352. <div class="wb_j_box_title">协同人员</div>
  353. <div class="wb_j_box_btn_c">
  354. <el-tooltip
  355. effect="dark"
  356. :content="getListMan2(checkboxList3)"
  357. placement="top"
  358. v-if="checkboxList3.length"
  359. popper-class="text_tooltip2"
  360. >
  361. <div class="wb_j_box_span">
  362. {{ getListMan2(checkboxList3) }}
  363. </div>
  364. </el-tooltip>
  365. <div v-else class="wb_j_box_span">请选择协同人员</div>
  366. <div class="wb_j_box_arrow"></div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="highSetting">
  373. <div class="c_info_title">课程简要描述</div>
  374. <div
  375. style="width: 100%; padding: 0px 20px; box-sizing: border-box"
  376. >
  377. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  378. <textarea
  379. v-autoHeight="68"
  380. rows="2"
  381. class="binfo_input binfo_textarea"
  382. cols
  383. v-model="courseText"
  384. placeholder="请输入课程简要描述"
  385. ></textarea>
  386. </div>
  387. </div>
  388. </div>
  389. <div
  390. class="whiteBg"
  391. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  392. v-if="highSetting"
  393. >
  394. <div class="c_info_title">目标管理</div>
  395. <div style="margin: 0 auto; padding: 0 20px">
  396. <div
  397. style="
  398. width: 95%;
  399. min-height: 200px;
  400. border: 1px solid #cad1dc;
  401. border-radius: 4px;
  402. position: relative;
  403. "
  404. >
  405. <div class="e_add_top">
  406. <div class="e_add_title">
  407. <button
  408. class="c_pub_button_delete pub_btn_delete_img"
  409. @click="deleteEva()"
  410. v-if="evalua"
  411. >
  412. 清除
  413. </button>
  414. <button
  415. class="c_pub_button_confirm pub_btn_add_img2"
  416. @click="dialogVisiblemb = true"
  417. >
  418. 添加
  419. </button>
  420. <!-- <span>当前使用目标管理</span>
  421. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  422. <img
  423. src="../../../assets/line.png"
  424. class="cru_line"
  425. style="
  426. width: 125px;
  427. height: 20px;
  428. bottom: -10px;
  429. left: 155px;
  430. "
  431. /> -->
  432. </div>
  433. <div
  434. style="
  435. display: flex;
  436. flex-direction: row;
  437. align-items: center;
  438. "
  439. >
  440. <!-- <el-button
  441. type="primary"
  442. size="small"
  443. @click="dialogVisiblemb = true"
  444. >添加目标管理</el-button
  445. >
  446. <el-button
  447. type="primary"
  448. size="small"
  449. @click="deleteEva()"
  450. >清除内容</el-button
  451. > -->
  452. <!-- <div class="e_add_delete" @click="deleteEva()">
  453. <img src="../../../assets/icon/delete.png" alt="" />
  454. </div> -->
  455. </div>
  456. </div>
  457. <div v-if="evalua == ''">
  458. <div class="noneBox">
  459. <img src="../../../assets/icon/new/eva_none.png" />
  460. <span>请添加目标管理</span>
  461. </div>
  462. </div>
  463. <div class="e_add_content" v-else>
  464. <div class="e_add_list_pbox">
  465. <div class="e_add_list_pbox_title">
  466. <span class="type_title">切换模式</span>
  467. <div class="type_content">
  468. <span
  469. :class="{ active: typeMode == 1 }"
  470. @click="OtherMb(1)"
  471. >目标树</span
  472. >
  473. <span
  474. :class="{ active: typeMode == 2 }"
  475. @click="OtherMb(2)"
  476. >目标罗盘</span
  477. >
  478. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  479. </div>
  480. </div>
  481. <div class="e_add_list_pbox_content">
  482. <Mind
  483. :showBar="false"
  484. :mindData="data"
  485. v-if="typeMode == 1"
  486. ></Mind>
  487. <Sunburst
  488. :Josn="eJson"
  489. :num="eJSONNum"
  490. style="width: 100%"
  491. v-if="typeMode == 2"
  492. ></Sunburst>
  493. <SeeBoard
  494. :Josn="eJson"
  495. :num="eJSONNum"
  496. :ename="eTitle"
  497. style="width: 100%"
  498. v-if="typeMode == 3"
  499. >
  500. </SeeBoard>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. <div class="rb_c_box">
  509. <div
  510. class="rb_c_box_left"
  511. v-if="unitJson[unitIndex].easy != 1"
  512. >
  513. <div class="stepsBottom">
  514. <!-- <div class="navTop">辅助导航</div> -->
  515. <div class="navBottom" v-if="courseState == 2">
  516. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  517. <div class="nt_taskBox" style="width: 100%;">
  518. <div class="nt_taskTitle"
  519. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  520. unitIndex + 1 }}</div>
  521. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  522. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  523. <span>{{ unitJson[unitIndex].dyName }}</span>
  524. </el-tooltip>
  525. </div>
  526. </div>
  527. </div> -->
  528. <div
  529. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  530. .taskJson"
  531. :key="tIndex"
  532. :class="{
  533. dragOverTop:
  534. newIndex === tIndex &&
  535. typeIndex == 'task-' + tIndex &&
  536. oldIndex > tIndex &&
  537. dragType == 'task',
  538. dragOverBottom:
  539. newIndex === tIndex &&
  540. typeIndex == 'task-' + tIndex &&
  541. oldIndex < tIndex &&
  542. dragType == 'task',
  543. }"
  544. >
  545. <div
  546. @dragstart="dragTaskStart(t, tIndex, 0)"
  547. @dragover.prevent="dragTaskOver(tIndex, 0)"
  548. @dragend="dragTaskEnd()"
  549. :draggable="isdrag == 'task-' + tIndex"
  550. @click="goToTask(tIndex)"
  551. class="navTask"
  552. :class="{
  553. isNavTask:
  554. isClickColor > 0 && isClickColor == tIndex + 1,
  555. isNavOpen: t.toolOpen,
  556. }"
  557. >
  558. <div
  559. @click.stop="taskOpen(tIndex, 0)"
  560. class="chapter_upload_open"
  561. ></div>
  562. <div
  563. @mousedown="isdrag = 'task-' + tIndex"
  564. @mouseup="isdrag = ''"
  565. @touchstart="isdrag = 'task-' + tIndex"
  566. @touchend="isdrag = ''"
  567. style="left: 8px"
  568. class="chapter_upload_drag"
  569. ></div>
  570. <div class="nt_taskBox">
  571. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  572. <div class="nt_taskName">
  573. <el-tooltip
  574. effect="light"
  575. :content="t.task ? t.task : '未命名任务'"
  576. placement="top"
  577. >
  578. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  579. </el-tooltip>
  580. </div>
  581. </div>
  582. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  583. 1
  584. ">
  585. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  586. @click.stop="taskMove(1, tIndex)"></div>
  587. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  588. @click.stop="taskMove(2, tIndex)"></div>
  589. </div> -->
  590. </div>
  591. <div
  592. class="gjBox"
  593. v-if="t.toolChoose.length && t.toolOpen"
  594. >
  595. <div
  596. v-for="(tool, toolIndex2) in t.toolChoose"
  597. :key="toolIndex2"
  598. @click="jumpGj(tIndex, toolIndex2)"
  599. >
  600. <div
  601. class="gjCss"
  602. :class="{
  603. isGjCss:
  604. toolIndexType == `gj${tIndex}${toolIndex2}`,
  605. }"
  606. >
  607. <div>工具{{ toolIndex2 + 1 }}:</div>
  608. <div>
  609. {{
  610. toolsData[tool.tool[0]] &&
  611. toolsData[tool.tool[0]].name
  612. }}
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. <div class="navBottom" v-if="courseState == 1">
  620. <div
  621. v-for="(stage, stageIndex) in unitJson"
  622. :key="stageIndex"
  623. class="stageBox"
  624. :class="{
  625. dragOverTop:
  626. newIndex === stageIndex &&
  627. typeIndex == 'Unit-' + stageIndex &&
  628. oldIndex > stageIndex &&
  629. dragType == 'Unit',
  630. dragOverBottom:
  631. newIndex === stageIndex &&
  632. typeIndex == 'Unit-' + stageIndex &&
  633. oldIndex < stageIndex &&
  634. dragType == 'Unit',
  635. }"
  636. >
  637. <div
  638. @dragstart="dragUnitStart(stage, stageIndex)"
  639. @dragover.prevent="dragUnitOver(stageIndex)"
  640. @dragend="dragUnitEnd()"
  641. :draggable="isdrag == 'unit-' + stageIndex"
  642. @click="unitSet2(stageIndex)"
  643. class="navStage"
  644. :class="{
  645. isNavStage: stageIndex == unitIndex,
  646. isNavStageOpen: stage.toolOpen,
  647. }"
  648. >
  649. <div
  650. @mousedown="isdrag = 'unit-' + stageIndex"
  651. @mouseup="isdrag = ''"
  652. @touchstart="isdrag = 'unit-' + stageIndex"
  653. @touchend="isdrag = ''"
  654. style="left: 8px"
  655. class="chapter_upload_drag"
  656. ></div>
  657. <div class="nt_taskBox">
  658. <div class="nt_taskTitle">
  659. 第{{ stageIndex + 1 }}阶段:
  660. </div>
  661. <div class="nt_taskName">
  662. <el-tooltip
  663. effect="light"
  664. :content="
  665. stage.dyName ? stage.dyName : '未命名阶段'
  666. "
  667. placement="top"
  668. >
  669. <span>{{
  670. stage.dyName ? stage.dyName : "未命名阶段"
  671. }}</span>
  672. </el-tooltip>
  673. </div>
  674. </div>
  675. <div
  676. @click.stop="unitOpen(stageIndex)"
  677. class="chapter_unit_open"
  678. ></div>
  679. </div>
  680. <div
  681. v-for="(t, tIndex) in unitJson[stageIndex]
  682. .chapterInfo[0].taskJson"
  683. :key="`${stageIndex}-${tIndex}`"
  684. :class="{
  685. dragOverTop:
  686. newIndex === tIndex &&
  687. typeIndex == 'task-' + tIndex &&
  688. ((oldIndex > tIndex &&
  689. stageIndex == checkUnitIndex) ||
  690. (oldIndex == tIndex &&
  691. stageIndex == checkUnitIndex &&
  692. checkUnitIndex != oldUnitIndex)) &&
  693. dragType == 'task',
  694. dragOverBottom:
  695. newIndex === tIndex &&
  696. typeIndex == 'task-' + tIndex &&
  697. oldIndex < tIndex &&
  698. stageIndex == checkUnitIndex &&
  699. dragType == 'task',
  700. }"
  701. :style="{ display: stage.toolOpen ? 'block' : 'none' }"
  702. >
  703. <div
  704. @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  705. @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  706. @dragend="dragTaskEnd()"
  707. :draggable="
  708. isdrag == 'task-' + stageIndex + '-' + tIndex
  709. "
  710. @click="goToTask2(tIndex, stageIndex)"
  711. class="navTask"
  712. style="padding-left: 12px"
  713. :class="{
  714. isNavTask:
  715. isClickColor > 0 &&
  716. isClickColor == tIndex + 1 &&
  717. stageIndex == unitIndex,
  718. isNavOpen: t.toolOpen,
  719. }"
  720. >
  721. <div
  722. @click.stop="taskOpen(tIndex, stageIndex)"
  723. class="chapter_upload_open"
  724. ></div>
  725. <div
  726. @mousedown="
  727. isdrag = 'task-' + stageIndex + '-' + tIndex
  728. "
  729. @mouseup="isdrag = ''"
  730. @touchstart="
  731. isdrag = 'task-' + stageIndex + '-' + tIndex
  732. "
  733. @touchend="isdrag = ''"
  734. style="left: 20px"
  735. class="chapter_upload_drag"
  736. ></div>
  737. <div
  738. class="nt_taskBox"
  739. style="width: calc(100% - 52px)"
  740. >
  741. <div class="nt_taskTitle">
  742. 任务{{ tIndex + 1 }}:
  743. </div>
  744. <div class="nt_taskName">
  745. <el-tooltip
  746. effect="light"
  747. :content="t.task ? t.task : '未命名任务'"
  748. placement="top"
  749. >
  750. <span>{{
  751. t.task ? t.task : "未命名任务"
  752. }}</span>
  753. </el-tooltip>
  754. </div>
  755. </div>
  756. </div>
  757. <div
  758. class="gjBox"
  759. v-if="t.toolChoose.length && t.toolOpen"
  760. >
  761. <div
  762. v-for="(tool, toolIndex2) in t.toolChoose"
  763. :key="toolIndex2"
  764. @click="jumpGj2(tIndex, toolIndex2, stageIndex)"
  765. >
  766. <div
  767. class="gjCss"
  768. :class="{
  769. isGjCss:
  770. toolIndexType ==
  771. `gj${tIndex}${toolIndex2}${stageIndex}`,
  772. }"
  773. >
  774. <div>工具{{ toolIndex2 + 1 }}:</div>
  775. <div>
  776. {{
  777. toolsData[tool.tool[0]] &&
  778. toolsData[tool.tool[0]].name
  779. }}
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="rb_c_box_right">
  790. <!-- <div class="rb_c_box_btn">
  791. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  792. </div> -->
  793. <div class="basic_box" ref="unitBox">
  794. <div
  795. style="
  796. display: flex;
  797. flex-direction: row;
  798. align-items: center;
  799. position: sticky;
  800. top: 0;
  801. z-index: 99;
  802. width: 100%;
  803. padding: 0 20px 0 20px;
  804. box-sizing: border-box;
  805. background: #fff;
  806. border-radius: 8px;
  807. "
  808. >
  809. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  810. <div
  811. class="cru_selectBox"
  812. :style="{
  813. maxWidth: isPasteTask
  814. ? 'calc(100% - 335px)'
  815. : 'calc(100% - 190px)',
  816. }"
  817. v-if="courseState == 1"
  818. >
  819. <div
  820. v-for="(item, index) in unitJson"
  821. :key="index"
  822. class="cru_select"
  823. :class="unitIndex == index ? 'cru_selected' : ''"
  824. @click="unitSet(index)"
  825. >
  826. <!-- item.dyName ? item.dyName : -->
  827. <span
  828. v-if="
  829. unitJson[unitJson.length - 1].easy == 4 ||
  830. unitJson[unitJson.length - 1].easy == 6
  831. "
  832. >{{
  833. item.dyName
  834. ? item.dyName
  835. : "第" + (index + 1) + "阶段"
  836. }}</span
  837. >
  838. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  839. </div>
  840. <div
  841. class="cru_line"
  842. :style="{
  843. left: offsetLetfPx + 'px',
  844. }"
  845. ></div>
  846. </div>
  847. <div
  848. class="addStageImg"
  849. @click="addunit()"
  850. v-if="
  851. !(unitJson[unitJson.length - 1].easy == 4) &&
  852. !(unitJson[unitJson.length - 1].easy == 6) &&
  853. courseState == 1
  854. "
  855. >
  856. <img src="../../../assets/icon/new/addStage.png" alt />
  857. </div>
  858. <button
  859. class="c_pub_button_add pub_btn_add_img"
  860. @click="updateCourseState(1)"
  861. v-if="courseState == 2"
  862. style="margin: 15px 0"
  863. >
  864. 新建阶段
  865. </button>
  866. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  867. <button
  868. class="c_pub_button_add"
  869. @click="openStageBox"
  870. v-show="false"
  871. style="margin: 0 0 0 auto"
  872. >
  873. 阶段顺序
  874. </button>
  875. <button
  876. class="c_pub_button_add pub_btn_paste_img"
  877. @click="pasteTask()"
  878. v-if="steps == 3 && isPasteTask"
  879. style="margin: 0 0 0 auto"
  880. >
  881. 智能粘贴
  882. </button>
  883. <button
  884. class="c_pub_button_confirm pub_btn_template_img"
  885. @click="openTemplate"
  886. :style="{
  887. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  888. }"
  889. style="padding: 0 12px"
  890. >
  891. 选择课程模板
  892. </button>
  893. </div>
  894. <div
  895. style="margin: 0 0 10px 0; padding: 0"
  896. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  897. :key="index"
  898. >
  899. <div class="chapter_box" v-if="courseState == 1">
  900. <div class="chapter_contentbox">
  901. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  902. <div class="cc_input">
  903. <input
  904. ref="dyInput"
  905. type="text"
  906. placeholder="请输入阶段标题"
  907. class="binfo_input"
  908. v-model="unitJson[unitIndex].dyName"
  909. />
  910. </div>
  911. <div
  912. class="remove"
  913. v-if="
  914. (unitJson.length > 1 || courseState != 2) &&
  915. !(unitJson[unitJson.length - 1].easy == 4) &&
  916. !(unitJson[unitJson.length - 1].easy == 6)
  917. "
  918. @click="deleteUnit(unitIndex)"
  919. ></div>
  920. </div>
  921. </div>
  922. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  923. margin: 50px 0px 10px;
  924. font-size: 1.5em;
  925. font-weight: 700;
  926. color: #0f7eff;
  927. ">
  928. 添加任务
  929. </div> -->
  930. <div
  931. class="taskBorder"
  932. :style="{
  933. minHeight: unitJson[unitIndex].easy && 'unset',
  934. }"
  935. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  936. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  937. :key="itemTaskIndex"
  938. >
  939. <div style="background: #fff; border-radius: 5px">
  940. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  941. <!-- padding: 20px; -->
  942. <div v-if="unitJson[unitIndex].easy != 1">
  943. <div
  944. :style="{
  945. marginBottom:
  946. unitJson[unitIndex].easy == 3 ||
  947. (unitJson[unitIndex].easy == 5 &&
  948. itemTask.taskType == 1)
  949. ? '75px'
  950. : '0',
  951. }"
  952. >
  953. <div
  954. style="
  955. display: flex;
  956. margin: 0px 0 20px;
  957. flex-direction: row;
  958. justify-content: flex-start;
  959. align-items: center;
  960. "
  961. >
  962. <div class="lineTitle">任务概述</div>
  963. </div>
  964. <div
  965. :id="'task' + itemTaskIndex"
  966. class="chapter_contentbox"
  967. style="
  968. flex-direction: row;
  969. justify-content: flex-start;
  970. align-items: center;
  971. margin: 0;
  972. "
  973. >
  974. <!-- <div class="cc_title">
  975. 任务{{ itemTaskIndex + 1 }}
  976. </div> -->
  977. <div class="cc_input">
  978. <input
  979. type="text"
  980. placeholder="输入任务名称"
  981. class="binfo_input"
  982. style="border-radius: 4px"
  983. v-model="
  984. unitJson[unitIndex].chapterInfo[0].taskJson[
  985. itemTaskIndex
  986. ].task
  987. "
  988. />
  989. </div>
  990. <div
  991. class="remove"
  992. v-if="
  993. item.taskJson.length > 1 &&
  994. (!unitJson[unitIndex].easy ||
  995. unitJson[unitIndex].easy == 6)
  996. "
  997. @click="deleteTask(itemTaskIndex)"
  998. ></div>
  999. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1000. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1001. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1002. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1003. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1004. </div> -->
  1005. </div>
  1006. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1007. display: flex;
  1008. margin: 20px 0;
  1009. flex-direction: row;
  1010. justify-content: flex-start;
  1011. align-items: center;
  1012. ">
  1013. <div class="lineTitle">任务描述</div>
  1014. </div> && !itemTask.isFold2-->
  1015. <div
  1016. v-if="
  1017. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1018. -1
  1019. "
  1020. style="margin-top: 20px"
  1021. >
  1022. <editor-bar
  1023. class="addEditor"
  1024. style="margin: 0"
  1025. placeholder="请输入任务描述"
  1026. v-model="
  1027. unitJson[unitIndex].chapterInfo[0].taskJson[
  1028. itemTaskIndex
  1029. ].taskDetail
  1030. "
  1031. @change="change"
  1032. ></editor-bar>
  1033. <!-- <textarea
  1034. rows="6"
  1035. class="binfo_input"
  1036. placeholder="请输入任务描述"
  1037. cols
  1038. style="width: 70.5% !important; height: 120px"
  1039. v-model="
  1040. unitJson[unitIndex].chapterInfo[0].taskJson[
  1041. itemTaskIndex
  1042. ].taskDetail
  1043. "
  1044. ></textarea>-->
  1045. </div>
  1046. </div>
  1047. </div>
  1048. <div
  1049. style="position: relative"
  1050. v-if="
  1051. !unitJson[unitIndex].easy ||
  1052. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1053. "
  1054. >
  1055. <div
  1056. style="
  1057. display: flex;
  1058. flex-direction: row;
  1059. justify-content: space-between;
  1060. align-items: center;
  1061. "
  1062. :style="{
  1063. margin: !itemTask.isFoldchapter
  1064. ? '20px 0 10px'
  1065. : '20px 0 0',
  1066. }"
  1067. >
  1068. <div
  1069. style="margin-bottom: 10px"
  1070. class="lineTitle clineTitle"
  1071. >
  1072. 学习内容
  1073. </div>
  1074. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1075. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1076. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1077. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1078. <!-- <div class="line"></div> -->
  1079. </div>
  1080. <!-- v-if="!itemTask.isFoldchapter" -->
  1081. <div>
  1082. <div
  1083. class="add_chapters_box add_c_none"
  1084. v-if="
  1085. itemTask.chapterData &&
  1086. itemTask.chapterData.length == 0
  1087. "
  1088. >
  1089. <img
  1090. src="../../../assets/icon/new/c_none.png"
  1091. alt
  1092. /><span>请添加学习内容</span>
  1093. </div>
  1094. <div
  1095. v-else
  1096. class="add_chapters_box"
  1097. style="display: flex; flex-direction: column"
  1098. >
  1099. <div
  1100. @dragstart="
  1101. dragStart(item1, index1, itemTaskIndex)
  1102. "
  1103. @dragover.prevent="
  1104. dragOver(index1, itemTaskIndex)
  1105. "
  1106. @dragend="dragEnd()"
  1107. :draggable="
  1108. isdrag ==
  1109. 'chapter-' + itemTaskIndex + '-' + index1
  1110. "
  1111. class="chapter_upload"
  1112. v-for="(item1, index1) in itemTask.chapterData"
  1113. :key="item1.id"
  1114. @click="
  1115. getChapterData(
  1116. $event,
  1117. unitIndex,
  1118. index,
  1119. index1,
  1120. item1.type
  1121. )
  1122. "
  1123. :class="{
  1124. dragOverTop2:
  1125. newIndex === index1 &&
  1126. typeIndex ==
  1127. 'chapter-' +
  1128. itemTaskIndex +
  1129. '-' +
  1130. index1 &&
  1131. oldIndex > index1 &&
  1132. dragType == 'drag',
  1133. dragOverBottom2:
  1134. newIndex === index1 &&
  1135. typeIndex ==
  1136. 'chapter-' +
  1137. itemTaskIndex +
  1138. '-' +
  1139. index1 &&
  1140. oldIndex < index1 &&
  1141. dragType == 'drag',
  1142. }"
  1143. >
  1144. <div
  1145. @mousedown="
  1146. isdrag =
  1147. 'chapter-' + itemTaskIndex + '-' + index1
  1148. "
  1149. @mouseup="isdrag = ''"
  1150. @touchstart="
  1151. isdrag =
  1152. 'chapter-' + itemTaskIndex + '-' + index1
  1153. "
  1154. @touchend="isdrag = ''"
  1155. class="chapter_upload_drag"
  1156. ></div>
  1157. <div
  1158. class="chapter_upload_o"
  1159. style="
  1160. position: relative;
  1161. display: flex;
  1162. align-items: center;
  1163. "
  1164. >
  1165. <div
  1166. class="chapter_upload_l"
  1167. style="padding: 1px 0 0 10px"
  1168. >
  1169. <div
  1170. v-if="item1.type == 2"
  1171. class="chapter_upload_l_i2"
  1172. ></div>
  1173. <div
  1174. v-if="item1.type == 3"
  1175. class="chapter_upload_l_i3"
  1176. style="margin-left: 1px"
  1177. ></div>
  1178. <div
  1179. v-if="item1.type == 6"
  1180. class="chapter_upload_l_i6"
  1181. style="margin-left: 1px"
  1182. ></div>
  1183. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1184. <div
  1185. v-if="item1.type == 8"
  1186. class="chapter_upload_l_i8"
  1187. style="margin-left: 1px"
  1188. ></div>
  1189. <div
  1190. v-if="item1.type == 14"
  1191. class="chapter_upload_l_i14"
  1192. style="margin-left: 1px"
  1193. ></div>
  1194. <div
  1195. v-if="item1.type == 12"
  1196. class="chapter_upload_l_i12"
  1197. style="margin-left: 1px"
  1198. ></div>
  1199. <div
  1200. v-if="item1.type == 13"
  1201. class="chapter_upload_l_i13"
  1202. style="margin-left: 1px"
  1203. ></div>
  1204. </div>
  1205. <div class="chapter_upload_n">
  1206. <input
  1207. readonly="true"
  1208. v-if="
  1209. item1.type == 2 ||
  1210. item1.type == 3 ||
  1211. item1.type == 12 ||
  1212. item1.type == 13 ||
  1213. item1.type == 7
  1214. "
  1215. :placeholder="item1.name"
  1216. @click="
  1217. updataVideoT(
  1218. $event,
  1219. unitIndex,
  1220. itemTaskIndex,
  1221. index1
  1222. )
  1223. "
  1224. style="
  1225. border: none;
  1226. outline: none;
  1227. width: 80%;
  1228. minwidth: 215px;
  1229. z-index: 99;
  1230. font-size: 14px;
  1231. white-space: nowrap;
  1232. overflow: hidden;
  1233. text-overflow: ellipsis;
  1234. "
  1235. />
  1236. <input
  1237. :placeholder="item1.name"
  1238. v-if="item1.type == 6"
  1239. style="
  1240. border: none;
  1241. outline: none;
  1242. width: 80%;
  1243. white-space: nowrap;
  1244. overflow: hidden;
  1245. text-overflow: ellipsis;
  1246. "
  1247. readonly="true"
  1248. @click="
  1249. selectAttText(itemTaskIndex, index1)
  1250. "
  1251. />
  1252. <input
  1253. :placeholder="
  1254. item1.title ? item1.title : '链接'
  1255. "
  1256. v-if="item1.type == 8"
  1257. style="
  1258. border: none;
  1259. outline: none;
  1260. width: 80%;
  1261. white-space: nowrap;
  1262. overflow: hidden;
  1263. text-overflow: ellipsis;
  1264. "
  1265. readonly="true"
  1266. @click="selectLine(itemTaskIndex, index1)"
  1267. />
  1268. <input
  1269. :placeholder="
  1270. item1.title ? item1.title : '链接'
  1271. "
  1272. v-if="item1.type == 14"
  1273. style="
  1274. border: none;
  1275. outline: none;
  1276. width: 80%;
  1277. white-space: nowrap;
  1278. overflow: hidden;
  1279. text-overflow: ellipsis;
  1280. "
  1281. readonly="true"
  1282. @click="
  1283. openUpdateSource(itemTaskIndex, index1)
  1284. "
  1285. />
  1286. </div>
  1287. <div class="chapter_upload_ic">
  1288. <div
  1289. class="chapter_upload_noSee"
  1290. v-if="item1.type == 12"
  1291. ></div>
  1292. <div
  1293. class="chapter_upload_ud"
  1294. style="z-index: 99"
  1295. >
  1296. <div
  1297. class="chapter_upload_up"
  1298. @click="
  1299. upCd(
  1300. $event,
  1301. unitIndex,
  1302. index,
  1303. itemTaskIndex,
  1304. index1
  1305. )
  1306. "
  1307. ></div>
  1308. <div
  1309. class="chapter_upload_down"
  1310. @click="
  1311. downCd(
  1312. $event,
  1313. unitIndex,
  1314. index,
  1315. itemTaskIndex,
  1316. index1
  1317. )
  1318. "
  1319. ></div>
  1320. </div>
  1321. <div
  1322. class="chapter_upload_ic_edit"
  1323. v-if="
  1324. item1.type == 2 ||
  1325. item1.type == 3 ||
  1326. item1.type == 12 ||
  1327. item1.type == 13 ||
  1328. item1.type == 7
  1329. "
  1330. @click.stop="
  1331. updataVideoT(
  1332. $event,
  1333. unitIndex,
  1334. itemTaskIndex,
  1335. index1
  1336. )
  1337. "
  1338. >
  1339. <div></div>
  1340. </div>
  1341. <div
  1342. class="chapter_upload_ic_edit"
  1343. v-if="item1.type == 6"
  1344. @click="
  1345. selectAttText(itemTaskIndex, index1)
  1346. "
  1347. >
  1348. <div></div>
  1349. </div>
  1350. <div
  1351. class="chapter_upload_ic_edit"
  1352. v-if="item1.type == 8"
  1353. @click="selectLine(itemTaskIndex, index1)"
  1354. >
  1355. <div></div>
  1356. </div>
  1357. <div
  1358. class="chapter_upload_ic_edit"
  1359. v-if="item1.type == 14"
  1360. @click="
  1361. openUpdateSource(itemTaskIndex, index1)
  1362. "
  1363. >
  1364. <div></div>
  1365. </div>
  1366. <div
  1367. class="chapter_upload_ic_r"
  1368. @click.stop="
  1369. deleteChapterData(
  1370. $event,
  1371. unitIndex,
  1372. index,
  1373. index1,
  1374. itemTaskIndex
  1375. )
  1376. "
  1377. >
  1378. <div></div>
  1379. </div>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. </div>
  1384. </div>
  1385. <!-- v-if="!itemTask.isFoldchapter" -->
  1386. <div class="add_info_box" style="margin: 10px 0 0">
  1387. <button
  1388. class="c_pub_button_add pub_btn_add_img"
  1389. @click="addImg($event)"
  1390. >
  1391. 文件
  1392. <input
  1393. type="file"
  1394. accept="*"
  1395. style="display: none"
  1396. v-if="inputShow"
  1397. @change="
  1398. beforeUpload2(
  1399. $event,
  1400. unitIndex,
  1401. 13,
  1402. itemTaskIndex
  1403. )
  1404. "
  1405. />
  1406. </button>
  1407. <button
  1408. class="c_pub_button_add pub_btn_add_img"
  1409. @click="addAttText(itemTaskIndex)"
  1410. >
  1411. 图文
  1412. </button>
  1413. <button
  1414. class="c_pub_button_add pub_btn_add_img"
  1415. @click="openLine(itemTaskIndex)"
  1416. >
  1417. 链接
  1418. </button>
  1419. <button
  1420. class="c_pub_button_add pub_btn_add_img"
  1421. @click="pasteLine(itemTaskIndex)"
  1422. >
  1423. 代码
  1424. </button>
  1425. <button
  1426. class="c_pub_button_add pub_btn_add_img"
  1427. @click="openSource(itemTaskIndex)"
  1428. >
  1429. 资源
  1430. </button>
  1431. </div>
  1432. <div
  1433. v-if="
  1434. unitJson[unitIndex].chapterInfo[0].taskJson[
  1435. itemTaskIndex
  1436. ].proVisible
  1437. "
  1438. class="mask"
  1439. >
  1440. <div class="progressBox">
  1441. <!-- <div id="closePro" class="closeCss">
  1442. <img src="../../../../assets/icon/close.png" alt />
  1443. </div> -->
  1444. <div class="lbox">
  1445. <img
  1446. src="../../../assets/loading.gif"
  1447. />上传中,请稍后
  1448. </div>
  1449. <div style="margin-bottom: 10px">
  1450. <span
  1451. >{{
  1452. unitJson[unitIndex].chapterInfo[0].taskJson[
  1453. itemTaskIndex
  1454. ].isFinishSize
  1455. }}M</span
  1456. >
  1457. /
  1458. <span
  1459. >{{
  1460. unitJson[unitIndex].chapterInfo[0].taskJson[
  1461. itemTaskIndex
  1462. ].isAllSize
  1463. }}M</span
  1464. >
  1465. </div>
  1466. <el-progress
  1467. :text-inside="true"
  1468. :stroke-width="20"
  1469. :percentage="
  1470. unitJson[unitIndex].chapterInfo[0].taskJson[
  1471. itemTaskIndex
  1472. ].progress
  1473. ? unitJson[unitIndex].chapterInfo[0]
  1474. .taskJson[itemTaskIndex].progress
  1475. : 0
  1476. "
  1477. style="width: 80%"
  1478. ></el-progress>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div
  1483. v-if="
  1484. unitJson[unitIndex].easy == 1 ||
  1485. (unitJson[unitIndex].easy == 5 &&
  1486. itemTask.taskType == 2)
  1487. "
  1488. >
  1489. <div>
  1490. <div
  1491. class="add_chapters_box add_c_none"
  1492. v-if="
  1493. itemTask.chapterData &&
  1494. itemTask.chapterData.length == 0
  1495. "
  1496. >
  1497. <img src="../../../assets/icon/new/c_none.png" alt />
  1498. </div>
  1499. <div
  1500. v-else
  1501. class="add_chapters_box"
  1502. style="display: flex; flex-direction: column"
  1503. >
  1504. <div
  1505. @dragstart="dragStart(item1, index1, index)"
  1506. @dragover.prevent="
  1507. dragOver(index1, itemTaskIndex)
  1508. "
  1509. @dragend="dragEnd()"
  1510. :draggable="
  1511. isdrag ==
  1512. 'chapter-' + itemTaskIndex + '-' + index1
  1513. "
  1514. class="chapter_upload"
  1515. v-for="(item1, index1) in itemTask.chapterData"
  1516. :key="item1.id"
  1517. @click="
  1518. getChapterData(
  1519. $event,
  1520. unitIndex,
  1521. index,
  1522. index1,
  1523. item1.type
  1524. )
  1525. "
  1526. :class="{
  1527. dragOverTop2:
  1528. newIndex === index1 &&
  1529. typeIndex ==
  1530. 'chapter-' +
  1531. itemTaskIndex +
  1532. '-' +
  1533. index1 &&
  1534. oldIndex > index1,
  1535. dragOverBottom2:
  1536. newIndex === index1 &&
  1537. typeIndex ==
  1538. 'chapter-' +
  1539. itemTaskIndex +
  1540. '-' +
  1541. index1 &&
  1542. oldIndex < index1,
  1543. }"
  1544. >
  1545. <div
  1546. @mousedown="
  1547. isdrag =
  1548. 'chapter-' + itemTaskIndex + '-' + index1
  1549. "
  1550. @mouseup="isdrag = ''"
  1551. @touchstart="
  1552. isdrag =
  1553. 'chapter-' + itemTaskIndex + '-' + index1
  1554. "
  1555. @touchend="isdrag = ''"
  1556. class="chapter_upload_drag"
  1557. ></div>
  1558. <div
  1559. class="chapter_upload_t"
  1560. style="width: 100%"
  1561. ></div>
  1562. <div
  1563. class="chapter_upload_o"
  1564. style="
  1565. position: relative;
  1566. display: flex;
  1567. align-items: center;
  1568. "
  1569. >
  1570. <div
  1571. class="chapter_upload_l"
  1572. style="padding: 1px 0 0 10px"
  1573. >
  1574. <div
  1575. v-if="item1.type == 2"
  1576. class="chapter_upload_l_i2"
  1577. ></div>
  1578. <div
  1579. v-if="item1.type == 3"
  1580. class="chapter_upload_l_i3"
  1581. style="margin-left: 1px"
  1582. ></div>
  1583. <div
  1584. v-if="item1.type == 6"
  1585. class="chapter_upload_l_i6"
  1586. style="margin-left: 1px"
  1587. ></div>
  1588. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1589. <div
  1590. v-if="item1.type == 8"
  1591. class="chapter_upload_l_i8"
  1592. style="margin-left: 1px"
  1593. ></div>
  1594. <div
  1595. v-if="item1.type == 14"
  1596. class="chapter_upload_l_i14"
  1597. style="margin-left: 1px"
  1598. ></div>
  1599. <div
  1600. v-if="item1.type == 12"
  1601. class="chapter_upload_l_i12"
  1602. style="margin-left: 1px"
  1603. ></div>
  1604. <div
  1605. v-if="item1.type == 13"
  1606. class="chapter_upload_l_i13"
  1607. style="margin-left: 1px"
  1608. ></div>
  1609. </div>
  1610. <div class="chapter_upload_n">
  1611. <span
  1612. style="
  1613. font-size: 14px;
  1614. color: rgb(109, 109, 109);
  1615. height: 14px;
  1616. line-height: 14px;
  1617. "
  1618. v-if="
  1619. item1.type == 2 ||
  1620. item1.type == 3 ||
  1621. item1.type == 7
  1622. "
  1623. >{{ item1.text }}-</span
  1624. >
  1625. <input
  1626. readonly="true"
  1627. v-if="
  1628. item1.type == 2 ||
  1629. item1.type == 3 ||
  1630. item1.type == 7
  1631. "
  1632. :placeholder="item1.name"
  1633. @click="
  1634. updataVideoT(
  1635. $event,
  1636. unitIndex,
  1637. itemTaskIndex,
  1638. index1
  1639. )
  1640. "
  1641. style="
  1642. border: none;
  1643. outline: none;
  1644. width: 80%;
  1645. minwidth: 215px;
  1646. z-index: 99;
  1647. font-size: 14px;
  1648. white-space: nowrap;
  1649. overflow: hidden;
  1650. text-overflow: ellipsis;
  1651. "
  1652. />
  1653. <input
  1654. :placeholder="item1.name"
  1655. v-if="item1.type == 6"
  1656. style="
  1657. border: none;
  1658. outline: none;
  1659. width: 80%;
  1660. white-space: nowrap;
  1661. overflow: hidden;
  1662. text-overflow: ellipsis;
  1663. "
  1664. readonly="true"
  1665. @click="
  1666. selectAttText(itemTaskIndex, index1)
  1667. "
  1668. />
  1669. <input
  1670. :placeholder="
  1671. item1.title ? item1.title : '链接'
  1672. "
  1673. v-if="item1.type == 8 || item1.type == 14"
  1674. style="
  1675. border: none;
  1676. outline: none;
  1677. width: 80%;
  1678. white-space: nowrap;
  1679. overflow: hidden;
  1680. text-overflow: ellipsis;
  1681. "
  1682. readonly="true"
  1683. @click="selectLine(itemTaskIndex, index1)"
  1684. />
  1685. </div>
  1686. <div class="chapter_upload_ic">
  1687. <div
  1688. class="chapter_upload_noSee"
  1689. v-if="item1.type == 12"
  1690. ></div>
  1691. <div
  1692. class="chapter_upload_ud"
  1693. style="z-index: 99"
  1694. >
  1695. <div
  1696. class="chapter_upload_up"
  1697. @click="
  1698. upCd(
  1699. $event,
  1700. unitIndex,
  1701. index,
  1702. itemTaskIndex,
  1703. index1
  1704. )
  1705. "
  1706. ></div>
  1707. <div
  1708. class="chapter_upload_down"
  1709. @click="
  1710. downCd(
  1711. $event,
  1712. unitIndex,
  1713. index,
  1714. itemTaskIndex,
  1715. index1
  1716. )
  1717. "
  1718. ></div>
  1719. </div>
  1720. <div
  1721. class="chapter_upload_ic_edit"
  1722. v-if="
  1723. item1.type == 2 ||
  1724. item1.type == 3 ||
  1725. item1.type == 12 ||
  1726. item1.type == 13 ||
  1727. item1.type == 7
  1728. "
  1729. @click.stop="
  1730. updataVideoT(
  1731. $event,
  1732. unitIndex,
  1733. itemTaskIndex,
  1734. index1
  1735. )
  1736. "
  1737. >
  1738. <div></div>
  1739. </div>
  1740. <div
  1741. class="chapter_upload_ic_edit"
  1742. v-if="item1.type == 6"
  1743. @click="
  1744. selectAttText(itemTaskIndex, index1)
  1745. "
  1746. >
  1747. <div></div>
  1748. </div>
  1749. <div
  1750. class="chapter_upload_ic_edit"
  1751. v-if="item1.type == 8"
  1752. @click="selectLine(itemTaskIndex, index1)"
  1753. >
  1754. <div></div>
  1755. </div>
  1756. <div
  1757. class="chapter_upload_ic_edit"
  1758. v-if="item1.type == 14"
  1759. @click="
  1760. openUpdateSource(itemTaskIndex, index1)
  1761. "
  1762. >
  1763. <div></div>
  1764. </div>
  1765. <div
  1766. class="chapter_upload_ic_r"
  1767. @click.stop="
  1768. deleteChapterData(
  1769. $event,
  1770. unitIndex,
  1771. index,
  1772. index1,
  1773. itemTaskIndex
  1774. )
  1775. "
  1776. >
  1777. <div></div>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div class="add_info_box" style="margin: 10px 0 0">
  1785. <button
  1786. class="c_pub_button_add pub_btn_add_img"
  1787. @click="addImg($event)"
  1788. >
  1789. <span style="color: red">*</span>
  1790. 教学设计
  1791. <input
  1792. type="file"
  1793. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1794. style="display: none"
  1795. v-if="inputShow"
  1796. @change="
  1797. beforeUpload3(
  1798. $event,
  1799. unitIndex,
  1800. 3,
  1801. itemTaskIndex,
  1802. '教学设计'
  1803. )
  1804. "
  1805. />
  1806. </button>
  1807. <button
  1808. class="c_pub_button_add pub_btn_add_img"
  1809. @click="addImg($event)"
  1810. >
  1811. <span style="color: red">*</span>
  1812. 教学课件
  1813. <input
  1814. type="file"
  1815. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1816. style="display: none"
  1817. v-if="inputShow"
  1818. @change="
  1819. beforeUpload3(
  1820. $event,
  1821. unitIndex,
  1822. 3,
  1823. itemTaskIndex,
  1824. '教学课件'
  1825. )
  1826. "
  1827. />
  1828. </button>
  1829. <button
  1830. class="c_pub_button_add pub_btn_add_img"
  1831. @click="addImg($event)"
  1832. >
  1833. 教学视频
  1834. <input
  1835. type="file"
  1836. accept="video/mp4, video/quicktime, video/x-msvideo"
  1837. style="display: none"
  1838. v-if="inputShow"
  1839. @change="
  1840. beforeUpload3(
  1841. $event,
  1842. unitIndex,
  1843. 2,
  1844. itemTaskIndex,
  1845. '教学视频'
  1846. )
  1847. "
  1848. />
  1849. </button>
  1850. <button
  1851. class="c_pub_button_add pub_btn_add_img"
  1852. @click="addImg($event)"
  1853. >
  1854. 教学音频
  1855. <input
  1856. type="file"
  1857. accept="audio/*"
  1858. style="display: none"
  1859. v-if="inputShow"
  1860. @change="
  1861. beforeUpload3(
  1862. $event,
  1863. unitIndex,
  1864. 2,
  1865. itemTaskIndex,
  1866. '教学音频'
  1867. )
  1868. "
  1869. />
  1870. </button>
  1871. <button
  1872. class="c_pub_button_add pub_btn_add_img"
  1873. @click="addImg($event)"
  1874. >
  1875. 学习单
  1876. <input
  1877. type="file"
  1878. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1879. style="display: none"
  1880. v-if="inputShow"
  1881. @change="
  1882. beforeUpload3(
  1883. $event,
  1884. unitIndex,
  1885. 3,
  1886. itemTaskIndex,
  1887. '学习单'
  1888. )
  1889. "
  1890. />
  1891. </button>
  1892. </div>
  1893. <div
  1894. v-if="
  1895. unitJson[unitIndex].chapterInfo[0].taskJson[
  1896. itemTaskIndex
  1897. ].proVisible
  1898. "
  1899. class="mask"
  1900. >
  1901. <div class="progressBox">
  1902. <!-- <div id="closePro" class="closeCss">
  1903. <img src="../../../../assets/icon/close.png" alt />
  1904. </div> -->
  1905. <div class="lbox">
  1906. <img
  1907. src="../../../assets/loading.gif"
  1908. />上传中,请稍后
  1909. </div>
  1910. <div style="margin-bottom: 10px">
  1911. <span
  1912. >{{
  1913. unitJson[unitIndex].chapterInfo[0].taskJson[
  1914. itemTaskIndex
  1915. ].isFinishSize
  1916. }}M</span
  1917. >
  1918. /
  1919. <span
  1920. >{{
  1921. unitJson[unitIndex].chapterInfo[0].taskJson[
  1922. itemTaskIndex
  1923. ].isAllSize
  1924. }}M</span
  1925. >
  1926. </div>
  1927. <el-progress
  1928. :text-inside="true"
  1929. :stroke-width="20"
  1930. :percentage="
  1931. unitJson[unitIndex].chapterInfo[0].taskJson[
  1932. itemTaskIndex
  1933. ].progress
  1934. ? unitJson[unitIndex].chapterInfo[0]
  1935. .taskJson[itemTaskIndex].progress
  1936. : 0
  1937. "
  1938. style="width: 80%"
  1939. ></el-progress>
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <!-- padding: 20px; -->
  1945. <div
  1946. style="
  1947. background: #fff;
  1948. border-radius: 5px;
  1949. margin-top: 15px;
  1950. "
  1951. >
  1952. <div
  1953. v-if="
  1954. unitJson[unitIndex].easy != 3 &&
  1955. !(
  1956. unitJson[unitIndex].easy == 5 &&
  1957. itemTask.taskType == 1
  1958. )
  1959. "
  1960. style="
  1961. flex-direction: row;
  1962. justify-content: flex-start;
  1963. align-items: center;
  1964. "
  1965. >
  1966. <div
  1967. style="
  1968. display: flex;
  1969. flex-direction: row;
  1970. align-items: center;
  1971. margin: 5px 0 20px;
  1972. "
  1973. >
  1974. <div class="lineTitle clineTitle">
  1975. {{
  1976. !unitJson[unitIndex].easy ||
  1977. unitJson[unitIndex].easy == 6 ||
  1978. easyArray.indexOf(unitJson[unitIndex].easy) !=
  1979. -1
  1980. ? "练习内容"
  1981. : "评价内容"
  1982. }}
  1983. </div>
  1984. <!-- <div class="line" style="width: 90%"></div> -->
  1985. </div>
  1986. </div>
  1987. <div
  1988. v-if="
  1989. unitJson[unitIndex].easy == 6 ||
  1990. !unitJson[unitIndex].easy
  1991. "
  1992. class="toolChoose"
  1993. >
  1994. <div class="tools">
  1995. <div
  1996. class="leftTools"
  1997. style="width: 100%"
  1998. v-for="(
  1999. itemTool, toolIndex
  2000. ) in itemTask.toolChoose"
  2001. :key="toolIndex"
  2002. >
  2003. <div
  2004. style="
  2005. display: flex;
  2006. flex-direction: row;
  2007. align-items: baseline;
  2008. flex-wrap: nowrap;
  2009. justify-content: flex-start;
  2010. position: relative;
  2011. "
  2012. >
  2013. <div
  2014. style="margin-right: 20px; font-weight: bold"
  2015. :id="'gj' + itemTaskIndex + '' + toolIndex"
  2016. >
  2017. 工具 {{ toolIndex + 1 }} :
  2018. </div>
  2019. <div class="chooseWho">
  2020. <div
  2021. :class="
  2022. itemTool.toolType == 0
  2023. ? 'isChooseActive'
  2024. : ''
  2025. "
  2026. @click="
  2027. (itemTool.toolType = 0),
  2028. (itemTool.isFold3 = false),
  2029. $forceUpdate()
  2030. "
  2031. >
  2032. 互动类
  2033. </div>
  2034. <div
  2035. :class="
  2036. itemTool.toolType == 1
  2037. ? 'isChooseActive'
  2038. : ''
  2039. "
  2040. @click="
  2041. (itemTool.toolType = 1),
  2042. (itemTool.isFold3 = false),
  2043. $forceUpdate()
  2044. "
  2045. >
  2046. 思维类
  2047. </div>
  2048. <div
  2049. :class="
  2050. itemTool.toolType == 6
  2051. ? 'isChooseActive'
  2052. : ''
  2053. "
  2054. @click="
  2055. (itemTool.toolType = 6),
  2056. (itemTool.isFold3 = false),
  2057. $forceUpdate()
  2058. "
  2059. >
  2060. 协作类
  2061. </div>
  2062. <div
  2063. :class="
  2064. itemTool.toolType == 2
  2065. ? 'isChooseActive'
  2066. : ''
  2067. "
  2068. @click="
  2069. (itemTool.toolType = 2),
  2070. (itemTool.isFold3 = false),
  2071. $forceUpdate()
  2072. "
  2073. >
  2074. 测评类
  2075. </div>
  2076. <div
  2077. :class="
  2078. itemTool.toolType == 7
  2079. ? 'isChooseActive'
  2080. : ''
  2081. "
  2082. @click="
  2083. (itemTool.toolType = 7),
  2084. (itemTool.isFold3 = false),
  2085. $forceUpdate()
  2086. "
  2087. >
  2088. 评价类
  2089. </div>
  2090. <div
  2091. :class="
  2092. itemTool.toolType == 3
  2093. ? 'isChooseActive'
  2094. : ''
  2095. "
  2096. @click="
  2097. (itemTool.toolType = 3),
  2098. (itemTool.isFold3 = false),
  2099. $forceUpdate()
  2100. "
  2101. >
  2102. 编程类
  2103. </div>
  2104. <div
  2105. :class="
  2106. itemTool.toolType == 5
  2107. ? 'isChooseActive'
  2108. : ''
  2109. "
  2110. @click="
  2111. (itemTool.toolType = 5),
  2112. (itemTool.isFold3 = false),
  2113. $forceUpdate()
  2114. "
  2115. >
  2116. 学科类
  2117. </div>
  2118. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2119. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2120. 其他
  2121. </div> -->
  2122. </div>
  2123. <div
  2124. class="chapter_upload_ud2"
  2125. style="z-index: 9; margin: 0 0 0 auto"
  2126. :style="{
  2127. margin:
  2128. itemTask.toolChoose.length > 1
  2129. ? '0px 35px 0px auto'
  2130. : '0 0 0 auto',
  2131. }"
  2132. v-if="itemTask.toolChoose.length > 1"
  2133. >
  2134. <div
  2135. class="chapter_upload_up2"
  2136. @click.stop="
  2137. upTool(
  2138. $event,
  2139. unitIndex,
  2140. itemTaskIndex,
  2141. toolIndex
  2142. )
  2143. "
  2144. >
  2145. 上移
  2146. </div>
  2147. <div
  2148. class="chapter_upload_down2"
  2149. @click.stop="
  2150. downTool(
  2151. $event,
  2152. unitIndex,
  2153. itemTaskIndex,
  2154. toolIndex
  2155. )
  2156. "
  2157. >
  2158. 下移
  2159. </div>
  2160. </div>
  2161. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2162. @click="fold3(itemTaskIndex, toolIndex)"
  2163. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2164. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2165. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2166. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2167. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2168. <div
  2169. class="remove"
  2170. @click="deleteTool(itemTaskIndex, toolIndex)"
  2171. v-if="itemTask.toolChoose.length > 1"
  2172. style="
  2173. position: absolute;
  2174. right: 0;
  2175. top: -5px;
  2176. "
  2177. ></div>
  2178. </div>
  2179. <!-- v-show="!itemTool.isFold3" -->
  2180. <div style="min-height: 163px">
  2181. <div
  2182. class="toolSort"
  2183. v-if="itemTool.toolType == 0"
  2184. >
  2185. <!-- <div class="tool">
  2186. <div
  2187. class="whiteBIcon"
  2188. @click="addTools(8, itemTaskIndex, toolIndex)"
  2189. >
  2190. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2191. <div style="margin: 5px 0">素材库</div>
  2192. </div>
  2193. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2194. <img
  2195. src="../../../assets/icon/checkNo.png"
  2196. alt
  2197. v-if="itemTool.tool.indexOf(8) == -1"
  2198. />
  2199. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2200. alt /><span>已选择</span></div>
  2201. </div>
  2202. </div>-->
  2203. <!-- <div class="tool">
  2204. <div
  2205. class="whiteBIcon"
  2206. @click="addTools(17, itemTaskIndex, toolIndex)"
  2207. >
  2208. <img
  2209. src="../../../assets/icon/secondToolList/library.png"
  2210. alt
  2211. />
  2212. <div style="margin: 5px 0">学习资料</div>
  2213. </div>
  2214. <div
  2215. class="check"
  2216. @click="addTools(17, itemTaskIndex, toolIndex)"
  2217. >
  2218. <img
  2219. src="../../../assets/icon/checkNo.png"
  2220. alt
  2221. v-if="itemTool.tool.indexOf(17) == -1"
  2222. />
  2223. <img
  2224. src="../../../assets/icon/checkedIs.png"
  2225. alt
  2226. v-else
  2227. />
  2228. </div>10
  2229. </div> -->
  2230. <div
  2231. class="tool"
  2232. :class="{
  2233. isToolChoose:
  2234. itemTool.tool.indexOf(10) != -1,
  2235. }"
  2236. @click="
  2237. addTools(10, itemTaskIndex, toolIndex)
  2238. "
  2239. >
  2240. <div
  2241. class="whiteBIcon"
  2242. @click.stop="
  2243. openTools(itemTaskIndex, 10, toolIndex)
  2244. "
  2245. >
  2246. <img
  2247. src="../../../assets/icon/thirdToolList/time.png"
  2248. alt
  2249. />
  2250. <div style="margin: 5px 0">倒计时</div>
  2251. </div>
  2252. <div class="noCTool">
  2253. <img
  2254. src="../../../assets/icon/new/isToolC.png"
  2255. alt=""
  2256. />
  2257. </div>
  2258. <div
  2259. class="isCTool"
  2260. v-if="itemTool.tool.indexOf(10) != -1"
  2261. >
  2262. <img
  2263. src="../../../assets/icon/new/isToolC.png"
  2264. alt=""
  2265. />
  2266. </div>
  2267. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2268. <img src="../../../assets/icon/checkNo.png" alt
  2269. v-if="itemTool.tool.indexOf(10) == -1" />
  2270. <div class="checkDiv" v-else>
  2271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2272. </div>
  2273. </div> -->
  2274. </div>
  2275. <div
  2276. class="tool"
  2277. :class="{
  2278. isToolChoose:
  2279. itemTool.tool.indexOf(65) != -1,
  2280. }"
  2281. @click="
  2282. addTools(65, itemTaskIndex, toolIndex)
  2283. "
  2284. >
  2285. <div
  2286. class="whiteBIcon"
  2287. @click.stop="
  2288. addTools(65, itemTaskIndex, toolIndex)
  2289. "
  2290. >
  2291. <img
  2292. src="../../../assets/icon/firstToolList/pickPeople.png"
  2293. alt
  2294. />
  2295. <div style="margin: 5px 0">挑人</div>
  2296. </div>
  2297. <div class="noCTool">
  2298. <img
  2299. src="../../../assets/icon/new/isToolC.png"
  2300. alt=""
  2301. />
  2302. </div>
  2303. <div
  2304. class="isCTool"
  2305. v-if="itemTool.tool.indexOf(65) != -1"
  2306. >
  2307. <img
  2308. src="../../../assets/icon/new/isToolC.png"
  2309. alt=""
  2310. />
  2311. </div>
  2312. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2313. <img src="../../../assets/icon/checkNo.png" alt
  2314. v-if="itemTool.tool.indexOf(65) == -1" />
  2315. <div class="checkDiv" v-else>
  2316. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2317. </div>
  2318. </div> -->
  2319. </div>
  2320. <!-- <div class="tool">
  2321. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2322. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2323. <div style="margin: 5px 0">学生分组</div>
  2324. </div>
  2325. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2326. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2327. <div class="checkDiv" v-else>
  2328. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2329. </div>
  2330. </div>
  2331. </div> -->
  2332. <!-- <div class="tool">
  2333. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2334. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2335. <div style="margin: 5px 0">交互视频</div>
  2336. </div>
  2337. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2338. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2339. <div class="checkDiv" v-else>
  2340. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2341. </div>
  2342. </div>
  2343. </div> -->
  2344. </div>
  2345. <div
  2346. class="toolSort"
  2347. v-if="itemTool.toolType == 1"
  2348. >
  2349. <div
  2350. class="tool"
  2351. :class="{
  2352. isToolChoose:
  2353. itemTool.tool.indexOf(7) != -1,
  2354. }"
  2355. @click="
  2356. addTools(7, itemTaskIndex, toolIndex)
  2357. "
  2358. >
  2359. <div
  2360. class="whiteBIcon"
  2361. @click.stop="
  2362. addTools(7, itemTaskIndex, toolIndex)
  2363. "
  2364. >
  2365. <img
  2366. src="../../../assets/icon/secondToolList/mindNetwork.png"
  2367. alt
  2368. />
  2369. <div style="margin: 5px 0">思维网格</div>
  2370. </div>
  2371. <div class="noCTool">
  2372. <img
  2373. src="../../../assets/icon/new/isToolC.png"
  2374. alt=""
  2375. />
  2376. </div>
  2377. <div
  2378. class="isCTool"
  2379. v-if="itemTool.tool.indexOf(7) != -1"
  2380. >
  2381. <img
  2382. src="../../../assets/icon/new/isToolC.png"
  2383. alt=""
  2384. />
  2385. </div>
  2386. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2387. <img src="../../../assets/icon/checkNo.png" alt
  2388. v-if="itemTool.tool.indexOf(7) == -1" />
  2389. <div class="checkDiv" v-else>
  2390. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2391. </div>
  2392. </div> -->
  2393. </div>
  2394. <div
  2395. class="tool"
  2396. :class="{
  2397. isToolChoose:
  2398. itemTool.tool.indexOf(1) != -1,
  2399. }"
  2400. @click="
  2401. addTools(1, itemTaskIndex, toolIndex)
  2402. "
  2403. >
  2404. <div
  2405. class="whiteBIcon"
  2406. @click.stop="
  2407. openTools(itemTaskIndex, 1, toolIndex)
  2408. "
  2409. >
  2410. <img
  2411. src="../../../assets/icon/secondToolList/whiteBoard.png"
  2412. alt
  2413. />
  2414. <div style="margin: 5px 0">电子白板</div>
  2415. </div>
  2416. <div class="noCTool">
  2417. <img
  2418. src="../../../assets/icon/new/isToolC.png"
  2419. alt=""
  2420. />
  2421. </div>
  2422. <div
  2423. class="isCTool"
  2424. v-if="itemTool.tool.indexOf(1) != -1"
  2425. >
  2426. <img
  2427. src="../../../assets/icon/new/isToolC.png"
  2428. alt=""
  2429. />
  2430. </div>
  2431. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2432. <img src="../../../assets/icon/checkNo.png" alt
  2433. v-if="itemTool.tool.indexOf(1) == -1" />
  2434. <div class="checkDiv" v-else>
  2435. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2436. </div>
  2437. </div> -->
  2438. </div>
  2439. <!-- <div class="tool">
  2440. <div
  2441. class="whiteBIcon"
  2442. @click="addTools(2, itemTaskIndex, toolIndex)"
  2443. >
  2444. <img
  2445. src="../../../assets/icon/secondToolList/note.png"
  2446. alt
  2447. />
  2448. <div style="margin: 5px 0">便签</div>
  2449. </div>
  2450. <div
  2451. class="check"
  2452. @click="addTools(2, itemTaskIndex, toolIndex)"
  2453. >
  2454. <img
  2455. src="../../../assets/icon/checkNo.png"
  2456. alt
  2457. v-if="itemTool.tool.indexOf(2) == -1"
  2458. />
  2459. <div class="checkDiv" v-else>
  2460. <img
  2461. src="../../../assets/icon/checkedIs.png"
  2462. alt
  2463. /><span>已选择</span>
  2464. </div>
  2465. </div>
  2466. </div> -->
  2467. <!-- <div class="tool">
  2468. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2469. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2470. <div style="margin: 5px 0">协同文档</div>
  2471. </div>
  2472. <div
  2473. class="check"
  2474. @click="addTools(6, itemTaskIndex, toolIndex)"
  2475. >
  2476. <img
  2477. src="../../../assets/icon/checkNo.png"
  2478. alt
  2479. v-if="itemTool.tool.indexOf(6) == -1"
  2480. />
  2481. <div class="checkDiv" v-else>
  2482. <img
  2483. src="../../../assets/icon/checkedIs.png"
  2484. alt
  2485. /><span>已选择</span>
  2486. </div>
  2487. </div>
  2488. </div> -->
  2489. <div
  2490. class="tool"
  2491. :class="{
  2492. isToolChoose:
  2493. itemTool.tool.indexOf(52) != -1,
  2494. }"
  2495. @click="
  2496. addTools(52, itemTaskIndex, toolIndex)
  2497. "
  2498. >
  2499. <div
  2500. class="whiteBIcon"
  2501. @click.stop="
  2502. openTools(itemTaskIndex, 52, toolIndex)
  2503. "
  2504. >
  2505. <img
  2506. src="../../../assets/icon/fourthToolList/text.png"
  2507. alt
  2508. />
  2509. <div style="margin: 5px 0">文档</div>
  2510. </div>
  2511. <div class="noCTool">
  2512. <img
  2513. src="../../../assets/icon/new/isToolC.png"
  2514. alt=""
  2515. />
  2516. </div>
  2517. <div
  2518. class="isCTool"
  2519. v-if="itemTool.tool.indexOf(52) != -1"
  2520. >
  2521. <img
  2522. src="../../../assets/icon/new/isToolC.png"
  2523. alt=""
  2524. />
  2525. </div>
  2526. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2527. <img src="../../../assets/icon/checkNo.png" alt
  2528. v-if="itemTool.tool.indexOf(52) == -1" />
  2529. <div class="checkDiv" v-else>
  2530. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2531. </div>
  2532. </div> -->
  2533. </div>
  2534. <div
  2535. class="tool"
  2536. :class="{
  2537. isToolChoose:
  2538. itemTool.tool.indexOf(3) != -1,
  2539. }"
  2540. @click="
  2541. addTools(3, itemTaskIndex, toolIndex)
  2542. "
  2543. >
  2544. <div
  2545. class="whiteBIcon"
  2546. @click.stop="
  2547. openTools(itemTaskIndex, 3, toolIndex)
  2548. "
  2549. >
  2550. <img
  2551. src="../../../assets/icon/secondToolList/mindMapping.png"
  2552. alt
  2553. />
  2554. <div style="margin: 5px 0">思维导图</div>
  2555. </div>
  2556. <div class="noCTool">
  2557. <img
  2558. src="../../../assets/icon/new/isToolC.png"
  2559. alt=""
  2560. />
  2561. </div>
  2562. <div
  2563. class="isCTool"
  2564. v-if="itemTool.tool.indexOf(3) != -1"
  2565. >
  2566. <img
  2567. src="../../../assets/icon/new/isToolC.png"
  2568. alt=""
  2569. />
  2570. </div>
  2571. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2572. <img src="../../../assets/icon/checkNo.png" alt
  2573. v-if="itemTool.tool.indexOf(3) == -1" />
  2574. <div class="checkDiv" v-else>
  2575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2576. </div>
  2577. </div> -->
  2578. </div>
  2579. <div
  2580. class="tool"
  2581. :class="{
  2582. isToolChoose:
  2583. itemTool.tool.indexOf(48) != -1,
  2584. }"
  2585. @click="
  2586. addTools(48, itemTaskIndex, toolIndex)
  2587. "
  2588. >
  2589. <div
  2590. class="whiteBIcon"
  2591. @click.stop="
  2592. openTools(itemTaskIndex, 48, toolIndex)
  2593. "
  2594. >
  2595. <img
  2596. src="../../../assets/icon/fourthToolList/table.png"
  2597. alt
  2598. />
  2599. <div style="margin: 5px 0">表格</div>
  2600. </div>
  2601. <div class="noCTool">
  2602. <img
  2603. src="../../../assets/icon/new/isToolC.png"
  2604. alt=""
  2605. />
  2606. </div>
  2607. <div
  2608. class="isCTool"
  2609. v-if="itemTool.tool.indexOf(48) != -1"
  2610. >
  2611. <img
  2612. src="../../../assets/icon/new/isToolC.png"
  2613. alt=""
  2614. />
  2615. </div>
  2616. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2617. <img src="../../../assets/icon/checkNo.png" alt
  2618. v-if="itemTool.tool.indexOf(48) == -1" />
  2619. <div class="checkDiv" v-else>
  2620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2621. </div>
  2622. </div> -->
  2623. </div>
  2624. </div>
  2625. <div
  2626. class="toolSort"
  2627. v-if="itemTool.toolType == 6"
  2628. >
  2629. <div
  2630. class="tool"
  2631. :class="{
  2632. isToolChoose:
  2633. itemTool.tool.indexOf(49) != -1,
  2634. }"
  2635. @click="
  2636. addTools(49, itemTaskIndex, toolIndex)
  2637. "
  2638. >
  2639. <div
  2640. class="whiteBIcon"
  2641. @click.stop="
  2642. openTools(itemTaskIndex, 49, toolIndex)
  2643. "
  2644. >
  2645. <img
  2646. src="../../../assets/icon/fourthToolList/group.png"
  2647. alt
  2648. />
  2649. <div style="margin: 5px 0">学生分组</div>
  2650. </div>
  2651. <div class="noCTool">
  2652. <img
  2653. src="../../../assets/icon/new/isToolC.png"
  2654. alt=""
  2655. />
  2656. </div>
  2657. <div
  2658. class="isCTool"
  2659. v-if="itemTool.tool.indexOf(49) != -1"
  2660. >
  2661. <img
  2662. src="../../../assets/icon/new/isToolC.png"
  2663. alt=""
  2664. />
  2665. </div>
  2666. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2667. <img src="../../../assets/icon/checkNo.png" alt
  2668. v-if="itemTool.tool.indexOf(49) == -1" />
  2669. <div class="checkDiv" v-else>
  2670. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2671. </div>
  2672. </div> -->
  2673. </div>
  2674. </div>
  2675. <div
  2676. class="toolSort"
  2677. v-if="itemTool.toolType == 2"
  2678. >
  2679. <!-- <div class="tool">
  2680. <div
  2681. class="whiteBIcon"
  2682. @click="addTools(5, itemTaskIndex, toolIndex)"
  2683. >
  2684. <img
  2685. src="../../../assets/icon/thirdToolList/score.png"
  2686. alt
  2687. />
  2688. <div style="margin: 5px 0">量规评分</div>
  2689. </div>
  2690. <div
  2691. class="check"
  2692. @click="addTools(5, itemTaskIndex, toolIndex)"
  2693. >
  2694. <img
  2695. src="../../../assets/icon/checkNo.png"
  2696. alt
  2697. v-if="itemTool.tool.indexOf(5) == -1"
  2698. />
  2699. <img
  2700. src="../../../assets/icon/checkedIs.png"
  2701. alt
  2702. v-else
  2703. />
  2704. </div>
  2705. </div>-->
  2706. <div
  2707. class="tool"
  2708. :class="{
  2709. isToolChoose:
  2710. itemTool.tool.indexOf(4) != -1,
  2711. }"
  2712. @click="
  2713. addTools(4, itemTaskIndex, toolIndex)
  2714. "
  2715. >
  2716. <div
  2717. class="whiteBIcon"
  2718. @click.stop="
  2719. openTools(itemTaskIndex, 4, toolIndex)
  2720. "
  2721. >
  2722. <img
  2723. src="../../../assets/icon/thirdToolList/ask.png"
  2724. alt
  2725. />
  2726. <div style="margin: 5px 0">问卷调查</div>
  2727. </div>
  2728. <div class="noCTool">
  2729. <img
  2730. src="../../../assets/icon/new/isToolC.png"
  2731. alt=""
  2732. />
  2733. </div>
  2734. <div
  2735. class="isCTool"
  2736. v-if="itemTool.tool.indexOf(4) != -1"
  2737. >
  2738. <img
  2739. src="../../../assets/icon/new/isToolC.png"
  2740. alt=""
  2741. />
  2742. </div>
  2743. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2744. <img src="../../../assets/icon/checkNo.png" alt
  2745. v-if="itemTool.tool.indexOf(4) == -1" />
  2746. <div class="checkDiv" v-else>
  2747. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2748. </div>
  2749. </div> -->
  2750. </div>
  2751. <div
  2752. class="tool"
  2753. :class="{
  2754. isToolChoose:
  2755. itemTool.tool.indexOf(45) != -1,
  2756. }"
  2757. @click="
  2758. addTools(45, itemTaskIndex, toolIndex)
  2759. "
  2760. >
  2761. <div
  2762. class="whiteBIcon"
  2763. @click="
  2764. openTools(itemTaskIndex, 45, toolIndex)
  2765. "
  2766. >
  2767. <img
  2768. src="../../../assets/icon/thirdToolList/choose.png"
  2769. alt
  2770. />
  2771. <div style="margin: 5px 0">选择题</div>
  2772. </div>
  2773. <div class="noCTool">
  2774. <img
  2775. src="../../../assets/icon/new/isToolC.png"
  2776. alt=""
  2777. />
  2778. </div>
  2779. <div
  2780. class="isCTool"
  2781. v-if="itemTool.tool.indexOf(45) != -1"
  2782. >
  2783. <img
  2784. src="../../../assets/icon/new/isToolC.png"
  2785. alt=""
  2786. />
  2787. </div>
  2788. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2789. <img src="../../../assets/icon/checkNo.png" alt
  2790. v-if="itemTool.tool.indexOf(45) == -1" />
  2791. <div class="checkDiv" v-else>
  2792. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2793. </div>
  2794. </div> -->
  2795. </div>
  2796. <div
  2797. class="tool"
  2798. :class="{
  2799. isToolChoose:
  2800. itemTool.tool.indexOf(15) != -1,
  2801. }"
  2802. @click="
  2803. addTools(15, itemTaskIndex, toolIndex)
  2804. "
  2805. >
  2806. <div
  2807. class="whiteBIcon"
  2808. @click.stop="
  2809. openTools(itemTaskIndex, 15, toolIndex)
  2810. "
  2811. >
  2812. <img
  2813. src="../../../assets/icon/thirdToolList/answer.png"
  2814. alt
  2815. />
  2816. <div style="margin: 5px 0">问答</div>
  2817. </div>
  2818. <div class="noCTool">
  2819. <img
  2820. src="../../../assets/icon/new/isToolC.png"
  2821. alt=""
  2822. />
  2823. </div>
  2824. <div
  2825. class="isCTool"
  2826. v-if="itemTool.tool.indexOf(15) != -1"
  2827. >
  2828. <img
  2829. src="../../../assets/icon/new/isToolC.png"
  2830. alt=""
  2831. />
  2832. </div>
  2833. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2834. <img src="../../../assets/icon/checkNo.png" alt
  2835. v-if="itemTool.tool.indexOf(15) == -1" />
  2836. <div class="checkDiv" v-else>
  2837. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2838. </div>
  2839. </div> -->
  2840. </div>
  2841. <div
  2842. class="tool"
  2843. :class="{
  2844. isToolChoose:
  2845. itemTool.tool.indexOf(16) != -1,
  2846. }"
  2847. @click="
  2848. addTools(16, itemTaskIndex, toolIndex)
  2849. "
  2850. >
  2851. <div
  2852. class="whiteBIcon"
  2853. @click.stop="
  2854. addTools(16, itemTaskIndex, toolIndex)
  2855. "
  2856. >
  2857. <img
  2858. src="../../../assets/icon/thirdToolList/work.png"
  2859. alt
  2860. />
  2861. <div style="margin: 5px 0">作业提交</div>
  2862. </div>
  2863. <div class="noCTool">
  2864. <img
  2865. src="../../../assets/icon/new/isToolC.png"
  2866. alt=""
  2867. />
  2868. </div>
  2869. <div
  2870. class="isCTool"
  2871. v-if="itemTool.tool.indexOf(16) != -1"
  2872. >
  2873. <img
  2874. src="../../../assets/icon/new/isToolC.png"
  2875. alt=""
  2876. />
  2877. </div>
  2878. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2879. <img src="../../../assets/icon/checkNo.png" alt
  2880. v-if="itemTool.tool.indexOf(16) == -1" />
  2881. <div class="checkDiv" v-else>
  2882. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2883. </div>
  2884. </div> -->
  2885. </div>
  2886. <div
  2887. class="tool"
  2888. :class="{
  2889. isToolChoose:
  2890. itemTool.tool.indexOf(50) != -1,
  2891. }"
  2892. @click="
  2893. addTools(50, itemTaskIndex, toolIndex)
  2894. "
  2895. >
  2896. <div
  2897. class="whiteBIcon"
  2898. @click.stop="
  2899. addTools(50, itemTaskIndex, toolIndex)
  2900. "
  2901. >
  2902. <img
  2903. src="../../../assets/icon/thirdToolList/plwork.png"
  2904. alt
  2905. />
  2906. <div style="margin: 5px 0">批量上传</div>
  2907. </div>
  2908. <div class="noCTool">
  2909. <img
  2910. src="../../../assets/icon/new/isToolC.png"
  2911. alt=""
  2912. />
  2913. </div>
  2914. <div
  2915. class="isCTool"
  2916. v-if="itemTool.tool.indexOf(50) != -1"
  2917. >
  2918. <img
  2919. src="../../../assets/icon/new/isToolC.png"
  2920. alt=""
  2921. />
  2922. </div>
  2923. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2924. <img src="../../../assets/icon/checkNo.png" alt
  2925. v-if="itemTool.tool.indexOf(50) == -1" />
  2926. <div class="checkDiv" v-else>
  2927. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2928. </div>
  2929. </div> -->
  2930. </div>
  2931. <!-- <div class="tool">
  2932. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2933. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2934. <div style="margin: 5px 0">个人评价</div>
  2935. </div>
  2936. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2937. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2938. <div class="checkDiv" v-else>
  2939. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2940. </div>
  2941. </div>
  2942. </div> -->
  2943. <div
  2944. class="tool"
  2945. :class="{
  2946. isToolChoose:
  2947. itemTool.tool.indexOf(41) != -1,
  2948. }"
  2949. @click="
  2950. addTools(41, itemTaskIndex, toolIndex)
  2951. "
  2952. >
  2953. <div
  2954. class="whiteBIcon"
  2955. @click.stop="
  2956. openTools(itemTaskIndex, 41, toolIndex)
  2957. "
  2958. >
  2959. <img
  2960. src="../../../assets/icon/thirdToolList/select.png"
  2961. alt
  2962. />
  2963. <div style="margin: 5px 0">选择匹配</div>
  2964. </div>
  2965. <div class="noCTool">
  2966. <img
  2967. src="../../../assets/icon/new/isToolC.png"
  2968. alt=""
  2969. />
  2970. </div>
  2971. <div
  2972. class="isCTool"
  2973. v-if="itemTool.tool.indexOf(41) != -1"
  2974. >
  2975. <img
  2976. src="../../../assets/icon/new/isToolC.png"
  2977. alt=""
  2978. />
  2979. </div>
  2980. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2981. <img src="../../../assets/icon/checkNo.png" alt
  2982. v-if="itemTool.tool.indexOf(41) == -1" />
  2983. <div class="checkDiv" v-else>
  2984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2985. </div>
  2986. </div> -->
  2987. </div>
  2988. <div
  2989. class="tool"
  2990. :class="{
  2991. isToolChoose:
  2992. itemTool.tool.indexOf(47) != -1,
  2993. }"
  2994. @click="
  2995. addTools(47, itemTaskIndex, toolIndex)
  2996. "
  2997. >
  2998. <div
  2999. class="whiteBIcon"
  3000. @click.stop="
  3001. openTools(itemTaskIndex, 47, toolIndex)
  3002. "
  3003. >
  3004. <img
  3005. src="../../../assets/icon/fourthToolList/conSentences.png"
  3006. alt
  3007. />
  3008. <div style="margin: 5px 0">排序</div>
  3009. </div>
  3010. <div class="noCTool">
  3011. <img
  3012. src="../../../assets/icon/new/isToolC.png"
  3013. alt=""
  3014. />
  3015. </div>
  3016. <div
  3017. class="isCTool"
  3018. v-if="itemTool.tool.indexOf(47) != -1"
  3019. >
  3020. <img
  3021. src="../../../assets/icon/new/isToolC.png"
  3022. alt=""
  3023. />
  3024. </div>
  3025. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3026. <img src="../../../assets/icon/checkNo.png" alt
  3027. v-if="itemTool.tool.indexOf(47) == -1" />
  3028. <div class="checkDiv" v-else>
  3029. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3030. </div>
  3031. </div> -->
  3032. </div>
  3033. <!-- <div class="tool">
  3034. <div
  3035. class="whiteBIcon"
  3036. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3037. >
  3038. <img
  3039. src="../../../assets/icon/thirdToolList/mp3.png"
  3040. alt
  3041. />
  3042. <div style="margin: 5px 0">上传音频</div>
  3043. </div>
  3044. <div
  3045. class="check"
  3046. @click="addTools(42, itemTaskIndex, toolIndex)"
  3047. >
  3048. <img
  3049. src="../../../assets/icon/checkNo.png"
  3050. alt
  3051. v-if="itemTool.tool.indexOf(42) == -1"
  3052. />
  3053. <img
  3054. src="../../../assets/icon/checkedIs.png"
  3055. alt
  3056. v-else
  3057. />
  3058. </div>
  3059. </div> -->
  3060. </div>
  3061. <div
  3062. class="toolSort"
  3063. v-if="itemTool.toolType == 3"
  3064. >
  3065. <div
  3066. class="tool"
  3067. :class="{
  3068. isToolChoose:
  3069. itemTool.tool.indexOf(18) != -1,
  3070. }"
  3071. @click="
  3072. addTools(18, itemTaskIndex, toolIndex)
  3073. "
  3074. >
  3075. <div
  3076. class="whiteBIcon"
  3077. @click.stop="
  3078. addTools(18, itemTaskIndex, toolIndex)
  3079. "
  3080. >
  3081. <img
  3082. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3083. alt
  3084. />
  3085. <div style="margin: 5px 0">训练平台</div>
  3086. </div>
  3087. <div class="noCTool">
  3088. <img
  3089. src="../../../assets/icon/new/isToolC.png"
  3090. alt=""
  3091. />
  3092. </div>
  3093. <div
  3094. class="isCTool"
  3095. v-if="itemTool.tool.indexOf(18) != -1"
  3096. >
  3097. <img
  3098. src="../../../assets/icon/new/isToolC.png"
  3099. alt=""
  3100. />
  3101. </div>
  3102. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3103. <img src="../../../assets/icon/checkNo.png" alt
  3104. v-if="itemTool.tool.indexOf(18) == -1" />
  3105. <div class="checkDiv" v-else>
  3106. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3107. </div>
  3108. </div> -->
  3109. </div>
  3110. <div
  3111. class="tool"
  3112. :class="{
  3113. isToolChoose:
  3114. itemTool.tool.indexOf(21) != -1,
  3115. }"
  3116. @click="
  3117. addTools(21, itemTaskIndex, toolIndex)
  3118. "
  3119. >
  3120. <div
  3121. class="whiteBIcon"
  3122. @click.stop="
  3123. addTools(21, itemTaskIndex, toolIndex)
  3124. "
  3125. >
  3126. <img
  3127. src="../../../assets/icon/fourthToolList/program.png"
  3128. alt
  3129. />
  3130. <div style="margin: 5px 0">
  3131. AIoT Blockly
  3132. </div>
  3133. </div>
  3134. <div class="noCTool">
  3135. <img
  3136. src="../../../assets/icon/new/isToolC.png"
  3137. alt=""
  3138. />
  3139. </div>
  3140. <div
  3141. class="isCTool"
  3142. v-if="itemTool.tool.indexOf(21) != -1"
  3143. >
  3144. <img
  3145. src="../../../assets/icon/new/isToolC.png"
  3146. alt=""
  3147. />
  3148. </div>
  3149. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3150. <img src="../../../assets/icon/checkNo.png" alt
  3151. v-if="itemTool.tool.indexOf(21) == -1" />
  3152. <div class="checkDiv" v-else>
  3153. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3154. </div>
  3155. </div> -->
  3156. </div>
  3157. <!-- <div class="tool">
  3158. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3159. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3160. <div style="margin: 5px 0">AI体验</div>
  3161. </div>
  3162. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3163. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3164. <div class="checkDiv" v-else>
  3165. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3166. </div>
  3167. </div>
  3168. </div> -->
  3169. <div
  3170. class="tool"
  3171. :class="{
  3172. isToolChoose:
  3173. itemTool.tool.indexOf(23) != -1,
  3174. }"
  3175. @click="
  3176. addTools(23, itemTaskIndex, toolIndex)
  3177. "
  3178. >
  3179. <div
  3180. class="whiteBIcon"
  3181. @click.stop="
  3182. addTools(23, itemTaskIndex, toolIndex)
  3183. "
  3184. >
  3185. <img
  3186. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3187. alt
  3188. />
  3189. <div style="margin: 5px 0">AI Python</div>
  3190. </div>
  3191. <div class="noCTool">
  3192. <img
  3193. src="../../../assets/icon/new/isToolC.png"
  3194. alt=""
  3195. />
  3196. </div>
  3197. <div
  3198. class="isCTool"
  3199. v-if="itemTool.tool.indexOf(23) != -1"
  3200. >
  3201. <img
  3202. src="../../../assets/icon/new/isToolC.png"
  3203. alt=""
  3204. />
  3205. </div>
  3206. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3207. <img src="../../../assets/icon/checkNo.png" alt
  3208. v-if="itemTool.tool.indexOf(23) == -1" />
  3209. <div class="checkDiv" v-else>
  3210. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3211. </div>
  3212. </div> -->
  3213. </div>
  3214. <div
  3215. class="tool"
  3216. :class="{
  3217. isToolChoose:
  3218. itemTool.tool.indexOf(24) != -1,
  3219. }"
  3220. @click="
  3221. addTools(24, itemTaskIndex, toolIndex)
  3222. "
  3223. >
  3224. <div
  3225. class="whiteBIcon"
  3226. @click.stop="
  3227. addTools(24, itemTaskIndex, toolIndex)
  3228. "
  3229. >
  3230. <img
  3231. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3232. alt
  3233. />
  3234. <div style="margin: 5px 0">
  3235. AI Blockly
  3236. </div>
  3237. </div>
  3238. <div class="noCTool">
  3239. <img
  3240. src="../../../assets/icon/new/isToolC.png"
  3241. alt=""
  3242. />
  3243. </div>
  3244. <div
  3245. class="isCTool"
  3246. v-if="itemTool.tool.indexOf(24) != -1"
  3247. >
  3248. <img
  3249. src="../../../assets/icon/new/isToolC.png"
  3250. alt=""
  3251. />
  3252. </div>
  3253. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3254. <img src="../../../assets/icon/checkNo.png" alt
  3255. v-if="itemTool.tool.indexOf(24) == -1" />
  3256. <div class="checkDiv" v-else>
  3257. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3258. </div>
  3259. </div> -->
  3260. </div>
  3261. <div
  3262. class="tool"
  3263. :class="{
  3264. isToolChoose:
  3265. itemTool.tool.indexOf(32) != -1,
  3266. }"
  3267. @click="
  3268. addTools(32, itemTaskIndex, toolIndex)
  3269. "
  3270. >
  3271. <div
  3272. class="whiteBIcon"
  3273. @click.stop="
  3274. addTools(32, itemTaskIndex, toolIndex)
  3275. "
  3276. >
  3277. <img
  3278. src="../../../assets/icon/thirdToolList/code.png"
  3279. alt
  3280. />
  3281. <div style="margin: 5px 0">源码编辑</div>
  3282. </div>
  3283. <div class="noCTool">
  3284. <img
  3285. src="../../../assets/icon/new/isToolC.png"
  3286. alt=""
  3287. />
  3288. </div>
  3289. <div
  3290. class="isCTool"
  3291. v-if="itemTool.tool.indexOf(32) != -1"
  3292. >
  3293. <img
  3294. src="../../../assets/icon/new/isToolC.png"
  3295. alt=""
  3296. />
  3297. </div>
  3298. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3299. <img src="../../../assets/icon/checkNo.png" alt
  3300. v-if="itemTool.tool.indexOf(32) == -1" />
  3301. <div class="checkDiv" v-else>
  3302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3303. </div>
  3304. </div> -->
  3305. </div>
  3306. <div
  3307. class="tool"
  3308. :class="{
  3309. isToolChoose:
  3310. itemTool.tool.indexOf(57) != -1,
  3311. }"
  3312. @click="
  3313. addTools(57, itemTaskIndex, toolIndex)
  3314. "
  3315. >
  3316. <div
  3317. class="whiteBIcon"
  3318. @click.stop="
  3319. openTools(itemTaskIndex, 57, toolIndex)
  3320. "
  3321. >
  3322. <img
  3323. src="../../../assets/icon/fourthToolList/cocopi.png"
  3324. alt
  3325. />
  3326. <div style="margin: 5px 0">CocoPi</div>
  3327. </div>
  3328. <div class="noCTool">
  3329. <img
  3330. src="../../../assets/icon/new/isToolC.png"
  3331. alt=""
  3332. />
  3333. </div>
  3334. <div
  3335. class="isCTool"
  3336. v-if="itemTool.tool.indexOf(57) != -1"
  3337. >
  3338. <img
  3339. src="../../../assets/icon/new/isToolC.png"
  3340. alt=""
  3341. />
  3342. </div>
  3343. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3344. <img src="../../../assets/icon/checkNo.png" alt
  3345. v-if="itemTool.tool.indexOf(57) == -1" />
  3346. <div class="checkDiv" v-else>
  3347. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3348. </div>
  3349. </div> -->
  3350. </div>
  3351. <div
  3352. class="tool"
  3353. :class="{
  3354. isToolChoose:
  3355. itemTool.tool.indexOf(63) != -1,
  3356. }"
  3357. @click="
  3358. addTools(63, itemTaskIndex, toolIndex)
  3359. "
  3360. >
  3361. <div
  3362. class="whiteBIcon"
  3363. @click.stop="
  3364. addTools(63, itemTaskIndex, toolIndex)
  3365. "
  3366. >
  3367. <img
  3368. src="../../../assets/icon/fourthToolList/Wood.png"
  3369. alt
  3370. />
  3371. <div style="margin: 5px 0">海龟编程</div>
  3372. </div>
  3373. <div class="noCTool">
  3374. <img
  3375. src="../../../assets/icon/new/isToolC.png"
  3376. alt=""
  3377. />
  3378. </div>
  3379. <div
  3380. class="isCTool"
  3381. v-if="itemTool.tool.indexOf(63) != -1"
  3382. >
  3383. <img
  3384. src="../../../assets/icon/new/isToolC.png"
  3385. alt=""
  3386. />
  3387. </div>
  3388. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3389. <img src="../../../assets/icon/checkNo.png" alt
  3390. v-if="itemTool.tool.indexOf(63) == -1" />
  3391. <div class="checkDiv" v-else>
  3392. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3393. </div>
  3394. </div> -->
  3395. </div>
  3396. <div
  3397. class="tool"
  3398. :class="{
  3399. isToolChoose:
  3400. itemTool.tool.indexOf(71) != -1,
  3401. }"
  3402. @click="
  3403. addTools(71, itemTaskIndex, toolIndex)
  3404. "
  3405. >
  3406. <div
  3407. class="whiteBIcon"
  3408. @click.stop="
  3409. addTools(71, itemTaskIndex, toolIndex)
  3410. "
  3411. >
  3412. <img
  3413. src="../../../assets/icon/fourthToolList/chatgpt.png"
  3414. alt
  3415. />
  3416. <div style="margin: 5px 0">AI智能体</div>
  3417. </div>
  3418. <div class="noCTool">
  3419. <img
  3420. src="../../../assets/icon/new/isToolC.png"
  3421. alt=""
  3422. />
  3423. </div>
  3424. <div
  3425. class="isCTool"
  3426. v-if="itemTool.tool.indexOf(71) != -1"
  3427. >
  3428. <img
  3429. src="../../../assets/icon/new/isToolC.png"
  3430. alt=""
  3431. />
  3432. </div>
  3433. </div>
  3434. </div>
  3435. <div
  3436. class="toolSort"
  3437. v-if="itemTool.toolType == 7"
  3438. >
  3439. <div
  3440. class="tool"
  3441. :class="{
  3442. isToolChoose:
  3443. itemTool.tool.indexOf(40) != -1,
  3444. }"
  3445. @click.stop="
  3446. addTools(40, itemTaskIndex, toolIndex)
  3447. "
  3448. >
  3449. <div
  3450. class="whiteBIcon"
  3451. @click.stop="
  3452. openTools(itemTaskIndex, 40, toolIndex)
  3453. "
  3454. >
  3455. <img
  3456. src="../../../assets/icon/thirdToolList/eval.png"
  3457. alt
  3458. />
  3459. <div style="margin: 5px 0">个人评价</div>
  3460. </div>
  3461. <div class="noCTool">
  3462. <img
  3463. src="../../../assets/icon/new/isToolC.png"
  3464. alt=""
  3465. />
  3466. </div>
  3467. <div
  3468. class="isCTool"
  3469. v-if="itemTool.tool.indexOf(40) != -1"
  3470. >
  3471. <img
  3472. src="../../../assets/icon/new/isToolC.png"
  3473. alt=""
  3474. />
  3475. </div>
  3476. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3477. <img src="../../../assets/icon/checkNo.png" alt
  3478. v-if="itemTool.tool.indexOf(40) == -1" />
  3479. <div class="checkDiv" v-else>
  3480. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3481. </div>
  3482. </div> -->
  3483. </div>
  3484. </div>
  3485. <div
  3486. class="toolSort"
  3487. v-if="itemTool.toolType == 5"
  3488. >
  3489. <div
  3490. class="tool"
  3491. :class="{
  3492. isToolChoose:
  3493. itemTool.tool.indexOf(28) != -1,
  3494. }"
  3495. @click="
  3496. addTools(28, itemTaskIndex, toolIndex)
  3497. "
  3498. >
  3499. <div
  3500. class="whiteBIcon"
  3501. @click.stop="
  3502. addTools(28, itemTaskIndex, toolIndex)
  3503. "
  3504. >
  3505. <img
  3506. src="../../../assets/icon/secondToolList/translation.png"
  3507. alt
  3508. />
  3509. <div style="margin: 5px 0">翻译</div>
  3510. </div>
  3511. <div class="noCTool">
  3512. <img
  3513. src="../../../assets/icon/new/isToolC.png"
  3514. alt=""
  3515. />
  3516. </div>
  3517. <div
  3518. class="isCTool"
  3519. v-if="itemTool.tool.indexOf(28) != -1"
  3520. >
  3521. <img
  3522. src="../../../assets/icon/new/isToolC.png"
  3523. alt=""
  3524. />
  3525. </div>
  3526. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3527. <img src="../../../assets/icon/checkNo.png" alt
  3528. v-if="itemTool.tool.indexOf(28) == -1" />
  3529. <div class="checkDiv" v-else>
  3530. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3531. </div>
  3532. </div> -->
  3533. </div>
  3534. <div
  3535. class="tool"
  3536. :class="{
  3537. isToolChoose:
  3538. itemTool.tool.indexOf(31) != -1,
  3539. }"
  3540. @click="
  3541. addTools(31, itemTaskIndex, toolIndex)
  3542. "
  3543. >
  3544. <div
  3545. class="whiteBIcon"
  3546. @click.stop="
  3547. addTools(31, itemTaskIndex, toolIndex)
  3548. "
  3549. >
  3550. <img
  3551. src="../../../assets/icon/secondToolList/networkPanel.png"
  3552. alt
  3553. />
  3554. <div style="margin: 5px 0">数字画板</div>
  3555. </div>
  3556. <div class="noCTool">
  3557. <img
  3558. src="../../../assets/icon/new/isToolC.png"
  3559. alt=""
  3560. />
  3561. </div>
  3562. <div
  3563. class="isCTool"
  3564. v-if="itemTool.tool.indexOf(31) != -1"
  3565. >
  3566. <img
  3567. src="../../../assets/icon/new/isToolC.png"
  3568. alt=""
  3569. />
  3570. </div>
  3571. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3572. <img src="../../../assets/icon/checkNo.png" alt
  3573. v-if="itemTool.tool.indexOf(31) == -1" />
  3574. <div class="checkDiv" v-else>
  3575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3576. </div>
  3577. </div> -->
  3578. </div>
  3579. <div
  3580. class="tool"
  3581. :class="{
  3582. isToolChoose:
  3583. itemTool.tool.indexOf(39) != -1,
  3584. }"
  3585. @click="
  3586. addTools(39, itemTaskIndex, toolIndex)
  3587. "
  3588. >
  3589. <div
  3590. class="whiteBIcon"
  3591. @click.stop="
  3592. addTools(39, itemTaskIndex, toolIndex)
  3593. "
  3594. >
  3595. <img
  3596. src="../../../assets/icon/secondToolList/GeoGebra.png"
  3597. alt
  3598. />
  3599. <div style="margin: 5px 0">GeoGebra</div>
  3600. </div>
  3601. <div class="noCTool">
  3602. <img
  3603. src="../../../assets/icon/new/isToolC.png"
  3604. alt=""
  3605. />
  3606. </div>
  3607. <div
  3608. class="isCTool"
  3609. v-if="itemTool.tool.indexOf(39) != -1"
  3610. >
  3611. <img
  3612. src="../../../assets/icon/new/isToolC.png"
  3613. alt=""
  3614. />
  3615. </div>
  3616. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3617. <img src="../../../assets/icon/checkNo.png" alt
  3618. v-if="itemTool.tool.indexOf(39) == -1" />
  3619. <div class="checkDiv" v-else>
  3620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3621. </div>
  3622. </div> -->
  3623. </div>
  3624. <div
  3625. class="tool"
  3626. :class="{
  3627. isToolChoose:
  3628. itemTool.tool.indexOf(66) != -1,
  3629. }"
  3630. @click="
  3631. addTools(66, itemTaskIndex, toolIndex)
  3632. "
  3633. >
  3634. <div
  3635. class="whiteBIcon"
  3636. @click.stop="
  3637. addTools(66, itemTaskIndex, toolIndex)
  3638. "
  3639. >
  3640. <img
  3641. src="../../../assets/icon/secondToolList/formulaEdi.png"
  3642. alt
  3643. />
  3644. <div style="margin: 5px 0">公式编辑</div>
  3645. </div>
  3646. <div class="noCTool">
  3647. <img
  3648. src="../../../assets/icon/new/isToolC.png"
  3649. alt=""
  3650. />
  3651. </div>
  3652. <div
  3653. class="isCTool"
  3654. v-if="itemTool.tool.indexOf(66) != -1"
  3655. >
  3656. <img
  3657. src="../../../assets/icon/new/isToolC.png"
  3658. alt=""
  3659. />
  3660. </div>
  3661. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3662. <img src="../../../assets/icon/checkNo.png" alt
  3663. v-if="itemTool.tool.indexOf(66) == -1" />
  3664. <div class="checkDiv" v-else>
  3665. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3666. </div>
  3667. </div> -->
  3668. </div>
  3669. <!-- <div class="tool">
  3670. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3671. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3672. <div style="margin: 5px 0">分子结构</div>
  3673. </div>
  3674. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3675. <img src="../../../assets/icon/checkNo.png" alt
  3676. v-if="itemTool.tool.indexOf(67) == -1" />
  3677. <div class="checkDiv" v-else>
  3678. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3679. </div>
  3680. </div>
  3681. </div> -->
  3682. <!-- <div
  3683. class="tool"
  3684. :class="{
  3685. isToolChoose:
  3686. itemTool.tool.indexOf(68) != -1,
  3687. }"
  3688. @click="
  3689. addTools(68, itemTaskIndex, toolIndex)
  3690. "
  3691. >
  3692. <div
  3693. class="whiteBIcon"
  3694. @click.stop="
  3695. addTools(68, itemTaskIndex, toolIndex)
  3696. "
  3697. >
  3698. <img
  3699. src="../../../assets/icon/secondToolList/timeAxis.png"
  3700. alt
  3701. />
  3702. <div style="margin: 5px 0">时间轴</div>
  3703. </div>
  3704. <div class="noCTool">
  3705. <img
  3706. src="../../../assets/icon/new/isToolC.png"
  3707. alt=""
  3708. />
  3709. </div>
  3710. <div
  3711. class="isCTool"
  3712. v-if="itemTool.tool.indexOf(68) != -1"
  3713. >
  3714. <img
  3715. src="../../../assets/icon/new/isToolC.png"
  3716. alt=""
  3717. />
  3718. </div> -->
  3719. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3720. <img src="../../../assets/icon/checkNo.png" alt
  3721. v-if="itemTool.tool.indexOf(68) == -1" />
  3722. <div class="checkDiv" v-else>
  3723. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3724. </div>
  3725. </div> -->
  3726. <!-- </div> -->
  3727. <div
  3728. class="tool"
  3729. :class="{
  3730. isToolChoose:
  3731. itemTool.tool.indexOf(69) != -1,
  3732. }"
  3733. @click="
  3734. addTools(69, itemTaskIndex, toolIndex)
  3735. "
  3736. >
  3737. <div
  3738. class="whiteBIcon"
  3739. @click.stop="
  3740. openTools(itemTaskIndex, 69, toolIndex)
  3741. "
  3742. >
  3743. <img
  3744. src="../../../assets/icon/thirdToolList/english.png"
  3745. alt
  3746. />
  3747. <div style="margin: 5px 0">英语写作</div>
  3748. </div>
  3749. <div class="noCTool">
  3750. <img
  3751. src="../../../assets/icon/new/isToolC.png"
  3752. alt=""
  3753. />
  3754. </div>
  3755. <div
  3756. class="isCTool"
  3757. v-if="itemTool.tool.indexOf(69) != -1"
  3758. >
  3759. <img
  3760. src="../../../assets/icon/new/isToolC.png"
  3761. alt=""
  3762. />
  3763. </div>
  3764. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3765. <img src="../../../assets/icon/checkNo.png" alt
  3766. v-if="itemTool.tool.indexOf(4) == -1" />
  3767. <div class="checkDiv" v-else>
  3768. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3769. </div>
  3770. </div> -->
  3771. </div>
  3772. <div
  3773. class="tool"
  3774. :class="{
  3775. isToolChoose:
  3776. itemTool.tool.indexOf(70) != -1,
  3777. }"
  3778. @click="
  3779. addTools(70, itemTaskIndex, toolIndex)
  3780. "
  3781. >
  3782. <div
  3783. class="whiteBIcon"
  3784. @click.stop="
  3785. openTools(itemTaskIndex, 70, toolIndex)
  3786. "
  3787. >
  3788. <img
  3789. src="../../../assets/icon/thirdToolList/englishVoice.png"
  3790. alt
  3791. />
  3792. <div style="margin: 5px 0">英语口语</div>
  3793. </div>
  3794. <div class="noCTool">
  3795. <img
  3796. src="../../../assets/icon/new/isToolC.png"
  3797. alt=""
  3798. />
  3799. </div>
  3800. <div
  3801. class="isCTool"
  3802. v-if="itemTool.tool.indexOf(70) != -1"
  3803. >
  3804. <img
  3805. src="../../../assets/icon/new/isToolC.png"
  3806. alt=""
  3807. />
  3808. </div>
  3809. </div>
  3810. <!-- <div class="tool">
  3811. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3812. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3813. <div style="margin: 5px 0">翻译</div>
  3814. </div>
  3815. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3816. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3817. <div class="checkDiv" v-else>
  3818. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. <div class="tool">
  3823. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3824. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3825. <div style="margin: 5px 0">魔盒识字</div>
  3826. </div>
  3827. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3828. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3829. <div class="checkDiv" v-else>
  3830. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3831. </div>
  3832. </div>
  3833. </div>
  3834. <div class="tool">
  3835. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3836. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3837. <div style="margin: 5px 0">24点</div>
  3838. </div>
  3839. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3840. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3841. <div class="checkDiv" v-else>
  3842. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. <div class="tool">
  3847. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3848. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3849. <div style="margin: 5px 0">数学画板</div>
  3850. </div>
  3851. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3852. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3853. <div class="checkDiv" v-else>
  3854. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3855. </div>
  3856. </div>
  3857. </div>
  3858. <div class="tool">
  3859. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3860. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3861. <div style="margin: 5px 0">GeoGebra</div>
  3862. </div>
  3863. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3864. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3865. <div class="checkDiv" v-else>
  3866. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div class="tool">
  3871. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3872. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3873. <div style="margin: 5px 0">模拟驾驶</div>
  3874. </div>
  3875. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3876. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3877. <div class="checkDiv" v-else>
  3878. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3879. </div>
  3880. </div>
  3881. </div>
  3882. <div class="tool">
  3883. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3884. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3885. <div style="margin: 5px 0">路径搜索</div>
  3886. </div>
  3887. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3888. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3889. <div class="checkDiv" v-else>
  3890. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. <div class="tool">
  3895. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3896. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3897. <div style="margin: 5px 0">深度学习</div>
  3898. </div>
  3899. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3900. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3901. <div class="checkDiv" v-else>
  3902. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3903. </div>
  3904. </div>
  3905. </div>
  3906. <div class="tool">
  3907. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3908. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3909. <div style="margin: 5px 0">全历史</div>
  3910. </div>
  3911. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3912. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3913. <div class="checkDiv" v-else>
  3914. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3915. </div>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. <div class="toolSort" v-if="itemTool.toolType == 4">
  3920. <div class="tool">
  3921. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3922. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3923. <div style="margin: 5px 0">课程设计</div>
  3924. </div>
  3925. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3926. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3927. <div class="checkDiv" v-else>
  3928. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3929. </div>
  3930. </div>
  3931. </div>
  3932. <div class="tool">
  3933. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3934. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3935. <div style="margin: 5px 0">目标管理</div>
  3936. </div>
  3937. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3938. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3939. <div class="checkDiv" v-else>
  3940. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3941. </div>
  3942. </div>
  3943. </div> -->
  3944. <!-- <div class="tool">
  3945. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3946. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3947. <div style="margin: 5px 0">汉字宫</div>
  3948. </div>
  3949. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3950. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -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. </div>
  3958. <!-- v-show="!itemTool.isFold3" -->
  3959. <div>
  3960. <textarea
  3961. rows="2"
  3962. v-autoHeight="70"
  3963. type="text"
  3964. placeholder="添加工具描述"
  3965. class="binfo_input"
  3966. style="
  3967. margin: 0 0 20px 0;
  3968. width: 100% !important;
  3969. "
  3970. v-model="itemTool.toolDetail"
  3971. ></textarea>
  3972. </div>
  3973. </div>
  3974. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3975. <div class="addToolImg">
  3976. <img src="../../../assets/icon/add.png" alt />
  3977. </div>
  3978. <div>添加工具</div>
  3979. </div> -->
  3980. <button
  3981. class="c_pub_button_add pub_btn_tool_img"
  3982. @click="addToolFun(itemTaskIndex)"
  3983. style="
  3984. margin: 0 auto;
  3985. padding: 0 30px;
  3986. height: 45px;
  3987. "
  3988. >
  3989. 添加工具
  3990. </button>
  3991. </div>
  3992. </div>
  3993. <div
  3994. v-else-if="
  3995. unitJson[unitIndex].easy == 2 ||
  3996. unitJson[unitIndex].easy == 4
  3997. "
  3998. class="toolChoose"
  3999. style="padding: 0 0 40px"
  4000. >
  4001. <div class="tools">
  4002. <div
  4003. class="leftTools"
  4004. style="width: 100%"
  4005. v-for="(
  4006. itemTool, toolIndex
  4007. ) in itemTask.toolChoose"
  4008. :key="toolIndex"
  4009. >
  4010. <div>
  4011. <textarea
  4012. rows="3"
  4013. type="text"
  4014. placeholder="添加工具描述"
  4015. class="binfo_input"
  4016. style="
  4017. margin: 0 0 20px 0;
  4018. width: 100% !important;
  4019. "
  4020. v-model="itemTool.toolDetail"
  4021. ></textarea>
  4022. </div>
  4023. <div
  4024. style="
  4025. display: flex;
  4026. flex-direction: row;
  4027. align-items: baseline;
  4028. flex-wrap: nowrap;
  4029. justify-content: flex-start;
  4030. position: relative;
  4031. "
  4032. >
  4033. <div
  4034. style="margin-right: 20px; font-weight: bold"
  4035. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4036. >
  4037. 工具 {{ toolIndex + 1 }} :
  4038. </div>
  4039. <div
  4040. class="remove"
  4041. @click="deleteTool(itemTaskIndex, toolIndex)"
  4042. v-if="itemTask.toolChoose.length > 1"
  4043. style="right: 0"
  4044. ></div>
  4045. </div>
  4046. <div style="min-height: 163px">
  4047. <div class="toolSort">
  4048. <div class="tool">
  4049. <div
  4050. class="whiteBIcon"
  4051. @click="
  4052. openTools(itemTaskIndex, 1, toolIndex)
  4053. "
  4054. >
  4055. <img
  4056. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4057. alt
  4058. />
  4059. <div style="margin: 5px 0">电子白板</div>
  4060. </div>
  4061. <div
  4062. class="check"
  4063. @click="
  4064. addTools(1, itemTaskIndex, toolIndex)
  4065. "
  4066. >
  4067. <img
  4068. src="../../../assets/icon/checkNo.png"
  4069. alt
  4070. v-if="itemTool.tool.indexOf(1) == -1"
  4071. />
  4072. <div class="checkDiv" v-else>
  4073. <img
  4074. src="../../../assets/icon/checkedIs.png"
  4075. alt
  4076. /><span>已选择</span>
  4077. </div>
  4078. </div>
  4079. </div>
  4080. <div class="tool">
  4081. <div
  4082. class="whiteBIcon"
  4083. @click="
  4084. openTools(itemTaskIndex, 52, toolIndex)
  4085. "
  4086. >
  4087. <img
  4088. src="../../../assets/icon/fourthToolList/text.png"
  4089. alt
  4090. />
  4091. <div style="margin: 5px 0">文档</div>
  4092. </div>
  4093. <div
  4094. class="check"
  4095. @click="
  4096. addTools(52, itemTaskIndex, toolIndex)
  4097. "
  4098. >
  4099. <img
  4100. src="../../../assets/icon/checkNo.png"
  4101. alt
  4102. v-if="itemTool.tool.indexOf(52) == -1"
  4103. />
  4104. <div class="checkDiv" v-else>
  4105. <img
  4106. src="../../../assets/icon/checkedIs.png"
  4107. alt
  4108. /><span>已选择</span>
  4109. </div>
  4110. </div>
  4111. </div>
  4112. <div class="tool">
  4113. <div
  4114. class="whiteBIcon"
  4115. @click="
  4116. openTools(itemTaskIndex, 3, toolIndex)
  4117. "
  4118. >
  4119. <img
  4120. src="../../../assets/icon/secondToolList/mindMapping.png"
  4121. alt
  4122. />
  4123. <div style="margin: 5px 0">思维导图</div>
  4124. </div>
  4125. <div
  4126. class="check"
  4127. @click="
  4128. addTools(3, itemTaskIndex, toolIndex)
  4129. "
  4130. >
  4131. <img
  4132. src="../../../assets/icon/checkNo.png"
  4133. alt
  4134. v-if="itemTool.tool.indexOf(3) == -1"
  4135. />
  4136. <div class="checkDiv" v-else>
  4137. <img
  4138. src="../../../assets/icon/checkedIs.png"
  4139. alt
  4140. /><span>已选择</span>
  4141. </div>
  4142. </div>
  4143. </div>
  4144. <div class="tool">
  4145. <div
  4146. class="whiteBIcon"
  4147. @click="
  4148. openTools(itemTaskIndex, 4, toolIndex)
  4149. "
  4150. >
  4151. <img
  4152. src="../../../assets/icon/thirdToolList/ask.png"
  4153. alt
  4154. />
  4155. <div style="margin: 5px 0">问卷调查</div>
  4156. </div>
  4157. <div
  4158. class="check"
  4159. @click="
  4160. addTools(4, itemTaskIndex, toolIndex)
  4161. "
  4162. >
  4163. <img
  4164. src="../../../assets/icon/checkNo.png"
  4165. alt
  4166. v-if="itemTool.tool.indexOf(4) == -1"
  4167. />
  4168. <div class="checkDiv" v-else>
  4169. <img
  4170. src="../../../assets/icon/checkedIs.png"
  4171. alt
  4172. /><span>已选择</span>
  4173. </div>
  4174. </div>
  4175. </div>
  4176. <div class="tool">
  4177. <div
  4178. class="whiteBIcon"
  4179. @click="
  4180. openTools(itemTaskIndex, 45, toolIndex)
  4181. "
  4182. >
  4183. <img
  4184. src="../../../assets/icon/thirdToolList/choose.png"
  4185. alt
  4186. />
  4187. <div style="margin: 5px 0">选择题</div>
  4188. </div>
  4189. <div
  4190. class="check"
  4191. @click="
  4192. addTools(45, itemTaskIndex, toolIndex)
  4193. "
  4194. >
  4195. <img
  4196. src="../../../assets/icon/checkNo.png"
  4197. alt
  4198. v-if="itemTool.tool.indexOf(45) == -1"
  4199. />
  4200. <div class="checkDiv" v-else>
  4201. <img
  4202. src="../../../assets/icon/checkedIs.png"
  4203. alt
  4204. /><span>已选择</span>
  4205. </div>
  4206. </div>
  4207. </div>
  4208. <div class="tool">
  4209. <div
  4210. class="whiteBIcon"
  4211. @click="
  4212. openTools(itemTaskIndex, 15, toolIndex)
  4213. "
  4214. >
  4215. <img
  4216. src="../../../assets/icon/thirdToolList/answer.png"
  4217. alt
  4218. />
  4219. <div style="margin: 5px 0">问答</div>
  4220. </div>
  4221. <div
  4222. class="check"
  4223. @click="
  4224. addTools(15, itemTaskIndex, toolIndex)
  4225. "
  4226. >
  4227. <img
  4228. src="../../../assets/icon/checkNo.png"
  4229. alt
  4230. v-if="itemTool.tool.indexOf(15) == -1"
  4231. />
  4232. <div class="checkDiv" v-else>
  4233. <img
  4234. src="../../../assets/icon/checkedIs.png"
  4235. alt
  4236. /><span>已选择</span>
  4237. </div>
  4238. </div>
  4239. </div>
  4240. <div class="tool">
  4241. <div
  4242. class="whiteBIcon"
  4243. @click="
  4244. addTools(16, itemTaskIndex, toolIndex)
  4245. "
  4246. >
  4247. <img
  4248. src="../../../assets/icon/thirdToolList/work.png"
  4249. alt
  4250. />
  4251. <div style="margin: 5px 0">作业提交</div>
  4252. </div>
  4253. <div
  4254. class="check"
  4255. @click="
  4256. addTools(16, itemTaskIndex, toolIndex)
  4257. "
  4258. >
  4259. <img
  4260. src="../../../assets/icon/checkNo.png"
  4261. alt
  4262. v-if="itemTool.tool.indexOf(16) == -1"
  4263. />
  4264. <div class="checkDiv" v-else>
  4265. <img
  4266. src="../../../assets/icon/checkedIs.png"
  4267. alt
  4268. /><span>已选择</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div class="tool">
  4273. <div
  4274. class="whiteBIcon"
  4275. @click="
  4276. openTools(itemTaskIndex, 50, toolIndex)
  4277. "
  4278. >
  4279. <img
  4280. src="../../../assets/icon/thirdToolList/plwork.png"
  4281. alt
  4282. />
  4283. <div style="margin: 5px 0">批量上传</div>
  4284. </div>
  4285. <div
  4286. class="check"
  4287. @click="
  4288. addTools(50, itemTaskIndex, toolIndex)
  4289. "
  4290. >
  4291. <img
  4292. src="../../../assets/icon/checkNo.png"
  4293. alt
  4294. v-if="itemTool.tool.indexOf(50) == -1"
  4295. />
  4296. <div class="checkDiv" v-else>
  4297. <img
  4298. src="../../../assets/icon/checkedIs.png"
  4299. alt
  4300. /><span>已选择</span>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. <div class="tool">
  4305. <div
  4306. class="whiteBIcon"
  4307. @click="
  4308. openTools(itemTaskIndex, 41, toolIndex)
  4309. "
  4310. >
  4311. <img
  4312. src="../../../assets/icon/thirdToolList/select.png"
  4313. alt
  4314. />
  4315. <div style="margin: 5px 0">选择匹配</div>
  4316. </div>
  4317. <div
  4318. class="check"
  4319. @click="
  4320. addTools(41, itemTaskIndex, toolIndex)
  4321. "
  4322. >
  4323. <img
  4324. src="../../../assets/icon/checkNo.png"
  4325. alt
  4326. v-if="itemTool.tool.indexOf(41) == -1"
  4327. />
  4328. <div class="checkDiv" v-else>
  4329. <img
  4330. src="../../../assets/icon/checkedIs.png"
  4331. alt
  4332. /><span>已选择</span>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. <div class="tool">
  4337. <div
  4338. class="whiteBIcon"
  4339. @click="
  4340. openTools(itemTaskIndex, 47, toolIndex)
  4341. "
  4342. >
  4343. <img
  4344. src="../../../assets/icon/fourthToolList/conSentences.png"
  4345. alt
  4346. />
  4347. <div style="margin: 5px 0">排序</div>
  4348. </div>
  4349. <div
  4350. class="check"
  4351. @click="
  4352. addTools(47, itemTaskIndex, toolIndex)
  4353. "
  4354. >
  4355. <img
  4356. src="../../../assets/icon/checkNo.png"
  4357. alt
  4358. v-if="itemTool.tool.indexOf(47) == -1"
  4359. />
  4360. <div class="checkDiv" v-else>
  4361. <img
  4362. src="../../../assets/icon/checkedIs.png"
  4363. alt
  4364. /><span>已选择</span>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. <div class="tool">
  4369. <div
  4370. class="whiteBIcon"
  4371. @click="
  4372. openTools(itemTaskIndex, 48, toolIndex)
  4373. "
  4374. >
  4375. <img
  4376. src="../../../assets/icon/fourthToolList/table.png"
  4377. alt
  4378. />
  4379. <div style="margin: 5px 0">表格</div>
  4380. </div>
  4381. <div
  4382. class="check"
  4383. @click="
  4384. addTools(48, itemTaskIndex, toolIndex)
  4385. "
  4386. >
  4387. <img
  4388. src="../../../assets/icon/checkNo.png"
  4389. alt
  4390. v-if="itemTool.tool.indexOf(48) == -1"
  4391. />
  4392. <div class="checkDiv" v-else>
  4393. <img
  4394. src="../../../assets/icon/checkedIs.png"
  4395. alt
  4396. /><span>已选择</span>
  4397. </div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4404. <div class="addToolImg">
  4405. <img src="../../../assets/icon/add.png" alt />
  4406. </div>
  4407. <div>添加工具</div>
  4408. </div> -->
  4409. <button
  4410. class="c_pub_button_add pub_btn_tool_img"
  4411. @click="addToolFun(itemTaskIndex)"
  4412. style="margin: 35px auto 20px"
  4413. >
  4414. 添加工具
  4415. </button>
  4416. </div>
  4417. </div>
  4418. <div
  4419. v-else-if="
  4420. unitJson[unitIndex].easy == 1 ||
  4421. (unitJson[unitIndex].easy == 5 &&
  4422. itemTask.taskType == 2)
  4423. "
  4424. class="toolChoose"
  4425. style="padding: 0 0 40px"
  4426. >
  4427. <div class="tools">
  4428. <div
  4429. class="leftTools"
  4430. style="width: 100%; padding: 0 0 15px 0"
  4431. v-for="(
  4432. itemTool, toolIndex
  4433. ) in itemTask.toolChoose"
  4434. :key="toolIndex"
  4435. >
  4436. <div style="min-height: 163px">
  4437. <div class="toolSort">
  4438. <div class="tool">
  4439. <div
  4440. class="whiteBIcon"
  4441. @click="
  4442. openTools(itemTaskIndex, 50, toolIndex)
  4443. "
  4444. >
  4445. <img
  4446. src="../../../assets/icon/thirdToolList/plwork.png"
  4447. alt
  4448. />
  4449. <div style="margin: 5px 0">批量上传</div>
  4450. </div>
  4451. <div
  4452. class="check"
  4453. @click="
  4454. addTools(50, itemTaskIndex, toolIndex)
  4455. "
  4456. >
  4457. <img
  4458. src="../../../assets/icon/checkNo.png"
  4459. alt
  4460. v-if="itemTool.tool.indexOf(50) == -1"
  4461. />
  4462. <div class="checkDiv" v-else>
  4463. <img
  4464. src="../../../assets/icon/checkedIs.png"
  4465. alt
  4466. /><span>已选择</span>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. </div>
  4471. </div>
  4472. </div>
  4473. </div>
  4474. </div>
  4475. <div
  4476. class="elist_css"
  4477. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4478. >
  4479. <div class="elist_title">
  4480. <div
  4481. style="
  4482. display: flex;
  4483. flex-direction: row;
  4484. align-items: center;
  4485. margin: 20px 0;
  4486. "
  4487. >
  4488. <div class="lineTitle clineTitle">评价设置</div>
  4489. <!-- <div class="line" style="width: 90%"></div> -->
  4490. </div>
  4491. </div>
  4492. <div class="mbCss">
  4493. <div
  4494. class="pjCss"
  4495. :style="{
  4496. width: itemTask.isEvaFold
  4497. ? 'calc(100% - 55%)'
  4498. : 'calc(100% - 120px)',
  4499. }"
  4500. >
  4501. <div
  4502. v-if="itemTask.eList && itemTask.eList.length"
  4503. class="elist_input"
  4504. >
  4505. <div
  4506. v-for="(eItem, eIndex) in itemTask.eList"
  4507. :key="eIndex"
  4508. class="elist_input_box"
  4509. >
  4510. <span>评价维度:</span>
  4511. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4512. <input
  4513. type="input"
  4514. v-model="itemTask.eList[eIndex].value"
  4515. placeholder="填写评价维度"
  4516. />
  4517. <!-- </el-tooltip> -->
  4518. <!-- <span>评星等级:</span>
  4519. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4520. disabled></el-rate> -->
  4521. <div
  4522. class="remove"
  4523. @click="
  4524. deletEList(
  4525. unitIndex,
  4526. itemTaskIndex,
  4527. eIndex
  4528. )
  4529. "
  4530. ></div>
  4531. <div class="elist_inptu_text">
  4532. <span>维度描述:</span>
  4533. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4534. <input
  4535. type="input"
  4536. v-model="itemTask.eList[eIndex].detail"
  4537. placeholder="填写维度描述"
  4538. />
  4539. <!-- </el-tooltip> -->
  4540. </div>
  4541. <div class="elist_inptu_text" v-if="evalua">
  4542. <span>目标:</span>
  4543. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4544. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4545. @change="forceUpdate()">
  4546. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4547. :value="e.name">
  4548. </el-option>
  4549. </el-select> -->
  4550. <el-cascader
  4551. :options="targetArray"
  4552. v-model="itemTask.eList[eIndex].target"
  4553. :props="{ checkStrictly: true }"
  4554. :show-all-levels="false"
  4555. clearable
  4556. ></el-cascader>
  4557. </div>
  4558. </div>
  4559. </div>
  4560. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4561. style="margin: 35px 35px 0 0">
  4562. <div class="addToolImg">
  4563. <img src="../../../assets/icon/add.png" alt />
  4564. </div>
  4565. <div>添加</div>
  4566. </div> -->
  4567. <div class="eva_btn_box">
  4568. <div class="eva_btn_left_box">
  4569. <button
  4570. class="c_pub_button_add pub_btn_eval_img"
  4571. @click="addEList(unitIndex, itemTaskIndex)"
  4572. >
  4573. 添加
  4574. </button>
  4575. <button
  4576. class="c_pub_button_add pub_btn_eval_source_img"
  4577. @click="openEList(unitIndex, itemTaskIndex)"
  4578. >
  4579. 资源
  4580. </button>
  4581. </div>
  4582. <button
  4583. class="c_pub_button_add"
  4584. @click="addCET(unitIndex, itemTaskIndex)"
  4585. v-if="itemTask.eList && itemTask.eList.length"
  4586. >
  4587. 添加资源模板
  4588. </button>
  4589. </div>
  4590. </div>
  4591. <div
  4592. v-if="evalua"
  4593. style="
  4594. border: 1px solid #e5e5e5;
  4595. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4596. "
  4597. :style="{
  4598. width: itemTask.isEvaFold ? '55%' : '116px',
  4599. }"
  4600. class="evaCss"
  4601. >
  4602. <!-- <div class="e_add_top">
  4603. <div class="e_add_title">
  4604. <span>当前使用目标管理</span>
  4605. <span>{{ eTitle }}</span>
  4606. <img src="../../../assets/line.png" class="cru_line" style="
  4607. width: 125px;
  4608. height: 20px;
  4609. bottom: -10px;
  4610. left: 155px;
  4611. " />
  4612. </div>
  4613. </div> -->
  4614. <div class="e_add_content" style="width: 100%">
  4615. <div
  4616. class="e_add_list_pbox"
  4617. style="width: 100%"
  4618. >
  4619. <div class="e_add_list_pbox_title">
  4620. <span
  4621. class="type_title"
  4622. v-if="itemTask.isEvaFold"
  4623. >切换模式</span
  4624. >
  4625. <div
  4626. class="type_content"
  4627. v-if="itemTask.isEvaFold"
  4628. >
  4629. <span
  4630. :class="{ active: typeMode == 1 }"
  4631. @click="OtherMb(1, itemTaskIndex)"
  4632. >目标树</span
  4633. >
  4634. <span
  4635. :class="{ active: typeMode == 2 }"
  4636. @click="OtherMb(2, itemTaskIndex)"
  4637. >目标罗盘</span
  4638. >
  4639. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4640. </div>
  4641. <div
  4642. v-if="itemTask.isEvaFold"
  4643. class="show_taskD show"
  4644. style="margin: 0 0 0 auto"
  4645. @click="foldEva(itemTaskIndex)"
  4646. >
  4647. <img
  4648. src="../../../assets/icon/new/icon-slide.png"
  4649. />收起目标
  4650. </div>
  4651. <div
  4652. v-else
  4653. style="margin: 0 0 0 auto"
  4654. class="show_taskD"
  4655. @click="foldEva(itemTaskIndex)"
  4656. >
  4657. <img
  4658. src="../../../assets/icon/new/icon-slide.png"
  4659. />展开目标
  4660. </div>
  4661. </div>
  4662. <div
  4663. class="e_add_list_pbox_content"
  4664. v-if="itemTask.isEvaFold"
  4665. style="min-height: 200px"
  4666. >
  4667. <Mind
  4668. :showBar="false"
  4669. :mindData="data"
  4670. style="width: 100%"
  4671. :jsmindId="
  4672. unitIndex + '-' + itemTaskIndex + 'mind'
  4673. "
  4674. v-if="typeMode == 1"
  4675. ></Mind>
  4676. <Sunburst
  4677. :Josn="eJson"
  4678. :num="eJSONNum"
  4679. style="width: 100%"
  4680. v-if="typeMode == 2"
  4681. >
  4682. </Sunburst>
  4683. <SeeBoard
  4684. :Josn="eJson"
  4685. :num="eJSONNum"
  4686. :ename="eTitle"
  4687. style="width: 100%"
  4688. v-if="typeMode == 3"
  4689. ></SeeBoard>
  4690. </div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. </div>
  4696. <div class="funBlock" style="padding: 0">
  4697. <div
  4698. class="fold"
  4699. @click="fold(itemTaskIndex, $event)"
  4700. >
  4701. <div
  4702. class="arrow"
  4703. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4704. ></div>
  4705. <div>
  4706. {{
  4707. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4708. }}
  4709. </div>
  4710. </div>
  4711. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4712. <div>展开</div>
  4713. <div class="arrow">
  4714. <img src="../../../assets/icon/expand.png" alt />
  4715. </div>
  4716. </div> -->
  4717. </div>
  4718. </div>
  4719. </div>
  4720. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4721. <!-- <div>
  4722. <img src="../../../../assets/icon/new/addStage.png" alt />
  4723. <span>添加任务</span>
  4724. </div> -->
  4725. <button
  4726. class="c_pub_button_confirm pub_btn_add_task_img"
  4727. @click="addTaskBorder"
  4728. >
  4729. 添加任务
  4730. </button>
  4731. </div>
  4732. </div>
  4733. <!-- <div class="info_btnBox3">
  4734. <button
  4735. class="c_pub_button_return pub_btn_return_img"
  4736. v-if="steps == 1"
  4737. @click="
  4738. goTo(
  4739. '/course?userid=' +
  4740. userid +
  4741. '&oid=' +
  4742. oid +
  4743. '&org=' +
  4744. org +
  4745. '&role=' +
  4746. role
  4747. )
  4748. "
  4749. >
  4750. 返回课程
  4751. </button>
  4752. <button
  4753. class="c_pub_button_return pub_btn_last_img"
  4754. v-if="steps > 1 && steps != 5"
  4755. @click="lastSteps"
  4756. style="background: #dbdbdb"
  4757. >
  4758. {{ steps == 4 ? "返回课程" : "上一步" }}
  4759. </button>
  4760. <button
  4761. class="c_pub_button_confirm"
  4762. v-if="steps < 4"
  4763. @click="nextSteps"
  4764. :class="{
  4765. pub_btn_next_img: steps != 3,
  4766. pub_btn_finish_img: steps == 3,
  4767. }"
  4768. >
  4769. {{ steps == 3 ? "确认上传" : "下一步" }}
  4770. </button>
  4771. </div> -->
  4772. </div>
  4773. </div>
  4774. </div>
  4775. <div class="info_btnBox3">
  4776. <button
  4777. class="c_pub_button_return pub_btn_return_img"
  4778. v-if="steps == 1"
  4779. @click="
  4780. goTo(
  4781. '/course?userid=' +
  4782. userid +
  4783. '&oid=' +
  4784. oid +
  4785. '&org=' +
  4786. org +
  4787. '&role=' +
  4788. role
  4789. )
  4790. "
  4791. >
  4792. 返回课程
  4793. </button>
  4794. <button
  4795. class="c_pub_button_return pub_btn_last_img"
  4796. v-if="steps > 1 && steps != 5"
  4797. @click="lastSteps"
  4798. >
  4799. {{ steps == 4 ? "返回课程" : "上一步" }}
  4800. </button>
  4801. <button
  4802. class="c_pub_button_confirm"
  4803. v-if="steps < 4"
  4804. @click="nextSteps"
  4805. :class="{
  4806. pub_btn_next_img: steps != 3,
  4807. pub_btn_finish_img: steps == 3,
  4808. }"
  4809. >
  4810. {{ "确认上传" }}
  4811. </button>
  4812. </div>
  4813. </div>
  4814. <div
  4815. class="rightBox"
  4816. v-if="steps == 2"
  4817. :style="{
  4818. height:
  4819. !isStepDisplay && !isBtnDisplay
  4820. ? 'calc(100% - 40px)'
  4821. : 'calc(100% - 100px)',
  4822. }"
  4823. >
  4824. <div
  4825. class="basic_box"
  4826. style="
  4827. padding: 20px 30px 0px !important;
  4828. box-sizing: border-box;
  4829. height: calc(100% - 80px);
  4830. overflow: auto;
  4831. background: #fff;
  4832. "
  4833. >
  4834. <!-- <div
  4835. style="
  4836. color: #b8b8b8;
  4837. background: #fff;
  4838. width: 26%;
  4839. height: 40px;
  4840. border-radius: 15px;
  4841. padding-left: 20px;
  4842. line-height: 40px;
  4843. font-size: 17px;
  4844. box-shadow: 0px 1px 2px 2px #e0e0e0;
  4845. "
  4846. >-->
  4847. <div
  4848. class="right_title"
  4849. style="border: none; margin: 0; padding: 0"
  4850. >
  4851. 请选择合适的课程模板
  4852. </div>
  4853. <div class="wordbox">
  4854. <div class="wordTeacher" @click="checkTemplate2()">
  4855. <div class="wordPic">
  4856. <img src="../../../assets/icon/new/template_none.png" alt />
  4857. </div>
  4858. <div
  4859. style="
  4860. margin-top: 10px;
  4861. line-height: 19px;
  4862. overflow: hidden;
  4863. text-overflow: ellipsis;
  4864. white-space: nowrap;
  4865. padding: 0 20px;
  4866. "
  4867. >
  4868. 空白模板
  4869. </div>
  4870. </div>
  4871. <div
  4872. class="wordTeacher"
  4873. v-for="(aa, indexF) in templateArray"
  4874. :key="indexF"
  4875. @click="checkTemplate(aa)"
  4876. >
  4877. <div class="wordPic">
  4878. <img src="../../../assets/icon/new/template.png" alt />
  4879. </div>
  4880. <div
  4881. style="
  4882. margin-top: 10px;
  4883. line-height: 19px;
  4884. overflow: hidden;
  4885. text-overflow: ellipsis;
  4886. white-space: nowrap;
  4887. padding: 0 20px;
  4888. "
  4889. >
  4890. {{ aa.title }}
  4891. </div>
  4892. </div>
  4893. <div
  4894. class="wordTeacher"
  4895. @click="checkTemplate3()"
  4896. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4897. >
  4898. <div class="wordPic">
  4899. <img src="../../../assets/icon/new/template.png" alt />
  4900. </div>
  4901. <div
  4902. style="
  4903. margin-top: 10px;
  4904. line-height: 19px;
  4905. overflow: hidden;
  4906. text-overflow: ellipsis;
  4907. white-space: nowrap;
  4908. padding: 0 20px;
  4909. "
  4910. >
  4911. 简易模板
  4912. </div>
  4913. </div>
  4914. <div
  4915. class="wordTeacher"
  4916. @click="pasteStage()"
  4917. v-if="isPasteStage"
  4918. >
  4919. <div class="wordPic">
  4920. <img src="../../../assets/icon/new/template.png" alt />
  4921. </div>
  4922. <div
  4923. style="
  4924. margin-top: 10px;
  4925. line-height: 19px;
  4926. overflow: hidden;
  4927. text-overflow: ellipsis;
  4928. white-space: nowrap;
  4929. padding: 0 20px;
  4930. "
  4931. >
  4932. 智能粘贴模式
  4933. </div>
  4934. </div>
  4935. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  4936. <div class="wordPic">
  4937. <img src="../../../assets/icon/wordMub.png" alt />
  4938. </div>
  4939. <div style="
  4940. margin-top: 10px;
  4941. line-height: 19px;
  4942. overflow: hidden;
  4943. text-overflow: ellipsis;
  4944. white-space: nowrap;
  4945. padding: 0 20px;
  4946. ">
  4947. 未来小学课程设计
  4948. </div>
  4949. </div> -->
  4950. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  4951. <div class="wordPic">
  4952. <img src="../../../assets/icon/wordMub.png" alt />
  4953. </div>
  4954. <div style="
  4955. margin-top: 10px;
  4956. line-height: 19px;
  4957. overflow: hidden;
  4958. text-overflow: ellipsis;
  4959. white-space: nowrap;
  4960. padding: 0 20px;
  4961. ">
  4962. 我的课程
  4963. </div>
  4964. </div> -->
  4965. </div>
  4966. </div>
  4967. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  4968. <button
  4969. class="c_pub_button_return pub_btn_return_img"
  4970. v-if="steps == 1"
  4971. @click="
  4972. goTo(
  4973. '/course?userid=' +
  4974. userid +
  4975. '&oid=' +
  4976. oid +
  4977. '&org=' +
  4978. org +
  4979. '&role=' +
  4980. role
  4981. )
  4982. "
  4983. >
  4984. 返回课程
  4985. </button>
  4986. <button
  4987. class="c_pub_button_return pub_btn_last_img"
  4988. v-if="steps > 1 && steps != 5"
  4989. @click="lastSteps"
  4990. >
  4991. {{ steps == 4 ? "返回课程" : "上一步" }}
  4992. </button>
  4993. <button
  4994. class="c_pub_button_confirm"
  4995. v-if="steps < 4"
  4996. @click="nextSteps"
  4997. :class="{
  4998. pub_btn_next_img: steps != 3,
  4999. pub_btn_finish_img: steps == 3,
  5000. }"
  5001. >
  5002. {{ steps == 3 ? "确认上传" : "下一步" }}
  5003. </button>
  5004. </div>
  5005. </div>
  5006. <div
  5007. style="
  5008. width: calc(100% - 20px);
  5009. background: rgb(255, 255, 255);
  5010. border-radius: 10px;
  5011. "
  5012. v-if="steps == 4"
  5013. >
  5014. <div class="basic_box_success">
  5015. <div class="right_img">
  5016. <img src="../../../assets/icon/right.png" alt />
  5017. </div>
  5018. <div style="font-weight: bold">成功</div>
  5019. <!-- <div>您的课程编号</div>
  5020. <div class="number">{{ number }}</div>-->
  5021. <!-- <div class="success_button">
  5022. <div class="look_course" @click="isNoFinsh">
  5023. 邀请老师协同编辑
  5024. </div>
  5025. <div class="attend_others" @click="goCourse">预览课程</div>
  5026. </div> -->
  5027. </div>
  5028. </div>
  5029. <div
  5030. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  5031. @mouseenter="btnDisplay(true)"
  5032. @mouseleave="btnDisplay(false)"
  5033. v-if="false"
  5034. >
  5035. <button
  5036. class="c_pub_button_return pub_btn_return_img"
  5037. v-if="steps == 1 && isBtnDisplay"
  5038. @click="
  5039. goTo(
  5040. '/course?userid=' +
  5041. userid +
  5042. '&oid=' +
  5043. oid +
  5044. '&org=' +
  5045. org +
  5046. '&role=' +
  5047. role
  5048. )
  5049. "
  5050. >
  5051. 返回课程
  5052. </button>
  5053. <button
  5054. class="c_pub_button_return pub_btn_last_img"
  5055. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5056. @click="lastSteps"
  5057. >
  5058. {{ steps == 4 ? "返回课程" : "上一步" }}
  5059. </button>
  5060. <button
  5061. class="c_pub_button_confirm"
  5062. v-if="steps < 4 && isBtnDisplay"
  5063. @click="nextSteps"
  5064. :class="{
  5065. pub_btn_next_img: steps != 3,
  5066. pub_btn_finish_img: steps == 3,
  5067. }"
  5068. >
  5069. {{ "确认上传" }}
  5070. </button>
  5071. </div>
  5072. </div>
  5073. </div>
  5074. </div>
  5075. <el-dialog
  5076. title="提示"
  5077. :visible.sync="dialogVisible"
  5078. :append-to-body="true"
  5079. width="25%"
  5080. :before-close="handleClose"
  5081. class="dialog_diy2 customWidth"
  5082. >
  5083. <div>请复制该链接邀请协同编辑</div>
  5084. <div>http://www.boomyon.com/index-zhang.com</div>
  5085. <span slot="footer" class="dialog-footer">
  5086. <el-button type="primary">复制链接分享</el-button>
  5087. <el-button @click="dialogVisible = false">取消</el-button>
  5088. </span>
  5089. </el-dialog>
  5090. <el-dialog
  5091. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5092. :visible.sync="dialogVisible1"
  5093. :append-to-body="true"
  5094. width="25%"
  5095. :before-close="handleClose"
  5096. class="dialog_diy2 customWidth"
  5097. >
  5098. <el-form>
  5099. <el-form-item label="文档标题">
  5100. <el-input
  5101. v-model="tTitle"
  5102. auto-complete="off"
  5103. placeholder="请输入文档标题名..."
  5104. ></el-input>
  5105. </el-form-item>
  5106. <div>文档简介</div>
  5107. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5108. </el-form>
  5109. <span slot="footer" class="dialog-footer">
  5110. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5111. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5112. >添加</el-button
  5113. >
  5114. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5115. </span>
  5116. </el-dialog>
  5117. <el-dialog
  5118. title="添加文档"
  5119. :visible.sync="dialogVisible2"
  5120. :append-to-body="true"
  5121. width="500px"
  5122. :before-close="handleClose"
  5123. class="dialog_diy"
  5124. >
  5125. <el-form>
  5126. <el-form-item label="文档标题">
  5127. <el-input
  5128. v-model="templateC.title"
  5129. auto-complete="off"
  5130. placeholder="请输入文档标题名..."
  5131. ></el-input>
  5132. </el-form-item>
  5133. <div>文档内容</div>
  5134. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5135. </el-form>
  5136. <span slot="footer" class="dialog-footer">
  5137. <el-button @click="clearChoose">取 消</el-button>
  5138. <el-button type="primary" @click="wordNext()">确定</el-button>
  5139. </span>
  5140. </el-dialog>
  5141. <el-dialog
  5142. title="添加富文本"
  5143. :visible.sync="dialogVisible6"
  5144. :append-to-body="true"
  5145. width="500px"
  5146. :before-close="handleClose"
  5147. class="dialog_diy"
  5148. >
  5149. <el-form>
  5150. <el-form-item label="文本标题">
  5151. <el-input
  5152. ref="fuInput"
  5153. v-model="AttText.title"
  5154. auto-complete="off"
  5155. @input="change2"
  5156. placeholder="请输入文本标题..."
  5157. ></el-input>
  5158. </el-form-item>
  5159. <!-- <div>富文本内容</div> -->
  5160. <editor-bar
  5161. v-model="AttText.text"
  5162. @change="change"
  5163. v-if="dialogVisible6"
  5164. ></editor-bar>
  5165. </el-form>
  5166. <span slot="footer" class="dialog-footer">
  5167. <el-button @click="clearAttText">取 消</el-button>
  5168. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5169. </span>
  5170. </el-dialog>
  5171. <el-dialog
  5172. title="添加链接"
  5173. :visible.sync="dialogVisible7"
  5174. :append-to-body="true"
  5175. width="500px"
  5176. :before-close="handleClose"
  5177. class="dialog_diy lineCss"
  5178. >
  5179. <el-form>
  5180. <el-form-item label="标题" :label-width="formLabelWidth">
  5181. <span>
  5182. <el-input
  5183. placeholder="请输入链接标题"
  5184. clearable
  5185. v-model="lineTitle"
  5186. class="add_input"
  5187. ></el-input>
  5188. </span>
  5189. </el-form-item>
  5190. <el-form-item label="链接" :label-width="formLabelWidth">
  5191. <span>
  5192. <el-input
  5193. placeholder="请输入链接"
  5194. clearable
  5195. v-model="line"
  5196. class="add_input"
  5197. ></el-input>
  5198. </span>
  5199. </el-form-item>
  5200. </el-form>
  5201. <span slot="footer" class="dialog-footer">
  5202. <el-button @click="clearLine">取 消</el-button>
  5203. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5204. </span>
  5205. </el-dialog>
  5206. <el-dialog
  5207. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5208. :visible.sync="dialogVisibleSource"
  5209. :append-to-body="true"
  5210. width="100%"
  5211. :before-close="handleClose"
  5212. class="dialog_diy source_diy"
  5213. >
  5214. <div>
  5215. <sourceDialog
  5216. :sourceData.sync="sourceData"
  5217. :updateSourcePan="updateSourcePan"
  5218. ></sourceDialog>
  5219. </div>
  5220. <span slot="footer" class="dialog-footer">
  5221. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5222. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5223. >确定</el-button
  5224. >
  5225. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5226. </span>
  5227. </el-dialog>
  5228. <el-dialog
  5229. title="添加课程成员"
  5230. :visible.sync="dialogVisible3"
  5231. :append-to-body="true"
  5232. width="25%"
  5233. height="80%"
  5234. :before-close="handleClose"
  5235. class="addNewPP customWidth"
  5236. >
  5237. <div class="people">
  5238. <div class="people_top">
  5239. <div class="people_nav">选择成员</div>
  5240. <div class="people_top_right">
  5241. <div class="people_search">
  5242. <el-input
  5243. style="height: 100%"
  5244. placeholder="搜索成员名称"
  5245. v-model="searchPeople"
  5246. ></el-input>
  5247. <div class="search_img" @click="searchStudent">
  5248. <img src="../../../assets/icon/search.png" alt />
  5249. </div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. <el-checkbox-group v-model="checkboxList" class="people_name">
  5254. <el-checkbox
  5255. v-for="item in studentJuri"
  5256. :key="item.userid"
  5257. :label="item.userid"
  5258. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5259. >
  5260. </el-checkbox-group>
  5261. </div>
  5262. <span slot="footer" class="dialog-footer">
  5263. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5264. <el-button type="primary" @click="isAddPP">确定</el-button>
  5265. </span>
  5266. </el-dialog>
  5267. <el-dialog
  5268. title="选择授课班级"
  5269. :visible.sync="dialogVisibleClass"
  5270. :append-to-body="true"
  5271. width="600px"
  5272. height="80%"
  5273. :before-close="handleClose"
  5274. class="addNewPP2"
  5275. >
  5276. <div class="check_classBox">
  5277. <div class="check_class_right">
  5278. <div
  5279. class="check_class"
  5280. :class="{ activeX: gradeId == '' }"
  5281. @click="(gradeId = ''), getClass()"
  5282. >
  5283. 全部
  5284. </div>
  5285. <el-tooltip
  5286. placement="top"
  5287. :content="item.name"
  5288. v-for="(item, index) in gradeList"
  5289. :key="index"
  5290. >
  5291. <div
  5292. class="check_class"
  5293. :class="{ activeX: gradeId == item.id }"
  5294. @click="(gradeId = item.id), getClass()"
  5295. >
  5296. {{ item.name }}
  5297. </div>
  5298. </el-tooltip>
  5299. </div>
  5300. <div class="check_class_left">
  5301. <div class="check_class_all_box">
  5302. <div class="check_class_left_title">选择班级</div>
  5303. <div style="display: flex; align-items: center; margin-left: auto">
  5304. <el-checkbox
  5305. v-model="checkAll"
  5306. @change="handleCheckAllChange"
  5307. class="all_check"
  5308. >全选</el-checkbox
  5309. >
  5310. </div>
  5311. </div>
  5312. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5313. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5314. </div> -->
  5315. <el-checkbox-group
  5316. v-model="checkboxList2"
  5317. class="check_class_item"
  5318. @change="InviteChange"
  5319. v-if="grade2.length"
  5320. >
  5321. <div v-for="item in grade2" :key="item.id" class="class_item">
  5322. <el-checkbox :label="item.id">
  5323. {{ item.name }}
  5324. </el-checkbox>
  5325. </div>
  5326. </el-checkbox-group>
  5327. <div v-if="!grade2.length">暂无数据</div>
  5328. </div>
  5329. </div>
  5330. <span slot="footer" class="dialog-footer">
  5331. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5332. <el-button type="primary" @click="isAddClass">确定</el-button>
  5333. </span>
  5334. </el-dialog>
  5335. <el-dialog
  5336. title="添加协同成员"
  5337. :visible.sync="dialogVisibleMember"
  5338. :append-to-body="true"
  5339. width="25%"
  5340. height="80%"
  5341. :before-close="handleClose"
  5342. class="addNewPP customWidth"
  5343. >
  5344. <div style="display: flex;justify-content: space-between;">
  5345. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  5346. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  5347. 全部
  5348. </div>
  5349. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)" v-for="(i) in CollaborativeTeaList" :key="i.id">
  5350. <el-tooltip
  5351. placement="top"
  5352. :content="i.name"
  5353. >
  5354. <span>{{i.name}}</span>
  5355. </el-tooltip>
  5356. </div>
  5357. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  5358. 其他
  5359. </div>
  5360. </div>
  5361. <div style="width: calc(100% - 100px);" v-loading="CollLoading">
  5362. <div class="people">
  5363. <div class="people_top">
  5364. <div class="people_top_right">
  5365. <div class="people_search">
  5366. <el-input
  5367. placeholder="搜索成员名称"
  5368. v-model="searchTN"
  5369. @keyup.enter.native="getTeacher(collid)"
  5370. ></el-input>
  5371. <div class="search_img" @click="getTeacher(collid)">
  5372. <img src="../../../assets/icon/search.png" alt />
  5373. </div>
  5374. </div>
  5375. </div>
  5376. <div class="people_nav" style="display: flex; align-items: center">
  5377. <div class="check_class_left_title">选择成员</div>
  5378. <div style="display: flex; align-items: center; margin-left: auto">
  5379. <el-checkbox
  5380. v-model="checkAll2"
  5381. @change="handleCheckAllChange2"
  5382. class="all_check"
  5383. >全选</el-checkbox
  5384. >
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <el-checkbox-group
  5389. v-model="checkboxList3"
  5390. class="people_name"
  5391. v-if="teacherJuri.length"
  5392. @change="InviteChange2"
  5393. >
  5394. <el-checkbox
  5395. v-for="item in teacherJuri"
  5396. :key="item.userid"
  5397. :label="item.userid"
  5398. >
  5399. <div class="t_j_box">
  5400. <el-tooltip
  5401. placement="top"
  5402. :content="item.name ? item.name : '暂无姓名'"
  5403. >
  5404. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5405. </el-tooltip>
  5406. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5407. <span>{{ item.username.split('@')[0] }}</span>
  5408. </el-tooltip>
  5409. <el-tooltip placement="top" :content="item.school">
  5410. <span>{{ item.school }}</span>
  5411. </el-tooltip>
  5412. </div>
  5413. </el-checkbox>
  5414. </el-checkbox-group>
  5415. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5416. </div>
  5417. </div>
  5418. </div>
  5419. <span slot="footer" class="dialog-footer">
  5420. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5421. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5422. </span>
  5423. </el-dialog>
  5424. <el-dialog
  5425. title="创建问卷"
  5426. :visible.sync="dialogVisible5"
  5427. :append-to-body="true"
  5428. width="800px"
  5429. :before-close="
  5430. (done) => {
  5431. closePan(4);
  5432. }
  5433. "
  5434. class="dialog_diy fullStyle"
  5435. >
  5436. <div style="height: 100%">
  5437. <div
  5438. class="a_add_title"
  5439. style="
  5440. display: flex;
  5441. flex-direction: row;
  5442. align-items: center;
  5443. justify-content: center;
  5444. "
  5445. >
  5446. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5447. <el-input
  5448. v-model="askJson.askTitle"
  5449. placeholder="请输入标题"
  5450. style="width: 400px"
  5451. ></el-input>
  5452. </div>
  5453. <div class="a_addBox" style="height: calc(100% - 50px)">
  5454. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5455. <div
  5456. class="a_add_box"
  5457. v-for="(item1, index1) in askJson.askCount"
  5458. :key="index1"
  5459. >
  5460. <div class="a_add_checkType">
  5461. <span
  5462. :class="{
  5463. active:
  5464. askJson.askJson[index1].type == '1' ||
  5465. !askJson.askJson[index1].type,
  5466. }"
  5467. @click="checkAskType('1', askJson.askJson[index1])"
  5468. >单选题</span
  5469. >
  5470. <span
  5471. :class="{ active: askJson.askJson[index1].type == '2' }"
  5472. @click="checkAskType('2', askJson.askJson[index1])"
  5473. >多选题</span
  5474. >
  5475. </div>
  5476. <div class="a_add_head">
  5477. <div
  5478. style="
  5479. display: flex;
  5480. align-items: center;
  5481. width: 100%;
  5482. margin-right: 20px;
  5483. "
  5484. >
  5485. <span style="min-width: fit-content">{{
  5486. index1 + 1 + "、"
  5487. }}</span>
  5488. <textarea
  5489. class="a_add_head_input textarea_css"
  5490. v-autoHeight="40"
  5491. v-model="askJson.askJson[index1].askstitle"
  5492. placeholder="请输入题目"
  5493. @change="
  5494. () => {
  5495. $forceUpdate();
  5496. }
  5497. "
  5498. ></textarea>
  5499. </div>
  5500. <div
  5501. class="moveBtn moveBtn2"
  5502. style="margin: 0 20px 0 0px"
  5503. v-if="askJson.askCount != 1"
  5504. >
  5505. <div
  5506. class="chapter_upload_up"
  5507. @click.stop="askMove(1, index1)"
  5508. ></div>
  5509. <div
  5510. class="chapter_upload_down"
  5511. @click.stop="askMove(2, index1)"
  5512. ></div>
  5513. </div>
  5514. <div class="a_add_head_div">
  5515. <el-button
  5516. type="primary"
  5517. size="small"
  5518. @click="deleteAskList(index1)"
  5519. v-if="askJson.askCount != 1"
  5520. >删除
  5521. </el-button>
  5522. <el-button
  5523. type="primary"
  5524. size="small"
  5525. @click="addAskList(index1)"
  5526. >添加</el-button
  5527. >
  5528. </div>
  5529. </div>
  5530. <div class="a_add_body">
  5531. <div class="a_add_input" style="flex-direction: column">
  5532. <div
  5533. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5534. :key="checkIndex"
  5535. style="
  5536. margin: 20px 10px 0 0;
  5537. display: flex;
  5538. align-items: center;
  5539. position: relative;
  5540. "
  5541. >
  5542. <div style="margin-right: 10px">{{ optionTypeList[checkIndex] }}.</div>
  5543. <textarea
  5544. class="a_add_head_input textarea_css"
  5545. v-autoHeight="40"
  5546. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5547. placeholder="请输入选项"
  5548. style="width: 300px"
  5549. @change="
  5550. () => {
  5551. $forceUpdate();
  5552. }
  5553. "
  5554. ></textarea>
  5555. <div
  5556. class="moveBtn moveBtn2"
  5557. style="margin: 0 0px 0 20px"
  5558. v-if="askJson.askJson[index1].askItem != 1"
  5559. >
  5560. <div
  5561. class="chapter_upload_up"
  5562. @click.stop="checkMove(1, index1, checkIndex)"
  5563. ></div>
  5564. <div
  5565. class="chapter_upload_down"
  5566. @click.stop="checkMove(2, index1, checkIndex)"
  5567. ></div>
  5568. </div>
  5569. <div class="a_add_body_div">
  5570. <el-button
  5571. type="primary"
  5572. size="small"
  5573. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5574. >添加</el-button
  5575. >
  5576. <el-button
  5577. type="primary"
  5578. size="small"
  5579. @click="
  5580. deletecheckList(askJson.askJson[index1], checkIndex)
  5581. "
  5582. v-if="askJson.askJson[index1].askItem != 1"
  5583. >删除
  5584. </el-button>
  5585. </div>
  5586. </div>
  5587. </div>
  5588. <!-- <div class="a_add_body_div">
  5589. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5590. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5591. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5592. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5593. </el-button>
  5594. </div> -->
  5595. </div>
  5596. </div>
  5597. </div>
  5598. </div>
  5599. <span slot="footer" class="dialog-footer">
  5600. <el-button @click="closePan(4)">取 消</el-button>
  5601. <el-button type="primary" @click="addAsk">确 定</el-button>
  5602. </span>
  5603. </el-dialog>
  5604. <el-dialog
  5605. title="创建选择题"
  5606. :visible.sync="dialogVisibleChoice"
  5607. :append-to-body="true"
  5608. width="800px"
  5609. :before-close="
  5610. (done) => {
  5611. closePan(45);
  5612. }
  5613. "
  5614. class="dialog_diy fullStyle"
  5615. >
  5616. <div style="height: 100%">
  5617. <!-- <div class="a_add_title" style="
  5618. display: flex;
  5619. flex-direction: row;
  5620. align-items: center;
  5621. justify-content: center;
  5622. ">
  5623. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5624. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5625. </div> -->
  5626. <div class="a_addBox" style="height: 100%">
  5627. <div
  5628. style="
  5629. font-size: 16px;
  5630. color: #c7c7c7;
  5631. display: flex;
  5632. align-items: center;
  5633. "
  5634. >
  5635. <!-- 请输入题目内容 -->
  5636. <button
  5637. class="c_pub_button_add pub_btn_paste_img"
  5638. @click="pasteOption"
  5639. style="margin-left: 10px"
  5640. v-if="isPasteChoice"
  5641. >
  5642. 智能粘贴
  5643. </button>
  5644. </div>
  5645. <div
  5646. class="a_add_box"
  5647. v-for="(item1, index1) in testJson.testCount"
  5648. :key="index1"
  5649. >
  5650. <div class="a_add_checkType">
  5651. <span
  5652. :class="{ active: testJson.testJson[index1].type == '1' }"
  5653. @click="checkTestType('1', testJson.testJson[index1])"
  5654. >单选题</span
  5655. >
  5656. <span
  5657. :class="{ active: testJson.testJson[index1].type == '2' }"
  5658. @click="checkTestType('2', testJson.testJson[index1])"
  5659. >多选题</span
  5660. >
  5661. </div>
  5662. <div class="a_add_head">
  5663. <div class="timuUpImg">
  5664. <div style="display: flex; align-items: center">
  5665. <span style="min-width: fit-content">{{
  5666. index1 + 1 + "、"
  5667. }}</span>
  5668. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5669. placeholder="请输入题目">
  5670. </el-input> -->
  5671. <textarea
  5672. class="a_add_head_input textarea_css"
  5673. v-autoHeight="40"
  5674. v-model="testJson.testJson[index1].teststitle"
  5675. placeholder="请输入题目"
  5676. @change="
  5677. () => {
  5678. $forceUpdate();
  5679. }
  5680. "
  5681. ></textarea>
  5682. </div>
  5683. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5684. <div
  5685. class="chapter_upload_up"
  5686. @click.stop="testMove(1, index1)"
  5687. ></div>
  5688. <div
  5689. class="chapter_upload_down"
  5690. @click.stop="testMove(2, index1)"
  5691. ></div>
  5692. </div>
  5693. <div
  5694. class="xzUpImg"
  5695. @click.stop="addImg($event)"
  5696. style="margin-right: 10px"
  5697. >
  5698. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5699. <input
  5700. type="file"
  5701. accept="image/*"
  5702. style="display: none"
  5703. @change="beforeUploadTiMu($event, index1)"
  5704. />
  5705. </div>
  5706. </div>
  5707. <div class="a_add_head_div">
  5708. <el-button
  5709. type="primary"
  5710. size="small"
  5711. @click="deleteTestList(index1)"
  5712. v-if="testJson.testCount != 1"
  5713. >删除
  5714. </el-button>
  5715. <el-button
  5716. type="primary"
  5717. size="small"
  5718. @click="addTestList(index1)"
  5719. >添加</el-button
  5720. >
  5721. </div>
  5722. </div>
  5723. <div
  5724. class="timuImgBox"
  5725. v-if="
  5726. testJson.testJson[index1].timuList &&
  5727. testJson.testJson[index1].timuList.length
  5728. "
  5729. >
  5730. <div
  5731. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5732. :key="tIndex"
  5733. class="timuImg"
  5734. @click.stop="previewImg(timg.src)"
  5735. >
  5736. <img :src="timg.src" alt="" />
  5737. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5738. <img src="../../../assets/icon/delete.png" alt="" />
  5739. </div>
  5740. </div>
  5741. </div>
  5742. <div class="a_add_body">
  5743. <div class="a_add_input a_add_input_choice">
  5744. <el-radio-group
  5745. v-model="testJson.testJson[index1].answer"
  5746. v-if="testJson.testJson[index1].type == 1"
  5747. @change="
  5748. () => {
  5749. $forceUpdate();
  5750. }
  5751. "
  5752. >
  5753. <div class="radioBox">
  5754. <el-radio
  5755. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5756. .testItem"
  5757. :key="checkIndex"
  5758. :label="checkIndex"
  5759. >
  5760. <div style="margin-right: 10px">
  5761. {{ optionTypeList[checkIndex] }}.
  5762. </div>
  5763. <div
  5764. style="margin-right: 10px; width: 300px"
  5765. v-if="
  5766. testJson.testJson[index1].checkList[checkIndex] &&
  5767. testJson.testJson[index1].checkList[checkIndex]
  5768. .imgType &&
  5769. testJson.testJson[index1].checkList[checkIndex]
  5770. .imgType == 1
  5771. "
  5772. >
  5773. <div
  5774. class="inImg"
  5775. @click.stop="
  5776. previewImg(
  5777. testJson.testJson[index1].checkList[checkIndex]
  5778. .src
  5779. )
  5780. "
  5781. >
  5782. <el-image
  5783. :src="
  5784. testJson.testJson[index1].checkList[checkIndex]
  5785. .src
  5786. "
  5787. lazy
  5788. />
  5789. <!-- <img :src="
  5790. testJson.testJson[index1].checkList[checkIndex]
  5791. .src
  5792. " alt="" /> -->
  5793. </div>
  5794. </div>
  5795. <textarea
  5796. class="a_add_head_input textarea_css"
  5797. v-autoHeight="40"
  5798. v-else
  5799. v-model="
  5800. testJson.testJson[index1].checkList[checkIndex]
  5801. "
  5802. placeholder="请输入选项"
  5803. style="width: 300px; margin-right: 10px"
  5804. @change="
  5805. () => {
  5806. $forceUpdate();
  5807. }
  5808. "
  5809. ></textarea>
  5810. <div class="xzUpImg" @click.stop="addImg($event)">
  5811. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5812. <input
  5813. type="file"
  5814. accept="image/*"
  5815. style="display: none"
  5816. @change="beforeUploadTi($event, index1, checkIndex)"
  5817. />
  5818. </div>
  5819. <div
  5820. class="moveBtn moveBtn2"
  5821. v-if="testJson.testJson[index1].testItem != 1"
  5822. >
  5823. <div
  5824. class="chapter_upload_up"
  5825. @click.stop="tcheckMove(1, index1, checkIndex)"
  5826. ></div>
  5827. <div
  5828. class="chapter_upload_down"
  5829. @click.stop="tcheckMove(2, index1, checkIndex)"
  5830. ></div>
  5831. </div>
  5832. <div class="a_add_body_div">
  5833. <el-button
  5834. type="primary"
  5835. size="small"
  5836. @click.stop="
  5837. addTcheckList(testJson.testJson[index1], checkIndex)
  5838. "
  5839. >添加</el-button
  5840. >
  5841. <el-button
  5842. type="primary"
  5843. size="small"
  5844. @click.stop="
  5845. deleteTcheckList(
  5846. testJson.testJson[index1],
  5847. checkIndex
  5848. )
  5849. "
  5850. v-if="testJson.testJson[index1].testItem != 1"
  5851. >删除
  5852. </el-button>
  5853. </div>
  5854. </el-radio>
  5855. </div>
  5856. </el-radio-group>
  5857. <el-checkbox-group
  5858. v-model="testJson.testJson[index1].answer"
  5859. v-if="testJson.testJson[index1].type == '2'"
  5860. @change="
  5861. () => {
  5862. $forceUpdate();
  5863. }
  5864. "
  5865. >
  5866. <div class="radioBox">
  5867. <el-checkbox
  5868. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5869. .testItem"
  5870. :key="checkIndex1"
  5871. :label="checkIndex1"
  5872. >
  5873. <div style="margin-right: 10px">
  5874. {{ optionTypeList[checkIndex1] }}.
  5875. </div>
  5876. <div
  5877. style="margin-right: 10px; width: 300px"
  5878. v-if="
  5879. testJson.testJson[index1].checkList[checkIndex1] &&
  5880. testJson.testJson[index1].checkList[checkIndex1]
  5881. .imgType &&
  5882. testJson.testJson[index1].checkList[checkIndex1]
  5883. .imgType == 1
  5884. "
  5885. >
  5886. <div
  5887. class="inImg"
  5888. @click.stop="
  5889. previewImg(
  5890. testJson.testJson[index1].checkList[checkIndex1]
  5891. .src
  5892. )
  5893. "
  5894. >
  5895. <el-image
  5896. :src="
  5897. testJson.testJson[index1].checkList[checkIndex1]
  5898. .src
  5899. "
  5900. lazy
  5901. />
  5902. <!-- <img :src="
  5903. testJson.testJson[index1].checkList[checkIndex1]
  5904. .src
  5905. " alt="" /> -->
  5906. </div>
  5907. </div>
  5908. <textarea
  5909. class="a_add_head_input textarea_css"
  5910. v-autoHeight="40"
  5911. v-else
  5912. v-model="
  5913. testJson.testJson[index1].checkList[checkIndex1]
  5914. "
  5915. placeholder="请输入选项"
  5916. style="width: 300px; margin-right: 10px"
  5917. @change="
  5918. () => {
  5919. $forceUpdate();
  5920. }
  5921. "
  5922. ></textarea>
  5923. <div class="xzUpImg" @click.stop="addImg($event)">
  5924. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5925. <input
  5926. type="file"
  5927. accept="image/*"
  5928. style="display: none"
  5929. @change="beforeUploadTi($event, index1, checkIndex1)"
  5930. />
  5931. </div>
  5932. <div
  5933. class="moveBtn moveBtn2"
  5934. v-if="testJson.testJson[index1].testItem != 1"
  5935. >
  5936. <div
  5937. class="chapter_upload_up"
  5938. @click.stop="tcheckMove(1, index1, checkIndex1)"
  5939. ></div>
  5940. <div
  5941. class="chapter_upload_down"
  5942. @click.stop="tcheckMove(2, index1, checkIndex1)"
  5943. ></div>
  5944. </div>
  5945. <div class="a_add_body_div">
  5946. <el-button
  5947. type="primary"
  5948. size="small"
  5949. @click.stop="
  5950. addTcheckList(
  5951. testJson.testJson[index1],
  5952. checkIndex1
  5953. )
  5954. "
  5955. >添加</el-button
  5956. >
  5957. <el-button
  5958. type="primary"
  5959. size="small"
  5960. @click.stop="
  5961. deleteTcheckList(
  5962. testJson.testJson[index1],
  5963. checkIndex1
  5964. )
  5965. "
  5966. v-if="testJson.testJson[index1].testItem != 1"
  5967. >删除
  5968. </el-button>
  5969. </div>
  5970. </el-checkbox>
  5971. </div>
  5972. </el-checkbox-group>
  5973. </div>
  5974. <!-- <div class="a_add_body_div">
  5975. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  5976. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  5977. v-if="testJson.testJson[index1].testItem != 1">删除
  5978. </el-button>
  5979. </div> -->
  5980. </div>
  5981. </div>
  5982. </div>
  5983. </div>
  5984. <span slot="footer" class="dialog-footer">
  5985. <el-button @click="closePan(45)">取 消</el-button>
  5986. <el-button type="primary" @click="addTest">确 定</el-button>
  5987. </span>
  5988. </el-dialog>
  5989. <el-dialog
  5990. title="添加工具"
  5991. :visible.sync="dialogVisible4"
  5992. :append-to-body="true"
  5993. width="600px"
  5994. :before-close="handleClose"
  5995. class="dialog_diy addToolsDia"
  5996. >
  5997. <div class="toolChoose">
  5998. <div class="tools">
  5999. <div
  6000. class="leftTools"
  6001. style="width: 100%; padding: 0 0 15px 0"
  6002. v-for="(itemTools, itemToolsIndex) in chapTools"
  6003. :key="itemToolsIndex"
  6004. >
  6005. <div
  6006. style="
  6007. display: flex;
  6008. flex-direction: row;
  6009. align-items: baseline;
  6010. flex-wrap: nowrap;
  6011. justify-content: flex-start;
  6012. position: relative;
  6013. "
  6014. >
  6015. <div class="chooseWho">
  6016. <div
  6017. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  6018. @click="chapToolsType = 0"
  6019. >
  6020. 互动类
  6021. </div>
  6022. <div
  6023. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  6024. @click="chapToolsType = 1"
  6025. >
  6026. 思维类
  6027. </div>
  6028. <div
  6029. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6030. @click="chapToolsType = 2"
  6031. >
  6032. 评价类
  6033. </div>
  6034. <div
  6035. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6036. @click="chapToolsType = 2"
  6037. >
  6038. 其他
  6039. </div>
  6040. </div>
  6041. </div>
  6042. <div style="min-height: 163px">
  6043. <div class="toolSort" v-if="chapToolsType == 0">
  6044. <div
  6045. class="tool"
  6046. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  6047. @click="chapAddTools(8)"
  6048. >
  6049. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  6050. <img
  6051. src="../../../assets/icon/secondToolList/library.png"
  6052. alt
  6053. />
  6054. <div style="margin: 5px 0">素材库</div>
  6055. </div>
  6056. <div class="noCTool">
  6057. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6058. </div>
  6059. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6060. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6061. </div>
  6062. <!-- <div class="check" @click="chapAddTools(8)">
  6063. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6064. <div class="checkDiv" v-else>
  6065. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6066. </div>
  6067. </div> -->
  6068. </div>
  6069. </div>
  6070. <div class="toolSort" v-if="chapToolsType == 1">
  6071. <div
  6072. class="tool"
  6073. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6074. @click="chapAddTools(7)"
  6075. >
  6076. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6077. <img
  6078. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6079. alt
  6080. />
  6081. <div style="margin: 5px 0">思维网格</div>
  6082. </div>
  6083. <div class="noCTool">
  6084. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6085. </div>
  6086. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6087. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6088. </div>
  6089. <!-- <div class="check" @click="chapAddTools(7)">
  6090. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6091. <div class="checkDiv" v-else>
  6092. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6093. </div>
  6094. </div> -->
  6095. </div>
  6096. <div
  6097. class="tool"
  6098. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6099. @click="chapAddTools(1)"
  6100. >
  6101. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6102. <img
  6103. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6104. alt
  6105. />
  6106. <div style="margin: 5px 0">电子白板</div>
  6107. </div>
  6108. <div class="noCTool">
  6109. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6110. </div>
  6111. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6112. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6113. </div>
  6114. <!-- <div class="check" @click="chapAddTools(1)">
  6115. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6116. <div class="checkDiv" v-else>
  6117. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6118. </div>
  6119. </div> -->
  6120. </div>
  6121. <div
  6122. class="tool"
  6123. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6124. @click="chapAddTools(2)"
  6125. >
  6126. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6127. <img src="../../../assets/icon/secondToolList/note.png" alt />
  6128. <div style="margin: 5px 0">便签</div>
  6129. </div>
  6130. <div class="noCTool">
  6131. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6132. </div>
  6133. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6134. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6135. </div>
  6136. <!-- <div class="check" @click="chapAddTools(2)">
  6137. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6138. <div class="checkDiv" v-else>
  6139. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6140. </div>
  6141. </div> -->
  6142. </div>
  6143. <div
  6144. class="tool"
  6145. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6146. @click="chapAddTools(6)"
  6147. >
  6148. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6149. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  6150. <div style="margin: 5px 0">协同文档</div>
  6151. </div>
  6152. <div class="noCTool">
  6153. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6154. </div>
  6155. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6156. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6157. </div>
  6158. <!-- <div class="check" @click="chapAddTools(6)">
  6159. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6160. <div class="checkDiv" v-else>
  6161. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6162. </div>
  6163. </div> -->
  6164. </div>
  6165. <div
  6166. class="tool"
  6167. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6168. @click="chapAddTools(3)"
  6169. >
  6170. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6171. <img
  6172. src="../../../assets/icon/secondToolList/mindMapping.png"
  6173. alt
  6174. />
  6175. <div style="margin: 5px 0">思维导图</div>
  6176. </div>
  6177. <div class="noCTool">
  6178. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6179. </div>
  6180. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6181. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6182. </div>
  6183. <!-- <div class="check" @click="chapAddTools(3)">
  6184. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6185. <div class="checkDiv" v-else>
  6186. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6187. </div>
  6188. </div> -->
  6189. </div>
  6190. <div
  6191. class="tool"
  6192. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6193. @click="chapAddTools(31)"
  6194. >
  6195. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6196. <img
  6197. src="../../../assets/icon/secondToolList/networkPanel.png"
  6198. alt
  6199. />
  6200. <div style="margin: 5px 0">数学画板</div>
  6201. </div>
  6202. <div class="noCTool">
  6203. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6204. </div>
  6205. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6206. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6207. </div>
  6208. <!-- <div class="check" @click="chapAddTools(31)">
  6209. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6210. <div class="checkDiv" v-else>
  6211. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6212. </div>
  6213. </div> -->
  6214. </div>
  6215. </div>
  6216. <div class="toolSort" v-if="chapToolsType == 2">
  6217. <div
  6218. class="tool"
  6219. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6220. @click="chapAddTools(5)"
  6221. >
  6222. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6223. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  6224. <div style="margin: 5px 0">量规评分</div>
  6225. </div>
  6226. <div class="noCTool">
  6227. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6228. </div>
  6229. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6230. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6231. </div>
  6232. <!-- <div class="check" @click="chapAddTools(5)">
  6233. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6234. <div class="checkDiv" v-else>
  6235. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6236. </div>
  6237. </div> -->
  6238. </div>
  6239. <div
  6240. class="tool"
  6241. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6242. @click="chapAddTools(4)"
  6243. >
  6244. <div
  6245. class="whiteBIcon"
  6246. @click.stop="openTools(chapCount, 4, null)"
  6247. >
  6248. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6249. <div style="margin: 5px 0">问卷调查</div>
  6250. </div>
  6251. <div class="noCTool">
  6252. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6253. </div>
  6254. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6255. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6256. </div>
  6257. <!-- <div class="check" @click="chapAddTools(4)">
  6258. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6259. <div class="checkDiv" v-else>
  6260. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6261. </div>
  6262. </div> -->
  6263. </div>
  6264. </div>
  6265. </div>
  6266. <div>
  6267. <input
  6268. type="text"
  6269. placeholder="添加工具描述"
  6270. class="binfo_input"
  6271. style="margin: 20px 0; width: 100% !important"
  6272. v-model="itemTools.toolDetail"
  6273. />
  6274. </div>
  6275. </div>
  6276. </div>
  6277. </div>
  6278. <span slot="footer" class="dialog-footer">
  6279. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6280. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6281. </span>
  6282. </el-dialog>
  6283. <el-dialog
  6284. title="添加问答"
  6285. :visible.sync="dialogVisible8"
  6286. :append-to-body="true"
  6287. width="500px"
  6288. :before-close="
  6289. (done) => {
  6290. closePan(15);
  6291. }
  6292. "
  6293. class="dialog_diy"
  6294. >
  6295. <div>
  6296. <div
  6297. class="a_add_title"
  6298. style="
  6299. display: flex;
  6300. flex-direction: column;
  6301. align-items: flex-start;
  6302. justify-content: center;
  6303. "
  6304. >
  6305. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6306. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6307. <textarea
  6308. rows="1"
  6309. v-autoHeight="40"
  6310. type="text"
  6311. placeholder="请输入您要问的问题"
  6312. class="binfo_input"
  6313. style="width: 100% !important; border: 1px solid #dcdfe6"
  6314. v-model="answerQ"
  6315. ></textarea>
  6316. </div>
  6317. </div>
  6318. <span slot="footer" class="dialog-footer">
  6319. <el-button @click="closePan(15)">取 消</el-button>
  6320. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6321. </span>
  6322. </el-dialog>
  6323. <el-dialog
  6324. title="添加问题"
  6325. :visible.sync="dialogVisibleMp3"
  6326. :append-to-body="true"
  6327. width="500px"
  6328. :before-close="handleClose"
  6329. class="dialog_diy"
  6330. >
  6331. <div>
  6332. <div
  6333. class="a_add_title"
  6334. style="
  6335. display: flex;
  6336. flex-direction: column;
  6337. align-items: flex-start;
  6338. justify-content: center;
  6339. "
  6340. >
  6341. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6342. <el-input
  6343. v-model="answerQ"
  6344. placeholder="请输入您想要回答的问题"
  6345. ></el-input>
  6346. </div>
  6347. </div>
  6348. <span slot="footer" class="dialog-footer">
  6349. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6350. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6351. </span>
  6352. </el-dialog>
  6353. <el-dialog
  6354. title="上传图片"
  6355. :visible.sync="choosePicVisible"
  6356. :append-to-body="true"
  6357. width="600px"
  6358. :before-close="handleClose"
  6359. class="dialog_diy"
  6360. >
  6361. <div>
  6362. <div class="fileCss" style="padding-top: 20px">
  6363. <div>
  6364. <button class="info_btn" @click="addImg($event)">
  6365. 选择本地文件
  6366. <input
  6367. type="file"
  6368. accept="image/*"
  6369. style="display: none"
  6370. @change="beforeUpload1"
  6371. />
  6372. </button>
  6373. <div class="spanName">选择本地文件</div>
  6374. </div>
  6375. <!-- <div>
  6376. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6377. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6378. <img :src="cover[0].url" alt="" />
  6379. <div class="deletePic" @click="deleteSysPic">
  6380. <img src="../../../assets/icon/delete.png" alt="" />
  6381. </div>
  6382. </div>
  6383. <div class="spanName">选择系统文件</div>
  6384. </div> -->
  6385. <div>
  6386. <el-button
  6387. @click="(searchImageValue = courseName), resetImage()"
  6388. v-if="isSysPic2 == false"
  6389. >选择网络文件</el-button
  6390. >
  6391. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6392. <img :src="cover[0].url" alt="" />
  6393. <div class="deletePic" @click="deleteSysPic">
  6394. <img src="../../../assets/icon/delete.png" alt="" />
  6395. </div>
  6396. </div>
  6397. <div class="spanName">选择网络文件</div>
  6398. </div>
  6399. </div>
  6400. <!-- <div class="fileCss">
  6401. </div> -->
  6402. </div>
  6403. <span slot="footer" class="dialog-footer">
  6404. <el-button @click="choosePicVisible = false">取 消</el-button>
  6405. <el-button type="primary" @click="choosePicVisible = false"
  6406. >确 定</el-button
  6407. >
  6408. </span>
  6409. </el-dialog>
  6410. <el-dialog
  6411. title="选择系统文件"
  6412. :visible.sync="sysPicVisible"
  6413. :append-to-body="true"
  6414. width="710px"
  6415. :before-close="handleClose"
  6416. class="dialog_diy"
  6417. >
  6418. <div class="cru_selectBox" style="margin: 0">
  6419. <div
  6420. @click="getChoosePic(1)"
  6421. class="cru_select"
  6422. :class="chooseType == 1 ? 'cru_selected' : ''"
  6423. >
  6424. 绘画
  6425. </div>
  6426. <div
  6427. @click="getChoosePic(2)"
  6428. class="cru_select"
  6429. :class="chooseType == 2 ? 'cru_selected' : ''"
  6430. >
  6431. 科技
  6432. </div>
  6433. <div
  6434. @click="getChoosePic(3)"
  6435. class="cru_select"
  6436. :class="chooseType == 3 ? 'cru_selected' : ''"
  6437. >
  6438. 人文
  6439. </div>
  6440. <div
  6441. @click="getChoosePic(4)"
  6442. class="cru_select"
  6443. :class="chooseType == 4 ? 'cru_selected' : ''"
  6444. >
  6445. 艺术
  6446. </div>
  6447. </div>
  6448. <div class="sysPicBox">
  6449. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6450. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6451. </div>
  6452. </div>
  6453. </el-dialog>
  6454. <el-dialog
  6455. title="选择网络文件"
  6456. :visible.sync="sysPicVisible2"
  6457. :append-to-body="true"
  6458. width="710px"
  6459. :before-close="handleClose"
  6460. class="dialog_diy"
  6461. >
  6462. <div>
  6463. <div
  6464. class="people_top_right"
  6465. style="display: flex; align-items: center"
  6466. >
  6467. <div style="position: relative; width: 100%">
  6468. <el-input
  6469. style="height: 100%"
  6470. placeholder="搜索图片关键字"
  6471. v-model="searchImageValue"
  6472. @keyup.enter.native="resetImage()"
  6473. ></el-input>
  6474. <div class="search_img" @click="resetImage" style="right: 10px">
  6475. <img src="../../../assets/icon/search.png" alt />
  6476. </div>
  6477. </div>
  6478. <el-button
  6479. type="primary"
  6480. size="default"
  6481. style="margin-left: 10px"
  6482. @click="changePicture"
  6483. >换一组</el-button
  6484. >
  6485. </div>
  6486. <div class="sysPicBox" v-loading="imageloading">
  6487. <div class="picNone" v-if="!imageList.length">
  6488. 请输入关键词搜索图片
  6489. </div>
  6490. <div
  6491. v-for="(sys, sysIndex) in imageList"
  6492. :key="sysIndex"
  6493. class="sysPic"
  6494. >
  6495. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6496. </div>
  6497. </div>
  6498. </div>
  6499. </el-dialog>
  6500. <el-dialog
  6501. title="选择匹配"
  6502. :visible.sync="dialogVisibleSelect"
  6503. :append-to-body="true"
  6504. width="800px"
  6505. :before-close="
  6506. (done) => {
  6507. closePan(41);
  6508. }
  6509. "
  6510. class="dialog_diy dialog_diy3 fullStyle"
  6511. >
  6512. <div v-if="selectJson" style="height: 100%">
  6513. <div class="select_box1" v-if="selectSteps == 1">
  6514. <div class="select_box1_img">
  6515. <div class="select_box1_title">
  6516. <span>上传题目图片</span
  6517. ><span>提示:请将所有题目上传为一张图片。</span>
  6518. </div>
  6519. <div class="select_box1_add_img">
  6520. <div
  6521. class="uploadFm"
  6522. @click="addImg($event)"
  6523. v-if="!selectJson.url"
  6524. >
  6525. <input
  6526. type="file"
  6527. accept="image/*"
  6528. style="display: none"
  6529. @change="beforeUploadSelect"
  6530. />
  6531. <img src="../../../assets/icon/addPoster.png" alt="" />
  6532. </div>
  6533. <div class="isSysPic" v-else>
  6534. <img
  6535. :src="selectJson.url"
  6536. alt=""
  6537. @click="previewImg(selectJson.url)"
  6538. />
  6539. <div class="deletePic" @click="deleteSelectPic">
  6540. <img src="../../../assets/icon/delete.png" alt="" />
  6541. </div>
  6542. </div>
  6543. </div>
  6544. </div>
  6545. <div class="select_box1_select">
  6546. <div class="select_box1_title">
  6547. <span>添加选项</span
  6548. ><span
  6549. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  6550. >
  6551. </div>
  6552. <div class="select_box1_select_box">
  6553. <el-input
  6554. v-for="(item2, checkIndex) in selectJson.select"
  6555. :key="checkIndex"
  6556. v-model="selectJson.select[checkIndex]"
  6557. placeholder="请输入选项"
  6558. style="width: 150px; margin: 10px 10px 0 0"
  6559. ></el-input>
  6560. <div class="select_box1_select_box_add">
  6561. <el-button
  6562. style="margin: 10px 0px 0 0"
  6563. type="primary"
  6564. size="small"
  6565. @click="addSelectList(selectJson)"
  6566. >
  6567. 添加</el-button
  6568. >
  6569. <el-button
  6570. type="primary"
  6571. size="small"
  6572. style="margin: 10px 0 0 0"
  6573. @click="deleteSelectList(selectJson)"
  6574. v-if="selectJson.select && selectJson.select.length > 0"
  6575. >删除</el-button
  6576. >
  6577. </div>
  6578. </div>
  6579. </div>
  6580. </div>
  6581. <div v-if="selectSteps == 2" style="height: 100%">
  6582. <div class="select_box2">
  6583. <div class="select_box2_title">设置每道题目的正确选项</div>
  6584. <div class="select_box2_box">
  6585. <div class="select_box2_img">
  6586. <img
  6587. :src="selectJson.url"
  6588. alt=""
  6589. @click="previewImg(selectJson.url)"
  6590. />
  6591. </div>
  6592. <div class="select_box2_answer">
  6593. <div class="select_answer_title">根据题目选择对应答案</div>
  6594. <div
  6595. class="select_box2_answer_box"
  6596. v-for="(item2, checkIndex) in selectJson.select"
  6597. :key="checkIndex"
  6598. >
  6599. <span>{{ checkIndex + 1 }}、</span>
  6600. <el-select
  6601. v-model="selectJson.answer[checkIndex]"
  6602. placeholder="请选择正确答案"
  6603. >
  6604. <el-option
  6605. v-for="(e, eIndex) in selectJson.select"
  6606. :key="eIndex"
  6607. :label="e"
  6608. :value="eIndex"
  6609. >
  6610. </el-option>
  6611. </el-select>
  6612. </div>
  6613. </div>
  6614. </div>
  6615. </div>
  6616. </div>
  6617. </div>
  6618. <span slot="footer" class="dialog-footer">
  6619. <el-button
  6620. type="primary"
  6621. @click="nextSelectSteps()"
  6622. v-if="selectSteps == 1"
  6623. >下一步</el-button
  6624. >
  6625. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6626. >上一步</el-button
  6627. >
  6628. <el-button
  6629. type="primary"
  6630. @click="addSelectAnswer"
  6631. v-if="selectSteps == 2"
  6632. >确 定</el-button
  6633. >
  6634. </span>
  6635. </el-dialog>
  6636. <el-dialog
  6637. title="添加评价"
  6638. :visible.sync="dialogVisibleRate"
  6639. :append-to-body="true"
  6640. width="650px"
  6641. :before-close="handleClose"
  6642. class="dialog_diy"
  6643. >
  6644. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6645. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6646. <div class="pjCss" style="width: 100%">
  6647. <div
  6648. v-if="rateJson.length"
  6649. class="elist_input"
  6650. style="height: 360px; overflow: auto"
  6651. >
  6652. <div
  6653. v-for="(eItem, eIndex) in rateJson"
  6654. :key="eIndex"
  6655. class="elist_input_box"
  6656. >
  6657. <span style="min-width: 100px; text-align: right"
  6658. >个人评价指标:</span
  6659. >
  6660. <input
  6661. type="input"
  6662. v-model="eItem.value"
  6663. placeholder="填写评价维度"
  6664. />
  6665. <div class="remove" @click="deletRateList(eIndex)"></div>
  6666. <div style="width: 100%; display: flex">
  6667. <span style="min-width: 100px; text-align: right"
  6668. >评星等级:</span
  6669. >
  6670. <el-rate v-model="eItem.score" disabled></el-rate>
  6671. </div>
  6672. <div class="elist_inptu_text" style="align-items: flex-start">
  6673. <span style="min-width: 100px; text-align: right">描述:</span>
  6674. <textarea
  6675. class="rate_textarea"
  6676. :rows="3"
  6677. v-model="eItem.detail"
  6678. placeholder="填写维度描述"
  6679. ></textarea>
  6680. </div>
  6681. </div>
  6682. </div>
  6683. <div class="addToolFun" @click="addRateList()">
  6684. <div class="addToolImg">
  6685. <img src="../../../assets/icon/add.png" alt />
  6686. </div>
  6687. <div>添加</div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. <span slot="footer" class="dialog-footer">
  6692. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6693. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6694. </span>
  6695. </el-dialog>
  6696. <el-dialog
  6697. title="排序设置"
  6698. :visible.sync="dialogVisibleSentence"
  6699. :append-to-body="true"
  6700. width="1000px"
  6701. :before-close="
  6702. (done) => {
  6703. closePan(47);
  6704. }
  6705. "
  6706. class="dialog_diy dialog_diy3 fullStyle"
  6707. >
  6708. <div style="height: 100%">
  6709. <div class="sentenBox" style="height: 100%">
  6710. <div class="addSen" @click="addSt">添加题目</div>
  6711. <div
  6712. v-for="(st, stIndex) in sentenceList"
  6713. :key="stIndex"
  6714. class="sentenContent"
  6715. >
  6716. <div class="sentenTopBox">
  6717. <div class="sentenTop" :index="stIndex + 1">
  6718. <div>题目设置</div>
  6719. <div>
  6720. <el-input
  6721. placeholder="请输入卡片内容"
  6722. v-model="st.sentenceTitle"
  6723. :maxlength="10"
  6724. ></el-input>
  6725. </div>
  6726. <div @click="addSen(stIndex)">添加</div>
  6727. <div
  6728. class="remove1"
  6729. v-if="sentenceList.length > 1"
  6730. @click="deleteSentence(stIndex)"
  6731. ></div>
  6732. </div>
  6733. </div>
  6734. <div class="cardList">
  6735. <div v-if="st.addSentence.length > 0" class="cardBox">
  6736. <div
  6737. class="isCard"
  6738. v-for="(s, sIndex) in st.addSentence"
  6739. :key="sIndex"
  6740. @click="setRightAnswer(s, stIndex, sIndex)"
  6741. >
  6742. <el-tooltip
  6743. class="item"
  6744. effect="light"
  6745. :content="s"
  6746. placement="top"
  6747. >
  6748. <div>{{ s }}</div>
  6749. </el-tooltip>
  6750. <div
  6751. class="deleteWord"
  6752. @click.stop="deleteS(s, stIndex, sIndex)"
  6753. >
  6754. <img src="../../../assets/icon/delete.png" alt="" />
  6755. </div>
  6756. </div>
  6757. </div>
  6758. <div class="card">
  6759. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  6760. </div>
  6761. </div>
  6762. <div class="rightCardBox">
  6763. <div>正确顺序</div>
  6764. <div class="rightCardList">
  6765. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6766. <div
  6767. v-for="(r, rIndex) in st.rightAnswer"
  6768. :key="rIndex"
  6769. class="cardCss"
  6770. >
  6771. <div
  6772. class="isCard1"
  6773. @click="returnCard(r, stIndex, rIndex)"
  6774. >
  6775. <el-tooltip
  6776. class="item"
  6777. effect="light"
  6778. :content="r"
  6779. placement="top"
  6780. >
  6781. <div>{{ r }}</div>
  6782. </el-tooltip>
  6783. </div>
  6784. <div>{{ rIndex + 1 }}</div>
  6785. </div>
  6786. </div>
  6787. <div class="card" v-if="st.rightAnswer.length == 0">
  6788. <img
  6789. src="../../../assets/icon/conSentences/noAnswer.png"
  6790. alt=""
  6791. />
  6792. </div>
  6793. <div class="card" v-else>
  6794. <img
  6795. src="../../../assets/icon/conSentences/clickNo.png"
  6796. alt=""
  6797. />
  6798. </div>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. </div>
  6803. </div>
  6804. <span slot="footer" class="dialog-footer">
  6805. <el-button @click="closePan(47)">取 消</el-button>
  6806. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6807. </span>
  6808. </el-dialog>
  6809. <el-dialog
  6810. title="添加表格"
  6811. :visible.sync="dialogVisibleTable"
  6812. :append-to-body="true"
  6813. width="95%"
  6814. :before-close="handleClose"
  6815. class="dialog_diy"
  6816. >
  6817. <el-form>
  6818. <!-- <el-form-item label="文本标题">
  6819. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6820. </el-form-item> -->
  6821. <div>表格内容</div>
  6822. <Table v-model="tableJson.text" @change="change"></Table>
  6823. </el-form>
  6824. <span slot="footer" class="dialog-footer">
  6825. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6826. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6827. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6828. </span>
  6829. </el-dialog>
  6830. <el-dialog
  6831. title="添加文档"
  6832. :visible.sync="dialogVisibleWord"
  6833. :append-to-body="true"
  6834. width="95%"
  6835. :before-close="handleClose"
  6836. class="dialog_diy"
  6837. >
  6838. <el-form>
  6839. <!-- <el-form-item label="文本标题">
  6840. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6841. </el-form-item> -->
  6842. <div>文档内容</div>
  6843. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  6844. </el-form>
  6845. <span slot="footer" class="dialog-footer">
  6846. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6847. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6848. </span>
  6849. </el-dialog>
  6850. <el-dialog
  6851. title="添加班级"
  6852. :visible.sync="dialogVisibleMoreUpload"
  6853. :append-to-body="true"
  6854. width="30%"
  6855. :before-close="handleClose"
  6856. class="dialog_diy"
  6857. >
  6858. <div
  6859. style="
  6860. width: 100%;
  6861. display: flex;
  6862. flex-direction: row;
  6863. flex-wrap: nowrap;
  6864. align-items: center;
  6865. justify-content: center;
  6866. "
  6867. >
  6868. <div>班级:</div>
  6869. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6870. <el-option
  6871. v-for="item in classJuri"
  6872. :key="item.id"
  6873. :label="item.name"
  6874. :value="item.id"
  6875. >
  6876. </el-option>
  6877. </el-select>
  6878. </div>
  6879. <span slot="footer" class="dialog-footer">
  6880. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6881. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6882. </span>
  6883. </el-dialog>
  6884. <el-dialog
  6885. title="设置随机码"
  6886. :visible.sync="dialogVisibleInvite"
  6887. :append-to-body="true"
  6888. width="360px"
  6889. :before-close="handleClose"
  6890. class="dialog_diy"
  6891. >
  6892. <div
  6893. style="
  6894. width: 100%;
  6895. display: flex;
  6896. flex-direction: row;
  6897. flex-wrap: nowrap;
  6898. align-items: center;
  6899. justify-content: center;
  6900. "
  6901. >
  6902. <div>随机码:</div>
  6903. <el-input
  6904. v-model="icode"
  6905. style="width: 240px"
  6906. placeholder="请输入随机码"
  6907. ></el-input>
  6908. </div>
  6909. <span slot="footer" class="dialog-footer">
  6910. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6911. <el-button type="primary" @click="addInvite">确定</el-button>
  6912. </span>
  6913. </el-dialog>
  6914. <el-dialog
  6915. title="添加预设时间"
  6916. :visible.sync="dialogVisiblePreTime"
  6917. :append-to-body="true"
  6918. width="450px"
  6919. :before-close="handleClose"
  6920. class="dialog_diy"
  6921. >
  6922. <div>
  6923. <div style="margin-bottom: 20px; color: #999">
  6924. 提示:点击“+”或“-”修改倒计时时长。
  6925. </div>
  6926. <Time
  6927. :preTime="preTime"
  6928. @updateTimeNum="updateTime"
  6929. v-if="dialogVisiblePreTime"
  6930. ></Time>
  6931. </div>
  6932. <span slot="footer" class="dialog-footer">
  6933. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6934. <el-button type="primary" @click="addPreTime">确定</el-button>
  6935. </span>
  6936. </el-dialog>
  6937. <el-dialog
  6938. title="导入目标"
  6939. :visible.sync="dialogVisiblemb"
  6940. :append-to-body="true"
  6941. width="70%"
  6942. :before-close="handleClose"
  6943. class="dialog_diy"
  6944. >
  6945. <div>
  6946. <div
  6947. style="
  6948. width: 100%;
  6949. display: flex;
  6950. flex-direction: row;
  6951. flex-wrap: nowrap;
  6952. align-content: center;
  6953. align-items: center;
  6954. justify-content: space-between;
  6955. "
  6956. >
  6957. <div
  6958. style="
  6959. display: flex;
  6960. flex-flow: row nowrap;
  6961. align-items: flex-start;
  6962. width: 100%;
  6963. flex-direction: column;
  6964. flex-wrap: nowrap;
  6965. position: relative;
  6966. "
  6967. >
  6968. <div class="e_box">
  6969. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6970. <div class="e_card_picture">
  6971. <img src="../../../assets/e_picture.png" />
  6972. </div>
  6973. <div class="e_card_name">
  6974. <span>{{ item.title }}</span>
  6975. </div>
  6976. <div class="e_card_btn">
  6977. <span @click="checkEva(item.id, 2)">导入</span>
  6978. </div>
  6979. </div> -->
  6980. <!-- <div class="addEva" @click="openT">
  6981. <img src="../../../assets/icon/addEva.png" alt="" />
  6982. </div> -->
  6983. <div
  6984. style="
  6985. display: flex;
  6986. justify-content: flex-end;
  6987. margin-bottom: 10px;
  6988. "
  6989. >
  6990. <el-button @click="openT" type="primary" size="small"
  6991. >添加目标</el-button
  6992. >
  6993. </div>
  6994. <el-table
  6995. v-if="evaJuri.length"
  6996. ref="table"
  6997. :data="evaJuri"
  6998. border
  6999. :fit="true"
  7000. style="width: 100%"
  7001. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  7002. :row-class-name="tableRowClassName"
  7003. >
  7004. <el-table-column
  7005. label="目标名称"
  7006. min-width="15"
  7007. align="center"
  7008. prop="title"
  7009. >
  7010. </el-table-column>
  7011. <el-table-column
  7012. prop="username"
  7013. label="负责人"
  7014. min-width="15"
  7015. align="center"
  7016. >
  7017. </el-table-column>
  7018. <el-table-column label="操作" width="250px">
  7019. <template slot-scope="scope">
  7020. <div class="btnBox">
  7021. <el-button
  7022. type="primary"
  7023. size="small"
  7024. @click="checkEva(scope.row.id, 2)"
  7025. >导入</el-button
  7026. >
  7027. </div>
  7028. </template>
  7029. </el-table-column>
  7030. </el-table>
  7031. <div
  7032. v-if="evaJuri.length === 0"
  7033. style="margin: 0 auto; color: #6e6e6e"
  7034. >
  7035. 暂无数据
  7036. </div>
  7037. </div>
  7038. </div>
  7039. </div>
  7040. </div>
  7041. <span slot="footer" class="dialog-footer">
  7042. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  7043. </span>
  7044. </el-dialog>
  7045. <el-dialog
  7046. title="分组设置"
  7047. :visible.sync="dialogVisibleGroup"
  7048. :append-to-body="true"
  7049. width="650px"
  7050. :before-close="handleClose"
  7051. class="dialog_diy"
  7052. >
  7053. <div class="groupBox">
  7054. <div v-if="groupJson.group" class="groupContent">
  7055. <div class="groupTitle">请设置小组数量及名称</div>
  7056. <div
  7057. v-for="(item, index) in groupJson.group"
  7058. :key="index"
  7059. class="groupName"
  7060. >
  7061. <span class="groupn">第{{ index + 1 }}组名称:</span>
  7062. <el-input
  7063. v-model="item.name"
  7064. placeholder="请输入名称..."
  7065. style="width: 250px"
  7066. ></el-input>
  7067. <div class="groupBtn">
  7068. <el-button
  7069. type="primary"
  7070. size="small"
  7071. @click="addGroup(index)"
  7072. v-if="groupJson.group.length - 1 == index"
  7073. >
  7074. 添加</el-button
  7075. >
  7076. <el-button
  7077. type="primary"
  7078. size="small"
  7079. @click="deleteGroup(index)"
  7080. v-if="groupJson.group && groupJson.group.length > 1"
  7081. >删除</el-button
  7082. >
  7083. </div>
  7084. </div>
  7085. </div>
  7086. <div class="groupContent">
  7087. <div class="groupTitle">请设置每组人数</div>
  7088. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7089. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7090. <el-input
  7091. v-model="groupJson.number"
  7092. style="width: 150px"
  7093. placeholder="请输入2-10的数字"
  7094. @change="numberPan"
  7095. ></el-input>
  7096. </div>
  7097. </div>
  7098. <span slot="footer" class="dialog-footer">
  7099. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  7100. <el-button type="primary" @click="addGroupJson">确定</el-button>
  7101. </span>
  7102. </el-dialog>
  7103. <el-dialog
  7104. title="修改名称"
  7105. :visible.sync="dialogVisibleupdataVideoT"
  7106. :append-to-body="true"
  7107. width="500px"
  7108. :before-close="handleClose"
  7109. class="dialog_diy"
  7110. >
  7111. <div
  7112. style="
  7113. width: 100%;
  7114. display: flex;
  7115. flex-direction: row;
  7116. flex-wrap: nowrap;
  7117. align-items: center;
  7118. justify-content: center;
  7119. "
  7120. >
  7121. <div style="min-width: fit-content">文件名称:</div>
  7122. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  7123. </div>
  7124. <span slot="footer" class="dialog-footer">
  7125. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  7126. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  7127. </span>
  7128. </el-dialog>
  7129. <el-dialog
  7130. title="创建作文题目"
  7131. :visible.sync="englishDialogVisible"
  7132. :append-to-body="true"
  7133. width="800px"
  7134. :before-close="
  7135. (done) => {
  7136. closePan(69);
  7137. }
  7138. "
  7139. class="dialog_diy fullStyle fullStyle1"
  7140. >
  7141. <englishRight
  7142. :englishList="englishList"
  7143. :oid="oid"
  7144. ref="engJson"
  7145. @setJson="addEnglish"
  7146. ></englishRight>
  7147. <span slot="footer" class="dialog-footer">
  7148. <el-button @click="englishDialogVisible = false">取 消</el-button>
  7149. <el-button type="primary" @click="addEnglish">确 定</el-button>
  7150. </span>
  7151. </el-dialog>
  7152. <el-dialog
  7153. title="选择课程模板"
  7154. :visible.sync="templateDialog"
  7155. :append-to-body="true"
  7156. width="630px"
  7157. :before-close="handleClose"
  7158. class="dialog_diy"
  7159. >
  7160. <div class="template_box">
  7161. <div
  7162. class="wordTeacher"
  7163. v-for="(aa, indexF) in templateArray"
  7164. :key="indexF"
  7165. @click="checkctJson(aa)"
  7166. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7167. >
  7168. <div class="wordPic">
  7169. <img src="../../../assets/icon/new/course_template.png" alt />
  7170. </div>
  7171. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7172. <div
  7173. style="
  7174. margin-top: 10px;
  7175. line-height: 19px;
  7176. overflow: hidden;
  7177. text-overflow: ellipsis;
  7178. white-space: nowrap;
  7179. padding: 0 10px;
  7180. box-sizing: border-box;
  7181. width: 100%;
  7182. "
  7183. >
  7184. {{ aa.title }}
  7185. </div>
  7186. </el-tooltip>
  7187. </div>
  7188. <div
  7189. class="wordTeacher"
  7190. @click="checkctJson({ id: 1 })"
  7191. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7192. :class="{ wordTeacherA: ctJson.id == 1 }"
  7193. >
  7194. <div class="wordPic">
  7195. <img src="../../../assets/icon/new/course_template.png" alt />
  7196. </div>
  7197. <div
  7198. style="
  7199. margin-top: 10px;
  7200. line-height: 19px;
  7201. overflow: hidden;
  7202. text-overflow: ellipsis;
  7203. white-space: nowrap;
  7204. padding: 0 20px;
  7205. "
  7206. >
  7207. 简易模板
  7208. </div>
  7209. </div>
  7210. <div
  7211. class="wordTeacher"
  7212. @click="checkctJson({ id: 2 })"
  7213. v-if="isPasteStage"
  7214. :class="{ wordTeacherA: ctJson.id == 2 }"
  7215. >
  7216. <div class="wordPic">
  7217. <img src="../../../assets/icon/new/course_template.png" alt />
  7218. </div>
  7219. <div
  7220. style="
  7221. margin-top: 10px;
  7222. line-height: 19px;
  7223. overflow: hidden;
  7224. text-overflow: ellipsis;
  7225. white-space: nowrap;
  7226. padding: 0 20px;
  7227. "
  7228. >
  7229. 智能粘贴模式
  7230. </div>
  7231. </div>
  7232. </div>
  7233. <span slot="footer" class="dialog-footer">
  7234. <el-button @click="templateDialog = false">取 消</el-button>
  7235. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7236. </span>
  7237. </el-dialog>
  7238. <interVideo
  7239. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7240. :videoJson="videoJson"
  7241. @add="addVideoJson"
  7242. ></interVideo>
  7243. <el-dialog
  7244. title="切换阶段顺序"
  7245. :visible.sync="dialogVisibleStageChange"
  7246. :append-to-body="true"
  7247. width="400px"
  7248. :before-close="handleClose"
  7249. class="dialog_diy dialog_diyStage"
  7250. >
  7251. <div class="change_stageBox">
  7252. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7253. <div class="nt_taskBox">
  7254. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  7255. <div class="nt_taskName">
  7256. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7257. <span>{{ t.dyName }}</span>
  7258. </el-tooltip>
  7259. </div>
  7260. </div>
  7261. <div class="moveBtn" v-if="unitJson3.length > 1">
  7262. <div
  7263. class="chapter_upload_up"
  7264. @click.stop="stageMove(1, tIndex)"
  7265. ></div>
  7266. <div
  7267. class="chapter_upload_down"
  7268. @click.stop="stageMove(2, tIndex)"
  7269. ></div>
  7270. </div>
  7271. </div>
  7272. </div>
  7273. <span slot="footer" class="dialog-footer">
  7274. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  7275. <el-button type="primary" @click="updateChange">确定</el-button>
  7276. </span>
  7277. </el-dialog>
  7278. <el-dialog
  7279. title="添加资源模板"
  7280. :visible.sync="cetBoxDialog"
  7281. :append-to-body="true"
  7282. width="400px"
  7283. :before-close="handleClose"
  7284. class="dialog_diy"
  7285. >
  7286. <div class="addTypeChoose" style="justify-content: center">
  7287. <div style="min-width: 100px">模板名称:</div>
  7288. <el-input v-model="templateName" style="width: 200px"></el-input>
  7289. </div>
  7290. <div class="addTypeBox">
  7291. <div class="addTypeChoose">
  7292. <div style="min-width: 100px">选择一级分类:</div>
  7293. <el-select
  7294. v-model="setTypeJson.one"
  7295. placeholder="请选择"
  7296. @change="getTwoType(setTypeJson.one)"
  7297. style="width: 200px"
  7298. >
  7299. <el-option
  7300. v-for="(item, index) in oneJson"
  7301. :key="index"
  7302. :label="item.name"
  7303. :value="item.id"
  7304. >
  7305. </el-option>
  7306. </el-select>
  7307. </div>
  7308. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7309. <div style="min-width: 100px">选择二级分类:</div>
  7310. <el-select
  7311. v-model="setTypeJson.two"
  7312. placeholder="请选择"
  7313. style="width: 200px"
  7314. >
  7315. <el-option
  7316. v-for="(item1, index1) in twoJson"
  7317. :key="index1"
  7318. :label="item1.name"
  7319. :value="item1.id"
  7320. >
  7321. </el-option>
  7322. </el-select>
  7323. </div>
  7324. </div>
  7325. <span slot="footer" class="dialog-footer">
  7326. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  7327. <el-button @click="close()">关 闭</el-button>
  7328. </span>
  7329. </el-dialog>
  7330. <evaBox
  7331. :userid="userid"
  7332. :oid="oid"
  7333. :org="org"
  7334. :dialogVisibleEva.sync="evaBoxDialog"
  7335. @updateEvaJson="updateEvaJson"
  7336. ></evaBox>
  7337. <EnglishVoice
  7338. :oid="oid"
  7339. :org="org"
  7340. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7341. :englishVoiceJson="englishVoiceJson"
  7342. @setEnglishVoiceJson="setEnglishVoiceJson"
  7343. ></EnglishVoice>
  7344. </div>
  7345. </template>
  7346. <script>
  7347. import "../../../common/aws-sdk-2.235.1.min.js";
  7348. import { tools as toolsData } from "../../../common/tools.js";
  7349. // import "../../../common/aws-sdk-2.99.0.min.js";
  7350. import $ from "jquery";
  7351. import EditorBar from "../../../components/tools/wangEnduit";
  7352. import Table from "../../../components/tools/table";
  7353. import Mind from "../../tools/jsmind2";
  7354. import Time from "../../tools/time.vue";
  7355. import Sunburst from "../../tools/sunburst";
  7356. import SeeBoard from "../../tools/seeBoard";
  7357. import weilaiData from "../components/weilai.js";
  7358. import sourceDialog from "../teacherSource/dialog.vue";
  7359. import interVideo from "../interVideo/index.vue";
  7360. import englishRight from "../components/englishRight.vue";
  7361. import evaBox from "../evaBox/index.vue";
  7362. import EnglishVoice from "../EnglishVoice/index.vue";
  7363. var OpenCC = require("opencc-js");
  7364. let converter = OpenCC.Converter({
  7365. from:'hk',
  7366. to:'cn'
  7367. })
  7368. export default {
  7369. components: {
  7370. EditorBar,
  7371. Mind,
  7372. Time,
  7373. Sunburst,
  7374. SeeBoard,
  7375. Table,
  7376. sourceDialog,
  7377. interVideo,
  7378. englishRight,
  7379. evaBox,
  7380. EnglishVoice,
  7381. },
  7382. data() {
  7383. return {
  7384. checkAll: false,
  7385. checkAll2: false,
  7386. chooseType: 1,
  7387. checkedCities: [],
  7388. isIndeterminate: true,
  7389. isIndeterminate2: true,
  7390. isSysPic: false,
  7391. isSysPic2: false,
  7392. steps: 1,
  7393. nbOrder: 0,
  7394. courseId: "",
  7395. chapToolsType: 0,
  7396. chapTools: [
  7397. {
  7398. tools: [],
  7399. toolDetail: "",
  7400. },
  7401. ],
  7402. line: "",
  7403. lineTitle: "",
  7404. sysPic: [],
  7405. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7406. sentenceList2: [],
  7407. isPushTitleList: [],
  7408. lineCount: 0,
  7409. lineType: 0,
  7410. chapCount: 0,
  7411. courseName: "",
  7412. isTeacherSee: false,
  7413. highSetting: false,
  7414. courseText: "",
  7415. preTime: 0,
  7416. formLabelWidth: "100px",
  7417. choosePicVisible: false,
  7418. sysPicVisible: false,
  7419. sysPicVisible2: false,
  7420. uploadLoading1: false,
  7421. noneBtnImg: false,
  7422. updateBoolean2: false,
  7423. unitIndex: 0,
  7424. taskCount: 0,
  7425. dialogVisible: false,
  7426. dialogVisible1: false,
  7427. dialogVisible2: false,
  7428. dialogVisible3: false,
  7429. dialogVisible4: false,
  7430. dialogVisible5: false,
  7431. dialogVisible6: false,
  7432. dialogVisible7: false,
  7433. dialogVisible8: false,
  7434. dialogVisible9: false,
  7435. dialogVisibleClass: false,
  7436. dialogVisibleMember: false,
  7437. dialogVisibleMp3: false,
  7438. dialogVisibleSelect: false,
  7439. dialogVisibleSentence: false,
  7440. dialogVisibleRate: false,
  7441. dialogVisibleChoice: false,
  7442. dialogVisiblemb: false,
  7443. dialogVisibleInvite: false,
  7444. dialogVisibleSource: false,
  7445. dialogVisibleVideo: false,
  7446. dialogVisibleStageChange: false,
  7447. dialogVisibleupdataVideoT: false,
  7448. englishDialogVisible: false,
  7449. templateDialog: false,
  7450. ctJson: {},
  7451. isClickColor: 1,
  7452. toolIndexType: "",
  7453. publicTool: 0,
  7454. searchPeople: "",
  7455. searchTN: "",
  7456. collid: '',
  7457. CollLoading: false,
  7458. userid: this.$route.query.userid,
  7459. oid: this.$route.query.oid,
  7460. org: this.$route.query.org,
  7461. role: this.$route.query.role,
  7462. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7463. dialogVisibleTable: false,
  7464. dialogVisibleWord: false,
  7465. tableJson: { text: "" },
  7466. wordJson: { text: "" },
  7467. dialogVisibleMoreUpload: false,
  7468. dialogVisiblePreTime: false,
  7469. uploadJson: [],
  7470. classJuri: [],
  7471. gradeList: [],
  7472. cover: [], //课程封面
  7473. myWord: [],
  7474. evaJuri: [],
  7475. evalua: "",
  7476. targetArray: [],
  7477. eTitle: "",
  7478. eJson: {},
  7479. fid: "", //一级
  7480. sid: "", //二级
  7481. tid: "", //二级
  7482. typeMode: 1,
  7483. eJSONNum: 0,
  7484. data: {
  7485. meta: {
  7486. name: "example",
  7487. author: "dd@163.com",
  7488. version: "0.2",
  7489. },
  7490. format: "node_array",
  7491. data: [{ id: "root", isroot: true, topic: "" }],
  7492. },
  7493. askJson: {
  7494. askCount: 1,
  7495. askTitle: "",
  7496. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7497. },
  7498. askJson2: {},
  7499. testJson: {},
  7500. testJson2: {},
  7501. selectJson: {},
  7502. selectJson2: {},
  7503. rateJson: [],
  7504. unitJson2: [],
  7505. unitJson3: [],
  7506. unitJson: [
  7507. {
  7508. dyName: "", //单元标题
  7509. chapterInfo: [
  7510. {
  7511. isread: false,
  7512. chapterid: this.guid(),
  7513. title: "",
  7514. courseName: "",
  7515. taskJson: [
  7516. {
  7517. task: "",
  7518. taskDetail: "",
  7519. chapterData: [],
  7520. toolText: "",
  7521. toolChoose: [
  7522. {
  7523. tool: [],
  7524. toolDetail: "",
  7525. toolType: 0,
  7526. askCount: 1,
  7527. askTitle: "",
  7528. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7529. },
  7530. ],
  7531. isShowTools: false,
  7532. askCount: 1,
  7533. isFold: 1,
  7534. askTitle: "",
  7535. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7536. checkJson: [{ checkCount: [], checkPerent: [] }],
  7537. homeworkList: [],
  7538. },
  7539. ],
  7540. itemCount: 1,
  7541. fileList1: [],
  7542. video: [],
  7543. testData: [],
  7544. pData: [],
  7545. templateArray: [],
  7546. },
  7547. ],
  7548. },
  7549. ],
  7550. templateArray: [],
  7551. studentJuri: [],
  7552. teacherJuri: [],
  7553. CollaborativeTeaList: [],
  7554. checkboxList: [],
  7555. checkboxList2: [],
  7556. checkboxList3: [],
  7557. classSearch: "",
  7558. gradeId: "",
  7559. number: "",
  7560. tTitle: "",
  7561. tdetail: "",
  7562. templateC: {},
  7563. AttText: {},
  7564. AttTextType: 0,
  7565. AttTextIndex: 0,
  7566. cTemplate: "",
  7567. CourseType: [],
  7568. CourseType1: [],
  7569. CourseType2: [],
  7570. CourseTypeJson: {},
  7571. CourseTypeJson1: {},
  7572. courseTypeId: [],
  7573. courseTypeId1: [],
  7574. courseTypeSon: [],
  7575. clearArray: [],
  7576. pTypeCheck: [],
  7577. pTypeCheckName: [],
  7578. loading: false,
  7579. toolType: 0,
  7580. inputShow: true,
  7581. inputShow2: true,
  7582. toolIndex: 0,
  7583. cidType: 0,
  7584. answerQ: "",
  7585. answerQ2: "",
  7586. grade: [],
  7587. grade2: [],
  7588. courseUserid: "",
  7589. timer: null,
  7590. timer2: null,
  7591. pasteTimer: null,
  7592. checkId: "",
  7593. isDelete: 1,
  7594. addindex: 0,
  7595. selectSteps: 1,
  7596. groupJson: {},
  7597. dialogVisibleGroup: false,
  7598. rightBoxHeight: 10,
  7599. ManAarray: [],
  7600. checkBoolean: false,
  7601. inviteCode: [],
  7602. inviteId: "",
  7603. icode: "",
  7604. easyArray: [2, 4],
  7605. sourceData: {},
  7606. updateSourcePan: false,
  7607. videoJson: {},
  7608. isBtnDisplay: false,
  7609. isStepDisplay: false,
  7610. isPasteStage: false,
  7611. isPasteTask: false,
  7612. isPasteChoice: false,
  7613. imageList: [],
  7614. imageloading: false,
  7615. searchImageValue: "",
  7616. ppage: 1,
  7617. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  7618. oldIndex: 0,
  7619. dragType: "",
  7620. oldUnitIndex: 0,
  7621. oldData: null,
  7622. newIndex: "",
  7623. englishList: {},
  7624. typeIndex: "",
  7625. courseState: 2,
  7626. taskJSONa: [
  7627. {
  7628. task: "",
  7629. taskDetail: "",
  7630. chapterData: [],
  7631. toolText: "",
  7632. toolChoose: [
  7633. {
  7634. tool: [],
  7635. toolDetail: "",
  7636. toolType: 0,
  7637. askCount: 1,
  7638. askTitle: "",
  7639. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7640. },
  7641. ],
  7642. isShowTools: false,
  7643. askCount: 1,
  7644. isFold: 1,
  7645. askTitle: "",
  7646. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7647. checkJson: [{ checkCount: [], checkPerent: [] }],
  7648. homeworkList: [],
  7649. },
  7650. ],
  7651. checkUnitIndex: 0,
  7652. isdrag: "",
  7653. evaIndex: "",
  7654. evatIndex: "",
  7655. evaBoxDialog: false,
  7656. EnglishVoiceDialog: false,
  7657. englishVoiceJson: {},
  7658. cetIndex: "",
  7659. cettIndex: "",
  7660. cetBoxDialog: false,
  7661. templateName: "",
  7662. setTypeJson: {
  7663. one: "",
  7664. two: "",
  7665. },
  7666. twoJson: [],
  7667. oneJson: [],
  7668. updateKey:1,
  7669. 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']
  7670. };
  7671. },
  7672. directives: {
  7673. autoHeight: {
  7674. update(el, binding) {
  7675. const { value } = binding;
  7676. if (value && typeof value === "number") {
  7677. el.style.height = `${value}px`;
  7678. } else {
  7679. el.style.height = "auto";
  7680. }
  7681. },
  7682. componentUpdated(el) {
  7683. el.style.height = `${el.scrollHeight + 5}px`;
  7684. },
  7685. },
  7686. },
  7687. computed: {
  7688. // rightBoxHeight: function () {
  7689. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7690. // },
  7691. offsetLetfPx: function () {
  7692. //addnum可以直接在模板语法里面用,相当于data内的值
  7693. return (
  7694. $(".cru_select")[this.unitIndex] &&
  7695. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7696. );
  7697. },
  7698. getMan2() {
  7699. return function (people) {
  7700. let _people = people;
  7701. let _people2 = "";
  7702. if (this.ManAarray.length) {
  7703. for (var i = 0; i < this.ManAarray.length; i++) {
  7704. if (this.ManAarray[i].userid == people) {
  7705. _people2 = this.ManAarray[i].name;
  7706. break;
  7707. }
  7708. }
  7709. }
  7710. if (people == this.courseUserid) {
  7711. return "";
  7712. }
  7713. return this.ManAarray.length ? _people2 : "";
  7714. };
  7715. },
  7716. getListMan2() {
  7717. return function (list) {
  7718. console.log('getListMan2',list);
  7719. let _people2 = [];
  7720. if (this.ManAarray.length) {
  7721. for (var j = 0; j < list.length; j++) {
  7722. let people = list[j];
  7723. for (var i = 0; i < this.ManAarray.length; i++) {
  7724. if (
  7725. this.ManAarray[i].userid == people &&
  7726. people != this.courseUserid
  7727. ) {
  7728. _people2.push(this.ManAarray[i].name);
  7729. break;
  7730. }
  7731. }
  7732. }
  7733. }
  7734. return this.ManAarray.length ? _people2.join("、") : "";
  7735. };
  7736. },
  7737. isInvite() {
  7738. return function (cid) {
  7739. let array = [];
  7740. for (var i = 0; i < this.inviteCode.length; i++) {
  7741. array.push(this.inviteCode[i].cid);
  7742. }
  7743. return array.indexOf(cid) != -1;
  7744. };
  7745. },
  7746. getInviteCodeC() {
  7747. return function (cid) {
  7748. let array = [];
  7749. for (var i = 0; i < this.inviteCode.length; i++) {
  7750. array.push(this.inviteCode[i].cid);
  7751. }
  7752. return this.inviteCode[array.indexOf(cid)].ic;
  7753. };
  7754. },
  7755. getClassC() {
  7756. return function (c) {
  7757. let _c2 = "";
  7758. if (this.grade.length) {
  7759. for (var i = 0; i < this.grade.length; i++) {
  7760. if (this.grade[i].id == c) {
  7761. _c2 = this.grade[i].name;
  7762. break;
  7763. }
  7764. }
  7765. }
  7766. return this.grade.length ? _c2 : "";
  7767. };
  7768. },
  7769. getListClassC() {
  7770. return function (list) {
  7771. let _c2 = [];
  7772. if (this.grade.length) {
  7773. for (var j = 0; j < list.length; j++) {
  7774. let c = list[j];
  7775. for (var i = 0; i < this.grade.length; i++) {
  7776. if (this.grade[i].id == c) {
  7777. _c2.push(this.grade[i].name);
  7778. break;
  7779. }
  7780. }
  7781. }
  7782. }
  7783. return this.grade.length ? _c2.join("、") : "";
  7784. };
  7785. },
  7786. },
  7787. watch: {
  7788. unitIndex(newValue, oldValue) {
  7789. if (this.isDelete == 2) {
  7790. this.isDelete = 1;
  7791. return;
  7792. }
  7793. if (this.cid != "") {
  7794. let _unitIndex = oldValue;
  7795. if (
  7796. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7797. JSON.stringify(this.unitJson[_unitIndex])
  7798. ) {
  7799. // this.$refs.rightboxR.scrollTop = 0;
  7800. return;
  7801. }
  7802. let cPan = 1;
  7803. for (
  7804. var j = 0;
  7805. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7806. j++
  7807. ) {
  7808. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7809. j
  7810. ].proVisible = false;
  7811. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7812. j
  7813. ].proVisible2 = false;
  7814. if (
  7815. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7816. .length > 1
  7817. ) {
  7818. for (
  7819. var z = 0;
  7820. z <
  7821. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7822. .length;
  7823. z++
  7824. ) {
  7825. if (
  7826. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7827. .toolChoose[z].tool.length
  7828. ) {
  7829. this.$message.error("请把工具添加完整");
  7830. cPan = 2;
  7831. break;
  7832. }
  7833. }
  7834. }
  7835. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7836. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7837. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7838. (ele) => {
  7839. return ele.value != "";
  7840. }
  7841. );
  7842. }
  7843. }
  7844. if (cPan == 2) {
  7845. this.unitIndex = oldValue;
  7846. return;
  7847. }
  7848. for (var i = 0; i < this.unitJson.length; i++) {
  7849. if (this.addindex != i) {
  7850. delete this.unitJson[i].isUpdate;
  7851. }
  7852. }
  7853. // this.$refs.rightboxR.scrollTop = 0;
  7854. this.addindex = -1;
  7855. let params = [
  7856. {
  7857. cid: this.cid,
  7858. chapters: JSON.stringify(this.unitJson),
  7859. uid: this.userid,
  7860. unitIndex: _unitIndex,
  7861. },
  7862. ];
  7863. this.ajax
  7864. .post(this.$store.state.api + "updateWorkNew4", params)
  7865. .then((res) => {
  7866. // this.$message({
  7867. // message: "修改成功",
  7868. // type: "success",
  7869. // });
  7870. // this.courseId = this.cid;
  7871. })
  7872. .catch((err) => {
  7873. this.$message.error("网络不佳");
  7874. console.error(err);
  7875. });
  7876. }
  7877. },
  7878. steps(newValue, old) {
  7879. if (newValue == 4) {
  7880. let cPan = 1;
  7881. for (var i = 0; i < this.unitJson.length; i++) {
  7882. for (
  7883. var j = 0;
  7884. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7885. j++
  7886. ) {
  7887. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7888. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7889. if (
  7890. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7891. ) {
  7892. for (
  7893. var z = 0;
  7894. z <
  7895. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7896. z++
  7897. ) {
  7898. if (
  7899. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  7900. .tool.length
  7901. ) {
  7902. this.$message.error("请把工具添加完整");
  7903. cPan = 2;
  7904. break;
  7905. }
  7906. }
  7907. }
  7908. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7909. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7910. i
  7911. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7912. return ele.value != "";
  7913. });
  7914. }
  7915. }
  7916. }
  7917. this.inputShow = true;
  7918. if (cPan == 2) {
  7919. this.steps = old;
  7920. return;
  7921. }
  7922. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  7923. top.U.UF.F.closeWindow(top.$("#openCourseUpdate"))
  7924. }
  7925. this.goTo(
  7926. "/course?userid=" +
  7927. this.userid +
  7928. "&oid=" +
  7929. this.oid +
  7930. "&org=" +
  7931. this.org +
  7932. "&role=" +
  7933. this.role
  7934. );
  7935. }
  7936. },
  7937. },
  7938. methods: {
  7939. tableRowClassName({ row, rowIndex }) {
  7940. if ((rowIndex + 1) % 2 === 0) {
  7941. return "even_row";
  7942. } else {
  7943. return "";
  7944. }
  7945. },
  7946. close() {
  7947. this.cetIndex = "";
  7948. this.cettIndex = "";
  7949. this.templateName = "";
  7950. this.cetBoxDialog = false;
  7951. },
  7952. openAI() {
  7953. top.postMessage({ tools: "64" }, "*");
  7954. },
  7955. setMan() {
  7956. // let teacherJuri = this.teacherJuri2;
  7957. this.ManAarray = [];
  7958. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7959. if (_user.indexOf(this.userid) == -1) {
  7960. _user.push(this.userid);
  7961. }
  7962. if (_user.indexOf(this.courseUserid) == -1) {
  7963. _user.push(this.courseUserid);
  7964. }
  7965. let params = [{
  7966. uid: _user.join(","),
  7967. }];
  7968. this.ajax
  7969. .post(this.$store.state.api + "getAllUserByIdP", params)
  7970. .then((res) => {
  7971. let teacherJuri = res.data[0];
  7972. this.ManAarray = teacherJuri;
  7973. })
  7974. .catch((err) => {
  7975. console.error(err);
  7976. });
  7977. },
  7978. previewImg(url) {
  7979. this.$hevueImgPreview(url);
  7980. },
  7981. btnDisplay(bool) {
  7982. this.isBtnDisplay = bool;
  7983. },
  7984. stepDisplay(bool) {
  7985. this.isStepDisplay = bool;
  7986. },
  7987. scrollChange() {
  7988. // this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  7989. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  7990. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  7991. this.rightBoxHeight = height1 + height2
  7992. },
  7993. addHw(e) {
  7994. var el = e.currentTarget;
  7995. el.getElementsByTagName("input")[0].click();
  7996. },
  7997. change(val) {
  7998. if (this.dialogVisible1) {
  7999. this.tdetail = val;
  8000. } else if (this.dialogVisible6) {
  8001. this.AttText.text = val;
  8002. } else if (this.dialogVisible2) {
  8003. this.cTemplate = val;
  8004. } else if (this.dialogVisibleTable) {
  8005. this.tableJson.text = val;
  8006. }
  8007. this.$forceUpdate();
  8008. console.log(val);
  8009. },
  8010. change2(val) {
  8011. console.log(val);
  8012. this.$forceUpdate();
  8013. },
  8014. handleClose(done) {
  8015. done();
  8016. },
  8017. closePan(tool) {
  8018. if (tool == 15) {
  8019. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  8020. this.dialogVisible8 = false;
  8021. } else {
  8022. this.closeConfirm(tool);
  8023. }
  8024. } else if (tool == 4) {
  8025. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  8026. this.dialogVisible5 = false;
  8027. } else {
  8028. this.closeConfirm(tool);
  8029. }
  8030. } else if (tool == 45) {
  8031. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  8032. this.dialogVisibleChoice = false;
  8033. } else {
  8034. this.closeConfirm(tool);
  8035. }
  8036. } else if (tool == 41) {
  8037. if (
  8038. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8039. ) {
  8040. this.dialogVisibleSelect = false;
  8041. } else {
  8042. this.closeConfirm(tool);
  8043. }
  8044. } else if (tool == 47) {
  8045. if (
  8046. JSON.stringify(this.sentenceList) ==
  8047. JSON.stringify(this.sentenceList2)
  8048. ) {
  8049. this.dialogVisibleSentence = false;
  8050. } else {
  8051. this.closeConfirm(tool);
  8052. }
  8053. } else if (tool == 69) {
  8054. if (
  8055. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8056. ) {
  8057. this.englishDialogVisible = false;
  8058. } else {
  8059. this.closeConfirm(tool);
  8060. }
  8061. }
  8062. },
  8063. closeConfirm(tool) {
  8064. this.$confirm("是否保存已编辑内容?", "提示", {
  8065. confirmButtonText: "保存",
  8066. cancelButtonText: "不保存",
  8067. type: "warning",
  8068. })
  8069. .then(() => {
  8070. if (tool == 15) {
  8071. this.addAnswer();
  8072. } else if (tool == 4) {
  8073. this.addAsk();
  8074. } else if (tool == 45) {
  8075. this.addTest();
  8076. } else if (tool == 41) {
  8077. this.addSelectAnswer();
  8078. } else if (tool == 47) {
  8079. this.addSentenceTool();
  8080. } else if (tool == 69) {
  8081. this.addEnglish();
  8082. }
  8083. })
  8084. .catch(() => {
  8085. if (tool == 15) {
  8086. this.dialogVisible8 = false;
  8087. } else if (tool == 4) {
  8088. this.dialogVisible5 = false;
  8089. } else if (tool == 45) {
  8090. this.dialogVisibleChoice = false;
  8091. } else if (tool == 41) {
  8092. this.dialogVisibleSelect = false;
  8093. } else if (tool == 47) {
  8094. this.dialogVisibleSentence = false;
  8095. } else if (tool == 69) {
  8096. this.englishDialogVisible = false;
  8097. }
  8098. });
  8099. },
  8100. addEnglish(jsonType) {
  8101. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8102. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8103. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8104. if (
  8105. this.englishList.engTitle == "" ||
  8106. this.englishList.englishText == ""
  8107. ) {
  8108. this.$message.error("请将内容填写完整!");
  8109. return;
  8110. }
  8111. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8112. this.taskCount
  8113. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8114. this.englishList = {};
  8115. if (jsonType && jsonType == 1) {
  8116. this.englishDialogVisible = true;
  8117. } else {
  8118. this.englishDialogVisible = false;
  8119. }
  8120. if (
  8121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8122. .toolChoose[this.toolIndex].tool != 69
  8123. ) {
  8124. this.addTools(69, this.taskCount, this.toolIndex);
  8125. }
  8126. },
  8127. imgChange2(i, j) {
  8128. var _tmp = this.testJson.testJson[i].checkList[j];
  8129. this.noneBtnImg = _tmp.length >= 1;
  8130. },
  8131. imgChange3(i) {
  8132. var _tmp = this.testJson.testJson[i];
  8133. this.noneBtnImg = _tmp.length >= 1;
  8134. },
  8135. imgChange1(file, fileList, type, itemTaskIndex) {
  8136. if (type == 1) {
  8137. var _tmp = this.cover;
  8138. } else if (
  8139. type == 2 ||
  8140. type == 3 ||
  8141. type == 6 ||
  8142. type == 7 ||
  8143. type == 8
  8144. ) {
  8145. var _tmp =
  8146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8147. .chapterData;
  8148. } else if (type == 4) {
  8149. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8150. } else {
  8151. var _tmp =
  8152. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8153. .homeworkList;
  8154. }
  8155. this.noneBtnImg = _tmp.length >= 1;
  8156. },
  8157. goTo(path) {
  8158. this.$router.push(path);
  8159. },
  8160. guid() {
  8161. var _num,
  8162. i,
  8163. _guid = "";
  8164. for (i = 0; i < 32; i++) {
  8165. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8166. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8167. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8168. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8169. _guid += "-";
  8170. }
  8171. }
  8172. return _guid;
  8173. },
  8174. retrunCourse() {
  8175. this.$confirm("是否保存已编辑内容?", "提示", {
  8176. confirmButtonText: "保存",
  8177. cancelButtonText: "不保存",
  8178. distinguishCancelAndClose: true,
  8179. type: "warning",
  8180. })
  8181. .then(() => {
  8182. if (this.cid == "" || this.cid == undefined) {
  8183. if (this.courseName == "") {
  8184. this.$message.error("请补充填写课程名称");
  8185. return;
  8186. } else {
  8187. this.addWork();
  8188. }
  8189. this.steps = 4;
  8190. } else {
  8191. if (this.courseName == "") {
  8192. this.$message.error("请补充填写课程名称");
  8193. return;
  8194. } else {
  8195. if (this.userid != this.courseUserid && this.role != "1") {
  8196. this.updateWork2();
  8197. } else {
  8198. this.updateWork();
  8199. }
  8200. this.steps = 4;
  8201. }
  8202. }
  8203. })
  8204. .catch((v) => {
  8205. console.log(v);
  8206. if (v == "cancel") {
  8207. this.goTo(
  8208. "/course?userid=" +
  8209. this.userid +
  8210. "&oid=" +
  8211. this.oid +
  8212. "&org=" +
  8213. this.org +
  8214. "&role=" +
  8215. this.role
  8216. );
  8217. }
  8218. });
  8219. },
  8220. lastSteps() {
  8221. if (this.steps == 4) {
  8222. this.goTo(
  8223. "/course?userid=" +
  8224. this.userid +
  8225. "&oid=" +
  8226. this.oid +
  8227. "&org=" +
  8228. this.org +
  8229. "&role=" +
  8230. this.role
  8231. );
  8232. } else {
  8233. // if (this.cidType == 0) {
  8234. // this.steps--;
  8235. // if (this.steps == 1) {
  8236. // setTimeout(() => {
  8237. // this.checkEva(this.checkId);
  8238. // setTimeout(() => {
  8239. // this.checkEva(this.checkId);
  8240. // }, 100);
  8241. // }, 100);
  8242. // }
  8243. // } else {
  8244. if (this.steps == 3) {
  8245. this.steps = 1;
  8246. setTimeout(() => {
  8247. this.checkEva(this.checkId);
  8248. setTimeout(() => {
  8249. this.checkEva(this.checkId);
  8250. }, 100);
  8251. }, 100);
  8252. }
  8253. // }
  8254. }
  8255. },
  8256. navSteps(s) {
  8257. if (this.courseName == "") {
  8258. this.$message.error("请补充填写课程名称");
  8259. return;
  8260. }
  8261. if (this.cidType == 0) {
  8262. if (this.steps == 1) {
  8263. if (this.cid == "" || this.cid == undefined) {
  8264. this.addWork();
  8265. } else {
  8266. if (this.userid != this.courseUserid && this.role != "1") {
  8267. // this.updateWork2();
  8268. } else {
  8269. this.updateWork();
  8270. }
  8271. }
  8272. }
  8273. if (s == 1) {
  8274. this.steps = 1;
  8275. setTimeout(() => {
  8276. this.checkEva(this.checkId);
  8277. setTimeout(() => {
  8278. this.checkEva(this.checkId);
  8279. }, 100);
  8280. }, 100);
  8281. }
  8282. if (s == 2) {
  8283. this.steps = 2;
  8284. }
  8285. if (s == 3) {
  8286. this.cTemplate = this.templateC.content;
  8287. this.dialogVisible2 = false;
  8288. this.steps = 3;
  8289. this.isClickColor = 1;
  8290. this.unitJson[
  8291. this.unitIndex
  8292. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8293. this.$forceUpdate();
  8294. setTimeout(() => {
  8295. this.checkEva(this.checkId);
  8296. setTimeout(() => {
  8297. this.checkEva(this.checkId);
  8298. }, 100);
  8299. }, 1000);
  8300. }
  8301. } else {
  8302. if (this.steps == 1) {
  8303. if (this.cid == "" || this.cid == undefined) {
  8304. this.addWork();
  8305. } else {
  8306. if (this.userid != this.courseUserid && this.role != "1") {
  8307. // this.updateWork2();
  8308. } else {
  8309. this.updateWork();
  8310. }
  8311. }
  8312. }
  8313. if (s == 1) {
  8314. this.steps = 1;
  8315. setTimeout(() => {
  8316. this.checkEva(this.checkId);
  8317. setTimeout(() => {
  8318. this.checkEva(this.checkId);
  8319. }, 100);
  8320. }, 100);
  8321. }
  8322. if (s == 3) {
  8323. this.cTemplate = this.templateC.content;
  8324. this.dialogVisible2 = false;
  8325. this.steps = 3;
  8326. this.isClickColor = 1;
  8327. this.unitJson[
  8328. this.unitIndex
  8329. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8330. this.$forceUpdate();
  8331. setTimeout(() => {
  8332. this.checkEva(this.checkId);
  8333. setTimeout(() => {
  8334. this.checkEva(this.checkId);
  8335. }, 100);
  8336. }, 1000);
  8337. }
  8338. }
  8339. this.$refs.stepBox.scrollTop = 0;
  8340. },
  8341. nextSteps() {
  8342. // if (this.cidType == 1) {
  8343. // if (this.steps == 1) {
  8344. // if (this.courseName != "") {
  8345. // this.steps = 3;
  8346. // this.isClickColor = 1;
  8347. // this.unitJson[
  8348. // this.unitIndex
  8349. // ].chapterInfo[0].taskJson[0].toolOpen = true;
  8350. // this.$forceUpdate();
  8351. // setTimeout(() => {
  8352. // this.checkEva(this.checkId);
  8353. // setTimeout(() => {
  8354. // this.checkEva(this.checkId);
  8355. // }, 100);
  8356. // }, 1000);
  8357. // if (this.cid == "" || this.cid == undefined) {
  8358. // this.addWork();
  8359. // } else {
  8360. // if (this.userid != this.courseUserid && this.role != "1") {
  8361. // // this.updateWork2();
  8362. // } else {
  8363. // this.updateWork();
  8364. // }
  8365. // }
  8366. // } else {
  8367. // this.$message.error("请补充填写课程名称");
  8368. // return;
  8369. // }
  8370. // } else if (this.steps == 3) {
  8371. if (this.cid == "" || this.cid == undefined) {
  8372. if (this.courseName == "") {
  8373. this.$message.error("请补充填写课程名称");
  8374. return;
  8375. } else {
  8376. this.addWork();
  8377. // this.steps++;
  8378. this.steps = 4;
  8379. }
  8380. } else {
  8381. if (this.courseName == "") {
  8382. this.$message.error("请补充填写课程名称");
  8383. return;
  8384. } else {
  8385. if (this.userid != this.courseUserid && this.role != "1") {
  8386. this.updateWork2();
  8387. } else {
  8388. this.updateWork();
  8389. }
  8390. // this.steps++;
  8391. this.steps = 4;
  8392. }
  8393. }
  8394. // }
  8395. // } else {
  8396. // if (this.steps == 1) {
  8397. // if (this.courseName != "") {
  8398. // if (this.cid == "" || this.cid == undefined) {
  8399. // this.addWork();
  8400. // } else {
  8401. // if (this.userid != this.courseUserid && this.role != "1") {
  8402. // // this.updateWork2();
  8403. // } else {
  8404. // this.updateWork();
  8405. // }
  8406. // }
  8407. // this.steps++;
  8408. // } else {
  8409. // this.$message.error("请补充填写课程名称");
  8410. // return;
  8411. // }
  8412. // } else if (this.steps == 2) {
  8413. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8414. // this.cTemplate = this.templateC.content;
  8415. // }
  8416. // this.dialogVisible2 = false;
  8417. // this.steps++;
  8418. // setTimeout(() => {
  8419. // this.checkEva(this.checkId);
  8420. // setTimeout(() => {
  8421. // this.checkEva(this.checkId);
  8422. // }, 100);
  8423. // }, 1000);
  8424. // } else if (this.steps == 3) {
  8425. // if (this.cid == "" || this.cid == undefined) {
  8426. // if (this.courseName == "") {
  8427. // this.$message.error("请补充填写课程名称");
  8428. // return;
  8429. // } else {
  8430. // this.addWork();
  8431. // this.steps++;
  8432. // }
  8433. // } else {
  8434. // if (this.courseName == "") {
  8435. // this.$message.error("请补充填写课程名称");
  8436. // return;
  8437. // } else {
  8438. // if (this.userid != this.courseUserid && this.role != "1") {
  8439. // this.updateWork2();
  8440. // } else {
  8441. // this.updateWork();
  8442. // }
  8443. // this.steps++;
  8444. // }
  8445. // }
  8446. // }
  8447. // }
  8448. // this.$refs.stepBox.scrollTop = 0;
  8449. },
  8450. unitSet(i) {
  8451. if (this.unitIndex == i) {
  8452. return;
  8453. }
  8454. this.unitIndex = i;
  8455. this.isClickColor = 1;
  8456. // this.$refs.rightboxR.scrollTop = 0;
  8457. this.$refs.unitBox.scrollTop = 0;
  8458. },
  8459. panUnitJson() {
  8460. let _unitIndex = this.unitIndex;
  8461. let cPan = 1;
  8462. for (
  8463. var j = 0;
  8464. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8465. j++
  8466. ) {
  8467. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8468. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8469. j
  8470. ].proVisible2 = false;
  8471. if (
  8472. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8473. .length > 1
  8474. ) {
  8475. for (
  8476. var z = 0;
  8477. z <
  8478. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8479. .length;
  8480. z++
  8481. ) {
  8482. if (
  8483. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8484. z
  8485. ].tool.length
  8486. ) {
  8487. this.$message.error("请把工具添加完整");
  8488. cPan = 2;
  8489. break;
  8490. }
  8491. }
  8492. }
  8493. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8494. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8495. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8496. (ele) => {
  8497. return ele.value != "";
  8498. }
  8499. );
  8500. }
  8501. }
  8502. return cPan;
  8503. },
  8504. unitOpen(i) {
  8505. if (this.unitJson[i].toolOpen) {
  8506. this.unitJson[i].toolOpen = false;
  8507. } else {
  8508. this.unitJson[i].toolOpen = true;
  8509. }
  8510. this.updateWork();
  8511. this.$forceUpdate();
  8512. },
  8513. unitSet2(i) {
  8514. if (this.panUnitJson() == 2) {
  8515. return;
  8516. }
  8517. // if(this.unitJson[i].toolOpen){
  8518. // this.unitJson[i].toolOpen = false
  8519. // this.updateWork()
  8520. // this.$forceUpdate()
  8521. // return
  8522. // }else {
  8523. this.unitJson[i].toolOpen = true;
  8524. // }
  8525. this.$forceUpdate();
  8526. if (this.unitIndex == i) {
  8527. return;
  8528. }
  8529. this.unitIndex = i;
  8530. this.isClickColor = 1;
  8531. // this.$refs.rightboxR.scrollTop = 0;
  8532. this.$refs.unitBox.scrollTop = 0;
  8533. },
  8534. updateCourseState(i) {
  8535. let params = [
  8536. {
  8537. cid: this.cid,
  8538. state: i,
  8539. },
  8540. ];
  8541. this.ajax
  8542. .post(this.$store.state.api + "updateCourseMode", params)
  8543. .then((res) => {
  8544. this.courseState = i;
  8545. })
  8546. .catch((err) => {
  8547. this.$message.error("网络不佳");
  8548. console.error(err);
  8549. });
  8550. },
  8551. time() {
  8552. if (!this.now) {
  8553. this.now = new Date().getTime();
  8554. return true;
  8555. } else {
  8556. let time = new Date().getTime();
  8557. if (time - this.now > 3000) {
  8558. this.now = time;
  8559. return true;
  8560. } else {
  8561. return false;
  8562. }
  8563. }
  8564. },
  8565. deleteUnit(i) {
  8566. var _this = this;
  8567. if (i == 0 && _this.unitJson.length == 1) {
  8568. _this
  8569. .$confirm("确定切换成任务模式吗?", "提示", {
  8570. confirmButtonText: "确定",
  8571. cancelButtonText: "取消",
  8572. type: "warning",
  8573. })
  8574. .then(() => {
  8575. _this.unitJson[i].dyName = "";
  8576. _this.updateCourseState(2);
  8577. })
  8578. .catch(() => {
  8579. return;
  8580. });
  8581. } else {
  8582. _this
  8583. .$confirm("确定删除此阶段吗?", "提示", {
  8584. confirmButtonText: "确定",
  8585. cancelButtonText: "取消",
  8586. type: "warning",
  8587. })
  8588. .then(() => {
  8589. _this.isDelete = 2;
  8590. // _this.unitIndex = _this.unitIndex - 1;
  8591. if(_this.cid){
  8592. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8593. }else {
  8594. _this.$message({
  8595. message: "删除成功",
  8596. type: "success",
  8597. });
  8598. let task = JSON.parse(
  8599. JSON.stringify(
  8600. _this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8601. )
  8602. );
  8603. _this.unitJson.splice(_this.unitIndex, 1);
  8604. if (_this.unitIndex == 0) {
  8605. _this.unitIndex = 0;
  8606. } else {
  8607. _this.unitIndex = _this.unitIndex - 1;
  8608. }
  8609. if (JSON.stringify(task) != JSON.stringify(_this.taskJSONa)) {
  8610. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson = [
  8611. ..._this.unitJson[_this.unitIndex].chapterInfo[0].taskJson,
  8612. ...task,
  8613. ];
  8614. }
  8615. }
  8616. // _this.$message.success("删除成功");
  8617. })
  8618. .catch(() => {
  8619. return;
  8620. });
  8621. }
  8622. },
  8623. deleteWork(chapid) {
  8624. let params = [
  8625. {
  8626. cid: this.cid,
  8627. chapters: JSON.stringify(this.unitJson),
  8628. uid: this.userid,
  8629. chapid: chapid,
  8630. },
  8631. ];
  8632. this.ajax
  8633. .post(this.$store.state.api + "deleteWork", params)
  8634. .then((res) => {
  8635. this.$message({
  8636. message: "删除成功",
  8637. type: "success",
  8638. });
  8639. let task = JSON.parse(
  8640. JSON.stringify(
  8641. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8642. )
  8643. );
  8644. this.unitJson.splice(this.unitIndex, 1);
  8645. if (this.unitIndex == 0) {
  8646. this.unitIndex = 0;
  8647. } else {
  8648. this.unitIndex = this.unitIndex - 1;
  8649. }
  8650. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8651. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8652. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8653. ...task,
  8654. ];
  8655. }
  8656. })
  8657. .catch((err) => {
  8658. this.$message.error("网络不佳");
  8659. console.error(err);
  8660. });
  8661. },
  8662. deleteTool(itemTaskIndex, i) {
  8663. var _this = this;
  8664. if (_this.time()) {
  8665. _this
  8666. .$confirm("确定删除此工具吗?", "提示", {
  8667. confirmButtonText: "确定",
  8668. cancelButtonText: "取消",
  8669. type: "warning",
  8670. })
  8671. .then(() => {
  8672. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8673. itemTaskIndex
  8674. ].toolChoose.splice(i, 1);
  8675. _this.$message.success("删除成功");
  8676. })
  8677. .catch(() => {
  8678. return;
  8679. });
  8680. }
  8681. },
  8682. deleteSentence(i) {
  8683. var _this = this;
  8684. _this
  8685. .$confirm("确定删除此题目吗?", "提示", {
  8686. confirmButtonText: "确定",
  8687. cancelButtonText: "取消",
  8688. type: "warning",
  8689. })
  8690. .then(() => {
  8691. _this.sentenceList.splice(i, 1);
  8692. _this.$message.success("删除成功");
  8693. })
  8694. .catch(() => {
  8695. return;
  8696. });
  8697. },
  8698. deleteS(s, i, j) {
  8699. this.sentenceList[i].addSentence.splice(j, 1);
  8700. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8701. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8702. this.sentenceList[i].rightAnswer.splice(a, 1);
  8703. }
  8704. },
  8705. openT() {
  8706. top.postMessage({ tools: "25" }, "*");
  8707. },
  8708. deleteTask(i) {
  8709. var _this = this;
  8710. if (_this.time()) {
  8711. _this
  8712. .$confirm(
  8713. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8714. 1 ==
  8715. i
  8716. ? "确定删除此任务吗?"
  8717. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8718. "提示",
  8719. {
  8720. confirmButtonText: "确定",
  8721. cancelButtonText: "取消",
  8722. type: "warning",
  8723. }
  8724. )
  8725. .then(() => {
  8726. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8727. i,
  8728. 1
  8729. );
  8730. _this.$message.success("删除成功");
  8731. })
  8732. .catch(() => {
  8733. return;
  8734. });
  8735. }
  8736. },
  8737. handlePictureCardPreview(file) {
  8738. this.dialogImageUrl = file.url;
  8739. },
  8740. clean(i, c) {
  8741. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8742. },
  8743. handle_remove1(file, fileList, type) {
  8744. var _tmp = this.cover;
  8745. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8746. // if (_tmp[i].uid == file.uid) {
  8747. // _tmp.splice(i, 1);
  8748. // break;
  8749. // }
  8750. // this.cover = _tmp;
  8751. // }
  8752. this.cover = [];
  8753. this.noneBtnImg = this.cover.length >= 1;
  8754. this.isSysPic = false;
  8755. this.isSysPic2 = false;
  8756. this.$forceUpdate();
  8757. },
  8758. addImg(e) {
  8759. var el = e.currentTarget;
  8760. el.getElementsByTagName("input")[0].click();
  8761. e.target.value = "";
  8762. },
  8763. addChaptersTools(i) {
  8764. this.chapTools = [
  8765. {
  8766. tools: [],
  8767. toolDetail: "",
  8768. },
  8769. ];
  8770. this.chapCount = i;
  8771. this.dialogVisible4 = true;
  8772. },
  8773. isNoFinsh() {
  8774. this.$message.warning("功能正在开发中");
  8775. },
  8776. addAttText(i) {
  8777. this.AttText = {
  8778. title: "",
  8779. text: "",
  8780. };
  8781. this.taskCount = i;
  8782. this.AttTextType = 0;
  8783. this.$forceUpdate();
  8784. this.dialogVisible6 = true;
  8785. setTimeout(() => {
  8786. this.$refs["fuInput"].focus();
  8787. }, 100);
  8788. },
  8789. openLine(i) {
  8790. this.line = "";
  8791. this.lineCount = i;
  8792. this.lineType = 0;
  8793. this.$forceUpdate();
  8794. this.dialogVisible7 = true;
  8795. },
  8796. pasteLine(i) {
  8797. navigator.clipboard
  8798. .readText()
  8799. .then((v) => {
  8800. console.log("获取剪贴板成功:", v);
  8801. const html = v;
  8802. const regex = /src="(.*?)"/g;
  8803. const match = regex.exec(html);
  8804. if (match && match[1]) {
  8805. console.log(match[1]);
  8806. this.$message.success("粘贴成功");
  8807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8808. i
  8809. ].chapterData.push({
  8810. name: "链接",
  8811. title: "嵌入代码",
  8812. url: match[1],
  8813. type: 8,
  8814. });
  8815. } else {
  8816. // console.log("未找到包含 src 属性的 iframe");
  8817. this.$message.error(
  8818. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  8819. );
  8820. }
  8821. })
  8822. .catch((v) => {
  8823. console.log("获取剪贴板失败: ", v);
  8824. });
  8825. },
  8826. openSource(i) {
  8827. this.lineCount = i;
  8828. this.sourceData = {};
  8829. this.dialogVisibleSource = true;
  8830. this.updateSourcePan = false;
  8831. },
  8832. addSource() {
  8833. if (!Object.keys(this.sourceData).length) {
  8834. this.$message.error("请选择要上传的资源");
  8835. return;
  8836. }
  8837. let keys = Object.keys(this.sourceData);
  8838. for (var i = 0; i < keys.length; i++) {
  8839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8840. this.lineCount
  8841. ].chapterData.push({
  8842. name: "链接",
  8843. title: this.sourceData[keys[i]].name,
  8844. url: this.sourceData[keys[i]].url,
  8845. type: 14,
  8846. id: keys[i],
  8847. });
  8848. }
  8849. this.$forceUpdate();
  8850. this.dialogVisibleSource = false;
  8851. },
  8852. updateSource() {
  8853. if (!Object.keys(this.sourceData).length) {
  8854. this.$message.error("请选择要上传的资源");
  8855. return;
  8856. }
  8857. let keys = Object.keys(this.sourceData);
  8858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8859. this.taskCount
  8860. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  8861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8862. this.taskCount
  8863. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  8864. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8865. this.taskCount
  8866. ].chapterData[this.lineCount].id = keys[0];
  8867. this.updateSourcePan = false;
  8868. this.$forceUpdate();
  8869. this.dialogVisibleSource = false;
  8870. },
  8871. deleteM(i, j) {
  8872. this.testJson.testJson[i].timuList.splice(j, 1);
  8873. },
  8874. beforeUploadTiMu(event, i) {
  8875. const loading = this.openLoading();
  8876. var file = event.target.files[0];
  8877. var credentials = {
  8878. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8879. secretAccessKey: "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",
  8880. }; //秘钥形式的登录上传
  8881. window.AWS.config.update(credentials);
  8882. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8883. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8884. var _this = this;
  8885. if (file) {
  8886. var params = {
  8887. Key:
  8888. file.name.split(".")[0] +
  8889. new Date().getTime() +
  8890. "." +
  8891. file.name.split(".")[file.name.split(".").length - 1],
  8892. ContentType: file.type,
  8893. Body: file,
  8894. "Access-Control-Allow-Credentials": "*",
  8895. ACL: "public-read",
  8896. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8897. var options = {
  8898. partSize: 2048 * 1024 * 1024,
  8899. queueSize: 2,
  8900. leavePartsOnError: true,
  8901. };
  8902. bucket
  8903. .upload(params, options)
  8904. .on("httpUploadProgress", function (evt) {
  8905. //这里可以写进度条
  8906. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8907. })
  8908. .send(function (err, data) {
  8909. loading.close();
  8910. if (err) {
  8911. _this.$message.error("上传失败");
  8912. } else {
  8913. if (_this.testJson.testJson[i].timuList) {
  8914. _this.testJson.testJson[i].timuList.push({
  8915. src: data.Location,
  8916. });
  8917. } else {
  8918. _this.testJson.testJson[i].timuList = [];
  8919. _this.testJson.testJson[i].timuList.push({
  8920. src: data.Location,
  8921. });
  8922. }
  8923. _this.imgChange3(i);
  8924. _this.$forceUpdate();
  8925. }
  8926. });
  8927. }
  8928. },
  8929. beforeUploadTi(event, i, j) {
  8930. const loading = this.openLoading();
  8931. var file = event.target.files[0];
  8932. var credentials = {
  8933. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8934. secretAccessKey: "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",
  8935. }; //秘钥形式的登录上传
  8936. window.AWS.config.update(credentials);
  8937. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8938. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8939. var _this = this;
  8940. if (file) {
  8941. var params = {
  8942. Key:
  8943. file.name.split(".")[0] +
  8944. new Date().getTime() +
  8945. "." +
  8946. file.name.split(".")[file.name.split(".").length - 1],
  8947. ContentType: file.type,
  8948. Body: file,
  8949. "Access-Control-Allow-Credentials": "*",
  8950. ACL: "public-read",
  8951. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8952. var options = {
  8953. partSize: 2048 * 1024 * 1024,
  8954. queueSize: 2,
  8955. leavePartsOnError: true,
  8956. };
  8957. bucket
  8958. .upload(params, options)
  8959. .on("httpUploadProgress", function (evt) {
  8960. //这里可以写进度条
  8961. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8962. })
  8963. .send(function (err, data) {
  8964. loading.close();
  8965. if (err) {
  8966. _this.$message.error("上传失败");
  8967. } else {
  8968. _this.testJson.testJson[i].checkList[j] = {};
  8969. _this.testJson.testJson[i].checkList[j].src = data.Location;
  8970. _this.testJson.testJson[i].checkList[j].imgType = 1;
  8971. _this.imgChange2(i, j);
  8972. _this.$forceUpdate();
  8973. }
  8974. });
  8975. }
  8976. },
  8977. beforeUpload1(event, type) {
  8978. // const loading = this.openLoading();
  8979. var file = event.target.files[0];
  8980. var credentials = {
  8981. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8982. secretAccessKey: "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",
  8983. }; //秘钥形式的登录上传
  8984. window.AWS.config.update(credentials);
  8985. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8986. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8987. var _this = this;
  8988. if (file) {
  8989. var params = {
  8990. Key:
  8991. file.name.split(".")[0] +
  8992. new Date().getTime() +
  8993. "." +
  8994. file.name.split(".")[file.name.split(".").length - 1],
  8995. ContentType: file.type,
  8996. Body: file,
  8997. "Access-Control-Allow-Credentials": "*",
  8998. ACL: "public-read",
  8999. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9000. var options = {
  9001. partSize: 2048 * 1024 * 1024,
  9002. queueSize: 2,
  9003. leavePartsOnError: true,
  9004. };
  9005. bucket
  9006. .upload(params, options)
  9007. .on("httpUploadProgress", function (evt) {
  9008. //这里可以写进度条
  9009. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9010. })
  9011. .send(function (err, data) {
  9012. // loading.close();
  9013. if (err) {
  9014. // var a = _this.$refs.upload1.uploadFiles;
  9015. // a.splice(a.length - 1, a.length);
  9016. _this.$message.error("上传失败");
  9017. } else {
  9018. // _this.cover.push({
  9019. // name: file.name,
  9020. // url: data.Location,
  9021. // uid: file.uid,
  9022. // });
  9023. _this.cover = [
  9024. {
  9025. name: file.name,
  9026. url: data.Location,
  9027. uid: file.uid,
  9028. },
  9029. ];
  9030. _this.imgChange1(null, null, 1, null);
  9031. _this.choosePicVisible = false;
  9032. console.log(data.Location);
  9033. }
  9034. });
  9035. }
  9036. },
  9037. beforeUploadSelect(event, type) {
  9038. // const loading = this.openLoading();
  9039. var file = event.target.files[0];
  9040. var credentials = {
  9041. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9042. secretAccessKey: "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",
  9043. }; //秘钥形式的登录上传
  9044. window.AWS.config.update(credentials);
  9045. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9046. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9047. var _this = this;
  9048. if (file) {
  9049. var params = {
  9050. Key:
  9051. file.name.split(".")[0] +
  9052. new Date().getTime() +
  9053. "." +
  9054. file.name.split(".")[file.name.split(".").length - 1],
  9055. ContentType: file.type,
  9056. Body: file,
  9057. "Access-Control-Allow-Credentials": "*",
  9058. ACL: "public-read",
  9059. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9060. var options = {
  9061. partSize: 2048 * 1024 * 1024,
  9062. queueSize: 2,
  9063. leavePartsOnError: true,
  9064. };
  9065. bucket
  9066. .upload(params, options)
  9067. .on("httpUploadProgress", function (evt) {
  9068. //这里可以写进度条
  9069. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9070. })
  9071. .send(function (err, data) {
  9072. // loading.close();
  9073. if (err) {
  9074. _this.$message.error("上传失败");
  9075. } else {
  9076. _this.selectJson.url = data.Location;
  9077. console.log(data.Location);
  9078. }
  9079. });
  9080. }
  9081. },
  9082. chooseSysPic(p) {
  9083. this.cover = [];
  9084. setTimeout(() => {
  9085. this.cover[0] = {
  9086. name: "系统图片.png",
  9087. url: p,
  9088. };
  9089. this.imgChange1(null, null, 1, null);
  9090. this.$forceUpdate();
  9091. }, 0);
  9092. this.isSysPic = true;
  9093. this.isSysPic2 = false;
  9094. this.sysPicVisible = false;
  9095. this.$forceUpdate();
  9096. },
  9097. chooseSysPic2(p) {
  9098. this.cover = [];
  9099. setTimeout(() => {
  9100. this.cover[0] = {
  9101. name: "网络图片.png",
  9102. url: p,
  9103. };
  9104. this.imgChange1(null, null, 1, null);
  9105. this.$forceUpdate();
  9106. }, 0);
  9107. this.isSysPic2 = true;
  9108. this.isSysPic = false;
  9109. this.sysPicVisible2 = false;
  9110. this.$forceUpdate();
  9111. },
  9112. beforeUpload(data) {
  9113. this.$refs.upload1.uploadFiles;
  9114. this.uploadLoading1 = true;
  9115. var file = data.file;
  9116. var credentials = {
  9117. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9118. secretAccessKey: "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",
  9119. }; //秘钥形式的登录上传
  9120. window.AWS.config.update(credentials);
  9121. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9122. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9123. var _this = this;
  9124. if (file) {
  9125. var params = {
  9126. Key:
  9127. file.name.split(".")[0] +
  9128. new Date().getTime() +
  9129. "." +
  9130. file.name.split(".")[file.name.split(".").length - 1],
  9131. ContentType: file.type,
  9132. Body: file,
  9133. "Access-Control-Allow-Credentials": "*",
  9134. ACL: "public-read",
  9135. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9136. var options = {
  9137. partSize: 2048 * 1024 * 1024,
  9138. queueSize: 2,
  9139. leavePartsOnError: true,
  9140. };
  9141. bucket
  9142. .upload(params, options)
  9143. .on("httpUploadProgress", function (evt) {
  9144. //这里可以写进度条
  9145. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9146. })
  9147. .send(function (err, data) {
  9148. _this.uploadLoading1 = false;
  9149. if (err) {
  9150. // var a = _this.$refs.upload1.uploadFiles;
  9151. // a.splice(a.length - 1, a.length);
  9152. _this.$message.error("上传失败");
  9153. } else {
  9154. //上传成功处理
  9155. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9156. name: file.name,
  9157. url: data.Location,
  9158. uid: file.uid,
  9159. });
  9160. _this.imgChange();
  9161. console.log(data.Location);
  9162. }
  9163. });
  9164. }
  9165. },
  9166. onExceed() {
  9167. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9168. },
  9169. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9170. // const loading = this.openLoading();
  9171. var file = event.target.files[0];
  9172. var credentials = {
  9173. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9174. secretAccessKey: "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",
  9175. }; //秘钥形式的登录上传
  9176. window.AWS.config.update(credentials);
  9177. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9178. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9179. var _this = this;
  9180. if (type == 3) {
  9181. var b = [
  9182. "DOC",
  9183. "DOCX",
  9184. "DOCM",
  9185. "DOTM",
  9186. "DOTX",
  9187. "PPTX",
  9188. "PPSX",
  9189. "PPT",
  9190. "PPS",
  9191. "PPTM",
  9192. "POTM",
  9193. "PPAM",
  9194. "POTX",
  9195. "PPSM",
  9196. ];
  9197. if (
  9198. b.indexOf(
  9199. file.name
  9200. .split(".")
  9201. [file.name.split(".").length - 1].toLocaleUpperCase()
  9202. ) != -1
  9203. ) {
  9204. if (file.size / 1024 / 1024 > 80) {
  9205. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9206. this.inputShow = true;
  9207. // var a = _this.$refs.upload1.uploadFiles;
  9208. // a.splice(a.length - 1, a.length);
  9209. // loading.close();
  9210. return;
  9211. }
  9212. } else if (
  9213. file.name
  9214. .split(".")
  9215. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9216. ) {
  9217. if (file.size / 1024 / 1024 > 80) {
  9218. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9219. this.inputShow = true;
  9220. // var a = _this.$refs.upload1.uploadFiles;
  9221. // a.splice(a.length - 1, a.length);
  9222. // loading.close();
  9223. return;
  9224. }
  9225. }
  9226. }
  9227. this.inputShow = false;
  9228. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9229. itemTaskIndex
  9230. ].progress = 0;
  9231. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9232. itemTaskIndex
  9233. ].proVisible = true;
  9234. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9235. itemTaskIndex
  9236. ].isFinishSize = 0;
  9237. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9238. itemTaskIndex
  9239. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9240. _this.$forceUpdate();
  9241. if (file) {
  9242. var params = {
  9243. Key:
  9244. file.name.split(".")[0] +
  9245. new Date().getTime() +
  9246. "." +
  9247. file.name.split(".")[file.name.split(".").length - 1],
  9248. ContentType: file.type,
  9249. Body: file,
  9250. "Access-Control-Allow-Credentials": "*",
  9251. ACL: "public-read",
  9252. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9253. var options = {
  9254. partSize: 2048 * 1024 * 1024,
  9255. queueSize: 2,
  9256. leavePartsOnError: true,
  9257. };
  9258. bucket
  9259. .upload(params, options)
  9260. .on("httpUploadProgress", function (evt) {
  9261. //这里可以写进度条
  9262. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9263. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9264. itemTaskIndex
  9265. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9266. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9267. itemTaskIndex
  9268. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9269. _this.$forceUpdate();
  9270. })
  9271. .send(function (err, data) {
  9272. // loading.close();
  9273. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9274. itemTaskIndex
  9275. ].progress = 100;
  9276. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9277. itemTaskIndex
  9278. ].isFinishSize =
  9279. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9280. itemTaskIndex
  9281. ].isAllSize;
  9282. _this.$forceUpdate();
  9283. setTimeout(() => {
  9284. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9285. itemTaskIndex
  9286. ].proVisible = false;
  9287. _this.$forceUpdate();
  9288. }, 1000);
  9289. _this.inputShow = true;
  9290. if (err) {
  9291. // var a = _this.$refs.upload1.uploadFiles;
  9292. // a.splice(a.length - 1, a.length);
  9293. _this.$message.error("上传失败");
  9294. } else {
  9295. if (type == 13) {
  9296. let _type = 2;
  9297. var imgA = [
  9298. "png",
  9299. "jpg",
  9300. "jpeg",
  9301. "bmp",
  9302. "gif",
  9303. "webp",
  9304. "psd",
  9305. "svg",
  9306. "tiff",
  9307. ];
  9308. var fileA = [
  9309. "PDF",
  9310. "DOC",
  9311. "DOCX",
  9312. "DOCM",
  9313. "DOTM",
  9314. "DOTX",
  9315. "PPTX",
  9316. "PPSX",
  9317. "PPT",
  9318. "PPS",
  9319. "PPTM",
  9320. "POTM",
  9321. "PPAM",
  9322. "POTX",
  9323. "PPSM",
  9324. "XLSX",
  9325. "XLS",
  9326. ];
  9327. var videoA = [
  9328. "AVI",
  9329. "NAVI",
  9330. "MPEG",
  9331. "ASF",
  9332. "MOV",
  9333. "WMV",
  9334. "3GP",
  9335. "RM",
  9336. "RMVB",
  9337. "FLV",
  9338. "F4V",
  9339. "H.264",
  9340. "H.265",
  9341. "REAL VIDEO",
  9342. "MKV",
  9343. "WebM",
  9344. "HDDVD",
  9345. "MP4",
  9346. "MPG",
  9347. "M4V",
  9348. "MGV",
  9349. "OGV",
  9350. "QTM",
  9351. "STR",
  9352. "AMC",
  9353. "DVX",
  9354. "EVO",
  9355. "DAT",
  9356. "OGG",
  9357. "OGM",
  9358. ];
  9359. if (
  9360. fileA.indexOf(
  9361. data.Location.split(".")[
  9362. data.Location.split(".").length - 1
  9363. ].toLocaleUpperCase()
  9364. ) != -1
  9365. ) {
  9366. _type = 3;
  9367. } else if (
  9368. videoA.indexOf(
  9369. data.Location.split(".")[
  9370. data.Location.split(".").length - 1
  9371. ].toLocaleUpperCase()
  9372. ) != -1
  9373. ) {
  9374. _type = 2;
  9375. } else if (
  9376. imgA.indexOf(
  9377. data.Location.split(".")[
  9378. data.Location.split(".").length - 1
  9379. ].toLocaleLowerCase()
  9380. ) != -1
  9381. ) {
  9382. _type = 13;
  9383. } else {
  9384. _type = 12;
  9385. }
  9386. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9387. itemTaskIndex
  9388. ].chapterData.push({
  9389. name: file.name,
  9390. url: data.Location,
  9391. uid: file.uid,
  9392. type: _type,
  9393. });
  9394. _this.imgChange1(null, null, _type, itemTaskIndex);
  9395. } else if (type == 2 || type == 3 || type == 12) {
  9396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9397. itemTaskIndex
  9398. ].chapterData.push({
  9399. name: file.name,
  9400. url: data.Location,
  9401. uid: file.uid,
  9402. type: type,
  9403. });
  9404. _this.imgChange1(null, null, type, itemTaskIndex);
  9405. } else if (type == 4) {
  9406. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9407. itemTaskIndex
  9408. ].fileList1.push({
  9409. name: file.name,
  9410. url: data.Location,
  9411. uid: file.uid,
  9412. });
  9413. _this.imgChange1(null, null, type, itemTaskIndex);
  9414. } else if (type == 5) {
  9415. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9416. itemTaskIndex
  9417. ].homeworkList.push({
  9418. name: file.name,
  9419. url: data.Location,
  9420. uid: file.uid,
  9421. });
  9422. _this.imgChange1(null, null, type, itemTaskIndex);
  9423. }
  9424. console.log(data.Location);
  9425. }
  9426. });
  9427. }
  9428. },
  9429. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9430. // const loading = this.openLoading();
  9431. var file = event.target.files[0];
  9432. var credentials = {
  9433. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9434. secretAccessKey: "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",
  9435. }; //秘钥形式的登录上传
  9436. window.AWS.config.update(credentials);
  9437. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9438. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9439. var _this = this;
  9440. if (type == 3) {
  9441. var b = [
  9442. "DOC",
  9443. "DOCX",
  9444. "DOCM",
  9445. "DOTM",
  9446. "DOTX",
  9447. "PPTX",
  9448. "PPSX",
  9449. "PPT",
  9450. "PPS",
  9451. "PPTM",
  9452. "POTM",
  9453. "PPAM",
  9454. "POTX",
  9455. "PPSM",
  9456. ];
  9457. if (
  9458. b.indexOf(
  9459. file.name
  9460. .split(".")
  9461. [file.name.split(".").length - 1].toLocaleUpperCase()
  9462. ) != -1
  9463. ) {
  9464. if (file.size / 1024 / 1024 > 80) {
  9465. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9466. this.inputShow = true;
  9467. // var a = _this.$refs.upload1.uploadFiles;
  9468. // a.splice(a.length - 1, a.length);
  9469. // loading.close();
  9470. return;
  9471. }
  9472. } else if (
  9473. file.name
  9474. .split(".")
  9475. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9476. ) {
  9477. if (file.size / 1024 / 1024 > 80) {
  9478. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9479. this.inputShow = true;
  9480. // var a = _this.$refs.upload1.uploadFiles;
  9481. // a.splice(a.length - 1, a.length);
  9482. // loading.close();
  9483. return;
  9484. }
  9485. }
  9486. }
  9487. this.inputShow = false;
  9488. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9489. itemTaskIndex
  9490. ].progress = 0;
  9491. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9492. itemTaskIndex
  9493. ].proVisible = true;
  9494. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9495. itemTaskIndex
  9496. ].isFinishSize = 0;
  9497. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9498. itemTaskIndex
  9499. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9500. _this.$forceUpdate();
  9501. if (file) {
  9502. var params = {
  9503. Key:
  9504. file.name.split(".")[0] +
  9505. new Date().getTime() +
  9506. "." +
  9507. file.name.split(".")[file.name.split(".").length - 1],
  9508. ContentType: file.type,
  9509. Body: file,
  9510. "Access-Control-Allow-Credentials": "*",
  9511. ACL: "public-read",
  9512. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9513. var options = {
  9514. partSize: 2048 * 1024 * 1024,
  9515. queueSize: 2,
  9516. leavePartsOnError: true,
  9517. };
  9518. bucket
  9519. .upload(params, options)
  9520. .on("httpUploadProgress", function (evt) {
  9521. //这里可以写进度条
  9522. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9523. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9524. itemTaskIndex
  9525. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9526. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9527. itemTaskIndex
  9528. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9529. _this.$forceUpdate();
  9530. })
  9531. .send(function (err, data) {
  9532. // loading.close();
  9533. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9534. itemTaskIndex
  9535. ].progress = 100;
  9536. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9537. itemTaskIndex
  9538. ].isFinishSize =
  9539. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9540. itemTaskIndex
  9541. ].isAllSize;
  9542. _this.$forceUpdate();
  9543. setTimeout(() => {
  9544. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9545. itemTaskIndex
  9546. ].proVisible = false;
  9547. _this.$forceUpdate();
  9548. }, 1000);
  9549. _this.inputShow = true;
  9550. if (err) {
  9551. // var a = _this.$refs.upload1.uploadFiles;
  9552. // a.splice(a.length - 1, a.length);
  9553. _this.$message.error("上传失败");
  9554. } else {
  9555. if (type == 2 || type == 3) {
  9556. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9557. itemTaskIndex
  9558. ].chapterData.push({
  9559. name: file.name,
  9560. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9561. // itemTaskIndex
  9562. // ].chapterData.length+1),
  9563. url: data.Location,
  9564. uid: file.uid,
  9565. type: type,
  9566. text: string,
  9567. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9568. // itemTaskIndex
  9569. // ].chapterData.length + 1),
  9570. });
  9571. _this.imgChange1(null, null, type, itemTaskIndex);
  9572. } else if (type == 4) {
  9573. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9574. itemTaskIndex
  9575. ].fileList1.push({
  9576. name: file.name,
  9577. url: data.Location,
  9578. uid: file.uid,
  9579. });
  9580. _this.imgChange1(null, null, type, itemTaskIndex);
  9581. } else if (type == 5) {
  9582. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9583. itemTaskIndex
  9584. ].homeworkList.push({
  9585. name: file.name,
  9586. url: data.Location,
  9587. uid: file.uid,
  9588. });
  9589. _this.imgChange1(null, null, type, itemTaskIndex);
  9590. }
  9591. console.log(data.Location);
  9592. }
  9593. });
  9594. }
  9595. },
  9596. addunit() {
  9597. this.unitJson.push({
  9598. dyName: "", //单元标题
  9599. isUpdate: 1,
  9600. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9601. chapterInfo: [
  9602. {
  9603. isread: false,
  9604. chapterid: this.guid(),
  9605. title: "",
  9606. courseName: "",
  9607. taskJson: [
  9608. {
  9609. task: "",
  9610. taskDetail: "",
  9611. chapterData: [],
  9612. toolText: "",
  9613. toolChoose: [
  9614. {
  9615. tool: [],
  9616. toolDetail: "",
  9617. toolType: 0,
  9618. askCount: 1,
  9619. askTitle: "",
  9620. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9621. },
  9622. ],
  9623. isShowTools: false,
  9624. askCount: 1,
  9625. isFold: 1,
  9626. askTitle: "",
  9627. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9628. checkJson: [{ checkCount: [], checkPerent: [] }],
  9629. homeworkList: [],
  9630. },
  9631. ],
  9632. itemCount: 1,
  9633. fileList1: [],
  9634. video: [],
  9635. testData: [],
  9636. pData: [],
  9637. templateArray: [],
  9638. },
  9639. ],
  9640. });
  9641. this.addindex = this.unitJson.length - 1;
  9642. setTimeout(() => {
  9643. this.unitIndex = this.unitJson.length - 1;
  9644. setTimeout(() => {
  9645. console.log(this.$refs.dyInput);
  9646. this.$refs.dyInput[0].focus();
  9647. }, 100);
  9648. this.unitSet(this.unitIndex);
  9649. }, 0);
  9650. },
  9651. addToolFun(itemTaskIndex) {
  9652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9653. itemTaskIndex
  9654. ].toolChoose.push({
  9655. tool: [],
  9656. toolDetail: "",
  9657. toolType: 0,
  9658. askCount: 1,
  9659. askTitle: "",
  9660. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9661. });
  9662. },
  9663. addTaskBorder() {
  9664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9665. task: "",
  9666. taskDetail: "",
  9667. chapterData: [],
  9668. toolText: "",
  9669. toolChoose: [
  9670. {
  9671. tool: [],
  9672. toolDetail: "",
  9673. toolType: 0,
  9674. askCount: 1,
  9675. askTitle: "",
  9676. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9677. },
  9678. ],
  9679. isShowTools: false,
  9680. askCount: 1,
  9681. isFold: 1, //任务收起状态
  9682. askTitle: "",
  9683. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9684. checkJson: [{ checkCount: [], checkPerent: [] }],
  9685. homeworkList: [],
  9686. });
  9687. setTimeout(() => {
  9688. this.checkEva(this.checkId);
  9689. setTimeout(() => {
  9690. this.checkEva(this.checkId);
  9691. }, 100);
  9692. }, 100);
  9693. },
  9694. add(e, i) {
  9695. var el = e.currentTarget;
  9696. el.getElementsByTagName("input")[0].click();
  9697. },
  9698. fold(i, e) {
  9699. if (
  9700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9701. ) {
  9702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9703. } else {
  9704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9705. }
  9706. },
  9707. fold2(i) {
  9708. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9710. i
  9711. ].isFold2 = false;
  9712. } else {
  9713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9714. }
  9715. this.$forceUpdate();
  9716. },
  9717. foldEva(i) {
  9718. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9720. i
  9721. ].isEvaFold = false;
  9722. } else {
  9723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9724. i
  9725. ].isEvaFold = true;
  9726. setTimeout(() => {
  9727. this.checkEva(this.checkId);
  9728. setTimeout(() => {
  9729. this.checkEva(this.checkId);
  9730. }, 500);
  9731. }, 0);
  9732. }
  9733. this.$forceUpdate();
  9734. },
  9735. foldC(i) {
  9736. if (
  9737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9738. ) {
  9739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9740. i
  9741. ].isFoldchapter = false;
  9742. } else {
  9743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9744. i
  9745. ].isFoldchapter = true;
  9746. }
  9747. this.$forceUpdate();
  9748. },
  9749. fold3(i, ti) {
  9750. if (
  9751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9752. .isFold3
  9753. ) {
  9754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9755. ti
  9756. ].isFold3 = false;
  9757. } else {
  9758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9759. ti
  9760. ].isFold3 = true;
  9761. }
  9762. this.$forceUpdate();
  9763. },
  9764. deleteHomeworkBox(unitIndex, index, i) {
  9765. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9766. this.taskCount
  9767. ].homeworkList.splice(i, 1);
  9768. },
  9769. getStudent() {
  9770. let params = {
  9771. oid: this.oid,
  9772. cu: "",
  9773. cn: this.searchPeople,
  9774. };
  9775. this.ajax
  9776. .get(this.$store.state.api + "selectStudentAdd", params)
  9777. .then((res) => {
  9778. this.studentJuri = res.data[0];
  9779. })
  9780. .catch((err) => {
  9781. this.isLoading = false;
  9782. console.error(err);
  9783. });
  9784. },
  9785. // 添加协同成员其他选项按钮
  9786. getTeacherCopy(){
  9787. this.CollLoading=true
  9788. this.collid = ''
  9789. this.collid = '1xpz'
  9790. let params = {
  9791. oid:
  9792. this.org && this.org != "undefined" && this.org != "null"
  9793. ? this.org
  9794. : this.oid,
  9795. cu: "",
  9796. cn: this.searchTN,
  9797. coll: ''
  9798. };
  9799. this.ajax
  9800. .get(
  9801. this.$store.state.api +
  9802. (this.org && this.org != "undefined" && this.org != "null"
  9803. ? "selectCollaborativeMembersOrg"
  9804. : "selectCollaborativeMembers"),
  9805. params
  9806. )
  9807. .then((res) => {
  9808. let teacherJuri = res.data[0];
  9809. this.CollaborativeTeaList = res.data[1];
  9810. for (var i = 0; i < teacherJuri.length; i++) {
  9811. if (teacherJuri[i].userid == this.userid) {
  9812. teacherJuri.splice(i, 1);
  9813. break;
  9814. }
  9815. }
  9816. this.teacherJuri = teacherJuri.filter((i,index)=>{
  9817. return (i.cclassid == '' || i.cclassid == null)
  9818. })
  9819. console.log(' this.teacherJuri', this.teacherJuri);
  9820. let _check = [];
  9821. let _check2 = [];
  9822. for (var i = 0; i < this.teacherJuri.length; i++) {
  9823. var gid = this.teacherJuri[i].userid;
  9824. _check.push(gid);
  9825. }
  9826. for (var i = 0; i < this.checkboxList3.length; i++) {
  9827. var _id = this.checkboxList3[i];
  9828. if (_check.indexOf(_id) !== -1) {
  9829. _check2.push(_id);
  9830. }
  9831. }
  9832. if (_check2.length==0 && _check.length==0) {
  9833. }else{
  9834. this.checkAll2 = _check2.length === _check.length;
  9835. }
  9836. this.CollLoading=false
  9837. })
  9838. .catch((err) => {
  9839. console.error(err);
  9840. this.CollLoading=false
  9841. });
  9842. },
  9843. getTeacher(val) {
  9844. this.CollLoading=true
  9845. this.collid = ''
  9846. this.collid = !val ? '' : val
  9847. let params = {
  9848. oid:
  9849. this.org && this.org != "undefined" && this.org != "null"
  9850. ? this.org
  9851. : this.oid,
  9852. cu: "",
  9853. cn: this.searchTN,
  9854. coll: this.collid
  9855. };
  9856. this.ajax
  9857. .get(
  9858. this.$store.state.api +
  9859. (this.org && this.org != "undefined" && this.org != "null"
  9860. ? "selectCollaborativeMembersOrg"
  9861. : "selectCollaborativeMembers"),
  9862. params
  9863. )
  9864. .then((res) => {
  9865. let teacherJuri = res.data[0];
  9866. this.CollaborativeTeaList = res.data[1];
  9867. for (var i = 0; i < teacherJuri.length; i++) {
  9868. if (teacherJuri[i].userid == this.userid) {
  9869. teacherJuri.splice(i, 1);
  9870. break;
  9871. }
  9872. }
  9873. this.teacherJuri = teacherJuri;
  9874. let _check = [];
  9875. let _check2 = [];
  9876. for (var i = 0; i < this.teacherJuri.length; i++) {
  9877. var gid = this.teacherJuri[i].userid;
  9878. _check.push(gid);
  9879. }
  9880. for (var i = 0; i < this.checkboxList3.length; i++) {
  9881. var _id = this.checkboxList3[i];
  9882. if (_check.indexOf(_id) !== -1) {
  9883. _check2.push(_id);
  9884. }
  9885. }
  9886. if (_check2.length==0 && _check.length==0) {
  9887. }else{
  9888. this.checkAll2 = _check2.length === _check.length;
  9889. }
  9890. this.CollLoading=false
  9891. })
  9892. .catch((err) => {
  9893. console.error(err);
  9894. this.CollLoading=false
  9895. });
  9896. },
  9897. searchStudent() {
  9898. this.getStudent();
  9899. },
  9900. selectGrage() {
  9901. let params = {
  9902. oid: this.oid,
  9903. };
  9904. this.ajax
  9905. .get(this.$store.state.api + "selectGrageBySchool", params)
  9906. .then((res) => {
  9907. this.gradeList = res.data[0];
  9908. })
  9909. .catch((err) => {
  9910. this.isLoading = false;
  9911. console.error(err);
  9912. });
  9913. },
  9914. //获取班级列表
  9915. getClass() {
  9916. let params = {
  9917. oid: this.oid,
  9918. gid: this.gradeId,
  9919. cn: this.classSearch,
  9920. };
  9921. this.ajax
  9922. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  9923. .then((res) => {
  9924. if (!this.grade.length) {
  9925. this.grade = res.data[0];
  9926. }
  9927. this.grade2 = res.data[0];
  9928. this.classJuri = res.data[0];
  9929. let _check = [];
  9930. let _check2 = [];
  9931. for (var i = 0; i < this.grade2.length; i++) {
  9932. var gid = this.grade2[i].id;
  9933. _check.push(gid);
  9934. }
  9935. for (var i = 0; i < this.checkboxList2.length; i++) {
  9936. var _id = this.checkboxList2[i];
  9937. if (_check.indexOf(_id) !== -1) {
  9938. _check2.push(_id);
  9939. }
  9940. }
  9941. this.checkAll = _check2.length === _check.length;
  9942. })
  9943. .catch((err) => {
  9944. this.isLoading = false;
  9945. console.error(err);
  9946. });
  9947. },
  9948. CourseType2Change(val) {
  9949. this.pTypeCheck = [];
  9950. for (var i = 0; i < this.CourseType2.length; i++) {
  9951. let typeA = this.CourseType2[i];
  9952. if (val.indexOf(typeA.name) != -1) {
  9953. this.pTypeCheck.push(...typeA.id);
  9954. }
  9955. }
  9956. },
  9957. getChapterData(e, i, j, ic, type) {
  9958. e.stopPropagation();
  9959. this.updataC = true;
  9960. this.icc = ic;
  9961. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  9962. console.log("还不能下载图片喔");
  9963. }
  9964. },
  9965. deleteChapterData(e, i, j, ic, taskI) {
  9966. e.stopPropagation();
  9967. let _this = this;
  9968. _this
  9969. .$confirm("确定删除此项?", "提示", {
  9970. confirmButtonText: "确定",
  9971. cancelButtonText: "取消",
  9972. type: "warning",
  9973. })
  9974. .then(() => {
  9975. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  9976. ic,
  9977. 1
  9978. );
  9979. })
  9980. .catch(() => {
  9981. return;
  9982. });
  9983. },
  9984. updataVideoT(e, i, j, ic) {
  9985. // e.stopPropagation();
  9986. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  9987. // ic
  9988. // ].name = JSON.parse(JSON.stringify(e.target.value));
  9989. this.line =
  9990. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[ic].name;
  9991. this.taskCount = j;
  9992. this.lineCount = ic;
  9993. this.dialogVisibleupdataVideoT = true;
  9994. this.$forceUpdate();
  9995. },
  9996. updataVideoC() {
  9997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9998. this.taskCount
  9999. ].chapterData[this.lineCount].name = JSON.parse(
  10000. JSON.stringify(this.line)
  10001. );
  10002. this.dialogVisibleupdataVideoT = false;
  10003. this.$forceUpdate();
  10004. },
  10005. upCd(e, i, j, taskCount, ic) {
  10006. e.stopPropagation();
  10007. if (ic == 0) {
  10008. return;
  10009. }
  10010. var a = JSON.parse(
  10011. JSON.stringify(
  10012. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10013. ic - 1
  10014. ]
  10015. )
  10016. );
  10017. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  10018. JSON.parse(
  10019. JSON.stringify(
  10020. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10021. )
  10022. );
  10023. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10024. this.$forceUpdate();
  10025. },
  10026. downCd(e, i, j, taskCount, ic) {
  10027. e.stopPropagation();
  10028. if (
  10029. ic ==
  10030. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  10031. 1
  10032. ) {
  10033. return;
  10034. }
  10035. var a = JSON.parse(
  10036. JSON.stringify(
  10037. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10038. ic + 1
  10039. ]
  10040. )
  10041. );
  10042. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  10043. JSON.parse(
  10044. JSON.stringify(
  10045. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10046. )
  10047. );
  10048. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10049. this.$forceUpdate();
  10050. },
  10051. async upTool(e, i, j, tooli) {
  10052. e.stopPropagation();
  10053. if (tooli == 0) {
  10054. return;
  10055. }
  10056. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  10057. let count2 = await this.getWorksCount(3, i, j, tooli);
  10058. if (count1 > 0 || count2 > 0) {
  10059. this.$confirm(
  10060. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10061. "提示",
  10062. {
  10063. confirmButtonText: "确定",
  10064. cancelButtonText: "取消",
  10065. type: "warning",
  10066. }
  10067. )
  10068. .then(() => {
  10069. var a = JSON.parse(
  10070. JSON.stringify(
  10071. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10072. tooli - 1
  10073. ]
  10074. )
  10075. );
  10076. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10077. JSON.parse(
  10078. JSON.stringify(
  10079. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10080. )
  10081. );
  10082. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10083. this.$forceUpdate();
  10084. })
  10085. .catch(() => {
  10086. return;
  10087. });
  10088. } else {
  10089. var a = JSON.parse(
  10090. JSON.stringify(
  10091. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  10092. )
  10093. );
  10094. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10095. JSON.parse(
  10096. JSON.stringify(
  10097. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10098. )
  10099. );
  10100. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10101. this.$forceUpdate();
  10102. }
  10103. },
  10104. async downTool(e, i, j, tooli) {
  10105. e.stopPropagation();
  10106. if (
  10107. tooli ==
  10108. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  10109. ) {
  10110. return;
  10111. }
  10112. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  10113. let count2 = await this.getWorksCount(3, i, j, tooli);
  10114. if (count1 > 0 || count2 > 0) {
  10115. this.$confirm(
  10116. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10117. "提示",
  10118. {
  10119. confirmButtonText: "确定",
  10120. cancelButtonText: "取消",
  10121. type: "warning",
  10122. }
  10123. )
  10124. .then(() => {
  10125. var a = JSON.parse(
  10126. JSON.stringify(
  10127. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10128. tooli + 1
  10129. ]
  10130. )
  10131. );
  10132. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10133. JSON.parse(
  10134. JSON.stringify(
  10135. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10136. )
  10137. );
  10138. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10139. this.$forceUpdate();
  10140. })
  10141. .catch(() => {
  10142. return;
  10143. });
  10144. } else {
  10145. var a = JSON.parse(
  10146. JSON.stringify(
  10147. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10148. )
  10149. );
  10150. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10151. JSON.parse(
  10152. JSON.stringify(
  10153. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10154. )
  10155. );
  10156. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10157. this.$forceUpdate();
  10158. }
  10159. },
  10160. addWork() {
  10161. let cPan = 1;
  10162. for (var i = 0; i < this.unitJson.length; i++) {
  10163. for (
  10164. var j = 0;
  10165. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10166. j++
  10167. ) {
  10168. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10169. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10170. if (
  10171. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10172. ) {
  10173. for (
  10174. var z = 0;
  10175. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10176. z++
  10177. ) {
  10178. if (
  10179. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10180. .length
  10181. ) {
  10182. this.$message.error("请把工具添加完整");
  10183. cPan = 2;
  10184. break;
  10185. }
  10186. }
  10187. }
  10188. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10189. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10190. i
  10191. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10192. return ele.value != "";
  10193. });
  10194. }
  10195. }
  10196. }
  10197. this.inputShow = true;
  10198. if (cPan == 2) {
  10199. this.steps--;
  10200. return;
  10201. }
  10202. for (var i = 0; i < this.unitJson.length; i++) {
  10203. delete this.unitJson[i].isUpdate;
  10204. }
  10205. let params = [
  10206. {
  10207. uid: this.userid,
  10208. title: this.courseName,
  10209. brief: this.courseText,
  10210. cover:
  10211. this.cover.length > 0
  10212. ? JSON.stringify(this.cover)
  10213. : JSON.stringify([
  10214. {
  10215. name: "noBanner.jpg",
  10216. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10217. uid: 1656409780264,
  10218. status: "success",
  10219. },
  10220. ]),
  10221. evaId: this.evalua,
  10222. astudent:
  10223. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10224. see: this.isTeacherSee == true ? 1 : 0,
  10225. chapters: JSON.stringify(this.unitJson),
  10226. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10227. courseType: JSON.stringify(this.courseTypeId),
  10228. ateacher:
  10229. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10230. inviteCode: JSON.stringify(this.inviteCode),
  10231. highSetting: this.highSetting == true ? 1 : 0,
  10232. courseState: this.courseState,
  10233. },
  10234. ];
  10235. this.ajax
  10236. .post(this.$store.state.api + "addWorkNew2New", params)
  10237. .then((res) => {
  10238. console.log(this.steps);
  10239. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10240. this.$message({
  10241. message: "新增成功",
  10242. type: "success",
  10243. });
  10244. }
  10245. this.number = res.data.ordernumber;
  10246. this.courseId = res.data.courseId;
  10247. this.cid = res.data.courseId;
  10248. this.courseUserid = this.userid;
  10249. this.islogin = true;
  10250. })
  10251. .catch((err) => {
  10252. this.$message.error("网络不佳");
  10253. console.error(err);
  10254. });
  10255. },
  10256. goCourse() {
  10257. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  10258. },
  10259. updateWork2() {
  10260. let _unitIndex = this.unitIndex;
  10261. let cPan = 1;
  10262. for (
  10263. var j = 0;
  10264. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10265. j++
  10266. ) {
  10267. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10268. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10269. j
  10270. ].proVisible2 = false;
  10271. if (
  10272. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10273. .length > 1
  10274. ) {
  10275. for (
  10276. var z = 0;
  10277. z <
  10278. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10279. .length;
  10280. z++
  10281. ) {
  10282. if (
  10283. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10284. z
  10285. ].tool.length
  10286. ) {
  10287. this.$message.error("请把工具添加完整");
  10288. cPan = 2;
  10289. break;
  10290. }
  10291. }
  10292. }
  10293. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10294. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10295. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10296. (ele) => {
  10297. return ele.value != "";
  10298. }
  10299. );
  10300. }
  10301. }
  10302. this.inputShow = true;
  10303. if (cPan == 2) {
  10304. this.steps--;
  10305. return;
  10306. }
  10307. let params = [
  10308. {
  10309. cid: this.cid,
  10310. chapters: JSON.stringify(this.unitJson),
  10311. uid: this.userid,
  10312. unitIndex: _unitIndex,
  10313. },
  10314. ];
  10315. this.ajax
  10316. .post(this.$store.state.api + "updateWorkNew4", params)
  10317. .then((res) => {
  10318. this.$message({
  10319. message: "修改成功",
  10320. type: "success",
  10321. });
  10322. this.courseId = this.cid;
  10323. })
  10324. .catch((err) => {
  10325. this.$message.error("网络不佳");
  10326. console.error(err);
  10327. });
  10328. },
  10329. updateWork3(unitIndex) {
  10330. let _unitIndex = unitIndex;
  10331. let cPan = 1;
  10332. for (
  10333. var j = 0;
  10334. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10335. j++
  10336. ) {
  10337. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10338. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10339. j
  10340. ].proVisible2 = false;
  10341. if (
  10342. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10343. .length > 1
  10344. ) {
  10345. for (
  10346. var z = 0;
  10347. z <
  10348. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10349. .length;
  10350. z++
  10351. ) {
  10352. if (
  10353. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10354. z
  10355. ].tool.length
  10356. ) {
  10357. this.$message.error("请把工具添加完整");
  10358. cPan = 2;
  10359. break;
  10360. }
  10361. }
  10362. }
  10363. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10364. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10365. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10366. (ele) => {
  10367. return ele.value != "";
  10368. }
  10369. );
  10370. }
  10371. }
  10372. this.inputShow = true;
  10373. if (cPan == 2) {
  10374. this.steps--;
  10375. return;
  10376. }
  10377. let params = [
  10378. {
  10379. cid: this.cid,
  10380. chapters: JSON.stringify(this.unitJson),
  10381. uid: this.userid,
  10382. unitIndex: _unitIndex,
  10383. },
  10384. ];
  10385. this.ajax
  10386. .post(this.$store.state.api + "updateWorkNew4", params)
  10387. .then((res) => {
  10388. // this.$message({
  10389. // message: "修改成功",
  10390. // type: "success",
  10391. // });
  10392. this.courseId = this.cid;
  10393. })
  10394. .catch((err) => {
  10395. this.$message.error("网络不佳");
  10396. console.error(err);
  10397. });
  10398. },
  10399. updateWork() {
  10400. let cPan = 1;
  10401. for (var i = 0; i < this.unitJson.length; i++) {
  10402. for (
  10403. var j = 0;
  10404. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10405. j++
  10406. ) {
  10407. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10408. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10409. if (
  10410. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10411. ) {
  10412. for (
  10413. var z = 0;
  10414. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10415. z++
  10416. ) {
  10417. if (
  10418. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10419. .length
  10420. ) {
  10421. this.$message.error("请把工具添加完整");
  10422. cPan = 2;
  10423. break;
  10424. }
  10425. }
  10426. }
  10427. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10428. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10429. i
  10430. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10431. return ele.value != "";
  10432. });
  10433. }
  10434. }
  10435. }
  10436. this.inputShow = true;
  10437. if (cPan == 2) {
  10438. this.steps--;
  10439. return;
  10440. }
  10441. for (var i = 0; i < this.unitJson.length; i++) {
  10442. delete this.unitJson[i].isUpdate;
  10443. }
  10444. let params = [
  10445. {
  10446. cid: this.cid,
  10447. title: this.courseName,
  10448. brief: this.courseText,
  10449. cover:
  10450. this.cover.length > 0
  10451. ? JSON.stringify(this.cover)
  10452. : JSON.stringify([
  10453. {
  10454. name: "noBanner.jpg",
  10455. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10456. uid: 1656409780264,
  10457. status: "success",
  10458. },
  10459. ]),
  10460. evaId: this.evalua,
  10461. astudent:
  10462. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10463. see: this.isTeacherSee == true ? 1 : 0,
  10464. chapters: JSON.stringify(this.unitJson),
  10465. template: this.myWord != "undefined" ? this.myWord : [],
  10466. uid: this.userid,
  10467. courseType: JSON.stringify(this.courseTypeId),
  10468. ateacher:
  10469. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10470. inviteCode: JSON.stringify(this.inviteCode),
  10471. highSetting: this.highSetting == true ? 1 : 0,
  10472. },
  10473. ];
  10474. this.ajax
  10475. .post(this.$store.state.api + "updateWorkNew2New", params)
  10476. .then((res) => {
  10477. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10478. if (this.cidType == 1) {
  10479. this.$message({
  10480. message: "修改成功",
  10481. type: "success",
  10482. });
  10483. } else {
  10484. this.$message({
  10485. message: "新增成功",
  10486. type: "success",
  10487. });
  10488. }
  10489. }
  10490. this.number = this.nbOrder;
  10491. this.courseId = this.cid;
  10492. })
  10493. .catch((err) => {
  10494. this.$message.error("网络不佳");
  10495. console.error(err);
  10496. });
  10497. },
  10498. insertWord() {
  10499. this.dialogVisible1 = true;
  10500. this.updateBoolean2 = false;
  10501. this.tTitle = "";
  10502. this.tdetail = "";
  10503. },
  10504. addWord() {
  10505. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10506. name: this.tTitle,
  10507. content: this.tdetail,
  10508. uid: this.guid(),
  10509. });
  10510. this.dialogVisible1 = false;
  10511. },
  10512. upWord() {},
  10513. selectWord(uid, i, c) {
  10514. this.dialogVisible1 = true;
  10515. this.updateBoolean2 = true;
  10516. if (
  10517. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10518. ) {
  10519. this.tTitle =
  10520. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10521. this.tdetail =
  10522. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10523. }
  10524. },
  10525. isAddPP() {
  10526. if (this.checkboxList.length > 0) {
  10527. this.$message({
  10528. message: "添加成功",
  10529. type: "success",
  10530. });
  10531. this.dialogVisible3 = false;
  10532. } else {
  10533. this.$message({
  10534. message: "请添加课程成员",
  10535. type: "error",
  10536. });
  10537. }
  10538. },
  10539. isAddClass() {
  10540. this.dialogVisibleClass = false;
  10541. },
  10542. isAddPPTeacher() {
  10543. this.dialogVisibleMember = false;
  10544. this.setMan();
  10545. },
  10546. getTemplate() {
  10547. this.ajax
  10548. .get(this.$store.state.api + "getCourseTemplateT", "")
  10549. .then((res) => {
  10550. this.templateArray = res.data[0];
  10551. this.getTemplateOid();
  10552. this.$forceUpdate();
  10553. })
  10554. .catch((err) => {});
  10555. },
  10556. getTemplateOid() {
  10557. let params = {
  10558. oid: this.oid,
  10559. };
  10560. this.ajax
  10561. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10562. .then((res) => {
  10563. if (res.data[0].length) {
  10564. this.templateArray = [...res.data[0], ...this.templateArray];
  10565. }
  10566. this.getTemplateOrg();
  10567. this.$forceUpdate();
  10568. })
  10569. .catch((err) => {});
  10570. },
  10571. getTemplateOrg() {
  10572. let params = {
  10573. oid: this.org,
  10574. };
  10575. this.ajax
  10576. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10577. .then((res) => {
  10578. if (res.data[0].length) {
  10579. this.templateArray = [...res.data[0], ...this.templateArray];
  10580. }
  10581. this.$forceUpdate();
  10582. })
  10583. .catch((err) => {});
  10584. },
  10585. clearChoose() {
  10586. this.clearArray.splice(this.templateC.id, 1);
  10587. this.dialogVisible2 = false;
  10588. },
  10589. clearAttText() {
  10590. this.AttText = {
  10591. title: "",
  10592. text: "",
  10593. };
  10594. this.dialogVisible6 = false;
  10595. },
  10596. clearLine() {
  10597. this.line = "";
  10598. this.dialogVisible7 = false;
  10599. },
  10600. openTemplate() {
  10601. this.ctJson = {};
  10602. this.templateDialog = true;
  10603. },
  10604. checkctJson(json) {
  10605. if (this.ctJson.id == json.id) {
  10606. this.ctJson = {};
  10607. } else {
  10608. this.ctJson = json;
  10609. }
  10610. },
  10611. addTemplate(res) {
  10612. let _this = this;
  10613. let _res = [];
  10614. if (res.id == 1) {
  10615. _res = [
  10616. {
  10617. dyName: "", //单元标题
  10618. easy: 1,
  10619. chapterInfo: [
  10620. {
  10621. isread: false,
  10622. chapterid: this.guid(),
  10623. title: "",
  10624. courseName: "",
  10625. taskJson: [
  10626. {
  10627. task: "",
  10628. taskDetail: "",
  10629. chapterData: [],
  10630. toolText: "",
  10631. toolChoose: [
  10632. {
  10633. tool: [],
  10634. toolDetail: "",
  10635. toolType: 0,
  10636. askCount: 1,
  10637. askTitle: "",
  10638. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10639. },
  10640. ],
  10641. isShowTools: false,
  10642. askCount: 1,
  10643. isFold: 1,
  10644. askTitle: "",
  10645. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10646. checkJson: [{ checkCount: [], checkPerent: [] }],
  10647. homeworkList: [],
  10648. },
  10649. ],
  10650. itemCount: 1,
  10651. fileList1: [],
  10652. video: [],
  10653. testData: [],
  10654. pData: [],
  10655. templateArray: [],
  10656. },
  10657. ],
  10658. },
  10659. ];
  10660. this.updateCourseState(1);
  10661. } else if (res.id == 2) {
  10662. let stageData = [];
  10663. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10664. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10665. if (!iframe && !iframe2) {
  10666. this.$message.error("请使用AI共创生成");
  10667. return;
  10668. }
  10669. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10670. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10671. if (
  10672. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10673. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10674. ) {
  10675. this.$message.error("请使用AI共创生成");
  10676. return;
  10677. }
  10678. stageData = copyData
  10679. ? copyData.stageData
  10680. : copyData2
  10681. ? copyData2.stageData
  10682. : [""];
  10683. for (var i = 0; i < stageData.length; i++) {
  10684. _res.push({
  10685. dyName: stageData[i], //单元标题
  10686. chapterInfo: [
  10687. {
  10688. isread: false,
  10689. chapterid: this.guid(),
  10690. title: "",
  10691. courseName: "",
  10692. taskJson: [
  10693. {
  10694. task: "",
  10695. taskDetail: "",
  10696. chapterData: [],
  10697. toolText: "",
  10698. toolChoose: [
  10699. {
  10700. tool: [],
  10701. toolDetail: "",
  10702. toolType: 0,
  10703. askCount: 1,
  10704. askTitle: "",
  10705. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10706. },
  10707. ],
  10708. isShowTools: false,
  10709. askCount: 1,
  10710. isFold: 1,
  10711. askTitle: "",
  10712. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10713. checkJson: [{ checkCount: [], checkPerent: [] }],
  10714. homeworkList: [],
  10715. },
  10716. ],
  10717. itemCount: 1,
  10718. fileList1: [],
  10719. video: [],
  10720. testData: [],
  10721. pData: [],
  10722. templateArray: [],
  10723. },
  10724. ],
  10725. });
  10726. }
  10727. this.updateCourseState(1);
  10728. } else if (!Object.keys(res).length) {
  10729. this.$message.error("请选择模板");
  10730. retrun;
  10731. } else {
  10732. _res = JSON.parse(res.chapters);
  10733. this.updateCourseState(parseInt(res.state));
  10734. }
  10735. if(_this.unitJson.length == 1
  10736. && _this.unitJson[0].chapterInfo[0].taskJson.length == 1
  10737. && !_this.unitJson[0].chapterInfo[0].taskJson[0].task
  10738. && !_this.unitJson[0].chapterInfo[0].taskJson[0].taskDetail
  10739. && !_this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.length){
  10740. _this.unitJson = _res;
  10741. if(_this.cid){
  10742. _this.updateWork();
  10743. }
  10744. // _this.steps++;
  10745. _this.templateDialog = false;
  10746. setTimeout(() => {
  10747. this.checkEva(this.checkId);
  10748. setTimeout(() => {
  10749. this.checkEva(this.checkId);
  10750. }, 100);
  10751. }, 1000);
  10752. }else{
  10753. _this
  10754. .$confirm(
  10755. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10756. "提示",
  10757. {
  10758. confirmButtonText: "确定",
  10759. cancelButtonText: "取消",
  10760. type: "warning",
  10761. }
  10762. )
  10763. .then(() => {
  10764. _this.unitJson = _res;
  10765. if(_this.cid){
  10766. _this.updateWork();
  10767. }
  10768. // _this.steps++;
  10769. _this.templateDialog = false;
  10770. setTimeout(() => {
  10771. this.checkEva(this.checkId);
  10772. setTimeout(() => {
  10773. this.checkEva(this.checkId);
  10774. }, 100);
  10775. }, 1000);
  10776. })
  10777. .catch(() => {
  10778. return;
  10779. });
  10780. }
  10781. },
  10782. checkTemplate(res) {
  10783. let _this = this;
  10784. _this
  10785. .$confirm(
  10786. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10787. "提示",
  10788. {
  10789. confirmButtonText: "确定",
  10790. cancelButtonText: "取消",
  10791. type: "warning",
  10792. }
  10793. )
  10794. .then(() => {
  10795. _this.unitJson = JSON.parse(res.chapters);
  10796. _this.steps++;
  10797. setTimeout(() => {
  10798. this.checkEva(this.checkId);
  10799. setTimeout(() => {
  10800. this.checkEva(this.checkId);
  10801. }, 100);
  10802. }, 1000);
  10803. })
  10804. .catch(() => {
  10805. return;
  10806. });
  10807. },
  10808. checkTemplate1(w) {
  10809. this.steps++;
  10810. },
  10811. checkTemplate2() {
  10812. let _this = this;
  10813. _this
  10814. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  10815. confirmButtonText: "确定",
  10816. cancelButtonText: "取消",
  10817. type: "warning",
  10818. })
  10819. .then(() => {
  10820. _this.unitIndex = 0;
  10821. _this.unitJson = [
  10822. {
  10823. dyName: "", //单元标题
  10824. chapterInfo: [
  10825. {
  10826. isread: false,
  10827. chapterid: this.guid(),
  10828. title: "",
  10829. courseName: "",
  10830. taskJson: [
  10831. {
  10832. task: "",
  10833. taskDetail: "",
  10834. chapterData: [],
  10835. toolText: "",
  10836. toolChoose: [
  10837. {
  10838. tool: [],
  10839. toolDetail: "",
  10840. toolType: 0,
  10841. askCount: 1,
  10842. askTitle: "",
  10843. askJson: [
  10844. { askstitle: "", askItem: 1, checkList: [] },
  10845. ],
  10846. },
  10847. ],
  10848. isShowTools: false,
  10849. askCount: 1,
  10850. isFold: 1,
  10851. askTitle: "",
  10852. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10853. checkJson: [{ checkCount: [], checkPerent: [] }],
  10854. homeworkList: [],
  10855. },
  10856. ],
  10857. itemCount: 1,
  10858. fileList1: [],
  10859. video: [],
  10860. testData: [],
  10861. pData: [],
  10862. templateArray: [],
  10863. },
  10864. ],
  10865. },
  10866. ];
  10867. this.steps++;
  10868. setTimeout(() => {
  10869. this.checkEva(this.checkId);
  10870. setTimeout(() => {
  10871. this.checkEva(this.checkId);
  10872. }, 100);
  10873. }, 1000);
  10874. this.updateWork();
  10875. })
  10876. .catch(() => {
  10877. return;
  10878. });
  10879. },
  10880. checkTemplate3() {
  10881. let _this = this;
  10882. _this
  10883. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  10884. confirmButtonText: "确定",
  10885. cancelButtonText: "取消",
  10886. type: "warning",
  10887. })
  10888. .then(() => {
  10889. _this.unitIndex = 0;
  10890. _this.unitJson = [
  10891. {
  10892. dyName: "", //单元标题
  10893. easy: 1,
  10894. chapterInfo: [
  10895. {
  10896. isread: false,
  10897. chapterid: this.guid(),
  10898. title: "",
  10899. courseName: "",
  10900. taskJson: [
  10901. {
  10902. task: "",
  10903. taskDetail: "",
  10904. chapterData: [],
  10905. toolText: "",
  10906. toolChoose: [
  10907. {
  10908. tool: [],
  10909. toolDetail: "",
  10910. toolType: 0,
  10911. askCount: 1,
  10912. askTitle: "",
  10913. askJson: [
  10914. { askstitle: "", askItem: 1, checkList: [] },
  10915. ],
  10916. },
  10917. ],
  10918. isShowTools: false,
  10919. askCount: 1,
  10920. isFold: 1,
  10921. askTitle: "",
  10922. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10923. checkJson: [{ checkCount: [], checkPerent: [] }],
  10924. homeworkList: [],
  10925. },
  10926. ],
  10927. itemCount: 1,
  10928. fileList1: [],
  10929. video: [],
  10930. testData: [],
  10931. pData: [],
  10932. templateArray: [],
  10933. },
  10934. ],
  10935. },
  10936. ];
  10937. // this.steps++;
  10938. this.updateWork();
  10939. })
  10940. .catch(() => {
  10941. return;
  10942. });
  10943. },
  10944. checkTemplate4() {
  10945. let _this = this;
  10946. _this
  10947. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  10948. confirmButtonText: "确定",
  10949. cancelButtonText: "取消",
  10950. type: "warning",
  10951. })
  10952. .then(() => {
  10953. _this.unitIndex = 0;
  10954. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  10955. this.steps++;
  10956. this.updateWork();
  10957. })
  10958. .catch(() => {
  10959. return;
  10960. });
  10961. },
  10962. wordNext() {
  10963. this.dialogVisible2 = false;
  10964. },
  10965. isAddOrUpdateAttText() {
  10966. if (this.AttTextType == 0) {
  10967. this.addAttTextMessage();
  10968. } else {
  10969. this.updateAttText();
  10970. }
  10971. },
  10972. isAddOrUpdateLine() {
  10973. if (!this.lineTitle) {
  10974. this.$message.error("请填写链接标题");
  10975. return;
  10976. }
  10977. if (this.lineType == 0) {
  10978. this.addLine();
  10979. } else {
  10980. this.updateLine();
  10981. }
  10982. },
  10983. addAttTextMessage() {
  10984. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10985. this.taskCount
  10986. ].chapterData.push({
  10987. name: this.AttText.title,
  10988. url: this.AttText.text,
  10989. type: 6,
  10990. });
  10991. this.imgChange1(null, null, 6, this.taskCount);
  10992. this.dialogVisible6 = false;
  10993. },
  10994. selectAttText(itemTaskIndex, i) {
  10995. this.AttText.title =
  10996. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10997. itemTaskIndex
  10998. ].chapterData[i].name;
  10999. this.AttText.text =
  11000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11001. itemTaskIndex
  11002. ].chapterData[i].url;
  11003. this.taskCount = itemTaskIndex;
  11004. this.AttTextIndex = i;
  11005. this.AttTextType = 1;
  11006. this.dialogVisible6 = true;
  11007. },
  11008. updateAttText() {
  11009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11010. this.taskCount
  11011. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  11012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11013. this.taskCount
  11014. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  11015. this.dialogVisible6 = false;
  11016. },
  11017. addLine() {
  11018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11019. this.lineCount
  11020. ].chapterData.push({
  11021. name: "链接",
  11022. title: this.lineTitle,
  11023. url: this.line,
  11024. type: 8,
  11025. });
  11026. this.imgChange1(null, null, 8, this.lineCount);
  11027. this.dialogVisible7 = false;
  11028. },
  11029. selectLine(itemTaskIndex, i) {
  11030. this.line =
  11031. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11032. itemTaskIndex
  11033. ].chapterData[i].url;
  11034. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11035. itemTaskIndex
  11036. ].chapterData[i].title
  11037. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11038. .chapterData[i].title
  11039. : "";
  11040. this.taskCount = itemTaskIndex;
  11041. this.lineCount = i;
  11042. this.lineType = 1;
  11043. this.dialogVisible7 = true;
  11044. },
  11045. openUpdateSource(itemTaskIndex, i) {
  11046. this.sourceData = {};
  11047. let source =
  11048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11049. .chapterData[i];
  11050. this.sourceData[source.id] = {};
  11051. this.sourceData[source.id].name = source.title;
  11052. this.sourceData[source.id].url = source.url;
  11053. this.dialogVisibleSource = true;
  11054. this.updateSourcePan = true;
  11055. this.taskCount = itemTaskIndex;
  11056. this.lineCount = i;
  11057. },
  11058. updateLine() {
  11059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11060. this.taskCount
  11061. ].chapterData[this.lineCount].url = this.line;
  11062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11063. this.taskCount
  11064. ].chapterData[this.lineCount].title = this.lineTitle;
  11065. this.dialogVisible7 = false;
  11066. },
  11067. addPP() {
  11068. this.dialogVisible3 = true;
  11069. },
  11070. goTo(path) {
  11071. this.$router.push(path);
  11072. },
  11073. openTools(itemTaskIndex, i, toolIndex) {
  11074. this.toolIndex = toolIndex;
  11075. this.taskCount = itemTaskIndex;
  11076. if (i == 4) {
  11077. if (toolIndex == null) {
  11078. var a =
  11079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11080. .chapterData;
  11081. for (var i = 0; i < a.length; i++) {
  11082. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  11083. this.askJson =
  11084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11085. itemTaskIndex
  11086. ].chapterData[i].askJson;
  11087. }
  11088. }
  11089. } else {
  11090. this.askJson = JSON.parse(
  11091. JSON.stringify(
  11092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11093. itemTaskIndex
  11094. ].toolChoose[toolIndex]
  11095. )
  11096. );
  11097. }
  11098. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  11099. this.dialogVisible5 = true;
  11100. } else if (i == 45) {
  11101. if (
  11102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11103. .toolChoose[toolIndex].testJson
  11104. ) {
  11105. this.testJson = JSON.parse(
  11106. JSON.stringify(
  11107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11108. itemTaskIndex
  11109. ].toolChoose[toolIndex].testJson
  11110. )
  11111. );
  11112. } else {
  11113. var testJson = {
  11114. testCount: 1,
  11115. testTitle: "",
  11116. testJson: [
  11117. {
  11118. teststitle: "",
  11119. testItem: 1,
  11120. checkList: [],
  11121. timuList: [],
  11122. answer: [],
  11123. type: "1",
  11124. },
  11125. ],
  11126. };
  11127. this.testJson = testJson;
  11128. }
  11129. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  11130. this.dialogVisibleChoice = true;
  11131. } else if (i == 47) {
  11132. if (
  11133. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11134. .toolChoose[toolIndex].sentenceList
  11135. ) {
  11136. this.sentenceList = JSON.parse(
  11137. JSON.stringify(
  11138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11139. itemTaskIndex
  11140. ].toolChoose[toolIndex].sentenceList
  11141. )
  11142. );
  11143. } else {
  11144. var sentenceList = [
  11145. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11146. ];
  11147. this.sentenceList = sentenceList;
  11148. }
  11149. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11150. this.dialogVisibleSentence = true;
  11151. } else if (i == 48) {
  11152. if (
  11153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11154. .toolChoose[toolIndex].tableJson
  11155. ) {
  11156. this.tableJson = JSON.parse(
  11157. JSON.stringify(
  11158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11159. itemTaskIndex
  11160. ].toolChoose[toolIndex].tableJson
  11161. )
  11162. );
  11163. } else {
  11164. var tableJson = { text: "" };
  11165. this.tableJson = tableJson;
  11166. }
  11167. this.dialogVisibleTable = true;
  11168. } else if (i == 52) {
  11169. if (
  11170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11171. .toolChoose[toolIndex].wordJson
  11172. ) {
  11173. this.wordJson = JSON.parse(
  11174. JSON.stringify(
  11175. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11176. itemTaskIndex
  11177. ].toolChoose[toolIndex].wordJson
  11178. )
  11179. );
  11180. } else {
  11181. var wordJson = { text: "" };
  11182. this.wordJson = wordJson;
  11183. }
  11184. this.dialogVisibleWord = true;
  11185. // else if (i == 50) {
  11186. // if (
  11187. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11188. // .toolChoose[toolIndex].uploadJson
  11189. // ) {
  11190. // this.uploadJson = JSON.parse(
  11191. // JSON.stringify(
  11192. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11193. // itemTaskIndex
  11194. // ].toolChoose[toolIndex].uploadJson
  11195. // )
  11196. // );
  11197. // } else {
  11198. // var uploadJson = [];
  11199. // this.uploadJson = uploadJson;
  11200. // }
  11201. // this.dialogVisibleMoreUpload = true;
  11202. // }
  11203. } else if (i == 10) {
  11204. if (
  11205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11206. .toolChoose[toolIndex].preTime
  11207. ) {
  11208. this.preTime = JSON.parse(
  11209. JSON.stringify(
  11210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11211. itemTaskIndex
  11212. ].toolChoose[toolIndex].preTime
  11213. )
  11214. );
  11215. } else {
  11216. var preTime = 0;
  11217. this.preTime = preTime;
  11218. }
  11219. this.dialogVisiblePreTime = true;
  11220. } else if (i == 49) {
  11221. if (
  11222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11223. .toolChoose[toolIndex].groupJson
  11224. ) {
  11225. this.groupJson = JSON.parse(
  11226. JSON.stringify(
  11227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11228. itemTaskIndex
  11229. ].toolChoose[toolIndex].groupJson
  11230. )
  11231. );
  11232. } else {
  11233. var groupJson = {
  11234. group: [{ name: "第1组" }],
  11235. number: undefined,
  11236. islock: 1,
  11237. };
  11238. this.groupJson = groupJson;
  11239. }
  11240. this.dialogVisibleGroup = true;
  11241. } else if (i == 62) {
  11242. if (
  11243. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11244. .toolChoose[toolIndex].videoJson
  11245. ) {
  11246. this.videoJson = JSON.parse(
  11247. JSON.stringify(
  11248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11249. itemTaskIndex
  11250. ].toolChoose[toolIndex].videoJson
  11251. )
  11252. );
  11253. } else {
  11254. var videoJson = {
  11255. video: "",
  11256. setting: [],
  11257. };
  11258. this.videoJson = videoJson;
  11259. }
  11260. this.dialogVisibleVideo = true;
  11261. } else if (i == 15) {
  11262. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11263. itemTaskIndex
  11264. ].toolChoose[toolIndex].answerQ
  11265. ? JSON.parse(
  11266. JSON.stringify(
  11267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11268. itemTaskIndex
  11269. ].toolChoose[toolIndex].answerQ
  11270. )
  11271. )
  11272. : "";
  11273. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11274. this.dialogVisible8 = true;
  11275. } else if (i == 40) {
  11276. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11277. itemTaskIndex
  11278. ].toolChoose[toolIndex].rateJson
  11279. ? JSON.parse(
  11280. JSON.stringify(
  11281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11282. itemTaskIndex
  11283. ].toolChoose[toolIndex].rateJson
  11284. )
  11285. )
  11286. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11287. this.selectSteps = 1;
  11288. this.dialogVisibleRate = true;
  11289. } else if (i == 42) {
  11290. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11291. itemTaskIndex
  11292. ].toolChoose[toolIndex].answerQ
  11293. ? JSON.parse(
  11294. JSON.stringify(
  11295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11296. itemTaskIndex
  11297. ].toolChoose[toolIndex].answerQ
  11298. )
  11299. )
  11300. : "";
  11301. this.dialogVisibleMp3 = true;
  11302. } else if (i == 41) {
  11303. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11304. itemTaskIndex
  11305. ].toolChoose[toolIndex].selectJson
  11306. ? JSON.parse(
  11307. JSON.stringify(
  11308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11309. itemTaskIndex
  11310. ].toolChoose[toolIndex].selectJson
  11311. )
  11312. )
  11313. : { url: "", select: [], answer: [] };
  11314. this.selectSteps = 1;
  11315. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11316. this.dialogVisibleSelect = true;
  11317. } else if (i == 3) {
  11318. if (!this.cid) {
  11319. this.$message.error(
  11320. "添加时不能添加模板,请添加课程后再修改添加模板"
  11321. );
  11322. return;
  11323. }
  11324. top.postMessage(
  11325. {
  11326. tools: "3y",
  11327. cid: this.cid,
  11328. stage: this.unitIndex,
  11329. task: itemTaskIndex,
  11330. tool: toolIndex,
  11331. },
  11332. "*"
  11333. );
  11334. } else if (i == 1) {
  11335. if (!this.cid) {
  11336. this.$message.error(
  11337. "添加时不能添加模板,请添加课程后再修改添加模板"
  11338. );
  11339. return;
  11340. }
  11341. top.postMessage(
  11342. {
  11343. tools: "1y",
  11344. cid: this.cid,
  11345. stage: this.unitIndex,
  11346. task: itemTaskIndex,
  11347. tool: toolIndex,
  11348. },
  11349. "*"
  11350. );
  11351. } else if (i == 57) {
  11352. if (!this.cid) {
  11353. this.$message.error(
  11354. "添加时不能添加模板,请添加课程后再修改添加模板"
  11355. );
  11356. return;
  11357. }
  11358. top.postMessage(
  11359. {
  11360. tools: "57y",
  11361. cid: this.cid,
  11362. stage: this.unitIndex,
  11363. task: itemTaskIndex,
  11364. tool: toolIndex,
  11365. },
  11366. "*"
  11367. );
  11368. } else if (i == 69) {
  11369. this.englishList = {};
  11370. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11371. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11372. ? JSON.parse(
  11373. JSON.stringify(
  11374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11375. itemTaskIndex
  11376. ].toolChoose[toolIndex].englishList
  11377. )
  11378. )
  11379. : {};
  11380. this.$forceUpdate();
  11381. this.englishDialogVisible = true;
  11382. } else if (i == 70) {
  11383. this.englishVoiceJson = {};
  11384. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11385. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11386. ? JSON.parse(
  11387. JSON.stringify(
  11388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11389. itemTaskIndex
  11390. ].toolChoose[toolIndex].englishVoiceJson
  11391. )
  11392. )
  11393. : {
  11394. title:'',
  11395. detail:'',
  11396. array:[]
  11397. };
  11398. // {
  11399. // time: "",
  11400. // class: "",
  11401. // difficulty: 0,
  11402. // topic: "",
  11403. // isShow: false,
  11404. // eva: 0,
  11405. // aiEva: {
  11406. // isAiEva: false,
  11407. // aiEvaChoose: [],
  11408. // },
  11409. // allfType: [],
  11410. // englishJson: {},
  11411. // };
  11412. this.$forceUpdate();
  11413. this.EnglishVoiceDialog = true;
  11414. }
  11415. },
  11416. setEnglishVoiceJson(val) {
  11417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11418. this.taskCount
  11419. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11420. JSON.stringify(val)
  11421. );
  11422. this.$forceUpdate();
  11423. if (
  11424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11425. .toolChoose[this.toolIndex].tool != 70
  11426. ) {
  11427. this.addTools(70, this.taskCount, this.toolIndex);
  11428. }
  11429. },
  11430. chapAddTools(i) {
  11431. if (this.chapTools[0].tools.length == 0) {
  11432. this.chapTools[0].tools.push(i);
  11433. } else {
  11434. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11435. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11436. } else {
  11437. this.chapTools[0].tools.push(i);
  11438. }
  11439. }
  11440. this.$forceUpdate();
  11441. },
  11442. addChaptersDataTools() {
  11443. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11445. this.chapCount
  11446. ].chapterData.push({
  11447. name: this.chapTools[0].toolDetail,
  11448. url: this.chapTools[0].tools,
  11449. type: 7,
  11450. askJson: this.askJson,
  11451. });
  11452. } else {
  11453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11454. this.chapCount
  11455. ].chapterData.push({
  11456. name: this.chapTools[0].toolDetail,
  11457. url: this.chapTools[0].tools,
  11458. type: 7,
  11459. });
  11460. }
  11461. this.imgChange1(null, null, 7, this.chapCount);
  11462. this.dialogVisible4 = false;
  11463. },
  11464. addTools(i, itemTaskIndex, toolIndex) {
  11465. // if (
  11466. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11467. // .toolChoose[toolIndex].tool.length == 0
  11468. // ) {
  11469. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11470. // itemTaskIndex
  11471. // ].toolChoose[toolIndex].tool.push(i);
  11472. // } else {
  11473. // if (
  11474. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11475. // itemTaskIndex
  11476. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11477. // ) {
  11478. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11479. // itemTaskIndex
  11480. // ].toolChoose[toolIndex].tool.splice(
  11481. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11482. // itemTaskIndex
  11483. // ].toolChoose[toolIndex].tool.indexOf(i),
  11484. // 1
  11485. // );
  11486. // } else {
  11487. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11488. // itemTaskIndex
  11489. // ].toolChoose[toolIndex].tool.push(i);
  11490. // }
  11491. // console.log(
  11492. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11493. // .toolChoose[toolIndex].tool
  11494. // );
  11495. // }
  11496. if (i == 4) {
  11497. if (
  11498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11499. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11501. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11503. .toolChoose[toolIndex].askJson[0].checkList < 2
  11504. ) {
  11505. this.openTools(itemTaskIndex, 4, toolIndex);
  11506. // this.$message({
  11507. // message: "请填写完整问卷内容",
  11508. // type: "error",
  11509. // });
  11510. return;
  11511. }
  11512. }
  11513. if (i == 45) {
  11514. if (
  11515. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11516. .toolChoose[toolIndex].testJson ||
  11517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11518. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11519. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11520. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11521. ) {
  11522. this.openTools(itemTaskIndex, 45, toolIndex);
  11523. // this.$message({
  11524. // message: "请填写完整问卷内容",
  11525. // type: "error",
  11526. // });
  11527. return;
  11528. }
  11529. }
  11530. if (i == 47) {
  11531. if (
  11532. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11533. .toolChoose[toolIndex].sentenceList ||
  11534. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11535. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11536. ) {
  11537. this.openTools(itemTaskIndex, 47, toolIndex);
  11538. return;
  11539. }
  11540. }
  11541. if (i == 69) {
  11542. if (
  11543. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11544. .toolChoose[toolIndex].englishList
  11545. ) {
  11546. this.openTools(itemTaskIndex, 69, toolIndex);
  11547. return;
  11548. }
  11549. }
  11550. if (i == 70) {
  11551. if (
  11552. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11553. .toolChoose[toolIndex].englishVoiceJson
  11554. ) {
  11555. this.openTools(itemTaskIndex, 70, toolIndex);
  11556. return;
  11557. }
  11558. }
  11559. // if (i == 48) {
  11560. // if (
  11561. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11562. // .toolChoose[toolIndex].tableJson
  11563. // ) {
  11564. // this.openTools(itemTaskIndex, 48, toolIndex);
  11565. // return;
  11566. // }
  11567. // }
  11568. // if (i == 50) {
  11569. // if (
  11570. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11571. // .toolChoose[toolIndex].uploadJson
  11572. // ) {
  11573. // this.openTools(itemTaskIndex, 50, toolIndex);
  11574. // return;
  11575. // }
  11576. // }
  11577. if (i == 49) {
  11578. if (
  11579. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11580. .toolChoose[toolIndex].groupJson
  11581. ) {
  11582. this.openTools(itemTaskIndex, 49, toolIndex);
  11583. return;
  11584. }
  11585. }
  11586. if (i == 62) {
  11587. if (
  11588. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11589. .toolChoose[toolIndex].videoJson
  11590. ) {
  11591. this.openTools(itemTaskIndex, 62, toolIndex);
  11592. return;
  11593. }
  11594. }
  11595. if (i == 15) {
  11596. if (
  11597. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11598. .toolChoose[toolIndex].answerQ ||
  11599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11600. .toolChoose[toolIndex].answerQ == ""
  11601. ) {
  11602. this.openTools(itemTaskIndex, 15, toolIndex);
  11603. // this.$message({
  11604. // message: "请填写问答内容",
  11605. // type: "error",
  11606. // });
  11607. return;
  11608. }
  11609. }
  11610. if (i == 40) {
  11611. if (
  11612. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11613. .toolChoose[toolIndex].rateJson ||
  11614. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11615. .toolChoose[toolIndex].rateJson.length
  11616. ) {
  11617. this.openTools(itemTaskIndex, 40, toolIndex);
  11618. return;
  11619. }
  11620. }
  11621. if (i == 41) {
  11622. if (
  11623. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11624. .toolChoose[toolIndex].selectJson ||
  11625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11626. .toolChoose[toolIndex].selectJson.url == "" ||
  11627. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11628. .toolChoose[toolIndex].selectJson.select.length ||
  11629. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11630. .toolChoose[toolIndex].selectJson.answer.length
  11631. ) {
  11632. this.openTools(itemTaskIndex, 41, toolIndex);
  11633. return;
  11634. }
  11635. }
  11636. if (i == 42) {
  11637. if (
  11638. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11639. .toolChoose[toolIndex].answerQ ||
  11640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11641. .toolChoose[toolIndex].answerQ == ""
  11642. ) {
  11643. this.openTools(itemTaskIndex, 42, toolIndex);
  11644. return;
  11645. }
  11646. }
  11647. if (
  11648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11649. .toolChoose[toolIndex].tool.length > 0
  11650. ) {
  11651. if (
  11652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11653. itemTaskIndex
  11654. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11655. ) {
  11656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11657. itemTaskIndex
  11658. ].toolChoose[toolIndex].tool.splice(
  11659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11660. itemTaskIndex
  11661. ].toolChoose[toolIndex].tool.indexOf(i),
  11662. 1
  11663. );
  11664. } else {
  11665. // this.$message({
  11666. // message: "每个工具只能添加一个",
  11667. // type: "error",
  11668. // });
  11669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11670. itemTaskIndex
  11671. ].toolChoose[toolIndex].tool = [];
  11672. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11673. itemTaskIndex
  11674. ].toolChoose[toolIndex].tool.push(i);
  11675. }
  11676. } else {
  11677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11678. itemTaskIndex
  11679. ].toolChoose[toolIndex].tool.push(i);
  11680. }
  11681. this.$forceUpdate();
  11682. },
  11683. addAskList(index) {
  11684. this.askJson.askJson.splice(index + 1, 0, {
  11685. askstitle: "",
  11686. askItem: 1,
  11687. checkList: [],
  11688. });
  11689. this.askJson.askCount++;
  11690. },
  11691. addTestList(index) {
  11692. this.testJson.testJson.splice(index + 1, 0, {
  11693. teststitle: "",
  11694. testItem: 1,
  11695. checkList: [],
  11696. timuList: [],
  11697. answer: [],
  11698. type: "1",
  11699. });
  11700. this.testJson.testCount++;
  11701. },
  11702. deleteAskList(index) {
  11703. if (
  11704. !this.askJson.askJson[index].askstitle &&
  11705. this.askJson.askJson[index].askItem == 1 &&
  11706. !this.askJson.askJson[index].checkList[0]
  11707. ) {
  11708. this.askJson.askJson.splice(index, 1);
  11709. this.askJson.askCount--;
  11710. } else {
  11711. let _this = this;
  11712. _this
  11713. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11714. confirmButtonText: "确定",
  11715. cancelButtonText: "取消",
  11716. type: "warning",
  11717. })
  11718. .then(() => {
  11719. _this.askJson.askJson.splice(index, 1);
  11720. _this.askJson.askCount--;
  11721. })
  11722. .catch(() => {
  11723. return;
  11724. });
  11725. }
  11726. },
  11727. deleteTestList(index) {
  11728. if (
  11729. !this.testJson.testJson[index].teststitle &&
  11730. this.testJson.testJson[index].testItem == 1 &&
  11731. !this.testJson.testJson[index].checkList[0]
  11732. ) {
  11733. this.testJson.testJson.splice(index, 1);
  11734. this.testJson.testCount--;
  11735. } else {
  11736. let _this = this;
  11737. _this
  11738. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11739. confirmButtonText: "确定",
  11740. cancelButtonText: "取消",
  11741. type: "warning",
  11742. })
  11743. .then(() => {
  11744. _this.testJson.testJson.splice(index, 1);
  11745. _this.testJson.testCount--;
  11746. })
  11747. .catch(() => {
  11748. return;
  11749. });
  11750. }
  11751. },
  11752. askMove(type, index) {
  11753. if (type == 1) {
  11754. if (index > 0) {
  11755. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11756. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11757. this.askJson.askJson[index - 1] = b;
  11758. this.askJson.askJson[index] = a;
  11759. }
  11760. } else {
  11761. if (index < this.askJson.askJson.length - 1) {
  11762. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11763. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11764. this.askJson.askJson[index + 1] = b;
  11765. this.askJson.askJson[index] = a;
  11766. }
  11767. }
  11768. this.$forceUpdate();
  11769. },
  11770. checkMove(type, index, checkIndex) {
  11771. if (type == 1) {
  11772. if (checkIndex > 0) {
  11773. let a = JSON.parse(
  11774. JSON.stringify(
  11775. this.askJson.askJson[index].checkList[checkIndex - 1]
  11776. )
  11777. );
  11778. let b = JSON.parse(
  11779. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11780. );
  11781. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11782. this.askJson.askJson[index].checkList[checkIndex] = a;
  11783. }
  11784. } else {
  11785. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11786. let a = JSON.parse(
  11787. JSON.stringify(
  11788. this.askJson.askJson[index].checkList[checkIndex + 1]
  11789. )
  11790. );
  11791. let b = JSON.parse(
  11792. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11793. );
  11794. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11795. this.askJson.askJson[index].checkList[checkIndex] = a;
  11796. }
  11797. }
  11798. this.$forceUpdate();
  11799. },
  11800. testMove(type, index) {
  11801. if (type == 1) {
  11802. if (index > 0) {
  11803. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11804. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11805. this.testJson.testJson[index - 1] = b;
  11806. this.testJson.testJson[index] = a;
  11807. }
  11808. } else {
  11809. if (index < this.testJson.testJson.length - 1) {
  11810. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11811. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11812. this.testJson.testJson[index + 1] = b;
  11813. this.testJson.testJson[index] = a;
  11814. }
  11815. }
  11816. this.$forceUpdate();
  11817. },
  11818. tcheckMove(type, index, checkIndex) {
  11819. if (type == 1) {
  11820. if (checkIndex > 0) {
  11821. let a = JSON.parse(
  11822. JSON.stringify(
  11823. this.testJson.testJson[index].checkList[checkIndex - 1]
  11824. )
  11825. );
  11826. let b = JSON.parse(
  11827. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11828. );
  11829. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11830. this.testJson.testJson[index].checkList[checkIndex] = a;
  11831. }
  11832. } else {
  11833. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11834. let a = JSON.parse(
  11835. JSON.stringify(
  11836. this.testJson.testJson[index].checkList[checkIndex + 1]
  11837. )
  11838. );
  11839. let b = JSON.parse(
  11840. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11841. );
  11842. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  11843. this.testJson.testJson[index].checkList[checkIndex] = a;
  11844. }
  11845. }
  11846. this.$forceUpdate();
  11847. },
  11848. addcheckList(json, index) {
  11849. // json.checkList.length++;
  11850. json.checkList.splice(index + 1, 0, "");
  11851. json.askItem++;
  11852. this.$forceUpdate();
  11853. },
  11854. deletecheckList(json, index) {
  11855. // json.checkList.length--;
  11856. json.checkList.splice(index, 1);
  11857. json.askItem--;
  11858. this.$forceUpdate();
  11859. },
  11860. addTcheckList(json, index) {
  11861. // json.checkList.length++;
  11862. json.checkList.splice(index + 1, 0, "");
  11863. json.testItem++;
  11864. this.$forceUpdate();
  11865. },
  11866. deleteTcheckList(json, index) {
  11867. // json.checkList.length--;
  11868. json.checkList.splice(index, 1);
  11869. json.testItem--;
  11870. this.$forceUpdate();
  11871. },
  11872. checkTestType(type, json) {
  11873. json.type = type;
  11874. setTimeout(() => {
  11875. json.answer = [];
  11876. }, 100);
  11877. },
  11878. checkAskType(type, json) {
  11879. json.type = type;
  11880. // json.checkList = [];
  11881. this.$forceUpdate();
  11882. },
  11883. addSelectList(json) {
  11884. json.select.push("");
  11885. json.answer.push("");
  11886. },
  11887. deleteSelectList(json) {
  11888. // json.select.length--;
  11889. // json.answer.length--;
  11890. json.select.splice(json.select.length - 1, 1);
  11891. json.answer.splice(json.answer.length - 1, 1);
  11892. },
  11893. addAsk() {
  11894. if (this.askJson.askTitle === "") {
  11895. this.$message.error("标题不能为空!");
  11896. return;
  11897. }
  11898. var aj = this.askJson.askJson;
  11899. var b = 1;
  11900. for (var i = 0; i < aj.length; i++) {
  11901. if (aj[i].askstitle === "") {
  11902. var a = 1;
  11903. for (let index = 0; index < aj[i].askItem; index++) {
  11904. const element = aj[i].checkList[index]
  11905. ? aj[i].checkList[index]
  11906. : "";
  11907. if (element != "") {
  11908. b++;
  11909. this.$message.error(`请将题目${i + 1}填写完整。`);
  11910. return;
  11911. } else {
  11912. a++;
  11913. }
  11914. }
  11915. if (b == 1) {
  11916. this.$message.error("至少填写一个问题");
  11917. return;
  11918. }
  11919. } else if (aj[i].askstitle != "") {
  11920. for (let index = 0; index < aj[i].askItem; index++) {
  11921. const element = aj[i].checkList[index]
  11922. ? aj[i].checkList[index]
  11923. : "";
  11924. var index = 0;
  11925. for (var z = 0; z < aj[i].checkList.length; z++) {
  11926. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11927. if (checkC != "") {
  11928. index++;
  11929. } else {
  11930. this.$message.error(`题目${i + 1}选项不能为空!`);
  11931. return;
  11932. }
  11933. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11934. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11935. if (checkC == checkC2) {
  11936. this.$message.error(
  11937. `第${i + 1}题的选项${this.optionTypeList[z]}和选项${this.optionTypeList[z2]}重复了,请修改!`
  11938. );
  11939. return;
  11940. }
  11941. }
  11942. }
  11943. b++;
  11944. if (index < 2) {
  11945. this.$message.error("每道题目至少需要设置2个选项。");
  11946. return;
  11947. }
  11948. }
  11949. }
  11950. }
  11951. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  11952. var elc = el.checkList.filter((element) => {
  11953. return element != "";
  11954. });
  11955. return el.askstitle != "" && elc.length != 0;
  11956. });
  11957. if (!this.dialogVisible4) {
  11958. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11959. this.taskCount
  11960. ].toolChoose[this.toolIndex] = this.askJson;
  11961. }
  11962. this.dialogVisible5 = false;
  11963. if (
  11964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11965. .toolChoose[this.toolIndex].tool != 4
  11966. ) {
  11967. this.addTools(4, this.taskCount, this.toolIndex);
  11968. }
  11969. },
  11970. addTest() {
  11971. // if (this.testJson.testTitle === "") {
  11972. // this.$message.error("标题不能为空!");
  11973. // return;
  11974. // }
  11975. var aj = this.testJson.testJson;
  11976. var b = 1;
  11977. for (var i = 0; i < aj.length; i++) {
  11978. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  11979. var a = 1;
  11980. for (let index = 0; index < aj[i].testItem; index++) {
  11981. const element = aj[i].checkList[index]
  11982. ? aj[i].checkList[index]
  11983. : "";
  11984. if (element != "") {
  11985. b++;
  11986. this.$message.error(`请将题目${i + 1}填写完整。`);
  11987. return;
  11988. } else {
  11989. a++;
  11990. }
  11991. }
  11992. if (b == 1) {
  11993. this.$message.error("至少填写一个问题");
  11994. return;
  11995. }
  11996. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  11997. for (let index = 0; index < aj[i].testItem; index++) {
  11998. const element = aj[i].checkList[index]
  11999. ? aj[i].checkList[index]
  12000. : "";
  12001. var index = 0;
  12002. for (var z = 0; z < aj[i].checkList.length; z++) {
  12003. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  12004. if (checkC != "") {
  12005. index++;
  12006. } else {
  12007. this.$message.error(`题目${i + 1}选项不能为空!`);
  12008. return;
  12009. }
  12010. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  12011. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  12012. if (checkC == checkC2) {
  12013. this.$message.error(
  12014. `第${i + 1}题的选项${this.optionTypeList[z]}和选项${this.optionTypeList[z2]}重复了,请修改!`
  12015. );
  12016. return;
  12017. }
  12018. }
  12019. }
  12020. b++;
  12021. if (index < 2) {
  12022. this.$message.error("每道题目至少需要设置2个选项。");
  12023. return;
  12024. }
  12025. if (
  12026. (aj[i].type == "2" && !aj[i].answer.length) ||
  12027. (aj[i].type == "1" &&
  12028. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  12029. (aj[i].answer !== 0 && !aj[i].answer)))
  12030. ) {
  12031. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  12032. return;
  12033. }
  12034. }
  12035. }
  12036. }
  12037. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12038. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12039. var elc = el.checkList.filter((element) => {
  12040. return element != "";
  12041. });
  12042. return (
  12043. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  12044. );
  12045. });
  12046. isTestJson.testCount = isTestJson.testJson.length;
  12047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12048. this.taskCount
  12049. ].toolChoose[this.toolIndex].testJson = isTestJson;
  12050. this.dialogVisibleChoice = false;
  12051. if (
  12052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12053. .toolChoose[this.toolIndex].tool != 45
  12054. ) {
  12055. this.addTools(45, this.taskCount, this.toolIndex);
  12056. }
  12057. },
  12058. addVideoJson(videoJson) {
  12059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12060. this.taskCount
  12061. ].toolChoose[this.toolIndex].videoJson = videoJson;
  12062. this.dialogVisibleVideo = false;
  12063. if (
  12064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12065. .toolChoose[this.toolIndex].tool != 62
  12066. ) {
  12067. this.addTools(62, this.taskCount, this.toolIndex);
  12068. }
  12069. },
  12070. //自动获取剪贴板
  12071. pasteOption() {
  12072. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12073. if (!iframe) {
  12074. this.$message.error("请使用AI共创生成题目");
  12075. return;
  12076. }
  12077. let copyData = iframe.contentWindow.copyData;
  12078. if (!copyData || !copyData.selectData.length) {
  12079. this.$message.error("请使用AI共创生成题目");
  12080. return;
  12081. }
  12082. let selectData = copyData.selectData;
  12083. for (var i = 0; i < selectData.length; i++) {
  12084. let answer = 0;
  12085. switch (selectData[i].answer[0]) {
  12086. case "A":
  12087. answer = 0;
  12088. break;
  12089. case "B":
  12090. answer = 1;
  12091. break;
  12092. case "C":
  12093. answer = 2;
  12094. break;
  12095. case "D":
  12096. answer = 3;
  12097. break;
  12098. case "E":
  12099. answer = 4;
  12100. break;
  12101. default:
  12102. break;
  12103. }
  12104. this.testJson.testJson.push({
  12105. teststitle: selectData[i].subject,
  12106. testItem: selectData[i].options.length,
  12107. checkList: selectData[i].options,
  12108. timuList: [],
  12109. answer: answer,
  12110. type: "1",
  12111. });
  12112. this.testJson.testCount++;
  12113. }
  12114. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12115. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12116. var elc = el.checkList.filter((element) => {
  12117. return element != "";
  12118. });
  12119. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  12120. });
  12121. isTestJson.testCount = isTestJson.testJson.length;
  12122. if (!isTestJson.testCount) {
  12123. return;
  12124. }
  12125. this.testJson = isTestJson;
  12126. this.$forceUpdate();
  12127. },
  12128. pasteTask(taskJson) {
  12129. let stageTasksData = [];
  12130. if (taskJson) {
  12131. stageTasksData = taskJson;
  12132. } else {
  12133. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12134. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12135. if (!iframe && !iframe2) {
  12136. this.$message.error("请使用AI共创生成");
  12137. return;
  12138. }
  12139. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12140. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12141. if (
  12142. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  12143. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  12144. ) {
  12145. this.$message.error("请使用AI共创生成");
  12146. return;
  12147. }
  12148. stageTasksData = copyData
  12149. ? copyData.tasksData
  12150. : copyData2
  12151. ? copyData2.tasksData
  12152. : [{ taskName: "", taskDecs: "" }];
  12153. }
  12154. let taskA = [];
  12155. let tasks = stageTasksData;
  12156. for (var j = 0; j < tasks.length; j++) {
  12157. taskA.push({
  12158. task: tasks[j].taskName,
  12159. taskDetail: tasks[j].taskDecs,
  12160. chapterData: [],
  12161. toolText: "",
  12162. toolChoose: [
  12163. {
  12164. tool: [],
  12165. toolDetail: "",
  12166. toolType: 0,
  12167. askCount: 1,
  12168. askTitle: "",
  12169. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12170. },
  12171. ],
  12172. isShowTools: false,
  12173. askCount: 1,
  12174. isFold: 1,
  12175. askTitle: "",
  12176. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12177. checkJson: [{ checkCount: [], checkPerent: [] }],
  12178. homeworkList: [],
  12179. });
  12180. }
  12181. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12182. this.$forceUpdate();
  12183. },
  12184. pasteStage(stageJson) {
  12185. let stageData = [];
  12186. if (stageJson) {
  12187. stageData = stageJson;
  12188. } else {
  12189. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12190. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12191. if (!iframe && !iframe2) {
  12192. this.$message.error("请使用AI共创生成");
  12193. return;
  12194. }
  12195. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12196. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12197. if (
  12198. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  12199. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  12200. ) {
  12201. this.$message.error("请使用AI共创生成");
  12202. return;
  12203. }
  12204. stageData = copyData
  12205. ? copyData.stageData
  12206. : copyData2
  12207. ? copyData2.stageData
  12208. : [""];
  12209. }
  12210. let stage = [];
  12211. for (var i = 0; i < stageData.length; i++) {
  12212. stage.push({
  12213. dyName: stageData[i], //单元标题
  12214. chapterInfo: [
  12215. {
  12216. isread: false,
  12217. chapterid: this.guid(),
  12218. title: "",
  12219. courseName: "",
  12220. taskJson: [
  12221. {
  12222. task: "",
  12223. taskDetail: "",
  12224. chapterData: [],
  12225. toolText: "",
  12226. toolChoose: [
  12227. {
  12228. tool: [],
  12229. toolDetail: "",
  12230. toolType: 0,
  12231. askCount: 1,
  12232. askTitle: "",
  12233. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12234. },
  12235. ],
  12236. isShowTools: false,
  12237. askCount: 1,
  12238. isFold: 1,
  12239. askTitle: "",
  12240. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12241. checkJson: [{ checkCount: [], checkPerent: [] }],
  12242. homeworkList: [],
  12243. },
  12244. ],
  12245. itemCount: 1,
  12246. fileList1: [],
  12247. video: [],
  12248. testData: [],
  12249. pData: [],
  12250. templateArray: [],
  12251. },
  12252. ],
  12253. });
  12254. }
  12255. let _this = this;
  12256. if (stageJson) {
  12257. if (!_this.cid) {
  12258. _this.unitJson = stage;
  12259. } else {
  12260. _this.unitIndex = 0;
  12261. _this.unitJson = stage;
  12262. _this.updateWork();
  12263. }
  12264. } else {
  12265. _this
  12266. .$confirm(
  12267. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  12268. "提示",
  12269. {
  12270. confirmButtonText: "确定",
  12271. cancelButtonText: "取消",
  12272. type: "warning",
  12273. }
  12274. )
  12275. .then(() => {
  12276. _this.unitIndex = 0;
  12277. _this.unitJson = stage;
  12278. // _this.steps++;
  12279. _this.updateWork();
  12280. })
  12281. .catch(() => {
  12282. return;
  12283. });
  12284. }
  12285. },
  12286. openStageBox() {
  12287. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12288. this.dialogVisibleStageChange = true;
  12289. },
  12290. updateChange() {
  12291. this.$confirm(
  12292. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12293. "提示",
  12294. {
  12295. confirmButtonText: "确定",
  12296. cancelButtonText: "取消",
  12297. type: "warning",
  12298. }
  12299. )
  12300. .then(() => {
  12301. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12302. this.updateWork();
  12303. this.dialogVisibleStageChange = false;
  12304. })
  12305. .catch(() => {
  12306. return;
  12307. });
  12308. },
  12309. addAnswer() {
  12310. if (this.answerQ == "") {
  12311. this.$message.error("请输入您想要问的问题");
  12312. return;
  12313. }
  12314. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12315. this.taskCount
  12316. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12317. this.dialogVisible8 = false;
  12318. if (
  12319. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12320. .toolChoose[this.toolIndex].tool != 15
  12321. ) {
  12322. this.addTools(15, this.taskCount, this.toolIndex);
  12323. }
  12324. },
  12325. addMp3Answer() {
  12326. if (this.answerQ == "") {
  12327. this.$message.error("请输入您想要回答的问题");
  12328. return;
  12329. }
  12330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12331. this.taskCount
  12332. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12333. this.dialogVisibleMp3 = false;
  12334. },
  12335. addRateAnswer() {
  12336. var a = 1;
  12337. for (var i = 0; i < this.rateJson.length; i++) {
  12338. if (this.rateJson[i].value == "") {
  12339. a = 2;
  12340. break;
  12341. }
  12342. }
  12343. if (a == 2) {
  12344. this.$message.error("请把评价信息填写完整");
  12345. return;
  12346. }
  12347. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12348. this.taskCount
  12349. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12350. this.dialogVisibleRate = false;
  12351. if (
  12352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12353. .toolChoose[this.toolIndex].tool != 40
  12354. ) {
  12355. this.addTools(40, this.taskCount, this.toolIndex);
  12356. }
  12357. },
  12358. addSelectAnswer() {
  12359. if (this.selectJson.url == "") {
  12360. this.$message.error("请上传题目");
  12361. return;
  12362. }
  12363. if (!this.selectJson.select.length) {
  12364. this.$message.error("请添加选项");
  12365. return;
  12366. }
  12367. if (!this.selectJson.answer.length) {
  12368. this.$message.error("请设置答案");
  12369. return;
  12370. }
  12371. var a = 1;
  12372. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12373. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12374. a = 2;
  12375. }
  12376. }
  12377. if (a == 2) {
  12378. this.$message.error("请设置答案");
  12379. return;
  12380. }
  12381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12382. this.taskCount
  12383. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12384. this.dialogVisibleSelect = false;
  12385. if (
  12386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12387. .toolChoose[this.toolIndex].tool != 41
  12388. ) {
  12389. this.addTools(41, this.taskCount, this.toolIndex);
  12390. }
  12391. },
  12392. nextSelectSteps() {
  12393. if (this.selectJson.url == "") {
  12394. this.$message.error("请上传题目");
  12395. return;
  12396. }
  12397. if (!this.selectJson.select.length) {
  12398. this.$message.error("请添加选项");
  12399. return;
  12400. } else {
  12401. for (var z = 0; z < this.selectJson.select.length; z++) {
  12402. let checkC = this.selectJson.select[z];
  12403. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12404. let checkC2 = this.selectJson.select[z2];
  12405. if (checkC == checkC2) {
  12406. this.$message.error(
  12407. `选项${this.optionTypeList[z]}和选项${this.optionTypeList[z2]}重复了,请修改!`
  12408. );
  12409. return;
  12410. }
  12411. }
  12412. }
  12413. }
  12414. var a = 1;
  12415. for (var i = 0; i < this.selectJson.select.length; i++) {
  12416. if (!this.selectJson.select[i]) {
  12417. a = 2;
  12418. }
  12419. }
  12420. if (a == 2) {
  12421. this.$message.error("添加的选项不能为空");
  12422. return;
  12423. }
  12424. this.selectSteps++;
  12425. },
  12426. selectCourseDetail() {
  12427. if (this.cid == "" || this.cid == undefined) {
  12428. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12429. this.isTeacherSee = true;
  12430. }
  12431. console.log("这是新增课程");
  12432. this.selectAllType();
  12433. } else {
  12434. this.cidType = 1;
  12435. let params = {
  12436. cid: this.cid,
  12437. };
  12438. this.ajax
  12439. .get(this.$store.state.api + "select_course_detail", params)
  12440. .then((res) => {
  12441. this.loading = true;
  12442. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12443. this.courseState = res.data[0][0].state;
  12444. for (var j = 0; j < this.unitJson.length; j++) {
  12445. for (
  12446. var k = 0;
  12447. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12448. k++
  12449. ) {
  12450. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12451. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12452. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12453. : [];
  12454. let _chapterData = [];
  12455. for (
  12456. var c = 0;
  12457. c <
  12458. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12459. .length;
  12460. c++
  12461. ) {
  12462. if (
  12463. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12464. ) {
  12465. _chapterData.push(
  12466. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12467. );
  12468. }
  12469. }
  12470. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12471. _chapterData;
  12472. }
  12473. }
  12474. this.$forceUpdate();
  12475. this.courseName = res.data[0][0].title;
  12476. this.courseText = res.data[0][0].brief;
  12477. this.evalua = res.data[0][0].evaId;
  12478. this.cover = JSON.parse(res.data[0][0].cover);
  12479. this.noneBtnImg = this.cover.length >= 1;
  12480. // this.checkboxList =
  12481. // res.data[0][0].course_student.length > 0
  12482. // ? JSON.parse(res.data[0][0].course_student)
  12483. // : [];
  12484. this.checkboxList2 = res.data[0][0].juri
  12485. ? res.data[0][0].juri.split(",")
  12486. : [];
  12487. this.inviteCode = [];
  12488. for (var i = 0; i < res.data[2].length; i++) {
  12489. this.inviteCode.push({
  12490. cid: res.data[2][i].classid,
  12491. ic: res.data[2][i].code,
  12492. });
  12493. }
  12494. this.checkboxList3 = res.data[0][0].course_teacher
  12495. ? res.data[0][0].course_teacher.split(",")
  12496. : [];
  12497. // this.isTeacherSee =
  12498. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12499. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12500. this.highSetting = res.data[0][0].highSetting == 1 ? true : false;
  12501. this.myWord = res.data[0][0].template;
  12502. this.templateC.id = "123";
  12503. this.courseUserid = res.data[0][0].userid;
  12504. // if(this.courseUserid == this.userid){
  12505. // this.InviteChange(this.checkboxList2)
  12506. // }
  12507. this.nbOrder = res.data[0][0].ordernumber;
  12508. this.courseTypeId = [];
  12509. for (var i = 0; i < res.data[1].length; i++) {
  12510. this.courseTypeId.push(res.data[1][i].typeid);
  12511. }
  12512. console.log(this.courseTypeId);
  12513. // if (this.timer) clearInterval(this.timer);
  12514. if (this.timer) clearTimeout(this.timer);
  12515. this.timer = null;
  12516. // this.timer = setInterval(() => {
  12517. this.seleteCourseUpdate();
  12518. this.setMan();
  12519. this.selectAllType();
  12520. this.unitJson[
  12521. this.unitIndex
  12522. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12523. // }, 5000);
  12524. this.$forceUpdate();
  12525. setTimeout(() => {
  12526. this.checkEva(this.evalua);
  12527. setTimeout(() => {
  12528. this.checkEva(this.evalua);
  12529. }, 100);
  12530. }, 100);
  12531. })
  12532. .catch((err) => {
  12533. console.error(err);
  12534. });
  12535. }
  12536. },
  12537. seleteCourseUpdate() {
  12538. let params = {
  12539. cid: this.cid,
  12540. };
  12541. this.ajax
  12542. .get(this.$store.state.api + "select_course_detail", params)
  12543. .then((res) => {
  12544. // console.log(this.unitJson);
  12545. let unitJson = JSON.parse(res.data[0][0].chapters);
  12546. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12547. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12548. let _unitJson = [];
  12549. let _chapAarry = [];
  12550. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12551. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12552. let index = 1;
  12553. let chapindex;
  12554. if (_unitJson2.length > unitJson.length) {
  12555. for (let c = 0; c < _unitJson2.length; c++) {
  12556. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12557. }
  12558. for (let j = 0; j < unitJson.length; j++) {
  12559. let count = 0;
  12560. for (let k = 0; k < _unitJson2.length; k++) {
  12561. if (
  12562. unitJson[j].chapterInfo[0].chapterid ==
  12563. _unitJson2[k].chapterInfo[0].chapterid
  12564. ) {
  12565. count++;
  12566. _chapAarry.splice(
  12567. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12568. 1
  12569. );
  12570. _unitJson.push(unitJson[j]);
  12571. break;
  12572. }
  12573. }
  12574. // if(count === 0){
  12575. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12576. // }
  12577. }
  12578. for (let k = 0; k < _unitJson2.length; k++) {
  12579. if (_unitJson2[k].isUpdate == 1) {
  12580. _chapAarry.splice(
  12581. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12582. 1
  12583. );
  12584. _unitJson.push(_unitJson2[k]);
  12585. }
  12586. }
  12587. console.log(_chapAarry);
  12588. for (let d = 0; d < _unitJson2.length; d++) {
  12589. if (
  12590. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12591. ) {
  12592. if (_unitIndex == d) {
  12593. index = 2;
  12594. }
  12595. chapindex = d;
  12596. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12597. }
  12598. }
  12599. } else {
  12600. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12601. }
  12602. for (let i = 0; i < unitJson.length; i++) {
  12603. if (
  12604. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12605. _unitJson[i].chapterInfo[0].chapterid !=
  12606. unitJson[i].chapterInfo[0].chapterid
  12607. ) {
  12608. if (i == _unitJson.length - 1) {
  12609. // this.unitIndex++
  12610. _unitIndex2++;
  12611. }
  12612. _unitJson.splice(i, 0, unitJson[i]);
  12613. } else if (i > _unitJson.length - 1) {
  12614. _unitJson.push(unitJson[i]);
  12615. } else if (
  12616. _unitJson[i].chapterInfo[0].chapterid ==
  12617. unitJson[i].chapterInfo[0].chapterid
  12618. ) {
  12619. _unitJson[i] = unitJson[i];
  12620. }
  12621. // if (i == _unitIndex) {
  12622. // continue;
  12623. // } else
  12624. }
  12625. if (_chapAarry.length && index != 2) {
  12626. if (chapindex < _unitIndex) {
  12627. this.isDelete = 2;
  12628. // this.unitIndex--;
  12629. _unitIndex2--;
  12630. } else if (
  12631. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12632. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12633. ) {
  12634. this.isDelete = 2;
  12635. for (let n = 0; n < _unitJson.length; n++) {
  12636. if (
  12637. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12638. _unitJson[n].chapterInfo[0].chapterid
  12639. ) {
  12640. // this.unitIndex = n;
  12641. _unitIndex2 = n;
  12642. _unitJson[n] = _unitJson2[_unitIndex];
  12643. break;
  12644. }
  12645. }
  12646. }
  12647. } else if (index != 2) {
  12648. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12649. _unitJson2[_unitIndex];
  12650. for (
  12651. var ci = 0;
  12652. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12653. ci++
  12654. ) {
  12655. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12656. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12657. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12658. .toolChoose
  12659. : [];
  12660. let _chapterData = [];
  12661. for (
  12662. var c = 0;
  12663. c <
  12664. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12665. .length;
  12666. c++
  12667. ) {
  12668. if (
  12669. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12670. .chapterData[c]
  12671. ) {
  12672. _chapterData.push(
  12673. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12674. .chapterData[c]
  12675. );
  12676. }
  12677. }
  12678. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12679. _chapterData;
  12680. }
  12681. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12682. }
  12683. if (index == 1) {
  12684. this.unitJson = _unitJson;
  12685. this.$forceUpdate();
  12686. setTimeout(() => {
  12687. if (this.unitIndex != _unitIndex2) {
  12688. this.isDelete = 2;
  12689. this.unitIndex = _unitIndex2;
  12690. }
  12691. }, 0);
  12692. this.timer = setTimeout(() => {
  12693. this.seleteCourseUpdate();
  12694. }, 1000);
  12695. } else if (index == 2) {
  12696. let _this = this;
  12697. _this
  12698. .$confirm(
  12699. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12700. "提示",
  12701. {
  12702. confirmButtonText: "需要",
  12703. cancelButtonText: "取消",
  12704. type: "warning",
  12705. }
  12706. )
  12707. .then(() => {
  12708. if (_this.time()) {
  12709. _this.restoreWork(
  12710. _chapAarry[0],
  12711. _unitJson,
  12712. chapindex,
  12713. _unitJson2,
  12714. _unitIndex2
  12715. );
  12716. }
  12717. })
  12718. .catch(() => {
  12719. _this.unitJson = _unitJson;
  12720. _this.$forceUpdate();
  12721. setTimeout(() => {
  12722. if (this.unitIndex != _unitIndex2) {
  12723. this.isDelete = 2;
  12724. this.unitIndex = _unitIndex2;
  12725. }
  12726. }, 0);
  12727. _this.timer = setTimeout(() => {
  12728. _this.seleteCourseUpdate();
  12729. }, 1000);
  12730. });
  12731. }
  12732. // 在复制操作之前记录滚动位置
  12733. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12734. // 执行复制操作
  12735. // 复制操作完成后恢复滚动位置
  12736. this.$nextTick(() => {
  12737. if(this.$refs.scrollContainer){
  12738. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12739. }
  12740. });
  12741. })
  12742. .catch((err) => {
  12743. console.error(err);
  12744. });
  12745. },
  12746. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12747. let params = [
  12748. {
  12749. cid: this.cid,
  12750. chapters: JSON.stringify(this.unitJson),
  12751. uid: this.userid,
  12752. chapid: chapid,
  12753. },
  12754. ];
  12755. this.ajax
  12756. .post(this.$store.state.api + "restoreWork", params)
  12757. .then((res) => {
  12758. this.$message({
  12759. message: "恢复成功",
  12760. type: "success",
  12761. });
  12762. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12763. this.unitJson = unitJson;
  12764. this.$forceUpdate();
  12765. setTimeout(() => {
  12766. if (this.unitIndex != unitIndex2) {
  12767. this.isDelete = 2;
  12768. this.unitIndex = unitIndex2;
  12769. }
  12770. }, 0);
  12771. this.timer = setTimeout(() => {
  12772. this.seleteCourseUpdate();
  12773. }, 1000);
  12774. })
  12775. .catch((err) => {
  12776. this.$message.error("网络不佳");
  12777. console.error(err);
  12778. });
  12779. },
  12780. getTypeName() {
  12781. console.log(this.courseTypeId);
  12782. this.$forceUpdate();
  12783. },
  12784. selectAllType() {
  12785. let params = {
  12786. org: this.org && this.org != "" ? this.org : "",
  12787. oid: this.oid && this.oid != "" ? this.oid : "",
  12788. stand: "cn"
  12789. };
  12790. this.ajax
  12791. .get(this.$store.state.api + "selectAllTypeStand", params)
  12792. .then((res) => {
  12793. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12794. res.data[0] = [...res.data[0], ...res.data[4]];
  12795. }
  12796. this.CourseType = res.data;
  12797. this.CourseType2 = [
  12798. { name: "智见课程", id: [] },
  12799. { name: "智行课程", id: [] },
  12800. { name: "智创课程", id: [] },
  12801. ];
  12802. for (var cti = 0; cti < res.data[0].length; cti++) {
  12803. if (
  12804. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12805. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12806. ) {
  12807. this.CourseType2[0].id.push(res.data[0][cti].id);
  12808. } else if (
  12809. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12810. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12811. ) {
  12812. this.CourseType2[1].id.push(res.data[0][cti].id);
  12813. } else if (
  12814. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12815. ) {
  12816. this.CourseType2[2].id.push(res.data[0][cti].id);
  12817. }
  12818. if (
  12819. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12820. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12821. ) {
  12822. res.data[0][cti].name = "年级";
  12823. } else if (
  12824. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12825. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12826. ) {
  12827. res.data[0][cti].name = "学科";
  12828. } else if (
  12829. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12830. ) {
  12831. res.data[0][cti].name = "主题";
  12832. }
  12833. }
  12834. let _courseTypeId = [];
  12835. for (var i = 0; i < res.data[0].length; i++) {
  12836. if (!this.cid) {
  12837. this.courseTypeId[res.data[0][i].id] = [];
  12838. }
  12839. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  12840. // }
  12841. this.CourseTypeJson[res.data[0][i].id] = [];
  12842. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12843. if (res.data[0][i].name == "栏目") {
  12844. this.CourseType[0][i].name = "主题";
  12845. }
  12846. }
  12847. if (res.data[2].length == 0 && res.data[3].length == 0) {
  12848. for (var j = 0; j < res.data[1].length; j++) {
  12849. if (
  12850. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  12851. _courseTypeId.indexOf(res.data[1][j].id) == -1
  12852. ) {
  12853. _courseTypeId.push(res.data[1][j].id);
  12854. }
  12855. if (res.data[0][i].id == res.data[1][j].pid) {
  12856. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12857. }
  12858. }
  12859. } else {
  12860. if (res.data[2].length > 0) {
  12861. for (var j = 0; j < res.data[2].length; j++) {
  12862. if (
  12863. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  12864. _courseTypeId.indexOf(res.data[2][j].id) == -1
  12865. ) {
  12866. _courseTypeId.push(res.data[2][j].id);
  12867. }
  12868. if (res.data[0][i].id == res.data[2][j].pid) {
  12869. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12870. }
  12871. }
  12872. }
  12873. if (res.data[3].length > 0) {
  12874. for (var j = 0; j < res.data[3].length; j++) {
  12875. if (
  12876. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  12877. _courseTypeId.indexOf(res.data[3][j].id) == -1
  12878. ) {
  12879. _courseTypeId.push(res.data[3][j].id);
  12880. }
  12881. if (res.data[0][i].id == res.data[3][j].pid) {
  12882. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12883. }
  12884. }
  12885. }
  12886. }
  12887. }
  12888. this.courseTypeId = _courseTypeId;
  12889. })
  12890. .catch((err) => {
  12891. console.error(err);
  12892. });
  12893. },
  12894. selectType() {
  12895. this.ajax
  12896. .get(this.$store.state.api + "selectType")
  12897. .then((res) => {
  12898. this.CourseType = res.data;
  12899. for (var i = 0; i < res.data[0].length; i++) {
  12900. if (!this.cid) {
  12901. this.courseTypeId[res.data[0][i].id] = "";
  12902. }
  12903. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12904. if (res.data[0][i].name == "栏目") {
  12905. this.CourseType[0][i].name = "主题";
  12906. }
  12907. }
  12908. for (var j = 0; j < res.data[1].length; j++) {
  12909. if (res.data[0][i].id == res.data[1][j].pid) {
  12910. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12911. this.CourseTypeJson[res.data[0][i].id] = [];
  12912. }
  12913. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12914. }
  12915. }
  12916. }
  12917. this.selectTypeByOid();
  12918. this.selectTypeByOrg();
  12919. })
  12920. .catch((err) => {
  12921. console.error(err);
  12922. });
  12923. },
  12924. selectTypeByOid() {
  12925. let params = {
  12926. oid: this.oid,
  12927. };
  12928. this.ajax
  12929. .get(this.$store.state.api + "selectTypeByOid", params)
  12930. .then((res) => {
  12931. for (var i = 0; i < res.data[0].length; i++) {
  12932. for (var j = 0; j < res.data[1].length; j++) {
  12933. if (res.data[0][i].id == res.data[1][j].pid) {
  12934. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12935. this.CourseTypeJson[res.data[0][i].id] = [];
  12936. }
  12937. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12938. }
  12939. }
  12940. }
  12941. })
  12942. .catch((err) => {
  12943. console.error(err);
  12944. });
  12945. },
  12946. selectTypeByOrg() {
  12947. let params = {
  12948. oid: this.org,
  12949. };
  12950. this.ajax
  12951. .get(this.$store.state.api + "selectTypeByOrg", params)
  12952. .then((res) => {
  12953. for (var i = 0; i < res.data[0].length; i++) {
  12954. for (var j = 0; j < res.data[1].length; j++) {
  12955. if (res.data[0][i].id == res.data[1][j].pid) {
  12956. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12957. this.CourseTypeJson[res.data[0][i].id] = [];
  12958. }
  12959. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12960. }
  12961. }
  12962. }
  12963. this.$forceUpdate();
  12964. })
  12965. .catch((err) => {
  12966. console.error(err);
  12967. });
  12968. },
  12969. OtherMb(type, task) {
  12970. if (task === 0 || task) {
  12971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12972. task
  12973. ].isEvaFold = true;
  12974. }
  12975. this.typeMode = type;
  12976. setTimeout(() => {
  12977. this.checkEva(this.checkId);
  12978. setTimeout(() => {
  12979. this.checkEva(this.checkId);
  12980. }, 100);
  12981. }, 100);
  12982. },
  12983. openMember() {
  12984. this.searchTN = "";
  12985. this.getTeacher();
  12986. this.dialogVisibleMember = true;
  12987. },
  12988. checkEva(id, type) {
  12989. this.dialogVisiblemb = false;
  12990. this.selectEva();
  12991. if (this.evalua != id && type == 2) {
  12992. this.$message.success("导入成功");
  12993. setTimeout(() => {
  12994. this.checkEva(id);
  12995. }, 100);
  12996. }
  12997. this.evalua = id;
  12998. this.checkId = id;
  12999. if (this.evalua != "") {
  13000. for (var i = 0; i < this.evaJuri.length; i++) {
  13001. if (this.evalua == this.evaJuri[i].id) {
  13002. this.eTitle = this.evaJuri[i].title;
  13003. this.eJson = JSON.parse(this.evaJuri[i].content);
  13004. }
  13005. }
  13006. this.data.data = [];
  13007. this.$forceUpdate();
  13008. setTimeout(() => {
  13009. this.setMindData();
  13010. }, 1000);
  13011. }
  13012. },
  13013. deleteEva() {
  13014. let _this = this;
  13015. if (_this.evalua == "") {
  13016. this.$message.warning("内容已经清空了,请勿重复清空");
  13017. return;
  13018. }
  13019. _this
  13020. .$confirm("确定删除此目标吗?", "提示", {
  13021. confirmButtonText: "确定",
  13022. cancelButtonText: "取消",
  13023. type: "warning",
  13024. })
  13025. .then(() => {
  13026. _this.evalua = "";
  13027. _this.checkId = "";
  13028. _this.eTitle = "";
  13029. let _unitJson = _this.unitJson;
  13030. for (var i = 0; i < _unitJson.length; i++) {
  13031. let _task = _unitJson[i].chapterInfo[0].taskJson;
  13032. for (var j = 0; j < _task.length; j++) {
  13033. let _eList = _task[j].eList;
  13034. for (var k = 0; k < _eList.length; k++) {
  13035. delete _eList[k].target;
  13036. }
  13037. }
  13038. }
  13039. _this.$forceUpdate();
  13040. if (_this.cid) {
  13041. _this.updateWork();
  13042. }
  13043. })
  13044. .catch(() => {
  13045. return;
  13046. });
  13047. },
  13048. selectEva() {
  13049. let params = {
  13050. oid: this.oid,
  13051. };
  13052. this.ajax
  13053. .get(this.$store.state.api + "selectAllEvaluation", params)
  13054. .then((res) => {
  13055. this.evaJuri = res.data[0];
  13056. // 在复制操作之前记录滚动位置
  13057. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  13058. // 执行复制操作
  13059. // 复制操作完成后恢复滚动位置
  13060. this.$nextTick(() => {
  13061. if(this.$refs.scrollContainer){
  13062. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  13063. }
  13064. });
  13065. })
  13066. .catch((err) => {
  13067. console.error(err);
  13068. });
  13069. },
  13070. setMindData() {
  13071. let targetArray = [];
  13072. this.data.data = [];
  13073. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  13074. let _eJson = Object.keys(this.eJson);
  13075. let _e = this.eJson;
  13076. for (let i = 0; i < _eJson.length; i++) {
  13077. let element = _e[_eJson[i]];
  13078. this.data.data.push({
  13079. id: element.id,
  13080. parentid: "root",
  13081. topic: element.name,
  13082. });
  13083. // targetArray.push({
  13084. // id: element.id,
  13085. // parentid: "root",
  13086. // name: element.name,
  13087. // });
  13088. targetArray.push({
  13089. value: element.name,
  13090. label: element.name,
  13091. children: [],
  13092. });
  13093. let _eJsonc = Object.keys(element.child);
  13094. let _e2 = element.child;
  13095. for (let j = 0; j < _eJsonc.length; j++) {
  13096. let _ec = _e2[_eJsonc[j]];
  13097. this.data.data.push({
  13098. id: _ec.id,
  13099. parentid: element.id,
  13100. topic: _ec.name,
  13101. });
  13102. // targetArray.push({
  13103. // id: _ec.id,
  13104. // parentid: element.id,
  13105. // name: _ec.name,
  13106. // });
  13107. targetArray[i].children.push({
  13108. value: _ec.name,
  13109. label: _ec.name,
  13110. children: [],
  13111. });
  13112. let _eJsonz = Object.keys(_ec.child);
  13113. let _e3 = _ec.child;
  13114. for (let z = 0; z < _eJsonz.length; z++) {
  13115. let _ez = _e3[_eJsonz[z]];
  13116. this.data.data.push({
  13117. id: _ez.id,
  13118. parentid: _ec.id,
  13119. topic: _ez.name,
  13120. });
  13121. // targetArray.push({
  13122. // id: _ez.id,
  13123. // parentid: _ec.id,
  13124. // name: _ez.name,
  13125. // });
  13126. targetArray[i].children[j].children.push({
  13127. value: _ez.name,
  13128. label: _ez.name,
  13129. });
  13130. }
  13131. }
  13132. }
  13133. this.targetArray = targetArray;
  13134. this.$forceUpdate();
  13135. },
  13136. /*添加评价 */
  13137. addEList(index, tIndex) {
  13138. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  13139. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  13140. value: "",
  13141. detail: "",
  13142. score: 5,
  13143. })
  13144. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  13145. { value: "", detail: "", score: 5 },
  13146. ]);
  13147. this.$forceUpdate();
  13148. },
  13149. openEList(index, tIndex) {
  13150. this.evaIndex = index;
  13151. this.evatIndex = tIndex;
  13152. this.evaBoxDialog = true;
  13153. },
  13154. addCET(index, tIndex) {
  13155. this.cetIndex = index;
  13156. this.cettIndex = tIndex;
  13157. this.selectAllType1();
  13158. },
  13159. addCETemplate() {
  13160. var array =
  13161. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  13162. .eList;
  13163. let params = [
  13164. {
  13165. uid: this.userid,
  13166. n: this.templateName,
  13167. json: JSON.stringify(array),
  13168. t: 1,
  13169. oid: this.oid,
  13170. },
  13171. ];
  13172. this.ajax
  13173. .post(this.$store.state.api + "addCETShare", params)
  13174. .then((res) => {
  13175. this.addTypeByCET(res.data[0][0].id);
  13176. })
  13177. .catch((err) => {
  13178. this.$message.error("网络不佳");
  13179. console.error(err);
  13180. });
  13181. },
  13182. addTypeByCET(id) {
  13183. if (this.setTypeJson.two == "") {
  13184. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  13185. return;
  13186. }
  13187. let params = {
  13188. cid: id,
  13189. };
  13190. this.ajax
  13191. .get(this.$store.state.api + "deleteCETLabel", params)
  13192. .then((res) => {
  13193. for (var i = 0; i < 2; i++) {
  13194. let tid = "";
  13195. if (i == 0) {
  13196. tid = this.setTypeJson.one;
  13197. } else {
  13198. tid = this.setTypeJson.two;
  13199. }
  13200. let params = [
  13201. {
  13202. cid: id,
  13203. tid: tid,
  13204. uid: this.userid,
  13205. },
  13206. ];
  13207. this.ajax
  13208. .post(this.$store.state.api + "addCETLabel", params)
  13209. .then((res) => {
  13210. this.$message({
  13211. message: "添加成功",
  13212. type: "success",
  13213. });
  13214. this.close();
  13215. })
  13216. .catch((err) => {
  13217. this.$message.error("网络不佳");
  13218. console.error(err);
  13219. });
  13220. }
  13221. })
  13222. .catch((err) => {
  13223. this.$message.error("网络不佳");
  13224. console.error(err);
  13225. });
  13226. },
  13227. updateEvaJson(array) {
  13228. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13229. this.evatIndex
  13230. ].eList = array;
  13231. },
  13232. forceUpdate() {
  13233. this.$forceUpdate();
  13234. },
  13235. deletEList(index, tIndex, eIndex) {
  13236. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13237. eIndex,
  13238. 1
  13239. );
  13240. this.$forceUpdate();
  13241. },
  13242. getChoosePic(t) {
  13243. this.chooseType = t;
  13244. this.getAllBanner();
  13245. },
  13246. getAllBanner() {
  13247. this.sysPicVisible = true;
  13248. let params = {
  13249. t: this.chooseType,
  13250. };
  13251. this.ajax
  13252. .get(this.$store.state.api + "selectAllBanner", params)
  13253. .then((res) => {
  13254. this.sysPic = res.data[0];
  13255. })
  13256. .catch((err) => {
  13257. console.error(err);
  13258. });
  13259. },
  13260. // getClass() {
  13261. // let params = {
  13262. // oid: this.oid,
  13263. // };
  13264. // this.ajax
  13265. // .get(this.$store.state.api + "selectClassBySchool", params)
  13266. // .then((res) => {
  13267. // this.classJuri = res.data[0];
  13268. // })
  13269. // .catch((err) => {
  13270. // console.error(err);
  13271. // });
  13272. // },
  13273. deleteSysPic() {
  13274. this.cover = [];
  13275. this.isSysPic = false;
  13276. this.isSysPic2 = false;
  13277. },
  13278. deleteSelectPic() {
  13279. this.selectJson.url = "";
  13280. },
  13281. setEListStar() {
  13282. this.$forceUpdate();
  13283. },
  13284. deletRateList(i) {
  13285. this.rateJson.splice(i, 1);
  13286. },
  13287. addRateList() {
  13288. this.rateJson.push({ detail: "", score: 5, value: "" });
  13289. },
  13290. addSt() {
  13291. this.sentenceList.push({
  13292. sentenceTitle: "",
  13293. addSentence: [],
  13294. rightAnswer: [],
  13295. });
  13296. },
  13297. addSen(i) {
  13298. if (!this.sentenceList[i].sentenceTitle) {
  13299. this.$message.error("请填写卡片内容!");
  13300. return;
  13301. }
  13302. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13303. this.$message.error("卡片内容字数不能超过10位");
  13304. return;
  13305. }
  13306. if (
  13307. this.sentenceList[i].addSentence.indexOf(
  13308. this.sentenceList[i].sentenceTitle
  13309. ) !== -1
  13310. ) {
  13311. this.$message.error("不能添加重复的卡片内容!");
  13312. return;
  13313. }
  13314. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13315. // this.isPushTitleList.push(this.sentenceTitle);
  13316. this.sentenceList[i].sentenceTitle = "";
  13317. },
  13318. setRightAnswer(s, i, j) {
  13319. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13320. this.sentenceList[i].rightAnswer.push(s);
  13321. }
  13322. },
  13323. returnCard(r, i, j) {
  13324. this.sentenceList[i].rightAnswer.splice(j, 1);
  13325. },
  13326. addSentenceTool() {
  13327. for (var i = 0; i < this.sentenceList.length; i++) {
  13328. if (this.sentenceList[i].rightAnswer.length == 0) {
  13329. this.$message.error(`请将题目${i + 1}设置完整。`);
  13330. return;
  13331. }
  13332. if (
  13333. this.sentenceList[i].addSentence.length !=
  13334. this.sentenceList[i].rightAnswer.length
  13335. ) {
  13336. this.$message.error(`请将题目${i + 1}设置完整。`);
  13337. return;
  13338. }
  13339. }
  13340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13341. this.taskCount
  13342. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13343. this.sentenceList = [
  13344. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13345. ];
  13346. this.dialogVisibleSentence = false;
  13347. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13348. // itemTaskIndex
  13349. // ].toolChoose[toolIndex].tool = [];
  13350. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13351. // itemTaskIndex
  13352. // ].toolChoose[toolIndex].tool.push(i);
  13353. if (
  13354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13355. .toolChoose[this.toolIndex].tool != 47
  13356. ) {
  13357. this.addTools(47, this.taskCount, this.toolIndex);
  13358. }
  13359. },
  13360. addTableJson() {
  13361. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13362. // this.$message.error("请将信息填写完整!");
  13363. // return;
  13364. // }
  13365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13366. this.taskCount
  13367. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13368. // this.tableJson = [{ text: "" }];
  13369. // this.dialogVisibleTable = false;
  13370. this.$message.success("上传成功");
  13371. if (
  13372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13373. .toolChoose[this.toolIndex].tool != 48
  13374. ) {
  13375. this.addTools(48, this.taskCount, this.toolIndex);
  13376. }
  13377. },
  13378. addWordJson() {
  13379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13380. this.taskCount
  13381. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13382. // this.wordJson = [{ text: "" }];
  13383. // this.dialogVisibleWord = false;
  13384. this.$message.success("上传成功");
  13385. if (
  13386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13387. .toolChoose[this.toolIndex].tool != 52
  13388. ) {
  13389. this.addTools(52, this.taskCount, this.toolIndex);
  13390. }
  13391. },
  13392. addMoreUpload() {
  13393. if (this.uploadJson.length == 0) {
  13394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13395. this.taskCount
  13396. ].toolChoose[this.toolIndex].uploadJson = [];
  13397. } else {
  13398. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13399. this.taskCount
  13400. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13401. }
  13402. this.uploadJson = [];
  13403. this.dialogVisibleMoreUpload = false;
  13404. if (
  13405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13406. .toolChoose[this.toolIndex].tool != 50
  13407. ) {
  13408. this.addTools(50, this.taskCount, this.toolIndex);
  13409. }
  13410. },
  13411. addPreTime() {
  13412. if (this.preTime == 0) {
  13413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13414. this.taskCount
  13415. ].toolChoose[this.toolIndex].preTime = 0;
  13416. } else {
  13417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13418. this.taskCount
  13419. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13420. }
  13421. this.preTime = 0;
  13422. this.dialogVisiblePreTime = false;
  13423. if (
  13424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13425. .toolChoose[this.toolIndex].tool != 10
  13426. ) {
  13427. this.addTools(10, this.taskCount, this.toolIndex);
  13428. }
  13429. },
  13430. goToTask(i) {
  13431. this.toolIndexType = "";
  13432. if (this.isClickColor == i + 1) {
  13433. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13434. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13435. // } else {
  13436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13437. i
  13438. ].toolOpen = true;
  13439. // }
  13440. this.$forceUpdate();
  13441. return;
  13442. }
  13443. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13444. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13445. // } else {
  13446. document.querySelectorAll(".basic_box")[0].scrollTop =
  13447. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13448. this.isClickColor = i + 1;
  13449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13450. // }
  13451. this.$forceUpdate();
  13452. },
  13453. taskOpen(i, stageIndex) {
  13454. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13455. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13456. } else {
  13457. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13458. }
  13459. if(this.this.cid){
  13460. this.updateWork3(stageIndex);
  13461. }
  13462. this.$forceUpdate();
  13463. },
  13464. goToTask2(i, stage) {
  13465. this.toolIndexType = "";
  13466. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13467. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13468. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13469. // } else {
  13470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13471. i
  13472. ].toolOpen = true;
  13473. // }
  13474. this.$forceUpdate();
  13475. return;
  13476. }
  13477. if (this.unitIndex != stage) {
  13478. if (this.panUnitJson() == 2) {
  13479. return;
  13480. }
  13481. this.unitSet(stage);
  13482. }
  13483. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13484. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13485. // } else {
  13486. document.querySelectorAll(".basic_box")[0].scrollTop =
  13487. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13488. this.isClickColor = i + 1;
  13489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13490. // }
  13491. this.$forceUpdate();
  13492. },
  13493. taskMove(type, index) {
  13494. this.$confirm(
  13495. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13496. "提示",
  13497. {
  13498. confirmButtonText: "确定",
  13499. cancelButtonText: "取消",
  13500. type: "warning",
  13501. }
  13502. )
  13503. .then(() => {
  13504. if (type == 1) {
  13505. if (index > 0) {
  13506. let a = JSON.parse(
  13507. JSON.stringify(
  13508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13509. index - 1
  13510. ]
  13511. )
  13512. );
  13513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13516. }
  13517. } else {
  13518. if (
  13519. index <
  13520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13521. ) {
  13522. let a = JSON.parse(
  13523. JSON.stringify(
  13524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13525. index + 1
  13526. ]
  13527. )
  13528. );
  13529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13531. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13532. }
  13533. }
  13534. this.$forceUpdate();
  13535. })
  13536. .catch(() => {
  13537. return;
  13538. });
  13539. },
  13540. stageMove(type, index) {
  13541. if (type == 1) {
  13542. if (index > 0) {
  13543. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13544. let acid = JSON.parse(
  13545. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13546. );
  13547. let bcid = JSON.parse(
  13548. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13549. );
  13550. this.unitJson3[index - 1] = this.unitJson3[index];
  13551. this.unitJson3[index] = a;
  13552. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13553. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13554. }
  13555. } else {
  13556. if (index < this.unitJson3.length - 1) {
  13557. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13558. let acid = JSON.parse(
  13559. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13560. );
  13561. let bcid = JSON.parse(
  13562. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13563. );
  13564. this.unitJson3[index + 1] = this.unitJson3[index];
  13565. this.unitJson3[index] = a;
  13566. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13567. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13568. }
  13569. }
  13570. this.$forceUpdate();
  13571. },
  13572. addGroup(i) {
  13573. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13574. this.groupJson.group.push({
  13575. name: "第" + (this.groupJson.group.length + 1) + "组",
  13576. });
  13577. },
  13578. deleteGroup(i) {
  13579. this.groupJson.group.splice(i, 1);
  13580. },
  13581. numberPan() {
  13582. if (
  13583. /[^\d]/.test(this.groupJson.number) ||
  13584. this.groupJson.number < 2 ||
  13585. this.groupJson.number > 10
  13586. ) {
  13587. this.$message.error("请输入2-10的数字");
  13588. this.groupJson.number = "";
  13589. }
  13590. },
  13591. addGroupJson() {
  13592. for (var i = 0; i < this.groupJson.group.length; i++) {
  13593. if (!this.groupJson.group[i].name) {
  13594. this.$message.error("请将信息填写完整!");
  13595. return;
  13596. }
  13597. }
  13598. if (!this.groupJson.number) {
  13599. this.$message.error("请将信息填写完整!");
  13600. return;
  13601. }
  13602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13603. this.taskCount
  13604. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13605. JSON.stringify(this.groupJson)
  13606. );
  13607. this.dialogVisibleGroup = false;
  13608. this.groupJson = {};
  13609. if (
  13610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13611. .toolChoose[this.toolIndex].tool != 49
  13612. ) {
  13613. this.addTools(49, this.taskCount, this.toolIndex);
  13614. }
  13615. },
  13616. updateTime(preTime) {
  13617. this.preTime = preTime;
  13618. },
  13619. InviteChange(val) {
  13620. console.log(val);
  13621. let _check = [];
  13622. let _check2 = [];
  13623. for (var i = 0; i < this.grade2.length; i++) {
  13624. var gid = this.grade2[i].id;
  13625. _check.push(gid);
  13626. }
  13627. for (var i = 0; i < this.checkboxList2.length; i++) {
  13628. var _id = this.checkboxList2[i];
  13629. if (_check.indexOf(_id) !== -1) {
  13630. _check2.push(_id);
  13631. }
  13632. }
  13633. this.checkAll = _check2.length === _check.length;
  13634. return;
  13635. let array = JSON.parse(JSON.stringify(val));
  13636. this.inviteCode = this.inviteCode.filter((el) => {
  13637. if (val.indexOf(el.cid) != -1) {
  13638. array.splice(array.indexOf(el.cid), 1);
  13639. return el;
  13640. }
  13641. });
  13642. for (var i = 0; i < array.length; i++) {
  13643. this.getInviteCode(array[i]);
  13644. }
  13645. },
  13646. InviteChange2(val) {
  13647. console.log(val);
  13648. let _check = [];
  13649. let _check2 = [];
  13650. for (var i = 0; i < this.teacherJuri.length; i++) {
  13651. var gid = this.teacherJuri[i].userid;
  13652. _check.push(gid);
  13653. }
  13654. for (var i = 0; i < this.checkboxList3.length; i++) {
  13655. var _id = this.checkboxList3[i];
  13656. if (_check.indexOf(_id) !== -1) {
  13657. _check2.push(_id);
  13658. }
  13659. }
  13660. this.checkAll2 = _check2.length === _check.length;
  13661. this.setMan();
  13662. return;
  13663. let array = JSON.parse(JSON.stringify(val));
  13664. this.inviteCode = this.inviteCode.filter((el) => {
  13665. if (val.indexOf(el.cid) != -1) {
  13666. array.splice(array.indexOf(el.cid), 1);
  13667. return el;
  13668. }
  13669. });
  13670. for (var i = 0; i < array.length; i++) {
  13671. this.getInviteCode(array[i]);
  13672. }
  13673. },
  13674. handleCheckAllChange(val) {
  13675. if (val) {
  13676. for (var i = 0; i < this.grade2.length; i++) {
  13677. var gid = this.grade2[i].id;
  13678. if (this.checkboxList2.indexOf(gid) === -1) {
  13679. this.checkboxList2.push(gid);
  13680. }
  13681. }
  13682. } else {
  13683. let _check = [];
  13684. let _check2 = [];
  13685. for (var i = 0; i < this.grade2.length; i++) {
  13686. var gid = this.grade2[i].id;
  13687. _check.push(gid);
  13688. }
  13689. for (var i = 0; i < this.checkboxList2.length; i++) {
  13690. var _id = this.checkboxList2[i];
  13691. if (_check.indexOf(_id) === -1) {
  13692. _check2.push(_id);
  13693. }
  13694. }
  13695. this.checkboxList2 = _check2;
  13696. }
  13697. this.isIndeterminate = false;
  13698. },
  13699. handleCheckAllChange2(val) {
  13700. if (val) {
  13701. for (var i = 0; i < this.teacherJuri.length; i++) {
  13702. var gid = this.teacherJuri[i].userid;
  13703. if (this.checkboxList3.indexOf(gid) === -1) {
  13704. this.checkboxList3.push(gid);
  13705. }
  13706. }
  13707. } else {
  13708. let _check = [];
  13709. let _check2 = [];
  13710. for (var i = 0; i < this.teacherJuri.length; i++) {
  13711. var gid = this.teacherJuri[i].userid;
  13712. _check.push(gid);
  13713. }
  13714. for (var i = 0; i < this.checkboxList3.length; i++) {
  13715. var _id = this.checkboxList3[i];
  13716. if (_check.indexOf(_id) === -1) {
  13717. _check2.push(_id);
  13718. }
  13719. }
  13720. this.checkboxList3 = _check2;
  13721. }
  13722. this.isIndeterminate2 = false;
  13723. },
  13724. async getInviteCode(cid) {
  13725. let code = this.randomNumber();
  13726. let params = {
  13727. code: code,
  13728. oid: this.oid,
  13729. };
  13730. let type = 1;
  13731. for (var i = 0; i < this.inviteCode.length; i++) {
  13732. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13733. type = 2;
  13734. }
  13735. }
  13736. if (type == 2) {
  13737. this.getInviteCode(cid);
  13738. return;
  13739. }
  13740. const res = await this.ajax.get(
  13741. this.$store.state.api + "selectInviteCode2",
  13742. params
  13743. );
  13744. if (
  13745. res.data.length &&
  13746. res.data[0].length &&
  13747. res.data[0][0].courseId != this.cid
  13748. ) {
  13749. this.getInviteCode(cid);
  13750. return;
  13751. }
  13752. let array = [];
  13753. for (var i = 0; i < this.inviteCode.length; i++) {
  13754. array.push(this.inviteCode[i].cid);
  13755. }
  13756. if (array.indexOf(cid) != -1) {
  13757. this.inviteCode[array.indexOf(cid)].ic = code;
  13758. } else {
  13759. this.inviteCode.push({ cid: cid, ic: code });
  13760. }
  13761. },
  13762. OpenInviteD(cid) {
  13763. let array = [];
  13764. this.icode = "";
  13765. for (var i = 0; i < this.inviteCode.length; i++) {
  13766. array.push(this.inviteCode[i].cid);
  13767. }
  13768. if (array.indexOf(cid) != -1) {
  13769. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13770. }
  13771. this.inviteId = cid;
  13772. this.dialogVisibleInvite = true;
  13773. },
  13774. addInvite() {
  13775. let reg = /^[A-Za-z0-9]{4,}$/;
  13776. if (!reg.test(this.icode)) {
  13777. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13778. return;
  13779. }
  13780. let type = 1;
  13781. for (var i = 0; i < this.inviteCode.length; i++) {
  13782. if (
  13783. this.inviteCode[i].cid != this.inviteId &&
  13784. this.icode == this.inviteCode[i].ic
  13785. ) {
  13786. type = 2;
  13787. }
  13788. }
  13789. if (type == 2) {
  13790. this.$message.error("已有此随机码,不能重复");
  13791. return;
  13792. }
  13793. let params = {
  13794. code: this.icode,
  13795. oid: this.oid,
  13796. };
  13797. this.ajax
  13798. .get(this.$store.state.api + "selectInviteCode", params)
  13799. .then((res) => {
  13800. if (
  13801. res.data.length &&
  13802. res.data[0].length &&
  13803. res.data[0][0].courseId != this.cid
  13804. ) {
  13805. this.$message.error("已有此随机码,不能重复");
  13806. return;
  13807. }
  13808. let array = [];
  13809. for (var i = 0; i < this.inviteCode.length; i++) {
  13810. array.push(this.inviteCode[i].cid);
  13811. }
  13812. if (array.indexOf(this.inviteId) != -1) {
  13813. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13814. } else {
  13815. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13816. }
  13817. this.icode = "";
  13818. this.dialogVisibleInvite = false;
  13819. })
  13820. .catch((err) => {
  13821. console.error(err);
  13822. });
  13823. },
  13824. randomNumber() {
  13825. // 随机生成两位数
  13826. // let num = Math.floor(Math.random() * 900) + 100;
  13827. // 生成 0 到 99 之间的随机整数
  13828. const randomNumber = Math.floor(Math.random() * 100);
  13829. // 如果随机数小于 10,补上前导零
  13830. const num =
  13831. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13832. // 随机生成两个大写字母
  13833. let letters = "";
  13834. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13835. for (let i = 0; i < 3; i++) {
  13836. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  13837. }
  13838. // 随机生成两位数字和字母的组合
  13839. let mix = "";
  13840. let chars =
  13841. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13842. for (let i = 0; i < 3; i++) {
  13843. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  13844. mix += char;
  13845. }
  13846. // 随机选择一种类型
  13847. let type = Math.floor(Math.random() * 3);
  13848. return num;
  13849. // 根据类型输出结果
  13850. switch (type) {
  13851. case 0:
  13852. console.log(num); // 输出两位数
  13853. return num;
  13854. case 1:
  13855. console.log(letters); // 输出两个大写字母
  13856. return letters;
  13857. case 2:
  13858. console.log(mix); // 输出两位数字和字母的组合
  13859. return mix;
  13860. }
  13861. },
  13862. getPaste() {
  13863. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  13864. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  13865. if (!iframe && !iframe2) {
  13866. return;
  13867. }
  13868. let copyData = iframe ? iframe.contentWindow.copyData : false;
  13869. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  13870. if (copyData && copyData.stageData && copyData.stageData.length) {
  13871. this.isPasteStage = true;
  13872. }
  13873. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  13874. this.isPasteStage = true;
  13875. }
  13876. if (copyData && copyData.selectData.length) {
  13877. this.isPasteChoice = true;
  13878. }
  13879. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  13880. this.isPasteTask = true;
  13881. }
  13882. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  13883. this.isPasteTask = true;
  13884. }
  13885. },
  13886. searchImage() {
  13887. var _this = this;
  13888. _this.imageList = [];
  13889. if (!_this.searchImageValue) {
  13890. _this.sysPicVisible2 = true;
  13891. return;
  13892. }
  13893. _this.imageloading = true;
  13894. _this.ajax
  13895. .post("https://gpt.cocorobo.cn/search_image", {
  13896. page: _this.ppage,
  13897. pagesize: 9,
  13898. query: _this.searchImageValue,
  13899. })
  13900. .then(function (response) {
  13901. // console.log(response.data.data);
  13902. var data = response.data.FunctionResponse.result;
  13903. for (var i = 0; i < data.length; i++) {
  13904. _this.imageList.push({ url: data[i].thumbnail });
  13905. }
  13906. _this.imageloading = false;
  13907. })
  13908. .catch(function (error) {
  13909. console.log(error);
  13910. });
  13911. _this.sysPicVisible2 = true;
  13912. },
  13913. changePicture() {
  13914. this.ppage++;
  13915. this.searchImage();
  13916. },
  13917. resetImage() {
  13918. this.ppage = 1;
  13919. this.searchImage();
  13920. },
  13921. jumpGj(i, j) {
  13922. if (i + 1 != this.isClickColor) {
  13923. this.isClickColor = i + 1;
  13924. }
  13925. var a = document.scrollingElement;
  13926. this.toolIndexType = `gj${i}${j}`;
  13927. let target = document.querySelector(`#gj${i}${j}`);
  13928. if (target) {
  13929. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13930. setTimeout(() => {
  13931. target.scrollIntoView(true);
  13932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13933. j
  13934. ].isFold3 = false;
  13935. setTimeout(() => {
  13936. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13937. }, 0);
  13938. }, 0);
  13939. }
  13940. },
  13941. jumpGj2(i, j, k) {
  13942. if (this.unitIndex != k) {
  13943. if (this.panUnitJson() == 2) {
  13944. return;
  13945. }
  13946. this.unitSet(k);
  13947. }
  13948. setTimeout(() => {
  13949. if (i + 1 != this.isClickColor) {
  13950. this.isClickColor = i + 1;
  13951. }
  13952. var a = document.scrollingElement;
  13953. this.toolIndexType = `gj${i}${j}${k}`;
  13954. let target = document.querySelector(`#gj${i}${j}`);
  13955. if (target) {
  13956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13957. setTimeout(() => {
  13958. target.scrollIntoView(true);
  13959. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13960. j
  13961. ].isFold3 = false;
  13962. setTimeout(() => {
  13963. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13964. }, 0);
  13965. }, 0);
  13966. }
  13967. }, 0);
  13968. },
  13969. dragStart(val, i, j) {
  13970. console.log(this.taskCount);
  13971. this.dragType = "drag";
  13972. this.taskCount = j;
  13973. this.oldIndex = i;
  13974. this.oldData = val;
  13975. },
  13976. dragOver(i, j) {
  13977. this.typeIndex = "chapter-" + j + "-" + i;
  13978. this.newIndex = i;
  13979. },
  13980. dragEnd() {
  13981. if (this.dragType != "drag") {
  13982. this.typeIndex = "";
  13983. this.newIndex = "";
  13984. this.dragType = "";
  13985. this.isdrag = "";
  13986. return;
  13987. }
  13988. console.log(this.taskCount);
  13989. let newItems = [
  13990. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13991. .chapterData,
  13992. ];
  13993. // 删除老的节点
  13994. newItems.splice(this.oldIndex, 1);
  13995. // 在列表中目标位置增加新的节点
  13996. newItems.splice(this.newIndex, 0, this.oldData);
  13997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13998. this.taskCount
  13999. ].chapterData = [...newItems];
  14000. this.typeIndex = "";
  14001. this.newIndex = "";
  14002. this.dragType = "";
  14003. this.isdrag = "";
  14004. this.$forceUpdate();
  14005. },
  14006. dragTaskStart(val, i, j) {
  14007. this.dragType = "task";
  14008. this.oldIndex = i;
  14009. this.oldData = val;
  14010. this.oldUnitIndex = j;
  14011. },
  14012. dragTaskOver(i, j) {
  14013. this.typeIndex = "task-" + i;
  14014. this.newIndex = i;
  14015. this.checkUnitIndex = j;
  14016. },
  14017. async dragTaskEnd() {
  14018. if (this.dragType != "task") {
  14019. this.newIndex = "";
  14020. this.dragType = "";
  14021. this.typeIndex = "";
  14022. this.checkUnitIndex = "";
  14023. this.isdrag = "";
  14024. return;
  14025. }
  14026. if (
  14027. this.newIndex == this.oldIndex &&
  14028. this.oldUnitIndex == this.checkUnitIndex
  14029. ) {
  14030. this.newIndex = "";
  14031. this.dragType = "";
  14032. this.typeIndex = "";
  14033. this.checkUnitIndex = "";
  14034. this.isdrag = "";
  14035. return;
  14036. }
  14037. let count1 = await this.getWorksCount(
  14038. 2,
  14039. this.checkUnitIndex,
  14040. this.newIndex,
  14041. 0
  14042. );
  14043. let count2 = await this.getWorksCount(
  14044. 2,
  14045. this.oldUnitIndex,
  14046. this.oldIndex,
  14047. 0
  14048. );
  14049. if (count1 > 0 || count2 > 0) {
  14050. this.$confirm(
  14051. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  14052. "提示",
  14053. {
  14054. confirmButtonText: "确定",
  14055. cancelButtonText: "取消",
  14056. type: "warning",
  14057. }
  14058. )
  14059. .then(() => {
  14060. if (this.oldUnitIndex != this.checkUnitIndex) {
  14061. let newItems = [
  14062. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14063. ];
  14064. // 删除老的节点
  14065. newItems.splice(this.oldIndex, 1);
  14066. // 在列表中目标位置增加新的节点
  14067. let newItems2 = [
  14068. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14069. ];
  14070. newItems2.splice(this.newIndex, 0, this.oldData);
  14071. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14072. ...newItems,
  14073. ];
  14074. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14075. ...newItems2,
  14076. ];
  14077. } else {
  14078. let newItems = [
  14079. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14080. ];
  14081. // 删除老的节点
  14082. newItems.splice(this.oldIndex, 1);
  14083. // 在列表中目标位置增加新的节点
  14084. newItems.splice(this.newIndex, 0, this.oldData);
  14085. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14086. ...newItems,
  14087. ];
  14088. }
  14089. this.typeIndex = "";
  14090. this.newIndex = "";
  14091. this.dragType = "";
  14092. this.checkUnitIndex = "";
  14093. this.isdrag = "";
  14094. this.updateWork();
  14095. this.$forceUpdate();
  14096. })
  14097. .catch(() => {
  14098. this.newIndex = "";
  14099. this.dragType = "";
  14100. this.typeIndex = "";
  14101. this.checkUnitIndex = "";
  14102. this.isdrag = "";
  14103. return;
  14104. });
  14105. } else {
  14106. if (this.oldUnitIndex != this.checkUnitIndex) {
  14107. let newItems = [
  14108. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14109. ];
  14110. // 删除老的节点
  14111. newItems.splice(this.oldIndex, 1);
  14112. // 在列表中目标位置增加新的节点
  14113. let newItems2 = [
  14114. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14115. ];
  14116. newItems2.splice(this.newIndex, 0, this.oldData);
  14117. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14118. ...newItems,
  14119. ];
  14120. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14121. ...newItems2,
  14122. ];
  14123. } else {
  14124. let newItems = [
  14125. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14126. ];
  14127. // 删除老的节点
  14128. newItems.splice(this.oldIndex, 1);
  14129. // 在列表中目标位置增加新的节点
  14130. newItems.splice(this.newIndex, 0, this.oldData);
  14131. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14132. ...newItems,
  14133. ];
  14134. }
  14135. this.typeIndex = "";
  14136. this.newIndex = "";
  14137. this.dragType = "";
  14138. this.checkUnitIndex = "";
  14139. this.isdrag = "";
  14140. this.updateWork();
  14141. this.$forceUpdate();
  14142. }
  14143. },
  14144. dragUnitStart(val, i) {
  14145. this.dragType = "Unit";
  14146. this.oldIndex = i;
  14147. this.oldData = val;
  14148. },
  14149. dragUnitOver(i) {
  14150. this.typeIndex = "Unit-" + i;
  14151. this.newIndex = i;
  14152. console.log(i, this.unitJson[i].toolOpen);
  14153. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  14154. this.unitJson[i].toolOpen = true;
  14155. this.updateWork();
  14156. this.$forceUpdate();
  14157. }
  14158. },
  14159. async dragUnitEnd() {
  14160. if (this.dragType != "Unit") {
  14161. this.newIndex = "";
  14162. this.dragType = "";
  14163. this.typeIndex = "";
  14164. this.isdrag = "";
  14165. return;
  14166. }
  14167. if (this.newIndex == this.oldIndex) {
  14168. this.newIndex = "";
  14169. this.dragType = "";
  14170. this.typeIndex = "";
  14171. this.isdrag = "";
  14172. return;
  14173. }
  14174. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  14175. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  14176. console.log(count1, count2);
  14177. if (count1 > 0 || count2 > 0) {
  14178. this.$confirm(
  14179. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  14180. "提示",
  14181. {
  14182. confirmButtonText: "确定",
  14183. cancelButtonText: "取消",
  14184. type: "warning",
  14185. }
  14186. )
  14187. .then(() => {
  14188. let newItems = [...this.unitJson];
  14189. // 删除老的节点
  14190. newItems.splice(this.oldIndex, 1);
  14191. // 在列表中目标位置增加新的节点
  14192. newItems.splice(this.newIndex, 0, this.oldData);
  14193. this.unitJson = [...newItems];
  14194. this.typeIndex = "";
  14195. this.newIndex = "";
  14196. this.dragType = "";
  14197. this.isdrag = "";
  14198. this.updateWork();
  14199. this.$forceUpdate();
  14200. })
  14201. .catch(() => {
  14202. this.newIndex = "";
  14203. this.dragType = "";
  14204. this.typeIndex = "";
  14205. this.isdrag = "";
  14206. return;
  14207. });
  14208. } else {
  14209. let newItems = [...this.unitJson];
  14210. // 删除老的节点
  14211. newItems.splice(this.oldIndex, 1);
  14212. // 在列表中目标位置增加新的节点
  14213. newItems.splice(this.newIndex, 0, this.oldData);
  14214. this.unitJson = [...newItems];
  14215. this.typeIndex = "";
  14216. this.newIndex = "";
  14217. this.dragType = "";
  14218. this.isdrag = "";
  14219. this.updateWork();
  14220. this.$forceUpdate();
  14221. }
  14222. },
  14223. getWorksCount(type, stage, task, tool) {
  14224. return new Promise((resolve, reject) => {
  14225. let params = [
  14226. {
  14227. cid: this.cid,
  14228. stage: stage,
  14229. task: task,
  14230. tool: tool,
  14231. type: type,
  14232. },
  14233. ];
  14234. this.ajax
  14235. .post(this.$store.state.api + "getCourseWorkCount", params)
  14236. .then((res) => {
  14237. let count = res.data[0][0].count;
  14238. resolve(count);
  14239. })
  14240. .catch((err) => {
  14241. resolve(0);
  14242. this.$message.error("网络不佳");
  14243. console.error(err);
  14244. });
  14245. });
  14246. },
  14247. getTwoType(id) {
  14248. this.twoJson = [];
  14249. var array = this.CourseTypeJson1[
  14250. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14251. ].filter((e) => {
  14252. return e.ppid == id;
  14253. });
  14254. this.twoJson = array;
  14255. this.$forceUpdate();
  14256. },
  14257. ctype() {
  14258. this.oneJson =
  14259. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14260. },
  14261. selectAllType1() {
  14262. this.CourseType1 = [];
  14263. this.CourseTypeJson1 = {};
  14264. this.courseTypeId1 = {};
  14265. this.$forceUpdate();
  14266. let params = {
  14267. org: this.org && this.org != "" ? this.org : "",
  14268. oid: this.oid && this.oid != "" ? this.oid : "",
  14269. };
  14270. this.ajax
  14271. .get(this.$store.state.api + "selectAllEvaType", params)
  14272. .then((res) => {
  14273. this.CourseType1 = res.data;
  14274. for (var i = 0; i < res.data[0].length; i++) {
  14275. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14276. res.data[0][i].name = "一级分类";
  14277. } else if (
  14278. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14279. ) {
  14280. res.data[0][i].name = "二级分类";
  14281. }
  14282. if (!this.cid) {
  14283. this.courseTypeId1[res.data[0][i].id] = [];
  14284. }
  14285. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14286. this.CourseTypeJson1[res.data[0][i].id] = [];
  14287. }
  14288. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14289. for (var j = 0; j < res.data[1].length; j++) {
  14290. if (res.data[0][i].id == res.data[1][j].pid) {
  14291. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14292. }
  14293. }
  14294. // } else {
  14295. if (res.data[2].length > 0) {
  14296. for (var j = 0; j < res.data[2].length; j++) {
  14297. if (res.data[0][i].id == res.data[2][j].pid) {
  14298. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14299. }
  14300. }
  14301. }
  14302. if (res.data[3].length > 0) {
  14303. for (var j = 0; j < res.data[3].length; j++) {
  14304. if (res.data[0][i].id == res.data[3][j].pid) {
  14305. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14306. }
  14307. }
  14308. }
  14309. // }
  14310. }
  14311. this.ctype();
  14312. this.cetBoxDialog = true;
  14313. })
  14314. .catch((err) => {
  14315. console.error(err);
  14316. });
  14317. },
  14318. },
  14319. beforeDestroy() {
  14320. clearTimeout(this.timer);
  14321. this.timer = null;
  14322. clearInterval(this.timer2);
  14323. this.timer2 = null;
  14324. clearInterval(this.pasteTimer);
  14325. this.pasteTimer = null;
  14326. },
  14327. beforeRouteLeave(to, from, next) {
  14328. clearTimeout(this.timer);
  14329. this.timer = null;
  14330. clearInterval(this.timer2);
  14331. this.timer2 = null;
  14332. clearInterval(this.pasteTimer);
  14333. this.pasteTimer = null;
  14334. next();
  14335. },
  14336. mounted(){
  14337. this.$nextTick(()=>{
  14338. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  14339. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  14340. this.rightBoxHeight = height1 + height2
  14341. })
  14342. },
  14343. created() {
  14344. this.getStudent();
  14345. this.getTeacher();
  14346. this.getClass();
  14347. this.selectGrage();
  14348. this.getTemplate();
  14349. // this.selectType();
  14350. this.selectEva();
  14351. this.loading = false;
  14352. this.timer2 = setInterval(() => {
  14353. this.selectEva();
  14354. }, 5000);
  14355. this.pasteTimer = setInterval(() => {
  14356. this.getPaste();
  14357. }, 1000);
  14358. setTimeout(() => {
  14359. this.selectCourseDetail();
  14360. }, 500);
  14361. let _this = this;
  14362. window.pasteStage = function (json) {
  14363. _this.pasteStage(json);
  14364. };
  14365. window.pasteTask = function (json) {
  14366. _this.pasteTask(json);
  14367. };
  14368. },
  14369. };
  14370. </script>
  14371. <style scoped>
  14372. @media screen and (max-width: 1280px) {
  14373. .mbCss {
  14374. flex-direction: column !important;
  14375. }
  14376. .pjCss {
  14377. width: 100% !important;
  14378. }
  14379. .evaCss {
  14380. width: 100% !important;
  14381. margin-top: 10px;
  14382. }
  14383. }
  14384. .el-table >>> .even_row {
  14385. background-color: #f1f1f1 !important;
  14386. }
  14387. .dialog_diy >>> .el-dialog__header {
  14388. background: #3c3c3c !important;
  14389. padding: 15px 20px;
  14390. }
  14391. .dialog_diy >>> .el-dialog__title {
  14392. color: #fff;
  14393. }
  14394. .dialog_diy >>> .el-dialog__headerbtn {
  14395. top: 19px;
  14396. }
  14397. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14398. color: #fff;
  14399. }
  14400. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14401. color: #fff;
  14402. }
  14403. .dialog_diy >>> .el-dialog__body,
  14404. .dialog_diy >>> .el-dialog__footer {
  14405. background: #fafafa;
  14406. }
  14407. .dialog_diy3 >>> .el-dialog__body,
  14408. .dialog_diy3 >>> .el-dialog__footer {
  14409. background: #eee !important;
  14410. }
  14411. .dialog_diy3 >>> .el-dialog__body {
  14412. padding: 20px 20px;
  14413. }
  14414. .dialog_diyStage >>> .el-dialog__body {
  14415. padding: 10px;
  14416. }
  14417. .source_diy >>> .el-dialog {
  14418. height: 100% !important;
  14419. margin: 0 auto !important;
  14420. }
  14421. .source_diy >>> .el-dialog__body {
  14422. height: calc(100% - 185px);
  14423. overflow: auto;
  14424. background: #e6eaf0;
  14425. }
  14426. .source_diy >>> .el-dialog__footer {
  14427. background: #e6eaf0 !important;
  14428. }
  14429. .left {
  14430. border-right: 1px solid rgb(60, 94, 143);
  14431. display: flex;
  14432. flex-direction: column;
  14433. align-items: center;
  14434. min-height: 600px;
  14435. width: 385px;
  14436. height: 80%;
  14437. }
  14438. .tips {
  14439. color: rgb(128, 128, 128);
  14440. font-size: 12px;
  14441. width: 270px;
  14442. margin: 40px;
  14443. }
  14444. .pb_content {
  14445. height: 100% !important;
  14446. /* margin: 0 20px 0 20px; */
  14447. }
  14448. .pb_content_body {
  14449. width: 100% !important;
  14450. height: 100%;
  14451. }
  14452. .info_solid {
  14453. width: 270px;
  14454. height: 30px;
  14455. border-left: 1px solid #bdbdbd;
  14456. margin: 10px 0px 10px 30px;
  14457. }
  14458. .info_steps {
  14459. width: 270px;
  14460. font-size: 0.875rem;
  14461. display: flex;
  14462. align-items: center;
  14463. }
  14464. .info_steps span:nth-child(1) {
  14465. width: 30px;
  14466. height: 30px;
  14467. background: rgba(0, 0, 0, 0.38);
  14468. display: block;
  14469. color: #fff;
  14470. border-radius: 40px;
  14471. text-align: center;
  14472. line-height: 30px;
  14473. }
  14474. .steps_active {
  14475. background: #3d67bc !important;
  14476. }
  14477. .info_steps span:nth-child(2) {
  14478. margin-left: 5px;
  14479. }
  14480. .right {
  14481. height: 100%;
  14482. width: 100%;
  14483. display: flex;
  14484. overflow: hidden;
  14485. flex-direction: column;
  14486. }
  14487. .basic_box {
  14488. margin: 0 auto;
  14489. position: relative;
  14490. padding: 0 20px 0 20px;
  14491. }
  14492. .basic_box_success {
  14493. width: 100%;
  14494. min-height: 455px;
  14495. padding: 50px 0;
  14496. position: relative;
  14497. text-align: center;
  14498. border-bottom: 1px solid #bfbfbf;
  14499. box-sizing: border-box;
  14500. display: flex;
  14501. align-items: center;
  14502. flex-direction: column;
  14503. justify-content: center;
  14504. }
  14505. .info_title {
  14506. font-size: 1.5em;
  14507. margin-right: 25px;
  14508. /* margin: 20px 30px 20px 30px; */
  14509. }
  14510. .bInfo_title {
  14511. text-align: left;
  14512. margin: 10px 0;
  14513. }
  14514. .small_title {
  14515. font-size: 14px;
  14516. line-height: 40px;
  14517. }
  14518. .chapter_beizhu {
  14519. font-size: 12px;
  14520. font-weight: bold;
  14521. float: right;
  14522. color: rgb(128, 128, 128);
  14523. margin-top: 5px;
  14524. }
  14525. .chapter_uploadBox1 {
  14526. text-align: left;
  14527. background-color: rgb(242, 242, 242);
  14528. width: 100%;
  14529. height: 67px;
  14530. padding: 0px 15px;
  14531. border-radius: 8px;
  14532. overflow: hidden;
  14533. font-size: 16px;
  14534. box-sizing: border-box;
  14535. position: relative;
  14536. }
  14537. .chapter_add {
  14538. width: 100%;
  14539. height: 32px;
  14540. margin-top: 15px;
  14541. cursor: pointer;
  14542. }
  14543. .chapter_add_l {
  14544. margin-left: 5px;
  14545. width: 30px;
  14546. height: 30px;
  14547. float: left;
  14548. border: 1px solid #aaa;
  14549. color: #aaa;
  14550. border-radius: 50%;
  14551. font-size: 25px;
  14552. text-align: center;
  14553. }
  14554. .chapter_add_r {
  14555. font-size: 18px;
  14556. height: 40px;
  14557. line-height: 30px;
  14558. text-indent: 10px;
  14559. color: #aaa;
  14560. }
  14561. .chapter_add_r span {
  14562. font-size: 12px;
  14563. color: rgb(204, 204, 204);
  14564. }
  14565. .chapter_add_input {
  14566. display: none;
  14567. }
  14568. .line {
  14569. width: 85%;
  14570. margin: 0 auto;
  14571. border-top: 1px solid #e5e5e5;
  14572. margin-top: 20px;
  14573. }
  14574. .info_btnBox {
  14575. width: calc(100%);
  14576. display: flex;
  14577. justify-content: center;
  14578. height: 80px;
  14579. align-items: center;
  14580. background: #fff;
  14581. margin: 0 auto;
  14582. border-top: 2px solid rgb(228, 232, 237);
  14583. box-sizing: border-box;
  14584. }
  14585. .info_btnBox2 {
  14586. width: calc(100%);
  14587. display: flex;
  14588. justify-content: center;
  14589. height: 20px;
  14590. align-items: center;
  14591. background: #fff;
  14592. margin: 0 auto;
  14593. border-top: 2px solid rgb(228, 232, 237);
  14594. box-sizing: border-box;
  14595. overflow: hidden;
  14596. cursor: pointer;
  14597. }
  14598. .info_btnBox3 {
  14599. width: calc(100%);
  14600. display: flex;
  14601. justify-content: flex-end;
  14602. padding: 0 20px;
  14603. height: 60px;
  14604. align-items: center;
  14605. background: unset;
  14606. margin: 0 auto;
  14607. /* border-top: 1px solid rgb(228, 232, 237); */
  14608. box-sizing: border-box;
  14609. overflow: hidden;
  14610. cursor: pointer;
  14611. background: #fff;
  14612. border-radius: 10px;
  14613. }
  14614. .info_btn + .info_btn {
  14615. margin-left: 15px;
  14616. }
  14617. .info_btn,
  14618. .teacherWord {
  14619. color: #fff;
  14620. background-color: #0f7eff;
  14621. padding: 8px 24px;
  14622. font-size: 0.9375rem;
  14623. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  14624. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  14625. min-width: 64px;
  14626. font-weight: 500;
  14627. border-radius: 4px;
  14628. box-sizing: border-box;
  14629. border: none;
  14630. cursor: pointer;
  14631. }
  14632. .teacherWord {
  14633. width: 105px !important;
  14634. text-align: center !important;
  14635. line-height: 36px !important;
  14636. padding: 0 !important;
  14637. font-size: 14px !important;
  14638. margin: 10px 0 !important;
  14639. }
  14640. .template_box {
  14641. display: flex;
  14642. flex-wrap: wrap;
  14643. }
  14644. .wordTeacher {
  14645. display: flex;
  14646. flex-direction: column;
  14647. width: 100px;
  14648. height: 100px;
  14649. text-align: center;
  14650. font-size: 13px;
  14651. margin: 0 20px 20px 0;
  14652. background: #f0f4fa;
  14653. position: relative;
  14654. border-radius: 5px;
  14655. align-items: center;
  14656. justify-content: center;
  14657. border: 1px solid #cad1dc;
  14658. color: #0e1e33;
  14659. /* padding: 25px 0px; */
  14660. cursor: pointer;
  14661. }
  14662. .wordTeacher::after {
  14663. content: "";
  14664. display: block;
  14665. position: absolute;
  14666. width: 15px;
  14667. height: 15px;
  14668. right: 10px;
  14669. top: 10px;
  14670. background-image: url(../../../assets/icon/new/choose_a.png);
  14671. background-size: 100% 100%;
  14672. }
  14673. .wordTeacherA::after {
  14674. background-image: url(../../../assets/icon/new/choose_b.png);
  14675. }
  14676. .wordTeacher:nth-child(5n) {
  14677. margin-right: 0px;
  14678. }
  14679. .wordPic {
  14680. margin: 0 auto;
  14681. width: 30px;
  14682. height: 30px;
  14683. cursor: pointer;
  14684. }
  14685. .deleteWord {
  14686. width: 22px;
  14687. height: 22px;
  14688. position: absolute;
  14689. right: 5px;
  14690. top: -15px;
  14691. cursor: pointer;
  14692. display: none;
  14693. z-index: 999;
  14694. }
  14695. .wordPic > img,
  14696. .deleteWord > img,
  14697. .addToolImg > img {
  14698. width: 100%;
  14699. height: 100%;
  14700. }
  14701. .info_btn:hover {
  14702. background-color: #4f7cd5 !important;
  14703. }
  14704. .cru_selectBox {
  14705. display: flex;
  14706. margin: 15px 0;
  14707. flex-wrap: nowrap;
  14708. white-space: nowrap;
  14709. overflow: auto;
  14710. position: relative;
  14711. height: 40px;
  14712. max-width: calc(100% - 175px);
  14713. }
  14714. .cru_selectBox::-webkit-scrollbar {
  14715. /*滚动条整体样式*/
  14716. width: 6px;
  14717. /*高宽分别对应横竖滚动条的尺寸*/
  14718. height: 6px;
  14719. }
  14720. /*定义滚动条轨道 内阴影+圆角*/
  14721. .cru_selectBox::-webkit-scrollbar-track {
  14722. border-radius: 10px;
  14723. background-color: #eee;
  14724. }
  14725. /*定义滑块 内阴影+圆角*/
  14726. .cru_selectBox::-webkit-scrollbar-thumb {
  14727. border-radius: 10px;
  14728. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14729. background-color: rgba(0, 0, 0, 0.1);
  14730. }
  14731. .cru_line {
  14732. position: absolute;
  14733. bottom: 0px;
  14734. transition: all 0.5s;
  14735. left: 0px;
  14736. width: 50px;
  14737. height: 4px;
  14738. left: 10px;
  14739. border-radius: 2px;
  14740. background: #3681fc;
  14741. }
  14742. .cru_select {
  14743. font-size: 18px;
  14744. margin-right: 20px;
  14745. margin-left: 5px;
  14746. cursor: pointer;
  14747. color: #0e1e33;
  14748. }
  14749. .cru_select:hover {
  14750. color: #3681fc !important;
  14751. }
  14752. .cru_selected {
  14753. color: #3681fc !important;
  14754. font-weight: bold;
  14755. }
  14756. .chapter_box {
  14757. margin-top: 10px;
  14758. width: 100%;
  14759. padding: 10px 20px;
  14760. background: #fff;
  14761. border-radius: 8px;
  14762. box-sizing: border-box;
  14763. }
  14764. .chapter_contentbox {
  14765. display: flex;
  14766. align-items: center;
  14767. /* margin-top: 15px; */
  14768. }
  14769. .chapter_contentbox .cc_title {
  14770. margin: 0px;
  14771. color: black;
  14772. display: block;
  14773. white-space: nowrap;
  14774. overflow: hidden;
  14775. text-overflow: ellipsis;
  14776. margin-right: 20px;
  14777. font-size: 18px;
  14778. height: 20px;
  14779. line-height: 22px;
  14780. min-width: fit-content;
  14781. display: flex;
  14782. }
  14783. .chapter_contentbox .cc_title::before {
  14784. content: "";
  14785. height: 100%;
  14786. width: 3px;
  14787. background: #3681fc;
  14788. border-radius: 3px;
  14789. opacity: 1;
  14790. display: block;
  14791. margin-right: 10px;
  14792. }
  14793. .chapter_contentbox .cc_input {
  14794. width: 100%;
  14795. display: flex;
  14796. }
  14797. .show_taskD {
  14798. min-width: fit-content;
  14799. margin-left: 10px;
  14800. display: flex;
  14801. align-items: center;
  14802. font-size: 14px;
  14803. cursor: pointer;
  14804. color: #717c8d;
  14805. }
  14806. .show_taskD > img {
  14807. width: 15px;
  14808. margin-right: 5px;
  14809. transition: 0.2s all;
  14810. transform: rotate(-90deg);
  14811. }
  14812. .show_taskD.show > img {
  14813. transform: rotate(0deg);
  14814. }
  14815. .show_toolD {
  14816. min-width: fit-content;
  14817. margin-left: 10px;
  14818. display: flex;
  14819. align-items: center;
  14820. font-size: 14px;
  14821. cursor: pointer;
  14822. color: #717c8d;
  14823. /* position: absolute;
  14824. right: 45px;
  14825. top: 5px; */
  14826. }
  14827. .show_toolD > img {
  14828. width: 15px;
  14829. margin-right: 5px;
  14830. transition: 0.2s all;
  14831. transform: rotate(-90deg);
  14832. }
  14833. .show_toolD.show > img {
  14834. transform: rotate(0deg);
  14835. }
  14836. .remove {
  14837. background-image: url("../../../assets/icon/new/delete_u.png");
  14838. cursor: pointer;
  14839. opacity: 0.5;
  14840. width: 30px;
  14841. min-width: 30px;
  14842. height: 30px;
  14843. background-size: 100% 100%;
  14844. background-repeat: no-repeat;
  14845. margin-left: 10px;
  14846. }
  14847. .remove1 {
  14848. background-image: url("../../../assets/remove1.png");
  14849. background-repeat: no-repeat;
  14850. background-position: 5px 10px;
  14851. width: 40px;
  14852. height: 50px;
  14853. cursor: pointer;
  14854. margin-left: 10px;
  14855. }
  14856. .binfo_input {
  14857. width: 100%;
  14858. margin: 0;
  14859. padding: 12px 14px;
  14860. display: block;
  14861. min-width: 0;
  14862. outline: none;
  14863. box-sizing: border-box;
  14864. background: none;
  14865. border: none;
  14866. border-radius: 4px;
  14867. background: #fff;
  14868. font-size: 16px;
  14869. resize: none;
  14870. font-family: "Microsoft YaHei";
  14871. min-height: 48px;
  14872. /* border: 1px solid #3682fc00; */
  14873. border: 1.5px solid #cad1dc;
  14874. }
  14875. .binfo_textarea {
  14876. border: 1.5px solid #cad1dc;
  14877. font-size: 16px;
  14878. resize: none;
  14879. /* background: #f6f6f6; */
  14880. font-family: "Microsoft YaHei";
  14881. }
  14882. .binfo_input:focus-visible {
  14883. border: 1.5px solid #3681fc !important;
  14884. }
  14885. .time {
  14886. display: flex;
  14887. margin: 35px 0 80px 0;
  14888. }
  14889. .chapter_btnbox {
  14890. width: 160px;
  14891. border-radius: 5px;
  14892. border: 2px dashed gray;
  14893. display: flex;
  14894. padding: 8px 50px;
  14895. align-items: center;
  14896. justify-content: center;
  14897. margin: 30px auto 0;
  14898. cursor: pointer;
  14899. }
  14900. .icon_add {
  14901. position: relative;
  14902. width: 24px;
  14903. padding-top: 20px;
  14904. border-radius: 100%;
  14905. border-width: 2px;
  14906. border-style: solid;
  14907. border-color: gray;
  14908. }
  14909. .icon_add i:nth-child(1) {
  14910. position: absolute;
  14911. left: 50%;
  14912. top: 50%;
  14913. height: 60%;
  14914. transform: translate(-50%, -50%);
  14915. border-width: 1px;
  14916. border-style: solid;
  14917. border-color: inherit;
  14918. }
  14919. .icon_add i:nth-child(2) {
  14920. position: absolute;
  14921. top: 50%;
  14922. left: 50%;
  14923. width: 60%;
  14924. transform: translate(-50%, -50%);
  14925. border-width: 1px;
  14926. border-style: solid;
  14927. border-color: inherit;
  14928. }
  14929. .chapter_btn_w {
  14930. font-size: 0.9375rem;
  14931. font-weight: bold;
  14932. color: gray;
  14933. margin-left: 20px;
  14934. }
  14935. .disUoloadSty >>> .el-icon-plus {
  14936. display: none !important;
  14937. /* 上传按钮隐藏 */
  14938. }
  14939. .imgLeft {
  14940. margin: 15px 0;
  14941. }
  14942. .add_info_box {
  14943. margin: 0 0 0 auto;
  14944. display: flex;
  14945. flex-wrap: wrap;
  14946. }
  14947. .add_info_box button {
  14948. margin: 0 5px 10px 0;
  14949. }
  14950. .add_info_box2 {
  14951. display: flex;
  14952. align-items: center;
  14953. flex-wrap: wrap;
  14954. }
  14955. .add_info_box2::after {
  14956. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14957. color: red;
  14958. font-size: 14px;
  14959. margin-bottom: 10px;
  14960. }
  14961. .add_chapters_box {
  14962. text-align: left;
  14963. background-color: #fff;
  14964. width: 100%;
  14965. border-radius: 4px;
  14966. font-size: 16px;
  14967. box-sizing: border-box;
  14968. position: relative;
  14969. padding: 0 15px;
  14970. height: auto;
  14971. overflow-y: auto;
  14972. overflow-x: hidden;
  14973. border: 1px solid #cad1dc;
  14974. }
  14975. .add_chapters_box.add_c_none {
  14976. display: flex;
  14977. justify-content: center;
  14978. align-items: center;
  14979. padding: 15px;
  14980. }
  14981. .add_c_none > img {
  14982. width: 25px;
  14983. }
  14984. .add_chapters_box.add_c_none > span {
  14985. font-size: 14px;
  14986. font-weight: 400;
  14987. margin: 0 0 5px 5px;
  14988. }
  14989. .homework_box {
  14990. display: flex;
  14991. align-items: flex-start;
  14992. flex-wrap: wrap;
  14993. margin: 15px 0 0 0;
  14994. flex-direction: column;
  14995. align-content: flex-start;
  14996. }
  14997. .course_homework {
  14998. display: flex;
  14999. justify-content: center;
  15000. flex-direction: row;
  15001. align-items: center;
  15002. margin: 0 10px 0 0;
  15003. }
  15004. .course_homework >>> .el-input__inner {
  15005. width: 140px;
  15006. margin-left: 15px;
  15007. }
  15008. .chapter_upload_move {
  15009. position: relative;
  15010. background-color: #fff;
  15011. position: absolute;
  15012. width: 100%;
  15013. top: 0px;
  15014. left: 0px;
  15015. border: 1px solid #eee;
  15016. border-radius: 5px;
  15017. transition: width 2s;
  15018. -moz-transition: width 2s;
  15019. -webkit-transition: width 2s;
  15020. -o-transition: width 2s;
  15021. }
  15022. .chapter_upload_l_i {
  15023. background-image: url("../../../assets/icon.png");
  15024. background-position: 3px -165px;
  15025. width: 30px;
  15026. height: 30px;
  15027. margin: 10px auto 0 auto;
  15028. }
  15029. .course_input_box {
  15030. display: flex;
  15031. margin-right: 20px;
  15032. width: 100%;
  15033. align-items: center;
  15034. position: relative;
  15035. }
  15036. .course_input_box > .binfo_input {
  15037. width: calc(100% - 0 - 200px - 20px);
  15038. margin: 0 10px;
  15039. }
  15040. .bb_courseIcon {
  15041. width: 57px;
  15042. height: 45px;
  15043. background: #f0f4fa;
  15044. border-radius: 5px 0px 0px 5px;
  15045. display: flex;
  15046. align-items: center;
  15047. justify-content: center;
  15048. border-right: 1.5px solid rgb(202, 209, 220);
  15049. box-sizing: border-box;
  15050. position: absolute;
  15051. left: 1.5px;
  15052. }
  15053. .bb_courseIcon > img {
  15054. width: 25px;
  15055. height: auto;
  15056. }
  15057. .big_box {
  15058. /* margin-top: 20px; */
  15059. display: flex;
  15060. justify-content: space-between;
  15061. /* border-bottom: 1px solid #E0E2ED; */
  15062. }
  15063. .left_first {
  15064. display: flex;
  15065. flex-direction: column;
  15066. flex-wrap: nowrap;
  15067. width: calc(100% - 310px);
  15068. padding: 20px;
  15069. box-sizing: border-box;
  15070. background: #fff;
  15071. border-radius: 5px;
  15072. }
  15073. .right_first {
  15074. width: 300px;
  15075. display: flex;
  15076. align-items: center;
  15077. justify-content: center;
  15078. /* border-left: 1px solid #E0E2ED; */
  15079. box-sizing: border-box;
  15080. padding: 20px;
  15081. flex-direction: column;
  15082. background: #fff;
  15083. border-radius: 5px;
  15084. }
  15085. .ai_box {
  15086. width: 204px;
  15087. display: flex;
  15088. justify-content: flex-end;
  15089. margin-bottom: 15px;
  15090. }
  15091. .ai_content {
  15092. display: flex;
  15093. align-items: center;
  15094. font-size: 14px;
  15095. padding: 7px 20px;
  15096. box-sizing: border-box;
  15097. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  15098. border-radius: 12px;
  15099. font-weight: 700;
  15100. cursor: pointer;
  15101. }
  15102. .ai_content > img {
  15103. width: 40px;
  15104. margin-right: 5px;
  15105. }
  15106. .c_info_title {
  15107. padding: 15px 0 15px 0;
  15108. font-size: 16px;
  15109. font-weight: bold;
  15110. margin: 0 0 0 20px;
  15111. box-sizing: border-box;
  15112. display: flex;
  15113. align-items: center;
  15114. line-height: 20px;
  15115. }
  15116. .c_info_title::before {
  15117. content: "";
  15118. display: block;
  15119. width: 3px;
  15120. height: 20px;
  15121. background: #0061ff;
  15122. border-radius: 3px;
  15123. margin: 0 5px 0 0;
  15124. }
  15125. .right_title {
  15126. height: 30px;
  15127. padding: 15px 0 15px 20px;
  15128. border-bottom: 1px solid #f2f2f2;
  15129. font-size: 1.5em;
  15130. font-weight: bold;
  15131. color: #0f7eff;
  15132. margin: 0 auto;
  15133. }
  15134. .people {
  15135. border: 1px solid rgb(229 229 229);
  15136. /* height: 495px; */
  15137. height: 350px;
  15138. border-radius: 5px;
  15139. width: 100%;
  15140. overflow: auto;
  15141. }
  15142. .people_top {
  15143. display: flex;
  15144. width: 100%;
  15145. /* justify-content: space-between; */
  15146. /* align-items: center; */
  15147. flex-direction: column;
  15148. padding: 10px 10px 0;
  15149. box-sizing: border-box;
  15150. }
  15151. .people_nav,
  15152. .people_top_right {
  15153. /* padding: 20px 0 0 20px; */
  15154. }
  15155. .people_top_right {
  15156. height: 40px;
  15157. margin-bottom: 10px;
  15158. }
  15159. .people_search {
  15160. display: flex;
  15161. position: relative;
  15162. }
  15163. .people_search >>> .el-input__inner {
  15164. /* height: 25px; */
  15165. width: 100%;
  15166. }
  15167. .search_img {
  15168. width: 20px;
  15169. height: 20px;
  15170. position: absolute;
  15171. right: 10px;
  15172. top: 50%;
  15173. transform: translateY(-50%);
  15174. }
  15175. .search_img > img {
  15176. width: 100%;
  15177. height: 100%;
  15178. }
  15179. .people_name {
  15180. display: flex;
  15181. justify-content: flex-start;
  15182. padding: 20px 10px;
  15183. flex-direction: column;
  15184. flex-wrap: wrap;
  15185. }
  15186. .p_box {
  15187. position: relative;
  15188. }
  15189. .people_name >>> .el-checkbox {
  15190. width: 100%;
  15191. display: flex;
  15192. align-items: center;
  15193. margin-bottom: 10px;
  15194. }
  15195. .people_name >>> .el-checkbox__label {
  15196. text-overflow: ellipsis;
  15197. overflow: hidden;
  15198. width: calc(100%);
  15199. }
  15200. .people_name2 >>> .el-checkbox__label {
  15201. width: calc(100% - 130px);
  15202. }
  15203. .inviteCode {
  15204. position: absolute;
  15205. right: 30px;
  15206. color: #237ade;
  15207. top: 0;
  15208. cursor: pointer;
  15209. font-size: 13px;
  15210. }
  15211. .noneInvite {
  15212. color: #a8a8a8;
  15213. }
  15214. .inviteImg {
  15215. position: absolute;
  15216. right: 5px;
  15217. top: 0;
  15218. width: 20px;
  15219. }
  15220. .right_img {
  15221. width: 150px;
  15222. height: 150px;
  15223. margin: 0 auto;
  15224. }
  15225. .right_img > img {
  15226. width: 100%;
  15227. height: 100%;
  15228. }
  15229. .number {
  15230. margin-top: 20px;
  15231. color: #4aa6ff;
  15232. text-decoration: underline;
  15233. }
  15234. .success_button {
  15235. display: flex;
  15236. text-align: center;
  15237. margin: 5% 0 auto;
  15238. flex-direction: row;
  15239. justify-content: center;
  15240. }
  15241. .look_course {
  15242. margin-right: 40px;
  15243. background: #3d67bc;
  15244. width: 200px;
  15245. height: 35px;
  15246. line-height: 35px;
  15247. color: #fff;
  15248. text-align: center;
  15249. font-size: 14px;
  15250. border-radius: 5px;
  15251. cursor: pointer;
  15252. }
  15253. .attend_others {
  15254. width: 250px;
  15255. background: #4fb13c;
  15256. height: 35px;
  15257. line-height: 35px;
  15258. color: #fff;
  15259. text-align: center;
  15260. font-size: 14px;
  15261. border-radius: 5px;
  15262. cursor: pointer;
  15263. }
  15264. .dialog_diy2 >>> .el-dialog__body {
  15265. text-align: center;
  15266. }
  15267. .write_togother {
  15268. position: absolute;
  15269. right: 45px;
  15270. display: flex;
  15271. top: 5%;
  15272. }
  15273. .write_people {
  15274. font-size: 14px;
  15275. line-height: 50px;
  15276. padding-right: 10px;
  15277. }
  15278. .end_write {
  15279. background: #3d67bc;
  15280. color: #fff;
  15281. width: 100px;
  15282. height: 35px;
  15283. line-height: 35px;
  15284. text-align: center;
  15285. font-size: 14px;
  15286. border-radius: 5px;
  15287. cursor: pointer;
  15288. }
  15289. .chapter_upload + .chapter_upload {
  15290. /* margin-top: 15px; */
  15291. border-top: 1px solid #e7ebf1;
  15292. }
  15293. .chapter_upload {
  15294. height: 45px;
  15295. position: relative;
  15296. display: flex;
  15297. align-items: center;
  15298. width: 100%;
  15299. min-height: 45px;
  15300. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15301. /* border-radius: 4px; */
  15302. /* overflow: hidden; */
  15303. box-sizing: border-box;
  15304. }
  15305. .chapter_upload_drag {
  15306. position: absolute;
  15307. cursor: pointer;
  15308. width: 16px;
  15309. height: 16px;
  15310. left: -9px;
  15311. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  15312. background-size: 100% 100%;
  15313. z-index: 10;
  15314. display: none;
  15315. }
  15316. .isNavStage > .chapter_upload_drag {
  15317. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  15318. }
  15319. .chapter_upload_t {
  15320. background-color: #fff;
  15321. position: absolute;
  15322. height: 100%;
  15323. top: 0px;
  15324. left: 0px;
  15325. box-sizing: border-box;
  15326. }
  15327. .chapter_upload_o {
  15328. width: 100%;
  15329. height: 100%;
  15330. position: relative;
  15331. z-index: 1;
  15332. }
  15333. .chapter_upload_ic {
  15334. margin: 0 15px 0px auto;
  15335. display: flex;
  15336. align-items: center;
  15337. }
  15338. .chapter_upload_ic_l {
  15339. width: 50px;
  15340. height: 50px;
  15341. float: left;
  15342. }
  15343. .chapter_upload_ic_l div {
  15344. width: 30px;
  15345. height: 35px;
  15346. background: url("../../../assets/icon/icon.png");
  15347. }
  15348. .chapter_upload_ic_edit {
  15349. height: 100%;
  15350. display: flex;
  15351. align-items: center;
  15352. cursor: pointer;
  15353. margin: 0 10px 0 0;
  15354. }
  15355. .chapter_upload_ic_edit div {
  15356. width: 18px;
  15357. height: 18px;
  15358. background-image: url("../../../assets/icon/new/edit_u.png");
  15359. background-size: 100% 100%;
  15360. }
  15361. .chapter_upload_ic_r {
  15362. height: 100%;
  15363. display: flex;
  15364. align-items: center;
  15365. cursor: pointer;
  15366. }
  15367. .chapter_upload_ic_r div {
  15368. width: 18px;
  15369. height: 18px;
  15370. background-image: url("../../../assets/icon/new/delete_u.png");
  15371. background-size: 100% 100%;
  15372. }
  15373. .chapter_upload_n {
  15374. display: flex;
  15375. text-indent: 10px;
  15376. text-decoration: none;
  15377. text-overflow: ellipsis;
  15378. white-space: nowrap;
  15379. overflow: hidden;
  15380. width: 55%;
  15381. margin-left: 10px;
  15382. cursor: pointer;
  15383. margin-top: 2px;
  15384. align-items: center;
  15385. }
  15386. .chapter_upload_l_i2,
  15387. .chapter_upload_l_i3,
  15388. .chapter_upload_l_i8,
  15389. .chapter_upload_l_i6,
  15390. .chapter_upload_l_i12,
  15391. .chapter_upload_l_i14,
  15392. .chapter_upload_l_i13 {
  15393. width: 15px;
  15394. height: 15px;
  15395. background-size: 100% 100%;
  15396. }
  15397. .chapter_upload_l_i2 {
  15398. background-image: url("../../../assets/icon/new/u_word.png");
  15399. }
  15400. .chapter_upload_l_i3 {
  15401. background-image: url("../../../assets/icon/new/u_video.png");
  15402. }
  15403. .chapter_upload_l_i8 {
  15404. background-image: url("../../../assets/icon/new/u_url.png");
  15405. }
  15406. .chapter_upload_l_i14 {
  15407. background-image: url("../../../assets/icon/new/u_source.png");
  15408. }
  15409. .chapter_upload_l_i6 {
  15410. background-image: url("../../../assets/icon/new/u_picture.png");
  15411. }
  15412. .chapter_upload_l_i12 {
  15413. background-image: url("../../../assets/icon/new/u_word.png");
  15414. }
  15415. .chapter_upload_l_i13 {
  15416. background-image: url("../../../assets/icon/new/u_img.png");
  15417. }
  15418. .chapter_upload_noSee {
  15419. background-image: url("../../../assets/icon/new/u_noUpload.png");
  15420. width: 18px;
  15421. height: 18px;
  15422. background-size: 100% 100%;
  15423. display: block;
  15424. margin-right: 10px;
  15425. }
  15426. .chapter_upload_ud {
  15427. display: flex;
  15428. flex-direction: row;
  15429. justify-content: center;
  15430. margin: 0 10px 0 0;
  15431. }
  15432. .chapter_upload_ud > .chapter_upload_up {
  15433. margin-bottom: 0;
  15434. margin-right: 10px;
  15435. }
  15436. .chapter_upload_down,
  15437. .chapter_upload_up {
  15438. width: 20px;
  15439. height: 20px;
  15440. background: #e4eaf2;
  15441. cursor: pointer;
  15442. margin: 0 auto;
  15443. border-radius: 5px;
  15444. display: flex;
  15445. justify-content: center;
  15446. align-items: center;
  15447. }
  15448. .chapter_upload_up::after,
  15449. .chapter_upload_down::after {
  15450. content: "";
  15451. background-image: url("../../../assets/icon/new/downBtn.png");
  15452. width: 13px;
  15453. height: 13px;
  15454. background-size: 100% 100%;
  15455. display: block;
  15456. }
  15457. .chapter_upload_up::after {
  15458. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  15459. }
  15460. .chapter_upload_up {
  15461. margin-bottom: 5px;
  15462. }
  15463. .chapter_upload_ud2 {
  15464. display: flex;
  15465. flex-direction: row;
  15466. justify-content: center;
  15467. margin: 0 10px 0 0;
  15468. }
  15469. .chapter_upload_ud2 > .chapter_upload_up2 {
  15470. margin-bottom: 0;
  15471. margin-right: 10px;
  15472. }
  15473. .chapter_upload_down2,
  15474. .chapter_upload_up2 {
  15475. cursor: pointer;
  15476. margin: 0 auto;
  15477. border-radius: 5px;
  15478. display: flex;
  15479. justify-content: center;
  15480. align-items: center;
  15481. color: #717c8d;
  15482. font-size: 14px;
  15483. }
  15484. .chapter_upload_up2 {
  15485. margin-right: 10px;
  15486. }
  15487. .chapter_upload_up2::before,
  15488. .chapter_upload_down2::before {
  15489. content: "";
  15490. background-image: url("../../../assets/icon/new/c_down.png");
  15491. width: 14px;
  15492. height: 14px;
  15493. background-size: 100% 100%;
  15494. display: block;
  15495. margin-right: 5px;
  15496. }
  15497. .chapter_upload_up2::before {
  15498. background-image: url("../../../assets/icon/new/c_up.png") !important;
  15499. }
  15500. .addWordStyle {
  15501. display: flex;
  15502. flex-direction: row;
  15503. justify-content: flex-start;
  15504. overflow-x: auto;
  15505. white-space: nowrap;
  15506. flex-wrap: wrap;
  15507. }
  15508. /* table 样式 */
  15509. .cont >>> table {
  15510. border-top: 1px solid #ccc;
  15511. border-left: 1px solid #ccc;
  15512. }
  15513. .cont >>> table td,
  15514. .cont >>> table th {
  15515. border-bottom: 1px solid #ccc;
  15516. border-right: 1px solid #ccc;
  15517. /* padding: 20px 5px; */
  15518. padding: 5px 10px;
  15519. max-width: 0px;
  15520. height: 30px;
  15521. vertical-align: baseline;
  15522. }
  15523. .cont >>> table th {
  15524. border-bottom: 2px solid #ccc;
  15525. text-align: center;
  15526. }
  15527. /* blockquote 样式 */
  15528. .cont >>> blockquote {
  15529. display: block;
  15530. border-left: 8px solid #d0e5f2;
  15531. padding: 5px 10px;
  15532. margin: 10px 0;
  15533. line-height: 1.4;
  15534. font-size: 100%;
  15535. background-color: #f1f1f1;
  15536. }
  15537. /* code 样式 */
  15538. .cont >>> code {
  15539. display: inline-block;
  15540. /* *display: inline; */
  15541. zoom: 1;
  15542. background-color: #f1f1f1;
  15543. border-radius: 3px;
  15544. padding: 3px 5px;
  15545. margin: 0 3px;
  15546. }
  15547. .cont >>> pre code {
  15548. display: block;
  15549. }
  15550. /* ul ol 样式 */
  15551. .cont >>> ul,
  15552. ol {
  15553. margin: 10px 0 10px 20px;
  15554. }
  15555. .wordbox {
  15556. display: flex;
  15557. flex-wrap: wrap;
  15558. cursor: pointer;
  15559. width: 100%;
  15560. }
  15561. .checkword {
  15562. width: 22px;
  15563. height: 22px;
  15564. margin: 10px auto 0;
  15565. cursor: pointer;
  15566. }
  15567. .checkword img {
  15568. width: 100%;
  15569. }
  15570. .stepBg {
  15571. display: flex;
  15572. justify-content: space-between;
  15573. align-items: center;
  15574. background: #fff;
  15575. width: calc(100%);
  15576. margin: 0 auto;
  15577. }
  15578. .stepBorder {
  15579. height: 3px !important;
  15580. background: #cad1dc;
  15581. width: 100px !important;
  15582. margin: 0 15px !important;
  15583. position: relative;
  15584. }
  15585. .border-active {
  15586. background: #3681fc !important;
  15587. }
  15588. .border-active::before,
  15589. .border-active::after {
  15590. border-color: #3681fc !important;
  15591. }
  15592. .stepBorder::before,
  15593. .stepBorder::after {
  15594. content: "";
  15595. width: 9px;
  15596. height: 9px;
  15597. background: #ffffff;
  15598. opacity: 1;
  15599. border: 2px solid #acb4bf;
  15600. display: block;
  15601. box-sizing: border-box;
  15602. border-radius: 50%;
  15603. position: absolute;
  15604. top: 50%;
  15605. transform: translateY(-50%);
  15606. }
  15607. .stepBorder::after {
  15608. right: -9px;
  15609. }
  15610. .stepTop {
  15611. width: 100%;
  15612. /* border-radius: 10px; */
  15613. display: flex;
  15614. justify-content: center;
  15615. align-items: center;
  15616. flex-wrap: nowrap;
  15617. background: #fff;
  15618. /* top: 18%; */
  15619. height: 80px;
  15620. border-bottom: 2px solid rgb(228, 232, 237);
  15621. box-sizing: border-box;
  15622. }
  15623. .stepTop2 {
  15624. width: 100%;
  15625. /* border-radius: 10px; */
  15626. display: flex;
  15627. justify-content: center;
  15628. align-items: center;
  15629. flex-wrap: nowrap;
  15630. background: #fff;
  15631. /* top: 18%; */
  15632. height: 20px;
  15633. border-bottom: 2px solid rgb(228, 232, 237);
  15634. box-sizing: border-box;
  15635. overflow: hidden;
  15636. cursor: pointer;
  15637. }
  15638. .stepTop > div img {
  15639. width: 100%;
  15640. }
  15641. .stepTop > div {
  15642. height: 50px;
  15643. width: 180px;
  15644. cursor: pointer;
  15645. margin: 10px 0;
  15646. border-radius: 10px;
  15647. }
  15648. .first,
  15649. .second,
  15650. .third,
  15651. .four {
  15652. background: #3681fc;
  15653. height: 90px;
  15654. color: #fff;
  15655. display: flex;
  15656. flex-direction: row;
  15657. align-items: center;
  15658. justify-content: center;
  15659. }
  15660. .first > div:nth-child(1),
  15661. .second > div:nth-child(1),
  15662. .third > div:nth-child(1),
  15663. .four > div:nth-child(1) {
  15664. margin: 5px 10px 0 0;
  15665. width: 2rem;
  15666. }
  15667. .firstNo,
  15668. .secondNo,
  15669. .thirdNo,
  15670. .fourNo {
  15671. background: #e7e7e7;
  15672. color: #adadad;
  15673. display: flex;
  15674. flex-direction: row;
  15675. align-items: center;
  15676. justify-content: center;
  15677. }
  15678. .firstNo > div:nth-child(1),
  15679. .secondNo > div:nth-child(1),
  15680. .thirdNo > div:nth-child(1),
  15681. .fourNo > div:nth-child(1) {
  15682. margin: 5px 10px 0 0;
  15683. width: 2rem;
  15684. }
  15685. .uploadWidth >>> .el-upload {
  15686. width: 60px;
  15687. height: 60px;
  15688. position: relative;
  15689. }
  15690. .addPeople {
  15691. background: #fa6060;
  15692. width: 150px;
  15693. height: 40px;
  15694. color: #fff;
  15695. border-radius: 5px;
  15696. text-align: center;
  15697. line-height: 40px;
  15698. font-size: 14px;
  15699. cursor: pointer;
  15700. }
  15701. .kcImg {
  15702. width: 60px;
  15703. margin-left: 10px;
  15704. }
  15705. .zyImg {
  15706. width: 55px;
  15707. margin: 0 10px;
  15708. }
  15709. .deleteZy {
  15710. width: 20px;
  15711. position: absolute;
  15712. top: 5px;
  15713. right: 5px;
  15714. cursor: pointer;
  15715. }
  15716. .kcImg > img,
  15717. .zyImg > img,
  15718. .deleteZy > img {
  15719. width: 100%;
  15720. height: 100%;
  15721. }
  15722. .zyBox {
  15723. display: flex;
  15724. flex-direction: row;
  15725. align-items: center;
  15726. background: #67d37d;
  15727. color: #fff;
  15728. width: 210px;
  15729. margin: 20px 20px 0 0;
  15730. border-radius: 10px;
  15731. height: 70px;
  15732. position: relative;
  15733. }
  15734. .upCss {
  15735. display: flex;
  15736. flex-direction: row;
  15737. justify-content: flex-start;
  15738. }
  15739. .upCss >>> .el-icon-plus {
  15740. position: none !important;
  15741. width: 200px;
  15742. height: 100px;
  15743. display: flex;
  15744. flex-wrap: nowrap;
  15745. flex-direction: column;
  15746. align-items: center;
  15747. justify-content: center;
  15748. border: 1px dashed #ccc;
  15749. min-width: 78px;
  15750. min-height: 100px;
  15751. z-index: 999;
  15752. }
  15753. .upCss >>> .el-upload-list__item-name {
  15754. width: 100px;
  15755. white-space: nowrap;
  15756. overflow: hidden;
  15757. text-overflow: ellipsis;
  15758. }
  15759. .upCss >>> .el-upload-list__item .el-icon-close {
  15760. font-size: 20px;
  15761. z-index: 9999;
  15762. }
  15763. .addStageImg {
  15764. min-width: 20px;
  15765. min-height: 20px;
  15766. width: 20px;
  15767. height: 20px;
  15768. cursor: pointer;
  15769. }
  15770. .addHW {
  15771. width: 28px;
  15772. height: 28px;
  15773. cursor: pointer;
  15774. }
  15775. .addStageImg > img,
  15776. .addHW > img {
  15777. width: 100%;
  15778. height: 100%;
  15779. }
  15780. .addNewPP >>> .el-dialog__body {
  15781. padding: 5px 20px;
  15782. }
  15783. .addNewPP >>> .el-dialog {
  15784. margin-top: 5vh !important;
  15785. }
  15786. .addNewPP2 >>> .el-dialog__body {
  15787. padding: 5px 0;
  15788. }
  15789. .addNewPP2 >>> .el-dialog {
  15790. margin-top: 5vh !important;
  15791. }
  15792. .isHeight {
  15793. height: 680px;
  15794. }
  15795. .toolChoose {
  15796. display: flex;
  15797. /* width: 100%; */
  15798. flex-direction: row;
  15799. flex-wrap: wrap;
  15800. }
  15801. .tool,
  15802. .isToolChoose {
  15803. display: flex;
  15804. flex-direction: column;
  15805. flex-wrap: nowrap;
  15806. width: fit-content;
  15807. margin: 10px 0 10px 0;
  15808. align-items: center;
  15809. border: 2px solid #dbdbdb00;
  15810. padding: 10px 20px;
  15811. border-radius: 5px;
  15812. cursor: pointer;
  15813. /* box-shadow: 0 0 2px 0px #dedede; */
  15814. position: relative;
  15815. box-sizing: border-box;
  15816. }
  15817. .tool:hover {
  15818. border: 2px solid #a5c7ff;
  15819. }
  15820. .tool:hover > .noCTool {
  15821. display: block;
  15822. opacity: 0.5;
  15823. }
  15824. .isToolChoose {
  15825. border: 2px solid #438aff !important;
  15826. box-shadow: 0 0 2px 0px #438aff;
  15827. opacity: 1 !important;
  15828. }
  15829. .isCTool,
  15830. .noCTool {
  15831. width: 30px;
  15832. height: 30px;
  15833. position: absolute;
  15834. top: -4px;
  15835. right: -4px;
  15836. }
  15837. .noCTool {
  15838. display: none;
  15839. }
  15840. .isCTool > img,
  15841. .noCTool > img {
  15842. width: 100%;
  15843. height: 100%;
  15844. }
  15845. .tool + .tool {
  15846. margin-right: 10px;
  15847. }
  15848. .whiteBIcon {
  15849. width: 80px;
  15850. cursor: pointer;
  15851. display: flex;
  15852. flex-direction: column;
  15853. flex-wrap: nowrap;
  15854. align-items: center;
  15855. font-size: 14px;
  15856. }
  15857. .whiteBIcon > img,
  15858. .toolIcon > img,
  15859. .arrow > img {
  15860. width: 100%;
  15861. height: 100%;
  15862. }
  15863. .check img {
  15864. width: 20px;
  15865. height: 20px;
  15866. }
  15867. .whiteBIcon > img {
  15868. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15869. border-radius: 15px;
  15870. }
  15871. .whiteBIcon > div:nth-child(2) {
  15872. height: 20px;
  15873. line-height: 20px;
  15874. }
  15875. .check {
  15876. /* width: 20px;
  15877. height: 20px; */
  15878. cursor: pointer;
  15879. margin: 10px 0 0;
  15880. }
  15881. .checkDiv {
  15882. display: flex;
  15883. align-items: center;
  15884. }
  15885. .checkDiv span {
  15886. margin-left: 5px;
  15887. color: #858585;
  15888. }
  15889. .customWidth >>> .el-dialog {
  15890. min-width: 600px !important;
  15891. }
  15892. .CollaborativeCss {
  15893. width: 100%;
  15894. display: flex;
  15895. justify-content: center;
  15896. align-items: center;
  15897. box-sizing: border-box;
  15898. padding: 10px 0;
  15899. cursor: pointer;
  15900. }
  15901. .CollaborativeCss >>> .el-tooltip {
  15902. overflow: hidden;
  15903. white-space: nowrap;
  15904. text-overflow: ellipsis;
  15905. }
  15906. .CollaborativeCss2 {
  15907. background: #e0eafb;
  15908. color: #3681fc;
  15909. font-weight: 700;
  15910. border-radius: 5px;
  15911. }
  15912. .a_addBox {
  15913. margin: 10px 0;
  15914. background: #fff;
  15915. padding: 15px;
  15916. /* max-height: 600px; */
  15917. overflow: auto;
  15918. }
  15919. .a_add_box {
  15920. border-bottom: 2px solid #eee;
  15921. padding-bottom: 25px;
  15922. }
  15923. .a_add_head {
  15924. display: flex;
  15925. align-items: center;
  15926. justify-content: space-between;
  15927. margin: 10px 0 0 0;
  15928. font-size: 18px;
  15929. }
  15930. .a_add_checkType {
  15931. margin-top: 10px;
  15932. display: flex;
  15933. font-size: 14px;
  15934. align-items: center;
  15935. }
  15936. .a_add_checkType span {
  15937. box-sizing: border-box;
  15938. padding: 0 0 5px 0;
  15939. cursor: pointer;
  15940. }
  15941. .a_add_checkType span + span {
  15942. margin-left: 10px;
  15943. }
  15944. .a_add_checkType .active {
  15945. border-bottom: 2px solid #409eff;
  15946. color: #409eff;
  15947. }
  15948. .a_add_head .a_add_head_input {
  15949. /* width: 540px; */
  15950. width: 100%;
  15951. }
  15952. .a_add_head .a_add_head_div {
  15953. display: flex;
  15954. align-items: center;
  15955. justify-content: space-between;
  15956. }
  15957. .a_add_body {
  15958. display: flex;
  15959. /* align-items: center; */
  15960. align-items: flex-end;
  15961. }
  15962. .a_add_input {
  15963. display: flex;
  15964. align-items: center;
  15965. flex-wrap: wrap;
  15966. }
  15967. .a_add_input_choice {
  15968. flex-direction: column;
  15969. margin-right: 10px;
  15970. }
  15971. .a_add_input_choice >>> .el-radio {
  15972. display: flex;
  15973. align-items: center;
  15974. flex-direction: row-reverse;
  15975. margin: 30px 0 0 0;
  15976. position: relative;
  15977. }
  15978. .a_add_input_choice >>> .el-checkbox {
  15979. display: flex;
  15980. align-items: center;
  15981. flex-direction: row-reverse;
  15982. margin: 30px 0 0 0;
  15983. position: relative;
  15984. }
  15985. .width100 {
  15986. width: 100%;
  15987. }
  15988. .a_add_input .a_add_persent {
  15989. width: 100%;
  15990. }
  15991. .a_add_persent_div {
  15992. width: 100%;
  15993. display: flex;
  15994. align-items: center;
  15995. }
  15996. .a_add_persent_div span {
  15997. margin: 5px 0;
  15998. }
  15999. .a_add_persent_div span:nth-child(1) {
  16000. width: 30%;
  16001. }
  16002. .a_add_persent_div span:nth-child(2) {
  16003. width: 7%;
  16004. }
  16005. .a_add_persent_div span:nth-child(3) {
  16006. width: 40%;
  16007. }
  16008. .a_add_body_div {
  16009. display: flex;
  16010. align-items: center;
  16011. justify-content: center;
  16012. /* flex-direction: column; */
  16013. position: absolute;
  16014. right: -20px;
  16015. transform: translateX(100%);
  16016. }
  16017. .a_add_body_div >>> .el-button--primary {
  16018. background: #466b99;
  16019. border: none;
  16020. }
  16021. .all_choose {
  16022. display: flex;
  16023. flex-direction: row;
  16024. align-items: flex-start;
  16025. width: 100%;
  16026. }
  16027. .all_choose + .all_choose {
  16028. /* margin-top: 10px */
  16029. }
  16030. .all_choose > span {
  16031. min-width: fit-content;
  16032. display: block;
  16033. white-space: nowrap;
  16034. overflow: hidden;
  16035. text-overflow: ellipsis;
  16036. margin-right: 20px;
  16037. font-weight: bold;
  16038. font-size: 14px;
  16039. }
  16040. .all_choose >>> .el-checkbox-group {
  16041. display: flex;
  16042. flex-direction: row;
  16043. width: 100%;
  16044. flex-wrap: wrap;
  16045. align-content: center;
  16046. justify-content: flex-start;
  16047. align-items: center;
  16048. margin-top: 3px;
  16049. }
  16050. .all_choose > .el-checkbox-group >>> .el-checkbox {
  16051. margin-bottom: 10px;
  16052. display: flex;
  16053. flex-direction: row;
  16054. align-items: center;
  16055. margin-right: 10px;
  16056. }
  16057. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  16058. min-width: 80px;
  16059. overflow: hidden;
  16060. width: 80px;
  16061. text-overflow: ellipsis;
  16062. white-space: nowrap;
  16063. }
  16064. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  16065. width: auto;
  16066. }
  16067. .choose > div:nth-child(3) > span {
  16068. /* letter-spacing: 0 !important; */
  16069. }
  16070. .choose {
  16071. display: flex;
  16072. flex-direction: column;
  16073. flex-wrap: nowrap;
  16074. height: 100%;
  16075. justify-content: space-evenly;
  16076. align-items: flex-start;
  16077. }
  16078. .both {
  16079. display: flex;
  16080. flex-direction: row;
  16081. flex-wrap: wrap;
  16082. width: 100%;
  16083. align-items: center;
  16084. justify-content: flex-start;
  16085. margin: 15px 0;
  16086. }
  16087. .notice >>> .el-dialog {
  16088. width: 500px !important;
  16089. text-align: center;
  16090. }
  16091. .notice >>> .el-button {
  16092. margin-top: 20px;
  16093. }
  16094. .whiteBg {
  16095. /* background: #fff; */
  16096. border-radius: 10px;
  16097. }
  16098. .wb_j_box {
  16099. display: flex;
  16100. width: 100%;
  16101. padding: 0 20px 0;
  16102. box-sizing: border-box;
  16103. }
  16104. .wb_j_box_content {
  16105. width: calc(100% - 55% - 100px);
  16106. display: flex;
  16107. align-items: center;
  16108. }
  16109. .wb_j_box_p_box {
  16110. max-width: calc(100% - 200px);
  16111. word-break: break-all;
  16112. overflow: hidden;
  16113. margin: 0 0 0 10px;
  16114. font-size: 14px;
  16115. color: #6e6e6e;
  16116. z-index: 999;
  16117. }
  16118. .chooseWho {
  16119. display: flex;
  16120. width: 410px;
  16121. flex-direction: row;
  16122. flex-wrap: nowrap;
  16123. justify-content: space-between;
  16124. padding-bottom: 10px;
  16125. }
  16126. .chooseWho > div {
  16127. cursor: pointer;
  16128. padding-bottom: 10px;
  16129. font-weight: bold;
  16130. }
  16131. .isChooseActive {
  16132. color: #3e88f4;
  16133. border-bottom: 2px solid #2f80f3;
  16134. }
  16135. .toolSort {
  16136. display: flex;
  16137. flex-direction: row;
  16138. flex-wrap: wrap;
  16139. justify-content: flex-start;
  16140. align-items: flex-start;
  16141. }
  16142. .toolSort > div {
  16143. margin-right: 10px;
  16144. }
  16145. .tools {
  16146. width: 100%;
  16147. display: flex;
  16148. flex-direction: column;
  16149. flex-wrap: nowrap;
  16150. align-items: flex-start;
  16151. }
  16152. .leftTools,
  16153. .rightTools {
  16154. width: 50%;
  16155. }
  16156. .leftTools + .leftTools {
  16157. border-top: 1px solid #dbdbdb;
  16158. padding-top: 30px;
  16159. }
  16160. .rightTools {
  16161. display: flex;
  16162. flex-direction: row;
  16163. flex-wrap: nowrap;
  16164. justify-content: space-around;
  16165. }
  16166. .firstToolList {
  16167. display: flex;
  16168. flex-direction: column;
  16169. flex-wrap: nowrap;
  16170. align-items: center;
  16171. }
  16172. .iconList {
  16173. display: flex;
  16174. flex-direction: row;
  16175. flex-wrap: wrap;
  16176. justify-content: flex-start;
  16177. align-items: center;
  16178. margin: 20px 0 5px 0;
  16179. width: 240px;
  16180. min-width: 240px;
  16181. }
  16182. .iconTool {
  16183. display: flex;
  16184. flex-direction: column;
  16185. flex-wrap: nowrap;
  16186. align-items: center;
  16187. justify-content: flex-start;
  16188. margin: 15px 10px;
  16189. }
  16190. .toolIcon {
  16191. width: 50px;
  16192. }
  16193. .taskBorder {
  16194. /* border: 1px solid #CAD1DC; */
  16195. border-radius: 10px;
  16196. margin-top: 10px;
  16197. min-height: 670px;
  16198. position: relative;
  16199. background: #fff;
  16200. padding: 20px;
  16201. overflow: hidden;
  16202. box-sizing: border-box;
  16203. }
  16204. .smallTaskBorder {
  16205. height: 405px;
  16206. min-height: 405px !important;
  16207. overflow: hidden;
  16208. }
  16209. /* .taskBorder>div {
  16210. padding: 30px 30px 10px;
  16211. } */
  16212. .addTaskBorder {
  16213. /* border: 2px solid #5E9AFC; */
  16214. border-radius: 8px;
  16215. margin-top: 10px;
  16216. cursor: pointer;
  16217. /* height: 50px;
  16218. line-height: 50px; */
  16219. background: #fff;
  16220. padding: 15px 0;
  16221. display: flex;
  16222. align-items: center;
  16223. justify-content: center;
  16224. }
  16225. /* .addTaskBorder>div {
  16226. margin: 0 auto;
  16227. display: flex;
  16228. align-items: center;
  16229. justify-content: center;
  16230. }
  16231. .addTaskBorder>div>img {
  16232. width: 20px;
  16233. }
  16234. .addTaskBorder>div>span {
  16235. font-size: 16px;
  16236. margin-left: 10px;
  16237. color: #5E9AFC;
  16238. } */
  16239. .funBlock {
  16240. display: flex;
  16241. padding: 15px 0;
  16242. flex-direction: row;
  16243. justify-content: center;
  16244. align-items: center;
  16245. position: absolute;
  16246. right: 0;
  16247. bottom: 0;
  16248. background: #fff;
  16249. width: 100%;
  16250. height: 60px;
  16251. z-index: 9;
  16252. }
  16253. .fold {
  16254. display: flex;
  16255. margin: 0 20px;
  16256. flex-direction: row;
  16257. align-items: center;
  16258. cursor: pointer;
  16259. color: #2b7bff;
  16260. }
  16261. .arrow {
  16262. margin-right: 8px;
  16263. width: 16px;
  16264. height: 16px;
  16265. min-width: 16px;
  16266. min-height: 16px;
  16267. background-size: 100% 100%;
  16268. display: block;
  16269. background-image: url(../../../assets/icon/new/u_up.png);
  16270. /* border-left: 7px solid transparent;
  16271. border-bottom: 7px solid #717C8D;
  16272. border-top: 0px solid transparent;
  16273. border-right: 7px solid transparent; */
  16274. /* box-sizing: border-box; */
  16275. transition: all 0.3s;
  16276. }
  16277. .arrowZ {
  16278. transform: rotate(180deg);
  16279. }
  16280. .addToolFun {
  16281. display: flex;
  16282. width: 150px;
  16283. flex-direction: row;
  16284. align-items: center;
  16285. justify-content: center;
  16286. border: 2px dashed #cad1dc;
  16287. border-radius: 5px;
  16288. height: 50px;
  16289. margin: 35px auto 0;
  16290. cursor: pointer;
  16291. }
  16292. .addToolFun2 {
  16293. display: flex;
  16294. width: 150px;
  16295. border: 2px dashed #cad1dc;
  16296. flex-direction: row;
  16297. align-items: center;
  16298. justify-content: center;
  16299. border-radius: 5px;
  16300. height: 50px;
  16301. margin: 0 auto 0;
  16302. cursor: pointer;
  16303. }
  16304. .addToolFun2 > div,
  16305. .addToolFun > div {
  16306. display: flex;
  16307. line-height: 50px;
  16308. }
  16309. .addToolImg {
  16310. width: 20px;
  16311. height: 20px;
  16312. margin-right: 10px;
  16313. }
  16314. .addToolsDia >>> .el-dialog__body {
  16315. padding: 20px;
  16316. }
  16317. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16318. padding: 0;
  16319. }
  16320. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16321. padding: 0;
  16322. border-bottom: none;
  16323. margin-bottom: 0;
  16324. }
  16325. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16326. width: 100%;
  16327. }
  16328. .lineCss >>> .el-form-item__label {
  16329. width: auto !important;
  16330. }
  16331. .lineCss >>> .el-form-item__content {
  16332. margin-left: 50px !important;
  16333. }
  16334. .newSteps {
  16335. display: flex;
  16336. width: 100% !important;
  16337. /* height: 80px; */
  16338. cursor: pointer;
  16339. margin: 10px 0;
  16340. border-radius: 10px;
  16341. flex-direction: row;
  16342. align-content: center;
  16343. justify-content: center;
  16344. align-items: center;
  16345. margin: 0 !important;
  16346. }
  16347. /* 评价样式 */
  16348. .elist_css {
  16349. padding-bottom: 75px !important;
  16350. }
  16351. .elist_title {
  16352. margin-bottom: 10px;
  16353. }
  16354. .elist_input {
  16355. width: 100%;
  16356. }
  16357. .elist_input_box {
  16358. display: flex;
  16359. align-items: center;
  16360. flex-wrap: wrap;
  16361. }
  16362. .elist_input_box + .elist_input_box {
  16363. margin-top: 30px;
  16364. }
  16365. .elist_input .elist_input_box input {
  16366. font: inherit;
  16367. color: currentColor;
  16368. width: 100%;
  16369. /* max-width: calc(100% - 385px); */
  16370. max-width: calc(100% - 150px);
  16371. padding: 8px 14px;
  16372. display: block;
  16373. min-width: 0;
  16374. outline: none;
  16375. border: 1px solid rgba(0, 0, 0, 0.23);
  16376. border-radius: 4px;
  16377. box-sizing: border-box;
  16378. background: #fff;
  16379. margin: 0 20px 0 0;
  16380. }
  16381. .elist_input .elist_input_box span {
  16382. height: 36px;
  16383. line-height: 36px;
  16384. color: rgb(82, 82, 82);
  16385. min-width: 80px;
  16386. }
  16387. .elist_input .elist_input_box .remove {
  16388. height: 20px;
  16389. width: 20px;
  16390. min-height: 20px;
  16391. min-width: 20px;
  16392. background-size: 100% 100%;
  16393. background-position: unset;
  16394. margin-left: 5px;
  16395. }
  16396. .elist_input_box >>> .el-rate {
  16397. display: flex;
  16398. height: 36px;
  16399. align-items: center;
  16400. }
  16401. .elist_input_box .elist_inptu_text {
  16402. width: 100%;
  16403. display: flex;
  16404. align-items: center;
  16405. margin-top: 10px;
  16406. }
  16407. .elist_input_box .elist_inptu_text input {
  16408. /* width: 500px; */
  16409. width: 100%;
  16410. max-width: unset;
  16411. }
  16412. .elist_input_box >>> .el-rate__icon {
  16413. font-size: 24px;
  16414. }
  16415. .elist_btn {
  16416. margin-top: 10px;
  16417. }
  16418. .lineTitle {
  16419. /* margin-top: 15px; */
  16420. width: 110px;
  16421. font-size: 16px;
  16422. display: flex;
  16423. align-items: center;
  16424. line-height: 20px;
  16425. }
  16426. .lineTitle::before {
  16427. content: "";
  16428. display: block;
  16429. width: 3px;
  16430. height: 20px;
  16431. background: #0061ff;
  16432. border-radius: 3px;
  16433. margin: 0 5px 0 0;
  16434. }
  16435. .clineTitle::before {
  16436. content: "";
  16437. display: block;
  16438. min-width: 10px;
  16439. width: 10px;
  16440. height: 10px;
  16441. background: #0061ff;
  16442. border-radius: 50%;
  16443. margin: 0 5px 0 0;
  16444. }
  16445. .courseTop {
  16446. display: flex;
  16447. flex-direction: row;
  16448. justify-content: space-between;
  16449. align-items: center;
  16450. width: calc(100% - 40px);
  16451. margin: 0 auto;
  16452. padding: 10px 0;
  16453. }
  16454. .stepsNav {
  16455. display: flex;
  16456. flex-direction: row;
  16457. justify-content: flex-start;
  16458. align-items: center;
  16459. }
  16460. .stepsWord {
  16461. font-size: 18px;
  16462. color: #fff;
  16463. font-weight: bold;
  16464. margin-left: auto;
  16465. background: rgb(15, 126, 255);
  16466. border-radius: 5px;
  16467. padding: 3px 25px;
  16468. box-sizing: border-box;
  16469. }
  16470. .stepBox {
  16471. width: calc(100% - 40px);
  16472. height: calc(100% - 50px);
  16473. overflow: hidden;
  16474. border-radius: 5px;
  16475. margin: 0 auto;
  16476. }
  16477. .rightBox {
  16478. width: calc(100%);
  16479. background: #f0f2f5;
  16480. /* border-radius: 10px; */
  16481. overflow: auto;
  16482. height: calc(100% - 150px);
  16483. margin: 0 auto;
  16484. position: relative;
  16485. box-sizing: border-box;
  16486. }
  16487. .e_add_top {
  16488. display: flex;
  16489. justify-content: space-between;
  16490. background: #fff;
  16491. position: absolute;
  16492. right: 20px;
  16493. height: 50px;
  16494. align-items: center;
  16495. }
  16496. .e_add_title2 {
  16497. display: flex;
  16498. align-items: center;
  16499. }
  16500. .e_add_title2 span {
  16501. width: 40px;
  16502. }
  16503. .e_add_title {
  16504. display: flex;
  16505. align-items: center;
  16506. color: #b8b8b8;
  16507. font-size: 18px;
  16508. position: relative;
  16509. height: 40px;
  16510. }
  16511. .e_add_title span {
  16512. margin-right: 10px;
  16513. }
  16514. .e_add_title .el_input {
  16515. width: 300px;
  16516. }
  16517. .e_add_title >>> .el-input__inner {
  16518. width: 400px;
  16519. }
  16520. .e_add_btn {
  16521. }
  16522. .e_add_content {
  16523. display: flex;
  16524. width: 100%;
  16525. }
  16526. .e_add_list {
  16527. background: #fff;
  16528. height: 500px;
  16529. width: 210px;
  16530. position: relative;
  16531. margin: 15px 5px 0 0;
  16532. flex-shrink: 0;
  16533. display: flex;
  16534. flex-direction: column;
  16535. }
  16536. .e_add_list_title {
  16537. font-size: 20px;
  16538. width: 100%;
  16539. box-sizing: border-box;
  16540. padding: 15px 40px;
  16541. text-align: center;
  16542. border-bottom: 1px solid #eaeaea;
  16543. position: relative;
  16544. display: flex;
  16545. align-items: center;
  16546. justify-content: center;
  16547. height: 57px;
  16548. background: #f6f6f6;
  16549. }
  16550. .e_add_list_title span {
  16551. overflow: hidden;
  16552. white-space: nowrap;
  16553. text-overflow: ellipsis;
  16554. }
  16555. .e_add_list_title img {
  16556. position: absolute;
  16557. right: 15px;
  16558. width: 25px;
  16559. cursor: pointer;
  16560. top: 50%;
  16561. transform: translateY(-50%);
  16562. }
  16563. .e_add_list_body {
  16564. height: calc(100% - 187px);
  16565. overflow: auto;
  16566. }
  16567. .e_add_list_child {
  16568. width: 100%;
  16569. display: flex;
  16570. align-items: center;
  16571. justify-content: center;
  16572. position: relative;
  16573. box-sizing: border-box;
  16574. padding: 15px 40px;
  16575. text-align: center;
  16576. }
  16577. .e_add_list_child span {
  16578. overflow: hidden;
  16579. white-space: nowrap;
  16580. text-overflow: ellipsis;
  16581. cursor: pointer;
  16582. }
  16583. .e_add_list_child img {
  16584. position: absolute;
  16585. right: 10px;
  16586. width: 21px;
  16587. cursor: pointer;
  16588. top: 50%;
  16589. transform: translateY(-50%);
  16590. }
  16591. .e_add_list_child + .e_add_list_child {
  16592. border-top: 1px solid #eaeaea;
  16593. }
  16594. .e_add_list_child .active {
  16595. color: #409eff;
  16596. }
  16597. .e_add_list_btn {
  16598. position: absolute;
  16599. bottom: 0;
  16600. height: 50px;
  16601. background: rgb(120, 120, 254);
  16602. width: 100%;
  16603. color: #fff;
  16604. font-size: 16px;
  16605. text-align: center;
  16606. line-height: 50px;
  16607. cursor: pointer;
  16608. }
  16609. .e_add_list_detail {
  16610. position: absolute;
  16611. bottom: 0;
  16612. height: 130px;
  16613. background: rgb(120, 120, 254);
  16614. width: 100%;
  16615. color: #fff;
  16616. font-size: 16px;
  16617. display: flex;
  16618. align-items: center;
  16619. justify-content: center;
  16620. }
  16621. .e_add_list_detail textarea {
  16622. height: 90%;
  16623. width: 95%;
  16624. border: none;
  16625. resize: none;
  16626. outline: none;
  16627. padding: 5px;
  16628. box-sizing: border-box;
  16629. }
  16630. .e_add_list_pbox {
  16631. width: 100%;
  16632. }
  16633. .e_add_list_pbox_title {
  16634. height: 50px;
  16635. background: #fff;
  16636. display: flex;
  16637. align-items: center;
  16638. width: 100%;
  16639. box-sizing: border-box;
  16640. padding: 0 20px;
  16641. flex-direction: row;
  16642. flex-wrap: wrap;
  16643. }
  16644. .type_title {
  16645. font-size: 18px;
  16646. font-weight: 700;
  16647. }
  16648. .type_content {
  16649. font-size: 16px;
  16650. margin-left: 30px;
  16651. }
  16652. .type_content span + span {
  16653. margin-left: 20px;
  16654. }
  16655. .type_content span {
  16656. cursor: pointer;
  16657. padding-bottom: 5px;
  16658. box-sizing: border-box;
  16659. }
  16660. .type_content .active {
  16661. color: #409eff;
  16662. border-bottom: 2px solid #409eff;
  16663. }
  16664. .e_add_list_pbox_content {
  16665. height: calc(100% - 50px);
  16666. display: flex;
  16667. align-items: center;
  16668. width: 100%;
  16669. background: #fff;
  16670. }
  16671. .mbCss {
  16672. width: 100%;
  16673. display: flex;
  16674. flex-direction: row;
  16675. flex-wrap: nowrap;
  16676. align-content: center;
  16677. align-items: flex-start;
  16678. justify-content: flex-start;
  16679. }
  16680. .pjCss {
  16681. /* width: 42%; */
  16682. width: calc(100% - 55%);
  16683. display: flex;
  16684. flex-direction: column;
  16685. flex-wrap: nowrap;
  16686. align-items: flex-start;
  16687. }
  16688. .e_box {
  16689. /* display: flex; */
  16690. flex-wrap: wrap;
  16691. max-height: 500px;
  16692. align-items: flex-start;
  16693. overflow: auto;
  16694. width: 100%;
  16695. }
  16696. .e_card {
  16697. border: 1px solid #ccc;
  16698. background: #fff;
  16699. margin-right: 20px;
  16700. width: 270px;
  16701. display: flex;
  16702. flex-direction: column;
  16703. align-items: center;
  16704. border-radius: 5px;
  16705. margin-top: 10px;
  16706. text-align: center;
  16707. }
  16708. .e_card_picture {
  16709. margin: 10px 0;
  16710. }
  16711. .e_card_picture > img {
  16712. width: 50px;
  16713. }
  16714. .e_card_name {
  16715. width: 100%;
  16716. padding: 0 10px;
  16717. box-sizing: border-box;
  16718. margin-bottom: 10px;
  16719. overflow: hidden;
  16720. text-overflow: ellipsis;
  16721. white-space: nowrap;
  16722. }
  16723. .e_card_time {
  16724. width: 100%;
  16725. padding: 0 10px;
  16726. box-sizing: border-box;
  16727. font-size: 15px;
  16728. color: #c3c3c3;
  16729. margin-bottom: 10px;
  16730. }
  16731. .e_card_btn {
  16732. height: 40px;
  16733. display: flex;
  16734. align-items: center;
  16735. width: 100%;
  16736. background: rgb(244, 244, 244);
  16737. }
  16738. .e_card_btn:hover {
  16739. background: rgb(221 221 221);
  16740. }
  16741. .e_card_btn span {
  16742. flex: 1 1 auto;
  16743. text-align: center;
  16744. cursor: pointer;
  16745. }
  16746. .addEva {
  16747. border: 1px solid #ccc;
  16748. background: #fff;
  16749. margin-right: 20px;
  16750. width: 270px;
  16751. height: 149px;
  16752. display: flex;
  16753. flex-direction: column;
  16754. align-items: center;
  16755. border-radius: 5px;
  16756. margin-top: 10px;
  16757. text-align: center;
  16758. cursor: pointer;
  16759. justify-content: center;
  16760. }
  16761. .addEva > img {
  16762. width: 50px;
  16763. object-fit: cover;
  16764. }
  16765. .uploadFm {
  16766. border: 1px dashed #ccc;
  16767. width: 100%;
  16768. height: 140px;
  16769. position: relative;
  16770. cursor: pointer;
  16771. display: flex;
  16772. flex-direction: column;
  16773. justify-content: center;
  16774. align-items: center;
  16775. font-size: 14px;
  16776. color: #6e6e6e;
  16777. position: relative;
  16778. }
  16779. .cover_p {
  16780. width: 100% !important;
  16781. height: 100%;
  16782. object-fit: cover;
  16783. }
  16784. .uploadFm2:hover .cover_mask {
  16785. display: flex !important;
  16786. }
  16787. .cover_mask {
  16788. display: none;
  16789. width: 100%;
  16790. height: 100%;
  16791. position: absolute;
  16792. background: #00000054;
  16793. align-items: center;
  16794. justify-content: center;
  16795. flex-direction: column;
  16796. }
  16797. .cover_mask > img {
  16798. width: 30px;
  16799. }
  16800. .cover_mask > span {
  16801. color: #fff;
  16802. font-size: 12px;
  16803. }
  16804. .uploadFm > img {
  16805. width: 50px;
  16806. }
  16807. .fileCss {
  16808. width: 100%;
  16809. display: flex;
  16810. flex-direction: row;
  16811. flex-wrap: nowrap;
  16812. justify-content: space-around;
  16813. align-items: center;
  16814. padding-top: 15px;
  16815. }
  16816. .fileCss > div {
  16817. display: flex;
  16818. flex-direction: column;
  16819. align-items: center;
  16820. }
  16821. .fileCss .spanName {
  16822. margin-top: 10px;
  16823. }
  16824. .sysPicBox {
  16825. display: flex;
  16826. flex-direction: row;
  16827. flex-wrap: wrap;
  16828. align-content: flex-start;
  16829. height: 435px;
  16830. overflow: auto;
  16831. position: relative;
  16832. }
  16833. .picNone {
  16834. position: absolute;
  16835. left: 50%;
  16836. top: 45%;
  16837. transform: translate(-50%, -50%);
  16838. width: fit-content;
  16839. color: #9c9c9c;
  16840. }
  16841. .sysPic {
  16842. width: 200px;
  16843. height: 115px;
  16844. margin: 0 20px 20px 0;
  16845. cursor: pointer;
  16846. }
  16847. .sysPic > img,
  16848. .isSysPic > img,
  16849. .deletePic > img {
  16850. width: 100%;
  16851. height: 100%;
  16852. object-fit: cover;
  16853. }
  16854. .isSysPic {
  16855. width: 200px;
  16856. height: 115px;
  16857. position: relative;
  16858. }
  16859. .deletePic {
  16860. width: 20px;
  16861. height: 20px;
  16862. position: absolute;
  16863. top: 0;
  16864. right: 0;
  16865. cursor: pointer;
  16866. }
  16867. .select_box1 {
  16868. height: 100%;
  16869. }
  16870. .select_box1_img {
  16871. background: #fff;
  16872. border-radius: 5px;
  16873. padding: 15px;
  16874. box-sizing: border-box;
  16875. margin-bottom: 20px;
  16876. }
  16877. .select_box1_title {
  16878. padding: 0 0 15px 0;
  16879. border-bottom: 1px solid #eee;
  16880. margin-bottom: 15px;
  16881. }
  16882. .select_box1_title span:nth-child(1) {
  16883. font-size: 16px;
  16884. margin-right: 20px;
  16885. color: #000;
  16886. }
  16887. .select_box1_title span:nth-child(2) {
  16888. font-size: 14px;
  16889. color: rgb(112, 112, 112);
  16890. }
  16891. .select_box1_add_img {
  16892. }
  16893. .select_box1_select {
  16894. background: #fff;
  16895. border-radius: 5px;
  16896. padding: 15px;
  16897. box-sizing: border-box;
  16898. height: calc(100% - 200px);
  16899. overflow: auto;
  16900. }
  16901. .select_box2 {
  16902. height: 100%;
  16903. }
  16904. .select_box2_title {
  16905. background: #fff;
  16906. border-radius: 5px;
  16907. padding: 5px 10px;
  16908. box-sizing: border-box;
  16909. margin-bottom: 10px;
  16910. }
  16911. .select_box2_box {
  16912. display: flex;
  16913. height: calc(100% - 30px);
  16914. }
  16915. .select_box2_img {
  16916. width: calc(100% - 310px);
  16917. height: 100%;
  16918. overflow: auto;
  16919. background: #fff;
  16920. border-radius: 5px;
  16921. }
  16922. .select_box2_img img {
  16923. width: 100%;
  16924. }
  16925. .select_box2_answer {
  16926. background: #fff;
  16927. margin-left: 10px;
  16928. border-radius: 5px;
  16929. width: 300px;
  16930. overflow: auto;
  16931. height: 100%;
  16932. display: flex;
  16933. flex-direction: column;
  16934. align-items: center;
  16935. padding-top: 10px;
  16936. box-sizing: border-box;
  16937. }
  16938. .select_box2_answer_box {
  16939. margin: 0 0 10px 0;
  16940. width: 85%;
  16941. }
  16942. .rate_textarea {
  16943. font: inherit;
  16944. color: currentColor;
  16945. width: 100%;
  16946. padding: 8px 14px;
  16947. display: block;
  16948. min-width: 0;
  16949. outline: none;
  16950. border: 1px solid rgba(0, 0, 0, 0.23);
  16951. border-radius: 4px;
  16952. box-sizing: border-box;
  16953. background: #fff;
  16954. margin: 0 20px 0 0;
  16955. resize: none;
  16956. }
  16957. .select_answer_title {
  16958. text-align: left;
  16959. width: 85%;
  16960. margin-bottom: 10px;
  16961. font-size: 18px;
  16962. color: #8e8e8e;
  16963. }
  16964. .mask {
  16965. background-color: rgb(0 0 0 / 30%);
  16966. /* position: fixed; */
  16967. position: absolute;
  16968. top: 0;
  16969. left: 0;
  16970. width: 100%;
  16971. height: 100%;
  16972. z-index: 90;
  16973. display: flex;
  16974. align-items: center;
  16975. justify-content: center;
  16976. }
  16977. .progressBox {
  16978. width: 300px;
  16979. height: 150px;
  16980. background: #fff;
  16981. border-radius: 10px;
  16982. box-shadow: 0 0 6px 1px #bfbfbf;
  16983. display: flex;
  16984. align-items: center;
  16985. justify-content: center;
  16986. flex-direction: column;
  16987. position: relative;
  16988. color: #6c6c6c;
  16989. }
  16990. .progressBox >>> .el-progress-bar__outer {
  16991. background-color: #d1dfff !important;
  16992. }
  16993. .progressBox .lbox {
  16994. height: 50px;
  16995. font-size: 19px;
  16996. display: flex;
  16997. align-items: center;
  16998. color: #747474;
  16999. }
  17000. .progressBox .lbox img {
  17001. width: 40px;
  17002. margin-right: 20px;
  17003. }
  17004. .closeCss {
  17005. position: absolute;
  17006. top: 8px;
  17007. right: 8px;
  17008. cursor: pointer;
  17009. width: 20px;
  17010. height: 20px;
  17011. }
  17012. .closeCss > img {
  17013. width: 100%;
  17014. height: 100%;
  17015. }
  17016. .updateTips::before {
  17017. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  17018. font-size: 14px;
  17019. margin-left: 20px;
  17020. font-weight: 400;
  17021. color: #ff3a3a;
  17022. margin-bottom: 10px;
  17023. display: block;
  17024. }
  17025. .updateMask {
  17026. width: 100%;
  17027. z-index: 3;
  17028. top: 0;
  17029. position: absolute;
  17030. /* background-color: rgba(0,0,0,.3); */
  17031. }
  17032. .t_j_box {
  17033. display: flex;
  17034. }
  17035. .t_j_box span:nth-child(1) {
  17036. width: 15%;
  17037. overflow: hidden;
  17038. margin-right: 10px;
  17039. text-overflow: ellipsis;
  17040. white-space: nowrap;
  17041. }
  17042. .t_j_box span:nth-child(2) {
  17043. width: 30%;
  17044. overflow: hidden;
  17045. text-overflow: ellipsis;
  17046. margin-right: 10px;
  17047. }
  17048. .t_j_box span:nth-child(3) {
  17049. max-width: calc(55% - 20px);
  17050. overflow: hidden;
  17051. text-overflow: ellipsis;
  17052. }
  17053. .sentenBox {
  17054. background: #fff;
  17055. height: 600px;
  17056. overflow: auto;
  17057. background-image: url("../../../assets/icon/conSentences/csBg.png");
  17058. background-position: 102%;
  17059. background-repeat: no-repeat;
  17060. background-size: 60%;
  17061. }
  17062. .sentenBox > .sentenContent {
  17063. padding-bottom: 10px;
  17064. width: 97%;
  17065. margin: 0 auto;
  17066. }
  17067. .sentenBox > .sentenContent + .sentenContent {
  17068. border-top: 1px solid #cbcbcb;
  17069. }
  17070. .addSen {
  17071. background: #409efe;
  17072. width: 90px;
  17073. color: #fff;
  17074. height: 35px;
  17075. text-align: center;
  17076. line-height: 35px;
  17077. border-radius: 5px;
  17078. float: right;
  17079. margin: 10px 20px 0 0;
  17080. cursor: pointer;
  17081. }
  17082. .sentenTop {
  17083. display: flex;
  17084. flex-direction: row;
  17085. flex-wrap: nowrap;
  17086. align-items: center;
  17087. }
  17088. .sentenTop::before {
  17089. content: attr(index);
  17090. background: #3681fc;
  17091. border-radius: 50%;
  17092. color: #fff;
  17093. width: 25px;
  17094. height: 25px;
  17095. min-width: 25px;
  17096. min-height: 25px;
  17097. text-align: center;
  17098. line-height: 25px;
  17099. margin-right: 5px;
  17100. }
  17101. .sentenTop > div:nth-child(2) {
  17102. width: 300px;
  17103. margin: 0 15px;
  17104. }
  17105. .sentenTop > div:nth-child(3) {
  17106. background: #409efe;
  17107. color: #fff;
  17108. width: 65px;
  17109. height: 35px;
  17110. text-align: center;
  17111. line-height: 35px;
  17112. border-radius: 5px;
  17113. cursor: pointer;
  17114. }
  17115. .cardList {
  17116. padding: 30px 0 20px 0;
  17117. display: flex;
  17118. flex-direction: row;
  17119. flex-wrap: wrap;
  17120. align-items: center;
  17121. box-sizing: border-box;
  17122. border-bottom: 1px solid #f4f4f4;
  17123. width: 98%;
  17124. margin: 0 auto;
  17125. }
  17126. .rightCardList {
  17127. display: flex;
  17128. flex-wrap: wrap;
  17129. }
  17130. .cardBox {
  17131. display: flex;
  17132. flex-direction: row;
  17133. flex-wrap: wrap;
  17134. align-items: center;
  17135. align-content: center;
  17136. }
  17137. .isCard,
  17138. .isCard1 {
  17139. width: auto;
  17140. padding: 0 20px;
  17141. height: 65px;
  17142. text-align: center;
  17143. line-height: 65px;
  17144. font-size: 14px;
  17145. cursor: pointer;
  17146. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  17147. background-size: 100% 100%;
  17148. position: relative;
  17149. z-index: 99;
  17150. }
  17151. .isCard1 {
  17152. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  17153. }
  17154. .isCard:hover .deleteWord {
  17155. display: block;
  17156. }
  17157. .isCard > div:nth-child(1),
  17158. .isCard1 > div:nth-child(1) {
  17159. white-space: nowrap;
  17160. overflow: hidden;
  17161. text-overflow: ellipsis;
  17162. width: 100%;
  17163. margin: 0 auto;
  17164. }
  17165. .card {
  17166. width: 140px;
  17167. height: 65px;
  17168. }
  17169. .card > img {
  17170. width: 100%;
  17171. height: 100%;
  17172. }
  17173. .rightCardBox {
  17174. width: 98%;
  17175. margin: 10px auto 0;
  17176. }
  17177. .rightCardBox > div:nth-child(1) {
  17178. margin-bottom: 10px;
  17179. }
  17180. .cardCss {
  17181. display: flex;
  17182. flex-direction: column;
  17183. flex-wrap: nowrap;
  17184. align-items: center;
  17185. border-bottom: 3px solid #b4c3d3;
  17186. padding: 0 0 5px 0;
  17187. /* margin-right: 10px; */
  17188. }
  17189. .cardCss > div:nth-child(2) {
  17190. background: #5b7b9d;
  17191. color: #fff;
  17192. width: 20px;
  17193. height: 20px;
  17194. border-radius: 50%;
  17195. text-align: center;
  17196. line-height: 20px;
  17197. }
  17198. .sentenTopBox {
  17199. display: flex;
  17200. flex-direction: row;
  17201. flex-wrap: nowrap;
  17202. align-items: center;
  17203. justify-content: space-between;
  17204. padding: 55px 0 0 20px;
  17205. box-sizing: border-box;
  17206. width: 85%;
  17207. }
  17208. .stepsBottom {
  17209. width: 100%;
  17210. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17211. background: #fff;
  17212. border-radius: 10px;
  17213. overflow: hidden;
  17214. height: 100%;
  17215. height: calc(100vh - 300px);
  17216. position: sticky;
  17217. top: 0;
  17218. }
  17219. .navTop {
  17220. background: #53749b;
  17221. color: #fff;
  17222. height: 40px;
  17223. line-height: 40px;
  17224. padding-left: 15px;
  17225. font-size: 18px;
  17226. }
  17227. .navBottom {
  17228. /* background: #6b91b7; */
  17229. height: 100%;
  17230. overflow: auto;
  17231. padding: 10px 0;
  17232. box-sizing: border-box;
  17233. }
  17234. .navStage {
  17235. display: flex;
  17236. flex-direction: row;
  17237. flex-wrap: nowrap;
  17238. align-items: center;
  17239. padding: 10px 10px 10px 0;
  17240. cursor: pointer;
  17241. background: #ffffff;
  17242. width: 95%;
  17243. margin: 5px auto 5px;
  17244. box-sizing: border-box;
  17245. border-radius: 5px;
  17246. flex-wrap: wrap;
  17247. position: relative;
  17248. }
  17249. .navStage:hover > .chapter_upload_drag {
  17250. display: block;
  17251. }
  17252. .navTask:hover > .chapter_upload_drag {
  17253. display: block;
  17254. }
  17255. .chapter_upload:hover > .chapter_upload_drag {
  17256. display: block;
  17257. }
  17258. .navStage::before {
  17259. content: "";
  17260. display: block;
  17261. width: 16px;
  17262. height: 16px;
  17263. background-image: url(../../../assets/icon/new/icon_stage.png);
  17264. background-size: 100%;
  17265. margin-left: 25px;
  17266. }
  17267. .navStage .chapter_unit_open {
  17268. content: "";
  17269. display: block;
  17270. width: 16px;
  17271. height: 16px;
  17272. background-image: url(../../../assets/icon/new/down.png);
  17273. transform: rotate(-90deg);
  17274. background-size: 100%;
  17275. margin-left: 10px;
  17276. transition: all 0.5s;
  17277. }
  17278. .isNavStageOpen .chapter_unit_open {
  17279. transform: rotate(0deg);
  17280. }
  17281. .isNavStage {
  17282. background: #0061ff;
  17283. }
  17284. .isNavStage::before {
  17285. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  17286. }
  17287. .isNavStage .chapter_unit_open {
  17288. background-image: url(../../../assets/icon/new/downC.png);
  17289. }
  17290. .isNavStage .nt_taskName {
  17291. font-weight: bold !important;
  17292. color: #ffffff !important;
  17293. }
  17294. .isNavStage .nt_taskTitle {
  17295. font-weight: bold !important;
  17296. color: #fff !important;
  17297. }
  17298. .navStage .nt_taskBox {
  17299. width: calc(100% - 68px);
  17300. padding: 0 0 0 5px;
  17301. box-sizing: border-box;
  17302. box-sizing: border-box;
  17303. display: flex;
  17304. flex-direction: row;
  17305. flex-wrap: nowrap;
  17306. align-items: baseline;
  17307. }
  17308. .navStage .nt_taskTitle {
  17309. color: #060e17;
  17310. line-height: 25px;
  17311. font-size: 16px;
  17312. }
  17313. .navStage .nt_taskName {
  17314. max-width: calc(100% - 82px);
  17315. white-space: nowrap;
  17316. overflow: hidden;
  17317. text-overflow: ellipsis;
  17318. font-size: 16px;
  17319. color: #060e17;
  17320. }
  17321. .navTask {
  17322. display: flex;
  17323. flex-direction: row;
  17324. flex-wrap: nowrap;
  17325. align-items: center;
  17326. padding: 10px 10px 10px 0;
  17327. cursor: pointer;
  17328. background: #ffffff;
  17329. width: 95%;
  17330. margin: 5px auto 5px;
  17331. box-sizing: border-box;
  17332. border-radius: 5px;
  17333. flex-wrap: wrap;
  17334. position: relative;
  17335. }
  17336. .navTask .chapter_upload_open {
  17337. content: "";
  17338. display: block;
  17339. width: 16px;
  17340. height: 16px;
  17341. background-image: url(../../../assets/icon/new/icon_arrow.png);
  17342. background-size: 100%;
  17343. margin-left: 23px;
  17344. }
  17345. .noImage .chapter_upload_open {
  17346. display: none;
  17347. background-image: unset !important;
  17348. }
  17349. .isNavOpen .chapter_upload_open {
  17350. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  17351. transform: rotate(90deg);
  17352. }
  17353. .isNavTask .chapter_upload_open {
  17354. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  17355. transform: rotate(-90deg);
  17356. }
  17357. .isNavTask.isNavOpen .chapter_upload_open {
  17358. transform: rotate(0deg);
  17359. }
  17360. .dragOverTop {
  17361. border-top: 2px solid #0061ff !important;
  17362. border-radius: 0 !important;
  17363. margin-top: 10px;
  17364. }
  17365. .dragOverBottom {
  17366. border-bottom: 2px solid #0061ff !important;
  17367. border-radius: 0 !important;
  17368. margin-top: 10px;
  17369. }
  17370. .dragOverTop2 {
  17371. border-top: 2px solid #0061ff !important;
  17372. border-radius: 0 !important;
  17373. }
  17374. .dragOverBottom2 {
  17375. border-bottom: 2px solid #0061ff !important;
  17376. border-radius: 0 !important;
  17377. }
  17378. .isNavTask {
  17379. /* background: #3681FC; */
  17380. background: #eef3fb;
  17381. }
  17382. .isNavTask > .chapter_upload_drag {
  17383. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  17384. }
  17385. .isNavTask .nt_taskName {
  17386. /* color: #fff !important; */
  17387. font-weight: bold !important;
  17388. color: #0061ff !important;
  17389. }
  17390. .isNavTask .nt_taskTitle {
  17391. /* color: #AECCFE !important; */
  17392. font-weight: bold !important;
  17393. color: #0061ff !important;
  17394. }
  17395. .navTask .nt_taskBox {
  17396. width: calc(100% - 40px);
  17397. padding: 0 0 0 5px;
  17398. box-sizing: border-box;
  17399. box-sizing: border-box;
  17400. display: flex;
  17401. flex-direction: row;
  17402. flex-wrap: nowrap;
  17403. align-items: baseline;
  17404. }
  17405. .navTask .nt_taskTitle {
  17406. /* color: #717C8D; */
  17407. color: #060e17;
  17408. line-height: 25px;
  17409. font-size: 16px;
  17410. /* min-width: 66px; */
  17411. }
  17412. .navTask .nt_taskName {
  17413. /* color: #fff; */
  17414. /* max-width: 130px; */
  17415. /* width: 100%; */
  17416. max-width: calc(100% - 66px);
  17417. font-size: 16px;
  17418. color: #060e17;
  17419. /* color: #0E1E33; */
  17420. }
  17421. .navTask .nt_taskName span {
  17422. width: 100%;
  17423. white-space: nowrap;
  17424. overflow: hidden;
  17425. text-overflow: ellipsis;
  17426. display: block;
  17427. }
  17428. .gjBox {
  17429. width: calc(100% - 25px);
  17430. padding: 0 0 0 0;
  17431. box-sizing: border-box;
  17432. border-left: 1px solid #cad1dc;
  17433. margin-left: 25px;
  17434. }
  17435. .gjBox > div {
  17436. display: flex;
  17437. align-items: center;
  17438. }
  17439. .gjBox > div::before {
  17440. content: "";
  17441. height: 1px;
  17442. width: 10px;
  17443. background: #cad1dc;
  17444. display: block;
  17445. margin-right: 5px;
  17446. }
  17447. .gjCss {
  17448. display: flex;
  17449. flex-direction: row;
  17450. flex-wrap: nowrap;
  17451. align-items: center;
  17452. padding: 15px 0;
  17453. box-sizing: border-box;
  17454. font-size: 14px;
  17455. cursor: pointer;
  17456. }
  17457. .isGjCss {
  17458. color: #0061ff;
  17459. }
  17460. .groupBox {
  17461. }
  17462. .groupContent + .groupContent {
  17463. margin-top: 30px;
  17464. }
  17465. .groupTitle {
  17466. font-size: 24px;
  17467. color: rgb(80, 80, 80);
  17468. margin-bottom: 20px;
  17469. }
  17470. .groupName {
  17471. display: flex;
  17472. align-items: center;
  17473. }
  17474. .groupn {
  17475. font-size: 15px;
  17476. margin-right: 10px;
  17477. }
  17478. .groupName + .groupName {
  17479. margin-top: 15px;
  17480. }
  17481. .groupBtn {
  17482. margin-left: 10px;
  17483. }
  17484. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  17485. text-align: left;
  17486. }
  17487. .radioBox > div {
  17488. margin: 10px 0 0 10px;
  17489. }
  17490. .radioBox >>> .el-radio__input,
  17491. .radioBox >>> .el-checkbox__inner {
  17492. margin-left: 10px;
  17493. }
  17494. .radioBox >>> .el-radio__label,
  17495. .radioBox >>> .el-checkbox__label {
  17496. display: flex;
  17497. align-items: center;
  17498. }
  17499. .inImg {
  17500. width: 50px;
  17501. }
  17502. .inImg > img {
  17503. width: 100%;
  17504. height: 100%;
  17505. object-fit: cover;
  17506. }
  17507. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  17508. height: auto;
  17509. padding: 10px;
  17510. margin: 0;
  17511. }
  17512. .upCss >>> .el-upload-list {
  17513. width: 100%;
  17514. }
  17515. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  17516. width: 100%;
  17517. height: 120px;
  17518. object-fit: contain;
  17519. background: unset;
  17520. margin-left: 0;
  17521. }
  17522. .upCss
  17523. >>> .el-upload-list--picture
  17524. .el-upload-list__item.is-success
  17525. .el-upload-list__item-name {
  17526. display: none;
  17527. }
  17528. .tcMember + .tcMember::before {
  17529. content: "、";
  17530. }
  17531. .xzUpImg {
  17532. width: 25px;
  17533. height: 25px;
  17534. min-width: 25px;
  17535. min-height: 25px;
  17536. cursor: pointer;
  17537. margin: 0 10px;
  17538. }
  17539. .xzUpImg > img {
  17540. width: 100%;
  17541. height: 100%;
  17542. }
  17543. .closeCss {
  17544. position: absolute;
  17545. top: 8px;
  17546. right: 8px;
  17547. cursor: pointer;
  17548. width: 20px;
  17549. height: 20px;
  17550. }
  17551. .closeCss > img {
  17552. width: 100%;
  17553. height: 100%;
  17554. }
  17555. .moveBtn {
  17556. display: flex;
  17557. flex-direction: row;
  17558. flex-wrap: nowrap;
  17559. align-items: center;
  17560. width: 55px;
  17561. }
  17562. .timuUpImg {
  17563. display: flex;
  17564. flex-direction: row;
  17565. align-items: center;
  17566. width: 100%;
  17567. margin-right: 10px;
  17568. }
  17569. .timuUpImg > div:nth-child(1) {
  17570. margin-right: 10px;
  17571. display: flex;
  17572. align-items: center;
  17573. width: 100%;
  17574. }
  17575. .timuImgBox {
  17576. margin: 10px 0;
  17577. display: flex;
  17578. flex-direction: column;
  17579. flex-wrap: wrap;
  17580. align-items: flex-start;
  17581. }
  17582. .timuImg {
  17583. width: 100px;
  17584. margin: 5px 0;
  17585. cursor: pointer;
  17586. position: relative;
  17587. }
  17588. .timuImg:hover .deleteWord {
  17589. display: block;
  17590. }
  17591. .deleteWord {
  17592. width: 25px;
  17593. height: 25px;
  17594. position: absolute;
  17595. right: -5px;
  17596. top: -5px;
  17597. cursor: pointer;
  17598. display: none;
  17599. }
  17600. .timuImg > img,
  17601. .deleteWord > img {
  17602. width: 100%;
  17603. height: 100%;
  17604. object-fit: cover;
  17605. }
  17606. .e_add_delete {
  17607. cursor: pointer;
  17608. margin-left: 10px;
  17609. }
  17610. .pType_box {
  17611. margin-top: 30px;
  17612. align-items: flex-end;
  17613. }
  17614. .noneBox {
  17615. height: 200px;
  17616. width: 100%;
  17617. display: flex;
  17618. align-items: center;
  17619. justify-content: center;
  17620. flex-direction: column;
  17621. /* margin-top: 150px; */
  17622. }
  17623. .noneBox > img {
  17624. width: 95px;
  17625. }
  17626. .noneBox > span {
  17627. margin-top: 10px;
  17628. color: #717c8d;
  17629. }
  17630. .rb_c_box {
  17631. width: 100%;
  17632. /* height: 100%; */
  17633. display: flex;
  17634. /* padding: 20px; */
  17635. box-sizing: border-box;
  17636. justify-content: space-between;
  17637. margin-top: 10px;
  17638. }
  17639. .rb_c_box_left {
  17640. /* min-height: 500px; */
  17641. /* background: #fff; */
  17642. width: 270px;
  17643. min-width: 270px;
  17644. border-radius: 8px;
  17645. margin-right: 10px;
  17646. /* position: sticky; */
  17647. }
  17648. .rb_c_box_right {
  17649. height: auto;
  17650. width: calc(100% - 280px);
  17651. /* overflow: hidden; */
  17652. }
  17653. .rb_c_box_btn {
  17654. display: flex;
  17655. justify-content: flex-start;
  17656. height: 50px;
  17657. align-items: center;
  17658. }
  17659. .rb_c_box_right > .basic_box {
  17660. /* background: #fff; */
  17661. border-radius: 0;
  17662. /* height: calc(100% - 0px); */
  17663. /* overflow: auto; */
  17664. padding: 0;
  17665. }
  17666. .textarea_css {
  17667. display: block;
  17668. resize: none;
  17669. padding: 10px 15px;
  17670. line-height: 1.5;
  17671. box-sizing: border-box;
  17672. width: 100%;
  17673. font-size: 14px;
  17674. color: #606266;
  17675. background-color: #fff;
  17676. background-image: none;
  17677. border: 1px solid #dcdfe6;
  17678. border-radius: 4px;
  17679. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  17680. outline: none;
  17681. overflow: hidden;
  17682. height: 46px;
  17683. font-family: "Microsoft YaHei";
  17684. }
  17685. .textarea_css::-webkit-input-placeholder {
  17686. color: #c0c4cc;
  17687. }
  17688. .textarea_css:focus {
  17689. border-color: #409eff;
  17690. outline: 0;
  17691. }
  17692. .addEditor >>> .text {
  17693. height: auto;
  17694. min-height: 100px;
  17695. }
  17696. .addEditor >>> .w-e-text-container {
  17697. min-height: 100px;
  17698. }
  17699. .moveBtn2 {
  17700. flex-direction: column;
  17701. width: fit-content;
  17702. margin: 0 10px 0 10px;
  17703. }
  17704. .moveBtn2 .chapter_upload_down,
  17705. .moveBtn2 .chapter_upload_up {
  17706. width: 16px;
  17707. height: 16px;
  17708. }
  17709. .moveBtn2 .chapter_upload_up::after,
  17710. .moveBtn2 .chapter_upload_down::after {
  17711. width: 10px;
  17712. height: 10px;
  17713. }
  17714. .fullStyle >>> .el-dialog__body {
  17715. height: calc(100% - 125px) !important;
  17716. box-sizing: border-box;
  17717. }
  17718. .fullStyle1 >>> .el-dialog__body {
  17719. height: auto !important;
  17720. }
  17721. .fullStyle >>> .el-dialog {
  17722. width: 100% !important;
  17723. max-width: 100% !important;
  17724. height: 100% !important;
  17725. margin: 0 !important;
  17726. }
  17727. .fullStyle {
  17728. width: 100% !important;
  17729. max-width: 100% !important;
  17730. height: 100% !important;
  17731. margin: 0 auto !important;
  17732. }
  17733. .wb_j_box_btn {
  17734. width: calc(100% - 30px);
  17735. display: flex;
  17736. height: 40px;
  17737. border: 1.5px solid #cad1dc;
  17738. border-radius: 4px;
  17739. box-sizing: border-box;
  17740. align-items: center;
  17741. font-size: 14px;
  17742. cursor: pointer;
  17743. overflow: hidden;
  17744. }
  17745. .wb_j_box_btn:hover {
  17746. border: 1.5px solid #0061ff;
  17747. }
  17748. .wb_j_box_title {
  17749. background: #f0f4fa;
  17750. height: 100%;
  17751. line-height: 40px;
  17752. width: 90px;
  17753. text-align: center;
  17754. color: #060e17;
  17755. border-right: 1.5px solid #cad1dc;
  17756. box-sizing: border-box;
  17757. }
  17758. .wb_j_box_btn_c {
  17759. width: calc(100% - 90px);
  17760. padding: 0 35px 0 10px;
  17761. box-sizing: border-box;
  17762. position: relative;
  17763. }
  17764. .wb_j_box_span {
  17765. width: 100%;
  17766. overflow: hidden;
  17767. white-space: nowrap;
  17768. text-overflow: ellipsis;
  17769. word-wrap: break-word;
  17770. color: #717c8d;
  17771. }
  17772. .wb_j_box_arrow {
  17773. content: "";
  17774. width: 14px;
  17775. height: 14px;
  17776. background: url(../../../assets/icon/new/u_arrow.png);
  17777. background-size: 100% 100%;
  17778. position: absolute;
  17779. right: 12px;
  17780. top: 50%;
  17781. transform: translateY(-50%);
  17782. }
  17783. .check_classBox {
  17784. height: 400px;
  17785. display: flex;
  17786. border-top: 1.5px solid #e7ebf1;
  17787. border-bottom: 1.5px solid #e7ebf1;
  17788. }
  17789. .check_class_right {
  17790. width: 130px;
  17791. border-right: 1px solid #e7ebf1;
  17792. display: flex;
  17793. align-items: center;
  17794. flex-direction: column;
  17795. height: 100%;
  17796. overflow: auto;
  17797. padding: 15px 0;
  17798. box-sizing: border-box;
  17799. }
  17800. .check_class {
  17801. width: 85%;
  17802. border-radius: 5px;
  17803. height: 30px;
  17804. min-height: 30px;
  17805. line-height: 30px;
  17806. text-align: center;
  17807. padding: 0 10px;
  17808. box-sizing: border-box;
  17809. cursor: pointer;
  17810. white-space: nowrap;
  17811. overflow: hidden;
  17812. text-overflow: ellipsis;
  17813. }
  17814. .check_class.activeX {
  17815. background: #e0eafb;
  17816. color: #3681fc;
  17817. font-weight: 700;
  17818. }
  17819. .check_class + .check_class {
  17820. margin-top: 15px;
  17821. }
  17822. .check_class_left {
  17823. background: #fafafa;
  17824. width: calc(100% - 130px);
  17825. padding: 15px;
  17826. box-sizing: border-box;
  17827. }
  17828. .check_class_all_box {
  17829. display: flex;
  17830. margin-bottom: 10px;
  17831. }
  17832. .all_check {
  17833. display: flex;
  17834. align-items: center;
  17835. padding: 2px 0 0;
  17836. margin-left: 10px;
  17837. }
  17838. .all_check >>> .el-checkbox__label {
  17839. line-height: 18px;
  17840. }
  17841. .check_class_left_title {
  17842. font-size: 16px;
  17843. font-weight: 700;
  17844. }
  17845. .check_class_item {
  17846. display: flex;
  17847. flex-wrap: wrap;
  17848. height: calc(100% - 45px);
  17849. overflow: auto;
  17850. justify-content: flex-start;
  17851. align-items: flex-start;
  17852. align-content: flex-start;
  17853. }
  17854. .class_item:first-child {
  17855. /* margin: 0 15px 15px 67px; */
  17856. }
  17857. .class_item {
  17858. margin: 0 15px 15px 0;
  17859. }
  17860. .class_item:hover >>> .el-checkbox__label {
  17861. color: #409eff;
  17862. }
  17863. .class_item >>> .el-checkbox__label {
  17864. color: #0e1e33;
  17865. }
  17866. .class_item:hover >>> .el-checkbox__inner {
  17867. border-color: #409eff;
  17868. }
  17869. .class_item >>> .el-checkbox,
  17870. .class_item >>> .el-checkbox__input {
  17871. display: flex;
  17872. align-items: center;
  17873. }
  17874. .taskTitle {
  17875. font-size: 20px;
  17876. font-weight: bold;
  17877. margin-bottom: 35px;
  17878. }
  17879. .taskTitle:after {
  17880. content: "";
  17881. width: 100%;
  17882. display: block;
  17883. height: 1px;
  17884. background: #cad1dc;
  17885. position: absolute;
  17886. left: 0;
  17887. margin: 15px 0 0;
  17888. }
  17889. .eva_btn_box {
  17890. margin: 20px 0px 0 0;
  17891. display: flex;
  17892. flex-direction: row;
  17893. flex-wrap: nowrap;
  17894. align-items: center;
  17895. justify-content: space-between;
  17896. width: 100%;
  17897. }
  17898. .eva_btn_left_box {
  17899. display: flex;
  17900. flex-direction: row;
  17901. flex-wrap: nowrap;
  17902. align-items: center;
  17903. }
  17904. .addTypeChoose {
  17905. display: flex;
  17906. flex-direction: row;
  17907. flex-wrap: nowrap;
  17908. align-items: center;
  17909. margin: 15px 0;
  17910. }
  17911. .addTypeBox {
  17912. display: flex;
  17913. flex-direction: column;
  17914. flex-wrap: nowrap;
  17915. align-items: center;
  17916. }
  17917. .addTypeChoose {
  17918. display: flex;
  17919. flex-direction: row;
  17920. flex-wrap: nowrap;
  17921. align-items: center;
  17922. margin: 15px 0;
  17923. }
  17924. .text_panel >>> .text{
  17925. height: 400px;
  17926. }
  17927. </style>