addCourse.vue 617 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading">
  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 :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <!-- @mouseenter="stepDisplay(true)"
  28. @mouseleave="stepDisplay(false)" -->
  29. <div ref="stepBox" class="stepBox">
  30. <div class="stepBg" v-if="false">
  31. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
  32. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  33. <div>
  34. <img src="../../../assets/icon/first.png" alt />
  35. </div>
  36. <div>填写基本信息</div>
  37. </div>
  38. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  39. <div>
  40. <img src="../../../assets/icon/firstNo.png" alt />
  41. </div>
  42. <div>填写基本信息</div>
  43. </div>
  44. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay">
  45. </div>
  46. <!-- <div
  47. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  48. class="second"
  49. @click="navSteps(2)"
  50. >
  51. <div style="margin: 5px 10px 0 0; width: 2rem">
  52. <img src="../../../assets/icon/second.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div
  57. v-else-if="cidType === 0 && isStepDisplay"
  58. class="secondNo"
  59. @click="navSteps(2)"
  60. >
  61. <div>
  62. <img src="../../../assets/icon/secondNo.png" alt />
  63. </div>
  64. <div>选择课程模板</div>
  65. </div> -->
  66. <!-- <div
  67. v-if="isStepDisplay"
  68. class="stepBorder"
  69. :class="{ 'border-active': steps > 2 }"
  70. ></div> -->
  71. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  72. <div>
  73. <img src="../../../assets/icon/third.png" alt />
  74. </div>
  75. <div>上传课程内容</div>
  76. </div>
  77. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  78. <div>
  79. <img src="../../../assets/icon/thirdNo.png" alt />
  80. </div>
  81. <div>上传课程内容</div>
  82. </div>
  83. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  84. <div v-if="steps > 3 && isStepDisplay" class="four">
  85. <div>
  86. <img src="../../../assets/icon/four.png" alt />
  87. </div>
  88. <div>上传完成</div>
  89. </div>
  90. <div v-else-if="isStepDisplay" class="fourNo">
  91. <div>
  92. <img src="../../../assets/icon/fourNo.png" alt />
  93. </div>
  94. <div>上传完成</div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="rightBox" :key="updateKey" ref='scrollContainer' v-if="steps == 1" @mousewheel="scrollChange"
  99. style="padding: 0" :style="{
  100. height:
  101. !isStepDisplay && !isBtnDisplay
  102. ? 'calc(100% - 20px)'
  103. : 'calc(100% - 100px)',
  104. }">
  105. <div class="updateMask" :style="{
  106. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  107. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  108. <div class="whiteBg" style="background: unset; padding: 0">
  109. <div>
  110. <div class="basic_box" style="padding: 0">
  111. <div class="big_box">
  112. <div class="left_first">
  113. <div :class="{
  114. updateTips:
  115. cid && userid != courseUserid && role != '1',
  116. }">
  117. <div style="width: 100%">
  118. <div class="course_input_box">
  119. <div class="bb_courseIcon">
  120. <img src="../../../assets/icon/new/course.png" />
  121. </div>
  122. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" style="
  123. border: 1.5px solid rgb(202, 209, 220);
  124. margin: 0px 10px 0px 0px;
  125. border-radius: 5px;
  126. font-weight: 600;
  127. padding: 12px 14px 12px 71px;
  128. " />
  129. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  130. style="justify-content: center; width: 200px"></el-switch>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  135. <span>类型</span>
  136. <!-- 学科+ 主题+ 未来+ -->
  137. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  138. style="display: flex; align-items: center">
  139. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2"
  140. :key="index">
  141. <el-radio :label="item.name">{{
  142. item.name
  143. }}</el-radio>
  144. </div>
  145. </el-radio-group>
  146. </div>
  147. <div class="both">
  148. <div class="choose">
  149. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  150. <span v-if="
  151. CourseTypeJson[item.id].length > 0 &&
  152. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  153. ? pTypeCheck.indexOf(item.id) != -1
  154. : true)
  155. ">{{ item.name }}:</span>
  156. <el-checkbox-group v-model="courseTypeId" v-if="
  157. CourseTypeJson[item.id].length > 0 &&
  158. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  159. ? pTypeCheck.indexOf(item.id) != -1
  160. : true)
  161. ">
  162. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  163. item1.name }}</el-checkbox>
  164. </el-checkbox-group>
  165. <!-- <div
  166. v-else
  167. style="font-size: 14px; margin-left: -8px"
  168. >
  169. 暂无
  170. </div> -->
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="right_first">
  176. <!-- <div class="ai_box">
  177. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  178. </div> -->
  179. <div class="c_info_title" style="padding: 0 0 15px; margin: 0 auto 0 0">
  180. 上传封面
  181. </div>
  182. <div style="width: 100%">
  183. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  184. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  185. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  186. <div v-if="cover.length == 0">点击添加封面</div>
  187. <div class="cover_mask">
  188. <img src="../../../assets/icon/new/cover_update.png" /><span
  189. style="margin-top: 5px">修改封面</span>
  190. </div>
  191. </div>
  192. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  193. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  194. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  195. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  196. <i class="el-icon-plus"></i>
  197. </el-upload> -->
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="whiteBg" style="background: #fff; margin: 10px 0;padding: 0 0 15px;">
  205. <div class="whiteBg" style="border-radius: 0">
  206. <div class="c_info_title">
  207. 课程权限设置
  208. </div>
  209. <div class="wb_j_box">
  210. <div class="wb_j_box_content">
  211. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  212. (dialogVisibleClass = true),
  213. (classSearch = ''),
  214. (gradeId = ''),
  215. getClass()
  216. ">添加班级</button>
  217. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  218. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  219. getClassC(tc) }}</span>
  220. </div> -->
  221. <div class="wb_j_box_btn" @click="
  222. (dialogVisibleClass = true),
  223. (classSearch = ''),
  224. (gradeId = ''),
  225. getClass()
  226. ">
  227. <div class="wb_j_box_title">授课班级</div>
  228. <div class="wb_j_box_btn_c">
  229. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  230. v-if="checkboxList2.length" popper-class="text_tooltip2">
  231. <div class="wb_j_box_span">
  232. {{ getListClassC(checkboxList2) }}
  233. </div>
  234. </el-tooltip>
  235. <div v-else class="wb_j_box_span">请选择授课班级</div>
  236. <div class="wb_j_box_arrow"></div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="wb_j_box_content">
  241. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  242. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  243. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  244. checkBoolean
  245. ? checkboxList3
  246. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  247. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  248. </div> -->
  249. <div class="wb_j_box_btn" @click="openMember">
  250. <div class="wb_j_box_title">协同人员</div>
  251. <div class="wb_j_box_btn_c">
  252. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  253. v-if="checkboxList3.length" popper-class="text_tooltip2">
  254. <div class="wb_j_box_span">
  255. {{ getListMan2(checkboxList3) }}
  256. </div>
  257. </el-tooltip>
  258. <div v-else class="wb_j_box_span">请选择协同人员</div>
  259. <div class="wb_j_box_arrow"></div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  266. <div class="c_info_title">目标管理</div>
  267. <div style="margin: 0 auto; padding: 0 20px">
  268. <div style="
  269. width: 95%;
  270. min-height: 200px;
  271. border: 1px solid #cad1dc;
  272. border-radius: 4px;
  273. position: relative;
  274. ">
  275. <div class="e_add_top">
  276. <div class="e_add_title">
  277. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()" v-if="evalua">
  278. 清除
  279. </button>
  280. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">
  281. 添加
  282. </button>
  283. <!-- <span>当前使用目标管理</span>
  284. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  285. <img
  286. src="../../../assets/line.png"
  287. class="cru_line"
  288. style="
  289. width: 125px;
  290. height: 20px;
  291. bottom: -10px;
  292. left: 155px;
  293. "
  294. /> -->
  295. </div>
  296. <div style="
  297. display: flex;
  298. flex-direction: row;
  299. align-items: center;
  300. ">
  301. <!-- <el-button
  302. type="primary"
  303. size="small"
  304. @click="dialogVisiblemb = true"
  305. >添加目标管理</el-button
  306. >
  307. <el-button
  308. type="primary"
  309. size="small"
  310. @click="deleteEva()"
  311. >清除内容</el-button
  312. > -->
  313. <!-- <div class="e_add_delete" @click="deleteEva()">
  314. <img src="../../../assets/icon/delete.png" alt="" />
  315. </div> -->
  316. </div>
  317. </div>
  318. <div v-if="evalua == ''">
  319. <div class="noneBox">
  320. <img src="../../../assets/icon/new/eva_none.png" />
  321. <span>请添加目标管理</span>
  322. </div>
  323. </div>
  324. <div class="e_add_content" v-else>
  325. <div class="e_add_list_pbox">
  326. <div class="e_add_list_pbox_title">
  327. <span class="type_title">切换模式</span>
  328. <div class="type_content">
  329. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  330. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  331. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  332. </div>
  333. </div>
  334. <div class="e_add_list_pbox_content">
  335. <Mind :showBar="false" :mindData="data" v-if="typeMode == 1"></Mind>
  336. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  337. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  338. v-if="typeMode == 3">
  339. </SeeBoard>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading">
  348. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  349. <div class="c_info_title">
  350. 课程简要描述
  351. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  352. @contextmenu.prevent="openAiDialog(1, 'aiDetail')"
  353. @click="openAiDialog(2, 'aiDetail')">AI优化</button>
  354. </div>
  355. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  356. <div style="width: calc(100%)">
  357. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  358. placeholder="请输入课程简要描述"></textarea>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  364. <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  365. <div class="c_info_title">
  366. 补充资料
  367. <button class="c_pub_button_add pub_btn_add_img" style="margin: 0 20px 0 auto;">上传补充资料</button>
  368. </div>
  369. <div class="buchong_box">
  370. <span>暂时还没有内容,快去添加吧~</span>
  371. </div>
  372. </div> -->
  373. <div style="position: relative;
  374. background: #fff;
  375. box-sizing: border-box;
  376. padding: 1px 20px 10px;
  377. width: 100%;
  378. border-radius: 10px;">
  379. <div style="
  380. display: flex;
  381. flex-direction: row;
  382. justify-content: space-between;
  383. align-items: center;
  384. " :style="{
  385. margin: true
  386. ? '20px 0 10px'
  387. : '20px 0 0',
  388. }">
  389. <div style="margin-bottom: 10px;width:100%" class="lineTitle">
  390. 补充资料
  391. <div class="add_info_box" style="margin: 0 0 0 auto">
  392. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  393. 上传补充资料
  394. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  395. beforeUploadInfo2(
  396. $event,
  397. 13
  398. )
  399. " />
  400. </button>
  401. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  402. 图文
  403. </button>
  404. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  405. 链接
  406. </button>
  407. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  408. 代码
  409. </button>
  410. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  411. 资源
  412. </button> -->
  413. </div>
  414. </div>
  415. </div>
  416. <div>
  417. <div class="add_chapters_box add_c_none" v-if="
  418. infoData &&
  419. infoData.length == 0
  420. ">
  421. <img src="../../../assets/icon/new/c_none.png" alt /><span>暂时还没有内容,快去添加吧</span>
  422. </div>
  423. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  424. <div @dragstart="
  425. dragStart(item1, index1, 0)
  426. " @dragover.prevent="
  427. dragOver(index1, 0)
  428. " @dragend="dragEnd()" :draggable="isdrag ==
  429. 'chapter-' + 0 + '-' + index1
  430. " class="chapter_upload" v-for="(item1, index1) in infoData" :key="item1.id" @click="
  431. getChapterData(
  432. $event,
  433. index1,
  434. item1.type
  435. )
  436. " :class="{
  437. dragOverTop2:
  438. newIndex === index1 &&
  439. typeIndex ==
  440. 'chapter-' +
  441. 0 +
  442. '-' +
  443. index1 &&
  444. oldIndex > index1 &&
  445. dragType == 'drag',
  446. dragOverBottom2:
  447. newIndex === index1 &&
  448. typeIndex ==
  449. 'chapter-' +
  450. 0 +
  451. '-' +
  452. index1 &&
  453. oldIndex < index1 &&
  454. dragType == 'drag',
  455. }">
  456. <!-- <div @mousedown="
  457. isdrag =
  458. 'chapter-' + 0 + '-' + index1
  459. " @mouseup="isdrag = ''" @touchstart="
  460. isdrag =
  461. 'chapter-' + 0 + '-' + index1
  462. " @touchend="isdrag = ''" class="chapter_upload_drag"></div> -->
  463. <div class="chapter_upload_o" style="
  464. position: relative;
  465. display: flex;
  466. align-items: center;
  467. ">
  468. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  469. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  470. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  471. </div>
  472. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  473. </div>
  474. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  475. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  476. </div>
  477. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  478. </div>
  479. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  480. </div>
  481. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  482. </div>
  483. </div>
  484. <div class="chapter_upload_n">
  485. <input readonly="true" v-if="
  486. item1.type == 2 ||
  487. item1.type == 3 ||
  488. item1.type == 12 ||
  489. item1.type == 13 ||
  490. item1.type == 7
  491. " :placeholder="item1.name" @click="
  492. updataVideoT(
  493. $event,
  494. index1
  495. )
  496. " style="
  497. border: none;
  498. outline: none;
  499. width: 80%;
  500. minwidth: 215px;
  501. z-index: 99;
  502. font-size: 14px;
  503. white-space: nowrap;
  504. overflow: hidden;
  505. text-overflow: ellipsis;
  506. " />
  507. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  508. border: none;
  509. outline: none;
  510. width: 80%;
  511. white-space: nowrap;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. " readonly="true" @click="
  515. selectAttText(index1)
  516. " />
  517. <input :placeholder="item1.title ? item1.title : '链接'
  518. " v-if="item1.type == 8" style="
  519. border: none;
  520. outline: none;
  521. width: 80%;
  522. white-space: nowrap;
  523. overflow: hidden;
  524. text-overflow: ellipsis;
  525. " readonly="true" @click="selectLine(index1)" />
  526. <input :placeholder="item1.title ? item1.title : '链接'
  527. " v-if="item1.type == 14" style="
  528. border: none;
  529. outline: none;
  530. width: 80%;
  531. white-space: nowrap;
  532. overflow: hidden;
  533. text-overflow: ellipsis;
  534. " readonly="true" @click="
  535. openUpdateSource(index1)
  536. " />
  537. </div>
  538. <div class="chapter_upload_ic">
  539. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  540. <!-- <div class="chapter_upload_ud" style="z-index: 99">
  541. <div class="chapter_upload_up" @click="
  542. upCd(
  543. $event,
  544. index1
  545. )
  546. "></div>
  547. <div class="chapter_upload_down" @click="
  548. downCd(
  549. $event,
  550. index1
  551. )
  552. "></div>
  553. </div>
  554. <div class="chapter_upload_ic_edit" v-if="
  555. item1.type == 2 ||
  556. item1.type == 3 ||
  557. item1.type == 12 ||
  558. item1.type == 13 ||
  559. item1.type == 7
  560. " @click.stop="
  561. updataVideoT(
  562. $event,
  563. index1
  564. )
  565. ">
  566. <div></div>
  567. </div>
  568. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  569. selectAttText(index1)
  570. ">
  571. <div></div>
  572. </div>
  573. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  574. @click="selectLine(index1)">
  575. <div></div>
  576. </div>
  577. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  578. openUpdateSource(index1)
  579. ">
  580. <div></div>
  581. </div> -->
  582. <div class="chapter_upload_ic_r" @click.stop="
  583. deleteInfoData(
  584. $event,
  585. index1
  586. )
  587. ">
  588. <div></div>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. </div>
  595. <div v-if="
  596. infoproVisible
  597. " class="mask">
  598. <div class="progressBox">
  599. <!-- <div id="closePro" class="closeCss">
  600. <img src="../../../../assets/icon/close.png" alt />
  601. </div> -->
  602. <div class="lbox">
  603. <img src="../../../assets/loading.gif" />上传中,请稍后
  604. </div>
  605. <div style="margin-bottom: 10px">
  606. <span>{{
  607. infoisFinishSize
  608. }}M</span>
  609. /
  610. <span>{{
  611. infoisAllSize
  612. }}M</span>
  613. </div>
  614. <el-progress :text-inside="true" :stroke-width="20" :percentage="infoprogress
  615. ? infoprogress
  616. : 0
  617. " style="width: 80%"></el-progress>
  618. </div>
  619. </div>
  620. </div>
  621. </div>
  622. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="false">
  623. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  624. <div class="c_info_title">
  625. 补充描述
  626. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  627. </div>
  628. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  629. <div style="width: calc(100%)">
  630. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText2"
  631. placeholder="请输入课程补充描述:例如您期望的课程时长、任务数量、任务难度、任务类型等。"></textarea>
  632. </div>
  633. </div>
  634. </div>
  635. </div>
  636. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline">
  637. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  638. <div class="c_info_title">
  639. 课程大纲
  640. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  641. </div>
  642. <div class="task_outline">
  643. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  644. <div class="outline_task">
  645. <div class="title">任务{{ index + 1 }}</div>
  646. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  647. v-model="item.task" />
  648. </div>
  649. <div class="outline_detail" v-loading="taskDetailLoading.indexOf('task-' + index) !== -1">
  650. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  651. placeholder="请输入任务描述" v-model="item.taskDetail2"></textarea>
  652. <div class="op_box">
  653. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  654. <div class="r_pub_button_op"
  655. @contextmenu.prevent="openAiDialog(1, 'aiDetail1', item.taskDetail2, index)"
  656. @click="openAiDialog(2, 'aiDetail1', item.taskDetail2, index)">智能优化</div>
  657. </div>
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline2">
  664. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  665. <div class="c_info_title">
  666. 教案
  667. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  668. </div>
  669. <div class="task_outline">
  670. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  671. <div class="outline_task">
  672. <div class="title">任务{{ index + 1 }}</div>
  673. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  674. v-model="item.task" />
  675. </div>
  676. <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1">
  677. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
  678. v-model="item.taskDetail3"></textarea>
  679. <div class="op_box">
  680. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  681. <div class="r_pub_button_op"
  682. @contextmenu.prevent="openAiDialog(1, 'teacherDetail', item.taskDetail3, index)"
  683. @click="openAiDialog(2, 'teacherDetail', item.taskDetail3, index)">智能优化</div>
  684. </div>
  685. </div>
  686. </div>
  687. </div>
  688. </div>
  689. </div>
  690. <div class="info_btnBox3">
  691. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  692. goTo(
  693. '/course?userid=' +
  694. userid +
  695. '&oid=' +
  696. oid +
  697. '&org=' +
  698. org +
  699. '&role=' +
  700. role
  701. )
  702. ">
  703. 返回课程
  704. </button>
  705. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  706. {{ steps == 4 ? "返回课程" : "上一步" }}
  707. </button>
  708. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps(2)"
  709. @contextmenu.prevent="nextSteps(1)" :class="{
  710. pub_btn_next_img: steps != 3,
  711. pub_btn_finish_img: steps == 3,
  712. }">
  713. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : !isOutline2 ? "生成教案" : "下一步" }}
  714. </button>
  715. </div>
  716. </div>
  717. <div class="rightBox" v-if="steps == 2" :style="{
  718. height:
  719. !isStepDisplay && !isBtnDisplay
  720. ? 'calc(100% - 40px)'
  721. : 'calc(100% - 100px)',
  722. }">
  723. <div class="basic_box" style="
  724. padding: 20px 30px 0px !important;
  725. box-sizing: border-box;
  726. height: calc(100% - 80px);
  727. overflow: auto;
  728. background: #fff;
  729. ">
  730. <!-- <div
  731. style="
  732. color: #b8b8b8;
  733. background: #fff;
  734. width: 26%;
  735. height: 40px;
  736. border-radius: 15px;
  737. padding-left: 20px;
  738. line-height: 40px;
  739. font-size: 17px;
  740. box-shadow: 0px 1px 2px 2px #e0e0e0;
  741. "
  742. >-->
  743. <div class="right_title" style="border: none; margin: 0; padding: 0">
  744. 请选择合适的课程模板
  745. </div>
  746. <div class="wordbox">
  747. <div class="wordTeacher" @click="checkTemplate2()">
  748. <div class="wordPic">
  749. <img src="../../../assets/icon/new/template_none.png" alt />
  750. </div>
  751. <div style="
  752. margin-top: 10px;
  753. line-height: 19px;
  754. overflow: hidden;
  755. text-overflow: ellipsis;
  756. white-space: nowrap;
  757. padding: 0 20px;
  758. ">
  759. 空白模板
  760. </div>
  761. </div>
  762. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  763. <div class="wordPic">
  764. <img src="../../../assets/icon/new/template.png" alt />
  765. </div>
  766. <div style="
  767. margin-top: 10px;
  768. line-height: 19px;
  769. overflow: hidden;
  770. text-overflow: ellipsis;
  771. white-space: nowrap;
  772. padding: 0 20px;
  773. ">
  774. {{ aa.title }}
  775. </div>
  776. </div>
  777. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  778. <div class="wordPic">
  779. <img src="../../../assets/icon/new/template.png" alt />
  780. </div>
  781. <div style="
  782. margin-top: 10px;
  783. line-height: 19px;
  784. overflow: hidden;
  785. text-overflow: ellipsis;
  786. white-space: nowrap;
  787. padding: 0 20px;
  788. ">
  789. 简易模板
  790. </div>
  791. </div>
  792. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  793. <div class="wordPic">
  794. <img src="../../../assets/icon/new/template.png" alt />
  795. </div>
  796. <div style="
  797. margin-top: 10px;
  798. line-height: 19px;
  799. overflow: hidden;
  800. text-overflow: ellipsis;
  801. white-space: nowrap;
  802. padding: 0 20px;
  803. ">
  804. 智能粘贴模式
  805. </div>
  806. </div>
  807. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  808. <div class="wordPic">
  809. <img src="../../../assets/icon/wordMub.png" alt />
  810. </div>
  811. <div style="
  812. margin-top: 10px;
  813. line-height: 19px;
  814. overflow: hidden;
  815. text-overflow: ellipsis;
  816. white-space: nowrap;
  817. padding: 0 20px;
  818. ">
  819. 未来小学课程设计
  820. </div>
  821. </div> -->
  822. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  823. <div class="wordPic">
  824. <img src="../../../assets/icon/wordMub.png" alt />
  825. </div>
  826. <div style="
  827. margin-top: 10px;
  828. line-height: 19px;
  829. overflow: hidden;
  830. text-overflow: ellipsis;
  831. white-space: nowrap;
  832. padding: 0 20px;
  833. ">
  834. 我的课程
  835. </div>
  836. </div> -->
  837. </div>
  838. </div>
  839. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  840. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  841. goTo(
  842. '/course?userid=' +
  843. userid +
  844. '&oid=' +
  845. oid +
  846. '&org=' +
  847. org +
  848. '&role=' +
  849. role
  850. )
  851. ">
  852. 返回课程
  853. </button>
  854. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  855. {{ steps == 4 ? "返回课程" : "上一步" }}
  856. </button>
  857. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  858. pub_btn_next_img: steps != 3,
  859. pub_btn_finish_img: steps == 3,
  860. }">
  861. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  862. </button>
  863. </div>
  864. </div>
  865. <div class="rightBox" v-if="steps == 3" ref="rightboxR" :style="{
  866. height:
  867. !isStepDisplay && !isBtnDisplay
  868. ? 'calc(100% - 40px)'
  869. : 'calc(100% - 100px)',
  870. }">
  871. <div class="rb_c_box">
  872. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  873. <div class="rb_c_nav">
  874. <span :class="{ active: stepsNav == 1 }" @click="stepsNav = 1">目录</span>
  875. <span :class="{ active: stepsNav == 2 }" @click="stepsNav = 2">AI助手</span>
  876. </div>
  877. <div class="stepsBottom" v-if="stepsNav == 1">
  878. <!-- <div class="navTop">辅助导航</div> -->
  879. <div class="navBottom" v-if="courseState == 4">
  880. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  881. <div class="nt_taskBox" style="width: 100%;">
  882. <div class="nt_taskTitle"
  883. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  884. unitIndex + 1 }}</div>
  885. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  886. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  887. <span>{{ unitJson[unitIndex].dyName }}</span>
  888. </el-tooltip>
  889. </div>
  890. </div>
  891. </div> -->
  892. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  893. .taskJson" :key="tIndex" :class="{
  894. dragOverTop:
  895. newIndex === tIndex &&
  896. typeIndex == 'task-' + tIndex &&
  897. oldIndex > tIndex &&
  898. dragType == 'task',
  899. dragOverBottom:
  900. newIndex === tIndex &&
  901. typeIndex == 'task-' + tIndex &&
  902. oldIndex < tIndex &&
  903. dragType == 'task',
  904. }">
  905. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  906. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + tIndex" @click="goToTask(tIndex)"
  907. class="navTask" :class="{
  908. isNavTask:
  909. isClickColor > 0 && isClickColor == tIndex + 1,
  910. isNavOpen: t.toolOpen,
  911. }">
  912. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  913. <div @mousedown="isdrag = 'task-' + tIndex" @mouseup="isdrag = ''"
  914. @touchstart="isdrag = 'task-' + tIndex" @touchend="isdrag = ''" style="left: 8px"
  915. class="chapter_upload_drag"></div>
  916. <div class="nt_taskBox">
  917. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  918. <div class="nt_taskName">
  919. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  920. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  921. </el-tooltip>
  922. </div>
  923. </div>
  924. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  925. 1
  926. ">
  927. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  928. @click.stop="taskMove(1, tIndex)"></div>
  929. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  930. @click.stop="taskMove(2, tIndex)"></div>
  931. </div> -->
  932. </div>
  933. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  934. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  935. @click="jumpGj(tIndex, toolIndex2)">
  936. <div class="gjCss" :class="{
  937. isGjCss:
  938. toolIndexType == `gj${tIndex}${toolIndex2}`,
  939. }">
  940. <div>工具{{ toolIndex2 + 1 }}:</div>
  941. <div>
  942. {{
  943. toolsData[tool.tool[0]] &&
  944. toolsData[tool.tool[0]].name
  945. }}
  946. </div>
  947. </div>
  948. </div>
  949. </div>
  950. </div>
  951. </div>
  952. <div class="navBottom" v-if="courseState == 1">
  953. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  954. dragOverTop:
  955. newIndex === stageIndex &&
  956. typeIndex == 'Unit-' + stageIndex &&
  957. oldIndex > stageIndex &&
  958. dragType == 'Unit',
  959. dragOverBottom:
  960. newIndex === stageIndex &&
  961. typeIndex == 'Unit-' + stageIndex &&
  962. oldIndex < stageIndex &&
  963. dragType == 'Unit',
  964. }">
  965. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  966. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex"
  967. @click="unitSet2(stageIndex)" class="navStage" :class="{
  968. isNavStage: stageIndex == unitIndex,
  969. isNavStageOpen: stage.toolOpen,
  970. }">
  971. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  972. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px"
  973. class="chapter_upload_drag"></div>
  974. <div class="nt_taskBox">
  975. <div class="nt_taskTitle">
  976. 第{{ stageIndex + 1 }}阶段:
  977. </div>
  978. <div class="nt_taskName">
  979. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'
  980. " placement="top">
  981. <span>{{
  982. stage.dyName ? stage.dyName : "未命名阶段"
  983. }}</span>
  984. </el-tooltip>
  985. </div>
  986. </div>
  987. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  988. </div>
  989. <div v-for="(t, tIndex) in unitJson[stageIndex]
  990. .chapterInfo[0].taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  991. dragOverTop:
  992. newIndex === tIndex &&
  993. typeIndex == 'task-' + tIndex &&
  994. ((oldIndex > tIndex &&
  995. stageIndex == checkUnitIndex) ||
  996. (oldIndex == tIndex &&
  997. stageIndex == checkUnitIndex &&
  998. checkUnitIndex != oldUnitIndex)) &&
  999. dragType == 'task',
  1000. dragOverBottom:
  1001. newIndex === tIndex &&
  1002. typeIndex == 'task-' + tIndex &&
  1003. oldIndex < tIndex &&
  1004. stageIndex == checkUnitIndex &&
  1005. dragType == 'task',
  1006. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  1007. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  1008. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex
  1009. " @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px" :class="{
  1010. isNavTask:
  1011. isClickColor > 0 &&
  1012. isClickColor == tIndex + 1 &&
  1013. stageIndex == unitIndex,
  1014. isNavOpen: t.toolOpen,
  1015. }">
  1016. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  1017. <div @mousedown="
  1018. isdrag = 'task-' + stageIndex + '-' + tIndex
  1019. " @mouseup="isdrag = ''" @touchstart="
  1020. isdrag = 'task-' + stageIndex + '-' + tIndex
  1021. " @touchend="isdrag = ''" style="left: 20px" class="chapter_upload_drag"></div>
  1022. <div class="nt_taskBox" style="width: calc(100% - 52px)">
  1023. <div class="nt_taskTitle">
  1024. 任务{{ tIndex + 1 }}:
  1025. </div>
  1026. <div class="nt_taskName">
  1027. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1028. <span>{{
  1029. t.task ? t.task : "未命名任务"
  1030. }}</span>
  1031. </el-tooltip>
  1032. </div>
  1033. </div>
  1034. </div>
  1035. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1036. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1037. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  1038. <div class="gjCss" :class="{
  1039. isGjCss:
  1040. toolIndexType ==
  1041. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1042. }">
  1043. <div>工具{{ toolIndex2 + 1 }}:</div>
  1044. <div>
  1045. {{
  1046. toolsData[tool.tool[0]] &&
  1047. toolsData[tool.tool[0]].name
  1048. }}
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. <div class="rb_c_ai_box" v-if="stepsNav == 2">
  1058. <aiBox @setUnitJson="setUnitJson" :courseId="courseId" :unitJson="unitJson"></aiBox>
  1059. </div>
  1060. </div>
  1061. <div class="rb_c_box_right">
  1062. <!-- <div class="rb_c_box_btn">
  1063. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1064. </div> -->
  1065. <div class="basic_box" ref="unitBox">
  1066. <div v-if="false" style="
  1067. display: flex;
  1068. flex-direction: row;
  1069. align-items: center;
  1070. position: sticky;
  1071. top: 0;
  1072. z-index: 99;
  1073. width: 100%;
  1074. padding: 0 20px 0 20px;
  1075. box-sizing: border-box;
  1076. background: #fff;
  1077. border-radius: 8px;
  1078. ">
  1079. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1080. <div class="cru_selectBox" :style="{
  1081. maxWidth: isPasteTask
  1082. ? 'calc(100% - 335px)'
  1083. : 'calc(100% - 190px)',
  1084. }" v-if="courseState == 1">
  1085. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1086. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1087. <!-- item.dyName ? item.dyName : -->
  1088. <span v-if="
  1089. unitJson[unitJson.length - 1].easy == 4 ||
  1090. unitJson[unitJson.length - 1].easy == 6
  1091. ">{{
  1092. item.dyName
  1093. ? item.dyName
  1094. : "第" + (index + 1) + "阶段"
  1095. }}</span>
  1096. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1097. </div>
  1098. <div class="cru_line" :style="{
  1099. left: offsetLetfPx + 'px',
  1100. }"></div>
  1101. </div>
  1102. <div class="addStageImg" @click="addunit()" v-if="
  1103. !(unitJson[unitJson.length - 1].easy == 4) &&
  1104. !(unitJson[unitJson.length - 1].easy == 6) &&
  1105. courseState == 1
  1106. ">
  1107. <img src="../../../assets/icon/new/addStage.png" alt />
  1108. </div>
  1109. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)"
  1110. v-if="courseState == 2" style="margin: 15px 0">
  1111. 新建阶段
  1112. </button>
  1113. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1114. <button class="c_pub_button_add" @click="openStageBox" v-show="false" style="margin: 0 0 0 auto">
  1115. 阶段顺序
  1116. </button>
  1117. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()"
  1118. v-if="steps == 3 && isPasteTask" style="margin: 0 0 0 auto">
  1119. 智能粘贴
  1120. </button>
  1121. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate" :style="{
  1122. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1123. }" style="padding: 0 12px">
  1124. 选择课程模板
  1125. </button>
  1126. </div>
  1127. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1128. :key="index">
  1129. <div style="position: relative;
  1130. background: #fff;
  1131. box-sizing: border-box;
  1132. padding: 1px 20px 10px;
  1133. width: 100%;
  1134. border-radius: 10px;">
  1135. <div style="
  1136. display: flex;
  1137. flex-direction: row;
  1138. justify-content: space-between;
  1139. align-items: center;
  1140. " :style="{
  1141. margin: !item.taskJson[0].isFoldchapter
  1142. ? '20px 0 10px'
  1143. : '20px 0 0',
  1144. }">
  1145. <div style="margin-bottom: 10px" class="lineTitle">
  1146. 学习内容
  1147. </div>
  1148. </div>
  1149. <div>
  1150. <div class="add_chapters_box add_c_none" v-if="
  1151. item.taskJson[0].chapterData &&
  1152. item.taskJson[0].chapterData.length == 0
  1153. ">
  1154. <img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span>
  1155. </div>
  1156. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1157. <div @dragstart="
  1158. dragStart(item1, index1, 0)
  1159. " @dragover.prevent="
  1160. dragOver(index1, 0)
  1161. " @dragend="dragEnd()" :draggable="isdrag ==
  1162. 'chapter-' + 0 + '-' + index1
  1163. " class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  1164. :key="item1.id" @click="
  1165. getChapterData(
  1166. $event,
  1167. unitIndex,
  1168. index,
  1169. index1,
  1170. item1.type
  1171. )
  1172. " :class="{
  1173. dragOverTop2:
  1174. newIndex === index1 &&
  1175. typeIndex ==
  1176. 'chapter-' +
  1177. 0 +
  1178. '-' +
  1179. index1 &&
  1180. oldIndex > index1 &&
  1181. dragType == 'drag',
  1182. dragOverBottom2:
  1183. newIndex === index1 &&
  1184. typeIndex ==
  1185. 'chapter-' +
  1186. 0 +
  1187. '-' +
  1188. index1 &&
  1189. oldIndex < index1 &&
  1190. dragType == 'drag',
  1191. }">
  1192. <div @mousedown="
  1193. isdrag =
  1194. 'chapter-' + 0 + '-' + index1
  1195. " @mouseup="isdrag = ''" @touchstart="
  1196. isdrag =
  1197. 'chapter-' + 0 + '-' + index1
  1198. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1199. <div class="chapter_upload_o" style="
  1200. position: relative;
  1201. display: flex;
  1202. align-items: center;
  1203. ">
  1204. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1205. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1206. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1207. </div>
  1208. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1209. </div>
  1210. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1211. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1212. </div>
  1213. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1214. </div>
  1215. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1216. </div>
  1217. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1218. </div>
  1219. </div>
  1220. <div class="chapter_upload_n">
  1221. <input readonly="true" v-if="
  1222. item1.type == 2 ||
  1223. item1.type == 3 ||
  1224. item1.type == 12 ||
  1225. item1.type == 13 ||
  1226. item1.type == 7
  1227. " :placeholder="item1.name" @click="
  1228. updataVideoT(
  1229. $event,
  1230. unitIndex,
  1231. 0,
  1232. index1
  1233. )
  1234. " style="
  1235. border: none;
  1236. outline: none;
  1237. width: 80%;
  1238. minwidth: 215px;
  1239. z-index: 99;
  1240. font-size: 14px;
  1241. white-space: nowrap;
  1242. overflow: hidden;
  1243. text-overflow: ellipsis;
  1244. " />
  1245. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1246. border: none;
  1247. outline: none;
  1248. width: 80%;
  1249. white-space: nowrap;
  1250. overflow: hidden;
  1251. text-overflow: ellipsis;
  1252. " readonly="true" @click="
  1253. selectAttText(0, index1)
  1254. " />
  1255. <input :placeholder="item1.title ? item1.title : '链接'
  1256. " v-if="item1.type == 8" style="
  1257. border: none;
  1258. outline: none;
  1259. width: 80%;
  1260. white-space: nowrap;
  1261. overflow: hidden;
  1262. text-overflow: ellipsis;
  1263. " readonly="true" @click="selectLine(0, index1)" />
  1264. <input :placeholder="item1.title ? item1.title : '链接'
  1265. " v-if="item1.type == 14" style="
  1266. border: none;
  1267. outline: none;
  1268. width: 80%;
  1269. white-space: nowrap;
  1270. overflow: hidden;
  1271. text-overflow: ellipsis;
  1272. " readonly="true" @click="
  1273. openUpdateSource(0, index1)
  1274. " />
  1275. </div>
  1276. <div class="chapter_upload_ic">
  1277. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1278. <div class="chapter_upload_ud" style="z-index: 99">
  1279. <div class="chapter_upload_up" @click="
  1280. upCd(
  1281. $event,
  1282. unitIndex,
  1283. index,
  1284. 0,
  1285. index1
  1286. )
  1287. "></div>
  1288. <div class="chapter_upload_down" @click="
  1289. downCd(
  1290. $event,
  1291. unitIndex,
  1292. index,
  1293. 0,
  1294. index1
  1295. )
  1296. "></div>
  1297. </div>
  1298. <div class="chapter_upload_ic_edit" v-if="
  1299. item1.type == 2 ||
  1300. item1.type == 3 ||
  1301. item1.type == 12 ||
  1302. item1.type == 13 ||
  1303. item1.type == 7
  1304. " @click.stop="
  1305. updataVideoT(
  1306. $event,
  1307. unitIndex,
  1308. 0,
  1309. index1
  1310. )
  1311. ">
  1312. <div></div>
  1313. </div>
  1314. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1315. selectAttText(0, index1)
  1316. ">
  1317. <div></div>
  1318. </div>
  1319. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1320. @click="selectLine(0, index1)">
  1321. <div></div>
  1322. </div>
  1323. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1324. openUpdateSource(0, index1)
  1325. ">
  1326. <div></div>
  1327. </div>
  1328. <div class="chapter_upload_ic_r" @click.stop="
  1329. deleteChapterData(
  1330. $event,
  1331. unitIndex,
  1332. index,
  1333. index1,
  1334. 0
  1335. )
  1336. ">
  1337. <div></div>
  1338. </div>
  1339. </div>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. </div>
  1344. <div class="add_info_box" style="margin: 10px 0 0">
  1345. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1346. 文件
  1347. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1348. beforeUpload2(
  1349. $event,
  1350. unitIndex,
  1351. 13,
  1352. 0
  1353. )
  1354. " />
  1355. </button>
  1356. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  1357. 图文
  1358. </button>
  1359. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  1360. 链接
  1361. </button>
  1362. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  1363. 代码
  1364. </button>
  1365. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  1366. 资源
  1367. </button>
  1368. </div>
  1369. <div v-if="
  1370. unitJson[unitIndex].chapterInfo[0].taskJson[
  1371. 0
  1372. ].proVisible
  1373. " class="mask">
  1374. <div class="progressBox">
  1375. <!-- <div id="closePro" class="closeCss">
  1376. <img src="../../../../assets/icon/close.png" alt />
  1377. </div> -->
  1378. <div class="lbox">
  1379. <img src="../../../assets/loading.gif" />上传中,请稍后
  1380. </div>
  1381. <div style="margin-bottom: 10px">
  1382. <span>{{
  1383. unitJson[unitIndex].chapterInfo[0].taskJson[
  1384. 0
  1385. ].isFinishSize
  1386. }}M</span>
  1387. /
  1388. <span>{{
  1389. unitJson[unitIndex].chapterInfo[0].taskJson[
  1390. 0
  1391. ].isAllSize
  1392. }}M</span>
  1393. </div>
  1394. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1395. 0
  1396. ].progress
  1397. ? unitJson[unitIndex].chapterInfo[0]
  1398. .taskJson[0].progress
  1399. : 0
  1400. " style="width: 80%"></el-progress>
  1401. </div>
  1402. </div>
  1403. </div>
  1404. <div class="chapter_box" v-if="courseState == 1">
  1405. <div class="chapter_contentbox">
  1406. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1407. <div class="cc_input">
  1408. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  1409. v-model="unitJson[unitIndex].dyName" />
  1410. </div>
  1411. <div class="remove" v-if="
  1412. (unitJson.length > 1 || courseState != 2) &&
  1413. !(unitJson[unitJson.length - 1].easy == 4) &&
  1414. !(unitJson[unitJson.length - 1].easy == 6)
  1415. " @click="deleteUnit(unitIndex)"></div>
  1416. </div>
  1417. </div>
  1418. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1419. margin: 50px 0px 10px;
  1420. font-size: 1.5em;
  1421. font-weight: 700;
  1422. color: #0f7eff;
  1423. ">
  1424. 添加任务
  1425. </div> -->
  1426. <div class="taskBorder" :style="{
  1427. minHeight: unitJson[unitIndex].easy && 'unset',
  1428. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1429. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1430. <div style="background: #fff; border-radius: 5px">
  1431. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1432. <!-- padding: 20px; -->
  1433. <div v-if="unitJson[unitIndex].easy != 1">
  1434. <div :style="{
  1435. marginBottom:
  1436. unitJson[unitIndex].easy == 3 ||
  1437. (unitJson[unitIndex].easy == 5 &&
  1438. itemTask.taskType == 1)
  1439. ? '75px'
  1440. : '0',
  1441. }">
  1442. <div style="
  1443. display: flex;
  1444. margin: 0px 0 20px;
  1445. flex-direction: row;
  1446. justify-content: flex-start;
  1447. align-items: center;
  1448. ">
  1449. <div class="lineTitle">任务概述</div>
  1450. </div>
  1451. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  1452. flex-direction: row;
  1453. justify-content: flex-start;
  1454. align-items: center;
  1455. margin: 0;
  1456. ">
  1457. <!-- <div class="cc_title">
  1458. 任务{{ itemTaskIndex + 1 }}
  1459. </div> -->
  1460. <div class="cc_input">
  1461. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  1462. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1463. itemTaskIndex
  1464. ].task
  1465. " />
  1466. </div>
  1467. <div class="remove" v-if="
  1468. item.taskJson.length > 1 &&
  1469. (!unitJson[unitIndex].easy ||
  1470. unitJson[unitIndex].easy == 6)
  1471. " @click="deleteTask(itemTaskIndex)"></div>
  1472. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1473. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1474. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1475. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1476. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1477. </div> -->
  1478. </div>
  1479. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1480. display: flex;
  1481. margin: 20px 0;
  1482. flex-direction: row;
  1483. justify-content: flex-start;
  1484. align-items: center;
  1485. ">
  1486. <div class="lineTitle">任务描述</div>
  1487. </div> && !itemTask.isFold2-->
  1488. <div v-if="
  1489. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1490. -1
  1491. " style="margin-top: 20px" class="op_task_box"
  1492. v-loading="taskDetailLoading2.indexOf('task-' + itemTaskIndex) !== -1">
  1493. <!-- <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1494. itemTaskIndex
  1495. ].taskDetail
  1496. " @change="change"></editor-bar> -->
  1497. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  1498. placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1499. itemTaskIndex
  1500. ].taskDetail
  1501. "></textarea>
  1502. <!-- <textarea rows="6" class="binfo_input" placeholder="请输入任务描述" cols
  1503. style="width: 70.5% !important; height: 120px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1504. itemTaskIndex
  1505. ].taskDetail
  1506. "></textarea> -->
  1507. <div class="op_box">
  1508. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  1509. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1510. itemTaskIndex
  1511. ], itemTaskIndex)" @click="openAiDialog(2, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1512. itemTaskIndex
  1513. ], itemTaskIndex)">智能优化</div>
  1514. </div>
  1515. </div>
  1516. </div>
  1517. </div>
  1518. <div v-if="
  1519. unitJson[unitIndex].easy == 1 ||
  1520. (unitJson[unitIndex].easy == 5 &&
  1521. itemTask.taskType == 2)
  1522. ">
  1523. <div>
  1524. <div class="add_chapters_box add_c_none" v-if="
  1525. itemTask.chapterData &&
  1526. itemTask.chapterData.length == 0
  1527. ">
  1528. <img src="../../../assets/icon/new/c_none.png" alt />
  1529. </div>
  1530. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1531. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="
  1532. dragOver(index1, itemTaskIndex)
  1533. " @dragend="dragEnd()" :draggable="isdrag ==
  1534. 'chapter-' + itemTaskIndex + '-' + index1
  1535. " class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData"
  1536. :key="item1.id" @click="
  1537. getChapterData(
  1538. $event,
  1539. unitIndex,
  1540. index,
  1541. index1,
  1542. item1.type
  1543. )
  1544. " :class="{
  1545. dragOverTop2:
  1546. newIndex === index1 &&
  1547. typeIndex ==
  1548. 'chapter-' +
  1549. itemTaskIndex +
  1550. '-' +
  1551. index1 &&
  1552. oldIndex > index1,
  1553. dragOverBottom2:
  1554. newIndex === index1 &&
  1555. typeIndex ==
  1556. 'chapter-' +
  1557. itemTaskIndex +
  1558. '-' +
  1559. index1 &&
  1560. oldIndex < index1,
  1561. }">
  1562. <div @mousedown="
  1563. isdrag =
  1564. 'chapter-' + itemTaskIndex + '-' + index1
  1565. " @mouseup="isdrag = ''" @touchstart="
  1566. isdrag =
  1567. 'chapter-' + itemTaskIndex + '-' + index1
  1568. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1569. <div class="chapter_upload_t" style="width: 100%"></div>
  1570. <div class="chapter_upload_o" style="
  1571. position: relative;
  1572. display: flex;
  1573. align-items: center;
  1574. ">
  1575. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1576. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1577. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1578. </div>
  1579. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1580. </div>
  1581. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1582. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1583. </div>
  1584. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1585. </div>
  1586. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1587. </div>
  1588. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1589. </div>
  1590. </div>
  1591. <div class="chapter_upload_n">
  1592. <span style="
  1593. font-size: 14px;
  1594. color: rgb(109, 109, 109);
  1595. height: 14px;
  1596. line-height: 14px;
  1597. " v-if="
  1598. item1.type == 2 ||
  1599. item1.type == 3 ||
  1600. item1.type == 7
  1601. ">{{ item1.text }}-</span>
  1602. <input readonly="true" v-if="
  1603. item1.type == 2 ||
  1604. item1.type == 3 ||
  1605. item1.type == 7
  1606. " :placeholder="item1.name" @click="
  1607. updataVideoT(
  1608. $event,
  1609. unitIndex,
  1610. itemTaskIndex,
  1611. index1
  1612. )
  1613. " style="
  1614. border: none;
  1615. outline: none;
  1616. width: 80%;
  1617. minwidth: 215px;
  1618. z-index: 99;
  1619. font-size: 14px;
  1620. white-space: nowrap;
  1621. overflow: hidden;
  1622. text-overflow: ellipsis;
  1623. " />
  1624. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1625. border: none;
  1626. outline: none;
  1627. width: 80%;
  1628. white-space: nowrap;
  1629. overflow: hidden;
  1630. text-overflow: ellipsis;
  1631. " readonly="true" @click="
  1632. selectAttText(itemTaskIndex, index1)
  1633. " />
  1634. <input :placeholder="item1.title ? item1.title : '链接'
  1635. " v-if="item1.type == 8 || item1.type == 14" style="
  1636. border: none;
  1637. outline: none;
  1638. width: 80%;
  1639. white-space: nowrap;
  1640. overflow: hidden;
  1641. text-overflow: ellipsis;
  1642. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1643. </div>
  1644. <div class="chapter_upload_ic">
  1645. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1646. <div class="chapter_upload_ud" style="z-index: 99">
  1647. <div class="chapter_upload_up" @click="
  1648. upCd(
  1649. $event,
  1650. unitIndex,
  1651. index,
  1652. itemTaskIndex,
  1653. index1
  1654. )
  1655. "></div>
  1656. <div class="chapter_upload_down" @click="
  1657. downCd(
  1658. $event,
  1659. unitIndex,
  1660. index,
  1661. itemTaskIndex,
  1662. index1
  1663. )
  1664. "></div>
  1665. </div>
  1666. <div class="chapter_upload_ic_edit" v-if="
  1667. item1.type == 2 ||
  1668. item1.type == 3 ||
  1669. item1.type == 12 ||
  1670. item1.type == 13 ||
  1671. item1.type == 7
  1672. " @click.stop="
  1673. updataVideoT(
  1674. $event,
  1675. unitIndex,
  1676. itemTaskIndex,
  1677. index1
  1678. )
  1679. ">
  1680. <div></div>
  1681. </div>
  1682. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1683. selectAttText(itemTaskIndex, index1)
  1684. ">
  1685. <div></div>
  1686. </div>
  1687. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1688. @click="selectLine(itemTaskIndex, index1)">
  1689. <div></div>
  1690. </div>
  1691. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1692. openUpdateSource(itemTaskIndex, index1)
  1693. ">
  1694. <div></div>
  1695. </div>
  1696. <div class="chapter_upload_ic_r" @click.stop="
  1697. deleteChapterData(
  1698. $event,
  1699. unitIndex,
  1700. index,
  1701. index1,
  1702. itemTaskIndex
  1703. )
  1704. ">
  1705. <div></div>
  1706. </div>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. </div>
  1712. <div class="add_info_box" style="margin: 10px 0 0">
  1713. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1714. <span style="color: red">*</span>
  1715. 教学设计
  1716. <input type="file"
  1717. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1718. style="display: none" v-if="inputShow" @change="
  1719. beforeUpload3(
  1720. $event,
  1721. unitIndex,
  1722. 3,
  1723. itemTaskIndex,
  1724. '教学设计'
  1725. )
  1726. " />
  1727. </button>
  1728. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1729. <span style="color: red">*</span>
  1730. 教学课件
  1731. <input type="file"
  1732. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1733. style="display: none" v-if="inputShow" @change="
  1734. beforeUpload3(
  1735. $event,
  1736. unitIndex,
  1737. 3,
  1738. itemTaskIndex,
  1739. '教学课件'
  1740. )
  1741. " />
  1742. </button>
  1743. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1744. 教学视频
  1745. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1746. style="display: none" v-if="inputShow" @change="
  1747. beforeUpload3(
  1748. $event,
  1749. unitIndex,
  1750. 2,
  1751. itemTaskIndex,
  1752. '教学视频'
  1753. )
  1754. " />
  1755. </button>
  1756. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1757. 教学音频
  1758. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1759. beforeUpload3(
  1760. $event,
  1761. unitIndex,
  1762. 2,
  1763. itemTaskIndex,
  1764. '教学音频'
  1765. )
  1766. " />
  1767. </button>
  1768. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1769. 学习单
  1770. <input type="file"
  1771. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1772. style="display: none" v-if="inputShow" @change="
  1773. beforeUpload3(
  1774. $event,
  1775. unitIndex,
  1776. 3,
  1777. itemTaskIndex,
  1778. '学习单'
  1779. )
  1780. " />
  1781. </button>
  1782. </div>
  1783. <div v-if="
  1784. unitJson[unitIndex].chapterInfo[0].taskJson[
  1785. itemTaskIndex
  1786. ].proVisible
  1787. " class="mask">
  1788. <div class="progressBox">
  1789. <!-- <div id="closePro" class="closeCss">
  1790. <img src="../../../../assets/icon/close.png" alt />
  1791. </div> -->
  1792. <div class="lbox">
  1793. <img src="../../../assets/loading.gif" />上传中,请稍后
  1794. </div>
  1795. <div style="margin-bottom: 10px">
  1796. <span>{{
  1797. unitJson[unitIndex].chapterInfo[0].taskJson[
  1798. itemTaskIndex
  1799. ].isFinishSize
  1800. }}M</span>
  1801. /
  1802. <span>{{
  1803. unitJson[unitIndex].chapterInfo[0].taskJson[
  1804. itemTaskIndex
  1805. ].isAllSize
  1806. }}M</span>
  1807. </div>
  1808. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1809. itemTaskIndex
  1810. ].progress
  1811. ? unitJson[unitIndex].chapterInfo[0]
  1812. .taskJson[itemTaskIndex].progress
  1813. : 0
  1814. " style="width: 80%"></el-progress>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. </div>
  1819. <!-- padding: 20px; -->
  1820. <div style="
  1821. background: #fff;
  1822. border-radius: 5px;
  1823. margin-top: 15px;
  1824. ">
  1825. <div v-if="
  1826. unitJson[unitIndex].easy != 3 &&
  1827. !(
  1828. unitJson[unitIndex].easy == 5 &&
  1829. itemTask.taskType == 1
  1830. )
  1831. " style="
  1832. flex-direction: row;
  1833. justify-content: flex-start;
  1834. align-items: center;
  1835. ">
  1836. <div style="
  1837. display: flex;
  1838. flex-direction: row;
  1839. align-items: center;
  1840. margin: 5px 0 20px;
  1841. ">
  1842. <div class="lineTitle clineTitle">
  1843. {{
  1844. !unitJson[unitIndex].easy ||
  1845. unitJson[unitIndex].easy == 6 ||
  1846. easyArray.indexOf(unitJson[unitIndex].easy) !=
  1847. -1
  1848. ? "练习内容"
  1849. : "评价内容"
  1850. }}
  1851. </div>
  1852. <!-- <div class="line" style="width: 90%"></div> -->
  1853. </div>
  1854. </div>
  1855. <div v-if="
  1856. unitJson[unitIndex].easy == 6 ||
  1857. !unitJson[unitIndex].easy
  1858. " class="toolChoose">
  1859. <div class="tools">
  1860. <div class="leftTools" style="width: 100%" v-for="(
  1861. itemTool, toolIndex
  1862. ) in itemTask.toolChoose" :key="toolIndex">
  1863. <div style="
  1864. display: flex;
  1865. flex-direction: row;
  1866. align-items: baseline;
  1867. flex-wrap: nowrap;
  1868. justify-content: flex-start;
  1869. position: relative;
  1870. ">
  1871. <div style="margin-right: 20px; font-weight: bold"
  1872. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1873. 工具 {{ toolIndex + 1 }} :
  1874. </div>
  1875. <div class="chooseWho">
  1876. <div :class="itemTool.toolType == 0
  1877. ? 'isChooseActive'
  1878. : ''
  1879. " @click="
  1880. (itemTool.toolType = 0),
  1881. (itemTool.isFold3 = false),
  1882. $forceUpdate()
  1883. ">
  1884. 互动类
  1885. </div>
  1886. <div :class="itemTool.toolType == 1
  1887. ? 'isChooseActive'
  1888. : ''
  1889. " @click="
  1890. (itemTool.toolType = 1),
  1891. (itemTool.isFold3 = false),
  1892. $forceUpdate()
  1893. ">
  1894. 思维类
  1895. </div>
  1896. <div :class="itemTool.toolType == 6
  1897. ? 'isChooseActive'
  1898. : ''
  1899. " @click="
  1900. (itemTool.toolType = 6),
  1901. (itemTool.isFold3 = false),
  1902. $forceUpdate()
  1903. ">
  1904. 协作类
  1905. </div>
  1906. <div :class="itemTool.toolType == 2
  1907. ? 'isChooseActive'
  1908. : ''
  1909. " @click="
  1910. (itemTool.toolType = 2),
  1911. (itemTool.isFold3 = false),
  1912. $forceUpdate()
  1913. ">
  1914. 测评类
  1915. </div>
  1916. <div :class="itemTool.toolType == 7
  1917. ? 'isChooseActive'
  1918. : ''
  1919. " @click="
  1920. (itemTool.toolType = 7),
  1921. (itemTool.isFold3 = false),
  1922. $forceUpdate()
  1923. ">
  1924. 评价类
  1925. </div>
  1926. <div :class="itemTool.toolType == 3
  1927. ? 'isChooseActive'
  1928. : ''
  1929. " @click="
  1930. (itemTool.toolType = 3),
  1931. (itemTool.isFold3 = false),
  1932. $forceUpdate()
  1933. ">
  1934. 编程类
  1935. </div>
  1936. <div :class="itemTool.toolType == 5
  1937. ? 'isChooseActive'
  1938. : ''
  1939. " @click="
  1940. (itemTool.toolType = 5),
  1941. (itemTool.isFold3 = false),
  1942. $forceUpdate()
  1943. ">
  1944. 学科类
  1945. </div>
  1946. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1947. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1948. 其他
  1949. </div> -->
  1950. </div>
  1951. <div class="chapter_upload_ud2" style="z-index: 9; margin: 0 0 0 auto" :style="{
  1952. margin:
  1953. itemTask.toolChoose.length > 1
  1954. ? '0px 35px 0px auto'
  1955. : '0 0 0 auto',
  1956. }" v-if="itemTask.toolChoose.length > 1">
  1957. <div class="chapter_upload_up2" @click.stop="
  1958. upTool(
  1959. $event,
  1960. unitIndex,
  1961. itemTaskIndex,
  1962. toolIndex
  1963. )
  1964. ">
  1965. 上移
  1966. </div>
  1967. <div class="chapter_upload_down2" @click.stop="
  1968. downTool(
  1969. $event,
  1970. unitIndex,
  1971. itemTaskIndex,
  1972. toolIndex
  1973. )
  1974. ">
  1975. 下移
  1976. </div>
  1977. </div>
  1978. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1979. @click="fold3(itemTaskIndex, toolIndex)"
  1980. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1981. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1982. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1983. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1984. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1985. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1986. v-if="itemTask.toolChoose.length > 1" style="
  1987. position: absolute;
  1988. right: 0;
  1989. top: -5px;
  1990. "></div>
  1991. </div>
  1992. <!-- v-show="!itemTool.isFold3" -->
  1993. <div style="min-height: 163px">
  1994. <div class="toolSort" v-if="itemTool.toolType == 0">
  1995. <!-- <div class="tool">
  1996. <div
  1997. class="whiteBIcon"
  1998. @click="addTools(8, itemTaskIndex, toolIndex)"
  1999. >
  2000. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2001. <div style="margin: 5px 0">素材库</div>
  2002. </div>
  2003. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2004. <img
  2005. src="../../../assets/icon/checkNo.png"
  2006. alt
  2007. v-if="itemTool.tool.indexOf(8) == -1"
  2008. />
  2009. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2010. alt /><span>已选择</span></div>
  2011. </div>
  2012. </div>-->
  2013. <!-- <div class="tool">
  2014. <div
  2015. class="whiteBIcon"
  2016. @click="addTools(17, itemTaskIndex, toolIndex)"
  2017. >
  2018. <img
  2019. src="../../../assets/icon/secondToolList/library.png"
  2020. alt
  2021. />
  2022. <div style="margin: 5px 0">学习资料</div>
  2023. </div>
  2024. <div
  2025. class="check"
  2026. @click="addTools(17, itemTaskIndex, toolIndex)"
  2027. >
  2028. <img
  2029. src="../../../assets/icon/checkNo.png"
  2030. alt
  2031. v-if="itemTool.tool.indexOf(17) == -1"
  2032. />
  2033. <img
  2034. src="../../../assets/icon/checkedIs.png"
  2035. alt
  2036. v-else
  2037. />
  2038. </div>10
  2039. </div> -->
  2040. <div class="tool" :class="{
  2041. isToolChoose:
  2042. itemTool.tool.indexOf(10) != -1,
  2043. }" @click="
  2044. addTools(10, itemTaskIndex, toolIndex)
  2045. ">
  2046. <div class="whiteBIcon" @click.stop="
  2047. openTools(itemTaskIndex, 10, toolIndex)
  2048. ">
  2049. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2050. <div style="margin: 5px 0">倒计时</div>
  2051. </div>
  2052. <div class="noCTool">
  2053. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2054. </div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1">
  2056. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2057. </div>
  2058. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2059. <img src="../../../assets/icon/checkNo.png" alt
  2060. v-if="itemTool.tool.indexOf(10) == -1" />
  2061. <div class="checkDiv" v-else>
  2062. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2063. </div>
  2064. </div> -->
  2065. </div>
  2066. <div class="tool" :class="{
  2067. isToolChoose:
  2068. itemTool.tool.indexOf(65) != -1,
  2069. }" @click="
  2070. addTools(65, itemTaskIndex, toolIndex)
  2071. ">
  2072. <div class="whiteBIcon" @click.stop="
  2073. addTools(65, itemTaskIndex, toolIndex)
  2074. ">
  2075. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  2076. <div style="margin: 5px 0">挑人</div>
  2077. </div>
  2078. <div class="noCTool">
  2079. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2080. </div>
  2081. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1">
  2082. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2083. </div>
  2084. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2085. <img src="../../../assets/icon/checkNo.png" alt
  2086. v-if="itemTool.tool.indexOf(65) == -1" />
  2087. <div class="checkDiv" v-else>
  2088. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2089. </div>
  2090. </div> -->
  2091. </div>
  2092. <!-- <div class="tool">
  2093. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2094. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2095. <div style="margin: 5px 0">学生分组</div>
  2096. </div>
  2097. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2098. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2099. <div class="checkDiv" v-else>
  2100. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2101. </div>
  2102. </div>
  2103. </div> -->
  2104. <!-- <div class="tool">
  2105. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2106. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2107. <div style="margin: 5px 0">交互视频</div>
  2108. </div>
  2109. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2110. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div> -->
  2116. </div>
  2117. <div class="toolSort" v-if="itemTool.toolType == 1">
  2118. <div class="tool" :class="{
  2119. isToolChoose:
  2120. itemTool.tool.indexOf(7) != -1,
  2121. }" @click="
  2122. addTools(7, itemTaskIndex, toolIndex)
  2123. ">
  2124. <div class="whiteBIcon" @click.stop="
  2125. addTools(7, itemTaskIndex, toolIndex)
  2126. ">
  2127. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2128. <div style="margin: 5px 0">思维网格</div>
  2129. </div>
  2130. <div class="noCTool">
  2131. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2132. </div>
  2133. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1">
  2134. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2135. </div>
  2136. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2137. <img src="../../../assets/icon/checkNo.png" alt
  2138. v-if="itemTool.tool.indexOf(7) == -1" />
  2139. <div class="checkDiv" v-else>
  2140. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2141. </div>
  2142. </div> -->
  2143. </div>
  2144. <div class="tool" :class="{
  2145. isToolChoose:
  2146. itemTool.tool.indexOf(1) != -1,
  2147. }" @click="
  2148. addTools(1, itemTaskIndex, toolIndex)
  2149. ">
  2150. <div class="whiteBIcon" @click.stop="
  2151. openTools(itemTaskIndex, 1, toolIndex)
  2152. ">
  2153. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2154. <div style="margin: 5px 0">电子白板</div>
  2155. </div>
  2156. <div class="noCTool">
  2157. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2158. </div>
  2159. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1">
  2160. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2161. </div>
  2162. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2163. <img src="../../../assets/icon/checkNo.png" alt
  2164. v-if="itemTool.tool.indexOf(1) == -1" />
  2165. <div class="checkDiv" v-else>
  2166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2167. </div>
  2168. </div> -->
  2169. </div>
  2170. <!-- <div class="tool">
  2171. <div
  2172. class="whiteBIcon"
  2173. @click="addTools(2, itemTaskIndex, toolIndex)"
  2174. >
  2175. <img
  2176. src="../../../assets/icon/secondToolList/note.png"
  2177. alt
  2178. />
  2179. <div style="margin: 5px 0">便签</div>
  2180. </div>
  2181. <div
  2182. class="check"
  2183. @click="addTools(2, itemTaskIndex, toolIndex)"
  2184. >
  2185. <img
  2186. src="../../../assets/icon/checkNo.png"
  2187. alt
  2188. v-if="itemTool.tool.indexOf(2) == -1"
  2189. />
  2190. <div class="checkDiv" v-else>
  2191. <img
  2192. src="../../../assets/icon/checkedIs.png"
  2193. alt
  2194. /><span>已选择</span>
  2195. </div>
  2196. </div>
  2197. </div> -->
  2198. <!-- <div class="tool">
  2199. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2200. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2201. <div style="margin: 5px 0">协同文档</div>
  2202. </div>
  2203. <div
  2204. class="check"
  2205. @click="addTools(6, itemTaskIndex, toolIndex)"
  2206. >
  2207. <img
  2208. src="../../../assets/icon/checkNo.png"
  2209. alt
  2210. v-if="itemTool.tool.indexOf(6) == -1"
  2211. />
  2212. <div class="checkDiv" v-else>
  2213. <img
  2214. src="../../../assets/icon/checkedIs.png"
  2215. alt
  2216. /><span>已选择</span>
  2217. </div>
  2218. </div>
  2219. </div> -->
  2220. <div class="tool" :class="{
  2221. isToolChoose:
  2222. itemTool.tool.indexOf(52) != -1,
  2223. }" @click="
  2224. addTools(52, itemTaskIndex, toolIndex)
  2225. ">
  2226. <div class="whiteBIcon" @click.stop="
  2227. openTools(itemTaskIndex, 52, toolIndex)
  2228. ">
  2229. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2230. <div style="margin: 5px 0">文档</div>
  2231. </div>
  2232. <div class="noCTool">
  2233. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2234. </div>
  2235. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1">
  2236. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2237. </div>
  2238. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2239. <img src="../../../assets/icon/checkNo.png" alt
  2240. v-if="itemTool.tool.indexOf(52) == -1" />
  2241. <div class="checkDiv" v-else>
  2242. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2243. </div>
  2244. </div> -->
  2245. </div>
  2246. <div class="tool" :class="{
  2247. isToolChoose:
  2248. itemTool.tool.indexOf(3) != -1,
  2249. }" @click="
  2250. addTools(3, itemTaskIndex, toolIndex)
  2251. ">
  2252. <div class="whiteBIcon" @click.stop="
  2253. openTools(itemTaskIndex, 3, toolIndex)
  2254. ">
  2255. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2256. <div style="margin: 5px 0">思维导图</div>
  2257. </div>
  2258. <div class="noCTool">
  2259. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2260. </div>
  2261. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1">
  2262. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2263. </div>
  2264. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2265. <img src="../../../assets/icon/checkNo.png" alt
  2266. v-if="itemTool.tool.indexOf(3) == -1" />
  2267. <div class="checkDiv" v-else>
  2268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2269. </div>
  2270. </div> -->
  2271. </div>
  2272. <div class="tool" :class="{
  2273. isToolChoose:
  2274. itemTool.tool.indexOf(48) != -1,
  2275. }" @click="
  2276. addTools(48, itemTaskIndex, toolIndex)
  2277. ">
  2278. <div class="whiteBIcon" @click.stop="
  2279. openTools(itemTaskIndex, 48, toolIndex)
  2280. ">
  2281. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2282. <div style="margin: 5px 0">表格</div>
  2283. </div>
  2284. <div class="noCTool">
  2285. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2286. </div>
  2287. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1">
  2288. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2289. </div>
  2290. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2291. <img src="../../../assets/icon/checkNo.png" alt
  2292. v-if="itemTool.tool.indexOf(48) == -1" />
  2293. <div class="checkDiv" v-else>
  2294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2295. </div>
  2296. </div> -->
  2297. </div>
  2298. </div>
  2299. <div class="toolSort" v-if="itemTool.toolType == 6">
  2300. <div class="tool" :class="{
  2301. isToolChoose:
  2302. itemTool.tool.indexOf(49) != -1,
  2303. }" @click="
  2304. addTools(49, itemTaskIndex, toolIndex)
  2305. ">
  2306. <div class="whiteBIcon" @click.stop="
  2307. openTools(itemTaskIndex, 49, toolIndex)
  2308. ">
  2309. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2310. <div style="margin: 5px 0">学生分组</div>
  2311. </div>
  2312. <div class="noCTool">
  2313. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2314. </div>
  2315. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1">
  2316. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2317. </div>
  2318. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2319. <img src="../../../assets/icon/checkNo.png" alt
  2320. v-if="itemTool.tool.indexOf(49) == -1" />
  2321. <div class="checkDiv" v-else>
  2322. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2323. </div>
  2324. </div> -->
  2325. </div>
  2326. </div>
  2327. <div class="toolSort" v-if="itemTool.toolType == 2">
  2328. <!-- <div class="tool">
  2329. <div
  2330. class="whiteBIcon"
  2331. @click="addTools(5, itemTaskIndex, toolIndex)"
  2332. >
  2333. <img
  2334. src="../../../assets/icon/thirdToolList/score.png"
  2335. alt
  2336. />
  2337. <div style="margin: 5px 0">量规评分</div>
  2338. </div>
  2339. <div
  2340. class="check"
  2341. @click="addTools(5, itemTaskIndex, toolIndex)"
  2342. >
  2343. <img
  2344. src="../../../assets/icon/checkNo.png"
  2345. alt
  2346. v-if="itemTool.tool.indexOf(5) == -1"
  2347. />
  2348. <img
  2349. src="../../../assets/icon/checkedIs.png"
  2350. alt
  2351. v-else
  2352. />
  2353. </div>
  2354. </div>-->
  2355. <div class="tool" :class="{
  2356. isToolChoose:
  2357. itemTool.tool.indexOf(4) != -1,
  2358. }" @click="
  2359. addTools(4, itemTaskIndex, toolIndex)
  2360. ">
  2361. <div class="whiteBIcon" @click.stop="
  2362. openTools(itemTaskIndex, 4, toolIndex)
  2363. ">
  2364. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2365. <div style="margin: 5px 0">问卷调查</div>
  2366. </div>
  2367. <div class="noCTool">
  2368. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2369. </div>
  2370. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1">
  2371. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2372. </div>
  2373. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2374. <img src="../../../assets/icon/checkNo.png" alt
  2375. v-if="itemTool.tool.indexOf(4) == -1" />
  2376. <div class="checkDiv" v-else>
  2377. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2378. </div>
  2379. </div> -->
  2380. </div>
  2381. <div class="tool" :class="{
  2382. isToolChoose:
  2383. itemTool.tool.indexOf(45) != -1,
  2384. }" @click="
  2385. addTools(45, itemTaskIndex, toolIndex)
  2386. ">
  2387. <div class="whiteBIcon" @click="
  2388. openTools(itemTaskIndex, 45, toolIndex)
  2389. ">
  2390. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2391. <div style="margin: 5px 0">选择题</div>
  2392. </div>
  2393. <div class="noCTool">
  2394. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2395. </div>
  2396. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1">
  2397. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2398. </div>
  2399. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2400. <img src="../../../assets/icon/checkNo.png" alt
  2401. v-if="itemTool.tool.indexOf(45) == -1" />
  2402. <div class="checkDiv" v-else>
  2403. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2404. </div>
  2405. </div> -->
  2406. </div>
  2407. <div class="tool" :class="{
  2408. isToolChoose:
  2409. itemTool.tool.indexOf(15) != -1,
  2410. }" @click="
  2411. addTools(15, itemTaskIndex, toolIndex)
  2412. ">
  2413. <div class="whiteBIcon" @click.stop="
  2414. openTools(itemTaskIndex, 15, toolIndex)
  2415. ">
  2416. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2417. <div style="margin: 5px 0">问答</div>
  2418. </div>
  2419. <div class="noCTool">
  2420. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2421. </div>
  2422. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1">
  2423. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2424. </div>
  2425. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2426. <img src="../../../assets/icon/checkNo.png" alt
  2427. v-if="itemTool.tool.indexOf(15) == -1" />
  2428. <div class="checkDiv" v-else>
  2429. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2430. </div>
  2431. </div> -->
  2432. </div>
  2433. <div class="tool" :class="{
  2434. isToolChoose:
  2435. itemTool.tool.indexOf(16) != -1,
  2436. }" @click="
  2437. addTools(16, itemTaskIndex, toolIndex)
  2438. ">
  2439. <div class="whiteBIcon" @click.stop="
  2440. addTools(16, itemTaskIndex, toolIndex)
  2441. ">
  2442. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2443. <div style="margin: 5px 0">作业提交</div>
  2444. </div>
  2445. <div class="noCTool">
  2446. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2447. </div>
  2448. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1">
  2449. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2450. </div>
  2451. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2452. <img src="../../../assets/icon/checkNo.png" alt
  2453. v-if="itemTool.tool.indexOf(16) == -1" />
  2454. <div class="checkDiv" v-else>
  2455. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2456. </div>
  2457. </div> -->
  2458. </div>
  2459. <div class="tool" :class="{
  2460. isToolChoose:
  2461. itemTool.tool.indexOf(50) != -1,
  2462. }" @click="
  2463. addTools(50, itemTaskIndex, toolIndex)
  2464. ">
  2465. <div class="whiteBIcon" @click.stop="
  2466. addTools(50, itemTaskIndex, toolIndex)
  2467. ">
  2468. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2469. <div style="margin: 5px 0">批量上传</div>
  2470. </div>
  2471. <div class="noCTool">
  2472. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2473. </div>
  2474. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1">
  2475. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2476. </div>
  2477. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2478. <img src="../../../assets/icon/checkNo.png" alt
  2479. v-if="itemTool.tool.indexOf(50) == -1" />
  2480. <div class="checkDiv" v-else>
  2481. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2482. </div>
  2483. </div> -->
  2484. </div>
  2485. <!-- <div class="tool">
  2486. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2487. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2488. <div style="margin: 5px 0">个人评价</div>
  2489. </div>
  2490. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2491. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2492. <div class="checkDiv" v-else>
  2493. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2494. </div>
  2495. </div>
  2496. </div> -->
  2497. <div class="tool" :class="{
  2498. isToolChoose:
  2499. itemTool.tool.indexOf(41) != -1,
  2500. }" @click="
  2501. addTools(41, itemTaskIndex, toolIndex)
  2502. ">
  2503. <div class="whiteBIcon" @click.stop="
  2504. openTools(itemTaskIndex, 41, toolIndex)
  2505. ">
  2506. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2507. <div style="margin: 5px 0">选择匹配</div>
  2508. </div>
  2509. <div class="noCTool">
  2510. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2511. </div>
  2512. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1">
  2513. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2514. </div>
  2515. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2516. <img src="../../../assets/icon/checkNo.png" alt
  2517. v-if="itemTool.tool.indexOf(41) == -1" />
  2518. <div class="checkDiv" v-else>
  2519. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2520. </div>
  2521. </div> -->
  2522. </div>
  2523. <div class="tool" :class="{
  2524. isToolChoose:
  2525. itemTool.tool.indexOf(47) != -1,
  2526. }" @click="
  2527. addTools(47, itemTaskIndex, toolIndex)
  2528. ">
  2529. <div class="whiteBIcon" @click.stop="
  2530. openTools(itemTaskIndex, 47, toolIndex)
  2531. ">
  2532. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2533. <div style="margin: 5px 0">排序</div>
  2534. </div>
  2535. <div class="noCTool">
  2536. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2537. </div>
  2538. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1">
  2539. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2540. </div>
  2541. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2542. <img src="../../../assets/icon/checkNo.png" alt
  2543. v-if="itemTool.tool.indexOf(47) == -1" />
  2544. <div class="checkDiv" v-else>
  2545. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2546. </div>
  2547. </div> -->
  2548. </div>
  2549. <!-- <div class="tool">
  2550. <div
  2551. class="whiteBIcon"
  2552. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2553. >
  2554. <img
  2555. src="../../../assets/icon/thirdToolList/mp3.png"
  2556. alt
  2557. />
  2558. <div style="margin: 5px 0">上传音频</div>
  2559. </div>
  2560. <div
  2561. class="check"
  2562. @click="addTools(42, itemTaskIndex, toolIndex)"
  2563. >
  2564. <img
  2565. src="../../../assets/icon/checkNo.png"
  2566. alt
  2567. v-if="itemTool.tool.indexOf(42) == -1"
  2568. />
  2569. <img
  2570. src="../../../assets/icon/checkedIs.png"
  2571. alt
  2572. v-else
  2573. />
  2574. </div>
  2575. </div> -->
  2576. </div>
  2577. <div class="toolSort" v-if="itemTool.toolType == 3">
  2578. <div class="tool" :class="{
  2579. isToolChoose:
  2580. itemTool.tool.indexOf(18) != -1,
  2581. }" @click="
  2582. addTools(18, itemTaskIndex, toolIndex)
  2583. ">
  2584. <div class="whiteBIcon" @click.stop="
  2585. addTools(18, itemTaskIndex, toolIndex)
  2586. ">
  2587. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2588. <div style="margin: 5px 0">训练平台</div>
  2589. </div>
  2590. <div class="noCTool">
  2591. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2592. </div>
  2593. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1">
  2594. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2595. </div>
  2596. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2597. <img src="../../../assets/icon/checkNo.png" alt
  2598. v-if="itemTool.tool.indexOf(18) == -1" />
  2599. <div class="checkDiv" v-else>
  2600. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2601. </div>
  2602. </div> -->
  2603. </div>
  2604. <div class="tool" :class="{
  2605. isToolChoose:
  2606. itemTool.tool.indexOf(21) != -1,
  2607. }" @click="
  2608. addTools(21, itemTaskIndex, toolIndex)
  2609. ">
  2610. <div class="whiteBIcon" @click.stop="
  2611. addTools(21, itemTaskIndex, toolIndex)
  2612. ">
  2613. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2614. <div style="margin: 5px 0">
  2615. AIoT Blockly
  2616. </div>
  2617. </div>
  2618. <div class="noCTool">
  2619. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2620. </div>
  2621. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1">
  2622. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2623. </div>
  2624. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2625. <img src="../../../assets/icon/checkNo.png" alt
  2626. v-if="itemTool.tool.indexOf(21) == -1" />
  2627. <div class="checkDiv" v-else>
  2628. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2629. </div>
  2630. </div> -->
  2631. </div>
  2632. <!-- <div class="tool">
  2633. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2634. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2635. <div style="margin: 5px 0">AI体验</div>
  2636. </div>
  2637. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2638. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2639. <div class="checkDiv" v-else>
  2640. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2641. </div>
  2642. </div>
  2643. </div> -->
  2644. <div class="tool" :class="{
  2645. isToolChoose:
  2646. itemTool.tool.indexOf(23) != -1,
  2647. }" @click="
  2648. addTools(23, itemTaskIndex, toolIndex)
  2649. ">
  2650. <div class="whiteBIcon" @click.stop="
  2651. addTools(23, itemTaskIndex, toolIndex)
  2652. ">
  2653. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2654. <div style="margin: 5px 0">AI Python</div>
  2655. </div>
  2656. <div class="noCTool">
  2657. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2658. </div>
  2659. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1">
  2660. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2661. </div>
  2662. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2663. <img src="../../../assets/icon/checkNo.png" alt
  2664. v-if="itemTool.tool.indexOf(23) == -1" />
  2665. <div class="checkDiv" v-else>
  2666. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2667. </div>
  2668. </div> -->
  2669. </div>
  2670. <div class="tool" :class="{
  2671. isToolChoose:
  2672. itemTool.tool.indexOf(24) != -1,
  2673. }" @click="
  2674. addTools(24, itemTaskIndex, toolIndex)
  2675. ">
  2676. <div class="whiteBIcon" @click.stop="
  2677. addTools(24, itemTaskIndex, toolIndex)
  2678. ">
  2679. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2680. <div style="margin: 5px 0">
  2681. AI Blockly
  2682. </div>
  2683. </div>
  2684. <div class="noCTool">
  2685. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2686. </div>
  2687. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1">
  2688. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2689. </div>
  2690. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2691. <img src="../../../assets/icon/checkNo.png" alt
  2692. v-if="itemTool.tool.indexOf(24) == -1" />
  2693. <div class="checkDiv" v-else>
  2694. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2695. </div>
  2696. </div> -->
  2697. </div>
  2698. <div class="tool" :class="{
  2699. isToolChoose:
  2700. itemTool.tool.indexOf(32) != -1,
  2701. }" @click="
  2702. addTools(32, itemTaskIndex, toolIndex)
  2703. ">
  2704. <div class="whiteBIcon" @click.stop="
  2705. addTools(32, itemTaskIndex, toolIndex)
  2706. ">
  2707. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2708. <div style="margin: 5px 0">源码编辑</div>
  2709. </div>
  2710. <div class="noCTool">
  2711. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2712. </div>
  2713. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1">
  2714. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2715. </div>
  2716. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2717. <img src="../../../assets/icon/checkNo.png" alt
  2718. v-if="itemTool.tool.indexOf(32) == -1" />
  2719. <div class="checkDiv" v-else>
  2720. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2721. </div>
  2722. </div> -->
  2723. </div>
  2724. <div class="tool" :class="{
  2725. isToolChoose:
  2726. itemTool.tool.indexOf(57) != -1,
  2727. }" @click="
  2728. addTools(57, itemTaskIndex, toolIndex)
  2729. ">
  2730. <div class="whiteBIcon" @click.stop="
  2731. openTools(itemTaskIndex, 57, toolIndex)
  2732. ">
  2733. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2734. <div style="margin: 5px 0">CocoPi</div>
  2735. </div>
  2736. <div class="noCTool">
  2737. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2738. </div>
  2739. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1">
  2740. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2741. </div>
  2742. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt
  2744. v-if="itemTool.tool.indexOf(57) == -1" />
  2745. <div class="checkDiv" v-else>
  2746. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2747. </div>
  2748. </div> -->
  2749. </div>
  2750. <div class="tool" :class="{
  2751. isToolChoose:
  2752. itemTool.tool.indexOf(63) != -1,
  2753. }" @click="
  2754. addTools(63, itemTaskIndex, toolIndex)
  2755. ">
  2756. <div class="whiteBIcon" @click.stop="
  2757. addTools(63, itemTaskIndex, toolIndex)
  2758. ">
  2759. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2760. <div style="margin: 5px 0">海龟编程</div>
  2761. </div>
  2762. <div class="noCTool">
  2763. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2764. </div>
  2765. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1">
  2766. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2767. </div>
  2768. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2769. <img src="../../../assets/icon/checkNo.png" alt
  2770. v-if="itemTool.tool.indexOf(63) == -1" />
  2771. <div class="checkDiv" v-else>
  2772. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2773. </div>
  2774. </div> -->
  2775. </div>
  2776. <div class="tool" :class="{
  2777. isToolChoose:
  2778. itemTool.tool.indexOf(71) != -1,
  2779. }" @click="
  2780. addTools(71, itemTaskIndex, toolIndex)
  2781. ">
  2782. <div class="whiteBIcon" @click.stop="
  2783. addTools(71, itemTaskIndex, toolIndex)
  2784. ">
  2785. <img src="../../../assets/icon/fourthToolList/chatgpt.png" alt />
  2786. <div style="margin: 5px 0">AI智能体</div>
  2787. </div>
  2788. <div class="noCTool">
  2789. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2790. </div>
  2791. <div class="isCTool" v-if="itemTool.tool.indexOf(71) != -1">
  2792. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2793. </div>
  2794. </div>
  2795. </div>
  2796. <div class="toolSort" v-if="itemTool.toolType == 7">
  2797. <div class="tool" :class="{
  2798. isToolChoose:
  2799. itemTool.tool.indexOf(40) != -1,
  2800. }" @click.stop="
  2801. addTools(40, itemTaskIndex, toolIndex)
  2802. ">
  2803. <div class="whiteBIcon" @click.stop="
  2804. openTools(itemTaskIndex, 40, toolIndex)
  2805. ">
  2806. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2807. <div style="margin: 5px 0">个人评价</div>
  2808. </div>
  2809. <div class="noCTool">
  2810. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2811. </div>
  2812. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1">
  2813. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2814. </div>
  2815. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2816. <img src="../../../assets/icon/checkNo.png" alt
  2817. v-if="itemTool.tool.indexOf(40) == -1" />
  2818. <div class="checkDiv" v-else>
  2819. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2820. </div>
  2821. </div> -->
  2822. </div>
  2823. </div>
  2824. <div class="toolSort" v-if="itemTool.toolType == 5">
  2825. <div class="tool" :class="{
  2826. isToolChoose:
  2827. itemTool.tool.indexOf(28) != -1,
  2828. }" @click="
  2829. addTools(28, itemTaskIndex, toolIndex)
  2830. ">
  2831. <div class="whiteBIcon" @click.stop="
  2832. addTools(28, itemTaskIndex, toolIndex)
  2833. ">
  2834. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2835. <div style="margin: 5px 0">翻译</div>
  2836. </div>
  2837. <div class="noCTool">
  2838. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2839. </div>
  2840. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1">
  2841. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2842. </div>
  2843. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2844. <img src="../../../assets/icon/checkNo.png" alt
  2845. v-if="itemTool.tool.indexOf(28) == -1" />
  2846. <div class="checkDiv" v-else>
  2847. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2848. </div>
  2849. </div> -->
  2850. </div>
  2851. <div class="tool" :class="{
  2852. isToolChoose:
  2853. itemTool.tool.indexOf(31) != -1,
  2854. }" @click="
  2855. addTools(31, itemTaskIndex, toolIndex)
  2856. ">
  2857. <div class="whiteBIcon" @click.stop="
  2858. addTools(31, itemTaskIndex, toolIndex)
  2859. ">
  2860. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2861. <div style="margin: 5px 0">数字画板</div>
  2862. </div>
  2863. <div class="noCTool">
  2864. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2865. </div>
  2866. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1">
  2867. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2868. </div>
  2869. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2870. <img src="../../../assets/icon/checkNo.png" alt
  2871. v-if="itemTool.tool.indexOf(31) == -1" />
  2872. <div class="checkDiv" v-else>
  2873. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2874. </div>
  2875. </div> -->
  2876. </div>
  2877. <div class="tool" :class="{
  2878. isToolChoose:
  2879. itemTool.tool.indexOf(39) != -1,
  2880. }" @click="
  2881. addTools(39, itemTaskIndex, toolIndex)
  2882. ">
  2883. <div class="whiteBIcon" @click.stop="
  2884. addTools(39, itemTaskIndex, toolIndex)
  2885. ">
  2886. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2887. <div style="margin: 5px 0">GeoGebra</div>
  2888. </div>
  2889. <div class="noCTool">
  2890. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2891. </div>
  2892. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1">
  2893. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2894. </div>
  2895. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2896. <img src="../../../assets/icon/checkNo.png" alt
  2897. v-if="itemTool.tool.indexOf(39) == -1" />
  2898. <div class="checkDiv" v-else>
  2899. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2900. </div>
  2901. </div> -->
  2902. </div>
  2903. <div class="tool" :class="{
  2904. isToolChoose:
  2905. itemTool.tool.indexOf(66) != -1,
  2906. }" @click="
  2907. addTools(66, itemTaskIndex, toolIndex)
  2908. ">
  2909. <div class="whiteBIcon" @click.stop="
  2910. addTools(66, itemTaskIndex, toolIndex)
  2911. ">
  2912. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  2913. <div style="margin: 5px 0">公式编辑</div>
  2914. </div>
  2915. <div class="noCTool">
  2916. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2917. </div>
  2918. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1">
  2919. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2920. </div>
  2921. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2922. <img src="../../../assets/icon/checkNo.png" alt
  2923. v-if="itemTool.tool.indexOf(66) == -1" />
  2924. <div class="checkDiv" v-else>
  2925. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2926. </div>
  2927. </div> -->
  2928. </div>
  2929. <!-- <div class="tool">
  2930. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2931. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  2932. <div style="margin: 5px 0">分子结构</div>
  2933. </div>
  2934. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2935. <img src="../../../assets/icon/checkNo.png" alt
  2936. v-if="itemTool.tool.indexOf(67) == -1" />
  2937. <div class="checkDiv" v-else>
  2938. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2939. </div>
  2940. </div>
  2941. </div> -->
  2942. <div class="tool" :class="{
  2943. isToolChoose:
  2944. itemTool.tool.indexOf(68) != -1,
  2945. }" @click="
  2946. addTools(68, itemTaskIndex, toolIndex)
  2947. ">
  2948. <div class="whiteBIcon" @click.stop="
  2949. addTools(68, itemTaskIndex, toolIndex)
  2950. ">
  2951. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  2952. <div style="margin: 5px 0">时间轴</div>
  2953. </div>
  2954. <div class="noCTool">
  2955. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2956. </div>
  2957. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1">
  2958. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2959. </div>
  2960. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2961. <img src="../../../assets/icon/checkNo.png" alt
  2962. v-if="itemTool.tool.indexOf(68) == -1" />
  2963. <div class="checkDiv" v-else>
  2964. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2965. </div>
  2966. </div> -->
  2967. </div>
  2968. <div class="tool" :class="{
  2969. isToolChoose:
  2970. itemTool.tool.indexOf(69) != -1,
  2971. }" @click="
  2972. addTools(69, itemTaskIndex, toolIndex)
  2973. ">
  2974. <div class="whiteBIcon" @click.stop="
  2975. openTools(itemTaskIndex, 69, toolIndex)
  2976. ">
  2977. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  2978. <div style="margin: 5px 0">英语写作</div>
  2979. </div>
  2980. <div class="noCTool">
  2981. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2982. </div>
  2983. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1">
  2984. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2985. </div>
  2986. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2987. <img src="../../../assets/icon/checkNo.png" alt
  2988. v-if="itemTool.tool.indexOf(4) == -1" />
  2989. <div class="checkDiv" v-else>
  2990. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2991. </div>
  2992. </div> -->
  2993. </div>
  2994. <div class="tool" :class="{
  2995. isToolChoose:
  2996. itemTool.tool.indexOf(70) != -1,
  2997. }" @click="
  2998. addTools(70, itemTaskIndex, toolIndex)
  2999. ">
  3000. <div class="whiteBIcon" @click.stop="
  3001. openTools(itemTaskIndex, 70, toolIndex)
  3002. ">
  3003. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  3004. <div style="margin: 5px 0">英语口语</div>
  3005. </div>
  3006. <div class="noCTool">
  3007. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3008. </div>
  3009. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1">
  3010. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3011. </div>
  3012. </div>
  3013. <!-- <div class="tool">
  3014. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3015. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3016. <div style="margin: 5px 0">翻译</div>
  3017. </div>
  3018. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3019. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3020. <div class="checkDiv" v-else>
  3021. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3022. </div>
  3023. </div>
  3024. </div>
  3025. <div class="tool">
  3026. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3027. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3028. <div style="margin: 5px 0">魔盒识字</div>
  3029. </div>
  3030. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3031. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3032. <div class="checkDiv" v-else>
  3033. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3034. </div>
  3035. </div>
  3036. </div>
  3037. <div class="tool">
  3038. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3039. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3040. <div style="margin: 5px 0">24点</div>
  3041. </div>
  3042. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3043. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3044. <div class="checkDiv" v-else>
  3045. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div class="tool">
  3050. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3051. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3052. <div style="margin: 5px 0">数学画板</div>
  3053. </div>
  3054. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3055. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3056. <div class="checkDiv" v-else>
  3057. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3058. </div>
  3059. </div>
  3060. </div>
  3061. <div class="tool">
  3062. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3063. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3064. <div style="margin: 5px 0">GeoGebra</div>
  3065. </div>
  3066. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3067. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3068. <div class="checkDiv" v-else>
  3069. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. <div class="tool">
  3074. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3075. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3076. <div style="margin: 5px 0">模拟驾驶</div>
  3077. </div>
  3078. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3079. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3080. <div class="checkDiv" v-else>
  3081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3082. </div>
  3083. </div>
  3084. </div>
  3085. <div class="tool">
  3086. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3087. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3088. <div style="margin: 5px 0">路径搜索</div>
  3089. </div>
  3090. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3091. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3092. <div class="checkDiv" v-else>
  3093. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. <div class="tool">
  3098. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3099. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3100. <div style="margin: 5px 0">深度学习</div>
  3101. </div>
  3102. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3103. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3104. <div class="checkDiv" v-else>
  3105. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3106. </div>
  3107. </div>
  3108. </div>
  3109. <div class="tool">
  3110. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3111. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3112. <div style="margin: 5px 0">全历史</div>
  3113. </div>
  3114. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3115. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3116. <div class="checkDiv" v-else>
  3117. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3118. </div>
  3119. </div>
  3120. </div>
  3121. </div>
  3122. <div class="toolSort" v-if="itemTool.toolType == 4">
  3123. <div class="tool">
  3124. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3125. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3126. <div style="margin: 5px 0">课程设计</div>
  3127. </div>
  3128. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3129. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3130. <div class="checkDiv" v-else>
  3131. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3132. </div>
  3133. </div>
  3134. </div>
  3135. <div class="tool">
  3136. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3137. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3138. <div style="margin: 5px 0">目标管理</div>
  3139. </div>
  3140. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3141. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3142. <div class="checkDiv" v-else>
  3143. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3144. </div>
  3145. </div>
  3146. </div> -->
  3147. <!-- <div class="tool">
  3148. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3149. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3150. <div style="margin: 5px 0">汉字宫</div>
  3151. </div>
  3152. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3153. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3154. <div class="checkDiv" v-else>
  3155. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3156. </div>
  3157. </div>
  3158. </div> -->
  3159. </div>
  3160. </div>
  3161. <!-- v-show="!itemTool.isFold3" -->
  3162. <div class="op_tool_box"
  3163. v-loading="taskDetailLoading3.indexOf('task-' + itemTaskIndex + toolIndex) !== -1">
  3164. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述"
  3165. class="binfo_input" style="
  3166. margin: 0 0 20px 0;
  3167. width: 100% !important;
  3168. " v-model="itemTool.toolDetail"></textarea>
  3169. <div class="op_box">
  3170. <div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
  3171. <div class="r_pub_button_op"
  3172. @contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
  3173. @click="openAiDialog(2, 'aiDetail3', itemTool.toolDetail, itemTaskIndex, toolIndex)">
  3174. 智能优化</div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3179. <div class="addToolImg">
  3180. <img src="../../../assets/icon/add.png" alt />
  3181. </div>
  3182. <div>添加工具</div>
  3183. </div> -->
  3184. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="
  3185. margin: 0 auto;
  3186. padding: 0 30px;
  3187. height: 45px;
  3188. ">
  3189. 添加工具
  3190. </button>
  3191. </div>
  3192. </div>
  3193. <div v-else-if="
  3194. unitJson[unitIndex].easy == 2 ||
  3195. unitJson[unitIndex].easy == 4
  3196. " class="toolChoose" style="padding: 0 0 40px">
  3197. <div class="tools">
  3198. <div class="leftTools" style="width: 100%" v-for="(
  3199. itemTool, toolIndex
  3200. ) in itemTask.toolChoose" :key="toolIndex">
  3201. <div>
  3202. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  3203. margin: 0 0 20px 0;
  3204. width: 100% !important;
  3205. " v-model="itemTool.toolDetail"></textarea>
  3206. </div>
  3207. <div style="
  3208. display: flex;
  3209. flex-direction: row;
  3210. align-items: baseline;
  3211. flex-wrap: nowrap;
  3212. justify-content: flex-start;
  3213. position: relative;
  3214. ">
  3215. <div style="margin-right: 20px; font-weight: bold"
  3216. :id="'gj' + itemTaskIndex + '' + toolIndex">
  3217. 工具 {{ toolIndex + 1 }} :
  3218. </div>
  3219. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3220. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  3221. </div>
  3222. <div style="min-height: 163px">
  3223. <div class="toolSort">
  3224. <div class="tool">
  3225. <div class="whiteBIcon" @click="
  3226. openTools(itemTaskIndex, 1, toolIndex)
  3227. ">
  3228. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3229. <div style="margin: 5px 0">电子白板</div>
  3230. </div>
  3231. <div class="check" @click="
  3232. addTools(1, itemTaskIndex, toolIndex)
  3233. ">
  3234. <img src="../../../assets/icon/checkNo.png" alt
  3235. v-if="itemTool.tool.indexOf(1) == -1" />
  3236. <div class="checkDiv" v-else>
  3237. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3238. </div>
  3239. </div>
  3240. </div>
  3241. <div class="tool">
  3242. <div class="whiteBIcon" @click="
  3243. openTools(itemTaskIndex, 52, toolIndex)
  3244. ">
  3245. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3246. <div style="margin: 5px 0">文档</div>
  3247. </div>
  3248. <div class="check" @click="
  3249. addTools(52, itemTaskIndex, toolIndex)
  3250. ">
  3251. <img src="../../../assets/icon/checkNo.png" alt
  3252. v-if="itemTool.tool.indexOf(52) == -1" />
  3253. <div class="checkDiv" v-else>
  3254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3255. </div>
  3256. </div>
  3257. </div>
  3258. <div class="tool">
  3259. <div class="whiteBIcon" @click="
  3260. openTools(itemTaskIndex, 3, toolIndex)
  3261. ">
  3262. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3263. <div style="margin: 5px 0">思维导图</div>
  3264. </div>
  3265. <div class="check" @click="
  3266. addTools(3, itemTaskIndex, toolIndex)
  3267. ">
  3268. <img src="../../../assets/icon/checkNo.png" alt
  3269. v-if="itemTool.tool.indexOf(3) == -1" />
  3270. <div class="checkDiv" v-else>
  3271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3272. </div>
  3273. </div>
  3274. </div>
  3275. <div class="tool">
  3276. <div class="whiteBIcon" @click="
  3277. openTools(itemTaskIndex, 4, toolIndex)
  3278. ">
  3279. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3280. <div style="margin: 5px 0">问卷调查</div>
  3281. </div>
  3282. <div class="check" @click="
  3283. addTools(4, itemTaskIndex, toolIndex)
  3284. ">
  3285. <img src="../../../assets/icon/checkNo.png" alt
  3286. v-if="itemTool.tool.indexOf(4) == -1" />
  3287. <div class="checkDiv" v-else>
  3288. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. <div class="tool">
  3293. <div class="whiteBIcon" @click="
  3294. openTools(itemTaskIndex, 45, toolIndex)
  3295. ">
  3296. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3297. <div style="margin: 5px 0">选择题</div>
  3298. </div>
  3299. <div class="check" @click="
  3300. addTools(45, itemTaskIndex, toolIndex)
  3301. ">
  3302. <img src="../../../assets/icon/checkNo.png" alt
  3303. v-if="itemTool.tool.indexOf(45) == -1" />
  3304. <div class="checkDiv" v-else>
  3305. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3306. </div>
  3307. </div>
  3308. </div>
  3309. <div class="tool">
  3310. <div class="whiteBIcon" @click="
  3311. openTools(itemTaskIndex, 15, toolIndex)
  3312. ">
  3313. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3314. <div style="margin: 5px 0">问答</div>
  3315. </div>
  3316. <div class="check" @click="
  3317. addTools(15, itemTaskIndex, toolIndex)
  3318. ">
  3319. <img src="../../../assets/icon/checkNo.png" alt
  3320. v-if="itemTool.tool.indexOf(15) == -1" />
  3321. <div class="checkDiv" v-else>
  3322. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. <div class="tool">
  3327. <div class="whiteBIcon" @click="
  3328. addTools(16, itemTaskIndex, toolIndex)
  3329. ">
  3330. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3331. <div style="margin: 5px 0">作业提交</div>
  3332. </div>
  3333. <div class="check" @click="
  3334. addTools(16, itemTaskIndex, toolIndex)
  3335. ">
  3336. <img src="../../../assets/icon/checkNo.png" alt
  3337. v-if="itemTool.tool.indexOf(16) == -1" />
  3338. <div class="checkDiv" v-else>
  3339. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. <div class="tool">
  3344. <div class="whiteBIcon" @click="
  3345. openTools(itemTaskIndex, 50, toolIndex)
  3346. ">
  3347. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3348. <div style="margin: 5px 0">批量上传</div>
  3349. </div>
  3350. <div class="check" @click="
  3351. addTools(50, itemTaskIndex, toolIndex)
  3352. ">
  3353. <img src="../../../assets/icon/checkNo.png" alt
  3354. v-if="itemTool.tool.indexOf(50) == -1" />
  3355. <div class="checkDiv" v-else>
  3356. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div class="tool">
  3361. <div class="whiteBIcon" @click="
  3362. openTools(itemTaskIndex, 41, toolIndex)
  3363. ">
  3364. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3365. <div style="margin: 5px 0">选择匹配</div>
  3366. </div>
  3367. <div class="check" @click="
  3368. addTools(41, itemTaskIndex, toolIndex)
  3369. ">
  3370. <img src="../../../assets/icon/checkNo.png" alt
  3371. v-if="itemTool.tool.indexOf(41) == -1" />
  3372. <div class="checkDiv" v-else>
  3373. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3374. </div>
  3375. </div>
  3376. </div>
  3377. <div class="tool">
  3378. <div class="whiteBIcon" @click="
  3379. openTools(itemTaskIndex, 47, toolIndex)
  3380. ">
  3381. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3382. <div style="margin: 5px 0">排序</div>
  3383. </div>
  3384. <div class="check" @click="
  3385. addTools(47, itemTaskIndex, toolIndex)
  3386. ">
  3387. <img src="../../../assets/icon/checkNo.png" alt
  3388. v-if="itemTool.tool.indexOf(47) == -1" />
  3389. <div class="checkDiv" v-else>
  3390. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. <div class="tool">
  3395. <div class="whiteBIcon" @click="
  3396. openTools(itemTaskIndex, 48, toolIndex)
  3397. ">
  3398. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3399. <div style="margin: 5px 0">表格</div>
  3400. </div>
  3401. <div class="check" @click="
  3402. addTools(48, itemTaskIndex, toolIndex)
  3403. ">
  3404. <img src="../../../assets/icon/checkNo.png" alt
  3405. v-if="itemTool.tool.indexOf(48) == -1" />
  3406. <div class="checkDiv" v-else>
  3407. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3408. </div>
  3409. </div>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3415. <div class="addToolImg">
  3416. <img src="../../../assets/icon/add.png" alt />
  3417. </div>
  3418. <div>添加工具</div>
  3419. </div> -->
  3420. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  3421. style="margin: 35px auto 20px">
  3422. 添加工具
  3423. </button>
  3424. </div>
  3425. </div>
  3426. <div v-else-if="
  3427. unitJson[unitIndex].easy == 1 ||
  3428. (unitJson[unitIndex].easy == 5 &&
  3429. itemTask.taskType == 2)
  3430. " class="toolChoose" style="padding: 0 0 40px">
  3431. <div class="tools">
  3432. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0" v-for="(
  3433. itemTool, toolIndex
  3434. ) in itemTask.toolChoose" :key="toolIndex">
  3435. <div style="min-height: 163px">
  3436. <div class="toolSort">
  3437. <div class="tool">
  3438. <div class="whiteBIcon" @click="
  3439. openTools(itemTaskIndex, 50, toolIndex)
  3440. ">
  3441. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3442. <div style="margin: 5px 0">批量上传</div>
  3443. </div>
  3444. <div class="check" @click="
  3445. addTools(50, itemTaskIndex, toolIndex)
  3446. ">
  3447. <img src="../../../assets/icon/checkNo.png" alt
  3448. v-if="itemTool.tool.indexOf(50) == -1" />
  3449. <div class="checkDiv" v-else>
  3450. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3451. </div>
  3452. </div>
  3453. </div>
  3454. </div>
  3455. </div>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  3460. v-loading="taskDetailLoading4.indexOf('task-' + itemTaskIndex) !== -1">
  3461. <div class="elist_title">
  3462. <div style="
  3463. display: flex;
  3464. flex-direction: row;
  3465. align-items: center;
  3466. margin: 20px 0;
  3467. ">
  3468. <div class="lineTitle clineTitle">评价设置</div>
  3469. <div class="r_pub_button_op" style="margin-left:auto;"
  3470. @contextmenu.prevent="openAiDialog(1, 'aiDetail4', itemTask.eList, itemTaskIndex)"
  3471. @click="openAiDialog(2, 'aiDetail4', itemTask.eList, itemTaskIndex)">智能优化</div>
  3472. <!-- <div class="line" style="width: 90%"></div> -->
  3473. </div>
  3474. </div>
  3475. <div class="mbCss">
  3476. <div class="pjCss" :style="{
  3477. width: itemTask.isEvaFold
  3478. ? 'calc(100% - 55%)'
  3479. : 'calc(100% - 120px)',
  3480. }">
  3481. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3482. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3483. <span>评价维度:</span>
  3484. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  3485. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  3486. <!-- </el-tooltip> -->
  3487. <!-- <span>评星等级:</span>
  3488. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  3489. disabled></el-rate> -->
  3490. <div class="remove" @click="
  3491. deletEList(
  3492. unitIndex,
  3493. itemTaskIndex,
  3494. eIndex
  3495. )
  3496. "></div>
  3497. <div class="elist_inptu_text">
  3498. <span>维度描述:</span>
  3499. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  3500. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  3501. <!-- </el-tooltip> -->
  3502. </div>
  3503. <div class="elist_inptu_text" v-if="evalua">
  3504. <span>目标:</span>
  3505. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  3506. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3507. @change="forceUpdate()">
  3508. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3509. :value="e.name">
  3510. </el-option>
  3511. </el-select> -->
  3512. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3513. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3514. </div>
  3515. </div>
  3516. </div>
  3517. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  3518. style="margin: 35px 35px 0 0">
  3519. <div class="addToolImg">
  3520. <img src="../../../assets/icon/add.png" alt />
  3521. </div>
  3522. <div>添加</div>
  3523. </div> -->
  3524. <div class="eva_btn_box">
  3525. <div class="eva_btn_left_box">
  3526. <button class="c_pub_button_add pub_btn_eval_img"
  3527. @click="addEList(unitIndex, itemTaskIndex)">
  3528. 添加
  3529. </button>
  3530. <button class="c_pub_button_add pub_btn_eval_source_img"
  3531. @click="openEList(unitIndex, itemTaskIndex)">
  3532. 资源
  3533. </button>
  3534. </div>
  3535. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)"
  3536. v-if="itemTask.eList && itemTask.eList.length">
  3537. 添加资源模板
  3538. </button>
  3539. </div>
  3540. </div>
  3541. <div v-if="evalua" style="
  3542. border: 1px solid #e5e5e5;
  3543. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3544. " :style="{
  3545. width: itemTask.isEvaFold ? '55%' : '116px',
  3546. }" class="evaCss">
  3547. <!-- <div class="e_add_top">
  3548. <div class="e_add_title">
  3549. <span>当前使用目标管理</span>
  3550. <span>{{ eTitle }}</span>
  3551. <img src="../../../assets/line.png" class="cru_line" style="
  3552. width: 125px;
  3553. height: 20px;
  3554. bottom: -10px;
  3555. left: 155px;
  3556. " />
  3557. </div>
  3558. </div> -->
  3559. <div class="e_add_content" style="width: 100%">
  3560. <div class="e_add_list_pbox" style="width: 100%">
  3561. <div class="e_add_list_pbox_title">
  3562. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  3563. <div class="type_content" v-if="itemTask.isEvaFold">
  3564. <span :class="{ active: typeMode == 1 }"
  3565. @click="OtherMb(1, itemTaskIndex)">目标树</span>
  3566. <span :class="{ active: typeMode == 2 }"
  3567. @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  3568. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  3569. </div>
  3570. <div v-if="itemTask.isEvaFold" class="show_taskD show" style="margin: 0 0 0 auto"
  3571. @click="foldEva(itemTaskIndex)">
  3572. <img src="../../../assets/icon/new/icon-slide.png" />收起目标
  3573. </div>
  3574. <div v-else style="margin: 0 0 0 auto" class="show_taskD"
  3575. @click="foldEva(itemTaskIndex)">
  3576. <img src="../../../assets/icon/new/icon-slide.png" />展开目标
  3577. </div>
  3578. </div>
  3579. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold"
  3580. style="min-height: 200px">
  3581. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3582. " v-if="typeMode == 1"></Mind>
  3583. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3584. </Sunburst>
  3585. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3586. v-if="typeMode == 3"></SeeBoard>
  3587. </div>
  3588. </div>
  3589. </div>
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div class="funBlock" style="padding: 0">
  3594. <div class="fold" @click="fold(itemTaskIndex, $event)">
  3595. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }"></div>
  3596. <div>
  3597. {{
  3598. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  3599. }}
  3600. </div>
  3601. </div>
  3602. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3603. <div>展开</div>
  3604. <div class="arrow">
  3605. <img src="../../../assets/icon/expand.png" alt />
  3606. </div>
  3607. </div> -->
  3608. </div>
  3609. </div>
  3610. </div>
  3611. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3612. <!-- <div>
  3613. <img src="../../../../assets/icon/new/addStage.png" alt />
  3614. <span>添加任务</span>
  3615. </div> -->
  3616. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  3617. 添加任务
  3618. </button>
  3619. </div>
  3620. </div>
  3621. <div class="info_btnBox3">
  3622. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  3623. goTo(
  3624. '/course?userid=' +
  3625. userid +
  3626. '&oid=' +
  3627. oid +
  3628. '&org=' +
  3629. org +
  3630. '&role=' +
  3631. role
  3632. )
  3633. ">
  3634. 返回课程
  3635. </button>
  3636. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5"
  3637. @click="lastSteps" style="background: #dbdbdb">
  3638. {{ steps == 4 ? "返回课程" : "上一步" }}
  3639. </button>
  3640. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  3641. pub_btn_next_img: steps != 3,
  3642. pub_btn_finish_img: steps == 3,
  3643. }">
  3644. {{ steps == 3 ? "确认上传" : "下一步" }}
  3645. </button>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div style="
  3652. width: calc(100% - 20px);
  3653. background: rgb(255, 255, 255);
  3654. border-radius: 10px;
  3655. " v-if="steps == 4">
  3656. <div class="basic_box_success">
  3657. <div class="right_img">
  3658. <img src="../../../assets/icon/right.png" alt />
  3659. </div>
  3660. <div style="font-weight: bold">成功</div>
  3661. <!-- <div>您的课程编号</div>
  3662. <div class="number">{{ number }}</div>-->
  3663. <!-- <div class="success_button">
  3664. <div class="look_course" @click="isNoFinsh">
  3665. 邀请老师协同编辑
  3666. </div>
  3667. <div class="attend_others" @click="goCourse">预览课程</div>
  3668. </div> -->
  3669. </div>
  3670. </div>
  3671. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3672. @mouseleave="btnDisplay(false)" v-if="false">
  3673. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  3674. goTo(
  3675. '/course?userid=' +
  3676. userid +
  3677. '&oid=' +
  3678. oid +
  3679. '&org=' +
  3680. org +
  3681. '&role=' +
  3682. role
  3683. )
  3684. ">
  3685. 返回课程
  3686. </button>
  3687. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  3688. @click="lastSteps">
  3689. {{ steps == 4 ? "返回课程" : "上一步" }}
  3690. </button>
  3691. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps" :class="{
  3692. pub_btn_next_img: steps != 3,
  3693. pub_btn_finish_img: steps == 3,
  3694. }">
  3695. {{ steps == 3 ? "确认上传" : "下一步" }}
  3696. </button>
  3697. </div>
  3698. </div>
  3699. </div>
  3700. </div>
  3701. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3702. class="dialog_diy2 customWidth">
  3703. <div>请复制该链接邀请协同编辑</div>
  3704. <div>http://www.boomyon.com/index-zhang.com</div>
  3705. <span slot="footer" class="dialog-footer">
  3706. <el-button type="primary">复制链接分享</el-button>
  3707. <el-button @click="dialogVisible = false">取消</el-button>
  3708. </span>
  3709. </el-dialog>
  3710. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3711. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3712. <el-form>
  3713. <el-form-item label="文档标题">
  3714. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3715. </el-form-item>
  3716. <div>文档简介</div>
  3717. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3718. </el-form>
  3719. <span slot="footer" class="dialog-footer">
  3720. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3721. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3722. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3723. </span>
  3724. </el-dialog>
  3725. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3726. :before-close="handleClose" class="dialog_diy">
  3727. <el-form>
  3728. <el-form-item label="文档标题">
  3729. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3730. </el-form-item>
  3731. <div>文档内容</div>
  3732. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3733. </el-form>
  3734. <span slot="footer" class="dialog-footer">
  3735. <el-button @click="clearChoose">取 消</el-button>
  3736. <el-button type="primary" @click="wordNext()">确定</el-button>
  3737. </span>
  3738. </el-dialog>
  3739. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3740. :before-close="handleClose" class="dialog_diy">
  3741. <el-form>
  3742. <el-form-item label="文本标题">
  3743. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3744. placeholder="请输入文本标题..."></el-input>
  3745. </el-form-item>
  3746. <!-- <div>富文本内容</div> -->
  3747. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3748. </el-form>
  3749. <span slot="footer" class="dialog-footer">
  3750. <el-button @click="clearAttText">取 消</el-button>
  3751. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3752. </span>
  3753. </el-dialog>
  3754. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3755. :before-close="handleClose" class="dialog_diy lineCss">
  3756. <el-form>
  3757. <el-form-item label="标题" :label-width="formLabelWidth">
  3758. <span>
  3759. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3760. </span>
  3761. </el-form-item>
  3762. <el-form-item label="链接" :label-width="formLabelWidth">
  3763. <span>
  3764. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3765. </span>
  3766. </el-form-item>
  3767. </el-form>
  3768. <span slot="footer" class="dialog-footer">
  3769. <el-button @click="clearLine">取 消</el-button>
  3770. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3771. </span>
  3772. </el-dialog>
  3773. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3774. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3775. <div>
  3776. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3777. </div>
  3778. <span slot="footer" class="dialog-footer">
  3779. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3780. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3781. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3782. </span>
  3783. </el-dialog>
  3784. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3785. :before-close="handleClose" class="addNewPP customWidth">
  3786. <div class="people">
  3787. <div class="people_top">
  3788. <div class="people_nav">选择成员</div>
  3789. <div class="people_top_right">
  3790. <div class="people_search">
  3791. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3792. <div class="search_img" @click="searchStudent">
  3793. <img src="../../../assets/icon/search.png" alt />
  3794. </div>
  3795. </div>
  3796. </div>
  3797. </div>
  3798. <el-checkbox-group v-model="checkboxList" class="people_name">
  3799. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3800. "暂无学生可选" }}</el-checkbox>
  3801. </el-checkbox-group>
  3802. </div>
  3803. <span slot="footer" class="dialog-footer">
  3804. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3805. <el-button type="primary" @click="isAddPP">确定</el-button>
  3806. </span>
  3807. </el-dialog>
  3808. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3809. :before-close="handleClose" class="addNewPP2">
  3810. <div class="check_classBox">
  3811. <div class="check_class_right">
  3812. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3813. 全部
  3814. </div>
  3815. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3816. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  3817. {{ item.name }}
  3818. </div>
  3819. </el-tooltip>
  3820. </div>
  3821. <div class="check_class_left">
  3822. <div class="check_class_all_box">
  3823. <div class="check_class_left_title">选择班级</div>
  3824. <div style="display: flex; align-items: center; margin-left: auto">
  3825. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  3826. </div>
  3827. </div>
  3828. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3829. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3830. </div> -->
  3831. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  3832. v-if="grade2.length">
  3833. <div v-for="item in grade2" :key="item.id" class="class_item">
  3834. <el-checkbox :label="item.id">
  3835. {{ item.name }}
  3836. </el-checkbox>
  3837. </div>
  3838. </el-checkbox-group>
  3839. <div v-if="!grade2.length">暂无数据</div>
  3840. </div>
  3841. </div>
  3842. <span slot="footer" class="dialog-footer">
  3843. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3844. <el-button type="primary" @click="isAddClass">确定</el-button>
  3845. </span>
  3846. </el-dialog>
  3847. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3848. :before-close="handleClose" class="addNewPP customWidth">
  3849. <div class="people">
  3850. <div class="people_top">
  3851. <div class="people_top_right">
  3852. <div class="people_search">
  3853. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3854. <div class="search_img" @click="getTeacher">
  3855. <img src="../../../assets/icon/search.png" alt />
  3856. </div>
  3857. </div>
  3858. </div>
  3859. <div class="people_nav" style="display: flex; align-items: center">
  3860. <div class="check_class_left_title">选择成员</div>
  3861. <div style="display: flex; align-items: center; margin-left: auto">
  3862. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  3863. </div>
  3864. </div>
  3865. </div>
  3866. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  3867. @change="InviteChange2">
  3868. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3869. <div class="t_j_box">
  3870. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3871. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3872. </el-tooltip>
  3873. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  3874. <span>{{ item.username.split('@')[0] }}</span>
  3875. </el-tooltip>
  3876. <el-tooltip placement="top" :content="item.school">
  3877. <span>{{ item.school }}</span>
  3878. </el-tooltip>
  3879. </div>
  3880. </el-checkbox>
  3881. </el-checkbox-group>
  3882. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3883. </div>
  3884. <span slot="footer" class="dialog-footer">
  3885. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3886. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3887. </span>
  3888. </el-dialog>
  3889. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  3890. closePan(4);
  3891. }
  3892. " class="dialog_diy fullStyle">
  3893. <div style="height: 100%">
  3894. <div class="a_add_title" style="
  3895. display: flex;
  3896. flex-direction: row;
  3897. align-items: center;
  3898. justify-content: center;
  3899. ">
  3900. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3901. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3902. </div>
  3903. <div class="a_addBox" style="height: calc(100% - 50px)">
  3904. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3905. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3906. <div class="a_add_checkType">
  3907. <span :class="{
  3908. active:
  3909. askJson.askJson[index1].type == '1' ||
  3910. !askJson.askJson[index1].type,
  3911. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3912. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3913. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3914. </div>
  3915. <div class="a_add_head">
  3916. <div style="
  3917. display: flex;
  3918. align-items: center;
  3919. width: 100%;
  3920. margin-right: 20px;
  3921. ">
  3922. <span style="min-width: fit-content">{{
  3923. index1 + 1 + "、"
  3924. }}</span>
  3925. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3926. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  3927. $forceUpdate();
  3928. }
  3929. "></textarea>
  3930. </div>
  3931. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  3932. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  3933. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3934. </div>
  3935. <div class="a_add_head_div">
  3936. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3937. </el-button>
  3938. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3939. </div>
  3940. </div>
  3941. <div class="a_add_body">
  3942. <div class="a_add_input" style="flex-direction: column">
  3943. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  3944. margin: 20px 10px 0 0;
  3945. display: flex;
  3946. align-items: center;
  3947. position: relative;
  3948. ">
  3949. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  3950. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3951. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  3952. @change="() => {
  3953. $forceUpdate();
  3954. }
  3955. "></textarea>
  3956. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  3957. v-if="askJson.askJson[index1].askItem != 1">
  3958. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  3959. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3960. </div>
  3961. <div class="a_add_body_div">
  3962. <el-button type="primary" size="small"
  3963. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3964. <el-button type="primary" size="small" @click="
  3965. deletecheckList(askJson.askJson[index1], checkIndex)
  3966. " v-if="askJson.askJson[index1].askItem != 1">删除
  3967. </el-button>
  3968. </div>
  3969. </div>
  3970. </div>
  3971. <!-- <div class="a_add_body_div">
  3972. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3973. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3974. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3975. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3976. </el-button>
  3977. </div> -->
  3978. </div>
  3979. </div>
  3980. </div>
  3981. </div>
  3982. <span slot="footer" class="dialog-footer">
  3983. <el-button @click="closePan(4)">取 消</el-button>
  3984. <el-button type="primary" @click="addAsk">确 定</el-button>
  3985. </span>
  3986. </el-dialog>
  3987. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  3988. closePan(45);
  3989. }
  3990. " class="dialog_diy fullStyle">
  3991. <div style="height: 100%">
  3992. <!-- <div class="a_add_title" style="
  3993. display: flex;
  3994. flex-direction: row;
  3995. align-items: center;
  3996. justify-content: center;
  3997. ">
  3998. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3999. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4000. </div> -->
  4001. <div class="a_addBox" style="height: 100%">
  4002. <div style="
  4003. font-size: 16px;
  4004. color: #c7c7c7;
  4005. display: flex;
  4006. align-items: center;
  4007. ">
  4008. <!-- 请输入题目内容 -->
  4009. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4010. v-if="isPasteChoice">
  4011. 智能粘贴
  4012. </button>
  4013. </div>
  4014. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4015. <div class="a_add_checkType">
  4016. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4017. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4018. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4019. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4020. </div>
  4021. <div class="a_add_head">
  4022. <div class="timuUpImg">
  4023. <div style="display: flex; align-items: center">
  4024. <span style="min-width: fit-content">{{
  4025. index1 + 1 + "、"
  4026. }}</span>
  4027. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4028. placeholder="请输入题目">
  4029. </el-input> -->
  4030. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4031. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4032. $forceUpdate();
  4033. }
  4034. "></textarea>
  4035. </div>
  4036. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4037. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4038. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4039. </div>
  4040. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4041. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4042. <input type="file" accept="image/*" style="display: none"
  4043. @change="beforeUploadTiMu($event, index1)" />
  4044. </div>
  4045. </div>
  4046. <div class="a_add_head_div">
  4047. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4048. </el-button>
  4049. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4050. </div>
  4051. </div>
  4052. <div class="timuImgBox" v-if="
  4053. testJson.testJson[index1].timuList &&
  4054. testJson.testJson[index1].timuList.length
  4055. ">
  4056. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4057. @click.stop="previewImg(timg.src)">
  4058. <img :src="timg.src" alt="" />
  4059. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4060. <img src="../../../assets/icon/delete.png" alt="" />
  4061. </div>
  4062. </div>
  4063. </div>
  4064. <div class="a_add_body">
  4065. <div class="a_add_input a_add_input_choice">
  4066. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4067. @change="() => {
  4068. $forceUpdate();
  4069. }
  4070. ">
  4071. <div class="radioBox">
  4072. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4073. .testItem" :key="checkIndex" :label="checkIndex">
  4074. <div style="margin-right: 10px">
  4075. 选项{{ checkIndex + 1 }}
  4076. </div>
  4077. <div style="margin-right: 10px; width: 300px" v-if="
  4078. testJson.testJson[index1].checkList[checkIndex] &&
  4079. testJson.testJson[index1].checkList[checkIndex]
  4080. .imgType &&
  4081. testJson.testJson[index1].checkList[checkIndex]
  4082. .imgType == 1
  4083. ">
  4084. <div class="inImg" @click.stop="
  4085. previewImg(
  4086. testJson.testJson[index1].checkList[checkIndex]
  4087. .src
  4088. )
  4089. ">
  4090. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4091. .src
  4092. " lazy />
  4093. <!-- <img :src="
  4094. testJson.testJson[index1].checkList[checkIndex]
  4095. .src
  4096. " alt="" /> -->
  4097. </div>
  4098. </div>
  4099. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4100. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4101. $forceUpdate();
  4102. }
  4103. "></textarea>
  4104. <div class="xzUpImg" @click.stop="addImg($event)">
  4105. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4106. <input type="file" accept="image/*" style="display: none"
  4107. @change="beforeUploadTi($event, index1, checkIndex)" />
  4108. </div>
  4109. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4110. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4111. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4112. </div>
  4113. <div class="a_add_body_div">
  4114. <el-button type="primary" size="small" @click.stop="
  4115. addTcheckList(testJson.testJson[index1], checkIndex)
  4116. ">添加</el-button>
  4117. <el-button type="primary" size="small" @click.stop="
  4118. deleteTcheckList(
  4119. testJson.testJson[index1],
  4120. checkIndex
  4121. )
  4122. " v-if="testJson.testJson[index1].testItem != 1">删除
  4123. </el-button>
  4124. </div>
  4125. </el-radio>
  4126. </div>
  4127. </el-radio-group>
  4128. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4129. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4130. $forceUpdate();
  4131. }
  4132. ">
  4133. <div class="radioBox">
  4134. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4135. .testItem" :key="checkIndex1" :label="checkIndex1">
  4136. <div style="margin-right: 10px">
  4137. 选项{{ checkIndex1 + 1 }}
  4138. </div>
  4139. <div style="margin-right: 10px; width: 300px" v-if="
  4140. testJson.testJson[index1].checkList[checkIndex1] &&
  4141. testJson.testJson[index1].checkList[checkIndex1]
  4142. .imgType &&
  4143. testJson.testJson[index1].checkList[checkIndex1]
  4144. .imgType == 1
  4145. ">
  4146. <div class="inImg" @click.stop="
  4147. previewImg(
  4148. testJson.testJson[index1].checkList[checkIndex1]
  4149. .src
  4150. )
  4151. ">
  4152. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4153. .src
  4154. " lazy />
  4155. <!-- <img :src="
  4156. testJson.testJson[index1].checkList[checkIndex1]
  4157. .src
  4158. " alt="" /> -->
  4159. </div>
  4160. </div>
  4161. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4162. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4163. $forceUpdate();
  4164. }
  4165. "></textarea>
  4166. <div class="xzUpImg" @click.stop="addImg($event)">
  4167. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4168. <input type="file" accept="image/*" style="display: none"
  4169. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4170. </div>
  4171. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4172. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4173. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4174. </div>
  4175. <div class="a_add_body_div">
  4176. <el-button type="primary" size="small" @click.stop="
  4177. addTcheckList(
  4178. testJson.testJson[index1],
  4179. checkIndex1
  4180. )
  4181. ">添加</el-button>
  4182. <el-button type="primary" size="small" @click.stop="
  4183. deleteTcheckList(
  4184. testJson.testJson[index1],
  4185. checkIndex1
  4186. )
  4187. " v-if="testJson.testJson[index1].testItem != 1">删除
  4188. </el-button>
  4189. </div>
  4190. </el-checkbox>
  4191. </div>
  4192. </el-checkbox-group>
  4193. </div>
  4194. <!-- <div class="a_add_body_div">
  4195. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4196. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4197. v-if="testJson.testJson[index1].testItem != 1">删除
  4198. </el-button>
  4199. </div> -->
  4200. </div>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <span slot="footer" class="dialog-footer">
  4205. <el-button @click="closePan(45)">取 消</el-button>
  4206. <el-button type="primary" @click="addTest">确 定</el-button>
  4207. </span>
  4208. </el-dialog>
  4209. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4210. :before-close="handleClose" class="dialog_diy addToolsDia">
  4211. <div class="toolChoose">
  4212. <div class="tools">
  4213. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4214. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4215. <div style="
  4216. display: flex;
  4217. flex-direction: row;
  4218. align-items: baseline;
  4219. flex-wrap: nowrap;
  4220. justify-content: flex-start;
  4221. position: relative;
  4222. ">
  4223. <div class="chooseWho">
  4224. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4225. 互动类
  4226. </div>
  4227. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4228. 思维类
  4229. </div>
  4230. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4231. 评价类
  4232. </div>
  4233. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4234. 其他
  4235. </div>
  4236. </div>
  4237. </div>
  4238. <div style="min-height: 163px">
  4239. <div class="toolSort" v-if="chapToolsType == 0">
  4240. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4241. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4242. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4243. <div style="margin: 5px 0">素材库</div>
  4244. </div>
  4245. <div class="noCTool">
  4246. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4247. </div>
  4248. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4249. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4250. </div>
  4251. <!-- <div class="check" @click="chapAddTools(8)">
  4252. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4253. <div class="checkDiv" v-else>
  4254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4255. </div>
  4256. </div> -->
  4257. </div>
  4258. </div>
  4259. <div class="toolSort" v-if="chapToolsType == 1">
  4260. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4261. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4262. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4263. <div style="margin: 5px 0">思维网格</div>
  4264. </div>
  4265. <div class="noCTool">
  4266. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4267. </div>
  4268. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4269. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4270. </div>
  4271. <!-- <div class="check" @click="chapAddTools(7)">
  4272. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4273. <div class="checkDiv" v-else>
  4274. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4275. </div>
  4276. </div> -->
  4277. </div>
  4278. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4279. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4280. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4281. <div style="margin: 5px 0">电子白板</div>
  4282. </div>
  4283. <div class="noCTool">
  4284. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4285. </div>
  4286. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4287. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4288. </div>
  4289. <!-- <div class="check" @click="chapAddTools(1)">
  4290. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4291. <div class="checkDiv" v-else>
  4292. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4293. </div>
  4294. </div> -->
  4295. </div>
  4296. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4297. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4298. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4299. <div style="margin: 5px 0">便签</div>
  4300. </div>
  4301. <div class="noCTool">
  4302. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4303. </div>
  4304. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4305. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4306. </div>
  4307. <!-- <div class="check" @click="chapAddTools(2)">
  4308. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4309. <div class="checkDiv" v-else>
  4310. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4311. </div>
  4312. </div> -->
  4313. </div>
  4314. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4315. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4316. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4317. <div style="margin: 5px 0">协同文档</div>
  4318. </div>
  4319. <div class="noCTool">
  4320. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4321. </div>
  4322. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4323. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4324. </div>
  4325. <!-- <div class="check" @click="chapAddTools(6)">
  4326. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4327. <div class="checkDiv" v-else>
  4328. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4329. </div>
  4330. </div> -->
  4331. </div>
  4332. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4333. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4334. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4335. <div style="margin: 5px 0">思维导图</div>
  4336. </div>
  4337. <div class="noCTool">
  4338. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4339. </div>
  4340. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4341. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4342. </div>
  4343. <!-- <div class="check" @click="chapAddTools(3)">
  4344. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4345. <div class="checkDiv" v-else>
  4346. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4347. </div>
  4348. </div> -->
  4349. </div>
  4350. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4351. @click="chapAddTools(31)">
  4352. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4353. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4354. <div style="margin: 5px 0">数学画板</div>
  4355. </div>
  4356. <div class="noCTool">
  4357. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4358. </div>
  4359. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4360. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4361. </div>
  4362. <!-- <div class="check" @click="chapAddTools(31)">
  4363. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4364. <div class="checkDiv" v-else>
  4365. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4366. </div>
  4367. </div> -->
  4368. </div>
  4369. </div>
  4370. <div class="toolSort" v-if="chapToolsType == 2">
  4371. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4372. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4373. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4374. <div style="margin: 5px 0">量规评分</div>
  4375. </div>
  4376. <div class="noCTool">
  4377. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4378. </div>
  4379. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4380. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4381. </div>
  4382. <!-- <div class="check" @click="chapAddTools(5)">
  4383. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4384. <div class="checkDiv" v-else>
  4385. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4386. </div>
  4387. </div> -->
  4388. </div>
  4389. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4390. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4391. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4392. <div style="margin: 5px 0">问卷调查</div>
  4393. </div>
  4394. <div class="noCTool">
  4395. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4396. </div>
  4397. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4398. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4399. </div>
  4400. <!-- <div class="check" @click="chapAddTools(4)">
  4401. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4402. <div class="checkDiv" v-else>
  4403. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4404. </div>
  4405. </div> -->
  4406. </div>
  4407. </div>
  4408. </div>
  4409. <div>
  4410. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4411. v-model="itemTools.toolDetail" />
  4412. </div>
  4413. </div>
  4414. </div>
  4415. </div>
  4416. <span slot="footer" class="dialog-footer">
  4417. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4418. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4419. </span>
  4420. </el-dialog>
  4421. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4422. closePan(15);
  4423. }
  4424. " class="dialog_diy">
  4425. <div>
  4426. <div class="a_add_title" style="
  4427. display: flex;
  4428. flex-direction: column;
  4429. align-items: flex-start;
  4430. justify-content: center;
  4431. ">
  4432. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4433. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4434. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4435. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4436. </div>
  4437. </div>
  4438. <span slot="footer" class="dialog-footer">
  4439. <el-button @click="closePan(15)">取 消</el-button>
  4440. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4441. </span>
  4442. </el-dialog>
  4443. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4444. :before-close="handleClose" class="dialog_diy">
  4445. <div>
  4446. <div class="a_add_title" style="
  4447. display: flex;
  4448. flex-direction: column;
  4449. align-items: flex-start;
  4450. justify-content: center;
  4451. ">
  4452. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4453. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4454. </div>
  4455. </div>
  4456. <span slot="footer" class="dialog-footer">
  4457. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4458. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4459. </span>
  4460. </el-dialog>
  4461. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4462. :before-close="handleClose" class="dialog_diy">
  4463. <div>
  4464. <div class="fileCss" style="padding-top: 20px">
  4465. <div>
  4466. <button class="info_btn" @click="addImg($event)">
  4467. 选择本地文件
  4468. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4469. </button>
  4470. <div class="spanName">选择本地文件</div>
  4471. </div>
  4472. <!-- <div>
  4473. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4474. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4475. <img :src="cover[0].url" alt="" />
  4476. <div class="deletePic" @click="deleteSysPic">
  4477. <img src="../../../assets/icon/delete.png" alt="" />
  4478. </div>
  4479. </div>
  4480. <div class="spanName">选择系统文件</div>
  4481. </div> -->
  4482. <div>
  4483. <el-button @click="(searchImageValue = courseName), resetImage()"
  4484. v-if="isSysPic2 == false">选择网络文件</el-button>
  4485. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4486. <img :src="cover[0].url" alt="" />
  4487. <div class="deletePic" @click="deleteSysPic">
  4488. <img src="../../../assets/icon/delete.png" alt="" />
  4489. </div>
  4490. </div>
  4491. <div class="spanName">选择网络文件</div>
  4492. </div>
  4493. </div>
  4494. <!-- <div class="fileCss">
  4495. </div> -->
  4496. </div>
  4497. <span slot="footer" class="dialog-footer">
  4498. <el-button @click="choosePicVisible = false">取 消</el-button>
  4499. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4500. </span>
  4501. </el-dialog>
  4502. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4503. :before-close="handleClose" class="dialog_diy">
  4504. <div class="cru_selectBox" style="margin: 0">
  4505. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4506. 绘画
  4507. </div>
  4508. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4509. 科技
  4510. </div>
  4511. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4512. 人文
  4513. </div>
  4514. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4515. 艺术
  4516. </div>
  4517. </div>
  4518. <div class="sysPicBox">
  4519. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4520. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4521. </div>
  4522. </div>
  4523. </el-dialog>
  4524. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4525. :before-close="handleClose" class="dialog_diy">
  4526. <div>
  4527. <div class="people_top_right" style="display: flex; align-items: center">
  4528. <div style="position: relative; width: 100%">
  4529. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4530. @keyup.enter.native="resetImage()"></el-input>
  4531. <div class="search_img" @click="resetImage" style="right: 10px">
  4532. <img src="../../../assets/icon/search.png" alt />
  4533. </div>
  4534. </div>
  4535. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4536. </div>
  4537. <div class="sysPicBox" v-loading="imageloading">
  4538. <div class="picNone" v-if="!imageList.length">
  4539. 请输入关键词搜索图片
  4540. </div>
  4541. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4542. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4543. </div>
  4544. </div>
  4545. </div>
  4546. </el-dialog>
  4547. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4548. closePan(41);
  4549. }
  4550. " class="dialog_diy dialog_diy3 fullStyle">
  4551. <div v-if="selectJson" style="height: 100%">
  4552. <div class="select_box1" v-if="selectSteps == 1">
  4553. <div class="select_box1_img">
  4554. <div class="select_box1_title">
  4555. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4556. </div>
  4557. <div class="select_box1_add_img">
  4558. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4559. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4560. <img src="../../../assets/icon/addPoster.png" alt="" />
  4561. </div>
  4562. <div class="isSysPic" v-else>
  4563. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4564. <div class="deletePic" @click="deleteSelectPic">
  4565. <img src="../../../assets/icon/delete.png" alt="" />
  4566. </div>
  4567. </div>
  4568. </div>
  4569. </div>
  4570. <div class="select_box1_select">
  4571. <div class="select_box1_title">
  4572. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4573. </div>
  4574. <div class="select_box1_select_box">
  4575. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4576. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4577. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4578. <div class="select_box1_select_box_add">
  4579. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4580. 添加</el-button>
  4581. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4582. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4583. </div>
  4584. </div>
  4585. </div>
  4586. </div>
  4587. <div v-if="selectSteps == 2" style="height: 100%">
  4588. <div class="select_box2">
  4589. <div class="select_box2_title">设置每道题目的正确选项</div>
  4590. <div class="select_box2_box">
  4591. <div class="select_box2_img">
  4592. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4593. </div>
  4594. <div class="select_box2_answer">
  4595. <div class="select_answer_title">根据题目选择对应答案</div>
  4596. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4597. <span>{{ checkIndex + 1 }}、</span>
  4598. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4599. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4600. </el-option>
  4601. </el-select>
  4602. </div>
  4603. </div>
  4604. </div>
  4605. </div>
  4606. </div>
  4607. </div>
  4608. <span slot="footer" class="dialog-footer">
  4609. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4610. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4611. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4612. </span>
  4613. </el-dialog>
  4614. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4615. :before-close="handleClose" class="dialog_diy">
  4616. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4617. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4618. <div class="pjCss" style="width: 100%">
  4619. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4620. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4621. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4622. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4623. <div class="remove" @click="deletRateList(eIndex)"></div>
  4624. <div style="width: 100%; display: flex">
  4625. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4626. <el-rate v-model="eItem.score" disabled></el-rate>
  4627. </div>
  4628. <div class="elist_inptu_text" style="align-items: flex-start">
  4629. <span style="min-width: 100px; text-align: right">描述:</span>
  4630. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4631. </div>
  4632. </div>
  4633. </div>
  4634. <div class="addToolFun" @click="addRateList()">
  4635. <div class="addToolImg">
  4636. <img src="../../../assets/icon/add.png" alt />
  4637. </div>
  4638. <div>添加</div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <span slot="footer" class="dialog-footer">
  4643. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4644. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4645. </span>
  4646. </el-dialog>
  4647. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4648. closePan(47);
  4649. }
  4650. " class="dialog_diy dialog_diy3 fullStyle">
  4651. <div style="height: 100%">
  4652. <div class="sentenBox" style="height: 100%">
  4653. <div class="addSen" @click="addSt">添加题目</div>
  4654. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4655. <div class="sentenTopBox">
  4656. <div class="sentenTop" :index="stIndex + 1">
  4657. <div>题目设置</div>
  4658. <div>
  4659. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4660. </div>
  4661. <div @click="addSen(stIndex)">添加</div>
  4662. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4663. </div>
  4664. </div>
  4665. <div class="cardList">
  4666. <div v-if="st.addSentence.length > 0" class="cardBox">
  4667. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4668. @click="setRightAnswer(s, stIndex, sIndex)">
  4669. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4670. <div>{{ s }}</div>
  4671. </el-tooltip>
  4672. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4673. <img src="../../../assets/icon/delete.png" alt="" />
  4674. </div>
  4675. </div>
  4676. </div>
  4677. <div class="card">
  4678. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4679. </div>
  4680. </div>
  4681. <div class="rightCardBox">
  4682. <div>正确顺序</div>
  4683. <div class="rightCardList">
  4684. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4685. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4686. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4687. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4688. <div>{{ r }}</div>
  4689. </el-tooltip>
  4690. </div>
  4691. <div>{{ rIndex + 1 }}</div>
  4692. </div>
  4693. </div>
  4694. <div class="card" v-if="st.rightAnswer.length == 0">
  4695. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4696. </div>
  4697. <div class="card" v-else>
  4698. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4699. </div>
  4700. </div>
  4701. </div>
  4702. </div>
  4703. </div>
  4704. </div>
  4705. <span slot="footer" class="dialog-footer">
  4706. <el-button @click="closePan(47)">取 消</el-button>
  4707. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4708. </span>
  4709. </el-dialog>
  4710. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4711. :before-close="handleClose" class="dialog_diy">
  4712. <el-form>
  4713. <!-- <el-form-item label="文本标题">
  4714. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4715. </el-form-item> -->
  4716. <div>表格内容</div>
  4717. <Table v-model="tableJson.text" @change="change"></Table>
  4718. </el-form>
  4719. <span slot="footer" class="dialog-footer">
  4720. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4721. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4722. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4723. </span>
  4724. </el-dialog>
  4725. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4726. :before-close="handleClose" class="dialog_diy">
  4727. <el-form>
  4728. <!-- <el-form-item label="文本标题">
  4729. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4730. </el-form-item> -->
  4731. <div>文档内容</div>
  4732. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4733. </el-form>
  4734. <span slot="footer" class="dialog-footer">
  4735. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4736. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4737. </span>
  4738. </el-dialog>
  4739. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4740. :before-close="handleClose" class="dialog_diy">
  4741. <div style="
  4742. width: 100%;
  4743. display: flex;
  4744. flex-direction: row;
  4745. flex-wrap: nowrap;
  4746. align-items: center;
  4747. justify-content: center;
  4748. ">
  4749. <div>班级:</div>
  4750. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4751. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4752. </el-option>
  4753. </el-select>
  4754. </div>
  4755. <span slot="footer" class="dialog-footer">
  4756. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4757. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4758. </span>
  4759. </el-dialog>
  4760. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4761. :before-close="handleClose" class="dialog_diy">
  4762. <div style="
  4763. width: 100%;
  4764. display: flex;
  4765. flex-direction: row;
  4766. flex-wrap: nowrap;
  4767. align-items: center;
  4768. justify-content: center;
  4769. ">
  4770. <div>随机码:</div>
  4771. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4772. </div>
  4773. <span slot="footer" class="dialog-footer">
  4774. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4775. <el-button type="primary" @click="addInvite">确定</el-button>
  4776. </span>
  4777. </el-dialog>
  4778. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4779. :before-close="handleClose" class="dialog_diy">
  4780. <div>
  4781. <div style="margin-bottom: 20px; color: #999">
  4782. 提示:点击“+”或“-”修改倒计时时长。
  4783. </div>
  4784. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4785. </div>
  4786. <span slot="footer" class="dialog-footer">
  4787. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4788. <el-button type="primary" @click="addPreTime">确定</el-button>
  4789. </span>
  4790. </el-dialog>
  4791. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4792. :before-close="handleClose" class="dialog_diy">
  4793. <div>
  4794. <div style="
  4795. width: 100%;
  4796. display: flex;
  4797. flex-direction: row;
  4798. flex-wrap: nowrap;
  4799. align-content: center;
  4800. align-items: center;
  4801. justify-content: space-between;
  4802. ">
  4803. <div style="
  4804. display: flex;
  4805. flex-flow: row nowrap;
  4806. align-items: flex-start;
  4807. width: 100%;
  4808. flex-direction: column;
  4809. flex-wrap: nowrap;
  4810. position: relative;
  4811. ">
  4812. <div class="e_box">
  4813. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4814. <div class="e_card_picture">
  4815. <img src="../../../assets/e_picture.png" />
  4816. </div>
  4817. <div class="e_card_name">
  4818. <span>{{ item.title }}</span>
  4819. </div>
  4820. <div class="e_card_btn">
  4821. <span @click="checkEva(item.id, 2)">导入</span>
  4822. </div>
  4823. </div> -->
  4824. <!-- <div class="addEva" @click="openT">
  4825. <img src="../../../assets/icon/addEva.png" alt="" />
  4826. </div> -->
  4827. <div style="
  4828. display: flex;
  4829. justify-content: flex-end;
  4830. margin-bottom: 10px;
  4831. ">
  4832. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  4833. </div>
  4834. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  4835. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  4836. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  4837. </el-table-column>
  4838. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  4839. </el-table-column>
  4840. <el-table-column label="操作" width="250px">
  4841. <template slot-scope="scope">
  4842. <div class="btnBox">
  4843. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  4844. </div>
  4845. </template>
  4846. </el-table-column>
  4847. </el-table>
  4848. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4849. 暂无数据
  4850. </div>
  4851. </div>
  4852. </div>
  4853. </div>
  4854. </div>
  4855. <span slot="footer" class="dialog-footer">
  4856. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4857. </span>
  4858. </el-dialog>
  4859. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4860. :before-close="handleClose" class="dialog_diy">
  4861. <div class="groupBox">
  4862. <div v-if="groupJson.group" class="groupContent">
  4863. <div class="groupTitle">请设置小组数量及名称</div>
  4864. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4865. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4866. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4867. <div class="groupBtn">
  4868. <el-button type="primary" size="small" @click="addGroup(index)"
  4869. v-if="groupJson.group.length - 1 == index">
  4870. 添加</el-button>
  4871. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4872. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4873. </div>
  4874. </div>
  4875. </div>
  4876. <div class="groupContent">
  4877. <div class="groupTitle">请设置每组人数</div>
  4878. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4879. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4880. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  4881. @change="numberPan"></el-input>
  4882. </div>
  4883. </div>
  4884. <span slot="footer" class="dialog-footer">
  4885. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4886. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4887. </span>
  4888. </el-dialog>
  4889. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4890. :before-close="handleClose" class="dialog_diy">
  4891. <div style="
  4892. width: 100%;
  4893. display: flex;
  4894. flex-direction: row;
  4895. flex-wrap: nowrap;
  4896. align-items: center;
  4897. justify-content: center;
  4898. ">
  4899. <div style="min-width: fit-content">文件名称:</div>
  4900. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4901. </div>
  4902. <span slot="footer" class="dialog-footer">
  4903. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4904. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4905. </span>
  4906. </el-dialog>
  4907. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  4908. closePan(69);
  4909. }
  4910. " class="dialog_diy fullStyle fullStyle1">
  4911. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  4912. <span slot="footer" class="dialog-footer">
  4913. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4914. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4915. </span>
  4916. </el-dialog>
  4917. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  4918. :before-close="handleClose" class="dialog_diy">
  4919. <div class="template_box">
  4920. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  4921. :class="{ wordTeacherA: ctJson.id == aa.id }">
  4922. <div class="wordPic">
  4923. <img src="../../../assets/icon/new/course_template.png" alt />
  4924. </div>
  4925. <el-tooltip effect="dark" :content="aa.title" placement="top">
  4926. <div style="
  4927. margin-top: 10px;
  4928. line-height: 19px;
  4929. overflow: hidden;
  4930. text-overflow: ellipsis;
  4931. white-space: nowrap;
  4932. padding: 0 10px;
  4933. box-sizing: border-box;
  4934. width: 100%;
  4935. ">
  4936. {{ aa.title }}
  4937. </div>
  4938. </el-tooltip>
  4939. </div>
  4940. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4941. :class="{ wordTeacherA: ctJson.id == 1 }">
  4942. <div class="wordPic">
  4943. <img src="../../../assets/icon/new/course_template.png" alt />
  4944. </div>
  4945. <div style="
  4946. margin-top: 10px;
  4947. line-height: 19px;
  4948. overflow: hidden;
  4949. text-overflow: ellipsis;
  4950. white-space: nowrap;
  4951. padding: 0 20px;
  4952. ">
  4953. 简易模板
  4954. </div>
  4955. </div>
  4956. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  4957. :class="{ wordTeacherA: ctJson.id == 2 }">
  4958. <div class="wordPic">
  4959. <img src="../../../assets/icon/new/course_template.png" alt />
  4960. </div>
  4961. <div style="
  4962. margin-top: 10px;
  4963. line-height: 19px;
  4964. overflow: hidden;
  4965. text-overflow: ellipsis;
  4966. white-space: nowrap;
  4967. padding: 0 20px;
  4968. ">
  4969. 智能粘贴模式
  4970. </div>
  4971. </div>
  4972. </div>
  4973. <span slot="footer" class="dialog-footer">
  4974. <el-button @click="templateDialog = false">取 消</el-button>
  4975. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  4976. </span>
  4977. </el-dialog>
  4978. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4979. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  4980. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  4981. <div class="change_stageBox">
  4982. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  4983. <div class="nt_taskBox">
  4984. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  4985. <div class="nt_taskName">
  4986. <el-tooltip effect="light" :content="t.dyName" placement="top">
  4987. <span>{{ t.dyName }}</span>
  4988. </el-tooltip>
  4989. </div>
  4990. </div>
  4991. <div class="moveBtn" v-if="unitJson3.length > 1">
  4992. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  4993. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  4994. </div>
  4995. </div>
  4996. </div>
  4997. <span slot="footer" class="dialog-footer">
  4998. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  4999. <el-button type="primary" @click="updateChange">确定</el-button>
  5000. </span>
  5001. </el-dialog>
  5002. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5003. :before-close="handleClose" class="dialog_diy">
  5004. <div class="addTypeChoose" style="justify-content: center">
  5005. <div style="min-width: 100px">模板名称:</div>
  5006. <el-input v-model="templateName" style="width: 200px"></el-input>
  5007. </div>
  5008. <div class="addTypeBox">
  5009. <div class="addTypeChoose">
  5010. <div style="min-width: 100px">选择一级分类:</div>
  5011. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5012. style="width: 200px">
  5013. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5014. </el-option>
  5015. </el-select>
  5016. </div>
  5017. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5018. <div style="min-width: 100px">选择二级分类:</div>
  5019. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5020. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5021. </el-option>
  5022. </el-select>
  5023. </div>
  5024. </div>
  5025. <span slot="footer" class="dialog-footer">
  5026. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5027. <el-button @click="close()">关 闭</el-button>
  5028. </span>
  5029. </el-dialog>
  5030. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5031. </evaBox>
  5032. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5033. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5034. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5035. </aiDialog>
  5036. </div>
  5037. </template>
  5038. <script>
  5039. import "../../../common/aws-sdk-2.235.1.min.js";
  5040. import { tools as toolsData } from "../../../common/tools.js";
  5041. // import "../../../common/aws-sdk-2.99.0.min.js";
  5042. import $ from "jquery";
  5043. import EditorBar from "../../../components/tools/wangEnduit";
  5044. import Table from "../../../components/tools/table";
  5045. import Mind from "../../tools/jsmind2";
  5046. import Time from "../../tools/time.vue";
  5047. import Sunburst from "../../tools/sunburst";
  5048. import SeeBoard from "../../tools/seeBoard";
  5049. import weilaiData from "../components/weilai.js";
  5050. import sourceDialog from "../teacherSource/dialog.vue";
  5051. import interVideo from "../interVideo/index.vue";
  5052. import englishRight from "../components/englishRight.vue";
  5053. import evaBox from "../evaBox/index.vue";
  5054. import EnglishVoice from "../EnglishVoice/index.vue";
  5055. import aiBox from './aiBox.vue'
  5056. import aiDialog from './aiDialog'
  5057. import { v4 as uuidv4 } from "uuid";
  5058. export default {
  5059. components: {
  5060. EditorBar,
  5061. Mind,
  5062. Time,
  5063. Sunburst,
  5064. SeeBoard,
  5065. Table,
  5066. sourceDialog,
  5067. interVideo,
  5068. englishRight,
  5069. evaBox,
  5070. EnglishVoice,
  5071. aiBox,
  5072. aiDialog
  5073. },
  5074. data() {
  5075. return {
  5076. checkAll: false,
  5077. checkAll2: false,
  5078. chooseType: 1,
  5079. checkedCities: [],
  5080. isIndeterminate: true,
  5081. isIndeterminate2: true,
  5082. isSysPic: false,
  5083. isSysPic2: false,
  5084. steps: 1,
  5085. stepsNav: 1,
  5086. nbOrder: 0,
  5087. courseId: "",
  5088. chapToolsType: 0,
  5089. chapTools: [
  5090. {
  5091. tools: [],
  5092. toolDetail: "",
  5093. },
  5094. ],
  5095. line: "",
  5096. lineTitle: "",
  5097. sysPic: [],
  5098. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5099. sentenceList2: [],
  5100. isPushTitleList: [],
  5101. lineCount: 0,
  5102. lineType: 0,
  5103. chapCount: 0,
  5104. courseName: "",
  5105. isTeacherSee: false,
  5106. courseText: "",
  5107. textLoading: false,
  5108. ttextLoading: false,
  5109. courseText2: "",
  5110. preTime: 0,
  5111. formLabelWidth: "100px",
  5112. choosePicVisible: false,
  5113. sysPicVisible: false,
  5114. sysPicVisible2: false,
  5115. uploadLoading1: false,
  5116. noneBtnImg: false,
  5117. updateBoolean2: false,
  5118. unitIndex: 0,
  5119. taskCount: 0,
  5120. dialogVisible: false,
  5121. dialogVisible1: false,
  5122. dialogVisible2: false,
  5123. dialogVisible3: false,
  5124. dialogVisible4: false,
  5125. dialogVisible5: false,
  5126. dialogVisible6: false,
  5127. dialogVisible7: false,
  5128. dialogVisible8: false,
  5129. dialogVisible9: false,
  5130. dialogVisibleClass: false,
  5131. dialogVisibleMember: false,
  5132. dialogVisibleMp3: false,
  5133. dialogVisibleSelect: false,
  5134. dialogVisibleSentence: false,
  5135. dialogVisibleRate: false,
  5136. dialogVisibleChoice: false,
  5137. dialogVisiblemb: false,
  5138. dialogVisibleInvite: false,
  5139. dialogVisibleSource: false,
  5140. dialogVisibleVideo: false,
  5141. dialogVisibleStageChange: false,
  5142. dialogVisibleupdataVideoT: false,
  5143. englishDialogVisible: false,
  5144. templateDialog: false,
  5145. ctJson: {},
  5146. isClickColor: 1,
  5147. toolIndexType: "",
  5148. publicTool: 0,
  5149. searchPeople: "",
  5150. searchTN: "",
  5151. userid: this.$route.query.userid,
  5152. oid: this.$route.query.oid,
  5153. org: this.$route.query.org,
  5154. role: this.$route.query.role,
  5155. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5156. dialogVisibleTable: false,
  5157. dialogVisibleWord: false,
  5158. tableJson: { text: "" },
  5159. wordJson: { text: "" },
  5160. dialogVisibleMoreUpload: false,
  5161. dialogVisiblePreTime: false,
  5162. uploadJson: [],
  5163. classJuri: [],
  5164. gradeList: [],
  5165. cover: [], //课程封面
  5166. myWord: [],
  5167. evaJuri: [],
  5168. evalua: "",
  5169. targetArray: [],
  5170. eTitle: "",
  5171. eJson: {},
  5172. fid: "", //一级
  5173. sid: "", //二级
  5174. tid: "", //二级
  5175. typeMode: 1,
  5176. eJSONNum: 0,
  5177. data: {
  5178. meta: {
  5179. name: "example",
  5180. author: "dd@163.com",
  5181. version: "0.2",
  5182. },
  5183. format: "node_array",
  5184. data: [{ id: "root", isroot: true, topic: "" }],
  5185. },
  5186. askJson: {
  5187. askCount: 1,
  5188. askTitle: "",
  5189. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5190. },
  5191. askJson2: {},
  5192. testJson: {},
  5193. testJson2: {},
  5194. selectJson: {},
  5195. selectJson2: {},
  5196. rateJson: [],
  5197. unitJson2: [],
  5198. unitJson3: [],
  5199. unitJson: [
  5200. {
  5201. dyName: "", //单元标题
  5202. chapterInfo: [
  5203. {
  5204. isread: false,
  5205. chapterid: this.guid(),
  5206. title: "",
  5207. courseName: "",
  5208. taskJson: [
  5209. {
  5210. task: "",
  5211. taskDetail: "",
  5212. chapterData: [],
  5213. toolText: "",
  5214. toolChoose: [
  5215. {
  5216. tool: [],
  5217. toolDetail: "",
  5218. toolType: 0,
  5219. askCount: 1,
  5220. askTitle: "",
  5221. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5222. },
  5223. ],
  5224. isShowTools: false,
  5225. askCount: 1,
  5226. isFold: 1,
  5227. askTitle: "",
  5228. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5229. checkJson: [{ checkCount: [], checkPerent: [] }],
  5230. homeworkList: [],
  5231. },
  5232. ],
  5233. itemCount: 1,
  5234. fileList1: [],
  5235. video: [],
  5236. testData: [],
  5237. pData: [],
  5238. templateArray: [],
  5239. },
  5240. ],
  5241. },
  5242. ],
  5243. templateArray: [],
  5244. studentJuri: [],
  5245. teacherJuri: [],
  5246. checkboxList: [],
  5247. checkboxList2: [],
  5248. checkboxList3: [],
  5249. classSearch: "",
  5250. gradeId: "",
  5251. number: "",
  5252. tTitle: "",
  5253. tdetail: "",
  5254. templateC: {},
  5255. AttText: {},
  5256. AttTextType: 0,
  5257. AttTextIndex: 0,
  5258. cTemplate: "",
  5259. CourseType: [],
  5260. CourseType1: [],
  5261. CourseType2: [],
  5262. CourseTypeJson: {},
  5263. CourseTypeJson1: {},
  5264. courseTypeId: [],
  5265. courseTypeId1: [],
  5266. courseTypeSon: [],
  5267. clearArray: [],
  5268. pTypeCheck: [],
  5269. pTypeCheckName: [],
  5270. loading: false,
  5271. toolType: 0,
  5272. inputShow: true,
  5273. inputShow2: true,
  5274. toolIndex: 0,
  5275. cidType: 0,
  5276. answerQ: "",
  5277. answerQ2: "",
  5278. grade: [],
  5279. grade2: [],
  5280. courseUserid: "",
  5281. timer: null,
  5282. timer2: null,
  5283. pasteTimer: null,
  5284. checkId: "",
  5285. isDelete: 1,
  5286. addindex: 0,
  5287. selectSteps: 1,
  5288. groupJson: {},
  5289. dialogVisibleGroup: false,
  5290. rightBoxHeight: 0,
  5291. ManAarray: [],
  5292. checkBoolean: false,
  5293. inviteCode: [],
  5294. inviteId: "",
  5295. icode: "",
  5296. easyArray: [2, 4],
  5297. sourceData: {},
  5298. updateSourcePan: false,
  5299. videoJson: {},
  5300. isBtnDisplay: false,
  5301. isStepDisplay: false,
  5302. isPasteStage: false,
  5303. isPasteTask: false,
  5304. isPasteChoice: false,
  5305. imageList: [],
  5306. imageloading: false,
  5307. searchImageValue: "",
  5308. ppage: 1,
  5309. toolsData: toolsData,
  5310. oldIndex: 0,
  5311. dragType: "",
  5312. oldUnitIndex: 0,
  5313. oldData: null,
  5314. newIndex: "",
  5315. englishList: {},
  5316. typeIndex: "",
  5317. courseState: 2,
  5318. taskJSONa: [
  5319. {
  5320. task: "",
  5321. taskDetail: "",
  5322. chapterData: [],
  5323. toolText: "",
  5324. toolChoose: [
  5325. {
  5326. tool: [],
  5327. toolDetail: "",
  5328. toolType: 0,
  5329. askCount: 1,
  5330. askTitle: "",
  5331. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5332. },
  5333. ],
  5334. isShowTools: false,
  5335. askCount: 1,
  5336. isFold: 1,
  5337. askTitle: "",
  5338. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5339. checkJson: [{ checkCount: [], checkPerent: [] }],
  5340. homeworkList: [],
  5341. },
  5342. ],
  5343. checkUnitIndex: 0,
  5344. isdrag: "",
  5345. evaIndex: "",
  5346. evatIndex: "",
  5347. evaBoxDialog: false,
  5348. EnglishVoiceDialog: false,
  5349. englishVoiceJson: {},
  5350. cetIndex: "",
  5351. cettIndex: "",
  5352. cetBoxDialog: false,
  5353. templateName: "",
  5354. setTypeJson: {
  5355. one: "",
  5356. two: "",
  5357. },
  5358. twoJson: [],
  5359. oneJson: [],
  5360. updateKey: 1,
  5361. isOutline: false,
  5362. isOutline2: false,
  5363. infoData: [],
  5364. infoproVisible: false,
  5365. infoisFinishSize: 0,
  5366. infoisAllSize: 0,
  5367. infoprogress: 0,
  5368. taskDetailLoading: [],
  5369. ttaskDetailLoading: [],
  5370. taskDetailLoading2: [],
  5371. ttaskDetailLoading2: [],
  5372. taskDetailLoading3: [],
  5373. ttaskDetailLoading3: [],
  5374. taskDetailLoading4: [],
  5375. taskDetailLoading5: [],
  5376. ttaskDetailLoading5: [],
  5377. dArray: {},
  5378. dialogVisibleAiD: false,
  5379. aitype: "",
  5380. aiJson: {
  5381. aiDetail: "",
  5382. },
  5383. aiText: "",
  5384. aiCallBack: "",
  5385. aiIndex: "",
  5386. clickType: 1,
  5387. };
  5388. },
  5389. directives: {
  5390. autoHeight: {
  5391. update(el, binding) {
  5392. const { value } = binding;
  5393. if (value && typeof value === "number") {
  5394. el.style.height = `${value}px`;
  5395. } else {
  5396. el.style.height = "auto";
  5397. }
  5398. },
  5399. componentUpdated(el) {
  5400. el.style.height = `${el.scrollHeight + 25}px`;
  5401. },
  5402. },
  5403. },
  5404. computed: {
  5405. // rightBoxHeight: function () {
  5406. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5407. // },
  5408. offsetLetfPx: function () {
  5409. //addnum可以直接在模板语法里面用,相当于data内的值
  5410. return (
  5411. $(".cru_select")[this.unitIndex] &&
  5412. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5413. );
  5414. },
  5415. getMan2() {
  5416. return function (people) {
  5417. let _people = people;
  5418. let _people2 = "";
  5419. if (this.ManAarray.length) {
  5420. for (var i = 0; i < this.ManAarray.length; i++) {
  5421. if (this.ManAarray[i].userid == people) {
  5422. _people2 = this.ManAarray[i].name;
  5423. break;
  5424. }
  5425. }
  5426. }
  5427. if (people == this.courseUserid) {
  5428. return "";
  5429. }
  5430. return this.ManAarray.length ? _people2 : "";
  5431. };
  5432. },
  5433. getListMan2() {
  5434. return function (list) {
  5435. let _people2 = [];
  5436. if (this.ManAarray.length) {
  5437. for (var j = 0; j < list.length; j++) {
  5438. let people = list[j];
  5439. for (var i = 0; i < this.ManAarray.length; i++) {
  5440. if (
  5441. this.ManAarray[i].userid == people &&
  5442. people != this.courseUserid
  5443. ) {
  5444. _people2.push(this.ManAarray[i].name);
  5445. break;
  5446. }
  5447. }
  5448. }
  5449. }
  5450. return this.ManAarray.length ? _people2.join("、") : "";
  5451. };
  5452. },
  5453. isInvite() {
  5454. return function (cid) {
  5455. let array = [];
  5456. for (var i = 0; i < this.inviteCode.length; i++) {
  5457. array.push(this.inviteCode[i].cid);
  5458. }
  5459. return array.indexOf(cid) != -1;
  5460. };
  5461. },
  5462. getInviteCodeC() {
  5463. return function (cid) {
  5464. let array = [];
  5465. for (var i = 0; i < this.inviteCode.length; i++) {
  5466. array.push(this.inviteCode[i].cid);
  5467. }
  5468. return this.inviteCode[array.indexOf(cid)].ic;
  5469. };
  5470. },
  5471. getClassC() {
  5472. return function (c) {
  5473. let _c2 = "";
  5474. if (this.grade.length) {
  5475. for (var i = 0; i < this.grade.length; i++) {
  5476. if (this.grade[i].id == c) {
  5477. _c2 = this.grade[i].name;
  5478. break;
  5479. }
  5480. }
  5481. }
  5482. return this.grade.length ? _c2 : "";
  5483. };
  5484. },
  5485. getListClassC() {
  5486. return function (list) {
  5487. let _c2 = [];
  5488. if (this.grade.length) {
  5489. for (var j = 0; j < list.length; j++) {
  5490. let c = list[j];
  5491. for (var i = 0; i < this.grade.length; i++) {
  5492. if (this.grade[i].id == c) {
  5493. _c2.push(this.grade[i].name);
  5494. break;
  5495. }
  5496. }
  5497. }
  5498. }
  5499. return this.grade.length ? _c2.join("、") : "";
  5500. };
  5501. },
  5502. },
  5503. watch: {
  5504. unitIndex(newValue, oldValue) {
  5505. // return;
  5506. if (this.isDelete == 2) {
  5507. this.isDelete = 1;
  5508. return;
  5509. }
  5510. if (this.cid != "") {
  5511. let _unitIndex = oldValue;
  5512. if (
  5513. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5514. JSON.stringify(this.unitJson[_unitIndex])
  5515. ) {
  5516. this.$refs.rightboxR.scrollTop = 0;
  5517. return;
  5518. }
  5519. let cPan = 1;
  5520. for (
  5521. var j = 0;
  5522. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5523. j++
  5524. ) {
  5525. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5526. j
  5527. ].proVisible = false;
  5528. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5529. j
  5530. ].proVisible2 = false;
  5531. if (
  5532. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5533. .length > 1
  5534. ) {
  5535. for (
  5536. var z = 0;
  5537. z <
  5538. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5539. .length;
  5540. z++
  5541. ) {
  5542. if (
  5543. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5544. .toolChoose[z].tool.length
  5545. ) {
  5546. this.$message.error("请把工具添加完整");
  5547. cPan = 2;
  5548. break;
  5549. }
  5550. }
  5551. }
  5552. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5553. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5554. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5555. (ele) => {
  5556. return ele.value != "";
  5557. }
  5558. );
  5559. }
  5560. }
  5561. if (cPan == 2) {
  5562. this.unitIndex = oldValue;
  5563. return;
  5564. }
  5565. for (var i = 0; i < this.unitJson.length; i++) {
  5566. if (this.addindex != i) {
  5567. delete this.unitJson[i].isUpdate;
  5568. }
  5569. }
  5570. this.$refs.rightboxR.scrollTop = 0;
  5571. this.addindex = -1;
  5572. let params = [
  5573. {
  5574. cid: this.cid,
  5575. chapters: JSON.stringify(this.unitJson),
  5576. uid: this.userid,
  5577. unitIndex: _unitIndex,
  5578. },
  5579. ];
  5580. this.ajax
  5581. .post(this.$store.state.api + "updateWorkNew4", params)
  5582. .then((res) => {
  5583. // this.$message({
  5584. // message: "修改成功",
  5585. // type: "success",
  5586. // });
  5587. // this.courseId = this.cid;
  5588. })
  5589. .catch((err) => {
  5590. this.$message.error("网络不佳");
  5591. console.error(err);
  5592. });
  5593. }
  5594. },
  5595. steps(newValue, old) {
  5596. if (newValue == 4) {
  5597. let cPan = 1;
  5598. for (var i = 0; i < this.unitJson.length; i++) {
  5599. for (
  5600. var j = 0;
  5601. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5602. j++
  5603. ) {
  5604. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5605. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5606. if (
  5607. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5608. ) {
  5609. for (
  5610. var z = 0;
  5611. z <
  5612. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5613. z++
  5614. ) {
  5615. if (
  5616. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5617. .tool.length
  5618. ) {
  5619. this.$message.error("请把工具添加完整");
  5620. cPan = 2;
  5621. break;
  5622. }
  5623. }
  5624. }
  5625. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5626. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5627. i
  5628. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5629. return ele.value != "";
  5630. });
  5631. }
  5632. }
  5633. }
  5634. this.inputShow = true;
  5635. if (cPan == 2) {
  5636. this.steps = old;
  5637. return;
  5638. }
  5639. this.goTo(
  5640. "/course?userid=" +
  5641. this.userid +
  5642. "&oid=" +
  5643. this.oid +
  5644. "&org=" +
  5645. this.org +
  5646. "&role=" +
  5647. this.role
  5648. );
  5649. }
  5650. },
  5651. },
  5652. methods: {
  5653. tableRowClassName({ row, rowIndex }) {
  5654. if ((rowIndex + 1) % 2 === 0) {
  5655. return "even_row";
  5656. } else {
  5657. return "";
  5658. }
  5659. },
  5660. close() {
  5661. this.cetIndex = "";
  5662. this.cettIndex = "";
  5663. this.templateName = "";
  5664. this.cetBoxDialog = false;
  5665. },
  5666. openAI() {
  5667. top.postMessage({ tools: "64" }, "*");
  5668. },
  5669. setMan() {
  5670. // let teacherJuri = this.teacherJuri2;
  5671. this.ManAarray = [];
  5672. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5673. if (_user.indexOf(this.userid) == -1) {
  5674. _user.push(this.userid);
  5675. }
  5676. if (_user.indexOf(this.courseUserid) == -1) {
  5677. _user.push(this.courseUserid);
  5678. }
  5679. let params = {
  5680. uid: _user.join(","),
  5681. };
  5682. this.ajax
  5683. .get(this.$store.state.api + "getAllUserById", params)
  5684. .then((res) => {
  5685. let teacherJuri = res.data[0];
  5686. this.ManAarray = teacherJuri;
  5687. })
  5688. .catch((err) => {
  5689. console.error(err);
  5690. });
  5691. },
  5692. previewImg(url) {
  5693. this.$hevueImgPreview(url);
  5694. },
  5695. btnDisplay(bool) {
  5696. this.isBtnDisplay = bool;
  5697. },
  5698. stepDisplay(bool) {
  5699. this.isStepDisplay = bool;
  5700. },
  5701. scrollChange() {
  5702. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5703. },
  5704. addHw(e) {
  5705. var el = e.currentTarget;
  5706. el.getElementsByTagName("input")[0].click();
  5707. },
  5708. change(val) {
  5709. if (this.dialogVisible1) {
  5710. this.tdetail = val;
  5711. } else if (this.dialogVisible6) {
  5712. this.AttText.text = val;
  5713. } else if (this.dialogVisible2) {
  5714. this.cTemplate = val;
  5715. } else if (this.dialogVisibleTable) {
  5716. this.tableJson.text = val;
  5717. }
  5718. this.$forceUpdate();
  5719. console.log(val);
  5720. },
  5721. change2(val) {
  5722. console.log(val);
  5723. this.$forceUpdate();
  5724. },
  5725. handleClose(done) {
  5726. done();
  5727. },
  5728. closePan(tool) {
  5729. if (tool == 15) {
  5730. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5731. this.dialogVisible8 = false;
  5732. } else {
  5733. this.closeConfirm(tool);
  5734. }
  5735. } else if (tool == 4) {
  5736. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5737. this.dialogVisible5 = false;
  5738. } else {
  5739. this.closeConfirm(tool);
  5740. }
  5741. } else if (tool == 45) {
  5742. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5743. this.dialogVisibleChoice = false;
  5744. } else {
  5745. this.closeConfirm(tool);
  5746. }
  5747. } else if (tool == 41) {
  5748. if (
  5749. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  5750. ) {
  5751. this.dialogVisibleSelect = false;
  5752. } else {
  5753. this.closeConfirm(tool);
  5754. }
  5755. } else if (tool == 47) {
  5756. if (
  5757. JSON.stringify(this.sentenceList) ==
  5758. JSON.stringify(this.sentenceList2)
  5759. ) {
  5760. this.dialogVisibleSentence = false;
  5761. } else {
  5762. this.closeConfirm(tool);
  5763. }
  5764. } else if (tool == 69) {
  5765. if (
  5766. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  5767. ) {
  5768. this.englishDialogVisible = false;
  5769. } else {
  5770. this.closeConfirm(tool);
  5771. }
  5772. }
  5773. },
  5774. closeConfirm(tool) {
  5775. this.$confirm("是否保存已编辑内容?", "提示", {
  5776. confirmButtonText: "保存",
  5777. cancelButtonText: "不保存",
  5778. type: "warning",
  5779. })
  5780. .then(() => {
  5781. if (tool == 15) {
  5782. this.addAnswer();
  5783. } else if (tool == 4) {
  5784. this.addAsk();
  5785. } else if (tool == 45) {
  5786. this.addTest();
  5787. } else if (tool == 41) {
  5788. this.addSelectAnswer();
  5789. } else if (tool == 47) {
  5790. this.addSentenceTool();
  5791. } else if (tool == 69) {
  5792. this.addEnglish();
  5793. }
  5794. })
  5795. .catch(() => {
  5796. if (tool == 15) {
  5797. this.dialogVisible8 = false;
  5798. } else if (tool == 4) {
  5799. this.dialogVisible5 = false;
  5800. } else if (tool == 45) {
  5801. this.dialogVisibleChoice = false;
  5802. } else if (tool == 41) {
  5803. this.dialogVisibleSelect = false;
  5804. } else if (tool == 47) {
  5805. this.dialogVisibleSentence = false;
  5806. } else if (tool == 69) {
  5807. this.englishDialogVisible = false;
  5808. }
  5809. });
  5810. },
  5811. addEnglish(jsonType) {
  5812. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  5813. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  5814. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  5815. if (
  5816. this.englishList.engTitle == "" ||
  5817. this.englishList.englishText == ""
  5818. ) {
  5819. this.$message.error("请将内容填写完整!");
  5820. return;
  5821. }
  5822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5823. this.taskCount
  5824. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5825. this.englishList = {};
  5826. if (jsonType && jsonType == 1) {
  5827. this.englishDialogVisible = true;
  5828. } else {
  5829. this.englishDialogVisible = false;
  5830. }
  5831. if (
  5832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5833. .toolChoose[this.toolIndex].tool != 69
  5834. ) {
  5835. this.addTools(69, this.taskCount, this.toolIndex);
  5836. }
  5837. },
  5838. imgChange2(i, j) {
  5839. var _tmp = this.testJson.testJson[i].checkList[j];
  5840. this.noneBtnImg = _tmp.length >= 1;
  5841. },
  5842. imgChange3(i) {
  5843. var _tmp = this.testJson.testJson[i];
  5844. this.noneBtnImg = _tmp.length >= 1;
  5845. },
  5846. imgChange1(file, fileList, type, itemTaskIndex) {
  5847. if (type == 1) {
  5848. var _tmp = this.cover;
  5849. } else if (
  5850. type == 2 ||
  5851. type == 3 ||
  5852. type == 6 ||
  5853. type == 7 ||
  5854. type == 8
  5855. ) {
  5856. var _tmp =
  5857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5858. .chapterData;
  5859. } else if (type == 4) {
  5860. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5861. } else {
  5862. var _tmp =
  5863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5864. .homeworkList;
  5865. }
  5866. this.noneBtnImg = _tmp.length >= 1;
  5867. },
  5868. goTo(path) {
  5869. this.$router.push(path);
  5870. },
  5871. guid() {
  5872. var _num,
  5873. i,
  5874. _guid = "";
  5875. for (i = 0; i < 32; i++) {
  5876. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5877. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5878. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5879. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5880. _guid += "-";
  5881. }
  5882. }
  5883. return _guid;
  5884. },
  5885. retrunCourse() {
  5886. this.$confirm("是否保存已编辑内容?", "提示", {
  5887. confirmButtonText: "保存",
  5888. cancelButtonText: "不保存",
  5889. distinguishCancelAndClose: true,
  5890. type: "warning",
  5891. })
  5892. .then(() => {
  5893. if (this.cid == "" || this.cid == undefined) {
  5894. if (this.courseName == "") {
  5895. this.$message.error("请补充填写课程名称");
  5896. return;
  5897. } else {
  5898. this.addWork();
  5899. }
  5900. this.steps = 4;
  5901. } else {
  5902. if (this.courseName == "") {
  5903. this.$message.error("请补充填写课程名称");
  5904. return;
  5905. } else {
  5906. if (this.userid != this.courseUserid && this.role != "1") {
  5907. this.updateWork2();
  5908. } else {
  5909. this.updateWork();
  5910. }
  5911. this.steps = 4;
  5912. }
  5913. }
  5914. })
  5915. .catch((v) => {
  5916. console.log(v);
  5917. if (v == "cancel") {
  5918. this.goTo(
  5919. "/course?userid=" +
  5920. this.userid +
  5921. "&oid=" +
  5922. this.oid +
  5923. "&org=" +
  5924. this.org +
  5925. "&role=" +
  5926. this.role
  5927. );
  5928. }
  5929. });
  5930. },
  5931. lastSteps() {
  5932. if (this.steps == 4) {
  5933. this.goTo(
  5934. "/course?userid=" +
  5935. this.userid +
  5936. "&oid=" +
  5937. this.oid +
  5938. "&org=" +
  5939. this.org +
  5940. "&role=" +
  5941. this.role
  5942. );
  5943. } else {
  5944. // if (this.cidType == 0) {
  5945. // this.steps--;
  5946. // if (this.steps == 1) {
  5947. // setTimeout(() => {
  5948. // this.checkEva(this.checkId);
  5949. // setTimeout(() => {
  5950. // this.checkEva(this.checkId);
  5951. // }, 100);
  5952. // }, 100);
  5953. // }
  5954. // } else {
  5955. if (this.steps == 3) {
  5956. this.steps = 1;
  5957. setTimeout(() => {
  5958. this.checkEva(this.checkId);
  5959. setTimeout(() => {
  5960. this.checkEva(this.checkId);
  5961. }, 100);
  5962. }, 100);
  5963. }
  5964. // }
  5965. }
  5966. },
  5967. navSteps(s) {
  5968. if (this.courseName == "") {
  5969. this.$message.error("请补充填写课程名称");
  5970. return;
  5971. }
  5972. if (this.cidType == 0) {
  5973. if (this.steps == 1) {
  5974. if (this.cid == "" || this.cid == undefined) {
  5975. this.addWork();
  5976. } else {
  5977. if (this.userid != this.courseUserid && this.role != "1") {
  5978. this.updateWork2();
  5979. } else {
  5980. this.updateWork();
  5981. }
  5982. }
  5983. }
  5984. if (s == 1) {
  5985. this.steps = 1;
  5986. setTimeout(() => {
  5987. this.checkEva(this.checkId);
  5988. setTimeout(() => {
  5989. this.checkEva(this.checkId);
  5990. }, 100);
  5991. }, 100);
  5992. }
  5993. if (s == 2) {
  5994. this.steps = 2;
  5995. }
  5996. if (s == 3) {
  5997. this.cTemplate = this.templateC.content;
  5998. this.dialogVisible2 = false;
  5999. this.steps = 3;
  6000. this.isClickColor = 1;
  6001. this.unitJson[
  6002. this.unitIndex
  6003. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6004. this.$forceUpdate();
  6005. setTimeout(() => {
  6006. this.checkEva(this.checkId);
  6007. setTimeout(() => {
  6008. this.checkEva(this.checkId);
  6009. }, 100);
  6010. }, 1000);
  6011. }
  6012. } else {
  6013. if (this.steps == 1) {
  6014. if (this.cid == "" || this.cid == undefined) {
  6015. this.addWork();
  6016. } else {
  6017. if (this.userid != this.courseUserid && this.role != "1") {
  6018. this.updateWork2();
  6019. } else {
  6020. this.updateWork();
  6021. }
  6022. }
  6023. }
  6024. if (s == 1) {
  6025. this.steps = 1;
  6026. setTimeout(() => {
  6027. this.checkEva(this.checkId);
  6028. setTimeout(() => {
  6029. this.checkEva(this.checkId);
  6030. }, 100);
  6031. }, 100);
  6032. }
  6033. if (s == 3) {
  6034. this.cTemplate = this.templateC.content;
  6035. this.dialogVisible2 = false;
  6036. this.steps = 3;
  6037. this.isClickColor = 1;
  6038. this.unitJson[
  6039. this.unitIndex
  6040. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6041. this.$forceUpdate();
  6042. setTimeout(() => {
  6043. this.checkEva(this.checkId);
  6044. setTimeout(() => {
  6045. this.checkEva(this.checkId);
  6046. }, 100);
  6047. }, 1000);
  6048. }
  6049. }
  6050. this.$refs.stepBox.scrollTop = 0;
  6051. },
  6052. nextSteps(clickType) {
  6053. // if (this.cidType == 1) {
  6054. if (this.steps == 1) {
  6055. if (this.courseName != "") {
  6056. if (!this.isOutline) {
  6057. this.openAiDialog(clickType, 'aiOutline')
  6058. return;
  6059. }
  6060. if (!this.isOutline2) {
  6061. this.openAiDialog(clickType, 'aiTeacher')
  6062. return;
  6063. }
  6064. const functionA = () => {
  6065. setTimeout(() => {
  6066. this.loading = false
  6067. this.steps = 3;
  6068. }, 0)
  6069. this.isClickColor = 1;
  6070. this.unitJson[
  6071. this.unitIndex
  6072. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6073. this.$forceUpdate();
  6074. setTimeout(() => {
  6075. this.checkEva(this.checkId);
  6076. setTimeout(() => {
  6077. this.checkEva(this.checkId);
  6078. }, 100);
  6079. }, 1000);
  6080. if (this.cid == "" || this.cid == undefined) {
  6081. this.addWork();
  6082. } else {
  6083. if (this.userid != this.courseUserid && this.role != "1") {
  6084. this.updateWork2();
  6085. } else {
  6086. this.updateWork();
  6087. }
  6088. }
  6089. }
  6090. if (this.cid) {
  6091. this.loading = true
  6092. functionA()
  6093. } else {
  6094. this.openAiDialog(clickType, "aiTask", functionA)
  6095. }
  6096. } else {
  6097. this.$message.error("请补充填写课程名称");
  6098. return;
  6099. }
  6100. } else if (this.steps == 3) {
  6101. if (this.cid == "" || this.cid == undefined) {
  6102. if (this.courseName == "") {
  6103. this.$message.error("请补充填写课程名称");
  6104. return;
  6105. } else {
  6106. this.addWork();
  6107. this.steps++;
  6108. }
  6109. } else {
  6110. if (this.courseName == "") {
  6111. this.$message.error("请补充填写课程名称");
  6112. return;
  6113. } else {
  6114. if (this.userid != this.courseUserid && this.role != "1") {
  6115. this.updateWork2();
  6116. } else {
  6117. this.updateWork();
  6118. }
  6119. this.steps++;
  6120. }
  6121. }
  6122. }
  6123. // } else {
  6124. // if (this.steps == 1) {
  6125. // if (this.courseName != "") {
  6126. // if (this.cid == "" || this.cid == undefined) {
  6127. // this.addWork();
  6128. // } else {
  6129. // if (this.userid != this.courseUserid && this.role != "1") {
  6130. // // this.updateWork2();
  6131. // } else {
  6132. // this.updateWork();
  6133. // }
  6134. // }
  6135. // this.steps++;
  6136. // } else {
  6137. // this.$message.error("请补充填写课程名称");
  6138. // return;
  6139. // }
  6140. // } else if (this.steps == 2) {
  6141. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6142. // this.cTemplate = this.templateC.content;
  6143. // }
  6144. // this.dialogVisible2 = false;
  6145. // this.steps++;
  6146. // setTimeout(() => {
  6147. // this.checkEva(this.checkId);
  6148. // setTimeout(() => {
  6149. // this.checkEva(this.checkId);
  6150. // }, 100);
  6151. // }, 1000);
  6152. // } else if (this.steps == 3) {
  6153. // if (this.cid == "" || this.cid == undefined) {
  6154. // if (this.courseName == "") {
  6155. // this.$message.error("请补充填写课程名称");
  6156. // return;
  6157. // } else {
  6158. // this.addWork();
  6159. // this.steps++;
  6160. // }
  6161. // } else {
  6162. // if (this.courseName == "") {
  6163. // this.$message.error("请补充填写课程名称");
  6164. // return;
  6165. // } else {
  6166. // if (this.userid != this.courseUserid && this.role != "1") {
  6167. // this.updateWork2();
  6168. // } else {
  6169. // this.updateWork();
  6170. // }
  6171. // this.steps++;
  6172. // }
  6173. // }
  6174. // }
  6175. // }
  6176. this.$refs.stepBox.scrollTop = 0;
  6177. },
  6178. unitSet(i) {
  6179. if (this.unitIndex == i) {
  6180. return;
  6181. }
  6182. this.unitIndex = i;
  6183. this.isClickColor = 1;
  6184. // this.$refs.rightboxR.scrollTop = 0;
  6185. this.$refs.unitBox.scrollTop = 0;
  6186. },
  6187. panUnitJson() {
  6188. let _unitIndex = this.unitIndex;
  6189. let cPan = 1;
  6190. for (
  6191. var j = 0;
  6192. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6193. j++
  6194. ) {
  6195. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6196. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6197. j
  6198. ].proVisible2 = false;
  6199. if (
  6200. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6201. .length > 1
  6202. ) {
  6203. for (
  6204. var z = 0;
  6205. z <
  6206. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6207. .length;
  6208. z++
  6209. ) {
  6210. if (
  6211. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6212. z
  6213. ].tool.length
  6214. ) {
  6215. this.$message.error("请把工具添加完整");
  6216. cPan = 2;
  6217. break;
  6218. }
  6219. }
  6220. }
  6221. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6222. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6223. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6224. (ele) => {
  6225. return ele.value != "";
  6226. }
  6227. );
  6228. }
  6229. }
  6230. return cPan;
  6231. },
  6232. unitOpen(i) {
  6233. if (this.unitJson[i].toolOpen) {
  6234. this.unitJson[i].toolOpen = false;
  6235. } else {
  6236. this.unitJson[i].toolOpen = true;
  6237. }
  6238. this.updateWork();
  6239. this.$forceUpdate();
  6240. },
  6241. unitSet2(i) {
  6242. if (this.panUnitJson() == 2) {
  6243. return;
  6244. }
  6245. // if(this.unitJson[i].toolOpen){
  6246. // this.unitJson[i].toolOpen = false
  6247. // this.updateWork()
  6248. // this.$forceUpdate()
  6249. // return
  6250. // }else {
  6251. this.unitJson[i].toolOpen = true;
  6252. // }
  6253. this.$forceUpdate();
  6254. if (this.unitIndex == i) {
  6255. return;
  6256. }
  6257. this.unitIndex = i;
  6258. this.isClickColor = 1;
  6259. // this.$refs.rightboxR.scrollTop = 0;
  6260. this.$refs.unitBox.scrollTop = 0;
  6261. },
  6262. updateCourseState(i) {
  6263. let params = [
  6264. {
  6265. cid: this.cid,
  6266. state: i,
  6267. },
  6268. ];
  6269. this.ajax
  6270. .post(this.$store.state.api + "updateCourseMode", params)
  6271. .then((res) => {
  6272. this.courseState = i;
  6273. })
  6274. .catch((err) => {
  6275. this.$message.error("网络不佳");
  6276. console.error(err);
  6277. });
  6278. },
  6279. time() {
  6280. if (!this.now) {
  6281. this.now = new Date().getTime();
  6282. return true;
  6283. } else {
  6284. let time = new Date().getTime();
  6285. if (time - this.now > 3000) {
  6286. this.now = time;
  6287. return true;
  6288. } else {
  6289. return false;
  6290. }
  6291. }
  6292. },
  6293. deleteUnit(i) {
  6294. var _this = this;
  6295. if (i == 0 && _this.unitJson.length == 1) {
  6296. _this
  6297. .$confirm("确定切换成任务模式吗?", "提示", {
  6298. confirmButtonText: "确定",
  6299. cancelButtonText: "取消",
  6300. type: "warning",
  6301. })
  6302. .then(() => {
  6303. _this.unitJson[i].dyName = "";
  6304. // _this.updateCourseState(2);
  6305. })
  6306. .catch(() => {
  6307. return;
  6308. });
  6309. } else {
  6310. _this
  6311. .$confirm("确定删除此阶段吗?", "提示", {
  6312. confirmButtonText: "确定",
  6313. cancelButtonText: "取消",
  6314. type: "warning",
  6315. })
  6316. .then(() => {
  6317. _this.isDelete = 2;
  6318. // _this.unitIndex = _this.unitIndex - 1;
  6319. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6320. // _this.$message.success("删除成功");
  6321. })
  6322. .catch(() => {
  6323. return;
  6324. });
  6325. }
  6326. },
  6327. deleteWork(chapid) {
  6328. let params = [
  6329. {
  6330. cid: this.cid,
  6331. chapters: JSON.stringify(this.unitJson),
  6332. uid: this.userid,
  6333. chapid: chapid,
  6334. },
  6335. ];
  6336. this.ajax
  6337. .post(this.$store.state.api + "deleteWork", params)
  6338. .then((res) => {
  6339. this.$message({
  6340. message: "删除成功",
  6341. type: "success",
  6342. });
  6343. let task = JSON.parse(
  6344. JSON.stringify(
  6345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6346. )
  6347. );
  6348. this.unitJson.splice(this.unitIndex, 1);
  6349. if (this.unitIndex == 0) {
  6350. this.unitIndex = 0;
  6351. } else {
  6352. this.unitIndex = this.unitIndex - 1;
  6353. }
  6354. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6356. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6357. ...task,
  6358. ];
  6359. }
  6360. })
  6361. .catch((err) => {
  6362. this.$message.error("网络不佳");
  6363. console.error(err);
  6364. });
  6365. },
  6366. deleteTool(itemTaskIndex, i) {
  6367. var _this = this;
  6368. if (_this.time()) {
  6369. _this
  6370. .$confirm("确定删除此工具吗?", "提示", {
  6371. confirmButtonText: "确定",
  6372. cancelButtonText: "取消",
  6373. type: "warning",
  6374. })
  6375. .then(() => {
  6376. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6377. itemTaskIndex
  6378. ].toolChoose.splice(i, 1);
  6379. _this.$message.success("删除成功");
  6380. })
  6381. .catch(() => {
  6382. return;
  6383. });
  6384. }
  6385. },
  6386. deleteSentence(i) {
  6387. var _this = this;
  6388. _this
  6389. .$confirm("确定删除此题目吗?", "提示", {
  6390. confirmButtonText: "确定",
  6391. cancelButtonText: "取消",
  6392. type: "warning",
  6393. })
  6394. .then(() => {
  6395. _this.sentenceList.splice(i, 1);
  6396. _this.$message.success("删除成功");
  6397. })
  6398. .catch(() => {
  6399. return;
  6400. });
  6401. },
  6402. deleteS(s, i, j) {
  6403. this.sentenceList[i].addSentence.splice(j, 1);
  6404. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6405. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6406. this.sentenceList[i].rightAnswer.splice(a, 1);
  6407. }
  6408. },
  6409. openT() {
  6410. top.postMessage({ tools: "25" }, "*");
  6411. },
  6412. deleteTask(i) {
  6413. var _this = this;
  6414. if (_this.time()) {
  6415. _this
  6416. .$confirm(
  6417. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6418. 1 ==
  6419. i
  6420. ? "确定删除此任务吗?"
  6421. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6422. "提示",
  6423. {
  6424. confirmButtonText: "确定",
  6425. cancelButtonText: "取消",
  6426. type: "warning",
  6427. }
  6428. )
  6429. .then(() => {
  6430. if (i == 0) {
  6431. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6432. i + 1
  6433. ].chapterData = JSON.parse(
  6434. JSON.stringify(
  6435. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6436. .chapterData
  6437. )
  6438. );
  6439. }
  6440. _this.$forceUpdate();
  6441. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6442. i,
  6443. 1
  6444. );
  6445. _this.$message.success("删除成功");
  6446. })
  6447. .catch(() => {
  6448. return;
  6449. });
  6450. }
  6451. },
  6452. handlePictureCardPreview(file) {
  6453. this.dialogImageUrl = file.url;
  6454. },
  6455. clean(i, c) {
  6456. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6457. },
  6458. handle_remove1(file, fileList, type) {
  6459. var _tmp = this.cover;
  6460. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6461. // if (_tmp[i].uid == file.uid) {
  6462. // _tmp.splice(i, 1);
  6463. // break;
  6464. // }
  6465. // this.cover = _tmp;
  6466. // }
  6467. this.cover = [];
  6468. this.noneBtnImg = this.cover.length >= 1;
  6469. this.isSysPic = false;
  6470. this.isSysPic2 = false;
  6471. this.$forceUpdate();
  6472. },
  6473. addImg(e) {
  6474. var el = e.currentTarget;
  6475. el.getElementsByTagName("input")[0].click();
  6476. e.target.value = "";
  6477. },
  6478. addChaptersTools(i) {
  6479. this.chapTools = [
  6480. {
  6481. tools: [],
  6482. toolDetail: "",
  6483. },
  6484. ];
  6485. this.chapCount = i;
  6486. this.dialogVisible4 = true;
  6487. },
  6488. isNoFinsh() {
  6489. this.$message.warning("功能正在开发中");
  6490. },
  6491. addAttText(i) {
  6492. this.AttText = {
  6493. title: "",
  6494. text: "",
  6495. };
  6496. this.taskCount = i;
  6497. this.AttTextType = 0;
  6498. this.$forceUpdate();
  6499. this.dialogVisible6 = true;
  6500. setTimeout(() => {
  6501. this.$refs["fuInput"].focus();
  6502. }, 100);
  6503. },
  6504. openLine(i) {
  6505. this.line = "";
  6506. this.lineCount = i;
  6507. this.lineType = 0;
  6508. this.$forceUpdate();
  6509. this.dialogVisible7 = true;
  6510. },
  6511. pasteLine(i) {
  6512. navigator.clipboard
  6513. .readText()
  6514. .then((v) => {
  6515. console.log("获取剪贴板成功:", v);
  6516. const html = v;
  6517. const regex = /src="(.*?)"/g;
  6518. const match = regex.exec(html);
  6519. if (match && match[1]) {
  6520. console.log(match[1]);
  6521. this.$message.success("粘贴成功");
  6522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6523. i
  6524. ].chapterData.push({
  6525. name: "链接",
  6526. title: "嵌入代码",
  6527. url: match[1],
  6528. type: 8,
  6529. });
  6530. } else {
  6531. // console.log("未找到包含 src 属性的 iframe");
  6532. this.$message.error(
  6533. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6534. );
  6535. }
  6536. })
  6537. .catch((v) => {
  6538. console.log("获取剪贴板失败: ", v);
  6539. });
  6540. },
  6541. openSource(i) {
  6542. this.lineCount = i;
  6543. this.sourceData = {};
  6544. this.dialogVisibleSource = true;
  6545. this.updateSourcePan = false;
  6546. },
  6547. addSource() {
  6548. if (!Object.keys(this.sourceData).length) {
  6549. this.$message.error("请选择要上传的资源");
  6550. return;
  6551. }
  6552. let keys = Object.keys(this.sourceData);
  6553. for (var i = 0; i < keys.length; i++) {
  6554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6555. this.lineCount
  6556. ].chapterData.push({
  6557. name: "链接",
  6558. title: this.sourceData[keys[i]].name,
  6559. url: this.sourceData[keys[i]].url,
  6560. type: 14,
  6561. id: keys[i],
  6562. });
  6563. }
  6564. this.$forceUpdate();
  6565. this.dialogVisibleSource = false;
  6566. },
  6567. updateSource() {
  6568. if (!Object.keys(this.sourceData).length) {
  6569. this.$message.error("请选择要上传的资源");
  6570. return;
  6571. }
  6572. let keys = Object.keys(this.sourceData);
  6573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6574. this.taskCount
  6575. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6577. this.taskCount
  6578. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6580. this.taskCount
  6581. ].chapterData[this.lineCount].id = keys[0];
  6582. this.updateSourcePan = false;
  6583. this.$forceUpdate();
  6584. this.dialogVisibleSource = false;
  6585. },
  6586. deleteM(i, j) {
  6587. this.testJson.testJson[i].timuList.splice(j, 1);
  6588. },
  6589. beforeUploadTiMu(event, i) {
  6590. const loading = this.openLoading();
  6591. var file = event.target.files[0];
  6592. var credentials = {
  6593. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6594. secretAccessKey: "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",
  6595. }; //秘钥形式的登录上传
  6596. window.AWS.config.update(credentials);
  6597. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6598. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6599. var _this = this;
  6600. if (file) {
  6601. var params = {
  6602. Key:
  6603. file.name.split(".")[0] +
  6604. new Date().getTime() +
  6605. "." +
  6606. file.name.split(".")[file.name.split(".").length - 1],
  6607. ContentType: file.type,
  6608. Body: file,
  6609. "Access-Control-Allow-Credentials": "*",
  6610. ACL: "public-read",
  6611. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6612. var options = {
  6613. partSize: 2048 * 1024 * 1024,
  6614. queueSize: 2,
  6615. leavePartsOnError: true,
  6616. };
  6617. bucket
  6618. .upload(params, options)
  6619. .on("httpUploadProgress", function (evt) {
  6620. //这里可以写进度条
  6621. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6622. })
  6623. .send(function (err, data) {
  6624. loading.close();
  6625. if (err) {
  6626. _this.$message.error("上传失败");
  6627. } else {
  6628. if (_this.testJson.testJson[i].timuList) {
  6629. _this.testJson.testJson[i].timuList.push({
  6630. src: data.Location,
  6631. });
  6632. } else {
  6633. _this.testJson.testJson[i].timuList = [];
  6634. _this.testJson.testJson[i].timuList.push({
  6635. src: data.Location,
  6636. });
  6637. }
  6638. _this.imgChange3(i);
  6639. _this.$forceUpdate();
  6640. }
  6641. });
  6642. }
  6643. },
  6644. beforeUploadTi(event, i, j) {
  6645. const loading = this.openLoading();
  6646. var file = event.target.files[0];
  6647. var credentials = {
  6648. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6649. secretAccessKey: "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",
  6650. }; //秘钥形式的登录上传
  6651. window.AWS.config.update(credentials);
  6652. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6653. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6654. var _this = this;
  6655. if (file) {
  6656. var params = {
  6657. Key:
  6658. file.name.split(".")[0] +
  6659. new Date().getTime() +
  6660. "." +
  6661. file.name.split(".")[file.name.split(".").length - 1],
  6662. ContentType: file.type,
  6663. Body: file,
  6664. "Access-Control-Allow-Credentials": "*",
  6665. ACL: "public-read",
  6666. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6667. var options = {
  6668. partSize: 2048 * 1024 * 1024,
  6669. queueSize: 2,
  6670. leavePartsOnError: true,
  6671. };
  6672. bucket
  6673. .upload(params, options)
  6674. .on("httpUploadProgress", function (evt) {
  6675. //这里可以写进度条
  6676. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6677. })
  6678. .send(function (err, data) {
  6679. loading.close();
  6680. if (err) {
  6681. _this.$message.error("上传失败");
  6682. } else {
  6683. _this.testJson.testJson[i].checkList[j] = {};
  6684. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6685. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6686. _this.imgChange2(i, j);
  6687. _this.$forceUpdate();
  6688. }
  6689. });
  6690. }
  6691. },
  6692. beforeUpload1(event, type) {
  6693. // const loading = this.openLoading();
  6694. var file = event.target.files[0];
  6695. var credentials = {
  6696. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6697. secretAccessKey: "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",
  6698. }; //秘钥形式的登录上传
  6699. window.AWS.config.update(credentials);
  6700. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6701. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6702. var _this = this;
  6703. if (file) {
  6704. var params = {
  6705. Key:
  6706. file.name.split(".")[0] +
  6707. new Date().getTime() +
  6708. "." +
  6709. file.name.split(".")[file.name.split(".").length - 1],
  6710. ContentType: file.type,
  6711. Body: file,
  6712. "Access-Control-Allow-Credentials": "*",
  6713. ACL: "public-read",
  6714. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6715. var options = {
  6716. partSize: 2048 * 1024 * 1024,
  6717. queueSize: 2,
  6718. leavePartsOnError: true,
  6719. };
  6720. bucket
  6721. .upload(params, options)
  6722. .on("httpUploadProgress", function (evt) {
  6723. //这里可以写进度条
  6724. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6725. })
  6726. .send(function (err, data) {
  6727. // loading.close();
  6728. if (err) {
  6729. // var a = _this.$refs.upload1.uploadFiles;
  6730. // a.splice(a.length - 1, a.length);
  6731. _this.$message.error("上传失败");
  6732. } else {
  6733. // _this.cover.push({
  6734. // name: file.name,
  6735. // url: data.Location,
  6736. // uid: file.uid,
  6737. // });
  6738. _this.cover = [
  6739. {
  6740. name: file.name,
  6741. url: data.Location,
  6742. uid: file.uid,
  6743. },
  6744. ];
  6745. _this.imgChange1(null, null, 1, null);
  6746. _this.choosePicVisible = false;
  6747. console.log(data.Location);
  6748. }
  6749. });
  6750. }
  6751. },
  6752. beforeUploadSelect(event, type) {
  6753. // const loading = this.openLoading();
  6754. var file = event.target.files[0];
  6755. var credentials = {
  6756. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6757. secretAccessKey: "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",
  6758. }; //秘钥形式的登录上传
  6759. window.AWS.config.update(credentials);
  6760. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6761. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6762. var _this = this;
  6763. if (file) {
  6764. var params = {
  6765. Key:
  6766. file.name.split(".")[0] +
  6767. new Date().getTime() +
  6768. "." +
  6769. file.name.split(".")[file.name.split(".").length - 1],
  6770. ContentType: file.type,
  6771. Body: file,
  6772. "Access-Control-Allow-Credentials": "*",
  6773. ACL: "public-read",
  6774. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6775. var options = {
  6776. partSize: 2048 * 1024 * 1024,
  6777. queueSize: 2,
  6778. leavePartsOnError: true,
  6779. };
  6780. bucket
  6781. .upload(params, options)
  6782. .on("httpUploadProgress", function (evt) {
  6783. //这里可以写进度条
  6784. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6785. })
  6786. .send(function (err, data) {
  6787. // loading.close();
  6788. if (err) {
  6789. _this.$message.error("上传失败");
  6790. } else {
  6791. _this.selectJson.url = data.Location;
  6792. console.log(data.Location);
  6793. }
  6794. });
  6795. }
  6796. },
  6797. chooseSysPic(p) {
  6798. this.cover = [];
  6799. setTimeout(() => {
  6800. this.cover[0] = {
  6801. name: "系统图片.png",
  6802. url: p,
  6803. };
  6804. this.imgChange1(null, null, 1, null);
  6805. this.$forceUpdate();
  6806. }, 0);
  6807. this.isSysPic = true;
  6808. this.isSysPic2 = false;
  6809. this.sysPicVisible = false;
  6810. this.$forceUpdate();
  6811. },
  6812. chooseSysPic2(p) {
  6813. this.cover = [];
  6814. setTimeout(() => {
  6815. this.cover[0] = {
  6816. name: "网络图片.png",
  6817. url: p,
  6818. };
  6819. this.imgChange1(null, null, 1, null);
  6820. this.$forceUpdate();
  6821. }, 0);
  6822. this.isSysPic2 = true;
  6823. this.isSysPic = false;
  6824. this.sysPicVisible2 = false;
  6825. this.$forceUpdate();
  6826. },
  6827. beforeUpload(data) {
  6828. this.$refs.upload1.uploadFiles;
  6829. this.uploadLoading1 = true;
  6830. var file = data.file;
  6831. var credentials = {
  6832. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6833. secretAccessKey: "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",
  6834. }; //秘钥形式的登录上传
  6835. window.AWS.config.update(credentials);
  6836. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6837. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6838. var _this = this;
  6839. if (file) {
  6840. var params = {
  6841. Key:
  6842. file.name.split(".")[0] +
  6843. new Date().getTime() +
  6844. "." +
  6845. file.name.split(".")[file.name.split(".").length - 1],
  6846. ContentType: file.type,
  6847. Body: file,
  6848. "Access-Control-Allow-Credentials": "*",
  6849. ACL: "public-read",
  6850. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6851. var options = {
  6852. partSize: 2048 * 1024 * 1024,
  6853. queueSize: 2,
  6854. leavePartsOnError: true,
  6855. };
  6856. bucket
  6857. .upload(params, options)
  6858. .on("httpUploadProgress", function (evt) {
  6859. //这里可以写进度条
  6860. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6861. })
  6862. .send(function (err, data) {
  6863. _this.uploadLoading1 = false;
  6864. if (err) {
  6865. // var a = _this.$refs.upload1.uploadFiles;
  6866. // a.splice(a.length - 1, a.length);
  6867. _this.$message.error("上传失败");
  6868. } else {
  6869. //上传成功处理
  6870. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6871. name: file.name,
  6872. url: data.Location,
  6873. uid: file.uid,
  6874. });
  6875. _this.imgChange();
  6876. console.log(data.Location);
  6877. }
  6878. });
  6879. }
  6880. },
  6881. onExceed() {
  6882. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6883. },
  6884. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6885. // const loading = this.openLoading();
  6886. var file = event.target.files[0];
  6887. var credentials = {
  6888. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6889. secretAccessKey: "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",
  6890. }; //秘钥形式的登录上传
  6891. window.AWS.config.update(credentials);
  6892. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6893. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6894. var _this = this;
  6895. if (type == 3) {
  6896. var b = [
  6897. "DOC",
  6898. "DOCX",
  6899. "DOCM",
  6900. "DOTM",
  6901. "DOTX",
  6902. "PPTX",
  6903. "PPSX",
  6904. "PPT",
  6905. "PPS",
  6906. "PPTM",
  6907. "POTM",
  6908. "PPAM",
  6909. "POTX",
  6910. "PPSM",
  6911. ];
  6912. if (
  6913. b.indexOf(
  6914. file.name
  6915. .split(".")
  6916. [file.name.split(".").length - 1].toLocaleUpperCase()
  6917. ) != -1
  6918. ) {
  6919. if (file.size / 1024 / 1024 > 80) {
  6920. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6921. this.inputShow = true;
  6922. // var a = _this.$refs.upload1.uploadFiles;
  6923. // a.splice(a.length - 1, a.length);
  6924. // loading.close();
  6925. return;
  6926. }
  6927. } else if (
  6928. file.name
  6929. .split(".")
  6930. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6931. ) {
  6932. if (file.size / 1024 / 1024 > 80) {
  6933. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6934. this.inputShow = true;
  6935. // var a = _this.$refs.upload1.uploadFiles;
  6936. // a.splice(a.length - 1, a.length);
  6937. // loading.close();
  6938. return;
  6939. }
  6940. }
  6941. }
  6942. this.inputShow = false;
  6943. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6944. itemTaskIndex
  6945. ].progress = 0;
  6946. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6947. itemTaskIndex
  6948. ].proVisible = true;
  6949. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6950. itemTaskIndex
  6951. ].isFinishSize = 0;
  6952. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6953. itemTaskIndex
  6954. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6955. _this.$forceUpdate();
  6956. if (file) {
  6957. var params = {
  6958. Key:
  6959. file.name.split(".")[0] +
  6960. new Date().getTime() +
  6961. "." +
  6962. file.name.split(".")[file.name.split(".").length - 1],
  6963. ContentType: file.type,
  6964. Body: file,
  6965. "Access-Control-Allow-Credentials": "*",
  6966. ACL: "public-read",
  6967. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6968. var options = {
  6969. partSize: 2048 * 1024 * 1024,
  6970. queueSize: 2,
  6971. leavePartsOnError: true,
  6972. };
  6973. bucket
  6974. .upload(params, options)
  6975. .on("httpUploadProgress", function (evt) {
  6976. //这里可以写进度条
  6977. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6978. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6979. itemTaskIndex
  6980. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6981. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6982. itemTaskIndex
  6983. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6984. _this.$forceUpdate();
  6985. })
  6986. .send(function (err, data) {
  6987. // loading.close();
  6988. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6989. itemTaskIndex
  6990. ].progress = 100;
  6991. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6992. itemTaskIndex
  6993. ].isFinishSize =
  6994. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6995. itemTaskIndex
  6996. ].isAllSize;
  6997. _this.$forceUpdate();
  6998. setTimeout(() => {
  6999. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7000. itemTaskIndex
  7001. ].proVisible = false;
  7002. _this.$forceUpdate();
  7003. }, 1000);
  7004. _this.inputShow = true;
  7005. if (err) {
  7006. // var a = _this.$refs.upload1.uploadFiles;
  7007. // a.splice(a.length - 1, a.length);
  7008. _this.$message.error("上传失败");
  7009. } else {
  7010. if (type == 13) {
  7011. let _type = 2;
  7012. var imgA = [
  7013. "png",
  7014. "jpg",
  7015. "jpeg",
  7016. "bmp",
  7017. "gif",
  7018. "webp",
  7019. "psd",
  7020. "svg",
  7021. "tiff",
  7022. ];
  7023. var fileA = [
  7024. "PDF",
  7025. "DOC",
  7026. "DOCX",
  7027. "DOCM",
  7028. "DOTM",
  7029. "DOTX",
  7030. "PPTX",
  7031. "PPSX",
  7032. "PPT",
  7033. "PPS",
  7034. "PPTM",
  7035. "POTM",
  7036. "PPAM",
  7037. "POTX",
  7038. "PPSM",
  7039. "XLSX",
  7040. "XLS",
  7041. ];
  7042. var videoA = [
  7043. "AVI",
  7044. "NAVI",
  7045. "MPEG",
  7046. "ASF",
  7047. "MOV",
  7048. "WMV",
  7049. "3GP",
  7050. "RM",
  7051. "RMVB",
  7052. "FLV",
  7053. "F4V",
  7054. "H.264",
  7055. "H.265",
  7056. "REAL VIDEO",
  7057. "MKV",
  7058. "WebM",
  7059. "HDDVD",
  7060. "MP4",
  7061. "MPG",
  7062. "M4V",
  7063. "MGV",
  7064. "OGV",
  7065. "QTM",
  7066. "STR",
  7067. "AMC",
  7068. "DVX",
  7069. "EVO",
  7070. "DAT",
  7071. "OGG",
  7072. "OGM",
  7073. ];
  7074. if (
  7075. fileA.indexOf(
  7076. data.Location.split(".")[
  7077. data.Location.split(".").length - 1
  7078. ].toLocaleUpperCase()
  7079. ) != -1
  7080. ) {
  7081. _type = 3;
  7082. } else if (
  7083. videoA.indexOf(
  7084. data.Location.split(".")[
  7085. data.Location.split(".").length - 1
  7086. ].toLocaleUpperCase()
  7087. ) != -1
  7088. ) {
  7089. _type = 2;
  7090. } else if (
  7091. imgA.indexOf(
  7092. data.Location.split(".")[
  7093. data.Location.split(".").length - 1
  7094. ].toLocaleLowerCase()
  7095. ) != -1
  7096. ) {
  7097. _type = 13;
  7098. } else {
  7099. _type = 12;
  7100. }
  7101. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7102. itemTaskIndex
  7103. ].chapterData.push({
  7104. name: file.name,
  7105. url: data.Location,
  7106. uid: file.uid,
  7107. type: _type,
  7108. });
  7109. _this.imgChange1(null, null, _type, itemTaskIndex);
  7110. } else if (type == 2 || type == 3 || type == 12) {
  7111. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7112. itemTaskIndex
  7113. ].chapterData.push({
  7114. name: file.name,
  7115. url: data.Location,
  7116. uid: file.uid,
  7117. type: type,
  7118. });
  7119. _this.imgChange1(null, null, type, itemTaskIndex);
  7120. } else if (type == 4) {
  7121. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7122. itemTaskIndex
  7123. ].fileList1.push({
  7124. name: file.name,
  7125. url: data.Location,
  7126. uid: file.uid,
  7127. });
  7128. _this.imgChange1(null, null, type, itemTaskIndex);
  7129. } else if (type == 5) {
  7130. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7131. itemTaskIndex
  7132. ].homeworkList.push({
  7133. name: file.name,
  7134. url: data.Location,
  7135. uid: file.uid,
  7136. });
  7137. _this.imgChange1(null, null, type, itemTaskIndex);
  7138. }
  7139. console.log(data.Location);
  7140. }
  7141. });
  7142. }
  7143. },
  7144. beforeUploadInfo2(event, type) {
  7145. // const loading = this.openLoading();
  7146. var file = event.target.files[0];
  7147. var credentials = {
  7148. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7149. secretAccessKey: "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",
  7150. }; //秘钥形式的登录上传
  7151. window.AWS.config.update(credentials);
  7152. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7153. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7154. var _this = this;
  7155. if (type == 3) {
  7156. var b = [
  7157. "DOC",
  7158. "DOCX",
  7159. "DOCM",
  7160. "DOTM",
  7161. "DOTX",
  7162. "PPTX",
  7163. "PPSX",
  7164. "PPT",
  7165. "PPS",
  7166. "PPTM",
  7167. "POTM",
  7168. "PPAM",
  7169. "POTX",
  7170. "PPSM",
  7171. ];
  7172. if (
  7173. b.indexOf(
  7174. file.name
  7175. .split(".")
  7176. [file.name.split(".").length - 1].toLocaleUpperCase()
  7177. ) != -1
  7178. ) {
  7179. if (file.size / 1024 / 1024 > 80) {
  7180. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7181. this.inputShow = true;
  7182. // var a = _this.$refs.upload1.uploadFiles;
  7183. // a.splice(a.length - 1, a.length);
  7184. // loading.close();
  7185. return;
  7186. }
  7187. } else if (
  7188. file.name
  7189. .split(".")
  7190. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7191. ) {
  7192. if (file.size / 1024 / 1024 > 80) {
  7193. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7194. this.inputShow = true;
  7195. // var a = _this.$refs.upload1.uploadFiles;
  7196. // a.splice(a.length - 1, a.length);
  7197. // loading.close();
  7198. return;
  7199. }
  7200. }
  7201. }
  7202. this.inputShow = false;
  7203. _this.infoprogress = 0;
  7204. _this.infoproVisible = true;
  7205. _this.infoisFinishSize = 0;
  7206. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7207. _this.$forceUpdate();
  7208. if (file) {
  7209. var params = {
  7210. Key:
  7211. file.name.split(".")[0] +
  7212. new Date().getTime() +
  7213. "." +
  7214. file.name.split(".")[file.name.split(".").length - 1],
  7215. ContentType: file.type,
  7216. Body: file,
  7217. "Access-Control-Allow-Credentials": "*",
  7218. ACL: "public-read",
  7219. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7220. var options = {
  7221. partSize: 2048 * 1024 * 1024,
  7222. queueSize: 2,
  7223. leavePartsOnError: true,
  7224. };
  7225. bucket
  7226. .upload(params, options)
  7227. .on("httpUploadProgress", function (evt) {
  7228. //这里可以写进度条
  7229. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7230. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7231. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7232. _this.$forceUpdate();
  7233. })
  7234. .send(function (err, data) {
  7235. // loading.close();
  7236. _this.infoprogress = 100;
  7237. _this.infoisFinishSize = _this.infoisAllSize;
  7238. _this.$forceUpdate();
  7239. setTimeout(() => {
  7240. _this.infoproVisible = false;
  7241. _this.$forceUpdate();
  7242. }, 1000);
  7243. _this.inputShow = true;
  7244. if (err) {
  7245. // var a = _this.$refs.upload1.uploadFiles;
  7246. // a.splice(a.length - 1, a.length);
  7247. _this.$message.error("上传失败");
  7248. } else {
  7249. if (type == 13) {
  7250. let _type = 2;
  7251. var imgA = [
  7252. "png",
  7253. "jpg",
  7254. "jpeg",
  7255. "bmp",
  7256. "gif",
  7257. "webp",
  7258. "psd",
  7259. "svg",
  7260. "tiff",
  7261. ];
  7262. var fileA = [
  7263. "PDF",
  7264. "DOC",
  7265. "DOCX",
  7266. "DOCM",
  7267. "DOTM",
  7268. "DOTX",
  7269. "PPTX",
  7270. "PPSX",
  7271. "PPT",
  7272. "PPS",
  7273. "PPTM",
  7274. "POTM",
  7275. "PPAM",
  7276. "POTX",
  7277. "PPSM",
  7278. "XLSX",
  7279. "XLS",
  7280. ];
  7281. var videoA = [
  7282. "AVI",
  7283. "NAVI",
  7284. "MPEG",
  7285. "ASF",
  7286. "MOV",
  7287. "WMV",
  7288. "3GP",
  7289. "RM",
  7290. "RMVB",
  7291. "FLV",
  7292. "F4V",
  7293. "H.264",
  7294. "H.265",
  7295. "REAL VIDEO",
  7296. "MKV",
  7297. "WebM",
  7298. "HDDVD",
  7299. "MP4",
  7300. "MPG",
  7301. "M4V",
  7302. "MGV",
  7303. "OGV",
  7304. "QTM",
  7305. "STR",
  7306. "AMC",
  7307. "DVX",
  7308. "EVO",
  7309. "DAT",
  7310. "OGG",
  7311. "OGM",
  7312. ];
  7313. if (
  7314. fileA.indexOf(
  7315. data.Location.split(".")[
  7316. data.Location.split(".").length - 1
  7317. ].toLocaleUpperCase()
  7318. ) != -1
  7319. ) {
  7320. _type = 3;
  7321. } else if (
  7322. videoA.indexOf(
  7323. data.Location.split(".")[
  7324. data.Location.split(".").length - 1
  7325. ].toLocaleUpperCase()
  7326. ) != -1
  7327. ) {
  7328. _type = 2;
  7329. } else if (
  7330. imgA.indexOf(
  7331. data.Location.split(".")[
  7332. data.Location.split(".").length - 1
  7333. ].toLocaleLowerCase()
  7334. ) != -1
  7335. ) {
  7336. _type = 13;
  7337. } else {
  7338. _type = 12;
  7339. }
  7340. _this.infoData.push({
  7341. name: file.name,
  7342. url: data.Location,
  7343. uid: file.uid,
  7344. type: _type,
  7345. });
  7346. } else if (type == 2 || type == 3 || type == 12) {
  7347. _this.infoData.push({
  7348. name: file.name,
  7349. url: data.Location,
  7350. uid: file.uid,
  7351. type: type,
  7352. });
  7353. }
  7354. console.log(data.Location);
  7355. }
  7356. });
  7357. }
  7358. },
  7359. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7360. // const loading = this.openLoading();
  7361. var file = event.target.files[0];
  7362. var credentials = {
  7363. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7364. secretAccessKey: "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",
  7365. }; //秘钥形式的登录上传
  7366. window.AWS.config.update(credentials);
  7367. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7368. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7369. var _this = this;
  7370. if (type == 3) {
  7371. var b = [
  7372. "DOC",
  7373. "DOCX",
  7374. "DOCM",
  7375. "DOTM",
  7376. "DOTX",
  7377. "PPTX",
  7378. "PPSX",
  7379. "PPT",
  7380. "PPS",
  7381. "PPTM",
  7382. "POTM",
  7383. "PPAM",
  7384. "POTX",
  7385. "PPSM",
  7386. ];
  7387. if (
  7388. b.indexOf(
  7389. file.name
  7390. .split(".")
  7391. [file.name.split(".").length - 1].toLocaleUpperCase()
  7392. ) != -1
  7393. ) {
  7394. if (file.size / 1024 / 1024 > 80) {
  7395. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7396. this.inputShow = true;
  7397. // var a = _this.$refs.upload1.uploadFiles;
  7398. // a.splice(a.length - 1, a.length);
  7399. // loading.close();
  7400. return;
  7401. }
  7402. } else if (
  7403. file.name
  7404. .split(".")
  7405. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7406. ) {
  7407. if (file.size / 1024 / 1024 > 80) {
  7408. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7409. this.inputShow = true;
  7410. // var a = _this.$refs.upload1.uploadFiles;
  7411. // a.splice(a.length - 1, a.length);
  7412. // loading.close();
  7413. return;
  7414. }
  7415. }
  7416. }
  7417. this.inputShow = false;
  7418. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7419. itemTaskIndex
  7420. ].progress = 0;
  7421. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7422. itemTaskIndex
  7423. ].proVisible = true;
  7424. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7425. itemTaskIndex
  7426. ].isFinishSize = 0;
  7427. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7428. itemTaskIndex
  7429. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7430. _this.$forceUpdate();
  7431. if (file) {
  7432. var params = {
  7433. Key:
  7434. file.name.split(".")[0] +
  7435. new Date().getTime() +
  7436. "." +
  7437. file.name.split(".")[file.name.split(".").length - 1],
  7438. ContentType: file.type,
  7439. Body: file,
  7440. "Access-Control-Allow-Credentials": "*",
  7441. ACL: "public-read",
  7442. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7443. var options = {
  7444. partSize: 2048 * 1024 * 1024,
  7445. queueSize: 2,
  7446. leavePartsOnError: true,
  7447. };
  7448. bucket
  7449. .upload(params, options)
  7450. .on("httpUploadProgress", function (evt) {
  7451. //这里可以写进度条
  7452. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7453. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7454. itemTaskIndex
  7455. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7456. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7457. itemTaskIndex
  7458. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7459. _this.$forceUpdate();
  7460. })
  7461. .send(function (err, data) {
  7462. // loading.close();
  7463. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7464. itemTaskIndex
  7465. ].progress = 100;
  7466. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7467. itemTaskIndex
  7468. ].isFinishSize =
  7469. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7470. itemTaskIndex
  7471. ].isAllSize;
  7472. _this.$forceUpdate();
  7473. setTimeout(() => {
  7474. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7475. itemTaskIndex
  7476. ].proVisible = false;
  7477. _this.$forceUpdate();
  7478. }, 1000);
  7479. _this.inputShow = true;
  7480. if (err) {
  7481. // var a = _this.$refs.upload1.uploadFiles;
  7482. // a.splice(a.length - 1, a.length);
  7483. _this.$message.error("上传失败");
  7484. } else {
  7485. if (type == 2 || type == 3) {
  7486. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7487. itemTaskIndex
  7488. ].chapterData.push({
  7489. name: file.name,
  7490. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7491. // itemTaskIndex
  7492. // ].chapterData.length+1),
  7493. url: data.Location,
  7494. uid: file.uid,
  7495. type: type,
  7496. text: string,
  7497. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7498. // itemTaskIndex
  7499. // ].chapterData.length + 1),
  7500. });
  7501. _this.imgChange1(null, null, type, itemTaskIndex);
  7502. } else if (type == 4) {
  7503. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7504. itemTaskIndex
  7505. ].fileList1.push({
  7506. name: file.name,
  7507. url: data.Location,
  7508. uid: file.uid,
  7509. });
  7510. _this.imgChange1(null, null, type, itemTaskIndex);
  7511. } else if (type == 5) {
  7512. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7513. itemTaskIndex
  7514. ].homeworkList.push({
  7515. name: file.name,
  7516. url: data.Location,
  7517. uid: file.uid,
  7518. });
  7519. _this.imgChange1(null, null, type, itemTaskIndex);
  7520. }
  7521. console.log(data.Location);
  7522. }
  7523. });
  7524. }
  7525. },
  7526. addunit() {
  7527. this.unitJson.push({
  7528. dyName: "", //单元标题
  7529. isUpdate: 1,
  7530. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7531. chapterInfo: [
  7532. {
  7533. isread: false,
  7534. chapterid: this.guid(),
  7535. title: "",
  7536. courseName: "",
  7537. taskJson: [
  7538. {
  7539. task: "",
  7540. taskDetail: "",
  7541. chapterData: [],
  7542. toolText: "",
  7543. toolChoose: [
  7544. {
  7545. tool: [],
  7546. toolDetail: "",
  7547. toolType: 0,
  7548. askCount: 1,
  7549. askTitle: "",
  7550. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7551. },
  7552. ],
  7553. isShowTools: false,
  7554. askCount: 1,
  7555. isFold: 1,
  7556. askTitle: "",
  7557. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7558. checkJson: [{ checkCount: [], checkPerent: [] }],
  7559. homeworkList: [],
  7560. },
  7561. ],
  7562. itemCount: 1,
  7563. fileList1: [],
  7564. video: [],
  7565. testData: [],
  7566. pData: [],
  7567. templateArray: [],
  7568. },
  7569. ],
  7570. });
  7571. this.addindex = this.unitJson.length - 1;
  7572. setTimeout(() => {
  7573. this.unitIndex = this.unitJson.length - 1;
  7574. setTimeout(() => {
  7575. console.log(this.$refs.dyInput);
  7576. this.$refs.dyInput[0].focus();
  7577. }, 100);
  7578. this.unitSet(this.unitIndex);
  7579. }, 0);
  7580. },
  7581. addToolFun(itemTaskIndex) {
  7582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7583. itemTaskIndex
  7584. ].toolChoose.push({
  7585. tool: [],
  7586. toolDetail: "",
  7587. toolType: 0,
  7588. askCount: 1,
  7589. askTitle: "",
  7590. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7591. });
  7592. },
  7593. addTaskBorder() {
  7594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7595. task: "",
  7596. taskDetail: "",
  7597. chapterData: [],
  7598. toolText: "",
  7599. toolChoose: [
  7600. {
  7601. tool: [],
  7602. toolDetail: "",
  7603. toolType: 0,
  7604. askCount: 1,
  7605. askTitle: "",
  7606. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7607. },
  7608. ],
  7609. isShowTools: false,
  7610. askCount: 1,
  7611. isFold: 1, //任务收起状态
  7612. askTitle: "",
  7613. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7614. checkJson: [{ checkCount: [], checkPerent: [] }],
  7615. homeworkList: [],
  7616. });
  7617. setTimeout(() => {
  7618. this.checkEva(this.checkId);
  7619. setTimeout(() => {
  7620. this.checkEva(this.checkId);
  7621. }, 100);
  7622. }, 100);
  7623. },
  7624. add(e, i) {
  7625. var el = e.currentTarget;
  7626. el.getElementsByTagName("input")[0].click();
  7627. },
  7628. fold(i, e) {
  7629. if (
  7630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7631. ) {
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7633. } else {
  7634. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7635. }
  7636. },
  7637. fold2(i) {
  7638. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7639. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7640. i
  7641. ].isFold2 = false;
  7642. } else {
  7643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7644. }
  7645. this.$forceUpdate();
  7646. },
  7647. foldEva(i) {
  7648. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7650. i
  7651. ].isEvaFold = false;
  7652. } else {
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. i
  7655. ].isEvaFold = true;
  7656. setTimeout(() => {
  7657. this.checkEva(this.checkId);
  7658. setTimeout(() => {
  7659. this.checkEva(this.checkId);
  7660. }, 500);
  7661. }, 0);
  7662. }
  7663. this.$forceUpdate();
  7664. },
  7665. foldC(i) {
  7666. if (
  7667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7668. ) {
  7669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7670. i
  7671. ].isFoldchapter = false;
  7672. } else {
  7673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7674. i
  7675. ].isFoldchapter = true;
  7676. }
  7677. this.$forceUpdate();
  7678. },
  7679. fold3(i, ti) {
  7680. if (
  7681. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7682. .isFold3
  7683. ) {
  7684. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7685. ti
  7686. ].isFold3 = false;
  7687. } else {
  7688. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7689. ti
  7690. ].isFold3 = true;
  7691. }
  7692. this.$forceUpdate();
  7693. },
  7694. deleteHomeworkBox(unitIndex, index, i) {
  7695. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7696. this.taskCount
  7697. ].homeworkList.splice(i, 1);
  7698. },
  7699. getStudent() {
  7700. let params = {
  7701. oid: this.oid,
  7702. cu: "",
  7703. cn: this.searchPeople,
  7704. };
  7705. this.ajax
  7706. .get(this.$store.state.api + "selectStudentAdd", params)
  7707. .then((res) => {
  7708. this.studentJuri = res.data[0];
  7709. })
  7710. .catch((err) => {
  7711. this.isLoading = false;
  7712. console.error(err);
  7713. });
  7714. },
  7715. getTeacher() {
  7716. let params = {
  7717. oid:
  7718. this.org && this.org != "undefined" && this.org != "null"
  7719. ? this.org
  7720. : this.oid,
  7721. cu: "",
  7722. cn: this.searchTN,
  7723. };
  7724. this.ajax
  7725. .get(
  7726. this.$store.state.api +
  7727. (this.org && this.org != "undefined" && this.org != "null"
  7728. ? "selectTeacherAddOrg"
  7729. : "selectTeacherAdd"),
  7730. params
  7731. )
  7732. .then((res) => {
  7733. let teacherJuri = res.data[0];
  7734. for (var i = 0; i < teacherJuri.length; i++) {
  7735. if (teacherJuri[i].userid == this.userid) {
  7736. teacherJuri.splice(i, 1);
  7737. break;
  7738. }
  7739. }
  7740. this.teacherJuri = teacherJuri;
  7741. let _check = [];
  7742. let _check2 = [];
  7743. for (var i = 0; i < this.teacherJuri.length; i++) {
  7744. var gid = this.teacherJuri[i].userid;
  7745. _check.push(gid);
  7746. }
  7747. for (var i = 0; i < this.checkboxList3.length; i++) {
  7748. var _id = this.checkboxList3[i];
  7749. if (_check.indexOf(_id) !== -1) {
  7750. _check2.push(_id);
  7751. }
  7752. }
  7753. this.checkAll2 = _check2.length === _check.length;
  7754. })
  7755. .catch((err) => {
  7756. console.error(err);
  7757. });
  7758. },
  7759. searchStudent() {
  7760. this.getStudent();
  7761. },
  7762. selectGrage() {
  7763. let params = {
  7764. oid: this.oid,
  7765. };
  7766. this.ajax
  7767. .get(this.$store.state.api + "selectGrageBySchool", params)
  7768. .then((res) => {
  7769. this.gradeList = res.data[0];
  7770. })
  7771. .catch((err) => {
  7772. this.isLoading = false;
  7773. console.error(err);
  7774. });
  7775. },
  7776. //获取班级列表
  7777. getClass() {
  7778. let params = {
  7779. oid: this.oid,
  7780. gid: this.gradeId,
  7781. cn: this.classSearch,
  7782. };
  7783. this.ajax
  7784. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7785. .then((res) => {
  7786. if (!this.grade.length) {
  7787. this.grade = res.data[0];
  7788. }
  7789. this.grade2 = res.data[0];
  7790. this.classJuri = res.data[0];
  7791. let _check = [];
  7792. let _check2 = [];
  7793. for (var i = 0; i < this.grade2.length; i++) {
  7794. var gid = this.grade2[i].id;
  7795. _check.push(gid);
  7796. }
  7797. for (var i = 0; i < this.checkboxList2.length; i++) {
  7798. var _id = this.checkboxList2[i];
  7799. if (_check.indexOf(_id) !== -1) {
  7800. _check2.push(_id);
  7801. }
  7802. }
  7803. this.checkAll = _check2.length === _check.length;
  7804. })
  7805. .catch((err) => {
  7806. this.isLoading = false;
  7807. console.error(err);
  7808. });
  7809. },
  7810. CourseType2Change(val) {
  7811. this.pTypeCheck = [];
  7812. for (var i = 0; i < this.CourseType2.length; i++) {
  7813. let typeA = this.CourseType2[i];
  7814. if (val.indexOf(typeA.name) != -1) {
  7815. this.pTypeCheck.push(...typeA.id);
  7816. }
  7817. }
  7818. },
  7819. getChapterData(e, i, j, ic, type) {
  7820. e.stopPropagation();
  7821. this.updataC = true;
  7822. this.icc = ic;
  7823. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7824. console.log("还不能下载图片喔");
  7825. }
  7826. },
  7827. deleteChapterData(e, i, j, ic, taskI) {
  7828. e.stopPropagation();
  7829. let _this = this;
  7830. _this
  7831. .$confirm("确定删除此项?", "提示", {
  7832. confirmButtonText: "确定",
  7833. cancelButtonText: "取消",
  7834. type: "warning",
  7835. })
  7836. .then(() => {
  7837. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7838. ic,
  7839. 1
  7840. );
  7841. })
  7842. .catch(() => {
  7843. return;
  7844. });
  7845. },
  7846. deleteInfoData(e, ic) {
  7847. e.stopPropagation();
  7848. let _this = this;
  7849. _this
  7850. .$confirm("确定删除此项?", "提示", {
  7851. confirmButtonText: "确定",
  7852. cancelButtonText: "取消",
  7853. type: "warning",
  7854. })
  7855. .then(() => {
  7856. _this.infoData.splice(
  7857. ic,
  7858. 1
  7859. );
  7860. })
  7861. .catch(() => {
  7862. return;
  7863. });
  7864. },
  7865. updataVideoT(e, i, j, ic) {
  7866. // e.stopPropagation();
  7867. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  7868. // ic
  7869. // ].name = JSON.parse(JSON.stringify(e.target.value));
  7870. this.line =
  7871. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  7872. this.taskCount = j;
  7873. this.lineCount = ic;
  7874. this.dialogVisibleupdataVideoT = true;
  7875. this.$forceUpdate();
  7876. },
  7877. updataVideoC() {
  7878. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7879. this.taskCount
  7880. ].chapterData[this.lineCount].name = JSON.parse(
  7881. JSON.stringify(this.line)
  7882. );
  7883. this.dialogVisibleupdataVideoT = false;
  7884. this.$forceUpdate();
  7885. },
  7886. upCd(e, i, j, taskCount, ic) {
  7887. e.stopPropagation();
  7888. if (ic == 0) {
  7889. return;
  7890. }
  7891. var a = JSON.parse(
  7892. JSON.stringify(
  7893. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7894. ic - 1
  7895. ]
  7896. )
  7897. );
  7898. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  7899. JSON.parse(
  7900. JSON.stringify(
  7901. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7902. )
  7903. );
  7904. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7905. this.$forceUpdate();
  7906. },
  7907. downCd(e, i, j, taskCount, ic) {
  7908. e.stopPropagation();
  7909. if (
  7910. ic ==
  7911. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  7912. 1
  7913. ) {
  7914. return;
  7915. }
  7916. var a = JSON.parse(
  7917. JSON.stringify(
  7918. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7919. ic + 1
  7920. ]
  7921. )
  7922. );
  7923. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  7924. JSON.parse(
  7925. JSON.stringify(
  7926. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7927. )
  7928. );
  7929. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7930. this.$forceUpdate();
  7931. },
  7932. async upTool(e, i, j, tooli) {
  7933. e.stopPropagation();
  7934. if (tooli == 0) {
  7935. return;
  7936. }
  7937. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  7938. let count2 = await this.getWorksCount(3, i, j, tooli);
  7939. if (count1 > 0 || count2 > 0) {
  7940. this.$confirm(
  7941. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7942. "提示",
  7943. {
  7944. confirmButtonText: "确定",
  7945. cancelButtonText: "取消",
  7946. type: "warning",
  7947. }
  7948. )
  7949. .then(() => {
  7950. var a = JSON.parse(
  7951. JSON.stringify(
  7952. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  7953. tooli - 1
  7954. ]
  7955. )
  7956. );
  7957. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7958. JSON.parse(
  7959. JSON.stringify(
  7960. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7961. )
  7962. );
  7963. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7964. this.$forceUpdate();
  7965. })
  7966. .catch(() => {
  7967. return;
  7968. });
  7969. } else {
  7970. var a = JSON.parse(
  7971. JSON.stringify(
  7972. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  7973. )
  7974. );
  7975. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7976. JSON.parse(
  7977. JSON.stringify(
  7978. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7979. )
  7980. );
  7981. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7982. this.$forceUpdate();
  7983. }
  7984. },
  7985. async downTool(e, i, j, tooli) {
  7986. e.stopPropagation();
  7987. if (
  7988. tooli ==
  7989. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  7990. ) {
  7991. return;
  7992. }
  7993. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  7994. let count2 = await this.getWorksCount(3, i, j, tooli);
  7995. if (count1 > 0 || count2 > 0) {
  7996. this.$confirm(
  7997. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7998. "提示",
  7999. {
  8000. confirmButtonText: "确定",
  8001. cancelButtonText: "取消",
  8002. type: "warning",
  8003. }
  8004. )
  8005. .then(() => {
  8006. var a = JSON.parse(
  8007. JSON.stringify(
  8008. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8009. tooli + 1
  8010. ]
  8011. )
  8012. );
  8013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8014. JSON.parse(
  8015. JSON.stringify(
  8016. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8017. )
  8018. );
  8019. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8020. this.$forceUpdate();
  8021. })
  8022. .catch(() => {
  8023. return;
  8024. });
  8025. } else {
  8026. var a = JSON.parse(
  8027. JSON.stringify(
  8028. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8029. )
  8030. );
  8031. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8032. JSON.parse(
  8033. JSON.stringify(
  8034. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8035. )
  8036. );
  8037. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8038. this.$forceUpdate();
  8039. }
  8040. },
  8041. addWork() {
  8042. let cPan = 1;
  8043. for (var i = 0; i < this.unitJson.length; i++) {
  8044. for (
  8045. var j = 0;
  8046. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8047. j++
  8048. ) {
  8049. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8050. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8051. if (
  8052. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8053. ) {
  8054. for (
  8055. var z = 0;
  8056. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8057. z++
  8058. ) {
  8059. if (
  8060. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8061. .length
  8062. ) {
  8063. this.$message.error("请把工具添加完整");
  8064. cPan = 2;
  8065. break;
  8066. }
  8067. }
  8068. }
  8069. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8070. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8071. i
  8072. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8073. return ele.value != "";
  8074. });
  8075. }
  8076. }
  8077. }
  8078. this.inputShow = true;
  8079. if (cPan == 2) {
  8080. this.steps--;
  8081. return;
  8082. }
  8083. for (var i = 0; i < this.unitJson.length; i++) {
  8084. delete this.unitJson[i].isUpdate;
  8085. }
  8086. let params = [
  8087. {
  8088. uid: this.userid,
  8089. title: this.courseName,
  8090. brief: this.courseText,
  8091. cover:
  8092. this.cover.length > 0
  8093. ? JSON.stringify(this.cover)
  8094. : JSON.stringify([
  8095. {
  8096. name: "noBanner.jpg",
  8097. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8098. uid: 1656409780264,
  8099. status: "success",
  8100. },
  8101. ]),
  8102. evaId: this.evalua,
  8103. astudent:
  8104. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8105. see: this.isTeacherSee == true ? 1 : 0,
  8106. chapters: JSON.stringify(this.unitJson),
  8107. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8108. courseType: JSON.stringify(this.courseTypeId),
  8109. ateacher:
  8110. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8111. inviteCode: JSON.stringify(this.inviteCode),
  8112. refile: JSON.stringify(this.infoData),
  8113. reBrief: this.courseText2
  8114. },
  8115. ];
  8116. this.ajax
  8117. .post(this.$store.state.api + "addWorkNew2AI", params)
  8118. .then((res) => {
  8119. console.log(this.steps);
  8120. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8121. this.$message({
  8122. message: "新增成功",
  8123. type: "success",
  8124. });
  8125. }
  8126. this.number = res.data.ordernumber;
  8127. this.courseId = res.data.courseId;
  8128. this.cid = res.data.courseId;
  8129. this.courseUserid = this.userid;
  8130. this.islogin = true;
  8131. this.updateCourseState(4);
  8132. })
  8133. .catch((err) => {
  8134. this.$message.error("网络不佳");
  8135. console.error(err);
  8136. });
  8137. },
  8138. goCourse() {
  8139. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8140. },
  8141. updateWork2() {
  8142. let _unitIndex = this.unitIndex;
  8143. let cPan = 1;
  8144. for (
  8145. var j = 0;
  8146. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8147. j++
  8148. ) {
  8149. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8150. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8151. j
  8152. ].proVisible2 = false;
  8153. if (
  8154. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8155. .length > 1
  8156. ) {
  8157. for (
  8158. var z = 0;
  8159. z <
  8160. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8161. .length;
  8162. z++
  8163. ) {
  8164. if (
  8165. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8166. z
  8167. ].tool.length
  8168. ) {
  8169. this.$message.error("请把工具添加完整");
  8170. cPan = 2;
  8171. break;
  8172. }
  8173. }
  8174. }
  8175. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8176. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8177. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8178. (ele) => {
  8179. return ele.value != "";
  8180. }
  8181. );
  8182. }
  8183. }
  8184. this.inputShow = true;
  8185. if (cPan == 2) {
  8186. this.steps--;
  8187. return;
  8188. }
  8189. let params = [
  8190. {
  8191. cid: this.cid,
  8192. chapters: JSON.stringify(this.unitJson),
  8193. uid: this.userid,
  8194. unitIndex: _unitIndex,
  8195. },
  8196. ];
  8197. this.ajax
  8198. .post(this.$store.state.api + "updateWorkNew4", params)
  8199. .then((res) => {
  8200. this.$message({
  8201. message: "修改成功",
  8202. type: "success",
  8203. });
  8204. this.courseId = this.cid;
  8205. })
  8206. .catch((err) => {
  8207. this.$message.error("网络不佳");
  8208. console.error(err);
  8209. });
  8210. },
  8211. updateWork3(unitIndex) {
  8212. let _unitIndex = unitIndex;
  8213. let cPan = 1;
  8214. for (
  8215. var j = 0;
  8216. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8217. j++
  8218. ) {
  8219. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8220. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8221. j
  8222. ].proVisible2 = false;
  8223. if (
  8224. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8225. .length > 1
  8226. ) {
  8227. for (
  8228. var z = 0;
  8229. z <
  8230. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8231. .length;
  8232. z++
  8233. ) {
  8234. if (
  8235. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8236. z
  8237. ].tool.length
  8238. ) {
  8239. this.$message.error("请把工具添加完整");
  8240. cPan = 2;
  8241. break;
  8242. }
  8243. }
  8244. }
  8245. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8246. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8247. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8248. (ele) => {
  8249. return ele.value != "";
  8250. }
  8251. );
  8252. }
  8253. }
  8254. this.inputShow = true;
  8255. if (cPan == 2) {
  8256. this.steps--;
  8257. return;
  8258. }
  8259. let params = [
  8260. {
  8261. cid: this.cid,
  8262. chapters: JSON.stringify(this.unitJson),
  8263. uid: this.userid,
  8264. unitIndex: _unitIndex,
  8265. },
  8266. ];
  8267. this.ajax
  8268. .post(this.$store.state.api + "updateWorkNew4", params)
  8269. .then((res) => {
  8270. // this.$message({
  8271. // message: "修改成功",
  8272. // type: "success",
  8273. // });
  8274. this.courseId = this.cid;
  8275. })
  8276. .catch((err) => {
  8277. this.$message.error("网络不佳");
  8278. console.error(err);
  8279. });
  8280. },
  8281. updateWork() {
  8282. let cPan = 1;
  8283. for (var i = 0; i < this.unitJson.length; i++) {
  8284. for (
  8285. var j = 0;
  8286. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8287. j++
  8288. ) {
  8289. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8290. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8291. if (
  8292. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8293. ) {
  8294. for (
  8295. var z = 0;
  8296. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8297. z++
  8298. ) {
  8299. if (
  8300. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8301. .length
  8302. ) {
  8303. this.$message.error("请把工具添加完整");
  8304. cPan = 2;
  8305. break;
  8306. }
  8307. }
  8308. }
  8309. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8310. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8311. i
  8312. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8313. return ele.value != "";
  8314. });
  8315. }
  8316. }
  8317. }
  8318. this.inputShow = true;
  8319. if (cPan == 2) {
  8320. this.steps--;
  8321. return;
  8322. }
  8323. for (var i = 0; i < this.unitJson.length; i++) {
  8324. delete this.unitJson[i].isUpdate;
  8325. }
  8326. let params = [
  8327. {
  8328. cid: this.cid,
  8329. title: this.courseName,
  8330. brief: this.courseText,
  8331. cover:
  8332. this.cover.length > 0
  8333. ? JSON.stringify(this.cover)
  8334. : JSON.stringify([
  8335. {
  8336. name: "noBanner.jpg",
  8337. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8338. uid: 1656409780264,
  8339. status: "success",
  8340. },
  8341. ]),
  8342. evaId: this.evalua,
  8343. astudent:
  8344. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8345. see: this.isTeacherSee == true ? 1 : 0,
  8346. chapters: JSON.stringify(this.unitJson),
  8347. template: this.myWord != "undefined" ? this.myWord : [],
  8348. uid: this.userid,
  8349. courseType: JSON.stringify(this.courseTypeId),
  8350. ateacher:
  8351. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8352. inviteCode: JSON.stringify(this.inviteCode),
  8353. refile: JSON.stringify(this.infoData),
  8354. reBrief: this.courseText2
  8355. },
  8356. ];
  8357. this.ajax
  8358. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8359. .then((res) => {
  8360. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8361. if (this.cidType == 1) {
  8362. this.$message({
  8363. message: "修改成功",
  8364. type: "success",
  8365. });
  8366. } else {
  8367. this.$message({
  8368. message: "新增成功",
  8369. type: "success",
  8370. });
  8371. }
  8372. }
  8373. this.number = this.nbOrder;
  8374. this.courseId = this.cid;
  8375. })
  8376. .catch((err) => {
  8377. this.$message.error("网络不佳");
  8378. console.error(err);
  8379. });
  8380. },
  8381. insertWord() {
  8382. this.dialogVisible1 = true;
  8383. this.updateBoolean2 = false;
  8384. this.tTitle = "";
  8385. this.tdetail = "";
  8386. },
  8387. addWord() {
  8388. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8389. name: this.tTitle,
  8390. content: this.tdetail,
  8391. uid: this.guid(),
  8392. });
  8393. this.dialogVisible1 = false;
  8394. },
  8395. upWord() { },
  8396. selectWord(uid, i, c) {
  8397. this.dialogVisible1 = true;
  8398. this.updateBoolean2 = true;
  8399. if (
  8400. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8401. ) {
  8402. this.tTitle =
  8403. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8404. this.tdetail =
  8405. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8406. }
  8407. },
  8408. isAddPP() {
  8409. if (this.checkboxList.length > 0) {
  8410. this.$message({
  8411. message: "添加成功",
  8412. type: "success",
  8413. });
  8414. this.dialogVisible3 = false;
  8415. } else {
  8416. this.$message({
  8417. message: "请添加课程成员",
  8418. type: "error",
  8419. });
  8420. }
  8421. },
  8422. isAddClass() {
  8423. this.dialogVisibleClass = false;
  8424. },
  8425. isAddPPTeacher() {
  8426. this.dialogVisibleMember = false;
  8427. this.setMan();
  8428. },
  8429. getTemplate() {
  8430. this.ajax
  8431. .get(this.$store.state.api + "getCourseTemplateT", "")
  8432. .then((res) => {
  8433. this.templateArray = res.data[0];
  8434. this.getTemplateOid();
  8435. this.$forceUpdate();
  8436. })
  8437. .catch((err) => { });
  8438. },
  8439. getTemplateOid() {
  8440. let params = {
  8441. oid: this.oid,
  8442. };
  8443. this.ajax
  8444. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8445. .then((res) => {
  8446. if (res.data[0].length) {
  8447. this.templateArray = [...res.data[0], ...this.templateArray];
  8448. }
  8449. this.getTemplateOrg();
  8450. this.$forceUpdate();
  8451. })
  8452. .catch((err) => { });
  8453. },
  8454. getTemplateOrg() {
  8455. let params = {
  8456. oid: this.org,
  8457. };
  8458. this.ajax
  8459. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8460. .then((res) => {
  8461. if (res.data[0].length) {
  8462. this.templateArray = [...res.data[0], ...this.templateArray];
  8463. }
  8464. this.$forceUpdate();
  8465. })
  8466. .catch((err) => { });
  8467. },
  8468. clearChoose() {
  8469. this.clearArray.splice(this.templateC.id, 1);
  8470. this.dialogVisible2 = false;
  8471. },
  8472. clearAttText() {
  8473. this.AttText = {
  8474. title: "",
  8475. text: "",
  8476. };
  8477. this.dialogVisible6 = false;
  8478. },
  8479. clearLine() {
  8480. this.line = "";
  8481. this.dialogVisible7 = false;
  8482. },
  8483. openTemplate() {
  8484. this.ctJson = {};
  8485. this.templateDialog = true;
  8486. },
  8487. checkctJson(json) {
  8488. if (this.ctJson.id == json.id) {
  8489. this.ctJson = {};
  8490. } else {
  8491. this.ctJson = json;
  8492. }
  8493. },
  8494. addTemplate(res) {
  8495. let _this = this;
  8496. let _res = [];
  8497. if (res.id == 1) {
  8498. _res = [
  8499. {
  8500. dyName: "", //单元标题
  8501. easy: 1,
  8502. chapterInfo: [
  8503. {
  8504. isread: false,
  8505. chapterid: this.guid(),
  8506. title: "",
  8507. courseName: "",
  8508. taskJson: [
  8509. {
  8510. task: "",
  8511. taskDetail: "",
  8512. chapterData: [],
  8513. toolText: "",
  8514. toolChoose: [
  8515. {
  8516. tool: [],
  8517. toolDetail: "",
  8518. toolType: 0,
  8519. askCount: 1,
  8520. askTitle: "",
  8521. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8522. },
  8523. ],
  8524. isShowTools: false,
  8525. askCount: 1,
  8526. isFold: 1,
  8527. askTitle: "",
  8528. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8529. checkJson: [{ checkCount: [], checkPerent: [] }],
  8530. homeworkList: [],
  8531. },
  8532. ],
  8533. itemCount: 1,
  8534. fileList1: [],
  8535. video: [],
  8536. testData: [],
  8537. pData: [],
  8538. templateArray: [],
  8539. },
  8540. ],
  8541. },
  8542. ];
  8543. this.updateCourseState(1);
  8544. } else if (res.id == 2) {
  8545. let stageData = [];
  8546. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8547. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8548. if (!iframe && !iframe2) {
  8549. this.$message.error("请使用AI共创生成");
  8550. return;
  8551. }
  8552. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8553. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8554. if (
  8555. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8556. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8557. ) {
  8558. this.$message.error("请使用AI共创生成");
  8559. return;
  8560. }
  8561. stageData = copyData
  8562. ? copyData.stageData
  8563. : copyData2
  8564. ? copyData2.stageData
  8565. : [""];
  8566. for (var i = 0; i < stageData.length; i++) {
  8567. _res.push({
  8568. dyName: stageData[i], //单元标题
  8569. chapterInfo: [
  8570. {
  8571. isread: false,
  8572. chapterid: this.guid(),
  8573. title: "",
  8574. courseName: "",
  8575. taskJson: [
  8576. {
  8577. task: "",
  8578. taskDetail: "",
  8579. chapterData: [],
  8580. toolText: "",
  8581. toolChoose: [
  8582. {
  8583. tool: [],
  8584. toolDetail: "",
  8585. toolType: 0,
  8586. askCount: 1,
  8587. askTitle: "",
  8588. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8589. },
  8590. ],
  8591. isShowTools: false,
  8592. askCount: 1,
  8593. isFold: 1,
  8594. askTitle: "",
  8595. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8596. checkJson: [{ checkCount: [], checkPerent: [] }],
  8597. homeworkList: [],
  8598. },
  8599. ],
  8600. itemCount: 1,
  8601. fileList1: [],
  8602. video: [],
  8603. testData: [],
  8604. pData: [],
  8605. templateArray: [],
  8606. },
  8607. ],
  8608. });
  8609. }
  8610. this.updateCourseState(1);
  8611. } else if (!Object.keys(res).length) {
  8612. this.$message.error("请选择模板");
  8613. retrun;
  8614. } else {
  8615. _res = JSON.parse(res.chapters);
  8616. this.updateCourseState(parseInt(res.state));
  8617. }
  8618. _this
  8619. .$confirm(
  8620. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8621. "提示",
  8622. {
  8623. confirmButtonText: "确定",
  8624. cancelButtonText: "取消",
  8625. type: "warning",
  8626. }
  8627. )
  8628. .then(() => {
  8629. _this.unitJson = _res;
  8630. _this.updateWork();
  8631. // _this.steps++;
  8632. _this.templateDialog = false;
  8633. setTimeout(() => {
  8634. this.checkEva(this.checkId);
  8635. setTimeout(() => {
  8636. this.checkEva(this.checkId);
  8637. }, 100);
  8638. }, 1000);
  8639. })
  8640. .catch(() => {
  8641. return;
  8642. });
  8643. },
  8644. checkTemplate(res) {
  8645. let _this = this;
  8646. _this
  8647. .$confirm(
  8648. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8649. "提示",
  8650. {
  8651. confirmButtonText: "确定",
  8652. cancelButtonText: "取消",
  8653. type: "warning",
  8654. }
  8655. )
  8656. .then(() => {
  8657. _this.unitJson = JSON.parse(res.chapters);
  8658. _this.steps++;
  8659. setTimeout(() => {
  8660. this.checkEva(this.checkId);
  8661. setTimeout(() => {
  8662. this.checkEva(this.checkId);
  8663. }, 100);
  8664. }, 1000);
  8665. })
  8666. .catch(() => {
  8667. return;
  8668. });
  8669. },
  8670. checkTemplate1(w) {
  8671. this.steps++;
  8672. },
  8673. checkTemplate2() {
  8674. let _this = this;
  8675. _this
  8676. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8677. confirmButtonText: "确定",
  8678. cancelButtonText: "取消",
  8679. type: "warning",
  8680. })
  8681. .then(() => {
  8682. _this.unitIndex = 0;
  8683. _this.unitJson = [
  8684. {
  8685. dyName: "", //单元标题
  8686. chapterInfo: [
  8687. {
  8688. isread: false,
  8689. chapterid: this.guid(),
  8690. title: "",
  8691. courseName: "",
  8692. taskJson: [
  8693. {
  8694. task: "",
  8695. taskDetail: "",
  8696. chapterData: [],
  8697. toolText: "",
  8698. toolChoose: [
  8699. {
  8700. tool: [],
  8701. toolDetail: "",
  8702. toolType: 0,
  8703. askCount: 1,
  8704. askTitle: "",
  8705. askJson: [
  8706. { askstitle: "", askItem: 1, checkList: [] },
  8707. ],
  8708. },
  8709. ],
  8710. isShowTools: false,
  8711. askCount: 1,
  8712. isFold: 1,
  8713. askTitle: "",
  8714. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8715. checkJson: [{ checkCount: [], checkPerent: [] }],
  8716. homeworkList: [],
  8717. },
  8718. ],
  8719. itemCount: 1,
  8720. fileList1: [],
  8721. video: [],
  8722. testData: [],
  8723. pData: [],
  8724. templateArray: [],
  8725. },
  8726. ],
  8727. },
  8728. ];
  8729. this.steps++;
  8730. setTimeout(() => {
  8731. this.checkEva(this.checkId);
  8732. setTimeout(() => {
  8733. this.checkEva(this.checkId);
  8734. }, 100);
  8735. }, 1000);
  8736. this.updateWork();
  8737. })
  8738. .catch(() => {
  8739. return;
  8740. });
  8741. },
  8742. checkTemplate3() {
  8743. let _this = this;
  8744. _this
  8745. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8746. confirmButtonText: "确定",
  8747. cancelButtonText: "取消",
  8748. type: "warning",
  8749. })
  8750. .then(() => {
  8751. _this.unitIndex = 0;
  8752. _this.unitJson = [
  8753. {
  8754. dyName: "", //单元标题
  8755. easy: 1,
  8756. chapterInfo: [
  8757. {
  8758. isread: false,
  8759. chapterid: this.guid(),
  8760. title: "",
  8761. courseName: "",
  8762. taskJson: [
  8763. {
  8764. task: "",
  8765. taskDetail: "",
  8766. chapterData: [],
  8767. toolText: "",
  8768. toolChoose: [
  8769. {
  8770. tool: [],
  8771. toolDetail: "",
  8772. toolType: 0,
  8773. askCount: 1,
  8774. askTitle: "",
  8775. askJson: [
  8776. { askstitle: "", askItem: 1, checkList: [] },
  8777. ],
  8778. },
  8779. ],
  8780. isShowTools: false,
  8781. askCount: 1,
  8782. isFold: 1,
  8783. askTitle: "",
  8784. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8785. checkJson: [{ checkCount: [], checkPerent: [] }],
  8786. homeworkList: [],
  8787. },
  8788. ],
  8789. itemCount: 1,
  8790. fileList1: [],
  8791. video: [],
  8792. testData: [],
  8793. pData: [],
  8794. templateArray: [],
  8795. },
  8796. ],
  8797. },
  8798. ];
  8799. // this.steps++;
  8800. this.updateWork();
  8801. })
  8802. .catch(() => {
  8803. return;
  8804. });
  8805. },
  8806. checkTemplate4() {
  8807. let _this = this;
  8808. _this
  8809. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8810. confirmButtonText: "确定",
  8811. cancelButtonText: "取消",
  8812. type: "warning",
  8813. })
  8814. .then(() => {
  8815. _this.unitIndex = 0;
  8816. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8817. this.steps++;
  8818. this.updateWork();
  8819. })
  8820. .catch(() => {
  8821. return;
  8822. });
  8823. },
  8824. wordNext() {
  8825. this.dialogVisible2 = false;
  8826. },
  8827. isAddOrUpdateAttText() {
  8828. if (this.AttTextType == 0) {
  8829. this.addAttTextMessage();
  8830. } else {
  8831. this.updateAttText();
  8832. }
  8833. },
  8834. isAddOrUpdateLine() {
  8835. if (!this.lineTitle) {
  8836. this.$message.error("请填写链接标题");
  8837. return;
  8838. }
  8839. if (this.lineType == 0) {
  8840. this.addLine();
  8841. } else {
  8842. this.updateLine();
  8843. }
  8844. },
  8845. addAttTextMessage() {
  8846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8847. this.taskCount
  8848. ].chapterData.push({
  8849. name: this.AttText.title,
  8850. url: this.AttText.text,
  8851. type: 6,
  8852. });
  8853. this.imgChange1(null, null, 6, this.taskCount);
  8854. this.dialogVisible6 = false;
  8855. },
  8856. selectAttText(itemTaskIndex, i) {
  8857. this.AttText.title =
  8858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8859. itemTaskIndex
  8860. ].chapterData[i].name;
  8861. this.AttText.text =
  8862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8863. itemTaskIndex
  8864. ].chapterData[i].url;
  8865. this.taskCount = itemTaskIndex;
  8866. this.AttTextIndex = i;
  8867. this.AttTextType = 1;
  8868. this.dialogVisible6 = true;
  8869. },
  8870. updateAttText() {
  8871. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8872. this.taskCount
  8873. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  8874. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8875. this.taskCount
  8876. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  8877. this.dialogVisible6 = false;
  8878. },
  8879. addLine() {
  8880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8881. this.lineCount
  8882. ].chapterData.push({
  8883. name: "链接",
  8884. title: this.lineTitle,
  8885. url: this.line,
  8886. type: 8,
  8887. });
  8888. this.imgChange1(null, null, 8, this.lineCount);
  8889. this.dialogVisible7 = false;
  8890. },
  8891. selectLine(itemTaskIndex, i) {
  8892. this.line =
  8893. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8894. itemTaskIndex
  8895. ].chapterData[i].url;
  8896. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8897. itemTaskIndex
  8898. ].chapterData[i].title
  8899. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8900. .chapterData[i].title
  8901. : "";
  8902. this.taskCount = itemTaskIndex;
  8903. this.lineCount = i;
  8904. this.lineType = 1;
  8905. this.dialogVisible7 = true;
  8906. },
  8907. openUpdateSource(itemTaskIndex, i) {
  8908. this.sourceData = {};
  8909. let source =
  8910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8911. .chapterData[i];
  8912. this.sourceData[source.id] = {};
  8913. this.sourceData[source.id].name = source.title;
  8914. this.sourceData[source.id].url = source.url;
  8915. this.dialogVisibleSource = true;
  8916. this.updateSourcePan = true;
  8917. this.taskCount = itemTaskIndex;
  8918. this.lineCount = i;
  8919. },
  8920. updateLine() {
  8921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8922. this.taskCount
  8923. ].chapterData[this.lineCount].url = this.line;
  8924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8925. this.taskCount
  8926. ].chapterData[this.lineCount].title = this.lineTitle;
  8927. this.dialogVisible7 = false;
  8928. },
  8929. addPP() {
  8930. this.dialogVisible3 = true;
  8931. },
  8932. goTo(path) {
  8933. this.$router.push(path);
  8934. },
  8935. openTools(itemTaskIndex, i, toolIndex) {
  8936. this.toolIndex = toolIndex;
  8937. this.taskCount = itemTaskIndex;
  8938. if (i == 4) {
  8939. if (toolIndex == null) {
  8940. var a =
  8941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8942. .chapterData;
  8943. for (var i = 0; i < a.length; i++) {
  8944. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  8945. this.askJson =
  8946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8947. itemTaskIndex
  8948. ].chapterData[i].askJson;
  8949. }
  8950. }
  8951. } else {
  8952. this.askJson = JSON.parse(
  8953. JSON.stringify(
  8954. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8955. itemTaskIndex
  8956. ].toolChoose[toolIndex]
  8957. )
  8958. );
  8959. }
  8960. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  8961. this.dialogVisible5 = true;
  8962. } else if (i == 45) {
  8963. if (
  8964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8965. .toolChoose[toolIndex].testJson
  8966. ) {
  8967. this.testJson = JSON.parse(
  8968. JSON.stringify(
  8969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8970. itemTaskIndex
  8971. ].toolChoose[toolIndex].testJson
  8972. )
  8973. );
  8974. } else {
  8975. var testJson = {
  8976. testCount: 1,
  8977. testTitle: "",
  8978. testJson: [
  8979. {
  8980. teststitle: "",
  8981. testItem: 1,
  8982. checkList: [],
  8983. timuList: [],
  8984. answer: [],
  8985. type: "1",
  8986. },
  8987. ],
  8988. };
  8989. this.testJson = testJson;
  8990. }
  8991. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  8992. this.dialogVisibleChoice = true;
  8993. } else if (i == 47) {
  8994. if (
  8995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8996. .toolChoose[toolIndex].sentenceList
  8997. ) {
  8998. this.sentenceList = JSON.parse(
  8999. JSON.stringify(
  9000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9001. itemTaskIndex
  9002. ].toolChoose[toolIndex].sentenceList
  9003. )
  9004. );
  9005. } else {
  9006. var sentenceList = [
  9007. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9008. ];
  9009. this.sentenceList = sentenceList;
  9010. }
  9011. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9012. this.dialogVisibleSentence = true;
  9013. } else if (i == 48) {
  9014. if (
  9015. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9016. .toolChoose[toolIndex].tableJson
  9017. ) {
  9018. this.tableJson = JSON.parse(
  9019. JSON.stringify(
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9021. itemTaskIndex
  9022. ].toolChoose[toolIndex].tableJson
  9023. )
  9024. );
  9025. } else {
  9026. var tableJson = { text: "" };
  9027. this.tableJson = tableJson;
  9028. }
  9029. this.dialogVisibleTable = true;
  9030. } else if (i == 52) {
  9031. if (
  9032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9033. .toolChoose[toolIndex].wordJson
  9034. ) {
  9035. this.wordJson = JSON.parse(
  9036. JSON.stringify(
  9037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9038. itemTaskIndex
  9039. ].toolChoose[toolIndex].wordJson
  9040. )
  9041. );
  9042. } else {
  9043. var wordJson = { text: "" };
  9044. this.wordJson = wordJson;
  9045. }
  9046. this.dialogVisibleWord = true;
  9047. // else if (i == 50) {
  9048. // if (
  9049. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9050. // .toolChoose[toolIndex].uploadJson
  9051. // ) {
  9052. // this.uploadJson = JSON.parse(
  9053. // JSON.stringify(
  9054. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9055. // itemTaskIndex
  9056. // ].toolChoose[toolIndex].uploadJson
  9057. // )
  9058. // );
  9059. // } else {
  9060. // var uploadJson = [];
  9061. // this.uploadJson = uploadJson;
  9062. // }
  9063. // this.dialogVisibleMoreUpload = true;
  9064. // }
  9065. } else if (i == 10) {
  9066. if (
  9067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9068. .toolChoose[toolIndex].preTime
  9069. ) {
  9070. this.preTime = JSON.parse(
  9071. JSON.stringify(
  9072. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9073. itemTaskIndex
  9074. ].toolChoose[toolIndex].preTime
  9075. )
  9076. );
  9077. } else {
  9078. var preTime = 0;
  9079. this.preTime = preTime;
  9080. }
  9081. this.dialogVisiblePreTime = true;
  9082. } else if (i == 49) {
  9083. if (
  9084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9085. .toolChoose[toolIndex].groupJson
  9086. ) {
  9087. this.groupJson = JSON.parse(
  9088. JSON.stringify(
  9089. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9090. itemTaskIndex
  9091. ].toolChoose[toolIndex].groupJson
  9092. )
  9093. );
  9094. } else {
  9095. var groupJson = {
  9096. group: [{ name: "第1组" }],
  9097. number: undefined,
  9098. islock: 1,
  9099. };
  9100. this.groupJson = groupJson;
  9101. }
  9102. this.dialogVisibleGroup = true;
  9103. } else if (i == 62) {
  9104. if (
  9105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9106. .toolChoose[toolIndex].videoJson
  9107. ) {
  9108. this.videoJson = JSON.parse(
  9109. JSON.stringify(
  9110. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9111. itemTaskIndex
  9112. ].toolChoose[toolIndex].videoJson
  9113. )
  9114. );
  9115. } else {
  9116. var videoJson = {
  9117. video: "",
  9118. setting: [],
  9119. };
  9120. this.videoJson = videoJson;
  9121. }
  9122. this.dialogVisibleVideo = true;
  9123. } else if (i == 15) {
  9124. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9125. itemTaskIndex
  9126. ].toolChoose[toolIndex].answerQ
  9127. ? JSON.parse(
  9128. JSON.stringify(
  9129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9130. itemTaskIndex
  9131. ].toolChoose[toolIndex].answerQ
  9132. )
  9133. )
  9134. : "";
  9135. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9136. this.dialogVisible8 = true;
  9137. } else if (i == 40) {
  9138. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9139. itemTaskIndex
  9140. ].toolChoose[toolIndex].rateJson
  9141. ? JSON.parse(
  9142. JSON.stringify(
  9143. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9144. itemTaskIndex
  9145. ].toolChoose[toolIndex].rateJson
  9146. )
  9147. )
  9148. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9149. this.selectSteps = 1;
  9150. this.dialogVisibleRate = true;
  9151. } else if (i == 42) {
  9152. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9153. itemTaskIndex
  9154. ].toolChoose[toolIndex].answerQ
  9155. ? JSON.parse(
  9156. JSON.stringify(
  9157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9158. itemTaskIndex
  9159. ].toolChoose[toolIndex].answerQ
  9160. )
  9161. )
  9162. : "";
  9163. this.dialogVisibleMp3 = true;
  9164. } else if (i == 41) {
  9165. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9166. itemTaskIndex
  9167. ].toolChoose[toolIndex].selectJson
  9168. ? JSON.parse(
  9169. JSON.stringify(
  9170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9171. itemTaskIndex
  9172. ].toolChoose[toolIndex].selectJson
  9173. )
  9174. )
  9175. : { url: "", select: [], answer: [] };
  9176. this.selectSteps = 1;
  9177. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9178. this.dialogVisibleSelect = true;
  9179. } else if (i == 3) {
  9180. top.postMessage(
  9181. {
  9182. tools: "3y",
  9183. cid: this.cid,
  9184. stage: this.unitIndex,
  9185. task: itemTaskIndex,
  9186. tool: toolIndex,
  9187. },
  9188. "*"
  9189. );
  9190. } else if (i == 1) {
  9191. top.postMessage(
  9192. {
  9193. tools: "1y",
  9194. cid: this.cid,
  9195. stage: this.unitIndex,
  9196. task: itemTaskIndex,
  9197. tool: toolIndex,
  9198. },
  9199. "*"
  9200. );
  9201. } else if (i == 57) {
  9202. top.postMessage(
  9203. {
  9204. tools: "57y",
  9205. cid: this.cid,
  9206. stage: this.unitIndex,
  9207. task: itemTaskIndex,
  9208. tool: toolIndex,
  9209. },
  9210. "*"
  9211. );
  9212. } else if (i == 69) {
  9213. this.englishList = {};
  9214. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9215. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9216. ? JSON.parse(
  9217. JSON.stringify(
  9218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9219. itemTaskIndex
  9220. ].toolChoose[toolIndex].englishList
  9221. )
  9222. )
  9223. : {};
  9224. this.$forceUpdate();
  9225. this.englishDialogVisible = true;
  9226. } else if (i == 70) {
  9227. this.englishVoiceJson = {};
  9228. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9229. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9230. ? JSON.parse(
  9231. JSON.stringify(
  9232. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9233. itemTaskIndex
  9234. ].toolChoose[toolIndex].englishVoiceJson
  9235. )
  9236. )
  9237. : {
  9238. title: '',
  9239. detail: '',
  9240. array: []
  9241. };
  9242. // {
  9243. // time: "",
  9244. // class: "",
  9245. // difficulty: 0,
  9246. // topic: "",
  9247. // isShow: false,
  9248. // eva: 0,
  9249. // aiEva: {
  9250. // isAiEva: false,
  9251. // aiEvaChoose: [],
  9252. // },
  9253. // allfType: [],
  9254. // englishJson: {},
  9255. // };
  9256. this.$forceUpdate();
  9257. this.EnglishVoiceDialog = true;
  9258. }
  9259. },
  9260. setEnglishVoiceJson(val) {
  9261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9262. this.taskCount
  9263. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9264. JSON.stringify(val)
  9265. );
  9266. this.$forceUpdate();
  9267. if (
  9268. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9269. .toolChoose[this.toolIndex].tool != 70
  9270. ) {
  9271. this.addTools(70, this.taskCount, this.toolIndex);
  9272. }
  9273. },
  9274. chapAddTools(i) {
  9275. if (this.chapTools[0].tools.length == 0) {
  9276. this.chapTools[0].tools.push(i);
  9277. } else {
  9278. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9279. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9280. } else {
  9281. this.chapTools[0].tools.push(i);
  9282. }
  9283. }
  9284. this.$forceUpdate();
  9285. },
  9286. addChaptersDataTools() {
  9287. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9289. this.chapCount
  9290. ].chapterData.push({
  9291. name: this.chapTools[0].toolDetail,
  9292. url: this.chapTools[0].tools,
  9293. type: 7,
  9294. askJson: this.askJson,
  9295. });
  9296. } else {
  9297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9298. this.chapCount
  9299. ].chapterData.push({
  9300. name: this.chapTools[0].toolDetail,
  9301. url: this.chapTools[0].tools,
  9302. type: 7,
  9303. });
  9304. }
  9305. this.imgChange1(null, null, 7, this.chapCount);
  9306. this.dialogVisible4 = false;
  9307. },
  9308. addTools(i, itemTaskIndex, toolIndex) {
  9309. // if (
  9310. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9311. // .toolChoose[toolIndex].tool.length == 0
  9312. // ) {
  9313. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9314. // itemTaskIndex
  9315. // ].toolChoose[toolIndex].tool.push(i);
  9316. // } else {
  9317. // if (
  9318. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9319. // itemTaskIndex
  9320. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9321. // ) {
  9322. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9323. // itemTaskIndex
  9324. // ].toolChoose[toolIndex].tool.splice(
  9325. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9326. // itemTaskIndex
  9327. // ].toolChoose[toolIndex].tool.indexOf(i),
  9328. // 1
  9329. // );
  9330. // } else {
  9331. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9332. // itemTaskIndex
  9333. // ].toolChoose[toolIndex].tool.push(i);
  9334. // }
  9335. // console.log(
  9336. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9337. // .toolChoose[toolIndex].tool
  9338. // );
  9339. // }
  9340. if (i == 4) {
  9341. if (
  9342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9343. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9344. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9345. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9347. .toolChoose[toolIndex].askJson[0].checkList < 2
  9348. ) {
  9349. this.openTools(itemTaskIndex, 4, toolIndex);
  9350. // this.$message({
  9351. // message: "请填写完整问卷内容",
  9352. // type: "error",
  9353. // });
  9354. return;
  9355. }
  9356. }
  9357. if (i == 45) {
  9358. if (
  9359. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9360. .toolChoose[toolIndex].testJson ||
  9361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9362. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9364. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9365. ) {
  9366. this.openTools(itemTaskIndex, 45, toolIndex);
  9367. // this.$message({
  9368. // message: "请填写完整问卷内容",
  9369. // type: "error",
  9370. // });
  9371. return;
  9372. }
  9373. }
  9374. if (i == 47) {
  9375. if (
  9376. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9377. .toolChoose[toolIndex].sentenceList ||
  9378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9379. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9380. ) {
  9381. this.openTools(itemTaskIndex, 47, toolIndex);
  9382. return;
  9383. }
  9384. }
  9385. if (i == 69) {
  9386. if (
  9387. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9388. .toolChoose[toolIndex].englishList
  9389. ) {
  9390. this.openTools(itemTaskIndex, 69, toolIndex);
  9391. return;
  9392. }
  9393. }
  9394. if (i == 70) {
  9395. if (
  9396. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9397. .toolChoose[toolIndex].englishVoiceJson
  9398. ) {
  9399. this.openTools(itemTaskIndex, 70, toolIndex);
  9400. return;
  9401. }
  9402. }
  9403. // if (i == 48) {
  9404. // if (
  9405. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9406. // .toolChoose[toolIndex].tableJson
  9407. // ) {
  9408. // this.openTools(itemTaskIndex, 48, toolIndex);
  9409. // return;
  9410. // }
  9411. // }
  9412. // if (i == 50) {
  9413. // if (
  9414. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9415. // .toolChoose[toolIndex].uploadJson
  9416. // ) {
  9417. // this.openTools(itemTaskIndex, 50, toolIndex);
  9418. // return;
  9419. // }
  9420. // }
  9421. if (i == 49) {
  9422. if (
  9423. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9424. .toolChoose[toolIndex].groupJson
  9425. ) {
  9426. this.openTools(itemTaskIndex, 49, toolIndex);
  9427. return;
  9428. }
  9429. }
  9430. if (i == 62) {
  9431. if (
  9432. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9433. .toolChoose[toolIndex].videoJson
  9434. ) {
  9435. this.openTools(itemTaskIndex, 62, toolIndex);
  9436. return;
  9437. }
  9438. }
  9439. if (i == 15) {
  9440. if (
  9441. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9442. .toolChoose[toolIndex].answerQ ||
  9443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9444. .toolChoose[toolIndex].answerQ == ""
  9445. ) {
  9446. this.openTools(itemTaskIndex, 15, toolIndex);
  9447. // this.$message({
  9448. // message: "请填写问答内容",
  9449. // type: "error",
  9450. // });
  9451. return;
  9452. }
  9453. }
  9454. if (i == 40) {
  9455. if (
  9456. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9457. .toolChoose[toolIndex].rateJson ||
  9458. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9459. .toolChoose[toolIndex].rateJson.length
  9460. ) {
  9461. this.openTools(itemTaskIndex, 40, toolIndex);
  9462. return;
  9463. }
  9464. }
  9465. if (i == 41) {
  9466. if (
  9467. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9468. .toolChoose[toolIndex].selectJson ||
  9469. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9470. .toolChoose[toolIndex].selectJson.url == "" ||
  9471. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9472. .toolChoose[toolIndex].selectJson.select.length ||
  9473. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9474. .toolChoose[toolIndex].selectJson.answer.length
  9475. ) {
  9476. this.openTools(itemTaskIndex, 41, toolIndex);
  9477. return;
  9478. }
  9479. }
  9480. if (i == 42) {
  9481. if (
  9482. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9483. .toolChoose[toolIndex].answerQ ||
  9484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9485. .toolChoose[toolIndex].answerQ == ""
  9486. ) {
  9487. this.openTools(itemTaskIndex, 42, toolIndex);
  9488. return;
  9489. }
  9490. }
  9491. if (
  9492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9493. .toolChoose[toolIndex].tool.length > 0
  9494. ) {
  9495. if (
  9496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9497. itemTaskIndex
  9498. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9499. ) {
  9500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9501. itemTaskIndex
  9502. ].toolChoose[toolIndex].tool.splice(
  9503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9504. itemTaskIndex
  9505. ].toolChoose[toolIndex].tool.indexOf(i),
  9506. 1
  9507. );
  9508. } else {
  9509. // this.$message({
  9510. // message: "每个工具只能添加一个",
  9511. // type: "error",
  9512. // });
  9513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9514. itemTaskIndex
  9515. ].toolChoose[toolIndex].tool = [];
  9516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9517. itemTaskIndex
  9518. ].toolChoose[toolIndex].tool.push(i);
  9519. }
  9520. } else {
  9521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9522. itemTaskIndex
  9523. ].toolChoose[toolIndex].tool.push(i);
  9524. }
  9525. this.$forceUpdate();
  9526. },
  9527. addAskList(index) {
  9528. this.askJson.askJson.splice(index + 1, 0, {
  9529. askstitle: "",
  9530. askItem: 1,
  9531. checkList: [],
  9532. });
  9533. this.askJson.askCount++;
  9534. },
  9535. addTestList(index) {
  9536. this.testJson.testJson.splice(index + 1, 0, {
  9537. teststitle: "",
  9538. testItem: 1,
  9539. checkList: [],
  9540. timuList: [],
  9541. answer: [],
  9542. type: "1",
  9543. });
  9544. this.testJson.testCount++;
  9545. },
  9546. deleteAskList(index) {
  9547. if (
  9548. !this.askJson.askJson[index].askstitle &&
  9549. this.askJson.askJson[index].askItem == 1 &&
  9550. !this.askJson.askJson[index].checkList[0]
  9551. ) {
  9552. this.askJson.askJson.splice(index, 1);
  9553. this.askJson.askCount--;
  9554. } else {
  9555. let _this = this;
  9556. _this
  9557. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9558. confirmButtonText: "确定",
  9559. cancelButtonText: "取消",
  9560. type: "warning",
  9561. })
  9562. .then(() => {
  9563. _this.askJson.askJson.splice(index, 1);
  9564. _this.askJson.askCount--;
  9565. })
  9566. .catch(() => {
  9567. return;
  9568. });
  9569. }
  9570. },
  9571. deleteTestList(index) {
  9572. if (
  9573. !this.testJson.testJson[index].teststitle &&
  9574. this.testJson.testJson[index].testItem == 1 &&
  9575. !this.testJson.testJson[index].checkList[0]
  9576. ) {
  9577. this.testJson.testJson.splice(index, 1);
  9578. this.testJson.testCount--;
  9579. } else {
  9580. let _this = this;
  9581. _this
  9582. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9583. confirmButtonText: "确定",
  9584. cancelButtonText: "取消",
  9585. type: "warning",
  9586. })
  9587. .then(() => {
  9588. _this.testJson.testJson.splice(index, 1);
  9589. _this.testJson.testCount--;
  9590. })
  9591. .catch(() => {
  9592. return;
  9593. });
  9594. }
  9595. },
  9596. askMove(type, index) {
  9597. if (type == 1) {
  9598. if (index > 0) {
  9599. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9600. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9601. this.askJson.askJson[index - 1] = b;
  9602. this.askJson.askJson[index] = a;
  9603. }
  9604. } else {
  9605. if (index < this.askJson.askJson.length - 1) {
  9606. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9607. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9608. this.askJson.askJson[index + 1] = b;
  9609. this.askJson.askJson[index] = a;
  9610. }
  9611. }
  9612. this.$forceUpdate();
  9613. },
  9614. checkMove(type, index, checkIndex) {
  9615. if (type == 1) {
  9616. if (checkIndex > 0) {
  9617. let a = JSON.parse(
  9618. JSON.stringify(
  9619. this.askJson.askJson[index].checkList[checkIndex - 1]
  9620. )
  9621. );
  9622. let b = JSON.parse(
  9623. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9624. );
  9625. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9626. this.askJson.askJson[index].checkList[checkIndex] = a;
  9627. }
  9628. } else {
  9629. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9630. let a = JSON.parse(
  9631. JSON.stringify(
  9632. this.askJson.askJson[index].checkList[checkIndex + 1]
  9633. )
  9634. );
  9635. let b = JSON.parse(
  9636. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9637. );
  9638. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9639. this.askJson.askJson[index].checkList[checkIndex] = a;
  9640. }
  9641. }
  9642. this.$forceUpdate();
  9643. },
  9644. testMove(type, index) {
  9645. if (type == 1) {
  9646. if (index > 0) {
  9647. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9648. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9649. this.testJson.testJson[index - 1] = b;
  9650. this.testJson.testJson[index] = a;
  9651. }
  9652. } else {
  9653. if (index < this.testJson.testJson.length - 1) {
  9654. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9655. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9656. this.testJson.testJson[index + 1] = b;
  9657. this.testJson.testJson[index] = a;
  9658. }
  9659. }
  9660. this.$forceUpdate();
  9661. },
  9662. tcheckMove(type, index, checkIndex) {
  9663. if (type == 1) {
  9664. if (checkIndex > 0) {
  9665. let a = JSON.parse(
  9666. JSON.stringify(
  9667. this.testJson.testJson[index].checkList[checkIndex - 1]
  9668. )
  9669. );
  9670. let b = JSON.parse(
  9671. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9672. );
  9673. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9674. this.testJson.testJson[index].checkList[checkIndex] = a;
  9675. }
  9676. } else {
  9677. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9678. let a = JSON.parse(
  9679. JSON.stringify(
  9680. this.testJson.testJson[index].checkList[checkIndex + 1]
  9681. )
  9682. );
  9683. let b = JSON.parse(
  9684. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9685. );
  9686. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9687. this.testJson.testJson[index].checkList[checkIndex] = a;
  9688. }
  9689. }
  9690. this.$forceUpdate();
  9691. },
  9692. addcheckList(json, index) {
  9693. // json.checkList.length++;
  9694. json.checkList.splice(index + 1, 0, "");
  9695. json.askItem++;
  9696. this.$forceUpdate();
  9697. },
  9698. deletecheckList(json, index) {
  9699. // json.checkList.length--;
  9700. json.checkList.splice(index, 1);
  9701. json.askItem--;
  9702. this.$forceUpdate();
  9703. },
  9704. addTcheckList(json, index) {
  9705. // json.checkList.length++;
  9706. json.checkList.splice(index + 1, 0, "");
  9707. json.testItem++;
  9708. this.$forceUpdate();
  9709. },
  9710. deleteTcheckList(json, index) {
  9711. // json.checkList.length--;
  9712. json.checkList.splice(index, 1);
  9713. json.testItem--;
  9714. this.$forceUpdate();
  9715. },
  9716. checkTestType(type, json) {
  9717. json.type = type;
  9718. setTimeout(() => {
  9719. json.answer = [];
  9720. }, 100);
  9721. },
  9722. checkAskType(type, json) {
  9723. json.type = type;
  9724. // json.checkList = [];
  9725. this.$forceUpdate();
  9726. },
  9727. addSelectList(json) {
  9728. json.select.push("");
  9729. json.answer.push("");
  9730. },
  9731. deleteSelectList(json) {
  9732. // json.select.length--;
  9733. // json.answer.length--;
  9734. json.select.splice(json.select.length - 1, 1);
  9735. json.answer.splice(json.answer.length - 1, 1);
  9736. },
  9737. addAsk() {
  9738. if (this.askJson.askTitle === "") {
  9739. this.$message.error("标题不能为空!");
  9740. return;
  9741. }
  9742. var aj = this.askJson.askJson;
  9743. var b = 1;
  9744. for (var i = 0; i < aj.length; i++) {
  9745. if (aj[i].askstitle === "") {
  9746. var a = 1;
  9747. for (let index = 0; index < aj[i].askItem; index++) {
  9748. const element = aj[i].checkList[index]
  9749. ? aj[i].checkList[index]
  9750. : "";
  9751. if (element != "") {
  9752. b++;
  9753. this.$message.error(`请将题目${i + 1}填写完整。`);
  9754. return;
  9755. } else {
  9756. a++;
  9757. }
  9758. }
  9759. if (b == 1) {
  9760. this.$message.error("至少填写一个问题");
  9761. return;
  9762. }
  9763. } else if (aj[i].askstitle != "") {
  9764. for (let index = 0; index < aj[i].askItem; index++) {
  9765. const element = aj[i].checkList[index]
  9766. ? aj[i].checkList[index]
  9767. : "";
  9768. var index = 0;
  9769. for (var z = 0; z < aj[i].checkList.length; z++) {
  9770. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9771. if (checkC != "") {
  9772. index++;
  9773. } else {
  9774. this.$message.error(`题目${i + 1}选项不能为空!`);
  9775. return;
  9776. }
  9777. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9778. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9779. if (checkC == checkC2) {
  9780. this.$message.error(
  9781. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9782. );
  9783. return;
  9784. }
  9785. }
  9786. }
  9787. b++;
  9788. if (index < 2) {
  9789. this.$message.error("每道题目至少需要设置2个选项。");
  9790. return;
  9791. }
  9792. }
  9793. }
  9794. }
  9795. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9796. var elc = el.checkList.filter((element) => {
  9797. return element != "";
  9798. });
  9799. return el.askstitle != "" && elc.length != 0;
  9800. });
  9801. if (!this.dialogVisible4) {
  9802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9803. this.taskCount
  9804. ].toolChoose[this.toolIndex] = this.askJson;
  9805. }
  9806. this.dialogVisible5 = false;
  9807. if (
  9808. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9809. .toolChoose[this.toolIndex].tool != 4
  9810. ) {
  9811. this.addTools(4, this.taskCount, this.toolIndex);
  9812. }
  9813. },
  9814. addTest() {
  9815. // if (this.testJson.testTitle === "") {
  9816. // this.$message.error("标题不能为空!");
  9817. // return;
  9818. // }
  9819. var aj = this.testJson.testJson;
  9820. var b = 1;
  9821. for (var i = 0; i < aj.length; i++) {
  9822. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9823. var a = 1;
  9824. for (let index = 0; index < aj[i].testItem; index++) {
  9825. const element = aj[i].checkList[index]
  9826. ? aj[i].checkList[index]
  9827. : "";
  9828. if (element != "") {
  9829. b++;
  9830. this.$message.error(`请将题目${i + 1}填写完整。`);
  9831. return;
  9832. } else {
  9833. a++;
  9834. }
  9835. }
  9836. if (b == 1) {
  9837. this.$message.error("至少填写一个问题");
  9838. return;
  9839. }
  9840. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9841. for (let index = 0; index < aj[i].testItem; index++) {
  9842. const element = aj[i].checkList[index]
  9843. ? aj[i].checkList[index]
  9844. : "";
  9845. var index = 0;
  9846. for (var z = 0; z < aj[i].checkList.length; z++) {
  9847. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9848. if (checkC != "") {
  9849. index++;
  9850. } else {
  9851. this.$message.error(`题目${i + 1}选项不能为空!`);
  9852. return;
  9853. }
  9854. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9855. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9856. if (checkC == checkC2) {
  9857. this.$message.error(
  9858. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9859. );
  9860. return;
  9861. }
  9862. }
  9863. }
  9864. b++;
  9865. if (index < 2) {
  9866. this.$message.error("每道题目至少需要设置2个选项。");
  9867. return;
  9868. }
  9869. if (
  9870. (aj[i].type == "2" && !aj[i].answer.length) ||
  9871. (aj[i].type == "1" &&
  9872. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  9873. (aj[i].answer !== 0 && !aj[i].answer)))
  9874. ) {
  9875. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  9876. return;
  9877. }
  9878. }
  9879. }
  9880. }
  9881. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9882. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9883. var elc = el.checkList.filter((element) => {
  9884. return element != "";
  9885. });
  9886. return (
  9887. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9888. );
  9889. });
  9890. isTestJson.testCount = isTestJson.testJson.length;
  9891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9892. this.taskCount
  9893. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9894. this.dialogVisibleChoice = false;
  9895. if (
  9896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9897. .toolChoose[this.toolIndex].tool != 45
  9898. ) {
  9899. this.addTools(45, this.taskCount, this.toolIndex);
  9900. }
  9901. },
  9902. addVideoJson(videoJson) {
  9903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9904. this.taskCount
  9905. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9906. this.dialogVisibleVideo = false;
  9907. if (
  9908. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9909. .toolChoose[this.toolIndex].tool != 62
  9910. ) {
  9911. this.addTools(62, this.taskCount, this.toolIndex);
  9912. }
  9913. },
  9914. //自动获取剪贴板
  9915. pasteOption() {
  9916. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9917. if (!iframe) {
  9918. this.$message.error("请使用AI共创生成题目");
  9919. return;
  9920. }
  9921. let copyData = iframe.contentWindow.copyData;
  9922. if (!copyData || !copyData.selectData.length) {
  9923. this.$message.error("请使用AI共创生成题目");
  9924. return;
  9925. }
  9926. let selectData = copyData.selectData;
  9927. for (var i = 0; i < selectData.length; i++) {
  9928. let answer = 0;
  9929. switch (selectData[i].answer[0]) {
  9930. case "A":
  9931. answer = 0;
  9932. break;
  9933. case "B":
  9934. answer = 1;
  9935. break;
  9936. case "C":
  9937. answer = 2;
  9938. break;
  9939. case "D":
  9940. answer = 3;
  9941. break;
  9942. case "E":
  9943. answer = 4;
  9944. break;
  9945. default:
  9946. break;
  9947. }
  9948. this.testJson.testJson.push({
  9949. teststitle: selectData[i].subject,
  9950. testItem: selectData[i].options.length,
  9951. checkList: selectData[i].options,
  9952. timuList: [],
  9953. answer: answer,
  9954. type: "1",
  9955. });
  9956. this.testJson.testCount++;
  9957. }
  9958. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9959. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9960. var elc = el.checkList.filter((element) => {
  9961. return element != "";
  9962. });
  9963. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  9964. });
  9965. isTestJson.testCount = isTestJson.testJson.length;
  9966. if (!isTestJson.testCount) {
  9967. return;
  9968. }
  9969. this.testJson = isTestJson;
  9970. this.$forceUpdate();
  9971. },
  9972. pasteTask(taskJson) {
  9973. let stageTasksData = [];
  9974. if (taskJson) {
  9975. stageTasksData = taskJson;
  9976. } else {
  9977. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9978. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9979. if (!iframe && !iframe2) {
  9980. this.$message.error("请使用AI共创生成");
  9981. return;
  9982. }
  9983. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9984. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9985. if (
  9986. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  9987. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  9988. ) {
  9989. this.$message.error("请使用AI共创生成");
  9990. return;
  9991. }
  9992. stageTasksData = copyData
  9993. ? copyData.tasksData
  9994. : copyData2
  9995. ? copyData2.tasksData
  9996. : [{ taskName: "", taskDecs: "" }];
  9997. }
  9998. let taskA = [];
  9999. let tasks = stageTasksData;
  10000. for (var j = 0; j < tasks.length; j++) {
  10001. taskA.push({
  10002. task: tasks[j].taskName,
  10003. taskDetail: tasks[j].taskDecs,
  10004. chapterData: [],
  10005. toolText: "",
  10006. toolChoose: [
  10007. {
  10008. tool: [],
  10009. toolDetail: "",
  10010. toolType: 0,
  10011. askCount: 1,
  10012. askTitle: "",
  10013. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10014. },
  10015. ],
  10016. isShowTools: false,
  10017. askCount: 1,
  10018. isFold: 1,
  10019. askTitle: "",
  10020. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10021. checkJson: [{ checkCount: [], checkPerent: [] }],
  10022. homeworkList: [],
  10023. });
  10024. }
  10025. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10026. this.$forceUpdate();
  10027. },
  10028. pasteStage(stageJson) {
  10029. let stageData = [];
  10030. if (stageJson) {
  10031. stageData = stageJson;
  10032. } else {
  10033. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10034. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10035. if (!iframe && !iframe2) {
  10036. this.$message.error("请使用AI共创生成");
  10037. return;
  10038. }
  10039. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10040. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10041. if (
  10042. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10043. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10044. ) {
  10045. this.$message.error("请使用AI共创生成");
  10046. return;
  10047. }
  10048. stageData = copyData
  10049. ? copyData.stageData
  10050. : copyData2
  10051. ? copyData2.stageData
  10052. : [""];
  10053. }
  10054. let stage = [];
  10055. for (var i = 0; i < stageData.length; i++) {
  10056. stage.push({
  10057. dyName: stageData[i], //单元标题
  10058. chapterInfo: [
  10059. {
  10060. isread: false,
  10061. chapterid: this.guid(),
  10062. title: "",
  10063. courseName: "",
  10064. taskJson: [
  10065. {
  10066. task: "",
  10067. taskDetail: "",
  10068. chapterData: [],
  10069. toolText: "",
  10070. toolChoose: [
  10071. {
  10072. tool: [],
  10073. toolDetail: "",
  10074. toolType: 0,
  10075. askCount: 1,
  10076. askTitle: "",
  10077. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10078. },
  10079. ],
  10080. isShowTools: false,
  10081. askCount: 1,
  10082. isFold: 1,
  10083. askTitle: "",
  10084. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10085. checkJson: [{ checkCount: [], checkPerent: [] }],
  10086. homeworkList: [],
  10087. },
  10088. ],
  10089. itemCount: 1,
  10090. fileList1: [],
  10091. video: [],
  10092. testData: [],
  10093. pData: [],
  10094. templateArray: [],
  10095. },
  10096. ],
  10097. });
  10098. }
  10099. let _this = this;
  10100. if (stageJson) {
  10101. if (!_this.cid) {
  10102. _this.unitJson = stage;
  10103. } else {
  10104. _this.unitIndex = 0;
  10105. _this.unitJson = stage;
  10106. _this.updateWork();
  10107. }
  10108. } else {
  10109. _this
  10110. .$confirm(
  10111. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10112. "提示",
  10113. {
  10114. confirmButtonText: "确定",
  10115. cancelButtonText: "取消",
  10116. type: "warning",
  10117. }
  10118. )
  10119. .then(() => {
  10120. _this.unitIndex = 0;
  10121. _this.unitJson = stage;
  10122. // _this.steps++;
  10123. _this.updateWork();
  10124. })
  10125. .catch(() => {
  10126. return;
  10127. });
  10128. }
  10129. },
  10130. openStageBox() {
  10131. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10132. this.dialogVisibleStageChange = true;
  10133. },
  10134. updateChange() {
  10135. this.$confirm(
  10136. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10137. "提示",
  10138. {
  10139. confirmButtonText: "确定",
  10140. cancelButtonText: "取消",
  10141. type: "warning",
  10142. }
  10143. )
  10144. .then(() => {
  10145. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10146. this.updateWork();
  10147. this.dialogVisibleStageChange = false;
  10148. })
  10149. .catch(() => {
  10150. return;
  10151. });
  10152. },
  10153. addAnswer() {
  10154. if (this.answerQ == "") {
  10155. this.$message.error("请输入您想要问的问题");
  10156. return;
  10157. }
  10158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10159. this.taskCount
  10160. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10161. this.dialogVisible8 = false;
  10162. if (
  10163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10164. .toolChoose[this.toolIndex].tool != 15
  10165. ) {
  10166. this.addTools(15, this.taskCount, this.toolIndex);
  10167. }
  10168. },
  10169. addMp3Answer() {
  10170. if (this.answerQ == "") {
  10171. this.$message.error("请输入您想要回答的问题");
  10172. return;
  10173. }
  10174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10175. this.taskCount
  10176. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10177. this.dialogVisibleMp3 = false;
  10178. },
  10179. addRateAnswer() {
  10180. var a = 1;
  10181. for (var i = 0; i < this.rateJson.length; i++) {
  10182. if (this.rateJson[i].value == "") {
  10183. a = 2;
  10184. break;
  10185. }
  10186. }
  10187. if (a == 2) {
  10188. this.$message.error("请把评价信息填写完整");
  10189. return;
  10190. }
  10191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10192. this.taskCount
  10193. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10194. this.dialogVisibleRate = false;
  10195. if (
  10196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10197. .toolChoose[this.toolIndex].tool != 40
  10198. ) {
  10199. this.addTools(40, this.taskCount, this.toolIndex);
  10200. }
  10201. },
  10202. addSelectAnswer() {
  10203. if (this.selectJson.url == "") {
  10204. this.$message.error("请上传题目");
  10205. return;
  10206. }
  10207. if (!this.selectJson.select.length) {
  10208. this.$message.error("请添加选项");
  10209. return;
  10210. }
  10211. if (!this.selectJson.answer.length) {
  10212. this.$message.error("请设置答案");
  10213. return;
  10214. }
  10215. var a = 1;
  10216. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10217. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10218. a = 2;
  10219. }
  10220. }
  10221. if (a == 2) {
  10222. this.$message.error("请设置答案");
  10223. return;
  10224. }
  10225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10226. this.taskCount
  10227. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10228. this.dialogVisibleSelect = false;
  10229. if (
  10230. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10231. .toolChoose[this.toolIndex].tool != 41
  10232. ) {
  10233. this.addTools(41, this.taskCount, this.toolIndex);
  10234. }
  10235. },
  10236. nextSelectSteps() {
  10237. if (this.selectJson.url == "") {
  10238. this.$message.error("请上传题目");
  10239. return;
  10240. }
  10241. if (!this.selectJson.select.length) {
  10242. this.$message.error("请添加选项");
  10243. return;
  10244. } else {
  10245. for (var z = 0; z < this.selectJson.select.length; z++) {
  10246. let checkC = this.selectJson.select[z];
  10247. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10248. let checkC2 = this.selectJson.select[z2];
  10249. if (checkC == checkC2) {
  10250. this.$message.error(
  10251. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10252. );
  10253. return;
  10254. }
  10255. }
  10256. }
  10257. }
  10258. var a = 1;
  10259. for (var i = 0; i < this.selectJson.select.length; i++) {
  10260. if (!this.selectJson.select[i]) {
  10261. a = 2;
  10262. }
  10263. }
  10264. if (a == 2) {
  10265. this.$message.error("添加的选项不能为空");
  10266. return;
  10267. }
  10268. this.selectSteps++;
  10269. },
  10270. selectCourseDetail() {
  10271. if (this.cid == "" || this.cid == undefined) {
  10272. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10273. this.isTeacherSee = true;
  10274. }
  10275. console.log("这是新增课程");
  10276. this.selectAllType();
  10277. } else {
  10278. this.isOutline = true
  10279. this.isOutline2 = true
  10280. this.cidType = 1;
  10281. let params = {
  10282. cid: this.cid,
  10283. };
  10284. this.ajax
  10285. .get(this.$store.state.api + "select_course_detail", params)
  10286. .then((res) => {
  10287. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10288. this.courseState = res.data[0][0].state;
  10289. for (var j = 0; j < this.unitJson.length; j++) {
  10290. for (
  10291. var k = 0;
  10292. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10293. k++
  10294. ) {
  10295. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10296. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10297. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10298. : [];
  10299. let _chapterData = [];
  10300. for (
  10301. var c = 0;
  10302. c <
  10303. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10304. .length;
  10305. c++
  10306. ) {
  10307. if (
  10308. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10309. ) {
  10310. _chapterData.push(
  10311. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10312. );
  10313. }
  10314. }
  10315. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10316. _chapterData;
  10317. }
  10318. }
  10319. this.$forceUpdate();
  10320. this.courseName = res.data[0][0].title;
  10321. this.courseText = res.data[0][0].brief;
  10322. this.courseText2 = res.data[0][0].reBrief;
  10323. this.evalua = res.data[0][0].evaId;
  10324. this.cover = JSON.parse(res.data[0][0].cover);
  10325. this.noneBtnImg = this.cover.length >= 1;
  10326. if (res.data[0][0].refile) {
  10327. this.infoData = JSON.parse(res.data[0][0].refile)
  10328. }
  10329. // this.checkboxList =
  10330. // res.data[0][0].course_student.length > 0
  10331. // ? JSON.parse(res.data[0][0].course_student)
  10332. // : [];
  10333. this.checkboxList2 = res.data[0][0].juri
  10334. ? res.data[0][0].juri.split(",")
  10335. : [];
  10336. this.inviteCode = [];
  10337. for (var i = 0; i < res.data[2].length; i++) {
  10338. this.inviteCode.push({
  10339. cid: res.data[2][i].classid,
  10340. ic: res.data[2][i].code,
  10341. });
  10342. }
  10343. this.checkboxList3 = res.data[0][0].course_teacher
  10344. ? res.data[0][0].course_teacher.split(",")
  10345. : [];
  10346. // this.isTeacherSee =
  10347. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10348. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10349. this.myWord = res.data[0][0].template;
  10350. this.templateC.id = "123";
  10351. this.courseUserid = res.data[0][0].userid;
  10352. // if(this.courseUserid == this.userid){
  10353. // this.InviteChange(this.checkboxList2)
  10354. // }
  10355. this.nbOrder = res.data[0][0].ordernumber;
  10356. this.courseTypeId = [];
  10357. for (var i = 0; i < res.data[1].length; i++) {
  10358. this.courseTypeId.push(res.data[1][i].typeid);
  10359. }
  10360. console.log(this.courseTypeId);
  10361. // if (this.timer) clearInterval(this.timer);
  10362. if (this.timer) clearTimeout(this.timer);
  10363. this.timer = null;
  10364. // this.timer = setInterval(() => {
  10365. this.seleteCourseUpdate();
  10366. this.setMan();
  10367. this.selectAllType();
  10368. this.unitJson[
  10369. this.unitIndex
  10370. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10371. // }, 5000);
  10372. this.$forceUpdate();
  10373. setTimeout(() => {
  10374. this.checkEva(this.evalua);
  10375. setTimeout(() => {
  10376. this.checkEva(this.evalua);
  10377. }, 100);
  10378. }, 100);
  10379. })
  10380. .catch((err) => {
  10381. console.error(err);
  10382. });
  10383. }
  10384. },
  10385. seleteCourseUpdate() {
  10386. let params = {
  10387. cid: this.cid,
  10388. };
  10389. this.ajax
  10390. .get(this.$store.state.api + "select_course_detail", params)
  10391. .then((res) => {
  10392. // console.log(this.unitJson);
  10393. let unitJson = JSON.parse(res.data[0][0].chapters);
  10394. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10395. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10396. let _unitJson = [];
  10397. let _chapAarry = [];
  10398. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10399. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10400. let index = 1;
  10401. let chapindex;
  10402. if (_unitJson2.length > unitJson.length) {
  10403. for (let c = 0; c < _unitJson2.length; c++) {
  10404. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10405. }
  10406. for (let j = 0; j < unitJson.length; j++) {
  10407. let count = 0;
  10408. for (let k = 0; k < _unitJson2.length; k++) {
  10409. if (
  10410. unitJson[j].chapterInfo[0].chapterid ==
  10411. _unitJson2[k].chapterInfo[0].chapterid
  10412. ) {
  10413. count++;
  10414. _chapAarry.splice(
  10415. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10416. 1
  10417. );
  10418. _unitJson.push(unitJson[j]);
  10419. break;
  10420. }
  10421. }
  10422. // if(count === 0){
  10423. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10424. // }
  10425. }
  10426. for (let k = 0; k < _unitJson2.length; k++) {
  10427. if (_unitJson2[k].isUpdate == 1) {
  10428. _chapAarry.splice(
  10429. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10430. 1
  10431. );
  10432. _unitJson.push(_unitJson2[k]);
  10433. }
  10434. }
  10435. console.log(_chapAarry);
  10436. for (let d = 0; d < _unitJson2.length; d++) {
  10437. if (
  10438. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10439. ) {
  10440. if (_unitIndex == d) {
  10441. index = 2;
  10442. }
  10443. chapindex = d;
  10444. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10445. }
  10446. }
  10447. } else {
  10448. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10449. }
  10450. for (let i = 0; i < unitJson.length; i++) {
  10451. if (
  10452. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10453. _unitJson[i].chapterInfo[0].chapterid !=
  10454. unitJson[i].chapterInfo[0].chapterid
  10455. ) {
  10456. if (i == _unitJson.length - 1) {
  10457. // this.unitIndex++
  10458. _unitIndex2++;
  10459. }
  10460. _unitJson.splice(i, 0, unitJson[i]);
  10461. } else if (i > _unitJson.length - 1) {
  10462. _unitJson.push(unitJson[i]);
  10463. } else if (
  10464. _unitJson[i].chapterInfo[0].chapterid ==
  10465. unitJson[i].chapterInfo[0].chapterid
  10466. ) {
  10467. _unitJson[i] = unitJson[i];
  10468. }
  10469. // if (i == _unitIndex) {
  10470. // continue;
  10471. // } else
  10472. }
  10473. if (_chapAarry.length && index != 2) {
  10474. if (chapindex < _unitIndex) {
  10475. this.isDelete = 2;
  10476. // this.unitIndex--;
  10477. _unitIndex2--;
  10478. } else if (
  10479. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10480. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10481. ) {
  10482. this.isDelete = 2;
  10483. for (let n = 0; n < _unitJson.length; n++) {
  10484. if (
  10485. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10486. _unitJson[n].chapterInfo[0].chapterid
  10487. ) {
  10488. // this.unitIndex = n;
  10489. _unitIndex2 = n;
  10490. _unitJson[n] = _unitJson2[_unitIndex];
  10491. break;
  10492. }
  10493. }
  10494. }
  10495. } else if (index != 2) {
  10496. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10497. _unitJson2[_unitIndex];
  10498. for (
  10499. var ci = 0;
  10500. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10501. ci++
  10502. ) {
  10503. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10504. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10505. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10506. .toolChoose
  10507. : [];
  10508. let _chapterData = [];
  10509. for (
  10510. var c = 0;
  10511. c <
  10512. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10513. .length;
  10514. c++
  10515. ) {
  10516. if (
  10517. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10518. .chapterData[c]
  10519. ) {
  10520. _chapterData.push(
  10521. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10522. .chapterData[c]
  10523. );
  10524. }
  10525. }
  10526. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10527. _chapterData;
  10528. }
  10529. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10530. }
  10531. if (index == 1) {
  10532. this.unitJson = _unitJson;
  10533. this.$forceUpdate();
  10534. setTimeout(() => {
  10535. if (this.unitIndex != _unitIndex2) {
  10536. this.isDelete = 2;
  10537. this.unitIndex = _unitIndex2;
  10538. }
  10539. }, 0);
  10540. this.timer = setTimeout(() => {
  10541. this.seleteCourseUpdate();
  10542. }, 1000);
  10543. } else if (index == 2) {
  10544. let _this = this;
  10545. _this
  10546. .$confirm(
  10547. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10548. "提示",
  10549. {
  10550. confirmButtonText: "需要",
  10551. cancelButtonText: "取消",
  10552. type: "warning",
  10553. }
  10554. )
  10555. .then(() => {
  10556. if (_this.time()) {
  10557. _this.restoreWork(
  10558. _chapAarry[0],
  10559. _unitJson,
  10560. chapindex,
  10561. _unitJson2,
  10562. _unitIndex2
  10563. );
  10564. }
  10565. })
  10566. .catch(() => {
  10567. _this.unitJson = _unitJson;
  10568. _this.$forceUpdate();
  10569. setTimeout(() => {
  10570. if (this.unitIndex != _unitIndex2) {
  10571. this.isDelete = 2;
  10572. this.unitIndex = _unitIndex2;
  10573. }
  10574. }, 0);
  10575. _this.timer = setTimeout(() => {
  10576. _this.seleteCourseUpdate();
  10577. }, 1000);
  10578. });
  10579. }
  10580. // 在复制操作之前记录滚动位置
  10581. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10582. // 执行复制操作
  10583. // 复制操作完成后恢复滚动位置
  10584. this.$nextTick(() => {
  10585. if (this.$refs.scrollContainer) {
  10586. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10587. }
  10588. });
  10589. })
  10590. .catch((err) => {
  10591. console.error(err);
  10592. });
  10593. },
  10594. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10595. let params = [
  10596. {
  10597. cid: this.cid,
  10598. chapters: JSON.stringify(this.unitJson),
  10599. uid: this.userid,
  10600. chapid: chapid,
  10601. },
  10602. ];
  10603. this.ajax
  10604. .post(this.$store.state.api + "restoreWork", params)
  10605. .then((res) => {
  10606. this.$message({
  10607. message: "恢复成功",
  10608. type: "success",
  10609. });
  10610. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10611. this.unitJson = unitJson;
  10612. this.$forceUpdate();
  10613. setTimeout(() => {
  10614. if (this.unitIndex != unitIndex2) {
  10615. this.isDelete = 2;
  10616. this.unitIndex = unitIndex2;
  10617. }
  10618. }, 0);
  10619. this.timer = setTimeout(() => {
  10620. this.seleteCourseUpdate();
  10621. }, 1000);
  10622. })
  10623. .catch((err) => {
  10624. this.$message.error("网络不佳");
  10625. console.error(err);
  10626. });
  10627. },
  10628. getTypeName() {
  10629. console.log(this.courseTypeId);
  10630. this.$forceUpdate();
  10631. },
  10632. selectAllType() {
  10633. let params = {
  10634. org: this.org && this.org != "" ? this.org : "",
  10635. oid: this.oid && this.oid != "" ? this.oid : "",
  10636. };
  10637. this.ajax
  10638. .get(this.$store.state.api + "selectAllType", params)
  10639. .then((res) => {
  10640. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10641. res.data[0] = [...res.data[0], ...res.data[4]];
  10642. }
  10643. this.CourseType = res.data;
  10644. this.CourseType2 = [
  10645. { name: "智见课程", id: [] },
  10646. { name: "智行课程", id: [] },
  10647. { name: "智创课程", id: [] },
  10648. ];
  10649. for (var cti = 0; cti < res.data[0].length; cti++) {
  10650. if (
  10651. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10652. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10653. ) {
  10654. this.CourseType2[0].id.push(res.data[0][cti].id);
  10655. } else if (
  10656. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10657. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10658. ) {
  10659. this.CourseType2[1].id.push(res.data[0][cti].id);
  10660. } else if (
  10661. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10662. ) {
  10663. this.CourseType2[2].id.push(res.data[0][cti].id);
  10664. }
  10665. if (
  10666. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10667. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10668. ) {
  10669. res.data[0][cti].name = "年级";
  10670. } else if (
  10671. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10672. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10673. ) {
  10674. res.data[0][cti].name = "学科";
  10675. } else if (
  10676. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10677. ) {
  10678. res.data[0][cti].name = "主题";
  10679. }
  10680. }
  10681. let _courseTypeId = [];
  10682. for (var i = 0; i < res.data[0].length; i++) {
  10683. if (!this.cid) {
  10684. this.courseTypeId[res.data[0][i].id] = [];
  10685. }
  10686. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10687. // }
  10688. this.CourseTypeJson[res.data[0][i].id] = [];
  10689. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10690. if (res.data[0][i].name == "栏目") {
  10691. this.CourseType[0][i].name = "主题";
  10692. }
  10693. }
  10694. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10695. for (var j = 0; j < res.data[1].length; j++) {
  10696. if (
  10697. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10698. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10699. ) {
  10700. _courseTypeId.push(res.data[1][j].id);
  10701. }
  10702. if (res.data[0][i].id == res.data[1][j].pid) {
  10703. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10704. }
  10705. }
  10706. } else {
  10707. if (res.data[2].length > 0) {
  10708. for (var j = 0; j < res.data[2].length; j++) {
  10709. if (
  10710. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10711. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10712. ) {
  10713. _courseTypeId.push(res.data[2][j].id);
  10714. }
  10715. if (res.data[0][i].id == res.data[2][j].pid) {
  10716. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10717. }
  10718. }
  10719. }
  10720. if (res.data[3].length > 0) {
  10721. for (var j = 0; j < res.data[3].length; j++) {
  10722. if (
  10723. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10724. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10725. ) {
  10726. _courseTypeId.push(res.data[3][j].id);
  10727. }
  10728. if (res.data[0][i].id == res.data[3][j].pid) {
  10729. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10730. }
  10731. }
  10732. }
  10733. }
  10734. }
  10735. this.courseTypeId = _courseTypeId;
  10736. })
  10737. .catch((err) => {
  10738. console.error(err);
  10739. });
  10740. },
  10741. selectType() {
  10742. this.ajax
  10743. .get(this.$store.state.api + "selectType")
  10744. .then((res) => {
  10745. this.CourseType = res.data;
  10746. for (var i = 0; i < res.data[0].length; i++) {
  10747. if (!this.cid) {
  10748. this.courseTypeId[res.data[0][i].id] = "";
  10749. }
  10750. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10751. if (res.data[0][i].name == "栏目") {
  10752. this.CourseType[0][i].name = "主题";
  10753. }
  10754. }
  10755. for (var j = 0; j < res.data[1].length; j++) {
  10756. if (res.data[0][i].id == res.data[1][j].pid) {
  10757. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10758. this.CourseTypeJson[res.data[0][i].id] = [];
  10759. }
  10760. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10761. }
  10762. }
  10763. }
  10764. this.selectTypeByOid();
  10765. this.selectTypeByOrg();
  10766. })
  10767. .catch((err) => {
  10768. console.error(err);
  10769. });
  10770. },
  10771. selectTypeByOid() {
  10772. let params = {
  10773. oid: this.oid,
  10774. };
  10775. this.ajax
  10776. .get(this.$store.state.api + "selectTypeByOid", params)
  10777. .then((res) => {
  10778. for (var i = 0; i < res.data[0].length; i++) {
  10779. for (var j = 0; j < res.data[1].length; j++) {
  10780. if (res.data[0][i].id == res.data[1][j].pid) {
  10781. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10782. this.CourseTypeJson[res.data[0][i].id] = [];
  10783. }
  10784. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10785. }
  10786. }
  10787. }
  10788. })
  10789. .catch((err) => {
  10790. console.error(err);
  10791. });
  10792. },
  10793. selectTypeByOrg() {
  10794. let params = {
  10795. oid: this.org,
  10796. };
  10797. this.ajax
  10798. .get(this.$store.state.api + "selectTypeByOrg", params)
  10799. .then((res) => {
  10800. for (var i = 0; i < res.data[0].length; i++) {
  10801. for (var j = 0; j < res.data[1].length; j++) {
  10802. if (res.data[0][i].id == res.data[1][j].pid) {
  10803. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10804. this.CourseTypeJson[res.data[0][i].id] = [];
  10805. }
  10806. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10807. }
  10808. }
  10809. }
  10810. this.$forceUpdate();
  10811. })
  10812. .catch((err) => {
  10813. console.error(err);
  10814. });
  10815. },
  10816. OtherMb(type, task) {
  10817. if (task === 0 || task) {
  10818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10819. task
  10820. ].isEvaFold = true;
  10821. }
  10822. this.typeMode = type;
  10823. setTimeout(() => {
  10824. this.checkEva(this.checkId);
  10825. setTimeout(() => {
  10826. this.checkEva(this.checkId);
  10827. }, 100);
  10828. }, 100);
  10829. },
  10830. openMember() {
  10831. this.searchTN = "";
  10832. this.getTeacher();
  10833. this.dialogVisibleMember = true;
  10834. },
  10835. checkEva(id, type) {
  10836. this.dialogVisiblemb = false;
  10837. this.selectEva();
  10838. if (this.evalua != id && type == 2) {
  10839. this.$message.success("导入成功");
  10840. setTimeout(() => {
  10841. this.checkEva(id);
  10842. }, 100);
  10843. }
  10844. this.evalua = id;
  10845. this.checkId = id;
  10846. if (this.evalua != "") {
  10847. for (var i = 0; i < this.evaJuri.length; i++) {
  10848. if (this.evalua == this.evaJuri[i].id) {
  10849. this.eTitle = this.evaJuri[i].title;
  10850. this.eJson = JSON.parse(this.evaJuri[i].content);
  10851. }
  10852. }
  10853. this.data.data = [];
  10854. this.$forceUpdate();
  10855. setTimeout(() => {
  10856. this.setMindData();
  10857. }, 1000);
  10858. }
  10859. },
  10860. deleteEva() {
  10861. let _this = this;
  10862. if (_this.evalua == "") {
  10863. this.$message.warning("内容已经清空了,请勿重复清空");
  10864. return;
  10865. }
  10866. _this
  10867. .$confirm("确定删除此目标吗?", "提示", {
  10868. confirmButtonText: "确定",
  10869. cancelButtonText: "取消",
  10870. type: "warning",
  10871. })
  10872. .then(() => {
  10873. _this.evalua = "";
  10874. _this.checkId = "";
  10875. _this.eTitle = "";
  10876. let _unitJson = _this.unitJson;
  10877. for (var i = 0; i < _unitJson.length; i++) {
  10878. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10879. for (var j = 0; j < _task.length; j++) {
  10880. let _eList = _task[j].eList;
  10881. for (var k = 0; k < _eList.length; k++) {
  10882. delete _eList[k].target;
  10883. }
  10884. }
  10885. }
  10886. _this.$forceUpdate();
  10887. if (_this.cid) {
  10888. _this.updateWork();
  10889. }
  10890. })
  10891. .catch(() => {
  10892. return;
  10893. });
  10894. },
  10895. selectEva() {
  10896. let params = {
  10897. oid: this.oid,
  10898. };
  10899. this.ajax
  10900. .get(this.$store.state.api + "selectAllEvaluation", params)
  10901. .then((res) => {
  10902. this.evaJuri = res.data[0];
  10903. // 在复制操作之前记录滚动位置
  10904. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10905. // 执行复制操作
  10906. // 复制操作完成后恢复滚动位置
  10907. this.$nextTick(() => {
  10908. if (this.$refs.scrollContainer) {
  10909. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10910. }
  10911. });
  10912. })
  10913. .catch((err) => {
  10914. console.error(err);
  10915. });
  10916. },
  10917. setMindData() {
  10918. let targetArray = [];
  10919. this.data.data = [];
  10920. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10921. let _eJson = Object.keys(this.eJson);
  10922. let _e = this.eJson;
  10923. for (let i = 0; i < _eJson.length; i++) {
  10924. let element = _e[_eJson[i]];
  10925. this.data.data.push({
  10926. id: element.id,
  10927. parentid: "root",
  10928. topic: element.name,
  10929. });
  10930. // targetArray.push({
  10931. // id: element.id,
  10932. // parentid: "root",
  10933. // name: element.name,
  10934. // });
  10935. targetArray.push({
  10936. value: element.name,
  10937. label: element.name,
  10938. children: [],
  10939. });
  10940. let _eJsonc = Object.keys(element.child);
  10941. let _e2 = element.child;
  10942. for (let j = 0; j < _eJsonc.length; j++) {
  10943. let _ec = _e2[_eJsonc[j]];
  10944. this.data.data.push({
  10945. id: _ec.id,
  10946. parentid: element.id,
  10947. topic: _ec.name,
  10948. });
  10949. // targetArray.push({
  10950. // id: _ec.id,
  10951. // parentid: element.id,
  10952. // name: _ec.name,
  10953. // });
  10954. targetArray[i].children.push({
  10955. value: _ec.name,
  10956. label: _ec.name,
  10957. children: [],
  10958. });
  10959. let _eJsonz = Object.keys(_ec.child);
  10960. let _e3 = _ec.child;
  10961. for (let z = 0; z < _eJsonz.length; z++) {
  10962. let _ez = _e3[_eJsonz[z]];
  10963. this.data.data.push({
  10964. id: _ez.id,
  10965. parentid: _ec.id,
  10966. topic: _ez.name,
  10967. });
  10968. // targetArray.push({
  10969. // id: _ez.id,
  10970. // parentid: _ec.id,
  10971. // name: _ez.name,
  10972. // });
  10973. targetArray[i].children[j].children.push({
  10974. value: _ez.name,
  10975. label: _ez.name,
  10976. });
  10977. }
  10978. }
  10979. }
  10980. this.targetArray = targetArray;
  10981. this.$forceUpdate();
  10982. },
  10983. /*添加评价 */
  10984. addEList(index, tIndex) {
  10985. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10986. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10987. value: "",
  10988. detail: "",
  10989. score: 5,
  10990. })
  10991. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10992. { value: "", detail: "", score: 5 },
  10993. ]);
  10994. this.$forceUpdate();
  10995. },
  10996. openEList(index, tIndex) {
  10997. this.evaIndex = index;
  10998. this.evatIndex = tIndex;
  10999. this.evaBoxDialog = true;
  11000. },
  11001. addCET(index, tIndex) {
  11002. this.cetIndex = index;
  11003. this.cettIndex = tIndex;
  11004. this.selectAllType1();
  11005. },
  11006. addCETemplate() {
  11007. var array =
  11008. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11009. .eList;
  11010. let params = [
  11011. {
  11012. uid: this.userid,
  11013. n: this.templateName,
  11014. json: JSON.stringify(array),
  11015. t: 1,
  11016. oid: this.oid,
  11017. },
  11018. ];
  11019. this.ajax
  11020. .post(this.$store.state.api + "addCETShare", params)
  11021. .then((res) => {
  11022. this.addTypeByCET(res.data[0][0].id);
  11023. })
  11024. .catch((err) => {
  11025. this.$message.error("网络不佳");
  11026. console.error(err);
  11027. });
  11028. },
  11029. addTypeByCET(id) {
  11030. if (this.setTypeJson.two == "") {
  11031. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11032. return;
  11033. }
  11034. let params = {
  11035. cid: id,
  11036. };
  11037. this.ajax
  11038. .get(this.$store.state.api + "deleteCETLabel", params)
  11039. .then((res) => {
  11040. for (var i = 0; i < 2; i++) {
  11041. let tid = "";
  11042. if (i == 0) {
  11043. tid = this.setTypeJson.one;
  11044. } else {
  11045. tid = this.setTypeJson.two;
  11046. }
  11047. let params = [
  11048. {
  11049. cid: id,
  11050. tid: tid,
  11051. uid: this.userid,
  11052. },
  11053. ];
  11054. this.ajax
  11055. .post(this.$store.state.api + "addCETLabel", params)
  11056. .then((res) => {
  11057. this.$message({
  11058. message: "添加成功",
  11059. type: "success",
  11060. });
  11061. this.close();
  11062. })
  11063. .catch((err) => {
  11064. this.$message.error("网络不佳");
  11065. console.error(err);
  11066. });
  11067. }
  11068. })
  11069. .catch((err) => {
  11070. this.$message.error("网络不佳");
  11071. console.error(err);
  11072. });
  11073. },
  11074. updateEvaJson(array) {
  11075. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11076. this.evatIndex
  11077. ].eList = array;
  11078. },
  11079. forceUpdate() {
  11080. this.$forceUpdate();
  11081. },
  11082. deletEList(index, tIndex, eIndex) {
  11083. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11084. eIndex,
  11085. 1
  11086. );
  11087. this.$forceUpdate();
  11088. },
  11089. getChoosePic(t) {
  11090. this.chooseType = t;
  11091. this.getAllBanner();
  11092. },
  11093. getAllBanner() {
  11094. this.sysPicVisible = true;
  11095. let params = {
  11096. t: this.chooseType,
  11097. };
  11098. this.ajax
  11099. .get(this.$store.state.api + "selectAllBanner", params)
  11100. .then((res) => {
  11101. this.sysPic = res.data[0];
  11102. })
  11103. .catch((err) => {
  11104. console.error(err);
  11105. });
  11106. },
  11107. // getClass() {
  11108. // let params = {
  11109. // oid: this.oid,
  11110. // };
  11111. // this.ajax
  11112. // .get(this.$store.state.api + "selectClassBySchool", params)
  11113. // .then((res) => {
  11114. // this.classJuri = res.data[0];
  11115. // })
  11116. // .catch((err) => {
  11117. // console.error(err);
  11118. // });
  11119. // },
  11120. deleteSysPic() {
  11121. this.cover = [];
  11122. this.isSysPic = false;
  11123. this.isSysPic2 = false;
  11124. },
  11125. deleteSelectPic() {
  11126. this.selectJson.url = "";
  11127. },
  11128. setEListStar() {
  11129. this.$forceUpdate();
  11130. },
  11131. deletRateList(i) {
  11132. this.rateJson.splice(i, 1);
  11133. },
  11134. addRateList() {
  11135. this.rateJson.push({ detail: "", score: 5, value: "" });
  11136. },
  11137. addSt() {
  11138. this.sentenceList.push({
  11139. sentenceTitle: "",
  11140. addSentence: [],
  11141. rightAnswer: [],
  11142. });
  11143. },
  11144. addSen(i) {
  11145. if (!this.sentenceList[i].sentenceTitle) {
  11146. this.$message.error("请填写卡片内容!");
  11147. return;
  11148. }
  11149. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11150. this.$message.error("卡片内容字数不能超过10位");
  11151. return;
  11152. }
  11153. if (
  11154. this.sentenceList[i].addSentence.indexOf(
  11155. this.sentenceList[i].sentenceTitle
  11156. ) !== -1
  11157. ) {
  11158. this.$message.error("不能添加重复的卡片内容!");
  11159. return;
  11160. }
  11161. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11162. // this.isPushTitleList.push(this.sentenceTitle);
  11163. this.sentenceList[i].sentenceTitle = "";
  11164. },
  11165. setRightAnswer(s, i, j) {
  11166. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11167. this.sentenceList[i].rightAnswer.push(s);
  11168. }
  11169. },
  11170. returnCard(r, i, j) {
  11171. this.sentenceList[i].rightAnswer.splice(j, 1);
  11172. },
  11173. addSentenceTool() {
  11174. for (var i = 0; i < this.sentenceList.length; i++) {
  11175. if (this.sentenceList[i].rightAnswer.length == 0) {
  11176. this.$message.error(`请将题目${i + 1}设置完整。`);
  11177. return;
  11178. }
  11179. if (
  11180. this.sentenceList[i].addSentence.length !=
  11181. this.sentenceList[i].rightAnswer.length
  11182. ) {
  11183. this.$message.error(`请将题目${i + 1}设置完整。`);
  11184. return;
  11185. }
  11186. }
  11187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11188. this.taskCount
  11189. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11190. this.sentenceList = [
  11191. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11192. ];
  11193. this.dialogVisibleSentence = false;
  11194. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11195. // itemTaskIndex
  11196. // ].toolChoose[toolIndex].tool = [];
  11197. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11198. // itemTaskIndex
  11199. // ].toolChoose[toolIndex].tool.push(i);
  11200. if (
  11201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11202. .toolChoose[this.toolIndex].tool != 47
  11203. ) {
  11204. this.addTools(47, this.taskCount, this.toolIndex);
  11205. }
  11206. },
  11207. addTableJson() {
  11208. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11209. // this.$message.error("请将信息填写完整!");
  11210. // return;
  11211. // }
  11212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11213. this.taskCount
  11214. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11215. // this.tableJson = [{ text: "" }];
  11216. // this.dialogVisibleTable = false;
  11217. this.$message.success("上传成功");
  11218. if (
  11219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11220. .toolChoose[this.toolIndex].tool != 48
  11221. ) {
  11222. this.addTools(48, this.taskCount, this.toolIndex);
  11223. }
  11224. },
  11225. addWordJson() {
  11226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11227. this.taskCount
  11228. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11229. // this.wordJson = [{ text: "" }];
  11230. // this.dialogVisibleWord = false;
  11231. this.$message.success("上传成功");
  11232. if (
  11233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11234. .toolChoose[this.toolIndex].tool != 52
  11235. ) {
  11236. this.addTools(52, this.taskCount, this.toolIndex);
  11237. }
  11238. },
  11239. addMoreUpload() {
  11240. if (this.uploadJson.length == 0) {
  11241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11242. this.taskCount
  11243. ].toolChoose[this.toolIndex].uploadJson = [];
  11244. } else {
  11245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11246. this.taskCount
  11247. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11248. }
  11249. this.uploadJson = [];
  11250. this.dialogVisibleMoreUpload = false;
  11251. if (
  11252. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11253. .toolChoose[this.toolIndex].tool != 50
  11254. ) {
  11255. this.addTools(50, this.taskCount, this.toolIndex);
  11256. }
  11257. },
  11258. addPreTime() {
  11259. if (this.preTime == 0) {
  11260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11261. this.taskCount
  11262. ].toolChoose[this.toolIndex].preTime = 0;
  11263. } else {
  11264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11265. this.taskCount
  11266. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11267. }
  11268. this.preTime = 0;
  11269. this.dialogVisiblePreTime = false;
  11270. if (
  11271. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11272. .toolChoose[this.toolIndex].tool != 10
  11273. ) {
  11274. this.addTools(10, this.taskCount, this.toolIndex);
  11275. }
  11276. },
  11277. goToTask(i) {
  11278. this.toolIndexType = "";
  11279. if (this.isClickColor == i + 1) {
  11280. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11281. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11282. // } else {
  11283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11284. i
  11285. ].toolOpen = true;
  11286. // }
  11287. this.$forceUpdate();
  11288. return;
  11289. }
  11290. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11291. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11292. // } else {
  11293. document.querySelectorAll(".basic_box")[0].scrollTop =
  11294. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11295. this.isClickColor = i + 1;
  11296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11297. // }
  11298. this.$forceUpdate();
  11299. },
  11300. taskOpen(i, stageIndex) {
  11301. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11302. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11303. } else {
  11304. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11305. }
  11306. this.updateWork3(stageIndex);
  11307. this.$forceUpdate();
  11308. },
  11309. goToTask2(i, stage) {
  11310. this.toolIndexType = "";
  11311. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11312. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11313. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11314. // } else {
  11315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11316. i
  11317. ].toolOpen = true;
  11318. // }
  11319. this.$forceUpdate();
  11320. return;
  11321. }
  11322. if (this.unitIndex != stage) {
  11323. if (this.panUnitJson() == 2) {
  11324. return;
  11325. }
  11326. this.unitSet(stage);
  11327. }
  11328. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11329. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11330. // } else {
  11331. document.querySelectorAll(".basic_box")[0].scrollTop =
  11332. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11333. this.isClickColor = i + 1;
  11334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11335. // }
  11336. this.$forceUpdate();
  11337. },
  11338. taskMove(type, index) {
  11339. this.$confirm(
  11340. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11341. "提示",
  11342. {
  11343. confirmButtonText: "确定",
  11344. cancelButtonText: "取消",
  11345. type: "warning",
  11346. }
  11347. )
  11348. .then(() => {
  11349. if (type == 1) {
  11350. if (index > 0) {
  11351. let a = JSON.parse(
  11352. JSON.stringify(
  11353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11354. index - 1
  11355. ]
  11356. )
  11357. );
  11358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11361. }
  11362. } else {
  11363. if (
  11364. index <
  11365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11366. ) {
  11367. let a = JSON.parse(
  11368. JSON.stringify(
  11369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11370. index + 1
  11371. ]
  11372. )
  11373. );
  11374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11377. }
  11378. }
  11379. this.$forceUpdate();
  11380. })
  11381. .catch(() => {
  11382. return;
  11383. });
  11384. },
  11385. stageMove(type, index) {
  11386. if (type == 1) {
  11387. if (index > 0) {
  11388. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  11389. let acid = JSON.parse(
  11390. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  11391. );
  11392. let bcid = JSON.parse(
  11393. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11394. );
  11395. this.unitJson3[index - 1] = this.unitJson3[index];
  11396. this.unitJson3[index] = a;
  11397. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  11398. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11399. }
  11400. } else {
  11401. if (index < this.unitJson3.length - 1) {
  11402. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11403. let acid = JSON.parse(
  11404. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11405. );
  11406. let bcid = JSON.parse(
  11407. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11408. );
  11409. this.unitJson3[index + 1] = this.unitJson3[index];
  11410. this.unitJson3[index] = a;
  11411. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11412. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11413. }
  11414. }
  11415. this.$forceUpdate();
  11416. },
  11417. addGroup(i) {
  11418. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11419. this.groupJson.group.push({
  11420. name: "第" + (this.groupJson.group.length + 1) + "组",
  11421. });
  11422. },
  11423. deleteGroup(i) {
  11424. this.groupJson.group.splice(i, 1);
  11425. },
  11426. numberPan() {
  11427. if (
  11428. /[^\d]/.test(this.groupJson.number) ||
  11429. this.groupJson.number < 2 ||
  11430. this.groupJson.number > 10
  11431. ) {
  11432. this.$message.error("请输入2-10的数字");
  11433. this.groupJson.number = "";
  11434. }
  11435. },
  11436. addGroupJson() {
  11437. for (var i = 0; i < this.groupJson.group.length; i++) {
  11438. if (!this.groupJson.group[i].name) {
  11439. this.$message.error("请将信息填写完整!");
  11440. return;
  11441. }
  11442. }
  11443. if (!this.groupJson.number) {
  11444. this.$message.error("请将信息填写完整!");
  11445. return;
  11446. }
  11447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11448. this.taskCount
  11449. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11450. JSON.stringify(this.groupJson)
  11451. );
  11452. this.dialogVisibleGroup = false;
  11453. this.groupJson = {};
  11454. if (
  11455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11456. .toolChoose[this.toolIndex].tool != 49
  11457. ) {
  11458. this.addTools(49, this.taskCount, this.toolIndex);
  11459. }
  11460. },
  11461. updateTime(preTime) {
  11462. this.preTime = preTime;
  11463. },
  11464. InviteChange(val) {
  11465. console.log(val);
  11466. let _check = [];
  11467. let _check2 = [];
  11468. for (var i = 0; i < this.grade2.length; i++) {
  11469. var gid = this.grade2[i].id;
  11470. _check.push(gid);
  11471. }
  11472. for (var i = 0; i < this.checkboxList2.length; i++) {
  11473. var _id = this.checkboxList2[i];
  11474. if (_check.indexOf(_id) !== -1) {
  11475. _check2.push(_id);
  11476. }
  11477. }
  11478. this.checkAll = _check2.length === _check.length;
  11479. return;
  11480. let array = JSON.parse(JSON.stringify(val));
  11481. this.inviteCode = this.inviteCode.filter((el) => {
  11482. if (val.indexOf(el.cid) != -1) {
  11483. array.splice(array.indexOf(el.cid), 1);
  11484. return el;
  11485. }
  11486. });
  11487. for (var i = 0; i < array.length; i++) {
  11488. this.getInviteCode(array[i]);
  11489. }
  11490. },
  11491. InviteChange2(val) {
  11492. console.log(val);
  11493. let _check = [];
  11494. let _check2 = [];
  11495. for (var i = 0; i < this.teacherJuri.length; i++) {
  11496. var gid = this.teacherJuri[i].userid;
  11497. _check.push(gid);
  11498. }
  11499. for (var i = 0; i < this.checkboxList3.length; i++) {
  11500. var _id = this.checkboxList3[i];
  11501. if (_check.indexOf(_id) !== -1) {
  11502. _check2.push(_id);
  11503. }
  11504. }
  11505. this.checkAll2 = _check2.length === _check.length;
  11506. this.setMan();
  11507. return;
  11508. let array = JSON.parse(JSON.stringify(val));
  11509. this.inviteCode = this.inviteCode.filter((el) => {
  11510. if (val.indexOf(el.cid) != -1) {
  11511. array.splice(array.indexOf(el.cid), 1);
  11512. return el;
  11513. }
  11514. });
  11515. for (var i = 0; i < array.length; i++) {
  11516. this.getInviteCode(array[i]);
  11517. }
  11518. },
  11519. handleCheckAllChange(val) {
  11520. if (val) {
  11521. for (var i = 0; i < this.grade2.length; i++) {
  11522. var gid = this.grade2[i].id;
  11523. if (this.checkboxList2.indexOf(gid) === -1) {
  11524. this.checkboxList2.push(gid);
  11525. }
  11526. }
  11527. } else {
  11528. let _check = [];
  11529. let _check2 = [];
  11530. for (var i = 0; i < this.grade2.length; i++) {
  11531. var gid = this.grade2[i].id;
  11532. _check.push(gid);
  11533. }
  11534. for (var i = 0; i < this.checkboxList2.length; i++) {
  11535. var _id = this.checkboxList2[i];
  11536. if (_check.indexOf(_id) === -1) {
  11537. _check2.push(_id);
  11538. }
  11539. }
  11540. this.checkboxList2 = _check2;
  11541. }
  11542. this.isIndeterminate = false;
  11543. },
  11544. handleCheckAllChange2(val) {
  11545. if (val) {
  11546. for (var i = 0; i < this.teacherJuri.length; i++) {
  11547. var gid = this.teacherJuri[i].userid;
  11548. if (this.checkboxList3.indexOf(gid) === -1) {
  11549. this.checkboxList3.push(gid);
  11550. }
  11551. }
  11552. } else {
  11553. let _check = [];
  11554. let _check2 = [];
  11555. for (var i = 0; i < this.teacherJuri.length; i++) {
  11556. var gid = this.teacherJuri[i].userid;
  11557. _check.push(gid);
  11558. }
  11559. for (var i = 0; i < this.checkboxList3.length; i++) {
  11560. var _id = this.checkboxList3[i];
  11561. if (_check.indexOf(_id) === -1) {
  11562. _check2.push(_id);
  11563. }
  11564. }
  11565. this.checkboxList3 = _check2;
  11566. }
  11567. this.isIndeterminate2 = false;
  11568. },
  11569. async getInviteCode(cid) {
  11570. let code = this.randomNumber();
  11571. let params = {
  11572. code: code,
  11573. oid: this.oid,
  11574. };
  11575. let type = 1;
  11576. for (var i = 0; i < this.inviteCode.length; i++) {
  11577. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11578. type = 2;
  11579. }
  11580. }
  11581. if (type == 2) {
  11582. this.getInviteCode(cid);
  11583. return;
  11584. }
  11585. const res = await this.ajax.get(
  11586. this.$store.state.api + "selectInviteCode2",
  11587. params
  11588. );
  11589. if (
  11590. res.data.length &&
  11591. res.data[0].length &&
  11592. res.data[0][0].courseId != this.cid
  11593. ) {
  11594. this.getInviteCode(cid);
  11595. return;
  11596. }
  11597. let array = [];
  11598. for (var i = 0; i < this.inviteCode.length; i++) {
  11599. array.push(this.inviteCode[i].cid);
  11600. }
  11601. if (array.indexOf(cid) != -1) {
  11602. this.inviteCode[array.indexOf(cid)].ic = code;
  11603. } else {
  11604. this.inviteCode.push({ cid: cid, ic: code });
  11605. }
  11606. },
  11607. OpenInviteD(cid) {
  11608. let array = [];
  11609. this.icode = "";
  11610. for (var i = 0; i < this.inviteCode.length; i++) {
  11611. array.push(this.inviteCode[i].cid);
  11612. }
  11613. if (array.indexOf(cid) != -1) {
  11614. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11615. }
  11616. this.inviteId = cid;
  11617. this.dialogVisibleInvite = true;
  11618. },
  11619. addInvite() {
  11620. let reg = /^[A-Za-z0-9]{4,}$/;
  11621. if (!reg.test(this.icode)) {
  11622. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11623. return;
  11624. }
  11625. let type = 1;
  11626. for (var i = 0; i < this.inviteCode.length; i++) {
  11627. if (
  11628. this.inviteCode[i].cid != this.inviteId &&
  11629. this.icode == this.inviteCode[i].ic
  11630. ) {
  11631. type = 2;
  11632. }
  11633. }
  11634. if (type == 2) {
  11635. this.$message.error("已有此随机码,不能重复");
  11636. return;
  11637. }
  11638. let params = {
  11639. code: this.icode,
  11640. oid: this.oid,
  11641. };
  11642. this.ajax
  11643. .get(this.$store.state.api + "selectInviteCode", params)
  11644. .then((res) => {
  11645. if (
  11646. res.data.length &&
  11647. res.data[0].length &&
  11648. res.data[0][0].courseId != this.cid
  11649. ) {
  11650. this.$message.error("已有此随机码,不能重复");
  11651. return;
  11652. }
  11653. let array = [];
  11654. for (var i = 0; i < this.inviteCode.length; i++) {
  11655. array.push(this.inviteCode[i].cid);
  11656. }
  11657. if (array.indexOf(this.inviteId) != -1) {
  11658. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11659. } else {
  11660. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11661. }
  11662. this.icode = "";
  11663. this.dialogVisibleInvite = false;
  11664. })
  11665. .catch((err) => {
  11666. console.error(err);
  11667. });
  11668. },
  11669. randomNumber() {
  11670. // 随机生成两位数
  11671. // let num = Math.floor(Math.random() * 900) + 100;
  11672. // 生成 0 到 99 之间的随机整数
  11673. const randomNumber = Math.floor(Math.random() * 100);
  11674. // 如果随机数小于 10,补上前导零
  11675. const num =
  11676. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11677. // 随机生成两个大写字母
  11678. let letters = "";
  11679. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11680. for (let i = 0; i < 3; i++) {
  11681. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11682. }
  11683. // 随机生成两位数字和字母的组合
  11684. let mix = "";
  11685. let chars =
  11686. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11687. for (let i = 0; i < 3; i++) {
  11688. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11689. mix += char;
  11690. }
  11691. // 随机选择一种类型
  11692. let type = Math.floor(Math.random() * 3);
  11693. return num;
  11694. // 根据类型输出结果
  11695. switch (type) {
  11696. case 0:
  11697. console.log(num); // 输出两位数
  11698. return num;
  11699. case 1:
  11700. console.log(letters); // 输出两个大写字母
  11701. return letters;
  11702. case 2:
  11703. console.log(mix); // 输出两位数字和字母的组合
  11704. return mix;
  11705. }
  11706. },
  11707. getPaste() {
  11708. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11709. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11710. if (!iframe && !iframe2) {
  11711. return;
  11712. }
  11713. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11714. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11715. if (copyData && copyData.stageData && copyData.stageData.length) {
  11716. this.isPasteStage = true;
  11717. }
  11718. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11719. this.isPasteStage = true;
  11720. }
  11721. if (copyData && copyData.selectData.length) {
  11722. this.isPasteChoice = true;
  11723. }
  11724. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11725. this.isPasteTask = true;
  11726. }
  11727. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11728. this.isPasteTask = true;
  11729. }
  11730. },
  11731. searchImage() {
  11732. var _this = this;
  11733. _this.imageList = [];
  11734. if (!_this.searchImageValue) {
  11735. _this.sysPicVisible2 = true;
  11736. return;
  11737. }
  11738. _this.imageloading = true;
  11739. _this.ajax
  11740. .post("https://gpt.cocorobo.cn/search_image", {
  11741. page: _this.ppage,
  11742. pagesize: 9,
  11743. query: _this.searchImageValue,
  11744. })
  11745. .then(function (response) {
  11746. // console.log(response.data.data);
  11747. var data = response.data.FunctionResponse.result;
  11748. for (var i = 0; i < data.length; i++) {
  11749. _this.imageList.push({ url: data[i].thumbnail });
  11750. }
  11751. _this.imageloading = false;
  11752. })
  11753. .catch(function (error) {
  11754. console.log(error);
  11755. });
  11756. _this.sysPicVisible2 = true;
  11757. },
  11758. changePicture() {
  11759. this.ppage++;
  11760. this.searchImage();
  11761. },
  11762. resetImage() {
  11763. this.ppage = 1;
  11764. this.searchImage();
  11765. },
  11766. jumpGj(i, j) {
  11767. if (i + 1 != this.isClickColor) {
  11768. this.isClickColor = i + 1;
  11769. }
  11770. var a = document.scrollingElement;
  11771. this.toolIndexType = `gj${i}${j}`;
  11772. let target = document.querySelector(`#gj${i}${j}`);
  11773. if (target) {
  11774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11775. setTimeout(() => {
  11776. target.scrollIntoView(true);
  11777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11778. j
  11779. ].isFold3 = false;
  11780. setTimeout(() => {
  11781. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11782. }, 0);
  11783. }, 0);
  11784. }
  11785. },
  11786. jumpGj2(i, j, k) {
  11787. if (this.unitIndex != k) {
  11788. if (this.panUnitJson() == 2) {
  11789. return;
  11790. }
  11791. this.unitSet(k);
  11792. }
  11793. setTimeout(() => {
  11794. if (i + 1 != this.isClickColor) {
  11795. this.isClickColor = i + 1;
  11796. }
  11797. var a = document.scrollingElement;
  11798. this.toolIndexType = `gj${i}${j}${k}`;
  11799. let target = document.querySelector(`#gj${i}${j}`);
  11800. if (target) {
  11801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11802. setTimeout(() => {
  11803. target.scrollIntoView(true);
  11804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11805. j
  11806. ].isFold3 = false;
  11807. setTimeout(() => {
  11808. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11809. }, 0);
  11810. }, 0);
  11811. }
  11812. }, 0);
  11813. },
  11814. dragStart(val, i, j) {
  11815. console.log(this.taskCount);
  11816. this.dragType = "drag";
  11817. this.taskCount = j;
  11818. this.oldIndex = i;
  11819. this.oldData = val;
  11820. },
  11821. dragOver(i, j) {
  11822. this.typeIndex = "chapter-" + j + "-" + i;
  11823. this.newIndex = i;
  11824. },
  11825. dragEnd() {
  11826. if (this.dragType != "drag") {
  11827. this.typeIndex = "";
  11828. this.newIndex = "";
  11829. this.dragType = "";
  11830. this.isdrag = "";
  11831. return;
  11832. }
  11833. console.log(this.taskCount);
  11834. let newItems = [
  11835. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11836. .chapterData,
  11837. ];
  11838. // 删除老的节点
  11839. newItems.splice(this.oldIndex, 1);
  11840. // 在列表中目标位置增加新的节点
  11841. newItems.splice(this.newIndex, 0, this.oldData);
  11842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11843. this.taskCount
  11844. ].chapterData = [...newItems];
  11845. this.typeIndex = "";
  11846. this.newIndex = "";
  11847. this.dragType = "";
  11848. this.isdrag = "";
  11849. this.$forceUpdate();
  11850. },
  11851. dragTaskStart(val, i, j) {
  11852. this.dragType = "task";
  11853. this.oldIndex = i;
  11854. this.oldData = val;
  11855. this.oldUnitIndex = j;
  11856. },
  11857. dragTaskOver(i, j) {
  11858. this.typeIndex = "task-" + i;
  11859. this.newIndex = i;
  11860. this.checkUnitIndex = j;
  11861. },
  11862. async dragTaskEnd() {
  11863. if (this.dragType != "task") {
  11864. this.newIndex = "";
  11865. this.dragType = "";
  11866. this.typeIndex = "";
  11867. this.checkUnitIndex = "";
  11868. this.isdrag = "";
  11869. return;
  11870. }
  11871. if (
  11872. this.newIndex == this.oldIndex &&
  11873. this.oldUnitIndex == this.checkUnitIndex
  11874. ) {
  11875. this.newIndex = "";
  11876. this.dragType = "";
  11877. this.typeIndex = "";
  11878. this.checkUnitIndex = "";
  11879. this.isdrag = "";
  11880. return;
  11881. }
  11882. let count1 = await this.getWorksCount(
  11883. 2,
  11884. this.checkUnitIndex,
  11885. this.newIndex,
  11886. 0
  11887. );
  11888. let count2 = await this.getWorksCount(
  11889. 2,
  11890. this.oldUnitIndex,
  11891. this.oldIndex,
  11892. 0
  11893. );
  11894. if (count1 > 0 || count2 > 0) {
  11895. this.$confirm(
  11896. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11897. "提示",
  11898. {
  11899. confirmButtonText: "确定",
  11900. cancelButtonText: "取消",
  11901. type: "warning",
  11902. }
  11903. )
  11904. .then(() => {
  11905. if (this.oldUnitIndex != this.checkUnitIndex) {
  11906. let newItems = [
  11907. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11908. ];
  11909. // 删除老的节点
  11910. newItems.splice(this.oldIndex, 1);
  11911. // 在列表中目标位置增加新的节点
  11912. let newItems2 = [
  11913. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11914. ];
  11915. newItems2.splice(this.newIndex, 0, this.oldData);
  11916. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11917. ...newItems,
  11918. ];
  11919. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11920. ...newItems2,
  11921. ];
  11922. } else {
  11923. let newItems = [
  11924. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11925. ];
  11926. let chapterData = []
  11927. if (this.oldIndex == 0) {
  11928. chapterData = newItems[this.oldIndex].chapterData
  11929. newItems[this.oldIndex].chapterData = []
  11930. } else if (this.newIndex == 0) {
  11931. chapterData = newItems[this.newIndex].chapterData
  11932. newItems[this.oldIndex].chapterData = []
  11933. }
  11934. // 删除老的节点
  11935. newItems.splice(this.oldIndex, 1);
  11936. // 在列表中目标位置增加新的节点
  11937. newItems.splice(this.newIndex, 0, this.oldData);
  11938. if (this.oldIndex == 0 || this.newIndex == 0) {
  11939. newItems[0].chapterData = chapterData
  11940. }
  11941. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11942. ...newItems,
  11943. ];
  11944. }
  11945. this.typeIndex = "";
  11946. this.newIndex = "";
  11947. this.dragType = "";
  11948. this.checkUnitIndex = "";
  11949. this.isdrag = "";
  11950. this.updateWork();
  11951. this.$forceUpdate();
  11952. })
  11953. .catch(() => {
  11954. this.newIndex = "";
  11955. this.dragType = "";
  11956. this.typeIndex = "";
  11957. this.checkUnitIndex = "";
  11958. this.isdrag = "";
  11959. return;
  11960. });
  11961. } else {
  11962. if (this.oldUnitIndex != this.checkUnitIndex) {
  11963. let newItems = [
  11964. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11965. ];
  11966. // 删除老的节点
  11967. newItems.splice(this.oldIndex, 1);
  11968. // 在列表中目标位置增加新的节点
  11969. let newItems2 = [
  11970. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11971. ];
  11972. newItems2.splice(this.newIndex, 0, this.oldData);
  11973. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11974. ...newItems,
  11975. ];
  11976. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11977. ...newItems2,
  11978. ];
  11979. } else {
  11980. let newItems = [
  11981. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11982. ];
  11983. let chapterData = []
  11984. if (this.oldIndex == 0) {
  11985. chapterData = newItems[this.oldIndex].chapterData
  11986. newItems[this.oldIndex].chapterData = []
  11987. } else if (this.newIndex == 0) {
  11988. chapterData = newItems[this.newIndex].chapterData
  11989. newItems[this.oldIndex].chapterData = []
  11990. }
  11991. // 删除老的节点
  11992. newItems.splice(this.oldIndex, 1);
  11993. // 在列表中目标位置增加新的节点
  11994. newItems.splice(this.newIndex, 0, this.oldData);
  11995. if (this.oldIndex == 0 || this.newIndex == 0) {
  11996. newItems[0].chapterData = chapterData
  11997. }
  11998. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11999. ...newItems,
  12000. ];
  12001. }
  12002. this.typeIndex = "";
  12003. this.newIndex = "";
  12004. this.dragType = "";
  12005. this.checkUnitIndex = "";
  12006. this.isdrag = "";
  12007. this.updateWork();
  12008. this.$forceUpdate();
  12009. }
  12010. },
  12011. dragUnitStart(val, i) {
  12012. this.dragType = "Unit";
  12013. this.oldIndex = i;
  12014. this.oldData = val;
  12015. },
  12016. dragUnitOver(i) {
  12017. this.typeIndex = "Unit-" + i;
  12018. this.newIndex = i;
  12019. console.log(i, this.unitJson[i].toolOpen);
  12020. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12021. this.unitJson[i].toolOpen = true;
  12022. this.updateWork();
  12023. this.$forceUpdate();
  12024. }
  12025. },
  12026. async dragUnitEnd() {
  12027. if (this.dragType != "Unit") {
  12028. this.newIndex = "";
  12029. this.dragType = "";
  12030. this.typeIndex = "";
  12031. this.isdrag = "";
  12032. return;
  12033. }
  12034. if (this.newIndex == this.oldIndex) {
  12035. this.newIndex = "";
  12036. this.dragType = "";
  12037. this.typeIndex = "";
  12038. this.isdrag = "";
  12039. return;
  12040. }
  12041. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12042. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12043. console.log(count1, count2);
  12044. if (count1 > 0 || count2 > 0) {
  12045. this.$confirm(
  12046. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12047. "提示",
  12048. {
  12049. confirmButtonText: "确定",
  12050. cancelButtonText: "取消",
  12051. type: "warning",
  12052. }
  12053. )
  12054. .then(() => {
  12055. let newItems = [...this.unitJson];
  12056. // 删除老的节点
  12057. newItems.splice(this.oldIndex, 1);
  12058. // 在列表中目标位置增加新的节点
  12059. newItems.splice(this.newIndex, 0, this.oldData);
  12060. this.unitJson = [...newItems];
  12061. this.typeIndex = "";
  12062. this.newIndex = "";
  12063. this.dragType = "";
  12064. this.isdrag = "";
  12065. this.updateWork();
  12066. this.$forceUpdate();
  12067. })
  12068. .catch(() => {
  12069. this.newIndex = "";
  12070. this.dragType = "";
  12071. this.typeIndex = "";
  12072. this.isdrag = "";
  12073. return;
  12074. });
  12075. } else {
  12076. let newItems = [...this.unitJson];
  12077. // 删除老的节点
  12078. newItems.splice(this.oldIndex, 1);
  12079. // 在列表中目标位置增加新的节点
  12080. newItems.splice(this.newIndex, 0, this.oldData);
  12081. this.unitJson = [...newItems];
  12082. this.typeIndex = "";
  12083. this.newIndex = "";
  12084. this.dragType = "";
  12085. this.isdrag = "";
  12086. this.updateWork();
  12087. this.$forceUpdate();
  12088. }
  12089. },
  12090. getWorksCount(type, stage, task, tool) {
  12091. return new Promise((resolve, reject) => {
  12092. let params = [
  12093. {
  12094. cid: this.cid,
  12095. stage: stage,
  12096. task: task,
  12097. tool: tool,
  12098. type: type,
  12099. },
  12100. ];
  12101. this.ajax
  12102. .post(this.$store.state.api + "getCourseWorkCount", params)
  12103. .then((res) => {
  12104. let count = res.data[0][0].count;
  12105. resolve(count);
  12106. })
  12107. .catch((err) => {
  12108. resolve(0);
  12109. this.$message.error("网络不佳");
  12110. console.error(err);
  12111. });
  12112. });
  12113. },
  12114. getTwoType(id) {
  12115. this.twoJson = [];
  12116. var array = this.CourseTypeJson1[
  12117. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12118. ].filter((e) => {
  12119. return e.ppid == id;
  12120. });
  12121. this.twoJson = array;
  12122. this.$forceUpdate();
  12123. },
  12124. ctype() {
  12125. this.oneJson =
  12126. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12127. },
  12128. selectAllType1() {
  12129. this.CourseType1 = [];
  12130. this.CourseTypeJson1 = {};
  12131. this.courseTypeId1 = {};
  12132. this.$forceUpdate();
  12133. let params = {
  12134. org: this.org && this.org != "" ? this.org : "",
  12135. oid: this.oid && this.oid != "" ? this.oid : "",
  12136. };
  12137. this.ajax
  12138. .get(this.$store.state.api + "selectAllEvaType", params)
  12139. .then((res) => {
  12140. this.CourseType1 = res.data;
  12141. for (var i = 0; i < res.data[0].length; i++) {
  12142. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12143. res.data[0][i].name = "一级分类";
  12144. } else if (
  12145. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12146. ) {
  12147. res.data[0][i].name = "二级分类";
  12148. }
  12149. if (!this.cid) {
  12150. this.courseTypeId1[res.data[0][i].id] = [];
  12151. }
  12152. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12153. this.CourseTypeJson1[res.data[0][i].id] = [];
  12154. }
  12155. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12156. for (var j = 0; j < res.data[1].length; j++) {
  12157. if (res.data[0][i].id == res.data[1][j].pid) {
  12158. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12159. }
  12160. }
  12161. // } else {
  12162. if (res.data[2].length > 0) {
  12163. for (var j = 0; j < res.data[2].length; j++) {
  12164. if (res.data[0][i].id == res.data[2][j].pid) {
  12165. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12166. }
  12167. }
  12168. }
  12169. if (res.data[3].length > 0) {
  12170. for (var j = 0; j < res.data[3].length; j++) {
  12171. if (res.data[0][i].id == res.data[3][j].pid) {
  12172. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12173. }
  12174. }
  12175. }
  12176. // }
  12177. }
  12178. this.ctype();
  12179. this.cetBoxDialog = true;
  12180. })
  12181. .catch((err) => {
  12182. console.error(err);
  12183. });
  12184. },
  12185. openAiDialog(clickType, type, callback, index, tindex) {
  12186. this.clickType = clickType
  12187. let sub = []
  12188. if (this.courseTypeId.length) {
  12189. for (var i = 0; i < this.courseTypeId.length; i++) {
  12190. let _sid = this.courseTypeId[i]
  12191. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12192. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12193. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12194. }
  12195. }
  12196. }
  12197. }
  12198. if (type == "aiDetail") {
  12199. if (this.ttextLoading) {
  12200. this.$message({
  12201. message: "请回答完毕后再次发送",
  12202. type: "warning"
  12203. });
  12204. return;
  12205. }
  12206. this.aitype = "aiDetail"
  12207. this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12208. } else if (type == "aiOutline") {
  12209. this.aitype = "aiOutline"
  12210. this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12211. } else if (type == "aiTask") {
  12212. this.aitype = "aiTask"
  12213. var _text = ""
  12214. for (var i = 0; i < this.teacherText.length; i++) {
  12215. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail} \n`
  12216. }
  12217. this.aiText = `请根据${_text}。`
  12218. this.aiCallBack = callback
  12219. } else if (type == "aiDetail1") {
  12220. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12221. this.$message({
  12222. message: "请回答完毕后再次发送",
  12223. type: "warning"
  12224. });
  12225. return;
  12226. }
  12227. this.aitype = "aiDetail1"
  12228. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12229. this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12230. this.aiIndex = index
  12231. } else if (type == "aiDetail2") {
  12232. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12233. this.$message({
  12234. message: "请回答完毕后再次发送",
  12235. type: "warning"
  12236. });
  12237. return;
  12238. }
  12239. this.aitype = "aiDetail2"
  12240. this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12241. this.aiIndex = index
  12242. } else if (type == "aiDetail3") {
  12243. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12244. this.$message({
  12245. message: "请回答完毕后再次发送",
  12246. type: "warning"
  12247. });
  12248. return;
  12249. }
  12250. this.aitype = "aiDetail3"
  12251. this.aiText = `请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。`
  12252. this.aiIndex = index + '-' + tindex
  12253. } else if (type == "aiDetail4") {
  12254. var _text = ""
  12255. for (var i = 0; i < callback.length; i++) {
  12256. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12257. }
  12258. this.aitype = "aiDetail4"
  12259. this.aiText = `请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。`
  12260. this.aiIndex = index
  12261. } else if (type == "aiTeacher") {
  12262. this.aitype = "aiTeacher"
  12263. var _text = ""
  12264. for (var i = 0; i < this.dArray.length; i++) {
  12265. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12266. }
  12267. this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12268. this.aiCallBack = callback
  12269. } else if (type == "teacherDetail") {
  12270. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  12271. this.$message({
  12272. message: "请回答完毕后再次发送",
  12273. type: "warning"
  12274. });
  12275. return;
  12276. }
  12277. this.aitype = "teacherDetail"
  12278. this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12279. this.aiIndex = index
  12280. }
  12281. this.dialogVisibleAiD = true
  12282. },
  12283. aiConfirm(msg) {
  12284. let url = []
  12285. if (this.infoData.length) {
  12286. for (var i = 0; i < this.infoData.length; i++) {
  12287. url.push(this.infoData[i].url)
  12288. }
  12289. }
  12290. if (this.aitype == "aiDetail") {
  12291. this.detailYou(msg)
  12292. } else if (this.aitype == "aiOutline") {
  12293. this.loading = true
  12294. let message = `
  12295. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12296. --------
  12297. ## 要求
  12298. ${msg} **你需要使用5EX教学活动设计框架,其定义参考#补充参考资料 中的5EX定义**。以及##补充参考资料,
  12299. 然后根据Format example的要求返回要以数组的格式
  12300. --------
  12301. ## Format example
  12302. [
  12303. {
  12304. "task": "任务名称1",
  12305. "detail": "任务设计和评价标准"
  12306. },
  12307. {
  12308. "task": "任务名称2",
  12309. "detail": "任务设计和评价标准"
  12310. }
  12311. ]
  12312. --------
  12313. ## 补充参考资料
  12314. - 5EX定义:
  12315. # 角色介绍
  12316. 5EX是一种跨学科学习活动设计模型,专门用于STEM(科学、技术、工程和数学)教育项目。它的核心理念是通过整合不同学科的知识和方法,解决真实情境中的问题,从而促进学生的全面发展。5EX模型包含以下五个关键环节:
  12317. 1.EQ(Enter and Questions)- 进入情境与提出问题:此环节的目的让学生进入真实的问题情境中,提出问题和任务。教师可以通过多种活动方式,如阅读科普资料、观看相关视频、参观实际场所等,引导学生发现问题并思考。这一步骤强调问题驱动的学习,让学生以项目学习的方式参与主题学习。
  12318. 2.EM(Exploration and Mathematics)- 探究学习与数学应用:在这个环节中,学生围绕提出的问题或任务,运用科学探究方法(如实验、观察、调查)和数学方法去寻求解决方案或解析问题。数学应用在此环节中是基础,帮助学生通过数据收集、分析和解释来理解问题和应用知识。
  12319. 3.ET(Engineering and Technology)- 工程设计与技术制作:此环节让学生承担任务,通过工程设计和动手制作来完成任务。学生需要进行头脑风暴,提出解决方案,选择材料和工具,并合作完成成品制作。这个过程中,学生将体验完整的工程设计和技术制作流程,并通过测试和改进来完善自己的作品。
  12320. 4.EC(Expansion and Creativity)- 知识扩展与创意设计:本环节鼓励学生将所学知识与社会需求相结合,提出更高要求的设计任务,激发学生的创新能力。学生需要进行创意设计,将知识应用于实际问题的解决中,从而扩展知识面并提出创新的设计方案。
  12321. 5.ER(Evaluation and Reflection)- 多元评价与学习反思:此环节通过多元评价方式检验学生是否达到了学习目标,并提供课程改进的依据。评价不仅包括教师的评价,还涉及学生自评和同伴评价。此外,学生通过自我反思能够监控和掌握自己的学习状况,识别知识和能力掌握的程度,以及评估还需要参与的学习过程。
  12322. 补充资料:${url.join(",")}
  12323. 补充描述:${this.courseText2}
  12324. `
  12325. this.aiGet2(message, () => {
  12326. this.loading = false
  12327. this.isOutline = true
  12328. })
  12329. } else if (this.aitype == "aiTask") {
  12330. let message = `ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12331. --------
  12332. ## 要求
  12333. ${msg} 以及#补充参考资料 输出格式和内容要求参考##格式与要求
  12334. --------
  12335. ## 格式与要求
  12336. 任务名:
  12337. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  12338. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12339. 平台工具:
  12340. 工具名:**从工具列表**中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  12341. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  12342. --------
  12343. ## 补充参考资料
  12344. 补充资料:${url.join(",")}
  12345. 补充描述:${this.courseText2}
  12346. --------
  12347. ## 示例
  12348. [
  12349. {
  12350. "detail": "面向学生的任务描述",
  12351. "elist":[
  12352. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12353. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12354. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12355. ],
  12356. "toolChoose": [
  12357. {
  12358. "tool":"电子白板",
  12359. "detail": "工具描述"
  12360. },
  12361. {
  12362. "tool":"思维大图",
  12363. "detail": "工具描述"
  12364. }
  12365. ]
  12366. },
  12367. {
  12368. "detail": "面向学生的任务描述",
  12369. "elist":[
  12370. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12371. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12372. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12373. ],
  12374. "toolChoose": []
  12375. },
  12376. {
  12377. "detail": "面向学生的任务描述",
  12378. "elist":[
  12379. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12380. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12381. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12382. ],
  12383. "toolChoose": [
  12384. {
  12385. "tool":"文档",
  12386. "detail": "工具描述"
  12387. }
  12388. ]
  12389. }
  12390. ]
  12391. --------
  12392. ## Format example
  12393. [
  12394. {
  12395. "detail": "该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。",
  12396. "elist":[
  12397. {"value":"评价名字1","detail":"评价维度1","score":5},
  12398. {"value":"评价名字2","detail":"评价维度2","score":5},
  12399. {"value":"评价名字3","detail":"评价维度3","score":5}
  12400. ],//至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12401. "toolChoose": [
  12402. {
  12403. "tool": "工具", //电子白板,文档,思维导图,表格,作业提交中选择其中一个工具
  12404. "detail": "工具描述"
  12405. }
  12406. ] //可0~2个工具
  12407. }
  12408. ]`
  12409. this.loading = true
  12410. this.aiGet3(message, this.aiCallBack)
  12411. } else if (this.aitype == "aiDetail1") {
  12412. this.aiDetail(msg, this.aiIndex)
  12413. } else if (this.aitype == "aiDetail2") {
  12414. this.aiDetail2(msg, this.aiIndex)
  12415. } else if (this.aitype == "aiDetail3") {
  12416. let _index = this.aiIndex.split('-')
  12417. this.aiDetail3(msg, _index[0], _index[1])
  12418. } else if (this.aitype == "aiDetail4") {
  12419. this.aiDetail4(msg, this.aiIndex)
  12420. } else if (this.aitype == "teacherDetail") {
  12421. this.aiDetail5(msg, this.aiIndex)
  12422. } else if (this.aitype == "aiTeacher") {
  12423. this.loading = true
  12424. let message = `
  12425. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12426. --------
  12427. ## 要求
  12428. ${msg} 以及##补充参考资料, 然后根据Format example的要求返回要以数组的格式
  12429. --------
  12430. ## 补充参考资料
  12431. 补充资料:${url.join(",")}
  12432. 补充描述:${this.courseText2}
  12433. --------
  12434. ## Format example
  12435. [
  12436. {
  12437. "task": "任务名称1",
  12438. "detail": "教案"
  12439. },
  12440. {
  12441. "task": "任务名称2",
  12442. "detail": "教案"
  12443. }
  12444. ]`
  12445. this.aiGet4(message, () => {
  12446. this.loading = false
  12447. this.isOutline2 = true
  12448. })
  12449. }
  12450. },
  12451. detailYou(message) {
  12452. this.textLoading = true
  12453. this.ttextLoading = true
  12454. // setTimeout(()=>{
  12455. // if(this.courseName == '热传递2'){
  12456. // this.courseText = `本项目旨在通过一个综合性的学习过程,让学生深入探究“热”的物理现象及其在日常生活中的应用。学生将通过实验、观察、设计和制作等活动,理解热的传递方式、热的良导体与不良导体的概念,以及保温技术的原理和应用。项目的核心是制作一个保温杯,该保温杯需要能够有效地减缓热量散失,保持水温在一定时间内相对稳定。通过这个项目,学生不仅能够巩固和拓展科学知识,还能培养创新思维、问题解决能力和团队合作精神。
  12457. // 该项目的驱动性问题是如何设计并制作一个既实用又环保的保温杯,使其在一定时间内最大限度地减少热量散失?
  12458. // 该项目的最终作品是一个由学生团队设计和制作的保温杯原型,该保温杯应使用合适的材料和技术,以实现良好的保温效果。最终作品需要附上一份详细的设计报告,阐述设计理念、选材依据、制作过程和测试结果。`
  12459. // }else if(this.courseName == '热传递1'){
  12460. // this.courseText = `项目名:探索热传导:从热到冷
  12461. // 项目概况:随着气温的变化,孩子们可能对热量如何从热物体传到冷物体的过程产生兴趣。这是热传导的基础知识,对日常生活中的很多现象有深入的解释。例如A小组的孩子们在午餐时注意到,他们的塑料餐具比金属餐具冷得快。引出的驱动性问题是:“为什么塑料餐具比金属餐具冷得快?因此在这个项目中学生需要通过实施一系列的实验的方式,解决这个问题。
  12462. // 本项目需要孩子们了解热传导的基本知识,掌握观察和记录实验数据的基本技能,以及分析和解释数据的能力。并通过实验研究的方式,完成一个关于热传导的实验报告,报告中需要包括实验的设计、实施过程、数据记录、数据分析和结论。
  12463. // 通过了解和掌握热传导的基本原理,以及通过实验测试不同材质的热传导情况,学生们可以了解不同物质的热传导效果的差异,预期的结果是:塑料的热传导效果较差,所以冷得快,而金属的热传导效果好,所以冷得慢。`
  12464. // }else if(this.courseName == '热传递'){
  12465. // this.courseText = `课程名称:探索热传导的奥秘
  12466. // 课程介绍:
  12467. // 在这个为期四周的项目式学习课程中,五年级的学生们将通过实际操作和实验,深入了解热传导的基本原理和日常生活中的应用。学生们将通过探索不同材料的热传导性能,设计实验,收集数据,并最终制作一个展示他们发现的创意项目。本课程旨在激发学生的好奇心,提高他们的科学探究能力,并帮助他们理解热能是如何在不同环境中传递的。
  12468. // 驱动性问题:
  12469. // •热传导是如何在不同材料之间发生的?
  12470. // •哪些日常用品的设计利用了热传导的原理?
  12471. // •我们如何通过实验来比较不同材料的热传导效率?
  12472. // •如何设计一个既实用又创新的产品,利用热传导原理解决实际问题?
  12473. // 期末作品:
  12474. // •热传导实验报告:详细记录实验过程、数据和结论。
  12475. // •创意产品:展示学生基于热传导原理设计的创新产品或模型。
  12476. // 通过这个课程,学生不仅能够掌握热传导的科学知识,还能通过实际操作和创造,将理论知识应用于解决实际问题,培养他们的科学素养和创新能力。`
  12477. // }
  12478. // this.textLoading = false
  12479. // }, 5000)
  12480. let url = []
  12481. if (this.infoData.length) {
  12482. for (var i = 0; i < this.infoData.length; i++) {
  12483. url.push(this.infoData[i].url)
  12484. }
  12485. }
  12486. let msg = `
  12487. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12488. --------
  12489. ## 要求
  12490. ${message} 以及##补充参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  12491. --------
  12492. ## 补充参考资料
  12493. 补充资料:${url.join(",")}
  12494. 补充描述:${this.courseText2}
  12495. --------
  12496. ## Format example
  12497. -课程简要描述:
  12498. -驱动性问题:**1个**驱动整个项目的问题
  12499. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  12500. this.aiGet(msg)
  12501. },
  12502. setUnitJson() {
  12503. this.unitJson[0].chapterInfo[0].taskJson[0] = { "task": "观察热在水中的传递", "taskDetail": "同学们,今天我们将通过一个有趣的实验来探究热是如何在水中传递的。你将需要加热水并观察温度是如何分布的。请准备好实验器材,并按照安全指南进行操作。在实验过程中,请注意观察热水和冷水之间的相互作用,以及水温是如何随时间和空间变化的。你将需要记录你的观察结果,并思考热是如何从一个地方传递到另一个地方的。", "chapterData": [], "toolText": "", "toolChoose": [{ "tool": [1], "toolDetail": "使用电子白板工具来绘制你的实验设置和观察到的热传递过程。你可以使用电子白板的绘图功能来创建一个温度分布图,展示热水和冷水相遇时的情况。同时,你可以用它来记录实验步骤和关键观察点,以便于你和同学们进行讨论和分享。", "toolType": 1, "askCount": 1, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "isFold3": false }], "isShowTools": false, "askCount": 1, "isFold": 0, "askTitle": "", "askJson": [{ "askstitle": "", "askItem": 1, "checkList": [] }], "checkJson": [{ "checkCount": [], "checkPerent": [] }], "homeworkList": [], "toolOpen": true, "eList": [{ "value": "实验观察和记录", "detail": "学生应该能够准确地记录实验过程中的观察结果,包括水温变化和热传递的现象。", "score": 5 }, { "value": "数据分析和解释", "detail": "学生应该能够分析实验数据,解释热在水中的传递方式,并能够用自己的话描述热对流的原理。", "score": 5 }, { "value": "实验报告撰写", "detail": "学生应该能够撰写一份清晰的实验报告,包括实验目的、方法、结果和结论,以及对实验过程的反思。", "score": 5 }] }
  12504. this.$forceUpdate()
  12505. },
  12506. aiGet(messages) {
  12507. let _this = this
  12508. let _uuid = uuidv4();
  12509. let params = JSON.stringify({
  12510. // "model": "Chat",
  12511. model: 'gpt-3.5-turbo',
  12512. temperature: 0,
  12513. max_tokens: 4096,
  12514. top_p: 1,
  12515. frequency_penalty: 0,
  12516. presence_penalty: 0,
  12517. messages: [{
  12518. content: messages,
  12519. role: 'user'
  12520. }],
  12521. uid: _uuid,
  12522. mind_map_question: "",
  12523. })
  12524. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12525. console.log(response);
  12526. // let data = response.data.FunctionResponse
  12527. // if (data.choices && data.choices.length && data.choices[0].message) {
  12528. // _this.courseText = data.choices[0].message.content
  12529. // }
  12530. if (response.data.FunctionResponse.result == "发送成功") {
  12531. } else {
  12532. this.$message.warning(response.data.FunctionResponse.result);
  12533. }
  12534. }).catch(function (error) {
  12535. _this.textLoading = false
  12536. _this.ttextLoading = false
  12537. console.log(error);
  12538. });
  12539. _this.aiGetgetAiContent(_uuid)
  12540. },
  12541. aiGetgetAiContent(_uid) {
  12542. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12543. let _allText = "";
  12544. let _mdText = "";
  12545. _source.onmessage = _e => {
  12546. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12547. //对话已经完成
  12548. _mdText = _mdText.replace("_", "");
  12549. _source.close();
  12550. this.courseText = _mdText;
  12551. this.textLoading = false
  12552. this.ttextLoading = false
  12553. return;
  12554. } else {
  12555. //对话还在继续
  12556. let _text = "";
  12557. _text = _e.data.replaceAll("'", "");
  12558. if (_allText == "") {
  12559. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12560. } else {
  12561. _allText += _text;
  12562. }
  12563. _mdText = _allText + "_";
  12564. _mdText = _mdText.replace(/\\n/g, "\n");
  12565. _mdText = _mdText.replace(/\\/g, "");
  12566. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12567. //转化返回的回复流数据
  12568. this.courseText = _mdText;
  12569. this.textLoading = false
  12570. // 处理流数据
  12571. }
  12572. };
  12573. },
  12574. aiGet2(messages, callback) {
  12575. let _this = this
  12576. let params = JSON.stringify({
  12577. // "model": "Chat",
  12578. model: 'gpt-3.5-turbo',
  12579. temperature: 0,
  12580. max_tokens: 4096,
  12581. top_p: 1,
  12582. frequency_penalty: 0,
  12583. presence_penalty: 0,
  12584. messages: [{
  12585. content: messages,
  12586. role: 'user'
  12587. }],
  12588. stream: false,
  12589. uid: this.userid,
  12590. mind_map_question: "",
  12591. })
  12592. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12593. console.log(response);
  12594. let data = response.data.FunctionResponse
  12595. if (data.choices && data.choices.length && data.choices[0].message) {
  12596. console.log(data.choices[0].message.content);
  12597. let dArray = JSON.parse(data.choices[0].message.content)
  12598. _this.dArray = dArray
  12599. _this.unitJson[0].chapterInfo[0].taskJson = []
  12600. for (var i = 0; i < dArray.length; i++) {
  12601. let _task = dArray[i]
  12602. _this.unitJson[0].chapterInfo[0].taskJson.push({
  12603. task: _task.task,
  12604. taskDetail: "",
  12605. taskDetail2: _task.detail,
  12606. taskDetail3: "",
  12607. chapterData: [],
  12608. toolText: "",
  12609. toolChoose: [
  12610. {
  12611. tool: [],
  12612. toolDetail: "",
  12613. toolType: 0,
  12614. askCount: 1,
  12615. askTitle: "",
  12616. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12617. },
  12618. ],
  12619. isShowTools: false,
  12620. askCount: 1,
  12621. isFold: 1,
  12622. askTitle: "",
  12623. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12624. checkJson: [{ checkCount: [], checkPerent: [] }],
  12625. homeworkList: [],
  12626. })
  12627. }
  12628. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12629. _this.$forceUpdate();
  12630. }
  12631. callback ? callback() : ''
  12632. }).catch(function (error) {
  12633. _this.loading = false
  12634. console.log(error);
  12635. });
  12636. },
  12637. aiGet3(messages, callback) {
  12638. let _this = this
  12639. let params = JSON.stringify({
  12640. // "model": "Chat",
  12641. model: 'gpt-3.5-turbo',
  12642. temperature: 0,
  12643. max_tokens: 4096,
  12644. top_p: 1,
  12645. frequency_penalty: 0,
  12646. presence_penalty: 0,
  12647. messages: [{
  12648. content: messages,
  12649. role: 'user'
  12650. }],
  12651. stream: false,
  12652. uid: this.userid,
  12653. mind_map_question: "",
  12654. })
  12655. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12656. console.log(response);
  12657. let data = response.data.FunctionResponse
  12658. if (data.choices && data.choices.length && data.choices[0].message) {
  12659. console.log(data.choices[0].message.content);
  12660. let tArray = JSON.parse(data.choices[0].message.content)
  12661. // _this.unitJson[0].chapterInfo[0].task = []
  12662. let toolsJson = {
  12663. "电子白板": { tool: 1, type: 1 },
  12664. "文档": { tool: 52, type: 1 },
  12665. "思维导图": { tool: 3, type: 1 },
  12666. "表格": { tool: 48, type: 1 },
  12667. "作业提交": { tool: 16, type: 1 }
  12668. }
  12669. for (var i = 0; i < tArray.length; i++) {
  12670. let _task = tArray[i]
  12671. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12672. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12673. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12674. if (_task.toolChoose.length) {
  12675. for (var j = 0; j < _task.toolChoose.length; j++) {
  12676. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12677. {
  12678. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12679. toolDetail: _task.toolChoose[j].detail,
  12680. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12681. askCount: 1,
  12682. askTitle: "",
  12683. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12684. },
  12685. )
  12686. }
  12687. } else {
  12688. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12689. {
  12690. tool: [],
  12691. toolDetail: "",
  12692. toolType: 0,
  12693. askCount: 1,
  12694. askTitle: "",
  12695. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12696. },
  12697. )
  12698. }
  12699. }
  12700. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12701. _this.$forceUpdate();
  12702. }
  12703. callback ? callback() : ''
  12704. }).catch(function (error) {
  12705. _this.loading = false
  12706. console.log(error);
  12707. });
  12708. },
  12709. aiGet4(messages, callback, clickType) {
  12710. let _this = this
  12711. let params = JSON.stringify({
  12712. // "model": "Chat",
  12713. model: 'gpt-3.5-turbo',
  12714. temperature: 0,
  12715. max_tokens: 4096,
  12716. top_p: 1,
  12717. frequency_penalty: 0,
  12718. presence_penalty: 0,
  12719. messages: [{
  12720. content: messages,
  12721. role: 'user'
  12722. }],
  12723. stream: false,
  12724. uid: this.userid,
  12725. mind_map_question: "",
  12726. })
  12727. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12728. console.log(response);
  12729. let data = response.data.FunctionResponse
  12730. if (data.choices && data.choices.length && data.choices[0].message) {
  12731. console.log(data.choices[0].message.content);
  12732. let dArray = JSON.parse(data.choices[0].message.content)
  12733. _this.teacherText = JSON.parse(data.choices[0].message.content)
  12734. for (var i = 0; i < dArray.length; i++) {
  12735. let _task = dArray[i]
  12736. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  12737. }
  12738. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12739. _this.$forceUpdate();
  12740. }
  12741. callback ? callback() : ''
  12742. _this.loading = false
  12743. }).catch(function (error) {
  12744. _this.loading = false
  12745. console.log(error);
  12746. });
  12747. },
  12748. aiDetail(msg, index) {
  12749. let _this = this
  12750. const _tindex = 'task-' + index
  12751. const _tindex2 = index
  12752. let url = []
  12753. if (this.infoData.length) {
  12754. for (var i = 0; i < this.infoData.length; i++) {
  12755. url.push(this.infoData[i].url)
  12756. }
  12757. }
  12758. let messages = `
  12759. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12760. --------
  12761. ## 要求
  12762. ${msg} 以文本格式输出任务设计和评价标准
  12763. ## 补充参考资料
  12764. - 补充资料:${url.join(",")}
  12765. - 补充描述:${this.courseText2}
  12766. `
  12767. _this.taskDetailLoading.push(_tindex)
  12768. _this.ttaskDetailLoading.push(_tindex)
  12769. let _uuid = uuidv4();
  12770. let params = JSON.stringify({
  12771. // "model": "Chat",
  12772. model: 'gpt-3.5-turbo',
  12773. temperature: 0,
  12774. max_tokens: 4096,
  12775. top_p: 1,
  12776. frequency_penalty: 0,
  12777. presence_penalty: 0,
  12778. messages: [{
  12779. content: messages,
  12780. role: 'user'
  12781. }],
  12782. uid: _uuid,
  12783. mind_map_question: "",
  12784. })
  12785. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12786. console.log(response);
  12787. // let data = response.data.FunctionResponse
  12788. // if (data.choices && data.choices.length && data.choices[0].message) {
  12789. // console.log(data.choices[0].message.content);
  12790. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  12791. // _this.$forceUpdate()
  12792. // }
  12793. if (response.data.FunctionResponse.result == "发送成功") {
  12794. } else {
  12795. this.$message.warning(response.data.FunctionResponse.result);
  12796. }
  12797. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12798. }).catch(function (error) {
  12799. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12800. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  12801. console.log(error);
  12802. });
  12803. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  12804. },
  12805. aiDetailgetAiContent(_uid, loading, _tindex2) {
  12806. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12807. let _allText = "";
  12808. let _mdText = "";
  12809. _source.onmessage = _e => {
  12810. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12811. //对话已经完成
  12812. _mdText = _mdText.replace("_", "");
  12813. _source.close();
  12814. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12815. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12816. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  12817. return;
  12818. } else {
  12819. //对话还在继续
  12820. let _text = "";
  12821. _text = _e.data.replaceAll("'", "");
  12822. if (_allText == "") {
  12823. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12824. } else {
  12825. _allText += _text;
  12826. }
  12827. _mdText = _allText + "_";
  12828. _mdText = _mdText.replace(/\\n/g, "\n");
  12829. _mdText = _mdText.replace(/\\/g, "");
  12830. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12831. //转化返回的回复流数据
  12832. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12833. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12834. // 处理流数据
  12835. }
  12836. };
  12837. },
  12838. aiDetail2(msg, index) {
  12839. let _this = this
  12840. const _tindex = 'task-' + index
  12841. const _tindex2 = index
  12842. let messages = `
  12843. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12844. --------
  12845. ## 要求
  12846. ${msg}
  12847. # 格式与要求
  12848. - 任务名:
  12849. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  12850. _this.taskDetailLoading2.push(_tindex)
  12851. _this.ttaskDetailLoading2.push(_tindex)
  12852. let _uuid = uuidv4();
  12853. let params = JSON.stringify({
  12854. // "model": "Chat",
  12855. model: 'gpt-3.5-turbo',
  12856. temperature: 0,
  12857. max_tokens: 4096,
  12858. top_p: 1,
  12859. frequency_penalty: 0,
  12860. presence_penalty: 0,
  12861. messages: [{
  12862. content: messages,
  12863. role: 'user'
  12864. }],
  12865. uid: _uuid,
  12866. mind_map_question: "",
  12867. })
  12868. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12869. console.log(response);
  12870. // let data = response.data.FunctionResponse
  12871. // if (data.choices && data.choices.length && data.choices[0].message) {
  12872. // console.log(data.choices[0].message.content);
  12873. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  12874. // _this.$forceUpdate()
  12875. // }
  12876. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12877. if (response.data.FunctionResponse.result == "发送成功") {
  12878. } else {
  12879. this.$message.warning(response.data.FunctionResponse.result);
  12880. }
  12881. }).catch(function (error) {
  12882. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  12883. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  12884. console.log(error);
  12885. });
  12886. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  12887. },
  12888. aiDetail2getAiContent(_uid, loading, _tindex2) {
  12889. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12890. let _allText = "";
  12891. let _mdText = "";
  12892. _source.onmessage = _e => {
  12893. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12894. //对话已经完成
  12895. _mdText = _mdText.replace("_", "");
  12896. _source.close();
  12897. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  12898. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  12899. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  12900. return;
  12901. } else {
  12902. //对话还在继续
  12903. let _text = "";
  12904. _text = _e.data.replaceAll("'", "");
  12905. if (_allText == "") {
  12906. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12907. } else {
  12908. _allText += _text;
  12909. }
  12910. _mdText = _allText + "_";
  12911. _mdText = _mdText.replace(/\\n/g, "\n");
  12912. _mdText = _mdText.replace(/\\/g, "");
  12913. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12914. //转化返回的回复流数据
  12915. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  12916. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  12917. // 处理流数据
  12918. }
  12919. };
  12920. },
  12921. aiDetail3(msg, index, tindex) {
  12922. let _this = this
  12923. const _tindex = 'task-' + index + tindex
  12924. const _tindex2 = index
  12925. const _tindex3 = tindex
  12926. // **重点考虑该任务及工具名和工具内容的情况下*
  12927. let messages = `
  12928. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12929. --------
  12930. ## 参考内容
  12931. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  12932. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  12933. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  12934. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  12935. --------
  12936. ## 要求
  12937. ${msg} 输出格式和内容要求参考#格式与要求
  12938. # 格式与要求
  12939. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  12940. _this.taskDetailLoading3.push(_tindex)
  12941. _this.ttaskDetailLoading3.push(_tindex)
  12942. let _uuid = uuidv4();
  12943. let params = JSON.stringify({
  12944. // "model": "Chat",
  12945. model: 'gpt-3.5-turbo',
  12946. temperature: 0,
  12947. max_tokens: 4096,
  12948. top_p: 1,
  12949. frequency_penalty: 0,
  12950. presence_penalty: 0,
  12951. messages: [{
  12952. content: messages,
  12953. role: 'user'
  12954. }],
  12955. uid: _uuid,
  12956. mind_map_question: "",
  12957. })
  12958. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12959. console.log(response);
  12960. let data = response.data.FunctionResponse
  12961. // if (data.choices && data.choices.length && data.choices[0].message) {
  12962. // console.log(data.choices[0].message.content);
  12963. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  12964. // _this.$forceUpdate()
  12965. // }
  12966. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  12967. if (response.data.FunctionResponse.result == "发送成功") {
  12968. } else {
  12969. this.$message.warning(response.data.FunctionResponse.result);
  12970. }
  12971. }).catch(function (error) {
  12972. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  12973. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  12974. console.log(error);
  12975. });
  12976. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  12977. },
  12978. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  12979. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12980. let _allText = "";
  12981. let _mdText = "";
  12982. _source.onmessage = _e => {
  12983. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12984. //对话已经完成
  12985. _mdText = _mdText.replace("_", "");
  12986. _source.close();
  12987. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  12988. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  12989. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  12990. return;
  12991. } else {
  12992. //对话还在继续
  12993. let _text = "";
  12994. _text = _e.data.replaceAll("'", "");
  12995. if (_allText == "") {
  12996. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12997. } else {
  12998. _allText += _text;
  12999. }
  13000. _mdText = _allText + "_";
  13001. _mdText = _mdText.replace(/\\n/g, "\n");
  13002. _mdText = _mdText.replace(/\\/g, "");
  13003. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13004. //转化返回的回复流数据
  13005. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13006. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13007. // 处理流数据
  13008. }
  13009. };
  13010. },
  13011. aiDetail4(msg, index) {
  13012. if (!msg.length) {
  13013. this.$message.error("请添加评价后才能优化")
  13014. return
  13015. }
  13016. let _this = this
  13017. const _tindex = 'task-' + index
  13018. const _tindex2 = index
  13019. var _text = ""
  13020. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  13021. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  13022. }
  13023. // **重点考虑该任务详情**
  13024. let messages = `
  13025. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13026. --------
  13027. ## 参考内容
  13028. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13029. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13030. 评价设计:${_text}
  13031. --------
  13032. ## 要求
  13033. ${msg} 输出格式和内容要求参考# 格式与要求
  13034. --------
  13035. # 格式与要求
  13036. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13037. --------
  13038. ## Format example
  13039. [
  13040. {"value":"评价维度1","detail":"维度描述1","score":5},
  13041. {"value":"评价维度2","detail":"维度描述2","score":5},
  13042. {"value":"评价维度3","detail":"维度描述3","score":5}
  13043. ]`
  13044. _this.taskDetailLoading4.push(_tindex)
  13045. let params = JSON.stringify({
  13046. // "model": "Chat",
  13047. model: 'gpt-3.5-turbo',
  13048. temperature: 0,
  13049. max_tokens: 4096,
  13050. top_p: 1,
  13051. frequency_penalty: 0,
  13052. presence_penalty: 0,
  13053. messages: [{
  13054. content: messages,
  13055. role: 'user'
  13056. }],
  13057. stream: false,
  13058. uid: this.userid,
  13059. mind_map_question: "",
  13060. })
  13061. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13062. console.log(response);
  13063. let data = response.data.FunctionResponse
  13064. if (data.choices && data.choices.length && data.choices[0].message) {
  13065. console.log(data.choices[0].message.content);
  13066. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  13067. _this.$forceUpdate()
  13068. }
  13069. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13070. }).catch(function (error) {
  13071. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13072. console.log(error);
  13073. });
  13074. },
  13075. aiDetail5(msg, index) {
  13076. let _this = this
  13077. const _tindex = 'task-' + index
  13078. const _tindex2 = index
  13079. let url = []
  13080. if (this.infoData.length) {
  13081. for (var i = 0; i < this.infoData.length; i++) {
  13082. url.push(this.infoData[i].url)
  13083. }
  13084. }
  13085. let messages = `
  13086. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13087. --------
  13088. ## 要求
  13089. ${msg}
  13090. ## 补充参考资料
  13091. - 补充资料:${url.join(",")}
  13092. - 补充描述:${this.courseText2}`
  13093. _this.taskDetailLoading5.push(_tindex)
  13094. _this.ttaskDetailLoading5.push(_tindex)
  13095. let _uuid = uuidv4();
  13096. let params = JSON.stringify({
  13097. // "model": "Chat",
  13098. model: 'gpt-3.5-turbo',
  13099. temperature: 0,
  13100. max_tokens: 4096,
  13101. top_p: 1,
  13102. frequency_penalty: 0,
  13103. presence_penalty: 0,
  13104. messages: [{
  13105. content: messages,
  13106. role: 'user'
  13107. }],
  13108. uid: _uuid,
  13109. mind_map_question: "",
  13110. })
  13111. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13112. console.log(response);
  13113. // let data = response.data.FunctionResponse
  13114. // if (data.choices && data.choices.length && data.choices[0].message) {
  13115. // console.log(data.choices[0].message.content);
  13116. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13117. // _this.$forceUpdate()
  13118. // }
  13119. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13120. if (response.data.FunctionResponse.result == "发送成功") {
  13121. } else {
  13122. this.$message.warning(response.data.FunctionResponse.result);
  13123. }
  13124. }).catch(function (error) {
  13125. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  13126. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  13127. console.log(error);
  13128. });
  13129. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  13130. },
  13131. aiDetail5getAiContent(_uid, loading, _tindex2) {
  13132. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13133. let _allText = "";
  13134. let _mdText = "";
  13135. _source.onmessage = _e => {
  13136. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13137. //对话已经完成
  13138. _mdText = _mdText.replace("_", "");
  13139. _source.close();
  13140. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13141. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13142. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  13143. return;
  13144. } else {
  13145. //对话还在继续
  13146. let _text = "";
  13147. _text = _e.data.replaceAll("'", "");
  13148. if (_allText == "") {
  13149. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13150. } else {
  13151. _allText += _text;
  13152. }
  13153. _mdText = _allText + "_";
  13154. _mdText = _mdText.replace(/\\n/g, "\n");
  13155. _mdText = _mdText.replace(/\\/g, "");
  13156. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13157. //转化返回的回复流数据
  13158. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13159. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13160. // 处理流数据
  13161. }
  13162. };
  13163. },
  13164. },
  13165. beforeDestroy() {
  13166. clearTimeout(this.timer);
  13167. this.timer = null;
  13168. clearInterval(this.timer2);
  13169. this.timer2 = null;
  13170. clearInterval(this.pasteTimer);
  13171. this.pasteTimer = null;
  13172. },
  13173. beforeRouteLeave(to, from, next) {
  13174. clearTimeout(this.timer);
  13175. this.timer = null;
  13176. clearInterval(this.timer2);
  13177. this.timer2 = null;
  13178. clearInterval(this.pasteTimer);
  13179. this.pasteTimer = null;
  13180. next();
  13181. },
  13182. created() {
  13183. this.getStudent();
  13184. this.getTeacher();
  13185. this.getClass();
  13186. this.selectGrage();
  13187. this.getTemplate();
  13188. // this.selectType();
  13189. this.selectEva();
  13190. this.loading = false;
  13191. this.timer2 = setInterval(() => {
  13192. this.selectEva();
  13193. }, 5000);
  13194. this.pasteTimer = setInterval(() => {
  13195. this.getPaste();
  13196. }, 1000);
  13197. setTimeout(() => {
  13198. // this.selectAllType();
  13199. this.selectCourseDetail();
  13200. }, 500);
  13201. let _this = this;
  13202. window.pasteStage = function (json) {
  13203. _this.pasteStage(json);
  13204. };
  13205. window.pasteTask = function (json) {
  13206. _this.pasteTask(json);
  13207. };
  13208. },
  13209. };
  13210. </script>
  13211. <style scoped>
  13212. @media screen and (max-width: 1280px) {
  13213. .mbCss {
  13214. flex-direction: column !important;
  13215. }
  13216. .pjCss {
  13217. width: 100% !important;
  13218. }
  13219. .evaCss {
  13220. width: 100% !important;
  13221. margin-top: 10px;
  13222. }
  13223. }
  13224. .el-table>>>.even_row {
  13225. background-color: #f1f1f1 !important;
  13226. }
  13227. .dialog_diy>>>.el-dialog__header {
  13228. background: #3c3c3c !important;
  13229. padding: 15px 20px;
  13230. }
  13231. .dialog_diy>>>.el-dialog__title {
  13232. color: #fff;
  13233. }
  13234. .dialog_diy>>>.el-dialog__headerbtn {
  13235. top: 19px;
  13236. }
  13237. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  13238. color: #fff;
  13239. }
  13240. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  13241. color: #fff;
  13242. }
  13243. .dialog_diy>>>.el-dialog__body,
  13244. .dialog_diy>>>.el-dialog__footer {
  13245. background: #fafafa;
  13246. }
  13247. .dialog_diy3>>>.el-dialog__body,
  13248. .dialog_diy3>>>.el-dialog__footer {
  13249. background: #eee !important;
  13250. }
  13251. .dialog_diy3>>>.el-dialog__body {
  13252. padding: 20px 20px;
  13253. }
  13254. .dialog_diyStage>>>.el-dialog__body {
  13255. padding: 10px;
  13256. }
  13257. .source_diy>>>.el-dialog {
  13258. height: 100% !important;
  13259. margin: 0 auto !important;
  13260. }
  13261. .source_diy>>>.el-dialog__body {
  13262. height: calc(100% - 185px);
  13263. overflow: auto;
  13264. background: #e6eaf0;
  13265. }
  13266. .source_diy>>>.el-dialog__footer {
  13267. background: #e6eaf0 !important;
  13268. }
  13269. .left {
  13270. border-right: 1px solid rgb(60, 94, 143);
  13271. display: flex;
  13272. flex-direction: column;
  13273. align-items: center;
  13274. min-height: 600px;
  13275. width: 385px;
  13276. height: 80%;
  13277. }
  13278. .tips {
  13279. color: rgb(128, 128, 128);
  13280. font-size: 12px;
  13281. width: 270px;
  13282. margin: 40px;
  13283. }
  13284. .pb_content {
  13285. height: 100% !important;
  13286. /* margin: 0 20px 0 20px; */
  13287. }
  13288. .pb_content_body {
  13289. width: 100% !important;
  13290. height: 100%;
  13291. }
  13292. .info_solid {
  13293. width: 270px;
  13294. height: 30px;
  13295. border-left: 1px solid #bdbdbd;
  13296. margin: 10px 0px 10px 30px;
  13297. }
  13298. .info_steps {
  13299. width: 270px;
  13300. font-size: 0.875rem;
  13301. display: flex;
  13302. align-items: center;
  13303. }
  13304. .info_steps span:nth-child(1) {
  13305. width: 30px;
  13306. height: 30px;
  13307. background: rgba(0, 0, 0, 0.38);
  13308. display: block;
  13309. color: #fff;
  13310. border-radius: 40px;
  13311. text-align: center;
  13312. line-height: 30px;
  13313. }
  13314. .steps_active {
  13315. background: #3d67bc !important;
  13316. }
  13317. .info_steps span:nth-child(2) {
  13318. margin-left: 5px;
  13319. }
  13320. .right {
  13321. height: 100%;
  13322. width: 100%;
  13323. display: flex;
  13324. overflow: hidden;
  13325. flex-direction: column;
  13326. }
  13327. .basic_box {
  13328. margin: 0 auto;
  13329. position: relative;
  13330. padding: 0 20px 0 20px;
  13331. }
  13332. .basic_box_success {
  13333. width: 100%;
  13334. min-height: 455px;
  13335. padding: 50px 0;
  13336. position: relative;
  13337. text-align: center;
  13338. border-bottom: 1px solid #bfbfbf;
  13339. box-sizing: border-box;
  13340. display: flex;
  13341. align-items: center;
  13342. flex-direction: column;
  13343. justify-content: center;
  13344. }
  13345. .info_title {
  13346. font-size: 1.5em;
  13347. margin-right: 25px;
  13348. /* margin: 20px 30px 20px 30px; */
  13349. }
  13350. .bInfo_title {
  13351. text-align: left;
  13352. margin: 10px 0;
  13353. }
  13354. .small_title {
  13355. font-size: 14px;
  13356. line-height: 40px;
  13357. }
  13358. .chapter_beizhu {
  13359. font-size: 12px;
  13360. font-weight: bold;
  13361. float: right;
  13362. color: rgb(128, 128, 128);
  13363. margin-top: 5px;
  13364. }
  13365. .chapter_uploadBox1 {
  13366. text-align: left;
  13367. background-color: rgb(242, 242, 242);
  13368. width: 100%;
  13369. height: 67px;
  13370. padding: 0px 15px;
  13371. border-radius: 8px;
  13372. overflow: hidden;
  13373. font-size: 16px;
  13374. box-sizing: border-box;
  13375. position: relative;
  13376. }
  13377. .chapter_add {
  13378. width: 100%;
  13379. height: 32px;
  13380. margin-top: 15px;
  13381. cursor: pointer;
  13382. }
  13383. .chapter_add_l {
  13384. margin-left: 5px;
  13385. width: 30px;
  13386. height: 30px;
  13387. float: left;
  13388. border: 1px solid #aaa;
  13389. color: #aaa;
  13390. border-radius: 50%;
  13391. font-size: 25px;
  13392. text-align: center;
  13393. }
  13394. .chapter_add_r {
  13395. font-size: 18px;
  13396. height: 40px;
  13397. line-height: 30px;
  13398. text-indent: 10px;
  13399. color: #aaa;
  13400. }
  13401. .chapter_add_r span {
  13402. font-size: 12px;
  13403. color: rgb(204, 204, 204);
  13404. }
  13405. .chapter_add_input {
  13406. display: none;
  13407. }
  13408. .line {
  13409. width: 85%;
  13410. margin: 0 auto;
  13411. border-top: 1px solid #e5e5e5;
  13412. margin-top: 20px;
  13413. }
  13414. .info_btnBox {
  13415. width: calc(100%);
  13416. display: flex;
  13417. justify-content: center;
  13418. height: 80px;
  13419. align-items: center;
  13420. background: #fff;
  13421. margin: 0 auto;
  13422. border-top: 2px solid rgb(228, 232, 237);
  13423. box-sizing: border-box;
  13424. }
  13425. .info_btnBox2 {
  13426. width: calc(100%);
  13427. display: flex;
  13428. justify-content: center;
  13429. height: 20px;
  13430. align-items: center;
  13431. background: #fff;
  13432. margin: 0 auto;
  13433. border-top: 2px solid rgb(228, 232, 237);
  13434. box-sizing: border-box;
  13435. overflow: hidden;
  13436. cursor: pointer;
  13437. }
  13438. .info_btnBox3 {
  13439. width: calc(100%);
  13440. display: flex;
  13441. justify-content: flex-end;
  13442. padding: 0 20px;
  13443. height: 60px;
  13444. align-items: center;
  13445. background: unset;
  13446. margin: 0 auto;
  13447. /* border-top: 1px solid rgb(228, 232, 237); */
  13448. box-sizing: border-box;
  13449. overflow: hidden;
  13450. cursor: pointer;
  13451. background: #fff;
  13452. border-radius: 10px;
  13453. }
  13454. .info_btn+.info_btn {
  13455. margin-left: 15px;
  13456. }
  13457. .info_btn,
  13458. .teacherWord {
  13459. color: #fff;
  13460. background-color: #0f7eff;
  13461. padding: 8px 24px;
  13462. font-size: 0.9375rem;
  13463. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13464. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13465. min-width: 64px;
  13466. font-weight: 500;
  13467. border-radius: 4px;
  13468. box-sizing: border-box;
  13469. border: none;
  13470. cursor: pointer;
  13471. }
  13472. .teacherWord {
  13473. width: 105px !important;
  13474. text-align: center !important;
  13475. line-height: 36px !important;
  13476. padding: 0 !important;
  13477. font-size: 14px !important;
  13478. margin: 10px 0 !important;
  13479. }
  13480. .template_box {
  13481. display: flex;
  13482. flex-wrap: wrap;
  13483. }
  13484. .wordTeacher {
  13485. display: flex;
  13486. flex-direction: column;
  13487. width: 100px;
  13488. height: 100px;
  13489. text-align: center;
  13490. font-size: 13px;
  13491. margin: 0 20px 20px 0;
  13492. background: #f0f4fa;
  13493. position: relative;
  13494. border-radius: 5px;
  13495. align-items: center;
  13496. justify-content: center;
  13497. border: 1px solid #cad1dc;
  13498. color: #0e1e33;
  13499. /* padding: 25px 0px; */
  13500. cursor: pointer;
  13501. }
  13502. .wordTeacher::after {
  13503. content: "";
  13504. display: block;
  13505. position: absolute;
  13506. width: 15px;
  13507. height: 15px;
  13508. right: 10px;
  13509. top: 10px;
  13510. background-image: url(../../../assets/icon/new/choose_a.png);
  13511. background-size: 100% 100%;
  13512. }
  13513. .wordTeacherA::after {
  13514. background-image: url(../../../assets/icon/new/choose_b.png);
  13515. }
  13516. .wordTeacher:nth-child(5n) {
  13517. margin-right: 0px;
  13518. }
  13519. .wordPic {
  13520. margin: 0 auto;
  13521. width: 30px;
  13522. height: 30px;
  13523. cursor: pointer;
  13524. }
  13525. .deleteWord {
  13526. width: 22px;
  13527. height: 22px;
  13528. position: absolute;
  13529. right: 5px;
  13530. top: -15px;
  13531. cursor: pointer;
  13532. display: none;
  13533. z-index: 999;
  13534. }
  13535. .wordPic>img,
  13536. .deleteWord>img,
  13537. .addToolImg>img {
  13538. width: 100%;
  13539. height: 100%;
  13540. }
  13541. .info_btn:hover {
  13542. background-color: #4f7cd5 !important;
  13543. }
  13544. .cru_selectBox {
  13545. display: flex;
  13546. margin: 15px 0;
  13547. flex-wrap: nowrap;
  13548. white-space: nowrap;
  13549. overflow: auto;
  13550. position: relative;
  13551. height: 40px;
  13552. max-width: calc(100% - 175px);
  13553. }
  13554. .cru_selectBox::-webkit-scrollbar {
  13555. /*滚动条整体样式*/
  13556. width: 6px;
  13557. /*高宽分别对应横竖滚动条的尺寸*/
  13558. height: 6px;
  13559. }
  13560. /*定义滚动条轨道 内阴影+圆角*/
  13561. .cru_selectBox::-webkit-scrollbar-track {
  13562. border-radius: 10px;
  13563. background-color: #eee;
  13564. }
  13565. /*定义滑块 内阴影+圆角*/
  13566. .cru_selectBox::-webkit-scrollbar-thumb {
  13567. border-radius: 10px;
  13568. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  13569. background-color: rgba(0, 0, 0, 0.1);
  13570. }
  13571. .cru_line {
  13572. position: absolute;
  13573. bottom: 0px;
  13574. transition: all 0.5s;
  13575. left: 0px;
  13576. width: 50px;
  13577. height: 4px;
  13578. left: 10px;
  13579. border-radius: 2px;
  13580. background: #3681fc;
  13581. }
  13582. .cru_select {
  13583. font-size: 18px;
  13584. margin-right: 20px;
  13585. margin-left: 5px;
  13586. cursor: pointer;
  13587. color: #0e1e33;
  13588. }
  13589. .cru_select:hover {
  13590. color: #3681fc !important;
  13591. }
  13592. .cru_selected {
  13593. color: #3681fc !important;
  13594. font-weight: bold;
  13595. }
  13596. .chapter_box {
  13597. margin-top: 10px;
  13598. width: 100%;
  13599. padding: 10px 20px;
  13600. background: #fff;
  13601. border-radius: 8px;
  13602. box-sizing: border-box;
  13603. }
  13604. .chapter_contentbox {
  13605. display: flex;
  13606. align-items: center;
  13607. /* margin-top: 15px; */
  13608. }
  13609. .chapter_contentbox .cc_title {
  13610. margin: 0px;
  13611. color: black;
  13612. display: block;
  13613. white-space: nowrap;
  13614. overflow: hidden;
  13615. text-overflow: ellipsis;
  13616. margin-right: 20px;
  13617. font-size: 18px;
  13618. height: 20px;
  13619. line-height: 22px;
  13620. min-width: fit-content;
  13621. display: flex;
  13622. }
  13623. .chapter_contentbox .cc_title::before {
  13624. content: "";
  13625. height: 100%;
  13626. width: 3px;
  13627. background: #3681fc;
  13628. border-radius: 3px;
  13629. opacity: 1;
  13630. display: block;
  13631. margin-right: 10px;
  13632. }
  13633. .chapter_contentbox .cc_input {
  13634. width: 100%;
  13635. display: flex;
  13636. }
  13637. .show_taskD {
  13638. min-width: fit-content;
  13639. margin-left: 10px;
  13640. display: flex;
  13641. align-items: center;
  13642. font-size: 14px;
  13643. cursor: pointer;
  13644. color: #717c8d;
  13645. }
  13646. .show_taskD>img {
  13647. width: 15px;
  13648. margin-right: 5px;
  13649. transition: 0.2s all;
  13650. transform: rotate(-90deg);
  13651. }
  13652. .show_taskD.show>img {
  13653. transform: rotate(0deg);
  13654. }
  13655. .show_toolD {
  13656. min-width: fit-content;
  13657. margin-left: 10px;
  13658. display: flex;
  13659. align-items: center;
  13660. font-size: 14px;
  13661. cursor: pointer;
  13662. color: #717c8d;
  13663. /* position: absolute;
  13664. right: 45px;
  13665. top: 5px; */
  13666. }
  13667. .show_toolD>img {
  13668. width: 15px;
  13669. margin-right: 5px;
  13670. transition: 0.2s all;
  13671. transform: rotate(-90deg);
  13672. }
  13673. .show_toolD.show>img {
  13674. transform: rotate(0deg);
  13675. }
  13676. .remove {
  13677. background-image: url("../../../assets/icon/new/delete_u.png");
  13678. cursor: pointer;
  13679. opacity: 0.5;
  13680. width: 30px;
  13681. min-width: 30px;
  13682. height: 30px;
  13683. background-size: 100% 100%;
  13684. background-repeat: no-repeat;
  13685. margin-left: 10px;
  13686. }
  13687. .remove1 {
  13688. background-image: url("../../../assets/remove1.png");
  13689. background-repeat: no-repeat;
  13690. background-position: 5px 10px;
  13691. width: 40px;
  13692. height: 50px;
  13693. cursor: pointer;
  13694. margin-left: 10px;
  13695. }
  13696. .binfo_input {
  13697. width: 100%;
  13698. margin: 0;
  13699. padding: 12px 14px;
  13700. display: block;
  13701. min-width: 0;
  13702. outline: none;
  13703. box-sizing: border-box;
  13704. background: none;
  13705. border: none;
  13706. border-radius: 4px;
  13707. background: #fff;
  13708. font-size: 16px;
  13709. resize: none;
  13710. font-family: "Microsoft YaHei";
  13711. min-height: 48px;
  13712. /* border: 1px solid #3682fc00; */
  13713. border: 1.5px solid #cad1dc;
  13714. }
  13715. .binfo_textarea {
  13716. border: 1.5px solid #cad1dc;
  13717. font-size: 16px;
  13718. resize: none;
  13719. /* background: #f6f6f6; */
  13720. font-family: "Microsoft YaHei";
  13721. }
  13722. .binfo_input:focus-visible {
  13723. border: 1.5px solid #3681fc !important;
  13724. }
  13725. .time {
  13726. display: flex;
  13727. margin: 35px 0 80px 0;
  13728. }
  13729. .chapter_btnbox {
  13730. width: 160px;
  13731. border-radius: 5px;
  13732. border: 2px dashed gray;
  13733. display: flex;
  13734. padding: 8px 50px;
  13735. align-items: center;
  13736. justify-content: center;
  13737. margin: 30px auto 0;
  13738. cursor: pointer;
  13739. }
  13740. .icon_add {
  13741. position: relative;
  13742. width: 24px;
  13743. padding-top: 20px;
  13744. border-radius: 100%;
  13745. border-width: 2px;
  13746. border-style: solid;
  13747. border-color: gray;
  13748. }
  13749. .icon_add i:nth-child(1) {
  13750. position: absolute;
  13751. left: 50%;
  13752. top: 50%;
  13753. height: 60%;
  13754. transform: translate(-50%, -50%);
  13755. border-width: 1px;
  13756. border-style: solid;
  13757. border-color: inherit;
  13758. }
  13759. .icon_add i:nth-child(2) {
  13760. position: absolute;
  13761. top: 50%;
  13762. left: 50%;
  13763. width: 60%;
  13764. transform: translate(-50%, -50%);
  13765. border-width: 1px;
  13766. border-style: solid;
  13767. border-color: inherit;
  13768. }
  13769. .chapter_btn_w {
  13770. font-size: 0.9375rem;
  13771. font-weight: bold;
  13772. color: gray;
  13773. margin-left: 20px;
  13774. }
  13775. .disUoloadSty>>>.el-icon-plus {
  13776. display: none !important;
  13777. /* 上传按钮隐藏 */
  13778. }
  13779. .imgLeft {
  13780. margin: 15px 0;
  13781. }
  13782. .add_info_box {
  13783. margin: 0 0 0 auto;
  13784. display: flex;
  13785. flex-wrap: wrap;
  13786. }
  13787. .add_info_box button {
  13788. margin: 0 5px 10px 0;
  13789. }
  13790. .add_info_box2 {
  13791. display: flex;
  13792. align-items: center;
  13793. flex-wrap: wrap;
  13794. }
  13795. .add_info_box2::after {
  13796. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  13797. color: red;
  13798. font-size: 14px;
  13799. margin-bottom: 10px;
  13800. }
  13801. .add_chapters_box {
  13802. text-align: left;
  13803. background-color: #fff;
  13804. width: 100%;
  13805. border-radius: 4px;
  13806. font-size: 16px;
  13807. box-sizing: border-box;
  13808. position: relative;
  13809. padding: 0 15px;
  13810. height: auto;
  13811. overflow-y: auto;
  13812. overflow-x: hidden;
  13813. border: 1px solid #cad1dc;
  13814. }
  13815. .add_chapters_box.add_c_none {
  13816. display: flex;
  13817. justify-content: center;
  13818. align-items: center;
  13819. padding: 15px;
  13820. }
  13821. .add_c_none>img {
  13822. width: 25px;
  13823. }
  13824. .add_chapters_box.add_c_none>span {
  13825. font-size: 14px;
  13826. font-weight: 400;
  13827. margin: 0 0 5px 5px;
  13828. }
  13829. .homework_box {
  13830. display: flex;
  13831. align-items: flex-start;
  13832. flex-wrap: wrap;
  13833. margin: 15px 0 0 0;
  13834. flex-direction: column;
  13835. align-content: flex-start;
  13836. }
  13837. .course_homework {
  13838. display: flex;
  13839. justify-content: center;
  13840. flex-direction: row;
  13841. align-items: center;
  13842. margin: 0 10px 0 0;
  13843. }
  13844. .course_homework>>>.el-input__inner {
  13845. width: 140px;
  13846. margin-left: 15px;
  13847. }
  13848. .chapter_upload_move {
  13849. position: relative;
  13850. background-color: #fff;
  13851. position: absolute;
  13852. width: 100%;
  13853. top: 0px;
  13854. left: 0px;
  13855. border: 1px solid #eee;
  13856. border-radius: 5px;
  13857. transition: width 2s;
  13858. -moz-transition: width 2s;
  13859. -webkit-transition: width 2s;
  13860. -o-transition: width 2s;
  13861. }
  13862. .chapter_upload_l_i {
  13863. background-image: url("../../../assets/icon.png");
  13864. background-position: 3px -165px;
  13865. width: 30px;
  13866. height: 30px;
  13867. margin: 10px auto 0 auto;
  13868. }
  13869. .course_input_box {
  13870. display: flex;
  13871. margin-right: 20px;
  13872. width: 100%;
  13873. align-items: center;
  13874. position: relative;
  13875. }
  13876. .course_input_box>.binfo_input {
  13877. width: calc(100% - 0 - 200px - 20px);
  13878. margin: 0 10px;
  13879. }
  13880. .bb_courseIcon {
  13881. width: 57px;
  13882. height: 45px;
  13883. background: #f0f4fa;
  13884. border-radius: 5px 0px 0px 5px;
  13885. display: flex;
  13886. align-items: center;
  13887. justify-content: center;
  13888. border-right: 1.5px solid rgb(202, 209, 220);
  13889. box-sizing: border-box;
  13890. position: absolute;
  13891. left: 1.5px;
  13892. }
  13893. .bb_courseIcon>img {
  13894. width: 25px;
  13895. height: auto;
  13896. }
  13897. .big_box {
  13898. /* margin-top: 20px; */
  13899. display: flex;
  13900. justify-content: space-between;
  13901. /* border-bottom: 1px solid #E0E2ED; */
  13902. }
  13903. .left_first {
  13904. display: flex;
  13905. flex-direction: column;
  13906. flex-wrap: nowrap;
  13907. width: calc(100% - 310px);
  13908. padding: 20px;
  13909. box-sizing: border-box;
  13910. background: #fff;
  13911. border-radius: 5px;
  13912. }
  13913. .right_first {
  13914. width: 300px;
  13915. display: flex;
  13916. align-items: center;
  13917. justify-content: center;
  13918. /* border-left: 1px solid #E0E2ED; */
  13919. box-sizing: border-box;
  13920. padding: 20px;
  13921. flex-direction: column;
  13922. background: #fff;
  13923. border-radius: 5px;
  13924. }
  13925. .ai_box {
  13926. width: 204px;
  13927. display: flex;
  13928. justify-content: flex-end;
  13929. margin-bottom: 15px;
  13930. }
  13931. .ai_content {
  13932. display: flex;
  13933. align-items: center;
  13934. font-size: 14px;
  13935. padding: 7px 20px;
  13936. box-sizing: border-box;
  13937. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  13938. border-radius: 12px;
  13939. font-weight: 700;
  13940. cursor: pointer;
  13941. }
  13942. .ai_content>img {
  13943. width: 40px;
  13944. margin-right: 5px;
  13945. }
  13946. .c_info_title {
  13947. padding: 15px 0 15px 0;
  13948. font-size: 16px;
  13949. font-weight: bold;
  13950. margin: 0 0 0 20px;
  13951. box-sizing: border-box;
  13952. display: flex;
  13953. align-items: center;
  13954. line-height: 20px;
  13955. }
  13956. .c_info_title::before {
  13957. content: "";
  13958. display: block;
  13959. width: 3px;
  13960. height: 20px;
  13961. background: #0061ff;
  13962. border-radius: 3px;
  13963. margin: 0 5px 0 0;
  13964. }
  13965. .right_title {
  13966. height: 30px;
  13967. padding: 15px 0 15px 20px;
  13968. border-bottom: 1px solid #f2f2f2;
  13969. font-size: 1.5em;
  13970. font-weight: bold;
  13971. color: #0f7eff;
  13972. margin: 0 auto;
  13973. }
  13974. .people {
  13975. border: 1px solid rgb(229 229 229);
  13976. /* height: 495px; */
  13977. height: 350px;
  13978. border-radius: 5px;
  13979. width: 100%;
  13980. overflow: auto;
  13981. }
  13982. .people_top {
  13983. display: flex;
  13984. width: 100%;
  13985. /* justify-content: space-between; */
  13986. /* align-items: center; */
  13987. flex-direction: column;
  13988. padding: 10px 10px 0;
  13989. box-sizing: border-box;
  13990. }
  13991. .people_nav,
  13992. .people_top_right {
  13993. /* padding: 20px 0 0 20px; */
  13994. }
  13995. .people_top_right {
  13996. height: 40px;
  13997. margin-bottom: 10px;
  13998. }
  13999. .people_search {
  14000. display: flex;
  14001. position: relative;
  14002. }
  14003. .people_search>>>.el-input__inner {
  14004. /* height: 25px; */
  14005. width: 100%;
  14006. }
  14007. .search_img {
  14008. width: 20px;
  14009. height: 20px;
  14010. position: absolute;
  14011. right: 10px;
  14012. top: 50%;
  14013. transform: translateY(-50%);
  14014. }
  14015. .search_img>img {
  14016. width: 100%;
  14017. height: 100%;
  14018. }
  14019. .people_name {
  14020. display: flex;
  14021. justify-content: flex-start;
  14022. padding: 20px 10px;
  14023. flex-direction: column;
  14024. flex-wrap: wrap;
  14025. }
  14026. .p_box {
  14027. position: relative;
  14028. }
  14029. .people_name>>>.el-checkbox {
  14030. width: 100%;
  14031. display: flex;
  14032. align-items: center;
  14033. margin-bottom: 10px;
  14034. }
  14035. .people_name>>>.el-checkbox__label {
  14036. text-overflow: ellipsis;
  14037. overflow: hidden;
  14038. width: calc(100%);
  14039. }
  14040. .people_name2>>>.el-checkbox__label {
  14041. width: calc(100% - 130px);
  14042. }
  14043. .inviteCode {
  14044. position: absolute;
  14045. right: 30px;
  14046. color: #237ade;
  14047. top: 0;
  14048. cursor: pointer;
  14049. font-size: 13px;
  14050. }
  14051. .noneInvite {
  14052. color: #a8a8a8;
  14053. }
  14054. .inviteImg {
  14055. position: absolute;
  14056. right: 5px;
  14057. top: 0;
  14058. width: 20px;
  14059. }
  14060. .right_img {
  14061. width: 150px;
  14062. height: 150px;
  14063. margin: 0 auto;
  14064. }
  14065. .right_img>img {
  14066. width: 100%;
  14067. height: 100%;
  14068. }
  14069. .number {
  14070. margin-top: 20px;
  14071. color: #4aa6ff;
  14072. text-decoration: underline;
  14073. }
  14074. .success_button {
  14075. display: flex;
  14076. text-align: center;
  14077. margin: 5% 0 auto;
  14078. flex-direction: row;
  14079. justify-content: center;
  14080. }
  14081. .look_course {
  14082. margin-right: 40px;
  14083. background: #3d67bc;
  14084. width: 200px;
  14085. height: 35px;
  14086. line-height: 35px;
  14087. color: #fff;
  14088. text-align: center;
  14089. font-size: 14px;
  14090. border-radius: 5px;
  14091. cursor: pointer;
  14092. }
  14093. .attend_others {
  14094. width: 250px;
  14095. background: #4fb13c;
  14096. height: 35px;
  14097. line-height: 35px;
  14098. color: #fff;
  14099. text-align: center;
  14100. font-size: 14px;
  14101. border-radius: 5px;
  14102. cursor: pointer;
  14103. }
  14104. .dialog_diy2>>>.el-dialog__body {
  14105. text-align: center;
  14106. }
  14107. .write_togother {
  14108. position: absolute;
  14109. right: 45px;
  14110. display: flex;
  14111. top: 5%;
  14112. }
  14113. .write_people {
  14114. font-size: 14px;
  14115. line-height: 50px;
  14116. padding-right: 10px;
  14117. }
  14118. .end_write {
  14119. background: #3d67bc;
  14120. color: #fff;
  14121. width: 100px;
  14122. height: 35px;
  14123. line-height: 35px;
  14124. text-align: center;
  14125. font-size: 14px;
  14126. border-radius: 5px;
  14127. cursor: pointer;
  14128. }
  14129. .chapter_upload+.chapter_upload {
  14130. /* margin-top: 15px; */
  14131. border-top: 1px solid #e7ebf1;
  14132. }
  14133. .chapter_upload {
  14134. height: 45px;
  14135. position: relative;
  14136. display: flex;
  14137. align-items: center;
  14138. width: 100%;
  14139. min-height: 45px;
  14140. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14141. /* border-radius: 4px; */
  14142. /* overflow: hidden; */
  14143. box-sizing: border-box;
  14144. }
  14145. .chapter_upload_drag {
  14146. position: absolute;
  14147. cursor: pointer;
  14148. width: 16px;
  14149. height: 16px;
  14150. left: -9px;
  14151. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14152. background-size: 100% 100%;
  14153. z-index: 10;
  14154. display: none;
  14155. }
  14156. .isNavStage>.chapter_upload_drag {
  14157. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  14158. }
  14159. .chapter_upload_t {
  14160. background-color: #fff;
  14161. position: absolute;
  14162. height: 100%;
  14163. top: 0px;
  14164. left: 0px;
  14165. box-sizing: border-box;
  14166. }
  14167. .chapter_upload_o {
  14168. width: 100%;
  14169. height: 100%;
  14170. position: relative;
  14171. z-index: 1;
  14172. }
  14173. .chapter_upload_ic {
  14174. margin: 0 15px 0px auto;
  14175. display: flex;
  14176. align-items: center;
  14177. }
  14178. .chapter_upload_ic_l {
  14179. width: 50px;
  14180. height: 50px;
  14181. float: left;
  14182. }
  14183. .chapter_upload_ic_l div {
  14184. width: 30px;
  14185. height: 35px;
  14186. background: url("../../../assets/icon/icon.png");
  14187. }
  14188. .chapter_upload_ic_edit {
  14189. height: 100%;
  14190. display: flex;
  14191. align-items: center;
  14192. cursor: pointer;
  14193. margin: 0 10px 0 0;
  14194. }
  14195. .chapter_upload_ic_edit div {
  14196. width: 18px;
  14197. height: 18px;
  14198. background-image: url("../../../assets/icon/new/edit_u.png");
  14199. background-size: 100% 100%;
  14200. }
  14201. .chapter_upload_ic_r {
  14202. height: 100%;
  14203. display: flex;
  14204. align-items: center;
  14205. cursor: pointer;
  14206. }
  14207. .chapter_upload_ic_r div {
  14208. width: 18px;
  14209. height: 18px;
  14210. background-image: url("../../../assets/icon/new/delete_u.png");
  14211. background-size: 100% 100%;
  14212. }
  14213. .chapter_upload_n {
  14214. display: flex;
  14215. text-indent: 10px;
  14216. text-decoration: none;
  14217. text-overflow: ellipsis;
  14218. white-space: nowrap;
  14219. overflow: hidden;
  14220. width: 55%;
  14221. margin-left: 10px;
  14222. cursor: pointer;
  14223. margin-top: 2px;
  14224. align-items: center;
  14225. }
  14226. .chapter_upload_l_i2,
  14227. .chapter_upload_l_i3,
  14228. .chapter_upload_l_i8,
  14229. .chapter_upload_l_i6,
  14230. .chapter_upload_l_i12,
  14231. .chapter_upload_l_i14,
  14232. .chapter_upload_l_i13 {
  14233. width: 15px;
  14234. height: 15px;
  14235. background-size: 100% 100%;
  14236. }
  14237. .chapter_upload_l_i2 {
  14238. background-image: url("../../../assets/icon/new/u_word.png");
  14239. }
  14240. .chapter_upload_l_i3 {
  14241. background-image: url("../../../assets/icon/new/u_video.png");
  14242. }
  14243. .chapter_upload_l_i8 {
  14244. background-image: url("../../../assets/icon/new/u_url.png");
  14245. }
  14246. .chapter_upload_l_i14 {
  14247. background-image: url("../../../assets/icon/new/u_source.png");
  14248. }
  14249. .chapter_upload_l_i6 {
  14250. background-image: url("../../../assets/icon/new/u_picture.png");
  14251. }
  14252. .chapter_upload_l_i12 {
  14253. background-image: url("../../../assets/icon/new/u_word.png");
  14254. }
  14255. .chapter_upload_l_i13 {
  14256. background-image: url("../../../assets/icon/new/u_img.png");
  14257. }
  14258. .chapter_upload_noSee {
  14259. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14260. width: 18px;
  14261. height: 18px;
  14262. background-size: 100% 100%;
  14263. display: block;
  14264. margin-right: 10px;
  14265. }
  14266. .chapter_upload_ud {
  14267. display: flex;
  14268. flex-direction: row;
  14269. justify-content: center;
  14270. margin: 0 10px 0 0;
  14271. }
  14272. .chapter_upload_ud>.chapter_upload_up {
  14273. margin-bottom: 0;
  14274. margin-right: 10px;
  14275. }
  14276. .chapter_upload_down,
  14277. .chapter_upload_up {
  14278. width: 20px;
  14279. height: 20px;
  14280. background: #e4eaf2;
  14281. cursor: pointer;
  14282. margin: 0 auto;
  14283. border-radius: 5px;
  14284. display: flex;
  14285. justify-content: center;
  14286. align-items: center;
  14287. }
  14288. .chapter_upload_up::after,
  14289. .chapter_upload_down::after {
  14290. content: "";
  14291. background-image: url("../../../assets/icon/new/downBtn.png");
  14292. width: 13px;
  14293. height: 13px;
  14294. background-size: 100% 100%;
  14295. display: block;
  14296. }
  14297. .chapter_upload_up::after {
  14298. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14299. }
  14300. .chapter_upload_up {
  14301. margin-bottom: 5px;
  14302. }
  14303. .chapter_upload_ud2 {
  14304. display: flex;
  14305. flex-direction: row;
  14306. justify-content: center;
  14307. margin: 0 10px 0 0;
  14308. }
  14309. .chapter_upload_ud2>.chapter_upload_up2 {
  14310. margin-bottom: 0;
  14311. margin-right: 10px;
  14312. }
  14313. .chapter_upload_down2,
  14314. .chapter_upload_up2 {
  14315. cursor: pointer;
  14316. margin: 0 auto;
  14317. border-radius: 5px;
  14318. display: flex;
  14319. justify-content: center;
  14320. align-items: center;
  14321. color: #717c8d;
  14322. font-size: 14px;
  14323. }
  14324. .chapter_upload_up2 {
  14325. margin-right: 10px;
  14326. }
  14327. .chapter_upload_up2::before,
  14328. .chapter_upload_down2::before {
  14329. content: "";
  14330. background-image: url("../../../assets/icon/new/c_down.png");
  14331. width: 14px;
  14332. height: 14px;
  14333. background-size: 100% 100%;
  14334. display: block;
  14335. margin-right: 5px;
  14336. }
  14337. .chapter_upload_up2::before {
  14338. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14339. }
  14340. .addWordStyle {
  14341. display: flex;
  14342. flex-direction: row;
  14343. justify-content: flex-start;
  14344. overflow-x: auto;
  14345. white-space: nowrap;
  14346. flex-wrap: wrap;
  14347. }
  14348. /* table 样式 */
  14349. .cont>>>table {
  14350. border-top: 1px solid #ccc;
  14351. border-left: 1px solid #ccc;
  14352. }
  14353. .cont>>>table td,
  14354. .cont>>>table th {
  14355. border-bottom: 1px solid #ccc;
  14356. border-right: 1px solid #ccc;
  14357. /* padding: 20px 5px; */
  14358. padding: 5px 10px;
  14359. max-width: 0px;
  14360. height: 30px;
  14361. vertical-align: baseline;
  14362. }
  14363. .cont>>>table th {
  14364. border-bottom: 2px solid #ccc;
  14365. text-align: center;
  14366. }
  14367. /* blockquote 样式 */
  14368. .cont>>>blockquote {
  14369. display: block;
  14370. border-left: 8px solid #d0e5f2;
  14371. padding: 5px 10px;
  14372. margin: 10px 0;
  14373. line-height: 1.4;
  14374. font-size: 100%;
  14375. background-color: #f1f1f1;
  14376. }
  14377. /* code 样式 */
  14378. .cont>>>code {
  14379. display: inline-block;
  14380. /* *display: inline; */
  14381. zoom: 1;
  14382. background-color: #f1f1f1;
  14383. border-radius: 3px;
  14384. padding: 3px 5px;
  14385. margin: 0 3px;
  14386. }
  14387. .cont>>>pre code {
  14388. display: block;
  14389. }
  14390. /* ul ol 样式 */
  14391. .cont>>>ul,
  14392. ol {
  14393. margin: 10px 0 10px 20px;
  14394. }
  14395. .wordbox {
  14396. display: flex;
  14397. flex-wrap: wrap;
  14398. cursor: pointer;
  14399. width: 100%;
  14400. }
  14401. .checkword {
  14402. width: 22px;
  14403. height: 22px;
  14404. margin: 10px auto 0;
  14405. cursor: pointer;
  14406. }
  14407. .checkword img {
  14408. width: 100%;
  14409. }
  14410. .stepBg {
  14411. display: flex;
  14412. justify-content: space-between;
  14413. align-items: center;
  14414. background: #fff;
  14415. width: calc(100%);
  14416. margin: 0 auto;
  14417. }
  14418. .stepBorder {
  14419. height: 3px !important;
  14420. background: #cad1dc;
  14421. width: 100px !important;
  14422. margin: 0 15px !important;
  14423. position: relative;
  14424. }
  14425. .border-active {
  14426. background: #3681fc !important;
  14427. }
  14428. .border-active::before,
  14429. .border-active::after {
  14430. border-color: #3681fc !important;
  14431. }
  14432. .stepBorder::before,
  14433. .stepBorder::after {
  14434. content: "";
  14435. width: 9px;
  14436. height: 9px;
  14437. background: #ffffff;
  14438. opacity: 1;
  14439. border: 2px solid #acb4bf;
  14440. display: block;
  14441. box-sizing: border-box;
  14442. border-radius: 50%;
  14443. position: absolute;
  14444. top: 50%;
  14445. transform: translateY(-50%);
  14446. }
  14447. .stepBorder::after {
  14448. right: -9px;
  14449. }
  14450. .stepTop {
  14451. width: 100%;
  14452. /* border-radius: 10px; */
  14453. display: flex;
  14454. justify-content: center;
  14455. align-items: center;
  14456. flex-wrap: nowrap;
  14457. background: #fff;
  14458. /* top: 18%; */
  14459. height: 80px;
  14460. border-bottom: 2px solid rgb(228, 232, 237);
  14461. box-sizing: border-box;
  14462. }
  14463. .stepTop2 {
  14464. width: 100%;
  14465. /* border-radius: 10px; */
  14466. display: flex;
  14467. justify-content: center;
  14468. align-items: center;
  14469. flex-wrap: nowrap;
  14470. background: #fff;
  14471. /* top: 18%; */
  14472. height: 20px;
  14473. border-bottom: 2px solid rgb(228, 232, 237);
  14474. box-sizing: border-box;
  14475. overflow: hidden;
  14476. cursor: pointer;
  14477. }
  14478. .stepTop>div img {
  14479. width: 100%;
  14480. }
  14481. .stepTop>div {
  14482. height: 50px;
  14483. width: 180px;
  14484. cursor: pointer;
  14485. margin: 10px 0;
  14486. border-radius: 10px;
  14487. }
  14488. .first,
  14489. .second,
  14490. .third,
  14491. .four {
  14492. background: #3681fc;
  14493. height: 90px;
  14494. color: #fff;
  14495. display: flex;
  14496. flex-direction: row;
  14497. align-items: center;
  14498. justify-content: center;
  14499. }
  14500. .first>div:nth-child(1),
  14501. .second>div:nth-child(1),
  14502. .third>div:nth-child(1),
  14503. .four>div:nth-child(1) {
  14504. margin: 5px 10px 0 0;
  14505. width: 2rem;
  14506. }
  14507. .firstNo,
  14508. .secondNo,
  14509. .thirdNo,
  14510. .fourNo {
  14511. background: #e7e7e7;
  14512. color: #adadad;
  14513. display: flex;
  14514. flex-direction: row;
  14515. align-items: center;
  14516. justify-content: center;
  14517. }
  14518. .firstNo>div:nth-child(1),
  14519. .secondNo>div:nth-child(1),
  14520. .thirdNo>div:nth-child(1),
  14521. .fourNo>div:nth-child(1) {
  14522. margin: 5px 10px 0 0;
  14523. width: 2rem;
  14524. }
  14525. .uploadWidth>>>.el-upload {
  14526. width: 60px;
  14527. height: 60px;
  14528. position: relative;
  14529. }
  14530. .addPeople {
  14531. background: #fa6060;
  14532. width: 150px;
  14533. height: 40px;
  14534. color: #fff;
  14535. border-radius: 5px;
  14536. text-align: center;
  14537. line-height: 40px;
  14538. font-size: 14px;
  14539. cursor: pointer;
  14540. }
  14541. .kcImg {
  14542. width: 60px;
  14543. margin-left: 10px;
  14544. }
  14545. .zyImg {
  14546. width: 55px;
  14547. margin: 0 10px;
  14548. }
  14549. .deleteZy {
  14550. width: 20px;
  14551. position: absolute;
  14552. top: 5px;
  14553. right: 5px;
  14554. cursor: pointer;
  14555. }
  14556. .kcImg>img,
  14557. .zyImg>img,
  14558. .deleteZy>img {
  14559. width: 100%;
  14560. height: 100%;
  14561. }
  14562. .zyBox {
  14563. display: flex;
  14564. flex-direction: row;
  14565. align-items: center;
  14566. background: #67d37d;
  14567. color: #fff;
  14568. width: 210px;
  14569. margin: 20px 20px 0 0;
  14570. border-radius: 10px;
  14571. height: 70px;
  14572. position: relative;
  14573. }
  14574. .upCss {
  14575. display: flex;
  14576. flex-direction: row;
  14577. justify-content: flex-start;
  14578. }
  14579. .upCss>>>.el-icon-plus {
  14580. position: none !important;
  14581. width: 200px;
  14582. height: 100px;
  14583. display: flex;
  14584. flex-wrap: nowrap;
  14585. flex-direction: column;
  14586. align-items: center;
  14587. justify-content: center;
  14588. border: 1px dashed #ccc;
  14589. min-width: 78px;
  14590. min-height: 100px;
  14591. z-index: 999;
  14592. }
  14593. .upCss>>>.el-upload-list__item-name {
  14594. width: 100px;
  14595. white-space: nowrap;
  14596. overflow: hidden;
  14597. text-overflow: ellipsis;
  14598. }
  14599. .upCss>>>.el-upload-list__item .el-icon-close {
  14600. font-size: 20px;
  14601. z-index: 9999;
  14602. }
  14603. .addStageImg {
  14604. min-width: 20px;
  14605. min-height: 20px;
  14606. width: 20px;
  14607. height: 20px;
  14608. cursor: pointer;
  14609. }
  14610. .addHW {
  14611. width: 28px;
  14612. height: 28px;
  14613. cursor: pointer;
  14614. }
  14615. .addStageImg>img,
  14616. .addHW>img {
  14617. width: 100%;
  14618. height: 100%;
  14619. }
  14620. .addNewPP>>>.el-dialog__body {
  14621. padding: 5px 20px;
  14622. }
  14623. .addNewPP>>>.el-dialog {
  14624. margin-top: 5vh !important;
  14625. }
  14626. .addNewPP2>>>.el-dialog__body {
  14627. padding: 5px 0;
  14628. }
  14629. .addNewPP2>>>.el-dialog {
  14630. margin-top: 5vh !important;
  14631. }
  14632. .isHeight {
  14633. height: 680px;
  14634. }
  14635. .toolChoose {
  14636. display: flex;
  14637. /* width: 100%; */
  14638. flex-direction: row;
  14639. flex-wrap: wrap;
  14640. }
  14641. .tool,
  14642. .isToolChoose {
  14643. display: flex;
  14644. flex-direction: column;
  14645. flex-wrap: nowrap;
  14646. width: fit-content;
  14647. margin: 10px 0 10px 0;
  14648. align-items: center;
  14649. border: 2px solid #dbdbdb00;
  14650. padding: 10px 20px;
  14651. border-radius: 5px;
  14652. cursor: pointer;
  14653. /* box-shadow: 0 0 2px 0px #dedede; */
  14654. position: relative;
  14655. box-sizing: border-box;
  14656. }
  14657. .tool:hover {
  14658. border: 2px solid #a5c7ff;
  14659. }
  14660. .tool:hover>.noCTool {
  14661. display: block;
  14662. opacity: 0.5;
  14663. }
  14664. .isToolChoose {
  14665. border: 2px solid #438aff !important;
  14666. box-shadow: 0 0 2px 0px #438aff;
  14667. opacity: 1 !important;
  14668. }
  14669. .isCTool,
  14670. .noCTool {
  14671. width: 30px;
  14672. height: 30px;
  14673. position: absolute;
  14674. top: -4px;
  14675. right: -4px;
  14676. }
  14677. .noCTool {
  14678. display: none;
  14679. }
  14680. .isCTool>img,
  14681. .noCTool>img {
  14682. width: 100%;
  14683. height: 100%;
  14684. }
  14685. .tool+.tool {
  14686. margin-right: 10px;
  14687. }
  14688. .whiteBIcon {
  14689. width: 80px;
  14690. cursor: pointer;
  14691. display: flex;
  14692. flex-direction: column;
  14693. flex-wrap: nowrap;
  14694. align-items: center;
  14695. font-size: 14px;
  14696. }
  14697. .whiteBIcon>img,
  14698. .toolIcon>img,
  14699. .arrow>img {
  14700. width: 100%;
  14701. height: 100%;
  14702. }
  14703. .check img {
  14704. width: 20px;
  14705. height: 20px;
  14706. }
  14707. .whiteBIcon>img {
  14708. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  14709. border-radius: 15px;
  14710. }
  14711. .whiteBIcon>div:nth-child(2) {
  14712. height: 20px;
  14713. line-height: 20px;
  14714. }
  14715. .check {
  14716. /* width: 20px;
  14717. height: 20px; */
  14718. cursor: pointer;
  14719. margin: 10px 0 0;
  14720. }
  14721. .checkDiv {
  14722. display: flex;
  14723. align-items: center;
  14724. }
  14725. .checkDiv span {
  14726. margin-left: 5px;
  14727. color: #858585;
  14728. }
  14729. .customWidth>>>.el-dialog {
  14730. min-width: 500px !important;
  14731. }
  14732. .a_addBox {
  14733. margin: 10px 0;
  14734. background: #fff;
  14735. padding: 15px;
  14736. /* max-height: 600px; */
  14737. overflow: auto;
  14738. }
  14739. .a_add_box {
  14740. border-bottom: 2px solid #eee;
  14741. padding-bottom: 25px;
  14742. }
  14743. .a_add_head {
  14744. display: flex;
  14745. align-items: center;
  14746. justify-content: space-between;
  14747. margin: 10px 0 0 0;
  14748. font-size: 18px;
  14749. }
  14750. .a_add_checkType {
  14751. margin-top: 10px;
  14752. display: flex;
  14753. font-size: 14px;
  14754. align-items: center;
  14755. }
  14756. .a_add_checkType span {
  14757. box-sizing: border-box;
  14758. padding: 0 0 5px 0;
  14759. cursor: pointer;
  14760. }
  14761. .a_add_checkType span+span {
  14762. margin-left: 10px;
  14763. }
  14764. .a_add_checkType .active {
  14765. border-bottom: 2px solid #409eff;
  14766. color: #409eff;
  14767. }
  14768. .a_add_head .a_add_head_input {
  14769. /* width: 540px; */
  14770. width: 100%;
  14771. }
  14772. .a_add_head .a_add_head_div {
  14773. display: flex;
  14774. align-items: center;
  14775. justify-content: space-between;
  14776. }
  14777. .a_add_body {
  14778. display: flex;
  14779. /* align-items: center; */
  14780. align-items: flex-end;
  14781. }
  14782. .a_add_input {
  14783. display: flex;
  14784. align-items: center;
  14785. flex-wrap: wrap;
  14786. }
  14787. .a_add_input_choice {
  14788. flex-direction: column;
  14789. margin-right: 10px;
  14790. }
  14791. .a_add_input_choice>>>.el-radio {
  14792. display: flex;
  14793. align-items: center;
  14794. flex-direction: row-reverse;
  14795. margin: 30px 0 0 0;
  14796. position: relative;
  14797. }
  14798. .a_add_input_choice>>>.el-checkbox {
  14799. display: flex;
  14800. align-items: center;
  14801. flex-direction: row-reverse;
  14802. margin: 30px 0 0 0;
  14803. position: relative;
  14804. }
  14805. .width100 {
  14806. width: 100%;
  14807. }
  14808. .a_add_input .a_add_persent {
  14809. width: 100%;
  14810. }
  14811. .a_add_persent_div {
  14812. width: 100%;
  14813. display: flex;
  14814. align-items: center;
  14815. }
  14816. .a_add_persent_div span {
  14817. margin: 5px 0;
  14818. }
  14819. .a_add_persent_div span:nth-child(1) {
  14820. width: 30%;
  14821. }
  14822. .a_add_persent_div span:nth-child(2) {
  14823. width: 7%;
  14824. }
  14825. .a_add_persent_div span:nth-child(3) {
  14826. width: 40%;
  14827. }
  14828. .a_add_body_div {
  14829. display: flex;
  14830. align-items: center;
  14831. justify-content: center;
  14832. /* flex-direction: column; */
  14833. position: absolute;
  14834. right: -20px;
  14835. transform: translateX(100%);
  14836. }
  14837. .a_add_body_div>>>.el-button--primary {
  14838. background: #466b99;
  14839. border: none;
  14840. }
  14841. .all_choose {
  14842. display: flex;
  14843. flex-direction: row;
  14844. align-items: flex-start;
  14845. width: 100%;
  14846. }
  14847. .all_choose+.all_choose {
  14848. /* margin-top: 10px */
  14849. }
  14850. .all_choose>span {
  14851. min-width: fit-content;
  14852. display: block;
  14853. white-space: nowrap;
  14854. overflow: hidden;
  14855. text-overflow: ellipsis;
  14856. margin-right: 20px;
  14857. font-weight: bold;
  14858. font-size: 14px;
  14859. }
  14860. .all_choose>>>.el-checkbox-group {
  14861. display: flex;
  14862. flex-direction: row;
  14863. width: 100%;
  14864. flex-wrap: wrap;
  14865. align-content: center;
  14866. justify-content: flex-start;
  14867. align-items: center;
  14868. margin-top: 3px;
  14869. }
  14870. .all_choose>.el-checkbox-group>>>.el-checkbox {
  14871. margin-bottom: 10px;
  14872. display: flex;
  14873. flex-direction: row;
  14874. align-items: center;
  14875. margin-right: 10px;
  14876. }
  14877. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  14878. min-width: 80px;
  14879. overflow: hidden;
  14880. width: 80px;
  14881. text-overflow: ellipsis;
  14882. white-space: nowrap;
  14883. }
  14884. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  14885. width: auto;
  14886. }
  14887. .choose>div:nth-child(3)>span {
  14888. /* letter-spacing: 0 !important; */
  14889. }
  14890. .choose {
  14891. display: flex;
  14892. flex-direction: column;
  14893. flex-wrap: nowrap;
  14894. height: 100%;
  14895. justify-content: space-evenly;
  14896. align-items: flex-start;
  14897. }
  14898. .both {
  14899. display: flex;
  14900. flex-direction: row;
  14901. flex-wrap: wrap;
  14902. width: 100%;
  14903. align-items: center;
  14904. justify-content: flex-start;
  14905. margin: 15px 0;
  14906. }
  14907. .notice>>>.el-dialog {
  14908. width: 500px !important;
  14909. text-align: center;
  14910. }
  14911. .notice>>>.el-button {
  14912. margin-top: 20px;
  14913. }
  14914. .whiteBg {
  14915. /* background: #fff; */
  14916. border-radius: 10px;
  14917. }
  14918. .wb_j_box {
  14919. display: flex;
  14920. width: 100%;
  14921. padding: 0 20px 0;
  14922. box-sizing: border-box;
  14923. }
  14924. .wb_j_box_content {
  14925. width: calc(100% - 55% - 100px);
  14926. display: flex;
  14927. align-items: center;
  14928. }
  14929. .wb_j_box_p_box {
  14930. max-width: calc(100% - 200px);
  14931. word-break: break-all;
  14932. overflow: hidden;
  14933. margin: 0 0 0 10px;
  14934. font-size: 14px;
  14935. color: #6e6e6e;
  14936. z-index: 999;
  14937. }
  14938. .chooseWho {
  14939. display: flex;
  14940. width: 410px;
  14941. flex-direction: row;
  14942. flex-wrap: nowrap;
  14943. justify-content: space-between;
  14944. padding-bottom: 10px;
  14945. }
  14946. .chooseWho>div {
  14947. cursor: pointer;
  14948. padding-bottom: 10px;
  14949. font-weight: bold;
  14950. }
  14951. .isChooseActive {
  14952. color: #3e88f4;
  14953. border-bottom: 2px solid #2f80f3;
  14954. }
  14955. .toolSort {
  14956. display: flex;
  14957. flex-direction: row;
  14958. flex-wrap: wrap;
  14959. justify-content: flex-start;
  14960. align-items: flex-start;
  14961. }
  14962. .toolSort>div {
  14963. margin-right: 10px;
  14964. }
  14965. .tools {
  14966. width: 100%;
  14967. display: flex;
  14968. flex-direction: column;
  14969. flex-wrap: nowrap;
  14970. align-items: flex-start;
  14971. }
  14972. .leftTools,
  14973. .rightTools {
  14974. width: 50%;
  14975. }
  14976. .leftTools+.leftTools {
  14977. border-top: 1px solid #dbdbdb;
  14978. padding-top: 30px;
  14979. }
  14980. .rightTools {
  14981. display: flex;
  14982. flex-direction: row;
  14983. flex-wrap: nowrap;
  14984. justify-content: space-around;
  14985. }
  14986. .firstToolList {
  14987. display: flex;
  14988. flex-direction: column;
  14989. flex-wrap: nowrap;
  14990. align-items: center;
  14991. }
  14992. .iconList {
  14993. display: flex;
  14994. flex-direction: row;
  14995. flex-wrap: wrap;
  14996. justify-content: flex-start;
  14997. align-items: center;
  14998. margin: 20px 0 5px 0;
  14999. width: 240px;
  15000. min-width: 240px;
  15001. }
  15002. .iconTool {
  15003. display: flex;
  15004. flex-direction: column;
  15005. flex-wrap: nowrap;
  15006. align-items: center;
  15007. justify-content: flex-start;
  15008. margin: 15px 10px;
  15009. }
  15010. .toolIcon {
  15011. width: 50px;
  15012. }
  15013. .taskBorder {
  15014. /* border: 1px solid #CAD1DC; */
  15015. border-radius: 10px;
  15016. margin-top: 10px;
  15017. min-height: 670px;
  15018. position: relative;
  15019. background: #fff;
  15020. padding: 20px;
  15021. overflow: hidden;
  15022. box-sizing: border-box;
  15023. }
  15024. .smallTaskBorder {
  15025. height: 405px;
  15026. min-height: 405px !important;
  15027. overflow: hidden;
  15028. }
  15029. /* .taskBorder>div {
  15030. padding: 30px 30px 10px;
  15031. } */
  15032. .addTaskBorder {
  15033. /* border: 2px solid #5E9AFC; */
  15034. border-radius: 8px;
  15035. margin-top: 10px;
  15036. cursor: pointer;
  15037. /* height: 50px;
  15038. line-height: 50px; */
  15039. background: #fff;
  15040. padding: 15px 0;
  15041. display: flex;
  15042. align-items: center;
  15043. justify-content: center;
  15044. }
  15045. /* .addTaskBorder>div {
  15046. margin: 0 auto;
  15047. display: flex;
  15048. align-items: center;
  15049. justify-content: center;
  15050. }
  15051. .addTaskBorder>div>img {
  15052. width: 20px;
  15053. }
  15054. .addTaskBorder>div>span {
  15055. font-size: 16px;
  15056. margin-left: 10px;
  15057. color: #5E9AFC;
  15058. } */
  15059. .funBlock {
  15060. display: flex;
  15061. padding: 15px 0;
  15062. flex-direction: row;
  15063. justify-content: center;
  15064. align-items: center;
  15065. position: absolute;
  15066. right: 0;
  15067. bottom: 0;
  15068. background: #fff;
  15069. width: 100%;
  15070. height: 60px;
  15071. z-index: 9;
  15072. }
  15073. .fold {
  15074. display: flex;
  15075. margin: 0 20px;
  15076. flex-direction: row;
  15077. align-items: center;
  15078. cursor: pointer;
  15079. color: #2b7bff;
  15080. }
  15081. .arrow {
  15082. margin-right: 8px;
  15083. width: 16px;
  15084. height: 16px;
  15085. min-width: 16px;
  15086. min-height: 16px;
  15087. background-size: 100% 100%;
  15088. display: block;
  15089. background-image: url(../../../assets/icon/new/u_up.png);
  15090. /* border-left: 7px solid transparent;
  15091. border-bottom: 7px solid #717C8D;
  15092. border-top: 0px solid transparent;
  15093. border-right: 7px solid transparent; */
  15094. /* box-sizing: border-box; */
  15095. transition: all 0.3s;
  15096. }
  15097. .arrowZ {
  15098. transform: rotate(180deg);
  15099. }
  15100. .addToolFun {
  15101. display: flex;
  15102. width: 150px;
  15103. flex-direction: row;
  15104. align-items: center;
  15105. justify-content: center;
  15106. border: 2px dashed #cad1dc;
  15107. border-radius: 5px;
  15108. height: 50px;
  15109. margin: 35px auto 0;
  15110. cursor: pointer;
  15111. }
  15112. .addToolFun2 {
  15113. display: flex;
  15114. width: 150px;
  15115. border: 2px dashed #cad1dc;
  15116. flex-direction: row;
  15117. align-items: center;
  15118. justify-content: center;
  15119. border-radius: 5px;
  15120. height: 50px;
  15121. margin: 0 auto 0;
  15122. cursor: pointer;
  15123. }
  15124. .addToolFun2>div,
  15125. .addToolFun>div {
  15126. display: flex;
  15127. line-height: 50px;
  15128. }
  15129. .addToolImg {
  15130. width: 20px;
  15131. height: 20px;
  15132. margin-right: 10px;
  15133. }
  15134. .addToolsDia>>>.el-dialog__body {
  15135. padding: 20px;
  15136. }
  15137. .addToolsDia>>>.el-dialog__body>.toolChoose {
  15138. padding: 0;
  15139. }
  15140. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  15141. padding: 0;
  15142. border-bottom: none;
  15143. margin-bottom: 0;
  15144. }
  15145. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  15146. width: 100%;
  15147. }
  15148. .lineCss>>>.el-form-item__label {
  15149. width: auto !important;
  15150. }
  15151. .lineCss>>>.el-form-item__content {
  15152. margin-left: 50px !important;
  15153. }
  15154. .newSteps {
  15155. display: flex;
  15156. width: 100% !important;
  15157. /* height: 80px; */
  15158. cursor: pointer;
  15159. margin: 10px 0;
  15160. border-radius: 10px;
  15161. flex-direction: row;
  15162. align-content: center;
  15163. justify-content: center;
  15164. align-items: center;
  15165. margin: 0 !important;
  15166. }
  15167. /* 评价样式 */
  15168. .elist_css {
  15169. padding-bottom: 75px !important;
  15170. }
  15171. .elist_title {
  15172. margin-bottom: 10px;
  15173. }
  15174. .elist_input {
  15175. width: 100%;
  15176. }
  15177. .elist_input_box {
  15178. display: flex;
  15179. align-items: center;
  15180. flex-wrap: wrap;
  15181. }
  15182. .elist_input_box+.elist_input_box {
  15183. margin-top: 30px;
  15184. }
  15185. .elist_input .elist_input_box input {
  15186. font: inherit;
  15187. color: currentColor;
  15188. width: 100%;
  15189. /* max-width: calc(100% - 385px); */
  15190. max-width: calc(100% - 150px);
  15191. padding: 8px 14px;
  15192. display: block;
  15193. min-width: 0;
  15194. outline: none;
  15195. border: 1px solid rgba(0, 0, 0, 0.23);
  15196. border-radius: 4px;
  15197. box-sizing: border-box;
  15198. background: #fff;
  15199. margin: 0 20px 0 0;
  15200. }
  15201. .elist_input .elist_input_box span {
  15202. height: 36px;
  15203. line-height: 36px;
  15204. color: rgb(82, 82, 82);
  15205. min-width: 80px;
  15206. }
  15207. .elist_input .elist_input_box .remove {
  15208. height: 20px;
  15209. width: 20px;
  15210. min-height: 20px;
  15211. min-width: 20px;
  15212. background-size: 100% 100%;
  15213. background-position: unset;
  15214. margin-left: 5px;
  15215. }
  15216. .elist_input_box>>>.el-rate {
  15217. display: flex;
  15218. height: 36px;
  15219. align-items: center;
  15220. }
  15221. .elist_input_box .elist_inptu_text {
  15222. width: 100%;
  15223. display: flex;
  15224. align-items: center;
  15225. margin-top: 10px;
  15226. }
  15227. .elist_input_box .elist_inptu_text input {
  15228. /* width: 500px; */
  15229. width: 100%;
  15230. max-width: unset;
  15231. }
  15232. .elist_input_box>>>.el-rate__icon {
  15233. font-size: 24px;
  15234. }
  15235. .elist_btn {
  15236. margin-top: 10px;
  15237. }
  15238. .lineTitle {
  15239. /* margin-top: 15px; */
  15240. width: 110px;
  15241. font-size: 16px;
  15242. display: flex;
  15243. align-items: center;
  15244. line-height: 20px;
  15245. }
  15246. .lineTitle::before {
  15247. content: "";
  15248. display: block;
  15249. width: 3px;
  15250. height: 20px;
  15251. background: #0061ff;
  15252. border-radius: 3px;
  15253. margin: 0 5px 0 0;
  15254. }
  15255. .clineTitle::before {
  15256. content: "";
  15257. display: block;
  15258. min-width: 10px;
  15259. width: 10px;
  15260. height: 10px;
  15261. background: #0061ff;
  15262. border-radius: 50%;
  15263. margin: 0 5px 0 0;
  15264. }
  15265. .courseTop {
  15266. display: flex;
  15267. flex-direction: row;
  15268. justify-content: space-between;
  15269. align-items: center;
  15270. width: calc(100% - 40px);
  15271. margin: 0 auto;
  15272. padding: 10px 0;
  15273. }
  15274. .stepsNav {
  15275. display: flex;
  15276. flex-direction: row;
  15277. justify-content: flex-start;
  15278. align-items: center;
  15279. }
  15280. .stepsWord {
  15281. font-size: 18px;
  15282. color: #fff;
  15283. font-weight: bold;
  15284. margin-left: auto;
  15285. background: rgb(15, 126, 255);
  15286. border-radius: 5px;
  15287. padding: 3px 25px;
  15288. box-sizing: border-box;
  15289. }
  15290. .stepBox {
  15291. width: calc(100% - 40px);
  15292. height: calc(100% - 50px);
  15293. overflow: hidden;
  15294. border-radius: 5px;
  15295. margin: 0 auto;
  15296. }
  15297. .rightBox {
  15298. width: calc(100%);
  15299. background: #f0f2f5;
  15300. /* border-radius: 10px; */
  15301. overflow: auto;
  15302. height: calc(100% - 150px);
  15303. margin: 0 auto;
  15304. position: relative;
  15305. box-sizing: border-box;
  15306. }
  15307. .e_add_top {
  15308. display: flex;
  15309. justify-content: space-between;
  15310. background: #fff;
  15311. position: absolute;
  15312. right: 20px;
  15313. height: 50px;
  15314. align-items: center;
  15315. }
  15316. .e_add_title2 {
  15317. display: flex;
  15318. align-items: center;
  15319. }
  15320. .e_add_title2 span {
  15321. width: 40px;
  15322. }
  15323. .e_add_title {
  15324. display: flex;
  15325. align-items: center;
  15326. color: #b8b8b8;
  15327. font-size: 18px;
  15328. position: relative;
  15329. height: 40px;
  15330. }
  15331. .e_add_title span {
  15332. margin-right: 10px;
  15333. }
  15334. .e_add_title .el_input {
  15335. width: 300px;
  15336. }
  15337. .e_add_title>>>.el-input__inner {
  15338. width: 400px;
  15339. }
  15340. .e_add_btn {}
  15341. .e_add_content {
  15342. display: flex;
  15343. width: 100%;
  15344. }
  15345. .e_add_list {
  15346. background: #fff;
  15347. height: 500px;
  15348. width: 210px;
  15349. position: relative;
  15350. margin: 15px 5px 0 0;
  15351. flex-shrink: 0;
  15352. display: flex;
  15353. flex-direction: column;
  15354. }
  15355. .e_add_list_title {
  15356. font-size: 20px;
  15357. width: 100%;
  15358. box-sizing: border-box;
  15359. padding: 15px 40px;
  15360. text-align: center;
  15361. border-bottom: 1px solid #eaeaea;
  15362. position: relative;
  15363. display: flex;
  15364. align-items: center;
  15365. justify-content: center;
  15366. height: 57px;
  15367. background: #f6f6f6;
  15368. }
  15369. .e_add_list_title span {
  15370. overflow: hidden;
  15371. white-space: nowrap;
  15372. text-overflow: ellipsis;
  15373. }
  15374. .e_add_list_title img {
  15375. position: absolute;
  15376. right: 15px;
  15377. width: 25px;
  15378. cursor: pointer;
  15379. top: 50%;
  15380. transform: translateY(-50%);
  15381. }
  15382. .e_add_list_body {
  15383. height: calc(100% - 187px);
  15384. overflow: auto;
  15385. }
  15386. .e_add_list_child {
  15387. width: 100%;
  15388. display: flex;
  15389. align-items: center;
  15390. justify-content: center;
  15391. position: relative;
  15392. box-sizing: border-box;
  15393. padding: 15px 40px;
  15394. text-align: center;
  15395. }
  15396. .e_add_list_child span {
  15397. overflow: hidden;
  15398. white-space: nowrap;
  15399. text-overflow: ellipsis;
  15400. cursor: pointer;
  15401. }
  15402. .e_add_list_child img {
  15403. position: absolute;
  15404. right: 10px;
  15405. width: 21px;
  15406. cursor: pointer;
  15407. top: 50%;
  15408. transform: translateY(-50%);
  15409. }
  15410. .e_add_list_child+.e_add_list_child {
  15411. border-top: 1px solid #eaeaea;
  15412. }
  15413. .e_add_list_child .active {
  15414. color: #409eff;
  15415. }
  15416. .e_add_list_btn {
  15417. position: absolute;
  15418. bottom: 0;
  15419. height: 50px;
  15420. background: rgb(120, 120, 254);
  15421. width: 100%;
  15422. color: #fff;
  15423. font-size: 16px;
  15424. text-align: center;
  15425. line-height: 50px;
  15426. cursor: pointer;
  15427. }
  15428. .e_add_list_detail {
  15429. position: absolute;
  15430. bottom: 0;
  15431. height: 130px;
  15432. background: rgb(120, 120, 254);
  15433. width: 100%;
  15434. color: #fff;
  15435. font-size: 16px;
  15436. display: flex;
  15437. align-items: center;
  15438. justify-content: center;
  15439. }
  15440. .e_add_list_detail textarea {
  15441. height: 90%;
  15442. width: 95%;
  15443. border: none;
  15444. resize: none;
  15445. outline: none;
  15446. padding: 5px;
  15447. box-sizing: border-box;
  15448. }
  15449. .e_add_list_pbox {
  15450. width: 100%;
  15451. }
  15452. .e_add_list_pbox_title {
  15453. height: 50px;
  15454. background: #fff;
  15455. display: flex;
  15456. align-items: center;
  15457. width: 100%;
  15458. box-sizing: border-box;
  15459. padding: 0 20px;
  15460. flex-direction: row;
  15461. flex-wrap: wrap;
  15462. }
  15463. .type_title {
  15464. font-size: 18px;
  15465. font-weight: 700;
  15466. }
  15467. .type_content {
  15468. font-size: 16px;
  15469. margin-left: 30px;
  15470. }
  15471. .type_content span+span {
  15472. margin-left: 20px;
  15473. }
  15474. .type_content span {
  15475. cursor: pointer;
  15476. padding-bottom: 5px;
  15477. box-sizing: border-box;
  15478. }
  15479. .type_content .active {
  15480. color: #409eff;
  15481. border-bottom: 2px solid #409eff;
  15482. }
  15483. .e_add_list_pbox_content {
  15484. height: calc(100% - 50px);
  15485. display: flex;
  15486. align-items: center;
  15487. width: 100%;
  15488. background: #fff;
  15489. }
  15490. .mbCss {
  15491. width: 100%;
  15492. display: flex;
  15493. flex-direction: row;
  15494. flex-wrap: nowrap;
  15495. align-content: center;
  15496. align-items: flex-start;
  15497. justify-content: flex-start;
  15498. }
  15499. .pjCss {
  15500. /* width: 42%; */
  15501. width: calc(100% - 55%);
  15502. display: flex;
  15503. flex-direction: column;
  15504. flex-wrap: nowrap;
  15505. align-items: flex-start;
  15506. }
  15507. .e_box {
  15508. /* display: flex; */
  15509. flex-wrap: wrap;
  15510. max-height: 500px;
  15511. align-items: flex-start;
  15512. overflow: auto;
  15513. width: 100%;
  15514. }
  15515. .e_card {
  15516. border: 1px solid #ccc;
  15517. background: #fff;
  15518. margin-right: 20px;
  15519. width: 270px;
  15520. display: flex;
  15521. flex-direction: column;
  15522. align-items: center;
  15523. border-radius: 5px;
  15524. margin-top: 10px;
  15525. text-align: center;
  15526. }
  15527. .e_card_picture {
  15528. margin: 10px 0;
  15529. }
  15530. .e_card_picture>img {
  15531. width: 50px;
  15532. }
  15533. .e_card_name {
  15534. width: 100%;
  15535. padding: 0 10px;
  15536. box-sizing: border-box;
  15537. margin-bottom: 10px;
  15538. overflow: hidden;
  15539. text-overflow: ellipsis;
  15540. white-space: nowrap;
  15541. }
  15542. .e_card_time {
  15543. width: 100%;
  15544. padding: 0 10px;
  15545. box-sizing: border-box;
  15546. font-size: 15px;
  15547. color: #c3c3c3;
  15548. margin-bottom: 10px;
  15549. }
  15550. .e_card_btn {
  15551. height: 40px;
  15552. display: flex;
  15553. align-items: center;
  15554. width: 100%;
  15555. background: rgb(244, 244, 244);
  15556. }
  15557. .e_card_btn:hover {
  15558. background: rgb(221 221 221);
  15559. }
  15560. .e_card_btn span {
  15561. flex: 1 1 auto;
  15562. text-align: center;
  15563. cursor: pointer;
  15564. }
  15565. .addEva {
  15566. border: 1px solid #ccc;
  15567. background: #fff;
  15568. margin-right: 20px;
  15569. width: 270px;
  15570. height: 149px;
  15571. display: flex;
  15572. flex-direction: column;
  15573. align-items: center;
  15574. border-radius: 5px;
  15575. margin-top: 10px;
  15576. text-align: center;
  15577. cursor: pointer;
  15578. justify-content: center;
  15579. }
  15580. .addEva>img {
  15581. width: 50px;
  15582. object-fit: cover;
  15583. }
  15584. .uploadFm {
  15585. border: 1px dashed #ccc;
  15586. width: 100%;
  15587. height: 140px;
  15588. position: relative;
  15589. cursor: pointer;
  15590. display: flex;
  15591. flex-direction: column;
  15592. justify-content: center;
  15593. align-items: center;
  15594. font-size: 14px;
  15595. color: #6e6e6e;
  15596. position: relative;
  15597. }
  15598. .cover_p {
  15599. width: 100% !important;
  15600. height: 100%;
  15601. object-fit: cover;
  15602. }
  15603. .uploadFm2:hover .cover_mask {
  15604. display: flex !important;
  15605. }
  15606. .cover_mask {
  15607. display: none;
  15608. width: 100%;
  15609. height: 100%;
  15610. position: absolute;
  15611. background: #00000054;
  15612. align-items: center;
  15613. justify-content: center;
  15614. flex-direction: column;
  15615. }
  15616. .cover_mask>img {
  15617. width: 30px;
  15618. }
  15619. .cover_mask>span {
  15620. color: #fff;
  15621. font-size: 12px;
  15622. }
  15623. .uploadFm>img {
  15624. width: 50px;
  15625. }
  15626. .fileCss {
  15627. width: 100%;
  15628. display: flex;
  15629. flex-direction: row;
  15630. flex-wrap: nowrap;
  15631. justify-content: space-around;
  15632. align-items: center;
  15633. padding-top: 15px;
  15634. }
  15635. .fileCss>div {
  15636. display: flex;
  15637. flex-direction: column;
  15638. align-items: center;
  15639. }
  15640. .fileCss .spanName {
  15641. margin-top: 10px;
  15642. }
  15643. .sysPicBox {
  15644. display: flex;
  15645. flex-direction: row;
  15646. flex-wrap: wrap;
  15647. align-content: flex-start;
  15648. height: 435px;
  15649. overflow: auto;
  15650. position: relative;
  15651. }
  15652. .picNone {
  15653. position: absolute;
  15654. left: 50%;
  15655. top: 45%;
  15656. transform: translate(-50%, -50%);
  15657. width: fit-content;
  15658. color: #9c9c9c;
  15659. }
  15660. .sysPic {
  15661. width: 200px;
  15662. height: 115px;
  15663. margin: 0 20px 20px 0;
  15664. cursor: pointer;
  15665. }
  15666. .sysPic>img,
  15667. .isSysPic>img,
  15668. .deletePic>img {
  15669. width: 100%;
  15670. height: 100%;
  15671. object-fit: cover;
  15672. }
  15673. .isSysPic {
  15674. width: 200px;
  15675. height: 115px;
  15676. position: relative;
  15677. }
  15678. .deletePic {
  15679. width: 20px;
  15680. height: 20px;
  15681. position: absolute;
  15682. top: 0;
  15683. right: 0;
  15684. cursor: pointer;
  15685. }
  15686. .select_box1 {
  15687. height: 100%;
  15688. }
  15689. .select_box1_img {
  15690. background: #fff;
  15691. border-radius: 5px;
  15692. padding: 15px;
  15693. box-sizing: border-box;
  15694. margin-bottom: 20px;
  15695. }
  15696. .select_box1_title {
  15697. padding: 0 0 15px 0;
  15698. border-bottom: 1px solid #eee;
  15699. margin-bottom: 15px;
  15700. }
  15701. .select_box1_title span:nth-child(1) {
  15702. font-size: 16px;
  15703. margin-right: 20px;
  15704. color: #000;
  15705. }
  15706. .select_box1_title span:nth-child(2) {
  15707. font-size: 14px;
  15708. color: rgb(112, 112, 112);
  15709. }
  15710. .select_box1_add_img {}
  15711. .select_box1_select {
  15712. background: #fff;
  15713. border-radius: 5px;
  15714. padding: 15px;
  15715. box-sizing: border-box;
  15716. height: calc(100% - 200px);
  15717. overflow: auto;
  15718. }
  15719. .select_box2 {
  15720. height: 100%;
  15721. }
  15722. .select_box2_title {
  15723. background: #fff;
  15724. border-radius: 5px;
  15725. padding: 5px 10px;
  15726. box-sizing: border-box;
  15727. margin-bottom: 10px;
  15728. }
  15729. .select_box2_box {
  15730. display: flex;
  15731. height: calc(100% - 30px);
  15732. }
  15733. .select_box2_img {
  15734. width: calc(100% - 310px);
  15735. height: 100%;
  15736. overflow: auto;
  15737. background: #fff;
  15738. border-radius: 5px;
  15739. }
  15740. .select_box2_img img {
  15741. width: 100%;
  15742. }
  15743. .select_box2_answer {
  15744. background: #fff;
  15745. margin-left: 10px;
  15746. border-radius: 5px;
  15747. width: 300px;
  15748. overflow: auto;
  15749. height: 100%;
  15750. display: flex;
  15751. flex-direction: column;
  15752. align-items: center;
  15753. padding-top: 10px;
  15754. box-sizing: border-box;
  15755. }
  15756. .select_box2_answer_box {
  15757. margin: 0 0 10px 0;
  15758. width: 85%;
  15759. }
  15760. .rate_textarea {
  15761. font: inherit;
  15762. color: currentColor;
  15763. width: 100%;
  15764. padding: 8px 14px;
  15765. display: block;
  15766. min-width: 0;
  15767. outline: none;
  15768. border: 1px solid rgba(0, 0, 0, 0.23);
  15769. border-radius: 4px;
  15770. box-sizing: border-box;
  15771. background: #fff;
  15772. margin: 0 20px 0 0;
  15773. resize: none;
  15774. }
  15775. .select_answer_title {
  15776. text-align: left;
  15777. width: 85%;
  15778. margin-bottom: 10px;
  15779. font-size: 18px;
  15780. color: #8e8e8e;
  15781. }
  15782. .mask {
  15783. background-color: rgb(0 0 0 / 30%);
  15784. /* position: fixed; */
  15785. position: absolute;
  15786. top: 0;
  15787. left: 0;
  15788. width: 100%;
  15789. height: 100%;
  15790. z-index: 90;
  15791. display: flex;
  15792. align-items: center;
  15793. justify-content: center;
  15794. }
  15795. .progressBox {
  15796. width: 300px;
  15797. height: 150px;
  15798. background: #fff;
  15799. border-radius: 10px;
  15800. box-shadow: 0 0 6px 1px #bfbfbf;
  15801. display: flex;
  15802. align-items: center;
  15803. justify-content: center;
  15804. flex-direction: column;
  15805. position: relative;
  15806. color: #6c6c6c;
  15807. }
  15808. .progressBox>>>.el-progress-bar__outer {
  15809. background-color: #d1dfff !important;
  15810. }
  15811. .progressBox .lbox {
  15812. height: 50px;
  15813. font-size: 19px;
  15814. display: flex;
  15815. align-items: center;
  15816. color: #747474;
  15817. }
  15818. .progressBox .lbox img {
  15819. width: 40px;
  15820. margin-right: 20px;
  15821. }
  15822. .closeCss {
  15823. position: absolute;
  15824. top: 8px;
  15825. right: 8px;
  15826. cursor: pointer;
  15827. width: 20px;
  15828. height: 20px;
  15829. }
  15830. .closeCss>img {
  15831. width: 100%;
  15832. height: 100%;
  15833. }
  15834. .updateTips::before {
  15835. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  15836. font-size: 14px;
  15837. margin-left: 20px;
  15838. font-weight: 400;
  15839. color: #ff3a3a;
  15840. margin-bottom: 10px;
  15841. display: block;
  15842. }
  15843. .updateMask {
  15844. width: 100%;
  15845. z-index: 3;
  15846. top: 0;
  15847. position: absolute;
  15848. /* background-color: rgba(0,0,0,.3); */
  15849. }
  15850. .t_j_box {
  15851. display: flex;
  15852. }
  15853. .t_j_box span:nth-child(1) {
  15854. width: 15%;
  15855. overflow: hidden;
  15856. margin-right: 10px;
  15857. text-overflow: ellipsis;
  15858. white-space: nowrap;
  15859. }
  15860. .t_j_box span:nth-child(2) {
  15861. width: 30%;
  15862. overflow: hidden;
  15863. text-overflow: ellipsis;
  15864. margin-right: 10px;
  15865. }
  15866. .t_j_box span:nth-child(3) {
  15867. max-width: calc(55% - 20px);
  15868. overflow: hidden;
  15869. text-overflow: ellipsis;
  15870. }
  15871. .sentenBox {
  15872. background: #fff;
  15873. height: 600px;
  15874. overflow: auto;
  15875. background-image: url("../../../assets/icon/conSentences/csBg.png");
  15876. background-position: 102%;
  15877. background-repeat: no-repeat;
  15878. background-size: 60%;
  15879. }
  15880. .sentenBox>.sentenContent {
  15881. padding-bottom: 10px;
  15882. width: 97%;
  15883. margin: 0 auto;
  15884. }
  15885. .sentenBox>.sentenContent+.sentenContent {
  15886. border-top: 1px solid #cbcbcb;
  15887. }
  15888. .addSen {
  15889. background: #409efe;
  15890. width: 90px;
  15891. color: #fff;
  15892. height: 35px;
  15893. text-align: center;
  15894. line-height: 35px;
  15895. border-radius: 5px;
  15896. float: right;
  15897. margin: 10px 20px 0 0;
  15898. cursor: pointer;
  15899. }
  15900. .sentenTop {
  15901. display: flex;
  15902. flex-direction: row;
  15903. flex-wrap: nowrap;
  15904. align-items: center;
  15905. }
  15906. .sentenTop::before {
  15907. content: attr(index);
  15908. background: #3681fc;
  15909. border-radius: 50%;
  15910. color: #fff;
  15911. width: 25px;
  15912. height: 25px;
  15913. min-width: 25px;
  15914. min-height: 25px;
  15915. text-align: center;
  15916. line-height: 25px;
  15917. margin-right: 5px;
  15918. }
  15919. .sentenTop>div:nth-child(2) {
  15920. width: 300px;
  15921. margin: 0 15px;
  15922. }
  15923. .sentenTop>div:nth-child(3) {
  15924. background: #409efe;
  15925. color: #fff;
  15926. width: 65px;
  15927. height: 35px;
  15928. text-align: center;
  15929. line-height: 35px;
  15930. border-radius: 5px;
  15931. cursor: pointer;
  15932. }
  15933. .cardList {
  15934. padding: 30px 0 20px 0;
  15935. display: flex;
  15936. flex-direction: row;
  15937. flex-wrap: wrap;
  15938. align-items: center;
  15939. box-sizing: border-box;
  15940. border-bottom: 1px solid #f4f4f4;
  15941. width: 98%;
  15942. margin: 0 auto;
  15943. }
  15944. .rightCardList {
  15945. display: flex;
  15946. flex-wrap: wrap;
  15947. }
  15948. .cardBox {
  15949. display: flex;
  15950. flex-direction: row;
  15951. flex-wrap: wrap;
  15952. align-items: center;
  15953. align-content: center;
  15954. }
  15955. .isCard,
  15956. .isCard1 {
  15957. width: auto;
  15958. padding: 0 20px;
  15959. height: 65px;
  15960. text-align: center;
  15961. line-height: 65px;
  15962. font-size: 14px;
  15963. cursor: pointer;
  15964. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  15965. background-size: 100% 100%;
  15966. position: relative;
  15967. z-index: 99;
  15968. }
  15969. .isCard1 {
  15970. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  15971. }
  15972. .isCard:hover .deleteWord {
  15973. display: block;
  15974. }
  15975. .isCard>div:nth-child(1),
  15976. .isCard1>div:nth-child(1) {
  15977. white-space: nowrap;
  15978. overflow: hidden;
  15979. text-overflow: ellipsis;
  15980. width: 100%;
  15981. margin: 0 auto;
  15982. }
  15983. .card {
  15984. width: 140px;
  15985. height: 65px;
  15986. }
  15987. .card>img {
  15988. width: 100%;
  15989. height: 100%;
  15990. }
  15991. .rightCardBox {
  15992. width: 98%;
  15993. margin: 10px auto 0;
  15994. }
  15995. .rightCardBox>div:nth-child(1) {
  15996. margin-bottom: 10px;
  15997. }
  15998. .cardCss {
  15999. display: flex;
  16000. flex-direction: column;
  16001. flex-wrap: nowrap;
  16002. align-items: center;
  16003. border-bottom: 3px solid #b4c3d3;
  16004. padding: 0 0 5px 0;
  16005. /* margin-right: 10px; */
  16006. }
  16007. .cardCss>div:nth-child(2) {
  16008. background: #5b7b9d;
  16009. color: #fff;
  16010. width: 20px;
  16011. height: 20px;
  16012. border-radius: 50%;
  16013. text-align: center;
  16014. line-height: 20px;
  16015. }
  16016. .sentenTopBox {
  16017. display: flex;
  16018. flex-direction: row;
  16019. flex-wrap: nowrap;
  16020. align-items: center;
  16021. justify-content: space-between;
  16022. padding: 55px 0 0 20px;
  16023. box-sizing: border-box;
  16024. width: 85%;
  16025. }
  16026. .rb_c_ai_box,
  16027. .stepsBottom {
  16028. width: 100%;
  16029. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16030. /* background: #f7f7f7; */
  16031. border-radius: 10px;
  16032. overflow: hidden;
  16033. /* height: 100%; */
  16034. height: calc(100% - 55px);
  16035. }
  16036. .navTop {
  16037. background: #53749b;
  16038. color: #fff;
  16039. height: 40px;
  16040. line-height: 40px;
  16041. padding-left: 15px;
  16042. font-size: 18px;
  16043. }
  16044. .navBottom {
  16045. /* background: #6b91b7; */
  16046. height: 100%;
  16047. overflow: auto;
  16048. padding: 10px 0;
  16049. }
  16050. .navStage {
  16051. display: flex;
  16052. flex-direction: row;
  16053. flex-wrap: nowrap;
  16054. align-items: center;
  16055. padding: 10px 10px 10px 0;
  16056. cursor: pointer;
  16057. background: #ffffff;
  16058. width: 95%;
  16059. margin: 5px auto 5px;
  16060. box-sizing: border-box;
  16061. border-radius: 5px;
  16062. flex-wrap: wrap;
  16063. position: relative;
  16064. }
  16065. .navStage:hover>.chapter_upload_drag {
  16066. display: block;
  16067. }
  16068. .navTask:hover>.chapter_upload_drag {
  16069. display: block;
  16070. }
  16071. .chapter_upload:hover>.chapter_upload_drag {
  16072. display: block;
  16073. }
  16074. .navStage::before {
  16075. content: "";
  16076. display: block;
  16077. width: 16px;
  16078. height: 16px;
  16079. background-image: url(../../../assets/icon/new/icon_stage.png);
  16080. background-size: 100%;
  16081. margin-left: 25px;
  16082. }
  16083. .navStage .chapter_unit_open {
  16084. content: "";
  16085. display: block;
  16086. width: 16px;
  16087. height: 16px;
  16088. background-image: url(../../../assets/icon/new/down.png);
  16089. transform: rotate(-90deg);
  16090. background-size: 100%;
  16091. margin-left: 10px;
  16092. transition: all 0.5s;
  16093. }
  16094. .isNavStageOpen .chapter_unit_open {
  16095. transform: rotate(0deg);
  16096. }
  16097. .isNavStage {
  16098. background: #0061ff;
  16099. }
  16100. .isNavStage::before {
  16101. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  16102. }
  16103. .isNavStage .chapter_unit_open {
  16104. background-image: url(../../../assets/icon/new/downC.png);
  16105. }
  16106. .isNavStage .nt_taskName {
  16107. font-weight: bold !important;
  16108. color: #ffffff !important;
  16109. }
  16110. .isNavStage .nt_taskTitle {
  16111. font-weight: bold !important;
  16112. color: #fff !important;
  16113. }
  16114. .navStage .nt_taskBox {
  16115. width: calc(100% - 68px);
  16116. padding: 0 0 0 5px;
  16117. box-sizing: border-box;
  16118. box-sizing: border-box;
  16119. display: flex;
  16120. flex-direction: row;
  16121. flex-wrap: nowrap;
  16122. align-items: baseline;
  16123. }
  16124. .navStage .nt_taskTitle {
  16125. color: #060e17;
  16126. line-height: 25px;
  16127. font-size: 16px;
  16128. }
  16129. .navStage .nt_taskName {
  16130. max-width: calc(100% - 82px);
  16131. white-space: nowrap;
  16132. overflow: hidden;
  16133. text-overflow: ellipsis;
  16134. font-size: 16px;
  16135. color: #060e17;
  16136. }
  16137. .navTask {
  16138. display: flex;
  16139. flex-direction: row;
  16140. flex-wrap: nowrap;
  16141. align-items: center;
  16142. padding: 10px 10px 10px 0;
  16143. cursor: pointer;
  16144. background: #ffffff;
  16145. width: 95%;
  16146. margin: 5px auto 5px;
  16147. box-sizing: border-box;
  16148. border-radius: 5px;
  16149. flex-wrap: wrap;
  16150. position: relative;
  16151. }
  16152. .navTask .chapter_upload_open {
  16153. content: "";
  16154. display: block;
  16155. width: 16px;
  16156. height: 16px;
  16157. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16158. background-size: 100%;
  16159. margin-left: 23px;
  16160. }
  16161. .noImage .chapter_upload_open {
  16162. display: none;
  16163. background-image: unset !important;
  16164. }
  16165. .isNavOpen .chapter_upload_open {
  16166. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  16167. transform: rotate(90deg);
  16168. }
  16169. .isNavTask .chapter_upload_open {
  16170. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16171. transform: rotate(-90deg);
  16172. }
  16173. .isNavTask.isNavOpen .chapter_upload_open {
  16174. transform: rotate(0deg);
  16175. }
  16176. .dragOverTop {
  16177. border-top: 2px solid #0061ff !important;
  16178. border-radius: 0 !important;
  16179. margin-top: 10px;
  16180. }
  16181. .dragOverBottom {
  16182. border-bottom: 2px solid #0061ff !important;
  16183. border-radius: 0 !important;
  16184. margin-top: 10px;
  16185. }
  16186. .dragOverTop2 {
  16187. border-top: 2px solid #0061ff !important;
  16188. border-radius: 0 !important;
  16189. }
  16190. .dragOverBottom2 {
  16191. border-bottom: 2px solid #0061ff !important;
  16192. border-radius: 0 !important;
  16193. }
  16194. .isNavTask {
  16195. /* background: #3681FC; */
  16196. background: #eef3fb;
  16197. }
  16198. .isNavTask>.chapter_upload_drag {
  16199. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16200. }
  16201. .isNavTask .nt_taskName {
  16202. /* color: #fff !important; */
  16203. font-weight: bold !important;
  16204. color: #0061ff !important;
  16205. }
  16206. .isNavTask .nt_taskTitle {
  16207. /* color: #AECCFE !important; */
  16208. font-weight: bold !important;
  16209. color: #0061ff !important;
  16210. }
  16211. .navTask .nt_taskBox {
  16212. width: calc(100% - 40px);
  16213. padding: 0 0 0 5px;
  16214. box-sizing: border-box;
  16215. box-sizing: border-box;
  16216. display: flex;
  16217. flex-direction: row;
  16218. flex-wrap: nowrap;
  16219. align-items: baseline;
  16220. }
  16221. .navTask .nt_taskTitle {
  16222. /* color: #717C8D; */
  16223. color: #060e17;
  16224. line-height: 25px;
  16225. font-size: 16px;
  16226. /* min-width: 66px; */
  16227. }
  16228. .navTask .nt_taskName {
  16229. /* color: #fff; */
  16230. /* max-width: 130px; */
  16231. /* width: 100%; */
  16232. max-width: calc(100% - 66px);
  16233. font-size: 16px;
  16234. color: #060e17;
  16235. /* color: #0E1E33; */
  16236. }
  16237. .navTask .nt_taskName span {
  16238. width: 100%;
  16239. white-space: nowrap;
  16240. overflow: hidden;
  16241. text-overflow: ellipsis;
  16242. display: block;
  16243. }
  16244. .gjBox {
  16245. width: calc(100% - 25px);
  16246. padding: 0 0 0 0;
  16247. box-sizing: border-box;
  16248. border-left: 1px solid #cad1dc;
  16249. margin-left: 25px;
  16250. }
  16251. .gjBox>div {
  16252. display: flex;
  16253. align-items: center;
  16254. }
  16255. .gjBox>div::before {
  16256. content: "";
  16257. height: 1px;
  16258. width: 10px;
  16259. background: #cad1dc;
  16260. display: block;
  16261. margin-right: 5px;
  16262. }
  16263. .gjCss {
  16264. display: flex;
  16265. flex-direction: row;
  16266. flex-wrap: nowrap;
  16267. align-items: center;
  16268. padding: 15px 0;
  16269. box-sizing: border-box;
  16270. font-size: 14px;
  16271. cursor: pointer;
  16272. }
  16273. .isGjCss {
  16274. color: #0061ff;
  16275. }
  16276. .groupBox {}
  16277. .groupContent+.groupContent {
  16278. margin-top: 30px;
  16279. }
  16280. .groupTitle {
  16281. font-size: 24px;
  16282. color: rgb(80, 80, 80);
  16283. margin-bottom: 20px;
  16284. }
  16285. .groupName {
  16286. display: flex;
  16287. align-items: center;
  16288. }
  16289. .groupn {
  16290. font-size: 15px;
  16291. margin-right: 10px;
  16292. }
  16293. .groupName+.groupName {
  16294. margin-top: 15px;
  16295. }
  16296. .groupBtn {
  16297. margin-left: 10px;
  16298. }
  16299. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  16300. text-align: left;
  16301. }
  16302. .radioBox>div {
  16303. margin: 10px 0 0 10px;
  16304. }
  16305. .radioBox>>>.el-radio__input,
  16306. .radioBox>>>.el-checkbox__inner {
  16307. margin-left: 10px;
  16308. }
  16309. .radioBox>>>.el-radio__label,
  16310. .radioBox>>>.el-checkbox__label {
  16311. display: flex;
  16312. align-items: center;
  16313. }
  16314. .inImg {
  16315. width: 50px;
  16316. }
  16317. .inImg>img {
  16318. width: 100%;
  16319. height: 100%;
  16320. object-fit: cover;
  16321. }
  16322. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  16323. height: auto;
  16324. padding: 10px;
  16325. margin: 0;
  16326. }
  16327. .upCss>>>.el-upload-list {
  16328. width: 100%;
  16329. }
  16330. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  16331. width: 100%;
  16332. height: 120px;
  16333. object-fit: contain;
  16334. background: unset;
  16335. margin-left: 0;
  16336. }
  16337. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  16338. display: none;
  16339. }
  16340. .tcMember+.tcMember::before {
  16341. content: "、";
  16342. }
  16343. .xzUpImg {
  16344. width: 25px;
  16345. height: 25px;
  16346. min-width: 25px;
  16347. min-height: 25px;
  16348. cursor: pointer;
  16349. margin: 0 10px;
  16350. }
  16351. .xzUpImg>img {
  16352. width: 100%;
  16353. height: 100%;
  16354. }
  16355. .closeCss {
  16356. position: absolute;
  16357. top: 8px;
  16358. right: 8px;
  16359. cursor: pointer;
  16360. width: 20px;
  16361. height: 20px;
  16362. }
  16363. .closeCss>img {
  16364. width: 100%;
  16365. height: 100%;
  16366. }
  16367. .moveBtn {
  16368. display: flex;
  16369. flex-direction: row;
  16370. flex-wrap: nowrap;
  16371. align-items: center;
  16372. width: 55px;
  16373. }
  16374. .timuUpImg {
  16375. display: flex;
  16376. flex-direction: row;
  16377. align-items: center;
  16378. width: 100%;
  16379. margin-right: 10px;
  16380. }
  16381. .timuUpImg>div:nth-child(1) {
  16382. margin-right: 10px;
  16383. display: flex;
  16384. align-items: center;
  16385. width: 100%;
  16386. }
  16387. .timuImgBox {
  16388. margin: 10px 0;
  16389. display: flex;
  16390. flex-direction: column;
  16391. flex-wrap: wrap;
  16392. align-items: flex-start;
  16393. }
  16394. .timuImg {
  16395. width: 100px;
  16396. margin: 5px 0;
  16397. cursor: pointer;
  16398. position: relative;
  16399. }
  16400. .timuImg:hover .deleteWord {
  16401. display: block;
  16402. }
  16403. .deleteWord {
  16404. width: 25px;
  16405. height: 25px;
  16406. position: absolute;
  16407. right: -5px;
  16408. top: -5px;
  16409. cursor: pointer;
  16410. display: none;
  16411. }
  16412. .timuImg>img,
  16413. .deleteWord>img {
  16414. width: 100%;
  16415. height: 100%;
  16416. object-fit: cover;
  16417. }
  16418. .e_add_delete {
  16419. cursor: pointer;
  16420. margin-left: 10px;
  16421. }
  16422. .pType_box {
  16423. margin-top: 30px;
  16424. align-items: flex-end;
  16425. }
  16426. .noneBox {
  16427. height: 200px;
  16428. width: 100%;
  16429. display: flex;
  16430. align-items: center;
  16431. justify-content: center;
  16432. flex-direction: column;
  16433. /* margin-top: 150px; */
  16434. }
  16435. .noneBox>img {
  16436. width: 95px;
  16437. }
  16438. .noneBox>span {
  16439. margin-top: 10px;
  16440. color: #717c8d;
  16441. }
  16442. .rb_c_box {
  16443. width: 100%;
  16444. height: 100%;
  16445. display: flex;
  16446. /* padding: 20px; */
  16447. box-sizing: border-box;
  16448. justify-content: space-between;
  16449. }
  16450. .rb_c_box_left {
  16451. height: 100%;
  16452. background: #fff;
  16453. width: 270px;
  16454. min-width: 270px;
  16455. border-radius: 8px;
  16456. margin-right: 10px;
  16457. }
  16458. .rb_c_box_right {
  16459. height: 100%;
  16460. width: calc(100%);
  16461. overflow: hidden;
  16462. }
  16463. .rb_c_box_btn {
  16464. display: flex;
  16465. justify-content: flex-start;
  16466. height: 50px;
  16467. align-items: center;
  16468. }
  16469. .rb_c_box_right>.basic_box {
  16470. /* background: #fff; */
  16471. border-radius: 0;
  16472. height: calc(100% - 0px);
  16473. overflow: auto;
  16474. padding: 0;
  16475. }
  16476. .textarea_css {
  16477. display: block;
  16478. resize: none;
  16479. padding: 10px 15px;
  16480. line-height: 1.5;
  16481. box-sizing: border-box;
  16482. width: 100%;
  16483. font-size: 14px;
  16484. color: #606266;
  16485. background-color: #fff;
  16486. background-image: none;
  16487. border: 1px solid #dcdfe6;
  16488. border-radius: 4px;
  16489. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16490. outline: none;
  16491. overflow: hidden;
  16492. height: 46px;
  16493. font-family: "Microsoft YaHei";
  16494. }
  16495. .textarea_css::-webkit-input-placeholder {
  16496. color: #c0c4cc;
  16497. }
  16498. .textarea_css:focus {
  16499. border-color: #409eff;
  16500. outline: 0;
  16501. }
  16502. .addEditor>>>.text {
  16503. height: auto;
  16504. min-height: 100px;
  16505. }
  16506. .addEditor>>>.w-e-text-container {
  16507. min-height: 100px;
  16508. }
  16509. .moveBtn2 {
  16510. flex-direction: column;
  16511. width: fit-content;
  16512. margin: 0 10px 0 10px;
  16513. }
  16514. .moveBtn2 .chapter_upload_down,
  16515. .moveBtn2 .chapter_upload_up {
  16516. width: 16px;
  16517. height: 16px;
  16518. }
  16519. .moveBtn2 .chapter_upload_up::after,
  16520. .moveBtn2 .chapter_upload_down::after {
  16521. width: 10px;
  16522. height: 10px;
  16523. }
  16524. .fullStyle>>>.el-dialog__body {
  16525. height: calc(100% - 125px) !important;
  16526. box-sizing: border-box;
  16527. }
  16528. .fullStyle1>>>.el-dialog__body {
  16529. height: auto !important;
  16530. }
  16531. .fullStyle>>>.el-dialog {
  16532. width: 100% !important;
  16533. max-width: 100% !important;
  16534. height: 100% !important;
  16535. margin: 0 !important;
  16536. }
  16537. .fullStyle {
  16538. width: 100% !important;
  16539. max-width: 100% !important;
  16540. height: 100% !important;
  16541. margin: 0 auto !important;
  16542. }
  16543. .wb_j_box_btn {
  16544. width: calc(100% - 30px);
  16545. display: flex;
  16546. height: 40px;
  16547. border: 1.5px solid #cad1dc;
  16548. border-radius: 4px;
  16549. box-sizing: border-box;
  16550. align-items: center;
  16551. font-size: 14px;
  16552. cursor: pointer;
  16553. overflow: hidden;
  16554. }
  16555. .wb_j_box_btn:hover {
  16556. border: 1.5px solid #0061ff;
  16557. }
  16558. .wb_j_box_title {
  16559. background: #f0f4fa;
  16560. height: 100%;
  16561. line-height: 40px;
  16562. width: 90px;
  16563. text-align: center;
  16564. color: #060e17;
  16565. border-right: 1.5px solid #cad1dc;
  16566. box-sizing: border-box;
  16567. }
  16568. .wb_j_box_btn_c {
  16569. width: calc(100% - 90px);
  16570. padding: 0 35px 0 10px;
  16571. box-sizing: border-box;
  16572. position: relative;
  16573. }
  16574. .wb_j_box_span {
  16575. width: 100%;
  16576. overflow: hidden;
  16577. white-space: nowrap;
  16578. text-overflow: ellipsis;
  16579. word-wrap: break-word;
  16580. color: #717c8d;
  16581. }
  16582. .wb_j_box_arrow {
  16583. content: "";
  16584. width: 14px;
  16585. height: 14px;
  16586. background: url(../../../assets/icon/new/u_arrow.png);
  16587. background-size: 100% 100%;
  16588. position: absolute;
  16589. right: 12px;
  16590. top: 50%;
  16591. transform: translateY(-50%);
  16592. }
  16593. .check_classBox {
  16594. height: 400px;
  16595. display: flex;
  16596. border-top: 1.5px solid #e7ebf1;
  16597. border-bottom: 1.5px solid #e7ebf1;
  16598. }
  16599. .check_class_right {
  16600. width: 130px;
  16601. border-right: 1px solid #e7ebf1;
  16602. display: flex;
  16603. align-items: center;
  16604. flex-direction: column;
  16605. height: 100%;
  16606. overflow: auto;
  16607. padding: 15px 0;
  16608. box-sizing: border-box;
  16609. }
  16610. .check_class {
  16611. width: 85%;
  16612. border-radius: 5px;
  16613. height: 30px;
  16614. line-height: 30px;
  16615. text-align: center;
  16616. padding: 0 10px;
  16617. box-sizing: border-box;
  16618. cursor: pointer;
  16619. white-space: nowrap;
  16620. overflow: hidden;
  16621. text-overflow: ellipsis;
  16622. }
  16623. .check_class.activeX {
  16624. background: #e0eafb;
  16625. color: #3681fc;
  16626. font-weight: 700;
  16627. }
  16628. .check_class+.check_class {
  16629. margin-top: 15px;
  16630. }
  16631. .check_class_left {
  16632. background: #fafafa;
  16633. width: calc(100% - 130px);
  16634. padding: 15px;
  16635. box-sizing: border-box;
  16636. }
  16637. .check_class_all_box {
  16638. display: flex;
  16639. margin-bottom: 10px;
  16640. }
  16641. .all_check {
  16642. display: flex;
  16643. align-items: center;
  16644. padding: 2px 0 0;
  16645. margin-left: 10px;
  16646. }
  16647. .all_check>>>.el-checkbox__label {
  16648. line-height: 18px;
  16649. }
  16650. .check_class_left_title {
  16651. font-size: 16px;
  16652. font-weight: 700;
  16653. }
  16654. .check_class_item {
  16655. display: flex;
  16656. flex-wrap: wrap;
  16657. height: calc(100% - 45px);
  16658. overflow: auto;
  16659. justify-content: flex-start;
  16660. align-items: flex-start;
  16661. align-content: flex-start;
  16662. }
  16663. .class_item:first-child {
  16664. /* margin: 0 15px 15px 67px; */
  16665. }
  16666. .class_item {
  16667. margin: 0 15px 15px 0;
  16668. }
  16669. .class_item:hover>>>.el-checkbox__label {
  16670. color: #409eff;
  16671. }
  16672. .class_item>>>.el-checkbox__label {
  16673. color: #0e1e33;
  16674. }
  16675. .class_item:hover>>>.el-checkbox__inner {
  16676. border-color: #409eff;
  16677. }
  16678. .class_item>>>.el-checkbox,
  16679. .class_item>>>.el-checkbox__input {
  16680. display: flex;
  16681. align-items: center;
  16682. }
  16683. .taskTitle {
  16684. font-size: 20px;
  16685. font-weight: bold;
  16686. margin-bottom: 35px;
  16687. }
  16688. .taskTitle:after {
  16689. content: "";
  16690. width: 100%;
  16691. display: block;
  16692. height: 1px;
  16693. background: #cad1dc;
  16694. position: absolute;
  16695. left: 0;
  16696. margin: 15px 0 0;
  16697. }
  16698. .eva_btn_box {
  16699. margin: 20px 0px 0 0;
  16700. display: flex;
  16701. flex-direction: row;
  16702. flex-wrap: nowrap;
  16703. align-items: center;
  16704. justify-content: space-between;
  16705. width: 100%;
  16706. }
  16707. .eva_btn_left_box {
  16708. display: flex;
  16709. flex-direction: row;
  16710. flex-wrap: nowrap;
  16711. align-items: center;
  16712. }
  16713. .addTypeChoose {
  16714. display: flex;
  16715. flex-direction: row;
  16716. flex-wrap: nowrap;
  16717. align-items: center;
  16718. margin: 15px 0;
  16719. }
  16720. .addTypeBox {
  16721. display: flex;
  16722. flex-direction: column;
  16723. flex-wrap: nowrap;
  16724. align-items: center;
  16725. }
  16726. .addTypeChoose {
  16727. display: flex;
  16728. flex-direction: row;
  16729. flex-wrap: nowrap;
  16730. align-items: center;
  16731. margin: 15px 0;
  16732. }
  16733. .buchong_box {
  16734. background: #E0EAFB66;
  16735. width: calc(100% - 20px);
  16736. min-height: 50px;
  16737. display: flex;
  16738. align-items: center;
  16739. justify-content: center;
  16740. margin: 0 auto;
  16741. }
  16742. .outline {
  16743. width: calc(100% - 40px);
  16744. margin: 0 auto;
  16745. }
  16746. .task_outline {
  16747. width: calc(100% - 40px);
  16748. margin: 0 auto;
  16749. }
  16750. .outline_box+.outline_box {
  16751. margin: 30px 0 0px;
  16752. }
  16753. .outline_task {
  16754. display: flex;
  16755. align-items: center;
  16756. margin-bottom: 10px;
  16757. }
  16758. .outline_task .title {
  16759. font-size: 18px;
  16760. font-weight: bold;
  16761. min-width: 80px;
  16762. }
  16763. .op_task_box,
  16764. .op_tool_box,
  16765. .outline_detail {
  16766. position: relative;
  16767. }
  16768. .op_task_box:hover .op_box,
  16769. .op_tool_box:hover .op_box,
  16770. .outline_detail:hover .op_box {
  16771. display: flex
  16772. }
  16773. .op_box {
  16774. position: absolute;
  16775. bottom: 10px;
  16776. display: none;
  16777. align-items: center;
  16778. justify-content: space-between;
  16779. width: calc(100% - 20px);
  16780. left: 50%;
  16781. transform: translateX(-50%);
  16782. }
  16783. .op_box .op_remark {
  16784. color: #8E8E8E;
  16785. font-size: 14px;
  16786. }
  16787. .rb_c_nav {
  16788. width: calc(100% - 20px);
  16789. margin: 15px auto 0;
  16790. font-size: 18px;
  16791. }
  16792. .rb_c_nav span {
  16793. cursor: pointer;
  16794. }
  16795. .rb_c_nav span+span {
  16796. margin-left: 10px;
  16797. }
  16798. .rb_c_nav span.active {
  16799. color: #0061FF
  16800. }
  16801. .text_panel>>>.text {
  16802. height: 400px;
  16803. }
  16804. </style>