addCourse.vue 618 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604
  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 ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson"/>
  3702. <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson"/>
  3703. <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson"/>
  3704. <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson"/>
  3705. <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail" @setAiJson="setAiJson"/>
  3706. <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson"/>
  3707. <aiTips ttitle="任务详情" title="任务描述优化" :detail="aiJson.aiDetail2" pan="aiDetail2" @setAiJson="setAiJson"/>
  3708. <aiTips ttitle="任务详情" title="工具描述优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson"/>
  3709. <aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson"/>
  3710. </div>
  3711. </div>
  3712. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3713. class="dialog_diy2 customWidth">
  3714. <div>请复制该链接邀请协同编辑</div>
  3715. <div>http://www.boomyon.com/index-zhang.com</div>
  3716. <span slot="footer" class="dialog-footer">
  3717. <el-button type="primary">复制链接分享</el-button>
  3718. <el-button @click="dialogVisible = false">取消</el-button>
  3719. </span>
  3720. </el-dialog>
  3721. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3722. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3723. <el-form>
  3724. <el-form-item label="文档标题">
  3725. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3726. </el-form-item>
  3727. <div>文档简介</div>
  3728. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3729. </el-form>
  3730. <span slot="footer" class="dialog-footer">
  3731. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3732. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3733. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3734. </span>
  3735. </el-dialog>
  3736. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3737. :before-close="handleClose" class="dialog_diy">
  3738. <el-form>
  3739. <el-form-item label="文档标题">
  3740. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3741. </el-form-item>
  3742. <div>文档内容</div>
  3743. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3744. </el-form>
  3745. <span slot="footer" class="dialog-footer">
  3746. <el-button @click="clearChoose">取 消</el-button>
  3747. <el-button type="primary" @click="wordNext()">确定</el-button>
  3748. </span>
  3749. </el-dialog>
  3750. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3751. :before-close="handleClose" class="dialog_diy">
  3752. <el-form>
  3753. <el-form-item label="文本标题">
  3754. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3755. placeholder="请输入文本标题..."></el-input>
  3756. </el-form-item>
  3757. <!-- <div>富文本内容</div> -->
  3758. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3759. </el-form>
  3760. <span slot="footer" class="dialog-footer">
  3761. <el-button @click="clearAttText">取 消</el-button>
  3762. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3763. </span>
  3764. </el-dialog>
  3765. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3766. :before-close="handleClose" class="dialog_diy lineCss">
  3767. <el-form>
  3768. <el-form-item label="标题" :label-width="formLabelWidth">
  3769. <span>
  3770. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3771. </span>
  3772. </el-form-item>
  3773. <el-form-item label="链接" :label-width="formLabelWidth">
  3774. <span>
  3775. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3776. </span>
  3777. </el-form-item>
  3778. </el-form>
  3779. <span slot="footer" class="dialog-footer">
  3780. <el-button @click="clearLine">取 消</el-button>
  3781. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3782. </span>
  3783. </el-dialog>
  3784. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3785. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3786. <div>
  3787. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3788. </div>
  3789. <span slot="footer" class="dialog-footer">
  3790. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3791. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3792. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3793. </span>
  3794. </el-dialog>
  3795. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3796. :before-close="handleClose" class="addNewPP customWidth">
  3797. <div class="people">
  3798. <div class="people_top">
  3799. <div class="people_nav">选择成员</div>
  3800. <div class="people_top_right">
  3801. <div class="people_search">
  3802. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3803. <div class="search_img" @click="searchStudent">
  3804. <img src="../../../assets/icon/search.png" alt />
  3805. </div>
  3806. </div>
  3807. </div>
  3808. </div>
  3809. <el-checkbox-group v-model="checkboxList" class="people_name">
  3810. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3811. "暂无学生可选" }}</el-checkbox>
  3812. </el-checkbox-group>
  3813. </div>
  3814. <span slot="footer" class="dialog-footer">
  3815. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3816. <el-button type="primary" @click="isAddPP">确定</el-button>
  3817. </span>
  3818. </el-dialog>
  3819. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3820. :before-close="handleClose" class="addNewPP2">
  3821. <div class="check_classBox">
  3822. <div class="check_class_right">
  3823. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3824. 全部
  3825. </div>
  3826. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3827. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  3828. {{ item.name }}
  3829. </div>
  3830. </el-tooltip>
  3831. </div>
  3832. <div class="check_class_left">
  3833. <div class="check_class_all_box">
  3834. <div class="check_class_left_title">选择班级</div>
  3835. <div style="display: flex; align-items: center; margin-left: auto">
  3836. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  3837. </div>
  3838. </div>
  3839. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3840. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3841. </div> -->
  3842. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  3843. v-if="grade2.length">
  3844. <div v-for="item in grade2" :key="item.id" class="class_item">
  3845. <el-checkbox :label="item.id">
  3846. {{ item.name }}
  3847. </el-checkbox>
  3848. </div>
  3849. </el-checkbox-group>
  3850. <div v-if="!grade2.length">暂无数据</div>
  3851. </div>
  3852. </div>
  3853. <span slot="footer" class="dialog-footer">
  3854. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3855. <el-button type="primary" @click="isAddClass">确定</el-button>
  3856. </span>
  3857. </el-dialog>
  3858. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3859. :before-close="handleClose" class="addNewPP customWidth">
  3860. <div class="people">
  3861. <div class="people_top">
  3862. <div class="people_top_right">
  3863. <div class="people_search">
  3864. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3865. <div class="search_img" @click="getTeacher">
  3866. <img src="../../../assets/icon/search.png" alt />
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div class="people_nav" style="display: flex; align-items: center">
  3871. <div class="check_class_left_title">选择成员</div>
  3872. <div style="display: flex; align-items: center; margin-left: auto">
  3873. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  3874. </div>
  3875. </div>
  3876. </div>
  3877. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  3878. @change="InviteChange2">
  3879. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3880. <div class="t_j_box">
  3881. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3882. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3883. </el-tooltip>
  3884. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  3885. <span>{{ item.username.split('@')[0] }}</span>
  3886. </el-tooltip>
  3887. <el-tooltip placement="top" :content="item.school">
  3888. <span>{{ item.school }}</span>
  3889. </el-tooltip>
  3890. </div>
  3891. </el-checkbox>
  3892. </el-checkbox-group>
  3893. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3894. </div>
  3895. <span slot="footer" class="dialog-footer">
  3896. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3897. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3898. </span>
  3899. </el-dialog>
  3900. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  3901. closePan(4);
  3902. }
  3903. " class="dialog_diy fullStyle">
  3904. <div style="height: 100%">
  3905. <div class="a_add_title" style="
  3906. display: flex;
  3907. flex-direction: row;
  3908. align-items: center;
  3909. justify-content: center;
  3910. ">
  3911. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3912. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3913. </div>
  3914. <div class="a_addBox" style="height: calc(100% - 50px)">
  3915. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3916. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3917. <div class="a_add_checkType">
  3918. <span :class="{
  3919. active:
  3920. askJson.askJson[index1].type == '1' ||
  3921. !askJson.askJson[index1].type,
  3922. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3923. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3924. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3925. </div>
  3926. <div class="a_add_head">
  3927. <div style="
  3928. display: flex;
  3929. align-items: center;
  3930. width: 100%;
  3931. margin-right: 20px;
  3932. ">
  3933. <span style="min-width: fit-content">{{
  3934. index1 + 1 + "、"
  3935. }}</span>
  3936. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3937. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  3938. $forceUpdate();
  3939. }
  3940. "></textarea>
  3941. </div>
  3942. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  3943. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  3944. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3945. </div>
  3946. <div class="a_add_head_div">
  3947. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3948. </el-button>
  3949. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3950. </div>
  3951. </div>
  3952. <div class="a_add_body">
  3953. <div class="a_add_input" style="flex-direction: column">
  3954. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  3955. margin: 20px 10px 0 0;
  3956. display: flex;
  3957. align-items: center;
  3958. position: relative;
  3959. ">
  3960. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  3961. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3962. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  3963. @change="() => {
  3964. $forceUpdate();
  3965. }
  3966. "></textarea>
  3967. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  3968. v-if="askJson.askJson[index1].askItem != 1">
  3969. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  3970. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3971. </div>
  3972. <div class="a_add_body_div">
  3973. <el-button type="primary" size="small"
  3974. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3975. <el-button type="primary" size="small" @click="
  3976. deletecheckList(askJson.askJson[index1], checkIndex)
  3977. " v-if="askJson.askJson[index1].askItem != 1">删除
  3978. </el-button>
  3979. </div>
  3980. </div>
  3981. </div>
  3982. <!-- <div class="a_add_body_div">
  3983. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3984. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3985. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3986. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3987. </el-button>
  3988. </div> -->
  3989. </div>
  3990. </div>
  3991. </div>
  3992. </div>
  3993. <span slot="footer" class="dialog-footer">
  3994. <el-button @click="closePan(4)">取 消</el-button>
  3995. <el-button type="primary" @click="addAsk">确 定</el-button>
  3996. </span>
  3997. </el-dialog>
  3998. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  3999. closePan(45);
  4000. }
  4001. " class="dialog_diy fullStyle">
  4002. <div style="height: 100%">
  4003. <!-- <div class="a_add_title" style="
  4004. display: flex;
  4005. flex-direction: row;
  4006. align-items: center;
  4007. justify-content: center;
  4008. ">
  4009. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4010. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4011. </div> -->
  4012. <div class="a_addBox" style="height: 100%">
  4013. <div style="
  4014. font-size: 16px;
  4015. color: #c7c7c7;
  4016. display: flex;
  4017. align-items: center;
  4018. ">
  4019. <!-- 请输入题目内容 -->
  4020. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4021. v-if="isPasteChoice">
  4022. 智能粘贴
  4023. </button>
  4024. </div>
  4025. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4026. <div class="a_add_checkType">
  4027. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4028. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4029. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4030. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4031. </div>
  4032. <div class="a_add_head">
  4033. <div class="timuUpImg">
  4034. <div style="display: flex; align-items: center">
  4035. <span style="min-width: fit-content">{{
  4036. index1 + 1 + "、"
  4037. }}</span>
  4038. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4039. placeholder="请输入题目">
  4040. </el-input> -->
  4041. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4042. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4043. $forceUpdate();
  4044. }
  4045. "></textarea>
  4046. </div>
  4047. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4048. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4049. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4050. </div>
  4051. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4052. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4053. <input type="file" accept="image/*" style="display: none"
  4054. @change="beforeUploadTiMu($event, index1)" />
  4055. </div>
  4056. </div>
  4057. <div class="a_add_head_div">
  4058. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4059. </el-button>
  4060. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4061. </div>
  4062. </div>
  4063. <div class="timuImgBox" v-if="
  4064. testJson.testJson[index1].timuList &&
  4065. testJson.testJson[index1].timuList.length
  4066. ">
  4067. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4068. @click.stop="previewImg(timg.src)">
  4069. <img :src="timg.src" alt="" />
  4070. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4071. <img src="../../../assets/icon/delete.png" alt="" />
  4072. </div>
  4073. </div>
  4074. </div>
  4075. <div class="a_add_body">
  4076. <div class="a_add_input a_add_input_choice">
  4077. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4078. @change="() => {
  4079. $forceUpdate();
  4080. }
  4081. ">
  4082. <div class="radioBox">
  4083. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4084. .testItem" :key="checkIndex" :label="checkIndex">
  4085. <div style="margin-right: 10px">
  4086. 选项{{ checkIndex + 1 }}
  4087. </div>
  4088. <div style="margin-right: 10px; width: 300px" v-if="
  4089. testJson.testJson[index1].checkList[checkIndex] &&
  4090. testJson.testJson[index1].checkList[checkIndex]
  4091. .imgType &&
  4092. testJson.testJson[index1].checkList[checkIndex]
  4093. .imgType == 1
  4094. ">
  4095. <div class="inImg" @click.stop="
  4096. previewImg(
  4097. testJson.testJson[index1].checkList[checkIndex]
  4098. .src
  4099. )
  4100. ">
  4101. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4102. .src
  4103. " lazy />
  4104. <!-- <img :src="
  4105. testJson.testJson[index1].checkList[checkIndex]
  4106. .src
  4107. " alt="" /> -->
  4108. </div>
  4109. </div>
  4110. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4111. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4112. $forceUpdate();
  4113. }
  4114. "></textarea>
  4115. <div class="xzUpImg" @click.stop="addImg($event)">
  4116. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4117. <input type="file" accept="image/*" style="display: none"
  4118. @change="beforeUploadTi($event, index1, checkIndex)" />
  4119. </div>
  4120. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4121. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4122. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4123. </div>
  4124. <div class="a_add_body_div">
  4125. <el-button type="primary" size="small" @click.stop="
  4126. addTcheckList(testJson.testJson[index1], checkIndex)
  4127. ">添加</el-button>
  4128. <el-button type="primary" size="small" @click.stop="
  4129. deleteTcheckList(
  4130. testJson.testJson[index1],
  4131. checkIndex
  4132. )
  4133. " v-if="testJson.testJson[index1].testItem != 1">删除
  4134. </el-button>
  4135. </div>
  4136. </el-radio>
  4137. </div>
  4138. </el-radio-group>
  4139. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4140. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4141. $forceUpdate();
  4142. }
  4143. ">
  4144. <div class="radioBox">
  4145. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4146. .testItem" :key="checkIndex1" :label="checkIndex1">
  4147. <div style="margin-right: 10px">
  4148. 选项{{ checkIndex1 + 1 }}
  4149. </div>
  4150. <div style="margin-right: 10px; width: 300px" v-if="
  4151. testJson.testJson[index1].checkList[checkIndex1] &&
  4152. testJson.testJson[index1].checkList[checkIndex1]
  4153. .imgType &&
  4154. testJson.testJson[index1].checkList[checkIndex1]
  4155. .imgType == 1
  4156. ">
  4157. <div class="inImg" @click.stop="
  4158. previewImg(
  4159. testJson.testJson[index1].checkList[checkIndex1]
  4160. .src
  4161. )
  4162. ">
  4163. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4164. .src
  4165. " lazy />
  4166. <!-- <img :src="
  4167. testJson.testJson[index1].checkList[checkIndex1]
  4168. .src
  4169. " alt="" /> -->
  4170. </div>
  4171. </div>
  4172. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4173. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4174. $forceUpdate();
  4175. }
  4176. "></textarea>
  4177. <div class="xzUpImg" @click.stop="addImg($event)">
  4178. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4179. <input type="file" accept="image/*" style="display: none"
  4180. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4181. </div>
  4182. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4183. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4184. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4185. </div>
  4186. <div class="a_add_body_div">
  4187. <el-button type="primary" size="small" @click.stop="
  4188. addTcheckList(
  4189. testJson.testJson[index1],
  4190. checkIndex1
  4191. )
  4192. ">添加</el-button>
  4193. <el-button type="primary" size="small" @click.stop="
  4194. deleteTcheckList(
  4195. testJson.testJson[index1],
  4196. checkIndex1
  4197. )
  4198. " v-if="testJson.testJson[index1].testItem != 1">删除
  4199. </el-button>
  4200. </div>
  4201. </el-checkbox>
  4202. </div>
  4203. </el-checkbox-group>
  4204. </div>
  4205. <!-- <div class="a_add_body_div">
  4206. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4207. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4208. v-if="testJson.testJson[index1].testItem != 1">删除
  4209. </el-button>
  4210. </div> -->
  4211. </div>
  4212. </div>
  4213. </div>
  4214. </div>
  4215. <span slot="footer" class="dialog-footer">
  4216. <el-button @click="closePan(45)">取 消</el-button>
  4217. <el-button type="primary" @click="addTest">确 定</el-button>
  4218. </span>
  4219. </el-dialog>
  4220. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4221. :before-close="handleClose" class="dialog_diy addToolsDia">
  4222. <div class="toolChoose">
  4223. <div class="tools">
  4224. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4225. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4226. <div style="
  4227. display: flex;
  4228. flex-direction: row;
  4229. align-items: baseline;
  4230. flex-wrap: nowrap;
  4231. justify-content: flex-start;
  4232. position: relative;
  4233. ">
  4234. <div class="chooseWho">
  4235. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4236. 互动类
  4237. </div>
  4238. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4239. 思维类
  4240. </div>
  4241. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4242. 评价类
  4243. </div>
  4244. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4245. 其他
  4246. </div>
  4247. </div>
  4248. </div>
  4249. <div style="min-height: 163px">
  4250. <div class="toolSort" v-if="chapToolsType == 0">
  4251. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4252. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4253. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4254. <div style="margin: 5px 0">素材库</div>
  4255. </div>
  4256. <div class="noCTool">
  4257. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4258. </div>
  4259. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4260. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4261. </div>
  4262. <!-- <div class="check" @click="chapAddTools(8)">
  4263. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4264. <div class="checkDiv" v-else>
  4265. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4266. </div>
  4267. </div> -->
  4268. </div>
  4269. </div>
  4270. <div class="toolSort" v-if="chapToolsType == 1">
  4271. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4272. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4273. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4274. <div style="margin: 5px 0">思维网格</div>
  4275. </div>
  4276. <div class="noCTool">
  4277. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4278. </div>
  4279. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4280. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4281. </div>
  4282. <!-- <div class="check" @click="chapAddTools(7)">
  4283. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4284. <div class="checkDiv" v-else>
  4285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4286. </div>
  4287. </div> -->
  4288. </div>
  4289. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4290. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4291. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4292. <div style="margin: 5px 0">电子白板</div>
  4293. </div>
  4294. <div class="noCTool">
  4295. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4296. </div>
  4297. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4298. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4299. </div>
  4300. <!-- <div class="check" @click="chapAddTools(1)">
  4301. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4302. <div class="checkDiv" v-else>
  4303. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4304. </div>
  4305. </div> -->
  4306. </div>
  4307. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4308. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4309. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4310. <div style="margin: 5px 0">便签</div>
  4311. </div>
  4312. <div class="noCTool">
  4313. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4314. </div>
  4315. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4316. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4317. </div>
  4318. <!-- <div class="check" @click="chapAddTools(2)">
  4319. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4320. <div class="checkDiv" v-else>
  4321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4322. </div>
  4323. </div> -->
  4324. </div>
  4325. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4326. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4327. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4328. <div style="margin: 5px 0">协同文档</div>
  4329. </div>
  4330. <div class="noCTool">
  4331. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4332. </div>
  4333. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4334. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4335. </div>
  4336. <!-- <div class="check" @click="chapAddTools(6)">
  4337. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4338. <div class="checkDiv" v-else>
  4339. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4340. </div>
  4341. </div> -->
  4342. </div>
  4343. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4344. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4345. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4346. <div style="margin: 5px 0">思维导图</div>
  4347. </div>
  4348. <div class="noCTool">
  4349. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4350. </div>
  4351. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4352. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4353. </div>
  4354. <!-- <div class="check" @click="chapAddTools(3)">
  4355. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4356. <div class="checkDiv" v-else>
  4357. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4358. </div>
  4359. </div> -->
  4360. </div>
  4361. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4362. @click="chapAddTools(31)">
  4363. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4364. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4365. <div style="margin: 5px 0">数学画板</div>
  4366. </div>
  4367. <div class="noCTool">
  4368. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4369. </div>
  4370. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4371. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4372. </div>
  4373. <!-- <div class="check" @click="chapAddTools(31)">
  4374. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4375. <div class="checkDiv" v-else>
  4376. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4377. </div>
  4378. </div> -->
  4379. </div>
  4380. </div>
  4381. <div class="toolSort" v-if="chapToolsType == 2">
  4382. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4383. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4384. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4385. <div style="margin: 5px 0">量规评分</div>
  4386. </div>
  4387. <div class="noCTool">
  4388. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4389. </div>
  4390. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4391. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4392. </div>
  4393. <!-- <div class="check" @click="chapAddTools(5)">
  4394. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4395. <div class="checkDiv" v-else>
  4396. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4397. </div>
  4398. </div> -->
  4399. </div>
  4400. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4401. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4402. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4403. <div style="margin: 5px 0">问卷调查</div>
  4404. </div>
  4405. <div class="noCTool">
  4406. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4407. </div>
  4408. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4409. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4410. </div>
  4411. <!-- <div class="check" @click="chapAddTools(4)">
  4412. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4413. <div class="checkDiv" v-else>
  4414. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4415. </div>
  4416. </div> -->
  4417. </div>
  4418. </div>
  4419. </div>
  4420. <div>
  4421. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4422. v-model="itemTools.toolDetail" />
  4423. </div>
  4424. </div>
  4425. </div>
  4426. </div>
  4427. <span slot="footer" class="dialog-footer">
  4428. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4429. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4430. </span>
  4431. </el-dialog>
  4432. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4433. closePan(15);
  4434. }
  4435. " class="dialog_diy">
  4436. <div>
  4437. <div class="a_add_title" style="
  4438. display: flex;
  4439. flex-direction: column;
  4440. align-items: flex-start;
  4441. justify-content: center;
  4442. ">
  4443. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4444. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4445. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4446. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4447. </div>
  4448. </div>
  4449. <span slot="footer" class="dialog-footer">
  4450. <el-button @click="closePan(15)">取 消</el-button>
  4451. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4452. </span>
  4453. </el-dialog>
  4454. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4455. :before-close="handleClose" class="dialog_diy">
  4456. <div>
  4457. <div class="a_add_title" style="
  4458. display: flex;
  4459. flex-direction: column;
  4460. align-items: flex-start;
  4461. justify-content: center;
  4462. ">
  4463. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4464. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4465. </div>
  4466. </div>
  4467. <span slot="footer" class="dialog-footer">
  4468. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4469. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4470. </span>
  4471. </el-dialog>
  4472. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4473. :before-close="handleClose" class="dialog_diy">
  4474. <div>
  4475. <div class="fileCss" style="padding-top: 20px">
  4476. <div>
  4477. <button class="info_btn" @click="addImg($event)">
  4478. 选择本地文件
  4479. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4480. </button>
  4481. <div class="spanName">选择本地文件</div>
  4482. </div>
  4483. <!-- <div>
  4484. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4485. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4486. <img :src="cover[0].url" alt="" />
  4487. <div class="deletePic" @click="deleteSysPic">
  4488. <img src="../../../assets/icon/delete.png" alt="" />
  4489. </div>
  4490. </div>
  4491. <div class="spanName">选择系统文件</div>
  4492. </div> -->
  4493. <div>
  4494. <el-button @click="(searchImageValue = courseName), resetImage()"
  4495. v-if="isSysPic2 == false">选择网络文件</el-button>
  4496. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4497. <img :src="cover[0].url" alt="" />
  4498. <div class="deletePic" @click="deleteSysPic">
  4499. <img src="../../../assets/icon/delete.png" alt="" />
  4500. </div>
  4501. </div>
  4502. <div class="spanName">选择网络文件</div>
  4503. </div>
  4504. </div>
  4505. <!-- <div class="fileCss">
  4506. </div> -->
  4507. </div>
  4508. <span slot="footer" class="dialog-footer">
  4509. <el-button @click="choosePicVisible = false">取 消</el-button>
  4510. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4511. </span>
  4512. </el-dialog>
  4513. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4514. :before-close="handleClose" class="dialog_diy">
  4515. <div class="cru_selectBox" style="margin: 0">
  4516. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4517. 绘画
  4518. </div>
  4519. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4520. 科技
  4521. </div>
  4522. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4523. 人文
  4524. </div>
  4525. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4526. 艺术
  4527. </div>
  4528. </div>
  4529. <div class="sysPicBox">
  4530. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4531. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4532. </div>
  4533. </div>
  4534. </el-dialog>
  4535. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4536. :before-close="handleClose" class="dialog_diy">
  4537. <div>
  4538. <div class="people_top_right" style="display: flex; align-items: center">
  4539. <div style="position: relative; width: 100%">
  4540. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4541. @keyup.enter.native="resetImage()"></el-input>
  4542. <div class="search_img" @click="resetImage" style="right: 10px">
  4543. <img src="../../../assets/icon/search.png" alt />
  4544. </div>
  4545. </div>
  4546. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4547. </div>
  4548. <div class="sysPicBox" v-loading="imageloading">
  4549. <div class="picNone" v-if="!imageList.length">
  4550. 请输入关键词搜索图片
  4551. </div>
  4552. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4553. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4554. </div>
  4555. </div>
  4556. </div>
  4557. </el-dialog>
  4558. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4559. closePan(41);
  4560. }
  4561. " class="dialog_diy dialog_diy3 fullStyle">
  4562. <div v-if="selectJson" style="height: 100%">
  4563. <div class="select_box1" v-if="selectSteps == 1">
  4564. <div class="select_box1_img">
  4565. <div class="select_box1_title">
  4566. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4567. </div>
  4568. <div class="select_box1_add_img">
  4569. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4570. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4571. <img src="../../../assets/icon/addPoster.png" alt="" />
  4572. </div>
  4573. <div class="isSysPic" v-else>
  4574. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4575. <div class="deletePic" @click="deleteSelectPic">
  4576. <img src="../../../assets/icon/delete.png" alt="" />
  4577. </div>
  4578. </div>
  4579. </div>
  4580. </div>
  4581. <div class="select_box1_select">
  4582. <div class="select_box1_title">
  4583. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4584. </div>
  4585. <div class="select_box1_select_box">
  4586. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4587. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4588. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4589. <div class="select_box1_select_box_add">
  4590. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4591. 添加</el-button>
  4592. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4593. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4594. </div>
  4595. </div>
  4596. </div>
  4597. </div>
  4598. <div v-if="selectSteps == 2" style="height: 100%">
  4599. <div class="select_box2">
  4600. <div class="select_box2_title">设置每道题目的正确选项</div>
  4601. <div class="select_box2_box">
  4602. <div class="select_box2_img">
  4603. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4604. </div>
  4605. <div class="select_box2_answer">
  4606. <div class="select_answer_title">根据题目选择对应答案</div>
  4607. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4608. <span>{{ checkIndex + 1 }}、</span>
  4609. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4610. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4611. </el-option>
  4612. </el-select>
  4613. </div>
  4614. </div>
  4615. </div>
  4616. </div>
  4617. </div>
  4618. </div>
  4619. <span slot="footer" class="dialog-footer">
  4620. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4621. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4622. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4623. </span>
  4624. </el-dialog>
  4625. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4626. :before-close="handleClose" class="dialog_diy">
  4627. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4628. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4629. <div class="pjCss" style="width: 100%">
  4630. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4631. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4632. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4633. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4634. <div class="remove" @click="deletRateList(eIndex)"></div>
  4635. <div style="width: 100%; display: flex">
  4636. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4637. <el-rate v-model="eItem.score" disabled></el-rate>
  4638. </div>
  4639. <div class="elist_inptu_text" style="align-items: flex-start">
  4640. <span style="min-width: 100px; text-align: right">描述:</span>
  4641. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4642. </div>
  4643. </div>
  4644. </div>
  4645. <div class="addToolFun" @click="addRateList()">
  4646. <div class="addToolImg">
  4647. <img src="../../../assets/icon/add.png" alt />
  4648. </div>
  4649. <div>添加</div>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <span slot="footer" class="dialog-footer">
  4654. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4655. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4656. </span>
  4657. </el-dialog>
  4658. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4659. closePan(47);
  4660. }
  4661. " class="dialog_diy dialog_diy3 fullStyle">
  4662. <div style="height: 100%">
  4663. <div class="sentenBox" style="height: 100%">
  4664. <div class="addSen" @click="addSt">添加题目</div>
  4665. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4666. <div class="sentenTopBox">
  4667. <div class="sentenTop" :index="stIndex + 1">
  4668. <div>题目设置</div>
  4669. <div>
  4670. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4671. </div>
  4672. <div @click="addSen(stIndex)">添加</div>
  4673. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4674. </div>
  4675. </div>
  4676. <div class="cardList">
  4677. <div v-if="st.addSentence.length > 0" class="cardBox">
  4678. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4679. @click="setRightAnswer(s, stIndex, sIndex)">
  4680. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4681. <div>{{ s }}</div>
  4682. </el-tooltip>
  4683. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4684. <img src="../../../assets/icon/delete.png" alt="" />
  4685. </div>
  4686. </div>
  4687. </div>
  4688. <div class="card">
  4689. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4690. </div>
  4691. </div>
  4692. <div class="rightCardBox">
  4693. <div>正确顺序</div>
  4694. <div class="rightCardList">
  4695. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4696. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4697. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4698. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4699. <div>{{ r }}</div>
  4700. </el-tooltip>
  4701. </div>
  4702. <div>{{ rIndex + 1 }}</div>
  4703. </div>
  4704. </div>
  4705. <div class="card" v-if="st.rightAnswer.length == 0">
  4706. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4707. </div>
  4708. <div class="card" v-else>
  4709. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4710. </div>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. </div>
  4715. </div>
  4716. <span slot="footer" class="dialog-footer">
  4717. <el-button @click="closePan(47)">取 消</el-button>
  4718. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4719. </span>
  4720. </el-dialog>
  4721. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4722. :before-close="handleClose" class="dialog_diy">
  4723. <el-form>
  4724. <!-- <el-form-item label="文本标题">
  4725. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4726. </el-form-item> -->
  4727. <div>表格内容</div>
  4728. <Table v-model="tableJson.text" @change="change"></Table>
  4729. </el-form>
  4730. <span slot="footer" class="dialog-footer">
  4731. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4732. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4733. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4734. </span>
  4735. </el-dialog>
  4736. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4737. :before-close="handleClose" class="dialog_diy">
  4738. <el-form>
  4739. <!-- <el-form-item label="文本标题">
  4740. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4741. </el-form-item> -->
  4742. <div>文档内容</div>
  4743. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4744. </el-form>
  4745. <span slot="footer" class="dialog-footer">
  4746. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4747. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4748. </span>
  4749. </el-dialog>
  4750. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4751. :before-close="handleClose" class="dialog_diy">
  4752. <div style="
  4753. width: 100%;
  4754. display: flex;
  4755. flex-direction: row;
  4756. flex-wrap: nowrap;
  4757. align-items: center;
  4758. justify-content: center;
  4759. ">
  4760. <div>班级:</div>
  4761. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4762. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4763. </el-option>
  4764. </el-select>
  4765. </div>
  4766. <span slot="footer" class="dialog-footer">
  4767. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4768. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4769. </span>
  4770. </el-dialog>
  4771. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4772. :before-close="handleClose" class="dialog_diy">
  4773. <div style="
  4774. width: 100%;
  4775. display: flex;
  4776. flex-direction: row;
  4777. flex-wrap: nowrap;
  4778. align-items: center;
  4779. justify-content: center;
  4780. ">
  4781. <div>随机码:</div>
  4782. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4783. </div>
  4784. <span slot="footer" class="dialog-footer">
  4785. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4786. <el-button type="primary" @click="addInvite">确定</el-button>
  4787. </span>
  4788. </el-dialog>
  4789. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4790. :before-close="handleClose" class="dialog_diy">
  4791. <div>
  4792. <div style="margin-bottom: 20px; color: #999">
  4793. 提示:点击“+”或“-”修改倒计时时长。
  4794. </div>
  4795. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4796. </div>
  4797. <span slot="footer" class="dialog-footer">
  4798. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4799. <el-button type="primary" @click="addPreTime">确定</el-button>
  4800. </span>
  4801. </el-dialog>
  4802. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4803. :before-close="handleClose" class="dialog_diy">
  4804. <div>
  4805. <div style="
  4806. width: 100%;
  4807. display: flex;
  4808. flex-direction: row;
  4809. flex-wrap: nowrap;
  4810. align-content: center;
  4811. align-items: center;
  4812. justify-content: space-between;
  4813. ">
  4814. <div style="
  4815. display: flex;
  4816. flex-flow: row nowrap;
  4817. align-items: flex-start;
  4818. width: 100%;
  4819. flex-direction: column;
  4820. flex-wrap: nowrap;
  4821. position: relative;
  4822. ">
  4823. <div class="e_box">
  4824. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4825. <div class="e_card_picture">
  4826. <img src="../../../assets/e_picture.png" />
  4827. </div>
  4828. <div class="e_card_name">
  4829. <span>{{ item.title }}</span>
  4830. </div>
  4831. <div class="e_card_btn">
  4832. <span @click="checkEva(item.id, 2)">导入</span>
  4833. </div>
  4834. </div> -->
  4835. <!-- <div class="addEva" @click="openT">
  4836. <img src="../../../assets/icon/addEva.png" alt="" />
  4837. </div> -->
  4838. <div style="
  4839. display: flex;
  4840. justify-content: flex-end;
  4841. margin-bottom: 10px;
  4842. ">
  4843. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  4844. </div>
  4845. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  4846. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  4847. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  4848. </el-table-column>
  4849. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  4850. </el-table-column>
  4851. <el-table-column label="操作" width="250px">
  4852. <template slot-scope="scope">
  4853. <div class="btnBox">
  4854. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  4855. </div>
  4856. </template>
  4857. </el-table-column>
  4858. </el-table>
  4859. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4860. 暂无数据
  4861. </div>
  4862. </div>
  4863. </div>
  4864. </div>
  4865. </div>
  4866. <span slot="footer" class="dialog-footer">
  4867. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4868. </span>
  4869. </el-dialog>
  4870. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4871. :before-close="handleClose" class="dialog_diy">
  4872. <div class="groupBox">
  4873. <div v-if="groupJson.group" class="groupContent">
  4874. <div class="groupTitle">请设置小组数量及名称</div>
  4875. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4876. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4877. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4878. <div class="groupBtn">
  4879. <el-button type="primary" size="small" @click="addGroup(index)"
  4880. v-if="groupJson.group.length - 1 == index">
  4881. 添加</el-button>
  4882. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4883. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4884. </div>
  4885. </div>
  4886. </div>
  4887. <div class="groupContent">
  4888. <div class="groupTitle">请设置每组人数</div>
  4889. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4890. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4891. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  4892. @change="numberPan"></el-input>
  4893. </div>
  4894. </div>
  4895. <span slot="footer" class="dialog-footer">
  4896. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4897. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4898. </span>
  4899. </el-dialog>
  4900. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4901. :before-close="handleClose" class="dialog_diy">
  4902. <div style="
  4903. width: 100%;
  4904. display: flex;
  4905. flex-direction: row;
  4906. flex-wrap: nowrap;
  4907. align-items: center;
  4908. justify-content: center;
  4909. ">
  4910. <div style="min-width: fit-content">文件名称:</div>
  4911. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4912. </div>
  4913. <span slot="footer" class="dialog-footer">
  4914. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4915. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4916. </span>
  4917. </el-dialog>
  4918. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  4919. closePan(69);
  4920. }
  4921. " class="dialog_diy fullStyle fullStyle1">
  4922. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  4923. <span slot="footer" class="dialog-footer">
  4924. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4925. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4926. </span>
  4927. </el-dialog>
  4928. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  4929. :before-close="handleClose" class="dialog_diy">
  4930. <div class="template_box">
  4931. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  4932. :class="{ wordTeacherA: ctJson.id == aa.id }">
  4933. <div class="wordPic">
  4934. <img src="../../../assets/icon/new/course_template.png" alt />
  4935. </div>
  4936. <el-tooltip effect="dark" :content="aa.title" placement="top">
  4937. <div style="
  4938. margin-top: 10px;
  4939. line-height: 19px;
  4940. overflow: hidden;
  4941. text-overflow: ellipsis;
  4942. white-space: nowrap;
  4943. padding: 0 10px;
  4944. box-sizing: border-box;
  4945. width: 100%;
  4946. ">
  4947. {{ aa.title }}
  4948. </div>
  4949. </el-tooltip>
  4950. </div>
  4951. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4952. :class="{ wordTeacherA: ctJson.id == 1 }">
  4953. <div class="wordPic">
  4954. <img src="../../../assets/icon/new/course_template.png" alt />
  4955. </div>
  4956. <div style="
  4957. margin-top: 10px;
  4958. line-height: 19px;
  4959. overflow: hidden;
  4960. text-overflow: ellipsis;
  4961. white-space: nowrap;
  4962. padding: 0 20px;
  4963. ">
  4964. 简易模板
  4965. </div>
  4966. </div>
  4967. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  4968. :class="{ wordTeacherA: ctJson.id == 2 }">
  4969. <div class="wordPic">
  4970. <img src="../../../assets/icon/new/course_template.png" alt />
  4971. </div>
  4972. <div style="
  4973. margin-top: 10px;
  4974. line-height: 19px;
  4975. overflow: hidden;
  4976. text-overflow: ellipsis;
  4977. white-space: nowrap;
  4978. padding: 0 20px;
  4979. ">
  4980. 智能粘贴模式
  4981. </div>
  4982. </div>
  4983. </div>
  4984. <span slot="footer" class="dialog-footer">
  4985. <el-button @click="templateDialog = false">取 消</el-button>
  4986. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  4987. </span>
  4988. </el-dialog>
  4989. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4990. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  4991. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  4992. <div class="change_stageBox">
  4993. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  4994. <div class="nt_taskBox">
  4995. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  4996. <div class="nt_taskName">
  4997. <el-tooltip effect="light" :content="t.dyName" placement="top">
  4998. <span>{{ t.dyName }}</span>
  4999. </el-tooltip>
  5000. </div>
  5001. </div>
  5002. <div class="moveBtn" v-if="unitJson3.length > 1">
  5003. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  5004. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  5005. </div>
  5006. </div>
  5007. </div>
  5008. <span slot="footer" class="dialog-footer">
  5009. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  5010. <el-button type="primary" @click="updateChange">确定</el-button>
  5011. </span>
  5012. </el-dialog>
  5013. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5014. :before-close="handleClose" class="dialog_diy">
  5015. <div class="addTypeChoose" style="justify-content: center">
  5016. <div style="min-width: 100px">模板名称:</div>
  5017. <el-input v-model="templateName" style="width: 200px"></el-input>
  5018. </div>
  5019. <div class="addTypeBox">
  5020. <div class="addTypeChoose">
  5021. <div style="min-width: 100px">选择一级分类:</div>
  5022. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5023. style="width: 200px">
  5024. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5025. </el-option>
  5026. </el-select>
  5027. </div>
  5028. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5029. <div style="min-width: 100px">选择二级分类:</div>
  5030. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5031. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5032. </el-option>
  5033. </el-select>
  5034. </div>
  5035. </div>
  5036. <span slot="footer" class="dialog-footer">
  5037. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5038. <el-button @click="close()">关 闭</el-button>
  5039. </span>
  5040. </el-dialog>
  5041. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5042. </evaBox>
  5043. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5044. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5045. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5046. </aiDialog>
  5047. </div>
  5048. </template>
  5049. <script>
  5050. import "../../../common/aws-sdk-2.235.1.min.js";
  5051. import { tools as toolsData } from "../../../common/tools.js";
  5052. // import "../../../common/aws-sdk-2.99.0.min.js";
  5053. import $ from "jquery";
  5054. import EditorBar from "../../../components/tools/wangEnduit";
  5055. import Table from "../../../components/tools/table";
  5056. import Mind from "../../tools/jsmind2";
  5057. import Time from "../../tools/time.vue";
  5058. import Sunburst from "../../tools/sunburst";
  5059. import SeeBoard from "../../tools/seeBoard";
  5060. import weilaiData from "../components/weilai.js";
  5061. import sourceDialog from "../teacherSource/dialog.vue";
  5062. import interVideo from "../interVideo/index.vue";
  5063. import englishRight from "../components/englishRight.vue";
  5064. import evaBox from "../evaBox/index.vue";
  5065. import EnglishVoice from "../EnglishVoice/index.vue";
  5066. import aiBox from './aiBox.vue'
  5067. import aiDialog from './aiDialog'
  5068. import aiTips from './aiTips.vue'
  5069. import { v4 as uuidv4 } from "uuid";
  5070. export default {
  5071. components: {
  5072. EditorBar,
  5073. Mind,
  5074. Time,
  5075. Sunburst,
  5076. SeeBoard,
  5077. Table,
  5078. sourceDialog,
  5079. interVideo,
  5080. englishRight,
  5081. evaBox,
  5082. EnglishVoice,
  5083. aiBox,
  5084. aiDialog,
  5085. aiTips
  5086. },
  5087. data() {
  5088. return {
  5089. checkAll: false,
  5090. checkAll2: false,
  5091. chooseType: 1,
  5092. checkedCities: [],
  5093. isIndeterminate: true,
  5094. isIndeterminate2: true,
  5095. isSysPic: false,
  5096. isSysPic2: false,
  5097. steps: 1,
  5098. stepsNav: 1,
  5099. nbOrder: 0,
  5100. courseId: "",
  5101. chapToolsType: 0,
  5102. chapTools: [
  5103. {
  5104. tools: [],
  5105. toolDetail: "",
  5106. },
  5107. ],
  5108. line: "",
  5109. lineTitle: "",
  5110. sysPic: [],
  5111. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5112. sentenceList2: [],
  5113. isPushTitleList: [],
  5114. lineCount: 0,
  5115. lineType: 0,
  5116. chapCount: 0,
  5117. courseName: "",
  5118. isTeacherSee: false,
  5119. courseText: "",
  5120. textLoading: false,
  5121. ttextLoading: false,
  5122. courseText2: "",
  5123. preTime: 0,
  5124. formLabelWidth: "100px",
  5125. choosePicVisible: false,
  5126. sysPicVisible: false,
  5127. sysPicVisible2: false,
  5128. uploadLoading1: false,
  5129. noneBtnImg: false,
  5130. updateBoolean2: false,
  5131. unitIndex: 0,
  5132. taskCount: 0,
  5133. dialogVisible: false,
  5134. dialogVisible1: false,
  5135. dialogVisible2: false,
  5136. dialogVisible3: false,
  5137. dialogVisible4: false,
  5138. dialogVisible5: false,
  5139. dialogVisible6: false,
  5140. dialogVisible7: false,
  5141. dialogVisible8: false,
  5142. dialogVisible9: false,
  5143. dialogVisibleClass: false,
  5144. dialogVisibleMember: false,
  5145. dialogVisibleMp3: false,
  5146. dialogVisibleSelect: false,
  5147. dialogVisibleSentence: false,
  5148. dialogVisibleRate: false,
  5149. dialogVisibleChoice: false,
  5150. dialogVisiblemb: false,
  5151. dialogVisibleInvite: false,
  5152. dialogVisibleSource: false,
  5153. dialogVisibleVideo: false,
  5154. dialogVisibleStageChange: false,
  5155. dialogVisibleupdataVideoT: false,
  5156. englishDialogVisible: false,
  5157. templateDialog: false,
  5158. ctJson: {},
  5159. isClickColor: 1,
  5160. toolIndexType: "",
  5161. publicTool: 0,
  5162. searchPeople: "",
  5163. searchTN: "",
  5164. userid: this.$route.query.userid,
  5165. oid: this.$route.query.oid,
  5166. org: this.$route.query.org,
  5167. role: this.$route.query.role,
  5168. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5169. dialogVisibleTable: false,
  5170. dialogVisibleWord: false,
  5171. tableJson: { text: "" },
  5172. wordJson: { text: "" },
  5173. dialogVisibleMoreUpload: false,
  5174. dialogVisiblePreTime: false,
  5175. uploadJson: [],
  5176. classJuri: [],
  5177. gradeList: [],
  5178. cover: [], //课程封面
  5179. myWord: [],
  5180. evaJuri: [],
  5181. evalua: "",
  5182. targetArray: [],
  5183. eTitle: "",
  5184. eJson: {},
  5185. fid: "", //一级
  5186. sid: "", //二级
  5187. tid: "", //二级
  5188. typeMode: 1,
  5189. eJSONNum: 0,
  5190. data: {
  5191. meta: {
  5192. name: "example",
  5193. author: "dd@163.com",
  5194. version: "0.2",
  5195. },
  5196. format: "node_array",
  5197. data: [{ id: "root", isroot: true, topic: "" }],
  5198. },
  5199. askJson: {
  5200. askCount: 1,
  5201. askTitle: "",
  5202. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5203. },
  5204. askJson2: {},
  5205. testJson: {},
  5206. testJson2: {},
  5207. selectJson: {},
  5208. selectJson2: {},
  5209. rateJson: [],
  5210. unitJson2: [],
  5211. unitJson3: [],
  5212. unitJson: [
  5213. {
  5214. dyName: "", //单元标题
  5215. chapterInfo: [
  5216. {
  5217. isread: false,
  5218. chapterid: this.guid(),
  5219. title: "",
  5220. courseName: "",
  5221. taskJson: [
  5222. {
  5223. task: "",
  5224. taskDetail: "",
  5225. chapterData: [],
  5226. toolText: "",
  5227. toolChoose: [
  5228. {
  5229. tool: [],
  5230. toolDetail: "",
  5231. toolType: 0,
  5232. askCount: 1,
  5233. askTitle: "",
  5234. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5235. },
  5236. ],
  5237. isShowTools: false,
  5238. askCount: 1,
  5239. isFold: 1,
  5240. askTitle: "",
  5241. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5242. checkJson: [{ checkCount: [], checkPerent: [] }],
  5243. homeworkList: [],
  5244. },
  5245. ],
  5246. itemCount: 1,
  5247. fileList1: [],
  5248. video: [],
  5249. testData: [],
  5250. pData: [],
  5251. templateArray: [],
  5252. },
  5253. ],
  5254. },
  5255. ],
  5256. templateArray: [],
  5257. studentJuri: [],
  5258. teacherJuri: [],
  5259. checkboxList: [],
  5260. checkboxList2: [],
  5261. checkboxList3: [],
  5262. classSearch: "",
  5263. gradeId: "",
  5264. number: "",
  5265. tTitle: "",
  5266. tdetail: "",
  5267. templateC: {},
  5268. AttText: {},
  5269. AttTextType: 0,
  5270. AttTextIndex: 0,
  5271. cTemplate: "",
  5272. CourseType: [],
  5273. CourseType1: [],
  5274. CourseType2: [],
  5275. CourseTypeJson: {},
  5276. CourseTypeJson1: {},
  5277. courseTypeId: [],
  5278. courseTypeId1: [],
  5279. courseTypeSon: [],
  5280. clearArray: [],
  5281. pTypeCheck: [],
  5282. pTypeCheckName: [],
  5283. loading: false,
  5284. toolType: 0,
  5285. inputShow: true,
  5286. inputShow2: true,
  5287. toolIndex: 0,
  5288. cidType: 0,
  5289. answerQ: "",
  5290. answerQ2: "",
  5291. grade: [],
  5292. grade2: [],
  5293. courseUserid: "",
  5294. timer: null,
  5295. timer2: null,
  5296. pasteTimer: null,
  5297. checkId: "",
  5298. isDelete: 1,
  5299. addindex: 0,
  5300. selectSteps: 1,
  5301. groupJson: {},
  5302. dialogVisibleGroup: false,
  5303. rightBoxHeight: 0,
  5304. ManAarray: [],
  5305. checkBoolean: false,
  5306. inviteCode: [],
  5307. inviteId: "",
  5308. icode: "",
  5309. easyArray: [2, 4],
  5310. sourceData: {},
  5311. updateSourcePan: false,
  5312. videoJson: {},
  5313. isBtnDisplay: false,
  5314. isStepDisplay: false,
  5315. isPasteStage: false,
  5316. isPasteTask: false,
  5317. isPasteChoice: false,
  5318. imageList: [],
  5319. imageloading: false,
  5320. searchImageValue: "",
  5321. ppage: 1,
  5322. toolsData: toolsData,
  5323. oldIndex: 0,
  5324. dragType: "",
  5325. oldUnitIndex: 0,
  5326. oldData: null,
  5327. newIndex: "",
  5328. englishList: {},
  5329. typeIndex: "",
  5330. courseState: 2,
  5331. taskJSONa: [
  5332. {
  5333. task: "",
  5334. taskDetail: "",
  5335. chapterData: [],
  5336. toolText: "",
  5337. toolChoose: [
  5338. {
  5339. tool: [],
  5340. toolDetail: "",
  5341. toolType: 0,
  5342. askCount: 1,
  5343. askTitle: "",
  5344. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5345. },
  5346. ],
  5347. isShowTools: false,
  5348. askCount: 1,
  5349. isFold: 1,
  5350. askTitle: "",
  5351. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5352. checkJson: [{ checkCount: [], checkPerent: [] }],
  5353. homeworkList: [],
  5354. },
  5355. ],
  5356. checkUnitIndex: 0,
  5357. isdrag: "",
  5358. evaIndex: "",
  5359. evatIndex: "",
  5360. evaBoxDialog: false,
  5361. EnglishVoiceDialog: false,
  5362. englishVoiceJson: {},
  5363. cetIndex: "",
  5364. cettIndex: "",
  5365. cetBoxDialog: false,
  5366. templateName: "",
  5367. setTypeJson: {
  5368. one: "",
  5369. two: "",
  5370. },
  5371. twoJson: [],
  5372. oneJson: [],
  5373. updateKey: 1,
  5374. isOutline: false,
  5375. isOutline2: false,
  5376. infoData: [],
  5377. infoproVisible: false,
  5378. infoisFinishSize: 0,
  5379. infoisAllSize: 0,
  5380. infoprogress: 0,
  5381. taskDetailLoading: [],
  5382. ttaskDetailLoading: [],
  5383. taskDetailLoading2: [],
  5384. ttaskDetailLoading2: [],
  5385. taskDetailLoading3: [],
  5386. ttaskDetailLoading3: [],
  5387. taskDetailLoading4: [],
  5388. taskDetailLoading5: [],
  5389. ttaskDetailLoading5: [],
  5390. dArray: {},
  5391. dialogVisibleAiD: false,
  5392. aitype: "",
  5393. aiJson: {
  5394. aiDetail:"请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  5395. aiOutline:"请根据<课程简要描述>及#补充参考资料为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。",
  5396. aiTask:"请根据<教学任务教案>。",
  5397. aiDetail1:"请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  5398. aiDetail2:"请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  5399. aiDetail3:"请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  5400. aiDetail4:"请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  5401. aiTeacher:"请根据<任务大纲>为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5402. teacherDetail:"请根据<教案描述>重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。",
  5403. },
  5404. aiText: "",
  5405. aiCallBack: "",
  5406. aiIndex: "",
  5407. clickType: 1,
  5408. promptShow: true,
  5409. templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : ""
  5410. };
  5411. },
  5412. directives: {
  5413. autoHeight: {
  5414. update(el, binding) {
  5415. const { value } = binding;
  5416. if (value && typeof value === "number") {
  5417. el.style.height = `${value}px`;
  5418. } else {
  5419. el.style.height = "auto";
  5420. }
  5421. },
  5422. componentUpdated(el) {
  5423. el.style.height = `${el.scrollHeight + 25}px`;
  5424. },
  5425. },
  5426. },
  5427. computed: {
  5428. // rightBoxHeight: function () {
  5429. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5430. // },
  5431. offsetLetfPx: function () {
  5432. //addnum可以直接在模板语法里面用,相当于data内的值
  5433. return (
  5434. $(".cru_select")[this.unitIndex] &&
  5435. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5436. );
  5437. },
  5438. getMan2() {
  5439. return function (people) {
  5440. let _people = people;
  5441. let _people2 = "";
  5442. if (this.ManAarray.length) {
  5443. for (var i = 0; i < this.ManAarray.length; i++) {
  5444. if (this.ManAarray[i].userid == people) {
  5445. _people2 = this.ManAarray[i].name;
  5446. break;
  5447. }
  5448. }
  5449. }
  5450. if (people == this.courseUserid) {
  5451. return "";
  5452. }
  5453. return this.ManAarray.length ? _people2 : "";
  5454. };
  5455. },
  5456. getListMan2() {
  5457. return function (list) {
  5458. let _people2 = [];
  5459. if (this.ManAarray.length) {
  5460. for (var j = 0; j < list.length; j++) {
  5461. let people = list[j];
  5462. for (var i = 0; i < this.ManAarray.length; i++) {
  5463. if (
  5464. this.ManAarray[i].userid == people &&
  5465. people != this.courseUserid
  5466. ) {
  5467. _people2.push(this.ManAarray[i].name);
  5468. break;
  5469. }
  5470. }
  5471. }
  5472. }
  5473. return this.ManAarray.length ? _people2.join("、") : "";
  5474. };
  5475. },
  5476. isInvite() {
  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 array.indexOf(cid) != -1;
  5483. };
  5484. },
  5485. getInviteCodeC() {
  5486. return function (cid) {
  5487. let array = [];
  5488. for (var i = 0; i < this.inviteCode.length; i++) {
  5489. array.push(this.inviteCode[i].cid);
  5490. }
  5491. return this.inviteCode[array.indexOf(cid)].ic;
  5492. };
  5493. },
  5494. getClassC() {
  5495. return function (c) {
  5496. let _c2 = "";
  5497. if (this.grade.length) {
  5498. for (var i = 0; i < this.grade.length; i++) {
  5499. if (this.grade[i].id == c) {
  5500. _c2 = this.grade[i].name;
  5501. break;
  5502. }
  5503. }
  5504. }
  5505. return this.grade.length ? _c2 : "";
  5506. };
  5507. },
  5508. getListClassC() {
  5509. return function (list) {
  5510. let _c2 = [];
  5511. if (this.grade.length) {
  5512. for (var j = 0; j < list.length; j++) {
  5513. let c = list[j];
  5514. for (var i = 0; i < this.grade.length; i++) {
  5515. if (this.grade[i].id == c) {
  5516. _c2.push(this.grade[i].name);
  5517. break;
  5518. }
  5519. }
  5520. }
  5521. }
  5522. return this.grade.length ? _c2.join("、") : "";
  5523. };
  5524. },
  5525. },
  5526. watch: {
  5527. unitIndex(newValue, oldValue) {
  5528. // return;
  5529. if (this.isDelete == 2) {
  5530. this.isDelete = 1;
  5531. return;
  5532. }
  5533. if (this.cid != "") {
  5534. let _unitIndex = oldValue;
  5535. if (
  5536. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5537. JSON.stringify(this.unitJson[_unitIndex])
  5538. ) {
  5539. this.$refs.rightboxR.scrollTop = 0;
  5540. return;
  5541. }
  5542. let cPan = 1;
  5543. for (
  5544. var j = 0;
  5545. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5546. j++
  5547. ) {
  5548. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5549. j
  5550. ].proVisible = false;
  5551. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5552. j
  5553. ].proVisible2 = false;
  5554. if (
  5555. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5556. .length > 1
  5557. ) {
  5558. for (
  5559. var z = 0;
  5560. z <
  5561. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5562. .length;
  5563. z++
  5564. ) {
  5565. if (
  5566. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5567. .toolChoose[z].tool.length
  5568. ) {
  5569. this.$message.error("请把工具添加完整");
  5570. cPan = 2;
  5571. break;
  5572. }
  5573. }
  5574. }
  5575. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5576. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5577. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5578. (ele) => {
  5579. return ele.value != "";
  5580. }
  5581. );
  5582. }
  5583. }
  5584. if (cPan == 2) {
  5585. this.unitIndex = oldValue;
  5586. return;
  5587. }
  5588. for (var i = 0; i < this.unitJson.length; i++) {
  5589. if (this.addindex != i) {
  5590. delete this.unitJson[i].isUpdate;
  5591. }
  5592. }
  5593. this.$refs.rightboxR.scrollTop = 0;
  5594. this.addindex = -1;
  5595. let params = [
  5596. {
  5597. cid: this.cid,
  5598. chapters: JSON.stringify(this.unitJson),
  5599. uid: this.userid,
  5600. unitIndex: _unitIndex,
  5601. },
  5602. ];
  5603. this.ajax
  5604. .post(this.$store.state.api + "updateWorkNew4", params)
  5605. .then((res) => {
  5606. // this.$message({
  5607. // message: "修改成功",
  5608. // type: "success",
  5609. // });
  5610. // this.courseId = this.cid;
  5611. this.addtips()
  5612. })
  5613. .catch((err) => {
  5614. this.$message.error("网络不佳");
  5615. console.error(err);
  5616. });
  5617. }
  5618. },
  5619. steps(newValue, old) {
  5620. if (newValue == 4) {
  5621. let cPan = 1;
  5622. for (var i = 0; i < this.unitJson.length; i++) {
  5623. for (
  5624. var j = 0;
  5625. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5626. j++
  5627. ) {
  5628. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5629. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5630. if (
  5631. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5632. ) {
  5633. for (
  5634. var z = 0;
  5635. z <
  5636. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5637. z++
  5638. ) {
  5639. if (
  5640. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5641. .tool.length
  5642. ) {
  5643. this.$message.error("请把工具添加完整");
  5644. cPan = 2;
  5645. break;
  5646. }
  5647. }
  5648. }
  5649. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5650. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5651. i
  5652. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5653. return ele.value != "";
  5654. });
  5655. }
  5656. }
  5657. }
  5658. this.inputShow = true;
  5659. if (cPan == 2) {
  5660. this.steps = old;
  5661. return;
  5662. }
  5663. this.goTo(
  5664. "/course?userid=" +
  5665. this.userid +
  5666. "&oid=" +
  5667. this.oid +
  5668. "&org=" +
  5669. this.org +
  5670. "&role=" +
  5671. this.role
  5672. );
  5673. }
  5674. },
  5675. },
  5676. methods: {
  5677. tableRowClassName({ row, rowIndex }) {
  5678. if ((rowIndex + 1) % 2 === 0) {
  5679. return "even_row";
  5680. } else {
  5681. return "";
  5682. }
  5683. },
  5684. close() {
  5685. this.cetIndex = "";
  5686. this.cettIndex = "";
  5687. this.templateName = "";
  5688. this.cetBoxDialog = false;
  5689. },
  5690. openAI() {
  5691. top.postMessage({ tools: "64" }, "*");
  5692. },
  5693. setMan() {
  5694. // let teacherJuri = this.teacherJuri2;
  5695. this.ManAarray = [];
  5696. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5697. if (_user.indexOf(this.userid) == -1) {
  5698. _user.push(this.userid);
  5699. }
  5700. if (_user.indexOf(this.courseUserid) == -1) {
  5701. _user.push(this.courseUserid);
  5702. }
  5703. let params = {
  5704. uid: _user.join(","),
  5705. };
  5706. this.ajax
  5707. .get(this.$store.state.api + "getAllUserById", params)
  5708. .then((res) => {
  5709. let teacherJuri = res.data[0];
  5710. this.ManAarray = teacherJuri;
  5711. })
  5712. .catch((err) => {
  5713. console.error(err);
  5714. });
  5715. },
  5716. previewImg(url) {
  5717. this.$hevueImgPreview(url);
  5718. },
  5719. btnDisplay(bool) {
  5720. this.isBtnDisplay = bool;
  5721. },
  5722. stepDisplay(bool) {
  5723. this.isStepDisplay = bool;
  5724. },
  5725. scrollChange() {
  5726. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5727. },
  5728. addHw(e) {
  5729. var el = e.currentTarget;
  5730. el.getElementsByTagName("input")[0].click();
  5731. },
  5732. change(val) {
  5733. if (this.dialogVisible1) {
  5734. this.tdetail = val;
  5735. } else if (this.dialogVisible6) {
  5736. this.AttText.text = val;
  5737. } else if (this.dialogVisible2) {
  5738. this.cTemplate = val;
  5739. } else if (this.dialogVisibleTable) {
  5740. this.tableJson.text = val;
  5741. }
  5742. this.$forceUpdate();
  5743. console.log(val);
  5744. },
  5745. change2(val) {
  5746. console.log(val);
  5747. this.$forceUpdate();
  5748. },
  5749. handleClose(done) {
  5750. done();
  5751. },
  5752. closePan(tool) {
  5753. if (tool == 15) {
  5754. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5755. this.dialogVisible8 = false;
  5756. } else {
  5757. this.closeConfirm(tool);
  5758. }
  5759. } else if (tool == 4) {
  5760. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5761. this.dialogVisible5 = false;
  5762. } else {
  5763. this.closeConfirm(tool);
  5764. }
  5765. } else if (tool == 45) {
  5766. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5767. this.dialogVisibleChoice = false;
  5768. } else {
  5769. this.closeConfirm(tool);
  5770. }
  5771. } else if (tool == 41) {
  5772. if (
  5773. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  5774. ) {
  5775. this.dialogVisibleSelect = false;
  5776. } else {
  5777. this.closeConfirm(tool);
  5778. }
  5779. } else if (tool == 47) {
  5780. if (
  5781. JSON.stringify(this.sentenceList) ==
  5782. JSON.stringify(this.sentenceList2)
  5783. ) {
  5784. this.dialogVisibleSentence = false;
  5785. } else {
  5786. this.closeConfirm(tool);
  5787. }
  5788. } else if (tool == 69) {
  5789. if (
  5790. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  5791. ) {
  5792. this.englishDialogVisible = false;
  5793. } else {
  5794. this.closeConfirm(tool);
  5795. }
  5796. }
  5797. },
  5798. closeConfirm(tool) {
  5799. this.$confirm("是否保存已编辑内容?", "提示", {
  5800. confirmButtonText: "保存",
  5801. cancelButtonText: "不保存",
  5802. type: "warning",
  5803. })
  5804. .then(() => {
  5805. if (tool == 15) {
  5806. this.addAnswer();
  5807. } else if (tool == 4) {
  5808. this.addAsk();
  5809. } else if (tool == 45) {
  5810. this.addTest();
  5811. } else if (tool == 41) {
  5812. this.addSelectAnswer();
  5813. } else if (tool == 47) {
  5814. this.addSentenceTool();
  5815. } else if (tool == 69) {
  5816. this.addEnglish();
  5817. }
  5818. })
  5819. .catch(() => {
  5820. if (tool == 15) {
  5821. this.dialogVisible8 = false;
  5822. } else if (tool == 4) {
  5823. this.dialogVisible5 = false;
  5824. } else if (tool == 45) {
  5825. this.dialogVisibleChoice = false;
  5826. } else if (tool == 41) {
  5827. this.dialogVisibleSelect = false;
  5828. } else if (tool == 47) {
  5829. this.dialogVisibleSentence = false;
  5830. } else if (tool == 69) {
  5831. this.englishDialogVisible = false;
  5832. }
  5833. });
  5834. },
  5835. addEnglish(jsonType) {
  5836. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  5837. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  5838. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  5839. if (
  5840. this.englishList.engTitle == "" ||
  5841. this.englishList.englishText == ""
  5842. ) {
  5843. this.$message.error("请将内容填写完整!");
  5844. return;
  5845. }
  5846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5847. this.taskCount
  5848. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5849. this.englishList = {};
  5850. if (jsonType && jsonType == 1) {
  5851. this.englishDialogVisible = true;
  5852. } else {
  5853. this.englishDialogVisible = false;
  5854. }
  5855. if (
  5856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5857. .toolChoose[this.toolIndex].tool != 69
  5858. ) {
  5859. this.addTools(69, this.taskCount, this.toolIndex);
  5860. }
  5861. },
  5862. imgChange2(i, j) {
  5863. var _tmp = this.testJson.testJson[i].checkList[j];
  5864. this.noneBtnImg = _tmp.length >= 1;
  5865. },
  5866. imgChange3(i) {
  5867. var _tmp = this.testJson.testJson[i];
  5868. this.noneBtnImg = _tmp.length >= 1;
  5869. },
  5870. imgChange1(file, fileList, type, itemTaskIndex) {
  5871. if (type == 1) {
  5872. var _tmp = this.cover;
  5873. } else if (
  5874. type == 2 ||
  5875. type == 3 ||
  5876. type == 6 ||
  5877. type == 7 ||
  5878. type == 8
  5879. ) {
  5880. var _tmp =
  5881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5882. .chapterData;
  5883. } else if (type == 4) {
  5884. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5885. } else {
  5886. var _tmp =
  5887. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5888. .homeworkList;
  5889. }
  5890. this.noneBtnImg = _tmp.length >= 1;
  5891. },
  5892. goTo(path) {
  5893. this.$router.push(path);
  5894. },
  5895. guid() {
  5896. var _num,
  5897. i,
  5898. _guid = "";
  5899. for (i = 0; i < 32; i++) {
  5900. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5901. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5902. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5903. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5904. _guid += "-";
  5905. }
  5906. }
  5907. return _guid;
  5908. },
  5909. retrunCourse() {
  5910. this.$confirm("是否保存已编辑内容?", "提示", {
  5911. confirmButtonText: "保存",
  5912. cancelButtonText: "不保存",
  5913. distinguishCancelAndClose: true,
  5914. type: "warning",
  5915. })
  5916. .then(() => {
  5917. if (this.cid == "" || this.cid == undefined) {
  5918. if (this.courseName == "") {
  5919. this.$message.error("请补充填写课程名称");
  5920. return;
  5921. } else {
  5922. this.addWork();
  5923. }
  5924. this.steps = 4;
  5925. } else {
  5926. if (this.courseName == "") {
  5927. this.$message.error("请补充填写课程名称");
  5928. return;
  5929. } else {
  5930. if (this.userid != this.courseUserid && this.role != "1") {
  5931. this.updateWork2();
  5932. } else {
  5933. this.updateWork();
  5934. }
  5935. this.steps = 4;
  5936. }
  5937. }
  5938. })
  5939. .catch((v) => {
  5940. console.log(v);
  5941. if (v == "cancel") {
  5942. this.goTo(
  5943. "/course?userid=" +
  5944. this.userid +
  5945. "&oid=" +
  5946. this.oid +
  5947. "&org=" +
  5948. this.org +
  5949. "&role=" +
  5950. this.role
  5951. );
  5952. }
  5953. });
  5954. },
  5955. lastSteps() {
  5956. if (this.steps == 4) {
  5957. this.goTo(
  5958. "/course?userid=" +
  5959. this.userid +
  5960. "&oid=" +
  5961. this.oid +
  5962. "&org=" +
  5963. this.org +
  5964. "&role=" +
  5965. this.role
  5966. );
  5967. } else {
  5968. // if (this.cidType == 0) {
  5969. // this.steps--;
  5970. // if (this.steps == 1) {
  5971. // setTimeout(() => {
  5972. // this.checkEva(this.checkId);
  5973. // setTimeout(() => {
  5974. // this.checkEva(this.checkId);
  5975. // }, 100);
  5976. // }, 100);
  5977. // }
  5978. // } else {
  5979. if (this.steps == 3) {
  5980. this.steps = 1;
  5981. setTimeout(() => {
  5982. this.checkEva(this.checkId);
  5983. setTimeout(() => {
  5984. this.checkEva(this.checkId);
  5985. }, 100);
  5986. }, 100);
  5987. }
  5988. // }
  5989. }
  5990. },
  5991. navSteps(s) {
  5992. if (this.courseName == "") {
  5993. this.$message.error("请补充填写课程名称");
  5994. return;
  5995. }
  5996. if (this.cidType == 0) {
  5997. if (this.steps == 1) {
  5998. if (this.cid == "" || this.cid == undefined) {
  5999. this.addWork();
  6000. } else {
  6001. if (this.userid != this.courseUserid && this.role != "1") {
  6002. this.updateWork2();
  6003. } else {
  6004. this.updateWork();
  6005. }
  6006. }
  6007. }
  6008. if (s == 1) {
  6009. this.steps = 1;
  6010. setTimeout(() => {
  6011. this.checkEva(this.checkId);
  6012. setTimeout(() => {
  6013. this.checkEva(this.checkId);
  6014. }, 100);
  6015. }, 100);
  6016. }
  6017. if (s == 2) {
  6018. this.steps = 2;
  6019. }
  6020. if (s == 3) {
  6021. this.cTemplate = this.templateC.content;
  6022. this.dialogVisible2 = false;
  6023. this.steps = 3;
  6024. this.isClickColor = 1;
  6025. this.unitJson[
  6026. this.unitIndex
  6027. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6028. this.$forceUpdate();
  6029. setTimeout(() => {
  6030. this.checkEva(this.checkId);
  6031. setTimeout(() => {
  6032. this.checkEva(this.checkId);
  6033. }, 100);
  6034. }, 1000);
  6035. }
  6036. } else {
  6037. if (this.steps == 1) {
  6038. if (this.cid == "" || this.cid == undefined) {
  6039. this.addWork();
  6040. } else {
  6041. if (this.userid != this.courseUserid && this.role != "1") {
  6042. this.updateWork2();
  6043. } else {
  6044. this.updateWork();
  6045. }
  6046. }
  6047. }
  6048. if (s == 1) {
  6049. this.steps = 1;
  6050. setTimeout(() => {
  6051. this.checkEva(this.checkId);
  6052. setTimeout(() => {
  6053. this.checkEva(this.checkId);
  6054. }, 100);
  6055. }, 100);
  6056. }
  6057. if (s == 3) {
  6058. this.cTemplate = this.templateC.content;
  6059. this.dialogVisible2 = false;
  6060. this.steps = 3;
  6061. this.isClickColor = 1;
  6062. this.unitJson[
  6063. this.unitIndex
  6064. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6065. this.$forceUpdate();
  6066. setTimeout(() => {
  6067. this.checkEva(this.checkId);
  6068. setTimeout(() => {
  6069. this.checkEva(this.checkId);
  6070. }, 100);
  6071. }, 1000);
  6072. }
  6073. }
  6074. this.$refs.stepBox.scrollTop = 0;
  6075. },
  6076. nextSteps(clickType) {
  6077. // if (this.cidType == 1) {
  6078. if (this.steps == 1) {
  6079. if (this.courseName != "") {
  6080. if (!this.isOutline) {
  6081. this.openAiDialog(clickType, 'aiOutline')
  6082. return;
  6083. }
  6084. if (!this.isOutline2) {
  6085. this.openAiDialog(clickType, 'aiTeacher')
  6086. return;
  6087. }
  6088. const functionA = () => {
  6089. setTimeout(() => {
  6090. this.loading = false
  6091. this.steps = 3;
  6092. }, 0)
  6093. this.isClickColor = 1;
  6094. this.unitJson[
  6095. this.unitIndex
  6096. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6097. this.$forceUpdate();
  6098. setTimeout(() => {
  6099. this.checkEva(this.checkId);
  6100. setTimeout(() => {
  6101. this.checkEva(this.checkId);
  6102. }, 100);
  6103. }, 1000);
  6104. if (this.cid == "" || this.cid == undefined) {
  6105. this.addWork();
  6106. } else {
  6107. if (this.userid != this.courseUserid && this.role != "1") {
  6108. this.updateWork2();
  6109. } else {
  6110. this.updateWork();
  6111. }
  6112. }
  6113. }
  6114. if (this.cid) {
  6115. this.loading = true
  6116. functionA()
  6117. } else {
  6118. this.openAiDialog(clickType, "aiTask", functionA)
  6119. }
  6120. } else {
  6121. this.$message.error("请补充填写课程名称");
  6122. return;
  6123. }
  6124. } else if (this.steps == 3) {
  6125. if (this.cid == "" || this.cid == undefined) {
  6126. if (this.courseName == "") {
  6127. this.$message.error("请补充填写课程名称");
  6128. return;
  6129. } else {
  6130. this.addWork();
  6131. this.steps++;
  6132. }
  6133. } else {
  6134. if (this.courseName == "") {
  6135. this.$message.error("请补充填写课程名称");
  6136. return;
  6137. } else {
  6138. if (this.userid != this.courseUserid && this.role != "1") {
  6139. this.updateWork2();
  6140. } else {
  6141. this.updateWork();
  6142. }
  6143. this.steps++;
  6144. }
  6145. }
  6146. }
  6147. // } else {
  6148. // if (this.steps == 1) {
  6149. // if (this.courseName != "") {
  6150. // if (this.cid == "" || this.cid == undefined) {
  6151. // this.addWork();
  6152. // } else {
  6153. // if (this.userid != this.courseUserid && this.role != "1") {
  6154. // // this.updateWork2();
  6155. // } else {
  6156. // this.updateWork();
  6157. // }
  6158. // }
  6159. // this.steps++;
  6160. // } else {
  6161. // this.$message.error("请补充填写课程名称");
  6162. // return;
  6163. // }
  6164. // } else if (this.steps == 2) {
  6165. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6166. // this.cTemplate = this.templateC.content;
  6167. // }
  6168. // this.dialogVisible2 = false;
  6169. // this.steps++;
  6170. // setTimeout(() => {
  6171. // this.checkEva(this.checkId);
  6172. // setTimeout(() => {
  6173. // this.checkEva(this.checkId);
  6174. // }, 100);
  6175. // }, 1000);
  6176. // } else if (this.steps == 3) {
  6177. // if (this.cid == "" || this.cid == undefined) {
  6178. // if (this.courseName == "") {
  6179. // this.$message.error("请补充填写课程名称");
  6180. // return;
  6181. // } else {
  6182. // this.addWork();
  6183. // this.steps++;
  6184. // }
  6185. // } else {
  6186. // if (this.courseName == "") {
  6187. // this.$message.error("请补充填写课程名称");
  6188. // return;
  6189. // } else {
  6190. // if (this.userid != this.courseUserid && this.role != "1") {
  6191. // this.updateWork2();
  6192. // } else {
  6193. // this.updateWork();
  6194. // }
  6195. // this.steps++;
  6196. // }
  6197. // }
  6198. // }
  6199. // }
  6200. this.$refs.stepBox.scrollTop = 0;
  6201. },
  6202. unitSet(i) {
  6203. if (this.unitIndex == i) {
  6204. return;
  6205. }
  6206. this.unitIndex = i;
  6207. this.isClickColor = 1;
  6208. // this.$refs.rightboxR.scrollTop = 0;
  6209. this.$refs.unitBox.scrollTop = 0;
  6210. },
  6211. panUnitJson() {
  6212. let _unitIndex = this.unitIndex;
  6213. let cPan = 1;
  6214. for (
  6215. var j = 0;
  6216. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6217. j++
  6218. ) {
  6219. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6220. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6221. j
  6222. ].proVisible2 = false;
  6223. if (
  6224. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6225. .length > 1
  6226. ) {
  6227. for (
  6228. var z = 0;
  6229. z <
  6230. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6231. .length;
  6232. z++
  6233. ) {
  6234. if (
  6235. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6236. z
  6237. ].tool.length
  6238. ) {
  6239. this.$message.error("请把工具添加完整");
  6240. cPan = 2;
  6241. break;
  6242. }
  6243. }
  6244. }
  6245. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6246. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6247. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6248. (ele) => {
  6249. return ele.value != "";
  6250. }
  6251. );
  6252. }
  6253. }
  6254. return cPan;
  6255. },
  6256. unitOpen(i) {
  6257. if (this.unitJson[i].toolOpen) {
  6258. this.unitJson[i].toolOpen = false;
  6259. } else {
  6260. this.unitJson[i].toolOpen = true;
  6261. }
  6262. this.updateWork();
  6263. this.$forceUpdate();
  6264. },
  6265. unitSet2(i) {
  6266. if (this.panUnitJson() == 2) {
  6267. return;
  6268. }
  6269. // if(this.unitJson[i].toolOpen){
  6270. // this.unitJson[i].toolOpen = false
  6271. // this.updateWork()
  6272. // this.$forceUpdate()
  6273. // return
  6274. // }else {
  6275. this.unitJson[i].toolOpen = true;
  6276. // }
  6277. this.$forceUpdate();
  6278. if (this.unitIndex == i) {
  6279. return;
  6280. }
  6281. this.unitIndex = i;
  6282. this.isClickColor = 1;
  6283. // this.$refs.rightboxR.scrollTop = 0;
  6284. this.$refs.unitBox.scrollTop = 0;
  6285. },
  6286. updateCourseState(i) {
  6287. let params = [
  6288. {
  6289. cid: this.cid,
  6290. state: i,
  6291. },
  6292. ];
  6293. this.ajax
  6294. .post(this.$store.state.api + "updateCourseMode", params)
  6295. .then((res) => {
  6296. this.courseState = i;
  6297. })
  6298. .catch((err) => {
  6299. this.$message.error("网络不佳");
  6300. console.error(err);
  6301. });
  6302. },
  6303. addtips(){
  6304. let params = [
  6305. {
  6306. cid: this.cid,
  6307. tips: JSON.stringify(this.aiJson),
  6308. tid: this.templateid
  6309. },
  6310. ];
  6311. this.ajax
  6312. .post(this.$store.state.api + "addTips", params)
  6313. .then((res) => {
  6314. })
  6315. .catch((err) => {
  6316. this.$message.error("网络不佳");
  6317. console.error(err);
  6318. });
  6319. },
  6320. time() {
  6321. if (!this.now) {
  6322. this.now = new Date().getTime();
  6323. return true;
  6324. } else {
  6325. let time = new Date().getTime();
  6326. if (time - this.now > 3000) {
  6327. this.now = time;
  6328. return true;
  6329. } else {
  6330. return false;
  6331. }
  6332. }
  6333. },
  6334. deleteUnit(i) {
  6335. var _this = this;
  6336. if (i == 0 && _this.unitJson.length == 1) {
  6337. _this
  6338. .$confirm("确定切换成任务模式吗?", "提示", {
  6339. confirmButtonText: "确定",
  6340. cancelButtonText: "取消",
  6341. type: "warning",
  6342. })
  6343. .then(() => {
  6344. _this.unitJson[i].dyName = "";
  6345. // _this.updateCourseState(2);
  6346. })
  6347. .catch(() => {
  6348. return;
  6349. });
  6350. } else {
  6351. _this
  6352. .$confirm("确定删除此阶段吗?", "提示", {
  6353. confirmButtonText: "确定",
  6354. cancelButtonText: "取消",
  6355. type: "warning",
  6356. })
  6357. .then(() => {
  6358. _this.isDelete = 2;
  6359. // _this.unitIndex = _this.unitIndex - 1;
  6360. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6361. // _this.$message.success("删除成功");
  6362. })
  6363. .catch(() => {
  6364. return;
  6365. });
  6366. }
  6367. },
  6368. deleteWork(chapid) {
  6369. let params = [
  6370. {
  6371. cid: this.cid,
  6372. chapters: JSON.stringify(this.unitJson),
  6373. uid: this.userid,
  6374. chapid: chapid,
  6375. },
  6376. ];
  6377. this.ajax
  6378. .post(this.$store.state.api + "deleteWork", params)
  6379. .then((res) => {
  6380. this.$message({
  6381. message: "删除成功",
  6382. type: "success",
  6383. });
  6384. let task = JSON.parse(
  6385. JSON.stringify(
  6386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6387. )
  6388. );
  6389. this.unitJson.splice(this.unitIndex, 1);
  6390. if (this.unitIndex == 0) {
  6391. this.unitIndex = 0;
  6392. } else {
  6393. this.unitIndex = this.unitIndex - 1;
  6394. }
  6395. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6397. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6398. ...task,
  6399. ];
  6400. }
  6401. })
  6402. .catch((err) => {
  6403. this.$message.error("网络不佳");
  6404. console.error(err);
  6405. });
  6406. },
  6407. deleteTool(itemTaskIndex, i) {
  6408. var _this = this;
  6409. if (_this.time()) {
  6410. _this
  6411. .$confirm("确定删除此工具吗?", "提示", {
  6412. confirmButtonText: "确定",
  6413. cancelButtonText: "取消",
  6414. type: "warning",
  6415. })
  6416. .then(() => {
  6417. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6418. itemTaskIndex
  6419. ].toolChoose.splice(i, 1);
  6420. _this.$message.success("删除成功");
  6421. })
  6422. .catch(() => {
  6423. return;
  6424. });
  6425. }
  6426. },
  6427. deleteSentence(i) {
  6428. var _this = this;
  6429. _this
  6430. .$confirm("确定删除此题目吗?", "提示", {
  6431. confirmButtonText: "确定",
  6432. cancelButtonText: "取消",
  6433. type: "warning",
  6434. })
  6435. .then(() => {
  6436. _this.sentenceList.splice(i, 1);
  6437. _this.$message.success("删除成功");
  6438. })
  6439. .catch(() => {
  6440. return;
  6441. });
  6442. },
  6443. deleteS(s, i, j) {
  6444. this.sentenceList[i].addSentence.splice(j, 1);
  6445. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6446. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6447. this.sentenceList[i].rightAnswer.splice(a, 1);
  6448. }
  6449. },
  6450. openT() {
  6451. top.postMessage({ tools: "25" }, "*");
  6452. },
  6453. deleteTask(i) {
  6454. var _this = this;
  6455. if (_this.time()) {
  6456. _this
  6457. .$confirm(
  6458. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6459. 1 ==
  6460. i
  6461. ? "确定删除此任务吗?"
  6462. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6463. "提示",
  6464. {
  6465. confirmButtonText: "确定",
  6466. cancelButtonText: "取消",
  6467. type: "warning",
  6468. }
  6469. )
  6470. .then(() => {
  6471. if (i == 0) {
  6472. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6473. i + 1
  6474. ].chapterData = JSON.parse(
  6475. JSON.stringify(
  6476. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6477. .chapterData
  6478. )
  6479. );
  6480. }
  6481. _this.$forceUpdate();
  6482. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6483. i,
  6484. 1
  6485. );
  6486. _this.$message.success("删除成功");
  6487. })
  6488. .catch(() => {
  6489. return;
  6490. });
  6491. }
  6492. },
  6493. handlePictureCardPreview(file) {
  6494. this.dialogImageUrl = file.url;
  6495. },
  6496. clean(i, c) {
  6497. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6498. },
  6499. handle_remove1(file, fileList, type) {
  6500. var _tmp = this.cover;
  6501. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6502. // if (_tmp[i].uid == file.uid) {
  6503. // _tmp.splice(i, 1);
  6504. // break;
  6505. // }
  6506. // this.cover = _tmp;
  6507. // }
  6508. this.cover = [];
  6509. this.noneBtnImg = this.cover.length >= 1;
  6510. this.isSysPic = false;
  6511. this.isSysPic2 = false;
  6512. this.$forceUpdate();
  6513. },
  6514. addImg(e) {
  6515. var el = e.currentTarget;
  6516. el.getElementsByTagName("input")[0].click();
  6517. e.target.value = "";
  6518. },
  6519. addChaptersTools(i) {
  6520. this.chapTools = [
  6521. {
  6522. tools: [],
  6523. toolDetail: "",
  6524. },
  6525. ];
  6526. this.chapCount = i;
  6527. this.dialogVisible4 = true;
  6528. },
  6529. isNoFinsh() {
  6530. this.$message.warning("功能正在开发中");
  6531. },
  6532. addAttText(i) {
  6533. this.AttText = {
  6534. title: "",
  6535. text: "",
  6536. };
  6537. this.taskCount = i;
  6538. this.AttTextType = 0;
  6539. this.$forceUpdate();
  6540. this.dialogVisible6 = true;
  6541. setTimeout(() => {
  6542. this.$refs["fuInput"].focus();
  6543. }, 100);
  6544. },
  6545. openLine(i) {
  6546. this.line = "";
  6547. this.lineCount = i;
  6548. this.lineType = 0;
  6549. this.$forceUpdate();
  6550. this.dialogVisible7 = true;
  6551. },
  6552. pasteLine(i) {
  6553. navigator.clipboard
  6554. .readText()
  6555. .then((v) => {
  6556. console.log("获取剪贴板成功:", v);
  6557. const html = v;
  6558. const regex = /src="(.*?)"/g;
  6559. const match = regex.exec(html);
  6560. if (match && match[1]) {
  6561. console.log(match[1]);
  6562. this.$message.success("粘贴成功");
  6563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6564. i
  6565. ].chapterData.push({
  6566. name: "链接",
  6567. title: "嵌入代码",
  6568. url: match[1],
  6569. type: 8,
  6570. });
  6571. } else {
  6572. // console.log("未找到包含 src 属性的 iframe");
  6573. this.$message.error(
  6574. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6575. );
  6576. }
  6577. })
  6578. .catch((v) => {
  6579. console.log("获取剪贴板失败: ", v);
  6580. });
  6581. },
  6582. openSource(i) {
  6583. this.lineCount = i;
  6584. this.sourceData = {};
  6585. this.dialogVisibleSource = true;
  6586. this.updateSourcePan = false;
  6587. },
  6588. addSource() {
  6589. if (!Object.keys(this.sourceData).length) {
  6590. this.$message.error("请选择要上传的资源");
  6591. return;
  6592. }
  6593. let keys = Object.keys(this.sourceData);
  6594. for (var i = 0; i < keys.length; i++) {
  6595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6596. this.lineCount
  6597. ].chapterData.push({
  6598. name: "链接",
  6599. title: this.sourceData[keys[i]].name,
  6600. url: this.sourceData[keys[i]].url,
  6601. type: 14,
  6602. id: keys[i],
  6603. });
  6604. }
  6605. this.$forceUpdate();
  6606. this.dialogVisibleSource = false;
  6607. },
  6608. updateSource() {
  6609. if (!Object.keys(this.sourceData).length) {
  6610. this.$message.error("请选择要上传的资源");
  6611. return;
  6612. }
  6613. let keys = Object.keys(this.sourceData);
  6614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6615. this.taskCount
  6616. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6617. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6618. this.taskCount
  6619. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6621. this.taskCount
  6622. ].chapterData[this.lineCount].id = keys[0];
  6623. this.updateSourcePan = false;
  6624. this.$forceUpdate();
  6625. this.dialogVisibleSource = false;
  6626. },
  6627. deleteM(i, j) {
  6628. this.testJson.testJson[i].timuList.splice(j, 1);
  6629. },
  6630. beforeUploadTiMu(event, i) {
  6631. const loading = this.openLoading();
  6632. var file = event.target.files[0];
  6633. var credentials = {
  6634. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6635. secretAccessKey: "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",
  6636. }; //秘钥形式的登录上传
  6637. window.AWS.config.update(credentials);
  6638. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6639. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6640. var _this = this;
  6641. if (file) {
  6642. var params = {
  6643. Key:
  6644. file.name.split(".")[0] +
  6645. new Date().getTime() +
  6646. "." +
  6647. file.name.split(".")[file.name.split(".").length - 1],
  6648. ContentType: file.type,
  6649. Body: file,
  6650. "Access-Control-Allow-Credentials": "*",
  6651. ACL: "public-read",
  6652. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6653. var options = {
  6654. partSize: 2048 * 1024 * 1024,
  6655. queueSize: 2,
  6656. leavePartsOnError: true,
  6657. };
  6658. bucket
  6659. .upload(params, options)
  6660. .on("httpUploadProgress", function (evt) {
  6661. //这里可以写进度条
  6662. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6663. })
  6664. .send(function (err, data) {
  6665. loading.close();
  6666. if (err) {
  6667. _this.$message.error("上传失败");
  6668. } else {
  6669. if (_this.testJson.testJson[i].timuList) {
  6670. _this.testJson.testJson[i].timuList.push({
  6671. src: data.Location,
  6672. });
  6673. } else {
  6674. _this.testJson.testJson[i].timuList = [];
  6675. _this.testJson.testJson[i].timuList.push({
  6676. src: data.Location,
  6677. });
  6678. }
  6679. _this.imgChange3(i);
  6680. _this.$forceUpdate();
  6681. }
  6682. });
  6683. }
  6684. },
  6685. beforeUploadTi(event, i, j) {
  6686. const loading = this.openLoading();
  6687. var file = event.target.files[0];
  6688. var credentials = {
  6689. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6690. secretAccessKey: "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",
  6691. }; //秘钥形式的登录上传
  6692. window.AWS.config.update(credentials);
  6693. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6694. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6695. var _this = this;
  6696. if (file) {
  6697. var params = {
  6698. Key:
  6699. file.name.split(".")[0] +
  6700. new Date().getTime() +
  6701. "." +
  6702. file.name.split(".")[file.name.split(".").length - 1],
  6703. ContentType: file.type,
  6704. Body: file,
  6705. "Access-Control-Allow-Credentials": "*",
  6706. ACL: "public-read",
  6707. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6708. var options = {
  6709. partSize: 2048 * 1024 * 1024,
  6710. queueSize: 2,
  6711. leavePartsOnError: true,
  6712. };
  6713. bucket
  6714. .upload(params, options)
  6715. .on("httpUploadProgress", function (evt) {
  6716. //这里可以写进度条
  6717. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6718. })
  6719. .send(function (err, data) {
  6720. loading.close();
  6721. if (err) {
  6722. _this.$message.error("上传失败");
  6723. } else {
  6724. _this.testJson.testJson[i].checkList[j] = {};
  6725. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6726. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6727. _this.imgChange2(i, j);
  6728. _this.$forceUpdate();
  6729. }
  6730. });
  6731. }
  6732. },
  6733. beforeUpload1(event, type) {
  6734. // const loading = this.openLoading();
  6735. var file = event.target.files[0];
  6736. var credentials = {
  6737. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6738. secretAccessKey: "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",
  6739. }; //秘钥形式的登录上传
  6740. window.AWS.config.update(credentials);
  6741. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6742. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6743. var _this = this;
  6744. if (file) {
  6745. var params = {
  6746. Key:
  6747. file.name.split(".")[0] +
  6748. new Date().getTime() +
  6749. "." +
  6750. file.name.split(".")[file.name.split(".").length - 1],
  6751. ContentType: file.type,
  6752. Body: file,
  6753. "Access-Control-Allow-Credentials": "*",
  6754. ACL: "public-read",
  6755. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6756. var options = {
  6757. partSize: 2048 * 1024 * 1024,
  6758. queueSize: 2,
  6759. leavePartsOnError: true,
  6760. };
  6761. bucket
  6762. .upload(params, options)
  6763. .on("httpUploadProgress", function (evt) {
  6764. //这里可以写进度条
  6765. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6766. })
  6767. .send(function (err, data) {
  6768. // loading.close();
  6769. if (err) {
  6770. // var a = _this.$refs.upload1.uploadFiles;
  6771. // a.splice(a.length - 1, a.length);
  6772. _this.$message.error("上传失败");
  6773. } else {
  6774. // _this.cover.push({
  6775. // name: file.name,
  6776. // url: data.Location,
  6777. // uid: file.uid,
  6778. // });
  6779. _this.cover = [
  6780. {
  6781. name: file.name,
  6782. url: data.Location,
  6783. uid: file.uid,
  6784. },
  6785. ];
  6786. _this.imgChange1(null, null, 1, null);
  6787. _this.choosePicVisible = false;
  6788. console.log(data.Location);
  6789. }
  6790. });
  6791. }
  6792. },
  6793. beforeUploadSelect(event, type) {
  6794. // const loading = this.openLoading();
  6795. var file = event.target.files[0];
  6796. var credentials = {
  6797. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6798. secretAccessKey: "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",
  6799. }; //秘钥形式的登录上传
  6800. window.AWS.config.update(credentials);
  6801. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6802. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6803. var _this = this;
  6804. if (file) {
  6805. var params = {
  6806. Key:
  6807. file.name.split(".")[0] +
  6808. new Date().getTime() +
  6809. "." +
  6810. file.name.split(".")[file.name.split(".").length - 1],
  6811. ContentType: file.type,
  6812. Body: file,
  6813. "Access-Control-Allow-Credentials": "*",
  6814. ACL: "public-read",
  6815. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6816. var options = {
  6817. partSize: 2048 * 1024 * 1024,
  6818. queueSize: 2,
  6819. leavePartsOnError: true,
  6820. };
  6821. bucket
  6822. .upload(params, options)
  6823. .on("httpUploadProgress", function (evt) {
  6824. //这里可以写进度条
  6825. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6826. })
  6827. .send(function (err, data) {
  6828. // loading.close();
  6829. if (err) {
  6830. _this.$message.error("上传失败");
  6831. } else {
  6832. _this.selectJson.url = data.Location;
  6833. console.log(data.Location);
  6834. }
  6835. });
  6836. }
  6837. },
  6838. chooseSysPic(p) {
  6839. this.cover = [];
  6840. setTimeout(() => {
  6841. this.cover[0] = {
  6842. name: "系统图片.png",
  6843. url: p,
  6844. };
  6845. this.imgChange1(null, null, 1, null);
  6846. this.$forceUpdate();
  6847. }, 0);
  6848. this.isSysPic = true;
  6849. this.isSysPic2 = false;
  6850. this.sysPicVisible = false;
  6851. this.$forceUpdate();
  6852. },
  6853. chooseSysPic2(p) {
  6854. this.cover = [];
  6855. setTimeout(() => {
  6856. this.cover[0] = {
  6857. name: "网络图片.png",
  6858. url: p,
  6859. };
  6860. this.imgChange1(null, null, 1, null);
  6861. this.$forceUpdate();
  6862. }, 0);
  6863. this.isSysPic2 = true;
  6864. this.isSysPic = false;
  6865. this.sysPicVisible2 = false;
  6866. this.$forceUpdate();
  6867. },
  6868. beforeUpload(data) {
  6869. this.$refs.upload1.uploadFiles;
  6870. this.uploadLoading1 = true;
  6871. var file = data.file;
  6872. var credentials = {
  6873. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6874. secretAccessKey: "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",
  6875. }; //秘钥形式的登录上传
  6876. window.AWS.config.update(credentials);
  6877. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6878. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6879. var _this = this;
  6880. if (file) {
  6881. var params = {
  6882. Key:
  6883. file.name.split(".")[0] +
  6884. new Date().getTime() +
  6885. "." +
  6886. file.name.split(".")[file.name.split(".").length - 1],
  6887. ContentType: file.type,
  6888. Body: file,
  6889. "Access-Control-Allow-Credentials": "*",
  6890. ACL: "public-read",
  6891. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6892. var options = {
  6893. partSize: 2048 * 1024 * 1024,
  6894. queueSize: 2,
  6895. leavePartsOnError: true,
  6896. };
  6897. bucket
  6898. .upload(params, options)
  6899. .on("httpUploadProgress", function (evt) {
  6900. //这里可以写进度条
  6901. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6902. })
  6903. .send(function (err, data) {
  6904. _this.uploadLoading1 = false;
  6905. if (err) {
  6906. // var a = _this.$refs.upload1.uploadFiles;
  6907. // a.splice(a.length - 1, a.length);
  6908. _this.$message.error("上传失败");
  6909. } else {
  6910. //上传成功处理
  6911. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6912. name: file.name,
  6913. url: data.Location,
  6914. uid: file.uid,
  6915. });
  6916. _this.imgChange();
  6917. console.log(data.Location);
  6918. }
  6919. });
  6920. }
  6921. },
  6922. onExceed() {
  6923. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6924. },
  6925. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6926. // const loading = this.openLoading();
  6927. var file = event.target.files[0];
  6928. var credentials = {
  6929. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6930. secretAccessKey: "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",
  6931. }; //秘钥形式的登录上传
  6932. window.AWS.config.update(credentials);
  6933. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6934. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6935. var _this = this;
  6936. if (type == 3) {
  6937. var b = [
  6938. "DOC",
  6939. "DOCX",
  6940. "DOCM",
  6941. "DOTM",
  6942. "DOTX",
  6943. "PPTX",
  6944. "PPSX",
  6945. "PPT",
  6946. "PPS",
  6947. "PPTM",
  6948. "POTM",
  6949. "PPAM",
  6950. "POTX",
  6951. "PPSM",
  6952. ];
  6953. if (
  6954. b.indexOf(
  6955. file.name
  6956. .split(".")
  6957. [file.name.split(".").length - 1].toLocaleUpperCase()
  6958. ) != -1
  6959. ) {
  6960. if (file.size / 1024 / 1024 > 80) {
  6961. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6962. this.inputShow = true;
  6963. // var a = _this.$refs.upload1.uploadFiles;
  6964. // a.splice(a.length - 1, a.length);
  6965. // loading.close();
  6966. return;
  6967. }
  6968. } else if (
  6969. file.name
  6970. .split(".")
  6971. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6972. ) {
  6973. if (file.size / 1024 / 1024 > 80) {
  6974. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6975. this.inputShow = true;
  6976. // var a = _this.$refs.upload1.uploadFiles;
  6977. // a.splice(a.length - 1, a.length);
  6978. // loading.close();
  6979. return;
  6980. }
  6981. }
  6982. }
  6983. this.inputShow = false;
  6984. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6985. itemTaskIndex
  6986. ].progress = 0;
  6987. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6988. itemTaskIndex
  6989. ].proVisible = true;
  6990. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6991. itemTaskIndex
  6992. ].isFinishSize = 0;
  6993. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6994. itemTaskIndex
  6995. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6996. _this.$forceUpdate();
  6997. if (file) {
  6998. var params = {
  6999. Key:
  7000. file.name.split(".")[0] +
  7001. new Date().getTime() +
  7002. "." +
  7003. file.name.split(".")[file.name.split(".").length - 1],
  7004. ContentType: file.type,
  7005. Body: file,
  7006. "Access-Control-Allow-Credentials": "*",
  7007. ACL: "public-read",
  7008. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7009. var options = {
  7010. partSize: 2048 * 1024 * 1024,
  7011. queueSize: 2,
  7012. leavePartsOnError: true,
  7013. };
  7014. bucket
  7015. .upload(params, options)
  7016. .on("httpUploadProgress", function (evt) {
  7017. //这里可以写进度条
  7018. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7019. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7020. itemTaskIndex
  7021. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7022. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7023. itemTaskIndex
  7024. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7025. _this.$forceUpdate();
  7026. })
  7027. .send(function (err, data) {
  7028. // loading.close();
  7029. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7030. itemTaskIndex
  7031. ].progress = 100;
  7032. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7033. itemTaskIndex
  7034. ].isFinishSize =
  7035. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7036. itemTaskIndex
  7037. ].isAllSize;
  7038. _this.$forceUpdate();
  7039. setTimeout(() => {
  7040. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7041. itemTaskIndex
  7042. ].proVisible = false;
  7043. _this.$forceUpdate();
  7044. }, 1000);
  7045. _this.inputShow = true;
  7046. if (err) {
  7047. // var a = _this.$refs.upload1.uploadFiles;
  7048. // a.splice(a.length - 1, a.length);
  7049. _this.$message.error("上传失败");
  7050. } else {
  7051. if (type == 13) {
  7052. let _type = 2;
  7053. var imgA = [
  7054. "png",
  7055. "jpg",
  7056. "jpeg",
  7057. "bmp",
  7058. "gif",
  7059. "webp",
  7060. "psd",
  7061. "svg",
  7062. "tiff",
  7063. ];
  7064. var fileA = [
  7065. "PDF",
  7066. "DOC",
  7067. "DOCX",
  7068. "DOCM",
  7069. "DOTM",
  7070. "DOTX",
  7071. "PPTX",
  7072. "PPSX",
  7073. "PPT",
  7074. "PPS",
  7075. "PPTM",
  7076. "POTM",
  7077. "PPAM",
  7078. "POTX",
  7079. "PPSM",
  7080. "XLSX",
  7081. "XLS",
  7082. ];
  7083. var videoA = [
  7084. "AVI",
  7085. "NAVI",
  7086. "MPEG",
  7087. "ASF",
  7088. "MOV",
  7089. "WMV",
  7090. "3GP",
  7091. "RM",
  7092. "RMVB",
  7093. "FLV",
  7094. "F4V",
  7095. "H.264",
  7096. "H.265",
  7097. "REAL VIDEO",
  7098. "MKV",
  7099. "WebM",
  7100. "HDDVD",
  7101. "MP4",
  7102. "MPG",
  7103. "M4V",
  7104. "MGV",
  7105. "OGV",
  7106. "QTM",
  7107. "STR",
  7108. "AMC",
  7109. "DVX",
  7110. "EVO",
  7111. "DAT",
  7112. "OGG",
  7113. "OGM",
  7114. ];
  7115. if (
  7116. fileA.indexOf(
  7117. data.Location.split(".")[
  7118. data.Location.split(".").length - 1
  7119. ].toLocaleUpperCase()
  7120. ) != -1
  7121. ) {
  7122. _type = 3;
  7123. } else if (
  7124. videoA.indexOf(
  7125. data.Location.split(".")[
  7126. data.Location.split(".").length - 1
  7127. ].toLocaleUpperCase()
  7128. ) != -1
  7129. ) {
  7130. _type = 2;
  7131. } else if (
  7132. imgA.indexOf(
  7133. data.Location.split(".")[
  7134. data.Location.split(".").length - 1
  7135. ].toLocaleLowerCase()
  7136. ) != -1
  7137. ) {
  7138. _type = 13;
  7139. } else {
  7140. _type = 12;
  7141. }
  7142. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7143. itemTaskIndex
  7144. ].chapterData.push({
  7145. name: file.name,
  7146. url: data.Location,
  7147. uid: file.uid,
  7148. type: _type,
  7149. });
  7150. _this.imgChange1(null, null, _type, itemTaskIndex);
  7151. } else if (type == 2 || type == 3 || type == 12) {
  7152. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7153. itemTaskIndex
  7154. ].chapterData.push({
  7155. name: file.name,
  7156. url: data.Location,
  7157. uid: file.uid,
  7158. type: type,
  7159. });
  7160. _this.imgChange1(null, null, type, itemTaskIndex);
  7161. } else if (type == 4) {
  7162. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7163. itemTaskIndex
  7164. ].fileList1.push({
  7165. name: file.name,
  7166. url: data.Location,
  7167. uid: file.uid,
  7168. });
  7169. _this.imgChange1(null, null, type, itemTaskIndex);
  7170. } else if (type == 5) {
  7171. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7172. itemTaskIndex
  7173. ].homeworkList.push({
  7174. name: file.name,
  7175. url: data.Location,
  7176. uid: file.uid,
  7177. });
  7178. _this.imgChange1(null, null, type, itemTaskIndex);
  7179. }
  7180. console.log(data.Location);
  7181. }
  7182. });
  7183. }
  7184. },
  7185. beforeUploadInfo2(event, type) {
  7186. // const loading = this.openLoading();
  7187. var file = event.target.files[0];
  7188. var credentials = {
  7189. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7190. secretAccessKey: "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",
  7191. }; //秘钥形式的登录上传
  7192. window.AWS.config.update(credentials);
  7193. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7194. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7195. var _this = this;
  7196. if (type == 3) {
  7197. var b = [
  7198. "DOC",
  7199. "DOCX",
  7200. "DOCM",
  7201. "DOTM",
  7202. "DOTX",
  7203. "PPTX",
  7204. "PPSX",
  7205. "PPT",
  7206. "PPS",
  7207. "PPTM",
  7208. "POTM",
  7209. "PPAM",
  7210. "POTX",
  7211. "PPSM",
  7212. ];
  7213. if (
  7214. b.indexOf(
  7215. file.name
  7216. .split(".")
  7217. [file.name.split(".").length - 1].toLocaleUpperCase()
  7218. ) != -1
  7219. ) {
  7220. if (file.size / 1024 / 1024 > 80) {
  7221. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7222. this.inputShow = true;
  7223. // var a = _this.$refs.upload1.uploadFiles;
  7224. // a.splice(a.length - 1, a.length);
  7225. // loading.close();
  7226. return;
  7227. }
  7228. } else if (
  7229. file.name
  7230. .split(".")
  7231. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7232. ) {
  7233. if (file.size / 1024 / 1024 > 80) {
  7234. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7235. this.inputShow = true;
  7236. // var a = _this.$refs.upload1.uploadFiles;
  7237. // a.splice(a.length - 1, a.length);
  7238. // loading.close();
  7239. return;
  7240. }
  7241. }
  7242. }
  7243. this.inputShow = false;
  7244. _this.infoprogress = 0;
  7245. _this.infoproVisible = true;
  7246. _this.infoisFinishSize = 0;
  7247. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7248. _this.$forceUpdate();
  7249. if (file) {
  7250. var params = {
  7251. Key:
  7252. file.name.split(".")[0] +
  7253. new Date().getTime() +
  7254. "." +
  7255. file.name.split(".")[file.name.split(".").length - 1],
  7256. ContentType: file.type,
  7257. Body: file,
  7258. "Access-Control-Allow-Credentials": "*",
  7259. ACL: "public-read",
  7260. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7261. var options = {
  7262. partSize: 2048 * 1024 * 1024,
  7263. queueSize: 2,
  7264. leavePartsOnError: true,
  7265. };
  7266. bucket
  7267. .upload(params, options)
  7268. .on("httpUploadProgress", function (evt) {
  7269. //这里可以写进度条
  7270. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7271. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7272. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7273. _this.$forceUpdate();
  7274. })
  7275. .send(function (err, data) {
  7276. // loading.close();
  7277. _this.infoprogress = 100;
  7278. _this.infoisFinishSize = _this.infoisAllSize;
  7279. _this.$forceUpdate();
  7280. setTimeout(() => {
  7281. _this.infoproVisible = false;
  7282. _this.$forceUpdate();
  7283. }, 1000);
  7284. _this.inputShow = true;
  7285. if (err) {
  7286. // var a = _this.$refs.upload1.uploadFiles;
  7287. // a.splice(a.length - 1, a.length);
  7288. _this.$message.error("上传失败");
  7289. } else {
  7290. if (type == 13) {
  7291. let _type = 2;
  7292. var imgA = [
  7293. "png",
  7294. "jpg",
  7295. "jpeg",
  7296. "bmp",
  7297. "gif",
  7298. "webp",
  7299. "psd",
  7300. "svg",
  7301. "tiff",
  7302. ];
  7303. var fileA = [
  7304. "PDF",
  7305. "DOC",
  7306. "DOCX",
  7307. "DOCM",
  7308. "DOTM",
  7309. "DOTX",
  7310. "PPTX",
  7311. "PPSX",
  7312. "PPT",
  7313. "PPS",
  7314. "PPTM",
  7315. "POTM",
  7316. "PPAM",
  7317. "POTX",
  7318. "PPSM",
  7319. "XLSX",
  7320. "XLS",
  7321. ];
  7322. var videoA = [
  7323. "AVI",
  7324. "NAVI",
  7325. "MPEG",
  7326. "ASF",
  7327. "MOV",
  7328. "WMV",
  7329. "3GP",
  7330. "RM",
  7331. "RMVB",
  7332. "FLV",
  7333. "F4V",
  7334. "H.264",
  7335. "H.265",
  7336. "REAL VIDEO",
  7337. "MKV",
  7338. "WebM",
  7339. "HDDVD",
  7340. "MP4",
  7341. "MPG",
  7342. "M4V",
  7343. "MGV",
  7344. "OGV",
  7345. "QTM",
  7346. "STR",
  7347. "AMC",
  7348. "DVX",
  7349. "EVO",
  7350. "DAT",
  7351. "OGG",
  7352. "OGM",
  7353. ];
  7354. if (
  7355. fileA.indexOf(
  7356. data.Location.split(".")[
  7357. data.Location.split(".").length - 1
  7358. ].toLocaleUpperCase()
  7359. ) != -1
  7360. ) {
  7361. _type = 3;
  7362. } else if (
  7363. videoA.indexOf(
  7364. data.Location.split(".")[
  7365. data.Location.split(".").length - 1
  7366. ].toLocaleUpperCase()
  7367. ) != -1
  7368. ) {
  7369. _type = 2;
  7370. } else if (
  7371. imgA.indexOf(
  7372. data.Location.split(".")[
  7373. data.Location.split(".").length - 1
  7374. ].toLocaleLowerCase()
  7375. ) != -1
  7376. ) {
  7377. _type = 13;
  7378. } else {
  7379. _type = 12;
  7380. }
  7381. _this.infoData.push({
  7382. name: file.name,
  7383. url: data.Location,
  7384. uid: file.uid,
  7385. type: _type,
  7386. });
  7387. } else if (type == 2 || type == 3 || type == 12) {
  7388. _this.infoData.push({
  7389. name: file.name,
  7390. url: data.Location,
  7391. uid: file.uid,
  7392. type: type,
  7393. });
  7394. }
  7395. console.log(data.Location);
  7396. }
  7397. });
  7398. }
  7399. },
  7400. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7401. // const loading = this.openLoading();
  7402. var file = event.target.files[0];
  7403. var credentials = {
  7404. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7405. secretAccessKey: "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",
  7406. }; //秘钥形式的登录上传
  7407. window.AWS.config.update(credentials);
  7408. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7409. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7410. var _this = this;
  7411. if (type == 3) {
  7412. var b = [
  7413. "DOC",
  7414. "DOCX",
  7415. "DOCM",
  7416. "DOTM",
  7417. "DOTX",
  7418. "PPTX",
  7419. "PPSX",
  7420. "PPT",
  7421. "PPS",
  7422. "PPTM",
  7423. "POTM",
  7424. "PPAM",
  7425. "POTX",
  7426. "PPSM",
  7427. ];
  7428. if (
  7429. b.indexOf(
  7430. file.name
  7431. .split(".")
  7432. [file.name.split(".").length - 1].toLocaleUpperCase()
  7433. ) != -1
  7434. ) {
  7435. if (file.size / 1024 / 1024 > 80) {
  7436. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7437. this.inputShow = true;
  7438. // var a = _this.$refs.upload1.uploadFiles;
  7439. // a.splice(a.length - 1, a.length);
  7440. // loading.close();
  7441. return;
  7442. }
  7443. } else if (
  7444. file.name
  7445. .split(".")
  7446. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7447. ) {
  7448. if (file.size / 1024 / 1024 > 80) {
  7449. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7450. this.inputShow = true;
  7451. // var a = _this.$refs.upload1.uploadFiles;
  7452. // a.splice(a.length - 1, a.length);
  7453. // loading.close();
  7454. return;
  7455. }
  7456. }
  7457. }
  7458. this.inputShow = false;
  7459. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7460. itemTaskIndex
  7461. ].progress = 0;
  7462. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7463. itemTaskIndex
  7464. ].proVisible = true;
  7465. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7466. itemTaskIndex
  7467. ].isFinishSize = 0;
  7468. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7469. itemTaskIndex
  7470. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7471. _this.$forceUpdate();
  7472. if (file) {
  7473. var params = {
  7474. Key:
  7475. file.name.split(".")[0] +
  7476. new Date().getTime() +
  7477. "." +
  7478. file.name.split(".")[file.name.split(".").length - 1],
  7479. ContentType: file.type,
  7480. Body: file,
  7481. "Access-Control-Allow-Credentials": "*",
  7482. ACL: "public-read",
  7483. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7484. var options = {
  7485. partSize: 2048 * 1024 * 1024,
  7486. queueSize: 2,
  7487. leavePartsOnError: true,
  7488. };
  7489. bucket
  7490. .upload(params, options)
  7491. .on("httpUploadProgress", function (evt) {
  7492. //这里可以写进度条
  7493. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7494. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7495. itemTaskIndex
  7496. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7497. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7498. itemTaskIndex
  7499. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7500. _this.$forceUpdate();
  7501. })
  7502. .send(function (err, data) {
  7503. // loading.close();
  7504. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7505. itemTaskIndex
  7506. ].progress = 100;
  7507. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7508. itemTaskIndex
  7509. ].isFinishSize =
  7510. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7511. itemTaskIndex
  7512. ].isAllSize;
  7513. _this.$forceUpdate();
  7514. setTimeout(() => {
  7515. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7516. itemTaskIndex
  7517. ].proVisible = false;
  7518. _this.$forceUpdate();
  7519. }, 1000);
  7520. _this.inputShow = true;
  7521. if (err) {
  7522. // var a = _this.$refs.upload1.uploadFiles;
  7523. // a.splice(a.length - 1, a.length);
  7524. _this.$message.error("上传失败");
  7525. } else {
  7526. if (type == 2 || type == 3) {
  7527. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7528. itemTaskIndex
  7529. ].chapterData.push({
  7530. name: file.name,
  7531. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7532. // itemTaskIndex
  7533. // ].chapterData.length+1),
  7534. url: data.Location,
  7535. uid: file.uid,
  7536. type: type,
  7537. text: string,
  7538. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7539. // itemTaskIndex
  7540. // ].chapterData.length + 1),
  7541. });
  7542. _this.imgChange1(null, null, type, itemTaskIndex);
  7543. } else if (type == 4) {
  7544. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7545. itemTaskIndex
  7546. ].fileList1.push({
  7547. name: file.name,
  7548. url: data.Location,
  7549. uid: file.uid,
  7550. });
  7551. _this.imgChange1(null, null, type, itemTaskIndex);
  7552. } else if (type == 5) {
  7553. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7554. itemTaskIndex
  7555. ].homeworkList.push({
  7556. name: file.name,
  7557. url: data.Location,
  7558. uid: file.uid,
  7559. });
  7560. _this.imgChange1(null, null, type, itemTaskIndex);
  7561. }
  7562. console.log(data.Location);
  7563. }
  7564. });
  7565. }
  7566. },
  7567. addunit() {
  7568. this.unitJson.push({
  7569. dyName: "", //单元标题
  7570. isUpdate: 1,
  7571. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7572. chapterInfo: [
  7573. {
  7574. isread: false,
  7575. chapterid: this.guid(),
  7576. title: "",
  7577. courseName: "",
  7578. taskJson: [
  7579. {
  7580. task: "",
  7581. taskDetail: "",
  7582. chapterData: [],
  7583. toolText: "",
  7584. toolChoose: [
  7585. {
  7586. tool: [],
  7587. toolDetail: "",
  7588. toolType: 0,
  7589. askCount: 1,
  7590. askTitle: "",
  7591. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7592. },
  7593. ],
  7594. isShowTools: false,
  7595. askCount: 1,
  7596. isFold: 1,
  7597. askTitle: "",
  7598. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7599. checkJson: [{ checkCount: [], checkPerent: [] }],
  7600. homeworkList: [],
  7601. },
  7602. ],
  7603. itemCount: 1,
  7604. fileList1: [],
  7605. video: [],
  7606. testData: [],
  7607. pData: [],
  7608. templateArray: [],
  7609. },
  7610. ],
  7611. });
  7612. this.addindex = this.unitJson.length - 1;
  7613. setTimeout(() => {
  7614. this.unitIndex = this.unitJson.length - 1;
  7615. setTimeout(() => {
  7616. console.log(this.$refs.dyInput);
  7617. this.$refs.dyInput[0].focus();
  7618. }, 100);
  7619. this.unitSet(this.unitIndex);
  7620. }, 0);
  7621. },
  7622. addToolFun(itemTaskIndex) {
  7623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7624. itemTaskIndex
  7625. ].toolChoose.push({
  7626. tool: [],
  7627. toolDetail: "",
  7628. toolType: 0,
  7629. askCount: 1,
  7630. askTitle: "",
  7631. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7632. });
  7633. },
  7634. addTaskBorder() {
  7635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7636. task: "",
  7637. taskDetail: "",
  7638. chapterData: [],
  7639. toolText: "",
  7640. toolChoose: [
  7641. {
  7642. tool: [],
  7643. toolDetail: "",
  7644. toolType: 0,
  7645. askCount: 1,
  7646. askTitle: "",
  7647. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7648. },
  7649. ],
  7650. isShowTools: false,
  7651. askCount: 1,
  7652. isFold: 1, //任务收起状态
  7653. askTitle: "",
  7654. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7655. checkJson: [{ checkCount: [], checkPerent: [] }],
  7656. homeworkList: [],
  7657. });
  7658. setTimeout(() => {
  7659. this.checkEva(this.checkId);
  7660. setTimeout(() => {
  7661. this.checkEva(this.checkId);
  7662. }, 100);
  7663. }, 100);
  7664. },
  7665. add(e, i) {
  7666. var el = e.currentTarget;
  7667. el.getElementsByTagName("input")[0].click();
  7668. },
  7669. fold(i, e) {
  7670. if (
  7671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7672. ) {
  7673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7674. } else {
  7675. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7676. }
  7677. },
  7678. fold2(i) {
  7679. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7681. i
  7682. ].isFold2 = false;
  7683. } else {
  7684. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7685. }
  7686. this.$forceUpdate();
  7687. },
  7688. foldEva(i) {
  7689. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7691. i
  7692. ].isEvaFold = false;
  7693. } else {
  7694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7695. i
  7696. ].isEvaFold = true;
  7697. setTimeout(() => {
  7698. this.checkEva(this.checkId);
  7699. setTimeout(() => {
  7700. this.checkEva(this.checkId);
  7701. }, 500);
  7702. }, 0);
  7703. }
  7704. this.$forceUpdate();
  7705. },
  7706. foldC(i) {
  7707. if (
  7708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7709. ) {
  7710. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7711. i
  7712. ].isFoldchapter = false;
  7713. } else {
  7714. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7715. i
  7716. ].isFoldchapter = true;
  7717. }
  7718. this.$forceUpdate();
  7719. },
  7720. fold3(i, ti) {
  7721. if (
  7722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7723. .isFold3
  7724. ) {
  7725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7726. ti
  7727. ].isFold3 = false;
  7728. } else {
  7729. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7730. ti
  7731. ].isFold3 = true;
  7732. }
  7733. this.$forceUpdate();
  7734. },
  7735. deleteHomeworkBox(unitIndex, index, i) {
  7736. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7737. this.taskCount
  7738. ].homeworkList.splice(i, 1);
  7739. },
  7740. getStudent() {
  7741. let params = {
  7742. oid: this.oid,
  7743. cu: "",
  7744. cn: this.searchPeople,
  7745. };
  7746. this.ajax
  7747. .get(this.$store.state.api + "selectStudentAdd", params)
  7748. .then((res) => {
  7749. this.studentJuri = res.data[0];
  7750. })
  7751. .catch((err) => {
  7752. this.isLoading = false;
  7753. console.error(err);
  7754. });
  7755. },
  7756. getTeacher() {
  7757. let params = {
  7758. oid:
  7759. this.org && this.org != "undefined" && this.org != "null"
  7760. ? this.org
  7761. : this.oid,
  7762. cu: "",
  7763. cn: this.searchTN,
  7764. };
  7765. this.ajax
  7766. .get(
  7767. this.$store.state.api +
  7768. (this.org && this.org != "undefined" && this.org != "null"
  7769. ? "selectTeacherAddOrg"
  7770. : "selectTeacherAdd"),
  7771. params
  7772. )
  7773. .then((res) => {
  7774. let teacherJuri = res.data[0];
  7775. for (var i = 0; i < teacherJuri.length; i++) {
  7776. if (teacherJuri[i].userid == this.userid) {
  7777. teacherJuri.splice(i, 1);
  7778. break;
  7779. }
  7780. }
  7781. this.teacherJuri = teacherJuri;
  7782. let _check = [];
  7783. let _check2 = [];
  7784. for (var i = 0; i < this.teacherJuri.length; i++) {
  7785. var gid = this.teacherJuri[i].userid;
  7786. _check.push(gid);
  7787. }
  7788. for (var i = 0; i < this.checkboxList3.length; i++) {
  7789. var _id = this.checkboxList3[i];
  7790. if (_check.indexOf(_id) !== -1) {
  7791. _check2.push(_id);
  7792. }
  7793. }
  7794. this.checkAll2 = _check2.length === _check.length;
  7795. })
  7796. .catch((err) => {
  7797. console.error(err);
  7798. });
  7799. },
  7800. searchStudent() {
  7801. this.getStudent();
  7802. },
  7803. selectGrage() {
  7804. let params = {
  7805. oid: this.oid,
  7806. };
  7807. this.ajax
  7808. .get(this.$store.state.api + "selectGrageBySchool", params)
  7809. .then((res) => {
  7810. this.gradeList = res.data[0];
  7811. })
  7812. .catch((err) => {
  7813. this.isLoading = false;
  7814. console.error(err);
  7815. });
  7816. },
  7817. //获取班级列表
  7818. getClass() {
  7819. let params = {
  7820. oid: this.oid,
  7821. gid: this.gradeId,
  7822. cn: this.classSearch,
  7823. };
  7824. this.ajax
  7825. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7826. .then((res) => {
  7827. if (!this.grade.length) {
  7828. this.grade = res.data[0];
  7829. }
  7830. this.grade2 = res.data[0];
  7831. this.classJuri = res.data[0];
  7832. let _check = [];
  7833. let _check2 = [];
  7834. for (var i = 0; i < this.grade2.length; i++) {
  7835. var gid = this.grade2[i].id;
  7836. _check.push(gid);
  7837. }
  7838. for (var i = 0; i < this.checkboxList2.length; i++) {
  7839. var _id = this.checkboxList2[i];
  7840. if (_check.indexOf(_id) !== -1) {
  7841. _check2.push(_id);
  7842. }
  7843. }
  7844. this.checkAll = _check2.length === _check.length;
  7845. })
  7846. .catch((err) => {
  7847. this.isLoading = false;
  7848. console.error(err);
  7849. });
  7850. },
  7851. CourseType2Change(val) {
  7852. this.pTypeCheck = [];
  7853. for (var i = 0; i < this.CourseType2.length; i++) {
  7854. let typeA = this.CourseType2[i];
  7855. if (val.indexOf(typeA.name) != -1) {
  7856. this.pTypeCheck.push(...typeA.id);
  7857. }
  7858. }
  7859. },
  7860. getChapterData(e, i, j, ic, type) {
  7861. e.stopPropagation();
  7862. this.updataC = true;
  7863. this.icc = ic;
  7864. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7865. console.log("还不能下载图片喔");
  7866. }
  7867. },
  7868. deleteChapterData(e, i, j, ic, taskI) {
  7869. e.stopPropagation();
  7870. let _this = this;
  7871. _this
  7872. .$confirm("确定删除此项?", "提示", {
  7873. confirmButtonText: "确定",
  7874. cancelButtonText: "取消",
  7875. type: "warning",
  7876. })
  7877. .then(() => {
  7878. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7879. ic,
  7880. 1
  7881. );
  7882. })
  7883. .catch(() => {
  7884. return;
  7885. });
  7886. },
  7887. deleteInfoData(e, ic) {
  7888. e.stopPropagation();
  7889. let _this = this;
  7890. _this
  7891. .$confirm("确定删除此项?", "提示", {
  7892. confirmButtonText: "确定",
  7893. cancelButtonText: "取消",
  7894. type: "warning",
  7895. })
  7896. .then(() => {
  7897. _this.infoData.splice(
  7898. ic,
  7899. 1
  7900. );
  7901. })
  7902. .catch(() => {
  7903. return;
  7904. });
  7905. },
  7906. updataVideoT(e, i, j, ic) {
  7907. // e.stopPropagation();
  7908. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  7909. // ic
  7910. // ].name = JSON.parse(JSON.stringify(e.target.value));
  7911. this.line =
  7912. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  7913. this.taskCount = j;
  7914. this.lineCount = ic;
  7915. this.dialogVisibleupdataVideoT = true;
  7916. this.$forceUpdate();
  7917. },
  7918. updataVideoC() {
  7919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7920. this.taskCount
  7921. ].chapterData[this.lineCount].name = JSON.parse(
  7922. JSON.stringify(this.line)
  7923. );
  7924. this.dialogVisibleupdataVideoT = false;
  7925. this.$forceUpdate();
  7926. },
  7927. upCd(e, i, j, taskCount, ic) {
  7928. e.stopPropagation();
  7929. if (ic == 0) {
  7930. return;
  7931. }
  7932. var a = JSON.parse(
  7933. JSON.stringify(
  7934. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7935. ic - 1
  7936. ]
  7937. )
  7938. );
  7939. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  7940. JSON.parse(
  7941. JSON.stringify(
  7942. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7943. )
  7944. );
  7945. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7946. this.$forceUpdate();
  7947. },
  7948. downCd(e, i, j, taskCount, ic) {
  7949. e.stopPropagation();
  7950. if (
  7951. ic ==
  7952. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  7953. 1
  7954. ) {
  7955. return;
  7956. }
  7957. var a = JSON.parse(
  7958. JSON.stringify(
  7959. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7960. ic + 1
  7961. ]
  7962. )
  7963. );
  7964. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  7965. JSON.parse(
  7966. JSON.stringify(
  7967. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7968. )
  7969. );
  7970. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7971. this.$forceUpdate();
  7972. },
  7973. async upTool(e, i, j, tooli) {
  7974. e.stopPropagation();
  7975. if (tooli == 0) {
  7976. return;
  7977. }
  7978. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  7979. let count2 = await this.getWorksCount(3, i, j, tooli);
  7980. if (count1 > 0 || count2 > 0) {
  7981. this.$confirm(
  7982. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7983. "提示",
  7984. {
  7985. confirmButtonText: "确定",
  7986. cancelButtonText: "取消",
  7987. type: "warning",
  7988. }
  7989. )
  7990. .then(() => {
  7991. var a = JSON.parse(
  7992. JSON.stringify(
  7993. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  7994. tooli - 1
  7995. ]
  7996. )
  7997. );
  7998. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7999. JSON.parse(
  8000. JSON.stringify(
  8001. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8002. )
  8003. );
  8004. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8005. this.$forceUpdate();
  8006. })
  8007. .catch(() => {
  8008. return;
  8009. });
  8010. } else {
  8011. var a = JSON.parse(
  8012. JSON.stringify(
  8013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8014. )
  8015. );
  8016. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8017. JSON.parse(
  8018. JSON.stringify(
  8019. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8020. )
  8021. );
  8022. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8023. this.$forceUpdate();
  8024. }
  8025. },
  8026. async downTool(e, i, j, tooli) {
  8027. e.stopPropagation();
  8028. if (
  8029. tooli ==
  8030. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8031. ) {
  8032. return;
  8033. }
  8034. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8035. let count2 = await this.getWorksCount(3, i, j, tooli);
  8036. if (count1 > 0 || count2 > 0) {
  8037. this.$confirm(
  8038. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8039. "提示",
  8040. {
  8041. confirmButtonText: "确定",
  8042. cancelButtonText: "取消",
  8043. type: "warning",
  8044. }
  8045. )
  8046. .then(() => {
  8047. var a = JSON.parse(
  8048. JSON.stringify(
  8049. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8050. tooli + 1
  8051. ]
  8052. )
  8053. );
  8054. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8055. JSON.parse(
  8056. JSON.stringify(
  8057. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8058. )
  8059. );
  8060. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8061. this.$forceUpdate();
  8062. })
  8063. .catch(() => {
  8064. return;
  8065. });
  8066. } else {
  8067. var a = JSON.parse(
  8068. JSON.stringify(
  8069. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8070. )
  8071. );
  8072. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8073. JSON.parse(
  8074. JSON.stringify(
  8075. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8076. )
  8077. );
  8078. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8079. this.$forceUpdate();
  8080. }
  8081. },
  8082. addWork() {
  8083. let cPan = 1;
  8084. for (var i = 0; i < this.unitJson.length; i++) {
  8085. for (
  8086. var j = 0;
  8087. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8088. j++
  8089. ) {
  8090. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8091. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8092. if (
  8093. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8094. ) {
  8095. for (
  8096. var z = 0;
  8097. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8098. z++
  8099. ) {
  8100. if (
  8101. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8102. .length
  8103. ) {
  8104. this.$message.error("请把工具添加完整");
  8105. cPan = 2;
  8106. break;
  8107. }
  8108. }
  8109. }
  8110. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8111. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8112. i
  8113. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8114. return ele.value != "";
  8115. });
  8116. }
  8117. }
  8118. }
  8119. this.inputShow = true;
  8120. if (cPan == 2) {
  8121. this.steps--;
  8122. return;
  8123. }
  8124. for (var i = 0; i < this.unitJson.length; i++) {
  8125. delete this.unitJson[i].isUpdate;
  8126. }
  8127. let params = [
  8128. {
  8129. uid: this.userid,
  8130. title: this.courseName,
  8131. brief: this.courseText,
  8132. cover:
  8133. this.cover.length > 0
  8134. ? JSON.stringify(this.cover)
  8135. : JSON.stringify([
  8136. {
  8137. name: "noBanner.jpg",
  8138. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8139. uid: 1656409780264,
  8140. status: "success",
  8141. },
  8142. ]),
  8143. evaId: this.evalua,
  8144. astudent:
  8145. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8146. see: this.isTeacherSee == true ? 1 : 0,
  8147. chapters: JSON.stringify(this.unitJson),
  8148. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8149. courseType: JSON.stringify(this.courseTypeId),
  8150. ateacher:
  8151. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8152. inviteCode: JSON.stringify(this.inviteCode),
  8153. refile: JSON.stringify(this.infoData),
  8154. reBrief: this.courseText2
  8155. },
  8156. ];
  8157. this.ajax
  8158. .post(this.$store.state.api + "addWorkNew2AI", params)
  8159. .then((res) => {
  8160. console.log(this.steps);
  8161. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8162. this.$message({
  8163. message: "新增成功",
  8164. type: "success",
  8165. });
  8166. }
  8167. this.number = res.data.ordernumber;
  8168. this.courseId = res.data.courseId;
  8169. this.cid = res.data.courseId;
  8170. this.courseUserid = this.userid;
  8171. this.islogin = true;
  8172. this.updateCourseState(4);
  8173. this.addtips()
  8174. })
  8175. .catch((err) => {
  8176. this.$message.error("网络不佳");
  8177. console.error(err);
  8178. });
  8179. },
  8180. goCourse() {
  8181. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8182. },
  8183. updateWork2() {
  8184. let _unitIndex = this.unitIndex;
  8185. let cPan = 1;
  8186. for (
  8187. var j = 0;
  8188. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8189. j++
  8190. ) {
  8191. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8192. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8193. j
  8194. ].proVisible2 = false;
  8195. if (
  8196. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8197. .length > 1
  8198. ) {
  8199. for (
  8200. var z = 0;
  8201. z <
  8202. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8203. .length;
  8204. z++
  8205. ) {
  8206. if (
  8207. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8208. z
  8209. ].tool.length
  8210. ) {
  8211. this.$message.error("请把工具添加完整");
  8212. cPan = 2;
  8213. break;
  8214. }
  8215. }
  8216. }
  8217. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8218. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8219. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8220. (ele) => {
  8221. return ele.value != "";
  8222. }
  8223. );
  8224. }
  8225. }
  8226. this.inputShow = true;
  8227. if (cPan == 2) {
  8228. this.steps--;
  8229. return;
  8230. }
  8231. let params = [
  8232. {
  8233. cid: this.cid,
  8234. chapters: JSON.stringify(this.unitJson),
  8235. uid: this.userid,
  8236. unitIndex: _unitIndex,
  8237. },
  8238. ];
  8239. this.ajax
  8240. .post(this.$store.state.api + "updateWorkNew4", params)
  8241. .then((res) => {
  8242. this.$message({
  8243. message: "修改成功",
  8244. type: "success",
  8245. });
  8246. this.courseId = this.cid;
  8247. this.addtips();
  8248. })
  8249. .catch((err) => {
  8250. this.$message.error("网络不佳");
  8251. console.error(err);
  8252. });
  8253. },
  8254. updateWork3(unitIndex) {
  8255. let _unitIndex = unitIndex;
  8256. let cPan = 1;
  8257. for (
  8258. var j = 0;
  8259. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8260. j++
  8261. ) {
  8262. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8263. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8264. j
  8265. ].proVisible2 = false;
  8266. if (
  8267. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8268. .length > 1
  8269. ) {
  8270. for (
  8271. var z = 0;
  8272. z <
  8273. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8274. .length;
  8275. z++
  8276. ) {
  8277. if (
  8278. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8279. z
  8280. ].tool.length
  8281. ) {
  8282. this.$message.error("请把工具添加完整");
  8283. cPan = 2;
  8284. break;
  8285. }
  8286. }
  8287. }
  8288. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8289. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8290. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8291. (ele) => {
  8292. return ele.value != "";
  8293. }
  8294. );
  8295. }
  8296. }
  8297. this.inputShow = true;
  8298. if (cPan == 2) {
  8299. this.steps--;
  8300. return;
  8301. }
  8302. let params = [
  8303. {
  8304. cid: this.cid,
  8305. chapters: JSON.stringify(this.unitJson),
  8306. uid: this.userid,
  8307. unitIndex: _unitIndex,
  8308. },
  8309. ];
  8310. this.ajax
  8311. .post(this.$store.state.api + "updateWorkNew4", params)
  8312. .then((res) => {
  8313. // this.$message({
  8314. // message: "修改成功",
  8315. // type: "success",
  8316. // });
  8317. this.courseId = this.cid;
  8318. this.addtips()
  8319. })
  8320. .catch((err) => {
  8321. this.$message.error("网络不佳");
  8322. console.error(err);
  8323. });
  8324. },
  8325. updateWork() {
  8326. let cPan = 1;
  8327. for (var i = 0; i < this.unitJson.length; i++) {
  8328. for (
  8329. var j = 0;
  8330. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8331. j++
  8332. ) {
  8333. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8334. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8335. if (
  8336. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8337. ) {
  8338. for (
  8339. var z = 0;
  8340. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8341. z++
  8342. ) {
  8343. if (
  8344. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8345. .length
  8346. ) {
  8347. this.$message.error("请把工具添加完整");
  8348. cPan = 2;
  8349. break;
  8350. }
  8351. }
  8352. }
  8353. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8354. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8355. i
  8356. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8357. return ele.value != "";
  8358. });
  8359. }
  8360. }
  8361. }
  8362. this.inputShow = true;
  8363. if (cPan == 2) {
  8364. this.steps--;
  8365. return;
  8366. }
  8367. for (var i = 0; i < this.unitJson.length; i++) {
  8368. delete this.unitJson[i].isUpdate;
  8369. }
  8370. let params = [
  8371. {
  8372. cid: this.cid,
  8373. title: this.courseName,
  8374. brief: this.courseText,
  8375. cover:
  8376. this.cover.length > 0
  8377. ? JSON.stringify(this.cover)
  8378. : JSON.stringify([
  8379. {
  8380. name: "noBanner.jpg",
  8381. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8382. uid: 1656409780264,
  8383. status: "success",
  8384. },
  8385. ]),
  8386. evaId: this.evalua,
  8387. astudent:
  8388. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8389. see: this.isTeacherSee == true ? 1 : 0,
  8390. chapters: JSON.stringify(this.unitJson),
  8391. template: this.myWord != "undefined" ? this.myWord : [],
  8392. uid: this.userid,
  8393. courseType: JSON.stringify(this.courseTypeId),
  8394. ateacher:
  8395. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8396. inviteCode: JSON.stringify(this.inviteCode),
  8397. refile: JSON.stringify(this.infoData),
  8398. reBrief: this.courseText2
  8399. },
  8400. ];
  8401. this.ajax
  8402. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8403. .then((res) => {
  8404. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8405. if (this.cidType == 1) {
  8406. this.$message({
  8407. message: "修改成功",
  8408. type: "success",
  8409. });
  8410. } else {
  8411. this.$message({
  8412. message: "新增成功",
  8413. type: "success",
  8414. });
  8415. }
  8416. }
  8417. this.number = this.nbOrder;
  8418. this.courseId = this.cid;
  8419. this.addtips()
  8420. })
  8421. .catch((err) => {
  8422. this.$message.error("网络不佳");
  8423. console.error(err);
  8424. });
  8425. },
  8426. insertWord() {
  8427. this.dialogVisible1 = true;
  8428. this.updateBoolean2 = false;
  8429. this.tTitle = "";
  8430. this.tdetail = "";
  8431. },
  8432. addWord() {
  8433. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8434. name: this.tTitle,
  8435. content: this.tdetail,
  8436. uid: this.guid(),
  8437. });
  8438. this.dialogVisible1 = false;
  8439. },
  8440. upWord() { },
  8441. selectWord(uid, i, c) {
  8442. this.dialogVisible1 = true;
  8443. this.updateBoolean2 = true;
  8444. if (
  8445. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8446. ) {
  8447. this.tTitle =
  8448. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8449. this.tdetail =
  8450. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8451. }
  8452. },
  8453. isAddPP() {
  8454. if (this.checkboxList.length > 0) {
  8455. this.$message({
  8456. message: "添加成功",
  8457. type: "success",
  8458. });
  8459. this.dialogVisible3 = false;
  8460. } else {
  8461. this.$message({
  8462. message: "请添加课程成员",
  8463. type: "error",
  8464. });
  8465. }
  8466. },
  8467. isAddClass() {
  8468. this.dialogVisibleClass = false;
  8469. },
  8470. isAddPPTeacher() {
  8471. this.dialogVisibleMember = false;
  8472. this.setMan();
  8473. },
  8474. getTemplate() {
  8475. this.ajax
  8476. .get(this.$store.state.api + "getCourseTemplateT", "")
  8477. .then((res) => {
  8478. this.templateArray = res.data[0];
  8479. this.getTemplateOid();
  8480. this.$forceUpdate();
  8481. })
  8482. .catch((err) => { });
  8483. },
  8484. getTemplateOid() {
  8485. let params = {
  8486. oid: this.oid,
  8487. };
  8488. this.ajax
  8489. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8490. .then((res) => {
  8491. if (res.data[0].length) {
  8492. this.templateArray = [...res.data[0], ...this.templateArray];
  8493. }
  8494. this.getTemplateOrg();
  8495. this.$forceUpdate();
  8496. })
  8497. .catch((err) => { });
  8498. },
  8499. getTemplateOrg() {
  8500. let params = {
  8501. oid: this.org,
  8502. };
  8503. this.ajax
  8504. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8505. .then((res) => {
  8506. if (res.data[0].length) {
  8507. this.templateArray = [...res.data[0], ...this.templateArray];
  8508. }
  8509. this.$forceUpdate();
  8510. })
  8511. .catch((err) => { });
  8512. },
  8513. clearChoose() {
  8514. this.clearArray.splice(this.templateC.id, 1);
  8515. this.dialogVisible2 = false;
  8516. },
  8517. clearAttText() {
  8518. this.AttText = {
  8519. title: "",
  8520. text: "",
  8521. };
  8522. this.dialogVisible6 = false;
  8523. },
  8524. clearLine() {
  8525. this.line = "";
  8526. this.dialogVisible7 = false;
  8527. },
  8528. openTemplate() {
  8529. this.ctJson = {};
  8530. this.templateDialog = true;
  8531. },
  8532. checkctJson(json) {
  8533. if (this.ctJson.id == json.id) {
  8534. this.ctJson = {};
  8535. } else {
  8536. this.ctJson = json;
  8537. }
  8538. },
  8539. addTemplate(res) {
  8540. let _this = this;
  8541. let _res = [];
  8542. if (res.id == 1) {
  8543. _res = [
  8544. {
  8545. dyName: "", //单元标题
  8546. easy: 1,
  8547. chapterInfo: [
  8548. {
  8549. isread: false,
  8550. chapterid: this.guid(),
  8551. title: "",
  8552. courseName: "",
  8553. taskJson: [
  8554. {
  8555. task: "",
  8556. taskDetail: "",
  8557. chapterData: [],
  8558. toolText: "",
  8559. toolChoose: [
  8560. {
  8561. tool: [],
  8562. toolDetail: "",
  8563. toolType: 0,
  8564. askCount: 1,
  8565. askTitle: "",
  8566. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8567. },
  8568. ],
  8569. isShowTools: false,
  8570. askCount: 1,
  8571. isFold: 1,
  8572. askTitle: "",
  8573. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8574. checkJson: [{ checkCount: [], checkPerent: [] }],
  8575. homeworkList: [],
  8576. },
  8577. ],
  8578. itemCount: 1,
  8579. fileList1: [],
  8580. video: [],
  8581. testData: [],
  8582. pData: [],
  8583. templateArray: [],
  8584. },
  8585. ],
  8586. },
  8587. ];
  8588. this.updateCourseState(1);
  8589. } else if (res.id == 2) {
  8590. let stageData = [];
  8591. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8592. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8593. if (!iframe && !iframe2) {
  8594. this.$message.error("请使用AI共创生成");
  8595. return;
  8596. }
  8597. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8598. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8599. if (
  8600. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8601. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8602. ) {
  8603. this.$message.error("请使用AI共创生成");
  8604. return;
  8605. }
  8606. stageData = copyData
  8607. ? copyData.stageData
  8608. : copyData2
  8609. ? copyData2.stageData
  8610. : [""];
  8611. for (var i = 0; i < stageData.length; i++) {
  8612. _res.push({
  8613. dyName: stageData[i], //单元标题
  8614. chapterInfo: [
  8615. {
  8616. isread: false,
  8617. chapterid: this.guid(),
  8618. title: "",
  8619. courseName: "",
  8620. taskJson: [
  8621. {
  8622. task: "",
  8623. taskDetail: "",
  8624. chapterData: [],
  8625. toolText: "",
  8626. toolChoose: [
  8627. {
  8628. tool: [],
  8629. toolDetail: "",
  8630. toolType: 0,
  8631. askCount: 1,
  8632. askTitle: "",
  8633. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8634. },
  8635. ],
  8636. isShowTools: false,
  8637. askCount: 1,
  8638. isFold: 1,
  8639. askTitle: "",
  8640. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8641. checkJson: [{ checkCount: [], checkPerent: [] }],
  8642. homeworkList: [],
  8643. },
  8644. ],
  8645. itemCount: 1,
  8646. fileList1: [],
  8647. video: [],
  8648. testData: [],
  8649. pData: [],
  8650. templateArray: [],
  8651. },
  8652. ],
  8653. });
  8654. }
  8655. this.updateCourseState(1);
  8656. } else if (!Object.keys(res).length) {
  8657. this.$message.error("请选择模板");
  8658. retrun;
  8659. } else {
  8660. _res = JSON.parse(res.chapters);
  8661. this.updateCourseState(parseInt(res.state));
  8662. }
  8663. _this
  8664. .$confirm(
  8665. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8666. "提示",
  8667. {
  8668. confirmButtonText: "确定",
  8669. cancelButtonText: "取消",
  8670. type: "warning",
  8671. }
  8672. )
  8673. .then(() => {
  8674. _this.unitJson = _res;
  8675. _this.updateWork();
  8676. // _this.steps++;
  8677. _this.templateDialog = false;
  8678. setTimeout(() => {
  8679. this.checkEva(this.checkId);
  8680. setTimeout(() => {
  8681. this.checkEva(this.checkId);
  8682. }, 100);
  8683. }, 1000);
  8684. })
  8685. .catch(() => {
  8686. return;
  8687. });
  8688. },
  8689. checkTemplate(res) {
  8690. let _this = this;
  8691. _this
  8692. .$confirm(
  8693. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8694. "提示",
  8695. {
  8696. confirmButtonText: "确定",
  8697. cancelButtonText: "取消",
  8698. type: "warning",
  8699. }
  8700. )
  8701. .then(() => {
  8702. _this.unitJson = JSON.parse(res.chapters);
  8703. _this.steps++;
  8704. setTimeout(() => {
  8705. this.checkEva(this.checkId);
  8706. setTimeout(() => {
  8707. this.checkEva(this.checkId);
  8708. }, 100);
  8709. }, 1000);
  8710. })
  8711. .catch(() => {
  8712. return;
  8713. });
  8714. },
  8715. checkTemplate1(w) {
  8716. this.steps++;
  8717. },
  8718. checkTemplate2() {
  8719. let _this = this;
  8720. _this
  8721. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8722. confirmButtonText: "确定",
  8723. cancelButtonText: "取消",
  8724. type: "warning",
  8725. })
  8726. .then(() => {
  8727. _this.unitIndex = 0;
  8728. _this.unitJson = [
  8729. {
  8730. dyName: "", //单元标题
  8731. chapterInfo: [
  8732. {
  8733. isread: false,
  8734. chapterid: this.guid(),
  8735. title: "",
  8736. courseName: "",
  8737. taskJson: [
  8738. {
  8739. task: "",
  8740. taskDetail: "",
  8741. chapterData: [],
  8742. toolText: "",
  8743. toolChoose: [
  8744. {
  8745. tool: [],
  8746. toolDetail: "",
  8747. toolType: 0,
  8748. askCount: 1,
  8749. askTitle: "",
  8750. askJson: [
  8751. { askstitle: "", askItem: 1, checkList: [] },
  8752. ],
  8753. },
  8754. ],
  8755. isShowTools: false,
  8756. askCount: 1,
  8757. isFold: 1,
  8758. askTitle: "",
  8759. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8760. checkJson: [{ checkCount: [], checkPerent: [] }],
  8761. homeworkList: [],
  8762. },
  8763. ],
  8764. itemCount: 1,
  8765. fileList1: [],
  8766. video: [],
  8767. testData: [],
  8768. pData: [],
  8769. templateArray: [],
  8770. },
  8771. ],
  8772. },
  8773. ];
  8774. this.steps++;
  8775. setTimeout(() => {
  8776. this.checkEva(this.checkId);
  8777. setTimeout(() => {
  8778. this.checkEva(this.checkId);
  8779. }, 100);
  8780. }, 1000);
  8781. this.updateWork();
  8782. })
  8783. .catch(() => {
  8784. return;
  8785. });
  8786. },
  8787. checkTemplate3() {
  8788. let _this = this;
  8789. _this
  8790. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8791. confirmButtonText: "确定",
  8792. cancelButtonText: "取消",
  8793. type: "warning",
  8794. })
  8795. .then(() => {
  8796. _this.unitIndex = 0;
  8797. _this.unitJson = [
  8798. {
  8799. dyName: "", //单元标题
  8800. easy: 1,
  8801. chapterInfo: [
  8802. {
  8803. isread: false,
  8804. chapterid: this.guid(),
  8805. title: "",
  8806. courseName: "",
  8807. taskJson: [
  8808. {
  8809. task: "",
  8810. taskDetail: "",
  8811. chapterData: [],
  8812. toolText: "",
  8813. toolChoose: [
  8814. {
  8815. tool: [],
  8816. toolDetail: "",
  8817. toolType: 0,
  8818. askCount: 1,
  8819. askTitle: "",
  8820. askJson: [
  8821. { askstitle: "", askItem: 1, checkList: [] },
  8822. ],
  8823. },
  8824. ],
  8825. isShowTools: false,
  8826. askCount: 1,
  8827. isFold: 1,
  8828. askTitle: "",
  8829. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8830. checkJson: [{ checkCount: [], checkPerent: [] }],
  8831. homeworkList: [],
  8832. },
  8833. ],
  8834. itemCount: 1,
  8835. fileList1: [],
  8836. video: [],
  8837. testData: [],
  8838. pData: [],
  8839. templateArray: [],
  8840. },
  8841. ],
  8842. },
  8843. ];
  8844. // this.steps++;
  8845. this.updateWork();
  8846. })
  8847. .catch(() => {
  8848. return;
  8849. });
  8850. },
  8851. checkTemplate4() {
  8852. let _this = this;
  8853. _this
  8854. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8855. confirmButtonText: "确定",
  8856. cancelButtonText: "取消",
  8857. type: "warning",
  8858. })
  8859. .then(() => {
  8860. _this.unitIndex = 0;
  8861. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8862. this.steps++;
  8863. this.updateWork();
  8864. })
  8865. .catch(() => {
  8866. return;
  8867. });
  8868. },
  8869. wordNext() {
  8870. this.dialogVisible2 = false;
  8871. },
  8872. isAddOrUpdateAttText() {
  8873. if (this.AttTextType == 0) {
  8874. this.addAttTextMessage();
  8875. } else {
  8876. this.updateAttText();
  8877. }
  8878. },
  8879. isAddOrUpdateLine() {
  8880. if (!this.lineTitle) {
  8881. this.$message.error("请填写链接标题");
  8882. return;
  8883. }
  8884. if (this.lineType == 0) {
  8885. this.addLine();
  8886. } else {
  8887. this.updateLine();
  8888. }
  8889. },
  8890. addAttTextMessage() {
  8891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8892. this.taskCount
  8893. ].chapterData.push({
  8894. name: this.AttText.title,
  8895. url: this.AttText.text,
  8896. type: 6,
  8897. });
  8898. this.imgChange1(null, null, 6, this.taskCount);
  8899. this.dialogVisible6 = false;
  8900. },
  8901. selectAttText(itemTaskIndex, i) {
  8902. this.AttText.title =
  8903. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8904. itemTaskIndex
  8905. ].chapterData[i].name;
  8906. this.AttText.text =
  8907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8908. itemTaskIndex
  8909. ].chapterData[i].url;
  8910. this.taskCount = itemTaskIndex;
  8911. this.AttTextIndex = i;
  8912. this.AttTextType = 1;
  8913. this.dialogVisible6 = true;
  8914. },
  8915. updateAttText() {
  8916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8917. this.taskCount
  8918. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  8919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8920. this.taskCount
  8921. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  8922. this.dialogVisible6 = false;
  8923. },
  8924. addLine() {
  8925. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8926. this.lineCount
  8927. ].chapterData.push({
  8928. name: "链接",
  8929. title: this.lineTitle,
  8930. url: this.line,
  8931. type: 8,
  8932. });
  8933. this.imgChange1(null, null, 8, this.lineCount);
  8934. this.dialogVisible7 = false;
  8935. },
  8936. selectLine(itemTaskIndex, i) {
  8937. this.line =
  8938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8939. itemTaskIndex
  8940. ].chapterData[i].url;
  8941. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8942. itemTaskIndex
  8943. ].chapterData[i].title
  8944. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8945. .chapterData[i].title
  8946. : "";
  8947. this.taskCount = itemTaskIndex;
  8948. this.lineCount = i;
  8949. this.lineType = 1;
  8950. this.dialogVisible7 = true;
  8951. },
  8952. openUpdateSource(itemTaskIndex, i) {
  8953. this.sourceData = {};
  8954. let source =
  8955. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8956. .chapterData[i];
  8957. this.sourceData[source.id] = {};
  8958. this.sourceData[source.id].name = source.title;
  8959. this.sourceData[source.id].url = source.url;
  8960. this.dialogVisibleSource = true;
  8961. this.updateSourcePan = true;
  8962. this.taskCount = itemTaskIndex;
  8963. this.lineCount = i;
  8964. },
  8965. updateLine() {
  8966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8967. this.taskCount
  8968. ].chapterData[this.lineCount].url = this.line;
  8969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8970. this.taskCount
  8971. ].chapterData[this.lineCount].title = this.lineTitle;
  8972. this.dialogVisible7 = false;
  8973. },
  8974. addPP() {
  8975. this.dialogVisible3 = true;
  8976. },
  8977. goTo(path) {
  8978. this.$router.push(path);
  8979. },
  8980. openTools(itemTaskIndex, i, toolIndex) {
  8981. this.toolIndex = toolIndex;
  8982. this.taskCount = itemTaskIndex;
  8983. if (i == 4) {
  8984. if (toolIndex == null) {
  8985. var a =
  8986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8987. .chapterData;
  8988. for (var i = 0; i < a.length; i++) {
  8989. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  8990. this.askJson =
  8991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8992. itemTaskIndex
  8993. ].chapterData[i].askJson;
  8994. }
  8995. }
  8996. } else {
  8997. this.askJson = JSON.parse(
  8998. JSON.stringify(
  8999. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9000. itemTaskIndex
  9001. ].toolChoose[toolIndex]
  9002. )
  9003. );
  9004. }
  9005. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9006. this.dialogVisible5 = true;
  9007. } else if (i == 45) {
  9008. if (
  9009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9010. .toolChoose[toolIndex].testJson
  9011. ) {
  9012. this.testJson = JSON.parse(
  9013. JSON.stringify(
  9014. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9015. itemTaskIndex
  9016. ].toolChoose[toolIndex].testJson
  9017. )
  9018. );
  9019. } else {
  9020. var testJson = {
  9021. testCount: 1,
  9022. testTitle: "",
  9023. testJson: [
  9024. {
  9025. teststitle: "",
  9026. testItem: 1,
  9027. checkList: [],
  9028. timuList: [],
  9029. answer: [],
  9030. type: "1",
  9031. },
  9032. ],
  9033. };
  9034. this.testJson = testJson;
  9035. }
  9036. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9037. this.dialogVisibleChoice = true;
  9038. } else if (i == 47) {
  9039. if (
  9040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9041. .toolChoose[toolIndex].sentenceList
  9042. ) {
  9043. this.sentenceList = JSON.parse(
  9044. JSON.stringify(
  9045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9046. itemTaskIndex
  9047. ].toolChoose[toolIndex].sentenceList
  9048. )
  9049. );
  9050. } else {
  9051. var sentenceList = [
  9052. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9053. ];
  9054. this.sentenceList = sentenceList;
  9055. }
  9056. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9057. this.dialogVisibleSentence = true;
  9058. } else if (i == 48) {
  9059. if (
  9060. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9061. .toolChoose[toolIndex].tableJson
  9062. ) {
  9063. this.tableJson = JSON.parse(
  9064. JSON.stringify(
  9065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9066. itemTaskIndex
  9067. ].toolChoose[toolIndex].tableJson
  9068. )
  9069. );
  9070. } else {
  9071. var tableJson = { text: "" };
  9072. this.tableJson = tableJson;
  9073. }
  9074. this.dialogVisibleTable = true;
  9075. } else if (i == 52) {
  9076. if (
  9077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9078. .toolChoose[toolIndex].wordJson
  9079. ) {
  9080. this.wordJson = JSON.parse(
  9081. JSON.stringify(
  9082. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9083. itemTaskIndex
  9084. ].toolChoose[toolIndex].wordJson
  9085. )
  9086. );
  9087. } else {
  9088. var wordJson = { text: "" };
  9089. this.wordJson = wordJson;
  9090. }
  9091. this.dialogVisibleWord = true;
  9092. // else if (i == 50) {
  9093. // if (
  9094. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9095. // .toolChoose[toolIndex].uploadJson
  9096. // ) {
  9097. // this.uploadJson = JSON.parse(
  9098. // JSON.stringify(
  9099. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9100. // itemTaskIndex
  9101. // ].toolChoose[toolIndex].uploadJson
  9102. // )
  9103. // );
  9104. // } else {
  9105. // var uploadJson = [];
  9106. // this.uploadJson = uploadJson;
  9107. // }
  9108. // this.dialogVisibleMoreUpload = true;
  9109. // }
  9110. } else if (i == 10) {
  9111. if (
  9112. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9113. .toolChoose[toolIndex].preTime
  9114. ) {
  9115. this.preTime = JSON.parse(
  9116. JSON.stringify(
  9117. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9118. itemTaskIndex
  9119. ].toolChoose[toolIndex].preTime
  9120. )
  9121. );
  9122. } else {
  9123. var preTime = 0;
  9124. this.preTime = preTime;
  9125. }
  9126. this.dialogVisiblePreTime = true;
  9127. } else if (i == 49) {
  9128. if (
  9129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9130. .toolChoose[toolIndex].groupJson
  9131. ) {
  9132. this.groupJson = JSON.parse(
  9133. JSON.stringify(
  9134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9135. itemTaskIndex
  9136. ].toolChoose[toolIndex].groupJson
  9137. )
  9138. );
  9139. } else {
  9140. var groupJson = {
  9141. group: [{ name: "第1组" }],
  9142. number: undefined,
  9143. islock: 1,
  9144. };
  9145. this.groupJson = groupJson;
  9146. }
  9147. this.dialogVisibleGroup = true;
  9148. } else if (i == 62) {
  9149. if (
  9150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9151. .toolChoose[toolIndex].videoJson
  9152. ) {
  9153. this.videoJson = JSON.parse(
  9154. JSON.stringify(
  9155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9156. itemTaskIndex
  9157. ].toolChoose[toolIndex].videoJson
  9158. )
  9159. );
  9160. } else {
  9161. var videoJson = {
  9162. video: "",
  9163. setting: [],
  9164. };
  9165. this.videoJson = videoJson;
  9166. }
  9167. this.dialogVisibleVideo = true;
  9168. } else if (i == 15) {
  9169. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9170. itemTaskIndex
  9171. ].toolChoose[toolIndex].answerQ
  9172. ? JSON.parse(
  9173. JSON.stringify(
  9174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9175. itemTaskIndex
  9176. ].toolChoose[toolIndex].answerQ
  9177. )
  9178. )
  9179. : "";
  9180. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9181. this.dialogVisible8 = true;
  9182. } else if (i == 40) {
  9183. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9184. itemTaskIndex
  9185. ].toolChoose[toolIndex].rateJson
  9186. ? JSON.parse(
  9187. JSON.stringify(
  9188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9189. itemTaskIndex
  9190. ].toolChoose[toolIndex].rateJson
  9191. )
  9192. )
  9193. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9194. this.selectSteps = 1;
  9195. this.dialogVisibleRate = true;
  9196. } else if (i == 42) {
  9197. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9198. itemTaskIndex
  9199. ].toolChoose[toolIndex].answerQ
  9200. ? JSON.parse(
  9201. JSON.stringify(
  9202. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9203. itemTaskIndex
  9204. ].toolChoose[toolIndex].answerQ
  9205. )
  9206. )
  9207. : "";
  9208. this.dialogVisibleMp3 = true;
  9209. } else if (i == 41) {
  9210. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9211. itemTaskIndex
  9212. ].toolChoose[toolIndex].selectJson
  9213. ? JSON.parse(
  9214. JSON.stringify(
  9215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9216. itemTaskIndex
  9217. ].toolChoose[toolIndex].selectJson
  9218. )
  9219. )
  9220. : { url: "", select: [], answer: [] };
  9221. this.selectSteps = 1;
  9222. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9223. this.dialogVisibleSelect = true;
  9224. } else if (i == 3) {
  9225. top.postMessage(
  9226. {
  9227. tools: "3y",
  9228. cid: this.cid,
  9229. stage: this.unitIndex,
  9230. task: itemTaskIndex,
  9231. tool: toolIndex,
  9232. },
  9233. "*"
  9234. );
  9235. } else if (i == 1) {
  9236. top.postMessage(
  9237. {
  9238. tools: "1y",
  9239. cid: this.cid,
  9240. stage: this.unitIndex,
  9241. task: itemTaskIndex,
  9242. tool: toolIndex,
  9243. },
  9244. "*"
  9245. );
  9246. } else if (i == 57) {
  9247. top.postMessage(
  9248. {
  9249. tools: "57y",
  9250. cid: this.cid,
  9251. stage: this.unitIndex,
  9252. task: itemTaskIndex,
  9253. tool: toolIndex,
  9254. },
  9255. "*"
  9256. );
  9257. } else if (i == 69) {
  9258. this.englishList = {};
  9259. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9260. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9261. ? JSON.parse(
  9262. JSON.stringify(
  9263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9264. itemTaskIndex
  9265. ].toolChoose[toolIndex].englishList
  9266. )
  9267. )
  9268. : {};
  9269. this.$forceUpdate();
  9270. this.englishDialogVisible = true;
  9271. } else if (i == 70) {
  9272. this.englishVoiceJson = {};
  9273. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9274. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9275. ? JSON.parse(
  9276. JSON.stringify(
  9277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9278. itemTaskIndex
  9279. ].toolChoose[toolIndex].englishVoiceJson
  9280. )
  9281. )
  9282. : {
  9283. title: '',
  9284. detail: '',
  9285. array: []
  9286. };
  9287. // {
  9288. // time: "",
  9289. // class: "",
  9290. // difficulty: 0,
  9291. // topic: "",
  9292. // isShow: false,
  9293. // eva: 0,
  9294. // aiEva: {
  9295. // isAiEva: false,
  9296. // aiEvaChoose: [],
  9297. // },
  9298. // allfType: [],
  9299. // englishJson: {},
  9300. // };
  9301. this.$forceUpdate();
  9302. this.EnglishVoiceDialog = true;
  9303. }
  9304. },
  9305. setEnglishVoiceJson(val) {
  9306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9307. this.taskCount
  9308. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9309. JSON.stringify(val)
  9310. );
  9311. this.$forceUpdate();
  9312. if (
  9313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9314. .toolChoose[this.toolIndex].tool != 70
  9315. ) {
  9316. this.addTools(70, this.taskCount, this.toolIndex);
  9317. }
  9318. },
  9319. chapAddTools(i) {
  9320. if (this.chapTools[0].tools.length == 0) {
  9321. this.chapTools[0].tools.push(i);
  9322. } else {
  9323. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9324. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9325. } else {
  9326. this.chapTools[0].tools.push(i);
  9327. }
  9328. }
  9329. this.$forceUpdate();
  9330. },
  9331. addChaptersDataTools() {
  9332. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9334. this.chapCount
  9335. ].chapterData.push({
  9336. name: this.chapTools[0].toolDetail,
  9337. url: this.chapTools[0].tools,
  9338. type: 7,
  9339. askJson: this.askJson,
  9340. });
  9341. } else {
  9342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9343. this.chapCount
  9344. ].chapterData.push({
  9345. name: this.chapTools[0].toolDetail,
  9346. url: this.chapTools[0].tools,
  9347. type: 7,
  9348. });
  9349. }
  9350. this.imgChange1(null, null, 7, this.chapCount);
  9351. this.dialogVisible4 = false;
  9352. },
  9353. addTools(i, itemTaskIndex, toolIndex) {
  9354. // if (
  9355. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9356. // .toolChoose[toolIndex].tool.length == 0
  9357. // ) {
  9358. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9359. // itemTaskIndex
  9360. // ].toolChoose[toolIndex].tool.push(i);
  9361. // } else {
  9362. // if (
  9363. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9364. // itemTaskIndex
  9365. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9366. // ) {
  9367. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9368. // itemTaskIndex
  9369. // ].toolChoose[toolIndex].tool.splice(
  9370. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9371. // itemTaskIndex
  9372. // ].toolChoose[toolIndex].tool.indexOf(i),
  9373. // 1
  9374. // );
  9375. // } else {
  9376. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9377. // itemTaskIndex
  9378. // ].toolChoose[toolIndex].tool.push(i);
  9379. // }
  9380. // console.log(
  9381. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9382. // .toolChoose[toolIndex].tool
  9383. // );
  9384. // }
  9385. if (i == 4) {
  9386. if (
  9387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9388. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9389. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9390. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9392. .toolChoose[toolIndex].askJson[0].checkList < 2
  9393. ) {
  9394. this.openTools(itemTaskIndex, 4, toolIndex);
  9395. // this.$message({
  9396. // message: "请填写完整问卷内容",
  9397. // type: "error",
  9398. // });
  9399. return;
  9400. }
  9401. }
  9402. if (i == 45) {
  9403. if (
  9404. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9405. .toolChoose[toolIndex].testJson ||
  9406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9407. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9409. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9410. ) {
  9411. this.openTools(itemTaskIndex, 45, toolIndex);
  9412. // this.$message({
  9413. // message: "请填写完整问卷内容",
  9414. // type: "error",
  9415. // });
  9416. return;
  9417. }
  9418. }
  9419. if (i == 47) {
  9420. if (
  9421. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9422. .toolChoose[toolIndex].sentenceList ||
  9423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9424. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9425. ) {
  9426. this.openTools(itemTaskIndex, 47, toolIndex);
  9427. return;
  9428. }
  9429. }
  9430. if (i == 69) {
  9431. if (
  9432. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9433. .toolChoose[toolIndex].englishList
  9434. ) {
  9435. this.openTools(itemTaskIndex, 69, toolIndex);
  9436. return;
  9437. }
  9438. }
  9439. if (i == 70) {
  9440. if (
  9441. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9442. .toolChoose[toolIndex].englishVoiceJson
  9443. ) {
  9444. this.openTools(itemTaskIndex, 70, toolIndex);
  9445. return;
  9446. }
  9447. }
  9448. // if (i == 48) {
  9449. // if (
  9450. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9451. // .toolChoose[toolIndex].tableJson
  9452. // ) {
  9453. // this.openTools(itemTaskIndex, 48, toolIndex);
  9454. // return;
  9455. // }
  9456. // }
  9457. // if (i == 50) {
  9458. // if (
  9459. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9460. // .toolChoose[toolIndex].uploadJson
  9461. // ) {
  9462. // this.openTools(itemTaskIndex, 50, toolIndex);
  9463. // return;
  9464. // }
  9465. // }
  9466. if (i == 49) {
  9467. if (
  9468. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9469. .toolChoose[toolIndex].groupJson
  9470. ) {
  9471. this.openTools(itemTaskIndex, 49, toolIndex);
  9472. return;
  9473. }
  9474. }
  9475. if (i == 62) {
  9476. if (
  9477. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9478. .toolChoose[toolIndex].videoJson
  9479. ) {
  9480. this.openTools(itemTaskIndex, 62, toolIndex);
  9481. return;
  9482. }
  9483. }
  9484. if (i == 15) {
  9485. if (
  9486. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9487. .toolChoose[toolIndex].answerQ ||
  9488. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9489. .toolChoose[toolIndex].answerQ == ""
  9490. ) {
  9491. this.openTools(itemTaskIndex, 15, toolIndex);
  9492. // this.$message({
  9493. // message: "请填写问答内容",
  9494. // type: "error",
  9495. // });
  9496. return;
  9497. }
  9498. }
  9499. if (i == 40) {
  9500. if (
  9501. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9502. .toolChoose[toolIndex].rateJson ||
  9503. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9504. .toolChoose[toolIndex].rateJson.length
  9505. ) {
  9506. this.openTools(itemTaskIndex, 40, toolIndex);
  9507. return;
  9508. }
  9509. }
  9510. if (i == 41) {
  9511. if (
  9512. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9513. .toolChoose[toolIndex].selectJson ||
  9514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9515. .toolChoose[toolIndex].selectJson.url == "" ||
  9516. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9517. .toolChoose[toolIndex].selectJson.select.length ||
  9518. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9519. .toolChoose[toolIndex].selectJson.answer.length
  9520. ) {
  9521. this.openTools(itemTaskIndex, 41, toolIndex);
  9522. return;
  9523. }
  9524. }
  9525. if (i == 42) {
  9526. if (
  9527. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9528. .toolChoose[toolIndex].answerQ ||
  9529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9530. .toolChoose[toolIndex].answerQ == ""
  9531. ) {
  9532. this.openTools(itemTaskIndex, 42, toolIndex);
  9533. return;
  9534. }
  9535. }
  9536. if (
  9537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9538. .toolChoose[toolIndex].tool.length > 0
  9539. ) {
  9540. if (
  9541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9542. itemTaskIndex
  9543. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9544. ) {
  9545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9546. itemTaskIndex
  9547. ].toolChoose[toolIndex].tool.splice(
  9548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9549. itemTaskIndex
  9550. ].toolChoose[toolIndex].tool.indexOf(i),
  9551. 1
  9552. );
  9553. } else {
  9554. // this.$message({
  9555. // message: "每个工具只能添加一个",
  9556. // type: "error",
  9557. // });
  9558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9559. itemTaskIndex
  9560. ].toolChoose[toolIndex].tool = [];
  9561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9562. itemTaskIndex
  9563. ].toolChoose[toolIndex].tool.push(i);
  9564. }
  9565. } else {
  9566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9567. itemTaskIndex
  9568. ].toolChoose[toolIndex].tool.push(i);
  9569. }
  9570. this.$forceUpdate();
  9571. },
  9572. addAskList(index) {
  9573. this.askJson.askJson.splice(index + 1, 0, {
  9574. askstitle: "",
  9575. askItem: 1,
  9576. checkList: [],
  9577. });
  9578. this.askJson.askCount++;
  9579. },
  9580. addTestList(index) {
  9581. this.testJson.testJson.splice(index + 1, 0, {
  9582. teststitle: "",
  9583. testItem: 1,
  9584. checkList: [],
  9585. timuList: [],
  9586. answer: [],
  9587. type: "1",
  9588. });
  9589. this.testJson.testCount++;
  9590. },
  9591. deleteAskList(index) {
  9592. if (
  9593. !this.askJson.askJson[index].askstitle &&
  9594. this.askJson.askJson[index].askItem == 1 &&
  9595. !this.askJson.askJson[index].checkList[0]
  9596. ) {
  9597. this.askJson.askJson.splice(index, 1);
  9598. this.askJson.askCount--;
  9599. } else {
  9600. let _this = this;
  9601. _this
  9602. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9603. confirmButtonText: "确定",
  9604. cancelButtonText: "取消",
  9605. type: "warning",
  9606. })
  9607. .then(() => {
  9608. _this.askJson.askJson.splice(index, 1);
  9609. _this.askJson.askCount--;
  9610. })
  9611. .catch(() => {
  9612. return;
  9613. });
  9614. }
  9615. },
  9616. deleteTestList(index) {
  9617. if (
  9618. !this.testJson.testJson[index].teststitle &&
  9619. this.testJson.testJson[index].testItem == 1 &&
  9620. !this.testJson.testJson[index].checkList[0]
  9621. ) {
  9622. this.testJson.testJson.splice(index, 1);
  9623. this.testJson.testCount--;
  9624. } else {
  9625. let _this = this;
  9626. _this
  9627. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9628. confirmButtonText: "确定",
  9629. cancelButtonText: "取消",
  9630. type: "warning",
  9631. })
  9632. .then(() => {
  9633. _this.testJson.testJson.splice(index, 1);
  9634. _this.testJson.testCount--;
  9635. })
  9636. .catch(() => {
  9637. return;
  9638. });
  9639. }
  9640. },
  9641. askMove(type, index) {
  9642. if (type == 1) {
  9643. if (index > 0) {
  9644. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9645. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9646. this.askJson.askJson[index - 1] = b;
  9647. this.askJson.askJson[index] = a;
  9648. }
  9649. } else {
  9650. if (index < this.askJson.askJson.length - 1) {
  9651. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9652. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9653. this.askJson.askJson[index + 1] = b;
  9654. this.askJson.askJson[index] = a;
  9655. }
  9656. }
  9657. this.$forceUpdate();
  9658. },
  9659. checkMove(type, index, checkIndex) {
  9660. if (type == 1) {
  9661. if (checkIndex > 0) {
  9662. let a = JSON.parse(
  9663. JSON.stringify(
  9664. this.askJson.askJson[index].checkList[checkIndex - 1]
  9665. )
  9666. );
  9667. let b = JSON.parse(
  9668. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9669. );
  9670. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9671. this.askJson.askJson[index].checkList[checkIndex] = a;
  9672. }
  9673. } else {
  9674. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9675. let a = JSON.parse(
  9676. JSON.stringify(
  9677. this.askJson.askJson[index].checkList[checkIndex + 1]
  9678. )
  9679. );
  9680. let b = JSON.parse(
  9681. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9682. );
  9683. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9684. this.askJson.askJson[index].checkList[checkIndex] = a;
  9685. }
  9686. }
  9687. this.$forceUpdate();
  9688. },
  9689. testMove(type, index) {
  9690. if (type == 1) {
  9691. if (index > 0) {
  9692. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9693. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9694. this.testJson.testJson[index - 1] = b;
  9695. this.testJson.testJson[index] = a;
  9696. }
  9697. } else {
  9698. if (index < this.testJson.testJson.length - 1) {
  9699. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9700. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9701. this.testJson.testJson[index + 1] = b;
  9702. this.testJson.testJson[index] = a;
  9703. }
  9704. }
  9705. this.$forceUpdate();
  9706. },
  9707. tcheckMove(type, index, checkIndex) {
  9708. if (type == 1) {
  9709. if (checkIndex > 0) {
  9710. let a = JSON.parse(
  9711. JSON.stringify(
  9712. this.testJson.testJson[index].checkList[checkIndex - 1]
  9713. )
  9714. );
  9715. let b = JSON.parse(
  9716. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9717. );
  9718. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9719. this.testJson.testJson[index].checkList[checkIndex] = a;
  9720. }
  9721. } else {
  9722. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9723. let a = JSON.parse(
  9724. JSON.stringify(
  9725. this.testJson.testJson[index].checkList[checkIndex + 1]
  9726. )
  9727. );
  9728. let b = JSON.parse(
  9729. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9730. );
  9731. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9732. this.testJson.testJson[index].checkList[checkIndex] = a;
  9733. }
  9734. }
  9735. this.$forceUpdate();
  9736. },
  9737. addcheckList(json, index) {
  9738. // json.checkList.length++;
  9739. json.checkList.splice(index + 1, 0, "");
  9740. json.askItem++;
  9741. this.$forceUpdate();
  9742. },
  9743. deletecheckList(json, index) {
  9744. // json.checkList.length--;
  9745. json.checkList.splice(index, 1);
  9746. json.askItem--;
  9747. this.$forceUpdate();
  9748. },
  9749. addTcheckList(json, index) {
  9750. // json.checkList.length++;
  9751. json.checkList.splice(index + 1, 0, "");
  9752. json.testItem++;
  9753. this.$forceUpdate();
  9754. },
  9755. deleteTcheckList(json, index) {
  9756. // json.checkList.length--;
  9757. json.checkList.splice(index, 1);
  9758. json.testItem--;
  9759. this.$forceUpdate();
  9760. },
  9761. checkTestType(type, json) {
  9762. json.type = type;
  9763. setTimeout(() => {
  9764. json.answer = [];
  9765. }, 100);
  9766. },
  9767. checkAskType(type, json) {
  9768. json.type = type;
  9769. // json.checkList = [];
  9770. this.$forceUpdate();
  9771. },
  9772. addSelectList(json) {
  9773. json.select.push("");
  9774. json.answer.push("");
  9775. },
  9776. deleteSelectList(json) {
  9777. // json.select.length--;
  9778. // json.answer.length--;
  9779. json.select.splice(json.select.length - 1, 1);
  9780. json.answer.splice(json.answer.length - 1, 1);
  9781. },
  9782. addAsk() {
  9783. if (this.askJson.askTitle === "") {
  9784. this.$message.error("标题不能为空!");
  9785. return;
  9786. }
  9787. var aj = this.askJson.askJson;
  9788. var b = 1;
  9789. for (var i = 0; i < aj.length; i++) {
  9790. if (aj[i].askstitle === "") {
  9791. var a = 1;
  9792. for (let index = 0; index < aj[i].askItem; index++) {
  9793. const element = aj[i].checkList[index]
  9794. ? aj[i].checkList[index]
  9795. : "";
  9796. if (element != "") {
  9797. b++;
  9798. this.$message.error(`请将题目${i + 1}填写完整。`);
  9799. return;
  9800. } else {
  9801. a++;
  9802. }
  9803. }
  9804. if (b == 1) {
  9805. this.$message.error("至少填写一个问题");
  9806. return;
  9807. }
  9808. } else if (aj[i].askstitle != "") {
  9809. for (let index = 0; index < aj[i].askItem; index++) {
  9810. const element = aj[i].checkList[index]
  9811. ? aj[i].checkList[index]
  9812. : "";
  9813. var index = 0;
  9814. for (var z = 0; z < aj[i].checkList.length; z++) {
  9815. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9816. if (checkC != "") {
  9817. index++;
  9818. } else {
  9819. this.$message.error(`题目${i + 1}选项不能为空!`);
  9820. return;
  9821. }
  9822. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9823. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9824. if (checkC == checkC2) {
  9825. this.$message.error(
  9826. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9827. );
  9828. return;
  9829. }
  9830. }
  9831. }
  9832. b++;
  9833. if (index < 2) {
  9834. this.$message.error("每道题目至少需要设置2个选项。");
  9835. return;
  9836. }
  9837. }
  9838. }
  9839. }
  9840. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9841. var elc = el.checkList.filter((element) => {
  9842. return element != "";
  9843. });
  9844. return el.askstitle != "" && elc.length != 0;
  9845. });
  9846. if (!this.dialogVisible4) {
  9847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9848. this.taskCount
  9849. ].toolChoose[this.toolIndex] = this.askJson;
  9850. }
  9851. this.dialogVisible5 = false;
  9852. if (
  9853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9854. .toolChoose[this.toolIndex].tool != 4
  9855. ) {
  9856. this.addTools(4, this.taskCount, this.toolIndex);
  9857. }
  9858. },
  9859. addTest() {
  9860. // if (this.testJson.testTitle === "") {
  9861. // this.$message.error("标题不能为空!");
  9862. // return;
  9863. // }
  9864. var aj = this.testJson.testJson;
  9865. var b = 1;
  9866. for (var i = 0; i < aj.length; i++) {
  9867. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9868. var a = 1;
  9869. for (let index = 0; index < aj[i].testItem; index++) {
  9870. const element = aj[i].checkList[index]
  9871. ? aj[i].checkList[index]
  9872. : "";
  9873. if (element != "") {
  9874. b++;
  9875. this.$message.error(`请将题目${i + 1}填写完整。`);
  9876. return;
  9877. } else {
  9878. a++;
  9879. }
  9880. }
  9881. if (b == 1) {
  9882. this.$message.error("至少填写一个问题");
  9883. return;
  9884. }
  9885. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9886. for (let index = 0; index < aj[i].testItem; index++) {
  9887. const element = aj[i].checkList[index]
  9888. ? aj[i].checkList[index]
  9889. : "";
  9890. var index = 0;
  9891. for (var z = 0; z < aj[i].checkList.length; z++) {
  9892. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9893. if (checkC != "") {
  9894. index++;
  9895. } else {
  9896. this.$message.error(`题目${i + 1}选项不能为空!`);
  9897. return;
  9898. }
  9899. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9900. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9901. if (checkC == checkC2) {
  9902. this.$message.error(
  9903. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9904. );
  9905. return;
  9906. }
  9907. }
  9908. }
  9909. b++;
  9910. if (index < 2) {
  9911. this.$message.error("每道题目至少需要设置2个选项。");
  9912. return;
  9913. }
  9914. if (
  9915. (aj[i].type == "2" && !aj[i].answer.length) ||
  9916. (aj[i].type == "1" &&
  9917. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  9918. (aj[i].answer !== 0 && !aj[i].answer)))
  9919. ) {
  9920. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  9921. return;
  9922. }
  9923. }
  9924. }
  9925. }
  9926. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9927. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9928. var elc = el.checkList.filter((element) => {
  9929. return element != "";
  9930. });
  9931. return (
  9932. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9933. );
  9934. });
  9935. isTestJson.testCount = isTestJson.testJson.length;
  9936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9937. this.taskCount
  9938. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9939. this.dialogVisibleChoice = false;
  9940. if (
  9941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9942. .toolChoose[this.toolIndex].tool != 45
  9943. ) {
  9944. this.addTools(45, this.taskCount, this.toolIndex);
  9945. }
  9946. },
  9947. addVideoJson(videoJson) {
  9948. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9949. this.taskCount
  9950. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9951. this.dialogVisibleVideo = false;
  9952. if (
  9953. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9954. .toolChoose[this.toolIndex].tool != 62
  9955. ) {
  9956. this.addTools(62, this.taskCount, this.toolIndex);
  9957. }
  9958. },
  9959. //自动获取剪贴板
  9960. pasteOption() {
  9961. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9962. if (!iframe) {
  9963. this.$message.error("请使用AI共创生成题目");
  9964. return;
  9965. }
  9966. let copyData = iframe.contentWindow.copyData;
  9967. if (!copyData || !copyData.selectData.length) {
  9968. this.$message.error("请使用AI共创生成题目");
  9969. return;
  9970. }
  9971. let selectData = copyData.selectData;
  9972. for (var i = 0; i < selectData.length; i++) {
  9973. let answer = 0;
  9974. switch (selectData[i].answer[0]) {
  9975. case "A":
  9976. answer = 0;
  9977. break;
  9978. case "B":
  9979. answer = 1;
  9980. break;
  9981. case "C":
  9982. answer = 2;
  9983. break;
  9984. case "D":
  9985. answer = 3;
  9986. break;
  9987. case "E":
  9988. answer = 4;
  9989. break;
  9990. default:
  9991. break;
  9992. }
  9993. this.testJson.testJson.push({
  9994. teststitle: selectData[i].subject,
  9995. testItem: selectData[i].options.length,
  9996. checkList: selectData[i].options,
  9997. timuList: [],
  9998. answer: answer,
  9999. type: "1",
  10000. });
  10001. this.testJson.testCount++;
  10002. }
  10003. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10004. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10005. var elc = el.checkList.filter((element) => {
  10006. return element != "";
  10007. });
  10008. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10009. });
  10010. isTestJson.testCount = isTestJson.testJson.length;
  10011. if (!isTestJson.testCount) {
  10012. return;
  10013. }
  10014. this.testJson = isTestJson;
  10015. this.$forceUpdate();
  10016. },
  10017. pasteTask(taskJson) {
  10018. let stageTasksData = [];
  10019. if (taskJson) {
  10020. stageTasksData = taskJson;
  10021. } else {
  10022. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10023. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10024. if (!iframe && !iframe2) {
  10025. this.$message.error("请使用AI共创生成");
  10026. return;
  10027. }
  10028. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10029. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10030. if (
  10031. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10032. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10033. ) {
  10034. this.$message.error("请使用AI共创生成");
  10035. return;
  10036. }
  10037. stageTasksData = copyData
  10038. ? copyData.tasksData
  10039. : copyData2
  10040. ? copyData2.tasksData
  10041. : [{ taskName: "", taskDecs: "" }];
  10042. }
  10043. let taskA = [];
  10044. let tasks = stageTasksData;
  10045. for (var j = 0; j < tasks.length; j++) {
  10046. taskA.push({
  10047. task: tasks[j].taskName,
  10048. taskDetail: tasks[j].taskDecs,
  10049. chapterData: [],
  10050. toolText: "",
  10051. toolChoose: [
  10052. {
  10053. tool: [],
  10054. toolDetail: "",
  10055. toolType: 0,
  10056. askCount: 1,
  10057. askTitle: "",
  10058. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10059. },
  10060. ],
  10061. isShowTools: false,
  10062. askCount: 1,
  10063. isFold: 1,
  10064. askTitle: "",
  10065. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10066. checkJson: [{ checkCount: [], checkPerent: [] }],
  10067. homeworkList: [],
  10068. });
  10069. }
  10070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10071. this.$forceUpdate();
  10072. },
  10073. pasteStage(stageJson) {
  10074. let stageData = [];
  10075. if (stageJson) {
  10076. stageData = stageJson;
  10077. } else {
  10078. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10079. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10080. if (!iframe && !iframe2) {
  10081. this.$message.error("请使用AI共创生成");
  10082. return;
  10083. }
  10084. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10085. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10086. if (
  10087. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10088. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10089. ) {
  10090. this.$message.error("请使用AI共创生成");
  10091. return;
  10092. }
  10093. stageData = copyData
  10094. ? copyData.stageData
  10095. : copyData2
  10096. ? copyData2.stageData
  10097. : [""];
  10098. }
  10099. let stage = [];
  10100. for (var i = 0; i < stageData.length; i++) {
  10101. stage.push({
  10102. dyName: stageData[i], //单元标题
  10103. chapterInfo: [
  10104. {
  10105. isread: false,
  10106. chapterid: this.guid(),
  10107. title: "",
  10108. courseName: "",
  10109. taskJson: [
  10110. {
  10111. task: "",
  10112. taskDetail: "",
  10113. chapterData: [],
  10114. toolText: "",
  10115. toolChoose: [
  10116. {
  10117. tool: [],
  10118. toolDetail: "",
  10119. toolType: 0,
  10120. askCount: 1,
  10121. askTitle: "",
  10122. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10123. },
  10124. ],
  10125. isShowTools: false,
  10126. askCount: 1,
  10127. isFold: 1,
  10128. askTitle: "",
  10129. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10130. checkJson: [{ checkCount: [], checkPerent: [] }],
  10131. homeworkList: [],
  10132. },
  10133. ],
  10134. itemCount: 1,
  10135. fileList1: [],
  10136. video: [],
  10137. testData: [],
  10138. pData: [],
  10139. templateArray: [],
  10140. },
  10141. ],
  10142. });
  10143. }
  10144. let _this = this;
  10145. if (stageJson) {
  10146. if (!_this.cid) {
  10147. _this.unitJson = stage;
  10148. } else {
  10149. _this.unitIndex = 0;
  10150. _this.unitJson = stage;
  10151. _this.updateWork();
  10152. }
  10153. } else {
  10154. _this
  10155. .$confirm(
  10156. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10157. "提示",
  10158. {
  10159. confirmButtonText: "确定",
  10160. cancelButtonText: "取消",
  10161. type: "warning",
  10162. }
  10163. )
  10164. .then(() => {
  10165. _this.unitIndex = 0;
  10166. _this.unitJson = stage;
  10167. // _this.steps++;
  10168. _this.updateWork();
  10169. })
  10170. .catch(() => {
  10171. return;
  10172. });
  10173. }
  10174. },
  10175. openStageBox() {
  10176. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10177. this.dialogVisibleStageChange = true;
  10178. },
  10179. updateChange() {
  10180. this.$confirm(
  10181. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10182. "提示",
  10183. {
  10184. confirmButtonText: "确定",
  10185. cancelButtonText: "取消",
  10186. type: "warning",
  10187. }
  10188. )
  10189. .then(() => {
  10190. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10191. this.updateWork();
  10192. this.dialogVisibleStageChange = false;
  10193. })
  10194. .catch(() => {
  10195. return;
  10196. });
  10197. },
  10198. addAnswer() {
  10199. if (this.answerQ == "") {
  10200. this.$message.error("请输入您想要问的问题");
  10201. return;
  10202. }
  10203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10204. this.taskCount
  10205. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10206. this.dialogVisible8 = false;
  10207. if (
  10208. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10209. .toolChoose[this.toolIndex].tool != 15
  10210. ) {
  10211. this.addTools(15, this.taskCount, this.toolIndex);
  10212. }
  10213. },
  10214. addMp3Answer() {
  10215. if (this.answerQ == "") {
  10216. this.$message.error("请输入您想要回答的问题");
  10217. return;
  10218. }
  10219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10220. this.taskCount
  10221. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10222. this.dialogVisibleMp3 = false;
  10223. },
  10224. addRateAnswer() {
  10225. var a = 1;
  10226. for (var i = 0; i < this.rateJson.length; i++) {
  10227. if (this.rateJson[i].value == "") {
  10228. a = 2;
  10229. break;
  10230. }
  10231. }
  10232. if (a == 2) {
  10233. this.$message.error("请把评价信息填写完整");
  10234. return;
  10235. }
  10236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10237. this.taskCount
  10238. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10239. this.dialogVisibleRate = false;
  10240. if (
  10241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10242. .toolChoose[this.toolIndex].tool != 40
  10243. ) {
  10244. this.addTools(40, this.taskCount, this.toolIndex);
  10245. }
  10246. },
  10247. addSelectAnswer() {
  10248. if (this.selectJson.url == "") {
  10249. this.$message.error("请上传题目");
  10250. return;
  10251. }
  10252. if (!this.selectJson.select.length) {
  10253. this.$message.error("请添加选项");
  10254. return;
  10255. }
  10256. if (!this.selectJson.answer.length) {
  10257. this.$message.error("请设置答案");
  10258. return;
  10259. }
  10260. var a = 1;
  10261. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10262. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10263. a = 2;
  10264. }
  10265. }
  10266. if (a == 2) {
  10267. this.$message.error("请设置答案");
  10268. return;
  10269. }
  10270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10271. this.taskCount
  10272. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10273. this.dialogVisibleSelect = false;
  10274. if (
  10275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10276. .toolChoose[this.toolIndex].tool != 41
  10277. ) {
  10278. this.addTools(41, this.taskCount, this.toolIndex);
  10279. }
  10280. },
  10281. nextSelectSteps() {
  10282. if (this.selectJson.url == "") {
  10283. this.$message.error("请上传题目");
  10284. return;
  10285. }
  10286. if (!this.selectJson.select.length) {
  10287. this.$message.error("请添加选项");
  10288. return;
  10289. } else {
  10290. for (var z = 0; z < this.selectJson.select.length; z++) {
  10291. let checkC = this.selectJson.select[z];
  10292. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10293. let checkC2 = this.selectJson.select[z2];
  10294. if (checkC == checkC2) {
  10295. this.$message.error(
  10296. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10297. );
  10298. return;
  10299. }
  10300. }
  10301. }
  10302. }
  10303. var a = 1;
  10304. for (var i = 0; i < this.selectJson.select.length; i++) {
  10305. if (!this.selectJson.select[i]) {
  10306. a = 2;
  10307. }
  10308. }
  10309. if (a == 2) {
  10310. this.$message.error("添加的选项不能为空");
  10311. return;
  10312. }
  10313. this.selectSteps++;
  10314. },
  10315. selectCourseDetail() {
  10316. if (this.cid == "" || this.cid == undefined) {
  10317. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10318. this.isTeacherSee = true;
  10319. }
  10320. console.log("这是新增课程");
  10321. this.selectAllType();
  10322. } else {
  10323. this.isOutline = true
  10324. this.isOutline2 = true
  10325. this.cidType = 1;
  10326. let params = {
  10327. cid: this.cid,
  10328. };
  10329. this.ajax
  10330. .get(this.$store.state.api + "select_course_detail", params)
  10331. .then((res) => {
  10332. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10333. this.courseState = res.data[0][0].state;
  10334. for (var j = 0; j < this.unitJson.length; j++) {
  10335. for (
  10336. var k = 0;
  10337. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10338. k++
  10339. ) {
  10340. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10341. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10342. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10343. : [];
  10344. let _chapterData = [];
  10345. for (
  10346. var c = 0;
  10347. c <
  10348. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10349. .length;
  10350. c++
  10351. ) {
  10352. if (
  10353. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10354. ) {
  10355. _chapterData.push(
  10356. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10357. );
  10358. }
  10359. }
  10360. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10361. _chapterData;
  10362. }
  10363. }
  10364. this.$forceUpdate();
  10365. this.courseName = res.data[0][0].title;
  10366. this.courseText = res.data[0][0].brief;
  10367. this.courseText2 = res.data[0][0].reBrief;
  10368. this.evalua = res.data[0][0].evaId;
  10369. this.cover = JSON.parse(res.data[0][0].cover);
  10370. this.noneBtnImg = this.cover.length >= 1;
  10371. if (res.data[0][0].refile) {
  10372. this.infoData = JSON.parse(res.data[0][0].refile)
  10373. }
  10374. // this.checkboxList =
  10375. // res.data[0][0].course_student.length > 0
  10376. // ? JSON.parse(res.data[0][0].course_student)
  10377. // : [];
  10378. this.checkboxList2 = res.data[0][0].juri
  10379. ? res.data[0][0].juri.split(",")
  10380. : [];
  10381. this.inviteCode = [];
  10382. for (var i = 0; i < res.data[2].length; i++) {
  10383. this.inviteCode.push({
  10384. cid: res.data[2][i].classid,
  10385. ic: res.data[2][i].code,
  10386. });
  10387. }
  10388. this.checkboxList3 = res.data[0][0].course_teacher
  10389. ? res.data[0][0].course_teacher.split(",")
  10390. : [];
  10391. // this.isTeacherSee =
  10392. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10393. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10394. this.myWord = res.data[0][0].template;
  10395. this.templateC.id = "123";
  10396. this.courseUserid = res.data[0][0].userid;
  10397. // if(this.courseUserid == this.userid){
  10398. // this.InviteChange(this.checkboxList2)
  10399. // }
  10400. this.nbOrder = res.data[0][0].ordernumber;
  10401. this.courseTypeId = [];
  10402. for (var i = 0; i < res.data[1].length; i++) {
  10403. this.courseTypeId.push(res.data[1][i].typeid);
  10404. }
  10405. console.log(this.courseTypeId);
  10406. // if (this.timer) clearInterval(this.timer);
  10407. if (this.timer) clearTimeout(this.timer);
  10408. this.timer = null;
  10409. // this.timer = setInterval(() => {
  10410. if(res.data[3].length){
  10411. try {
  10412. this.aiJson = JSON.parse(res.data[3][0].tips);
  10413. }catch(error){
  10414. console.error(error)
  10415. }
  10416. }
  10417. this.seleteCourseUpdate();
  10418. this.setMan();
  10419. this.selectAllType();
  10420. this.unitJson[
  10421. this.unitIndex
  10422. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10423. // }, 5000);
  10424. this.$forceUpdate();
  10425. setTimeout(() => {
  10426. this.checkEva(this.evalua);
  10427. setTimeout(() => {
  10428. this.checkEva(this.evalua);
  10429. }, 100);
  10430. }, 100);
  10431. })
  10432. .catch((err) => {
  10433. console.error(err);
  10434. });
  10435. }
  10436. },
  10437. seleteCourseUpdate() {
  10438. let params = {
  10439. cid: this.cid,
  10440. };
  10441. this.ajax
  10442. .get(this.$store.state.api + "select_course_detail", params)
  10443. .then((res) => {
  10444. // console.log(this.unitJson);
  10445. let unitJson = JSON.parse(res.data[0][0].chapters);
  10446. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10447. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10448. let _unitJson = [];
  10449. let _chapAarry = [];
  10450. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10451. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10452. let index = 1;
  10453. let chapindex;
  10454. if (_unitJson2.length > unitJson.length) {
  10455. for (let c = 0; c < _unitJson2.length; c++) {
  10456. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10457. }
  10458. for (let j = 0; j < unitJson.length; j++) {
  10459. let count = 0;
  10460. for (let k = 0; k < _unitJson2.length; k++) {
  10461. if (
  10462. unitJson[j].chapterInfo[0].chapterid ==
  10463. _unitJson2[k].chapterInfo[0].chapterid
  10464. ) {
  10465. count++;
  10466. _chapAarry.splice(
  10467. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10468. 1
  10469. );
  10470. _unitJson.push(unitJson[j]);
  10471. break;
  10472. }
  10473. }
  10474. // if(count === 0){
  10475. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10476. // }
  10477. }
  10478. for (let k = 0; k < _unitJson2.length; k++) {
  10479. if (_unitJson2[k].isUpdate == 1) {
  10480. _chapAarry.splice(
  10481. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10482. 1
  10483. );
  10484. _unitJson.push(_unitJson2[k]);
  10485. }
  10486. }
  10487. console.log(_chapAarry);
  10488. for (let d = 0; d < _unitJson2.length; d++) {
  10489. if (
  10490. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10491. ) {
  10492. if (_unitIndex == d) {
  10493. index = 2;
  10494. }
  10495. chapindex = d;
  10496. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10497. }
  10498. }
  10499. } else {
  10500. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10501. }
  10502. for (let i = 0; i < unitJson.length; i++) {
  10503. if (
  10504. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10505. _unitJson[i].chapterInfo[0].chapterid !=
  10506. unitJson[i].chapterInfo[0].chapterid
  10507. ) {
  10508. if (i == _unitJson.length - 1) {
  10509. // this.unitIndex++
  10510. _unitIndex2++;
  10511. }
  10512. _unitJson.splice(i, 0, unitJson[i]);
  10513. } else if (i > _unitJson.length - 1) {
  10514. _unitJson.push(unitJson[i]);
  10515. } else if (
  10516. _unitJson[i].chapterInfo[0].chapterid ==
  10517. unitJson[i].chapterInfo[0].chapterid
  10518. ) {
  10519. _unitJson[i] = unitJson[i];
  10520. }
  10521. // if (i == _unitIndex) {
  10522. // continue;
  10523. // } else
  10524. }
  10525. if (_chapAarry.length && index != 2) {
  10526. if (chapindex < _unitIndex) {
  10527. this.isDelete = 2;
  10528. // this.unitIndex--;
  10529. _unitIndex2--;
  10530. } else if (
  10531. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10532. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10533. ) {
  10534. this.isDelete = 2;
  10535. for (let n = 0; n < _unitJson.length; n++) {
  10536. if (
  10537. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10538. _unitJson[n].chapterInfo[0].chapterid
  10539. ) {
  10540. // this.unitIndex = n;
  10541. _unitIndex2 = n;
  10542. _unitJson[n] = _unitJson2[_unitIndex];
  10543. break;
  10544. }
  10545. }
  10546. }
  10547. } else if (index != 2) {
  10548. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10549. _unitJson2[_unitIndex];
  10550. for (
  10551. var ci = 0;
  10552. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10553. ci++
  10554. ) {
  10555. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10556. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10557. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10558. .toolChoose
  10559. : [];
  10560. let _chapterData = [];
  10561. for (
  10562. var c = 0;
  10563. c <
  10564. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10565. .length;
  10566. c++
  10567. ) {
  10568. if (
  10569. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10570. .chapterData[c]
  10571. ) {
  10572. _chapterData.push(
  10573. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10574. .chapterData[c]
  10575. );
  10576. }
  10577. }
  10578. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10579. _chapterData;
  10580. }
  10581. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10582. }
  10583. if (index == 1) {
  10584. this.unitJson = _unitJson;
  10585. this.$forceUpdate();
  10586. setTimeout(() => {
  10587. if (this.unitIndex != _unitIndex2) {
  10588. this.isDelete = 2;
  10589. this.unitIndex = _unitIndex2;
  10590. }
  10591. }, 0);
  10592. this.timer = setTimeout(() => {
  10593. this.seleteCourseUpdate();
  10594. }, 1000);
  10595. } else if (index == 2) {
  10596. let _this = this;
  10597. _this
  10598. .$confirm(
  10599. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10600. "提示",
  10601. {
  10602. confirmButtonText: "需要",
  10603. cancelButtonText: "取消",
  10604. type: "warning",
  10605. }
  10606. )
  10607. .then(() => {
  10608. if (_this.time()) {
  10609. _this.restoreWork(
  10610. _chapAarry[0],
  10611. _unitJson,
  10612. chapindex,
  10613. _unitJson2,
  10614. _unitIndex2
  10615. );
  10616. }
  10617. })
  10618. .catch(() => {
  10619. _this.unitJson = _unitJson;
  10620. _this.$forceUpdate();
  10621. setTimeout(() => {
  10622. if (this.unitIndex != _unitIndex2) {
  10623. this.isDelete = 2;
  10624. this.unitIndex = _unitIndex2;
  10625. }
  10626. }, 0);
  10627. _this.timer = setTimeout(() => {
  10628. _this.seleteCourseUpdate();
  10629. }, 1000);
  10630. });
  10631. }
  10632. // 在复制操作之前记录滚动位置
  10633. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10634. // 执行复制操作
  10635. // 复制操作完成后恢复滚动位置
  10636. this.$nextTick(() => {
  10637. if (this.$refs.scrollContainer) {
  10638. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10639. }
  10640. });
  10641. })
  10642. .catch((err) => {
  10643. console.error(err);
  10644. });
  10645. },
  10646. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10647. let params = [
  10648. {
  10649. cid: this.cid,
  10650. chapters: JSON.stringify(this.unitJson),
  10651. uid: this.userid,
  10652. chapid: chapid,
  10653. },
  10654. ];
  10655. this.ajax
  10656. .post(this.$store.state.api + "restoreWork", params)
  10657. .then((res) => {
  10658. this.$message({
  10659. message: "恢复成功",
  10660. type: "success",
  10661. });
  10662. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10663. this.unitJson = unitJson;
  10664. this.$forceUpdate();
  10665. setTimeout(() => {
  10666. if (this.unitIndex != unitIndex2) {
  10667. this.isDelete = 2;
  10668. this.unitIndex = unitIndex2;
  10669. }
  10670. }, 0);
  10671. this.timer = setTimeout(() => {
  10672. this.seleteCourseUpdate();
  10673. }, 1000);
  10674. })
  10675. .catch((err) => {
  10676. this.$message.error("网络不佳");
  10677. console.error(err);
  10678. });
  10679. },
  10680. getTypeName() {
  10681. console.log(this.courseTypeId);
  10682. this.$forceUpdate();
  10683. },
  10684. selectAllType() {
  10685. let params = {
  10686. org: this.org && this.org != "" ? this.org : "",
  10687. oid: this.oid && this.oid != "" ? this.oid : "",
  10688. };
  10689. this.ajax
  10690. .get(this.$store.state.api + "selectAllType", params)
  10691. .then((res) => {
  10692. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10693. res.data[0] = [...res.data[0], ...res.data[4]];
  10694. }
  10695. this.CourseType = res.data;
  10696. this.CourseType2 = [
  10697. { name: "智见课程", id: [] },
  10698. { name: "智行课程", id: [] },
  10699. { name: "智创课程", id: [] },
  10700. ];
  10701. for (var cti = 0; cti < res.data[0].length; cti++) {
  10702. if (
  10703. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10704. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10705. ) {
  10706. this.CourseType2[0].id.push(res.data[0][cti].id);
  10707. } else if (
  10708. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10709. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10710. ) {
  10711. this.CourseType2[1].id.push(res.data[0][cti].id);
  10712. } else if (
  10713. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10714. ) {
  10715. this.CourseType2[2].id.push(res.data[0][cti].id);
  10716. }
  10717. if (
  10718. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10719. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10720. ) {
  10721. res.data[0][cti].name = "年级";
  10722. } else if (
  10723. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10724. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10725. ) {
  10726. res.data[0][cti].name = "学科";
  10727. } else if (
  10728. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10729. ) {
  10730. res.data[0][cti].name = "主题";
  10731. }
  10732. }
  10733. let _courseTypeId = [];
  10734. for (var i = 0; i < res.data[0].length; i++) {
  10735. if (!this.cid) {
  10736. this.courseTypeId[res.data[0][i].id] = [];
  10737. }
  10738. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10739. // }
  10740. this.CourseTypeJson[res.data[0][i].id] = [];
  10741. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10742. if (res.data[0][i].name == "栏目") {
  10743. this.CourseType[0][i].name = "主题";
  10744. }
  10745. }
  10746. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10747. for (var j = 0; j < res.data[1].length; j++) {
  10748. if (
  10749. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10750. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10751. ) {
  10752. _courseTypeId.push(res.data[1][j].id);
  10753. }
  10754. if (res.data[0][i].id == res.data[1][j].pid) {
  10755. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10756. }
  10757. }
  10758. } else {
  10759. if (res.data[2].length > 0) {
  10760. for (var j = 0; j < res.data[2].length; j++) {
  10761. if (
  10762. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10763. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10764. ) {
  10765. _courseTypeId.push(res.data[2][j].id);
  10766. }
  10767. if (res.data[0][i].id == res.data[2][j].pid) {
  10768. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10769. }
  10770. }
  10771. }
  10772. if (res.data[3].length > 0) {
  10773. for (var j = 0; j < res.data[3].length; j++) {
  10774. if (
  10775. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10776. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10777. ) {
  10778. _courseTypeId.push(res.data[3][j].id);
  10779. }
  10780. if (res.data[0][i].id == res.data[3][j].pid) {
  10781. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10782. }
  10783. }
  10784. }
  10785. }
  10786. }
  10787. this.courseTypeId = _courseTypeId;
  10788. })
  10789. .catch((err) => {
  10790. console.error(err);
  10791. });
  10792. },
  10793. selectType() {
  10794. this.ajax
  10795. .get(this.$store.state.api + "selectType")
  10796. .then((res) => {
  10797. this.CourseType = res.data;
  10798. for (var i = 0; i < res.data[0].length; i++) {
  10799. if (!this.cid) {
  10800. this.courseTypeId[res.data[0][i].id] = "";
  10801. }
  10802. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10803. if (res.data[0][i].name == "栏目") {
  10804. this.CourseType[0][i].name = "主题";
  10805. }
  10806. }
  10807. for (var j = 0; j < res.data[1].length; j++) {
  10808. if (res.data[0][i].id == res.data[1][j].pid) {
  10809. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10810. this.CourseTypeJson[res.data[0][i].id] = [];
  10811. }
  10812. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10813. }
  10814. }
  10815. }
  10816. this.selectTypeByOid();
  10817. this.selectTypeByOrg();
  10818. })
  10819. .catch((err) => {
  10820. console.error(err);
  10821. });
  10822. },
  10823. selectTypeByOid() {
  10824. let params = {
  10825. oid: this.oid,
  10826. };
  10827. this.ajax
  10828. .get(this.$store.state.api + "selectTypeByOid", params)
  10829. .then((res) => {
  10830. for (var i = 0; i < res.data[0].length; i++) {
  10831. for (var j = 0; j < res.data[1].length; j++) {
  10832. if (res.data[0][i].id == res.data[1][j].pid) {
  10833. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10834. this.CourseTypeJson[res.data[0][i].id] = [];
  10835. }
  10836. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10837. }
  10838. }
  10839. }
  10840. })
  10841. .catch((err) => {
  10842. console.error(err);
  10843. });
  10844. },
  10845. selectTypeByOrg() {
  10846. let params = {
  10847. oid: this.org,
  10848. };
  10849. this.ajax
  10850. .get(this.$store.state.api + "selectTypeByOrg", params)
  10851. .then((res) => {
  10852. for (var i = 0; i < res.data[0].length; i++) {
  10853. for (var j = 0; j < res.data[1].length; j++) {
  10854. if (res.data[0][i].id == res.data[1][j].pid) {
  10855. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10856. this.CourseTypeJson[res.data[0][i].id] = [];
  10857. }
  10858. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10859. }
  10860. }
  10861. }
  10862. this.$forceUpdate();
  10863. })
  10864. .catch((err) => {
  10865. console.error(err);
  10866. });
  10867. },
  10868. OtherMb(type, task) {
  10869. if (task === 0 || task) {
  10870. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10871. task
  10872. ].isEvaFold = true;
  10873. }
  10874. this.typeMode = type;
  10875. setTimeout(() => {
  10876. this.checkEva(this.checkId);
  10877. setTimeout(() => {
  10878. this.checkEva(this.checkId);
  10879. }, 100);
  10880. }, 100);
  10881. },
  10882. openMember() {
  10883. this.searchTN = "";
  10884. this.getTeacher();
  10885. this.dialogVisibleMember = true;
  10886. },
  10887. checkEva(id, type) {
  10888. this.dialogVisiblemb = false;
  10889. this.selectEva();
  10890. if (this.evalua != id && type == 2) {
  10891. this.$message.success("导入成功");
  10892. setTimeout(() => {
  10893. this.checkEva(id);
  10894. }, 100);
  10895. }
  10896. this.evalua = id;
  10897. this.checkId = id;
  10898. if (this.evalua != "") {
  10899. for (var i = 0; i < this.evaJuri.length; i++) {
  10900. if (this.evalua == this.evaJuri[i].id) {
  10901. this.eTitle = this.evaJuri[i].title;
  10902. this.eJson = JSON.parse(this.evaJuri[i].content);
  10903. }
  10904. }
  10905. this.data.data = [];
  10906. this.$forceUpdate();
  10907. setTimeout(() => {
  10908. this.setMindData();
  10909. }, 1000);
  10910. }
  10911. },
  10912. deleteEva() {
  10913. let _this = this;
  10914. if (_this.evalua == "") {
  10915. this.$message.warning("内容已经清空了,请勿重复清空");
  10916. return;
  10917. }
  10918. _this
  10919. .$confirm("确定删除此目标吗?", "提示", {
  10920. confirmButtonText: "确定",
  10921. cancelButtonText: "取消",
  10922. type: "warning",
  10923. })
  10924. .then(() => {
  10925. _this.evalua = "";
  10926. _this.checkId = "";
  10927. _this.eTitle = "";
  10928. let _unitJson = _this.unitJson;
  10929. for (var i = 0; i < _unitJson.length; i++) {
  10930. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10931. for (var j = 0; j < _task.length; j++) {
  10932. let _eList = _task[j].eList;
  10933. for (var k = 0; k < _eList.length; k++) {
  10934. delete _eList[k].target;
  10935. }
  10936. }
  10937. }
  10938. _this.$forceUpdate();
  10939. if (_this.cid) {
  10940. _this.updateWork();
  10941. }
  10942. })
  10943. .catch(() => {
  10944. return;
  10945. });
  10946. },
  10947. selectEva() {
  10948. let params = {
  10949. oid: this.oid,
  10950. };
  10951. this.ajax
  10952. .get(this.$store.state.api + "selectAllEvaluation", params)
  10953. .then((res) => {
  10954. this.evaJuri = res.data[0];
  10955. // 在复制操作之前记录滚动位置
  10956. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10957. // 执行复制操作
  10958. // 复制操作完成后恢复滚动位置
  10959. this.$nextTick(() => {
  10960. if (this.$refs.scrollContainer) {
  10961. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10962. }
  10963. });
  10964. })
  10965. .catch((err) => {
  10966. console.error(err);
  10967. });
  10968. },
  10969. setMindData() {
  10970. let targetArray = [];
  10971. this.data.data = [];
  10972. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10973. let _eJson = Object.keys(this.eJson);
  10974. let _e = this.eJson;
  10975. for (let i = 0; i < _eJson.length; i++) {
  10976. let element = _e[_eJson[i]];
  10977. this.data.data.push({
  10978. id: element.id,
  10979. parentid: "root",
  10980. topic: element.name,
  10981. });
  10982. // targetArray.push({
  10983. // id: element.id,
  10984. // parentid: "root",
  10985. // name: element.name,
  10986. // });
  10987. targetArray.push({
  10988. value: element.name,
  10989. label: element.name,
  10990. children: [],
  10991. });
  10992. let _eJsonc = Object.keys(element.child);
  10993. let _e2 = element.child;
  10994. for (let j = 0; j < _eJsonc.length; j++) {
  10995. let _ec = _e2[_eJsonc[j]];
  10996. this.data.data.push({
  10997. id: _ec.id,
  10998. parentid: element.id,
  10999. topic: _ec.name,
  11000. });
  11001. // targetArray.push({
  11002. // id: _ec.id,
  11003. // parentid: element.id,
  11004. // name: _ec.name,
  11005. // });
  11006. targetArray[i].children.push({
  11007. value: _ec.name,
  11008. label: _ec.name,
  11009. children: [],
  11010. });
  11011. let _eJsonz = Object.keys(_ec.child);
  11012. let _e3 = _ec.child;
  11013. for (let z = 0; z < _eJsonz.length; z++) {
  11014. let _ez = _e3[_eJsonz[z]];
  11015. this.data.data.push({
  11016. id: _ez.id,
  11017. parentid: _ec.id,
  11018. topic: _ez.name,
  11019. });
  11020. // targetArray.push({
  11021. // id: _ez.id,
  11022. // parentid: _ec.id,
  11023. // name: _ez.name,
  11024. // });
  11025. targetArray[i].children[j].children.push({
  11026. value: _ez.name,
  11027. label: _ez.name,
  11028. });
  11029. }
  11030. }
  11031. }
  11032. this.targetArray = targetArray;
  11033. this.$forceUpdate();
  11034. },
  11035. /*添加评价 */
  11036. addEList(index, tIndex) {
  11037. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11038. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11039. value: "",
  11040. detail: "",
  11041. score: 5,
  11042. })
  11043. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11044. { value: "", detail: "", score: 5 },
  11045. ]);
  11046. this.$forceUpdate();
  11047. },
  11048. openEList(index, tIndex) {
  11049. this.evaIndex = index;
  11050. this.evatIndex = tIndex;
  11051. this.evaBoxDialog = true;
  11052. },
  11053. addCET(index, tIndex) {
  11054. this.cetIndex = index;
  11055. this.cettIndex = tIndex;
  11056. this.selectAllType1();
  11057. },
  11058. addCETemplate() {
  11059. var array =
  11060. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11061. .eList;
  11062. let params = [
  11063. {
  11064. uid: this.userid,
  11065. n: this.templateName,
  11066. json: JSON.stringify(array),
  11067. t: 1,
  11068. oid: this.oid,
  11069. },
  11070. ];
  11071. this.ajax
  11072. .post(this.$store.state.api + "addCETShare", params)
  11073. .then((res) => {
  11074. this.addTypeByCET(res.data[0][0].id);
  11075. })
  11076. .catch((err) => {
  11077. this.$message.error("网络不佳");
  11078. console.error(err);
  11079. });
  11080. },
  11081. addTypeByCET(id) {
  11082. if (this.setTypeJson.two == "") {
  11083. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11084. return;
  11085. }
  11086. let params = {
  11087. cid: id,
  11088. };
  11089. this.ajax
  11090. .get(this.$store.state.api + "deleteCETLabel", params)
  11091. .then((res) => {
  11092. for (var i = 0; i < 2; i++) {
  11093. let tid = "";
  11094. if (i == 0) {
  11095. tid = this.setTypeJson.one;
  11096. } else {
  11097. tid = this.setTypeJson.two;
  11098. }
  11099. let params = [
  11100. {
  11101. cid: id,
  11102. tid: tid,
  11103. uid: this.userid,
  11104. },
  11105. ];
  11106. this.ajax
  11107. .post(this.$store.state.api + "addCETLabel", params)
  11108. .then((res) => {
  11109. this.$message({
  11110. message: "添加成功",
  11111. type: "success",
  11112. });
  11113. this.close();
  11114. })
  11115. .catch((err) => {
  11116. this.$message.error("网络不佳");
  11117. console.error(err);
  11118. });
  11119. }
  11120. })
  11121. .catch((err) => {
  11122. this.$message.error("网络不佳");
  11123. console.error(err);
  11124. });
  11125. },
  11126. updateEvaJson(array) {
  11127. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11128. this.evatIndex
  11129. ].eList = array;
  11130. },
  11131. forceUpdate() {
  11132. this.$forceUpdate();
  11133. },
  11134. deletEList(index, tIndex, eIndex) {
  11135. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11136. eIndex,
  11137. 1
  11138. );
  11139. this.$forceUpdate();
  11140. },
  11141. getChoosePic(t) {
  11142. this.chooseType = t;
  11143. this.getAllBanner();
  11144. },
  11145. getAllBanner() {
  11146. this.sysPicVisible = true;
  11147. let params = {
  11148. t: this.chooseType,
  11149. };
  11150. this.ajax
  11151. .get(this.$store.state.api + "selectAllBanner", params)
  11152. .then((res) => {
  11153. this.sysPic = res.data[0];
  11154. })
  11155. .catch((err) => {
  11156. console.error(err);
  11157. });
  11158. },
  11159. // getClass() {
  11160. // let params = {
  11161. // oid: this.oid,
  11162. // };
  11163. // this.ajax
  11164. // .get(this.$store.state.api + "selectClassBySchool", params)
  11165. // .then((res) => {
  11166. // this.classJuri = res.data[0];
  11167. // })
  11168. // .catch((err) => {
  11169. // console.error(err);
  11170. // });
  11171. // },
  11172. deleteSysPic() {
  11173. this.cover = [];
  11174. this.isSysPic = false;
  11175. this.isSysPic2 = false;
  11176. },
  11177. deleteSelectPic() {
  11178. this.selectJson.url = "";
  11179. },
  11180. setEListStar() {
  11181. this.$forceUpdate();
  11182. },
  11183. deletRateList(i) {
  11184. this.rateJson.splice(i, 1);
  11185. },
  11186. addRateList() {
  11187. this.rateJson.push({ detail: "", score: 5, value: "" });
  11188. },
  11189. addSt() {
  11190. this.sentenceList.push({
  11191. sentenceTitle: "",
  11192. addSentence: [],
  11193. rightAnswer: [],
  11194. });
  11195. },
  11196. addSen(i) {
  11197. if (!this.sentenceList[i].sentenceTitle) {
  11198. this.$message.error("请填写卡片内容!");
  11199. return;
  11200. }
  11201. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11202. this.$message.error("卡片内容字数不能超过10位");
  11203. return;
  11204. }
  11205. if (
  11206. this.sentenceList[i].addSentence.indexOf(
  11207. this.sentenceList[i].sentenceTitle
  11208. ) !== -1
  11209. ) {
  11210. this.$message.error("不能添加重复的卡片内容!");
  11211. return;
  11212. }
  11213. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11214. // this.isPushTitleList.push(this.sentenceTitle);
  11215. this.sentenceList[i].sentenceTitle = "";
  11216. },
  11217. setRightAnswer(s, i, j) {
  11218. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11219. this.sentenceList[i].rightAnswer.push(s);
  11220. }
  11221. },
  11222. returnCard(r, i, j) {
  11223. this.sentenceList[i].rightAnswer.splice(j, 1);
  11224. },
  11225. addSentenceTool() {
  11226. for (var i = 0; i < this.sentenceList.length; i++) {
  11227. if (this.sentenceList[i].rightAnswer.length == 0) {
  11228. this.$message.error(`请将题目${i + 1}设置完整。`);
  11229. return;
  11230. }
  11231. if (
  11232. this.sentenceList[i].addSentence.length !=
  11233. this.sentenceList[i].rightAnswer.length
  11234. ) {
  11235. this.$message.error(`请将题目${i + 1}设置完整。`);
  11236. return;
  11237. }
  11238. }
  11239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11240. this.taskCount
  11241. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11242. this.sentenceList = [
  11243. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11244. ];
  11245. this.dialogVisibleSentence = false;
  11246. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11247. // itemTaskIndex
  11248. // ].toolChoose[toolIndex].tool = [];
  11249. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11250. // itemTaskIndex
  11251. // ].toolChoose[toolIndex].tool.push(i);
  11252. if (
  11253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11254. .toolChoose[this.toolIndex].tool != 47
  11255. ) {
  11256. this.addTools(47, this.taskCount, this.toolIndex);
  11257. }
  11258. },
  11259. addTableJson() {
  11260. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11261. // this.$message.error("请将信息填写完整!");
  11262. // return;
  11263. // }
  11264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11265. this.taskCount
  11266. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11267. // this.tableJson = [{ text: "" }];
  11268. // this.dialogVisibleTable = false;
  11269. this.$message.success("上传成功");
  11270. if (
  11271. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11272. .toolChoose[this.toolIndex].tool != 48
  11273. ) {
  11274. this.addTools(48, this.taskCount, this.toolIndex);
  11275. }
  11276. },
  11277. addWordJson() {
  11278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11279. this.taskCount
  11280. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11281. // this.wordJson = [{ text: "" }];
  11282. // this.dialogVisibleWord = false;
  11283. this.$message.success("上传成功");
  11284. if (
  11285. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11286. .toolChoose[this.toolIndex].tool != 52
  11287. ) {
  11288. this.addTools(52, this.taskCount, this.toolIndex);
  11289. }
  11290. },
  11291. addMoreUpload() {
  11292. if (this.uploadJson.length == 0) {
  11293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11294. this.taskCount
  11295. ].toolChoose[this.toolIndex].uploadJson = [];
  11296. } else {
  11297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11298. this.taskCount
  11299. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11300. }
  11301. this.uploadJson = [];
  11302. this.dialogVisibleMoreUpload = false;
  11303. if (
  11304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11305. .toolChoose[this.toolIndex].tool != 50
  11306. ) {
  11307. this.addTools(50, this.taskCount, this.toolIndex);
  11308. }
  11309. },
  11310. addPreTime() {
  11311. if (this.preTime == 0) {
  11312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11313. this.taskCount
  11314. ].toolChoose[this.toolIndex].preTime = 0;
  11315. } else {
  11316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11317. this.taskCount
  11318. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11319. }
  11320. this.preTime = 0;
  11321. this.dialogVisiblePreTime = false;
  11322. if (
  11323. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11324. .toolChoose[this.toolIndex].tool != 10
  11325. ) {
  11326. this.addTools(10, this.taskCount, this.toolIndex);
  11327. }
  11328. },
  11329. goToTask(i) {
  11330. this.toolIndexType = "";
  11331. if (this.isClickColor == i + 1) {
  11332. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11333. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11334. // } else {
  11335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11336. i
  11337. ].toolOpen = true;
  11338. // }
  11339. this.$forceUpdate();
  11340. return;
  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. taskOpen(i, stageIndex) {
  11353. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11354. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11355. } else {
  11356. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11357. }
  11358. this.updateWork3(stageIndex);
  11359. this.$forceUpdate();
  11360. },
  11361. goToTask2(i, stage) {
  11362. this.toolIndexType = "";
  11363. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11364. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11365. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11366. // } else {
  11367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11368. i
  11369. ].toolOpen = true;
  11370. // }
  11371. this.$forceUpdate();
  11372. return;
  11373. }
  11374. if (this.unitIndex != stage) {
  11375. if (this.panUnitJson() == 2) {
  11376. return;
  11377. }
  11378. this.unitSet(stage);
  11379. }
  11380. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11381. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11382. // } else {
  11383. document.querySelectorAll(".basic_box")[0].scrollTop =
  11384. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11385. this.isClickColor = i + 1;
  11386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11387. // }
  11388. this.$forceUpdate();
  11389. },
  11390. taskMove(type, index) {
  11391. this.$confirm(
  11392. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11393. "提示",
  11394. {
  11395. confirmButtonText: "确定",
  11396. cancelButtonText: "取消",
  11397. type: "warning",
  11398. }
  11399. )
  11400. .then(() => {
  11401. if (type == 1) {
  11402. if (index > 0) {
  11403. let a = JSON.parse(
  11404. JSON.stringify(
  11405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11406. index - 1
  11407. ]
  11408. )
  11409. );
  11410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11413. }
  11414. } else {
  11415. if (
  11416. index <
  11417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11418. ) {
  11419. let a = JSON.parse(
  11420. JSON.stringify(
  11421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11422. index + 1
  11423. ]
  11424. )
  11425. );
  11426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11429. }
  11430. }
  11431. this.$forceUpdate();
  11432. })
  11433. .catch(() => {
  11434. return;
  11435. });
  11436. },
  11437. stageMove(type, index) {
  11438. if (type == 1) {
  11439. if (index > 0) {
  11440. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  11441. let acid = JSON.parse(
  11442. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  11443. );
  11444. let bcid = JSON.parse(
  11445. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11446. );
  11447. this.unitJson3[index - 1] = this.unitJson3[index];
  11448. this.unitJson3[index] = a;
  11449. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  11450. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11451. }
  11452. } else {
  11453. if (index < this.unitJson3.length - 1) {
  11454. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11455. let acid = JSON.parse(
  11456. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11457. );
  11458. let bcid = JSON.parse(
  11459. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11460. );
  11461. this.unitJson3[index + 1] = this.unitJson3[index];
  11462. this.unitJson3[index] = a;
  11463. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11464. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11465. }
  11466. }
  11467. this.$forceUpdate();
  11468. },
  11469. addGroup(i) {
  11470. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11471. this.groupJson.group.push({
  11472. name: "第" + (this.groupJson.group.length + 1) + "组",
  11473. });
  11474. },
  11475. deleteGroup(i) {
  11476. this.groupJson.group.splice(i, 1);
  11477. },
  11478. numberPan() {
  11479. if (
  11480. /[^\d]/.test(this.groupJson.number) ||
  11481. this.groupJson.number < 2 ||
  11482. this.groupJson.number > 10
  11483. ) {
  11484. this.$message.error("请输入2-10的数字");
  11485. this.groupJson.number = "";
  11486. }
  11487. },
  11488. addGroupJson() {
  11489. for (var i = 0; i < this.groupJson.group.length; i++) {
  11490. if (!this.groupJson.group[i].name) {
  11491. this.$message.error("请将信息填写完整!");
  11492. return;
  11493. }
  11494. }
  11495. if (!this.groupJson.number) {
  11496. this.$message.error("请将信息填写完整!");
  11497. return;
  11498. }
  11499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11500. this.taskCount
  11501. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11502. JSON.stringify(this.groupJson)
  11503. );
  11504. this.dialogVisibleGroup = false;
  11505. this.groupJson = {};
  11506. if (
  11507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11508. .toolChoose[this.toolIndex].tool != 49
  11509. ) {
  11510. this.addTools(49, this.taskCount, this.toolIndex);
  11511. }
  11512. },
  11513. updateTime(preTime) {
  11514. this.preTime = preTime;
  11515. },
  11516. InviteChange(val) {
  11517. console.log(val);
  11518. let _check = [];
  11519. let _check2 = [];
  11520. for (var i = 0; i < this.grade2.length; i++) {
  11521. var gid = this.grade2[i].id;
  11522. _check.push(gid);
  11523. }
  11524. for (var i = 0; i < this.checkboxList2.length; i++) {
  11525. var _id = this.checkboxList2[i];
  11526. if (_check.indexOf(_id) !== -1) {
  11527. _check2.push(_id);
  11528. }
  11529. }
  11530. this.checkAll = _check2.length === _check.length;
  11531. return;
  11532. let array = JSON.parse(JSON.stringify(val));
  11533. this.inviteCode = this.inviteCode.filter((el) => {
  11534. if (val.indexOf(el.cid) != -1) {
  11535. array.splice(array.indexOf(el.cid), 1);
  11536. return el;
  11537. }
  11538. });
  11539. for (var i = 0; i < array.length; i++) {
  11540. this.getInviteCode(array[i]);
  11541. }
  11542. },
  11543. InviteChange2(val) {
  11544. console.log(val);
  11545. let _check = [];
  11546. let _check2 = [];
  11547. for (var i = 0; i < this.teacherJuri.length; i++) {
  11548. var gid = this.teacherJuri[i].userid;
  11549. _check.push(gid);
  11550. }
  11551. for (var i = 0; i < this.checkboxList3.length; i++) {
  11552. var _id = this.checkboxList3[i];
  11553. if (_check.indexOf(_id) !== -1) {
  11554. _check2.push(_id);
  11555. }
  11556. }
  11557. this.checkAll2 = _check2.length === _check.length;
  11558. this.setMan();
  11559. return;
  11560. let array = JSON.parse(JSON.stringify(val));
  11561. this.inviteCode = this.inviteCode.filter((el) => {
  11562. if (val.indexOf(el.cid) != -1) {
  11563. array.splice(array.indexOf(el.cid), 1);
  11564. return el;
  11565. }
  11566. });
  11567. for (var i = 0; i < array.length; i++) {
  11568. this.getInviteCode(array[i]);
  11569. }
  11570. },
  11571. handleCheckAllChange(val) {
  11572. if (val) {
  11573. for (var i = 0; i < this.grade2.length; i++) {
  11574. var gid = this.grade2[i].id;
  11575. if (this.checkboxList2.indexOf(gid) === -1) {
  11576. this.checkboxList2.push(gid);
  11577. }
  11578. }
  11579. } else {
  11580. let _check = [];
  11581. let _check2 = [];
  11582. for (var i = 0; i < this.grade2.length; i++) {
  11583. var gid = this.grade2[i].id;
  11584. _check.push(gid);
  11585. }
  11586. for (var i = 0; i < this.checkboxList2.length; i++) {
  11587. var _id = this.checkboxList2[i];
  11588. if (_check.indexOf(_id) === -1) {
  11589. _check2.push(_id);
  11590. }
  11591. }
  11592. this.checkboxList2 = _check2;
  11593. }
  11594. this.isIndeterminate = false;
  11595. },
  11596. handleCheckAllChange2(val) {
  11597. if (val) {
  11598. for (var i = 0; i < this.teacherJuri.length; i++) {
  11599. var gid = this.teacherJuri[i].userid;
  11600. if (this.checkboxList3.indexOf(gid) === -1) {
  11601. this.checkboxList3.push(gid);
  11602. }
  11603. }
  11604. } else {
  11605. let _check = [];
  11606. let _check2 = [];
  11607. for (var i = 0; i < this.teacherJuri.length; i++) {
  11608. var gid = this.teacherJuri[i].userid;
  11609. _check.push(gid);
  11610. }
  11611. for (var i = 0; i < this.checkboxList3.length; i++) {
  11612. var _id = this.checkboxList3[i];
  11613. if (_check.indexOf(_id) === -1) {
  11614. _check2.push(_id);
  11615. }
  11616. }
  11617. this.checkboxList3 = _check2;
  11618. }
  11619. this.isIndeterminate2 = false;
  11620. },
  11621. async getInviteCode(cid) {
  11622. let code = this.randomNumber();
  11623. let params = {
  11624. code: code,
  11625. oid: this.oid,
  11626. };
  11627. let type = 1;
  11628. for (var i = 0; i < this.inviteCode.length; i++) {
  11629. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11630. type = 2;
  11631. }
  11632. }
  11633. if (type == 2) {
  11634. this.getInviteCode(cid);
  11635. return;
  11636. }
  11637. const res = await this.ajax.get(
  11638. this.$store.state.api + "selectInviteCode2",
  11639. params
  11640. );
  11641. if (
  11642. res.data.length &&
  11643. res.data[0].length &&
  11644. res.data[0][0].courseId != this.cid
  11645. ) {
  11646. this.getInviteCode(cid);
  11647. return;
  11648. }
  11649. let array = [];
  11650. for (var i = 0; i < this.inviteCode.length; i++) {
  11651. array.push(this.inviteCode[i].cid);
  11652. }
  11653. if (array.indexOf(cid) != -1) {
  11654. this.inviteCode[array.indexOf(cid)].ic = code;
  11655. } else {
  11656. this.inviteCode.push({ cid: cid, ic: code });
  11657. }
  11658. },
  11659. OpenInviteD(cid) {
  11660. let array = [];
  11661. this.icode = "";
  11662. for (var i = 0; i < this.inviteCode.length; i++) {
  11663. array.push(this.inviteCode[i].cid);
  11664. }
  11665. if (array.indexOf(cid) != -1) {
  11666. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11667. }
  11668. this.inviteId = cid;
  11669. this.dialogVisibleInvite = true;
  11670. },
  11671. addInvite() {
  11672. let reg = /^[A-Za-z0-9]{4,}$/;
  11673. if (!reg.test(this.icode)) {
  11674. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11675. return;
  11676. }
  11677. let type = 1;
  11678. for (var i = 0; i < this.inviteCode.length; i++) {
  11679. if (
  11680. this.inviteCode[i].cid != this.inviteId &&
  11681. this.icode == this.inviteCode[i].ic
  11682. ) {
  11683. type = 2;
  11684. }
  11685. }
  11686. if (type == 2) {
  11687. this.$message.error("已有此随机码,不能重复");
  11688. return;
  11689. }
  11690. let params = {
  11691. code: this.icode,
  11692. oid: this.oid,
  11693. };
  11694. this.ajax
  11695. .get(this.$store.state.api + "selectInviteCode", params)
  11696. .then((res) => {
  11697. if (
  11698. res.data.length &&
  11699. res.data[0].length &&
  11700. res.data[0][0].courseId != this.cid
  11701. ) {
  11702. this.$message.error("已有此随机码,不能重复");
  11703. return;
  11704. }
  11705. let array = [];
  11706. for (var i = 0; i < this.inviteCode.length; i++) {
  11707. array.push(this.inviteCode[i].cid);
  11708. }
  11709. if (array.indexOf(this.inviteId) != -1) {
  11710. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11711. } else {
  11712. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11713. }
  11714. this.icode = "";
  11715. this.dialogVisibleInvite = false;
  11716. })
  11717. .catch((err) => {
  11718. console.error(err);
  11719. });
  11720. },
  11721. randomNumber() {
  11722. // 随机生成两位数
  11723. // let num = Math.floor(Math.random() * 900) + 100;
  11724. // 生成 0 到 99 之间的随机整数
  11725. const randomNumber = Math.floor(Math.random() * 100);
  11726. // 如果随机数小于 10,补上前导零
  11727. const num =
  11728. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11729. // 随机生成两个大写字母
  11730. let letters = "";
  11731. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11732. for (let i = 0; i < 3; i++) {
  11733. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11734. }
  11735. // 随机生成两位数字和字母的组合
  11736. let mix = "";
  11737. let chars =
  11738. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11739. for (let i = 0; i < 3; i++) {
  11740. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11741. mix += char;
  11742. }
  11743. // 随机选择一种类型
  11744. let type = Math.floor(Math.random() * 3);
  11745. return num;
  11746. // 根据类型输出结果
  11747. switch (type) {
  11748. case 0:
  11749. console.log(num); // 输出两位数
  11750. return num;
  11751. case 1:
  11752. console.log(letters); // 输出两个大写字母
  11753. return letters;
  11754. case 2:
  11755. console.log(mix); // 输出两位数字和字母的组合
  11756. return mix;
  11757. }
  11758. },
  11759. getPaste() {
  11760. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11761. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11762. if (!iframe && !iframe2) {
  11763. return;
  11764. }
  11765. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11766. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11767. if (copyData && copyData.stageData && copyData.stageData.length) {
  11768. this.isPasteStage = true;
  11769. }
  11770. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11771. this.isPasteStage = true;
  11772. }
  11773. if (copyData && copyData.selectData.length) {
  11774. this.isPasteChoice = true;
  11775. }
  11776. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11777. this.isPasteTask = true;
  11778. }
  11779. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11780. this.isPasteTask = true;
  11781. }
  11782. },
  11783. searchImage() {
  11784. var _this = this;
  11785. _this.imageList = [];
  11786. if (!_this.searchImageValue) {
  11787. _this.sysPicVisible2 = true;
  11788. return;
  11789. }
  11790. _this.imageloading = true;
  11791. _this.ajax
  11792. .post("https://gpt.cocorobo.cn/search_image", {
  11793. page: _this.ppage,
  11794. pagesize: 9,
  11795. query: _this.searchImageValue,
  11796. })
  11797. .then(function (response) {
  11798. // console.log(response.data.data);
  11799. var data = response.data.FunctionResponse.result;
  11800. for (var i = 0; i < data.length; i++) {
  11801. _this.imageList.push({ url: data[i].thumbnail });
  11802. }
  11803. _this.imageloading = false;
  11804. })
  11805. .catch(function (error) {
  11806. console.log(error);
  11807. });
  11808. _this.sysPicVisible2 = true;
  11809. },
  11810. changePicture() {
  11811. this.ppage++;
  11812. this.searchImage();
  11813. },
  11814. resetImage() {
  11815. this.ppage = 1;
  11816. this.searchImage();
  11817. },
  11818. jumpGj(i, j) {
  11819. if (i + 1 != this.isClickColor) {
  11820. this.isClickColor = i + 1;
  11821. }
  11822. var a = document.scrollingElement;
  11823. this.toolIndexType = `gj${i}${j}`;
  11824. let target = document.querySelector(`#gj${i}${j}`);
  11825. if (target) {
  11826. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11827. setTimeout(() => {
  11828. target.scrollIntoView(true);
  11829. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11830. j
  11831. ].isFold3 = false;
  11832. setTimeout(() => {
  11833. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11834. }, 0);
  11835. }, 0);
  11836. }
  11837. },
  11838. jumpGj2(i, j, k) {
  11839. if (this.unitIndex != k) {
  11840. if (this.panUnitJson() == 2) {
  11841. return;
  11842. }
  11843. this.unitSet(k);
  11844. }
  11845. setTimeout(() => {
  11846. if (i + 1 != this.isClickColor) {
  11847. this.isClickColor = i + 1;
  11848. }
  11849. var a = document.scrollingElement;
  11850. this.toolIndexType = `gj${i}${j}${k}`;
  11851. let target = document.querySelector(`#gj${i}${j}`);
  11852. if (target) {
  11853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11854. setTimeout(() => {
  11855. target.scrollIntoView(true);
  11856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11857. j
  11858. ].isFold3 = false;
  11859. setTimeout(() => {
  11860. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11861. }, 0);
  11862. }, 0);
  11863. }
  11864. }, 0);
  11865. },
  11866. dragStart(val, i, j) {
  11867. console.log(this.taskCount);
  11868. this.dragType = "drag";
  11869. this.taskCount = j;
  11870. this.oldIndex = i;
  11871. this.oldData = val;
  11872. },
  11873. dragOver(i, j) {
  11874. this.typeIndex = "chapter-" + j + "-" + i;
  11875. this.newIndex = i;
  11876. },
  11877. dragEnd() {
  11878. if (this.dragType != "drag") {
  11879. this.typeIndex = "";
  11880. this.newIndex = "";
  11881. this.dragType = "";
  11882. this.isdrag = "";
  11883. return;
  11884. }
  11885. console.log(this.taskCount);
  11886. let newItems = [
  11887. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11888. .chapterData,
  11889. ];
  11890. // 删除老的节点
  11891. newItems.splice(this.oldIndex, 1);
  11892. // 在列表中目标位置增加新的节点
  11893. newItems.splice(this.newIndex, 0, this.oldData);
  11894. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11895. this.taskCount
  11896. ].chapterData = [...newItems];
  11897. this.typeIndex = "";
  11898. this.newIndex = "";
  11899. this.dragType = "";
  11900. this.isdrag = "";
  11901. this.$forceUpdate();
  11902. },
  11903. dragTaskStart(val, i, j) {
  11904. this.dragType = "task";
  11905. this.oldIndex = i;
  11906. this.oldData = val;
  11907. this.oldUnitIndex = j;
  11908. },
  11909. dragTaskOver(i, j) {
  11910. this.typeIndex = "task-" + i;
  11911. this.newIndex = i;
  11912. this.checkUnitIndex = j;
  11913. },
  11914. async dragTaskEnd() {
  11915. if (this.dragType != "task") {
  11916. this.newIndex = "";
  11917. this.dragType = "";
  11918. this.typeIndex = "";
  11919. this.checkUnitIndex = "";
  11920. this.isdrag = "";
  11921. return;
  11922. }
  11923. if (
  11924. this.newIndex == this.oldIndex &&
  11925. this.oldUnitIndex == this.checkUnitIndex
  11926. ) {
  11927. this.newIndex = "";
  11928. this.dragType = "";
  11929. this.typeIndex = "";
  11930. this.checkUnitIndex = "";
  11931. this.isdrag = "";
  11932. return;
  11933. }
  11934. let count1 = await this.getWorksCount(
  11935. 2,
  11936. this.checkUnitIndex,
  11937. this.newIndex,
  11938. 0
  11939. );
  11940. let count2 = await this.getWorksCount(
  11941. 2,
  11942. this.oldUnitIndex,
  11943. this.oldIndex,
  11944. 0
  11945. );
  11946. if (count1 > 0 || count2 > 0) {
  11947. this.$confirm(
  11948. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11949. "提示",
  11950. {
  11951. confirmButtonText: "确定",
  11952. cancelButtonText: "取消",
  11953. type: "warning",
  11954. }
  11955. )
  11956. .then(() => {
  11957. if (this.oldUnitIndex != this.checkUnitIndex) {
  11958. let newItems = [
  11959. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11960. ];
  11961. // 删除老的节点
  11962. newItems.splice(this.oldIndex, 1);
  11963. // 在列表中目标位置增加新的节点
  11964. let newItems2 = [
  11965. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11966. ];
  11967. newItems2.splice(this.newIndex, 0, this.oldData);
  11968. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11969. ...newItems,
  11970. ];
  11971. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11972. ...newItems2,
  11973. ];
  11974. } else {
  11975. let newItems = [
  11976. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11977. ];
  11978. let chapterData = []
  11979. if (this.oldIndex == 0) {
  11980. chapterData = newItems[this.oldIndex].chapterData
  11981. newItems[this.oldIndex].chapterData = []
  11982. } else if (this.newIndex == 0) {
  11983. chapterData = newItems[this.newIndex].chapterData
  11984. newItems[this.oldIndex].chapterData = []
  11985. }
  11986. // 删除老的节点
  11987. newItems.splice(this.oldIndex, 1);
  11988. // 在列表中目标位置增加新的节点
  11989. newItems.splice(this.newIndex, 0, this.oldData);
  11990. if (this.oldIndex == 0 || this.newIndex == 0) {
  11991. newItems[0].chapterData = chapterData
  11992. }
  11993. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11994. ...newItems,
  11995. ];
  11996. }
  11997. this.typeIndex = "";
  11998. this.newIndex = "";
  11999. this.dragType = "";
  12000. this.checkUnitIndex = "";
  12001. this.isdrag = "";
  12002. this.updateWork();
  12003. this.$forceUpdate();
  12004. })
  12005. .catch(() => {
  12006. this.newIndex = "";
  12007. this.dragType = "";
  12008. this.typeIndex = "";
  12009. this.checkUnitIndex = "";
  12010. this.isdrag = "";
  12011. return;
  12012. });
  12013. } else {
  12014. if (this.oldUnitIndex != this.checkUnitIndex) {
  12015. let newItems = [
  12016. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12017. ];
  12018. // 删除老的节点
  12019. newItems.splice(this.oldIndex, 1);
  12020. // 在列表中目标位置增加新的节点
  12021. let newItems2 = [
  12022. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12023. ];
  12024. newItems2.splice(this.newIndex, 0, this.oldData);
  12025. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12026. ...newItems,
  12027. ];
  12028. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12029. ...newItems2,
  12030. ];
  12031. } else {
  12032. let newItems = [
  12033. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12034. ];
  12035. let chapterData = []
  12036. if (this.oldIndex == 0) {
  12037. chapterData = newItems[this.oldIndex].chapterData
  12038. newItems[this.oldIndex].chapterData = []
  12039. } else if (this.newIndex == 0) {
  12040. chapterData = newItems[this.newIndex].chapterData
  12041. newItems[this.oldIndex].chapterData = []
  12042. }
  12043. // 删除老的节点
  12044. newItems.splice(this.oldIndex, 1);
  12045. // 在列表中目标位置增加新的节点
  12046. newItems.splice(this.newIndex, 0, this.oldData);
  12047. if (this.oldIndex == 0 || this.newIndex == 0) {
  12048. newItems[0].chapterData = chapterData
  12049. }
  12050. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12051. ...newItems,
  12052. ];
  12053. }
  12054. this.typeIndex = "";
  12055. this.newIndex = "";
  12056. this.dragType = "";
  12057. this.checkUnitIndex = "";
  12058. this.isdrag = "";
  12059. this.updateWork();
  12060. this.$forceUpdate();
  12061. }
  12062. },
  12063. dragUnitStart(val, i) {
  12064. this.dragType = "Unit";
  12065. this.oldIndex = i;
  12066. this.oldData = val;
  12067. },
  12068. dragUnitOver(i) {
  12069. this.typeIndex = "Unit-" + i;
  12070. this.newIndex = i;
  12071. console.log(i, this.unitJson[i].toolOpen);
  12072. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12073. this.unitJson[i].toolOpen = true;
  12074. this.updateWork();
  12075. this.$forceUpdate();
  12076. }
  12077. },
  12078. async dragUnitEnd() {
  12079. if (this.dragType != "Unit") {
  12080. this.newIndex = "";
  12081. this.dragType = "";
  12082. this.typeIndex = "";
  12083. this.isdrag = "";
  12084. return;
  12085. }
  12086. if (this.newIndex == this.oldIndex) {
  12087. this.newIndex = "";
  12088. this.dragType = "";
  12089. this.typeIndex = "";
  12090. this.isdrag = "";
  12091. return;
  12092. }
  12093. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12094. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12095. console.log(count1, count2);
  12096. if (count1 > 0 || count2 > 0) {
  12097. this.$confirm(
  12098. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12099. "提示",
  12100. {
  12101. confirmButtonText: "确定",
  12102. cancelButtonText: "取消",
  12103. type: "warning",
  12104. }
  12105. )
  12106. .then(() => {
  12107. let newItems = [...this.unitJson];
  12108. // 删除老的节点
  12109. newItems.splice(this.oldIndex, 1);
  12110. // 在列表中目标位置增加新的节点
  12111. newItems.splice(this.newIndex, 0, this.oldData);
  12112. this.unitJson = [...newItems];
  12113. this.typeIndex = "";
  12114. this.newIndex = "";
  12115. this.dragType = "";
  12116. this.isdrag = "";
  12117. this.updateWork();
  12118. this.$forceUpdate();
  12119. })
  12120. .catch(() => {
  12121. this.newIndex = "";
  12122. this.dragType = "";
  12123. this.typeIndex = "";
  12124. this.isdrag = "";
  12125. return;
  12126. });
  12127. } else {
  12128. let newItems = [...this.unitJson];
  12129. // 删除老的节点
  12130. newItems.splice(this.oldIndex, 1);
  12131. // 在列表中目标位置增加新的节点
  12132. newItems.splice(this.newIndex, 0, this.oldData);
  12133. this.unitJson = [...newItems];
  12134. this.typeIndex = "";
  12135. this.newIndex = "";
  12136. this.dragType = "";
  12137. this.isdrag = "";
  12138. this.updateWork();
  12139. this.$forceUpdate();
  12140. }
  12141. },
  12142. getWorksCount(type, stage, task, tool) {
  12143. return new Promise((resolve, reject) => {
  12144. let params = [
  12145. {
  12146. cid: this.cid,
  12147. stage: stage,
  12148. task: task,
  12149. tool: tool,
  12150. type: type,
  12151. },
  12152. ];
  12153. this.ajax
  12154. .post(this.$store.state.api + "getCourseWorkCount", params)
  12155. .then((res) => {
  12156. let count = res.data[0][0].count;
  12157. resolve(count);
  12158. })
  12159. .catch((err) => {
  12160. resolve(0);
  12161. this.$message.error("网络不佳");
  12162. console.error(err);
  12163. });
  12164. });
  12165. },
  12166. getTwoType(id) {
  12167. this.twoJson = [];
  12168. var array = this.CourseTypeJson1[
  12169. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12170. ].filter((e) => {
  12171. return e.ppid == id;
  12172. });
  12173. this.twoJson = array;
  12174. this.$forceUpdate();
  12175. },
  12176. ctype() {
  12177. this.oneJson =
  12178. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12179. },
  12180. selectAllType1() {
  12181. this.CourseType1 = [];
  12182. this.CourseTypeJson1 = {};
  12183. this.courseTypeId1 = {};
  12184. this.$forceUpdate();
  12185. let params = {
  12186. org: this.org && this.org != "" ? this.org : "",
  12187. oid: this.oid && this.oid != "" ? this.oid : "",
  12188. };
  12189. this.ajax
  12190. .get(this.$store.state.api + "selectAllEvaType", params)
  12191. .then((res) => {
  12192. this.CourseType1 = res.data;
  12193. for (var i = 0; i < res.data[0].length; i++) {
  12194. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12195. res.data[0][i].name = "一级分类";
  12196. } else if (
  12197. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12198. ) {
  12199. res.data[0][i].name = "二级分类";
  12200. }
  12201. if (!this.cid) {
  12202. this.courseTypeId1[res.data[0][i].id] = [];
  12203. }
  12204. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12205. this.CourseTypeJson1[res.data[0][i].id] = [];
  12206. }
  12207. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12208. for (var j = 0; j < res.data[1].length; j++) {
  12209. if (res.data[0][i].id == res.data[1][j].pid) {
  12210. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12211. }
  12212. }
  12213. // } else {
  12214. if (res.data[2].length > 0) {
  12215. for (var j = 0; j < res.data[2].length; j++) {
  12216. if (res.data[0][i].id == res.data[2][j].pid) {
  12217. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12218. }
  12219. }
  12220. }
  12221. if (res.data[3].length > 0) {
  12222. for (var j = 0; j < res.data[3].length; j++) {
  12223. if (res.data[0][i].id == res.data[3][j].pid) {
  12224. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12225. }
  12226. }
  12227. }
  12228. // }
  12229. }
  12230. this.ctype();
  12231. this.cetBoxDialog = true;
  12232. })
  12233. .catch((err) => {
  12234. console.error(err);
  12235. });
  12236. },
  12237. setAiJson(pan,string){
  12238. this.aiJson[pan] = string
  12239. this.$forceUpdate();
  12240. },
  12241. openAiDialog(clickType, type, callback, index, tindex) {
  12242. this.clickType = clickType
  12243. let sub = []
  12244. if (this.courseTypeId.length) {
  12245. for (var i = 0; i < this.courseTypeId.length; i++) {
  12246. let _sid = this.courseTypeId[i]
  12247. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12248. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12249. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12250. }
  12251. }
  12252. }
  12253. }
  12254. if (type == "aiDetail") {
  12255. if (this.ttextLoading) {
  12256. this.$message({
  12257. message: "请回答完毕后再次发送",
  12258. type: "warning"
  12259. });
  12260. return;
  12261. }
  12262. this.aitype = "aiDetail"
  12263. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12264. this.aiText = this.aiJson.aiDetail
  12265. } else if (type == "aiOutline") {
  12266. this.aitype = "aiOutline"
  12267. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12268. this.aiText = this.aiJson.aiOutline
  12269. } else if (type == "aiTask") {
  12270. this.aitype = "aiTask"
  12271. var _text = ""
  12272. for (var i = 0; i < this.teacherText.length; i++) {
  12273. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12274. }
  12275. // this.aiText = `请根据${_text}。`
  12276. this.aiText = this.aiJson.aiTask
  12277. this.aiCallBack = callback
  12278. } else if (type == "aiDetail1") {
  12279. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12280. this.$message({
  12281. message: "请回答完毕后再次发送",
  12282. type: "warning"
  12283. });
  12284. return;
  12285. }
  12286. this.aitype = "aiDetail1"
  12287. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12288. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12289. this.aiText = this.aiJson.aiDetail1
  12290. this.aiCallBack = callback
  12291. this.aiIndex = index
  12292. } else if (type == "aiDetail2") {
  12293. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12294. this.$message({
  12295. message: "请回答完毕后再次发送",
  12296. type: "warning"
  12297. });
  12298. return;
  12299. }
  12300. this.aitype = "aiDetail2"
  12301. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12302. this.aiText = this.aiJson.aiDetail2
  12303. this.aiCallBack = callback
  12304. this.aiIndex = index
  12305. } else if (type == "aiDetail3") {
  12306. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12307. this.$message({
  12308. message: "请回答完毕后再次发送",
  12309. type: "warning"
  12310. });
  12311. return;
  12312. }
  12313. this.aitype = "aiDetail3"
  12314. this.aiText = this.aiJson.aiDetail3
  12315. this.aiIndex = index + '-' + tindex
  12316. } else if (type == "aiDetail4") {
  12317. var _text = ""
  12318. for (var i = 0; i < callback.length; i++) {
  12319. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12320. }
  12321. this.aitype = "aiDetail4"
  12322. this.aiText = this.aiJson.aiDetail4
  12323. this.aiIndex = index
  12324. } else if (type == "aiTeacher") {
  12325. this.aitype = "aiTeacher"
  12326. var _text = ""
  12327. for (var i = 0; i < this.dArray.length; i++) {
  12328. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12329. }
  12330. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12331. this.aiText = this.aiJson.aiTeacher
  12332. this.aiCallBack = callback
  12333. } else if (type == "teacherDetail") {
  12334. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  12335. this.$message({
  12336. message: "请回答完毕后再次发送",
  12337. type: "warning"
  12338. });
  12339. return;
  12340. }
  12341. this.aitype = "teacherDetail"
  12342. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12343. this.aiText = this.aiJson.teacherDetail
  12344. this.aiCallBack = callback
  12345. this.aiIndex = index
  12346. }
  12347. this.dialogVisibleAiD = true
  12348. },
  12349. aiConfirm(msg) {
  12350. let sub = []
  12351. if (this.courseTypeId.length) {
  12352. for (var i = 0; i < this.courseTypeId.length; i++) {
  12353. let _sid = this.courseTypeId[i]
  12354. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12355. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12356. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12357. }
  12358. }
  12359. }
  12360. }
  12361. let url = []
  12362. if (this.infoData.length) {
  12363. for (var i = 0; i < this.infoData.length; i++) {
  12364. url.push(this.infoData[i].url)
  12365. }
  12366. }
  12367. if (this.aitype == "aiDetail") {
  12368. this.detailYou(msg)
  12369. } else if (this.aitype == "aiOutline") {
  12370. this.loading = true
  12371. let message = `
  12372. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12373. --------
  12374. ## 要求
  12375. ${msg} **你需要使用C-POTE教学活动设计框架,其定义参考#补充参考资料 中的C-POTE**。以及##补充参考资料和##参考资料,
  12376. 然后根据Format example的要求返回要以数组的格式
  12377. --------
  12378. ## Format example
  12379. [
  12380. {
  12381. "task": "任务名称1",
  12382. "detail": "任务设计和评价标准"
  12383. },
  12384. {
  12385. "task": "任务名称2",
  12386. "detail": "任务设计和评价标准"
  12387. }
  12388. ]
  12389. --------
  12390. ## 参考资料
  12391. 课程名字:${this.courseName}
  12392. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12393. 学科:${sub.length ? sub.join(",") : "无"}
  12394. 班级:${this.getListClassC(this.checkboxList2)}
  12395. --------
  12396. ## 补充参考资料
  12397. - C-POTE定义:
  12398. C-POTE模型是一种针对跨学科主题学习的教学设计模型,它是在新课标导向下提出的,旨在帮助教师更好地开展跨学科主题学习活动。C-POTE模型的核心是以大概念为基础,以核心素养为导向,通过合理部署内容组织、问题设计、目标制定、任务设计、教学评价等环节,促进学生的深度学习和创新能力的发展。C-POTE模型的名称来源于其五个核心组成部分,分别是:概念群(Concept Group):作为模型的基础,概念群负责将不同学科的知识点进行整合,形成有意义的认知网络。教师需要遴选重要的大概念,使之形成更大的跨学科概念群,为后续的教学活动奠定基础。问题链(Problem Chain):围绕大概念设计一系列有逻辑结构的问题,从具体到抽象,形成问题链。问题链的目的是引导学生通过问题解决的过程深化对大概念的理解。目标层(Objective Layer):明确教学目标,将核心素养具体化,分为“双基—学科思维—高阶素养”三个层次。教师需要根据学科课程标准中的核心素养,将其转化为具体的教学目标。任务簇(Task Cluster):设计一系列指向核心素养的表现性任务,将大任务拆解为若干个活动序列,确保学生能够通过实践活动实现学习目标。证据集(Evidence Set):评价学生学习成果的依据,通过收集学生在跨学科实践过程中的表现证据,进行综合性评价,以促进学生核心素养的发展。
  12399. 补充资料:${url.join(",")}
  12400. 补充描述:${this.courseText2}
  12401. `
  12402. this.aiGet2(message, () => {
  12403. this.loading = false
  12404. this.isOutline = true
  12405. })
  12406. } else if (this.aitype == "aiTask") {
  12407. var _text = ""
  12408. for (var i = 0; i < this.teacherText.length; i++) {
  12409. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12410. }
  12411. let message = `NOTICE
  12412. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  12413. 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.
  12414. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12415. Instruction: Based on the context, follow "Format example", write content.
  12416. # Context
  12417. ## 要求
  12418. ${msg} 以及#补充参考资料和#教学任务教案 输出格式和内容要求参考##格式与要求
  12419. ## 教学任务教案
  12420. ${_text}
  12421. ## 格式与要求
  12422. 任务名:
  12423. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  12424. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12425. 平台工具:
  12426. 工具名:**从工具列表**中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  12427. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  12428. ## 补充参考资料
  12429. 补充资料:${url.join(",")}
  12430. 补充描述:${this.courseText2}
  12431. ## 示例
  12432. [
  12433. {
  12434. "detail": "面向学生的任务描述",
  12435. "elist":[
  12436. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12437. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12438. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12439. ],
  12440. "toolChoose": [
  12441. {
  12442. "tool":"电子白板",
  12443. "detail": "工具描述"
  12444. },
  12445. {
  12446. "tool":"思维大图",
  12447. "detail": "工具描述"
  12448. }
  12449. ]
  12450. },
  12451. {
  12452. "detail": "面向学生的任务描述",
  12453. "elist":[
  12454. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12455. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12456. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12457. ],
  12458. "toolChoose": []
  12459. },
  12460. {
  12461. "detail": "面向学生的任务描述",
  12462. "elist":[
  12463. {"value":"评价名字1","detail":"评价维度1", "score": 5},
  12464. {"value":"评价名字2","detail":"评价维度2", "score": 5},
  12465. {"value":"评价名字3","detail":"评价维度3", "score": 5}
  12466. ],
  12467. "toolChoose": [
  12468. {
  12469. "tool":"文档",
  12470. "detail": "工具描述"
  12471. }
  12472. ]
  12473. }
  12474. ]
  12475. # Format example
  12476. [
  12477. {
  12478. "detail": "该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。",
  12479. "elist":[
  12480. {"value":"评价名字1","detail":"评价维度1","score":5},
  12481. {"value":"评价名字2","detail":"评价维度2","score":5},
  12482. {"value":"评价名字3","detail":"评价维度3","score":5}
  12483. ],//至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  12484. "toolChoose": [
  12485. {
  12486. "tool": "工具", //电子白板,文档,思维导图,表格,作业提交中选择其中一个工具
  12487. "detail": "工具描述"
  12488. }
  12489. ] //可0~2个工具
  12490. }
  12491. ]`
  12492. this.loading = true
  12493. this.aiGet3(message, this.aiCallBack)
  12494. } else if (this.aitype == "aiDetail1") {
  12495. this.aiDetail(msg, this.aiIndex)
  12496. } else if (this.aitype == "aiDetail2") {
  12497. this.aiDetail2(msg, this.aiIndex)
  12498. } else if (this.aitype == "aiDetail3") {
  12499. let _index = this.aiIndex.split('-')
  12500. this.aiDetail3(msg, _index[0], _index[1])
  12501. } else if (this.aitype == "aiDetail4") {
  12502. this.aiDetail4(msg, this.aiIndex)
  12503. } else if (this.aitype == "teacherDetail") {
  12504. this.aiDetail5(msg, this.aiIndex)
  12505. } else if (this.aitype == "aiTeacher") {
  12506. this.loading = true
  12507. var _text = ""
  12508. for (var i = 0; i < this.dArray.length; i++) {
  12509. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12510. }
  12511. let message = `
  12512. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12513. --------
  12514. ## 要求
  12515. ${msg} 以及##补充参考资料和##任务大纲, 然后根据Format example的要求返回要以数组的格式
  12516. --------
  12517. ## 任务大纲
  12518. ${_text}
  12519. --------
  12520. ## 补充参考资料
  12521. 补充资料:${url.join(",")}
  12522. 补充描述:${this.courseText2}
  12523. --------
  12524. ## Format example
  12525. [
  12526. {
  12527. "task": "任务名称1",
  12528. "detail": "教案输出为文本格式就行"
  12529. },
  12530. {
  12531. "task": "任务名称2",
  12532. "detail": "教案输出为文本格式就行"
  12533. }
  12534. ]`
  12535. this.aiGet4(message, () => {
  12536. this.loading = false
  12537. this.isOutline2 = true
  12538. })
  12539. }
  12540. this.setAiJson(this.aitype, msg)
  12541. },
  12542. detailYou(message) {
  12543. this.textLoading = true
  12544. this.ttextLoading = true
  12545. let sub = []
  12546. if (this.courseTypeId.length) {
  12547. for (var i = 0; i < this.courseTypeId.length; i++) {
  12548. let _sid = this.courseTypeId[i]
  12549. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12550. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12551. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12552. }
  12553. }
  12554. }
  12555. }
  12556. let url = []
  12557. if (this.infoData.length) {
  12558. for (var i = 0; i < this.infoData.length; i++) {
  12559. url.push(this.infoData[i].url)
  12560. }
  12561. }
  12562. let msg = `
  12563. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12564. --------
  12565. ## 参考资料
  12566. 课程名字:${this.courseName}
  12567. 课程简要描述:${this.courseText ? this.courseText : '暂无'}
  12568. 学科:${sub.length ? sub.join(",") : "无"}
  12569. 班级:${this.getListClassC(this.checkboxList2)}
  12570. --------
  12571. ## 补充参考资料
  12572. 补充资料:${url.join(",")}
  12573. 补充描述:${this.courseText2}
  12574. --------
  12575. ## 要求
  12576. ${message} 以及##补充参考资料和##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  12577. --------
  12578. ## Format example
  12579. -课程简要描述:
  12580. -驱动性问题:**1个**驱动整个项目的问题
  12581. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  12582. this.aiGet(msg)
  12583. },
  12584. setUnitJson() {
  12585. 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 }] }
  12586. this.$forceUpdate()
  12587. },
  12588. aiGet(messages) {
  12589. let _this = this
  12590. let _uuid = uuidv4();
  12591. let params = JSON.stringify({
  12592. // "model": "Chat",
  12593. model: 'gpt-3.5-turbo',
  12594. temperature: 0,
  12595. max_tokens: 4096,
  12596. top_p: 1,
  12597. frequency_penalty: 0,
  12598. presence_penalty: 0,
  12599. messages: [{
  12600. content: messages,
  12601. role: 'user'
  12602. }],
  12603. uid: _uuid,
  12604. mind_map_question: "",
  12605. })
  12606. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12607. console.log(response);
  12608. // let data = response.data.FunctionResponse
  12609. // if (data.choices && data.choices.length && data.choices[0].message) {
  12610. // _this.courseText = data.choices[0].message.content
  12611. // }
  12612. if (response.data.FunctionResponse.result == "发送成功") {
  12613. } else {
  12614. this.$message.warning(response.data.FunctionResponse.result);
  12615. }
  12616. }).catch(function (error) {
  12617. _this.textLoading = false
  12618. _this.ttextLoading = false
  12619. console.log(error);
  12620. });
  12621. _this.aiGetgetAiContent(_uuid)
  12622. },
  12623. aiGetgetAiContent(_uid) {
  12624. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12625. let _allText = "";
  12626. let _mdText = "";
  12627. _source.onmessage = _e => {
  12628. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12629. //对话已经完成
  12630. _mdText = _mdText.replace("_", "");
  12631. _source.close();
  12632. this.courseText = _mdText;
  12633. this.textLoading = false
  12634. this.ttextLoading = false
  12635. return;
  12636. } else {
  12637. //对话还在继续
  12638. let _text = "";
  12639. _text = _e.data.replaceAll("'", "");
  12640. if (_allText == "") {
  12641. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12642. } else {
  12643. _allText += _text;
  12644. }
  12645. _mdText = _allText + "_";
  12646. _mdText = _mdText.replace(/\\n/g, "\n");
  12647. _mdText = _mdText.replace(/\\/g, "");
  12648. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12649. //转化返回的回复流数据
  12650. this.courseText = _mdText;
  12651. this.textLoading = false
  12652. // 处理流数据
  12653. }
  12654. };
  12655. },
  12656. aiGet2(messages, callback) {
  12657. let _this = this
  12658. let params = JSON.stringify({
  12659. // "model": "Chat",
  12660. model: 'gpt-3.5-turbo',
  12661. temperature: 0,
  12662. max_tokens: 4096,
  12663. top_p: 1,
  12664. frequency_penalty: 0,
  12665. presence_penalty: 0,
  12666. messages: [{
  12667. content: messages,
  12668. role: 'user'
  12669. }],
  12670. stream: false,
  12671. uid: this.userid,
  12672. mind_map_question: "",
  12673. })
  12674. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12675. console.log(response);
  12676. let data = response.data.FunctionResponse
  12677. if (data.choices && data.choices.length && data.choices[0].message) {
  12678. console.log(data.choices[0].message.content);
  12679. let dArray = JSON.parse(data.choices[0].message.content)
  12680. _this.dArray = dArray
  12681. _this.unitJson[0].chapterInfo[0].taskJson = []
  12682. for (var i = 0; i < dArray.length; i++) {
  12683. let _task = dArray[i]
  12684. _this.unitJson[0].chapterInfo[0].taskJson.push({
  12685. task: _task.task,
  12686. taskDetail: "",
  12687. taskDetail2: _task.detail,
  12688. taskDetail3: "",
  12689. chapterData: [],
  12690. toolText: "",
  12691. toolChoose: [
  12692. {
  12693. tool: [],
  12694. toolDetail: "",
  12695. toolType: 0,
  12696. askCount: 1,
  12697. askTitle: "",
  12698. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12699. },
  12700. ],
  12701. isShowTools: false,
  12702. askCount: 1,
  12703. isFold: 1,
  12704. askTitle: "",
  12705. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12706. checkJson: [{ checkCount: [], checkPerent: [] }],
  12707. homeworkList: [],
  12708. })
  12709. }
  12710. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12711. _this.$forceUpdate();
  12712. }
  12713. callback ? callback() : ''
  12714. }).catch(function (error) {
  12715. _this.loading = false
  12716. console.log(error);
  12717. });
  12718. },
  12719. aiGet3(messages, callback) {
  12720. let _this = this
  12721. let params = JSON.stringify({
  12722. // "model": "Chat",
  12723. model: 'gpt-3.5-turbo',
  12724. temperature: 0,
  12725. max_tokens: 4096,
  12726. top_p: 1,
  12727. frequency_penalty: 0,
  12728. presence_penalty: 0,
  12729. messages: [{
  12730. content: messages,
  12731. role: 'user'
  12732. }],
  12733. stream: false,
  12734. uid: this.userid,
  12735. mind_map_question: "",
  12736. })
  12737. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12738. console.log(response);
  12739. let data = response.data.FunctionResponse
  12740. if (data.choices && data.choices.length && data.choices[0].message) {
  12741. console.log(data.choices[0].message.content);
  12742. let tArray = JSON.parse(data.choices[0].message.content)
  12743. // _this.unitJson[0].chapterInfo[0].task = []
  12744. let toolsJson = {
  12745. "电子白板": { tool: 1, type: 1 },
  12746. "文档": { tool: 52, type: 1 },
  12747. "思维导图": { tool: 3, type: 1 },
  12748. "表格": { tool: 48, type: 1 },
  12749. "作业提交": { tool: 16, type: 2 }
  12750. }
  12751. for (var i = 0; i < tArray.length; i++) {
  12752. let _task = tArray[i]
  12753. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  12754. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  12755. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  12756. if (_task.toolChoose.length) {
  12757. for (var j = 0; j < _task.toolChoose.length; j++) {
  12758. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12759. {
  12760. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  12761. toolDetail: _task.toolChoose[j].detail,
  12762. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  12763. askCount: 1,
  12764. askTitle: "",
  12765. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12766. },
  12767. )
  12768. }
  12769. } else {
  12770. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  12771. {
  12772. tool: [],
  12773. toolDetail: "",
  12774. toolType: 0,
  12775. askCount: 1,
  12776. askTitle: "",
  12777. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12778. },
  12779. )
  12780. }
  12781. }
  12782. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12783. _this.$forceUpdate();
  12784. }
  12785. callback ? callback() : ''
  12786. }).catch(function (error) {
  12787. _this.loading = false
  12788. console.log(error);
  12789. });
  12790. },
  12791. aiGet4(messages, callback, clickType) {
  12792. let _this = this
  12793. let params = JSON.stringify({
  12794. // "model": "Chat",
  12795. model: 'gpt-3.5-turbo',
  12796. temperature: 0,
  12797. max_tokens: 4096,
  12798. top_p: 1,
  12799. frequency_penalty: 0,
  12800. presence_penalty: 0,
  12801. messages: [{
  12802. content: messages,
  12803. role: 'user'
  12804. }],
  12805. stream: false,
  12806. uid: this.userid,
  12807. mind_map_question: "",
  12808. })
  12809. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12810. console.log(response);
  12811. let data = response.data.FunctionResponse
  12812. if (data.choices && data.choices.length && data.choices[0].message) {
  12813. console.log(data.choices[0].message.content);
  12814. let dArray = JSON.parse(data.choices[0].message.content)
  12815. _this.teacherText = JSON.parse(data.choices[0].message.content)
  12816. for (var i = 0; i < dArray.length; i++) {
  12817. let _task = dArray[i]
  12818. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  12819. }
  12820. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  12821. _this.$forceUpdate();
  12822. }
  12823. callback ? callback() : ''
  12824. _this.loading = false
  12825. }).catch(function (error) {
  12826. _this.loading = false
  12827. console.log(error);
  12828. });
  12829. },
  12830. aiDetail(msg, index) {
  12831. let _this = this
  12832. const _tindex = 'task-' + index
  12833. const _tindex2 = index
  12834. let url = []
  12835. if (this.infoData.length) {
  12836. for (var i = 0; i < this.infoData.length; i++) {
  12837. url.push(this.infoData[i].url)
  12838. }
  12839. }
  12840. let messages = `
  12841. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12842. --------
  12843. ## 要求
  12844. ${msg} 及#补充参考资料和#教学任务描述 以文本格式输出任务设计和评价标准
  12845. --------
  12846. ## 教学任务描述
  12847. ${_this.aiCallback}
  12848. --------
  12849. ## 补充参考资料
  12850. - 补充资料:${url.join(",")}
  12851. - 补充描述:${_this.courseText2}
  12852. `
  12853. _this.taskDetailLoading.push(_tindex)
  12854. _this.ttaskDetailLoading.push(_tindex)
  12855. let _uuid = uuidv4();
  12856. let params = JSON.stringify({
  12857. // "model": "Chat",
  12858. model: 'gpt-3.5-turbo',
  12859. temperature: 0,
  12860. max_tokens: 4096,
  12861. top_p: 1,
  12862. frequency_penalty: 0,
  12863. presence_penalty: 0,
  12864. messages: [{
  12865. content: messages,
  12866. role: 'user'
  12867. }],
  12868. uid: _uuid,
  12869. mind_map_question: "",
  12870. })
  12871. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12872. console.log(response);
  12873. // let data = response.data.FunctionResponse
  12874. // if (data.choices && data.choices.length && data.choices[0].message) {
  12875. // console.log(data.choices[0].message.content);
  12876. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  12877. // _this.$forceUpdate()
  12878. // }
  12879. if (response.data.FunctionResponse.result == "发送成功") {
  12880. } else {
  12881. this.$message.warning(response.data.FunctionResponse.result);
  12882. }
  12883. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12884. }).catch(function (error) {
  12885. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12886. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  12887. console.log(error);
  12888. });
  12889. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  12890. },
  12891. aiDetailgetAiContent(_uid, loading, _tindex2) {
  12892. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12893. let _allText = "";
  12894. let _mdText = "";
  12895. _source.onmessage = _e => {
  12896. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12897. //对话已经完成
  12898. _mdText = _mdText.replace("_", "");
  12899. _source.close();
  12900. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12901. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12902. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  12903. return;
  12904. } else {
  12905. //对话还在继续
  12906. let _text = "";
  12907. _text = _e.data.replaceAll("'", "");
  12908. if (_allText == "") {
  12909. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12910. } else {
  12911. _allText += _text;
  12912. }
  12913. _mdText = _allText + "_";
  12914. _mdText = _mdText.replace(/\\n/g, "\n");
  12915. _mdText = _mdText.replace(/\\/g, "");
  12916. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  12917. //转化返回的回复流数据
  12918. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  12919. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  12920. // 处理流数据
  12921. }
  12922. };
  12923. },
  12924. aiDetail2(msg, index) {
  12925. let _this = this
  12926. const _tindex = 'task-' + index
  12927. const _tindex2 = index
  12928. let messages = `
  12929. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  12930. --------
  12931. ## 要求
  12932. ${msg}
  12933. --------
  12934. ## 优化信息
  12935. 任务名字: ${_this.aiCallback.task}
  12936. 任务描述: ${_this.aiCallback.taskDetail}
  12937. # 格式与要求
  12938. - 任务名:
  12939. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  12940. _this.taskDetailLoading2.push(_tindex)
  12941. _this.ttaskDetailLoading2.push(_tindex)
  12942. let _uuid = uuidv4();
  12943. let params = JSON.stringify({
  12944. // "model": "Chat",
  12945. model: 'gpt-3.5-turbo',
  12946. temperature: 0,
  12947. max_tokens: 4096,
  12948. top_p: 1,
  12949. frequency_penalty: 0,
  12950. presence_penalty: 0,
  12951. messages: [{
  12952. content: messages,
  12953. role: 'user'
  12954. }],
  12955. uid: _uuid,
  12956. mind_map_question: "",
  12957. })
  12958. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  12959. console.log(response);
  12960. // let data = response.data.FunctionResponse
  12961. // if (data.choices && data.choices.length && data.choices[0].message) {
  12962. // console.log(data.choices[0].message.content);
  12963. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  12964. // _this.$forceUpdate()
  12965. // }
  12966. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  12967. if (response.data.FunctionResponse.result == "发送成功") {
  12968. } else {
  12969. this.$message.warning(response.data.FunctionResponse.result);
  12970. }
  12971. }).catch(function (error) {
  12972. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  12973. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  12974. console.log(error);
  12975. });
  12976. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  12977. },
  12978. aiDetail2getAiContent(_uid, loading, _tindex2) {
  12979. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  12980. let _allText = "";
  12981. let _mdText = "";
  12982. _source.onmessage = _e => {
  12983. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  12984. //对话已经完成
  12985. _mdText = _mdText.replace("_", "");
  12986. _source.close();
  12987. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  12988. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  12989. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  12990. return;
  12991. } else {
  12992. //对话还在继续
  12993. let _text = "";
  12994. _text = _e.data.replaceAll("'", "");
  12995. if (_allText == "") {
  12996. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  12997. } else {
  12998. _allText += _text;
  12999. }
  13000. _mdText = _allText + "_";
  13001. _mdText = _mdText.replace(/\\n/g, "\n");
  13002. _mdText = _mdText.replace(/\\/g, "");
  13003. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13004. //转化返回的回复流数据
  13005. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  13006. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  13007. // 处理流数据
  13008. }
  13009. };
  13010. },
  13011. aiDetail3(msg, index, tindex) {
  13012. let _this = this
  13013. const _tindex = 'task-' + index + tindex
  13014. const _tindex2 = index
  13015. const _tindex3 = tindex
  13016. // **重点考虑该任务及工具名和工具内容的情况下*
  13017. let messages = `
  13018. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13019. --------
  13020. ## 参考内容
  13021. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13022. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13023. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  13024. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  13025. --------
  13026. ## 要求
  13027. ${msg} 输出格式和内容要求参考#格式与要求
  13028. # 格式与要求
  13029. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  13030. _this.taskDetailLoading3.push(_tindex)
  13031. _this.ttaskDetailLoading3.push(_tindex)
  13032. let _uuid = uuidv4();
  13033. let params = JSON.stringify({
  13034. // "model": "Chat",
  13035. model: 'gpt-3.5-turbo',
  13036. temperature: 0,
  13037. max_tokens: 4096,
  13038. top_p: 1,
  13039. frequency_penalty: 0,
  13040. presence_penalty: 0,
  13041. messages: [{
  13042. content: messages,
  13043. role: 'user'
  13044. }],
  13045. uid: _uuid,
  13046. mind_map_question: "",
  13047. })
  13048. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13049. console.log(response);
  13050. let data = response.data.FunctionResponse
  13051. // if (data.choices && data.choices.length && data.choices[0].message) {
  13052. // console.log(data.choices[0].message.content);
  13053. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  13054. // _this.$forceUpdate()
  13055. // }
  13056. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13057. if (response.data.FunctionResponse.result == "发送成功") {
  13058. } else {
  13059. this.$message.warning(response.data.FunctionResponse.result);
  13060. }
  13061. }).catch(function (error) {
  13062. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  13063. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  13064. console.log(error);
  13065. });
  13066. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  13067. },
  13068. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  13069. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13070. let _allText = "";
  13071. let _mdText = "";
  13072. _source.onmessage = _e => {
  13073. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13074. //对话已经完成
  13075. _mdText = _mdText.replace("_", "");
  13076. _source.close();
  13077. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13078. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13079. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  13080. return;
  13081. } else {
  13082. //对话还在继续
  13083. let _text = "";
  13084. _text = _e.data.replaceAll("'", "");
  13085. if (_allText == "") {
  13086. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13087. } else {
  13088. _allText += _text;
  13089. }
  13090. _mdText = _allText + "_";
  13091. _mdText = _mdText.replace(/\\n/g, "\n");
  13092. _mdText = _mdText.replace(/\\/g, "");
  13093. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13094. //转化返回的回复流数据
  13095. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  13096. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  13097. // 处理流数据
  13098. }
  13099. };
  13100. },
  13101. aiDetail4(msg, index) {
  13102. if (!msg.length) {
  13103. this.$message.error("请添加评价后才能优化")
  13104. return
  13105. }
  13106. let _this = this
  13107. const _tindex = 'task-' + index
  13108. const _tindex2 = index
  13109. var _text = ""
  13110. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  13111. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  13112. }
  13113. // **重点考虑该任务详情**
  13114. let messages = `
  13115. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13116. --------
  13117. ## 参考内容
  13118. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  13119. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  13120. 评价设计:${_text}
  13121. --------
  13122. ## 要求
  13123. ${msg} 输出格式和内容要求参考# 格式与要求
  13124. --------
  13125. # 格式与要求
  13126. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13127. --------
  13128. ## Format example
  13129. [
  13130. {"value":"评价维度1","detail":"维度描述1","score":5},
  13131. {"value":"评价维度2","detail":"维度描述2","score":5},
  13132. {"value":"评价维度3","detail":"维度描述3","score":5}
  13133. ]`
  13134. _this.taskDetailLoading4.push(_tindex)
  13135. let params = JSON.stringify({
  13136. // "model": "Chat",
  13137. model: 'gpt-3.5-turbo',
  13138. temperature: 0,
  13139. max_tokens: 4096,
  13140. top_p: 1,
  13141. frequency_penalty: 0,
  13142. presence_penalty: 0,
  13143. messages: [{
  13144. content: messages,
  13145. role: 'user'
  13146. }],
  13147. stream: false,
  13148. uid: this.userid,
  13149. mind_map_question: "",
  13150. })
  13151. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13152. console.log(response);
  13153. let data = response.data.FunctionResponse
  13154. if (data.choices && data.choices.length && data.choices[0].message) {
  13155. console.log(data.choices[0].message.content);
  13156. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  13157. _this.$forceUpdate()
  13158. }
  13159. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13160. }).catch(function (error) {
  13161. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13162. console.log(error);
  13163. });
  13164. },
  13165. aiDetail5(msg, index) {
  13166. let _this = this
  13167. const _tindex = 'task-' + index
  13168. const _tindex2 = index
  13169. let url = []
  13170. if (this.infoData.length) {
  13171. for (var i = 0; i < this.infoData.length; i++) {
  13172. url.push(this.infoData[i].url)
  13173. }
  13174. }
  13175. let messages = `
  13176. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  13177. --------
  13178. ## 要求
  13179. ${msg}
  13180. -------
  13181. ## 教案描述
  13182. ${_this.aiCallBack}
  13183. ## 补充参考资料
  13184. - 补充资料:${url.join(",")}
  13185. - 补充描述:${this.courseText2}`
  13186. _this.taskDetailLoading5.push(_tindex)
  13187. _this.ttaskDetailLoading5.push(_tindex)
  13188. let _uuid = uuidv4();
  13189. let params = JSON.stringify({
  13190. // "model": "Chat",
  13191. model: 'gpt-3.5-turbo',
  13192. temperature: 0,
  13193. max_tokens: 4096,
  13194. top_p: 1,
  13195. frequency_penalty: 0,
  13196. presence_penalty: 0,
  13197. messages: [{
  13198. content: messages,
  13199. role: 'user'
  13200. }],
  13201. uid: _uuid,
  13202. mind_map_question: "",
  13203. })
  13204. _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13205. console.log(response);
  13206. // let data = response.data.FunctionResponse
  13207. // if (data.choices && data.choices.length && data.choices[0].message) {
  13208. // console.log(data.choices[0].message.content);
  13209. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  13210. // _this.$forceUpdate()
  13211. // }
  13212. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  13213. if (response.data.FunctionResponse.result == "发送成功") {
  13214. } else {
  13215. this.$message.warning(response.data.FunctionResponse.result);
  13216. }
  13217. }).catch(function (error) {
  13218. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  13219. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  13220. console.log(error);
  13221. });
  13222. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  13223. },
  13224. aiDetail5getAiContent(_uid, loading, _tindex2) {
  13225. let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13226. let _allText = "";
  13227. let _mdText = "";
  13228. _source.onmessage = _e => {
  13229. if (_e.data.replace("'", "").replace("'", "") == "[DONE]") {
  13230. //对话已经完成
  13231. _mdText = _mdText.replace("_", "");
  13232. _source.close();
  13233. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13234. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13235. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  13236. return;
  13237. } else {
  13238. //对话还在继续
  13239. let _text = "";
  13240. _text = _e.data.replaceAll("'", "");
  13241. if (_allText == "") {
  13242. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13243. } else {
  13244. _allText += _text;
  13245. }
  13246. _mdText = _allText + "_";
  13247. _mdText = _mdText.replace(/\\n/g, "\n");
  13248. _mdText = _mdText.replace(/\\/g, "");
  13249. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13250. //转化返回的回复流数据
  13251. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  13252. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  13253. // 处理流数据
  13254. }
  13255. };
  13256. },
  13257. },
  13258. beforeDestroy() {
  13259. clearTimeout(this.timer);
  13260. this.timer = null;
  13261. clearInterval(this.timer2);
  13262. this.timer2 = null;
  13263. clearInterval(this.pasteTimer);
  13264. this.pasteTimer = null;
  13265. },
  13266. beforeRouteLeave(to, from, next) {
  13267. clearTimeout(this.timer);
  13268. this.timer = null;
  13269. clearInterval(this.timer2);
  13270. this.timer2 = null;
  13271. clearInterval(this.pasteTimer);
  13272. this.pasteTimer = null;
  13273. next();
  13274. },
  13275. created() {
  13276. this.getStudent();
  13277. this.getTeacher();
  13278. this.getClass();
  13279. this.selectGrage();
  13280. this.getTemplate();
  13281. // this.selectType();
  13282. this.selectEva();
  13283. this.loading = false;
  13284. this.timer2 = setInterval(() => {
  13285. this.selectEva();
  13286. }, 5000);
  13287. this.pasteTimer = setInterval(() => {
  13288. this.getPaste();
  13289. }, 1000);
  13290. setTimeout(() => {
  13291. // this.selectAllType();
  13292. this.selectCourseDetail();
  13293. }, 500);
  13294. let _this = this;
  13295. window.pasteStage = function (json) {
  13296. _this.pasteStage(json);
  13297. };
  13298. window.pasteTask = function (json) {
  13299. _this.pasteTask(json);
  13300. };
  13301. },
  13302. };
  13303. </script>
  13304. <style scoped>
  13305. @media screen and (max-width: 1280px) {
  13306. .mbCss {
  13307. flex-direction: column !important;
  13308. }
  13309. .pjCss {
  13310. width: 100% !important;
  13311. }
  13312. .evaCss {
  13313. width: 100% !important;
  13314. margin-top: 10px;
  13315. }
  13316. }
  13317. .el-table>>>.even_row {
  13318. background-color: #f1f1f1 !important;
  13319. }
  13320. .dialog_diy>>>.el-dialog__header {
  13321. background: #3c3c3c !important;
  13322. padding: 15px 20px;
  13323. }
  13324. .dialog_diy>>>.el-dialog__title {
  13325. color: #fff;
  13326. }
  13327. .dialog_diy>>>.el-dialog__headerbtn {
  13328. top: 19px;
  13329. }
  13330. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  13331. color: #fff;
  13332. }
  13333. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  13334. color: #fff;
  13335. }
  13336. .dialog_diy>>>.el-dialog__body,
  13337. .dialog_diy>>>.el-dialog__footer {
  13338. background: #fafafa;
  13339. }
  13340. .dialog_diy3>>>.el-dialog__body,
  13341. .dialog_diy3>>>.el-dialog__footer {
  13342. background: #eee !important;
  13343. }
  13344. .dialog_diy3>>>.el-dialog__body {
  13345. padding: 20px 20px;
  13346. }
  13347. .dialog_diyStage>>>.el-dialog__body {
  13348. padding: 10px;
  13349. }
  13350. .source_diy>>>.el-dialog {
  13351. height: 100% !important;
  13352. margin: 0 auto !important;
  13353. }
  13354. .source_diy>>>.el-dialog__body {
  13355. height: calc(100% - 185px);
  13356. overflow: auto;
  13357. background: #e6eaf0;
  13358. }
  13359. .source_diy>>>.el-dialog__footer {
  13360. background: #e6eaf0 !important;
  13361. }
  13362. .left {
  13363. border-right: 1px solid rgb(60, 94, 143);
  13364. display: flex;
  13365. flex-direction: column;
  13366. align-items: center;
  13367. min-height: 600px;
  13368. width: 385px;
  13369. height: 80%;
  13370. }
  13371. .tips {
  13372. color: rgb(128, 128, 128);
  13373. font-size: 12px;
  13374. width: 270px;
  13375. margin: 40px;
  13376. }
  13377. .pb_content {
  13378. height: 100% !important;
  13379. /* margin: 0 20px 0 20px; */
  13380. }
  13381. .pb_content_body {
  13382. width: 100% !important;
  13383. height: 100%;
  13384. display: flex;
  13385. }
  13386. .info_solid {
  13387. width: 270px;
  13388. height: 30px;
  13389. border-left: 1px solid #bdbdbd;
  13390. margin: 10px 0px 10px 30px;
  13391. }
  13392. .info_steps {
  13393. width: 270px;
  13394. font-size: 0.875rem;
  13395. display: flex;
  13396. align-items: center;
  13397. }
  13398. .info_steps span:nth-child(1) {
  13399. width: 30px;
  13400. height: 30px;
  13401. background: rgba(0, 0, 0, 0.38);
  13402. display: block;
  13403. color: #fff;
  13404. border-radius: 40px;
  13405. text-align: center;
  13406. line-height: 30px;
  13407. }
  13408. .steps_active {
  13409. background: #3d67bc !important;
  13410. }
  13411. .info_steps span:nth-child(2) {
  13412. margin-left: 5px;
  13413. }
  13414. .right {
  13415. height: 100%;
  13416. width: 100%;
  13417. display: flex;
  13418. overflow: hidden;
  13419. flex-direction: column;
  13420. }
  13421. .leftBar{
  13422. width: 290px;
  13423. height: calc(100% - 50px);
  13424. overflow: auto;
  13425. border-radius: 5px;
  13426. margin: 25px auto;
  13427. box-sizing: border-box;
  13428. margin-right: 10px;
  13429. }
  13430. .basic_box {
  13431. margin: 0 auto;
  13432. position: relative;
  13433. padding: 0 20px 0 20px;
  13434. }
  13435. .basic_box_success {
  13436. width: 100%;
  13437. min-height: 455px;
  13438. padding: 50px 0;
  13439. position: relative;
  13440. text-align: center;
  13441. border-bottom: 1px solid #bfbfbf;
  13442. box-sizing: border-box;
  13443. display: flex;
  13444. align-items: center;
  13445. flex-direction: column;
  13446. justify-content: center;
  13447. }
  13448. .info_title {
  13449. font-size: 1.5em;
  13450. margin-right: 25px;
  13451. /* margin: 20px 30px 20px 30px; */
  13452. }
  13453. .bInfo_title {
  13454. text-align: left;
  13455. margin: 10px 0;
  13456. }
  13457. .small_title {
  13458. font-size: 14px;
  13459. line-height: 40px;
  13460. }
  13461. .chapter_beizhu {
  13462. font-size: 12px;
  13463. font-weight: bold;
  13464. float: right;
  13465. color: rgb(128, 128, 128);
  13466. margin-top: 5px;
  13467. }
  13468. .chapter_uploadBox1 {
  13469. text-align: left;
  13470. background-color: rgb(242, 242, 242);
  13471. width: 100%;
  13472. height: 67px;
  13473. padding: 0px 15px;
  13474. border-radius: 8px;
  13475. overflow: hidden;
  13476. font-size: 16px;
  13477. box-sizing: border-box;
  13478. position: relative;
  13479. }
  13480. .chapter_add {
  13481. width: 100%;
  13482. height: 32px;
  13483. margin-top: 15px;
  13484. cursor: pointer;
  13485. }
  13486. .chapter_add_l {
  13487. margin-left: 5px;
  13488. width: 30px;
  13489. height: 30px;
  13490. float: left;
  13491. border: 1px solid #aaa;
  13492. color: #aaa;
  13493. border-radius: 50%;
  13494. font-size: 25px;
  13495. text-align: center;
  13496. }
  13497. .chapter_add_r {
  13498. font-size: 18px;
  13499. height: 40px;
  13500. line-height: 30px;
  13501. text-indent: 10px;
  13502. color: #aaa;
  13503. }
  13504. .chapter_add_r span {
  13505. font-size: 12px;
  13506. color: rgb(204, 204, 204);
  13507. }
  13508. .chapter_add_input {
  13509. display: none;
  13510. }
  13511. .line {
  13512. width: 85%;
  13513. margin: 0 auto;
  13514. border-top: 1px solid #e5e5e5;
  13515. margin-top: 20px;
  13516. }
  13517. .info_btnBox {
  13518. width: calc(100%);
  13519. display: flex;
  13520. justify-content: center;
  13521. height: 80px;
  13522. align-items: center;
  13523. background: #fff;
  13524. margin: 0 auto;
  13525. border-top: 2px solid rgb(228, 232, 237);
  13526. box-sizing: border-box;
  13527. }
  13528. .info_btnBox2 {
  13529. width: calc(100%);
  13530. display: flex;
  13531. justify-content: center;
  13532. height: 20px;
  13533. align-items: center;
  13534. background: #fff;
  13535. margin: 0 auto;
  13536. border-top: 2px solid rgb(228, 232, 237);
  13537. box-sizing: border-box;
  13538. overflow: hidden;
  13539. cursor: pointer;
  13540. }
  13541. .info_btnBox3 {
  13542. width: calc(100%);
  13543. display: flex;
  13544. justify-content: flex-end;
  13545. padding: 0 20px;
  13546. height: 60px;
  13547. align-items: center;
  13548. background: unset;
  13549. margin: 0 auto;
  13550. /* border-top: 1px solid rgb(228, 232, 237); */
  13551. box-sizing: border-box;
  13552. overflow: hidden;
  13553. cursor: pointer;
  13554. background: #fff;
  13555. border-radius: 10px;
  13556. }
  13557. .info_btn+.info_btn {
  13558. margin-left: 15px;
  13559. }
  13560. .info_btn,
  13561. .teacherWord {
  13562. color: #fff;
  13563. background-color: #0f7eff;
  13564. padding: 8px 24px;
  13565. font-size: 0.9375rem;
  13566. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13567. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13568. min-width: 64px;
  13569. font-weight: 500;
  13570. border-radius: 4px;
  13571. box-sizing: border-box;
  13572. border: none;
  13573. cursor: pointer;
  13574. }
  13575. .teacherWord {
  13576. width: 105px !important;
  13577. text-align: center !important;
  13578. line-height: 36px !important;
  13579. padding: 0 !important;
  13580. font-size: 14px !important;
  13581. margin: 10px 0 !important;
  13582. }
  13583. .template_box {
  13584. display: flex;
  13585. flex-wrap: wrap;
  13586. }
  13587. .wordTeacher {
  13588. display: flex;
  13589. flex-direction: column;
  13590. width: 100px;
  13591. height: 100px;
  13592. text-align: center;
  13593. font-size: 13px;
  13594. margin: 0 20px 20px 0;
  13595. background: #f0f4fa;
  13596. position: relative;
  13597. border-radius: 5px;
  13598. align-items: center;
  13599. justify-content: center;
  13600. border: 1px solid #cad1dc;
  13601. color: #0e1e33;
  13602. /* padding: 25px 0px; */
  13603. cursor: pointer;
  13604. }
  13605. .wordTeacher::after {
  13606. content: "";
  13607. display: block;
  13608. position: absolute;
  13609. width: 15px;
  13610. height: 15px;
  13611. right: 10px;
  13612. top: 10px;
  13613. background-image: url(../../../assets/icon/new/choose_a.png);
  13614. background-size: 100% 100%;
  13615. }
  13616. .wordTeacherA::after {
  13617. background-image: url(../../../assets/icon/new/choose_b.png);
  13618. }
  13619. .wordTeacher:nth-child(5n) {
  13620. margin-right: 0px;
  13621. }
  13622. .wordPic {
  13623. margin: 0 auto;
  13624. width: 30px;
  13625. height: 30px;
  13626. cursor: pointer;
  13627. }
  13628. .deleteWord {
  13629. width: 22px;
  13630. height: 22px;
  13631. position: absolute;
  13632. right: 5px;
  13633. top: -15px;
  13634. cursor: pointer;
  13635. display: none;
  13636. z-index: 999;
  13637. }
  13638. .wordPic>img,
  13639. .deleteWord>img,
  13640. .addToolImg>img {
  13641. width: 100%;
  13642. height: 100%;
  13643. }
  13644. .info_btn:hover {
  13645. background-color: #4f7cd5 !important;
  13646. }
  13647. .cru_selectBox {
  13648. display: flex;
  13649. margin: 15px 0;
  13650. flex-wrap: nowrap;
  13651. white-space: nowrap;
  13652. overflow: auto;
  13653. position: relative;
  13654. height: 40px;
  13655. max-width: calc(100% - 175px);
  13656. }
  13657. .cru_selectBox::-webkit-scrollbar {
  13658. /*滚动条整体样式*/
  13659. width: 6px;
  13660. /*高宽分别对应横竖滚动条的尺寸*/
  13661. height: 6px;
  13662. }
  13663. /*定义滚动条轨道 内阴影+圆角*/
  13664. .cru_selectBox::-webkit-scrollbar-track {
  13665. border-radius: 10px;
  13666. background-color: #eee;
  13667. }
  13668. /*定义滑块 内阴影+圆角*/
  13669. .cru_selectBox::-webkit-scrollbar-thumb {
  13670. border-radius: 10px;
  13671. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  13672. background-color: rgba(0, 0, 0, 0.1);
  13673. }
  13674. .cru_line {
  13675. position: absolute;
  13676. bottom: 0px;
  13677. transition: all 0.5s;
  13678. left: 0px;
  13679. width: 50px;
  13680. height: 4px;
  13681. left: 10px;
  13682. border-radius: 2px;
  13683. background: #3681fc;
  13684. }
  13685. .cru_select {
  13686. font-size: 18px;
  13687. margin-right: 20px;
  13688. margin-left: 5px;
  13689. cursor: pointer;
  13690. color: #0e1e33;
  13691. }
  13692. .cru_select:hover {
  13693. color: #3681fc !important;
  13694. }
  13695. .cru_selected {
  13696. color: #3681fc !important;
  13697. font-weight: bold;
  13698. }
  13699. .chapter_box {
  13700. margin-top: 10px;
  13701. width: 100%;
  13702. padding: 10px 20px;
  13703. background: #fff;
  13704. border-radius: 8px;
  13705. box-sizing: border-box;
  13706. }
  13707. .chapter_contentbox {
  13708. display: flex;
  13709. align-items: center;
  13710. /* margin-top: 15px; */
  13711. }
  13712. .chapter_contentbox .cc_title {
  13713. margin: 0px;
  13714. color: black;
  13715. display: block;
  13716. white-space: nowrap;
  13717. overflow: hidden;
  13718. text-overflow: ellipsis;
  13719. margin-right: 20px;
  13720. font-size: 18px;
  13721. height: 20px;
  13722. line-height: 22px;
  13723. min-width: fit-content;
  13724. display: flex;
  13725. }
  13726. .chapter_contentbox .cc_title::before {
  13727. content: "";
  13728. height: 100%;
  13729. width: 3px;
  13730. background: #3681fc;
  13731. border-radius: 3px;
  13732. opacity: 1;
  13733. display: block;
  13734. margin-right: 10px;
  13735. }
  13736. .chapter_contentbox .cc_input {
  13737. width: 100%;
  13738. display: flex;
  13739. }
  13740. .show_taskD {
  13741. min-width: fit-content;
  13742. margin-left: 10px;
  13743. display: flex;
  13744. align-items: center;
  13745. font-size: 14px;
  13746. cursor: pointer;
  13747. color: #717c8d;
  13748. }
  13749. .show_taskD>img {
  13750. width: 15px;
  13751. margin-right: 5px;
  13752. transition: 0.2s all;
  13753. transform: rotate(-90deg);
  13754. }
  13755. .show_taskD.show>img {
  13756. transform: rotate(0deg);
  13757. }
  13758. .show_toolD {
  13759. min-width: fit-content;
  13760. margin-left: 10px;
  13761. display: flex;
  13762. align-items: center;
  13763. font-size: 14px;
  13764. cursor: pointer;
  13765. color: #717c8d;
  13766. /* position: absolute;
  13767. right: 45px;
  13768. top: 5px; */
  13769. }
  13770. .show_toolD>img {
  13771. width: 15px;
  13772. margin-right: 5px;
  13773. transition: 0.2s all;
  13774. transform: rotate(-90deg);
  13775. }
  13776. .show_toolD.show>img {
  13777. transform: rotate(0deg);
  13778. }
  13779. .remove {
  13780. background-image: url("../../../assets/icon/new/delete_u.png");
  13781. cursor: pointer;
  13782. opacity: 0.5;
  13783. width: 30px;
  13784. min-width: 30px;
  13785. height: 30px;
  13786. background-size: 100% 100%;
  13787. background-repeat: no-repeat;
  13788. margin-left: 10px;
  13789. }
  13790. .remove1 {
  13791. background-image: url("../../../assets/remove1.png");
  13792. background-repeat: no-repeat;
  13793. background-position: 5px 10px;
  13794. width: 40px;
  13795. height: 50px;
  13796. cursor: pointer;
  13797. margin-left: 10px;
  13798. }
  13799. .binfo_input {
  13800. width: 100%;
  13801. margin: 0;
  13802. padding: 12px 14px;
  13803. display: block;
  13804. min-width: 0;
  13805. outline: none;
  13806. box-sizing: border-box;
  13807. background: none;
  13808. border: none;
  13809. border-radius: 4px;
  13810. background: #fff;
  13811. font-size: 16px;
  13812. resize: none;
  13813. font-family: "Microsoft YaHei";
  13814. min-height: 48px;
  13815. /* border: 1px solid #3682fc00; */
  13816. border: 1.5px solid #cad1dc;
  13817. }
  13818. .binfo_textarea {
  13819. border: 1.5px solid #cad1dc;
  13820. font-size: 16px;
  13821. resize: none;
  13822. /* background: #f6f6f6; */
  13823. font-family: "Microsoft YaHei";
  13824. }
  13825. .binfo_input:focus-visible {
  13826. border: 1.5px solid #3681fc !important;
  13827. }
  13828. .time {
  13829. display: flex;
  13830. margin: 35px 0 80px 0;
  13831. }
  13832. .chapter_btnbox {
  13833. width: 160px;
  13834. border-radius: 5px;
  13835. border: 2px dashed gray;
  13836. display: flex;
  13837. padding: 8px 50px;
  13838. align-items: center;
  13839. justify-content: center;
  13840. margin: 30px auto 0;
  13841. cursor: pointer;
  13842. }
  13843. .icon_add {
  13844. position: relative;
  13845. width: 24px;
  13846. padding-top: 20px;
  13847. border-radius: 100%;
  13848. border-width: 2px;
  13849. border-style: solid;
  13850. border-color: gray;
  13851. }
  13852. .icon_add i:nth-child(1) {
  13853. position: absolute;
  13854. left: 50%;
  13855. top: 50%;
  13856. height: 60%;
  13857. transform: translate(-50%, -50%);
  13858. border-width: 1px;
  13859. border-style: solid;
  13860. border-color: inherit;
  13861. }
  13862. .icon_add i:nth-child(2) {
  13863. position: absolute;
  13864. top: 50%;
  13865. left: 50%;
  13866. width: 60%;
  13867. transform: translate(-50%, -50%);
  13868. border-width: 1px;
  13869. border-style: solid;
  13870. border-color: inherit;
  13871. }
  13872. .chapter_btn_w {
  13873. font-size: 0.9375rem;
  13874. font-weight: bold;
  13875. color: gray;
  13876. margin-left: 20px;
  13877. }
  13878. .disUoloadSty>>>.el-icon-plus {
  13879. display: none !important;
  13880. /* 上传按钮隐藏 */
  13881. }
  13882. .imgLeft {
  13883. margin: 15px 0;
  13884. }
  13885. .add_info_box {
  13886. margin: 0 0 0 auto;
  13887. display: flex;
  13888. flex-wrap: wrap;
  13889. }
  13890. .add_info_box button {
  13891. margin: 0 5px 10px 0;
  13892. }
  13893. .add_info_box2 {
  13894. display: flex;
  13895. align-items: center;
  13896. flex-wrap: wrap;
  13897. }
  13898. .add_info_box2::after {
  13899. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  13900. color: red;
  13901. font-size: 14px;
  13902. margin-bottom: 10px;
  13903. }
  13904. .add_chapters_box {
  13905. text-align: left;
  13906. background-color: #fff;
  13907. width: 100%;
  13908. border-radius: 4px;
  13909. font-size: 16px;
  13910. box-sizing: border-box;
  13911. position: relative;
  13912. padding: 0 15px;
  13913. height: auto;
  13914. overflow-y: auto;
  13915. overflow-x: hidden;
  13916. border: 1px solid #cad1dc;
  13917. }
  13918. .add_chapters_box.add_c_none {
  13919. display: flex;
  13920. justify-content: center;
  13921. align-items: center;
  13922. padding: 15px;
  13923. }
  13924. .add_c_none>img {
  13925. width: 25px;
  13926. }
  13927. .add_chapters_box.add_c_none>span {
  13928. font-size: 14px;
  13929. font-weight: 400;
  13930. margin: 0 0 5px 5px;
  13931. }
  13932. .homework_box {
  13933. display: flex;
  13934. align-items: flex-start;
  13935. flex-wrap: wrap;
  13936. margin: 15px 0 0 0;
  13937. flex-direction: column;
  13938. align-content: flex-start;
  13939. }
  13940. .course_homework {
  13941. display: flex;
  13942. justify-content: center;
  13943. flex-direction: row;
  13944. align-items: center;
  13945. margin: 0 10px 0 0;
  13946. }
  13947. .course_homework>>>.el-input__inner {
  13948. width: 140px;
  13949. margin-left: 15px;
  13950. }
  13951. .chapter_upload_move {
  13952. position: relative;
  13953. background-color: #fff;
  13954. position: absolute;
  13955. width: 100%;
  13956. top: 0px;
  13957. left: 0px;
  13958. border: 1px solid #eee;
  13959. border-radius: 5px;
  13960. transition: width 2s;
  13961. -moz-transition: width 2s;
  13962. -webkit-transition: width 2s;
  13963. -o-transition: width 2s;
  13964. }
  13965. .chapter_upload_l_i {
  13966. background-image: url("../../../assets/icon.png");
  13967. background-position: 3px -165px;
  13968. width: 30px;
  13969. height: 30px;
  13970. margin: 10px auto 0 auto;
  13971. }
  13972. .course_input_box {
  13973. display: flex;
  13974. margin-right: 20px;
  13975. width: 100%;
  13976. align-items: center;
  13977. position: relative;
  13978. }
  13979. .course_input_box>.binfo_input {
  13980. width: calc(100% - 0 - 200px - 20px);
  13981. margin: 0 10px;
  13982. }
  13983. .bb_courseIcon {
  13984. width: 57px;
  13985. height: 45px;
  13986. background: #f0f4fa;
  13987. border-radius: 5px 0px 0px 5px;
  13988. display: flex;
  13989. align-items: center;
  13990. justify-content: center;
  13991. border-right: 1.5px solid rgb(202, 209, 220);
  13992. box-sizing: border-box;
  13993. position: absolute;
  13994. left: 1.5px;
  13995. }
  13996. .bb_courseIcon>img {
  13997. width: 25px;
  13998. height: auto;
  13999. }
  14000. .big_box {
  14001. /* margin-top: 20px; */
  14002. display: flex;
  14003. justify-content: space-between;
  14004. /* border-bottom: 1px solid #E0E2ED; */
  14005. }
  14006. .left_first {
  14007. display: flex;
  14008. flex-direction: column;
  14009. flex-wrap: nowrap;
  14010. width: calc(100% - 310px);
  14011. padding: 20px;
  14012. box-sizing: border-box;
  14013. background: #fff;
  14014. border-radius: 5px;
  14015. }
  14016. .right_first {
  14017. width: 300px;
  14018. display: flex;
  14019. align-items: center;
  14020. justify-content: center;
  14021. /* border-left: 1px solid #E0E2ED; */
  14022. box-sizing: border-box;
  14023. padding: 20px;
  14024. flex-direction: column;
  14025. background: #fff;
  14026. border-radius: 5px;
  14027. }
  14028. .ai_box {
  14029. width: 204px;
  14030. display: flex;
  14031. justify-content: flex-end;
  14032. margin-bottom: 15px;
  14033. }
  14034. .ai_content {
  14035. display: flex;
  14036. align-items: center;
  14037. font-size: 14px;
  14038. padding: 7px 20px;
  14039. box-sizing: border-box;
  14040. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14041. border-radius: 12px;
  14042. font-weight: 700;
  14043. cursor: pointer;
  14044. }
  14045. .ai_content>img {
  14046. width: 40px;
  14047. margin-right: 5px;
  14048. }
  14049. .c_info_title {
  14050. padding: 15px 0 15px 0;
  14051. font-size: 16px;
  14052. font-weight: bold;
  14053. margin: 0 0 0 20px;
  14054. box-sizing: border-box;
  14055. display: flex;
  14056. align-items: center;
  14057. line-height: 20px;
  14058. }
  14059. .c_info_title::before {
  14060. content: "";
  14061. display: block;
  14062. width: 3px;
  14063. height: 20px;
  14064. background: #0061ff;
  14065. border-radius: 3px;
  14066. margin: 0 5px 0 0;
  14067. }
  14068. .right_title {
  14069. height: 30px;
  14070. padding: 15px 0 15px 20px;
  14071. border-bottom: 1px solid #f2f2f2;
  14072. font-size: 1.5em;
  14073. font-weight: bold;
  14074. color: #0f7eff;
  14075. margin: 0 auto;
  14076. }
  14077. .people {
  14078. border: 1px solid rgb(229 229 229);
  14079. /* height: 495px; */
  14080. height: 350px;
  14081. border-radius: 5px;
  14082. width: 100%;
  14083. overflow: auto;
  14084. }
  14085. .people_top {
  14086. display: flex;
  14087. width: 100%;
  14088. /* justify-content: space-between; */
  14089. /* align-items: center; */
  14090. flex-direction: column;
  14091. padding: 10px 10px 0;
  14092. box-sizing: border-box;
  14093. }
  14094. .people_nav,
  14095. .people_top_right {
  14096. /* padding: 20px 0 0 20px; */
  14097. }
  14098. .people_top_right {
  14099. height: 40px;
  14100. margin-bottom: 10px;
  14101. }
  14102. .people_search {
  14103. display: flex;
  14104. position: relative;
  14105. }
  14106. .people_search>>>.el-input__inner {
  14107. /* height: 25px; */
  14108. width: 100%;
  14109. }
  14110. .search_img {
  14111. width: 20px;
  14112. height: 20px;
  14113. position: absolute;
  14114. right: 10px;
  14115. top: 50%;
  14116. transform: translateY(-50%);
  14117. }
  14118. .search_img>img {
  14119. width: 100%;
  14120. height: 100%;
  14121. }
  14122. .people_name {
  14123. display: flex;
  14124. justify-content: flex-start;
  14125. padding: 20px 10px;
  14126. flex-direction: column;
  14127. flex-wrap: wrap;
  14128. }
  14129. .p_box {
  14130. position: relative;
  14131. }
  14132. .people_name>>>.el-checkbox {
  14133. width: 100%;
  14134. display: flex;
  14135. align-items: center;
  14136. margin-bottom: 10px;
  14137. }
  14138. .people_name>>>.el-checkbox__label {
  14139. text-overflow: ellipsis;
  14140. overflow: hidden;
  14141. width: calc(100%);
  14142. }
  14143. .people_name2>>>.el-checkbox__label {
  14144. width: calc(100% - 130px);
  14145. }
  14146. .inviteCode {
  14147. position: absolute;
  14148. right: 30px;
  14149. color: #237ade;
  14150. top: 0;
  14151. cursor: pointer;
  14152. font-size: 13px;
  14153. }
  14154. .noneInvite {
  14155. color: #a8a8a8;
  14156. }
  14157. .inviteImg {
  14158. position: absolute;
  14159. right: 5px;
  14160. top: 0;
  14161. width: 20px;
  14162. }
  14163. .right_img {
  14164. width: 150px;
  14165. height: 150px;
  14166. margin: 0 auto;
  14167. }
  14168. .right_img>img {
  14169. width: 100%;
  14170. height: 100%;
  14171. }
  14172. .number {
  14173. margin-top: 20px;
  14174. color: #4aa6ff;
  14175. text-decoration: underline;
  14176. }
  14177. .success_button {
  14178. display: flex;
  14179. text-align: center;
  14180. margin: 5% 0 auto;
  14181. flex-direction: row;
  14182. justify-content: center;
  14183. }
  14184. .look_course {
  14185. margin-right: 40px;
  14186. background: #3d67bc;
  14187. width: 200px;
  14188. height: 35px;
  14189. line-height: 35px;
  14190. color: #fff;
  14191. text-align: center;
  14192. font-size: 14px;
  14193. border-radius: 5px;
  14194. cursor: pointer;
  14195. }
  14196. .attend_others {
  14197. width: 250px;
  14198. background: #4fb13c;
  14199. height: 35px;
  14200. line-height: 35px;
  14201. color: #fff;
  14202. text-align: center;
  14203. font-size: 14px;
  14204. border-radius: 5px;
  14205. cursor: pointer;
  14206. }
  14207. .dialog_diy2>>>.el-dialog__body {
  14208. text-align: center;
  14209. }
  14210. .write_togother {
  14211. position: absolute;
  14212. right: 45px;
  14213. display: flex;
  14214. top: 5%;
  14215. }
  14216. .write_people {
  14217. font-size: 14px;
  14218. line-height: 50px;
  14219. padding-right: 10px;
  14220. }
  14221. .end_write {
  14222. background: #3d67bc;
  14223. color: #fff;
  14224. width: 100px;
  14225. height: 35px;
  14226. line-height: 35px;
  14227. text-align: center;
  14228. font-size: 14px;
  14229. border-radius: 5px;
  14230. cursor: pointer;
  14231. }
  14232. .chapter_upload+.chapter_upload {
  14233. /* margin-top: 15px; */
  14234. border-top: 1px solid #e7ebf1;
  14235. }
  14236. .chapter_upload {
  14237. height: 45px;
  14238. position: relative;
  14239. display: flex;
  14240. align-items: center;
  14241. width: 100%;
  14242. min-height: 45px;
  14243. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14244. /* border-radius: 4px; */
  14245. /* overflow: hidden; */
  14246. box-sizing: border-box;
  14247. }
  14248. .chapter_upload_drag {
  14249. position: absolute;
  14250. cursor: pointer;
  14251. width: 16px;
  14252. height: 16px;
  14253. left: -9px;
  14254. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14255. background-size: 100% 100%;
  14256. z-index: 10;
  14257. display: none;
  14258. }
  14259. .isNavStage>.chapter_upload_drag {
  14260. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  14261. }
  14262. .chapter_upload_t {
  14263. background-color: #fff;
  14264. position: absolute;
  14265. height: 100%;
  14266. top: 0px;
  14267. left: 0px;
  14268. box-sizing: border-box;
  14269. }
  14270. .chapter_upload_o {
  14271. width: 100%;
  14272. height: 100%;
  14273. position: relative;
  14274. z-index: 1;
  14275. }
  14276. .chapter_upload_ic {
  14277. margin: 0 15px 0px auto;
  14278. display: flex;
  14279. align-items: center;
  14280. }
  14281. .chapter_upload_ic_l {
  14282. width: 50px;
  14283. height: 50px;
  14284. float: left;
  14285. }
  14286. .chapter_upload_ic_l div {
  14287. width: 30px;
  14288. height: 35px;
  14289. background: url("../../../assets/icon/icon.png");
  14290. }
  14291. .chapter_upload_ic_edit {
  14292. height: 100%;
  14293. display: flex;
  14294. align-items: center;
  14295. cursor: pointer;
  14296. margin: 0 10px 0 0;
  14297. }
  14298. .chapter_upload_ic_edit div {
  14299. width: 18px;
  14300. height: 18px;
  14301. background-image: url("../../../assets/icon/new/edit_u.png");
  14302. background-size: 100% 100%;
  14303. }
  14304. .chapter_upload_ic_r {
  14305. height: 100%;
  14306. display: flex;
  14307. align-items: center;
  14308. cursor: pointer;
  14309. }
  14310. .chapter_upload_ic_r div {
  14311. width: 18px;
  14312. height: 18px;
  14313. background-image: url("../../../assets/icon/new/delete_u.png");
  14314. background-size: 100% 100%;
  14315. }
  14316. .chapter_upload_n {
  14317. display: flex;
  14318. text-indent: 10px;
  14319. text-decoration: none;
  14320. text-overflow: ellipsis;
  14321. white-space: nowrap;
  14322. overflow: hidden;
  14323. width: 55%;
  14324. margin-left: 10px;
  14325. cursor: pointer;
  14326. margin-top: 2px;
  14327. align-items: center;
  14328. }
  14329. .chapter_upload_l_i2,
  14330. .chapter_upload_l_i3,
  14331. .chapter_upload_l_i8,
  14332. .chapter_upload_l_i6,
  14333. .chapter_upload_l_i12,
  14334. .chapter_upload_l_i14,
  14335. .chapter_upload_l_i13 {
  14336. width: 15px;
  14337. height: 15px;
  14338. background-size: 100% 100%;
  14339. }
  14340. .chapter_upload_l_i2 {
  14341. background-image: url("../../../assets/icon/new/u_word.png");
  14342. }
  14343. .chapter_upload_l_i3 {
  14344. background-image: url("../../../assets/icon/new/u_video.png");
  14345. }
  14346. .chapter_upload_l_i8 {
  14347. background-image: url("../../../assets/icon/new/u_url.png");
  14348. }
  14349. .chapter_upload_l_i14 {
  14350. background-image: url("../../../assets/icon/new/u_source.png");
  14351. }
  14352. .chapter_upload_l_i6 {
  14353. background-image: url("../../../assets/icon/new/u_picture.png");
  14354. }
  14355. .chapter_upload_l_i12 {
  14356. background-image: url("../../../assets/icon/new/u_word.png");
  14357. }
  14358. .chapter_upload_l_i13 {
  14359. background-image: url("../../../assets/icon/new/u_img.png");
  14360. }
  14361. .chapter_upload_noSee {
  14362. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14363. width: 18px;
  14364. height: 18px;
  14365. background-size: 100% 100%;
  14366. display: block;
  14367. margin-right: 10px;
  14368. }
  14369. .chapter_upload_ud {
  14370. display: flex;
  14371. flex-direction: row;
  14372. justify-content: center;
  14373. margin: 0 10px 0 0;
  14374. }
  14375. .chapter_upload_ud>.chapter_upload_up {
  14376. margin-bottom: 0;
  14377. margin-right: 10px;
  14378. }
  14379. .chapter_upload_down,
  14380. .chapter_upload_up {
  14381. width: 20px;
  14382. height: 20px;
  14383. background: #e4eaf2;
  14384. cursor: pointer;
  14385. margin: 0 auto;
  14386. border-radius: 5px;
  14387. display: flex;
  14388. justify-content: center;
  14389. align-items: center;
  14390. }
  14391. .chapter_upload_up::after,
  14392. .chapter_upload_down::after {
  14393. content: "";
  14394. background-image: url("../../../assets/icon/new/downBtn.png");
  14395. width: 13px;
  14396. height: 13px;
  14397. background-size: 100% 100%;
  14398. display: block;
  14399. }
  14400. .chapter_upload_up::after {
  14401. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14402. }
  14403. .chapter_upload_up {
  14404. margin-bottom: 5px;
  14405. }
  14406. .chapter_upload_ud2 {
  14407. display: flex;
  14408. flex-direction: row;
  14409. justify-content: center;
  14410. margin: 0 10px 0 0;
  14411. }
  14412. .chapter_upload_ud2>.chapter_upload_up2 {
  14413. margin-bottom: 0;
  14414. margin-right: 10px;
  14415. }
  14416. .chapter_upload_down2,
  14417. .chapter_upload_up2 {
  14418. cursor: pointer;
  14419. margin: 0 auto;
  14420. border-radius: 5px;
  14421. display: flex;
  14422. justify-content: center;
  14423. align-items: center;
  14424. color: #717c8d;
  14425. font-size: 14px;
  14426. }
  14427. .chapter_upload_up2 {
  14428. margin-right: 10px;
  14429. }
  14430. .chapter_upload_up2::before,
  14431. .chapter_upload_down2::before {
  14432. content: "";
  14433. background-image: url("../../../assets/icon/new/c_down.png");
  14434. width: 14px;
  14435. height: 14px;
  14436. background-size: 100% 100%;
  14437. display: block;
  14438. margin-right: 5px;
  14439. }
  14440. .chapter_upload_up2::before {
  14441. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14442. }
  14443. .addWordStyle {
  14444. display: flex;
  14445. flex-direction: row;
  14446. justify-content: flex-start;
  14447. overflow-x: auto;
  14448. white-space: nowrap;
  14449. flex-wrap: wrap;
  14450. }
  14451. /* table 样式 */
  14452. .cont>>>table {
  14453. border-top: 1px solid #ccc;
  14454. border-left: 1px solid #ccc;
  14455. }
  14456. .cont>>>table td,
  14457. .cont>>>table th {
  14458. border-bottom: 1px solid #ccc;
  14459. border-right: 1px solid #ccc;
  14460. /* padding: 20px 5px; */
  14461. padding: 5px 10px;
  14462. max-width: 0px;
  14463. height: 30px;
  14464. vertical-align: baseline;
  14465. }
  14466. .cont>>>table th {
  14467. border-bottom: 2px solid #ccc;
  14468. text-align: center;
  14469. }
  14470. /* blockquote 样式 */
  14471. .cont>>>blockquote {
  14472. display: block;
  14473. border-left: 8px solid #d0e5f2;
  14474. padding: 5px 10px;
  14475. margin: 10px 0;
  14476. line-height: 1.4;
  14477. font-size: 100%;
  14478. background-color: #f1f1f1;
  14479. }
  14480. /* code 样式 */
  14481. .cont>>>code {
  14482. display: inline-block;
  14483. /* *display: inline; */
  14484. zoom: 1;
  14485. background-color: #f1f1f1;
  14486. border-radius: 3px;
  14487. padding: 3px 5px;
  14488. margin: 0 3px;
  14489. }
  14490. .cont>>>pre code {
  14491. display: block;
  14492. }
  14493. /* ul ol 样式 */
  14494. .cont>>>ul,
  14495. ol {
  14496. margin: 10px 0 10px 20px;
  14497. }
  14498. .wordbox {
  14499. display: flex;
  14500. flex-wrap: wrap;
  14501. cursor: pointer;
  14502. width: 100%;
  14503. }
  14504. .checkword {
  14505. width: 22px;
  14506. height: 22px;
  14507. margin: 10px auto 0;
  14508. cursor: pointer;
  14509. }
  14510. .checkword img {
  14511. width: 100%;
  14512. }
  14513. .stepBg {
  14514. display: flex;
  14515. justify-content: space-between;
  14516. align-items: center;
  14517. background: #fff;
  14518. width: calc(100%);
  14519. margin: 0 auto;
  14520. }
  14521. .stepBorder {
  14522. height: 3px !important;
  14523. background: #cad1dc;
  14524. width: 100px !important;
  14525. margin: 0 15px !important;
  14526. position: relative;
  14527. }
  14528. .border-active {
  14529. background: #3681fc !important;
  14530. }
  14531. .border-active::before,
  14532. .border-active::after {
  14533. border-color: #3681fc !important;
  14534. }
  14535. .stepBorder::before,
  14536. .stepBorder::after {
  14537. content: "";
  14538. width: 9px;
  14539. height: 9px;
  14540. background: #ffffff;
  14541. opacity: 1;
  14542. border: 2px solid #acb4bf;
  14543. display: block;
  14544. box-sizing: border-box;
  14545. border-radius: 50%;
  14546. position: absolute;
  14547. top: 50%;
  14548. transform: translateY(-50%);
  14549. }
  14550. .stepBorder::after {
  14551. right: -9px;
  14552. }
  14553. .stepTop {
  14554. width: 100%;
  14555. /* border-radius: 10px; */
  14556. display: flex;
  14557. justify-content: center;
  14558. align-items: center;
  14559. flex-wrap: nowrap;
  14560. background: #fff;
  14561. /* top: 18%; */
  14562. height: 80px;
  14563. border-bottom: 2px solid rgb(228, 232, 237);
  14564. box-sizing: border-box;
  14565. }
  14566. .stepTop2 {
  14567. width: 100%;
  14568. /* border-radius: 10px; */
  14569. display: flex;
  14570. justify-content: center;
  14571. align-items: center;
  14572. flex-wrap: nowrap;
  14573. background: #fff;
  14574. /* top: 18%; */
  14575. height: 20px;
  14576. border-bottom: 2px solid rgb(228, 232, 237);
  14577. box-sizing: border-box;
  14578. overflow: hidden;
  14579. cursor: pointer;
  14580. }
  14581. .stepTop>div img {
  14582. width: 100%;
  14583. }
  14584. .stepTop>div {
  14585. height: 50px;
  14586. width: 180px;
  14587. cursor: pointer;
  14588. margin: 10px 0;
  14589. border-radius: 10px;
  14590. }
  14591. .first,
  14592. .second,
  14593. .third,
  14594. .four {
  14595. background: #3681fc;
  14596. height: 90px;
  14597. color: #fff;
  14598. display: flex;
  14599. flex-direction: row;
  14600. align-items: center;
  14601. justify-content: center;
  14602. }
  14603. .first>div:nth-child(1),
  14604. .second>div:nth-child(1),
  14605. .third>div:nth-child(1),
  14606. .four>div:nth-child(1) {
  14607. margin: 5px 10px 0 0;
  14608. width: 2rem;
  14609. }
  14610. .firstNo,
  14611. .secondNo,
  14612. .thirdNo,
  14613. .fourNo {
  14614. background: #e7e7e7;
  14615. color: #adadad;
  14616. display: flex;
  14617. flex-direction: row;
  14618. align-items: center;
  14619. justify-content: center;
  14620. }
  14621. .firstNo>div:nth-child(1),
  14622. .secondNo>div:nth-child(1),
  14623. .thirdNo>div:nth-child(1),
  14624. .fourNo>div:nth-child(1) {
  14625. margin: 5px 10px 0 0;
  14626. width: 2rem;
  14627. }
  14628. .uploadWidth>>>.el-upload {
  14629. width: 60px;
  14630. height: 60px;
  14631. position: relative;
  14632. }
  14633. .addPeople {
  14634. background: #fa6060;
  14635. width: 150px;
  14636. height: 40px;
  14637. color: #fff;
  14638. border-radius: 5px;
  14639. text-align: center;
  14640. line-height: 40px;
  14641. font-size: 14px;
  14642. cursor: pointer;
  14643. }
  14644. .kcImg {
  14645. width: 60px;
  14646. margin-left: 10px;
  14647. }
  14648. .zyImg {
  14649. width: 55px;
  14650. margin: 0 10px;
  14651. }
  14652. .deleteZy {
  14653. width: 20px;
  14654. position: absolute;
  14655. top: 5px;
  14656. right: 5px;
  14657. cursor: pointer;
  14658. }
  14659. .kcImg>img,
  14660. .zyImg>img,
  14661. .deleteZy>img {
  14662. width: 100%;
  14663. height: 100%;
  14664. }
  14665. .zyBox {
  14666. display: flex;
  14667. flex-direction: row;
  14668. align-items: center;
  14669. background: #67d37d;
  14670. color: #fff;
  14671. width: 210px;
  14672. margin: 20px 20px 0 0;
  14673. border-radius: 10px;
  14674. height: 70px;
  14675. position: relative;
  14676. }
  14677. .upCss {
  14678. display: flex;
  14679. flex-direction: row;
  14680. justify-content: flex-start;
  14681. }
  14682. .upCss>>>.el-icon-plus {
  14683. position: none !important;
  14684. width: 200px;
  14685. height: 100px;
  14686. display: flex;
  14687. flex-wrap: nowrap;
  14688. flex-direction: column;
  14689. align-items: center;
  14690. justify-content: center;
  14691. border: 1px dashed #ccc;
  14692. min-width: 78px;
  14693. min-height: 100px;
  14694. z-index: 999;
  14695. }
  14696. .upCss>>>.el-upload-list__item-name {
  14697. width: 100px;
  14698. white-space: nowrap;
  14699. overflow: hidden;
  14700. text-overflow: ellipsis;
  14701. }
  14702. .upCss>>>.el-upload-list__item .el-icon-close {
  14703. font-size: 20px;
  14704. z-index: 9999;
  14705. }
  14706. .addStageImg {
  14707. min-width: 20px;
  14708. min-height: 20px;
  14709. width: 20px;
  14710. height: 20px;
  14711. cursor: pointer;
  14712. }
  14713. .addHW {
  14714. width: 28px;
  14715. height: 28px;
  14716. cursor: pointer;
  14717. }
  14718. .addStageImg>img,
  14719. .addHW>img {
  14720. width: 100%;
  14721. height: 100%;
  14722. }
  14723. .addNewPP>>>.el-dialog__body {
  14724. padding: 5px 20px;
  14725. }
  14726. .addNewPP>>>.el-dialog {
  14727. margin-top: 5vh !important;
  14728. }
  14729. .addNewPP2>>>.el-dialog__body {
  14730. padding: 5px 0;
  14731. }
  14732. .addNewPP2>>>.el-dialog {
  14733. margin-top: 5vh !important;
  14734. }
  14735. .isHeight {
  14736. height: 680px;
  14737. }
  14738. .toolChoose {
  14739. display: flex;
  14740. /* width: 100%; */
  14741. flex-direction: row;
  14742. flex-wrap: wrap;
  14743. }
  14744. .tool,
  14745. .isToolChoose {
  14746. display: flex;
  14747. flex-direction: column;
  14748. flex-wrap: nowrap;
  14749. width: fit-content;
  14750. margin: 10px 0 10px 0;
  14751. align-items: center;
  14752. border: 2px solid #dbdbdb00;
  14753. padding: 10px 20px;
  14754. border-radius: 5px;
  14755. cursor: pointer;
  14756. /* box-shadow: 0 0 2px 0px #dedede; */
  14757. position: relative;
  14758. box-sizing: border-box;
  14759. }
  14760. .tool:hover {
  14761. border: 2px solid #a5c7ff;
  14762. }
  14763. .tool:hover>.noCTool {
  14764. display: block;
  14765. opacity: 0.5;
  14766. }
  14767. .isToolChoose {
  14768. border: 2px solid #438aff !important;
  14769. box-shadow: 0 0 2px 0px #438aff;
  14770. opacity: 1 !important;
  14771. }
  14772. .isCTool,
  14773. .noCTool {
  14774. width: 30px;
  14775. height: 30px;
  14776. position: absolute;
  14777. top: -4px;
  14778. right: -4px;
  14779. }
  14780. .noCTool {
  14781. display: none;
  14782. }
  14783. .isCTool>img,
  14784. .noCTool>img {
  14785. width: 100%;
  14786. height: 100%;
  14787. }
  14788. .tool+.tool {
  14789. margin-right: 10px;
  14790. }
  14791. .whiteBIcon {
  14792. width: 80px;
  14793. cursor: pointer;
  14794. display: flex;
  14795. flex-direction: column;
  14796. flex-wrap: nowrap;
  14797. align-items: center;
  14798. font-size: 14px;
  14799. }
  14800. .whiteBIcon>img,
  14801. .toolIcon>img,
  14802. .arrow>img {
  14803. width: 100%;
  14804. height: 100%;
  14805. }
  14806. .check img {
  14807. width: 20px;
  14808. height: 20px;
  14809. }
  14810. .whiteBIcon>img {
  14811. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  14812. border-radius: 15px;
  14813. }
  14814. .whiteBIcon>div:nth-child(2) {
  14815. height: 20px;
  14816. line-height: 20px;
  14817. }
  14818. .check {
  14819. /* width: 20px;
  14820. height: 20px; */
  14821. cursor: pointer;
  14822. margin: 10px 0 0;
  14823. }
  14824. .checkDiv {
  14825. display: flex;
  14826. align-items: center;
  14827. }
  14828. .checkDiv span {
  14829. margin-left: 5px;
  14830. color: #858585;
  14831. }
  14832. .customWidth>>>.el-dialog {
  14833. min-width: 500px !important;
  14834. }
  14835. .a_addBox {
  14836. margin: 10px 0;
  14837. background: #fff;
  14838. padding: 15px;
  14839. /* max-height: 600px; */
  14840. overflow: auto;
  14841. }
  14842. .a_add_box {
  14843. border-bottom: 2px solid #eee;
  14844. padding-bottom: 25px;
  14845. }
  14846. .a_add_head {
  14847. display: flex;
  14848. align-items: center;
  14849. justify-content: space-between;
  14850. margin: 10px 0 0 0;
  14851. font-size: 18px;
  14852. }
  14853. .a_add_checkType {
  14854. margin-top: 10px;
  14855. display: flex;
  14856. font-size: 14px;
  14857. align-items: center;
  14858. }
  14859. .a_add_checkType span {
  14860. box-sizing: border-box;
  14861. padding: 0 0 5px 0;
  14862. cursor: pointer;
  14863. }
  14864. .a_add_checkType span+span {
  14865. margin-left: 10px;
  14866. }
  14867. .a_add_checkType .active {
  14868. border-bottom: 2px solid #409eff;
  14869. color: #409eff;
  14870. }
  14871. .a_add_head .a_add_head_input {
  14872. /* width: 540px; */
  14873. width: 100%;
  14874. }
  14875. .a_add_head .a_add_head_div {
  14876. display: flex;
  14877. align-items: center;
  14878. justify-content: space-between;
  14879. }
  14880. .a_add_body {
  14881. display: flex;
  14882. /* align-items: center; */
  14883. align-items: flex-end;
  14884. }
  14885. .a_add_input {
  14886. display: flex;
  14887. align-items: center;
  14888. flex-wrap: wrap;
  14889. }
  14890. .a_add_input_choice {
  14891. flex-direction: column;
  14892. margin-right: 10px;
  14893. }
  14894. .a_add_input_choice>>>.el-radio {
  14895. display: flex;
  14896. align-items: center;
  14897. flex-direction: row-reverse;
  14898. margin: 30px 0 0 0;
  14899. position: relative;
  14900. }
  14901. .a_add_input_choice>>>.el-checkbox {
  14902. display: flex;
  14903. align-items: center;
  14904. flex-direction: row-reverse;
  14905. margin: 30px 0 0 0;
  14906. position: relative;
  14907. }
  14908. .width100 {
  14909. width: 100%;
  14910. }
  14911. .a_add_input .a_add_persent {
  14912. width: 100%;
  14913. }
  14914. .a_add_persent_div {
  14915. width: 100%;
  14916. display: flex;
  14917. align-items: center;
  14918. }
  14919. .a_add_persent_div span {
  14920. margin: 5px 0;
  14921. }
  14922. .a_add_persent_div span:nth-child(1) {
  14923. width: 30%;
  14924. }
  14925. .a_add_persent_div span:nth-child(2) {
  14926. width: 7%;
  14927. }
  14928. .a_add_persent_div span:nth-child(3) {
  14929. width: 40%;
  14930. }
  14931. .a_add_body_div {
  14932. display: flex;
  14933. align-items: center;
  14934. justify-content: center;
  14935. /* flex-direction: column; */
  14936. position: absolute;
  14937. right: -20px;
  14938. transform: translateX(100%);
  14939. }
  14940. .a_add_body_div>>>.el-button--primary {
  14941. background: #466b99;
  14942. border: none;
  14943. }
  14944. .all_choose {
  14945. display: flex;
  14946. flex-direction: row;
  14947. align-items: flex-start;
  14948. width: 100%;
  14949. }
  14950. .all_choose+.all_choose {
  14951. /* margin-top: 10px */
  14952. }
  14953. .all_choose>span {
  14954. min-width: fit-content;
  14955. display: block;
  14956. white-space: nowrap;
  14957. overflow: hidden;
  14958. text-overflow: ellipsis;
  14959. margin-right: 20px;
  14960. font-weight: bold;
  14961. font-size: 14px;
  14962. }
  14963. .all_choose>>>.el-checkbox-group {
  14964. display: flex;
  14965. flex-direction: row;
  14966. width: 100%;
  14967. flex-wrap: wrap;
  14968. align-content: center;
  14969. justify-content: flex-start;
  14970. align-items: center;
  14971. margin-top: 3px;
  14972. }
  14973. .all_choose>.el-checkbox-group>>>.el-checkbox {
  14974. margin-bottom: 10px;
  14975. display: flex;
  14976. flex-direction: row;
  14977. align-items: center;
  14978. margin-right: 10px;
  14979. }
  14980. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  14981. min-width: 80px;
  14982. overflow: hidden;
  14983. width: 80px;
  14984. text-overflow: ellipsis;
  14985. white-space: nowrap;
  14986. }
  14987. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  14988. width: auto;
  14989. }
  14990. .choose>div:nth-child(3)>span {
  14991. /* letter-spacing: 0 !important; */
  14992. }
  14993. .choose {
  14994. display: flex;
  14995. flex-direction: column;
  14996. flex-wrap: nowrap;
  14997. height: 100%;
  14998. justify-content: space-evenly;
  14999. align-items: flex-start;
  15000. }
  15001. .both {
  15002. display: flex;
  15003. flex-direction: row;
  15004. flex-wrap: wrap;
  15005. width: 100%;
  15006. align-items: center;
  15007. justify-content: flex-start;
  15008. margin: 15px 0;
  15009. }
  15010. .notice>>>.el-dialog {
  15011. width: 500px !important;
  15012. text-align: center;
  15013. }
  15014. .notice>>>.el-button {
  15015. margin-top: 20px;
  15016. }
  15017. .whiteBg {
  15018. /* background: #fff; */
  15019. border-radius: 10px;
  15020. }
  15021. .wb_j_box {
  15022. display: flex;
  15023. width: 100%;
  15024. padding: 0 20px 0;
  15025. box-sizing: border-box;
  15026. }
  15027. .wb_j_box_content {
  15028. width: calc(100% - 55% - 100px);
  15029. display: flex;
  15030. align-items: center;
  15031. }
  15032. .wb_j_box_p_box {
  15033. max-width: calc(100% - 200px);
  15034. word-break: break-all;
  15035. overflow: hidden;
  15036. margin: 0 0 0 10px;
  15037. font-size: 14px;
  15038. color: #6e6e6e;
  15039. z-index: 999;
  15040. }
  15041. .chooseWho {
  15042. display: flex;
  15043. width: 410px;
  15044. flex-direction: row;
  15045. flex-wrap: nowrap;
  15046. justify-content: space-between;
  15047. padding-bottom: 10px;
  15048. }
  15049. .chooseWho>div {
  15050. cursor: pointer;
  15051. padding-bottom: 10px;
  15052. font-weight: bold;
  15053. }
  15054. .isChooseActive {
  15055. color: #3e88f4;
  15056. border-bottom: 2px solid #2f80f3;
  15057. }
  15058. .toolSort {
  15059. display: flex;
  15060. flex-direction: row;
  15061. flex-wrap: wrap;
  15062. justify-content: flex-start;
  15063. align-items: flex-start;
  15064. }
  15065. .toolSort>div {
  15066. margin-right: 10px;
  15067. }
  15068. .tools {
  15069. width: 100%;
  15070. display: flex;
  15071. flex-direction: column;
  15072. flex-wrap: nowrap;
  15073. align-items: flex-start;
  15074. }
  15075. .leftTools,
  15076. .rightTools {
  15077. width: 50%;
  15078. }
  15079. .leftTools+.leftTools {
  15080. border-top: 1px solid #dbdbdb;
  15081. padding-top: 30px;
  15082. }
  15083. .rightTools {
  15084. display: flex;
  15085. flex-direction: row;
  15086. flex-wrap: nowrap;
  15087. justify-content: space-around;
  15088. }
  15089. .firstToolList {
  15090. display: flex;
  15091. flex-direction: column;
  15092. flex-wrap: nowrap;
  15093. align-items: center;
  15094. }
  15095. .iconList {
  15096. display: flex;
  15097. flex-direction: row;
  15098. flex-wrap: wrap;
  15099. justify-content: flex-start;
  15100. align-items: center;
  15101. margin: 20px 0 5px 0;
  15102. width: 240px;
  15103. min-width: 240px;
  15104. }
  15105. .iconTool {
  15106. display: flex;
  15107. flex-direction: column;
  15108. flex-wrap: nowrap;
  15109. align-items: center;
  15110. justify-content: flex-start;
  15111. margin: 15px 10px;
  15112. }
  15113. .toolIcon {
  15114. width: 50px;
  15115. }
  15116. .taskBorder {
  15117. /* border: 1px solid #CAD1DC; */
  15118. border-radius: 10px;
  15119. margin-top: 10px;
  15120. min-height: 670px;
  15121. position: relative;
  15122. background: #fff;
  15123. padding: 20px;
  15124. overflow: hidden;
  15125. box-sizing: border-box;
  15126. }
  15127. .smallTaskBorder {
  15128. height: 405px;
  15129. min-height: 405px !important;
  15130. overflow: hidden;
  15131. }
  15132. /* .taskBorder>div {
  15133. padding: 30px 30px 10px;
  15134. } */
  15135. .addTaskBorder {
  15136. /* border: 2px solid #5E9AFC; */
  15137. border-radius: 8px;
  15138. margin-top: 10px;
  15139. cursor: pointer;
  15140. /* height: 50px;
  15141. line-height: 50px; */
  15142. background: #fff;
  15143. padding: 15px 0;
  15144. display: flex;
  15145. align-items: center;
  15146. justify-content: center;
  15147. }
  15148. /* .addTaskBorder>div {
  15149. margin: 0 auto;
  15150. display: flex;
  15151. align-items: center;
  15152. justify-content: center;
  15153. }
  15154. .addTaskBorder>div>img {
  15155. width: 20px;
  15156. }
  15157. .addTaskBorder>div>span {
  15158. font-size: 16px;
  15159. margin-left: 10px;
  15160. color: #5E9AFC;
  15161. } */
  15162. .funBlock {
  15163. display: flex;
  15164. padding: 15px 0;
  15165. flex-direction: row;
  15166. justify-content: center;
  15167. align-items: center;
  15168. position: absolute;
  15169. right: 0;
  15170. bottom: 0;
  15171. background: #fff;
  15172. width: 100%;
  15173. height: 60px;
  15174. z-index: 9;
  15175. }
  15176. .fold {
  15177. display: flex;
  15178. margin: 0 20px;
  15179. flex-direction: row;
  15180. align-items: center;
  15181. cursor: pointer;
  15182. color: #2b7bff;
  15183. }
  15184. .arrow {
  15185. margin-right: 8px;
  15186. width: 16px;
  15187. height: 16px;
  15188. min-width: 16px;
  15189. min-height: 16px;
  15190. background-size: 100% 100%;
  15191. display: block;
  15192. background-image: url(../../../assets/icon/new/u_up.png);
  15193. /* border-left: 7px solid transparent;
  15194. border-bottom: 7px solid #717C8D;
  15195. border-top: 0px solid transparent;
  15196. border-right: 7px solid transparent; */
  15197. /* box-sizing: border-box; */
  15198. transition: all 0.3s;
  15199. }
  15200. .arrowZ {
  15201. transform: rotate(180deg);
  15202. }
  15203. .addToolFun {
  15204. display: flex;
  15205. width: 150px;
  15206. flex-direction: row;
  15207. align-items: center;
  15208. justify-content: center;
  15209. border: 2px dashed #cad1dc;
  15210. border-radius: 5px;
  15211. height: 50px;
  15212. margin: 35px auto 0;
  15213. cursor: pointer;
  15214. }
  15215. .addToolFun2 {
  15216. display: flex;
  15217. width: 150px;
  15218. border: 2px dashed #cad1dc;
  15219. flex-direction: row;
  15220. align-items: center;
  15221. justify-content: center;
  15222. border-radius: 5px;
  15223. height: 50px;
  15224. margin: 0 auto 0;
  15225. cursor: pointer;
  15226. }
  15227. .addToolFun2>div,
  15228. .addToolFun>div {
  15229. display: flex;
  15230. line-height: 50px;
  15231. }
  15232. .addToolImg {
  15233. width: 20px;
  15234. height: 20px;
  15235. margin-right: 10px;
  15236. }
  15237. .addToolsDia>>>.el-dialog__body {
  15238. padding: 20px;
  15239. }
  15240. .addToolsDia>>>.el-dialog__body>.toolChoose {
  15241. padding: 0;
  15242. }
  15243. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  15244. padding: 0;
  15245. border-bottom: none;
  15246. margin-bottom: 0;
  15247. }
  15248. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  15249. width: 100%;
  15250. }
  15251. .lineCss>>>.el-form-item__label {
  15252. width: auto !important;
  15253. }
  15254. .lineCss>>>.el-form-item__content {
  15255. margin-left: 50px !important;
  15256. }
  15257. .newSteps {
  15258. display: flex;
  15259. width: 100% !important;
  15260. /* height: 80px; */
  15261. cursor: pointer;
  15262. margin: 10px 0;
  15263. border-radius: 10px;
  15264. flex-direction: row;
  15265. align-content: center;
  15266. justify-content: center;
  15267. align-items: center;
  15268. margin: 0 !important;
  15269. }
  15270. /* 评价样式 */
  15271. .elist_css {
  15272. padding-bottom: 75px !important;
  15273. }
  15274. .elist_title {
  15275. margin-bottom: 10px;
  15276. }
  15277. .elist_input {
  15278. width: 100%;
  15279. }
  15280. .elist_input_box {
  15281. display: flex;
  15282. align-items: center;
  15283. flex-wrap: wrap;
  15284. }
  15285. .elist_input_box+.elist_input_box {
  15286. margin-top: 30px;
  15287. }
  15288. .elist_input .elist_input_box input {
  15289. font: inherit;
  15290. color: currentColor;
  15291. width: 100%;
  15292. /* max-width: calc(100% - 385px); */
  15293. max-width: calc(100% - 150px);
  15294. padding: 8px 14px;
  15295. display: block;
  15296. min-width: 0;
  15297. outline: none;
  15298. border: 1px solid rgba(0, 0, 0, 0.23);
  15299. border-radius: 4px;
  15300. box-sizing: border-box;
  15301. background: #fff;
  15302. margin: 0 20px 0 0;
  15303. }
  15304. .elist_input .elist_input_box span {
  15305. height: 36px;
  15306. line-height: 36px;
  15307. color: rgb(82, 82, 82);
  15308. min-width: 80px;
  15309. }
  15310. .elist_input .elist_input_box .remove {
  15311. height: 20px;
  15312. width: 20px;
  15313. min-height: 20px;
  15314. min-width: 20px;
  15315. background-size: 100% 100%;
  15316. background-position: unset;
  15317. margin-left: 5px;
  15318. }
  15319. .elist_input_box>>>.el-rate {
  15320. display: flex;
  15321. height: 36px;
  15322. align-items: center;
  15323. }
  15324. .elist_input_box .elist_inptu_text {
  15325. width: 100%;
  15326. display: flex;
  15327. align-items: center;
  15328. margin-top: 10px;
  15329. }
  15330. .elist_input_box .elist_inptu_text input {
  15331. /* width: 500px; */
  15332. width: 100%;
  15333. max-width: unset;
  15334. }
  15335. .elist_input_box>>>.el-rate__icon {
  15336. font-size: 24px;
  15337. }
  15338. .elist_btn {
  15339. margin-top: 10px;
  15340. }
  15341. .lineTitle {
  15342. /* margin-top: 15px; */
  15343. width: 110px;
  15344. font-size: 16px;
  15345. display: flex;
  15346. align-items: center;
  15347. line-height: 20px;
  15348. }
  15349. .lineTitle::before {
  15350. content: "";
  15351. display: block;
  15352. width: 3px;
  15353. height: 20px;
  15354. background: #0061ff;
  15355. border-radius: 3px;
  15356. margin: 0 5px 0 0;
  15357. }
  15358. .clineTitle::before {
  15359. content: "";
  15360. display: block;
  15361. min-width: 10px;
  15362. width: 10px;
  15363. height: 10px;
  15364. background: #0061ff;
  15365. border-radius: 50%;
  15366. margin: 0 5px 0 0;
  15367. }
  15368. .courseTop {
  15369. display: flex;
  15370. flex-direction: row;
  15371. justify-content: space-between;
  15372. align-items: center;
  15373. width: calc(100% - 40px);
  15374. margin: 0 auto;
  15375. padding: 10px 0;
  15376. }
  15377. .stepsNav {
  15378. display: flex;
  15379. flex-direction: row;
  15380. justify-content: flex-start;
  15381. align-items: center;
  15382. }
  15383. .stepsWord {
  15384. font-size: 18px;
  15385. color: #fff;
  15386. font-weight: bold;
  15387. margin-left: auto;
  15388. background: rgb(15, 126, 255);
  15389. border-radius: 5px;
  15390. padding: 3px 25px;
  15391. box-sizing: border-box;
  15392. }
  15393. .stepBox {
  15394. width: calc(100% - 40px);
  15395. height: calc(100% - 50px);
  15396. overflow: hidden;
  15397. border-radius: 5px;
  15398. margin: 0 auto;
  15399. }
  15400. .rightBox {
  15401. width: calc(100%);
  15402. background: #f0f2f5;
  15403. /* border-radius: 10px; */
  15404. overflow: auto;
  15405. height: calc(100% - 150px);
  15406. margin: 0 auto;
  15407. position: relative;
  15408. box-sizing: border-box;
  15409. }
  15410. .e_add_top {
  15411. display: flex;
  15412. justify-content: space-between;
  15413. background: #fff;
  15414. position: absolute;
  15415. right: 20px;
  15416. height: 50px;
  15417. align-items: center;
  15418. }
  15419. .e_add_title2 {
  15420. display: flex;
  15421. align-items: center;
  15422. }
  15423. .e_add_title2 span {
  15424. width: 40px;
  15425. }
  15426. .e_add_title {
  15427. display: flex;
  15428. align-items: center;
  15429. color: #b8b8b8;
  15430. font-size: 18px;
  15431. position: relative;
  15432. height: 40px;
  15433. }
  15434. .e_add_title span {
  15435. margin-right: 10px;
  15436. }
  15437. .e_add_title .el_input {
  15438. width: 300px;
  15439. }
  15440. .e_add_title>>>.el-input__inner {
  15441. width: 400px;
  15442. }
  15443. .e_add_btn {}
  15444. .e_add_content {
  15445. display: flex;
  15446. width: 100%;
  15447. }
  15448. .e_add_list {
  15449. background: #fff;
  15450. height: 500px;
  15451. width: 210px;
  15452. position: relative;
  15453. margin: 15px 5px 0 0;
  15454. flex-shrink: 0;
  15455. display: flex;
  15456. flex-direction: column;
  15457. }
  15458. .e_add_list_title {
  15459. font-size: 20px;
  15460. width: 100%;
  15461. box-sizing: border-box;
  15462. padding: 15px 40px;
  15463. text-align: center;
  15464. border-bottom: 1px solid #eaeaea;
  15465. position: relative;
  15466. display: flex;
  15467. align-items: center;
  15468. justify-content: center;
  15469. height: 57px;
  15470. background: #f6f6f6;
  15471. }
  15472. .e_add_list_title span {
  15473. overflow: hidden;
  15474. white-space: nowrap;
  15475. text-overflow: ellipsis;
  15476. }
  15477. .e_add_list_title img {
  15478. position: absolute;
  15479. right: 15px;
  15480. width: 25px;
  15481. cursor: pointer;
  15482. top: 50%;
  15483. transform: translateY(-50%);
  15484. }
  15485. .e_add_list_body {
  15486. height: calc(100% - 187px);
  15487. overflow: auto;
  15488. }
  15489. .e_add_list_child {
  15490. width: 100%;
  15491. display: flex;
  15492. align-items: center;
  15493. justify-content: center;
  15494. position: relative;
  15495. box-sizing: border-box;
  15496. padding: 15px 40px;
  15497. text-align: center;
  15498. }
  15499. .e_add_list_child span {
  15500. overflow: hidden;
  15501. white-space: nowrap;
  15502. text-overflow: ellipsis;
  15503. cursor: pointer;
  15504. }
  15505. .e_add_list_child img {
  15506. position: absolute;
  15507. right: 10px;
  15508. width: 21px;
  15509. cursor: pointer;
  15510. top: 50%;
  15511. transform: translateY(-50%);
  15512. }
  15513. .e_add_list_child+.e_add_list_child {
  15514. border-top: 1px solid #eaeaea;
  15515. }
  15516. .e_add_list_child .active {
  15517. color: #409eff;
  15518. }
  15519. .e_add_list_btn {
  15520. position: absolute;
  15521. bottom: 0;
  15522. height: 50px;
  15523. background: rgb(120, 120, 254);
  15524. width: 100%;
  15525. color: #fff;
  15526. font-size: 16px;
  15527. text-align: center;
  15528. line-height: 50px;
  15529. cursor: pointer;
  15530. }
  15531. .e_add_list_detail {
  15532. position: absolute;
  15533. bottom: 0;
  15534. height: 130px;
  15535. background: rgb(120, 120, 254);
  15536. width: 100%;
  15537. color: #fff;
  15538. font-size: 16px;
  15539. display: flex;
  15540. align-items: center;
  15541. justify-content: center;
  15542. }
  15543. .e_add_list_detail textarea {
  15544. height: 90%;
  15545. width: 95%;
  15546. border: none;
  15547. resize: none;
  15548. outline: none;
  15549. padding: 5px;
  15550. box-sizing: border-box;
  15551. }
  15552. .e_add_list_pbox {
  15553. width: 100%;
  15554. }
  15555. .e_add_list_pbox_title {
  15556. height: 50px;
  15557. background: #fff;
  15558. display: flex;
  15559. align-items: center;
  15560. width: 100%;
  15561. box-sizing: border-box;
  15562. padding: 0 20px;
  15563. flex-direction: row;
  15564. flex-wrap: wrap;
  15565. }
  15566. .type_title {
  15567. font-size: 18px;
  15568. font-weight: 700;
  15569. }
  15570. .type_content {
  15571. font-size: 16px;
  15572. margin-left: 30px;
  15573. }
  15574. .type_content span+span {
  15575. margin-left: 20px;
  15576. }
  15577. .type_content span {
  15578. cursor: pointer;
  15579. padding-bottom: 5px;
  15580. box-sizing: border-box;
  15581. }
  15582. .type_content .active {
  15583. color: #409eff;
  15584. border-bottom: 2px solid #409eff;
  15585. }
  15586. .e_add_list_pbox_content {
  15587. height: calc(100% - 50px);
  15588. display: flex;
  15589. align-items: center;
  15590. width: 100%;
  15591. background: #fff;
  15592. }
  15593. .mbCss {
  15594. width: 100%;
  15595. display: flex;
  15596. flex-direction: row;
  15597. flex-wrap: nowrap;
  15598. align-content: center;
  15599. align-items: flex-start;
  15600. justify-content: flex-start;
  15601. }
  15602. .pjCss {
  15603. /* width: 42%; */
  15604. width: calc(100% - 55%);
  15605. display: flex;
  15606. flex-direction: column;
  15607. flex-wrap: nowrap;
  15608. align-items: flex-start;
  15609. }
  15610. .e_box {
  15611. /* display: flex; */
  15612. flex-wrap: wrap;
  15613. max-height: 500px;
  15614. align-items: flex-start;
  15615. overflow: auto;
  15616. width: 100%;
  15617. }
  15618. .e_card {
  15619. border: 1px solid #ccc;
  15620. background: #fff;
  15621. margin-right: 20px;
  15622. width: 270px;
  15623. display: flex;
  15624. flex-direction: column;
  15625. align-items: center;
  15626. border-radius: 5px;
  15627. margin-top: 10px;
  15628. text-align: center;
  15629. }
  15630. .e_card_picture {
  15631. margin: 10px 0;
  15632. }
  15633. .e_card_picture>img {
  15634. width: 50px;
  15635. }
  15636. .e_card_name {
  15637. width: 100%;
  15638. padding: 0 10px;
  15639. box-sizing: border-box;
  15640. margin-bottom: 10px;
  15641. overflow: hidden;
  15642. text-overflow: ellipsis;
  15643. white-space: nowrap;
  15644. }
  15645. .e_card_time {
  15646. width: 100%;
  15647. padding: 0 10px;
  15648. box-sizing: border-box;
  15649. font-size: 15px;
  15650. color: #c3c3c3;
  15651. margin-bottom: 10px;
  15652. }
  15653. .e_card_btn {
  15654. height: 40px;
  15655. display: flex;
  15656. align-items: center;
  15657. width: 100%;
  15658. background: rgb(244, 244, 244);
  15659. }
  15660. .e_card_btn:hover {
  15661. background: rgb(221 221 221);
  15662. }
  15663. .e_card_btn span {
  15664. flex: 1 1 auto;
  15665. text-align: center;
  15666. cursor: pointer;
  15667. }
  15668. .addEva {
  15669. border: 1px solid #ccc;
  15670. background: #fff;
  15671. margin-right: 20px;
  15672. width: 270px;
  15673. height: 149px;
  15674. display: flex;
  15675. flex-direction: column;
  15676. align-items: center;
  15677. border-radius: 5px;
  15678. margin-top: 10px;
  15679. text-align: center;
  15680. cursor: pointer;
  15681. justify-content: center;
  15682. }
  15683. .addEva>img {
  15684. width: 50px;
  15685. object-fit: cover;
  15686. }
  15687. .uploadFm {
  15688. border: 1px dashed #ccc;
  15689. width: 100%;
  15690. height: 140px;
  15691. position: relative;
  15692. cursor: pointer;
  15693. display: flex;
  15694. flex-direction: column;
  15695. justify-content: center;
  15696. align-items: center;
  15697. font-size: 14px;
  15698. color: #6e6e6e;
  15699. position: relative;
  15700. }
  15701. .cover_p {
  15702. width: 100% !important;
  15703. height: 100%;
  15704. object-fit: cover;
  15705. }
  15706. .uploadFm2:hover .cover_mask {
  15707. display: flex !important;
  15708. }
  15709. .cover_mask {
  15710. display: none;
  15711. width: 100%;
  15712. height: 100%;
  15713. position: absolute;
  15714. background: #00000054;
  15715. align-items: center;
  15716. justify-content: center;
  15717. flex-direction: column;
  15718. }
  15719. .cover_mask>img {
  15720. width: 30px;
  15721. }
  15722. .cover_mask>span {
  15723. color: #fff;
  15724. font-size: 12px;
  15725. }
  15726. .uploadFm>img {
  15727. width: 50px;
  15728. }
  15729. .fileCss {
  15730. width: 100%;
  15731. display: flex;
  15732. flex-direction: row;
  15733. flex-wrap: nowrap;
  15734. justify-content: space-around;
  15735. align-items: center;
  15736. padding-top: 15px;
  15737. }
  15738. .fileCss>div {
  15739. display: flex;
  15740. flex-direction: column;
  15741. align-items: center;
  15742. }
  15743. .fileCss .spanName {
  15744. margin-top: 10px;
  15745. }
  15746. .sysPicBox {
  15747. display: flex;
  15748. flex-direction: row;
  15749. flex-wrap: wrap;
  15750. align-content: flex-start;
  15751. height: 435px;
  15752. overflow: auto;
  15753. position: relative;
  15754. }
  15755. .picNone {
  15756. position: absolute;
  15757. left: 50%;
  15758. top: 45%;
  15759. transform: translate(-50%, -50%);
  15760. width: fit-content;
  15761. color: #9c9c9c;
  15762. }
  15763. .sysPic {
  15764. width: 200px;
  15765. height: 115px;
  15766. margin: 0 20px 20px 0;
  15767. cursor: pointer;
  15768. }
  15769. .sysPic>img,
  15770. .isSysPic>img,
  15771. .deletePic>img {
  15772. width: 100%;
  15773. height: 100%;
  15774. object-fit: cover;
  15775. }
  15776. .isSysPic {
  15777. width: 200px;
  15778. height: 115px;
  15779. position: relative;
  15780. }
  15781. .deletePic {
  15782. width: 20px;
  15783. height: 20px;
  15784. position: absolute;
  15785. top: 0;
  15786. right: 0;
  15787. cursor: pointer;
  15788. }
  15789. .select_box1 {
  15790. height: 100%;
  15791. }
  15792. .select_box1_img {
  15793. background: #fff;
  15794. border-radius: 5px;
  15795. padding: 15px;
  15796. box-sizing: border-box;
  15797. margin-bottom: 20px;
  15798. }
  15799. .select_box1_title {
  15800. padding: 0 0 15px 0;
  15801. border-bottom: 1px solid #eee;
  15802. margin-bottom: 15px;
  15803. }
  15804. .select_box1_title span:nth-child(1) {
  15805. font-size: 16px;
  15806. margin-right: 20px;
  15807. color: #000;
  15808. }
  15809. .select_box1_title span:nth-child(2) {
  15810. font-size: 14px;
  15811. color: rgb(112, 112, 112);
  15812. }
  15813. .select_box1_add_img {}
  15814. .select_box1_select {
  15815. background: #fff;
  15816. border-radius: 5px;
  15817. padding: 15px;
  15818. box-sizing: border-box;
  15819. height: calc(100% - 200px);
  15820. overflow: auto;
  15821. }
  15822. .select_box2 {
  15823. height: 100%;
  15824. }
  15825. .select_box2_title {
  15826. background: #fff;
  15827. border-radius: 5px;
  15828. padding: 5px 10px;
  15829. box-sizing: border-box;
  15830. margin-bottom: 10px;
  15831. }
  15832. .select_box2_box {
  15833. display: flex;
  15834. height: calc(100% - 30px);
  15835. }
  15836. .select_box2_img {
  15837. width: calc(100% - 310px);
  15838. height: 100%;
  15839. overflow: auto;
  15840. background: #fff;
  15841. border-radius: 5px;
  15842. }
  15843. .select_box2_img img {
  15844. width: 100%;
  15845. }
  15846. .select_box2_answer {
  15847. background: #fff;
  15848. margin-left: 10px;
  15849. border-radius: 5px;
  15850. width: 300px;
  15851. overflow: auto;
  15852. height: 100%;
  15853. display: flex;
  15854. flex-direction: column;
  15855. align-items: center;
  15856. padding-top: 10px;
  15857. box-sizing: border-box;
  15858. }
  15859. .select_box2_answer_box {
  15860. margin: 0 0 10px 0;
  15861. width: 85%;
  15862. }
  15863. .rate_textarea {
  15864. font: inherit;
  15865. color: currentColor;
  15866. width: 100%;
  15867. padding: 8px 14px;
  15868. display: block;
  15869. min-width: 0;
  15870. outline: none;
  15871. border: 1px solid rgba(0, 0, 0, 0.23);
  15872. border-radius: 4px;
  15873. box-sizing: border-box;
  15874. background: #fff;
  15875. margin: 0 20px 0 0;
  15876. resize: none;
  15877. }
  15878. .select_answer_title {
  15879. text-align: left;
  15880. width: 85%;
  15881. margin-bottom: 10px;
  15882. font-size: 18px;
  15883. color: #8e8e8e;
  15884. }
  15885. .mask {
  15886. background-color: rgb(0 0 0 / 30%);
  15887. /* position: fixed; */
  15888. position: absolute;
  15889. top: 0;
  15890. left: 0;
  15891. width: 100%;
  15892. height: 100%;
  15893. z-index: 90;
  15894. display: flex;
  15895. align-items: center;
  15896. justify-content: center;
  15897. }
  15898. .progressBox {
  15899. width: 300px;
  15900. height: 150px;
  15901. background: #fff;
  15902. border-radius: 10px;
  15903. box-shadow: 0 0 6px 1px #bfbfbf;
  15904. display: flex;
  15905. align-items: center;
  15906. justify-content: center;
  15907. flex-direction: column;
  15908. position: relative;
  15909. color: #6c6c6c;
  15910. }
  15911. .progressBox>>>.el-progress-bar__outer {
  15912. background-color: #d1dfff !important;
  15913. }
  15914. .progressBox .lbox {
  15915. height: 50px;
  15916. font-size: 19px;
  15917. display: flex;
  15918. align-items: center;
  15919. color: #747474;
  15920. }
  15921. .progressBox .lbox img {
  15922. width: 40px;
  15923. margin-right: 20px;
  15924. }
  15925. .closeCss {
  15926. position: absolute;
  15927. top: 8px;
  15928. right: 8px;
  15929. cursor: pointer;
  15930. width: 20px;
  15931. height: 20px;
  15932. }
  15933. .closeCss>img {
  15934. width: 100%;
  15935. height: 100%;
  15936. }
  15937. .updateTips::before {
  15938. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  15939. font-size: 14px;
  15940. margin-left: 20px;
  15941. font-weight: 400;
  15942. color: #ff3a3a;
  15943. margin-bottom: 10px;
  15944. display: block;
  15945. }
  15946. .updateMask {
  15947. width: 100%;
  15948. z-index: 3;
  15949. top: 0;
  15950. position: absolute;
  15951. /* background-color: rgba(0,0,0,.3); */
  15952. }
  15953. .t_j_box {
  15954. display: flex;
  15955. }
  15956. .t_j_box span:nth-child(1) {
  15957. width: 15%;
  15958. overflow: hidden;
  15959. margin-right: 10px;
  15960. text-overflow: ellipsis;
  15961. white-space: nowrap;
  15962. }
  15963. .t_j_box span:nth-child(2) {
  15964. width: 30%;
  15965. overflow: hidden;
  15966. text-overflow: ellipsis;
  15967. margin-right: 10px;
  15968. }
  15969. .t_j_box span:nth-child(3) {
  15970. max-width: calc(55% - 20px);
  15971. overflow: hidden;
  15972. text-overflow: ellipsis;
  15973. }
  15974. .sentenBox {
  15975. background: #fff;
  15976. height: 600px;
  15977. overflow: auto;
  15978. background-image: url("../../../assets/icon/conSentences/csBg.png");
  15979. background-position: 102%;
  15980. background-repeat: no-repeat;
  15981. background-size: 60%;
  15982. }
  15983. .sentenBox>.sentenContent {
  15984. padding-bottom: 10px;
  15985. width: 97%;
  15986. margin: 0 auto;
  15987. }
  15988. .sentenBox>.sentenContent+.sentenContent {
  15989. border-top: 1px solid #cbcbcb;
  15990. }
  15991. .addSen {
  15992. background: #409efe;
  15993. width: 90px;
  15994. color: #fff;
  15995. height: 35px;
  15996. text-align: center;
  15997. line-height: 35px;
  15998. border-radius: 5px;
  15999. float: right;
  16000. margin: 10px 20px 0 0;
  16001. cursor: pointer;
  16002. }
  16003. .sentenTop {
  16004. display: flex;
  16005. flex-direction: row;
  16006. flex-wrap: nowrap;
  16007. align-items: center;
  16008. }
  16009. .sentenTop::before {
  16010. content: attr(index);
  16011. background: #3681fc;
  16012. border-radius: 50%;
  16013. color: #fff;
  16014. width: 25px;
  16015. height: 25px;
  16016. min-width: 25px;
  16017. min-height: 25px;
  16018. text-align: center;
  16019. line-height: 25px;
  16020. margin-right: 5px;
  16021. }
  16022. .sentenTop>div:nth-child(2) {
  16023. width: 300px;
  16024. margin: 0 15px;
  16025. }
  16026. .sentenTop>div:nth-child(3) {
  16027. background: #409efe;
  16028. color: #fff;
  16029. width: 65px;
  16030. height: 35px;
  16031. text-align: center;
  16032. line-height: 35px;
  16033. border-radius: 5px;
  16034. cursor: pointer;
  16035. }
  16036. .cardList {
  16037. padding: 30px 0 20px 0;
  16038. display: flex;
  16039. flex-direction: row;
  16040. flex-wrap: wrap;
  16041. align-items: center;
  16042. box-sizing: border-box;
  16043. border-bottom: 1px solid #f4f4f4;
  16044. width: 98%;
  16045. margin: 0 auto;
  16046. }
  16047. .rightCardList {
  16048. display: flex;
  16049. flex-wrap: wrap;
  16050. }
  16051. .cardBox {
  16052. display: flex;
  16053. flex-direction: row;
  16054. flex-wrap: wrap;
  16055. align-items: center;
  16056. align-content: center;
  16057. }
  16058. .isCard,
  16059. .isCard1 {
  16060. width: auto;
  16061. padding: 0 20px;
  16062. height: 65px;
  16063. text-align: center;
  16064. line-height: 65px;
  16065. font-size: 14px;
  16066. cursor: pointer;
  16067. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16068. background-size: 100% 100%;
  16069. position: relative;
  16070. z-index: 99;
  16071. }
  16072. .isCard1 {
  16073. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16074. }
  16075. .isCard:hover .deleteWord {
  16076. display: block;
  16077. }
  16078. .isCard>div:nth-child(1),
  16079. .isCard1>div:nth-child(1) {
  16080. white-space: nowrap;
  16081. overflow: hidden;
  16082. text-overflow: ellipsis;
  16083. width: 100%;
  16084. margin: 0 auto;
  16085. }
  16086. .card {
  16087. width: 140px;
  16088. height: 65px;
  16089. }
  16090. .card>img {
  16091. width: 100%;
  16092. height: 100%;
  16093. }
  16094. .rightCardBox {
  16095. width: 98%;
  16096. margin: 10px auto 0;
  16097. }
  16098. .rightCardBox>div:nth-child(1) {
  16099. margin-bottom: 10px;
  16100. }
  16101. .cardCss {
  16102. display: flex;
  16103. flex-direction: column;
  16104. flex-wrap: nowrap;
  16105. align-items: center;
  16106. border-bottom: 3px solid #b4c3d3;
  16107. padding: 0 0 5px 0;
  16108. /* margin-right: 10px; */
  16109. }
  16110. .cardCss>div:nth-child(2) {
  16111. background: #5b7b9d;
  16112. color: #fff;
  16113. width: 20px;
  16114. height: 20px;
  16115. border-radius: 50%;
  16116. text-align: center;
  16117. line-height: 20px;
  16118. }
  16119. .sentenTopBox {
  16120. display: flex;
  16121. flex-direction: row;
  16122. flex-wrap: nowrap;
  16123. align-items: center;
  16124. justify-content: space-between;
  16125. padding: 55px 0 0 20px;
  16126. box-sizing: border-box;
  16127. width: 85%;
  16128. }
  16129. .rb_c_ai_box,
  16130. .stepsBottom {
  16131. width: 100%;
  16132. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16133. /* background: #f7f7f7; */
  16134. border-radius: 10px;
  16135. overflow: hidden;
  16136. /* height: 100%; */
  16137. height: calc(100% - 55px);
  16138. }
  16139. .navTop {
  16140. background: #53749b;
  16141. color: #fff;
  16142. height: 40px;
  16143. line-height: 40px;
  16144. padding-left: 15px;
  16145. font-size: 18px;
  16146. }
  16147. .navBottom {
  16148. /* background: #6b91b7; */
  16149. height: 100%;
  16150. overflow: auto;
  16151. padding: 10px 0;
  16152. }
  16153. .navStage {
  16154. display: flex;
  16155. flex-direction: row;
  16156. flex-wrap: nowrap;
  16157. align-items: center;
  16158. padding: 10px 10px 10px 0;
  16159. cursor: pointer;
  16160. background: #ffffff;
  16161. width: 95%;
  16162. margin: 5px auto 5px;
  16163. box-sizing: border-box;
  16164. border-radius: 5px;
  16165. flex-wrap: wrap;
  16166. position: relative;
  16167. }
  16168. .navStage:hover>.chapter_upload_drag {
  16169. display: block;
  16170. }
  16171. .navTask:hover>.chapter_upload_drag {
  16172. display: block;
  16173. }
  16174. .chapter_upload:hover>.chapter_upload_drag {
  16175. display: block;
  16176. }
  16177. .navStage::before {
  16178. content: "";
  16179. display: block;
  16180. width: 16px;
  16181. height: 16px;
  16182. background-image: url(../../../assets/icon/new/icon_stage.png);
  16183. background-size: 100%;
  16184. margin-left: 25px;
  16185. }
  16186. .navStage .chapter_unit_open {
  16187. content: "";
  16188. display: block;
  16189. width: 16px;
  16190. height: 16px;
  16191. background-image: url(../../../assets/icon/new/down.png);
  16192. transform: rotate(-90deg);
  16193. background-size: 100%;
  16194. margin-left: 10px;
  16195. transition: all 0.5s;
  16196. }
  16197. .isNavStageOpen .chapter_unit_open {
  16198. transform: rotate(0deg);
  16199. }
  16200. .isNavStage {
  16201. background: #0061ff;
  16202. }
  16203. .isNavStage::before {
  16204. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  16205. }
  16206. .isNavStage .chapter_unit_open {
  16207. background-image: url(../../../assets/icon/new/downC.png);
  16208. }
  16209. .isNavStage .nt_taskName {
  16210. font-weight: bold !important;
  16211. color: #ffffff !important;
  16212. }
  16213. .isNavStage .nt_taskTitle {
  16214. font-weight: bold !important;
  16215. color: #fff !important;
  16216. }
  16217. .navStage .nt_taskBox {
  16218. width: calc(100% - 68px);
  16219. padding: 0 0 0 5px;
  16220. box-sizing: border-box;
  16221. box-sizing: border-box;
  16222. display: flex;
  16223. flex-direction: row;
  16224. flex-wrap: nowrap;
  16225. align-items: baseline;
  16226. }
  16227. .navStage .nt_taskTitle {
  16228. color: #060e17;
  16229. line-height: 25px;
  16230. font-size: 16px;
  16231. }
  16232. .navStage .nt_taskName {
  16233. max-width: calc(100% - 82px);
  16234. white-space: nowrap;
  16235. overflow: hidden;
  16236. text-overflow: ellipsis;
  16237. font-size: 16px;
  16238. color: #060e17;
  16239. }
  16240. .navTask {
  16241. display: flex;
  16242. flex-direction: row;
  16243. flex-wrap: nowrap;
  16244. align-items: center;
  16245. padding: 10px 10px 10px 0;
  16246. cursor: pointer;
  16247. background: #ffffff;
  16248. width: 95%;
  16249. margin: 5px auto 5px;
  16250. box-sizing: border-box;
  16251. border-radius: 5px;
  16252. flex-wrap: wrap;
  16253. position: relative;
  16254. }
  16255. .navTask .chapter_upload_open {
  16256. content: "";
  16257. display: block;
  16258. width: 16px;
  16259. height: 16px;
  16260. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16261. background-size: 100%;
  16262. margin-left: 23px;
  16263. }
  16264. .noImage .chapter_upload_open {
  16265. display: none;
  16266. background-image: unset !important;
  16267. }
  16268. .isNavOpen .chapter_upload_open {
  16269. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  16270. transform: rotate(90deg);
  16271. }
  16272. .isNavTask .chapter_upload_open {
  16273. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16274. transform: rotate(-90deg);
  16275. }
  16276. .isNavTask.isNavOpen .chapter_upload_open {
  16277. transform: rotate(0deg);
  16278. }
  16279. .dragOverTop {
  16280. border-top: 2px solid #0061ff !important;
  16281. border-radius: 0 !important;
  16282. margin-top: 10px;
  16283. }
  16284. .dragOverBottom {
  16285. border-bottom: 2px solid #0061ff !important;
  16286. border-radius: 0 !important;
  16287. margin-top: 10px;
  16288. }
  16289. .dragOverTop2 {
  16290. border-top: 2px solid #0061ff !important;
  16291. border-radius: 0 !important;
  16292. }
  16293. .dragOverBottom2 {
  16294. border-bottom: 2px solid #0061ff !important;
  16295. border-radius: 0 !important;
  16296. }
  16297. .isNavTask {
  16298. /* background: #3681FC; */
  16299. background: #eef3fb;
  16300. }
  16301. .isNavTask>.chapter_upload_drag {
  16302. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16303. }
  16304. .isNavTask .nt_taskName {
  16305. /* color: #fff !important; */
  16306. font-weight: bold !important;
  16307. color: #0061ff !important;
  16308. }
  16309. .isNavTask .nt_taskTitle {
  16310. /* color: #AECCFE !important; */
  16311. font-weight: bold !important;
  16312. color: #0061ff !important;
  16313. }
  16314. .navTask .nt_taskBox {
  16315. width: calc(100% - 40px);
  16316. padding: 0 0 0 5px;
  16317. box-sizing: border-box;
  16318. box-sizing: border-box;
  16319. display: flex;
  16320. flex-direction: row;
  16321. flex-wrap: nowrap;
  16322. align-items: baseline;
  16323. }
  16324. .navTask .nt_taskTitle {
  16325. /* color: #717C8D; */
  16326. color: #060e17;
  16327. line-height: 25px;
  16328. font-size: 16px;
  16329. /* min-width: 66px; */
  16330. }
  16331. .navTask .nt_taskName {
  16332. /* color: #fff; */
  16333. /* max-width: 130px; */
  16334. /* width: 100%; */
  16335. max-width: calc(100% - 66px);
  16336. font-size: 16px;
  16337. color: #060e17;
  16338. /* color: #0E1E33; */
  16339. }
  16340. .navTask .nt_taskName span {
  16341. width: 100%;
  16342. white-space: nowrap;
  16343. overflow: hidden;
  16344. text-overflow: ellipsis;
  16345. display: block;
  16346. }
  16347. .gjBox {
  16348. width: calc(100% - 25px);
  16349. padding: 0 0 0 0;
  16350. box-sizing: border-box;
  16351. border-left: 1px solid #cad1dc;
  16352. margin-left: 25px;
  16353. }
  16354. .gjBox>div {
  16355. display: flex;
  16356. align-items: center;
  16357. }
  16358. .gjBox>div::before {
  16359. content: "";
  16360. height: 1px;
  16361. width: 10px;
  16362. background: #cad1dc;
  16363. display: block;
  16364. margin-right: 5px;
  16365. }
  16366. .gjCss {
  16367. display: flex;
  16368. flex-direction: row;
  16369. flex-wrap: nowrap;
  16370. align-items: center;
  16371. padding: 15px 0;
  16372. box-sizing: border-box;
  16373. font-size: 14px;
  16374. cursor: pointer;
  16375. }
  16376. .isGjCss {
  16377. color: #0061ff;
  16378. }
  16379. .groupBox {}
  16380. .groupContent+.groupContent {
  16381. margin-top: 30px;
  16382. }
  16383. .groupTitle {
  16384. font-size: 24px;
  16385. color: rgb(80, 80, 80);
  16386. margin-bottom: 20px;
  16387. }
  16388. .groupName {
  16389. display: flex;
  16390. align-items: center;
  16391. }
  16392. .groupn {
  16393. font-size: 15px;
  16394. margin-right: 10px;
  16395. }
  16396. .groupName+.groupName {
  16397. margin-top: 15px;
  16398. }
  16399. .groupBtn {
  16400. margin-left: 10px;
  16401. }
  16402. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  16403. text-align: left;
  16404. }
  16405. .radioBox>div {
  16406. margin: 10px 0 0 10px;
  16407. }
  16408. .radioBox>>>.el-radio__input,
  16409. .radioBox>>>.el-checkbox__inner {
  16410. margin-left: 10px;
  16411. }
  16412. .radioBox>>>.el-radio__label,
  16413. .radioBox>>>.el-checkbox__label {
  16414. display: flex;
  16415. align-items: center;
  16416. }
  16417. .inImg {
  16418. width: 50px;
  16419. }
  16420. .inImg>img {
  16421. width: 100%;
  16422. height: 100%;
  16423. object-fit: cover;
  16424. }
  16425. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  16426. height: auto;
  16427. padding: 10px;
  16428. margin: 0;
  16429. }
  16430. .upCss>>>.el-upload-list {
  16431. width: 100%;
  16432. }
  16433. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  16434. width: 100%;
  16435. height: 120px;
  16436. object-fit: contain;
  16437. background: unset;
  16438. margin-left: 0;
  16439. }
  16440. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  16441. display: none;
  16442. }
  16443. .tcMember+.tcMember::before {
  16444. content: "、";
  16445. }
  16446. .xzUpImg {
  16447. width: 25px;
  16448. height: 25px;
  16449. min-width: 25px;
  16450. min-height: 25px;
  16451. cursor: pointer;
  16452. margin: 0 10px;
  16453. }
  16454. .xzUpImg>img {
  16455. width: 100%;
  16456. height: 100%;
  16457. }
  16458. .closeCss {
  16459. position: absolute;
  16460. top: 8px;
  16461. right: 8px;
  16462. cursor: pointer;
  16463. width: 20px;
  16464. height: 20px;
  16465. }
  16466. .closeCss>img {
  16467. width: 100%;
  16468. height: 100%;
  16469. }
  16470. .moveBtn {
  16471. display: flex;
  16472. flex-direction: row;
  16473. flex-wrap: nowrap;
  16474. align-items: center;
  16475. width: 55px;
  16476. }
  16477. .timuUpImg {
  16478. display: flex;
  16479. flex-direction: row;
  16480. align-items: center;
  16481. width: 100%;
  16482. margin-right: 10px;
  16483. }
  16484. .timuUpImg>div:nth-child(1) {
  16485. margin-right: 10px;
  16486. display: flex;
  16487. align-items: center;
  16488. width: 100%;
  16489. }
  16490. .timuImgBox {
  16491. margin: 10px 0;
  16492. display: flex;
  16493. flex-direction: column;
  16494. flex-wrap: wrap;
  16495. align-items: flex-start;
  16496. }
  16497. .timuImg {
  16498. width: 100px;
  16499. margin: 5px 0;
  16500. cursor: pointer;
  16501. position: relative;
  16502. }
  16503. .timuImg:hover .deleteWord {
  16504. display: block;
  16505. }
  16506. .deleteWord {
  16507. width: 25px;
  16508. height: 25px;
  16509. position: absolute;
  16510. right: -5px;
  16511. top: -5px;
  16512. cursor: pointer;
  16513. display: none;
  16514. }
  16515. .timuImg>img,
  16516. .deleteWord>img {
  16517. width: 100%;
  16518. height: 100%;
  16519. object-fit: cover;
  16520. }
  16521. .e_add_delete {
  16522. cursor: pointer;
  16523. margin-left: 10px;
  16524. }
  16525. .pType_box {
  16526. margin-top: 30px;
  16527. align-items: flex-end;
  16528. }
  16529. .noneBox {
  16530. height: 200px;
  16531. width: 100%;
  16532. display: flex;
  16533. align-items: center;
  16534. justify-content: center;
  16535. flex-direction: column;
  16536. /* margin-top: 150px; */
  16537. }
  16538. .noneBox>img {
  16539. width: 95px;
  16540. }
  16541. .noneBox>span {
  16542. margin-top: 10px;
  16543. color: #717c8d;
  16544. }
  16545. .rb_c_box {
  16546. width: 100%;
  16547. height: 100%;
  16548. display: flex;
  16549. /* padding: 20px; */
  16550. box-sizing: border-box;
  16551. justify-content: space-between;
  16552. }
  16553. .rb_c_box_left {
  16554. height: 100%;
  16555. background: #fff;
  16556. width: 270px;
  16557. min-width: 270px;
  16558. border-radius: 8px;
  16559. margin-right: 10px;
  16560. }
  16561. .rb_c_box_right {
  16562. height: 100%;
  16563. width: calc(100%);
  16564. overflow: hidden;
  16565. }
  16566. .rb_c_box_btn {
  16567. display: flex;
  16568. justify-content: flex-start;
  16569. height: 50px;
  16570. align-items: center;
  16571. }
  16572. .rb_c_box_right>.basic_box {
  16573. /* background: #fff; */
  16574. border-radius: 0;
  16575. height: calc(100% - 0px);
  16576. overflow: auto;
  16577. padding: 0;
  16578. }
  16579. .textarea_css {
  16580. display: block;
  16581. resize: none;
  16582. padding: 10px 15px;
  16583. line-height: 1.5;
  16584. box-sizing: border-box;
  16585. width: 100%;
  16586. font-size: 14px;
  16587. color: #606266;
  16588. background-color: #fff;
  16589. background-image: none;
  16590. border: 1px solid #dcdfe6;
  16591. border-radius: 4px;
  16592. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16593. outline: none;
  16594. overflow: hidden;
  16595. height: 46px;
  16596. font-family: "Microsoft YaHei";
  16597. }
  16598. .textarea_css::-webkit-input-placeholder {
  16599. color: #c0c4cc;
  16600. }
  16601. .textarea_css:focus {
  16602. border-color: #409eff;
  16603. outline: 0;
  16604. }
  16605. .addEditor>>>.text {
  16606. height: auto;
  16607. min-height: 100px;
  16608. }
  16609. .addEditor>>>.w-e-text-container {
  16610. min-height: 100px;
  16611. }
  16612. .moveBtn2 {
  16613. flex-direction: column;
  16614. width: fit-content;
  16615. margin: 0 10px 0 10px;
  16616. }
  16617. .moveBtn2 .chapter_upload_down,
  16618. .moveBtn2 .chapter_upload_up {
  16619. width: 16px;
  16620. height: 16px;
  16621. }
  16622. .moveBtn2 .chapter_upload_up::after,
  16623. .moveBtn2 .chapter_upload_down::after {
  16624. width: 10px;
  16625. height: 10px;
  16626. }
  16627. .fullStyle>>>.el-dialog__body {
  16628. height: calc(100% - 125px) !important;
  16629. box-sizing: border-box;
  16630. }
  16631. .fullStyle1>>>.el-dialog__body {
  16632. height: auto !important;
  16633. }
  16634. .fullStyle>>>.el-dialog {
  16635. width: 100% !important;
  16636. max-width: 100% !important;
  16637. height: 100% !important;
  16638. margin: 0 !important;
  16639. }
  16640. .fullStyle {
  16641. width: 100% !important;
  16642. max-width: 100% !important;
  16643. height: 100% !important;
  16644. margin: 0 auto !important;
  16645. }
  16646. .wb_j_box_btn {
  16647. width: calc(100% - 30px);
  16648. display: flex;
  16649. height: 40px;
  16650. border: 1.5px solid #cad1dc;
  16651. border-radius: 4px;
  16652. box-sizing: border-box;
  16653. align-items: center;
  16654. font-size: 14px;
  16655. cursor: pointer;
  16656. overflow: hidden;
  16657. }
  16658. .wb_j_box_btn:hover {
  16659. border: 1.5px solid #0061ff;
  16660. }
  16661. .wb_j_box_title {
  16662. background: #f0f4fa;
  16663. height: 100%;
  16664. line-height: 40px;
  16665. width: 90px;
  16666. text-align: center;
  16667. color: #060e17;
  16668. border-right: 1.5px solid #cad1dc;
  16669. box-sizing: border-box;
  16670. }
  16671. .wb_j_box_btn_c {
  16672. width: calc(100% - 90px);
  16673. padding: 0 35px 0 10px;
  16674. box-sizing: border-box;
  16675. position: relative;
  16676. }
  16677. .wb_j_box_span {
  16678. width: 100%;
  16679. overflow: hidden;
  16680. white-space: nowrap;
  16681. text-overflow: ellipsis;
  16682. word-wrap: break-word;
  16683. color: #717c8d;
  16684. }
  16685. .wb_j_box_arrow {
  16686. content: "";
  16687. width: 14px;
  16688. height: 14px;
  16689. background: url(../../../assets/icon/new/u_arrow.png);
  16690. background-size: 100% 100%;
  16691. position: absolute;
  16692. right: 12px;
  16693. top: 50%;
  16694. transform: translateY(-50%);
  16695. }
  16696. .check_classBox {
  16697. height: 400px;
  16698. display: flex;
  16699. border-top: 1.5px solid #e7ebf1;
  16700. border-bottom: 1.5px solid #e7ebf1;
  16701. }
  16702. .check_class_right {
  16703. width: 130px;
  16704. border-right: 1px solid #e7ebf1;
  16705. display: flex;
  16706. align-items: center;
  16707. flex-direction: column;
  16708. height: 100%;
  16709. overflow: auto;
  16710. padding: 15px 0;
  16711. box-sizing: border-box;
  16712. }
  16713. .check_class {
  16714. width: 85%;
  16715. border-radius: 5px;
  16716. height: 30px;
  16717. line-height: 30px;
  16718. text-align: center;
  16719. padding: 0 10px;
  16720. box-sizing: border-box;
  16721. cursor: pointer;
  16722. white-space: nowrap;
  16723. overflow: hidden;
  16724. text-overflow: ellipsis;
  16725. }
  16726. .check_class.activeX {
  16727. background: #e0eafb;
  16728. color: #3681fc;
  16729. font-weight: 700;
  16730. }
  16731. .check_class+.check_class {
  16732. margin-top: 15px;
  16733. }
  16734. .check_class_left {
  16735. background: #fafafa;
  16736. width: calc(100% - 130px);
  16737. padding: 15px;
  16738. box-sizing: border-box;
  16739. }
  16740. .check_class_all_box {
  16741. display: flex;
  16742. margin-bottom: 10px;
  16743. }
  16744. .all_check {
  16745. display: flex;
  16746. align-items: center;
  16747. padding: 2px 0 0;
  16748. margin-left: 10px;
  16749. }
  16750. .all_check>>>.el-checkbox__label {
  16751. line-height: 18px;
  16752. }
  16753. .check_class_left_title {
  16754. font-size: 16px;
  16755. font-weight: 700;
  16756. }
  16757. .check_class_item {
  16758. display: flex;
  16759. flex-wrap: wrap;
  16760. height: calc(100% - 45px);
  16761. overflow: auto;
  16762. justify-content: flex-start;
  16763. align-items: flex-start;
  16764. align-content: flex-start;
  16765. }
  16766. .class_item:first-child {
  16767. /* margin: 0 15px 15px 67px; */
  16768. }
  16769. .class_item {
  16770. margin: 0 15px 15px 0;
  16771. }
  16772. .class_item:hover>>>.el-checkbox__label {
  16773. color: #409eff;
  16774. }
  16775. .class_item>>>.el-checkbox__label {
  16776. color: #0e1e33;
  16777. }
  16778. .class_item:hover>>>.el-checkbox__inner {
  16779. border-color: #409eff;
  16780. }
  16781. .class_item>>>.el-checkbox,
  16782. .class_item>>>.el-checkbox__input {
  16783. display: flex;
  16784. align-items: center;
  16785. }
  16786. .taskTitle {
  16787. font-size: 20px;
  16788. font-weight: bold;
  16789. margin-bottom: 35px;
  16790. }
  16791. .taskTitle:after {
  16792. content: "";
  16793. width: 100%;
  16794. display: block;
  16795. height: 1px;
  16796. background: #cad1dc;
  16797. position: absolute;
  16798. left: 0;
  16799. margin: 15px 0 0;
  16800. }
  16801. .eva_btn_box {
  16802. margin: 20px 0px 0 0;
  16803. display: flex;
  16804. flex-direction: row;
  16805. flex-wrap: nowrap;
  16806. align-items: center;
  16807. justify-content: space-between;
  16808. width: 100%;
  16809. }
  16810. .eva_btn_left_box {
  16811. display: flex;
  16812. flex-direction: row;
  16813. flex-wrap: nowrap;
  16814. align-items: center;
  16815. }
  16816. .addTypeChoose {
  16817. display: flex;
  16818. flex-direction: row;
  16819. flex-wrap: nowrap;
  16820. align-items: center;
  16821. margin: 15px 0;
  16822. }
  16823. .addTypeBox {
  16824. display: flex;
  16825. flex-direction: column;
  16826. flex-wrap: nowrap;
  16827. align-items: center;
  16828. }
  16829. .addTypeChoose {
  16830. display: flex;
  16831. flex-direction: row;
  16832. flex-wrap: nowrap;
  16833. align-items: center;
  16834. margin: 15px 0;
  16835. }
  16836. .buchong_box {
  16837. background: #E0EAFB66;
  16838. width: calc(100% - 20px);
  16839. min-height: 50px;
  16840. display: flex;
  16841. align-items: center;
  16842. justify-content: center;
  16843. margin: 0 auto;
  16844. }
  16845. .outline {
  16846. width: calc(100% - 40px);
  16847. margin: 0 auto;
  16848. }
  16849. .task_outline {
  16850. width: calc(100% - 40px);
  16851. margin: 0 auto;
  16852. }
  16853. .outline_box+.outline_box {
  16854. margin: 30px 0 0px;
  16855. }
  16856. .outline_task {
  16857. display: flex;
  16858. align-items: center;
  16859. margin-bottom: 10px;
  16860. }
  16861. .outline_task .title {
  16862. font-size: 18px;
  16863. font-weight: bold;
  16864. min-width: 80px;
  16865. }
  16866. .op_task_box,
  16867. .op_tool_box,
  16868. .outline_detail {
  16869. position: relative;
  16870. }
  16871. .op_task_box:hover .op_box,
  16872. .op_tool_box:hover .op_box,
  16873. .outline_detail:hover .op_box {
  16874. display: flex
  16875. }
  16876. .op_box {
  16877. position: absolute;
  16878. bottom: 10px;
  16879. display: none;
  16880. align-items: center;
  16881. justify-content: space-between;
  16882. width: calc(100% - 20px);
  16883. left: 50%;
  16884. transform: translateX(-50%);
  16885. }
  16886. .op_box .op_remark {
  16887. color: #8E8E8E;
  16888. font-size: 14px;
  16889. }
  16890. .rb_c_nav {
  16891. width: calc(100% - 20px);
  16892. margin: 15px auto 0;
  16893. font-size: 18px;
  16894. }
  16895. .rb_c_nav span {
  16896. cursor: pointer;
  16897. }
  16898. .rb_c_nav span+span {
  16899. margin-left: 10px;
  16900. }
  16901. .rb_c_nav span.active {
  16902. color: #0061FF
  16903. }
  16904. .text_panel>>>.text {
  16905. height: 400px;
  16906. }
  16907. </style>