addCourse.vue 616 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562
  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" :style="{width:promptShow ? 'calc(100% - 300px)' : '100%'}">
  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 class="leftBar" v-if="promptShow">
  3701. <aiTips title="课程描述优化" :detail="aiJson.aiDetail" />
  3702. </div>
  3703. </div>
  3704. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3705. class="dialog_diy2 customWidth">
  3706. <div>请复制该链接邀请协同编辑</div>
  3707. <div>http://www.boomyon.com/index-zhang.com</div>
  3708. <span slot="footer" class="dialog-footer">
  3709. <el-button type="primary">复制链接分享</el-button>
  3710. <el-button @click="dialogVisible = false">取消</el-button>
  3711. </span>
  3712. </el-dialog>
  3713. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3714. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3715. <el-form>
  3716. <el-form-item label="文档标题">
  3717. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3718. </el-form-item>
  3719. <div>文档简介</div>
  3720. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3721. </el-form>
  3722. <span slot="footer" class="dialog-footer">
  3723. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3724. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3725. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3726. </span>
  3727. </el-dialog>
  3728. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3729. :before-close="handleClose" class="dialog_diy">
  3730. <el-form>
  3731. <el-form-item label="文档标题">
  3732. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3733. </el-form-item>
  3734. <div>文档内容</div>
  3735. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3736. </el-form>
  3737. <span slot="footer" class="dialog-footer">
  3738. <el-button @click="clearChoose">取 消</el-button>
  3739. <el-button type="primary" @click="wordNext()">确定</el-button>
  3740. </span>
  3741. </el-dialog>
  3742. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3743. :before-close="handleClose" class="dialog_diy">
  3744. <el-form>
  3745. <el-form-item label="文本标题">
  3746. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3747. placeholder="请输入文本标题..."></el-input>
  3748. </el-form-item>
  3749. <!-- <div>富文本内容</div> -->
  3750. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3751. </el-form>
  3752. <span slot="footer" class="dialog-footer">
  3753. <el-button @click="clearAttText">取 消</el-button>
  3754. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3755. </span>
  3756. </el-dialog>
  3757. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3758. :before-close="handleClose" class="dialog_diy lineCss">
  3759. <el-form>
  3760. <el-form-item label="标题" :label-width="formLabelWidth">
  3761. <span>
  3762. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3763. </span>
  3764. </el-form-item>
  3765. <el-form-item label="链接" :label-width="formLabelWidth">
  3766. <span>
  3767. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3768. </span>
  3769. </el-form-item>
  3770. </el-form>
  3771. <span slot="footer" class="dialog-footer">
  3772. <el-button @click="clearLine">取 消</el-button>
  3773. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3774. </span>
  3775. </el-dialog>
  3776. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3777. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3778. <div>
  3779. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3780. </div>
  3781. <span slot="footer" class="dialog-footer">
  3782. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3783. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3784. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3785. </span>
  3786. </el-dialog>
  3787. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3788. :before-close="handleClose" class="addNewPP customWidth">
  3789. <div class="people">
  3790. <div class="people_top">
  3791. <div class="people_nav">选择成员</div>
  3792. <div class="people_top_right">
  3793. <div class="people_search">
  3794. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3795. <div class="search_img" @click="searchStudent">
  3796. <img src="../../../assets/icon/search.png" alt />
  3797. </div>
  3798. </div>
  3799. </div>
  3800. </div>
  3801. <el-checkbox-group v-model="checkboxList" class="people_name">
  3802. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3803. "暂无学生可选" }}</el-checkbox>
  3804. </el-checkbox-group>
  3805. </div>
  3806. <span slot="footer" class="dialog-footer">
  3807. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3808. <el-button type="primary" @click="isAddPP">确定</el-button>
  3809. </span>
  3810. </el-dialog>
  3811. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3812. :before-close="handleClose" class="addNewPP2">
  3813. <div class="check_classBox">
  3814. <div class="check_class_right">
  3815. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3816. 全部
  3817. </div>
  3818. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3819. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  3820. {{ item.name }}
  3821. </div>
  3822. </el-tooltip>
  3823. </div>
  3824. <div class="check_class_left">
  3825. <div class="check_class_all_box">
  3826. <div class="check_class_left_title">选择班级</div>
  3827. <div style="display: flex; align-items: center; margin-left: auto">
  3828. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  3829. </div>
  3830. </div>
  3831. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3832. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3833. </div> -->
  3834. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  3835. v-if="grade2.length">
  3836. <div v-for="item in grade2" :key="item.id" class="class_item">
  3837. <el-checkbox :label="item.id">
  3838. {{ item.name }}
  3839. </el-checkbox>
  3840. </div>
  3841. </el-checkbox-group>
  3842. <div v-if="!grade2.length">暂无数据</div>
  3843. </div>
  3844. </div>
  3845. <span slot="footer" class="dialog-footer">
  3846. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3847. <el-button type="primary" @click="isAddClass">确定</el-button>
  3848. </span>
  3849. </el-dialog>
  3850. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3851. :before-close="handleClose" class="addNewPP customWidth">
  3852. <div class="people">
  3853. <div class="people_top">
  3854. <div class="people_top_right">
  3855. <div class="people_search">
  3856. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3857. <div class="search_img" @click="getTeacher">
  3858. <img src="../../../assets/icon/search.png" alt />
  3859. </div>
  3860. </div>
  3861. </div>
  3862. <div class="people_nav" style="display: flex; align-items: center">
  3863. <div class="check_class_left_title">选择成员</div>
  3864. <div style="display: flex; align-items: center; margin-left: auto">
  3865. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  3866. </div>
  3867. </div>
  3868. </div>
  3869. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  3870. @change="InviteChange2">
  3871. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3872. <div class="t_j_box">
  3873. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3874. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3875. </el-tooltip>
  3876. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  3877. <span>{{ item.username.split('@')[0] }}</span>
  3878. </el-tooltip>
  3879. <el-tooltip placement="top" :content="item.school">
  3880. <span>{{ item.school }}</span>
  3881. </el-tooltip>
  3882. </div>
  3883. </el-checkbox>
  3884. </el-checkbox-group>
  3885. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3886. </div>
  3887. <span slot="footer" class="dialog-footer">
  3888. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3889. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3890. </span>
  3891. </el-dialog>
  3892. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  3893. closePan(4);
  3894. }
  3895. " class="dialog_diy fullStyle">
  3896. <div style="height: 100%">
  3897. <div class="a_add_title" style="
  3898. display: flex;
  3899. flex-direction: row;
  3900. align-items: center;
  3901. justify-content: center;
  3902. ">
  3903. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3904. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3905. </div>
  3906. <div class="a_addBox" style="height: calc(100% - 50px)">
  3907. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3908. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3909. <div class="a_add_checkType">
  3910. <span :class="{
  3911. active:
  3912. askJson.askJson[index1].type == '1' ||
  3913. !askJson.askJson[index1].type,
  3914. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3915. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3916. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3917. </div>
  3918. <div class="a_add_head">
  3919. <div style="
  3920. display: flex;
  3921. align-items: center;
  3922. width: 100%;
  3923. margin-right: 20px;
  3924. ">
  3925. <span style="min-width: fit-content">{{
  3926. index1 + 1 + "、"
  3927. }}</span>
  3928. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3929. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  3930. $forceUpdate();
  3931. }
  3932. "></textarea>
  3933. </div>
  3934. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  3935. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  3936. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3937. </div>
  3938. <div class="a_add_head_div">
  3939. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3940. </el-button>
  3941. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3942. </div>
  3943. </div>
  3944. <div class="a_add_body">
  3945. <div class="a_add_input" style="flex-direction: column">
  3946. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  3947. margin: 20px 10px 0 0;
  3948. display: flex;
  3949. align-items: center;
  3950. position: relative;
  3951. ">
  3952. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  3953. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3954. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  3955. @change="() => {
  3956. $forceUpdate();
  3957. }
  3958. "></textarea>
  3959. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  3960. v-if="askJson.askJson[index1].askItem != 1">
  3961. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  3962. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3963. </div>
  3964. <div class="a_add_body_div">
  3965. <el-button type="primary" size="small"
  3966. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3967. <el-button type="primary" size="small" @click="
  3968. deletecheckList(askJson.askJson[index1], checkIndex)
  3969. " v-if="askJson.askJson[index1].askItem != 1">删除
  3970. </el-button>
  3971. </div>
  3972. </div>
  3973. </div>
  3974. <!-- <div class="a_add_body_div">
  3975. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3976. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3977. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3978. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3979. </el-button>
  3980. </div> -->
  3981. </div>
  3982. </div>
  3983. </div>
  3984. </div>
  3985. <span slot="footer" class="dialog-footer">
  3986. <el-button @click="closePan(4)">取 消</el-button>
  3987. <el-button type="primary" @click="addAsk">确 定</el-button>
  3988. </span>
  3989. </el-dialog>
  3990. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  3991. closePan(45);
  3992. }
  3993. " class="dialog_diy fullStyle">
  3994. <div style="height: 100%">
  3995. <!-- <div class="a_add_title" style="
  3996. display: flex;
  3997. flex-direction: row;
  3998. align-items: center;
  3999. justify-content: center;
  4000. ">
  4001. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4002. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4003. </div> -->
  4004. <div class="a_addBox" style="height: 100%">
  4005. <div style="
  4006. font-size: 16px;
  4007. color: #c7c7c7;
  4008. display: flex;
  4009. align-items: center;
  4010. ">
  4011. <!-- 请输入题目内容 -->
  4012. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4013. v-if="isPasteChoice">
  4014. 智能粘贴
  4015. </button>
  4016. </div>
  4017. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4018. <div class="a_add_checkType">
  4019. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4020. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4021. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4022. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4023. </div>
  4024. <div class="a_add_head">
  4025. <div class="timuUpImg">
  4026. <div style="display: flex; align-items: center">
  4027. <span style="min-width: fit-content">{{
  4028. index1 + 1 + "、"
  4029. }}</span>
  4030. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4031. placeholder="请输入题目">
  4032. </el-input> -->
  4033. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4034. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4035. $forceUpdate();
  4036. }
  4037. "></textarea>
  4038. </div>
  4039. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4040. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4041. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4042. </div>
  4043. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4044. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4045. <input type="file" accept="image/*" style="display: none"
  4046. @change="beforeUploadTiMu($event, index1)" />
  4047. </div>
  4048. </div>
  4049. <div class="a_add_head_div">
  4050. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4051. </el-button>
  4052. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4053. </div>
  4054. </div>
  4055. <div class="timuImgBox" v-if="
  4056. testJson.testJson[index1].timuList &&
  4057. testJson.testJson[index1].timuList.length
  4058. ">
  4059. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4060. @click.stop="previewImg(timg.src)">
  4061. <img :src="timg.src" alt="" />
  4062. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4063. <img src="../../../assets/icon/delete.png" alt="" />
  4064. </div>
  4065. </div>
  4066. </div>
  4067. <div class="a_add_body">
  4068. <div class="a_add_input a_add_input_choice">
  4069. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4070. @change="() => {
  4071. $forceUpdate();
  4072. }
  4073. ">
  4074. <div class="radioBox">
  4075. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4076. .testItem" :key="checkIndex" :label="checkIndex">
  4077. <div style="margin-right: 10px">
  4078. 选项{{ checkIndex + 1 }}
  4079. </div>
  4080. <div style="margin-right: 10px; width: 300px" v-if="
  4081. testJson.testJson[index1].checkList[checkIndex] &&
  4082. testJson.testJson[index1].checkList[checkIndex]
  4083. .imgType &&
  4084. testJson.testJson[index1].checkList[checkIndex]
  4085. .imgType == 1
  4086. ">
  4087. <div class="inImg" @click.stop="
  4088. previewImg(
  4089. testJson.testJson[index1].checkList[checkIndex]
  4090. .src
  4091. )
  4092. ">
  4093. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4094. .src
  4095. " lazy />
  4096. <!-- <img :src="
  4097. testJson.testJson[index1].checkList[checkIndex]
  4098. .src
  4099. " alt="" /> -->
  4100. </div>
  4101. </div>
  4102. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4103. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4104. $forceUpdate();
  4105. }
  4106. "></textarea>
  4107. <div class="xzUpImg" @click.stop="addImg($event)">
  4108. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4109. <input type="file" accept="image/*" style="display: none"
  4110. @change="beforeUploadTi($event, index1, checkIndex)" />
  4111. </div>
  4112. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4113. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4114. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4115. </div>
  4116. <div class="a_add_body_div">
  4117. <el-button type="primary" size="small" @click.stop="
  4118. addTcheckList(testJson.testJson[index1], checkIndex)
  4119. ">添加</el-button>
  4120. <el-button type="primary" size="small" @click.stop="
  4121. deleteTcheckList(
  4122. testJson.testJson[index1],
  4123. checkIndex
  4124. )
  4125. " v-if="testJson.testJson[index1].testItem != 1">删除
  4126. </el-button>
  4127. </div>
  4128. </el-radio>
  4129. </div>
  4130. </el-radio-group>
  4131. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4132. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4133. $forceUpdate();
  4134. }
  4135. ">
  4136. <div class="radioBox">
  4137. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4138. .testItem" :key="checkIndex1" :label="checkIndex1">
  4139. <div style="margin-right: 10px">
  4140. 选项{{ checkIndex1 + 1 }}
  4141. </div>
  4142. <div style="margin-right: 10px; width: 300px" v-if="
  4143. testJson.testJson[index1].checkList[checkIndex1] &&
  4144. testJson.testJson[index1].checkList[checkIndex1]
  4145. .imgType &&
  4146. testJson.testJson[index1].checkList[checkIndex1]
  4147. .imgType == 1
  4148. ">
  4149. <div class="inImg" @click.stop="
  4150. previewImg(
  4151. testJson.testJson[index1].checkList[checkIndex1]
  4152. .src
  4153. )
  4154. ">
  4155. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4156. .src
  4157. " lazy />
  4158. <!-- <img :src="
  4159. testJson.testJson[index1].checkList[checkIndex1]
  4160. .src
  4161. " alt="" /> -->
  4162. </div>
  4163. </div>
  4164. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4165. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4166. $forceUpdate();
  4167. }
  4168. "></textarea>
  4169. <div class="xzUpImg" @click.stop="addImg($event)">
  4170. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4171. <input type="file" accept="image/*" style="display: none"
  4172. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4173. </div>
  4174. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4175. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4176. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4177. </div>
  4178. <div class="a_add_body_div">
  4179. <el-button type="primary" size="small" @click.stop="
  4180. addTcheckList(
  4181. testJson.testJson[index1],
  4182. checkIndex1
  4183. )
  4184. ">添加</el-button>
  4185. <el-button type="primary" size="small" @click.stop="
  4186. deleteTcheckList(
  4187. testJson.testJson[index1],
  4188. checkIndex1
  4189. )
  4190. " v-if="testJson.testJson[index1].testItem != 1">删除
  4191. </el-button>
  4192. </div>
  4193. </el-checkbox>
  4194. </div>
  4195. </el-checkbox-group>
  4196. </div>
  4197. <!-- <div class="a_add_body_div">
  4198. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4199. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4200. v-if="testJson.testJson[index1].testItem != 1">删除
  4201. </el-button>
  4202. </div> -->
  4203. </div>
  4204. </div>
  4205. </div>
  4206. </div>
  4207. <span slot="footer" class="dialog-footer">
  4208. <el-button @click="closePan(45)">取 消</el-button>
  4209. <el-button type="primary" @click="addTest">确 定</el-button>
  4210. </span>
  4211. </el-dialog>
  4212. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4213. :before-close="handleClose" class="dialog_diy addToolsDia">
  4214. <div class="toolChoose">
  4215. <div class="tools">
  4216. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4217. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4218. <div style="
  4219. display: flex;
  4220. flex-direction: row;
  4221. align-items: baseline;
  4222. flex-wrap: nowrap;
  4223. justify-content: flex-start;
  4224. position: relative;
  4225. ">
  4226. <div class="chooseWho">
  4227. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4228. 互动类
  4229. </div>
  4230. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4231. 思维类
  4232. </div>
  4233. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4234. 评价类
  4235. </div>
  4236. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4237. 其他
  4238. </div>
  4239. </div>
  4240. </div>
  4241. <div style="min-height: 163px">
  4242. <div class="toolSort" v-if="chapToolsType == 0">
  4243. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4244. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4245. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4246. <div style="margin: 5px 0">素材库</div>
  4247. </div>
  4248. <div class="noCTool">
  4249. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4250. </div>
  4251. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4252. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4253. </div>
  4254. <!-- <div class="check" @click="chapAddTools(8)">
  4255. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4256. <div class="checkDiv" v-else>
  4257. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4258. </div>
  4259. </div> -->
  4260. </div>
  4261. </div>
  4262. <div class="toolSort" v-if="chapToolsType == 1">
  4263. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4264. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4265. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4266. <div style="margin: 5px 0">思维网格</div>
  4267. </div>
  4268. <div class="noCTool">
  4269. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4270. </div>
  4271. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4272. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4273. </div>
  4274. <!-- <div class="check" @click="chapAddTools(7)">
  4275. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4276. <div class="checkDiv" v-else>
  4277. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4278. </div>
  4279. </div> -->
  4280. </div>
  4281. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4282. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4283. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4284. <div style="margin: 5px 0">电子白板</div>
  4285. </div>
  4286. <div class="noCTool">
  4287. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4288. </div>
  4289. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4290. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4291. </div>
  4292. <!-- <div class="check" @click="chapAddTools(1)">
  4293. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4294. <div class="checkDiv" v-else>
  4295. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4296. </div>
  4297. </div> -->
  4298. </div>
  4299. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4300. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4301. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4302. <div style="margin: 5px 0">便签</div>
  4303. </div>
  4304. <div class="noCTool">
  4305. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4306. </div>
  4307. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4308. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4309. </div>
  4310. <!-- <div class="check" @click="chapAddTools(2)">
  4311. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4312. <div class="checkDiv" v-else>
  4313. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4314. </div>
  4315. </div> -->
  4316. </div>
  4317. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4318. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4319. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4320. <div style="margin: 5px 0">协同文档</div>
  4321. </div>
  4322. <div class="noCTool">
  4323. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4324. </div>
  4325. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4326. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4327. </div>
  4328. <!-- <div class="check" @click="chapAddTools(6)">
  4329. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4330. <div class="checkDiv" v-else>
  4331. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4332. </div>
  4333. </div> -->
  4334. </div>
  4335. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4336. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4337. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4338. <div style="margin: 5px 0">思维导图</div>
  4339. </div>
  4340. <div class="noCTool">
  4341. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4342. </div>
  4343. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4344. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4345. </div>
  4346. <!-- <div class="check" @click="chapAddTools(3)">
  4347. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4348. <div class="checkDiv" v-else>
  4349. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4350. </div>
  4351. </div> -->
  4352. </div>
  4353. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4354. @click="chapAddTools(31)">
  4355. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4356. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4357. <div style="margin: 5px 0">数学画板</div>
  4358. </div>
  4359. <div class="noCTool">
  4360. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4361. </div>
  4362. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4363. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4364. </div>
  4365. <!-- <div class="check" @click="chapAddTools(31)">
  4366. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4367. <div class="checkDiv" v-else>
  4368. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4369. </div>
  4370. </div> -->
  4371. </div>
  4372. </div>
  4373. <div class="toolSort" v-if="chapToolsType == 2">
  4374. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4375. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4376. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4377. <div style="margin: 5px 0">量规评分</div>
  4378. </div>
  4379. <div class="noCTool">
  4380. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4381. </div>
  4382. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4383. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4384. </div>
  4385. <!-- <div class="check" @click="chapAddTools(5)">
  4386. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4387. <div class="checkDiv" v-else>
  4388. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4389. </div>
  4390. </div> -->
  4391. </div>
  4392. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4393. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4394. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4395. <div style="margin: 5px 0">问卷调查</div>
  4396. </div>
  4397. <div class="noCTool">
  4398. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4399. </div>
  4400. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4401. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4402. </div>
  4403. <!-- <div class="check" @click="chapAddTools(4)">
  4404. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4405. <div class="checkDiv" v-else>
  4406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4407. </div>
  4408. </div> -->
  4409. </div>
  4410. </div>
  4411. </div>
  4412. <div>
  4413. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4414. v-model="itemTools.toolDetail" />
  4415. </div>
  4416. </div>
  4417. </div>
  4418. </div>
  4419. <span slot="footer" class="dialog-footer">
  4420. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4421. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4422. </span>
  4423. </el-dialog>
  4424. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4425. closePan(15);
  4426. }
  4427. " class="dialog_diy">
  4428. <div>
  4429. <div class="a_add_title" style="
  4430. display: flex;
  4431. flex-direction: column;
  4432. align-items: flex-start;
  4433. justify-content: center;
  4434. ">
  4435. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4436. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4437. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4438. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4439. </div>
  4440. </div>
  4441. <span slot="footer" class="dialog-footer">
  4442. <el-button @click="closePan(15)">取 消</el-button>
  4443. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4444. </span>
  4445. </el-dialog>
  4446. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4447. :before-close="handleClose" class="dialog_diy">
  4448. <div>
  4449. <div class="a_add_title" style="
  4450. display: flex;
  4451. flex-direction: column;
  4452. align-items: flex-start;
  4453. justify-content: center;
  4454. ">
  4455. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4456. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4457. </div>
  4458. </div>
  4459. <span slot="footer" class="dialog-footer">
  4460. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4461. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4462. </span>
  4463. </el-dialog>
  4464. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4465. :before-close="handleClose" class="dialog_diy">
  4466. <div>
  4467. <div class="fileCss" style="padding-top: 20px">
  4468. <div>
  4469. <button class="info_btn" @click="addImg($event)">
  4470. 选择本地文件
  4471. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4472. </button>
  4473. <div class="spanName">选择本地文件</div>
  4474. </div>
  4475. <!-- <div>
  4476. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4477. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4478. <img :src="cover[0].url" alt="" />
  4479. <div class="deletePic" @click="deleteSysPic">
  4480. <img src="../../../assets/icon/delete.png" alt="" />
  4481. </div>
  4482. </div>
  4483. <div class="spanName">选择系统文件</div>
  4484. </div> -->
  4485. <div>
  4486. <el-button @click="(searchImageValue = courseName), resetImage()"
  4487. v-if="isSysPic2 == false">选择网络文件</el-button>
  4488. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4489. <img :src="cover[0].url" alt="" />
  4490. <div class="deletePic" @click="deleteSysPic">
  4491. <img src="../../../assets/icon/delete.png" alt="" />
  4492. </div>
  4493. </div>
  4494. <div class="spanName">选择网络文件</div>
  4495. </div>
  4496. </div>
  4497. <!-- <div class="fileCss">
  4498. </div> -->
  4499. </div>
  4500. <span slot="footer" class="dialog-footer">
  4501. <el-button @click="choosePicVisible = false">取 消</el-button>
  4502. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4503. </span>
  4504. </el-dialog>
  4505. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4506. :before-close="handleClose" class="dialog_diy">
  4507. <div class="cru_selectBox" style="margin: 0">
  4508. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4509. 绘画
  4510. </div>
  4511. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4512. 科技
  4513. </div>
  4514. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4515. 人文
  4516. </div>
  4517. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4518. 艺术
  4519. </div>
  4520. </div>
  4521. <div class="sysPicBox">
  4522. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4523. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4524. </div>
  4525. </div>
  4526. </el-dialog>
  4527. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4528. :before-close="handleClose" class="dialog_diy">
  4529. <div>
  4530. <div class="people_top_right" style="display: flex; align-items: center">
  4531. <div style="position: relative; width: 100%">
  4532. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4533. @keyup.enter.native="resetImage()"></el-input>
  4534. <div class="search_img" @click="resetImage" style="right: 10px">
  4535. <img src="../../../assets/icon/search.png" alt />
  4536. </div>
  4537. </div>
  4538. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4539. </div>
  4540. <div class="sysPicBox" v-loading="imageloading">
  4541. <div class="picNone" v-if="!imageList.length">
  4542. 请输入关键词搜索图片
  4543. </div>
  4544. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4545. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4546. </div>
  4547. </div>
  4548. </div>
  4549. </el-dialog>
  4550. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4551. closePan(41);
  4552. }
  4553. " class="dialog_diy dialog_diy3 fullStyle">
  4554. <div v-if="selectJson" style="height: 100%">
  4555. <div class="select_box1" v-if="selectSteps == 1">
  4556. <div class="select_box1_img">
  4557. <div class="select_box1_title">
  4558. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4559. </div>
  4560. <div class="select_box1_add_img">
  4561. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4562. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4563. <img src="../../../assets/icon/addPoster.png" alt="" />
  4564. </div>
  4565. <div class="isSysPic" v-else>
  4566. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4567. <div class="deletePic" @click="deleteSelectPic">
  4568. <img src="../../../assets/icon/delete.png" alt="" />
  4569. </div>
  4570. </div>
  4571. </div>
  4572. </div>
  4573. <div class="select_box1_select">
  4574. <div class="select_box1_title">
  4575. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4576. </div>
  4577. <div class="select_box1_select_box">
  4578. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4579. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4580. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4581. <div class="select_box1_select_box_add">
  4582. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4583. 添加</el-button>
  4584. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4585. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4586. </div>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div v-if="selectSteps == 2" style="height: 100%">
  4591. <div class="select_box2">
  4592. <div class="select_box2_title">设置每道题目的正确选项</div>
  4593. <div class="select_box2_box">
  4594. <div class="select_box2_img">
  4595. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4596. </div>
  4597. <div class="select_box2_answer">
  4598. <div class="select_answer_title">根据题目选择对应答案</div>
  4599. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4600. <span>{{ checkIndex + 1 }}、</span>
  4601. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4602. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4603. </el-option>
  4604. </el-select>
  4605. </div>
  4606. </div>
  4607. </div>
  4608. </div>
  4609. </div>
  4610. </div>
  4611. <span slot="footer" class="dialog-footer">
  4612. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4613. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4614. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4615. </span>
  4616. </el-dialog>
  4617. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4618. :before-close="handleClose" class="dialog_diy">
  4619. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4620. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4621. <div class="pjCss" style="width: 100%">
  4622. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4623. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4624. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4625. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4626. <div class="remove" @click="deletRateList(eIndex)"></div>
  4627. <div style="width: 100%; display: flex">
  4628. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4629. <el-rate v-model="eItem.score" disabled></el-rate>
  4630. </div>
  4631. <div class="elist_inptu_text" style="align-items: flex-start">
  4632. <span style="min-width: 100px; text-align: right">描述:</span>
  4633. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. <div class="addToolFun" @click="addRateList()">
  4638. <div class="addToolImg">
  4639. <img src="../../../assets/icon/add.png" alt />
  4640. </div>
  4641. <div>添加</div>
  4642. </div>
  4643. </div>
  4644. </div>
  4645. <span slot="footer" class="dialog-footer">
  4646. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4647. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4648. </span>
  4649. </el-dialog>
  4650. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4651. closePan(47);
  4652. }
  4653. " class="dialog_diy dialog_diy3 fullStyle">
  4654. <div style="height: 100%">
  4655. <div class="sentenBox" style="height: 100%">
  4656. <div class="addSen" @click="addSt">添加题目</div>
  4657. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4658. <div class="sentenTopBox">
  4659. <div class="sentenTop" :index="stIndex + 1">
  4660. <div>题目设置</div>
  4661. <div>
  4662. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4663. </div>
  4664. <div @click="addSen(stIndex)">添加</div>
  4665. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4666. </div>
  4667. </div>
  4668. <div class="cardList">
  4669. <div v-if="st.addSentence.length > 0" class="cardBox">
  4670. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4671. @click="setRightAnswer(s, stIndex, sIndex)">
  4672. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4673. <div>{{ s }}</div>
  4674. </el-tooltip>
  4675. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4676. <img src="../../../assets/icon/delete.png" alt="" />
  4677. </div>
  4678. </div>
  4679. </div>
  4680. <div class="card">
  4681. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4682. </div>
  4683. </div>
  4684. <div class="rightCardBox">
  4685. <div>正确顺序</div>
  4686. <div class="rightCardList">
  4687. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4688. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4689. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4690. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4691. <div>{{ r }}</div>
  4692. </el-tooltip>
  4693. </div>
  4694. <div>{{ rIndex + 1 }}</div>
  4695. </div>
  4696. </div>
  4697. <div class="card" v-if="st.rightAnswer.length == 0">
  4698. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4699. </div>
  4700. <div class="card" v-else>
  4701. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4702. </div>
  4703. </div>
  4704. </div>
  4705. </div>
  4706. </div>
  4707. </div>
  4708. <span slot="footer" class="dialog-footer">
  4709. <el-button @click="closePan(47)">取 消</el-button>
  4710. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4711. </span>
  4712. </el-dialog>
  4713. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4714. :before-close="handleClose" class="dialog_diy">
  4715. <el-form>
  4716. <!-- <el-form-item label="文本标题">
  4717. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4718. </el-form-item> -->
  4719. <div>表格内容</div>
  4720. <Table v-model="tableJson.text" @change="change"></Table>
  4721. </el-form>
  4722. <span slot="footer" class="dialog-footer">
  4723. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4724. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4725. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4726. </span>
  4727. </el-dialog>
  4728. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4729. :before-close="handleClose" class="dialog_diy">
  4730. <el-form>
  4731. <!-- <el-form-item label="文本标题">
  4732. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4733. </el-form-item> -->
  4734. <div>文档内容</div>
  4735. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4736. </el-form>
  4737. <span slot="footer" class="dialog-footer">
  4738. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4739. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4740. </span>
  4741. </el-dialog>
  4742. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4743. :before-close="handleClose" class="dialog_diy">
  4744. <div style="
  4745. width: 100%;
  4746. display: flex;
  4747. flex-direction: row;
  4748. flex-wrap: nowrap;
  4749. align-items: center;
  4750. justify-content: center;
  4751. ">
  4752. <div>班级:</div>
  4753. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4754. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4755. </el-option>
  4756. </el-select>
  4757. </div>
  4758. <span slot="footer" class="dialog-footer">
  4759. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4760. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4761. </span>
  4762. </el-dialog>
  4763. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4764. :before-close="handleClose" class="dialog_diy">
  4765. <div style="
  4766. width: 100%;
  4767. display: flex;
  4768. flex-direction: row;
  4769. flex-wrap: nowrap;
  4770. align-items: center;
  4771. justify-content: center;
  4772. ">
  4773. <div>随机码:</div>
  4774. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4775. </div>
  4776. <span slot="footer" class="dialog-footer">
  4777. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4778. <el-button type="primary" @click="addInvite">确定</el-button>
  4779. </span>
  4780. </el-dialog>
  4781. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4782. :before-close="handleClose" class="dialog_diy">
  4783. <div>
  4784. <div style="margin-bottom: 20px; color: #999">
  4785. 提示:点击“+”或“-”修改倒计时时长。
  4786. </div>
  4787. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4788. </div>
  4789. <span slot="footer" class="dialog-footer">
  4790. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4791. <el-button type="primary" @click="addPreTime">确定</el-button>
  4792. </span>
  4793. </el-dialog>
  4794. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4795. :before-close="handleClose" class="dialog_diy">
  4796. <div>
  4797. <div style="
  4798. width: 100%;
  4799. display: flex;
  4800. flex-direction: row;
  4801. flex-wrap: nowrap;
  4802. align-content: center;
  4803. align-items: center;
  4804. justify-content: space-between;
  4805. ">
  4806. <div style="
  4807. display: flex;
  4808. flex-flow: row nowrap;
  4809. align-items: flex-start;
  4810. width: 100%;
  4811. flex-direction: column;
  4812. flex-wrap: nowrap;
  4813. position: relative;
  4814. ">
  4815. <div class="e_box">
  4816. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4817. <div class="e_card_picture">
  4818. <img src="../../../assets/e_picture.png" />
  4819. </div>
  4820. <div class="e_card_name">
  4821. <span>{{ item.title }}</span>
  4822. </div>
  4823. <div class="e_card_btn">
  4824. <span @click="checkEva(item.id, 2)">导入</span>
  4825. </div>
  4826. </div> -->
  4827. <!-- <div class="addEva" @click="openT">
  4828. <img src="../../../assets/icon/addEva.png" alt="" />
  4829. </div> -->
  4830. <div style="
  4831. display: flex;
  4832. justify-content: flex-end;
  4833. margin-bottom: 10px;
  4834. ">
  4835. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  4836. </div>
  4837. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  4838. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  4839. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  4840. </el-table-column>
  4841. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  4842. </el-table-column>
  4843. <el-table-column label="操作" width="250px">
  4844. <template slot-scope="scope">
  4845. <div class="btnBox">
  4846. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  4847. </div>
  4848. </template>
  4849. </el-table-column>
  4850. </el-table>
  4851. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4852. 暂无数据
  4853. </div>
  4854. </div>
  4855. </div>
  4856. </div>
  4857. </div>
  4858. <span slot="footer" class="dialog-footer">
  4859. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4860. </span>
  4861. </el-dialog>
  4862. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4863. :before-close="handleClose" class="dialog_diy">
  4864. <div class="groupBox">
  4865. <div v-if="groupJson.group" class="groupContent">
  4866. <div class="groupTitle">请设置小组数量及名称</div>
  4867. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4868. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4869. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4870. <div class="groupBtn">
  4871. <el-button type="primary" size="small" @click="addGroup(index)"
  4872. v-if="groupJson.group.length - 1 == index">
  4873. 添加</el-button>
  4874. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4875. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4876. </div>
  4877. </div>
  4878. </div>
  4879. <div class="groupContent">
  4880. <div class="groupTitle">请设置每组人数</div>
  4881. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4882. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4883. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  4884. @change="numberPan"></el-input>
  4885. </div>
  4886. </div>
  4887. <span slot="footer" class="dialog-footer">
  4888. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4889. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4890. </span>
  4891. </el-dialog>
  4892. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4893. :before-close="handleClose" class="dialog_diy">
  4894. <div style="
  4895. width: 100%;
  4896. display: flex;
  4897. flex-direction: row;
  4898. flex-wrap: nowrap;
  4899. align-items: center;
  4900. justify-content: center;
  4901. ">
  4902. <div style="min-width: fit-content">文件名称:</div>
  4903. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4904. </div>
  4905. <span slot="footer" class="dialog-footer">
  4906. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4907. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4908. </span>
  4909. </el-dialog>
  4910. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  4911. closePan(69);
  4912. }
  4913. " class="dialog_diy fullStyle fullStyle1">
  4914. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  4915. <span slot="footer" class="dialog-footer">
  4916. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4917. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4918. </span>
  4919. </el-dialog>
  4920. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  4921. :before-close="handleClose" class="dialog_diy">
  4922. <div class="template_box">
  4923. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  4924. :class="{ wordTeacherA: ctJson.id == aa.id }">
  4925. <div class="wordPic">
  4926. <img src="../../../assets/icon/new/course_template.png" alt />
  4927. </div>
  4928. <el-tooltip effect="dark" :content="aa.title" placement="top">
  4929. <div style="
  4930. margin-top: 10px;
  4931. line-height: 19px;
  4932. overflow: hidden;
  4933. text-overflow: ellipsis;
  4934. white-space: nowrap;
  4935. padding: 0 10px;
  4936. box-sizing: border-box;
  4937. width: 100%;
  4938. ">
  4939. {{ aa.title }}
  4940. </div>
  4941. </el-tooltip>
  4942. </div>
  4943. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4944. :class="{ wordTeacherA: ctJson.id == 1 }">
  4945. <div class="wordPic">
  4946. <img src="../../../assets/icon/new/course_template.png" alt />
  4947. </div>
  4948. <div style="
  4949. margin-top: 10px;
  4950. line-height: 19px;
  4951. overflow: hidden;
  4952. text-overflow: ellipsis;
  4953. white-space: nowrap;
  4954. padding: 0 20px;
  4955. ">
  4956. 简易模板
  4957. </div>
  4958. </div>
  4959. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  4960. :class="{ wordTeacherA: ctJson.id == 2 }">
  4961. <div class="wordPic">
  4962. <img src="../../../assets/icon/new/course_template.png" alt />
  4963. </div>
  4964. <div style="
  4965. margin-top: 10px;
  4966. line-height: 19px;
  4967. overflow: hidden;
  4968. text-overflow: ellipsis;
  4969. white-space: nowrap;
  4970. padding: 0 20px;
  4971. ">
  4972. 智能粘贴模式
  4973. </div>
  4974. </div>
  4975. </div>
  4976. <span slot="footer" class="dialog-footer">
  4977. <el-button @click="templateDialog = false">取 消</el-button>
  4978. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  4979. </span>
  4980. </el-dialog>
  4981. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4982. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  4983. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  4984. <div class="change_stageBox">
  4985. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  4986. <div class="nt_taskBox">
  4987. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  4988. <div class="nt_taskName">
  4989. <el-tooltip effect="light" :content="t.dyName" placement="top">
  4990. <span>{{ t.dyName }}</span>
  4991. </el-tooltip>
  4992. </div>
  4993. </div>
  4994. <div class="moveBtn" v-if="unitJson3.length > 1">
  4995. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  4996. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  4997. </div>
  4998. </div>
  4999. </div>
  5000. <span slot="footer" class="dialog-footer">
  5001. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  5002. <el-button type="primary" @click="updateChange">确定</el-button>
  5003. </span>
  5004. </el-dialog>
  5005. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5006. :before-close="handleClose" class="dialog_diy">
  5007. <div class="addTypeChoose" style="justify-content: center">
  5008. <div style="min-width: 100px">模板名称:</div>
  5009. <el-input v-model="templateName" style="width: 200px"></el-input>
  5010. </div>
  5011. <div class="addTypeBox">
  5012. <div class="addTypeChoose">
  5013. <div style="min-width: 100px">选择一级分类:</div>
  5014. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5015. style="width: 200px">
  5016. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5017. </el-option>
  5018. </el-select>
  5019. </div>
  5020. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5021. <div style="min-width: 100px">选择二级分类:</div>
  5022. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5023. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5024. </el-option>
  5025. </el-select>
  5026. </div>
  5027. </div>
  5028. <span slot="footer" class="dialog-footer">
  5029. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5030. <el-button @click="close()">关 闭</el-button>
  5031. </span>
  5032. </el-dialog>
  5033. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5034. </evaBox>
  5035. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5036. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5037. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5038. </aiDialog>
  5039. </div>
  5040. </template>
  5041. <script>
  5042. import "../../../common/aws-sdk-2.235.1.min.js";
  5043. import { tools as toolsData } from "../../../common/tools.js";
  5044. // import "../../../common/aws-sdk-2.99.0.min.js";
  5045. import $ from "jquery";
  5046. import EditorBar from "../../../components/tools/wangEnduit";
  5047. import Table from "../../../components/tools/table";
  5048. import Mind from "../../tools/jsmind2";
  5049. import Time from "../../tools/time.vue";
  5050. import Sunburst from "../../tools/sunburst";
  5051. import SeeBoard from "../../tools/seeBoard";
  5052. import weilaiData from "../components/weilai.js";
  5053. import sourceDialog from "../teacherSource/dialog.vue";
  5054. import interVideo from "../interVideo/index.vue";
  5055. import englishRight from "../components/englishRight.vue";
  5056. import evaBox from "../evaBox/index.vue";
  5057. import EnglishVoice from "../EnglishVoice/index.vue";
  5058. import aiBox from './aiBox.vue'
  5059. import aiDialog from './aiDialog'
  5060. import aiTips from './aiTips.vue'
  5061. import { v4 as uuidv4 } from "uuid";
  5062. export default {
  5063. components: {
  5064. EditorBar,
  5065. Mind,
  5066. Time,
  5067. Sunburst,
  5068. SeeBoard,
  5069. Table,
  5070. sourceDialog,
  5071. interVideo,
  5072. englishRight,
  5073. evaBox,
  5074. EnglishVoice,
  5075. aiBox,
  5076. aiDialog,
  5077. aiTips
  5078. },
  5079. data() {
  5080. return {
  5081. checkAll: false,
  5082. checkAll2: false,
  5083. chooseType: 1,
  5084. checkedCities: [],
  5085. isIndeterminate: true,
  5086. isIndeterminate2: true,
  5087. isSysPic: false,
  5088. isSysPic2: false,
  5089. steps: 1,
  5090. stepsNav: 1,
  5091. nbOrder: 0,
  5092. courseId: "",
  5093. chapToolsType: 0,
  5094. chapTools: [
  5095. {
  5096. tools: [],
  5097. toolDetail: "",
  5098. },
  5099. ],
  5100. line: "",
  5101. lineTitle: "",
  5102. sysPic: [],
  5103. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5104. sentenceList2: [],
  5105. isPushTitleList: [],
  5106. lineCount: 0,
  5107. lineType: 0,
  5108. chapCount: 0,
  5109. courseName: "",
  5110. isTeacherSee: false,
  5111. courseText: "",
  5112. textLoading: false,
  5113. ttextLoading: false,
  5114. courseText2: "",
  5115. preTime: 0,
  5116. formLabelWidth: "100px",
  5117. choosePicVisible: false,
  5118. sysPicVisible: false,
  5119. sysPicVisible2: false,
  5120. uploadLoading1: false,
  5121. noneBtnImg: false,
  5122. updateBoolean2: false,
  5123. unitIndex: 0,
  5124. taskCount: 0,
  5125. dialogVisible: false,
  5126. dialogVisible1: false,
  5127. dialogVisible2: false,
  5128. dialogVisible3: false,
  5129. dialogVisible4: false,
  5130. dialogVisible5: false,
  5131. dialogVisible6: false,
  5132. dialogVisible7: false,
  5133. dialogVisible8: false,
  5134. dialogVisible9: false,
  5135. dialogVisibleClass: false,
  5136. dialogVisibleMember: false,
  5137. dialogVisibleMp3: false,
  5138. dialogVisibleSelect: false,
  5139. dialogVisibleSentence: false,
  5140. dialogVisibleRate: false,
  5141. dialogVisibleChoice: false,
  5142. dialogVisiblemb: false,
  5143. dialogVisibleInvite: false,
  5144. dialogVisibleSource: false,
  5145. dialogVisibleVideo: false,
  5146. dialogVisibleStageChange: false,
  5147. dialogVisibleupdataVideoT: false,
  5148. englishDialogVisible: false,
  5149. templateDialog: false,
  5150. ctJson: {},
  5151. isClickColor: 1,
  5152. toolIndexType: "",
  5153. publicTool: 0,
  5154. searchPeople: "",
  5155. searchTN: "",
  5156. userid: this.$route.query.userid,
  5157. oid: this.$route.query.oid,
  5158. org: this.$route.query.org,
  5159. role: this.$route.query.role,
  5160. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5161. dialogVisibleTable: false,
  5162. dialogVisibleWord: false,
  5163. tableJson: { text: "" },
  5164. wordJson: { text: "" },
  5165. dialogVisibleMoreUpload: false,
  5166. dialogVisiblePreTime: false,
  5167. uploadJson: [],
  5168. classJuri: [],
  5169. gradeList: [],
  5170. cover: [], //课程封面
  5171. myWord: [],
  5172. evaJuri: [],
  5173. evalua: "",
  5174. targetArray: [],
  5175. eTitle: "",
  5176. eJson: {},
  5177. fid: "", //一级
  5178. sid: "", //二级
  5179. tid: "", //二级
  5180. typeMode: 1,
  5181. eJSONNum: 0,
  5182. data: {
  5183. meta: {
  5184. name: "example",
  5185. author: "dd@163.com",
  5186. version: "0.2",
  5187. },
  5188. format: "node_array",
  5189. data: [{ id: "root", isroot: true, topic: "" }],
  5190. },
  5191. askJson: {
  5192. askCount: 1,
  5193. askTitle: "",
  5194. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5195. },
  5196. askJson2: {},
  5197. testJson: {},
  5198. testJson2: {},
  5199. selectJson: {},
  5200. selectJson2: {},
  5201. rateJson: [],
  5202. unitJson2: [],
  5203. unitJson3: [],
  5204. unitJson: [
  5205. {
  5206. dyName: "", //单元标题
  5207. chapterInfo: [
  5208. {
  5209. isread: false,
  5210. chapterid: this.guid(),
  5211. title: "",
  5212. courseName: "",
  5213. taskJson: [
  5214. {
  5215. task: "",
  5216. taskDetail: "",
  5217. chapterData: [],
  5218. toolText: "",
  5219. toolChoose: [
  5220. {
  5221. tool: [],
  5222. toolDetail: "",
  5223. toolType: 0,
  5224. askCount: 1,
  5225. askTitle: "",
  5226. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5227. },
  5228. ],
  5229. isShowTools: false,
  5230. askCount: 1,
  5231. isFold: 1,
  5232. askTitle: "",
  5233. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5234. checkJson: [{ checkCount: [], checkPerent: [] }],
  5235. homeworkList: [],
  5236. },
  5237. ],
  5238. itemCount: 1,
  5239. fileList1: [],
  5240. video: [],
  5241. testData: [],
  5242. pData: [],
  5243. templateArray: [],
  5244. },
  5245. ],
  5246. },
  5247. ],
  5248. templateArray: [],
  5249. studentJuri: [],
  5250. teacherJuri: [],
  5251. checkboxList: [],
  5252. checkboxList2: [],
  5253. checkboxList3: [],
  5254. classSearch: "",
  5255. gradeId: "",
  5256. number: "",
  5257. tTitle: "",
  5258. tdetail: "",
  5259. templateC: {},
  5260. AttText: {},
  5261. AttTextType: 0,
  5262. AttTextIndex: 0,
  5263. cTemplate: "",
  5264. CourseType: [],
  5265. CourseType1: [],
  5266. CourseType2: [],
  5267. CourseTypeJson: {},
  5268. CourseTypeJson1: {},
  5269. courseTypeId: [],
  5270. courseTypeId1: [],
  5271. courseTypeSon: [],
  5272. clearArray: [],
  5273. pTypeCheck: [],
  5274. pTypeCheckName: [],
  5275. loading: false,
  5276. toolType: 0,
  5277. inputShow: true,
  5278. inputShow2: true,
  5279. toolIndex: 0,
  5280. cidType: 0,
  5281. answerQ: "",
  5282. answerQ2: "",
  5283. grade: [],
  5284. grade2: [],
  5285. courseUserid: "",
  5286. timer: null,
  5287. timer2: null,
  5288. pasteTimer: null,
  5289. checkId: "",
  5290. isDelete: 1,
  5291. addindex: 0,
  5292. selectSteps: 1,
  5293. groupJson: {},
  5294. dialogVisibleGroup: false,
  5295. rightBoxHeight: 0,
  5296. ManAarray: [],
  5297. checkBoolean: false,
  5298. inviteCode: [],
  5299. inviteId: "",
  5300. icode: "",
  5301. easyArray: [2, 4],
  5302. sourceData: {},
  5303. updateSourcePan: false,
  5304. videoJson: {},
  5305. isBtnDisplay: false,
  5306. isStepDisplay: false,
  5307. isPasteStage: false,
  5308. isPasteTask: false,
  5309. isPasteChoice: false,
  5310. imageList: [],
  5311. imageloading: false,
  5312. searchImageValue: "",
  5313. ppage: 1,
  5314. toolsData: toolsData,
  5315. oldIndex: 0,
  5316. dragType: "",
  5317. oldUnitIndex: 0,
  5318. oldData: null,
  5319. newIndex: "",
  5320. englishList: {},
  5321. typeIndex: "",
  5322. courseState: 2,
  5323. taskJSONa: [
  5324. {
  5325. task: "",
  5326. taskDetail: "",
  5327. chapterData: [],
  5328. toolText: "",
  5329. toolChoose: [
  5330. {
  5331. tool: [],
  5332. toolDetail: "",
  5333. toolType: 0,
  5334. askCount: 1,
  5335. askTitle: "",
  5336. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5337. },
  5338. ],
  5339. isShowTools: false,
  5340. askCount: 1,
  5341. isFold: 1,
  5342. askTitle: "",
  5343. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5344. checkJson: [{ checkCount: [], checkPerent: [] }],
  5345. homeworkList: [],
  5346. },
  5347. ],
  5348. checkUnitIndex: 0,
  5349. isdrag: "",
  5350. evaIndex: "",
  5351. evatIndex: "",
  5352. evaBoxDialog: false,
  5353. EnglishVoiceDialog: false,
  5354. englishVoiceJson: {},
  5355. cetIndex: "",
  5356. cettIndex: "",
  5357. cetBoxDialog: false,
  5358. templateName: "",
  5359. setTypeJson: {
  5360. one: "",
  5361. two: "",
  5362. },
  5363. twoJson: [],
  5364. oneJson: [],
  5365. updateKey: 1,
  5366. isOutline: false,
  5367. isOutline2: false,
  5368. infoData: [],
  5369. infoproVisible: false,
  5370. infoisFinishSize: 0,
  5371. infoisAllSize: 0,
  5372. infoprogress: 0,
  5373. taskDetailLoading: [],
  5374. ttaskDetailLoading: [],
  5375. taskDetailLoading2: [],
  5376. ttaskDetailLoading2: [],
  5377. taskDetailLoading3: [],
  5378. ttaskDetailLoading3: [],
  5379. taskDetailLoading4: [],
  5380. taskDetailLoading5: [],
  5381. ttaskDetailLoading5: [],
  5382. dArray: {},
  5383. dialogVisibleAiD: false,
  5384. aitype: "",
  5385. aiJson: {
  5386. aiDetail:"请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  5387. aiOutline:"请根据<课程简要描述>及#补充参考资料为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。",
  5388. aiTask:"请根据<教学任务教案>。",
  5389. aiDetail1:"请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  5390. aiDetail2:"请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  5391. aiDetail3:"请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  5392. aiDetail4:"请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  5393. aiTeacher:"请根据<任务大纲>为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5394. teacherDetail:"请根据<教案描述>重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5395. },
  5396. aiText: "",
  5397. aiCallBack: "",
  5398. aiIndex: "",
  5399. clickType: 1,
  5400. promptShow: false
  5401. };
  5402. },
  5403. directives: {
  5404. autoHeight: {
  5405. update(el, binding) {
  5406. const { value } = binding;
  5407. if (value && typeof value === "number") {
  5408. el.style.height = `${value}px`;
  5409. } else {
  5410. el.style.height = "auto";
  5411. }
  5412. },
  5413. componentUpdated(el) {
  5414. el.style.height = `${el.scrollHeight + 25}px`;
  5415. },
  5416. },
  5417. },
  5418. computed: {
  5419. // rightBoxHeight: function () {
  5420. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5421. // },
  5422. offsetLetfPx: function () {
  5423. //addnum可以直接在模板语法里面用,相当于data内的值
  5424. return (
  5425. $(".cru_select")[this.unitIndex] &&
  5426. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5427. );
  5428. },
  5429. getMan2() {
  5430. return function (people) {
  5431. let _people = people;
  5432. let _people2 = "";
  5433. if (this.ManAarray.length) {
  5434. for (var i = 0; i < this.ManAarray.length; i++) {
  5435. if (this.ManAarray[i].userid == people) {
  5436. _people2 = this.ManAarray[i].name;
  5437. break;
  5438. }
  5439. }
  5440. }
  5441. if (people == this.courseUserid) {
  5442. return "";
  5443. }
  5444. return this.ManAarray.length ? _people2 : "";
  5445. };
  5446. },
  5447. getListMan2() {
  5448. return function (list) {
  5449. let _people2 = [];
  5450. if (this.ManAarray.length) {
  5451. for (var j = 0; j < list.length; j++) {
  5452. let people = list[j];
  5453. for (var i = 0; i < this.ManAarray.length; i++) {
  5454. if (
  5455. this.ManAarray[i].userid == people &&
  5456. people != this.courseUserid
  5457. ) {
  5458. _people2.push(this.ManAarray[i].name);
  5459. break;
  5460. }
  5461. }
  5462. }
  5463. }
  5464. return this.ManAarray.length ? _people2.join("、") : "";
  5465. };
  5466. },
  5467. isInvite() {
  5468. return function (cid) {
  5469. let array = [];
  5470. for (var i = 0; i < this.inviteCode.length; i++) {
  5471. array.push(this.inviteCode[i].cid);
  5472. }
  5473. return array.indexOf(cid) != -1;
  5474. };
  5475. },
  5476. getInviteCodeC() {
  5477. return function (cid) {
  5478. let array = [];
  5479. for (var i = 0; i < this.inviteCode.length; i++) {
  5480. array.push(this.inviteCode[i].cid);
  5481. }
  5482. return this.inviteCode[array.indexOf(cid)].ic;
  5483. };
  5484. },
  5485. getClassC() {
  5486. return function (c) {
  5487. let _c2 = "";
  5488. if (this.grade.length) {
  5489. for (var i = 0; i < this.grade.length; i++) {
  5490. if (this.grade[i].id == c) {
  5491. _c2 = this.grade[i].name;
  5492. break;
  5493. }
  5494. }
  5495. }
  5496. return this.grade.length ? _c2 : "";
  5497. };
  5498. },
  5499. getListClassC() {
  5500. return function (list) {
  5501. let _c2 = [];
  5502. if (this.grade.length) {
  5503. for (var j = 0; j < list.length; j++) {
  5504. let c = list[j];
  5505. for (var i = 0; i < this.grade.length; i++) {
  5506. if (this.grade[i].id == c) {
  5507. _c2.push(this.grade[i].name);
  5508. break;
  5509. }
  5510. }
  5511. }
  5512. }
  5513. return this.grade.length ? _c2.join("、") : "";
  5514. };
  5515. },
  5516. },
  5517. watch: {
  5518. unitIndex(newValue, oldValue) {
  5519. // return;
  5520. if (this.isDelete == 2) {
  5521. this.isDelete = 1;
  5522. return;
  5523. }
  5524. if (this.cid != "") {
  5525. let _unitIndex = oldValue;
  5526. if (
  5527. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5528. JSON.stringify(this.unitJson[_unitIndex])
  5529. ) {
  5530. this.$refs.rightboxR.scrollTop = 0;
  5531. return;
  5532. }
  5533. let cPan = 1;
  5534. for (
  5535. var j = 0;
  5536. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5537. j++
  5538. ) {
  5539. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5540. j
  5541. ].proVisible = false;
  5542. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5543. j
  5544. ].proVisible2 = false;
  5545. if (
  5546. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5547. .length > 1
  5548. ) {
  5549. for (
  5550. var z = 0;
  5551. z <
  5552. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5553. .length;
  5554. z++
  5555. ) {
  5556. if (
  5557. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5558. .toolChoose[z].tool.length
  5559. ) {
  5560. this.$message.error("请把工具添加完整");
  5561. cPan = 2;
  5562. break;
  5563. }
  5564. }
  5565. }
  5566. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5567. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5568. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5569. (ele) => {
  5570. return ele.value != "";
  5571. }
  5572. );
  5573. }
  5574. }
  5575. if (cPan == 2) {
  5576. this.unitIndex = oldValue;
  5577. return;
  5578. }
  5579. for (var i = 0; i < this.unitJson.length; i++) {
  5580. if (this.addindex != i) {
  5581. delete this.unitJson[i].isUpdate;
  5582. }
  5583. }
  5584. this.$refs.rightboxR.scrollTop = 0;
  5585. this.addindex = -1;
  5586. let params = [
  5587. {
  5588. cid: this.cid,
  5589. chapters: JSON.stringify(this.unitJson),
  5590. uid: this.userid,
  5591. unitIndex: _unitIndex,
  5592. },
  5593. ];
  5594. this.ajax
  5595. .post(this.$store.state.api + "updateWorkNew4", params)
  5596. .then((res) => {
  5597. // this.$message({
  5598. // message: "修改成功",
  5599. // type: "success",
  5600. // });
  5601. // this.courseId = this.cid;
  5602. })
  5603. .catch((err) => {
  5604. this.$message.error("网络不佳");
  5605. console.error(err);
  5606. });
  5607. }
  5608. },
  5609. steps(newValue, old) {
  5610. if (newValue == 4) {
  5611. let cPan = 1;
  5612. for (var i = 0; i < this.unitJson.length; i++) {
  5613. for (
  5614. var j = 0;
  5615. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5616. j++
  5617. ) {
  5618. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5619. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5620. if (
  5621. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5622. ) {
  5623. for (
  5624. var z = 0;
  5625. z <
  5626. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5627. z++
  5628. ) {
  5629. if (
  5630. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5631. .tool.length
  5632. ) {
  5633. this.$message.error("请把工具添加完整");
  5634. cPan = 2;
  5635. break;
  5636. }
  5637. }
  5638. }
  5639. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5640. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5641. i
  5642. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5643. return ele.value != "";
  5644. });
  5645. }
  5646. }
  5647. }
  5648. this.inputShow = true;
  5649. if (cPan == 2) {
  5650. this.steps = old;
  5651. return;
  5652. }
  5653. this.goTo(
  5654. "/course?userid=" +
  5655. this.userid +
  5656. "&oid=" +
  5657. this.oid +
  5658. "&org=" +
  5659. this.org +
  5660. "&role=" +
  5661. this.role
  5662. );
  5663. }
  5664. },
  5665. },
  5666. methods: {
  5667. tableRowClassName({ row, rowIndex }) {
  5668. if ((rowIndex + 1) % 2 === 0) {
  5669. return "even_row";
  5670. } else {
  5671. return "";
  5672. }
  5673. },
  5674. close() {
  5675. this.cetIndex = "";
  5676. this.cettIndex = "";
  5677. this.templateName = "";
  5678. this.cetBoxDialog = false;
  5679. },
  5680. openAI() {
  5681. top.postMessage({ tools: "64" }, "*");
  5682. },
  5683. setMan() {
  5684. // let teacherJuri = this.teacherJuri2;
  5685. this.ManAarray = [];
  5686. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5687. if (_user.indexOf(this.userid) == -1) {
  5688. _user.push(this.userid);
  5689. }
  5690. if (_user.indexOf(this.courseUserid) == -1) {
  5691. _user.push(this.courseUserid);
  5692. }
  5693. let params = {
  5694. uid: _user.join(","),
  5695. };
  5696. this.ajax
  5697. .get(this.$store.state.api + "getAllUserById", params)
  5698. .then((res) => {
  5699. let teacherJuri = res.data[0];
  5700. this.ManAarray = teacherJuri;
  5701. })
  5702. .catch((err) => {
  5703. console.error(err);
  5704. });
  5705. },
  5706. previewImg(url) {
  5707. this.$hevueImgPreview(url);
  5708. },
  5709. btnDisplay(bool) {
  5710. this.isBtnDisplay = bool;
  5711. },
  5712. stepDisplay(bool) {
  5713. this.isStepDisplay = bool;
  5714. },
  5715. scrollChange() {
  5716. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5717. },
  5718. addHw(e) {
  5719. var el = e.currentTarget;
  5720. el.getElementsByTagName("input")[0].click();
  5721. },
  5722. change(val) {
  5723. if (this.dialogVisible1) {
  5724. this.tdetail = val;
  5725. } else if (this.dialogVisible6) {
  5726. this.AttText.text = val;
  5727. } else if (this.dialogVisible2) {
  5728. this.cTemplate = val;
  5729. } else if (this.dialogVisibleTable) {
  5730. this.tableJson.text = val;
  5731. }
  5732. this.$forceUpdate();
  5733. console.log(val);
  5734. },
  5735. change2(val) {
  5736. console.log(val);
  5737. this.$forceUpdate();
  5738. },
  5739. handleClose(done) {
  5740. done();
  5741. },
  5742. closePan(tool) {
  5743. if (tool == 15) {
  5744. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5745. this.dialogVisible8 = false;
  5746. } else {
  5747. this.closeConfirm(tool);
  5748. }
  5749. } else if (tool == 4) {
  5750. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5751. this.dialogVisible5 = false;
  5752. } else {
  5753. this.closeConfirm(tool);
  5754. }
  5755. } else if (tool == 45) {
  5756. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5757. this.dialogVisibleChoice = false;
  5758. } else {
  5759. this.closeConfirm(tool);
  5760. }
  5761. } else if (tool == 41) {
  5762. if (
  5763. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  5764. ) {
  5765. this.dialogVisibleSelect = false;
  5766. } else {
  5767. this.closeConfirm(tool);
  5768. }
  5769. } else if (tool == 47) {
  5770. if (
  5771. JSON.stringify(this.sentenceList) ==
  5772. JSON.stringify(this.sentenceList2)
  5773. ) {
  5774. this.dialogVisibleSentence = false;
  5775. } else {
  5776. this.closeConfirm(tool);
  5777. }
  5778. } else if (tool == 69) {
  5779. if (
  5780. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  5781. ) {
  5782. this.englishDialogVisible = false;
  5783. } else {
  5784. this.closeConfirm(tool);
  5785. }
  5786. }
  5787. },
  5788. closeConfirm(tool) {
  5789. this.$confirm("是否保存已编辑内容?", "提示", {
  5790. confirmButtonText: "保存",
  5791. cancelButtonText: "不保存",
  5792. type: "warning",
  5793. })
  5794. .then(() => {
  5795. if (tool == 15) {
  5796. this.addAnswer();
  5797. } else if (tool == 4) {
  5798. this.addAsk();
  5799. } else if (tool == 45) {
  5800. this.addTest();
  5801. } else if (tool == 41) {
  5802. this.addSelectAnswer();
  5803. } else if (tool == 47) {
  5804. this.addSentenceTool();
  5805. } else if (tool == 69) {
  5806. this.addEnglish();
  5807. }
  5808. })
  5809. .catch(() => {
  5810. if (tool == 15) {
  5811. this.dialogVisible8 = false;
  5812. } else if (tool == 4) {
  5813. this.dialogVisible5 = false;
  5814. } else if (tool == 45) {
  5815. this.dialogVisibleChoice = false;
  5816. } else if (tool == 41) {
  5817. this.dialogVisibleSelect = false;
  5818. } else if (tool == 47) {
  5819. this.dialogVisibleSentence = false;
  5820. } else if (tool == 69) {
  5821. this.englishDialogVisible = false;
  5822. }
  5823. });
  5824. },
  5825. addEnglish(jsonType) {
  5826. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  5827. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  5828. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  5829. if (
  5830. this.englishList.engTitle == "" ||
  5831. this.englishList.englishText == ""
  5832. ) {
  5833. this.$message.error("请将内容填写完整!");
  5834. return;
  5835. }
  5836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5837. this.taskCount
  5838. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5839. this.englishList = {};
  5840. if (jsonType && jsonType == 1) {
  5841. this.englishDialogVisible = true;
  5842. } else {
  5843. this.englishDialogVisible = false;
  5844. }
  5845. if (
  5846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5847. .toolChoose[this.toolIndex].tool != 69
  5848. ) {
  5849. this.addTools(69, this.taskCount, this.toolIndex);
  5850. }
  5851. },
  5852. imgChange2(i, j) {
  5853. var _tmp = this.testJson.testJson[i].checkList[j];
  5854. this.noneBtnImg = _tmp.length >= 1;
  5855. },
  5856. imgChange3(i) {
  5857. var _tmp = this.testJson.testJson[i];
  5858. this.noneBtnImg = _tmp.length >= 1;
  5859. },
  5860. imgChange1(file, fileList, type, itemTaskIndex) {
  5861. if (type == 1) {
  5862. var _tmp = this.cover;
  5863. } else if (
  5864. type == 2 ||
  5865. type == 3 ||
  5866. type == 6 ||
  5867. type == 7 ||
  5868. type == 8
  5869. ) {
  5870. var _tmp =
  5871. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5872. .chapterData;
  5873. } else if (type == 4) {
  5874. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5875. } else {
  5876. var _tmp =
  5877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5878. .homeworkList;
  5879. }
  5880. this.noneBtnImg = _tmp.length >= 1;
  5881. },
  5882. goTo(path) {
  5883. this.$router.push(path);
  5884. },
  5885. guid() {
  5886. var _num,
  5887. i,
  5888. _guid = "";
  5889. for (i = 0; i < 32; i++) {
  5890. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5891. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5892. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5893. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5894. _guid += "-";
  5895. }
  5896. }
  5897. return _guid;
  5898. },
  5899. retrunCourse() {
  5900. this.$confirm("是否保存已编辑内容?", "提示", {
  5901. confirmButtonText: "保存",
  5902. cancelButtonText: "不保存",
  5903. distinguishCancelAndClose: true,
  5904. type: "warning",
  5905. })
  5906. .then(() => {
  5907. if (this.cid == "" || this.cid == undefined) {
  5908. if (this.courseName == "") {
  5909. this.$message.error("请补充填写课程名称");
  5910. return;
  5911. } else {
  5912. this.addWork();
  5913. }
  5914. this.steps = 4;
  5915. } else {
  5916. if (this.courseName == "") {
  5917. this.$message.error("请补充填写课程名称");
  5918. return;
  5919. } else {
  5920. if (this.userid != this.courseUserid && this.role != "1") {
  5921. this.updateWork2();
  5922. } else {
  5923. this.updateWork();
  5924. }
  5925. this.steps = 4;
  5926. }
  5927. }
  5928. })
  5929. .catch((v) => {
  5930. console.log(v);
  5931. if (v == "cancel") {
  5932. this.goTo(
  5933. "/course?userid=" +
  5934. this.userid +
  5935. "&oid=" +
  5936. this.oid +
  5937. "&org=" +
  5938. this.org +
  5939. "&role=" +
  5940. this.role
  5941. );
  5942. }
  5943. });
  5944. },
  5945. lastSteps() {
  5946. if (this.steps == 4) {
  5947. this.goTo(
  5948. "/course?userid=" +
  5949. this.userid +
  5950. "&oid=" +
  5951. this.oid +
  5952. "&org=" +
  5953. this.org +
  5954. "&role=" +
  5955. this.role
  5956. );
  5957. } else {
  5958. // if (this.cidType == 0) {
  5959. // this.steps--;
  5960. // if (this.steps == 1) {
  5961. // setTimeout(() => {
  5962. // this.checkEva(this.checkId);
  5963. // setTimeout(() => {
  5964. // this.checkEva(this.checkId);
  5965. // }, 100);
  5966. // }, 100);
  5967. // }
  5968. // } else {
  5969. if (this.steps == 3) {
  5970. this.steps = 1;
  5971. setTimeout(() => {
  5972. this.checkEva(this.checkId);
  5973. setTimeout(() => {
  5974. this.checkEva(this.checkId);
  5975. }, 100);
  5976. }, 100);
  5977. }
  5978. // }
  5979. }
  5980. },
  5981. navSteps(s) {
  5982. if (this.courseName == "") {
  5983. this.$message.error("请补充填写课程名称");
  5984. return;
  5985. }
  5986. if (this.cidType == 0) {
  5987. if (this.steps == 1) {
  5988. if (this.cid == "" || this.cid == undefined) {
  5989. this.addWork();
  5990. } else {
  5991. if (this.userid != this.courseUserid && this.role != "1") {
  5992. this.updateWork2();
  5993. } else {
  5994. this.updateWork();
  5995. }
  5996. }
  5997. }
  5998. if (s == 1) {
  5999. this.steps = 1;
  6000. setTimeout(() => {
  6001. this.checkEva(this.checkId);
  6002. setTimeout(() => {
  6003. this.checkEva(this.checkId);
  6004. }, 100);
  6005. }, 100);
  6006. }
  6007. if (s == 2) {
  6008. this.steps = 2;
  6009. }
  6010. if (s == 3) {
  6011. this.cTemplate = this.templateC.content;
  6012. this.dialogVisible2 = false;
  6013. this.steps = 3;
  6014. this.isClickColor = 1;
  6015. this.unitJson[
  6016. this.unitIndex
  6017. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6018. this.$forceUpdate();
  6019. setTimeout(() => {
  6020. this.checkEva(this.checkId);
  6021. setTimeout(() => {
  6022. this.checkEva(this.checkId);
  6023. }, 100);
  6024. }, 1000);
  6025. }
  6026. } else {
  6027. if (this.steps == 1) {
  6028. if (this.cid == "" || this.cid == undefined) {
  6029. this.addWork();
  6030. } else {
  6031. if (this.userid != this.courseUserid && this.role != "1") {
  6032. this.updateWork2();
  6033. } else {
  6034. this.updateWork();
  6035. }
  6036. }
  6037. }
  6038. if (s == 1) {
  6039. this.steps = 1;
  6040. setTimeout(() => {
  6041. this.checkEva(this.checkId);
  6042. setTimeout(() => {
  6043. this.checkEva(this.checkId);
  6044. }, 100);
  6045. }, 100);
  6046. }
  6047. if (s == 3) {
  6048. this.cTemplate = this.templateC.content;
  6049. this.dialogVisible2 = false;
  6050. this.steps = 3;
  6051. this.isClickColor = 1;
  6052. this.unitJson[
  6053. this.unitIndex
  6054. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6055. this.$forceUpdate();
  6056. setTimeout(() => {
  6057. this.checkEva(this.checkId);
  6058. setTimeout(() => {
  6059. this.checkEva(this.checkId);
  6060. }, 100);
  6061. }, 1000);
  6062. }
  6063. }
  6064. this.$refs.stepBox.scrollTop = 0;
  6065. },
  6066. nextSteps(clickType) {
  6067. // if (this.cidType == 1) {
  6068. if (this.steps == 1) {
  6069. if (this.courseName != "") {
  6070. if (!this.isOutline) {
  6071. this.openAiDialog(clickType, 'aiOutline')
  6072. return;
  6073. }
  6074. if (!this.isOutline2) {
  6075. this.openAiDialog(clickType, 'aiTeacher')
  6076. return;
  6077. }
  6078. const functionA = () => {
  6079. setTimeout(() => {
  6080. this.loading = false
  6081. this.steps = 3;
  6082. }, 0)
  6083. this.isClickColor = 1;
  6084. this.unitJson[
  6085. this.unitIndex
  6086. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6087. this.$forceUpdate();
  6088. setTimeout(() => {
  6089. this.checkEva(this.checkId);
  6090. setTimeout(() => {
  6091. this.checkEva(this.checkId);
  6092. }, 100);
  6093. }, 1000);
  6094. if (this.cid == "" || this.cid == undefined) {
  6095. this.addWork();
  6096. } else {
  6097. if (this.userid != this.courseUserid && this.role != "1") {
  6098. this.updateWork2();
  6099. } else {
  6100. this.updateWork();
  6101. }
  6102. }
  6103. }
  6104. if (this.cid) {
  6105. this.loading = true
  6106. functionA()
  6107. } else {
  6108. this.openAiDialog(clickType, "aiTask", functionA)
  6109. }
  6110. } else {
  6111. this.$message.error("请补充填写课程名称");
  6112. return;
  6113. }
  6114. } else if (this.steps == 3) {
  6115. if (this.cid == "" || this.cid == undefined) {
  6116. if (this.courseName == "") {
  6117. this.$message.error("请补充填写课程名称");
  6118. return;
  6119. } else {
  6120. this.addWork();
  6121. this.steps++;
  6122. }
  6123. } else {
  6124. if (this.courseName == "") {
  6125. this.$message.error("请补充填写课程名称");
  6126. return;
  6127. } else {
  6128. if (this.userid != this.courseUserid && this.role != "1") {
  6129. this.updateWork2();
  6130. } else {
  6131. this.updateWork();
  6132. }
  6133. this.steps++;
  6134. }
  6135. }
  6136. }
  6137. // } else {
  6138. // if (this.steps == 1) {
  6139. // if (this.courseName != "") {
  6140. // if (this.cid == "" || this.cid == undefined) {
  6141. // this.addWork();
  6142. // } else {
  6143. // if (this.userid != this.courseUserid && this.role != "1") {
  6144. // // this.updateWork2();
  6145. // } else {
  6146. // this.updateWork();
  6147. // }
  6148. // }
  6149. // this.steps++;
  6150. // } else {
  6151. // this.$message.error("请补充填写课程名称");
  6152. // return;
  6153. // }
  6154. // } else if (this.steps == 2) {
  6155. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6156. // this.cTemplate = this.templateC.content;
  6157. // }
  6158. // this.dialogVisible2 = false;
  6159. // this.steps++;
  6160. // setTimeout(() => {
  6161. // this.checkEva(this.checkId);
  6162. // setTimeout(() => {
  6163. // this.checkEva(this.checkId);
  6164. // }, 100);
  6165. // }, 1000);
  6166. // } else if (this.steps == 3) {
  6167. // if (this.cid == "" || this.cid == undefined) {
  6168. // if (this.courseName == "") {
  6169. // this.$message.error("请补充填写课程名称");
  6170. // return;
  6171. // } else {
  6172. // this.addWork();
  6173. // this.steps++;
  6174. // }
  6175. // } else {
  6176. // if (this.courseName == "") {
  6177. // this.$message.error("请补充填写课程名称");
  6178. // return;
  6179. // } else {
  6180. // if (this.userid != this.courseUserid && this.role != "1") {
  6181. // this.updateWork2();
  6182. // } else {
  6183. // this.updateWork();
  6184. // }
  6185. // this.steps++;
  6186. // }
  6187. // }
  6188. // }
  6189. // }
  6190. this.$refs.stepBox.scrollTop = 0;
  6191. },
  6192. unitSet(i) {
  6193. if (this.unitIndex == i) {
  6194. return;
  6195. }
  6196. this.unitIndex = i;
  6197. this.isClickColor = 1;
  6198. // this.$refs.rightboxR.scrollTop = 0;
  6199. this.$refs.unitBox.scrollTop = 0;
  6200. },
  6201. panUnitJson() {
  6202. let _unitIndex = this.unitIndex;
  6203. let cPan = 1;
  6204. for (
  6205. var j = 0;
  6206. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6207. j++
  6208. ) {
  6209. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6210. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6211. j
  6212. ].proVisible2 = false;
  6213. if (
  6214. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6215. .length > 1
  6216. ) {
  6217. for (
  6218. var z = 0;
  6219. z <
  6220. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6221. .length;
  6222. z++
  6223. ) {
  6224. if (
  6225. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6226. z
  6227. ].tool.length
  6228. ) {
  6229. this.$message.error("请把工具添加完整");
  6230. cPan = 2;
  6231. break;
  6232. }
  6233. }
  6234. }
  6235. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6236. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6237. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6238. (ele) => {
  6239. return ele.value != "";
  6240. }
  6241. );
  6242. }
  6243. }
  6244. return cPan;
  6245. },
  6246. unitOpen(i) {
  6247. if (this.unitJson[i].toolOpen) {
  6248. this.unitJson[i].toolOpen = false;
  6249. } else {
  6250. this.unitJson[i].toolOpen = true;
  6251. }
  6252. this.updateWork();
  6253. this.$forceUpdate();
  6254. },
  6255. unitSet2(i) {
  6256. if (this.panUnitJson() == 2) {
  6257. return;
  6258. }
  6259. // if(this.unitJson[i].toolOpen){
  6260. // this.unitJson[i].toolOpen = false
  6261. // this.updateWork()
  6262. // this.$forceUpdate()
  6263. // return
  6264. // }else {
  6265. this.unitJson[i].toolOpen = true;
  6266. // }
  6267. this.$forceUpdate();
  6268. if (this.unitIndex == i) {
  6269. return;
  6270. }
  6271. this.unitIndex = i;
  6272. this.isClickColor = 1;
  6273. // this.$refs.rightboxR.scrollTop = 0;
  6274. this.$refs.unitBox.scrollTop = 0;
  6275. },
  6276. updateCourseState(i) {
  6277. let params = [
  6278. {
  6279. cid: this.cid,
  6280. state: i,
  6281. },
  6282. ];
  6283. this.ajax
  6284. .post(this.$store.state.api + "updateCourseMode", params)
  6285. .then((res) => {
  6286. this.courseState = i;
  6287. })
  6288. .catch((err) => {
  6289. this.$message.error("网络不佳");
  6290. console.error(err);
  6291. });
  6292. },
  6293. time() {
  6294. if (!this.now) {
  6295. this.now = new Date().getTime();
  6296. return true;
  6297. } else {
  6298. let time = new Date().getTime();
  6299. if (time - this.now > 3000) {
  6300. this.now = time;
  6301. return true;
  6302. } else {
  6303. return false;
  6304. }
  6305. }
  6306. },
  6307. deleteUnit(i) {
  6308. var _this = this;
  6309. if (i == 0 && _this.unitJson.length == 1) {
  6310. _this
  6311. .$confirm("确定切换成任务模式吗?", "提示", {
  6312. confirmButtonText: "确定",
  6313. cancelButtonText: "取消",
  6314. type: "warning",
  6315. })
  6316. .then(() => {
  6317. _this.unitJson[i].dyName = "";
  6318. // _this.updateCourseState(2);
  6319. })
  6320. .catch(() => {
  6321. return;
  6322. });
  6323. } else {
  6324. _this
  6325. .$confirm("确定删除此阶段吗?", "提示", {
  6326. confirmButtonText: "确定",
  6327. cancelButtonText: "取消",
  6328. type: "warning",
  6329. })
  6330. .then(() => {
  6331. _this.isDelete = 2;
  6332. // _this.unitIndex = _this.unitIndex - 1;
  6333. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6334. // _this.$message.success("删除成功");
  6335. })
  6336. .catch(() => {
  6337. return;
  6338. });
  6339. }
  6340. },
  6341. deleteWork(chapid) {
  6342. let params = [
  6343. {
  6344. cid: this.cid,
  6345. chapters: JSON.stringify(this.unitJson),
  6346. uid: this.userid,
  6347. chapid: chapid,
  6348. },
  6349. ];
  6350. this.ajax
  6351. .post(this.$store.state.api + "deleteWork", params)
  6352. .then((res) => {
  6353. this.$message({
  6354. message: "删除成功",
  6355. type: "success",
  6356. });
  6357. let task = JSON.parse(
  6358. JSON.stringify(
  6359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6360. )
  6361. );
  6362. this.unitJson.splice(this.unitIndex, 1);
  6363. if (this.unitIndex == 0) {
  6364. this.unitIndex = 0;
  6365. } else {
  6366. this.unitIndex = this.unitIndex - 1;
  6367. }
  6368. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6370. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6371. ...task,
  6372. ];
  6373. }
  6374. })
  6375. .catch((err) => {
  6376. this.$message.error("网络不佳");
  6377. console.error(err);
  6378. });
  6379. },
  6380. deleteTool(itemTaskIndex, i) {
  6381. var _this = this;
  6382. if (_this.time()) {
  6383. _this
  6384. .$confirm("确定删除此工具吗?", "提示", {
  6385. confirmButtonText: "确定",
  6386. cancelButtonText: "取消",
  6387. type: "warning",
  6388. })
  6389. .then(() => {
  6390. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6391. itemTaskIndex
  6392. ].toolChoose.splice(i, 1);
  6393. _this.$message.success("删除成功");
  6394. })
  6395. .catch(() => {
  6396. return;
  6397. });
  6398. }
  6399. },
  6400. deleteSentence(i) {
  6401. var _this = this;
  6402. _this
  6403. .$confirm("确定删除此题目吗?", "提示", {
  6404. confirmButtonText: "确定",
  6405. cancelButtonText: "取消",
  6406. type: "warning",
  6407. })
  6408. .then(() => {
  6409. _this.sentenceList.splice(i, 1);
  6410. _this.$message.success("删除成功");
  6411. })
  6412. .catch(() => {
  6413. return;
  6414. });
  6415. },
  6416. deleteS(s, i, j) {
  6417. this.sentenceList[i].addSentence.splice(j, 1);
  6418. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6419. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6420. this.sentenceList[i].rightAnswer.splice(a, 1);
  6421. }
  6422. },
  6423. openT() {
  6424. top.postMessage({ tools: "25" }, "*");
  6425. },
  6426. deleteTask(i) {
  6427. var _this = this;
  6428. if (_this.time()) {
  6429. _this
  6430. .$confirm(
  6431. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6432. 1 ==
  6433. i
  6434. ? "确定删除此任务吗?"
  6435. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6436. "提示",
  6437. {
  6438. confirmButtonText: "确定",
  6439. cancelButtonText: "取消",
  6440. type: "warning",
  6441. }
  6442. )
  6443. .then(() => {
  6444. if (i == 0) {
  6445. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6446. i + 1
  6447. ].chapterData = JSON.parse(
  6448. JSON.stringify(
  6449. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6450. .chapterData
  6451. )
  6452. );
  6453. }
  6454. _this.$forceUpdate();
  6455. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6456. i,
  6457. 1
  6458. );
  6459. _this.$message.success("删除成功");
  6460. })
  6461. .catch(() => {
  6462. return;
  6463. });
  6464. }
  6465. },
  6466. handlePictureCardPreview(file) {
  6467. this.dialogImageUrl = file.url;
  6468. },
  6469. clean(i, c) {
  6470. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6471. },
  6472. handle_remove1(file, fileList, type) {
  6473. var _tmp = this.cover;
  6474. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6475. // if (_tmp[i].uid == file.uid) {
  6476. // _tmp.splice(i, 1);
  6477. // break;
  6478. // }
  6479. // this.cover = _tmp;
  6480. // }
  6481. this.cover = [];
  6482. this.noneBtnImg = this.cover.length >= 1;
  6483. this.isSysPic = false;
  6484. this.isSysPic2 = false;
  6485. this.$forceUpdate();
  6486. },
  6487. addImg(e) {
  6488. var el = e.currentTarget;
  6489. el.getElementsByTagName("input")[0].click();
  6490. e.target.value = "";
  6491. },
  6492. addChaptersTools(i) {
  6493. this.chapTools = [
  6494. {
  6495. tools: [],
  6496. toolDetail: "",
  6497. },
  6498. ];
  6499. this.chapCount = i;
  6500. this.dialogVisible4 = true;
  6501. },
  6502. isNoFinsh() {
  6503. this.$message.warning("功能正在开发中");
  6504. },
  6505. addAttText(i) {
  6506. this.AttText = {
  6507. title: "",
  6508. text: "",
  6509. };
  6510. this.taskCount = i;
  6511. this.AttTextType = 0;
  6512. this.$forceUpdate();
  6513. this.dialogVisible6 = true;
  6514. setTimeout(() => {
  6515. this.$refs["fuInput"].focus();
  6516. }, 100);
  6517. },
  6518. openLine(i) {
  6519. this.line = "";
  6520. this.lineCount = i;
  6521. this.lineType = 0;
  6522. this.$forceUpdate();
  6523. this.dialogVisible7 = true;
  6524. },
  6525. pasteLine(i) {
  6526. navigator.clipboard
  6527. .readText()
  6528. .then((v) => {
  6529. console.log("获取剪贴板成功:", v);
  6530. const html = v;
  6531. const regex = /src="(.*?)"/g;
  6532. const match = regex.exec(html);
  6533. if (match && match[1]) {
  6534. console.log(match[1]);
  6535. this.$message.success("粘贴成功");
  6536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6537. i
  6538. ].chapterData.push({
  6539. name: "链接",
  6540. title: "嵌入代码",
  6541. url: match[1],
  6542. type: 8,
  6543. });
  6544. } else {
  6545. // console.log("未找到包含 src 属性的 iframe");
  6546. this.$message.error(
  6547. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6548. );
  6549. }
  6550. })
  6551. .catch((v) => {
  6552. console.log("获取剪贴板失败: ", v);
  6553. });
  6554. },
  6555. openSource(i) {
  6556. this.lineCount = i;
  6557. this.sourceData = {};
  6558. this.dialogVisibleSource = true;
  6559. this.updateSourcePan = false;
  6560. },
  6561. addSource() {
  6562. if (!Object.keys(this.sourceData).length) {
  6563. this.$message.error("请选择要上传的资源");
  6564. return;
  6565. }
  6566. let keys = Object.keys(this.sourceData);
  6567. for (var i = 0; i < keys.length; i++) {
  6568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6569. this.lineCount
  6570. ].chapterData.push({
  6571. name: "链接",
  6572. title: this.sourceData[keys[i]].name,
  6573. url: this.sourceData[keys[i]].url,
  6574. type: 14,
  6575. id: keys[i],
  6576. });
  6577. }
  6578. this.$forceUpdate();
  6579. this.dialogVisibleSource = false;
  6580. },
  6581. updateSource() {
  6582. if (!Object.keys(this.sourceData).length) {
  6583. this.$message.error("请选择要上传的资源");
  6584. return;
  6585. }
  6586. let keys = Object.keys(this.sourceData);
  6587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6588. this.taskCount
  6589. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6591. this.taskCount
  6592. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6593. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6594. this.taskCount
  6595. ].chapterData[this.lineCount].id = keys[0];
  6596. this.updateSourcePan = false;
  6597. this.$forceUpdate();
  6598. this.dialogVisibleSource = false;
  6599. },
  6600. deleteM(i, j) {
  6601. this.testJson.testJson[i].timuList.splice(j, 1);
  6602. },
  6603. beforeUploadTiMu(event, i) {
  6604. const loading = this.openLoading();
  6605. var file = event.target.files[0];
  6606. var credentials = {
  6607. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6608. secretAccessKey: "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",
  6609. }; //秘钥形式的登录上传
  6610. window.AWS.config.update(credentials);
  6611. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6612. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6613. var _this = this;
  6614. if (file) {
  6615. var params = {
  6616. Key:
  6617. file.name.split(".")[0] +
  6618. new Date().getTime() +
  6619. "." +
  6620. file.name.split(".")[file.name.split(".").length - 1],
  6621. ContentType: file.type,
  6622. Body: file,
  6623. "Access-Control-Allow-Credentials": "*",
  6624. ACL: "public-read",
  6625. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6626. var options = {
  6627. partSize: 2048 * 1024 * 1024,
  6628. queueSize: 2,
  6629. leavePartsOnError: true,
  6630. };
  6631. bucket
  6632. .upload(params, options)
  6633. .on("httpUploadProgress", function (evt) {
  6634. //这里可以写进度条
  6635. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6636. })
  6637. .send(function (err, data) {
  6638. loading.close();
  6639. if (err) {
  6640. _this.$message.error("上传失败");
  6641. } else {
  6642. if (_this.testJson.testJson[i].timuList) {
  6643. _this.testJson.testJson[i].timuList.push({
  6644. src: data.Location,
  6645. });
  6646. } else {
  6647. _this.testJson.testJson[i].timuList = [];
  6648. _this.testJson.testJson[i].timuList.push({
  6649. src: data.Location,
  6650. });
  6651. }
  6652. _this.imgChange3(i);
  6653. _this.$forceUpdate();
  6654. }
  6655. });
  6656. }
  6657. },
  6658. beforeUploadTi(event, i, j) {
  6659. const loading = this.openLoading();
  6660. var file = event.target.files[0];
  6661. var credentials = {
  6662. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6663. secretAccessKey: "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",
  6664. }; //秘钥形式的登录上传
  6665. window.AWS.config.update(credentials);
  6666. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6667. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6668. var _this = this;
  6669. if (file) {
  6670. var params = {
  6671. Key:
  6672. file.name.split(".")[0] +
  6673. new Date().getTime() +
  6674. "." +
  6675. file.name.split(".")[file.name.split(".").length - 1],
  6676. ContentType: file.type,
  6677. Body: file,
  6678. "Access-Control-Allow-Credentials": "*",
  6679. ACL: "public-read",
  6680. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6681. var options = {
  6682. partSize: 2048 * 1024 * 1024,
  6683. queueSize: 2,
  6684. leavePartsOnError: true,
  6685. };
  6686. bucket
  6687. .upload(params, options)
  6688. .on("httpUploadProgress", function (evt) {
  6689. //这里可以写进度条
  6690. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6691. })
  6692. .send(function (err, data) {
  6693. loading.close();
  6694. if (err) {
  6695. _this.$message.error("上传失败");
  6696. } else {
  6697. _this.testJson.testJson[i].checkList[j] = {};
  6698. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6699. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6700. _this.imgChange2(i, j);
  6701. _this.$forceUpdate();
  6702. }
  6703. });
  6704. }
  6705. },
  6706. beforeUpload1(event, type) {
  6707. // const loading = this.openLoading();
  6708. var file = event.target.files[0];
  6709. var credentials = {
  6710. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6711. secretAccessKey: "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",
  6712. }; //秘钥形式的登录上传
  6713. window.AWS.config.update(credentials);
  6714. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6715. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6716. var _this = this;
  6717. if (file) {
  6718. var params = {
  6719. Key:
  6720. file.name.split(".")[0] +
  6721. new Date().getTime() +
  6722. "." +
  6723. file.name.split(".")[file.name.split(".").length - 1],
  6724. ContentType: file.type,
  6725. Body: file,
  6726. "Access-Control-Allow-Credentials": "*",
  6727. ACL: "public-read",
  6728. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6729. var options = {
  6730. partSize: 2048 * 1024 * 1024,
  6731. queueSize: 2,
  6732. leavePartsOnError: true,
  6733. };
  6734. bucket
  6735. .upload(params, options)
  6736. .on("httpUploadProgress", function (evt) {
  6737. //这里可以写进度条
  6738. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6739. })
  6740. .send(function (err, data) {
  6741. // loading.close();
  6742. if (err) {
  6743. // var a = _this.$refs.upload1.uploadFiles;
  6744. // a.splice(a.length - 1, a.length);
  6745. _this.$message.error("上传失败");
  6746. } else {
  6747. // _this.cover.push({
  6748. // name: file.name,
  6749. // url: data.Location,
  6750. // uid: file.uid,
  6751. // });
  6752. _this.cover = [
  6753. {
  6754. name: file.name,
  6755. url: data.Location,
  6756. uid: file.uid,
  6757. },
  6758. ];
  6759. _this.imgChange1(null, null, 1, null);
  6760. _this.choosePicVisible = false;
  6761. console.log(data.Location);
  6762. }
  6763. });
  6764. }
  6765. },
  6766. beforeUploadSelect(event, type) {
  6767. // const loading = this.openLoading();
  6768. var file = event.target.files[0];
  6769. var credentials = {
  6770. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6771. secretAccessKey: "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",
  6772. }; //秘钥形式的登录上传
  6773. window.AWS.config.update(credentials);
  6774. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6775. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6776. var _this = this;
  6777. if (file) {
  6778. var params = {
  6779. Key:
  6780. file.name.split(".")[0] +
  6781. new Date().getTime() +
  6782. "." +
  6783. file.name.split(".")[file.name.split(".").length - 1],
  6784. ContentType: file.type,
  6785. Body: file,
  6786. "Access-Control-Allow-Credentials": "*",
  6787. ACL: "public-read",
  6788. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6789. var options = {
  6790. partSize: 2048 * 1024 * 1024,
  6791. queueSize: 2,
  6792. leavePartsOnError: true,
  6793. };
  6794. bucket
  6795. .upload(params, options)
  6796. .on("httpUploadProgress", function (evt) {
  6797. //这里可以写进度条
  6798. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6799. })
  6800. .send(function (err, data) {
  6801. // loading.close();
  6802. if (err) {
  6803. _this.$message.error("上传失败");
  6804. } else {
  6805. _this.selectJson.url = data.Location;
  6806. console.log(data.Location);
  6807. }
  6808. });
  6809. }
  6810. },
  6811. chooseSysPic(p) {
  6812. this.cover = [];
  6813. setTimeout(() => {
  6814. this.cover[0] = {
  6815. name: "系统图片.png",
  6816. url: p,
  6817. };
  6818. this.imgChange1(null, null, 1, null);
  6819. this.$forceUpdate();
  6820. }, 0);
  6821. this.isSysPic = true;
  6822. this.isSysPic2 = false;
  6823. this.sysPicVisible = false;
  6824. this.$forceUpdate();
  6825. },
  6826. chooseSysPic2(p) {
  6827. this.cover = [];
  6828. setTimeout(() => {
  6829. this.cover[0] = {
  6830. name: "网络图片.png",
  6831. url: p,
  6832. };
  6833. this.imgChange1(null, null, 1, null);
  6834. this.$forceUpdate();
  6835. }, 0);
  6836. this.isSysPic2 = true;
  6837. this.isSysPic = false;
  6838. this.sysPicVisible2 = false;
  6839. this.$forceUpdate();
  6840. },
  6841. beforeUpload(data) {
  6842. this.$refs.upload1.uploadFiles;
  6843. this.uploadLoading1 = true;
  6844. var file = data.file;
  6845. var credentials = {
  6846. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6847. secretAccessKey: "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",
  6848. }; //秘钥形式的登录上传
  6849. window.AWS.config.update(credentials);
  6850. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6851. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6852. var _this = this;
  6853. if (file) {
  6854. var params = {
  6855. Key:
  6856. file.name.split(".")[0] +
  6857. new Date().getTime() +
  6858. "." +
  6859. file.name.split(".")[file.name.split(".").length - 1],
  6860. ContentType: file.type,
  6861. Body: file,
  6862. "Access-Control-Allow-Credentials": "*",
  6863. ACL: "public-read",
  6864. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6865. var options = {
  6866. partSize: 2048 * 1024 * 1024,
  6867. queueSize: 2,
  6868. leavePartsOnError: true,
  6869. };
  6870. bucket
  6871. .upload(params, options)
  6872. .on("httpUploadProgress", function (evt) {
  6873. //这里可以写进度条
  6874. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6875. })
  6876. .send(function (err, data) {
  6877. _this.uploadLoading1 = false;
  6878. if (err) {
  6879. // var a = _this.$refs.upload1.uploadFiles;
  6880. // a.splice(a.length - 1, a.length);
  6881. _this.$message.error("上传失败");
  6882. } else {
  6883. //上传成功处理
  6884. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6885. name: file.name,
  6886. url: data.Location,
  6887. uid: file.uid,
  6888. });
  6889. _this.imgChange();
  6890. console.log(data.Location);
  6891. }
  6892. });
  6893. }
  6894. },
  6895. onExceed() {
  6896. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6897. },
  6898. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6899. // const loading = this.openLoading();
  6900. var file = event.target.files[0];
  6901. var credentials = {
  6902. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6903. secretAccessKey: "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",
  6904. }; //秘钥形式的登录上传
  6905. window.AWS.config.update(credentials);
  6906. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6907. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6908. var _this = this;
  6909. if (type == 3) {
  6910. var b = [
  6911. "DOC",
  6912. "DOCX",
  6913. "DOCM",
  6914. "DOTM",
  6915. "DOTX",
  6916. "PPTX",
  6917. "PPSX",
  6918. "PPT",
  6919. "PPS",
  6920. "PPTM",
  6921. "POTM",
  6922. "PPAM",
  6923. "POTX",
  6924. "PPSM",
  6925. ];
  6926. if (
  6927. b.indexOf(
  6928. file.name
  6929. .split(".")
  6930. [file.name.split(".").length - 1].toLocaleUpperCase()
  6931. ) != -1
  6932. ) {
  6933. if (file.size / 1024 / 1024 > 80) {
  6934. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6935. this.inputShow = true;
  6936. // var a = _this.$refs.upload1.uploadFiles;
  6937. // a.splice(a.length - 1, a.length);
  6938. // loading.close();
  6939. return;
  6940. }
  6941. } else if (
  6942. file.name
  6943. .split(".")
  6944. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6945. ) {
  6946. if (file.size / 1024 / 1024 > 80) {
  6947. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6948. this.inputShow = true;
  6949. // var a = _this.$refs.upload1.uploadFiles;
  6950. // a.splice(a.length - 1, a.length);
  6951. // loading.close();
  6952. return;
  6953. }
  6954. }
  6955. }
  6956. this.inputShow = false;
  6957. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6958. itemTaskIndex
  6959. ].progress = 0;
  6960. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6961. itemTaskIndex
  6962. ].proVisible = true;
  6963. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6964. itemTaskIndex
  6965. ].isFinishSize = 0;
  6966. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6967. itemTaskIndex
  6968. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6969. _this.$forceUpdate();
  6970. if (file) {
  6971. var params = {
  6972. Key:
  6973. file.name.split(".")[0] +
  6974. new Date().getTime() +
  6975. "." +
  6976. file.name.split(".")[file.name.split(".").length - 1],
  6977. ContentType: file.type,
  6978. Body: file,
  6979. "Access-Control-Allow-Credentials": "*",
  6980. ACL: "public-read",
  6981. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6982. var options = {
  6983. partSize: 2048 * 1024 * 1024,
  6984. queueSize: 2,
  6985. leavePartsOnError: true,
  6986. };
  6987. bucket
  6988. .upload(params, options)
  6989. .on("httpUploadProgress", function (evt) {
  6990. //这里可以写进度条
  6991. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6992. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6993. itemTaskIndex
  6994. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6995. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6996. itemTaskIndex
  6997. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6998. _this.$forceUpdate();
  6999. })
  7000. .send(function (err, data) {
  7001. // loading.close();
  7002. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7003. itemTaskIndex
  7004. ].progress = 100;
  7005. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7006. itemTaskIndex
  7007. ].isFinishSize =
  7008. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7009. itemTaskIndex
  7010. ].isAllSize;
  7011. _this.$forceUpdate();
  7012. setTimeout(() => {
  7013. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7014. itemTaskIndex
  7015. ].proVisible = false;
  7016. _this.$forceUpdate();
  7017. }, 1000);
  7018. _this.inputShow = true;
  7019. if (err) {
  7020. // var a = _this.$refs.upload1.uploadFiles;
  7021. // a.splice(a.length - 1, a.length);
  7022. _this.$message.error("上传失败");
  7023. } else {
  7024. if (type == 13) {
  7025. let _type = 2;
  7026. var imgA = [
  7027. "png",
  7028. "jpg",
  7029. "jpeg",
  7030. "bmp",
  7031. "gif",
  7032. "webp",
  7033. "psd",
  7034. "svg",
  7035. "tiff",
  7036. ];
  7037. var fileA = [
  7038. "PDF",
  7039. "DOC",
  7040. "DOCX",
  7041. "DOCM",
  7042. "DOTM",
  7043. "DOTX",
  7044. "PPTX",
  7045. "PPSX",
  7046. "PPT",
  7047. "PPS",
  7048. "PPTM",
  7049. "POTM",
  7050. "PPAM",
  7051. "POTX",
  7052. "PPSM",
  7053. "XLSX",
  7054. "XLS",
  7055. ];
  7056. var videoA = [
  7057. "AVI",
  7058. "NAVI",
  7059. "MPEG",
  7060. "ASF",
  7061. "MOV",
  7062. "WMV",
  7063. "3GP",
  7064. "RM",
  7065. "RMVB",
  7066. "FLV",
  7067. "F4V",
  7068. "H.264",
  7069. "H.265",
  7070. "REAL VIDEO",
  7071. "MKV",
  7072. "WebM",
  7073. "HDDVD",
  7074. "MP4",
  7075. "MPG",
  7076. "M4V",
  7077. "MGV",
  7078. "OGV",
  7079. "QTM",
  7080. "STR",
  7081. "AMC",
  7082. "DVX",
  7083. "EVO",
  7084. "DAT",
  7085. "OGG",
  7086. "OGM",
  7087. ];
  7088. if (
  7089. fileA.indexOf(
  7090. data.Location.split(".")[
  7091. data.Location.split(".").length - 1
  7092. ].toLocaleUpperCase()
  7093. ) != -1
  7094. ) {
  7095. _type = 3;
  7096. } else if (
  7097. videoA.indexOf(
  7098. data.Location.split(".")[
  7099. data.Location.split(".").length - 1
  7100. ].toLocaleUpperCase()
  7101. ) != -1
  7102. ) {
  7103. _type = 2;
  7104. } else if (
  7105. imgA.indexOf(
  7106. data.Location.split(".")[
  7107. data.Location.split(".").length - 1
  7108. ].toLocaleLowerCase()
  7109. ) != -1
  7110. ) {
  7111. _type = 13;
  7112. } else {
  7113. _type = 12;
  7114. }
  7115. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7116. itemTaskIndex
  7117. ].chapterData.push({
  7118. name: file.name,
  7119. url: data.Location,
  7120. uid: file.uid,
  7121. type: _type,
  7122. });
  7123. _this.imgChange1(null, null, _type, itemTaskIndex);
  7124. } else if (type == 2 || type == 3 || type == 12) {
  7125. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7126. itemTaskIndex
  7127. ].chapterData.push({
  7128. name: file.name,
  7129. url: data.Location,
  7130. uid: file.uid,
  7131. type: type,
  7132. });
  7133. _this.imgChange1(null, null, type, itemTaskIndex);
  7134. } else if (type == 4) {
  7135. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7136. itemTaskIndex
  7137. ].fileList1.push({
  7138. name: file.name,
  7139. url: data.Location,
  7140. uid: file.uid,
  7141. });
  7142. _this.imgChange1(null, null, type, itemTaskIndex);
  7143. } else if (type == 5) {
  7144. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7145. itemTaskIndex
  7146. ].homeworkList.push({
  7147. name: file.name,
  7148. url: data.Location,
  7149. uid: file.uid,
  7150. });
  7151. _this.imgChange1(null, null, type, itemTaskIndex);
  7152. }
  7153. console.log(data.Location);
  7154. }
  7155. });
  7156. }
  7157. },
  7158. beforeUploadInfo2(event, type) {
  7159. // const loading = this.openLoading();
  7160. var file = event.target.files[0];
  7161. var credentials = {
  7162. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7163. secretAccessKey: "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",
  7164. }; //秘钥形式的登录上传
  7165. window.AWS.config.update(credentials);
  7166. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7167. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7168. var _this = this;
  7169. if (type == 3) {
  7170. var b = [
  7171. "DOC",
  7172. "DOCX",
  7173. "DOCM",
  7174. "DOTM",
  7175. "DOTX",
  7176. "PPTX",
  7177. "PPSX",
  7178. "PPT",
  7179. "PPS",
  7180. "PPTM",
  7181. "POTM",
  7182. "PPAM",
  7183. "POTX",
  7184. "PPSM",
  7185. ];
  7186. if (
  7187. b.indexOf(
  7188. file.name
  7189. .split(".")
  7190. [file.name.split(".").length - 1].toLocaleUpperCase()
  7191. ) != -1
  7192. ) {
  7193. if (file.size / 1024 / 1024 > 80) {
  7194. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7195. this.inputShow = true;
  7196. // var a = _this.$refs.upload1.uploadFiles;
  7197. // a.splice(a.length - 1, a.length);
  7198. // loading.close();
  7199. return;
  7200. }
  7201. } else if (
  7202. file.name
  7203. .split(".")
  7204. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7205. ) {
  7206. if (file.size / 1024 / 1024 > 80) {
  7207. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7208. this.inputShow = true;
  7209. // var a = _this.$refs.upload1.uploadFiles;
  7210. // a.splice(a.length - 1, a.length);
  7211. // loading.close();
  7212. return;
  7213. }
  7214. }
  7215. }
  7216. this.inputShow = false;
  7217. _this.infoprogress = 0;
  7218. _this.infoproVisible = true;
  7219. _this.infoisFinishSize = 0;
  7220. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7221. _this.$forceUpdate();
  7222. if (file) {
  7223. var params = {
  7224. Key:
  7225. file.name.split(".")[0] +
  7226. new Date().getTime() +
  7227. "." +
  7228. file.name.split(".")[file.name.split(".").length - 1],
  7229. ContentType: file.type,
  7230. Body: file,
  7231. "Access-Control-Allow-Credentials": "*",
  7232. ACL: "public-read",
  7233. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7234. var options = {
  7235. partSize: 2048 * 1024 * 1024,
  7236. queueSize: 2,
  7237. leavePartsOnError: true,
  7238. };
  7239. bucket
  7240. .upload(params, options)
  7241. .on("httpUploadProgress", function (evt) {
  7242. //这里可以写进度条
  7243. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7244. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7245. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7246. _this.$forceUpdate();
  7247. })
  7248. .send(function (err, data) {
  7249. // loading.close();
  7250. _this.infoprogress = 100;
  7251. _this.infoisFinishSize = _this.infoisAllSize;
  7252. _this.$forceUpdate();
  7253. setTimeout(() => {
  7254. _this.infoproVisible = false;
  7255. _this.$forceUpdate();
  7256. }, 1000);
  7257. _this.inputShow = true;
  7258. if (err) {
  7259. // var a = _this.$refs.upload1.uploadFiles;
  7260. // a.splice(a.length - 1, a.length);
  7261. _this.$message.error("上传失败");
  7262. } else {
  7263. if (type == 13) {
  7264. let _type = 2;
  7265. var imgA = [
  7266. "png",
  7267. "jpg",
  7268. "jpeg",
  7269. "bmp",
  7270. "gif",
  7271. "webp",
  7272. "psd",
  7273. "svg",
  7274. "tiff",
  7275. ];
  7276. var fileA = [
  7277. "PDF",
  7278. "DOC",
  7279. "DOCX",
  7280. "DOCM",
  7281. "DOTM",
  7282. "DOTX",
  7283. "PPTX",
  7284. "PPSX",
  7285. "PPT",
  7286. "PPS",
  7287. "PPTM",
  7288. "POTM",
  7289. "PPAM",
  7290. "POTX",
  7291. "PPSM",
  7292. "XLSX",
  7293. "XLS",
  7294. ];
  7295. var videoA = [
  7296. "AVI",
  7297. "NAVI",
  7298. "MPEG",
  7299. "ASF",
  7300. "MOV",
  7301. "WMV",
  7302. "3GP",
  7303. "RM",
  7304. "RMVB",
  7305. "FLV",
  7306. "F4V",
  7307. "H.264",
  7308. "H.265",
  7309. "REAL VIDEO",
  7310. "MKV",
  7311. "WebM",
  7312. "HDDVD",
  7313. "MP4",
  7314. "MPG",
  7315. "M4V",
  7316. "MGV",
  7317. "OGV",
  7318. "QTM",
  7319. "STR",
  7320. "AMC",
  7321. "DVX",
  7322. "EVO",
  7323. "DAT",
  7324. "OGG",
  7325. "OGM",
  7326. ];
  7327. if (
  7328. fileA.indexOf(
  7329. data.Location.split(".")[
  7330. data.Location.split(".").length - 1
  7331. ].toLocaleUpperCase()
  7332. ) != -1
  7333. ) {
  7334. _type = 3;
  7335. } else if (
  7336. videoA.indexOf(
  7337. data.Location.split(".")[
  7338. data.Location.split(".").length - 1
  7339. ].toLocaleUpperCase()
  7340. ) != -1
  7341. ) {
  7342. _type = 2;
  7343. } else if (
  7344. imgA.indexOf(
  7345. data.Location.split(".")[
  7346. data.Location.split(".").length - 1
  7347. ].toLocaleLowerCase()
  7348. ) != -1
  7349. ) {
  7350. _type = 13;
  7351. } else {
  7352. _type = 12;
  7353. }
  7354. _this.infoData.push({
  7355. name: file.name,
  7356. url: data.Location,
  7357. uid: file.uid,
  7358. type: _type,
  7359. });
  7360. } else if (type == 2 || type == 3 || type == 12) {
  7361. _this.infoData.push({
  7362. name: file.name,
  7363. url: data.Location,
  7364. uid: file.uid,
  7365. type: type,
  7366. });
  7367. }
  7368. console.log(data.Location);
  7369. }
  7370. });
  7371. }
  7372. },
  7373. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7374. // const loading = this.openLoading();
  7375. var file = event.target.files[0];
  7376. var credentials = {
  7377. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7378. secretAccessKey: "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",
  7379. }; //秘钥形式的登录上传
  7380. window.AWS.config.update(credentials);
  7381. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7382. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7383. var _this = this;
  7384. if (type == 3) {
  7385. var b = [
  7386. "DOC",
  7387. "DOCX",
  7388. "DOCM",
  7389. "DOTM",
  7390. "DOTX",
  7391. "PPTX",
  7392. "PPSX",
  7393. "PPT",
  7394. "PPS",
  7395. "PPTM",
  7396. "POTM",
  7397. "PPAM",
  7398. "POTX",
  7399. "PPSM",
  7400. ];
  7401. if (
  7402. b.indexOf(
  7403. file.name
  7404. .split(".")
  7405. [file.name.split(".").length - 1].toLocaleUpperCase()
  7406. ) != -1
  7407. ) {
  7408. if (file.size / 1024 / 1024 > 80) {
  7409. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7410. this.inputShow = true;
  7411. // var a = _this.$refs.upload1.uploadFiles;
  7412. // a.splice(a.length - 1, a.length);
  7413. // loading.close();
  7414. return;
  7415. }
  7416. } else if (
  7417. file.name
  7418. .split(".")
  7419. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7420. ) {
  7421. if (file.size / 1024 / 1024 > 80) {
  7422. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7423. this.inputShow = true;
  7424. // var a = _this.$refs.upload1.uploadFiles;
  7425. // a.splice(a.length - 1, a.length);
  7426. // loading.close();
  7427. return;
  7428. }
  7429. }
  7430. }
  7431. this.inputShow = false;
  7432. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7433. itemTaskIndex
  7434. ].progress = 0;
  7435. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7436. itemTaskIndex
  7437. ].proVisible = true;
  7438. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7439. itemTaskIndex
  7440. ].isFinishSize = 0;
  7441. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7442. itemTaskIndex
  7443. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7444. _this.$forceUpdate();
  7445. if (file) {
  7446. var params = {
  7447. Key:
  7448. file.name.split(".")[0] +
  7449. new Date().getTime() +
  7450. "." +
  7451. file.name.split(".")[file.name.split(".").length - 1],
  7452. ContentType: file.type,
  7453. Body: file,
  7454. "Access-Control-Allow-Credentials": "*",
  7455. ACL: "public-read",
  7456. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7457. var options = {
  7458. partSize: 2048 * 1024 * 1024,
  7459. queueSize: 2,
  7460. leavePartsOnError: true,
  7461. };
  7462. bucket
  7463. .upload(params, options)
  7464. .on("httpUploadProgress", function (evt) {
  7465. //这里可以写进度条
  7466. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7467. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7468. itemTaskIndex
  7469. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7470. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7471. itemTaskIndex
  7472. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7473. _this.$forceUpdate();
  7474. })
  7475. .send(function (err, data) {
  7476. // loading.close();
  7477. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7478. itemTaskIndex
  7479. ].progress = 100;
  7480. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7481. itemTaskIndex
  7482. ].isFinishSize =
  7483. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7484. itemTaskIndex
  7485. ].isAllSize;
  7486. _this.$forceUpdate();
  7487. setTimeout(() => {
  7488. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7489. itemTaskIndex
  7490. ].proVisible = false;
  7491. _this.$forceUpdate();
  7492. }, 1000);
  7493. _this.inputShow = true;
  7494. if (err) {
  7495. // var a = _this.$refs.upload1.uploadFiles;
  7496. // a.splice(a.length - 1, a.length);
  7497. _this.$message.error("上传失败");
  7498. } else {
  7499. if (type == 2 || type == 3) {
  7500. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7501. itemTaskIndex
  7502. ].chapterData.push({
  7503. name: file.name,
  7504. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7505. // itemTaskIndex
  7506. // ].chapterData.length+1),
  7507. url: data.Location,
  7508. uid: file.uid,
  7509. type: type,
  7510. text: string,
  7511. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7512. // itemTaskIndex
  7513. // ].chapterData.length + 1),
  7514. });
  7515. _this.imgChange1(null, null, type, itemTaskIndex);
  7516. } else if (type == 4) {
  7517. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7518. itemTaskIndex
  7519. ].fileList1.push({
  7520. name: file.name,
  7521. url: data.Location,
  7522. uid: file.uid,
  7523. });
  7524. _this.imgChange1(null, null, type, itemTaskIndex);
  7525. } else if (type == 5) {
  7526. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7527. itemTaskIndex
  7528. ].homeworkList.push({
  7529. name: file.name,
  7530. url: data.Location,
  7531. uid: file.uid,
  7532. });
  7533. _this.imgChange1(null, null, type, itemTaskIndex);
  7534. }
  7535. console.log(data.Location);
  7536. }
  7537. });
  7538. }
  7539. },
  7540. addunit() {
  7541. this.unitJson.push({
  7542. dyName: "", //单元标题
  7543. isUpdate: 1,
  7544. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7545. chapterInfo: [
  7546. {
  7547. isread: false,
  7548. chapterid: this.guid(),
  7549. title: "",
  7550. courseName: "",
  7551. taskJson: [
  7552. {
  7553. task: "",
  7554. taskDetail: "",
  7555. chapterData: [],
  7556. toolText: "",
  7557. toolChoose: [
  7558. {
  7559. tool: [],
  7560. toolDetail: "",
  7561. toolType: 0,
  7562. askCount: 1,
  7563. askTitle: "",
  7564. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7565. },
  7566. ],
  7567. isShowTools: false,
  7568. askCount: 1,
  7569. isFold: 1,
  7570. askTitle: "",
  7571. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7572. checkJson: [{ checkCount: [], checkPerent: [] }],
  7573. homeworkList: [],
  7574. },
  7575. ],
  7576. itemCount: 1,
  7577. fileList1: [],
  7578. video: [],
  7579. testData: [],
  7580. pData: [],
  7581. templateArray: [],
  7582. },
  7583. ],
  7584. });
  7585. this.addindex = this.unitJson.length - 1;
  7586. setTimeout(() => {
  7587. this.unitIndex = this.unitJson.length - 1;
  7588. setTimeout(() => {
  7589. console.log(this.$refs.dyInput);
  7590. this.$refs.dyInput[0].focus();
  7591. }, 100);
  7592. this.unitSet(this.unitIndex);
  7593. }, 0);
  7594. },
  7595. addToolFun(itemTaskIndex) {
  7596. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7597. itemTaskIndex
  7598. ].toolChoose.push({
  7599. tool: [],
  7600. toolDetail: "",
  7601. toolType: 0,
  7602. askCount: 1,
  7603. askTitle: "",
  7604. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7605. });
  7606. },
  7607. addTaskBorder() {
  7608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7609. task: "",
  7610. taskDetail: "",
  7611. chapterData: [],
  7612. toolText: "",
  7613. toolChoose: [
  7614. {
  7615. tool: [],
  7616. toolDetail: "",
  7617. toolType: 0,
  7618. askCount: 1,
  7619. askTitle: "",
  7620. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7621. },
  7622. ],
  7623. isShowTools: false,
  7624. askCount: 1,
  7625. isFold: 1, //任务收起状态
  7626. askTitle: "",
  7627. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7628. checkJson: [{ checkCount: [], checkPerent: [] }],
  7629. homeworkList: [],
  7630. });
  7631. setTimeout(() => {
  7632. this.checkEva(this.checkId);
  7633. setTimeout(() => {
  7634. this.checkEva(this.checkId);
  7635. }, 100);
  7636. }, 100);
  7637. },
  7638. add(e, i) {
  7639. var el = e.currentTarget;
  7640. el.getElementsByTagName("input")[0].click();
  7641. },
  7642. fold(i, e) {
  7643. if (
  7644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7645. ) {
  7646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7647. } else {
  7648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7649. }
  7650. },
  7651. fold2(i) {
  7652. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. i
  7655. ].isFold2 = false;
  7656. } else {
  7657. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7658. }
  7659. this.$forceUpdate();
  7660. },
  7661. foldEva(i) {
  7662. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7664. i
  7665. ].isEvaFold = false;
  7666. } else {
  7667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7668. i
  7669. ].isEvaFold = true;
  7670. setTimeout(() => {
  7671. this.checkEva(this.checkId);
  7672. setTimeout(() => {
  7673. this.checkEva(this.checkId);
  7674. }, 500);
  7675. }, 0);
  7676. }
  7677. this.$forceUpdate();
  7678. },
  7679. foldC(i) {
  7680. if (
  7681. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7682. ) {
  7683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7684. i
  7685. ].isFoldchapter = false;
  7686. } else {
  7687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7688. i
  7689. ].isFoldchapter = true;
  7690. }
  7691. this.$forceUpdate();
  7692. },
  7693. fold3(i, ti) {
  7694. if (
  7695. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7696. .isFold3
  7697. ) {
  7698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7699. ti
  7700. ].isFold3 = false;
  7701. } else {
  7702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7703. ti
  7704. ].isFold3 = true;
  7705. }
  7706. this.$forceUpdate();
  7707. },
  7708. deleteHomeworkBox(unitIndex, index, i) {
  7709. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7710. this.taskCount
  7711. ].homeworkList.splice(i, 1);
  7712. },
  7713. getStudent() {
  7714. let params = {
  7715. oid: this.oid,
  7716. cu: "",
  7717. cn: this.searchPeople,
  7718. };
  7719. this.ajax
  7720. .get(this.$store.state.api + "selectStudentAdd", params)
  7721. .then((res) => {
  7722. this.studentJuri = res.data[0];
  7723. })
  7724. .catch((err) => {
  7725. this.isLoading = false;
  7726. console.error(err);
  7727. });
  7728. },
  7729. getTeacher() {
  7730. let params = {
  7731. oid:
  7732. this.org && this.org != "undefined" && this.org != "null"
  7733. ? this.org
  7734. : this.oid,
  7735. cu: "",
  7736. cn: this.searchTN,
  7737. };
  7738. this.ajax
  7739. .get(
  7740. this.$store.state.api +
  7741. (this.org && this.org != "undefined" && this.org != "null"
  7742. ? "selectTeacherAddOrg"
  7743. : "selectTeacherAdd"),
  7744. params
  7745. )
  7746. .then((res) => {
  7747. let teacherJuri = res.data[0];
  7748. for (var i = 0; i < teacherJuri.length; i++) {
  7749. if (teacherJuri[i].userid == this.userid) {
  7750. teacherJuri.splice(i, 1);
  7751. break;
  7752. }
  7753. }
  7754. this.teacherJuri = teacherJuri;
  7755. let _check = [];
  7756. let _check2 = [];
  7757. for (var i = 0; i < this.teacherJuri.length; i++) {
  7758. var gid = this.teacherJuri[i].userid;
  7759. _check.push(gid);
  7760. }
  7761. for (var i = 0; i < this.checkboxList3.length; i++) {
  7762. var _id = this.checkboxList3[i];
  7763. if (_check.indexOf(_id) !== -1) {
  7764. _check2.push(_id);
  7765. }
  7766. }
  7767. this.checkAll2 = _check2.length === _check.length;
  7768. })
  7769. .catch((err) => {
  7770. console.error(err);
  7771. });
  7772. },
  7773. searchStudent() {
  7774. this.getStudent();
  7775. },
  7776. selectGrage() {
  7777. let params = {
  7778. oid: this.oid,
  7779. };
  7780. this.ajax
  7781. .get(this.$store.state.api + "selectGrageBySchool", params)
  7782. .then((res) => {
  7783. this.gradeList = res.data[0];
  7784. })
  7785. .catch((err) => {
  7786. this.isLoading = false;
  7787. console.error(err);
  7788. });
  7789. },
  7790. //获取班级列表
  7791. getClass() {
  7792. let params = {
  7793. oid: this.oid,
  7794. gid: this.gradeId,
  7795. cn: this.classSearch,
  7796. };
  7797. this.ajax
  7798. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7799. .then((res) => {
  7800. if (!this.grade.length) {
  7801. this.grade = res.data[0];
  7802. }
  7803. this.grade2 = res.data[0];
  7804. this.classJuri = res.data[0];
  7805. let _check = [];
  7806. let _check2 = [];
  7807. for (var i = 0; i < this.grade2.length; i++) {
  7808. var gid = this.grade2[i].id;
  7809. _check.push(gid);
  7810. }
  7811. for (var i = 0; i < this.checkboxList2.length; i++) {
  7812. var _id = this.checkboxList2[i];
  7813. if (_check.indexOf(_id) !== -1) {
  7814. _check2.push(_id);
  7815. }
  7816. }
  7817. this.checkAll = _check2.length === _check.length;
  7818. })
  7819. .catch((err) => {
  7820. this.isLoading = false;
  7821. console.error(err);
  7822. });
  7823. },
  7824. CourseType2Change(val) {
  7825. this.pTypeCheck = [];
  7826. for (var i = 0; i < this.CourseType2.length; i++) {
  7827. let typeA = this.CourseType2[i];
  7828. if (val.indexOf(typeA.name) != -1) {
  7829. this.pTypeCheck.push(...typeA.id);
  7830. }
  7831. }
  7832. },
  7833. getChapterData(e, i, j, ic, type) {
  7834. e.stopPropagation();
  7835. this.updataC = true;
  7836. this.icc = ic;
  7837. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7838. console.log("还不能下载图片喔");
  7839. }
  7840. },
  7841. deleteChapterData(e, i, j, ic, taskI) {
  7842. e.stopPropagation();
  7843. let _this = this;
  7844. _this
  7845. .$confirm("确定删除此项?", "提示", {
  7846. confirmButtonText: "确定",
  7847. cancelButtonText: "取消",
  7848. type: "warning",
  7849. })
  7850. .then(() => {
  7851. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7852. ic,
  7853. 1
  7854. );
  7855. })
  7856. .catch(() => {
  7857. return;
  7858. });
  7859. },
  7860. deleteInfoData(e, ic) {
  7861. e.stopPropagation();
  7862. let _this = this;
  7863. _this
  7864. .$confirm("确定删除此项?", "提示", {
  7865. confirmButtonText: "确定",
  7866. cancelButtonText: "取消",
  7867. type: "warning",
  7868. })
  7869. .then(() => {
  7870. _this.infoData.splice(
  7871. ic,
  7872. 1
  7873. );
  7874. })
  7875. .catch(() => {
  7876. return;
  7877. });
  7878. },
  7879. updataVideoT(e, i, j, ic) {
  7880. // e.stopPropagation();
  7881. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  7882. // ic
  7883. // ].name = JSON.parse(JSON.stringify(e.target.value));
  7884. this.line =
  7885. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  7886. this.taskCount = j;
  7887. this.lineCount = ic;
  7888. this.dialogVisibleupdataVideoT = true;
  7889. this.$forceUpdate();
  7890. },
  7891. updataVideoC() {
  7892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7893. this.taskCount
  7894. ].chapterData[this.lineCount].name = JSON.parse(
  7895. JSON.stringify(this.line)
  7896. );
  7897. this.dialogVisibleupdataVideoT = false;
  7898. this.$forceUpdate();
  7899. },
  7900. upCd(e, i, j, taskCount, ic) {
  7901. e.stopPropagation();
  7902. if (ic == 0) {
  7903. return;
  7904. }
  7905. var a = JSON.parse(
  7906. JSON.stringify(
  7907. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7908. ic - 1
  7909. ]
  7910. )
  7911. );
  7912. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  7913. JSON.parse(
  7914. JSON.stringify(
  7915. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7916. )
  7917. );
  7918. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7919. this.$forceUpdate();
  7920. },
  7921. downCd(e, i, j, taskCount, ic) {
  7922. e.stopPropagation();
  7923. if (
  7924. ic ==
  7925. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  7926. 1
  7927. ) {
  7928. return;
  7929. }
  7930. var a = JSON.parse(
  7931. JSON.stringify(
  7932. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7933. ic + 1
  7934. ]
  7935. )
  7936. );
  7937. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  7938. JSON.parse(
  7939. JSON.stringify(
  7940. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7941. )
  7942. );
  7943. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7944. this.$forceUpdate();
  7945. },
  7946. async upTool(e, i, j, tooli) {
  7947. e.stopPropagation();
  7948. if (tooli == 0) {
  7949. return;
  7950. }
  7951. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  7952. let count2 = await this.getWorksCount(3, i, j, tooli);
  7953. if (count1 > 0 || count2 > 0) {
  7954. this.$confirm(
  7955. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7956. "提示",
  7957. {
  7958. confirmButtonText: "确定",
  7959. cancelButtonText: "取消",
  7960. type: "warning",
  7961. }
  7962. )
  7963. .then(() => {
  7964. var a = JSON.parse(
  7965. JSON.stringify(
  7966. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  7967. tooli - 1
  7968. ]
  7969. )
  7970. );
  7971. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7972. JSON.parse(
  7973. JSON.stringify(
  7974. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7975. )
  7976. );
  7977. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7978. this.$forceUpdate();
  7979. })
  7980. .catch(() => {
  7981. return;
  7982. });
  7983. } else {
  7984. var a = JSON.parse(
  7985. JSON.stringify(
  7986. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  7987. )
  7988. );
  7989. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7990. JSON.parse(
  7991. JSON.stringify(
  7992. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7993. )
  7994. );
  7995. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7996. this.$forceUpdate();
  7997. }
  7998. },
  7999. async downTool(e, i, j, tooli) {
  8000. e.stopPropagation();
  8001. if (
  8002. tooli ==
  8003. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8004. ) {
  8005. return;
  8006. }
  8007. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8008. let count2 = await this.getWorksCount(3, i, j, tooli);
  8009. if (count1 > 0 || count2 > 0) {
  8010. this.$confirm(
  8011. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8012. "提示",
  8013. {
  8014. confirmButtonText: "确定",
  8015. cancelButtonText: "取消",
  8016. type: "warning",
  8017. }
  8018. )
  8019. .then(() => {
  8020. var a = JSON.parse(
  8021. JSON.stringify(
  8022. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8023. tooli + 1
  8024. ]
  8025. )
  8026. );
  8027. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8028. JSON.parse(
  8029. JSON.stringify(
  8030. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8031. )
  8032. );
  8033. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8034. this.$forceUpdate();
  8035. })
  8036. .catch(() => {
  8037. return;
  8038. });
  8039. } else {
  8040. var a = JSON.parse(
  8041. JSON.stringify(
  8042. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8043. )
  8044. );
  8045. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8046. JSON.parse(
  8047. JSON.stringify(
  8048. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8049. )
  8050. );
  8051. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8052. this.$forceUpdate();
  8053. }
  8054. },
  8055. addWork() {
  8056. let cPan = 1;
  8057. for (var i = 0; i < this.unitJson.length; i++) {
  8058. for (
  8059. var j = 0;
  8060. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8061. j++
  8062. ) {
  8063. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8064. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8065. if (
  8066. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8067. ) {
  8068. for (
  8069. var z = 0;
  8070. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8071. z++
  8072. ) {
  8073. if (
  8074. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8075. .length
  8076. ) {
  8077. this.$message.error("请把工具添加完整");
  8078. cPan = 2;
  8079. break;
  8080. }
  8081. }
  8082. }
  8083. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8084. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8085. i
  8086. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8087. return ele.value != "";
  8088. });
  8089. }
  8090. }
  8091. }
  8092. this.inputShow = true;
  8093. if (cPan == 2) {
  8094. this.steps--;
  8095. return;
  8096. }
  8097. for (var i = 0; i < this.unitJson.length; i++) {
  8098. delete this.unitJson[i].isUpdate;
  8099. }
  8100. let params = [
  8101. {
  8102. uid: this.userid,
  8103. title: this.courseName,
  8104. brief: this.courseText,
  8105. cover:
  8106. this.cover.length > 0
  8107. ? JSON.stringify(this.cover)
  8108. : JSON.stringify([
  8109. {
  8110. name: "noBanner.jpg",
  8111. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8112. uid: 1656409780264,
  8113. status: "success",
  8114. },
  8115. ]),
  8116. evaId: this.evalua,
  8117. astudent:
  8118. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8119. see: this.isTeacherSee == true ? 1 : 0,
  8120. chapters: JSON.stringify(this.unitJson),
  8121. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8122. courseType: JSON.stringify(this.courseTypeId),
  8123. ateacher:
  8124. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8125. inviteCode: JSON.stringify(this.inviteCode),
  8126. refile: JSON.stringify(this.infoData),
  8127. reBrief: this.courseText2
  8128. },
  8129. ];
  8130. this.ajax
  8131. .post(this.$store.state.api + "addWorkNew2AI", params)
  8132. .then((res) => {
  8133. console.log(this.steps);
  8134. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8135. this.$message({
  8136. message: "新增成功",
  8137. type: "success",
  8138. });
  8139. }
  8140. this.number = res.data.ordernumber;
  8141. this.courseId = res.data.courseId;
  8142. this.cid = res.data.courseId;
  8143. this.courseUserid = this.userid;
  8144. this.islogin = true;
  8145. this.updateCourseState(4);
  8146. })
  8147. .catch((err) => {
  8148. this.$message.error("网络不佳");
  8149. console.error(err);
  8150. });
  8151. },
  8152. goCourse() {
  8153. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8154. },
  8155. updateWork2() {
  8156. let _unitIndex = this.unitIndex;
  8157. let cPan = 1;
  8158. for (
  8159. var j = 0;
  8160. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8161. j++
  8162. ) {
  8163. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8164. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8165. j
  8166. ].proVisible2 = false;
  8167. if (
  8168. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8169. .length > 1
  8170. ) {
  8171. for (
  8172. var z = 0;
  8173. z <
  8174. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8175. .length;
  8176. z++
  8177. ) {
  8178. if (
  8179. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8180. z
  8181. ].tool.length
  8182. ) {
  8183. this.$message.error("请把工具添加完整");
  8184. cPan = 2;
  8185. break;
  8186. }
  8187. }
  8188. }
  8189. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8190. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8191. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8192. (ele) => {
  8193. return ele.value != "";
  8194. }
  8195. );
  8196. }
  8197. }
  8198. this.inputShow = true;
  8199. if (cPan == 2) {
  8200. this.steps--;
  8201. return;
  8202. }
  8203. let params = [
  8204. {
  8205. cid: this.cid,
  8206. chapters: JSON.stringify(this.unitJson),
  8207. uid: this.userid,
  8208. unitIndex: _unitIndex,
  8209. },
  8210. ];
  8211. this.ajax
  8212. .post(this.$store.state.api + "updateWorkNew4", params)
  8213. .then((res) => {
  8214. this.$message({
  8215. message: "修改成功",
  8216. type: "success",
  8217. });
  8218. this.courseId = this.cid;
  8219. })
  8220. .catch((err) => {
  8221. this.$message.error("网络不佳");
  8222. console.error(err);
  8223. });
  8224. },
  8225. updateWork3(unitIndex) {
  8226. let _unitIndex = unitIndex;
  8227. let cPan = 1;
  8228. for (
  8229. var j = 0;
  8230. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8231. j++
  8232. ) {
  8233. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8234. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8235. j
  8236. ].proVisible2 = false;
  8237. if (
  8238. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8239. .length > 1
  8240. ) {
  8241. for (
  8242. var z = 0;
  8243. z <
  8244. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8245. .length;
  8246. z++
  8247. ) {
  8248. if (
  8249. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8250. z
  8251. ].tool.length
  8252. ) {
  8253. this.$message.error("请把工具添加完整");
  8254. cPan = 2;
  8255. break;
  8256. }
  8257. }
  8258. }
  8259. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8260. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8261. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8262. (ele) => {
  8263. return ele.value != "";
  8264. }
  8265. );
  8266. }
  8267. }
  8268. this.inputShow = true;
  8269. if (cPan == 2) {
  8270. this.steps--;
  8271. return;
  8272. }
  8273. let params = [
  8274. {
  8275. cid: this.cid,
  8276. chapters: JSON.stringify(this.unitJson),
  8277. uid: this.userid,
  8278. unitIndex: _unitIndex,
  8279. },
  8280. ];
  8281. this.ajax
  8282. .post(this.$store.state.api + "updateWorkNew4", params)
  8283. .then((res) => {
  8284. // this.$message({
  8285. // message: "修改成功",
  8286. // type: "success",
  8287. // });
  8288. this.courseId = this.cid;
  8289. })
  8290. .catch((err) => {
  8291. this.$message.error("网络不佳");
  8292. console.error(err);
  8293. });
  8294. },
  8295. updateWork() {
  8296. let cPan = 1;
  8297. for (var i = 0; i < this.unitJson.length; i++) {
  8298. for (
  8299. var j = 0;
  8300. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8301. j++
  8302. ) {
  8303. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8304. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8305. if (
  8306. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8307. ) {
  8308. for (
  8309. var z = 0;
  8310. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8311. z++
  8312. ) {
  8313. if (
  8314. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8315. .length
  8316. ) {
  8317. this.$message.error("请把工具添加完整");
  8318. cPan = 2;
  8319. break;
  8320. }
  8321. }
  8322. }
  8323. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8324. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8325. i
  8326. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8327. return ele.value != "";
  8328. });
  8329. }
  8330. }
  8331. }
  8332. this.inputShow = true;
  8333. if (cPan == 2) {
  8334. this.steps--;
  8335. return;
  8336. }
  8337. for (var i = 0; i < this.unitJson.length; i++) {
  8338. delete this.unitJson[i].isUpdate;
  8339. }
  8340. let params = [
  8341. {
  8342. cid: this.cid,
  8343. title: this.courseName,
  8344. brief: this.courseText,
  8345. cover:
  8346. this.cover.length > 0
  8347. ? JSON.stringify(this.cover)
  8348. : JSON.stringify([
  8349. {
  8350. name: "noBanner.jpg",
  8351. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8352. uid: 1656409780264,
  8353. status: "success",
  8354. },
  8355. ]),
  8356. evaId: this.evalua,
  8357. astudent:
  8358. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8359. see: this.isTeacherSee == true ? 1 : 0,
  8360. chapters: JSON.stringify(this.unitJson),
  8361. template: this.myWord != "undefined" ? this.myWord : [],
  8362. uid: this.userid,
  8363. courseType: JSON.stringify(this.courseTypeId),
  8364. ateacher:
  8365. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8366. inviteCode: JSON.stringify(this.inviteCode),
  8367. refile: JSON.stringify(this.infoData),
  8368. reBrief: this.courseText2
  8369. },
  8370. ];
  8371. this.ajax
  8372. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8373. .then((res) => {
  8374. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8375. if (this.cidType == 1) {
  8376. this.$message({
  8377. message: "修改成功",
  8378. type: "success",
  8379. });
  8380. } else {
  8381. this.$message({
  8382. message: "新增成功",
  8383. type: "success",
  8384. });
  8385. }
  8386. }
  8387. this.number = this.nbOrder;
  8388. this.courseId = this.cid;
  8389. })
  8390. .catch((err) => {
  8391. this.$message.error("网络不佳");
  8392. console.error(err);
  8393. });
  8394. },
  8395. insertWord() {
  8396. this.dialogVisible1 = true;
  8397. this.updateBoolean2 = false;
  8398. this.tTitle = "";
  8399. this.tdetail = "";
  8400. },
  8401. addWord() {
  8402. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8403. name: this.tTitle,
  8404. content: this.tdetail,
  8405. uid: this.guid(),
  8406. });
  8407. this.dialogVisible1 = false;
  8408. },
  8409. upWord() { },
  8410. selectWord(uid, i, c) {
  8411. this.dialogVisible1 = true;
  8412. this.updateBoolean2 = true;
  8413. if (
  8414. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8415. ) {
  8416. this.tTitle =
  8417. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8418. this.tdetail =
  8419. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8420. }
  8421. },
  8422. isAddPP() {
  8423. if (this.checkboxList.length > 0) {
  8424. this.$message({
  8425. message: "添加成功",
  8426. type: "success",
  8427. });
  8428. this.dialogVisible3 = false;
  8429. } else {
  8430. this.$message({
  8431. message: "请添加课程成员",
  8432. type: "error",
  8433. });
  8434. }
  8435. },
  8436. isAddClass() {
  8437. this.dialogVisibleClass = false;
  8438. },
  8439. isAddPPTeacher() {
  8440. this.dialogVisibleMember = false;
  8441. this.setMan();
  8442. },
  8443. getTemplate() {
  8444. this.ajax
  8445. .get(this.$store.state.api + "getCourseTemplateT", "")
  8446. .then((res) => {
  8447. this.templateArray = res.data[0];
  8448. this.getTemplateOid();
  8449. this.$forceUpdate();
  8450. })
  8451. .catch((err) => { });
  8452. },
  8453. getTemplateOid() {
  8454. let params = {
  8455. oid: this.oid,
  8456. };
  8457. this.ajax
  8458. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8459. .then((res) => {
  8460. if (res.data[0].length) {
  8461. this.templateArray = [...res.data[0], ...this.templateArray];
  8462. }
  8463. this.getTemplateOrg();
  8464. this.$forceUpdate();
  8465. })
  8466. .catch((err) => { });
  8467. },
  8468. getTemplateOrg() {
  8469. let params = {
  8470. oid: this.org,
  8471. };
  8472. this.ajax
  8473. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8474. .then((res) => {
  8475. if (res.data[0].length) {
  8476. this.templateArray = [...res.data[0], ...this.templateArray];
  8477. }
  8478. this.$forceUpdate();
  8479. })
  8480. .catch((err) => { });
  8481. },
  8482. clearChoose() {
  8483. this.clearArray.splice(this.templateC.id, 1);
  8484. this.dialogVisible2 = false;
  8485. },
  8486. clearAttText() {
  8487. this.AttText = {
  8488. title: "",
  8489. text: "",
  8490. };
  8491. this.dialogVisible6 = false;
  8492. },
  8493. clearLine() {
  8494. this.line = "";
  8495. this.dialogVisible7 = false;
  8496. },
  8497. openTemplate() {
  8498. this.ctJson = {};
  8499. this.templateDialog = true;
  8500. },
  8501. checkctJson(json) {
  8502. if (this.ctJson.id == json.id) {
  8503. this.ctJson = {};
  8504. } else {
  8505. this.ctJson = json;
  8506. }
  8507. },
  8508. addTemplate(res) {
  8509. let _this = this;
  8510. let _res = [];
  8511. if (res.id == 1) {
  8512. _res = [
  8513. {
  8514. dyName: "", //单元标题
  8515. easy: 1,
  8516. chapterInfo: [
  8517. {
  8518. isread: false,
  8519. chapterid: this.guid(),
  8520. title: "",
  8521. courseName: "",
  8522. taskJson: [
  8523. {
  8524. task: "",
  8525. taskDetail: "",
  8526. chapterData: [],
  8527. toolText: "",
  8528. toolChoose: [
  8529. {
  8530. tool: [],
  8531. toolDetail: "",
  8532. toolType: 0,
  8533. askCount: 1,
  8534. askTitle: "",
  8535. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8536. },
  8537. ],
  8538. isShowTools: false,
  8539. askCount: 1,
  8540. isFold: 1,
  8541. askTitle: "",
  8542. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8543. checkJson: [{ checkCount: [], checkPerent: [] }],
  8544. homeworkList: [],
  8545. },
  8546. ],
  8547. itemCount: 1,
  8548. fileList1: [],
  8549. video: [],
  8550. testData: [],
  8551. pData: [],
  8552. templateArray: [],
  8553. },
  8554. ],
  8555. },
  8556. ];
  8557. this.updateCourseState(1);
  8558. } else if (res.id == 2) {
  8559. let stageData = [];
  8560. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8561. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8562. if (!iframe && !iframe2) {
  8563. this.$message.error("请使用AI共创生成");
  8564. return;
  8565. }
  8566. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8567. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8568. if (
  8569. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8570. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8571. ) {
  8572. this.$message.error("请使用AI共创生成");
  8573. return;
  8574. }
  8575. stageData = copyData
  8576. ? copyData.stageData
  8577. : copyData2
  8578. ? copyData2.stageData
  8579. : [""];
  8580. for (var i = 0; i < stageData.length; i++) {
  8581. _res.push({
  8582. dyName: stageData[i], //单元标题
  8583. chapterInfo: [
  8584. {
  8585. isread: false,
  8586. chapterid: this.guid(),
  8587. title: "",
  8588. courseName: "",
  8589. taskJson: [
  8590. {
  8591. task: "",
  8592. taskDetail: "",
  8593. chapterData: [],
  8594. toolText: "",
  8595. toolChoose: [
  8596. {
  8597. tool: [],
  8598. toolDetail: "",
  8599. toolType: 0,
  8600. askCount: 1,
  8601. askTitle: "",
  8602. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8603. },
  8604. ],
  8605. isShowTools: false,
  8606. askCount: 1,
  8607. isFold: 1,
  8608. askTitle: "",
  8609. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8610. checkJson: [{ checkCount: [], checkPerent: [] }],
  8611. homeworkList: [],
  8612. },
  8613. ],
  8614. itemCount: 1,
  8615. fileList1: [],
  8616. video: [],
  8617. testData: [],
  8618. pData: [],
  8619. templateArray: [],
  8620. },
  8621. ],
  8622. });
  8623. }
  8624. this.updateCourseState(1);
  8625. } else if (!Object.keys(res).length) {
  8626. this.$message.error("请选择模板");
  8627. retrun;
  8628. } else {
  8629. _res = JSON.parse(res.chapters);
  8630. this.updateCourseState(parseInt(res.state));
  8631. }
  8632. _this
  8633. .$confirm(
  8634. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8635. "提示",
  8636. {
  8637. confirmButtonText: "确定",
  8638. cancelButtonText: "取消",
  8639. type: "warning",
  8640. }
  8641. )
  8642. .then(() => {
  8643. _this.unitJson = _res;
  8644. _this.updateWork();
  8645. // _this.steps++;
  8646. _this.templateDialog = false;
  8647. setTimeout(() => {
  8648. this.checkEva(this.checkId);
  8649. setTimeout(() => {
  8650. this.checkEva(this.checkId);
  8651. }, 100);
  8652. }, 1000);
  8653. })
  8654. .catch(() => {
  8655. return;
  8656. });
  8657. },
  8658. checkTemplate(res) {
  8659. let _this = this;
  8660. _this
  8661. .$confirm(
  8662. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8663. "提示",
  8664. {
  8665. confirmButtonText: "确定",
  8666. cancelButtonText: "取消",
  8667. type: "warning",
  8668. }
  8669. )
  8670. .then(() => {
  8671. _this.unitJson = JSON.parse(res.chapters);
  8672. _this.steps++;
  8673. setTimeout(() => {
  8674. this.checkEva(this.checkId);
  8675. setTimeout(() => {
  8676. this.checkEva(this.checkId);
  8677. }, 100);
  8678. }, 1000);
  8679. })
  8680. .catch(() => {
  8681. return;
  8682. });
  8683. },
  8684. checkTemplate1(w) {
  8685. this.steps++;
  8686. },
  8687. checkTemplate2() {
  8688. let _this = this;
  8689. _this
  8690. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8691. confirmButtonText: "确定",
  8692. cancelButtonText: "取消",
  8693. type: "warning",
  8694. })
  8695. .then(() => {
  8696. _this.unitIndex = 0;
  8697. _this.unitJson = [
  8698. {
  8699. dyName: "", //单元标题
  8700. chapterInfo: [
  8701. {
  8702. isread: false,
  8703. chapterid: this.guid(),
  8704. title: "",
  8705. courseName: "",
  8706. taskJson: [
  8707. {
  8708. task: "",
  8709. taskDetail: "",
  8710. chapterData: [],
  8711. toolText: "",
  8712. toolChoose: [
  8713. {
  8714. tool: [],
  8715. toolDetail: "",
  8716. toolType: 0,
  8717. askCount: 1,
  8718. askTitle: "",
  8719. askJson: [
  8720. { askstitle: "", askItem: 1, checkList: [] },
  8721. ],
  8722. },
  8723. ],
  8724. isShowTools: false,
  8725. askCount: 1,
  8726. isFold: 1,
  8727. askTitle: "",
  8728. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8729. checkJson: [{ checkCount: [], checkPerent: [] }],
  8730. homeworkList: [],
  8731. },
  8732. ],
  8733. itemCount: 1,
  8734. fileList1: [],
  8735. video: [],
  8736. testData: [],
  8737. pData: [],
  8738. templateArray: [],
  8739. },
  8740. ],
  8741. },
  8742. ];
  8743. this.steps++;
  8744. setTimeout(() => {
  8745. this.checkEva(this.checkId);
  8746. setTimeout(() => {
  8747. this.checkEva(this.checkId);
  8748. }, 100);
  8749. }, 1000);
  8750. this.updateWork();
  8751. })
  8752. .catch(() => {
  8753. return;
  8754. });
  8755. },
  8756. checkTemplate3() {
  8757. let _this = this;
  8758. _this
  8759. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8760. confirmButtonText: "确定",
  8761. cancelButtonText: "取消",
  8762. type: "warning",
  8763. })
  8764. .then(() => {
  8765. _this.unitIndex = 0;
  8766. _this.unitJson = [
  8767. {
  8768. dyName: "", //单元标题
  8769. easy: 1,
  8770. chapterInfo: [
  8771. {
  8772. isread: false,
  8773. chapterid: this.guid(),
  8774. title: "",
  8775. courseName: "",
  8776. taskJson: [
  8777. {
  8778. task: "",
  8779. taskDetail: "",
  8780. chapterData: [],
  8781. toolText: "",
  8782. toolChoose: [
  8783. {
  8784. tool: [],
  8785. toolDetail: "",
  8786. toolType: 0,
  8787. askCount: 1,
  8788. askTitle: "",
  8789. askJson: [
  8790. { askstitle: "", askItem: 1, checkList: [] },
  8791. ],
  8792. },
  8793. ],
  8794. isShowTools: false,
  8795. askCount: 1,
  8796. isFold: 1,
  8797. askTitle: "",
  8798. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8799. checkJson: [{ checkCount: [], checkPerent: [] }],
  8800. homeworkList: [],
  8801. },
  8802. ],
  8803. itemCount: 1,
  8804. fileList1: [],
  8805. video: [],
  8806. testData: [],
  8807. pData: [],
  8808. templateArray: [],
  8809. },
  8810. ],
  8811. },
  8812. ];
  8813. // this.steps++;
  8814. this.updateWork();
  8815. })
  8816. .catch(() => {
  8817. return;
  8818. });
  8819. },
  8820. checkTemplate4() {
  8821. let _this = this;
  8822. _this
  8823. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8824. confirmButtonText: "确定",
  8825. cancelButtonText: "取消",
  8826. type: "warning",
  8827. })
  8828. .then(() => {
  8829. _this.unitIndex = 0;
  8830. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8831. this.steps++;
  8832. this.updateWork();
  8833. })
  8834. .catch(() => {
  8835. return;
  8836. });
  8837. },
  8838. wordNext() {
  8839. this.dialogVisible2 = false;
  8840. },
  8841. isAddOrUpdateAttText() {
  8842. if (this.AttTextType == 0) {
  8843. this.addAttTextMessage();
  8844. } else {
  8845. this.updateAttText();
  8846. }
  8847. },
  8848. isAddOrUpdateLine() {
  8849. if (!this.lineTitle) {
  8850. this.$message.error("请填写链接标题");
  8851. return;
  8852. }
  8853. if (this.lineType == 0) {
  8854. this.addLine();
  8855. } else {
  8856. this.updateLine();
  8857. }
  8858. },
  8859. addAttTextMessage() {
  8860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8861. this.taskCount
  8862. ].chapterData.push({
  8863. name: this.AttText.title,
  8864. url: this.AttText.text,
  8865. type: 6,
  8866. });
  8867. this.imgChange1(null, null, 6, this.taskCount);
  8868. this.dialogVisible6 = false;
  8869. },
  8870. selectAttText(itemTaskIndex, i) {
  8871. this.AttText.title =
  8872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8873. itemTaskIndex
  8874. ].chapterData[i].name;
  8875. this.AttText.text =
  8876. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8877. itemTaskIndex
  8878. ].chapterData[i].url;
  8879. this.taskCount = itemTaskIndex;
  8880. this.AttTextIndex = i;
  8881. this.AttTextType = 1;
  8882. this.dialogVisible6 = true;
  8883. },
  8884. updateAttText() {
  8885. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8886. this.taskCount
  8887. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  8888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8889. this.taskCount
  8890. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  8891. this.dialogVisible6 = false;
  8892. },
  8893. addLine() {
  8894. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8895. this.lineCount
  8896. ].chapterData.push({
  8897. name: "链接",
  8898. title: this.lineTitle,
  8899. url: this.line,
  8900. type: 8,
  8901. });
  8902. this.imgChange1(null, null, 8, this.lineCount);
  8903. this.dialogVisible7 = false;
  8904. },
  8905. selectLine(itemTaskIndex, i) {
  8906. this.line =
  8907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8908. itemTaskIndex
  8909. ].chapterData[i].url;
  8910. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8911. itemTaskIndex
  8912. ].chapterData[i].title
  8913. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8914. .chapterData[i].title
  8915. : "";
  8916. this.taskCount = itemTaskIndex;
  8917. this.lineCount = i;
  8918. this.lineType = 1;
  8919. this.dialogVisible7 = true;
  8920. },
  8921. openUpdateSource(itemTaskIndex, i) {
  8922. this.sourceData = {};
  8923. let source =
  8924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8925. .chapterData[i];
  8926. this.sourceData[source.id] = {};
  8927. this.sourceData[source.id].name = source.title;
  8928. this.sourceData[source.id].url = source.url;
  8929. this.dialogVisibleSource = true;
  8930. this.updateSourcePan = true;
  8931. this.taskCount = itemTaskIndex;
  8932. this.lineCount = i;
  8933. },
  8934. updateLine() {
  8935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8936. this.taskCount
  8937. ].chapterData[this.lineCount].url = this.line;
  8938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8939. this.taskCount
  8940. ].chapterData[this.lineCount].title = this.lineTitle;
  8941. this.dialogVisible7 = false;
  8942. },
  8943. addPP() {
  8944. this.dialogVisible3 = true;
  8945. },
  8946. goTo(path) {
  8947. this.$router.push(path);
  8948. },
  8949. openTools(itemTaskIndex, i, toolIndex) {
  8950. this.toolIndex = toolIndex;
  8951. this.taskCount = itemTaskIndex;
  8952. if (i == 4) {
  8953. if (toolIndex == null) {
  8954. var a =
  8955. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8956. .chapterData;
  8957. for (var i = 0; i < a.length; i++) {
  8958. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  8959. this.askJson =
  8960. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8961. itemTaskIndex
  8962. ].chapterData[i].askJson;
  8963. }
  8964. }
  8965. } else {
  8966. this.askJson = JSON.parse(
  8967. JSON.stringify(
  8968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8969. itemTaskIndex
  8970. ].toolChoose[toolIndex]
  8971. )
  8972. );
  8973. }
  8974. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  8975. this.dialogVisible5 = true;
  8976. } else if (i == 45) {
  8977. if (
  8978. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8979. .toolChoose[toolIndex].testJson
  8980. ) {
  8981. this.testJson = JSON.parse(
  8982. JSON.stringify(
  8983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8984. itemTaskIndex
  8985. ].toolChoose[toolIndex].testJson
  8986. )
  8987. );
  8988. } else {
  8989. var testJson = {
  8990. testCount: 1,
  8991. testTitle: "",
  8992. testJson: [
  8993. {
  8994. teststitle: "",
  8995. testItem: 1,
  8996. checkList: [],
  8997. timuList: [],
  8998. answer: [],
  8999. type: "1",
  9000. },
  9001. ],
  9002. };
  9003. this.testJson = testJson;
  9004. }
  9005. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9006. this.dialogVisibleChoice = true;
  9007. } else if (i == 47) {
  9008. if (
  9009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9010. .toolChoose[toolIndex].sentenceList
  9011. ) {
  9012. this.sentenceList = JSON.parse(
  9013. JSON.stringify(
  9014. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9015. itemTaskIndex
  9016. ].toolChoose[toolIndex].sentenceList
  9017. )
  9018. );
  9019. } else {
  9020. var sentenceList = [
  9021. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9022. ];
  9023. this.sentenceList = sentenceList;
  9024. }
  9025. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9026. this.dialogVisibleSentence = true;
  9027. } else if (i == 48) {
  9028. if (
  9029. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9030. .toolChoose[toolIndex].tableJson
  9031. ) {
  9032. this.tableJson = JSON.parse(
  9033. JSON.stringify(
  9034. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9035. itemTaskIndex
  9036. ].toolChoose[toolIndex].tableJson
  9037. )
  9038. );
  9039. } else {
  9040. var tableJson = { text: "" };
  9041. this.tableJson = tableJson;
  9042. }
  9043. this.dialogVisibleTable = true;
  9044. } else if (i == 52) {
  9045. if (
  9046. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9047. .toolChoose[toolIndex].wordJson
  9048. ) {
  9049. this.wordJson = JSON.parse(
  9050. JSON.stringify(
  9051. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9052. itemTaskIndex
  9053. ].toolChoose[toolIndex].wordJson
  9054. )
  9055. );
  9056. } else {
  9057. var wordJson = { text: "" };
  9058. this.wordJson = wordJson;
  9059. }
  9060. this.dialogVisibleWord = true;
  9061. // else if (i == 50) {
  9062. // if (
  9063. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9064. // .toolChoose[toolIndex].uploadJson
  9065. // ) {
  9066. // this.uploadJson = JSON.parse(
  9067. // JSON.stringify(
  9068. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9069. // itemTaskIndex
  9070. // ].toolChoose[toolIndex].uploadJson
  9071. // )
  9072. // );
  9073. // } else {
  9074. // var uploadJson = [];
  9075. // this.uploadJson = uploadJson;
  9076. // }
  9077. // this.dialogVisibleMoreUpload = true;
  9078. // }
  9079. } else if (i == 10) {
  9080. if (
  9081. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9082. .toolChoose[toolIndex].preTime
  9083. ) {
  9084. this.preTime = JSON.parse(
  9085. JSON.stringify(
  9086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9087. itemTaskIndex
  9088. ].toolChoose[toolIndex].preTime
  9089. )
  9090. );
  9091. } else {
  9092. var preTime = 0;
  9093. this.preTime = preTime;
  9094. }
  9095. this.dialogVisiblePreTime = true;
  9096. } else if (i == 49) {
  9097. if (
  9098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9099. .toolChoose[toolIndex].groupJson
  9100. ) {
  9101. this.groupJson = JSON.parse(
  9102. JSON.stringify(
  9103. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9104. itemTaskIndex
  9105. ].toolChoose[toolIndex].groupJson
  9106. )
  9107. );
  9108. } else {
  9109. var groupJson = {
  9110. group: [{ name: "第1组" }],
  9111. number: undefined,
  9112. islock: 1,
  9113. };
  9114. this.groupJson = groupJson;
  9115. }
  9116. this.dialogVisibleGroup = true;
  9117. } else if (i == 62) {
  9118. if (
  9119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9120. .toolChoose[toolIndex].videoJson
  9121. ) {
  9122. this.videoJson = JSON.parse(
  9123. JSON.stringify(
  9124. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9125. itemTaskIndex
  9126. ].toolChoose[toolIndex].videoJson
  9127. )
  9128. );
  9129. } else {
  9130. var videoJson = {
  9131. video: "",
  9132. setting: [],
  9133. };
  9134. this.videoJson = videoJson;
  9135. }
  9136. this.dialogVisibleVideo = true;
  9137. } else if (i == 15) {
  9138. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9139. itemTaskIndex
  9140. ].toolChoose[toolIndex].answerQ
  9141. ? JSON.parse(
  9142. JSON.stringify(
  9143. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9144. itemTaskIndex
  9145. ].toolChoose[toolIndex].answerQ
  9146. )
  9147. )
  9148. : "";
  9149. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9150. this.dialogVisible8 = true;
  9151. } else if (i == 40) {
  9152. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9153. itemTaskIndex
  9154. ].toolChoose[toolIndex].rateJson
  9155. ? JSON.parse(
  9156. JSON.stringify(
  9157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9158. itemTaskIndex
  9159. ].toolChoose[toolIndex].rateJson
  9160. )
  9161. )
  9162. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9163. this.selectSteps = 1;
  9164. this.dialogVisibleRate = true;
  9165. } else if (i == 42) {
  9166. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9167. itemTaskIndex
  9168. ].toolChoose[toolIndex].answerQ
  9169. ? JSON.parse(
  9170. JSON.stringify(
  9171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9172. itemTaskIndex
  9173. ].toolChoose[toolIndex].answerQ
  9174. )
  9175. )
  9176. : "";
  9177. this.dialogVisibleMp3 = true;
  9178. } else if (i == 41) {
  9179. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9180. itemTaskIndex
  9181. ].toolChoose[toolIndex].selectJson
  9182. ? JSON.parse(
  9183. JSON.stringify(
  9184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9185. itemTaskIndex
  9186. ].toolChoose[toolIndex].selectJson
  9187. )
  9188. )
  9189. : { url: "", select: [], answer: [] };
  9190. this.selectSteps = 1;
  9191. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9192. this.dialogVisibleSelect = true;
  9193. } else if (i == 3) {
  9194. top.postMessage(
  9195. {
  9196. tools: "3y",
  9197. cid: this.cid,
  9198. stage: this.unitIndex,
  9199. task: itemTaskIndex,
  9200. tool: toolIndex,
  9201. },
  9202. "*"
  9203. );
  9204. } else if (i == 1) {
  9205. top.postMessage(
  9206. {
  9207. tools: "1y",
  9208. cid: this.cid,
  9209. stage: this.unitIndex,
  9210. task: itemTaskIndex,
  9211. tool: toolIndex,
  9212. },
  9213. "*"
  9214. );
  9215. } else if (i == 57) {
  9216. top.postMessage(
  9217. {
  9218. tools: "57y",
  9219. cid: this.cid,
  9220. stage: this.unitIndex,
  9221. task: itemTaskIndex,
  9222. tool: toolIndex,
  9223. },
  9224. "*"
  9225. );
  9226. } else if (i == 69) {
  9227. this.englishList = {};
  9228. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9229. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9230. ? JSON.parse(
  9231. JSON.stringify(
  9232. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9233. itemTaskIndex
  9234. ].toolChoose[toolIndex].englishList
  9235. )
  9236. )
  9237. : {};
  9238. this.$forceUpdate();
  9239. this.englishDialogVisible = true;
  9240. } else if (i == 70) {
  9241. this.englishVoiceJson = {};
  9242. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9243. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9244. ? JSON.parse(
  9245. JSON.stringify(
  9246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9247. itemTaskIndex
  9248. ].toolChoose[toolIndex].englishVoiceJson
  9249. )
  9250. )
  9251. : {
  9252. title: '',
  9253. detail: '',
  9254. array: []
  9255. };
  9256. // {
  9257. // time: "",
  9258. // class: "",
  9259. // difficulty: 0,
  9260. // topic: "",
  9261. // isShow: false,
  9262. // eva: 0,
  9263. // aiEva: {
  9264. // isAiEva: false,
  9265. // aiEvaChoose: [],
  9266. // },
  9267. // allfType: [],
  9268. // englishJson: {},
  9269. // };
  9270. this.$forceUpdate();
  9271. this.EnglishVoiceDialog = true;
  9272. }
  9273. },
  9274. setEnglishVoiceJson(val) {
  9275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9276. this.taskCount
  9277. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9278. JSON.stringify(val)
  9279. );
  9280. this.$forceUpdate();
  9281. if (
  9282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9283. .toolChoose[this.toolIndex].tool != 70
  9284. ) {
  9285. this.addTools(70, this.taskCount, this.toolIndex);
  9286. }
  9287. },
  9288. chapAddTools(i) {
  9289. if (this.chapTools[0].tools.length == 0) {
  9290. this.chapTools[0].tools.push(i);
  9291. } else {
  9292. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9293. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9294. } else {
  9295. this.chapTools[0].tools.push(i);
  9296. }
  9297. }
  9298. this.$forceUpdate();
  9299. },
  9300. addChaptersDataTools() {
  9301. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9302. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9303. this.chapCount
  9304. ].chapterData.push({
  9305. name: this.chapTools[0].toolDetail,
  9306. url: this.chapTools[0].tools,
  9307. type: 7,
  9308. askJson: this.askJson,
  9309. });
  9310. } else {
  9311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9312. this.chapCount
  9313. ].chapterData.push({
  9314. name: this.chapTools[0].toolDetail,
  9315. url: this.chapTools[0].tools,
  9316. type: 7,
  9317. });
  9318. }
  9319. this.imgChange1(null, null, 7, this.chapCount);
  9320. this.dialogVisible4 = false;
  9321. },
  9322. addTools(i, itemTaskIndex, toolIndex) {
  9323. // if (
  9324. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9325. // .toolChoose[toolIndex].tool.length == 0
  9326. // ) {
  9327. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9328. // itemTaskIndex
  9329. // ].toolChoose[toolIndex].tool.push(i);
  9330. // } else {
  9331. // if (
  9332. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9333. // itemTaskIndex
  9334. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9335. // ) {
  9336. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9337. // itemTaskIndex
  9338. // ].toolChoose[toolIndex].tool.splice(
  9339. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9340. // itemTaskIndex
  9341. // ].toolChoose[toolIndex].tool.indexOf(i),
  9342. // 1
  9343. // );
  9344. // } else {
  9345. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9346. // itemTaskIndex
  9347. // ].toolChoose[toolIndex].tool.push(i);
  9348. // }
  9349. // console.log(
  9350. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9351. // .toolChoose[toolIndex].tool
  9352. // );
  9353. // }
  9354. if (i == 4) {
  9355. if (
  9356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9357. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9359. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9361. .toolChoose[toolIndex].askJson[0].checkList < 2
  9362. ) {
  9363. this.openTools(itemTaskIndex, 4, toolIndex);
  9364. // this.$message({
  9365. // message: "请填写完整问卷内容",
  9366. // type: "error",
  9367. // });
  9368. return;
  9369. }
  9370. }
  9371. if (i == 45) {
  9372. if (
  9373. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9374. .toolChoose[toolIndex].testJson ||
  9375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9376. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9378. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9379. ) {
  9380. this.openTools(itemTaskIndex, 45, toolIndex);
  9381. // this.$message({
  9382. // message: "请填写完整问卷内容",
  9383. // type: "error",
  9384. // });
  9385. return;
  9386. }
  9387. }
  9388. if (i == 47) {
  9389. if (
  9390. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9391. .toolChoose[toolIndex].sentenceList ||
  9392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9393. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9394. ) {
  9395. this.openTools(itemTaskIndex, 47, toolIndex);
  9396. return;
  9397. }
  9398. }
  9399. if (i == 69) {
  9400. if (
  9401. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9402. .toolChoose[toolIndex].englishList
  9403. ) {
  9404. this.openTools(itemTaskIndex, 69, toolIndex);
  9405. return;
  9406. }
  9407. }
  9408. if (i == 70) {
  9409. if (
  9410. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9411. .toolChoose[toolIndex].englishVoiceJson
  9412. ) {
  9413. this.openTools(itemTaskIndex, 70, toolIndex);
  9414. return;
  9415. }
  9416. }
  9417. // if (i == 48) {
  9418. // if (
  9419. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9420. // .toolChoose[toolIndex].tableJson
  9421. // ) {
  9422. // this.openTools(itemTaskIndex, 48, toolIndex);
  9423. // return;
  9424. // }
  9425. // }
  9426. // if (i == 50) {
  9427. // if (
  9428. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9429. // .toolChoose[toolIndex].uploadJson
  9430. // ) {
  9431. // this.openTools(itemTaskIndex, 50, toolIndex);
  9432. // return;
  9433. // }
  9434. // }
  9435. if (i == 49) {
  9436. if (
  9437. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9438. .toolChoose[toolIndex].groupJson
  9439. ) {
  9440. this.openTools(itemTaskIndex, 49, toolIndex);
  9441. return;
  9442. }
  9443. }
  9444. if (i == 62) {
  9445. if (
  9446. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9447. .toolChoose[toolIndex].videoJson
  9448. ) {
  9449. this.openTools(itemTaskIndex, 62, toolIndex);
  9450. return;
  9451. }
  9452. }
  9453. if (i == 15) {
  9454. if (
  9455. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9456. .toolChoose[toolIndex].answerQ ||
  9457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9458. .toolChoose[toolIndex].answerQ == ""
  9459. ) {
  9460. this.openTools(itemTaskIndex, 15, toolIndex);
  9461. // this.$message({
  9462. // message: "请填写问答内容",
  9463. // type: "error",
  9464. // });
  9465. return;
  9466. }
  9467. }
  9468. if (i == 40) {
  9469. if (
  9470. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9471. .toolChoose[toolIndex].rateJson ||
  9472. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9473. .toolChoose[toolIndex].rateJson.length
  9474. ) {
  9475. this.openTools(itemTaskIndex, 40, toolIndex);
  9476. return;
  9477. }
  9478. }
  9479. if (i == 41) {
  9480. if (
  9481. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9482. .toolChoose[toolIndex].selectJson ||
  9483. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9484. .toolChoose[toolIndex].selectJson.url == "" ||
  9485. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9486. .toolChoose[toolIndex].selectJson.select.length ||
  9487. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9488. .toolChoose[toolIndex].selectJson.answer.length
  9489. ) {
  9490. this.openTools(itemTaskIndex, 41, toolIndex);
  9491. return;
  9492. }
  9493. }
  9494. if (i == 42) {
  9495. if (
  9496. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9497. .toolChoose[toolIndex].answerQ ||
  9498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9499. .toolChoose[toolIndex].answerQ == ""
  9500. ) {
  9501. this.openTools(itemTaskIndex, 42, toolIndex);
  9502. return;
  9503. }
  9504. }
  9505. if (
  9506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9507. .toolChoose[toolIndex].tool.length > 0
  9508. ) {
  9509. if (
  9510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9511. itemTaskIndex
  9512. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9513. ) {
  9514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9515. itemTaskIndex
  9516. ].toolChoose[toolIndex].tool.splice(
  9517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9518. itemTaskIndex
  9519. ].toolChoose[toolIndex].tool.indexOf(i),
  9520. 1
  9521. );
  9522. } else {
  9523. // this.$message({
  9524. // message: "每个工具只能添加一个",
  9525. // type: "error",
  9526. // });
  9527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9528. itemTaskIndex
  9529. ].toolChoose[toolIndex].tool = [];
  9530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9531. itemTaskIndex
  9532. ].toolChoose[toolIndex].tool.push(i);
  9533. }
  9534. } else {
  9535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9536. itemTaskIndex
  9537. ].toolChoose[toolIndex].tool.push(i);
  9538. }
  9539. this.$forceUpdate();
  9540. },
  9541. addAskList(index) {
  9542. this.askJson.askJson.splice(index + 1, 0, {
  9543. askstitle: "",
  9544. askItem: 1,
  9545. checkList: [],
  9546. });
  9547. this.askJson.askCount++;
  9548. },
  9549. addTestList(index) {
  9550. this.testJson.testJson.splice(index + 1, 0, {
  9551. teststitle: "",
  9552. testItem: 1,
  9553. checkList: [],
  9554. timuList: [],
  9555. answer: [],
  9556. type: "1",
  9557. });
  9558. this.testJson.testCount++;
  9559. },
  9560. deleteAskList(index) {
  9561. if (
  9562. !this.askJson.askJson[index].askstitle &&
  9563. this.askJson.askJson[index].askItem == 1 &&
  9564. !this.askJson.askJson[index].checkList[0]
  9565. ) {
  9566. this.askJson.askJson.splice(index, 1);
  9567. this.askJson.askCount--;
  9568. } else {
  9569. let _this = this;
  9570. _this
  9571. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9572. confirmButtonText: "确定",
  9573. cancelButtonText: "取消",
  9574. type: "warning",
  9575. })
  9576. .then(() => {
  9577. _this.askJson.askJson.splice(index, 1);
  9578. _this.askJson.askCount--;
  9579. })
  9580. .catch(() => {
  9581. return;
  9582. });
  9583. }
  9584. },
  9585. deleteTestList(index) {
  9586. if (
  9587. !this.testJson.testJson[index].teststitle &&
  9588. this.testJson.testJson[index].testItem == 1 &&
  9589. !this.testJson.testJson[index].checkList[0]
  9590. ) {
  9591. this.testJson.testJson.splice(index, 1);
  9592. this.testJson.testCount--;
  9593. } else {
  9594. let _this = this;
  9595. _this
  9596. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9597. confirmButtonText: "确定",
  9598. cancelButtonText: "取消",
  9599. type: "warning",
  9600. })
  9601. .then(() => {
  9602. _this.testJson.testJson.splice(index, 1);
  9603. _this.testJson.testCount--;
  9604. })
  9605. .catch(() => {
  9606. return;
  9607. });
  9608. }
  9609. },
  9610. askMove(type, index) {
  9611. if (type == 1) {
  9612. if (index > 0) {
  9613. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9614. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9615. this.askJson.askJson[index - 1] = b;
  9616. this.askJson.askJson[index] = a;
  9617. }
  9618. } else {
  9619. if (index < this.askJson.askJson.length - 1) {
  9620. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9621. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9622. this.askJson.askJson[index + 1] = b;
  9623. this.askJson.askJson[index] = a;
  9624. }
  9625. }
  9626. this.$forceUpdate();
  9627. },
  9628. checkMove(type, index, checkIndex) {
  9629. if (type == 1) {
  9630. if (checkIndex > 0) {
  9631. let a = JSON.parse(
  9632. JSON.stringify(
  9633. this.askJson.askJson[index].checkList[checkIndex - 1]
  9634. )
  9635. );
  9636. let b = JSON.parse(
  9637. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9638. );
  9639. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9640. this.askJson.askJson[index].checkList[checkIndex] = a;
  9641. }
  9642. } else {
  9643. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9644. let a = JSON.parse(
  9645. JSON.stringify(
  9646. this.askJson.askJson[index].checkList[checkIndex + 1]
  9647. )
  9648. );
  9649. let b = JSON.parse(
  9650. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9651. );
  9652. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9653. this.askJson.askJson[index].checkList[checkIndex] = a;
  9654. }
  9655. }
  9656. this.$forceUpdate();
  9657. },
  9658. testMove(type, index) {
  9659. if (type == 1) {
  9660. if (index > 0) {
  9661. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9662. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9663. this.testJson.testJson[index - 1] = b;
  9664. this.testJson.testJson[index] = a;
  9665. }
  9666. } else {
  9667. if (index < this.testJson.testJson.length - 1) {
  9668. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9669. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9670. this.testJson.testJson[index + 1] = b;
  9671. this.testJson.testJson[index] = a;
  9672. }
  9673. }
  9674. this.$forceUpdate();
  9675. },
  9676. tcheckMove(type, index, checkIndex) {
  9677. if (type == 1) {
  9678. if (checkIndex > 0) {
  9679. let a = JSON.parse(
  9680. JSON.stringify(
  9681. this.testJson.testJson[index].checkList[checkIndex - 1]
  9682. )
  9683. );
  9684. let b = JSON.parse(
  9685. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9686. );
  9687. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9688. this.testJson.testJson[index].checkList[checkIndex] = a;
  9689. }
  9690. } else {
  9691. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9692. let a = JSON.parse(
  9693. JSON.stringify(
  9694. this.testJson.testJson[index].checkList[checkIndex + 1]
  9695. )
  9696. );
  9697. let b = JSON.parse(
  9698. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9699. );
  9700. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9701. this.testJson.testJson[index].checkList[checkIndex] = a;
  9702. }
  9703. }
  9704. this.$forceUpdate();
  9705. },
  9706. addcheckList(json, index) {
  9707. // json.checkList.length++;
  9708. json.checkList.splice(index + 1, 0, "");
  9709. json.askItem++;
  9710. this.$forceUpdate();
  9711. },
  9712. deletecheckList(json, index) {
  9713. // json.checkList.length--;
  9714. json.checkList.splice(index, 1);
  9715. json.askItem--;
  9716. this.$forceUpdate();
  9717. },
  9718. addTcheckList(json, index) {
  9719. // json.checkList.length++;
  9720. json.checkList.splice(index + 1, 0, "");
  9721. json.testItem++;
  9722. this.$forceUpdate();
  9723. },
  9724. deleteTcheckList(json, index) {
  9725. // json.checkList.length--;
  9726. json.checkList.splice(index, 1);
  9727. json.testItem--;
  9728. this.$forceUpdate();
  9729. },
  9730. checkTestType(type, json) {
  9731. json.type = type;
  9732. setTimeout(() => {
  9733. json.answer = [];
  9734. }, 100);
  9735. },
  9736. checkAskType(type, json) {
  9737. json.type = type;
  9738. // json.checkList = [];
  9739. this.$forceUpdate();
  9740. },
  9741. addSelectList(json) {
  9742. json.select.push("");
  9743. json.answer.push("");
  9744. },
  9745. deleteSelectList(json) {
  9746. // json.select.length--;
  9747. // json.answer.length--;
  9748. json.select.splice(json.select.length - 1, 1);
  9749. json.answer.splice(json.answer.length - 1, 1);
  9750. },
  9751. addAsk() {
  9752. if (this.askJson.askTitle === "") {
  9753. this.$message.error("标题不能为空!");
  9754. return;
  9755. }
  9756. var aj = this.askJson.askJson;
  9757. var b = 1;
  9758. for (var i = 0; i < aj.length; i++) {
  9759. if (aj[i].askstitle === "") {
  9760. var a = 1;
  9761. for (let index = 0; index < aj[i].askItem; index++) {
  9762. const element = aj[i].checkList[index]
  9763. ? aj[i].checkList[index]
  9764. : "";
  9765. if (element != "") {
  9766. b++;
  9767. this.$message.error(`请将题目${i + 1}填写完整。`);
  9768. return;
  9769. } else {
  9770. a++;
  9771. }
  9772. }
  9773. if (b == 1) {
  9774. this.$message.error("至少填写一个问题");
  9775. return;
  9776. }
  9777. } else if (aj[i].askstitle != "") {
  9778. for (let index = 0; index < aj[i].askItem; index++) {
  9779. const element = aj[i].checkList[index]
  9780. ? aj[i].checkList[index]
  9781. : "";
  9782. var index = 0;
  9783. for (var z = 0; z < aj[i].checkList.length; z++) {
  9784. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9785. if (checkC != "") {
  9786. index++;
  9787. } else {
  9788. this.$message.error(`题目${i + 1}选项不能为空!`);
  9789. return;
  9790. }
  9791. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9792. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9793. if (checkC == checkC2) {
  9794. this.$message.error(
  9795. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9796. );
  9797. return;
  9798. }
  9799. }
  9800. }
  9801. b++;
  9802. if (index < 2) {
  9803. this.$message.error("每道题目至少需要设置2个选项。");
  9804. return;
  9805. }
  9806. }
  9807. }
  9808. }
  9809. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9810. var elc = el.checkList.filter((element) => {
  9811. return element != "";
  9812. });
  9813. return el.askstitle != "" && elc.length != 0;
  9814. });
  9815. if (!this.dialogVisible4) {
  9816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9817. this.taskCount
  9818. ].toolChoose[this.toolIndex] = this.askJson;
  9819. }
  9820. this.dialogVisible5 = false;
  9821. if (
  9822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9823. .toolChoose[this.toolIndex].tool != 4
  9824. ) {
  9825. this.addTools(4, this.taskCount, this.toolIndex);
  9826. }
  9827. },
  9828. addTest() {
  9829. // if (this.testJson.testTitle === "") {
  9830. // this.$message.error("标题不能为空!");
  9831. // return;
  9832. // }
  9833. var aj = this.testJson.testJson;
  9834. var b = 1;
  9835. for (var i = 0; i < aj.length; i++) {
  9836. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9837. var a = 1;
  9838. for (let index = 0; index < aj[i].testItem; index++) {
  9839. const element = aj[i].checkList[index]
  9840. ? aj[i].checkList[index]
  9841. : "";
  9842. if (element != "") {
  9843. b++;
  9844. this.$message.error(`请将题目${i + 1}填写完整。`);
  9845. return;
  9846. } else {
  9847. a++;
  9848. }
  9849. }
  9850. if (b == 1) {
  9851. this.$message.error("至少填写一个问题");
  9852. return;
  9853. }
  9854. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9855. for (let index = 0; index < aj[i].testItem; index++) {
  9856. const element = aj[i].checkList[index]
  9857. ? aj[i].checkList[index]
  9858. : "";
  9859. var index = 0;
  9860. for (var z = 0; z < aj[i].checkList.length; z++) {
  9861. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9862. if (checkC != "") {
  9863. index++;
  9864. } else {
  9865. this.$message.error(`题目${i + 1}选项不能为空!`);
  9866. return;
  9867. }
  9868. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9869. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9870. if (checkC == checkC2) {
  9871. this.$message.error(
  9872. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9873. );
  9874. return;
  9875. }
  9876. }
  9877. }
  9878. b++;
  9879. if (index < 2) {
  9880. this.$message.error("每道题目至少需要设置2个选项。");
  9881. return;
  9882. }
  9883. if (
  9884. (aj[i].type == "2" && !aj[i].answer.length) ||
  9885. (aj[i].type == "1" &&
  9886. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  9887. (aj[i].answer !== 0 && !aj[i].answer)))
  9888. ) {
  9889. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  9890. return;
  9891. }
  9892. }
  9893. }
  9894. }
  9895. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9896. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9897. var elc = el.checkList.filter((element) => {
  9898. return element != "";
  9899. });
  9900. return (
  9901. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9902. );
  9903. });
  9904. isTestJson.testCount = isTestJson.testJson.length;
  9905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9906. this.taskCount
  9907. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9908. this.dialogVisibleChoice = false;
  9909. if (
  9910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9911. .toolChoose[this.toolIndex].tool != 45
  9912. ) {
  9913. this.addTools(45, this.taskCount, this.toolIndex);
  9914. }
  9915. },
  9916. addVideoJson(videoJson) {
  9917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9918. this.taskCount
  9919. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9920. this.dialogVisibleVideo = false;
  9921. if (
  9922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9923. .toolChoose[this.toolIndex].tool != 62
  9924. ) {
  9925. this.addTools(62, this.taskCount, this.toolIndex);
  9926. }
  9927. },
  9928. //自动获取剪贴板
  9929. pasteOption() {
  9930. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9931. if (!iframe) {
  9932. this.$message.error("请使用AI共创生成题目");
  9933. return;
  9934. }
  9935. let copyData = iframe.contentWindow.copyData;
  9936. if (!copyData || !copyData.selectData.length) {
  9937. this.$message.error("请使用AI共创生成题目");
  9938. return;
  9939. }
  9940. let selectData = copyData.selectData;
  9941. for (var i = 0; i < selectData.length; i++) {
  9942. let answer = 0;
  9943. switch (selectData[i].answer[0]) {
  9944. case "A":
  9945. answer = 0;
  9946. break;
  9947. case "B":
  9948. answer = 1;
  9949. break;
  9950. case "C":
  9951. answer = 2;
  9952. break;
  9953. case "D":
  9954. answer = 3;
  9955. break;
  9956. case "E":
  9957. answer = 4;
  9958. break;
  9959. default:
  9960. break;
  9961. }
  9962. this.testJson.testJson.push({
  9963. teststitle: selectData[i].subject,
  9964. testItem: selectData[i].options.length,
  9965. checkList: selectData[i].options,
  9966. timuList: [],
  9967. answer: answer,
  9968. type: "1",
  9969. });
  9970. this.testJson.testCount++;
  9971. }
  9972. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9973. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9974. var elc = el.checkList.filter((element) => {
  9975. return element != "";
  9976. });
  9977. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  9978. });
  9979. isTestJson.testCount = isTestJson.testJson.length;
  9980. if (!isTestJson.testCount) {
  9981. return;
  9982. }
  9983. this.testJson = isTestJson;
  9984. this.$forceUpdate();
  9985. },
  9986. pasteTask(taskJson) {
  9987. let stageTasksData = [];
  9988. if (taskJson) {
  9989. stageTasksData = taskJson;
  9990. } else {
  9991. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9992. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9993. if (!iframe && !iframe2) {
  9994. this.$message.error("请使用AI共创生成");
  9995. return;
  9996. }
  9997. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9998. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9999. if (
  10000. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10001. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10002. ) {
  10003. this.$message.error("请使用AI共创生成");
  10004. return;
  10005. }
  10006. stageTasksData = copyData
  10007. ? copyData.tasksData
  10008. : copyData2
  10009. ? copyData2.tasksData
  10010. : [{ taskName: "", taskDecs: "" }];
  10011. }
  10012. let taskA = [];
  10013. let tasks = stageTasksData;
  10014. for (var j = 0; j < tasks.length; j++) {
  10015. taskA.push({
  10016. task: tasks[j].taskName,
  10017. taskDetail: tasks[j].taskDecs,
  10018. chapterData: [],
  10019. toolText: "",
  10020. toolChoose: [
  10021. {
  10022. tool: [],
  10023. toolDetail: "",
  10024. toolType: 0,
  10025. askCount: 1,
  10026. askTitle: "",
  10027. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10028. },
  10029. ],
  10030. isShowTools: false,
  10031. askCount: 1,
  10032. isFold: 1,
  10033. askTitle: "",
  10034. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10035. checkJson: [{ checkCount: [], checkPerent: [] }],
  10036. homeworkList: [],
  10037. });
  10038. }
  10039. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10040. this.$forceUpdate();
  10041. },
  10042. pasteStage(stageJson) {
  10043. let stageData = [];
  10044. if (stageJson) {
  10045. stageData = stageJson;
  10046. } else {
  10047. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10048. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10049. if (!iframe && !iframe2) {
  10050. this.$message.error("请使用AI共创生成");
  10051. return;
  10052. }
  10053. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10054. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10055. if (
  10056. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10057. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10058. ) {
  10059. this.$message.error("请使用AI共创生成");
  10060. return;
  10061. }
  10062. stageData = copyData
  10063. ? copyData.stageData
  10064. : copyData2
  10065. ? copyData2.stageData
  10066. : [""];
  10067. }
  10068. let stage = [];
  10069. for (var i = 0; i < stageData.length; i++) {
  10070. stage.push({
  10071. dyName: stageData[i], //单元标题
  10072. chapterInfo: [
  10073. {
  10074. isread: false,
  10075. chapterid: this.guid(),
  10076. title: "",
  10077. courseName: "",
  10078. taskJson: [
  10079. {
  10080. task: "",
  10081. taskDetail: "",
  10082. chapterData: [],
  10083. toolText: "",
  10084. toolChoose: [
  10085. {
  10086. tool: [],
  10087. toolDetail: "",
  10088. toolType: 0,
  10089. askCount: 1,
  10090. askTitle: "",
  10091. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10092. },
  10093. ],
  10094. isShowTools: false,
  10095. askCount: 1,
  10096. isFold: 1,
  10097. askTitle: "",
  10098. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10099. checkJson: [{ checkCount: [], checkPerent: [] }],
  10100. homeworkList: [],
  10101. },
  10102. ],
  10103. itemCount: 1,
  10104. fileList1: [],
  10105. video: [],
  10106. testData: [],
  10107. pData: [],
  10108. templateArray: [],
  10109. },
  10110. ],
  10111. });
  10112. }
  10113. let _this = this;
  10114. if (stageJson) {
  10115. if (!_this.cid) {
  10116. _this.unitJson = stage;
  10117. } else {
  10118. _this.unitIndex = 0;
  10119. _this.unitJson = stage;
  10120. _this.updateWork();
  10121. }
  10122. } else {
  10123. _this
  10124. .$confirm(
  10125. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10126. "提示",
  10127. {
  10128. confirmButtonText: "确定",
  10129. cancelButtonText: "取消",
  10130. type: "warning",
  10131. }
  10132. )
  10133. .then(() => {
  10134. _this.unitIndex = 0;
  10135. _this.unitJson = stage;
  10136. // _this.steps++;
  10137. _this.updateWork();
  10138. })
  10139. .catch(() => {
  10140. return;
  10141. });
  10142. }
  10143. },
  10144. openStageBox() {
  10145. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10146. this.dialogVisibleStageChange = true;
  10147. },
  10148. updateChange() {
  10149. this.$confirm(
  10150. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10151. "提示",
  10152. {
  10153. confirmButtonText: "确定",
  10154. cancelButtonText: "取消",
  10155. type: "warning",
  10156. }
  10157. )
  10158. .then(() => {
  10159. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10160. this.updateWork();
  10161. this.dialogVisibleStageChange = false;
  10162. })
  10163. .catch(() => {
  10164. return;
  10165. });
  10166. },
  10167. addAnswer() {
  10168. if (this.answerQ == "") {
  10169. this.$message.error("请输入您想要问的问题");
  10170. return;
  10171. }
  10172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10173. this.taskCount
  10174. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10175. this.dialogVisible8 = false;
  10176. if (
  10177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10178. .toolChoose[this.toolIndex].tool != 15
  10179. ) {
  10180. this.addTools(15, this.taskCount, this.toolIndex);
  10181. }
  10182. },
  10183. addMp3Answer() {
  10184. if (this.answerQ == "") {
  10185. this.$message.error("请输入您想要回答的问题");
  10186. return;
  10187. }
  10188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10189. this.taskCount
  10190. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10191. this.dialogVisibleMp3 = false;
  10192. },
  10193. addRateAnswer() {
  10194. var a = 1;
  10195. for (var i = 0; i < this.rateJson.length; i++) {
  10196. if (this.rateJson[i].value == "") {
  10197. a = 2;
  10198. break;
  10199. }
  10200. }
  10201. if (a == 2) {
  10202. this.$message.error("请把评价信息填写完整");
  10203. return;
  10204. }
  10205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10206. this.taskCount
  10207. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10208. this.dialogVisibleRate = false;
  10209. if (
  10210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10211. .toolChoose[this.toolIndex].tool != 40
  10212. ) {
  10213. this.addTools(40, this.taskCount, this.toolIndex);
  10214. }
  10215. },
  10216. addSelectAnswer() {
  10217. if (this.selectJson.url == "") {
  10218. this.$message.error("请上传题目");
  10219. return;
  10220. }
  10221. if (!this.selectJson.select.length) {
  10222. this.$message.error("请添加选项");
  10223. return;
  10224. }
  10225. if (!this.selectJson.answer.length) {
  10226. this.$message.error("请设置答案");
  10227. return;
  10228. }
  10229. var a = 1;
  10230. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10231. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10232. a = 2;
  10233. }
  10234. }
  10235. if (a == 2) {
  10236. this.$message.error("请设置答案");
  10237. return;
  10238. }
  10239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10240. this.taskCount
  10241. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10242. this.dialogVisibleSelect = false;
  10243. if (
  10244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10245. .toolChoose[this.toolIndex].tool != 41
  10246. ) {
  10247. this.addTools(41, this.taskCount, this.toolIndex);
  10248. }
  10249. },
  10250. nextSelectSteps() {
  10251. if (this.selectJson.url == "") {
  10252. this.$message.error("请上传题目");
  10253. return;
  10254. }
  10255. if (!this.selectJson.select.length) {
  10256. this.$message.error("请添加选项");
  10257. return;
  10258. } else {
  10259. for (var z = 0; z < this.selectJson.select.length; z++) {
  10260. let checkC = this.selectJson.select[z];
  10261. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10262. let checkC2 = this.selectJson.select[z2];
  10263. if (checkC == checkC2) {
  10264. this.$message.error(
  10265. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10266. );
  10267. return;
  10268. }
  10269. }
  10270. }
  10271. }
  10272. var a = 1;
  10273. for (var i = 0; i < this.selectJson.select.length; i++) {
  10274. if (!this.selectJson.select[i]) {
  10275. a = 2;
  10276. }
  10277. }
  10278. if (a == 2) {
  10279. this.$message.error("添加的选项不能为空");
  10280. return;
  10281. }
  10282. this.selectSteps++;
  10283. },
  10284. selectCourseDetail() {
  10285. if (this.cid == "" || this.cid == undefined) {
  10286. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10287. this.isTeacherSee = true;
  10288. }
  10289. console.log("这是新增课程");
  10290. this.selectAllType();
  10291. } else {
  10292. this.isOutline = true
  10293. this.isOutline2 = true
  10294. this.cidType = 1;
  10295. let params = {
  10296. cid: this.cid,
  10297. };
  10298. this.ajax
  10299. .get(this.$store.state.api + "select_course_detail", params)
  10300. .then((res) => {
  10301. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10302. this.courseState = res.data[0][0].state;
  10303. for (var j = 0; j < this.unitJson.length; j++) {
  10304. for (
  10305. var k = 0;
  10306. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10307. k++
  10308. ) {
  10309. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10310. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10311. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10312. : [];
  10313. let _chapterData = [];
  10314. for (
  10315. var c = 0;
  10316. c <
  10317. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10318. .length;
  10319. c++
  10320. ) {
  10321. if (
  10322. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10323. ) {
  10324. _chapterData.push(
  10325. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10326. );
  10327. }
  10328. }
  10329. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10330. _chapterData;
  10331. }
  10332. }
  10333. this.$forceUpdate();
  10334. this.courseName = res.data[0][0].title;
  10335. this.courseText = res.data[0][0].brief;
  10336. this.courseText2 = res.data[0][0].reBrief;
  10337. this.evalua = res.data[0][0].evaId;
  10338. this.cover = JSON.parse(res.data[0][0].cover);
  10339. this.noneBtnImg = this.cover.length >= 1;
  10340. if (res.data[0][0].refile) {
  10341. this.infoData = JSON.parse(res.data[0][0].refile)
  10342. }
  10343. // this.checkboxList =
  10344. // res.data[0][0].course_student.length > 0
  10345. // ? JSON.parse(res.data[0][0].course_student)
  10346. // : [];
  10347. this.checkboxList2 = res.data[0][0].juri
  10348. ? res.data[0][0].juri.split(",")
  10349. : [];
  10350. this.inviteCode = [];
  10351. for (var i = 0; i < res.data[2].length; i++) {
  10352. this.inviteCode.push({
  10353. cid: res.data[2][i].classid,
  10354. ic: res.data[2][i].code,
  10355. });
  10356. }
  10357. this.checkboxList3 = res.data[0][0].course_teacher
  10358. ? res.data[0][0].course_teacher.split(",")
  10359. : [];
  10360. // this.isTeacherSee =
  10361. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10362. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10363. this.myWord = res.data[0][0].template;
  10364. this.templateC.id = "123";
  10365. this.courseUserid = res.data[0][0].userid;
  10366. // if(this.courseUserid == this.userid){
  10367. // this.InviteChange(this.checkboxList2)
  10368. // }
  10369. this.nbOrder = res.data[0][0].ordernumber;
  10370. this.courseTypeId = [];
  10371. for (var i = 0; i < res.data[1].length; i++) {
  10372. this.courseTypeId.push(res.data[1][i].typeid);
  10373. }
  10374. console.log(this.courseTypeId);
  10375. // if (this.timer) clearInterval(this.timer);
  10376. if (this.timer) clearTimeout(this.timer);
  10377. this.timer = null;
  10378. // this.timer = setInterval(() => {
  10379. this.seleteCourseUpdate();
  10380. this.setMan();
  10381. this.selectAllType();
  10382. this.unitJson[
  10383. this.unitIndex
  10384. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10385. // }, 5000);
  10386. this.$forceUpdate();
  10387. setTimeout(() => {
  10388. this.checkEva(this.evalua);
  10389. setTimeout(() => {
  10390. this.checkEva(this.evalua);
  10391. }, 100);
  10392. }, 100);
  10393. })
  10394. .catch((err) => {
  10395. console.error(err);
  10396. });
  10397. }
  10398. },
  10399. seleteCourseUpdate() {
  10400. let params = {
  10401. cid: this.cid,
  10402. };
  10403. this.ajax
  10404. .get(this.$store.state.api + "select_course_detail", params)
  10405. .then((res) => {
  10406. // console.log(this.unitJson);
  10407. let unitJson = JSON.parse(res.data[0][0].chapters);
  10408. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10409. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10410. let _unitJson = [];
  10411. let _chapAarry = [];
  10412. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10413. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10414. let index = 1;
  10415. let chapindex;
  10416. if (_unitJson2.length > unitJson.length) {
  10417. for (let c = 0; c < _unitJson2.length; c++) {
  10418. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10419. }
  10420. for (let j = 0; j < unitJson.length; j++) {
  10421. let count = 0;
  10422. for (let k = 0; k < _unitJson2.length; k++) {
  10423. if (
  10424. unitJson[j].chapterInfo[0].chapterid ==
  10425. _unitJson2[k].chapterInfo[0].chapterid
  10426. ) {
  10427. count++;
  10428. _chapAarry.splice(
  10429. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10430. 1
  10431. );
  10432. _unitJson.push(unitJson[j]);
  10433. break;
  10434. }
  10435. }
  10436. // if(count === 0){
  10437. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10438. // }
  10439. }
  10440. for (let k = 0; k < _unitJson2.length; k++) {
  10441. if (_unitJson2[k].isUpdate == 1) {
  10442. _chapAarry.splice(
  10443. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10444. 1
  10445. );
  10446. _unitJson.push(_unitJson2[k]);
  10447. }
  10448. }
  10449. console.log(_chapAarry);
  10450. for (let d = 0; d < _unitJson2.length; d++) {
  10451. if (
  10452. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10453. ) {
  10454. if (_unitIndex == d) {
  10455. index = 2;
  10456. }
  10457. chapindex = d;
  10458. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10459. }
  10460. }
  10461. } else {
  10462. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10463. }
  10464. for (let i = 0; i < unitJson.length; i++) {
  10465. if (
  10466. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10467. _unitJson[i].chapterInfo[0].chapterid !=
  10468. unitJson[i].chapterInfo[0].chapterid
  10469. ) {
  10470. if (i == _unitJson.length - 1) {
  10471. // this.unitIndex++
  10472. _unitIndex2++;
  10473. }
  10474. _unitJson.splice(i, 0, unitJson[i]);
  10475. } else if (i > _unitJson.length - 1) {
  10476. _unitJson.push(unitJson[i]);
  10477. } else if (
  10478. _unitJson[i].chapterInfo[0].chapterid ==
  10479. unitJson[i].chapterInfo[0].chapterid
  10480. ) {
  10481. _unitJson[i] = unitJson[i];
  10482. }
  10483. // if (i == _unitIndex) {
  10484. // continue;
  10485. // } else
  10486. }
  10487. if (_chapAarry.length && index != 2) {
  10488. if (chapindex < _unitIndex) {
  10489. this.isDelete = 2;
  10490. // this.unitIndex--;
  10491. _unitIndex2--;
  10492. } else if (
  10493. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10494. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10495. ) {
  10496. this.isDelete = 2;
  10497. for (let n = 0; n < _unitJson.length; n++) {
  10498. if (
  10499. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10500. _unitJson[n].chapterInfo[0].chapterid
  10501. ) {
  10502. // this.unitIndex = n;
  10503. _unitIndex2 = n;
  10504. _unitJson[n] = _unitJson2[_unitIndex];
  10505. break;
  10506. }
  10507. }
  10508. }
  10509. } else if (index != 2) {
  10510. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10511. _unitJson2[_unitIndex];
  10512. for (
  10513. var ci = 0;
  10514. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10515. ci++
  10516. ) {
  10517. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10518. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10519. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10520. .toolChoose
  10521. : [];
  10522. let _chapterData = [];
  10523. for (
  10524. var c = 0;
  10525. c <
  10526. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10527. .length;
  10528. c++
  10529. ) {
  10530. if (
  10531. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10532. .chapterData[c]
  10533. ) {
  10534. _chapterData.push(
  10535. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10536. .chapterData[c]
  10537. );
  10538. }
  10539. }
  10540. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10541. _chapterData;
  10542. }
  10543. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10544. }
  10545. if (index == 1) {
  10546. this.unitJson = _unitJson;
  10547. this.$forceUpdate();
  10548. setTimeout(() => {
  10549. if (this.unitIndex != _unitIndex2) {
  10550. this.isDelete = 2;
  10551. this.unitIndex = _unitIndex2;
  10552. }
  10553. }, 0);
  10554. this.timer = setTimeout(() => {
  10555. this.seleteCourseUpdate();
  10556. }, 1000);
  10557. } else if (index == 2) {
  10558. let _this = this;
  10559. _this
  10560. .$confirm(
  10561. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10562. "提示",
  10563. {
  10564. confirmButtonText: "需要",
  10565. cancelButtonText: "取消",
  10566. type: "warning",
  10567. }
  10568. )
  10569. .then(() => {
  10570. if (_this.time()) {
  10571. _this.restoreWork(
  10572. _chapAarry[0],
  10573. _unitJson,
  10574. chapindex,
  10575. _unitJson2,
  10576. _unitIndex2
  10577. );
  10578. }
  10579. })
  10580. .catch(() => {
  10581. _this.unitJson = _unitJson;
  10582. _this.$forceUpdate();
  10583. setTimeout(() => {
  10584. if (this.unitIndex != _unitIndex2) {
  10585. this.isDelete = 2;
  10586. this.unitIndex = _unitIndex2;
  10587. }
  10588. }, 0);
  10589. _this.timer = setTimeout(() => {
  10590. _this.seleteCourseUpdate();
  10591. }, 1000);
  10592. });
  10593. }
  10594. // 在复制操作之前记录滚动位置
  10595. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10596. // 执行复制操作
  10597. // 复制操作完成后恢复滚动位置
  10598. this.$nextTick(() => {
  10599. if (this.$refs.scrollContainer) {
  10600. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10601. }
  10602. });
  10603. })
  10604. .catch((err) => {
  10605. console.error(err);
  10606. });
  10607. },
  10608. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10609. let params = [
  10610. {
  10611. cid: this.cid,
  10612. chapters: JSON.stringify(this.unitJson),
  10613. uid: this.userid,
  10614. chapid: chapid,
  10615. },
  10616. ];
  10617. this.ajax
  10618. .post(this.$store.state.api + "restoreWork", params)
  10619. .then((res) => {
  10620. this.$message({
  10621. message: "恢复成功",
  10622. type: "success",
  10623. });
  10624. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10625. this.unitJson = unitJson;
  10626. this.$forceUpdate();
  10627. setTimeout(() => {
  10628. if (this.unitIndex != unitIndex2) {
  10629. this.isDelete = 2;
  10630. this.unitIndex = unitIndex2;
  10631. }
  10632. }, 0);
  10633. this.timer = setTimeout(() => {
  10634. this.seleteCourseUpdate();
  10635. }, 1000);
  10636. })
  10637. .catch((err) => {
  10638. this.$message.error("网络不佳");
  10639. console.error(err);
  10640. });
  10641. },
  10642. getTypeName() {
  10643. console.log(this.courseTypeId);
  10644. this.$forceUpdate();
  10645. },
  10646. selectAllType() {
  10647. let params = {
  10648. org: this.org && this.org != "" ? this.org : "",
  10649. oid: this.oid && this.oid != "" ? this.oid : "",
  10650. };
  10651. this.ajax
  10652. .get(this.$store.state.api + "selectAllType", params)
  10653. .then((res) => {
  10654. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10655. res.data[0] = [...res.data[0], ...res.data[4]];
  10656. }
  10657. this.CourseType = res.data;
  10658. this.CourseType2 = [
  10659. { name: "智见课程", id: [] },
  10660. { name: "智行课程", id: [] },
  10661. { name: "智创课程", id: [] },
  10662. ];
  10663. for (var cti = 0; cti < res.data[0].length; cti++) {
  10664. if (
  10665. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10666. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10667. ) {
  10668. this.CourseType2[0].id.push(res.data[0][cti].id);
  10669. } else if (
  10670. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10671. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10672. ) {
  10673. this.CourseType2[1].id.push(res.data[0][cti].id);
  10674. } else if (
  10675. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10676. ) {
  10677. this.CourseType2[2].id.push(res.data[0][cti].id);
  10678. }
  10679. if (
  10680. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10681. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10682. ) {
  10683. res.data[0][cti].name = "年级";
  10684. } else if (
  10685. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10686. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10687. ) {
  10688. res.data[0][cti].name = "学科";
  10689. } else if (
  10690. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10691. ) {
  10692. res.data[0][cti].name = "主题";
  10693. }
  10694. }
  10695. let _courseTypeId = [];
  10696. for (var i = 0; i < res.data[0].length; i++) {
  10697. if (!this.cid) {
  10698. this.courseTypeId[res.data[0][i].id] = [];
  10699. }
  10700. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10701. // }
  10702. this.CourseTypeJson[res.data[0][i].id] = [];
  10703. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10704. if (res.data[0][i].name == "栏目") {
  10705. this.CourseType[0][i].name = "主题";
  10706. }
  10707. }
  10708. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10709. for (var j = 0; j < res.data[1].length; j++) {
  10710. if (
  10711. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10712. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10713. ) {
  10714. _courseTypeId.push(res.data[1][j].id);
  10715. }
  10716. if (res.data[0][i].id == res.data[1][j].pid) {
  10717. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10718. }
  10719. }
  10720. } else {
  10721. if (res.data[2].length > 0) {
  10722. for (var j = 0; j < res.data[2].length; j++) {
  10723. if (
  10724. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10725. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10726. ) {
  10727. _courseTypeId.push(res.data[2][j].id);
  10728. }
  10729. if (res.data[0][i].id == res.data[2][j].pid) {
  10730. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10731. }
  10732. }
  10733. }
  10734. if (res.data[3].length > 0) {
  10735. for (var j = 0; j < res.data[3].length; j++) {
  10736. if (
  10737. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10738. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10739. ) {
  10740. _courseTypeId.push(res.data[3][j].id);
  10741. }
  10742. if (res.data[0][i].id == res.data[3][j].pid) {
  10743. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10744. }
  10745. }
  10746. }
  10747. }
  10748. }
  10749. this.courseTypeId = _courseTypeId;
  10750. })
  10751. .catch((err) => {
  10752. console.error(err);
  10753. });
  10754. },
  10755. selectType() {
  10756. this.ajax
  10757. .get(this.$store.state.api + "selectType")
  10758. .then((res) => {
  10759. this.CourseType = res.data;
  10760. for (var i = 0; i < res.data[0].length; i++) {
  10761. if (!this.cid) {
  10762. this.courseTypeId[res.data[0][i].id] = "";
  10763. }
  10764. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10765. if (res.data[0][i].name == "栏目") {
  10766. this.CourseType[0][i].name = "主题";
  10767. }
  10768. }
  10769. for (var j = 0; j < res.data[1].length; j++) {
  10770. if (res.data[0][i].id == res.data[1][j].pid) {
  10771. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10772. this.CourseTypeJson[res.data[0][i].id] = [];
  10773. }
  10774. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10775. }
  10776. }
  10777. }
  10778. this.selectTypeByOid();
  10779. this.selectTypeByOrg();
  10780. })
  10781. .catch((err) => {
  10782. console.error(err);
  10783. });
  10784. },
  10785. selectTypeByOid() {
  10786. let params = {
  10787. oid: this.oid,
  10788. };
  10789. this.ajax
  10790. .get(this.$store.state.api + "selectTypeByOid", params)
  10791. .then((res) => {
  10792. for (var i = 0; i < res.data[0].length; i++) {
  10793. for (var j = 0; j < res.data[1].length; j++) {
  10794. if (res.data[0][i].id == res.data[1][j].pid) {
  10795. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10796. this.CourseTypeJson[res.data[0][i].id] = [];
  10797. }
  10798. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10799. }
  10800. }
  10801. }
  10802. })
  10803. .catch((err) => {
  10804. console.error(err);
  10805. });
  10806. },
  10807. selectTypeByOrg() {
  10808. let params = {
  10809. oid: this.org,
  10810. };
  10811. this.ajax
  10812. .get(this.$store.state.api + "selectTypeByOrg", params)
  10813. .then((res) => {
  10814. for (var i = 0; i < res.data[0].length; i++) {
  10815. for (var j = 0; j < res.data[1].length; j++) {
  10816. if (res.data[0][i].id == res.data[1][j].pid) {
  10817. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10818. this.CourseTypeJson[res.data[0][i].id] = [];
  10819. }
  10820. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10821. }
  10822. }
  10823. }
  10824. this.$forceUpdate();
  10825. })
  10826. .catch((err) => {
  10827. console.error(err);
  10828. });
  10829. },
  10830. OtherMb(type, task) {
  10831. if (task === 0 || task) {
  10832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10833. task
  10834. ].isEvaFold = true;
  10835. }
  10836. this.typeMode = type;
  10837. setTimeout(() => {
  10838. this.checkEva(this.checkId);
  10839. setTimeout(() => {
  10840. this.checkEva(this.checkId);
  10841. }, 100);
  10842. }, 100);
  10843. },
  10844. openMember() {
  10845. this.searchTN = "";
  10846. this.getTeacher();
  10847. this.dialogVisibleMember = true;
  10848. },
  10849. checkEva(id, type) {
  10850. this.dialogVisiblemb = false;
  10851. this.selectEva();
  10852. if (this.evalua != id && type == 2) {
  10853. this.$message.success("导入成功");
  10854. setTimeout(() => {
  10855. this.checkEva(id);
  10856. }, 100);
  10857. }
  10858. this.evalua = id;
  10859. this.checkId = id;
  10860. if (this.evalua != "") {
  10861. for (var i = 0; i < this.evaJuri.length; i++) {
  10862. if (this.evalua == this.evaJuri[i].id) {
  10863. this.eTitle = this.evaJuri[i].title;
  10864. this.eJson = JSON.parse(this.evaJuri[i].content);
  10865. }
  10866. }
  10867. this.data.data = [];
  10868. this.$forceUpdate();
  10869. setTimeout(() => {
  10870. this.setMindData();
  10871. }, 1000);
  10872. }
  10873. },
  10874. deleteEva() {
  10875. let _this = this;
  10876. if (_this.evalua == "") {
  10877. this.$message.warning("内容已经清空了,请勿重复清空");
  10878. return;
  10879. }
  10880. _this
  10881. .$confirm("确定删除此目标吗?", "提示", {
  10882. confirmButtonText: "确定",
  10883. cancelButtonText: "取消",
  10884. type: "warning",
  10885. })
  10886. .then(() => {
  10887. _this.evalua = "";
  10888. _this.checkId = "";
  10889. _this.eTitle = "";
  10890. let _unitJson = _this.unitJson;
  10891. for (var i = 0; i < _unitJson.length; i++) {
  10892. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10893. for (var j = 0; j < _task.length; j++) {
  10894. let _eList = _task[j].eList;
  10895. for (var k = 0; k < _eList.length; k++) {
  10896. delete _eList[k].target;
  10897. }
  10898. }
  10899. }
  10900. _this.$forceUpdate();
  10901. if (_this.cid) {
  10902. _this.updateWork();
  10903. }
  10904. })
  10905. .catch(() => {
  10906. return;
  10907. });
  10908. },
  10909. selectEva() {
  10910. let params = {
  10911. oid: this.oid,
  10912. };
  10913. this.ajax
  10914. .get(this.$store.state.api + "selectAllEvaluation", params)
  10915. .then((res) => {
  10916. this.evaJuri = res.data[0];
  10917. // 在复制操作之前记录滚动位置
  10918. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10919. // 执行复制操作
  10920. // 复制操作完成后恢复滚动位置
  10921. this.$nextTick(() => {
  10922. if (this.$refs.scrollContainer) {
  10923. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10924. }
  10925. });
  10926. })
  10927. .catch((err) => {
  10928. console.error(err);
  10929. });
  10930. },
  10931. setMindData() {
  10932. let targetArray = [];
  10933. this.data.data = [];
  10934. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10935. let _eJson = Object.keys(this.eJson);
  10936. let _e = this.eJson;
  10937. for (let i = 0; i < _eJson.length; i++) {
  10938. let element = _e[_eJson[i]];
  10939. this.data.data.push({
  10940. id: element.id,
  10941. parentid: "root",
  10942. topic: element.name,
  10943. });
  10944. // targetArray.push({
  10945. // id: element.id,
  10946. // parentid: "root",
  10947. // name: element.name,
  10948. // });
  10949. targetArray.push({
  10950. value: element.name,
  10951. label: element.name,
  10952. children: [],
  10953. });
  10954. let _eJsonc = Object.keys(element.child);
  10955. let _e2 = element.child;
  10956. for (let j = 0; j < _eJsonc.length; j++) {
  10957. let _ec = _e2[_eJsonc[j]];
  10958. this.data.data.push({
  10959. id: _ec.id,
  10960. parentid: element.id,
  10961. topic: _ec.name,
  10962. });
  10963. // targetArray.push({
  10964. // id: _ec.id,
  10965. // parentid: element.id,
  10966. // name: _ec.name,
  10967. // });
  10968. targetArray[i].children.push({
  10969. value: _ec.name,
  10970. label: _ec.name,
  10971. children: [],
  10972. });
  10973. let _eJsonz = Object.keys(_ec.child);
  10974. let _e3 = _ec.child;
  10975. for (let z = 0; z < _eJsonz.length; z++) {
  10976. let _ez = _e3[_eJsonz[z]];
  10977. this.data.data.push({
  10978. id: _ez.id,
  10979. parentid: _ec.id,
  10980. topic: _ez.name,
  10981. });
  10982. // targetArray.push({
  10983. // id: _ez.id,
  10984. // parentid: _ec.id,
  10985. // name: _ez.name,
  10986. // });
  10987. targetArray[i].children[j].children.push({
  10988. value: _ez.name,
  10989. label: _ez.name,
  10990. });
  10991. }
  10992. }
  10993. }
  10994. this.targetArray = targetArray;
  10995. this.$forceUpdate();
  10996. },
  10997. /*添加评价 */
  10998. addEList(index, tIndex) {
  10999. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11000. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11001. value: "",
  11002. detail: "",
  11003. score: 5,
  11004. })
  11005. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11006. { value: "", detail: "", score: 5 },
  11007. ]);
  11008. this.$forceUpdate();
  11009. },
  11010. openEList(index, tIndex) {
  11011. this.evaIndex = index;
  11012. this.evatIndex = tIndex;
  11013. this.evaBoxDialog = true;
  11014. },
  11015. addCET(index, tIndex) {
  11016. this.cetIndex = index;
  11017. this.cettIndex = tIndex;
  11018. this.selectAllType1();
  11019. },
  11020. addCETemplate() {
  11021. var array =
  11022. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11023. .eList;
  11024. let params = [
  11025. {
  11026. uid: this.userid,
  11027. n: this.templateName,
  11028. json: JSON.stringify(array),
  11029. t: 1,
  11030. oid: this.oid,
  11031. },
  11032. ];
  11033. this.ajax
  11034. .post(this.$store.state.api + "addCETShare", params)
  11035. .then((res) => {
  11036. this.addTypeByCET(res.data[0][0].id);
  11037. })
  11038. .catch((err) => {
  11039. this.$message.error("网络不佳");
  11040. console.error(err);
  11041. });
  11042. },
  11043. addTypeByCET(id) {
  11044. if (this.setTypeJson.two == "") {
  11045. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11046. return;
  11047. }
  11048. let params = {
  11049. cid: id,
  11050. };
  11051. this.ajax
  11052. .get(this.$store.state.api + "deleteCETLabel", params)
  11053. .then((res) => {
  11054. for (var i = 0; i < 2; i++) {
  11055. let tid = "";
  11056. if (i == 0) {
  11057. tid = this.setTypeJson.one;
  11058. } else {
  11059. tid = this.setTypeJson.two;
  11060. }
  11061. let params = [
  11062. {
  11063. cid: id,
  11064. tid: tid,
  11065. uid: this.userid,
  11066. },
  11067. ];
  11068. this.ajax
  11069. .post(this.$store.state.api + "addCETLabel", params)
  11070. .then((res) => {
  11071. this.$message({
  11072. message: "添加成功",
  11073. type: "success",
  11074. });
  11075. this.close();
  11076. })
  11077. .catch((err) => {
  11078. this.$message.error("网络不佳");
  11079. console.error(err);
  11080. });
  11081. }
  11082. })
  11083. .catch((err) => {
  11084. this.$message.error("网络不佳");
  11085. console.error(err);
  11086. });
  11087. },
  11088. updateEvaJson(array) {
  11089. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11090. this.evatIndex
  11091. ].eList = array;
  11092. },
  11093. forceUpdate() {
  11094. this.$forceUpdate();
  11095. },
  11096. deletEList(index, tIndex, eIndex) {
  11097. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11098. eIndex,
  11099. 1
  11100. );
  11101. this.$forceUpdate();
  11102. },
  11103. getChoosePic(t) {
  11104. this.chooseType = t;
  11105. this.getAllBanner();
  11106. },
  11107. getAllBanner() {
  11108. this.sysPicVisible = true;
  11109. let params = {
  11110. t: this.chooseType,
  11111. };
  11112. this.ajax
  11113. .get(this.$store.state.api + "selectAllBanner", params)
  11114. .then((res) => {
  11115. this.sysPic = res.data[0];
  11116. })
  11117. .catch((err) => {
  11118. console.error(err);
  11119. });
  11120. },
  11121. // getClass() {
  11122. // let params = {
  11123. // oid: this.oid,
  11124. // };
  11125. // this.ajax
  11126. // .get(this.$store.state.api + "selectClassBySchool", params)
  11127. // .then((res) => {
  11128. // this.classJuri = res.data[0];
  11129. // })
  11130. // .catch((err) => {
  11131. // console.error(err);
  11132. // });
  11133. // },
  11134. deleteSysPic() {
  11135. this.cover = [];
  11136. this.isSysPic = false;
  11137. this.isSysPic2 = false;
  11138. },
  11139. deleteSelectPic() {
  11140. this.selectJson.url = "";
  11141. },
  11142. setEListStar() {
  11143. this.$forceUpdate();
  11144. },
  11145. deletRateList(i) {
  11146. this.rateJson.splice(i, 1);
  11147. },
  11148. addRateList() {
  11149. this.rateJson.push({ detail: "", score: 5, value: "" });
  11150. },
  11151. addSt() {
  11152. this.sentenceList.push({
  11153. sentenceTitle: "",
  11154. addSentence: [],
  11155. rightAnswer: [],
  11156. });
  11157. },
  11158. addSen(i) {
  11159. if (!this.sentenceList[i].sentenceTitle) {
  11160. this.$message.error("请填写卡片内容!");
  11161. return;
  11162. }
  11163. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11164. this.$message.error("卡片内容字数不能超过10位");
  11165. return;
  11166. }
  11167. if (
  11168. this.sentenceList[i].addSentence.indexOf(
  11169. this.sentenceList[i].sentenceTitle
  11170. ) !== -1
  11171. ) {
  11172. this.$message.error("不能添加重复的卡片内容!");
  11173. return;
  11174. }
  11175. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11176. // this.isPushTitleList.push(this.sentenceTitle);
  11177. this.sentenceList[i].sentenceTitle = "";
  11178. },
  11179. setRightAnswer(s, i, j) {
  11180. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11181. this.sentenceList[i].rightAnswer.push(s);
  11182. }
  11183. },
  11184. returnCard(r, i, j) {
  11185. this.sentenceList[i].rightAnswer.splice(j, 1);
  11186. },
  11187. addSentenceTool() {
  11188. for (var i = 0; i < this.sentenceList.length; i++) {
  11189. if (this.sentenceList[i].rightAnswer.length == 0) {
  11190. this.$message.error(`请将题目${i + 1}设置完整。`);
  11191. return;
  11192. }
  11193. if (
  11194. this.sentenceList[i].addSentence.length !=
  11195. this.sentenceList[i].rightAnswer.length
  11196. ) {
  11197. this.$message.error(`请将题目${i + 1}设置完整。`);
  11198. return;
  11199. }
  11200. }
  11201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11202. this.taskCount
  11203. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11204. this.sentenceList = [
  11205. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11206. ];
  11207. this.dialogVisibleSentence = false;
  11208. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11209. // itemTaskIndex
  11210. // ].toolChoose[toolIndex].tool = [];
  11211. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11212. // itemTaskIndex
  11213. // ].toolChoose[toolIndex].tool.push(i);
  11214. if (
  11215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11216. .toolChoose[this.toolIndex].tool != 47
  11217. ) {
  11218. this.addTools(47, this.taskCount, this.toolIndex);
  11219. }
  11220. },
  11221. addTableJson() {
  11222. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11223. // this.$message.error("请将信息填写完整!");
  11224. // return;
  11225. // }
  11226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11227. this.taskCount
  11228. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11229. // this.tableJson = [{ text: "" }];
  11230. // this.dialogVisibleTable = false;
  11231. this.$message.success("上传成功");
  11232. if (
  11233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11234. .toolChoose[this.toolIndex].tool != 48
  11235. ) {
  11236. this.addTools(48, this.taskCount, this.toolIndex);
  11237. }
  11238. },
  11239. addWordJson() {
  11240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11241. this.taskCount
  11242. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11243. // this.wordJson = [{ text: "" }];
  11244. // this.dialogVisibleWord = false;
  11245. this.$message.success("上传成功");
  11246. if (
  11247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11248. .toolChoose[this.toolIndex].tool != 52
  11249. ) {
  11250. this.addTools(52, this.taskCount, this.toolIndex);
  11251. }
  11252. },
  11253. addMoreUpload() {
  11254. if (this.uploadJson.length == 0) {
  11255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11256. this.taskCount
  11257. ].toolChoose[this.toolIndex].uploadJson = [];
  11258. } else {
  11259. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11260. this.taskCount
  11261. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11262. }
  11263. this.uploadJson = [];
  11264. this.dialogVisibleMoreUpload = false;
  11265. if (
  11266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11267. .toolChoose[this.toolIndex].tool != 50
  11268. ) {
  11269. this.addTools(50, this.taskCount, this.toolIndex);
  11270. }
  11271. },
  11272. addPreTime() {
  11273. if (this.preTime == 0) {
  11274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11275. this.taskCount
  11276. ].toolChoose[this.toolIndex].preTime = 0;
  11277. } else {
  11278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11279. this.taskCount
  11280. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11281. }
  11282. this.preTime = 0;
  11283. this.dialogVisiblePreTime = false;
  11284. if (
  11285. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11286. .toolChoose[this.toolIndex].tool != 10
  11287. ) {
  11288. this.addTools(10, this.taskCount, this.toolIndex);
  11289. }
  11290. },
  11291. goToTask(i) {
  11292. this.toolIndexType = "";
  11293. if (this.isClickColor == i + 1) {
  11294. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11295. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11296. // } else {
  11297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11298. i
  11299. ].toolOpen = true;
  11300. // }
  11301. this.$forceUpdate();
  11302. return;
  11303. }
  11304. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11305. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11306. // } else {
  11307. document.querySelectorAll(".basic_box")[0].scrollTop =
  11308. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11309. this.isClickColor = i + 1;
  11310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11311. // }
  11312. this.$forceUpdate();
  11313. },
  11314. taskOpen(i, stageIndex) {
  11315. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11316. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11317. } else {
  11318. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11319. }
  11320. this.updateWork3(stageIndex);
  11321. this.$forceUpdate();
  11322. },
  11323. goToTask2(i, stage) {
  11324. this.toolIndexType = "";
  11325. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11326. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11327. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11328. // } else {
  11329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11330. i
  11331. ].toolOpen = true;
  11332. // }
  11333. this.$forceUpdate();
  11334. return;
  11335. }
  11336. if (this.unitIndex != stage) {
  11337. if (this.panUnitJson() == 2) {
  11338. return;
  11339. }
  11340. this.unitSet(stage);
  11341. }
  11342. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11343. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11344. // } else {
  11345. document.querySelectorAll(".basic_box")[0].scrollTop =
  11346. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11347. this.isClickColor = i + 1;
  11348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11349. // }
  11350. this.$forceUpdate();
  11351. },
  11352. taskMove(type, index) {
  11353. this.$confirm(
  11354. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11355. "提示",
  11356. {
  11357. confirmButtonText: "确定",
  11358. cancelButtonText: "取消",
  11359. type: "warning",
  11360. }
  11361. )
  11362. .then(() => {
  11363. if (type == 1) {
  11364. if (index > 0) {
  11365. let a = JSON.parse(
  11366. JSON.stringify(
  11367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11368. index - 1
  11369. ]
  11370. )
  11371. );
  11372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11375. }
  11376. } else {
  11377. if (
  11378. index <
  11379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11380. ) {
  11381. let a = JSON.parse(
  11382. JSON.stringify(
  11383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11384. index + 1
  11385. ]
  11386. )
  11387. );
  11388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11389. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11391. }
  11392. }
  11393. this.$forceUpdate();
  11394. })
  11395. .catch(() => {
  11396. return;
  11397. });
  11398. },
  11399. stageMove(type, index) {
  11400. if (type == 1) {
  11401. if (index > 0) {
  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. } else {
  11415. if (index < this.unitJson3.length - 1) {
  11416. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11417. let acid = JSON.parse(
  11418. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11419. );
  11420. let bcid = JSON.parse(
  11421. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11422. );
  11423. this.unitJson3[index + 1] = this.unitJson3[index];
  11424. this.unitJson3[index] = a;
  11425. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11426. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11427. }
  11428. }
  11429. this.$forceUpdate();
  11430. },
  11431. addGroup(i) {
  11432. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11433. this.groupJson.group.push({
  11434. name: "第" + (this.groupJson.group.length + 1) + "组",
  11435. });
  11436. },
  11437. deleteGroup(i) {
  11438. this.groupJson.group.splice(i, 1);
  11439. },
  11440. numberPan() {
  11441. if (
  11442. /[^\d]/.test(this.groupJson.number) ||
  11443. this.groupJson.number < 2 ||
  11444. this.groupJson.number > 10
  11445. ) {
  11446. this.$message.error("请输入2-10的数字");
  11447. this.groupJson.number = "";
  11448. }
  11449. },
  11450. addGroupJson() {
  11451. for (var i = 0; i < this.groupJson.group.length; i++) {
  11452. if (!this.groupJson.group[i].name) {
  11453. this.$message.error("请将信息填写完整!");
  11454. return;
  11455. }
  11456. }
  11457. if (!this.groupJson.number) {
  11458. this.$message.error("请将信息填写完整!");
  11459. return;
  11460. }
  11461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11462. this.taskCount
  11463. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11464. JSON.stringify(this.groupJson)
  11465. );
  11466. this.dialogVisibleGroup = false;
  11467. this.groupJson = {};
  11468. if (
  11469. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11470. .toolChoose[this.toolIndex].tool != 49
  11471. ) {
  11472. this.addTools(49, this.taskCount, this.toolIndex);
  11473. }
  11474. },
  11475. updateTime(preTime) {
  11476. this.preTime = preTime;
  11477. },
  11478. InviteChange(val) {
  11479. console.log(val);
  11480. let _check = [];
  11481. let _check2 = [];
  11482. for (var i = 0; i < this.grade2.length; i++) {
  11483. var gid = this.grade2[i].id;
  11484. _check.push(gid);
  11485. }
  11486. for (var i = 0; i < this.checkboxList2.length; i++) {
  11487. var _id = this.checkboxList2[i];
  11488. if (_check.indexOf(_id) !== -1) {
  11489. _check2.push(_id);
  11490. }
  11491. }
  11492. this.checkAll = _check2.length === _check.length;
  11493. return;
  11494. let array = JSON.parse(JSON.stringify(val));
  11495. this.inviteCode = this.inviteCode.filter((el) => {
  11496. if (val.indexOf(el.cid) != -1) {
  11497. array.splice(array.indexOf(el.cid), 1);
  11498. return el;
  11499. }
  11500. });
  11501. for (var i = 0; i < array.length; i++) {
  11502. this.getInviteCode(array[i]);
  11503. }
  11504. },
  11505. InviteChange2(val) {
  11506. console.log(val);
  11507. let _check = [];
  11508. let _check2 = [];
  11509. for (var i = 0; i < this.teacherJuri.length; i++) {
  11510. var gid = this.teacherJuri[i].userid;
  11511. _check.push(gid);
  11512. }
  11513. for (var i = 0; i < this.checkboxList3.length; i++) {
  11514. var _id = this.checkboxList3[i];
  11515. if (_check.indexOf(_id) !== -1) {
  11516. _check2.push(_id);
  11517. }
  11518. }
  11519. this.checkAll2 = _check2.length === _check.length;
  11520. this.setMan();
  11521. return;
  11522. let array = JSON.parse(JSON.stringify(val));
  11523. this.inviteCode = this.inviteCode.filter((el) => {
  11524. if (val.indexOf(el.cid) != -1) {
  11525. array.splice(array.indexOf(el.cid), 1);
  11526. return el;
  11527. }
  11528. });
  11529. for (var i = 0; i < array.length; i++) {
  11530. this.getInviteCode(array[i]);
  11531. }
  11532. },
  11533. handleCheckAllChange(val) {
  11534. if (val) {
  11535. for (var i = 0; i < this.grade2.length; i++) {
  11536. var gid = this.grade2[i].id;
  11537. if (this.checkboxList2.indexOf(gid) === -1) {
  11538. this.checkboxList2.push(gid);
  11539. }
  11540. }
  11541. } else {
  11542. let _check = [];
  11543. let _check2 = [];
  11544. for (var i = 0; i < this.grade2.length; i++) {
  11545. var gid = this.grade2[i].id;
  11546. _check.push(gid);
  11547. }
  11548. for (var i = 0; i < this.checkboxList2.length; i++) {
  11549. var _id = this.checkboxList2[i];
  11550. if (_check.indexOf(_id) === -1) {
  11551. _check2.push(_id);
  11552. }
  11553. }
  11554. this.checkboxList2 = _check2;
  11555. }
  11556. this.isIndeterminate = false;
  11557. },
  11558. handleCheckAllChange2(val) {
  11559. if (val) {
  11560. for (var i = 0; i < this.teacherJuri.length; i++) {
  11561. var gid = this.teacherJuri[i].userid;
  11562. if (this.checkboxList3.indexOf(gid) === -1) {
  11563. this.checkboxList3.push(gid);
  11564. }
  11565. }
  11566. } else {
  11567. let _check = [];
  11568. let _check2 = [];
  11569. for (var i = 0; i < this.teacherJuri.length; i++) {
  11570. var gid = this.teacherJuri[i].userid;
  11571. _check.push(gid);
  11572. }
  11573. for (var i = 0; i < this.checkboxList3.length; i++) {
  11574. var _id = this.checkboxList3[i];
  11575. if (_check.indexOf(_id) === -1) {
  11576. _check2.push(_id);
  11577. }
  11578. }
  11579. this.checkboxList3 = _check2;
  11580. }
  11581. this.isIndeterminate2 = false;
  11582. },
  11583. async getInviteCode(cid) {
  11584. let code = this.randomNumber();
  11585. let params = {
  11586. code: code,
  11587. oid: this.oid,
  11588. };
  11589. let type = 1;
  11590. for (var i = 0; i < this.inviteCode.length; i++) {
  11591. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11592. type = 2;
  11593. }
  11594. }
  11595. if (type == 2) {
  11596. this.getInviteCode(cid);
  11597. return;
  11598. }
  11599. const res = await this.ajax.get(
  11600. this.$store.state.api + "selectInviteCode2",
  11601. params
  11602. );
  11603. if (
  11604. res.data.length &&
  11605. res.data[0].length &&
  11606. res.data[0][0].courseId != this.cid
  11607. ) {
  11608. this.getInviteCode(cid);
  11609. return;
  11610. }
  11611. let array = [];
  11612. for (var i = 0; i < this.inviteCode.length; i++) {
  11613. array.push(this.inviteCode[i].cid);
  11614. }
  11615. if (array.indexOf(cid) != -1) {
  11616. this.inviteCode[array.indexOf(cid)].ic = code;
  11617. } else {
  11618. this.inviteCode.push({ cid: cid, ic: code });
  11619. }
  11620. },
  11621. OpenInviteD(cid) {
  11622. let array = [];
  11623. this.icode = "";
  11624. for (var i = 0; i < this.inviteCode.length; i++) {
  11625. array.push(this.inviteCode[i].cid);
  11626. }
  11627. if (array.indexOf(cid) != -1) {
  11628. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11629. }
  11630. this.inviteId = cid;
  11631. this.dialogVisibleInvite = true;
  11632. },
  11633. addInvite() {
  11634. let reg = /^[A-Za-z0-9]{4,}$/;
  11635. if (!reg.test(this.icode)) {
  11636. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11637. return;
  11638. }
  11639. let type = 1;
  11640. for (var i = 0; i < this.inviteCode.length; i++) {
  11641. if (
  11642. this.inviteCode[i].cid != this.inviteId &&
  11643. this.icode == this.inviteCode[i].ic
  11644. ) {
  11645. type = 2;
  11646. }
  11647. }
  11648. if (type == 2) {
  11649. this.$message.error("已有此随机码,不能重复");
  11650. return;
  11651. }
  11652. let params = {
  11653. code: this.icode,
  11654. oid: this.oid,
  11655. };
  11656. this.ajax
  11657. .get(this.$store.state.api + "selectInviteCode", params)
  11658. .then((res) => {
  11659. if (
  11660. res.data.length &&
  11661. res.data[0].length &&
  11662. res.data[0][0].courseId != this.cid
  11663. ) {
  11664. this.$message.error("已有此随机码,不能重复");
  11665. return;
  11666. }
  11667. let array = [];
  11668. for (var i = 0; i < this.inviteCode.length; i++) {
  11669. array.push(this.inviteCode[i].cid);
  11670. }
  11671. if (array.indexOf(this.inviteId) != -1) {
  11672. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11673. } else {
  11674. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11675. }
  11676. this.icode = "";
  11677. this.dialogVisibleInvite = false;
  11678. })
  11679. .catch((err) => {
  11680. console.error(err);
  11681. });
  11682. },
  11683. randomNumber() {
  11684. // 随机生成两位数
  11685. // let num = Math.floor(Math.random() * 900) + 100;
  11686. // 生成 0 到 99 之间的随机整数
  11687. const randomNumber = Math.floor(Math.random() * 100);
  11688. // 如果随机数小于 10,补上前导零
  11689. const num =
  11690. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11691. // 随机生成两个大写字母
  11692. let letters = "";
  11693. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11694. for (let i = 0; i < 3; i++) {
  11695. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11696. }
  11697. // 随机生成两位数字和字母的组合
  11698. let mix = "";
  11699. let chars =
  11700. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11701. for (let i = 0; i < 3; i++) {
  11702. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11703. mix += char;
  11704. }
  11705. // 随机选择一种类型
  11706. let type = Math.floor(Math.random() * 3);
  11707. return num;
  11708. // 根据类型输出结果
  11709. switch (type) {
  11710. case 0:
  11711. console.log(num); // 输出两位数
  11712. return num;
  11713. case 1:
  11714. console.log(letters); // 输出两个大写字母
  11715. return letters;
  11716. case 2:
  11717. console.log(mix); // 输出两位数字和字母的组合
  11718. return mix;
  11719. }
  11720. },
  11721. getPaste() {
  11722. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11723. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11724. if (!iframe && !iframe2) {
  11725. return;
  11726. }
  11727. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11728. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11729. if (copyData && copyData.stageData && copyData.stageData.length) {
  11730. this.isPasteStage = true;
  11731. }
  11732. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11733. this.isPasteStage = true;
  11734. }
  11735. if (copyData && copyData.selectData.length) {
  11736. this.isPasteChoice = true;
  11737. }
  11738. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11739. this.isPasteTask = true;
  11740. }
  11741. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11742. this.isPasteTask = true;
  11743. }
  11744. },
  11745. searchImage() {
  11746. var _this = this;
  11747. _this.imageList = [];
  11748. if (!_this.searchImageValue) {
  11749. _this.sysPicVisible2 = true;
  11750. return;
  11751. }
  11752. _this.imageloading = true;
  11753. _this.ajax
  11754. .post("https://gpt.cocorobo.cn/search_image", {
  11755. page: _this.ppage,
  11756. pagesize: 9,
  11757. query: _this.searchImageValue,
  11758. })
  11759. .then(function (response) {
  11760. // console.log(response.data.data);
  11761. var data = response.data.FunctionResponse.result;
  11762. for (var i = 0; i < data.length; i++) {
  11763. _this.imageList.push({ url: data[i].thumbnail });
  11764. }
  11765. _this.imageloading = false;
  11766. })
  11767. .catch(function (error) {
  11768. console.log(error);
  11769. });
  11770. _this.sysPicVisible2 = true;
  11771. },
  11772. changePicture() {
  11773. this.ppage++;
  11774. this.searchImage();
  11775. },
  11776. resetImage() {
  11777. this.ppage = 1;
  11778. this.searchImage();
  11779. },
  11780. jumpGj(i, j) {
  11781. if (i + 1 != this.isClickColor) {
  11782. this.isClickColor = i + 1;
  11783. }
  11784. var a = document.scrollingElement;
  11785. this.toolIndexType = `gj${i}${j}`;
  11786. let target = document.querySelector(`#gj${i}${j}`);
  11787. if (target) {
  11788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11789. setTimeout(() => {
  11790. target.scrollIntoView(true);
  11791. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11792. j
  11793. ].isFold3 = false;
  11794. setTimeout(() => {
  11795. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11796. }, 0);
  11797. }, 0);
  11798. }
  11799. },
  11800. jumpGj2(i, j, k) {
  11801. if (this.unitIndex != k) {
  11802. if (this.panUnitJson() == 2) {
  11803. return;
  11804. }
  11805. this.unitSet(k);
  11806. }
  11807. setTimeout(() => {
  11808. if (i + 1 != this.isClickColor) {
  11809. this.isClickColor = i + 1;
  11810. }
  11811. var a = document.scrollingElement;
  11812. this.toolIndexType = `gj${i}${j}${k}`;
  11813. let target = document.querySelector(`#gj${i}${j}`);
  11814. if (target) {
  11815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11816. setTimeout(() => {
  11817. target.scrollIntoView(true);
  11818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11819. j
  11820. ].isFold3 = false;
  11821. setTimeout(() => {
  11822. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11823. }, 0);
  11824. }, 0);
  11825. }
  11826. }, 0);
  11827. },
  11828. dragStart(val, i, j) {
  11829. console.log(this.taskCount);
  11830. this.dragType = "drag";
  11831. this.taskCount = j;
  11832. this.oldIndex = i;
  11833. this.oldData = val;
  11834. },
  11835. dragOver(i, j) {
  11836. this.typeIndex = "chapter-" + j + "-" + i;
  11837. this.newIndex = i;
  11838. },
  11839. dragEnd() {
  11840. if (this.dragType != "drag") {
  11841. this.typeIndex = "";
  11842. this.newIndex = "";
  11843. this.dragType = "";
  11844. this.isdrag = "";
  11845. return;
  11846. }
  11847. console.log(this.taskCount);
  11848. let newItems = [
  11849. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11850. .chapterData,
  11851. ];
  11852. // 删除老的节点
  11853. newItems.splice(this.oldIndex, 1);
  11854. // 在列表中目标位置增加新的节点
  11855. newItems.splice(this.newIndex, 0, this.oldData);
  11856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11857. this.taskCount
  11858. ].chapterData = [...newItems];
  11859. this.typeIndex = "";
  11860. this.newIndex = "";
  11861. this.dragType = "";
  11862. this.isdrag = "";
  11863. this.$forceUpdate();
  11864. },
  11865. dragTaskStart(val, i, j) {
  11866. this.dragType = "task";
  11867. this.oldIndex = i;
  11868. this.oldData = val;
  11869. this.oldUnitIndex = j;
  11870. },
  11871. dragTaskOver(i, j) {
  11872. this.typeIndex = "task-" + i;
  11873. this.newIndex = i;
  11874. this.checkUnitIndex = j;
  11875. },
  11876. async dragTaskEnd() {
  11877. if (this.dragType != "task") {
  11878. this.newIndex = "";
  11879. this.dragType = "";
  11880. this.typeIndex = "";
  11881. this.checkUnitIndex = "";
  11882. this.isdrag = "";
  11883. return;
  11884. }
  11885. if (
  11886. this.newIndex == this.oldIndex &&
  11887. this.oldUnitIndex == this.checkUnitIndex
  11888. ) {
  11889. this.newIndex = "";
  11890. this.dragType = "";
  11891. this.typeIndex = "";
  11892. this.checkUnitIndex = "";
  11893. this.isdrag = "";
  11894. return;
  11895. }
  11896. let count1 = await this.getWorksCount(
  11897. 2,
  11898. this.checkUnitIndex,
  11899. this.newIndex,
  11900. 0
  11901. );
  11902. let count2 = await this.getWorksCount(
  11903. 2,
  11904. this.oldUnitIndex,
  11905. this.oldIndex,
  11906. 0
  11907. );
  11908. if (count1 > 0 || count2 > 0) {
  11909. this.$confirm(
  11910. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11911. "提示",
  11912. {
  11913. confirmButtonText: "确定",
  11914. cancelButtonText: "取消",
  11915. type: "warning",
  11916. }
  11917. )
  11918. .then(() => {
  11919. if (this.oldUnitIndex != this.checkUnitIndex) {
  11920. let newItems = [
  11921. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11922. ];
  11923. // 删除老的节点
  11924. newItems.splice(this.oldIndex, 1);
  11925. // 在列表中目标位置增加新的节点
  11926. let newItems2 = [
  11927. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11928. ];
  11929. newItems2.splice(this.newIndex, 0, this.oldData);
  11930. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11931. ...newItems,
  11932. ];
  11933. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11934. ...newItems2,
  11935. ];
  11936. } else {
  11937. let newItems = [
  11938. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11939. ];
  11940. let chapterData = []
  11941. if (this.oldIndex == 0) {
  11942. chapterData = newItems[this.oldIndex].chapterData
  11943. newItems[this.oldIndex].chapterData = []
  11944. } else if (this.newIndex == 0) {
  11945. chapterData = newItems[this.newIndex].chapterData
  11946. newItems[this.oldIndex].chapterData = []
  11947. }
  11948. // 删除老的节点
  11949. newItems.splice(this.oldIndex, 1);
  11950. // 在列表中目标位置增加新的节点
  11951. newItems.splice(this.newIndex, 0, this.oldData);
  11952. if (this.oldIndex == 0 || this.newIndex == 0) {
  11953. newItems[0].chapterData = chapterData
  11954. }
  11955. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11956. ...newItems,
  11957. ];
  11958. }
  11959. this.typeIndex = "";
  11960. this.newIndex = "";
  11961. this.dragType = "";
  11962. this.checkUnitIndex = "";
  11963. this.isdrag = "";
  11964. this.updateWork();
  11965. this.$forceUpdate();
  11966. })
  11967. .catch(() => {
  11968. this.newIndex = "";
  11969. this.dragType = "";
  11970. this.typeIndex = "";
  11971. this.checkUnitIndex = "";
  11972. this.isdrag = "";
  11973. return;
  11974. });
  11975. } else {
  11976. if (this.oldUnitIndex != this.checkUnitIndex) {
  11977. let newItems = [
  11978. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11979. ];
  11980. // 删除老的节点
  11981. newItems.splice(this.oldIndex, 1);
  11982. // 在列表中目标位置增加新的节点
  11983. let newItems2 = [
  11984. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11985. ];
  11986. newItems2.splice(this.newIndex, 0, this.oldData);
  11987. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11988. ...newItems,
  11989. ];
  11990. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11991. ...newItems2,
  11992. ];
  11993. } else {
  11994. let newItems = [
  11995. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11996. ];
  11997. let chapterData = []
  11998. if (this.oldIndex == 0) {
  11999. chapterData = newItems[this.oldIndex].chapterData
  12000. newItems[this.oldIndex].chapterData = []
  12001. } else if (this.newIndex == 0) {
  12002. chapterData = newItems[this.newIndex].chapterData
  12003. newItems[this.oldIndex].chapterData = []
  12004. }
  12005. // 删除老的节点
  12006. newItems.splice(this.oldIndex, 1);
  12007. // 在列表中目标位置增加新的节点
  12008. newItems.splice(this.newIndex, 0, this.oldData);
  12009. if (this.oldIndex == 0 || this.newIndex == 0) {
  12010. newItems[0].chapterData = chapterData
  12011. }
  12012. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12013. ...newItems,
  12014. ];
  12015. }
  12016. this.typeIndex = "";
  12017. this.newIndex = "";
  12018. this.dragType = "";
  12019. this.checkUnitIndex = "";
  12020. this.isdrag = "";
  12021. this.updateWork();
  12022. this.$forceUpdate();
  12023. }
  12024. },
  12025. dragUnitStart(val, i) {
  12026. this.dragType = "Unit";
  12027. this.oldIndex = i;
  12028. this.oldData = val;
  12029. },
  12030. dragUnitOver(i) {
  12031. this.typeIndex = "Unit-" + i;
  12032. this.newIndex = i;
  12033. console.log(i, this.unitJson[i].toolOpen);
  12034. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12035. this.unitJson[i].toolOpen = true;
  12036. this.updateWork();
  12037. this.$forceUpdate();
  12038. }
  12039. },
  12040. async dragUnitEnd() {
  12041. if (this.dragType != "Unit") {
  12042. this.newIndex = "";
  12043. this.dragType = "";
  12044. this.typeIndex = "";
  12045. this.isdrag = "";
  12046. return;
  12047. }
  12048. if (this.newIndex == this.oldIndex) {
  12049. this.newIndex = "";
  12050. this.dragType = "";
  12051. this.typeIndex = "";
  12052. this.isdrag = "";
  12053. return;
  12054. }
  12055. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12056. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12057. console.log(count1, count2);
  12058. if (count1 > 0 || count2 > 0) {
  12059. this.$confirm(
  12060. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12061. "提示",
  12062. {
  12063. confirmButtonText: "确定",
  12064. cancelButtonText: "取消",
  12065. type: "warning",
  12066. }
  12067. )
  12068. .then(() => {
  12069. let newItems = [...this.unitJson];
  12070. // 删除老的节点
  12071. newItems.splice(this.oldIndex, 1);
  12072. // 在列表中目标位置增加新的节点
  12073. newItems.splice(this.newIndex, 0, this.oldData);
  12074. this.unitJson = [...newItems];
  12075. this.typeIndex = "";
  12076. this.newIndex = "";
  12077. this.dragType = "";
  12078. this.isdrag = "";
  12079. this.updateWork();
  12080. this.$forceUpdate();
  12081. })
  12082. .catch(() => {
  12083. this.newIndex = "";
  12084. this.dragType = "";
  12085. this.typeIndex = "";
  12086. this.isdrag = "";
  12087. return;
  12088. });
  12089. } else {
  12090. let newItems = [...this.unitJson];
  12091. // 删除老的节点
  12092. newItems.splice(this.oldIndex, 1);
  12093. // 在列表中目标位置增加新的节点
  12094. newItems.splice(this.newIndex, 0, this.oldData);
  12095. this.unitJson = [...newItems];
  12096. this.typeIndex = "";
  12097. this.newIndex = "";
  12098. this.dragType = "";
  12099. this.isdrag = "";
  12100. this.updateWork();
  12101. this.$forceUpdate();
  12102. }
  12103. },
  12104. getWorksCount(type, stage, task, tool) {
  12105. return new Promise((resolve, reject) => {
  12106. let params = [
  12107. {
  12108. cid: this.cid,
  12109. stage: stage,
  12110. task: task,
  12111. tool: tool,
  12112. type: type,
  12113. },
  12114. ];
  12115. this.ajax
  12116. .post(this.$store.state.api + "getCourseWorkCount", params)
  12117. .then((res) => {
  12118. let count = res.data[0][0].count;
  12119. resolve(count);
  12120. })
  12121. .catch((err) => {
  12122. resolve(0);
  12123. this.$message.error("网络不佳");
  12124. console.error(err);
  12125. });
  12126. });
  12127. },
  12128. getTwoType(id) {
  12129. this.twoJson = [];
  12130. var array = this.CourseTypeJson1[
  12131. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12132. ].filter((e) => {
  12133. return e.ppid == id;
  12134. });
  12135. this.twoJson = array;
  12136. this.$forceUpdate();
  12137. },
  12138. ctype() {
  12139. this.oneJson =
  12140. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12141. },
  12142. selectAllType1() {
  12143. this.CourseType1 = [];
  12144. this.CourseTypeJson1 = {};
  12145. this.courseTypeId1 = {};
  12146. this.$forceUpdate();
  12147. let params = {
  12148. org: this.org && this.org != "" ? this.org : "",
  12149. oid: this.oid && this.oid != "" ? this.oid : "",
  12150. };
  12151. this.ajax
  12152. .get(this.$store.state.api + "selectAllEvaType", params)
  12153. .then((res) => {
  12154. this.CourseType1 = res.data;
  12155. for (var i = 0; i < res.data[0].length; i++) {
  12156. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12157. res.data[0][i].name = "一级分类";
  12158. } else if (
  12159. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12160. ) {
  12161. res.data[0][i].name = "二级分类";
  12162. }
  12163. if (!this.cid) {
  12164. this.courseTypeId1[res.data[0][i].id] = [];
  12165. }
  12166. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12167. this.CourseTypeJson1[res.data[0][i].id] = [];
  12168. }
  12169. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12170. for (var j = 0; j < res.data[1].length; j++) {
  12171. if (res.data[0][i].id == res.data[1][j].pid) {
  12172. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12173. }
  12174. }
  12175. // } else {
  12176. if (res.data[2].length > 0) {
  12177. for (var j = 0; j < res.data[2].length; j++) {
  12178. if (res.data[0][i].id == res.data[2][j].pid) {
  12179. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12180. }
  12181. }
  12182. }
  12183. if (res.data[3].length > 0) {
  12184. for (var j = 0; j < res.data[3].length; j++) {
  12185. if (res.data[0][i].id == res.data[3][j].pid) {
  12186. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12187. }
  12188. }
  12189. }
  12190. // }
  12191. }
  12192. this.ctype();
  12193. this.cetBoxDialog = true;
  12194. })
  12195. .catch((err) => {
  12196. console.error(err);
  12197. });
  12198. },
  12199. openAiDialog(clickType, type, callback, index, tindex) {
  12200. this.clickType = clickType
  12201. let sub = []
  12202. if (this.courseTypeId.length) {
  12203. for (var i = 0; i < this.courseTypeId.length; i++) {
  12204. let _sid = this.courseTypeId[i]
  12205. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12206. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12207. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12208. }
  12209. }
  12210. }
  12211. }
  12212. if (type == "aiDetail") {
  12213. if (this.ttextLoading) {
  12214. this.$message({
  12215. message: "请回答完毕后再次发送",
  12216. type: "warning"
  12217. });
  12218. return;
  12219. }
  12220. this.aitype = "aiDetail"
  12221. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12222. this.aiText = this.aiJson.aiDetail
  12223. } else if (type == "aiOutline") {
  12224. this.aitype = "aiOutline"
  12225. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12226. this.aiText = this.aiJson.aiOutline
  12227. } else if (type == "aiTask") {
  12228. this.aitype = "aiTask"
  12229. var _text = ""
  12230. for (var i = 0; i < this.teacherText.length; i++) {
  12231. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12232. }
  12233. // this.aiText = `请根据${_text}。`
  12234. this.aiText = this.aiJson.aiTask
  12235. this.aiCallBack = callback
  12236. } else if (type == "aiDetail1") {
  12237. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12238. this.$message({
  12239. message: "请回答完毕后再次发送",
  12240. type: "warning"
  12241. });
  12242. return;
  12243. }
  12244. this.aitype = "aiDetail1"
  12245. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12246. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12247. this.aiText = this.aiJson.aiDetail1
  12248. this.aiCallBack = callback
  12249. this.aiIndex = index
  12250. } else if (type == "aiDetail2") {
  12251. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12252. this.$message({
  12253. message: "请回答完毕后再次发送",
  12254. type: "warning"
  12255. });
  12256. return;
  12257. }
  12258. this.aitype = "aiDetail2"
  12259. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12260. this.aiText = this.aiJson.aiDetail2
  12261. this.aiCallBack = callback
  12262. this.aiIndex = index
  12263. } else if (type == "aiDetail3") {
  12264. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12265. this.$message({
  12266. message: "请回答完毕后再次发送",
  12267. type: "warning"
  12268. });
  12269. return;
  12270. }
  12271. this.aitype = "aiDetail3"
  12272. this.aiText = this.aiJson.aiDetail3
  12273. this.aiIndex = index + '-' + tindex
  12274. } else if (type == "aiDetail4") {
  12275. var _text = ""
  12276. for (var i = 0; i < callback.length; i++) {
  12277. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12278. }
  12279. this.aitype = "aiDetail4"
  12280. this.aiText = this.aiJson.aiDetail4
  12281. this.aiIndex = index
  12282. } else if (type == "aiTeacher") {
  12283. this.aitype = "aiTeacher"
  12284. var _text = ""
  12285. for (var i = 0; i < this.dArray.length; i++) {
  12286. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12287. }
  12288. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12289. this.aiText = this.aiJson.aiTeacher
  12290. this.aiCallBack = callback
  12291. } else if (type == "teacherDetail") {
  12292. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  12293. this.$message({
  12294. message: "请回答完毕后再次发送",
  12295. type: "warning"
  12296. });
  12297. return;
  12298. }
  12299. this.aitype = "teacherDetail"
  12300. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12301. this.aiText = this.aiJson.teacherDetail
  12302. this.aiCallBack = callback
  12303. this.aiIndex = index
  12304. }
  12305. this.dialogVisibleAiD = true
  12306. },
  12307. aiConfirm(msg) {
  12308. let sub = []
  12309. if (this.courseTypeId.length) {
  12310. for (var i = 0; i < this.courseTypeId.length; i++) {
  12311. let _sid = this.courseTypeId[i]
  12312. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12313. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12314. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12315. }
  12316. }
  12317. }
  12318. }
  12319. let url = []
  12320. if (this.infoData.length) {
  12321. for (var i = 0; i < this.infoData.length; i++) {
  12322. url.push(this.infoData[i].url)
  12323. }
  12324. }
  12325. if (this.aitype == "aiDetail") {
  12326. this.detailYou(msg)
  12327. } else if (this.aitype == "aiOutline") {
  12328. this.loading = true
  12329. let message = `
  12330. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12331. --------
  12332. ## 要求
  12333. ${msg} **你需要使用C-POTE教学活动设计框架,其定义参考#补充参考资料 中的C-POTE**。以及##补充参考资料和##参考资料,
  12334. 然后根据Format example的要求返回要以数组的格式
  12335. --------
  12336. ## Format example
  12337. [
  12338. {
  12339. "task": "任务名称1",
  12340. "detail": "任务设计和评价标准"
  12341. },
  12342. {
  12343. "task": "任务名称2",
  12344. "detail": "任务设计和评价标准"
  12345. }
  12346. ]
  12347. --------
  12348. ## 参考资料
  12349. 课程名字:${this.courseName}
  12350. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12351. 学科:${sub.length ? sub.join(",") : "无"}
  12352. 班级:${this.getListClassC(this.checkboxList2)}
  12353. --------
  12354. ## 补充参考资料
  12355. - C-POTE定义:
  12356. C-POTE模型是一种针对跨学科主题学习的教学设计模型,它是在新课标导向下提出的,旨在帮助教师更好地开展跨学科主题学习活动。C-POTE模型的核心是以大概念为基础,以核心素养为导向,通过合理部署内容组织、问题设计、目标制定、任务设计、教学评价等环节,促进学生的深度学习和创新能力的发展。C-POTE模型的名称来源于其五个核心组成部分,分别是:概念群(Concept Group):作为模型的基础,概念群负责将不同学科的知识点进行整合,形成有意义的认知网络。教师需要遴选重要的大概念,使之形成更大的跨学科概念群,为后续的教学活动奠定基础。问题链(Problem Chain):围绕大概念设计一系列有逻辑结构的问题,从具体到抽象,形成问题链。问题链的目的是引导学生通过问题解决的过程深化对大概念的理解。目标层(Objective Layer):明确教学目标,将核心素养具体化,分为“双基—学科思维—高阶素养”三个层次。教师需要根据学科课程标准中的核心素养,将其转化为具体的教学目标。任务簇(Task Cluster):设计一系列指向核心素养的表现性任务,将大任务拆解为若干个活动序列,确保学生能够通过实践活动实现学习目标。证据集(Evidence Set):评价学生学习成果的依据,通过收集学生在跨学科实践过程中的表现证据,进行综合性评价,以促进学生核心素养的发展。
  12357. 补充资料:${url.join(",")}
  12358. 补充描述:${this.courseText2}
  12359. `
  12360. this.aiGet2(message, () => {
  12361. this.loading = false
  12362. this.isOutline = true
  12363. })
  12364. } else if (this.aitype == "aiTask") {
  12365. var _text = ""
  12366. for (var i = 0; i < this.teacherText.length; i++) {
  12367. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12368. }
  12369. let message = `NOTICE
  12370. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12371. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  12372. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12373. Instruction: Based on the context, follow "Format example", write content.
  12374. # Context
  12375. ## 要求
  12376. ${msg} 以及#补充参考资料和#教学任务教案 输出格式和内容要求参考##格式与要求
  12377. ## 教学任务教案
  12378. ${_text}
  12379. ## 格式与要求
  12380. 任务名:
  12381. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  12382. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12383. 平台工具:
  12384. 工具名:**从工具列表**中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  12385. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  12386. ## 补充参考资料
  12387. 补充资料:${url.join(",")}
  12388. 补充描述:${this.courseText2}
  12389. ## 示例
  12390. [
  12391. {
  12392. "detail": "面向学生的任务描述",
  12393. "elist":[
  12394. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12395. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12396. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12397. ],
  12398. "toolChoose": [
  12399. {
  12400. "tool":"电子白板",
  12401. "detail": "工具描述"
  12402. },
  12403. {
  12404. "tool":"思维大图",
  12405. "detail": "工具描述"
  12406. }
  12407. ]
  12408. },
  12409. {
  12410. "detail": "面向学生的任务描述",
  12411. "elist":[
  12412. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12413. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12414. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12415. ],
  12416. "toolChoose": []
  12417. },
  12418. {
  12419. "detail": "面向学生的任务描述",
  12420. "elist":[
  12421. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12422. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12423. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12424. ],
  12425. "toolChoose": [
  12426. {
  12427. "tool":"文档",
  12428. "detail": "工具描述"
  12429. }
  12430. ]
  12431. }
  12432. ]
  12433. # Format example
  12434. [
  12435. {
  12436. "detail": "该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。",
  12437. "elist":[
  12438. {"value":"评价名字1","detail":"评价维度1","score":5},
  12439. {"value":"评价名字2","detail":"评价维度2","score":5},
  12440. {"value":"评价名字3","detail":"评价维度3","score":5}
  12441. ],//至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12442. "toolChoose": [
  12443. {
  12444. "tool": "工具", //电子白板,文档,思维导图,表格,作业提交中选择其中一个工具
  12445. "detail": "工具描述"
  12446. }
  12447. ] //可0~2个工具
  12448. }
  12449. ]`
  12450. this.loading = true
  12451. this.aiGet3(message, this.aiCallBack)
  12452. } else if (this.aitype == "aiDetail1") {
  12453. this.aiDetail(msg, this.aiIndex)
  12454. } else if (this.aitype == "aiDetail2") {
  12455. this.aiDetail2(msg, this.aiIndex)
  12456. } else if (this.aitype == "aiDetail3") {
  12457. let _index = this.aiIndex.split('-')
  12458. this.aiDetail3(msg, _index[0], _index[1])
  12459. } else if (this.aitype == "aiDetail4") {
  12460. this.aiDetail4(msg, this.aiIndex)
  12461. } else if (this.aitype == "teacherDetail") {
  12462. this.aiDetail5(msg, this.aiIndex)
  12463. } else if (this.aitype == "aiTeacher") {
  12464. this.loading = true
  12465. var _text = ""
  12466. for (var i = 0; i < this.dArray.length; i++) {
  12467. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12468. }
  12469. let message = `
  12470. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12471. --------
  12472. ## 要求
  12473. ${msg} 以及##补充参考资料和##任务大纲, 然后根据Format example的要求返回要以数组的格式
  12474. --------
  12475. ## 任务大纲
  12476. ${_text}
  12477. --------
  12478. ## 补充参考资料
  12479. 补充资料:${url.join(",")}
  12480. 补充描述:${this.courseText2}
  12481. --------
  12482. ## Format example
  12483. [
  12484. {
  12485. "task": "任务名称1",
  12486. "detail": "教案输出为文本格式就行"
  12487. },
  12488. {
  12489. "task": "任务名称2",
  12490. "detail": "教案输出为文本格式就行"
  12491. }
  12492. ]`
  12493. this.aiGet4(message, () => {
  12494. this.loading = false
  12495. this.isOutline2 = true
  12496. })
  12497. }
  12498. },
  12499. detailYou(message) {
  12500. this.textLoading = true
  12501. this.ttextLoading = true
  12502. let sub = []
  12503. if (this.courseTypeId.length) {
  12504. for (var i = 0; i < this.courseTypeId.length; i++) {
  12505. let _sid = this.courseTypeId[i]
  12506. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12507. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12508. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12509. }
  12510. }
  12511. }
  12512. }
  12513. let url = []
  12514. if (this.infoData.length) {
  12515. for (var i = 0; i < this.infoData.length; i++) {
  12516. url.push(this.infoData[i].url)
  12517. }
  12518. }
  12519. let msg = `
  12520. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12521. --------
  12522. ## 参考资料
  12523. 课程名字:${this.courseName}
  12524. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12525. 学科:${sub.length ? sub.join(",") : "无"}
  12526. 班级:${this.getListClassC(this.checkboxList2)}
  12527. --------
  12528. ## 补充参考资料
  12529. 补充资料:${url.join(",")}
  12530. 补充描述:${this.courseText2}
  12531. --------
  12532. ## 要求
  12533. ${message} 以及##补充参考资料和##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  12534. --------
  12535. ## Format example
  12536. -课程简要描述:
  12537. -驱动性问题:**1个**驱动整个项目的问题
  12538. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  12539. this.aiGet(msg)
  12540. },
  12541. setUnitJson() {
  12542. 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 }] }
  12543. this.$forceUpdate()
  12544. },
  12545. aiGet(messages) {
  12546. let _this = this
  12547. let _uuid = uuidv4();
  12548. let params = JSON.stringify({
  12549. // "model": "Chat",
  12550. model: 'gpt-3.5-turbo',
  12551. temperature: 0,
  12552. max_tokens: 4096,
  12553. top_p: 1,
  12554. frequency_penalty: 0,
  12555. presence_penalty: 0,
  12556. messages: [{
  12557. content: messages,
  12558. role: 'user'
  12559. }],
  12560. uid: _uuid,
  12561. mind_map_question: "",
  12562. })
  12563. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12564. console.log(response);
  12565. // let data = response.data.FunctionResponse
  12566. // if (data.choices && data.choices.length && data.choices[0].message) {
  12567. // _this.courseText = data.choices[0].message.content
  12568. // }
  12569. if (response.data.FunctionResponse.result == "发送成功") {
  12570. } else {
  12571. this.$message.warning(response.data.FunctionResponse.result);
  12572. }
  12573. }).catch(function (error) {
  12574. _this.textLoading = false
  12575. _this.ttextLoading = false
  12576. console.log(error);
  12577. });
  12578. _this.aiGetgetAiContent(_uuid)
  12579. },
  12580. aiGetgetAiContent(_uid) {
  12581. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12582. let _allText = "";
  12583. let _mdText = "";
  12584. _source.onmessage = _e => {
  12585. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12586. //对话已经完成
  12587. _mdText = _mdText.replace("_", "");
  12588. _source.close();
  12589. this.courseText = _mdText;
  12590. this.textLoading = false
  12591. this.ttextLoading = false
  12592. return;
  12593. } else {
  12594. //对话还在继续
  12595. let _text = "";
  12596. _text = _e.data.replaceAll("'", "");
  12597. if (_allText == "") {
  12598. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12599. } else {
  12600. _allText += _text;
  12601. }
  12602. _mdText = _allText + "_";
  12603. _mdText = _mdText.replace(/\\n/g, "\n");
  12604. _mdText = _mdText.replace(/\\/g, "");
  12605. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12606. //转化返回的回复流数据
  12607. this.courseText = _mdText;
  12608. this.textLoading = false
  12609. // 处理流数据
  12610. }
  12611. };
  12612. },
  12613. aiGet2(messages, callback) {
  12614. let _this = this
  12615. let params = JSON.stringify({
  12616. // "model": "Chat",
  12617. model: 'gpt-3.5-turbo',
  12618. temperature: 0,
  12619. max_tokens: 4096,
  12620. top_p: 1,
  12621. frequency_penalty: 0,
  12622. presence_penalty: 0,
  12623. messages: [{
  12624. content: messages,
  12625. role: 'user'
  12626. }],
  12627. stream: false,
  12628. uid: this.userid,
  12629. mind_map_question: "",
  12630. })
  12631. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12632. console.log(response);
  12633. let data = response.data.FunctionResponse
  12634. if (data.choices && data.choices.length && data.choices[0].message) {
  12635. console.log(data.choices[0].message.content);
  12636. let dArray = JSON.parse(data.choices[0].message.content)
  12637. _this.dArray = dArray
  12638. _this.unitJson[0].chapterInfo[0].taskJson = []
  12639. for (var i = 0; i < dArray.length; i++) {
  12640. let _task = dArray[i]
  12641. _this.unitJson[0].chapterInfo[0].taskJson.push({
  12642. task: _task.task,
  12643. taskDetail: "",
  12644. taskDetail2: _task.detail,
  12645. taskDetail3: "",
  12646. chapterData: [],
  12647. toolText: "",
  12648. toolChoose: [
  12649. {
  12650. tool: [],
  12651. toolDetail: "",
  12652. toolType: 0,
  12653. askCount: 1,
  12654. askTitle: "",
  12655. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12656. },
  12657. ],
  12658. isShowTools: false,
  12659. askCount: 1,
  12660. isFold: 1,
  12661. askTitle: "",
  12662. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12663. checkJson: [{ checkCount: [], checkPerent: [] }],
  12664. homeworkList: [],
  12665. })
  12666. }
  12667. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12668. _this.$forceUpdate();
  12669. }
  12670. callback ? callback() : ''
  12671. }).catch(function (error) {
  12672. _this.loading = false
  12673. console.log(error);
  12674. });
  12675. },
  12676. aiGet3(messages, callback) {
  12677. let _this = this
  12678. let params = JSON.stringify({
  12679. // "model": "Chat",
  12680. model: 'gpt-3.5-turbo',
  12681. temperature: 0,
  12682. max_tokens: 4096,
  12683. top_p: 1,
  12684. frequency_penalty: 0,
  12685. presence_penalty: 0,
  12686. messages: [{
  12687. content: messages,
  12688. role: 'user'
  12689. }],
  12690. stream: false,
  12691. uid: this.userid,
  12692. mind_map_question: "",
  12693. })
  12694. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12695. console.log(response);
  12696. let data = response.data.FunctionResponse
  12697. if (data.choices && data.choices.length && data.choices[0].message) {
  12698. console.log(data.choices[0].message.content);
  12699. let tArray = JSON.parse(data.choices[0].message.content)
  12700. // _this.unitJson[0].chapterInfo[0].task = []
  12701. let toolsJson = {
  12702. "电子白板": { tool: 1, type: 1 },
  12703. "文档": { tool: 52, type: 1 },
  12704. "思维导图": { tool: 3, type: 1 },
  12705. "表格": { tool: 48, type: 1 },
  12706. "作业提交": { tool: 16, type: 2 }
  12707. }
  12708. for (var i = 0; i < tArray.length; i++) {
  12709. let _task = tArray[i]
  12710. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12711. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12712. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12713. if (_task.toolChoose.length) {
  12714. for (var j = 0; j < _task.toolChoose.length; j++) {
  12715. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12716. {
  12717. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12718. toolDetail: _task.toolChoose[j].detail,
  12719. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12720. askCount: 1,
  12721. askTitle: "",
  12722. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12723. },
  12724. )
  12725. }
  12726. } else {
  12727. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12728. {
  12729. tool: [],
  12730. toolDetail: "",
  12731. toolType: 0,
  12732. askCount: 1,
  12733. askTitle: "",
  12734. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12735. },
  12736. )
  12737. }
  12738. }
  12739. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12740. _this.$forceUpdate();
  12741. }
  12742. callback ? callback() : ''
  12743. }).catch(function (error) {
  12744. _this.loading = false
  12745. console.log(error);
  12746. });
  12747. },
  12748. aiGet4(messages, callback, clickType) {
  12749. let _this = this
  12750. let params = JSON.stringify({
  12751. // "model": "Chat",
  12752. model: 'gpt-3.5-turbo',
  12753. temperature: 0,
  12754. max_tokens: 4096,
  12755. top_p: 1,
  12756. frequency_penalty: 0,
  12757. presence_penalty: 0,
  12758. messages: [{
  12759. content: messages,
  12760. role: 'user'
  12761. }],
  12762. stream: false,
  12763. uid: this.userid,
  12764. mind_map_question: "",
  12765. })
  12766. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12767. console.log(response);
  12768. let data = response.data.FunctionResponse
  12769. if (data.choices && data.choices.length && data.choices[0].message) {
  12770. console.log(data.choices[0].message.content);
  12771. let dArray = JSON.parse(data.choices[0].message.content)
  12772. _this.teacherText = JSON.parse(data.choices[0].message.content)
  12773. for (var i = 0; i < dArray.length; i++) {
  12774. let _task = dArray[i]
  12775. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  12776. }
  12777. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12778. _this.$forceUpdate();
  12779. }
  12780. callback ? callback() : ''
  12781. _this.loading = false
  12782. }).catch(function (error) {
  12783. _this.loading = false
  12784. console.log(error);
  12785. });
  12786. },
  12787. aiDetail(msg, index) {
  12788. let _this = this
  12789. const _tindex = 'task-' + index
  12790. const _tindex2 = index
  12791. let url = []
  12792. if (this.infoData.length) {
  12793. for (var i = 0; i < this.infoData.length; i++) {
  12794. url.push(this.infoData[i].url)
  12795. }
  12796. }
  12797. let messages = `
  12798. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12799. --------
  12800. ## 要求
  12801. ${msg} 及#补充参考资料和#教学任务描述 以文本格式输出任务设计和评价标准
  12802. --------
  12803. ## 教学任务描述
  12804. ${_this.aiCallback}
  12805. --------
  12806. ## 补充参考资料
  12807. - 补充资料:${url.join(",")}
  12808. - 补充描述:${_this.courseText2}
  12809. `
  12810. _this.taskDetailLoading.push(_tindex)
  12811. _this.ttaskDetailLoading.push(_tindex)
  12812. let _uuid = uuidv4();
  12813. let params = JSON.stringify({
  12814. // "model": "Chat",
  12815. model: 'gpt-3.5-turbo',
  12816. temperature: 0,
  12817. max_tokens: 4096,
  12818. top_p: 1,
  12819. frequency_penalty: 0,
  12820. presence_penalty: 0,
  12821. messages: [{
  12822. content: messages,
  12823. role: 'user'
  12824. }],
  12825. uid: _uuid,
  12826. mind_map_question: "",
  12827. })
  12828. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12829. console.log(response);
  12830. // let data = response.data.FunctionResponse
  12831. // if (data.choices && data.choices.length && data.choices[0].message) {
  12832. // console.log(data.choices[0].message.content);
  12833. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  12834. // _this.$forceUpdate()
  12835. // }
  12836. if (response.data.FunctionResponse.result == "发送成功") {
  12837. } else {
  12838. this.$message.warning(response.data.FunctionResponse.result);
  12839. }
  12840. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12841. }).catch(function (error) {
  12842. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12843. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  12844. console.log(error);
  12845. });
  12846. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  12847. },
  12848. aiDetailgetAiContent(_uid, loading, _tindex2) {
  12849. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12850. let _allText = "";
  12851. let _mdText = "";
  12852. _source.onmessage = _e => {
  12853. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12854. //对话已经完成
  12855. _mdText = _mdText.replace("_", "");
  12856. _source.close();
  12857. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12858. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12859. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  12860. return;
  12861. } else {
  12862. //对话还在继续
  12863. let _text = "";
  12864. _text = _e.data.replaceAll("'", "");
  12865. if (_allText == "") {
  12866. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12867. } else {
  12868. _allText += _text;
  12869. }
  12870. _mdText = _allText + "_";
  12871. _mdText = _mdText.replace(/\\n/g, "\n");
  12872. _mdText = _mdText.replace(/\\/g, "");
  12873. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12874. //转化返回的回复流数据
  12875. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12876. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12877. // 处理流数据
  12878. }
  12879. };
  12880. },
  12881. aiDetail2(msg, index) {
  12882. let _this = this
  12883. const _tindex = 'task-' + index
  12884. const _tindex2 = index
  12885. let messages = `
  12886. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12887. --------
  12888. ## 要求
  12889. ${msg}
  12890. --------
  12891. ## 优化信息
  12892. 任务名字: ${_this.aiCallback.task}
  12893. 任务描述: ${_this.aiCallback.taskDetail}
  12894. # 格式与要求
  12895. - 任务名:
  12896. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  12897. _this.taskDetailLoading2.push(_tindex)
  12898. _this.ttaskDetailLoading2.push(_tindex)
  12899. let _uuid = uuidv4();
  12900. let params = JSON.stringify({
  12901. // "model": "Chat",
  12902. model: 'gpt-3.5-turbo',
  12903. temperature: 0,
  12904. max_tokens: 4096,
  12905. top_p: 1,
  12906. frequency_penalty: 0,
  12907. presence_penalty: 0,
  12908. messages: [{
  12909. content: messages,
  12910. role: 'user'
  12911. }],
  12912. uid: _uuid,
  12913. mind_map_question: "",
  12914. })
  12915. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12916. console.log(response);
  12917. // let data = response.data.FunctionResponse
  12918. // if (data.choices && data.choices.length && data.choices[0].message) {
  12919. // console.log(data.choices[0].message.content);
  12920. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  12921. // _this.$forceUpdate()
  12922. // }
  12923. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12924. if (response.data.FunctionResponse.result == "发送成功") {
  12925. } else {
  12926. this.$message.warning(response.data.FunctionResponse.result);
  12927. }
  12928. }).catch(function (error) {
  12929. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  12930. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  12931. console.log(error);
  12932. });
  12933. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  12934. },
  12935. aiDetail2getAiContent(_uid, loading, _tindex2) {
  12936. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12937. let _allText = "";
  12938. let _mdText = "";
  12939. _source.onmessage = _e => {
  12940. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12941. //对话已经完成
  12942. _mdText = _mdText.replace("_", "");
  12943. _source.close();
  12944. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  12945. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  12946. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  12947. return;
  12948. } else {
  12949. //对话还在继续
  12950. let _text = "";
  12951. _text = _e.data.replaceAll("'", "");
  12952. if (_allText == "") {
  12953. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12954. } else {
  12955. _allText += _text;
  12956. }
  12957. _mdText = _allText + "_";
  12958. _mdText = _mdText.replace(/\\n/g, "\n");
  12959. _mdText = _mdText.replace(/\\/g, "");
  12960. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12961. //转化返回的回复流数据
  12962. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  12963. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  12964. // 处理流数据
  12965. }
  12966. };
  12967. },
  12968. aiDetail3(msg, index, tindex) {
  12969. let _this = this
  12970. const _tindex = 'task-' + index + tindex
  12971. const _tindex2 = index
  12972. const _tindex3 = tindex
  12973. // **重点考虑该任务及工具名和工具内容的情况下*
  12974. let messages = `
  12975. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12976. --------
  12977. ## 参考内容
  12978. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  12979. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  12980. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  12981. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  12982. --------
  12983. ## 要求
  12984. ${msg} 输出格式和内容要求参考#格式与要求
  12985. # 格式与要求
  12986. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  12987. _this.taskDetailLoading3.push(_tindex)
  12988. _this.ttaskDetailLoading3.push(_tindex)
  12989. let _uuid = uuidv4();
  12990. let params = JSON.stringify({
  12991. // "model": "Chat",
  12992. model: 'gpt-3.5-turbo',
  12993. temperature: 0,
  12994. max_tokens: 4096,
  12995. top_p: 1,
  12996. frequency_penalty: 0,
  12997. presence_penalty: 0,
  12998. messages: [{
  12999. content: messages,
  13000. role: 'user'
  13001. }],
  13002. uid: _uuid,
  13003. mind_map_question: "",
  13004. })
  13005. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13006. console.log(response);
  13007. let data = response.data.FunctionResponse
  13008. // if (data.choices && data.choices.length && data.choices[0].message) {
  13009. // console.log(data.choices[0].message.content);
  13010. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  13011. // _this.$forceUpdate()
  13012. // }
  13013. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13014. if (response.data.FunctionResponse.result == "发送成功") {
  13015. } else {
  13016. this.$message.warning(response.data.FunctionResponse.result);
  13017. }
  13018. }).catch(function (error) {
  13019. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13020. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  13021. console.log(error);
  13022. });
  13023. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  13024. },
  13025. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  13026. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13027. let _allText = "";
  13028. let _mdText = "";
  13029. _source.onmessage = _e => {
  13030. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13031. //对话已经完成
  13032. _mdText = _mdText.replace("_", "");
  13033. _source.close();
  13034. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13035. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13036. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  13037. return;
  13038. } else {
  13039. //对话还在继续
  13040. let _text = "";
  13041. _text = _e.data.replaceAll("'", "");
  13042. if (_allText == "") {
  13043. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13044. } else {
  13045. _allText += _text;
  13046. }
  13047. _mdText = _allText + "_";
  13048. _mdText = _mdText.replace(/\\n/g, "\n");
  13049. _mdText = _mdText.replace(/\\/g, "");
  13050. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13051. //转化返回的回复流数据
  13052. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13053. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13054. // 处理流数据
  13055. }
  13056. };
  13057. },
  13058. aiDetail4(msg, index) {
  13059. if (!msg.length) {
  13060. this.$message.error("请添加评价后才能优化")
  13061. return
  13062. }
  13063. let _this = this
  13064. const _tindex = 'task-' + index
  13065. const _tindex2 = index
  13066. var _text = ""
  13067. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  13068. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  13069. }
  13070. // **重点考虑该任务详情**
  13071. let messages = `
  13072. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13073. --------
  13074. ## 参考内容
  13075. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13076. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13077. 评价设计:${_text}
  13078. --------
  13079. ## 要求
  13080. ${msg} 输出格式和内容要求参考# 格式与要求
  13081. --------
  13082. # 格式与要求
  13083. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13084. --------
  13085. ## Format example
  13086. [
  13087. {"value":"评价维度1","detail":"维度描述1","score":5},
  13088. {"value":"评价维度2","detail":"维度描述2","score":5},
  13089. {"value":"评价维度3","detail":"维度描述3","score":5}
  13090. ]`
  13091. _this.taskDetailLoading4.push(_tindex)
  13092. let params = JSON.stringify({
  13093. // "model": "Chat",
  13094. model: 'gpt-3.5-turbo',
  13095. temperature: 0,
  13096. max_tokens: 4096,
  13097. top_p: 1,
  13098. frequency_penalty: 0,
  13099. presence_penalty: 0,
  13100. messages: [{
  13101. content: messages,
  13102. role: 'user'
  13103. }],
  13104. stream: false,
  13105. uid: this.userid,
  13106. mind_map_question: "",
  13107. })
  13108. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13109. console.log(response);
  13110. let data = response.data.FunctionResponse
  13111. if (data.choices && data.choices.length && data.choices[0].message) {
  13112. console.log(data.choices[0].message.content);
  13113. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  13114. _this.$forceUpdate()
  13115. }
  13116. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13117. }).catch(function (error) {
  13118. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13119. console.log(error);
  13120. });
  13121. },
  13122. aiDetail5(msg, index) {
  13123. let _this = this
  13124. const _tindex = 'task-' + index
  13125. const _tindex2 = index
  13126. let url = []
  13127. if (this.infoData.length) {
  13128. for (var i = 0; i < this.infoData.length; i++) {
  13129. url.push(this.infoData[i].url)
  13130. }
  13131. }
  13132. let messages = `
  13133. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13134. --------
  13135. ## 要求
  13136. ${msg}
  13137. -------
  13138. ## 教案描述
  13139. ${_this.aiCallBack}
  13140. ## 补充参考资料
  13141. - 补充资料:${url.join(",")}
  13142. - 补充描述:${this.courseText2}`
  13143. _this.taskDetailLoading5.push(_tindex)
  13144. _this.ttaskDetailLoading5.push(_tindex)
  13145. let _uuid = uuidv4();
  13146. let params = JSON.stringify({
  13147. // "model": "Chat",
  13148. model: 'gpt-3.5-turbo',
  13149. temperature: 0,
  13150. max_tokens: 4096,
  13151. top_p: 1,
  13152. frequency_penalty: 0,
  13153. presence_penalty: 0,
  13154. messages: [{
  13155. content: messages,
  13156. role: 'user'
  13157. }],
  13158. uid: _uuid,
  13159. mind_map_question: "",
  13160. })
  13161. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13162. console.log(response);
  13163. // let data = response.data.FunctionResponse
  13164. // if (data.choices && data.choices.length && data.choices[0].message) {
  13165. // console.log(data.choices[0].message.content);
  13166. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13167. // _this.$forceUpdate()
  13168. // }
  13169. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13170. if (response.data.FunctionResponse.result == "发送成功") {
  13171. } else {
  13172. this.$message.warning(response.data.FunctionResponse.result);
  13173. }
  13174. }).catch(function (error) {
  13175. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  13176. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  13177. console.log(error);
  13178. });
  13179. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  13180. },
  13181. aiDetail5getAiContent(_uid, loading, _tindex2) {
  13182. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13183. let _allText = "";
  13184. let _mdText = "";
  13185. _source.onmessage = _e => {
  13186. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13187. //对话已经完成
  13188. _mdText = _mdText.replace("_", "");
  13189. _source.close();
  13190. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13191. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13192. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  13193. return;
  13194. } else {
  13195. //对话还在继续
  13196. let _text = "";
  13197. _text = _e.data.replaceAll("'", "");
  13198. if (_allText == "") {
  13199. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13200. } else {
  13201. _allText += _text;
  13202. }
  13203. _mdText = _allText + "_";
  13204. _mdText = _mdText.replace(/\\n/g, "\n");
  13205. _mdText = _mdText.replace(/\\/g, "");
  13206. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13207. //转化返回的回复流数据
  13208. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13209. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13210. // 处理流数据
  13211. }
  13212. };
  13213. },
  13214. },
  13215. beforeDestroy() {
  13216. clearTimeout(this.timer);
  13217. this.timer = null;
  13218. clearInterval(this.timer2);
  13219. this.timer2 = null;
  13220. clearInterval(this.pasteTimer);
  13221. this.pasteTimer = null;
  13222. },
  13223. beforeRouteLeave(to, from, next) {
  13224. clearTimeout(this.timer);
  13225. this.timer = null;
  13226. clearInterval(this.timer2);
  13227. this.timer2 = null;
  13228. clearInterval(this.pasteTimer);
  13229. this.pasteTimer = null;
  13230. next();
  13231. },
  13232. created() {
  13233. this.getStudent();
  13234. this.getTeacher();
  13235. this.getClass();
  13236. this.selectGrage();
  13237. this.getTemplate();
  13238. // this.selectType();
  13239. this.selectEva();
  13240. this.loading = false;
  13241. this.timer2 = setInterval(() => {
  13242. this.selectEva();
  13243. }, 5000);
  13244. this.pasteTimer = setInterval(() => {
  13245. this.getPaste();
  13246. }, 1000);
  13247. setTimeout(() => {
  13248. // this.selectAllType();
  13249. this.selectCourseDetail();
  13250. }, 500);
  13251. let _this = this;
  13252. window.pasteStage = function (json) {
  13253. _this.pasteStage(json);
  13254. };
  13255. window.pasteTask = function (json) {
  13256. _this.pasteTask(json);
  13257. };
  13258. },
  13259. };
  13260. </script>
  13261. <style scoped>
  13262. @media screen and (max-width: 1280px) {
  13263. .mbCss {
  13264. flex-direction: column !important;
  13265. }
  13266. .pjCss {
  13267. width: 100% !important;
  13268. }
  13269. .evaCss {
  13270. width: 100% !important;
  13271. margin-top: 10px;
  13272. }
  13273. }
  13274. .el-table>>>.even_row {
  13275. background-color: #f1f1f1 !important;
  13276. }
  13277. .dialog_diy>>>.el-dialog__header {
  13278. background: #3c3c3c !important;
  13279. padding: 15px 20px;
  13280. }
  13281. .dialog_diy>>>.el-dialog__title {
  13282. color: #fff;
  13283. }
  13284. .dialog_diy>>>.el-dialog__headerbtn {
  13285. top: 19px;
  13286. }
  13287. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  13288. color: #fff;
  13289. }
  13290. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  13291. color: #fff;
  13292. }
  13293. .dialog_diy>>>.el-dialog__body,
  13294. .dialog_diy>>>.el-dialog__footer {
  13295. background: #fafafa;
  13296. }
  13297. .dialog_diy3>>>.el-dialog__body,
  13298. .dialog_diy3>>>.el-dialog__footer {
  13299. background: #eee !important;
  13300. }
  13301. .dialog_diy3>>>.el-dialog__body {
  13302. padding: 20px 20px;
  13303. }
  13304. .dialog_diyStage>>>.el-dialog__body {
  13305. padding: 10px;
  13306. }
  13307. .source_diy>>>.el-dialog {
  13308. height: 100% !important;
  13309. margin: 0 auto !important;
  13310. }
  13311. .source_diy>>>.el-dialog__body {
  13312. height: calc(100% - 185px);
  13313. overflow: auto;
  13314. background: #e6eaf0;
  13315. }
  13316. .source_diy>>>.el-dialog__footer {
  13317. background: #e6eaf0 !important;
  13318. }
  13319. .left {
  13320. border-right: 1px solid rgb(60, 94, 143);
  13321. display: flex;
  13322. flex-direction: column;
  13323. align-items: center;
  13324. min-height: 600px;
  13325. width: 385px;
  13326. height: 80%;
  13327. }
  13328. .tips {
  13329. color: rgb(128, 128, 128);
  13330. font-size: 12px;
  13331. width: 270px;
  13332. margin: 40px;
  13333. }
  13334. .pb_content {
  13335. height: 100% !important;
  13336. /* margin: 0 20px 0 20px; */
  13337. }
  13338. .pb_content_body {
  13339. width: 100% !important;
  13340. height: 100%;
  13341. display: flex;
  13342. }
  13343. .info_solid {
  13344. width: 270px;
  13345. height: 30px;
  13346. border-left: 1px solid #bdbdbd;
  13347. margin: 10px 0px 10px 30px;
  13348. }
  13349. .info_steps {
  13350. width: 270px;
  13351. font-size: 0.875rem;
  13352. display: flex;
  13353. align-items: center;
  13354. }
  13355. .info_steps span:nth-child(1) {
  13356. width: 30px;
  13357. height: 30px;
  13358. background: rgba(0, 0, 0, 0.38);
  13359. display: block;
  13360. color: #fff;
  13361. border-radius: 40px;
  13362. text-align: center;
  13363. line-height: 30px;
  13364. }
  13365. .steps_active {
  13366. background: #3d67bc !important;
  13367. }
  13368. .info_steps span:nth-child(2) {
  13369. margin-left: 5px;
  13370. }
  13371. .right {
  13372. height: 100%;
  13373. width: 100%;
  13374. display: flex;
  13375. overflow: hidden;
  13376. flex-direction: column;
  13377. }
  13378. .leftBar{
  13379. width: 290px;
  13380. height: calc(100% - 50px);
  13381. overflow: auto;
  13382. border-radius: 5px;
  13383. margin: 25px auto;
  13384. box-sizing: border-box;
  13385. margin-right: 10px;
  13386. }
  13387. .basic_box {
  13388. margin: 0 auto;
  13389. position: relative;
  13390. padding: 0 20px 0 20px;
  13391. }
  13392. .basic_box_success {
  13393. width: 100%;
  13394. min-height: 455px;
  13395. padding: 50px 0;
  13396. position: relative;
  13397. text-align: center;
  13398. border-bottom: 1px solid #bfbfbf;
  13399. box-sizing: border-box;
  13400. display: flex;
  13401. align-items: center;
  13402. flex-direction: column;
  13403. justify-content: center;
  13404. }
  13405. .info_title {
  13406. font-size: 1.5em;
  13407. margin-right: 25px;
  13408. /* margin: 20px 30px 20px 30px; */
  13409. }
  13410. .bInfo_title {
  13411. text-align: left;
  13412. margin: 10px 0;
  13413. }
  13414. .small_title {
  13415. font-size: 14px;
  13416. line-height: 40px;
  13417. }
  13418. .chapter_beizhu {
  13419. font-size: 12px;
  13420. font-weight: bold;
  13421. float: right;
  13422. color: rgb(128, 128, 128);
  13423. margin-top: 5px;
  13424. }
  13425. .chapter_uploadBox1 {
  13426. text-align: left;
  13427. background-color: rgb(242, 242, 242);
  13428. width: 100%;
  13429. height: 67px;
  13430. padding: 0px 15px;
  13431. border-radius: 8px;
  13432. overflow: hidden;
  13433. font-size: 16px;
  13434. box-sizing: border-box;
  13435. position: relative;
  13436. }
  13437. .chapter_add {
  13438. width: 100%;
  13439. height: 32px;
  13440. margin-top: 15px;
  13441. cursor: pointer;
  13442. }
  13443. .chapter_add_l {
  13444. margin-left: 5px;
  13445. width: 30px;
  13446. height: 30px;
  13447. float: left;
  13448. border: 1px solid #aaa;
  13449. color: #aaa;
  13450. border-radius: 50%;
  13451. font-size: 25px;
  13452. text-align: center;
  13453. }
  13454. .chapter_add_r {
  13455. font-size: 18px;
  13456. height: 40px;
  13457. line-height: 30px;
  13458. text-indent: 10px;
  13459. color: #aaa;
  13460. }
  13461. .chapter_add_r span {
  13462. font-size: 12px;
  13463. color: rgb(204, 204, 204);
  13464. }
  13465. .chapter_add_input {
  13466. display: none;
  13467. }
  13468. .line {
  13469. width: 85%;
  13470. margin: 0 auto;
  13471. border-top: 1px solid #e5e5e5;
  13472. margin-top: 20px;
  13473. }
  13474. .info_btnBox {
  13475. width: calc(100%);
  13476. display: flex;
  13477. justify-content: center;
  13478. height: 80px;
  13479. align-items: center;
  13480. background: #fff;
  13481. margin: 0 auto;
  13482. border-top: 2px solid rgb(228, 232, 237);
  13483. box-sizing: border-box;
  13484. }
  13485. .info_btnBox2 {
  13486. width: calc(100%);
  13487. display: flex;
  13488. justify-content: center;
  13489. height: 20px;
  13490. align-items: center;
  13491. background: #fff;
  13492. margin: 0 auto;
  13493. border-top: 2px solid rgb(228, 232, 237);
  13494. box-sizing: border-box;
  13495. overflow: hidden;
  13496. cursor: pointer;
  13497. }
  13498. .info_btnBox3 {
  13499. width: calc(100%);
  13500. display: flex;
  13501. justify-content: flex-end;
  13502. padding: 0 20px;
  13503. height: 60px;
  13504. align-items: center;
  13505. background: unset;
  13506. margin: 0 auto;
  13507. /* border-top: 1px solid rgb(228, 232, 237); */
  13508. box-sizing: border-box;
  13509. overflow: hidden;
  13510. cursor: pointer;
  13511. background: #fff;
  13512. border-radius: 10px;
  13513. }
  13514. .info_btn+.info_btn {
  13515. margin-left: 15px;
  13516. }
  13517. .info_btn,
  13518. .teacherWord {
  13519. color: #fff;
  13520. background-color: #0f7eff;
  13521. padding: 8px 24px;
  13522. font-size: 0.9375rem;
  13523. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13524. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13525. min-width: 64px;
  13526. font-weight: 500;
  13527. border-radius: 4px;
  13528. box-sizing: border-box;
  13529. border: none;
  13530. cursor: pointer;
  13531. }
  13532. .teacherWord {
  13533. width: 105px !important;
  13534. text-align: center !important;
  13535. line-height: 36px !important;
  13536. padding: 0 !important;
  13537. font-size: 14px !important;
  13538. margin: 10px 0 !important;
  13539. }
  13540. .template_box {
  13541. display: flex;
  13542. flex-wrap: wrap;
  13543. }
  13544. .wordTeacher {
  13545. display: flex;
  13546. flex-direction: column;
  13547. width: 100px;
  13548. height: 100px;
  13549. text-align: center;
  13550. font-size: 13px;
  13551. margin: 0 20px 20px 0;
  13552. background: #f0f4fa;
  13553. position: relative;
  13554. border-radius: 5px;
  13555. align-items: center;
  13556. justify-content: center;
  13557. border: 1px solid #cad1dc;
  13558. color: #0e1e33;
  13559. /* padding: 25px 0px; */
  13560. cursor: pointer;
  13561. }
  13562. .wordTeacher::after {
  13563. content: "";
  13564. display: block;
  13565. position: absolute;
  13566. width: 15px;
  13567. height: 15px;
  13568. right: 10px;
  13569. top: 10px;
  13570. background-image: url(../../../assets/icon/new/choose_a.png);
  13571. background-size: 100% 100%;
  13572. }
  13573. .wordTeacherA::after {
  13574. background-image: url(../../../assets/icon/new/choose_b.png);
  13575. }
  13576. .wordTeacher:nth-child(5n) {
  13577. margin-right: 0px;
  13578. }
  13579. .wordPic {
  13580. margin: 0 auto;
  13581. width: 30px;
  13582. height: 30px;
  13583. cursor: pointer;
  13584. }
  13585. .deleteWord {
  13586. width: 22px;
  13587. height: 22px;
  13588. position: absolute;
  13589. right: 5px;
  13590. top: -15px;
  13591. cursor: pointer;
  13592. display: none;
  13593. z-index: 999;
  13594. }
  13595. .wordPic>img,
  13596. .deleteWord>img,
  13597. .addToolImg>img {
  13598. width: 100%;
  13599. height: 100%;
  13600. }
  13601. .info_btn:hover {
  13602. background-color: #4f7cd5 !important;
  13603. }
  13604. .cru_selectBox {
  13605. display: flex;
  13606. margin: 15px 0;
  13607. flex-wrap: nowrap;
  13608. white-space: nowrap;
  13609. overflow: auto;
  13610. position: relative;
  13611. height: 40px;
  13612. max-width: calc(100% - 175px);
  13613. }
  13614. .cru_selectBox::-webkit-scrollbar {
  13615. /*滚动条整体样式*/
  13616. width: 6px;
  13617. /*高宽分别对应横竖滚动条的尺寸*/
  13618. height: 6px;
  13619. }
  13620. /*定义滚动条轨道 内阴影+圆角*/
  13621. .cru_selectBox::-webkit-scrollbar-track {
  13622. border-radius: 10px;
  13623. background-color: #eee;
  13624. }
  13625. /*定义滑块 内阴影+圆角*/
  13626. .cru_selectBox::-webkit-scrollbar-thumb {
  13627. border-radius: 10px;
  13628. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  13629. background-color: rgba(0, 0, 0, 0.1);
  13630. }
  13631. .cru_line {
  13632. position: absolute;
  13633. bottom: 0px;
  13634. transition: all 0.5s;
  13635. left: 0px;
  13636. width: 50px;
  13637. height: 4px;
  13638. left: 10px;
  13639. border-radius: 2px;
  13640. background: #3681fc;
  13641. }
  13642. .cru_select {
  13643. font-size: 18px;
  13644. margin-right: 20px;
  13645. margin-left: 5px;
  13646. cursor: pointer;
  13647. color: #0e1e33;
  13648. }
  13649. .cru_select:hover {
  13650. color: #3681fc !important;
  13651. }
  13652. .cru_selected {
  13653. color: #3681fc !important;
  13654. font-weight: bold;
  13655. }
  13656. .chapter_box {
  13657. margin-top: 10px;
  13658. width: 100%;
  13659. padding: 10px 20px;
  13660. background: #fff;
  13661. border-radius: 8px;
  13662. box-sizing: border-box;
  13663. }
  13664. .chapter_contentbox {
  13665. display: flex;
  13666. align-items: center;
  13667. /* margin-top: 15px; */
  13668. }
  13669. .chapter_contentbox .cc_title {
  13670. margin: 0px;
  13671. color: black;
  13672. display: block;
  13673. white-space: nowrap;
  13674. overflow: hidden;
  13675. text-overflow: ellipsis;
  13676. margin-right: 20px;
  13677. font-size: 18px;
  13678. height: 20px;
  13679. line-height: 22px;
  13680. min-width: fit-content;
  13681. display: flex;
  13682. }
  13683. .chapter_contentbox .cc_title::before {
  13684. content: "";
  13685. height: 100%;
  13686. width: 3px;
  13687. background: #3681fc;
  13688. border-radius: 3px;
  13689. opacity: 1;
  13690. display: block;
  13691. margin-right: 10px;
  13692. }
  13693. .chapter_contentbox .cc_input {
  13694. width: 100%;
  13695. display: flex;
  13696. }
  13697. .show_taskD {
  13698. min-width: fit-content;
  13699. margin-left: 10px;
  13700. display: flex;
  13701. align-items: center;
  13702. font-size: 14px;
  13703. cursor: pointer;
  13704. color: #717c8d;
  13705. }
  13706. .show_taskD>img {
  13707. width: 15px;
  13708. margin-right: 5px;
  13709. transition: 0.2s all;
  13710. transform: rotate(-90deg);
  13711. }
  13712. .show_taskD.show>img {
  13713. transform: rotate(0deg);
  13714. }
  13715. .show_toolD {
  13716. min-width: fit-content;
  13717. margin-left: 10px;
  13718. display: flex;
  13719. align-items: center;
  13720. font-size: 14px;
  13721. cursor: pointer;
  13722. color: #717c8d;
  13723. /* position: absolute;
  13724. right: 45px;
  13725. top: 5px; */
  13726. }
  13727. .show_toolD>img {
  13728. width: 15px;
  13729. margin-right: 5px;
  13730. transition: 0.2s all;
  13731. transform: rotate(-90deg);
  13732. }
  13733. .show_toolD.show>img {
  13734. transform: rotate(0deg);
  13735. }
  13736. .remove {
  13737. background-image: url("../../../assets/icon/new/delete_u.png");
  13738. cursor: pointer;
  13739. opacity: 0.5;
  13740. width: 30px;
  13741. min-width: 30px;
  13742. height: 30px;
  13743. background-size: 100% 100%;
  13744. background-repeat: no-repeat;
  13745. margin-left: 10px;
  13746. }
  13747. .remove1 {
  13748. background-image: url("../../../assets/remove1.png");
  13749. background-repeat: no-repeat;
  13750. background-position: 5px 10px;
  13751. width: 40px;
  13752. height: 50px;
  13753. cursor: pointer;
  13754. margin-left: 10px;
  13755. }
  13756. .binfo_input {
  13757. width: 100%;
  13758. margin: 0;
  13759. padding: 12px 14px;
  13760. display: block;
  13761. min-width: 0;
  13762. outline: none;
  13763. box-sizing: border-box;
  13764. background: none;
  13765. border: none;
  13766. border-radius: 4px;
  13767. background: #fff;
  13768. font-size: 16px;
  13769. resize: none;
  13770. font-family: "Microsoft YaHei";
  13771. min-height: 48px;
  13772. /* border: 1px solid #3682fc00; */
  13773. border: 1.5px solid #cad1dc;
  13774. }
  13775. .binfo_textarea {
  13776. border: 1.5px solid #cad1dc;
  13777. font-size: 16px;
  13778. resize: none;
  13779. /* background: #f6f6f6; */
  13780. font-family: "Microsoft YaHei";
  13781. }
  13782. .binfo_input:focus-visible {
  13783. border: 1.5px solid #3681fc !important;
  13784. }
  13785. .time {
  13786. display: flex;
  13787. margin: 35px 0 80px 0;
  13788. }
  13789. .chapter_btnbox {
  13790. width: 160px;
  13791. border-radius: 5px;
  13792. border: 2px dashed gray;
  13793. display: flex;
  13794. padding: 8px 50px;
  13795. align-items: center;
  13796. justify-content: center;
  13797. margin: 30px auto 0;
  13798. cursor: pointer;
  13799. }
  13800. .icon_add {
  13801. position: relative;
  13802. width: 24px;
  13803. padding-top: 20px;
  13804. border-radius: 100%;
  13805. border-width: 2px;
  13806. border-style: solid;
  13807. border-color: gray;
  13808. }
  13809. .icon_add i:nth-child(1) {
  13810. position: absolute;
  13811. left: 50%;
  13812. top: 50%;
  13813. height: 60%;
  13814. transform: translate(-50%, -50%);
  13815. border-width: 1px;
  13816. border-style: solid;
  13817. border-color: inherit;
  13818. }
  13819. .icon_add i:nth-child(2) {
  13820. position: absolute;
  13821. top: 50%;
  13822. left: 50%;
  13823. width: 60%;
  13824. transform: translate(-50%, -50%);
  13825. border-width: 1px;
  13826. border-style: solid;
  13827. border-color: inherit;
  13828. }
  13829. .chapter_btn_w {
  13830. font-size: 0.9375rem;
  13831. font-weight: bold;
  13832. color: gray;
  13833. margin-left: 20px;
  13834. }
  13835. .disUoloadSty>>>.el-icon-plus {
  13836. display: none !important;
  13837. /* 上传按钮隐藏 */
  13838. }
  13839. .imgLeft {
  13840. margin: 15px 0;
  13841. }
  13842. .add_info_box {
  13843. margin: 0 0 0 auto;
  13844. display: flex;
  13845. flex-wrap: wrap;
  13846. }
  13847. .add_info_box button {
  13848. margin: 0 5px 10px 0;
  13849. }
  13850. .add_info_box2 {
  13851. display: flex;
  13852. align-items: center;
  13853. flex-wrap: wrap;
  13854. }
  13855. .add_info_box2::after {
  13856. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  13857. color: red;
  13858. font-size: 14px;
  13859. margin-bottom: 10px;
  13860. }
  13861. .add_chapters_box {
  13862. text-align: left;
  13863. background-color: #fff;
  13864. width: 100%;
  13865. border-radius: 4px;
  13866. font-size: 16px;
  13867. box-sizing: border-box;
  13868. position: relative;
  13869. padding: 0 15px;
  13870. height: auto;
  13871. overflow-y: auto;
  13872. overflow-x: hidden;
  13873. border: 1px solid #cad1dc;
  13874. }
  13875. .add_chapters_box.add_c_none {
  13876. display: flex;
  13877. justify-content: center;
  13878. align-items: center;
  13879. padding: 15px;
  13880. }
  13881. .add_c_none>img {
  13882. width: 25px;
  13883. }
  13884. .add_chapters_box.add_c_none>span {
  13885. font-size: 14px;
  13886. font-weight: 400;
  13887. margin: 0 0 5px 5px;
  13888. }
  13889. .homework_box {
  13890. display: flex;
  13891. align-items: flex-start;
  13892. flex-wrap: wrap;
  13893. margin: 15px 0 0 0;
  13894. flex-direction: column;
  13895. align-content: flex-start;
  13896. }
  13897. .course_homework {
  13898. display: flex;
  13899. justify-content: center;
  13900. flex-direction: row;
  13901. align-items: center;
  13902. margin: 0 10px 0 0;
  13903. }
  13904. .course_homework>>>.el-input__inner {
  13905. width: 140px;
  13906. margin-left: 15px;
  13907. }
  13908. .chapter_upload_move {
  13909. position: relative;
  13910. background-color: #fff;
  13911. position: absolute;
  13912. width: 100%;
  13913. top: 0px;
  13914. left: 0px;
  13915. border: 1px solid #eee;
  13916. border-radius: 5px;
  13917. transition: width 2s;
  13918. -moz-transition: width 2s;
  13919. -webkit-transition: width 2s;
  13920. -o-transition: width 2s;
  13921. }
  13922. .chapter_upload_l_i {
  13923. background-image: url("../../../assets/icon.png");
  13924. background-position: 3px -165px;
  13925. width: 30px;
  13926. height: 30px;
  13927. margin: 10px auto 0 auto;
  13928. }
  13929. .course_input_box {
  13930. display: flex;
  13931. margin-right: 20px;
  13932. width: 100%;
  13933. align-items: center;
  13934. position: relative;
  13935. }
  13936. .course_input_box>.binfo_input {
  13937. width: calc(100% - 0 - 200px - 20px);
  13938. margin: 0 10px;
  13939. }
  13940. .bb_courseIcon {
  13941. width: 57px;
  13942. height: 45px;
  13943. background: #f0f4fa;
  13944. border-radius: 5px 0px 0px 5px;
  13945. display: flex;
  13946. align-items: center;
  13947. justify-content: center;
  13948. border-right: 1.5px solid rgb(202, 209, 220);
  13949. box-sizing: border-box;
  13950. position: absolute;
  13951. left: 1.5px;
  13952. }
  13953. .bb_courseIcon>img {
  13954. width: 25px;
  13955. height: auto;
  13956. }
  13957. .big_box {
  13958. /* margin-top: 20px; */
  13959. display: flex;
  13960. justify-content: space-between;
  13961. /* border-bottom: 1px solid #E0E2ED; */
  13962. }
  13963. .left_first {
  13964. display: flex;
  13965. flex-direction: column;
  13966. flex-wrap: nowrap;
  13967. width: calc(100% - 310px);
  13968. padding: 20px;
  13969. box-sizing: border-box;
  13970. background: #fff;
  13971. border-radius: 5px;
  13972. }
  13973. .right_first {
  13974. width: 300px;
  13975. display: flex;
  13976. align-items: center;
  13977. justify-content: center;
  13978. /* border-left: 1px solid #E0E2ED; */
  13979. box-sizing: border-box;
  13980. padding: 20px;
  13981. flex-direction: column;
  13982. background: #fff;
  13983. border-radius: 5px;
  13984. }
  13985. .ai_box {
  13986. width: 204px;
  13987. display: flex;
  13988. justify-content: flex-end;
  13989. margin-bottom: 15px;
  13990. }
  13991. .ai_content {
  13992. display: flex;
  13993. align-items: center;
  13994. font-size: 14px;
  13995. padding: 7px 20px;
  13996. box-sizing: border-box;
  13997. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  13998. border-radius: 12px;
  13999. font-weight: 700;
  14000. cursor: pointer;
  14001. }
  14002. .ai_content>img {
  14003. width: 40px;
  14004. margin-right: 5px;
  14005. }
  14006. .c_info_title {
  14007. padding: 15px 0 15px 0;
  14008. font-size: 16px;
  14009. font-weight: bold;
  14010. margin: 0 0 0 20px;
  14011. box-sizing: border-box;
  14012. display: flex;
  14013. align-items: center;
  14014. line-height: 20px;
  14015. }
  14016. .c_info_title::before {
  14017. content: "";
  14018. display: block;
  14019. width: 3px;
  14020. height: 20px;
  14021. background: #0061ff;
  14022. border-radius: 3px;
  14023. margin: 0 5px 0 0;
  14024. }
  14025. .right_title {
  14026. height: 30px;
  14027. padding: 15px 0 15px 20px;
  14028. border-bottom: 1px solid #f2f2f2;
  14029. font-size: 1.5em;
  14030. font-weight: bold;
  14031. color: #0f7eff;
  14032. margin: 0 auto;
  14033. }
  14034. .people {
  14035. border: 1px solid rgb(229 229 229);
  14036. /* height: 495px; */
  14037. height: 350px;
  14038. border-radius: 5px;
  14039. width: 100%;
  14040. overflow: auto;
  14041. }
  14042. .people_top {
  14043. display: flex;
  14044. width: 100%;
  14045. /* justify-content: space-between; */
  14046. /* align-items: center; */
  14047. flex-direction: column;
  14048. padding: 10px 10px 0;
  14049. box-sizing: border-box;
  14050. }
  14051. .people_nav,
  14052. .people_top_right {
  14053. /* padding: 20px 0 0 20px; */
  14054. }
  14055. .people_top_right {
  14056. height: 40px;
  14057. margin-bottom: 10px;
  14058. }
  14059. .people_search {
  14060. display: flex;
  14061. position: relative;
  14062. }
  14063. .people_search>>>.el-input__inner {
  14064. /* height: 25px; */
  14065. width: 100%;
  14066. }
  14067. .search_img {
  14068. width: 20px;
  14069. height: 20px;
  14070. position: absolute;
  14071. right: 10px;
  14072. top: 50%;
  14073. transform: translateY(-50%);
  14074. }
  14075. .search_img>img {
  14076. width: 100%;
  14077. height: 100%;
  14078. }
  14079. .people_name {
  14080. display: flex;
  14081. justify-content: flex-start;
  14082. padding: 20px 10px;
  14083. flex-direction: column;
  14084. flex-wrap: wrap;
  14085. }
  14086. .p_box {
  14087. position: relative;
  14088. }
  14089. .people_name>>>.el-checkbox {
  14090. width: 100%;
  14091. display: flex;
  14092. align-items: center;
  14093. margin-bottom: 10px;
  14094. }
  14095. .people_name>>>.el-checkbox__label {
  14096. text-overflow: ellipsis;
  14097. overflow: hidden;
  14098. width: calc(100%);
  14099. }
  14100. .people_name2>>>.el-checkbox__label {
  14101. width: calc(100% - 130px);
  14102. }
  14103. .inviteCode {
  14104. position: absolute;
  14105. right: 30px;
  14106. color: #237ade;
  14107. top: 0;
  14108. cursor: pointer;
  14109. font-size: 13px;
  14110. }
  14111. .noneInvite {
  14112. color: #a8a8a8;
  14113. }
  14114. .inviteImg {
  14115. position: absolute;
  14116. right: 5px;
  14117. top: 0;
  14118. width: 20px;
  14119. }
  14120. .right_img {
  14121. width: 150px;
  14122. height: 150px;
  14123. margin: 0 auto;
  14124. }
  14125. .right_img>img {
  14126. width: 100%;
  14127. height: 100%;
  14128. }
  14129. .number {
  14130. margin-top: 20px;
  14131. color: #4aa6ff;
  14132. text-decoration: underline;
  14133. }
  14134. .success_button {
  14135. display: flex;
  14136. text-align: center;
  14137. margin: 5% 0 auto;
  14138. flex-direction: row;
  14139. justify-content: center;
  14140. }
  14141. .look_course {
  14142. margin-right: 40px;
  14143. background: #3d67bc;
  14144. width: 200px;
  14145. height: 35px;
  14146. line-height: 35px;
  14147. color: #fff;
  14148. text-align: center;
  14149. font-size: 14px;
  14150. border-radius: 5px;
  14151. cursor: pointer;
  14152. }
  14153. .attend_others {
  14154. width: 250px;
  14155. background: #4fb13c;
  14156. height: 35px;
  14157. line-height: 35px;
  14158. color: #fff;
  14159. text-align: center;
  14160. font-size: 14px;
  14161. border-radius: 5px;
  14162. cursor: pointer;
  14163. }
  14164. .dialog_diy2>>>.el-dialog__body {
  14165. text-align: center;
  14166. }
  14167. .write_togother {
  14168. position: absolute;
  14169. right: 45px;
  14170. display: flex;
  14171. top: 5%;
  14172. }
  14173. .write_people {
  14174. font-size: 14px;
  14175. line-height: 50px;
  14176. padding-right: 10px;
  14177. }
  14178. .end_write {
  14179. background: #3d67bc;
  14180. color: #fff;
  14181. width: 100px;
  14182. height: 35px;
  14183. line-height: 35px;
  14184. text-align: center;
  14185. font-size: 14px;
  14186. border-radius: 5px;
  14187. cursor: pointer;
  14188. }
  14189. .chapter_upload+.chapter_upload {
  14190. /* margin-top: 15px; */
  14191. border-top: 1px solid #e7ebf1;
  14192. }
  14193. .chapter_upload {
  14194. height: 45px;
  14195. position: relative;
  14196. display: flex;
  14197. align-items: center;
  14198. width: 100%;
  14199. min-height: 45px;
  14200. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14201. /* border-radius: 4px; */
  14202. /* overflow: hidden; */
  14203. box-sizing: border-box;
  14204. }
  14205. .chapter_upload_drag {
  14206. position: absolute;
  14207. cursor: pointer;
  14208. width: 16px;
  14209. height: 16px;
  14210. left: -9px;
  14211. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14212. background-size: 100% 100%;
  14213. z-index: 10;
  14214. display: none;
  14215. }
  14216. .isNavStage>.chapter_upload_drag {
  14217. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  14218. }
  14219. .chapter_upload_t {
  14220. background-color: #fff;
  14221. position: absolute;
  14222. height: 100%;
  14223. top: 0px;
  14224. left: 0px;
  14225. box-sizing: border-box;
  14226. }
  14227. .chapter_upload_o {
  14228. width: 100%;
  14229. height: 100%;
  14230. position: relative;
  14231. z-index: 1;
  14232. }
  14233. .chapter_upload_ic {
  14234. margin: 0 15px 0px auto;
  14235. display: flex;
  14236. align-items: center;
  14237. }
  14238. .chapter_upload_ic_l {
  14239. width: 50px;
  14240. height: 50px;
  14241. float: left;
  14242. }
  14243. .chapter_upload_ic_l div {
  14244. width: 30px;
  14245. height: 35px;
  14246. background: url("../../../assets/icon/icon.png");
  14247. }
  14248. .chapter_upload_ic_edit {
  14249. height: 100%;
  14250. display: flex;
  14251. align-items: center;
  14252. cursor: pointer;
  14253. margin: 0 10px 0 0;
  14254. }
  14255. .chapter_upload_ic_edit div {
  14256. width: 18px;
  14257. height: 18px;
  14258. background-image: url("../../../assets/icon/new/edit_u.png");
  14259. background-size: 100% 100%;
  14260. }
  14261. .chapter_upload_ic_r {
  14262. height: 100%;
  14263. display: flex;
  14264. align-items: center;
  14265. cursor: pointer;
  14266. }
  14267. .chapter_upload_ic_r div {
  14268. width: 18px;
  14269. height: 18px;
  14270. background-image: url("../../../assets/icon/new/delete_u.png");
  14271. background-size: 100% 100%;
  14272. }
  14273. .chapter_upload_n {
  14274. display: flex;
  14275. text-indent: 10px;
  14276. text-decoration: none;
  14277. text-overflow: ellipsis;
  14278. white-space: nowrap;
  14279. overflow: hidden;
  14280. width: 55%;
  14281. margin-left: 10px;
  14282. cursor: pointer;
  14283. margin-top: 2px;
  14284. align-items: center;
  14285. }
  14286. .chapter_upload_l_i2,
  14287. .chapter_upload_l_i3,
  14288. .chapter_upload_l_i8,
  14289. .chapter_upload_l_i6,
  14290. .chapter_upload_l_i12,
  14291. .chapter_upload_l_i14,
  14292. .chapter_upload_l_i13 {
  14293. width: 15px;
  14294. height: 15px;
  14295. background-size: 100% 100%;
  14296. }
  14297. .chapter_upload_l_i2 {
  14298. background-image: url("../../../assets/icon/new/u_word.png");
  14299. }
  14300. .chapter_upload_l_i3 {
  14301. background-image: url("../../../assets/icon/new/u_video.png");
  14302. }
  14303. .chapter_upload_l_i8 {
  14304. background-image: url("../../../assets/icon/new/u_url.png");
  14305. }
  14306. .chapter_upload_l_i14 {
  14307. background-image: url("../../../assets/icon/new/u_source.png");
  14308. }
  14309. .chapter_upload_l_i6 {
  14310. background-image: url("../../../assets/icon/new/u_picture.png");
  14311. }
  14312. .chapter_upload_l_i12 {
  14313. background-image: url("../../../assets/icon/new/u_word.png");
  14314. }
  14315. .chapter_upload_l_i13 {
  14316. background-image: url("../../../assets/icon/new/u_img.png");
  14317. }
  14318. .chapter_upload_noSee {
  14319. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14320. width: 18px;
  14321. height: 18px;
  14322. background-size: 100% 100%;
  14323. display: block;
  14324. margin-right: 10px;
  14325. }
  14326. .chapter_upload_ud {
  14327. display: flex;
  14328. flex-direction: row;
  14329. justify-content: center;
  14330. margin: 0 10px 0 0;
  14331. }
  14332. .chapter_upload_ud>.chapter_upload_up {
  14333. margin-bottom: 0;
  14334. margin-right: 10px;
  14335. }
  14336. .chapter_upload_down,
  14337. .chapter_upload_up {
  14338. width: 20px;
  14339. height: 20px;
  14340. background: #e4eaf2;
  14341. cursor: pointer;
  14342. margin: 0 auto;
  14343. border-radius: 5px;
  14344. display: flex;
  14345. justify-content: center;
  14346. align-items: center;
  14347. }
  14348. .chapter_upload_up::after,
  14349. .chapter_upload_down::after {
  14350. content: "";
  14351. background-image: url("../../../assets/icon/new/downBtn.png");
  14352. width: 13px;
  14353. height: 13px;
  14354. background-size: 100% 100%;
  14355. display: block;
  14356. }
  14357. .chapter_upload_up::after {
  14358. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14359. }
  14360. .chapter_upload_up {
  14361. margin-bottom: 5px;
  14362. }
  14363. .chapter_upload_ud2 {
  14364. display: flex;
  14365. flex-direction: row;
  14366. justify-content: center;
  14367. margin: 0 10px 0 0;
  14368. }
  14369. .chapter_upload_ud2>.chapter_upload_up2 {
  14370. margin-bottom: 0;
  14371. margin-right: 10px;
  14372. }
  14373. .chapter_upload_down2,
  14374. .chapter_upload_up2 {
  14375. cursor: pointer;
  14376. margin: 0 auto;
  14377. border-radius: 5px;
  14378. display: flex;
  14379. justify-content: center;
  14380. align-items: center;
  14381. color: #717c8d;
  14382. font-size: 14px;
  14383. }
  14384. .chapter_upload_up2 {
  14385. margin-right: 10px;
  14386. }
  14387. .chapter_upload_up2::before,
  14388. .chapter_upload_down2::before {
  14389. content: "";
  14390. background-image: url("../../../assets/icon/new/c_down.png");
  14391. width: 14px;
  14392. height: 14px;
  14393. background-size: 100% 100%;
  14394. display: block;
  14395. margin-right: 5px;
  14396. }
  14397. .chapter_upload_up2::before {
  14398. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14399. }
  14400. .addWordStyle {
  14401. display: flex;
  14402. flex-direction: row;
  14403. justify-content: flex-start;
  14404. overflow-x: auto;
  14405. white-space: nowrap;
  14406. flex-wrap: wrap;
  14407. }
  14408. /* table 样式 */
  14409. .cont>>>table {
  14410. border-top: 1px solid #ccc;
  14411. border-left: 1px solid #ccc;
  14412. }
  14413. .cont>>>table td,
  14414. .cont>>>table th {
  14415. border-bottom: 1px solid #ccc;
  14416. border-right: 1px solid #ccc;
  14417. /* padding: 20px 5px; */
  14418. padding: 5px 10px;
  14419. max-width: 0px;
  14420. height: 30px;
  14421. vertical-align: baseline;
  14422. }
  14423. .cont>>>table th {
  14424. border-bottom: 2px solid #ccc;
  14425. text-align: center;
  14426. }
  14427. /* blockquote 样式 */
  14428. .cont>>>blockquote {
  14429. display: block;
  14430. border-left: 8px solid #d0e5f2;
  14431. padding: 5px 10px;
  14432. margin: 10px 0;
  14433. line-height: 1.4;
  14434. font-size: 100%;
  14435. background-color: #f1f1f1;
  14436. }
  14437. /* code 样式 */
  14438. .cont>>>code {
  14439. display: inline-block;
  14440. /* *display: inline; */
  14441. zoom: 1;
  14442. background-color: #f1f1f1;
  14443. border-radius: 3px;
  14444. padding: 3px 5px;
  14445. margin: 0 3px;
  14446. }
  14447. .cont>>>pre code {
  14448. display: block;
  14449. }
  14450. /* ul ol 样式 */
  14451. .cont>>>ul,
  14452. ol {
  14453. margin: 10px 0 10px 20px;
  14454. }
  14455. .wordbox {
  14456. display: flex;
  14457. flex-wrap: wrap;
  14458. cursor: pointer;
  14459. width: 100%;
  14460. }
  14461. .checkword {
  14462. width: 22px;
  14463. height: 22px;
  14464. margin: 10px auto 0;
  14465. cursor: pointer;
  14466. }
  14467. .checkword img {
  14468. width: 100%;
  14469. }
  14470. .stepBg {
  14471. display: flex;
  14472. justify-content: space-between;
  14473. align-items: center;
  14474. background: #fff;
  14475. width: calc(100%);
  14476. margin: 0 auto;
  14477. }
  14478. .stepBorder {
  14479. height: 3px !important;
  14480. background: #cad1dc;
  14481. width: 100px !important;
  14482. margin: 0 15px !important;
  14483. position: relative;
  14484. }
  14485. .border-active {
  14486. background: #3681fc !important;
  14487. }
  14488. .border-active::before,
  14489. .border-active::after {
  14490. border-color: #3681fc !important;
  14491. }
  14492. .stepBorder::before,
  14493. .stepBorder::after {
  14494. content: "";
  14495. width: 9px;
  14496. height: 9px;
  14497. background: #ffffff;
  14498. opacity: 1;
  14499. border: 2px solid #acb4bf;
  14500. display: block;
  14501. box-sizing: border-box;
  14502. border-radius: 50%;
  14503. position: absolute;
  14504. top: 50%;
  14505. transform: translateY(-50%);
  14506. }
  14507. .stepBorder::after {
  14508. right: -9px;
  14509. }
  14510. .stepTop {
  14511. width: 100%;
  14512. /* border-radius: 10px; */
  14513. display: flex;
  14514. justify-content: center;
  14515. align-items: center;
  14516. flex-wrap: nowrap;
  14517. background: #fff;
  14518. /* top: 18%; */
  14519. height: 80px;
  14520. border-bottom: 2px solid rgb(228, 232, 237);
  14521. box-sizing: border-box;
  14522. }
  14523. .stepTop2 {
  14524. width: 100%;
  14525. /* border-radius: 10px; */
  14526. display: flex;
  14527. justify-content: center;
  14528. align-items: center;
  14529. flex-wrap: nowrap;
  14530. background: #fff;
  14531. /* top: 18%; */
  14532. height: 20px;
  14533. border-bottom: 2px solid rgb(228, 232, 237);
  14534. box-sizing: border-box;
  14535. overflow: hidden;
  14536. cursor: pointer;
  14537. }
  14538. .stepTop>div img {
  14539. width: 100%;
  14540. }
  14541. .stepTop>div {
  14542. height: 50px;
  14543. width: 180px;
  14544. cursor: pointer;
  14545. margin: 10px 0;
  14546. border-radius: 10px;
  14547. }
  14548. .first,
  14549. .second,
  14550. .third,
  14551. .four {
  14552. background: #3681fc;
  14553. height: 90px;
  14554. color: #fff;
  14555. display: flex;
  14556. flex-direction: row;
  14557. align-items: center;
  14558. justify-content: center;
  14559. }
  14560. .first>div:nth-child(1),
  14561. .second>div:nth-child(1),
  14562. .third>div:nth-child(1),
  14563. .four>div:nth-child(1) {
  14564. margin: 5px 10px 0 0;
  14565. width: 2rem;
  14566. }
  14567. .firstNo,
  14568. .secondNo,
  14569. .thirdNo,
  14570. .fourNo {
  14571. background: #e7e7e7;
  14572. color: #adadad;
  14573. display: flex;
  14574. flex-direction: row;
  14575. align-items: center;
  14576. justify-content: center;
  14577. }
  14578. .firstNo>div:nth-child(1),
  14579. .secondNo>div:nth-child(1),
  14580. .thirdNo>div:nth-child(1),
  14581. .fourNo>div:nth-child(1) {
  14582. margin: 5px 10px 0 0;
  14583. width: 2rem;
  14584. }
  14585. .uploadWidth>>>.el-upload {
  14586. width: 60px;
  14587. height: 60px;
  14588. position: relative;
  14589. }
  14590. .addPeople {
  14591. background: #fa6060;
  14592. width: 150px;
  14593. height: 40px;
  14594. color: #fff;
  14595. border-radius: 5px;
  14596. text-align: center;
  14597. line-height: 40px;
  14598. font-size: 14px;
  14599. cursor: pointer;
  14600. }
  14601. .kcImg {
  14602. width: 60px;
  14603. margin-left: 10px;
  14604. }
  14605. .zyImg {
  14606. width: 55px;
  14607. margin: 0 10px;
  14608. }
  14609. .deleteZy {
  14610. width: 20px;
  14611. position: absolute;
  14612. top: 5px;
  14613. right: 5px;
  14614. cursor: pointer;
  14615. }
  14616. .kcImg>img,
  14617. .zyImg>img,
  14618. .deleteZy>img {
  14619. width: 100%;
  14620. height: 100%;
  14621. }
  14622. .zyBox {
  14623. display: flex;
  14624. flex-direction: row;
  14625. align-items: center;
  14626. background: #67d37d;
  14627. color: #fff;
  14628. width: 210px;
  14629. margin: 20px 20px 0 0;
  14630. border-radius: 10px;
  14631. height: 70px;
  14632. position: relative;
  14633. }
  14634. .upCss {
  14635. display: flex;
  14636. flex-direction: row;
  14637. justify-content: flex-start;
  14638. }
  14639. .upCss>>>.el-icon-plus {
  14640. position: none !important;
  14641. width: 200px;
  14642. height: 100px;
  14643. display: flex;
  14644. flex-wrap: nowrap;
  14645. flex-direction: column;
  14646. align-items: center;
  14647. justify-content: center;
  14648. border: 1px dashed #ccc;
  14649. min-width: 78px;
  14650. min-height: 100px;
  14651. z-index: 999;
  14652. }
  14653. .upCss>>>.el-upload-list__item-name {
  14654. width: 100px;
  14655. white-space: nowrap;
  14656. overflow: hidden;
  14657. text-overflow: ellipsis;
  14658. }
  14659. .upCss>>>.el-upload-list__item .el-icon-close {
  14660. font-size: 20px;
  14661. z-index: 9999;
  14662. }
  14663. .addStageImg {
  14664. min-width: 20px;
  14665. min-height: 20px;
  14666. width: 20px;
  14667. height: 20px;
  14668. cursor: pointer;
  14669. }
  14670. .addHW {
  14671. width: 28px;
  14672. height: 28px;
  14673. cursor: pointer;
  14674. }
  14675. .addStageImg>img,
  14676. .addHW>img {
  14677. width: 100%;
  14678. height: 100%;
  14679. }
  14680. .addNewPP>>>.el-dialog__body {
  14681. padding: 5px 20px;
  14682. }
  14683. .addNewPP>>>.el-dialog {
  14684. margin-top: 5vh !important;
  14685. }
  14686. .addNewPP2>>>.el-dialog__body {
  14687. padding: 5px 0;
  14688. }
  14689. .addNewPP2>>>.el-dialog {
  14690. margin-top: 5vh !important;
  14691. }
  14692. .isHeight {
  14693. height: 680px;
  14694. }
  14695. .toolChoose {
  14696. display: flex;
  14697. /* width: 100%; */
  14698. flex-direction: row;
  14699. flex-wrap: wrap;
  14700. }
  14701. .tool,
  14702. .isToolChoose {
  14703. display: flex;
  14704. flex-direction: column;
  14705. flex-wrap: nowrap;
  14706. width: fit-content;
  14707. margin: 10px 0 10px 0;
  14708. align-items: center;
  14709. border: 2px solid #dbdbdb00;
  14710. padding: 10px 20px;
  14711. border-radius: 5px;
  14712. cursor: pointer;
  14713. /* box-shadow: 0 0 2px 0px #dedede; */
  14714. position: relative;
  14715. box-sizing: border-box;
  14716. }
  14717. .tool:hover {
  14718. border: 2px solid #a5c7ff;
  14719. }
  14720. .tool:hover>.noCTool {
  14721. display: block;
  14722. opacity: 0.5;
  14723. }
  14724. .isToolChoose {
  14725. border: 2px solid #438aff !important;
  14726. box-shadow: 0 0 2px 0px #438aff;
  14727. opacity: 1 !important;
  14728. }
  14729. .isCTool,
  14730. .noCTool {
  14731. width: 30px;
  14732. height: 30px;
  14733. position: absolute;
  14734. top: -4px;
  14735. right: -4px;
  14736. }
  14737. .noCTool {
  14738. display: none;
  14739. }
  14740. .isCTool>img,
  14741. .noCTool>img {
  14742. width: 100%;
  14743. height: 100%;
  14744. }
  14745. .tool+.tool {
  14746. margin-right: 10px;
  14747. }
  14748. .whiteBIcon {
  14749. width: 80px;
  14750. cursor: pointer;
  14751. display: flex;
  14752. flex-direction: column;
  14753. flex-wrap: nowrap;
  14754. align-items: center;
  14755. font-size: 14px;
  14756. }
  14757. .whiteBIcon>img,
  14758. .toolIcon>img,
  14759. .arrow>img {
  14760. width: 100%;
  14761. height: 100%;
  14762. }
  14763. .check img {
  14764. width: 20px;
  14765. height: 20px;
  14766. }
  14767. .whiteBIcon>img {
  14768. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  14769. border-radius: 15px;
  14770. }
  14771. .whiteBIcon>div:nth-child(2) {
  14772. height: 20px;
  14773. line-height: 20px;
  14774. }
  14775. .check {
  14776. /* width: 20px;
  14777. height: 20px; */
  14778. cursor: pointer;
  14779. margin: 10px 0 0;
  14780. }
  14781. .checkDiv {
  14782. display: flex;
  14783. align-items: center;
  14784. }
  14785. .checkDiv span {
  14786. margin-left: 5px;
  14787. color: #858585;
  14788. }
  14789. .customWidth>>>.el-dialog {
  14790. min-width: 500px !important;
  14791. }
  14792. .a_addBox {
  14793. margin: 10px 0;
  14794. background: #fff;
  14795. padding: 15px;
  14796. /* max-height: 600px; */
  14797. overflow: auto;
  14798. }
  14799. .a_add_box {
  14800. border-bottom: 2px solid #eee;
  14801. padding-bottom: 25px;
  14802. }
  14803. .a_add_head {
  14804. display: flex;
  14805. align-items: center;
  14806. justify-content: space-between;
  14807. margin: 10px 0 0 0;
  14808. font-size: 18px;
  14809. }
  14810. .a_add_checkType {
  14811. margin-top: 10px;
  14812. display: flex;
  14813. font-size: 14px;
  14814. align-items: center;
  14815. }
  14816. .a_add_checkType span {
  14817. box-sizing: border-box;
  14818. padding: 0 0 5px 0;
  14819. cursor: pointer;
  14820. }
  14821. .a_add_checkType span+span {
  14822. margin-left: 10px;
  14823. }
  14824. .a_add_checkType .active {
  14825. border-bottom: 2px solid #409eff;
  14826. color: #409eff;
  14827. }
  14828. .a_add_head .a_add_head_input {
  14829. /* width: 540px; */
  14830. width: 100%;
  14831. }
  14832. .a_add_head .a_add_head_div {
  14833. display: flex;
  14834. align-items: center;
  14835. justify-content: space-between;
  14836. }
  14837. .a_add_body {
  14838. display: flex;
  14839. /* align-items: center; */
  14840. align-items: flex-end;
  14841. }
  14842. .a_add_input {
  14843. display: flex;
  14844. align-items: center;
  14845. flex-wrap: wrap;
  14846. }
  14847. .a_add_input_choice {
  14848. flex-direction: column;
  14849. margin-right: 10px;
  14850. }
  14851. .a_add_input_choice>>>.el-radio {
  14852. display: flex;
  14853. align-items: center;
  14854. flex-direction: row-reverse;
  14855. margin: 30px 0 0 0;
  14856. position: relative;
  14857. }
  14858. .a_add_input_choice>>>.el-checkbox {
  14859. display: flex;
  14860. align-items: center;
  14861. flex-direction: row-reverse;
  14862. margin: 30px 0 0 0;
  14863. position: relative;
  14864. }
  14865. .width100 {
  14866. width: 100%;
  14867. }
  14868. .a_add_input .a_add_persent {
  14869. width: 100%;
  14870. }
  14871. .a_add_persent_div {
  14872. width: 100%;
  14873. display: flex;
  14874. align-items: center;
  14875. }
  14876. .a_add_persent_div span {
  14877. margin: 5px 0;
  14878. }
  14879. .a_add_persent_div span:nth-child(1) {
  14880. width: 30%;
  14881. }
  14882. .a_add_persent_div span:nth-child(2) {
  14883. width: 7%;
  14884. }
  14885. .a_add_persent_div span:nth-child(3) {
  14886. width: 40%;
  14887. }
  14888. .a_add_body_div {
  14889. display: flex;
  14890. align-items: center;
  14891. justify-content: center;
  14892. /* flex-direction: column; */
  14893. position: absolute;
  14894. right: -20px;
  14895. transform: translateX(100%);
  14896. }
  14897. .a_add_body_div>>>.el-button--primary {
  14898. background: #466b99;
  14899. border: none;
  14900. }
  14901. .all_choose {
  14902. display: flex;
  14903. flex-direction: row;
  14904. align-items: flex-start;
  14905. width: 100%;
  14906. }
  14907. .all_choose+.all_choose {
  14908. /* margin-top: 10px */
  14909. }
  14910. .all_choose>span {
  14911. min-width: fit-content;
  14912. display: block;
  14913. white-space: nowrap;
  14914. overflow: hidden;
  14915. text-overflow: ellipsis;
  14916. margin-right: 20px;
  14917. font-weight: bold;
  14918. font-size: 14px;
  14919. }
  14920. .all_choose>>>.el-checkbox-group {
  14921. display: flex;
  14922. flex-direction: row;
  14923. width: 100%;
  14924. flex-wrap: wrap;
  14925. align-content: center;
  14926. justify-content: flex-start;
  14927. align-items: center;
  14928. margin-top: 3px;
  14929. }
  14930. .all_choose>.el-checkbox-group>>>.el-checkbox {
  14931. margin-bottom: 10px;
  14932. display: flex;
  14933. flex-direction: row;
  14934. align-items: center;
  14935. margin-right: 10px;
  14936. }
  14937. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  14938. min-width: 80px;
  14939. overflow: hidden;
  14940. width: 80px;
  14941. text-overflow: ellipsis;
  14942. white-space: nowrap;
  14943. }
  14944. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  14945. width: auto;
  14946. }
  14947. .choose>div:nth-child(3)>span {
  14948. /* letter-spacing: 0 !important; */
  14949. }
  14950. .choose {
  14951. display: flex;
  14952. flex-direction: column;
  14953. flex-wrap: nowrap;
  14954. height: 100%;
  14955. justify-content: space-evenly;
  14956. align-items: flex-start;
  14957. }
  14958. .both {
  14959. display: flex;
  14960. flex-direction: row;
  14961. flex-wrap: wrap;
  14962. width: 100%;
  14963. align-items: center;
  14964. justify-content: flex-start;
  14965. margin: 15px 0;
  14966. }
  14967. .notice>>>.el-dialog {
  14968. width: 500px !important;
  14969. text-align: center;
  14970. }
  14971. .notice>>>.el-button {
  14972. margin-top: 20px;
  14973. }
  14974. .whiteBg {
  14975. /* background: #fff; */
  14976. border-radius: 10px;
  14977. }
  14978. .wb_j_box {
  14979. display: flex;
  14980. width: 100%;
  14981. padding: 0 20px 0;
  14982. box-sizing: border-box;
  14983. }
  14984. .wb_j_box_content {
  14985. width: calc(100% - 55% - 100px);
  14986. display: flex;
  14987. align-items: center;
  14988. }
  14989. .wb_j_box_p_box {
  14990. max-width: calc(100% - 200px);
  14991. word-break: break-all;
  14992. overflow: hidden;
  14993. margin: 0 0 0 10px;
  14994. font-size: 14px;
  14995. color: #6e6e6e;
  14996. z-index: 999;
  14997. }
  14998. .chooseWho {
  14999. display: flex;
  15000. width: 410px;
  15001. flex-direction: row;
  15002. flex-wrap: nowrap;
  15003. justify-content: space-between;
  15004. padding-bottom: 10px;
  15005. }
  15006. .chooseWho>div {
  15007. cursor: pointer;
  15008. padding-bottom: 10px;
  15009. font-weight: bold;
  15010. }
  15011. .isChooseActive {
  15012. color: #3e88f4;
  15013. border-bottom: 2px solid #2f80f3;
  15014. }
  15015. .toolSort {
  15016. display: flex;
  15017. flex-direction: row;
  15018. flex-wrap: wrap;
  15019. justify-content: flex-start;
  15020. align-items: flex-start;
  15021. }
  15022. .toolSort>div {
  15023. margin-right: 10px;
  15024. }
  15025. .tools {
  15026. width: 100%;
  15027. display: flex;
  15028. flex-direction: column;
  15029. flex-wrap: nowrap;
  15030. align-items: flex-start;
  15031. }
  15032. .leftTools,
  15033. .rightTools {
  15034. width: 50%;
  15035. }
  15036. .leftTools+.leftTools {
  15037. border-top: 1px solid #dbdbdb;
  15038. padding-top: 30px;
  15039. }
  15040. .rightTools {
  15041. display: flex;
  15042. flex-direction: row;
  15043. flex-wrap: nowrap;
  15044. justify-content: space-around;
  15045. }
  15046. .firstToolList {
  15047. display: flex;
  15048. flex-direction: column;
  15049. flex-wrap: nowrap;
  15050. align-items: center;
  15051. }
  15052. .iconList {
  15053. display: flex;
  15054. flex-direction: row;
  15055. flex-wrap: wrap;
  15056. justify-content: flex-start;
  15057. align-items: center;
  15058. margin: 20px 0 5px 0;
  15059. width: 240px;
  15060. min-width: 240px;
  15061. }
  15062. .iconTool {
  15063. display: flex;
  15064. flex-direction: column;
  15065. flex-wrap: nowrap;
  15066. align-items: center;
  15067. justify-content: flex-start;
  15068. margin: 15px 10px;
  15069. }
  15070. .toolIcon {
  15071. width: 50px;
  15072. }
  15073. .taskBorder {
  15074. /* border: 1px solid #CAD1DC; */
  15075. border-radius: 10px;
  15076. margin-top: 10px;
  15077. min-height: 670px;
  15078. position: relative;
  15079. background: #fff;
  15080. padding: 20px;
  15081. overflow: hidden;
  15082. box-sizing: border-box;
  15083. }
  15084. .smallTaskBorder {
  15085. height: 405px;
  15086. min-height: 405px !important;
  15087. overflow: hidden;
  15088. }
  15089. /* .taskBorder>div {
  15090. padding: 30px 30px 10px;
  15091. } */
  15092. .addTaskBorder {
  15093. /* border: 2px solid #5E9AFC; */
  15094. border-radius: 8px;
  15095. margin-top: 10px;
  15096. cursor: pointer;
  15097. /* height: 50px;
  15098. line-height: 50px; */
  15099. background: #fff;
  15100. padding: 15px 0;
  15101. display: flex;
  15102. align-items: center;
  15103. justify-content: center;
  15104. }
  15105. /* .addTaskBorder>div {
  15106. margin: 0 auto;
  15107. display: flex;
  15108. align-items: center;
  15109. justify-content: center;
  15110. }
  15111. .addTaskBorder>div>img {
  15112. width: 20px;
  15113. }
  15114. .addTaskBorder>div>span {
  15115. font-size: 16px;
  15116. margin-left: 10px;
  15117. color: #5E9AFC;
  15118. } */
  15119. .funBlock {
  15120. display: flex;
  15121. padding: 15px 0;
  15122. flex-direction: row;
  15123. justify-content: center;
  15124. align-items: center;
  15125. position: absolute;
  15126. right: 0;
  15127. bottom: 0;
  15128. background: #fff;
  15129. width: 100%;
  15130. height: 60px;
  15131. z-index: 9;
  15132. }
  15133. .fold {
  15134. display: flex;
  15135. margin: 0 20px;
  15136. flex-direction: row;
  15137. align-items: center;
  15138. cursor: pointer;
  15139. color: #2b7bff;
  15140. }
  15141. .arrow {
  15142. margin-right: 8px;
  15143. width: 16px;
  15144. height: 16px;
  15145. min-width: 16px;
  15146. min-height: 16px;
  15147. background-size: 100% 100%;
  15148. display: block;
  15149. background-image: url(../../../assets/icon/new/u_up.png);
  15150. /* border-left: 7px solid transparent;
  15151. border-bottom: 7px solid #717C8D;
  15152. border-top: 0px solid transparent;
  15153. border-right: 7px solid transparent; */
  15154. /* box-sizing: border-box; */
  15155. transition: all 0.3s;
  15156. }
  15157. .arrowZ {
  15158. transform: rotate(180deg);
  15159. }
  15160. .addToolFun {
  15161. display: flex;
  15162. width: 150px;
  15163. flex-direction: row;
  15164. align-items: center;
  15165. justify-content: center;
  15166. border: 2px dashed #cad1dc;
  15167. border-radius: 5px;
  15168. height: 50px;
  15169. margin: 35px auto 0;
  15170. cursor: pointer;
  15171. }
  15172. .addToolFun2 {
  15173. display: flex;
  15174. width: 150px;
  15175. border: 2px dashed #cad1dc;
  15176. flex-direction: row;
  15177. align-items: center;
  15178. justify-content: center;
  15179. border-radius: 5px;
  15180. height: 50px;
  15181. margin: 0 auto 0;
  15182. cursor: pointer;
  15183. }
  15184. .addToolFun2>div,
  15185. .addToolFun>div {
  15186. display: flex;
  15187. line-height: 50px;
  15188. }
  15189. .addToolImg {
  15190. width: 20px;
  15191. height: 20px;
  15192. margin-right: 10px;
  15193. }
  15194. .addToolsDia>>>.el-dialog__body {
  15195. padding: 20px;
  15196. }
  15197. .addToolsDia>>>.el-dialog__body>.toolChoose {
  15198. padding: 0;
  15199. }
  15200. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  15201. padding: 0;
  15202. border-bottom: none;
  15203. margin-bottom: 0;
  15204. }
  15205. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  15206. width: 100%;
  15207. }
  15208. .lineCss>>>.el-form-item__label {
  15209. width: auto !important;
  15210. }
  15211. .lineCss>>>.el-form-item__content {
  15212. margin-left: 50px !important;
  15213. }
  15214. .newSteps {
  15215. display: flex;
  15216. width: 100% !important;
  15217. /* height: 80px; */
  15218. cursor: pointer;
  15219. margin: 10px 0;
  15220. border-radius: 10px;
  15221. flex-direction: row;
  15222. align-content: center;
  15223. justify-content: center;
  15224. align-items: center;
  15225. margin: 0 !important;
  15226. }
  15227. /* 评价样式 */
  15228. .elist_css {
  15229. padding-bottom: 75px !important;
  15230. }
  15231. .elist_title {
  15232. margin-bottom: 10px;
  15233. }
  15234. .elist_input {
  15235. width: 100%;
  15236. }
  15237. .elist_input_box {
  15238. display: flex;
  15239. align-items: center;
  15240. flex-wrap: wrap;
  15241. }
  15242. .elist_input_box+.elist_input_box {
  15243. margin-top: 30px;
  15244. }
  15245. .elist_input .elist_input_box input {
  15246. font: inherit;
  15247. color: currentColor;
  15248. width: 100%;
  15249. /* max-width: calc(100% - 385px); */
  15250. max-width: calc(100% - 150px);
  15251. padding: 8px 14px;
  15252. display: block;
  15253. min-width: 0;
  15254. outline: none;
  15255. border: 1px solid rgba(0, 0, 0, 0.23);
  15256. border-radius: 4px;
  15257. box-sizing: border-box;
  15258. background: #fff;
  15259. margin: 0 20px 0 0;
  15260. }
  15261. .elist_input .elist_input_box span {
  15262. height: 36px;
  15263. line-height: 36px;
  15264. color: rgb(82, 82, 82);
  15265. min-width: 80px;
  15266. }
  15267. .elist_input .elist_input_box .remove {
  15268. height: 20px;
  15269. width: 20px;
  15270. min-height: 20px;
  15271. min-width: 20px;
  15272. background-size: 100% 100%;
  15273. background-position: unset;
  15274. margin-left: 5px;
  15275. }
  15276. .elist_input_box>>>.el-rate {
  15277. display: flex;
  15278. height: 36px;
  15279. align-items: center;
  15280. }
  15281. .elist_input_box .elist_inptu_text {
  15282. width: 100%;
  15283. display: flex;
  15284. align-items: center;
  15285. margin-top: 10px;
  15286. }
  15287. .elist_input_box .elist_inptu_text input {
  15288. /* width: 500px; */
  15289. width: 100%;
  15290. max-width: unset;
  15291. }
  15292. .elist_input_box>>>.el-rate__icon {
  15293. font-size: 24px;
  15294. }
  15295. .elist_btn {
  15296. margin-top: 10px;
  15297. }
  15298. .lineTitle {
  15299. /* margin-top: 15px; */
  15300. width: 110px;
  15301. font-size: 16px;
  15302. display: flex;
  15303. align-items: center;
  15304. line-height: 20px;
  15305. }
  15306. .lineTitle::before {
  15307. content: "";
  15308. display: block;
  15309. width: 3px;
  15310. height: 20px;
  15311. background: #0061ff;
  15312. border-radius: 3px;
  15313. margin: 0 5px 0 0;
  15314. }
  15315. .clineTitle::before {
  15316. content: "";
  15317. display: block;
  15318. min-width: 10px;
  15319. width: 10px;
  15320. height: 10px;
  15321. background: #0061ff;
  15322. border-radius: 50%;
  15323. margin: 0 5px 0 0;
  15324. }
  15325. .courseTop {
  15326. display: flex;
  15327. flex-direction: row;
  15328. justify-content: space-between;
  15329. align-items: center;
  15330. width: calc(100% - 40px);
  15331. margin: 0 auto;
  15332. padding: 10px 0;
  15333. }
  15334. .stepsNav {
  15335. display: flex;
  15336. flex-direction: row;
  15337. justify-content: flex-start;
  15338. align-items: center;
  15339. }
  15340. .stepsWord {
  15341. font-size: 18px;
  15342. color: #fff;
  15343. font-weight: bold;
  15344. margin-left: auto;
  15345. background: rgb(15, 126, 255);
  15346. border-radius: 5px;
  15347. padding: 3px 25px;
  15348. box-sizing: border-box;
  15349. }
  15350. .stepBox {
  15351. width: calc(100% - 40px);
  15352. height: calc(100% - 50px);
  15353. overflow: hidden;
  15354. border-radius: 5px;
  15355. margin: 0 auto;
  15356. }
  15357. .rightBox {
  15358. width: calc(100%);
  15359. background: #f0f2f5;
  15360. /* border-radius: 10px; */
  15361. overflow: auto;
  15362. height: calc(100% - 150px);
  15363. margin: 0 auto;
  15364. position: relative;
  15365. box-sizing: border-box;
  15366. }
  15367. .e_add_top {
  15368. display: flex;
  15369. justify-content: space-between;
  15370. background: #fff;
  15371. position: absolute;
  15372. right: 20px;
  15373. height: 50px;
  15374. align-items: center;
  15375. }
  15376. .e_add_title2 {
  15377. display: flex;
  15378. align-items: center;
  15379. }
  15380. .e_add_title2 span {
  15381. width: 40px;
  15382. }
  15383. .e_add_title {
  15384. display: flex;
  15385. align-items: center;
  15386. color: #b8b8b8;
  15387. font-size: 18px;
  15388. position: relative;
  15389. height: 40px;
  15390. }
  15391. .e_add_title span {
  15392. margin-right: 10px;
  15393. }
  15394. .e_add_title .el_input {
  15395. width: 300px;
  15396. }
  15397. .e_add_title>>>.el-input__inner {
  15398. width: 400px;
  15399. }
  15400. .e_add_btn {}
  15401. .e_add_content {
  15402. display: flex;
  15403. width: 100%;
  15404. }
  15405. .e_add_list {
  15406. background: #fff;
  15407. height: 500px;
  15408. width: 210px;
  15409. position: relative;
  15410. margin: 15px 5px 0 0;
  15411. flex-shrink: 0;
  15412. display: flex;
  15413. flex-direction: column;
  15414. }
  15415. .e_add_list_title {
  15416. font-size: 20px;
  15417. width: 100%;
  15418. box-sizing: border-box;
  15419. padding: 15px 40px;
  15420. text-align: center;
  15421. border-bottom: 1px solid #eaeaea;
  15422. position: relative;
  15423. display: flex;
  15424. align-items: center;
  15425. justify-content: center;
  15426. height: 57px;
  15427. background: #f6f6f6;
  15428. }
  15429. .e_add_list_title span {
  15430. overflow: hidden;
  15431. white-space: nowrap;
  15432. text-overflow: ellipsis;
  15433. }
  15434. .e_add_list_title img {
  15435. position: absolute;
  15436. right: 15px;
  15437. width: 25px;
  15438. cursor: pointer;
  15439. top: 50%;
  15440. transform: translateY(-50%);
  15441. }
  15442. .e_add_list_body {
  15443. height: calc(100% - 187px);
  15444. overflow: auto;
  15445. }
  15446. .e_add_list_child {
  15447. width: 100%;
  15448. display: flex;
  15449. align-items: center;
  15450. justify-content: center;
  15451. position: relative;
  15452. box-sizing: border-box;
  15453. padding: 15px 40px;
  15454. text-align: center;
  15455. }
  15456. .e_add_list_child span {
  15457. overflow: hidden;
  15458. white-space: nowrap;
  15459. text-overflow: ellipsis;
  15460. cursor: pointer;
  15461. }
  15462. .e_add_list_child img {
  15463. position: absolute;
  15464. right: 10px;
  15465. width: 21px;
  15466. cursor: pointer;
  15467. top: 50%;
  15468. transform: translateY(-50%);
  15469. }
  15470. .e_add_list_child+.e_add_list_child {
  15471. border-top: 1px solid #eaeaea;
  15472. }
  15473. .e_add_list_child .active {
  15474. color: #409eff;
  15475. }
  15476. .e_add_list_btn {
  15477. position: absolute;
  15478. bottom: 0;
  15479. height: 50px;
  15480. background: rgb(120, 120, 254);
  15481. width: 100%;
  15482. color: #fff;
  15483. font-size: 16px;
  15484. text-align: center;
  15485. line-height: 50px;
  15486. cursor: pointer;
  15487. }
  15488. .e_add_list_detail {
  15489. position: absolute;
  15490. bottom: 0;
  15491. height: 130px;
  15492. background: rgb(120, 120, 254);
  15493. width: 100%;
  15494. color: #fff;
  15495. font-size: 16px;
  15496. display: flex;
  15497. align-items: center;
  15498. justify-content: center;
  15499. }
  15500. .e_add_list_detail textarea {
  15501. height: 90%;
  15502. width: 95%;
  15503. border: none;
  15504. resize: none;
  15505. outline: none;
  15506. padding: 5px;
  15507. box-sizing: border-box;
  15508. }
  15509. .e_add_list_pbox {
  15510. width: 100%;
  15511. }
  15512. .e_add_list_pbox_title {
  15513. height: 50px;
  15514. background: #fff;
  15515. display: flex;
  15516. align-items: center;
  15517. width: 100%;
  15518. box-sizing: border-box;
  15519. padding: 0 20px;
  15520. flex-direction: row;
  15521. flex-wrap: wrap;
  15522. }
  15523. .type_title {
  15524. font-size: 18px;
  15525. font-weight: 700;
  15526. }
  15527. .type_content {
  15528. font-size: 16px;
  15529. margin-left: 30px;
  15530. }
  15531. .type_content span+span {
  15532. margin-left: 20px;
  15533. }
  15534. .type_content span {
  15535. cursor: pointer;
  15536. padding-bottom: 5px;
  15537. box-sizing: border-box;
  15538. }
  15539. .type_content .active {
  15540. color: #409eff;
  15541. border-bottom: 2px solid #409eff;
  15542. }
  15543. .e_add_list_pbox_content {
  15544. height: calc(100% - 50px);
  15545. display: flex;
  15546. align-items: center;
  15547. width: 100%;
  15548. background: #fff;
  15549. }
  15550. .mbCss {
  15551. width: 100%;
  15552. display: flex;
  15553. flex-direction: row;
  15554. flex-wrap: nowrap;
  15555. align-content: center;
  15556. align-items: flex-start;
  15557. justify-content: flex-start;
  15558. }
  15559. .pjCss {
  15560. /* width: 42%; */
  15561. width: calc(100% - 55%);
  15562. display: flex;
  15563. flex-direction: column;
  15564. flex-wrap: nowrap;
  15565. align-items: flex-start;
  15566. }
  15567. .e_box {
  15568. /* display: flex; */
  15569. flex-wrap: wrap;
  15570. max-height: 500px;
  15571. align-items: flex-start;
  15572. overflow: auto;
  15573. width: 100%;
  15574. }
  15575. .e_card {
  15576. border: 1px solid #ccc;
  15577. background: #fff;
  15578. margin-right: 20px;
  15579. width: 270px;
  15580. display: flex;
  15581. flex-direction: column;
  15582. align-items: center;
  15583. border-radius: 5px;
  15584. margin-top: 10px;
  15585. text-align: center;
  15586. }
  15587. .e_card_picture {
  15588. margin: 10px 0;
  15589. }
  15590. .e_card_picture>img {
  15591. width: 50px;
  15592. }
  15593. .e_card_name {
  15594. width: 100%;
  15595. padding: 0 10px;
  15596. box-sizing: border-box;
  15597. margin-bottom: 10px;
  15598. overflow: hidden;
  15599. text-overflow: ellipsis;
  15600. white-space: nowrap;
  15601. }
  15602. .e_card_time {
  15603. width: 100%;
  15604. padding: 0 10px;
  15605. box-sizing: border-box;
  15606. font-size: 15px;
  15607. color: #c3c3c3;
  15608. margin-bottom: 10px;
  15609. }
  15610. .e_card_btn {
  15611. height: 40px;
  15612. display: flex;
  15613. align-items: center;
  15614. width: 100%;
  15615. background: rgb(244, 244, 244);
  15616. }
  15617. .e_card_btn:hover {
  15618. background: rgb(221 221 221);
  15619. }
  15620. .e_card_btn span {
  15621. flex: 1 1 auto;
  15622. text-align: center;
  15623. cursor: pointer;
  15624. }
  15625. .addEva {
  15626. border: 1px solid #ccc;
  15627. background: #fff;
  15628. margin-right: 20px;
  15629. width: 270px;
  15630. height: 149px;
  15631. display: flex;
  15632. flex-direction: column;
  15633. align-items: center;
  15634. border-radius: 5px;
  15635. margin-top: 10px;
  15636. text-align: center;
  15637. cursor: pointer;
  15638. justify-content: center;
  15639. }
  15640. .addEva>img {
  15641. width: 50px;
  15642. object-fit: cover;
  15643. }
  15644. .uploadFm {
  15645. border: 1px dashed #ccc;
  15646. width: 100%;
  15647. height: 140px;
  15648. position: relative;
  15649. cursor: pointer;
  15650. display: flex;
  15651. flex-direction: column;
  15652. justify-content: center;
  15653. align-items: center;
  15654. font-size: 14px;
  15655. color: #6e6e6e;
  15656. position: relative;
  15657. }
  15658. .cover_p {
  15659. width: 100% !important;
  15660. height: 100%;
  15661. object-fit: cover;
  15662. }
  15663. .uploadFm2:hover .cover_mask {
  15664. display: flex !important;
  15665. }
  15666. .cover_mask {
  15667. display: none;
  15668. width: 100%;
  15669. height: 100%;
  15670. position: absolute;
  15671. background: #00000054;
  15672. align-items: center;
  15673. justify-content: center;
  15674. flex-direction: column;
  15675. }
  15676. .cover_mask>img {
  15677. width: 30px;
  15678. }
  15679. .cover_mask>span {
  15680. color: #fff;
  15681. font-size: 12px;
  15682. }
  15683. .uploadFm>img {
  15684. width: 50px;
  15685. }
  15686. .fileCss {
  15687. width: 100%;
  15688. display: flex;
  15689. flex-direction: row;
  15690. flex-wrap: nowrap;
  15691. justify-content: space-around;
  15692. align-items: center;
  15693. padding-top: 15px;
  15694. }
  15695. .fileCss>div {
  15696. display: flex;
  15697. flex-direction: column;
  15698. align-items: center;
  15699. }
  15700. .fileCss .spanName {
  15701. margin-top: 10px;
  15702. }
  15703. .sysPicBox {
  15704. display: flex;
  15705. flex-direction: row;
  15706. flex-wrap: wrap;
  15707. align-content: flex-start;
  15708. height: 435px;
  15709. overflow: auto;
  15710. position: relative;
  15711. }
  15712. .picNone {
  15713. position: absolute;
  15714. left: 50%;
  15715. top: 45%;
  15716. transform: translate(-50%, -50%);
  15717. width: fit-content;
  15718. color: #9c9c9c;
  15719. }
  15720. .sysPic {
  15721. width: 200px;
  15722. height: 115px;
  15723. margin: 0 20px 20px 0;
  15724. cursor: pointer;
  15725. }
  15726. .sysPic>img,
  15727. .isSysPic>img,
  15728. .deletePic>img {
  15729. width: 100%;
  15730. height: 100%;
  15731. object-fit: cover;
  15732. }
  15733. .isSysPic {
  15734. width: 200px;
  15735. height: 115px;
  15736. position: relative;
  15737. }
  15738. .deletePic {
  15739. width: 20px;
  15740. height: 20px;
  15741. position: absolute;
  15742. top: 0;
  15743. right: 0;
  15744. cursor: pointer;
  15745. }
  15746. .select_box1 {
  15747. height: 100%;
  15748. }
  15749. .select_box1_img {
  15750. background: #fff;
  15751. border-radius: 5px;
  15752. padding: 15px;
  15753. box-sizing: border-box;
  15754. margin-bottom: 20px;
  15755. }
  15756. .select_box1_title {
  15757. padding: 0 0 15px 0;
  15758. border-bottom: 1px solid #eee;
  15759. margin-bottom: 15px;
  15760. }
  15761. .select_box1_title span:nth-child(1) {
  15762. font-size: 16px;
  15763. margin-right: 20px;
  15764. color: #000;
  15765. }
  15766. .select_box1_title span:nth-child(2) {
  15767. font-size: 14px;
  15768. color: rgb(112, 112, 112);
  15769. }
  15770. .select_box1_add_img {}
  15771. .select_box1_select {
  15772. background: #fff;
  15773. border-radius: 5px;
  15774. padding: 15px;
  15775. box-sizing: border-box;
  15776. height: calc(100% - 200px);
  15777. overflow: auto;
  15778. }
  15779. .select_box2 {
  15780. height: 100%;
  15781. }
  15782. .select_box2_title {
  15783. background: #fff;
  15784. border-radius: 5px;
  15785. padding: 5px 10px;
  15786. box-sizing: border-box;
  15787. margin-bottom: 10px;
  15788. }
  15789. .select_box2_box {
  15790. display: flex;
  15791. height: calc(100% - 30px);
  15792. }
  15793. .select_box2_img {
  15794. width: calc(100% - 310px);
  15795. height: 100%;
  15796. overflow: auto;
  15797. background: #fff;
  15798. border-radius: 5px;
  15799. }
  15800. .select_box2_img img {
  15801. width: 100%;
  15802. }
  15803. .select_box2_answer {
  15804. background: #fff;
  15805. margin-left: 10px;
  15806. border-radius: 5px;
  15807. width: 300px;
  15808. overflow: auto;
  15809. height: 100%;
  15810. display: flex;
  15811. flex-direction: column;
  15812. align-items: center;
  15813. padding-top: 10px;
  15814. box-sizing: border-box;
  15815. }
  15816. .select_box2_answer_box {
  15817. margin: 0 0 10px 0;
  15818. width: 85%;
  15819. }
  15820. .rate_textarea {
  15821. font: inherit;
  15822. color: currentColor;
  15823. width: 100%;
  15824. padding: 8px 14px;
  15825. display: block;
  15826. min-width: 0;
  15827. outline: none;
  15828. border: 1px solid rgba(0, 0, 0, 0.23);
  15829. border-radius: 4px;
  15830. box-sizing: border-box;
  15831. background: #fff;
  15832. margin: 0 20px 0 0;
  15833. resize: none;
  15834. }
  15835. .select_answer_title {
  15836. text-align: left;
  15837. width: 85%;
  15838. margin-bottom: 10px;
  15839. font-size: 18px;
  15840. color: #8e8e8e;
  15841. }
  15842. .mask {
  15843. background-color: rgb(0 0 0 / 30%);
  15844. /* position: fixed; */
  15845. position: absolute;
  15846. top: 0;
  15847. left: 0;
  15848. width: 100%;
  15849. height: 100%;
  15850. z-index: 90;
  15851. display: flex;
  15852. align-items: center;
  15853. justify-content: center;
  15854. }
  15855. .progressBox {
  15856. width: 300px;
  15857. height: 150px;
  15858. background: #fff;
  15859. border-radius: 10px;
  15860. box-shadow: 0 0 6px 1px #bfbfbf;
  15861. display: flex;
  15862. align-items: center;
  15863. justify-content: center;
  15864. flex-direction: column;
  15865. position: relative;
  15866. color: #6c6c6c;
  15867. }
  15868. .progressBox>>>.el-progress-bar__outer {
  15869. background-color: #d1dfff !important;
  15870. }
  15871. .progressBox .lbox {
  15872. height: 50px;
  15873. font-size: 19px;
  15874. display: flex;
  15875. align-items: center;
  15876. color: #747474;
  15877. }
  15878. .progressBox .lbox img {
  15879. width: 40px;
  15880. margin-right: 20px;
  15881. }
  15882. .closeCss {
  15883. position: absolute;
  15884. top: 8px;
  15885. right: 8px;
  15886. cursor: pointer;
  15887. width: 20px;
  15888. height: 20px;
  15889. }
  15890. .closeCss>img {
  15891. width: 100%;
  15892. height: 100%;
  15893. }
  15894. .updateTips::before {
  15895. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  15896. font-size: 14px;
  15897. margin-left: 20px;
  15898. font-weight: 400;
  15899. color: #ff3a3a;
  15900. margin-bottom: 10px;
  15901. display: block;
  15902. }
  15903. .updateMask {
  15904. width: 100%;
  15905. z-index: 3;
  15906. top: 0;
  15907. position: absolute;
  15908. /* background-color: rgba(0,0,0,.3); */
  15909. }
  15910. .t_j_box {
  15911. display: flex;
  15912. }
  15913. .t_j_box span:nth-child(1) {
  15914. width: 15%;
  15915. overflow: hidden;
  15916. margin-right: 10px;
  15917. text-overflow: ellipsis;
  15918. white-space: nowrap;
  15919. }
  15920. .t_j_box span:nth-child(2) {
  15921. width: 30%;
  15922. overflow: hidden;
  15923. text-overflow: ellipsis;
  15924. margin-right: 10px;
  15925. }
  15926. .t_j_box span:nth-child(3) {
  15927. max-width: calc(55% - 20px);
  15928. overflow: hidden;
  15929. text-overflow: ellipsis;
  15930. }
  15931. .sentenBox {
  15932. background: #fff;
  15933. height: 600px;
  15934. overflow: auto;
  15935. background-image: url("../../../assets/icon/conSentences/csBg.png");
  15936. background-position: 102%;
  15937. background-repeat: no-repeat;
  15938. background-size: 60%;
  15939. }
  15940. .sentenBox>.sentenContent {
  15941. padding-bottom: 10px;
  15942. width: 97%;
  15943. margin: 0 auto;
  15944. }
  15945. .sentenBox>.sentenContent+.sentenContent {
  15946. border-top: 1px solid #cbcbcb;
  15947. }
  15948. .addSen {
  15949. background: #409efe;
  15950. width: 90px;
  15951. color: #fff;
  15952. height: 35px;
  15953. text-align: center;
  15954. line-height: 35px;
  15955. border-radius: 5px;
  15956. float: right;
  15957. margin: 10px 20px 0 0;
  15958. cursor: pointer;
  15959. }
  15960. .sentenTop {
  15961. display: flex;
  15962. flex-direction: row;
  15963. flex-wrap: nowrap;
  15964. align-items: center;
  15965. }
  15966. .sentenTop::before {
  15967. content: attr(index);
  15968. background: #3681fc;
  15969. border-radius: 50%;
  15970. color: #fff;
  15971. width: 25px;
  15972. height: 25px;
  15973. min-width: 25px;
  15974. min-height: 25px;
  15975. text-align: center;
  15976. line-height: 25px;
  15977. margin-right: 5px;
  15978. }
  15979. .sentenTop>div:nth-child(2) {
  15980. width: 300px;
  15981. margin: 0 15px;
  15982. }
  15983. .sentenTop>div:nth-child(3) {
  15984. background: #409efe;
  15985. color: #fff;
  15986. width: 65px;
  15987. height: 35px;
  15988. text-align: center;
  15989. line-height: 35px;
  15990. border-radius: 5px;
  15991. cursor: pointer;
  15992. }
  15993. .cardList {
  15994. padding: 30px 0 20px 0;
  15995. display: flex;
  15996. flex-direction: row;
  15997. flex-wrap: wrap;
  15998. align-items: center;
  15999. box-sizing: border-box;
  16000. border-bottom: 1px solid #f4f4f4;
  16001. width: 98%;
  16002. margin: 0 auto;
  16003. }
  16004. .rightCardList {
  16005. display: flex;
  16006. flex-wrap: wrap;
  16007. }
  16008. .cardBox {
  16009. display: flex;
  16010. flex-direction: row;
  16011. flex-wrap: wrap;
  16012. align-items: center;
  16013. align-content: center;
  16014. }
  16015. .isCard,
  16016. .isCard1 {
  16017. width: auto;
  16018. padding: 0 20px;
  16019. height: 65px;
  16020. text-align: center;
  16021. line-height: 65px;
  16022. font-size: 14px;
  16023. cursor: pointer;
  16024. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16025. background-size: 100% 100%;
  16026. position: relative;
  16027. z-index: 99;
  16028. }
  16029. .isCard1 {
  16030. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16031. }
  16032. .isCard:hover .deleteWord {
  16033. display: block;
  16034. }
  16035. .isCard>div:nth-child(1),
  16036. .isCard1>div:nth-child(1) {
  16037. white-space: nowrap;
  16038. overflow: hidden;
  16039. text-overflow: ellipsis;
  16040. width: 100%;
  16041. margin: 0 auto;
  16042. }
  16043. .card {
  16044. width: 140px;
  16045. height: 65px;
  16046. }
  16047. .card>img {
  16048. width: 100%;
  16049. height: 100%;
  16050. }
  16051. .rightCardBox {
  16052. width: 98%;
  16053. margin: 10px auto 0;
  16054. }
  16055. .rightCardBox>div:nth-child(1) {
  16056. margin-bottom: 10px;
  16057. }
  16058. .cardCss {
  16059. display: flex;
  16060. flex-direction: column;
  16061. flex-wrap: nowrap;
  16062. align-items: center;
  16063. border-bottom: 3px solid #b4c3d3;
  16064. padding: 0 0 5px 0;
  16065. /* margin-right: 10px; */
  16066. }
  16067. .cardCss>div:nth-child(2) {
  16068. background: #5b7b9d;
  16069. color: #fff;
  16070. width: 20px;
  16071. height: 20px;
  16072. border-radius: 50%;
  16073. text-align: center;
  16074. line-height: 20px;
  16075. }
  16076. .sentenTopBox {
  16077. display: flex;
  16078. flex-direction: row;
  16079. flex-wrap: nowrap;
  16080. align-items: center;
  16081. justify-content: space-between;
  16082. padding: 55px 0 0 20px;
  16083. box-sizing: border-box;
  16084. width: 85%;
  16085. }
  16086. .rb_c_ai_box,
  16087. .stepsBottom {
  16088. width: 100%;
  16089. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16090. /* background: #f7f7f7; */
  16091. border-radius: 10px;
  16092. overflow: hidden;
  16093. /* height: 100%; */
  16094. height: calc(100% - 55px);
  16095. }
  16096. .navTop {
  16097. background: #53749b;
  16098. color: #fff;
  16099. height: 40px;
  16100. line-height: 40px;
  16101. padding-left: 15px;
  16102. font-size: 18px;
  16103. }
  16104. .navBottom {
  16105. /* background: #6b91b7; */
  16106. height: 100%;
  16107. overflow: auto;
  16108. padding: 10px 0;
  16109. }
  16110. .navStage {
  16111. display: flex;
  16112. flex-direction: row;
  16113. flex-wrap: nowrap;
  16114. align-items: center;
  16115. padding: 10px 10px 10px 0;
  16116. cursor: pointer;
  16117. background: #ffffff;
  16118. width: 95%;
  16119. margin: 5px auto 5px;
  16120. box-sizing: border-box;
  16121. border-radius: 5px;
  16122. flex-wrap: wrap;
  16123. position: relative;
  16124. }
  16125. .navStage:hover>.chapter_upload_drag {
  16126. display: block;
  16127. }
  16128. .navTask:hover>.chapter_upload_drag {
  16129. display: block;
  16130. }
  16131. .chapter_upload:hover>.chapter_upload_drag {
  16132. display: block;
  16133. }
  16134. .navStage::before {
  16135. content: "";
  16136. display: block;
  16137. width: 16px;
  16138. height: 16px;
  16139. background-image: url(../../../assets/icon/new/icon_stage.png);
  16140. background-size: 100%;
  16141. margin-left: 25px;
  16142. }
  16143. .navStage .chapter_unit_open {
  16144. content: "";
  16145. display: block;
  16146. width: 16px;
  16147. height: 16px;
  16148. background-image: url(../../../assets/icon/new/down.png);
  16149. transform: rotate(-90deg);
  16150. background-size: 100%;
  16151. margin-left: 10px;
  16152. transition: all 0.5s;
  16153. }
  16154. .isNavStageOpen .chapter_unit_open {
  16155. transform: rotate(0deg);
  16156. }
  16157. .isNavStage {
  16158. background: #0061ff;
  16159. }
  16160. .isNavStage::before {
  16161. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  16162. }
  16163. .isNavStage .chapter_unit_open {
  16164. background-image: url(../../../assets/icon/new/downC.png);
  16165. }
  16166. .isNavStage .nt_taskName {
  16167. font-weight: bold !important;
  16168. color: #ffffff !important;
  16169. }
  16170. .isNavStage .nt_taskTitle {
  16171. font-weight: bold !important;
  16172. color: #fff !important;
  16173. }
  16174. .navStage .nt_taskBox {
  16175. width: calc(100% - 68px);
  16176. padding: 0 0 0 5px;
  16177. box-sizing: border-box;
  16178. box-sizing: border-box;
  16179. display: flex;
  16180. flex-direction: row;
  16181. flex-wrap: nowrap;
  16182. align-items: baseline;
  16183. }
  16184. .navStage .nt_taskTitle {
  16185. color: #060e17;
  16186. line-height: 25px;
  16187. font-size: 16px;
  16188. }
  16189. .navStage .nt_taskName {
  16190. max-width: calc(100% - 82px);
  16191. white-space: nowrap;
  16192. overflow: hidden;
  16193. text-overflow: ellipsis;
  16194. font-size: 16px;
  16195. color: #060e17;
  16196. }
  16197. .navTask {
  16198. display: flex;
  16199. flex-direction: row;
  16200. flex-wrap: nowrap;
  16201. align-items: center;
  16202. padding: 10px 10px 10px 0;
  16203. cursor: pointer;
  16204. background: #ffffff;
  16205. width: 95%;
  16206. margin: 5px auto 5px;
  16207. box-sizing: border-box;
  16208. border-radius: 5px;
  16209. flex-wrap: wrap;
  16210. position: relative;
  16211. }
  16212. .navTask .chapter_upload_open {
  16213. content: "";
  16214. display: block;
  16215. width: 16px;
  16216. height: 16px;
  16217. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16218. background-size: 100%;
  16219. margin-left: 23px;
  16220. }
  16221. .noImage .chapter_upload_open {
  16222. display: none;
  16223. background-image: unset !important;
  16224. }
  16225. .isNavOpen .chapter_upload_open {
  16226. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  16227. transform: rotate(90deg);
  16228. }
  16229. .isNavTask .chapter_upload_open {
  16230. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16231. transform: rotate(-90deg);
  16232. }
  16233. .isNavTask.isNavOpen .chapter_upload_open {
  16234. transform: rotate(0deg);
  16235. }
  16236. .dragOverTop {
  16237. border-top: 2px solid #0061ff !important;
  16238. border-radius: 0 !important;
  16239. margin-top: 10px;
  16240. }
  16241. .dragOverBottom {
  16242. border-bottom: 2px solid #0061ff !important;
  16243. border-radius: 0 !important;
  16244. margin-top: 10px;
  16245. }
  16246. .dragOverTop2 {
  16247. border-top: 2px solid #0061ff !important;
  16248. border-radius: 0 !important;
  16249. }
  16250. .dragOverBottom2 {
  16251. border-bottom: 2px solid #0061ff !important;
  16252. border-radius: 0 !important;
  16253. }
  16254. .isNavTask {
  16255. /* background: #3681FC; */
  16256. background: #eef3fb;
  16257. }
  16258. .isNavTask>.chapter_upload_drag {
  16259. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16260. }
  16261. .isNavTask .nt_taskName {
  16262. /* color: #fff !important; */
  16263. font-weight: bold !important;
  16264. color: #0061ff !important;
  16265. }
  16266. .isNavTask .nt_taskTitle {
  16267. /* color: #AECCFE !important; */
  16268. font-weight: bold !important;
  16269. color: #0061ff !important;
  16270. }
  16271. .navTask .nt_taskBox {
  16272. width: calc(100% - 40px);
  16273. padding: 0 0 0 5px;
  16274. box-sizing: border-box;
  16275. box-sizing: border-box;
  16276. display: flex;
  16277. flex-direction: row;
  16278. flex-wrap: nowrap;
  16279. align-items: baseline;
  16280. }
  16281. .navTask .nt_taskTitle {
  16282. /* color: #717C8D; */
  16283. color: #060e17;
  16284. line-height: 25px;
  16285. font-size: 16px;
  16286. /* min-width: 66px; */
  16287. }
  16288. .navTask .nt_taskName {
  16289. /* color: #fff; */
  16290. /* max-width: 130px; */
  16291. /* width: 100%; */
  16292. max-width: calc(100% - 66px);
  16293. font-size: 16px;
  16294. color: #060e17;
  16295. /* color: #0E1E33; */
  16296. }
  16297. .navTask .nt_taskName span {
  16298. width: 100%;
  16299. white-space: nowrap;
  16300. overflow: hidden;
  16301. text-overflow: ellipsis;
  16302. display: block;
  16303. }
  16304. .gjBox {
  16305. width: calc(100% - 25px);
  16306. padding: 0 0 0 0;
  16307. box-sizing: border-box;
  16308. border-left: 1px solid #cad1dc;
  16309. margin-left: 25px;
  16310. }
  16311. .gjBox>div {
  16312. display: flex;
  16313. align-items: center;
  16314. }
  16315. .gjBox>div::before {
  16316. content: "";
  16317. height: 1px;
  16318. width: 10px;
  16319. background: #cad1dc;
  16320. display: block;
  16321. margin-right: 5px;
  16322. }
  16323. .gjCss {
  16324. display: flex;
  16325. flex-direction: row;
  16326. flex-wrap: nowrap;
  16327. align-items: center;
  16328. padding: 15px 0;
  16329. box-sizing: border-box;
  16330. font-size: 14px;
  16331. cursor: pointer;
  16332. }
  16333. .isGjCss {
  16334. color: #0061ff;
  16335. }
  16336. .groupBox {}
  16337. .groupContent+.groupContent {
  16338. margin-top: 30px;
  16339. }
  16340. .groupTitle {
  16341. font-size: 24px;
  16342. color: rgb(80, 80, 80);
  16343. margin-bottom: 20px;
  16344. }
  16345. .groupName {
  16346. display: flex;
  16347. align-items: center;
  16348. }
  16349. .groupn {
  16350. font-size: 15px;
  16351. margin-right: 10px;
  16352. }
  16353. .groupName+.groupName {
  16354. margin-top: 15px;
  16355. }
  16356. .groupBtn {
  16357. margin-left: 10px;
  16358. }
  16359. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  16360. text-align: left;
  16361. }
  16362. .radioBox>div {
  16363. margin: 10px 0 0 10px;
  16364. }
  16365. .radioBox>>>.el-radio__input,
  16366. .radioBox>>>.el-checkbox__inner {
  16367. margin-left: 10px;
  16368. }
  16369. .radioBox>>>.el-radio__label,
  16370. .radioBox>>>.el-checkbox__label {
  16371. display: flex;
  16372. align-items: center;
  16373. }
  16374. .inImg {
  16375. width: 50px;
  16376. }
  16377. .inImg>img {
  16378. width: 100%;
  16379. height: 100%;
  16380. object-fit: cover;
  16381. }
  16382. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  16383. height: auto;
  16384. padding: 10px;
  16385. margin: 0;
  16386. }
  16387. .upCss>>>.el-upload-list {
  16388. width: 100%;
  16389. }
  16390. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  16391. width: 100%;
  16392. height: 120px;
  16393. object-fit: contain;
  16394. background: unset;
  16395. margin-left: 0;
  16396. }
  16397. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  16398. display: none;
  16399. }
  16400. .tcMember+.tcMember::before {
  16401. content: "、";
  16402. }
  16403. .xzUpImg {
  16404. width: 25px;
  16405. height: 25px;
  16406. min-width: 25px;
  16407. min-height: 25px;
  16408. cursor: pointer;
  16409. margin: 0 10px;
  16410. }
  16411. .xzUpImg>img {
  16412. width: 100%;
  16413. height: 100%;
  16414. }
  16415. .closeCss {
  16416. position: absolute;
  16417. top: 8px;
  16418. right: 8px;
  16419. cursor: pointer;
  16420. width: 20px;
  16421. height: 20px;
  16422. }
  16423. .closeCss>img {
  16424. width: 100%;
  16425. height: 100%;
  16426. }
  16427. .moveBtn {
  16428. display: flex;
  16429. flex-direction: row;
  16430. flex-wrap: nowrap;
  16431. align-items: center;
  16432. width: 55px;
  16433. }
  16434. .timuUpImg {
  16435. display: flex;
  16436. flex-direction: row;
  16437. align-items: center;
  16438. width: 100%;
  16439. margin-right: 10px;
  16440. }
  16441. .timuUpImg>div:nth-child(1) {
  16442. margin-right: 10px;
  16443. display: flex;
  16444. align-items: center;
  16445. width: 100%;
  16446. }
  16447. .timuImgBox {
  16448. margin: 10px 0;
  16449. display: flex;
  16450. flex-direction: column;
  16451. flex-wrap: wrap;
  16452. align-items: flex-start;
  16453. }
  16454. .timuImg {
  16455. width: 100px;
  16456. margin: 5px 0;
  16457. cursor: pointer;
  16458. position: relative;
  16459. }
  16460. .timuImg:hover .deleteWord {
  16461. display: block;
  16462. }
  16463. .deleteWord {
  16464. width: 25px;
  16465. height: 25px;
  16466. position: absolute;
  16467. right: -5px;
  16468. top: -5px;
  16469. cursor: pointer;
  16470. display: none;
  16471. }
  16472. .timuImg>img,
  16473. .deleteWord>img {
  16474. width: 100%;
  16475. height: 100%;
  16476. object-fit: cover;
  16477. }
  16478. .e_add_delete {
  16479. cursor: pointer;
  16480. margin-left: 10px;
  16481. }
  16482. .pType_box {
  16483. margin-top: 30px;
  16484. align-items: flex-end;
  16485. }
  16486. .noneBox {
  16487. height: 200px;
  16488. width: 100%;
  16489. display: flex;
  16490. align-items: center;
  16491. justify-content: center;
  16492. flex-direction: column;
  16493. /* margin-top: 150px; */
  16494. }
  16495. .noneBox>img {
  16496. width: 95px;
  16497. }
  16498. .noneBox>span {
  16499. margin-top: 10px;
  16500. color: #717c8d;
  16501. }
  16502. .rb_c_box {
  16503. width: 100%;
  16504. height: 100%;
  16505. display: flex;
  16506. /* padding: 20px; */
  16507. box-sizing: border-box;
  16508. justify-content: space-between;
  16509. }
  16510. .rb_c_box_left {
  16511. height: 100%;
  16512. background: #fff;
  16513. width: 270px;
  16514. min-width: 270px;
  16515. border-radius: 8px;
  16516. margin-right: 10px;
  16517. }
  16518. .rb_c_box_right {
  16519. height: 100%;
  16520. width: calc(100%);
  16521. overflow: hidden;
  16522. }
  16523. .rb_c_box_btn {
  16524. display: flex;
  16525. justify-content: flex-start;
  16526. height: 50px;
  16527. align-items: center;
  16528. }
  16529. .rb_c_box_right>.basic_box {
  16530. /* background: #fff; */
  16531. border-radius: 0;
  16532. height: calc(100% - 0px);
  16533. overflow: auto;
  16534. padding: 0;
  16535. }
  16536. .textarea_css {
  16537. display: block;
  16538. resize: none;
  16539. padding: 10px 15px;
  16540. line-height: 1.5;
  16541. box-sizing: border-box;
  16542. width: 100%;
  16543. font-size: 14px;
  16544. color: #606266;
  16545. background-color: #fff;
  16546. background-image: none;
  16547. border: 1px solid #dcdfe6;
  16548. border-radius: 4px;
  16549. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16550. outline: none;
  16551. overflow: hidden;
  16552. height: 46px;
  16553. font-family: "Microsoft YaHei";
  16554. }
  16555. .textarea_css::-webkit-input-placeholder {
  16556. color: #c0c4cc;
  16557. }
  16558. .textarea_css:focus {
  16559. border-color: #409eff;
  16560. outline: 0;
  16561. }
  16562. .addEditor>>>.text {
  16563. height: auto;
  16564. min-height: 100px;
  16565. }
  16566. .addEditor>>>.w-e-text-container {
  16567. min-height: 100px;
  16568. }
  16569. .moveBtn2 {
  16570. flex-direction: column;
  16571. width: fit-content;
  16572. margin: 0 10px 0 10px;
  16573. }
  16574. .moveBtn2 .chapter_upload_down,
  16575. .moveBtn2 .chapter_upload_up {
  16576. width: 16px;
  16577. height: 16px;
  16578. }
  16579. .moveBtn2 .chapter_upload_up::after,
  16580. .moveBtn2 .chapter_upload_down::after {
  16581. width: 10px;
  16582. height: 10px;
  16583. }
  16584. .fullStyle>>>.el-dialog__body {
  16585. height: calc(100% - 125px) !important;
  16586. box-sizing: border-box;
  16587. }
  16588. .fullStyle1>>>.el-dialog__body {
  16589. height: auto !important;
  16590. }
  16591. .fullStyle>>>.el-dialog {
  16592. width: 100% !important;
  16593. max-width: 100% !important;
  16594. height: 100% !important;
  16595. margin: 0 !important;
  16596. }
  16597. .fullStyle {
  16598. width: 100% !important;
  16599. max-width: 100% !important;
  16600. height: 100% !important;
  16601. margin: 0 auto !important;
  16602. }
  16603. .wb_j_box_btn {
  16604. width: calc(100% - 30px);
  16605. display: flex;
  16606. height: 40px;
  16607. border: 1.5px solid #cad1dc;
  16608. border-radius: 4px;
  16609. box-sizing: border-box;
  16610. align-items: center;
  16611. font-size: 14px;
  16612. cursor: pointer;
  16613. overflow: hidden;
  16614. }
  16615. .wb_j_box_btn:hover {
  16616. border: 1.5px solid #0061ff;
  16617. }
  16618. .wb_j_box_title {
  16619. background: #f0f4fa;
  16620. height: 100%;
  16621. line-height: 40px;
  16622. width: 90px;
  16623. text-align: center;
  16624. color: #060e17;
  16625. border-right: 1.5px solid #cad1dc;
  16626. box-sizing: border-box;
  16627. }
  16628. .wb_j_box_btn_c {
  16629. width: calc(100% - 90px);
  16630. padding: 0 35px 0 10px;
  16631. box-sizing: border-box;
  16632. position: relative;
  16633. }
  16634. .wb_j_box_span {
  16635. width: 100%;
  16636. overflow: hidden;
  16637. white-space: nowrap;
  16638. text-overflow: ellipsis;
  16639. word-wrap: break-word;
  16640. color: #717c8d;
  16641. }
  16642. .wb_j_box_arrow {
  16643. content: "";
  16644. width: 14px;
  16645. height: 14px;
  16646. background: url(../../../assets/icon/new/u_arrow.png);
  16647. background-size: 100% 100%;
  16648. position: absolute;
  16649. right: 12px;
  16650. top: 50%;
  16651. transform: translateY(-50%);
  16652. }
  16653. .check_classBox {
  16654. height: 400px;
  16655. display: flex;
  16656. border-top: 1.5px solid #e7ebf1;
  16657. border-bottom: 1.5px solid #e7ebf1;
  16658. }
  16659. .check_class_right {
  16660. width: 130px;
  16661. border-right: 1px solid #e7ebf1;
  16662. display: flex;
  16663. align-items: center;
  16664. flex-direction: column;
  16665. height: 100%;
  16666. overflow: auto;
  16667. padding: 15px 0;
  16668. box-sizing: border-box;
  16669. }
  16670. .check_class {
  16671. width: 85%;
  16672. border-radius: 5px;
  16673. height: 30px;
  16674. line-height: 30px;
  16675. text-align: center;
  16676. padding: 0 10px;
  16677. box-sizing: border-box;
  16678. cursor: pointer;
  16679. white-space: nowrap;
  16680. overflow: hidden;
  16681. text-overflow: ellipsis;
  16682. }
  16683. .check_class.activeX {
  16684. background: #e0eafb;
  16685. color: #3681fc;
  16686. font-weight: 700;
  16687. }
  16688. .check_class+.check_class {
  16689. margin-top: 15px;
  16690. }
  16691. .check_class_left {
  16692. background: #fafafa;
  16693. width: calc(100% - 130px);
  16694. padding: 15px;
  16695. box-sizing: border-box;
  16696. }
  16697. .check_class_all_box {
  16698. display: flex;
  16699. margin-bottom: 10px;
  16700. }
  16701. .all_check {
  16702. display: flex;
  16703. align-items: center;
  16704. padding: 2px 0 0;
  16705. margin-left: 10px;
  16706. }
  16707. .all_check>>>.el-checkbox__label {
  16708. line-height: 18px;
  16709. }
  16710. .check_class_left_title {
  16711. font-size: 16px;
  16712. font-weight: 700;
  16713. }
  16714. .check_class_item {
  16715. display: flex;
  16716. flex-wrap: wrap;
  16717. height: calc(100% - 45px);
  16718. overflow: auto;
  16719. justify-content: flex-start;
  16720. align-items: flex-start;
  16721. align-content: flex-start;
  16722. }
  16723. .class_item:first-child {
  16724. /* margin: 0 15px 15px 67px; */
  16725. }
  16726. .class_item {
  16727. margin: 0 15px 15px 0;
  16728. }
  16729. .class_item:hover>>>.el-checkbox__label {
  16730. color: #409eff;
  16731. }
  16732. .class_item>>>.el-checkbox__label {
  16733. color: #0e1e33;
  16734. }
  16735. .class_item:hover>>>.el-checkbox__inner {
  16736. border-color: #409eff;
  16737. }
  16738. .class_item>>>.el-checkbox,
  16739. .class_item>>>.el-checkbox__input {
  16740. display: flex;
  16741. align-items: center;
  16742. }
  16743. .taskTitle {
  16744. font-size: 20px;
  16745. font-weight: bold;
  16746. margin-bottom: 35px;
  16747. }
  16748. .taskTitle:after {
  16749. content: "";
  16750. width: 100%;
  16751. display: block;
  16752. height: 1px;
  16753. background: #cad1dc;
  16754. position: absolute;
  16755. left: 0;
  16756. margin: 15px 0 0;
  16757. }
  16758. .eva_btn_box {
  16759. margin: 20px 0px 0 0;
  16760. display: flex;
  16761. flex-direction: row;
  16762. flex-wrap: nowrap;
  16763. align-items: center;
  16764. justify-content: space-between;
  16765. width: 100%;
  16766. }
  16767. .eva_btn_left_box {
  16768. display: flex;
  16769. flex-direction: row;
  16770. flex-wrap: nowrap;
  16771. align-items: center;
  16772. }
  16773. .addTypeChoose {
  16774. display: flex;
  16775. flex-direction: row;
  16776. flex-wrap: nowrap;
  16777. align-items: center;
  16778. margin: 15px 0;
  16779. }
  16780. .addTypeBox {
  16781. display: flex;
  16782. flex-direction: column;
  16783. flex-wrap: nowrap;
  16784. align-items: center;
  16785. }
  16786. .addTypeChoose {
  16787. display: flex;
  16788. flex-direction: row;
  16789. flex-wrap: nowrap;
  16790. align-items: center;
  16791. margin: 15px 0;
  16792. }
  16793. .buchong_box {
  16794. background: #E0EAFB66;
  16795. width: calc(100% - 20px);
  16796. min-height: 50px;
  16797. display: flex;
  16798. align-items: center;
  16799. justify-content: center;
  16800. margin: 0 auto;
  16801. }
  16802. .outline {
  16803. width: calc(100% - 40px);
  16804. margin: 0 auto;
  16805. }
  16806. .task_outline {
  16807. width: calc(100% - 40px);
  16808. margin: 0 auto;
  16809. }
  16810. .outline_box+.outline_box {
  16811. margin: 30px 0 0px;
  16812. }
  16813. .outline_task {
  16814. display: flex;
  16815. align-items: center;
  16816. margin-bottom: 10px;
  16817. }
  16818. .outline_task .title {
  16819. font-size: 18px;
  16820. font-weight: bold;
  16821. min-width: 80px;
  16822. }
  16823. .op_task_box,
  16824. .op_tool_box,
  16825. .outline_detail {
  16826. position: relative;
  16827. }
  16828. .op_task_box:hover .op_box,
  16829. .op_tool_box:hover .op_box,
  16830. .outline_detail:hover .op_box {
  16831. display: flex
  16832. }
  16833. .op_box {
  16834. position: absolute;
  16835. bottom: 10px;
  16836. display: none;
  16837. align-items: center;
  16838. justify-content: space-between;
  16839. width: calc(100% - 20px);
  16840. left: 50%;
  16841. transform: translateX(-50%);
  16842. }
  16843. .op_box .op_remark {
  16844. color: #8E8E8E;
  16845. font-size: 14px;
  16846. }
  16847. .rb_c_nav {
  16848. width: calc(100% - 20px);
  16849. margin: 15px auto 0;
  16850. font-size: 18px;
  16851. }
  16852. .rb_c_nav span {
  16853. cursor: pointer;
  16854. }
  16855. .rb_c_nav span+span {
  16856. margin-left: 10px;
  16857. }
  16858. .rb_c_nav span.active {
  16859. color: #0061FF
  16860. }
  16861. .text_panel>>>.text {
  16862. height: 400px;
  16863. }
  16864. </style>