addCourse.vue 704 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading" element-loading-text="小可正在努力生成中,请稍等...">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right" :style="{width:istemplate == 1 ? '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" :style="{overflow:istemplate == 1 ? 'auto' : 'hidden'}">
  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. ? istemplate == 1 ? 'auto' : 'calc(100% - 20px)'
  103. : istemplate == 1 ? 'auto' : '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. " @change="setCover" />
  129. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  130. style="justify-content: center; min-width: 150px"></el-switch>
  131. <el-switch v-model="isFileSearch" active-text="是否开启智能检索"
  132. style="justify-content: center; min-width: 175px"></el-switch>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  137. <span>类型</span>
  138. <!-- 学科+ 主题+ 未来+ -->
  139. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  140. style="display: flex; align-items: center">
  141. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2"
  142. :key="index">
  143. <el-radio :label="item.name">{{
  144. item.name
  145. }}</el-radio>
  146. </div>
  147. </el-radio-group>
  148. </div>
  149. <div class="both">
  150. <div class="choose">
  151. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  152. <span v-if="
  153. CourseTypeJson[item.id].length > 0 &&
  154. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  155. ? pTypeCheck.indexOf(item.id) != -1
  156. : true)
  157. ">{{ item.name }}:</span>
  158. <el-checkbox-group v-model="courseTypeId" v-if="
  159. CourseTypeJson[item.id].length > 0 &&
  160. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  161. ? pTypeCheck.indexOf(item.id) != -1
  162. : true)
  163. ">
  164. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  165. item1.name }}</el-checkbox>
  166. </el-checkbox-group>
  167. <!-- <div
  168. v-else
  169. style="font-size: 14px; margin-left: -8px"
  170. >
  171. 暂无
  172. </div> -->
  173. </div>
  174. </div>
  175. </div>
  176. <div class="info_box_t" v-if="templatePan.includes(templateid)">
  177. <div class="info_box_t_box">
  178. <span>课程节数:</span>
  179. <input type="text" placeholder="请输入课程节数" class="binfo_input" v-model="courseJie" @change="numberPanJie"/>
  180. <span>节</span>
  181. </div>
  182. <div class="info_box_t_box">
  183. <span>课程时长:</span>
  184. <input type="text" placeholder="请输入课程节数" class="binfo_input" v-model="courseTime" @change="numberPanTime"/>
  185. <span>min</span>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="right_first" v-loading="imageloading2">
  190. <!-- <div class="ai_box">
  191. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  192. </div> -->
  193. <div class="c_info_title" style="padding: 0 0 15px; margin: 0 auto 0 0">
  194. 上传封面
  195. </div>
  196. <div style="width: 100%">
  197. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  198. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  199. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  200. <div v-if="cover.length == 0">点击添加封面</div>
  201. <div class="cover_mask">
  202. <img src="../../../assets/icon/new/cover_update.png" /><span
  203. style="margin-top: 5px">修改封面</span>
  204. </div>
  205. </div>
  206. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  207. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  208. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  209. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  210. <i class="el-icon-plus"></i>
  211. </el-upload> -->
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="whiteBg" style="background: #fff; margin: 10px 0;padding: 0 0 15px;">
  219. <div class="whiteBg" style="border-radius: 0">
  220. <div class="c_info_title">
  221. 课程权限设置
  222. </div>
  223. <div class="wb_j_box">
  224. <div class="wb_j_box_content">
  225. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  226. (dialogVisibleClass = true),
  227. (classSearch = ''),
  228. (gradeId = ''),
  229. getClass()
  230. ">添加班级</button>
  231. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  232. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  233. getClassC(tc) }}</span>
  234. </div> -->
  235. <div class="wb_j_box_btn" @click="
  236. (dialogVisibleClass = true),
  237. (classSearch = ''),
  238. (gradeId = ''),
  239. getClass()
  240. ">
  241. <div class="wb_j_box_title">授课班级</div>
  242. <div class="wb_j_box_btn_c">
  243. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  244. v-if="checkboxList2.length" popper-class="text_tooltip2">
  245. <div class="wb_j_box_span">
  246. {{ getListClassC(checkboxList2) }}
  247. </div>
  248. </el-tooltip>
  249. <div v-else class="wb_j_box_span">请选择授课班级</div>
  250. <div class="wb_j_box_arrow"></div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="wb_j_box_content">
  255. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  256. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  257. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  258. checkBoolean
  259. ? checkboxList3
  260. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  261. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  262. </div> -->
  263. <div class="wb_j_box_btn" @click="openMember">
  264. <div class="wb_j_box_title">协同人员</div>
  265. <div class="wb_j_box_btn_c">
  266. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  267. v-if="checkboxList3.length" popper-class="text_tooltip2">
  268. <div class="wb_j_box_span">
  269. {{ getListMan2(checkboxList3) }}
  270. </div>
  271. </el-tooltip>
  272. <div v-else class="wb_j_box_span">请选择协同人员</div>
  273. <div class="wb_j_box_arrow"></div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  280. <div class="c_info_title">目标管理</div>
  281. <div style="margin: 0 auto; padding: 0 20px">
  282. <div style="
  283. width: 95%;
  284. min-height: 200px;
  285. border: 1px solid #cad1dc;
  286. border-radius: 4px;
  287. position: relative;
  288. ">
  289. <div class="e_add_top">
  290. <div class="e_add_title">
  291. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()" v-if="evalua">
  292. 清除
  293. </button>
  294. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">
  295. 添加
  296. </button>
  297. <!-- <span>当前使用目标管理</span>
  298. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  299. <img
  300. src="../../../assets/line.png"
  301. class="cru_line"
  302. style="
  303. width: 125px;
  304. height: 20px;
  305. bottom: -10px;
  306. left: 155px;
  307. "
  308. /> -->
  309. </div>
  310. <div style="
  311. display: flex;
  312. flex-direction: row;
  313. align-items: center;
  314. ">
  315. <!-- <el-button
  316. type="primary"
  317. size="small"
  318. @click="dialogVisiblemb = true"
  319. >添加目标管理</el-button
  320. >
  321. <el-button
  322. type="primary"
  323. size="small"
  324. @click="deleteEva()"
  325. >清除内容</el-button
  326. > -->
  327. <!-- <div class="e_add_delete" @click="deleteEva()">
  328. <img src="../../../assets/icon/delete.png" alt="" />
  329. </div> -->
  330. </div>
  331. </div>
  332. <div v-if="evalua == ''">
  333. <div class="noneBox">
  334. <img src="../../../assets/icon/new/eva_none.png" />
  335. <span>请添加目标管理</span>
  336. </div>
  337. </div>
  338. <div class="e_add_content" v-else>
  339. <div class="e_add_list_pbox">
  340. <div class="e_add_list_pbox_title">
  341. <span class="type_title">切换模式</span>
  342. <div class="type_content">
  343. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  344. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  345. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  346. </div>
  347. </div>
  348. <div class="e_add_list_pbox_content">
  349. <Mind :showBar="false" :mindData="data" v-if="typeMode == 1"></Mind>
  350. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  351. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  352. v-if="typeMode == 3">
  353. </SeeBoard>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading" element-loading-text="小可正在努力生成中,请稍等...">
  362. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  363. <div class="c_info_title">
  364. 课程简要描述
  365. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  366. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  367. @contextmenu.prevent="openAiDialog(1, 'aiDetail')"
  368. @click="openAiDialog(2, 'aiDetail')">AI优化</button>
  369.                   </el-tooltip>
  370. </div>
  371. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  372. <div style="width: calc(100%)">
  373. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  374. placeholder="请输入课程简要描述"></textarea>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  380. <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  381. <div class="c_info_title">
  382. 补充资料
  383. <button class="c_pub_button_add pub_btn_add_img" style="margin: 0 20px 0 auto;">上传补充资料</button>
  384. </div>
  385. <div class="buchong_box">
  386. <span>暂时还没有内容,快去添加吧~</span>
  387. </div>
  388. </div> -->
  389. <div style="position: relative;
  390. background: #fff;
  391. box-sizing: border-box;
  392. padding: 1px 20px 10px;
  393. width: 100%;
  394. border-radius: 10px;">
  395. <div style="
  396. display: flex;
  397. flex-direction: row;
  398. justify-content: space-between;
  399. align-items: center;
  400. " :style="{
  401. margin: true
  402. ? '20px 0 10px'
  403. : '20px 0 0',
  404. }">
  405. <div style="margin-bottom: 10px;width:100%" class="lineTitle">
  406. 补充资料
  407. <div class="add_info_box" style="margin: 0 0 0 auto">
  408. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  409. 上传补充资料
  410. <input type="file" accept=".docx,.doc,.ppt,.pptx,.md,.txt,.pdf" style="display: none" v-if="inputShow" @change="
  411. beforeUploadInfo2(
  412. $event,
  413. 13
  414. )
  415. " />
  416. </button>
  417. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  418. 图文
  419. </button>
  420. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  421. 链接
  422. </button>
  423. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  424. 代码
  425. </button>
  426. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  427. 资源
  428. </button> -->
  429. </div>
  430. </div>
  431. </div>
  432. <div>
  433. <div class="add_chapters_box add_c_none" v-if="
  434. infoData &&
  435. infoData.length == 0
  436. ">
  437. <img src="../../../assets/icon/new/c_none.png" alt /><span>暂时还没有内容,快去添加吧</span>
  438. </div>
  439. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  440. <div @dragstart="
  441. dragStart(item1, index1, 0)
  442. " @dragover.prevent="
  443. dragOver(index1, 0)
  444. " @dragend="dragEnd()" :draggable="isdrag ==
  445. 'chapter-' + 0 + '-' + index1
  446. " class="chapter_upload" v-for="(item1, index1) in infoData" :key="item1.id" @click="
  447. getChapterData(
  448. $event,
  449. index1,
  450. item1.type
  451. )
  452. " :class="{
  453. dragOverTop2:
  454. newIndex === index1 &&
  455. typeIndex ==
  456. 'chapter-' +
  457. 0 +
  458. '-' +
  459. index1 &&
  460. oldIndex > index1 &&
  461. dragType == 'drag',
  462. dragOverBottom2:
  463. newIndex === index1 &&
  464. typeIndex ==
  465. 'chapter-' +
  466. 0 +
  467. '-' +
  468. index1 &&
  469. oldIndex < index1 &&
  470. dragType == 'drag',
  471. }">
  472. <!-- <div @mousedown="
  473. isdrag =
  474. 'chapter-' + 0 + '-' + index1
  475. " @mouseup="isdrag = ''" @touchstart="
  476. isdrag =
  477. 'chapter-' + 0 + '-' + index1
  478. " @touchend="isdrag = ''" class="chapter_upload_drag"></div> -->
  479. <div class="chapter_upload_o" style="
  480. position: relative;
  481. display: flex;
  482. align-items: center;
  483. ">
  484. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  485. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  486. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  487. </div>
  488. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  489. </div>
  490. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  491. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  492. </div>
  493. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  494. </div>
  495. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  496. </div>
  497. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  498. </div>
  499. </div>
  500. <div class="chapter_upload_n">
  501. <input readonly="true" v-if="
  502. item1.type == 2 ||
  503. item1.type == 3 ||
  504. item1.type == 12 ||
  505. item1.type == 13 ||
  506. item1.type == 7
  507. " :placeholder="item1.name" @click="
  508. updataVideoT(
  509. $event,
  510. index1
  511. )
  512. " style="
  513. border: none;
  514. outline: none;
  515. width: 80%;
  516. minwidth: 215px;
  517. z-index: 99;
  518. font-size: 14px;
  519. white-space: nowrap;
  520. overflow: hidden;
  521. text-overflow: ellipsis;
  522. " />
  523. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  524. border: none;
  525. outline: none;
  526. width: 80%;
  527. white-space: nowrap;
  528. overflow: hidden;
  529. text-overflow: ellipsis;
  530. " readonly="true" @click="
  531. selectAttText(index1)
  532. " />
  533. <input :placeholder="item1.title ? item1.title : '链接'
  534. " v-if="item1.type == 8" style="
  535. border: none;
  536. outline: none;
  537. width: 80%;
  538. white-space: nowrap;
  539. overflow: hidden;
  540. text-overflow: ellipsis;
  541. " readonly="true" @click="selectLine(index1)" />
  542. <input :placeholder="item1.title ? item1.title : '链接'
  543. " v-if="item1.type == 14" style="
  544. border: none;
  545. outline: none;
  546. width: 80%;
  547. white-space: nowrap;
  548. overflow: hidden;
  549. text-overflow: ellipsis;
  550. " readonly="true" @click="
  551. openUpdateSource(index1)
  552. " />
  553. </div>
  554. <div class="chapter_upload_ic">
  555. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  556. <!-- <div class="chapter_upload_ud" style="z-index: 99">
  557. <div class="chapter_upload_up" @click="
  558. upCd(
  559. $event,
  560. index1
  561. )
  562. "></div>
  563. <div class="chapter_upload_down" @click="
  564. downCd(
  565. $event,
  566. index1
  567. )
  568. "></div>
  569. </div>
  570. <div class="chapter_upload_ic_edit" v-if="
  571. item1.type == 2 ||
  572. item1.type == 3 ||
  573. item1.type == 12 ||
  574. item1.type == 13 ||
  575. item1.type == 7
  576. " @click.stop="
  577. updataVideoT(
  578. $event,
  579. index1
  580. )
  581. ">
  582. <div></div>
  583. </div>
  584. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  585. selectAttText(index1)
  586. ">
  587. <div></div>
  588. </div>
  589. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  590. @click="selectLine(index1)">
  591. <div></div>
  592. </div>
  593. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  594. openUpdateSource(index1)
  595. ">
  596. <div></div>
  597. </div> -->
  598. <div class="chapter_upload_ic_r" @click.stop="
  599. deleteInfoData(
  600. $event,
  601. index1
  602. )
  603. ">
  604. <div></div>
  605. </div>
  606. </div>
  607. </div>
  608. </div>
  609. </div>
  610. </div>
  611. <div v-if="
  612. infoproVisible
  613. " class="mask">
  614. <div class="progressBox">
  615. <!-- <div id="closePro" class="closeCss">
  616. <img src="../../../../assets/icon/close.png" alt />
  617. </div> -->
  618. <div class="lbox">
  619. <img src="../../../assets/loading.gif" />上传中,请稍后
  620. </div>
  621. <div style="margin-bottom: 10px">
  622. <span>{{
  623. infoisFinishSize
  624. }}M</span>
  625. /
  626. <span>{{
  627. infoisAllSize
  628. }}M</span>
  629. </div>
  630. <el-progress :text-inside="true" :stroke-width="20" :percentage="infoprogress
  631. ? infoprogress
  632. : 0
  633. " style="width: 80%"></el-progress>
  634. </div>
  635. </div>
  636. </div>
  637. </div>
  638. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="false">
  639. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  640. <div class="c_info_title">
  641. 补充描述
  642. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  643. </div>
  644. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  645. <div style="width: calc(100%)">
  646. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText2"
  647. placeholder="请输入课程补充描述:例如您期望的课程时长、任务数量、任务难度、任务类型等。"></textarea>
  648. </div>
  649. </div>
  650. </div>
  651. </div>
  652. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && isOutline">
  653. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  654. <div class="c_info_title">
  655. 课程大纲
  656. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
  657. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  658. @contextmenu.prevent="openAiDialog(1, 'aiOutline')"
  659. @click="openAiDialog(2, 'aiOutline')">生成大纲</button>
  660. </el-tooltip>
  661. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  662. </div>
  663. <div class="task_outline">
  664. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  665. <div class="outline_task">
  666. <div class="title">任务{{ index + 1 }}</div>
  667. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  668. v-model="item.task" />
  669. </div>
  670. <div class="outline_detail" v-loading="taskDetailLoading.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  671. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  672. placeholder="请输入任务描述" v-model="item.taskDetail2"></textarea>
  673. <div class="op_box">
  674. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  675. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  676. <div class="r_pub_button_op"
  677. @contextmenu.prevent="openAiDialog(1, 'aiDetail1', item, index)"
  678. @click="openAiDialog(2, 'aiDetail1', item, index)">智能优化</div>
  679. </el-tooltip>
  680. </div>
  681. </div>
  682. </div>
  683. </div>
  684. </div>
  685. </div>
  686. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 0">
  687. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  688. <div class="c_info_title">
  689. 概念群
  690. </div>
  691. <div class="task_outline">
  692. <div class="outline_detail" v-loading="cpoteLoading.cpote1" element-loading-text="小可正在努力生成中,请稍等...">
  693. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入概念群"
  694. v-model="cpote.cpote1" v-if="cpote.cpote1s"></textarea>
  695. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote1)" v-else></div>
  696. <div class="op_box">
  697. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  698. <div style="display: flex;">
  699. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  700. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
  701. @click="openAiDialog(2, 'aiCpote1')">智能优化</div>
  702. </el-tooltip>
  703. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote1s')">{{
  704. cpote.cpote1s ? '确定' : '编辑'}}</div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 1">
  712. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  713. <div class="c_info_title">
  714. 问题链
  715. </div>
  716. <div class="task_outline">
  717. <div class="outline_detail" v-loading="cpoteLoading.cpote2" element-loading-text="小可正在努力生成中,请稍等...">
  718. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入问题链"
  719. v-model="cpote.cpote2" v-if="cpote.cpote2s"></textarea>
  720. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote2)" v-else></div>
  721. <div class="op_box">
  722. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  723. <div style="display: flex;">
  724. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  725. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
  726. @click="openAiDialog(2, 'aiCpote1')">智能优化</div>
  727. </el-tooltip>
  728. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote2s')">{{
  729. cpote.cpote2s ? '确定' : '编辑'}}</div>
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. </div>
  735. </div>
  736. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 2">
  737. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  738. <div class="c_info_title">
  739. 目标层
  740. </div>
  741. <div class="task_outline">
  742. <div class="outline_detail" v-loading="cpoteLoading.cpote3" element-loading-text="小可正在努力生成中,请稍等...">
  743. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入目标层"
  744. v-model="cpote.cpote3" v-if="cpote.cpote3s"></textarea>
  745. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote3)" v-else></div>
  746. <div class="op_box">
  747. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  748. <div style="display: flex;">
  749. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  750. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
  751. @click="openAiDialog(2, 'aiCpote3')">智能优化</div>
  752. </el-tooltip>
  753. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote3s')">{{
  754. cpote.cpote3s ? '确定' : '编辑'}}</div>
  755. </div>
  756. </div>
  757. </div>
  758. </div>
  759. </div>
  760. </div>
  761. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && cpoteType > 3">
  762. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  763. <div class="c_info_title">
  764. 任务簇
  765. </div>
  766. <div class="task_outline">
  767. <div class="outline_detail" v-loading="cpoteLoading.cpote4" element-loading-text="小可正在努力生成中,请稍等...">
  768. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入任务簇"
  769. v-model="cpote.cpote4" v-if="cpote.cpote4s"></textarea>
  770. <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote4)" v-else></div>
  771. <div class="op_box">
  772. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  773. <div style="display: flex;">
  774. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  775. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
  776. @click="openAiDialog(2, 'aiCpote4')">智能优化</div>
  777. </el-tooltip>
  778. <div class="r_pub_button_edit" style="margin-left:10px" @click="editCpote('cpote4s')">{{
  779. cpote.cpote4s ? '确定' : '编辑'}}</div>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline2">
  787. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  788. <div class="c_info_title">
  789. 教案
  790. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
  791. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
  792. @contextmenu.prevent="openAiDialog(1, 'aiTeacher')"
  793. @click="openAiDialog(2, 'aiTeacher')">生成教案</button>
  794. </el-tooltip>
  795. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  796. </div>
  797. <div class="task_outline">
  798. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  799. <div class="outline_task">
  800. <div class="title">任务{{ index + 1 }}</div>
  801. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  802. v-model="item.task" />
  803. </div>
  804. <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  805. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
  806. v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
  807. <div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
  808. <div class="op_box">
  809. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  810. <div style="display: flex;">
  811. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  812. <div class="r_pub_button_op"
  813. @contextmenu.prevent="openAiDialog(1, 'teacherDetail', item.taskDetail3, index)"
  814. @click="openAiDialog(2, 'teacherDetail', item.taskDetail3, index)">智能优化</div>
  815. </el-tooltip>
  816. <div class="r_pub_button_edit" style="margin-left:10px" @click="editTask3(index)">{{
  817. item.isTask3 ? '确定' : '编辑'}}</div>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="info_btnBox3" v-if="istemplate != 1">
  826. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  827. goTo(
  828. '/course?userid=' +
  829. userid +
  830. '&oid=' +
  831. oid +
  832. '&org=' +
  833. org +
  834. '&role=' +
  835. role
  836. )
  837. ">
  838. 返回课程
  839. </button>
  840. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  841. {{ steps == 4 ? "返回课程" : "上一步" }}
  842. </button>
  843. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="steps < 4">
  844. <button class="c_pub_button_confirm" @click="nextSteps(2)"
  845. @contextmenu.prevent="nextSteps(1)" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'" :class="{
  846. pub_btn_next_img: steps != 3,
  847. pub_btn_finish_img: steps == 3,
  848. }">
  849. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : !isOutline2 ? "生成教案" : "下一步" }}
  850. </button>
  851. <button class="c_pub_button_confirm" v-else @click="nextSteps(2)"
  852. @contextmenu.prevent="nextSteps(1)" :class="{
  853. pub_btn_next_img: steps != 3,
  854. pub_btn_finish_img: steps == 3,
  855. }">
  856. {{ steps == 3 ? "确认上传" : (templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && cpoteType < 4) ?
  857. cpoteType < 3 ? cpoteType < 2 ? cpoteType < 1 ? "生成概念群" : "生成问题链" : "生成目标层" : "生成任务簇" : !isOutline2 ? "生成教案"
  858. : "下一步" }}
  859. </button>
  860. </el-tooltip>
  861. </div>
  862. </div>
  863. <div class="rightBox" v-if="steps == 2" :style="{
  864. height:
  865. !isStepDisplay && !isBtnDisplay
  866. ? istemplate == 1 ? 'auto' : 'calc(100% - 40px)'
  867. : istemplate == 1 ? 'auto' : 'calc(100% - 100px)',
  868. }">
  869. <div class="basic_box" style="
  870. padding: 20px 30px 0px !important;
  871. box-sizing: border-box;
  872. height: calc(100% - 80px);
  873. overflow: auto;
  874. background: #fff;
  875. ">
  876. <!-- <div
  877. style="
  878. color: #b8b8b8;
  879. background: #fff;
  880. width: 26%;
  881. height: 40px;
  882. border-radius: 15px;
  883. padding-left: 20px;
  884. line-height: 40px;
  885. font-size: 17px;
  886. box-shadow: 0px 1px 2px 2px #e0e0e0;
  887. "
  888. >-->
  889. <div class="right_title" style="border: none; margin: 0; padding: 0">
  890. 请选择合适的课程模板
  891. </div>
  892. <div class="wordbox">
  893. <div class="wordTeacher" @click="checkTemplate2()">
  894. <div class="wordPic">
  895. <img src="../../../assets/icon/new/template_none.png" alt />
  896. </div>
  897. <div style="
  898. margin-top: 10px;
  899. line-height: 19px;
  900. overflow: hidden;
  901. text-overflow: ellipsis;
  902. white-space: nowrap;
  903. padding: 0 20px;
  904. ">
  905. 空白模板
  906. </div>
  907. </div>
  908. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  909. <div class="wordPic">
  910. <img src="../../../assets/icon/new/template.png" alt />
  911. </div>
  912. <div style="
  913. margin-top: 10px;
  914. line-height: 19px;
  915. overflow: hidden;
  916. text-overflow: ellipsis;
  917. white-space: nowrap;
  918. padding: 0 20px;
  919. ">
  920. {{ aa.title }}
  921. </div>
  922. </div>
  923. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  924. <div class="wordPic">
  925. <img src="../../../assets/icon/new/template.png" alt />
  926. </div>
  927. <div style="
  928. margin-top: 10px;
  929. line-height: 19px;
  930. overflow: hidden;
  931. text-overflow: ellipsis;
  932. white-space: nowrap;
  933. padding: 0 20px;
  934. ">
  935. 简易模板
  936. </div>
  937. </div>
  938. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  939. <div class="wordPic">
  940. <img src="../../../assets/icon/new/template.png" alt />
  941. </div>
  942. <div style="
  943. margin-top: 10px;
  944. line-height: 19px;
  945. overflow: hidden;
  946. text-overflow: ellipsis;
  947. white-space: nowrap;
  948. padding: 0 20px;
  949. ">
  950. 智能粘贴模式
  951. </div>
  952. </div>
  953. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  954. <div class="wordPic">
  955. <img src="../../../assets/icon/wordMub.png" alt />
  956. </div>
  957. <div style="
  958. margin-top: 10px;
  959. line-height: 19px;
  960. overflow: hidden;
  961. text-overflow: ellipsis;
  962. white-space: nowrap;
  963. padding: 0 20px;
  964. ">
  965. 未来小学课程设计
  966. </div>
  967. </div> -->
  968. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  969. <div class="wordPic">
  970. <img src="../../../assets/icon/wordMub.png" alt />
  971. </div>
  972. <div style="
  973. margin-top: 10px;
  974. line-height: 19px;
  975. overflow: hidden;
  976. text-overflow: ellipsis;
  977. white-space: nowrap;
  978. padding: 0 20px;
  979. ">
  980. 我的课程
  981. </div>
  982. </div> -->
  983. </div>
  984. </div>
  985. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  986. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  987. goTo(
  988. '/course?userid=' +
  989. userid +
  990. '&oid=' +
  991. oid +
  992. '&org=' +
  993. org +
  994. '&role=' +
  995. role
  996. )
  997. ">
  998. 返回课程
  999. </button>
  1000. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  1001. {{ steps == 4 ? "返回课程" : "上一步" }}
  1002. </button>
  1003. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  1004. pub_btn_next_img: steps != 3,
  1005. pub_btn_finish_img: steps == 3,
  1006. }">
  1007. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  1008. </button>
  1009. </div>
  1010. </div>
  1011. <div class="rightBox" v-if="steps == 3 || istemplate == 1" ref="rightboxR" :style="{
  1012. height:
  1013. !isStepDisplay && !isBtnDisplay
  1014. ? istemplate == 1 ? 'auto' : 'calc(100% - 40px)'
  1015. : istemplate == 1 ? 'auto' : 'calc(100% - 100px)',
  1016. }">
  1017. <div class="rb_c_box">
  1018. <div class="rb_c_box_left" v-if="(steps == 3 || istemplate == 1) && unitJson[unitIndex].easy != 1">
  1019. <div class="rb_c_nav">
  1020. <span :class="{ active: stepsNav == 1 }" @click="stepsNav = 1">目录</span>
  1021. <span :class="{ active: stepsNav == 2 }" @click="stepsNav = 2">AI助手</span>
  1022. </div>
  1023. <div class="stepsBottom" v-if="stepsNav == 1" :style="{
  1024. height:istemplate == 1 ? 'calc(100vh - 300px)' : 'calc(100% - 55px)',
  1025. position: istemplate == 1 ? 'sticky' : 'unset',
  1026. top: istemplate == 1 ? '0' : 'unset'
  1027. }">
  1028. <!-- <div class="navTop">辅助导航</div> -->
  1029. <div class="navBottom" v-if="courseState == 4">
  1030. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  1031. <div class="nt_taskBox" style="width: 100%;">
  1032. <div class="nt_taskTitle"
  1033. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  1034. unitIndex + 1 }}</div>
  1035. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  1036. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  1037. <span>{{ unitJson[unitIndex].dyName }}</span>
  1038. </el-tooltip>
  1039. </div>
  1040. </div>
  1041. </div> -->
  1042. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  1043. .taskJson" :key="tIndex" :class="{
  1044. dragOverTop:
  1045. newIndex === tIndex &&
  1046. typeIndex == 'task-' + tIndex &&
  1047. oldIndex > tIndex &&
  1048. dragType == 'task',
  1049. dragOverBottom:
  1050. newIndex === tIndex &&
  1051. typeIndex == 'task-' + tIndex &&
  1052. oldIndex < tIndex &&
  1053. dragType == 'task',
  1054. }">
  1055. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  1056. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + tIndex" @click="goToTask(tIndex)"
  1057. class="navTask" :class="{
  1058. isNavTask:
  1059. isClickColor > 0 && isClickColor == tIndex + 1,
  1060. isNavOpen: t.toolOpen,
  1061. }">
  1062. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  1063. <div @mousedown="isdrag = 'task-' + tIndex" @mouseup="isdrag = ''"
  1064. @touchstart="isdrag = 'task-' + tIndex" @touchend="isdrag = ''" style="left: 8px"
  1065. class="chapter_upload_drag"></div>
  1066. <div class="nt_taskBox">
  1067. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  1068. <div class="nt_taskName">
  1069. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1070. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  1071. </el-tooltip>
  1072. </div>
  1073. </div>
  1074. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  1075. 1
  1076. ">
  1077. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  1078. @click.stop="taskMove(1, tIndex)"></div>
  1079. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  1080. @click.stop="taskMove(2, tIndex)"></div>
  1081. </div> -->
  1082. </div>
  1083. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1084. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1085. @click="jumpGj(tIndex, toolIndex2)">
  1086. <div class="gjCss" :class="{
  1087. isGjCss:
  1088. toolIndexType == `gj${tIndex}${toolIndex2}`,
  1089. }">
  1090. <div>工具{{ toolIndex2 + 1 }}:</div>
  1091. <div>
  1092. {{
  1093. toolsData[tool.tool[0]] &&
  1094. toolsData[tool.tool[0]].name
  1095. }}
  1096. </div>
  1097. </div>
  1098. </div>
  1099. </div>
  1100. </div>
  1101. </div>
  1102. <div class="navBottom" v-if="courseState == 1">
  1103. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  1104. dragOverTop:
  1105. newIndex === stageIndex &&
  1106. typeIndex == 'Unit-' + stageIndex &&
  1107. oldIndex > stageIndex &&
  1108. dragType == 'Unit',
  1109. dragOverBottom:
  1110. newIndex === stageIndex &&
  1111. typeIndex == 'Unit-' + stageIndex &&
  1112. oldIndex < stageIndex &&
  1113. dragType == 'Unit',
  1114. }">
  1115. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  1116. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex"
  1117. @click="unitSet2(stageIndex)" class="navStage" :class="{
  1118. isNavStage: stageIndex == unitIndex,
  1119. isNavStageOpen: stage.toolOpen,
  1120. }">
  1121. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  1122. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px"
  1123. class="chapter_upload_drag"></div>
  1124. <div class="nt_taskBox">
  1125. <div class="nt_taskTitle">
  1126. 第{{ stageIndex + 1 }}阶段:
  1127. </div>
  1128. <div class="nt_taskName">
  1129. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'
  1130. " placement="top">
  1131. <span>{{
  1132. stage.dyName ? stage.dyName : "未命名阶段"
  1133. }}</span>
  1134. </el-tooltip>
  1135. </div>
  1136. </div>
  1137. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  1138. </div>
  1139. <div v-for="(t, tIndex) in unitJson[stageIndex]
  1140. .chapterInfo[0].taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  1141. dragOverTop:
  1142. newIndex === tIndex &&
  1143. typeIndex == 'task-' + tIndex &&
  1144. ((oldIndex > tIndex &&
  1145. stageIndex == checkUnitIndex) ||
  1146. (oldIndex == tIndex &&
  1147. stageIndex == checkUnitIndex &&
  1148. checkUnitIndex != oldUnitIndex)) &&
  1149. dragType == 'task',
  1150. dragOverBottom:
  1151. newIndex === tIndex &&
  1152. typeIndex == 'task-' + tIndex &&
  1153. oldIndex < tIndex &&
  1154. stageIndex == checkUnitIndex &&
  1155. dragType == 'task',
  1156. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  1157. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  1158. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex
  1159. " @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px" :class="{
  1160. isNavTask:
  1161. isClickColor > 0 &&
  1162. isClickColor == tIndex + 1 &&
  1163. stageIndex == unitIndex,
  1164. isNavOpen: t.toolOpen,
  1165. }">
  1166. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  1167. <div @mousedown="
  1168. isdrag = 'task-' + stageIndex + '-' + tIndex
  1169. " @mouseup="isdrag = ''" @touchstart="
  1170. isdrag = 'task-' + stageIndex + '-' + tIndex
  1171. " @touchend="isdrag = ''" style="left: 20px" class="chapter_upload_drag"></div>
  1172. <div class="nt_taskBox" style="width: calc(100% - 52px)">
  1173. <div class="nt_taskTitle">
  1174. 任务{{ tIndex + 1 }}:
  1175. </div>
  1176. <div class="nt_taskName">
  1177. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  1178. <span>{{
  1179. t.task ? t.task : "未命名任务"
  1180. }}</span>
  1181. </el-tooltip>
  1182. </div>
  1183. </div>
  1184. </div>
  1185. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1186. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1187. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  1188. <div class="gjCss" :class="{
  1189. isGjCss:
  1190. toolIndexType ==
  1191. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1192. }">
  1193. <div>工具{{ toolIndex2 + 1 }}:</div>
  1194. <div>
  1195. {{
  1196. toolsData[tool.tool[0]] &&
  1197. toolsData[tool.tool[0]].name
  1198. }}
  1199. </div>
  1200. </div>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </div>
  1205. </div>
  1206. </div>
  1207. <div class="rb_c_ai_box" v-if="stepsNav == 2">
  1208. <aiBox @setUnitJson="setUnitJson" :courseId="courseId" :unitJson="unitJson"></aiBox>
  1209. </div>
  1210. </div>
  1211. <div class="rb_c_box_right">
  1212. <!-- <div class="rb_c_box_btn">
  1213. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1214. </div> -->
  1215. <div class="basic_box" ref="unitBox">
  1216. <div v-if="false" style="
  1217. display: flex;
  1218. flex-direction: row;
  1219. align-items: center;
  1220. position: sticky;
  1221. top: 0;
  1222. z-index: 99;
  1223. width: 100%;
  1224. padding: 0 20px 0 20px;
  1225. box-sizing: border-box;
  1226. background: #fff;
  1227. border-radius: 8px;
  1228. ">
  1229. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1230. <div class="cru_selectBox" :style="{
  1231. maxWidth: isPasteTask
  1232. ? 'calc(100% - 335px)'
  1233. : 'calc(100% - 190px)',
  1234. }" v-if="courseState == 1">
  1235. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1236. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1237. <!-- item.dyName ? item.dyName : -->
  1238. <span v-if="
  1239. unitJson[unitJson.length - 1].easy == 4 ||
  1240. unitJson[unitJson.length - 1].easy == 6
  1241. ">{{
  1242. item.dyName
  1243. ? item.dyName
  1244. : "第" + (index + 1) + "阶段"
  1245. }}</span>
  1246. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1247. </div>
  1248. <div class="cru_line" :style="{
  1249. left: offsetLetfPx + 'px',
  1250. }"></div>
  1251. </div>
  1252. <div class="addStageImg" @click="addunit()" v-if="
  1253. !(unitJson[unitJson.length - 1].easy == 4) &&
  1254. !(unitJson[unitJson.length - 1].easy == 6) &&
  1255. courseState == 1
  1256. ">
  1257. <img src="../../../assets/icon/new/addStage.png" alt />
  1258. </div>
  1259. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)"
  1260. v-if="courseState == 2" style="margin: 15px 0">
  1261. 新建阶段
  1262. </button>
  1263. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1264. <button class="c_pub_button_add" @click="openStageBox" v-show="false" style="margin: 0 0 0 auto">
  1265. 阶段顺序
  1266. </button>
  1267. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()"
  1268. v-if="(steps == 3 || istemplate == 1) && isPasteTask" style="margin: 0 0 0 auto">
  1269. 智能粘贴
  1270. </button>
  1271. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate" :style="{
  1272. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1273. }" style="padding: 0 12px">
  1274. 选择课程模板
  1275. </button>
  1276. </div>
  1277. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1278. :key="index">
  1279. <div style="position: relative;
  1280. background: #fff;
  1281. box-sizing: border-box;
  1282. padding: 1px 20px 10px;
  1283. width: 100%;
  1284. border-radius: 10px;">
  1285. <div style="
  1286. display: flex;
  1287. flex-direction: row;
  1288. justify-content: space-between;
  1289. align-items: center;
  1290. " :style="{
  1291. margin: !item.taskJson[0].isFoldchapter
  1292. ? '20px 0 10px'
  1293. : '20px 0 0',
  1294. }">
  1295. <div style="margin-bottom: 10px;width: 100%;" class="lineTitle">
  1296. 学习内容
  1297. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
  1298. <button class="c_pub_button_confirm" style="margin: 0 0 0 auto;"
  1299. @contextmenu.prevent="openAiDialog(1, 'aiTask',()=>{loading = false})"
  1300. @click="openAiDialog(2, 'aiTask',()=>{loading = false})">生成任务</button>
  1301. </el-tooltip>
  1302. </div>
  1303. </div>
  1304. <div>
  1305. <div class="add_chapters_box add_c_none" v-if="
  1306. item.taskJson[0].chapterData &&
  1307. item.taskJson[0].chapterData.length == 0
  1308. ">
  1309. <img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span>
  1310. </div>
  1311. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1312. <div @dragstart="
  1313. dragStart(item1, index1, 0)
  1314. " @dragover.prevent="
  1315. dragOver(index1, 0)
  1316. " @dragend="dragEnd()" :draggable="isdrag ==
  1317. 'chapter-' + 0 + '-' + index1
  1318. " class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  1319. :key="item1.id" @click="
  1320. getChapterData(
  1321. $event,
  1322. unitIndex,
  1323. index,
  1324. index1,
  1325. item1.type
  1326. )
  1327. " :class="{
  1328. dragOverTop2:
  1329. newIndex === index1 &&
  1330. typeIndex ==
  1331. 'chapter-' +
  1332. 0 +
  1333. '-' +
  1334. index1 &&
  1335. oldIndex > index1 &&
  1336. dragType == 'drag',
  1337. dragOverBottom2:
  1338. newIndex === index1 &&
  1339. typeIndex ==
  1340. 'chapter-' +
  1341. 0 +
  1342. '-' +
  1343. index1 &&
  1344. oldIndex < index1 &&
  1345. dragType == 'drag',
  1346. }">
  1347. <div @mousedown="
  1348. isdrag =
  1349. 'chapter-' + 0 + '-' + index1
  1350. " @mouseup="isdrag = ''" @touchstart="
  1351. isdrag =
  1352. 'chapter-' + 0 + '-' + index1
  1353. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1354. <div class="chapter_upload_o" style="
  1355. position: relative;
  1356. display: flex;
  1357. align-items: center;
  1358. ">
  1359. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1360. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1361. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1362. </div>
  1363. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1364. </div>
  1365. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1366. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1367. </div>
  1368. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1369. </div>
  1370. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1371. </div>
  1372. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1373. </div>
  1374. </div>
  1375. <div class="chapter_upload_n">
  1376. <input readonly="true" v-if="
  1377. item1.type == 2 ||
  1378. item1.type == 3 ||
  1379. item1.type == 12 ||
  1380. item1.type == 13 ||
  1381. item1.type == 7
  1382. " :placeholder="item1.name" @click="
  1383. updataVideoT(
  1384. $event,
  1385. unitIndex,
  1386. 0,
  1387. index1
  1388. )
  1389. " style="
  1390. border: none;
  1391. outline: none;
  1392. width: 80%;
  1393. minwidth: 215px;
  1394. z-index: 99;
  1395. font-size: 14px;
  1396. white-space: nowrap;
  1397. overflow: hidden;
  1398. text-overflow: ellipsis;
  1399. " />
  1400. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1401. border: none;
  1402. outline: none;
  1403. width: 80%;
  1404. white-space: nowrap;
  1405. overflow: hidden;
  1406. text-overflow: ellipsis;
  1407. " readonly="true" @click="
  1408. selectAttText(0, index1)
  1409. " />
  1410. <input :placeholder="item1.title ? item1.title : '链接'
  1411. " v-if="item1.type == 8" style="
  1412. border: none;
  1413. outline: none;
  1414. width: 80%;
  1415. white-space: nowrap;
  1416. overflow: hidden;
  1417. text-overflow: ellipsis;
  1418. " readonly="true" @click="selectLine(0, index1)" />
  1419. <input :placeholder="item1.title ? item1.title : '链接'
  1420. " v-if="item1.type == 14" style="
  1421. border: none;
  1422. outline: none;
  1423. width: 80%;
  1424. white-space: nowrap;
  1425. overflow: hidden;
  1426. text-overflow: ellipsis;
  1427. " readonly="true" @click="
  1428. openUpdateSource(0, index1)
  1429. " />
  1430. </div>
  1431. <div class="chapter_upload_ic">
  1432. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1433. <div class="chapter_upload_ud" style="z-index: 99">
  1434. <div class="chapter_upload_up" @click="
  1435. upCd(
  1436. $event,
  1437. unitIndex,
  1438. index,
  1439. 0,
  1440. index1
  1441. )
  1442. "></div>
  1443. <div class="chapter_upload_down" @click="
  1444. downCd(
  1445. $event,
  1446. unitIndex,
  1447. index,
  1448. 0,
  1449. index1
  1450. )
  1451. "></div>
  1452. </div>
  1453. <div class="chapter_upload_ic_edit" v-if="
  1454. item1.type == 2 ||
  1455. item1.type == 3 ||
  1456. item1.type == 12 ||
  1457. item1.type == 13 ||
  1458. item1.type == 7
  1459. " @click.stop="
  1460. updataVideoT(
  1461. $event,
  1462. unitIndex,
  1463. 0,
  1464. index1
  1465. )
  1466. ">
  1467. <div></div>
  1468. </div>
  1469. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1470. selectAttText(0, index1)
  1471. ">
  1472. <div></div>
  1473. </div>
  1474. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1475. @click="selectLine(0, index1)">
  1476. <div></div>
  1477. </div>
  1478. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1479. openUpdateSource(0, index1)
  1480. ">
  1481. <div></div>
  1482. </div>
  1483. <div class="chapter_upload_ic_r" @click.stop="
  1484. deleteChapterData(
  1485. $event,
  1486. unitIndex,
  1487. index,
  1488. index1,
  1489. 0
  1490. )
  1491. ">
  1492. <div></div>
  1493. </div>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <div class="add_info_box" style="margin: 10px 0 0">
  1500. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1501. 文件
  1502. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1503. beforeUpload2(
  1504. $event,
  1505. unitIndex,
  1506. 13,
  1507. 0
  1508. )
  1509. " />
  1510. </button>
  1511. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  1512. 图文
  1513. </button>
  1514. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  1515. 链接
  1516. </button>
  1517. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  1518. 代码
  1519. </button>
  1520. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  1521. 资源
  1522. </button>
  1523. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreate(0)">
  1524. AI生成PPT
  1525. </button>
  1526. <button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(0)">
  1527. AI生成教案
  1528. </button>
  1529. <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(0)">
  1530. 智能检索视频
  1531. </button>
  1532. </div>
  1533. <div v-if="
  1534. unitJson[unitIndex].chapterInfo[0].taskJson[
  1535. 0
  1536. ].proVisible
  1537. " class="mask">
  1538. <div class="progressBox">
  1539. <!-- <div id="closePro" class="closeCss">
  1540. <img src="../../../../assets/icon/close.png" alt />
  1541. </div> -->
  1542. <div class="lbox">
  1543. <img src="../../../assets/loading.gif" />上传中,请稍后
  1544. </div>
  1545. <div style="margin-bottom: 10px">
  1546. <span>{{
  1547. unitJson[unitIndex].chapterInfo[0].taskJson[
  1548. 0
  1549. ].isFinishSize
  1550. }}M</span>
  1551. /
  1552. <span>{{
  1553. unitJson[unitIndex].chapterInfo[0].taskJson[
  1554. 0
  1555. ].isAllSize
  1556. }}M</span>
  1557. </div>
  1558. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1559. 0
  1560. ].progress
  1561. ? unitJson[unitIndex].chapterInfo[0]
  1562. .taskJson[0].progress
  1563. : 0
  1564. " style="width: 80%"></el-progress>
  1565. </div>
  1566. </div>
  1567. </div>
  1568. <div class="chapter_box" v-if="courseState == 1">
  1569. <div class="chapter_contentbox">
  1570. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1571. <div class="cc_input">
  1572. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  1573. v-model="unitJson[unitIndex].dyName" />
  1574. </div>
  1575. <div class="remove" v-if="
  1576. (unitJson.length > 1 || courseState != 2) &&
  1577. !(unitJson[unitJson.length - 1].easy == 4) &&
  1578. !(unitJson[unitJson.length - 1].easy == 6)
  1579. " @click="deleteUnit(unitIndex)"></div>
  1580. </div>
  1581. </div>
  1582. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1583. margin: 50px 0px 10px;
  1584. font-size: 1.5em;
  1585. font-weight: 700;
  1586. color: #0f7eff;
  1587. ">
  1588. 添加任务
  1589. </div> -->
  1590. <div class="taskBorder" :style="{
  1591. minHeight: unitJson[unitIndex].easy && 'unset',
  1592. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1593. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1594. <div style="background: #fff; border-radius: 5px">
  1595. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1596. <!-- padding: 20px; -->
  1597. <div v-if="unitJson[unitIndex].easy != 1">
  1598. <div :style="{
  1599. marginBottom:
  1600. unitJson[unitIndex].easy == 3 ||
  1601. (unitJson[unitIndex].easy == 5 &&
  1602. itemTask.taskType == 1)
  1603. ? '75px'
  1604. : '0',
  1605. }">
  1606. <div style="
  1607. display: flex;
  1608. margin: 0px 0 20px;
  1609. flex-direction: row;
  1610. justify-content: flex-start;
  1611. align-items: center;
  1612. ">
  1613. <div class="lineTitle">任务概述</div>
  1614. </div>
  1615. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  1616. flex-direction: row;
  1617. justify-content: flex-start;
  1618. align-items: center;
  1619. margin: 0;
  1620. ">
  1621. <!-- <div class="cc_title">
  1622. 任务{{ itemTaskIndex + 1 }}
  1623. </div> -->
  1624. <div class="cc_input">
  1625. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  1626. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1627. itemTaskIndex
  1628. ].task
  1629. " />
  1630. </div>
  1631. <div class="remove" v-if="
  1632. item.taskJson.length > 1 &&
  1633. (!unitJson[unitIndex].easy ||
  1634. unitJson[unitIndex].easy == 6)
  1635. " @click="deleteTask(itemTaskIndex)"></div>
  1636. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1637. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1638. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1639. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1640. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1641. </div> -->
  1642. </div>
  1643. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1644. display: flex;
  1645. margin: 20px 0;
  1646. flex-direction: row;
  1647. justify-content: flex-start;
  1648. align-items: center;
  1649. ">
  1650. <div class="lineTitle">任务描述</div>
  1651. </div> && !itemTask.isFold2-->
  1652. <div v-if="
  1653. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1654. -1
  1655. " style="margin-top: 20px" class="op_task_box"
  1656. v-loading="taskDetailLoading2.indexOf('task-' + itemTaskIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  1657. <!-- <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1658. itemTaskIndex
  1659. ].taskDetail
  1660. " @change="change"></editor-bar> -->
  1661. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  1662. placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1663. itemTaskIndex
  1664. ].taskDetail
  1665. "></textarea>
  1666. <!-- <textarea rows="6" class="binfo_input" placeholder="请输入任务描述" cols
  1667. style="width: 70.5% !important; height: 120px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1668. itemTaskIndex
  1669. ].taskDetail
  1670. "></textarea> -->
  1671. <div class="op_box">
  1672. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  1673. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  1674. <div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1675. itemTaskIndex
  1676. ], itemTaskIndex)" @click="openAiDialog(2, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
  1677. itemTaskIndex
  1678. ], itemTaskIndex)">智能优化</div>
  1679. </el-tooltip>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <div v-if="
  1685. unitJson[unitIndex].easy == 1 ||
  1686. (unitJson[unitIndex].easy == 5 &&
  1687. itemTask.taskType == 2)
  1688. ">
  1689. <div>
  1690. <div class="add_chapters_box add_c_none" v-if="
  1691. itemTask.chapterData &&
  1692. itemTask.chapterData.length == 0
  1693. ">
  1694. <img src="../../../assets/icon/new/c_none.png" alt />
  1695. </div>
  1696. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1697. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="
  1698. dragOver(index1, itemTaskIndex)
  1699. " @dragend="dragEnd()" :draggable="isdrag ==
  1700. 'chapter-' + itemTaskIndex + '-' + index1
  1701. " class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData"
  1702. :key="item1.id" @click="
  1703. getChapterData(
  1704. $event,
  1705. unitIndex,
  1706. index,
  1707. index1,
  1708. item1.type
  1709. )
  1710. " :class="{
  1711. dragOverTop2:
  1712. newIndex === index1 &&
  1713. typeIndex ==
  1714. 'chapter-' +
  1715. itemTaskIndex +
  1716. '-' +
  1717. index1 &&
  1718. oldIndex > index1,
  1719. dragOverBottom2:
  1720. newIndex === index1 &&
  1721. typeIndex ==
  1722. 'chapter-' +
  1723. itemTaskIndex +
  1724. '-' +
  1725. index1 &&
  1726. oldIndex < index1,
  1727. }">
  1728. <div @mousedown="
  1729. isdrag =
  1730. 'chapter-' + itemTaskIndex + '-' + index1
  1731. " @mouseup="isdrag = ''" @touchstart="
  1732. isdrag =
  1733. 'chapter-' + itemTaskIndex + '-' + index1
  1734. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1735. <div class="chapter_upload_t" style="width: 100%"></div>
  1736. <div class="chapter_upload_o" style="
  1737. position: relative;
  1738. display: flex;
  1739. align-items: center;
  1740. ">
  1741. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1742. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1743. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1744. </div>
  1745. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1746. </div>
  1747. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1748. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1749. </div>
  1750. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1751. </div>
  1752. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1753. </div>
  1754. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1755. </div>
  1756. </div>
  1757. <div class="chapter_upload_n">
  1758. <span style="
  1759. font-size: 14px;
  1760. color: rgb(109, 109, 109);
  1761. height: 14px;
  1762. line-height: 14px;
  1763. " v-if="
  1764. item1.type == 2 ||
  1765. item1.type == 3 ||
  1766. item1.type == 7
  1767. ">{{ item1.text }}-</span>
  1768. <input readonly="true" v-if="
  1769. item1.type == 2 ||
  1770. item1.type == 3 ||
  1771. item1.type == 7
  1772. " :placeholder="item1.name" @click="
  1773. updataVideoT(
  1774. $event,
  1775. unitIndex,
  1776. itemTaskIndex,
  1777. index1
  1778. )
  1779. " style="
  1780. border: none;
  1781. outline: none;
  1782. width: 80%;
  1783. minwidth: 215px;
  1784. z-index: 99;
  1785. font-size: 14px;
  1786. white-space: nowrap;
  1787. overflow: hidden;
  1788. text-overflow: ellipsis;
  1789. " />
  1790. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1791. border: none;
  1792. outline: none;
  1793. width: 80%;
  1794. white-space: nowrap;
  1795. overflow: hidden;
  1796. text-overflow: ellipsis;
  1797. " readonly="true" @click="
  1798. selectAttText(itemTaskIndex, index1)
  1799. " />
  1800. <input :placeholder="item1.title ? item1.title : '链接'
  1801. " v-if="item1.type == 8 || item1.type == 14" style="
  1802. border: none;
  1803. outline: none;
  1804. width: 80%;
  1805. white-space: nowrap;
  1806. overflow: hidden;
  1807. text-overflow: ellipsis;
  1808. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1809. </div>
  1810. <div class="chapter_upload_ic">
  1811. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1812. <div class="chapter_upload_ud" style="z-index: 99">
  1813. <div class="chapter_upload_up" @click="
  1814. upCd(
  1815. $event,
  1816. unitIndex,
  1817. index,
  1818. itemTaskIndex,
  1819. index1
  1820. )
  1821. "></div>
  1822. <div class="chapter_upload_down" @click="
  1823. downCd(
  1824. $event,
  1825. unitIndex,
  1826. index,
  1827. itemTaskIndex,
  1828. index1
  1829. )
  1830. "></div>
  1831. </div>
  1832. <div class="chapter_upload_ic_edit" v-if="
  1833. item1.type == 2 ||
  1834. item1.type == 3 ||
  1835. item1.type == 12 ||
  1836. item1.type == 13 ||
  1837. item1.type == 7
  1838. " @click.stop="
  1839. updataVideoT(
  1840. $event,
  1841. unitIndex,
  1842. itemTaskIndex,
  1843. index1
  1844. )
  1845. ">
  1846. <div></div>
  1847. </div>
  1848. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1849. selectAttText(itemTaskIndex, index1)
  1850. ">
  1851. <div></div>
  1852. </div>
  1853. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1854. @click="selectLine(itemTaskIndex, index1)">
  1855. <div></div>
  1856. </div>
  1857. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1858. openUpdateSource(itemTaskIndex, index1)
  1859. ">
  1860. <div></div>
  1861. </div>
  1862. <div class="chapter_upload_ic_r" @click.stop="
  1863. deleteChapterData(
  1864. $event,
  1865. unitIndex,
  1866. index,
  1867. index1,
  1868. itemTaskIndex
  1869. )
  1870. ">
  1871. <div></div>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <div class="add_info_box" style="margin: 10px 0 0">
  1879. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1880. <span style="color: red">*</span>
  1881. 教学设计
  1882. <input type="file"
  1883. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1884. style="display: none" v-if="inputShow" @change="
  1885. beforeUpload3(
  1886. $event,
  1887. unitIndex,
  1888. 3,
  1889. itemTaskIndex,
  1890. '教学设计'
  1891. )
  1892. " />
  1893. </button>
  1894. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1895. <span style="color: red">*</span>
  1896. 教学课件
  1897. <input type="file"
  1898. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1899. style="display: none" v-if="inputShow" @change="
  1900. beforeUpload3(
  1901. $event,
  1902. unitIndex,
  1903. 3,
  1904. itemTaskIndex,
  1905. '教学课件'
  1906. )
  1907. " />
  1908. </button>
  1909. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1910. 教学视频
  1911. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1912. style="display: none" v-if="inputShow" @change="
  1913. beforeUpload3(
  1914. $event,
  1915. unitIndex,
  1916. 2,
  1917. itemTaskIndex,
  1918. '教学视频'
  1919. )
  1920. " />
  1921. </button>
  1922. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1923. 教学音频
  1924. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1925. beforeUpload3(
  1926. $event,
  1927. unitIndex,
  1928. 2,
  1929. itemTaskIndex,
  1930. '教学音频'
  1931. )
  1932. " />
  1933. </button>
  1934. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1935. 学习单
  1936. <input type="file"
  1937. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1938. style="display: none" v-if="inputShow" @change="
  1939. beforeUpload3(
  1940. $event,
  1941. unitIndex,
  1942. 3,
  1943. itemTaskIndex,
  1944. '学习单'
  1945. )
  1946. " />
  1947. </button>
  1948. </div>
  1949. <div v-if="
  1950. unitJson[unitIndex].chapterInfo[0].taskJson[
  1951. itemTaskIndex
  1952. ].proVisible
  1953. " class="mask">
  1954. <div class="progressBox">
  1955. <!-- <div id="closePro" class="closeCss">
  1956. <img src="../../../../assets/icon/close.png" alt />
  1957. </div> -->
  1958. <div class="lbox">
  1959. <img src="../../../assets/loading.gif" />上传中,请稍后
  1960. </div>
  1961. <div style="margin-bottom: 10px">
  1962. <span>{{
  1963. unitJson[unitIndex].chapterInfo[0].taskJson[
  1964. itemTaskIndex
  1965. ].isFinishSize
  1966. }}M</span>
  1967. /
  1968. <span>{{
  1969. unitJson[unitIndex].chapterInfo[0].taskJson[
  1970. itemTaskIndex
  1971. ].isAllSize
  1972. }}M</span>
  1973. </div>
  1974. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1975. itemTaskIndex
  1976. ].progress
  1977. ? unitJson[unitIndex].chapterInfo[0]
  1978. .taskJson[itemTaskIndex].progress
  1979. : 0
  1980. " style="width: 80%"></el-progress>
  1981. </div>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. <!-- padding: 20px; -->
  1986. <div style="
  1987. background: #fff;
  1988. border-radius: 5px;
  1989. margin-top: 15px;
  1990. ">
  1991. <div v-if="
  1992. unitJson[unitIndex].easy != 3 &&
  1993. !(
  1994. unitJson[unitIndex].easy == 5 &&
  1995. itemTask.taskType == 1
  1996. )
  1997. " style="
  1998. flex-direction: row;
  1999. justify-content: flex-start;
  2000. align-items: center;
  2001. ">
  2002. <div style="
  2003. display: flex;
  2004. flex-direction: row;
  2005. align-items: center;
  2006. margin: 5px 0 20px;
  2007. ">
  2008. <div class="lineTitle clineTitle">
  2009. {{
  2010. !unitJson[unitIndex].easy ||
  2011. unitJson[unitIndex].easy == 6 ||
  2012. easyArray.indexOf(unitJson[unitIndex].easy) !=
  2013. -1
  2014. ? "练习内容"
  2015. : "评价内容"
  2016. }}
  2017. </div>
  2018. <!-- <div class="line" style="width: 90%"></div> -->
  2019. </div>
  2020. </div>
  2021. <div v-if="
  2022. unitJson[unitIndex].easy == 6 ||
  2023. !unitJson[unitIndex].easy
  2024. " class="toolChoose">
  2025. <div class="tools">
  2026. <div class="leftTools" style="width: 100%" v-for="(
  2027. itemTool, toolIndex
  2028. ) in itemTask.toolChoose" :key="toolIndex">
  2029. <div style="
  2030. display: flex;
  2031. flex-direction: row;
  2032. align-items: baseline;
  2033. flex-wrap: nowrap;
  2034. justify-content: flex-start;
  2035. position: relative;
  2036. ">
  2037. <div style="margin-right: 20px; font-weight: bold"
  2038. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2039. 工具 {{ toolIndex + 1 }} :
  2040. </div>
  2041. <div class="chooseWho">
  2042. <div :class="itemTool.toolType == 0
  2043. ? 'isChooseActive'
  2044. : ''
  2045. " @click="
  2046. (itemTool.toolType = 0),
  2047. (itemTool.isFold3 = false),
  2048. $forceUpdate()
  2049. ">
  2050. 互动类
  2051. </div>
  2052. <div :class="itemTool.toolType == 1
  2053. ? 'isChooseActive'
  2054. : ''
  2055. " @click="
  2056. (itemTool.toolType = 1),
  2057. (itemTool.isFold3 = false),
  2058. $forceUpdate()
  2059. ">
  2060. 思维类
  2061. </div>
  2062. <div :class="itemTool.toolType == 6
  2063. ? 'isChooseActive'
  2064. : ''
  2065. " @click="
  2066. (itemTool.toolType = 6),
  2067. (itemTool.isFold3 = false),
  2068. $forceUpdate()
  2069. ">
  2070. 协作类
  2071. </div>
  2072. <div :class="itemTool.toolType == 2
  2073. ? 'isChooseActive'
  2074. : ''
  2075. " @click="
  2076. (itemTool.toolType = 2),
  2077. (itemTool.isFold3 = false),
  2078. $forceUpdate()
  2079. ">
  2080. 测评类
  2081. </div>
  2082. <div :class="itemTool.toolType == 7
  2083. ? 'isChooseActive'
  2084. : ''
  2085. " @click="
  2086. (itemTool.toolType = 7),
  2087. (itemTool.isFold3 = false),
  2088. $forceUpdate()
  2089. ">
  2090. 评价类
  2091. </div>
  2092. <div :class="itemTool.toolType == 3
  2093. ? 'isChooseActive'
  2094. : ''
  2095. " @click="
  2096. (itemTool.toolType = 3),
  2097. (itemTool.isFold3 = false),
  2098. $forceUpdate()
  2099. ">
  2100. 编程类
  2101. </div>
  2102. <div :class="itemTool.toolType == 5
  2103. ? 'isChooseActive'
  2104. : ''
  2105. " @click="
  2106. (itemTool.toolType = 5),
  2107. (itemTool.isFold3 = false),
  2108. $forceUpdate()
  2109. ">
  2110. 学科类
  2111. </div>
  2112. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2113. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2114. 其他
  2115. </div> -->
  2116. </div>
  2117. <div class="chapter_upload_ud2" style="z-index: 9; margin: 0 0 0 auto" :style="{
  2118. margin:
  2119. itemTask.toolChoose.length > 1
  2120. ? '0px 35px 0px auto'
  2121. : '0 0 0 auto',
  2122. }" v-if="itemTask.toolChoose.length > 1">
  2123. <div class="chapter_upload_up2" @click.stop="
  2124. upTool(
  2125. $event,
  2126. unitIndex,
  2127. itemTaskIndex,
  2128. toolIndex
  2129. )
  2130. ">
  2131. 上移
  2132. </div>
  2133. <div class="chapter_upload_down2" @click.stop="
  2134. downTool(
  2135. $event,
  2136. unitIndex,
  2137. itemTaskIndex,
  2138. toolIndex
  2139. )
  2140. ">
  2141. 下移
  2142. </div>
  2143. </div>
  2144. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2145. @click="fold3(itemTaskIndex, toolIndex)"
  2146. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2147. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2148. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2149. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2150. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2151. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2152. v-if="itemTask.toolChoose.length > 1" style="
  2153. position: absolute;
  2154. right: 0;
  2155. top: -5px;
  2156. "></div>
  2157. </div>
  2158. <!-- v-show="!itemTool.isFold3" -->
  2159. <div style="min-height: 163px">
  2160. <div class="toolSort" v-if="itemTool.toolType == 0">
  2161. <!-- <div class="tool">
  2162. <div
  2163. class="whiteBIcon"
  2164. @click="addTools(8, itemTaskIndex, toolIndex)"
  2165. >
  2166. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2167. <div style="margin: 5px 0">素材库</div>
  2168. </div>
  2169. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2170. <img
  2171. src="../../../assets/icon/checkNo.png"
  2172. alt
  2173. v-if="itemTool.tool.indexOf(8) == -1"
  2174. />
  2175. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2176. alt /><span>已选择</span></div>
  2177. </div>
  2178. </div>-->
  2179. <!-- <div class="tool">
  2180. <div
  2181. class="whiteBIcon"
  2182. @click="addTools(17, itemTaskIndex, toolIndex)"
  2183. >
  2184. <img
  2185. src="../../../assets/icon/secondToolList/library.png"
  2186. alt
  2187. />
  2188. <div style="margin: 5px 0">学习资料</div>
  2189. </div>
  2190. <div
  2191. class="check"
  2192. @click="addTools(17, itemTaskIndex, toolIndex)"
  2193. >
  2194. <img
  2195. src="../../../assets/icon/checkNo.png"
  2196. alt
  2197. v-if="itemTool.tool.indexOf(17) == -1"
  2198. />
  2199. <img
  2200. src="../../../assets/icon/checkedIs.png"
  2201. alt
  2202. v-else
  2203. />
  2204. </div>10
  2205. </div> -->
  2206. <div class="tool" :class="{
  2207. isToolChoose:
  2208. itemTool.tool.indexOf(10) != -1,
  2209. }" @click="
  2210. addTools(10, itemTaskIndex, toolIndex)
  2211. ">
  2212. <div class="whiteBIcon" @click.stop="
  2213. openTools(itemTaskIndex, 10, toolIndex)
  2214. ">
  2215. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2216. <div style="margin: 5px 0">倒计时</div>
  2217. </div>
  2218. <div class="noCTool">
  2219. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2220. </div>
  2221. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1">
  2222. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2223. </div>
  2224. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2225. <img src="../../../assets/icon/checkNo.png" alt
  2226. v-if="itemTool.tool.indexOf(10) == -1" />
  2227. <div class="checkDiv" v-else>
  2228. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2229. </div>
  2230. </div> -->
  2231. </div>
  2232. <div class="tool" :class="{
  2233. isToolChoose:
  2234. itemTool.tool.indexOf(65) != -1,
  2235. }" @click="
  2236. addTools(65, itemTaskIndex, toolIndex)
  2237. ">
  2238. <div class="whiteBIcon" @click.stop="
  2239. addTools(65, itemTaskIndex, toolIndex)
  2240. ">
  2241. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  2242. <div style="margin: 5px 0">挑人</div>
  2243. </div>
  2244. <div class="noCTool">
  2245. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2246. </div>
  2247. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1">
  2248. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2249. </div>
  2250. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2251. <img src="../../../assets/icon/checkNo.png" alt
  2252. v-if="itemTool.tool.indexOf(65) == -1" />
  2253. <div class="checkDiv" v-else>
  2254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2255. </div>
  2256. </div> -->
  2257. </div>
  2258. <!-- <div class="tool">
  2259. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2260. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2261. <div style="margin: 5px 0">学生分组</div>
  2262. </div>
  2263. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2264. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2265. <div class="checkDiv" v-else>
  2266. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2267. </div>
  2268. </div>
  2269. </div> -->
  2270. <!-- <div class="tool">
  2271. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2272. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2273. <div style="margin: 5px 0">交互视频</div>
  2274. </div>
  2275. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2276. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2277. <div class="checkDiv" v-else>
  2278. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2279. </div>
  2280. </div>
  2281. </div> -->
  2282. </div>
  2283. <div class="toolSort" v-if="itemTool.toolType == 1">
  2284. <div class="tool" :class="{
  2285. isToolChoose:
  2286. itemTool.tool.indexOf(7) != -1,
  2287. }" @click="
  2288. addTools(7, itemTaskIndex, toolIndex)
  2289. ">
  2290. <div class="whiteBIcon" @click.stop="
  2291. addTools(7, itemTaskIndex, toolIndex)
  2292. ">
  2293. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2294. <div style="margin: 5px 0">思维网格</div>
  2295. </div>
  2296. <div class="noCTool">
  2297. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2298. </div>
  2299. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1">
  2300. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2301. </div>
  2302. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2303. <img src="../../../assets/icon/checkNo.png" alt
  2304. v-if="itemTool.tool.indexOf(7) == -1" />
  2305. <div class="checkDiv" v-else>
  2306. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2307. </div>
  2308. </div> -->
  2309. </div>
  2310. <div class="tool" :class="{
  2311. isToolChoose:
  2312. itemTool.tool.indexOf(1) != -1,
  2313. }" @click="
  2314. addTools(1, itemTaskIndex, toolIndex)
  2315. ">
  2316. <div class="whiteBIcon" @click.stop="
  2317. openTools(itemTaskIndex, 1, toolIndex)
  2318. ">
  2319. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2320. <div style="margin: 5px 0">电子白板</div>
  2321. </div>
  2322. <div class="noCTool">
  2323. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2324. </div>
  2325. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1">
  2326. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2327. </div>
  2328. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2329. <img src="../../../assets/icon/checkNo.png" alt
  2330. v-if="itemTool.tool.indexOf(1) == -1" />
  2331. <div class="checkDiv" v-else>
  2332. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2333. </div>
  2334. </div> -->
  2335. </div>
  2336. <!-- <div class="tool">
  2337. <div
  2338. class="whiteBIcon"
  2339. @click="addTools(2, itemTaskIndex, toolIndex)"
  2340. >
  2341. <img
  2342. src="../../../assets/icon/secondToolList/note.png"
  2343. alt
  2344. />
  2345. <div style="margin: 5px 0">便签</div>
  2346. </div>
  2347. <div
  2348. class="check"
  2349. @click="addTools(2, itemTaskIndex, toolIndex)"
  2350. >
  2351. <img
  2352. src="../../../assets/icon/checkNo.png"
  2353. alt
  2354. v-if="itemTool.tool.indexOf(2) == -1"
  2355. />
  2356. <div class="checkDiv" v-else>
  2357. <img
  2358. src="../../../assets/icon/checkedIs.png"
  2359. alt
  2360. /><span>已选择</span>
  2361. </div>
  2362. </div>
  2363. </div> -->
  2364. <!-- <div class="tool">
  2365. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2366. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2367. <div style="margin: 5px 0">协同文档</div>
  2368. </div>
  2369. <div
  2370. class="check"
  2371. @click="addTools(6, itemTaskIndex, toolIndex)"
  2372. >
  2373. <img
  2374. src="../../../assets/icon/checkNo.png"
  2375. alt
  2376. v-if="itemTool.tool.indexOf(6) == -1"
  2377. />
  2378. <div class="checkDiv" v-else>
  2379. <img
  2380. src="../../../assets/icon/checkedIs.png"
  2381. alt
  2382. /><span>已选择</span>
  2383. </div>
  2384. </div>
  2385. </div> -->
  2386. <div class="tool" :class="{
  2387. isToolChoose:
  2388. itemTool.tool.indexOf(52) != -1,
  2389. }" @click="
  2390. addTools(52, itemTaskIndex, toolIndex)
  2391. ">
  2392. <div class="whiteBIcon" @click.stop="
  2393. openTools(itemTaskIndex, 52, toolIndex)
  2394. ">
  2395. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2396. <div style="margin: 5px 0">文档</div>
  2397. </div>
  2398. <div class="noCTool">
  2399. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2400. </div>
  2401. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1">
  2402. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2403. </div>
  2404. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2405. <img src="../../../assets/icon/checkNo.png" alt
  2406. v-if="itemTool.tool.indexOf(52) == -1" />
  2407. <div class="checkDiv" v-else>
  2408. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2409. </div>
  2410. </div> -->
  2411. </div>
  2412. <div class="tool" :class="{
  2413. isToolChoose:
  2414. itemTool.tool.indexOf(3) != -1,
  2415. }" @click="
  2416. addTools(3, itemTaskIndex, toolIndex)
  2417. ">
  2418. <div class="whiteBIcon" @click.stop="
  2419. openTools(itemTaskIndex, 3, toolIndex)
  2420. ">
  2421. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2422. <div style="margin: 5px 0">思维导图</div>
  2423. </div>
  2424. <div class="noCTool">
  2425. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2426. </div>
  2427. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1">
  2428. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2429. </div>
  2430. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2431. <img src="../../../assets/icon/checkNo.png" alt
  2432. v-if="itemTool.tool.indexOf(3) == -1" />
  2433. <div class="checkDiv" v-else>
  2434. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2435. </div>
  2436. </div> -->
  2437. </div>
  2438. <div class="tool" :class="{
  2439. isToolChoose:
  2440. itemTool.tool.indexOf(48) != -1,
  2441. }" @click="
  2442. addTools(48, itemTaskIndex, toolIndex)
  2443. ">
  2444. <div class="whiteBIcon" @click.stop="
  2445. openTools(itemTaskIndex, 48, toolIndex)
  2446. ">
  2447. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2448. <div style="margin: 5px 0">表格</div>
  2449. </div>
  2450. <div class="noCTool">
  2451. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2452. </div>
  2453. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1">
  2454. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2455. </div>
  2456. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2457. <img src="../../../assets/icon/checkNo.png" alt
  2458. v-if="itemTool.tool.indexOf(48) == -1" />
  2459. <div class="checkDiv" v-else>
  2460. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2461. </div>
  2462. </div> -->
  2463. </div>
  2464. </div>
  2465. <div class="toolSort" v-if="itemTool.toolType == 6">
  2466. <div class="tool" :class="{
  2467. isToolChoose:
  2468. itemTool.tool.indexOf(49) != -1,
  2469. }" @click="
  2470. addTools(49, itemTaskIndex, toolIndex)
  2471. ">
  2472. <div class="whiteBIcon" @click.stop="
  2473. openTools(itemTaskIndex, 49, toolIndex)
  2474. ">
  2475. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2476. <div style="margin: 5px 0">学生分组</div>
  2477. </div>
  2478. <div class="noCTool">
  2479. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2480. </div>
  2481. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1">
  2482. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2483. </div>
  2484. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2485. <img src="../../../assets/icon/checkNo.png" alt
  2486. v-if="itemTool.tool.indexOf(49) == -1" />
  2487. <div class="checkDiv" v-else>
  2488. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2489. </div>
  2490. </div> -->
  2491. </div>
  2492. </div>
  2493. <div class="toolSort" v-if="itemTool.toolType == 2">
  2494. <!-- <div class="tool">
  2495. <div
  2496. class="whiteBIcon"
  2497. @click="addTools(5, itemTaskIndex, toolIndex)"
  2498. >
  2499. <img
  2500. src="../../../assets/icon/thirdToolList/score.png"
  2501. alt
  2502. />
  2503. <div style="margin: 5px 0">量规评分</div>
  2504. </div>
  2505. <div
  2506. class="check"
  2507. @click="addTools(5, itemTaskIndex, toolIndex)"
  2508. >
  2509. <img
  2510. src="../../../assets/icon/checkNo.png"
  2511. alt
  2512. v-if="itemTool.tool.indexOf(5) == -1"
  2513. />
  2514. <img
  2515. src="../../../assets/icon/checkedIs.png"
  2516. alt
  2517. v-else
  2518. />
  2519. </div>
  2520. </div>-->
  2521. <div class="tool" :class="{
  2522. isToolChoose:
  2523. itemTool.tool.indexOf(4) != -1,
  2524. }" @click="
  2525. addTools(4, itemTaskIndex, toolIndex)
  2526. ">
  2527. <div class="whiteBIcon" @click.stop="
  2528. openTools(itemTaskIndex, 4, toolIndex)
  2529. ">
  2530. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2531. <div style="margin: 5px 0">问卷调查</div>
  2532. </div>
  2533. <div class="noCTool">
  2534. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2535. </div>
  2536. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1">
  2537. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2538. </div>
  2539. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2540. <img src="../../../assets/icon/checkNo.png" alt
  2541. v-if="itemTool.tool.indexOf(4) == -1" />
  2542. <div class="checkDiv" v-else>
  2543. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2544. </div>
  2545. </div> -->
  2546. </div>
  2547. <div class="tool" :class="{
  2548. isToolChoose:
  2549. itemTool.tool.indexOf(45) != -1,
  2550. }" @click="
  2551. addTools(45, itemTaskIndex, toolIndex)
  2552. ">
  2553. <div class="whiteBIcon" @click="
  2554. openTools(itemTaskIndex, 45, toolIndex)
  2555. ">
  2556. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2557. <div style="margin: 5px 0">选择题</div>
  2558. </div>
  2559. <div class="noCTool">
  2560. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2561. </div>
  2562. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1">
  2563. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2564. </div>
  2565. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2566. <img src="../../../assets/icon/checkNo.png" alt
  2567. v-if="itemTool.tool.indexOf(45) == -1" />
  2568. <div class="checkDiv" v-else>
  2569. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2570. </div>
  2571. </div> -->
  2572. </div>
  2573. <div class="tool" :class="{
  2574. isToolChoose:
  2575. itemTool.tool.indexOf(15) != -1,
  2576. }" @click="
  2577. addTools(15, itemTaskIndex, toolIndex)
  2578. ">
  2579. <div class="whiteBIcon" @click.stop="
  2580. openTools(itemTaskIndex, 15, toolIndex)
  2581. ">
  2582. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2583. <div style="margin: 5px 0">问答</div>
  2584. </div>
  2585. <div class="noCTool">
  2586. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2587. </div>
  2588. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1">
  2589. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2590. </div>
  2591. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2592. <img src="../../../assets/icon/checkNo.png" alt
  2593. v-if="itemTool.tool.indexOf(15) == -1" />
  2594. <div class="checkDiv" v-else>
  2595. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2596. </div>
  2597. </div> -->
  2598. </div>
  2599. <div class="tool" :class="{
  2600. isToolChoose:
  2601. itemTool.tool.indexOf(16) != -1,
  2602. }" @click="
  2603. addTools(16, itemTaskIndex, toolIndex)
  2604. ">
  2605. <div class="whiteBIcon" @click.stop="
  2606. addTools(16, itemTaskIndex, toolIndex)
  2607. ">
  2608. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2609. <div style="margin: 5px 0">作业提交</div>
  2610. </div>
  2611. <div class="noCTool">
  2612. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2613. </div>
  2614. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1">
  2615. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2616. </div>
  2617. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2618. <img src="../../../assets/icon/checkNo.png" alt
  2619. v-if="itemTool.tool.indexOf(16) == -1" />
  2620. <div class="checkDiv" v-else>
  2621. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2622. </div>
  2623. </div> -->
  2624. </div>
  2625. <div class="tool" :class="{
  2626. isToolChoose:
  2627. itemTool.tool.indexOf(50) != -1,
  2628. }" @click="
  2629. addTools(50, itemTaskIndex, toolIndex)
  2630. ">
  2631. <div class="whiteBIcon" @click.stop="
  2632. addTools(50, itemTaskIndex, toolIndex)
  2633. ">
  2634. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2635. <div style="margin: 5px 0">批量上传</div>
  2636. </div>
  2637. <div class="noCTool">
  2638. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2639. </div>
  2640. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1">
  2641. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2642. </div>
  2643. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2644. <img src="../../../assets/icon/checkNo.png" alt
  2645. v-if="itemTool.tool.indexOf(50) == -1" />
  2646. <div class="checkDiv" v-else>
  2647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2648. </div>
  2649. </div> -->
  2650. </div>
  2651. <!-- <div class="tool">
  2652. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2653. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2654. <div style="margin: 5px 0">个人评价</div>
  2655. </div>
  2656. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2657. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2658. <div class="checkDiv" v-else>
  2659. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2660. </div>
  2661. </div>
  2662. </div> -->
  2663. <div class="tool" :class="{
  2664. isToolChoose:
  2665. itemTool.tool.indexOf(41) != -1,
  2666. }" @click="
  2667. addTools(41, itemTaskIndex, toolIndex)
  2668. ">
  2669. <div class="whiteBIcon" @click.stop="
  2670. openTools(itemTaskIndex, 41, toolIndex)
  2671. ">
  2672. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2673. <div style="margin: 5px 0">选择匹配</div>
  2674. </div>
  2675. <div class="noCTool">
  2676. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2677. </div>
  2678. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1">
  2679. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2680. </div>
  2681. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2682. <img src="../../../assets/icon/checkNo.png" alt
  2683. v-if="itemTool.tool.indexOf(41) == -1" />
  2684. <div class="checkDiv" v-else>
  2685. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2686. </div>
  2687. </div> -->
  2688. </div>
  2689. <div class="tool" :class="{
  2690. isToolChoose:
  2691. itemTool.tool.indexOf(47) != -1,
  2692. }" @click="
  2693. addTools(47, itemTaskIndex, toolIndex)
  2694. ">
  2695. <div class="whiteBIcon" @click.stop="
  2696. openTools(itemTaskIndex, 47, toolIndex)
  2697. ">
  2698. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2699. <div style="margin: 5px 0">排序</div>
  2700. </div>
  2701. <div class="noCTool">
  2702. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2703. </div>
  2704. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1">
  2705. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2706. </div>
  2707. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2708. <img src="../../../assets/icon/checkNo.png" alt
  2709. v-if="itemTool.tool.indexOf(47) == -1" />
  2710. <div class="checkDiv" v-else>
  2711. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2712. </div>
  2713. </div> -->
  2714. </div>
  2715. <!-- <div class="tool">
  2716. <div
  2717. class="whiteBIcon"
  2718. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2719. >
  2720. <img
  2721. src="../../../assets/icon/thirdToolList/mp3.png"
  2722. alt
  2723. />
  2724. <div style="margin: 5px 0">上传音频</div>
  2725. </div>
  2726. <div
  2727. class="check"
  2728. @click="addTools(42, itemTaskIndex, toolIndex)"
  2729. >
  2730. <img
  2731. src="../../../assets/icon/checkNo.png"
  2732. alt
  2733. v-if="itemTool.tool.indexOf(42) == -1"
  2734. />
  2735. <img
  2736. src="../../../assets/icon/checkedIs.png"
  2737. alt
  2738. v-else
  2739. />
  2740. </div>
  2741. </div> -->
  2742. </div>
  2743. <div class="toolSort" v-if="itemTool.toolType == 3">
  2744. <div class="tool" :class="{
  2745. isToolChoose:
  2746. itemTool.tool.indexOf(18) != -1,
  2747. }" @click="
  2748. addTools(18, itemTaskIndex, toolIndex)
  2749. ">
  2750. <div class="whiteBIcon" @click.stop="
  2751. addTools(18, itemTaskIndex, toolIndex)
  2752. ">
  2753. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2754. <div style="margin: 5px 0">训练平台</div>
  2755. </div>
  2756. <div class="noCTool">
  2757. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2758. </div>
  2759. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1">
  2760. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2761. </div>
  2762. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2763. <img src="../../../assets/icon/checkNo.png" alt
  2764. v-if="itemTool.tool.indexOf(18) == -1" />
  2765. <div class="checkDiv" v-else>
  2766. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2767. </div>
  2768. </div> -->
  2769. </div>
  2770. <div class="tool" :class="{
  2771. isToolChoose:
  2772. itemTool.tool.indexOf(21) != -1,
  2773. }" @click="
  2774. addTools(21, itemTaskIndex, toolIndex)
  2775. ">
  2776. <div class="whiteBIcon" @click.stop="
  2777. addTools(21, itemTaskIndex, toolIndex)
  2778. ">
  2779. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2780. <div style="margin: 5px 0">
  2781. AIoT Blockly
  2782. </div>
  2783. </div>
  2784. <div class="noCTool">
  2785. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2786. </div>
  2787. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1">
  2788. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2789. </div>
  2790. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2791. <img src="../../../assets/icon/checkNo.png" alt
  2792. v-if="itemTool.tool.indexOf(21) == -1" />
  2793. <div class="checkDiv" v-else>
  2794. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2795. </div>
  2796. </div> -->
  2797. </div>
  2798. <!-- <div class="tool">
  2799. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2800. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2801. <div style="margin: 5px 0">AI体验</div>
  2802. </div>
  2803. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2804. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2805. <div class="checkDiv" v-else>
  2806. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2807. </div>
  2808. </div>
  2809. </div> -->
  2810. <div class="tool" :class="{
  2811. isToolChoose:
  2812. itemTool.tool.indexOf(23) != -1,
  2813. }" @click="
  2814. addTools(23, itemTaskIndex, toolIndex)
  2815. ">
  2816. <div class="whiteBIcon" @click.stop="
  2817. addTools(23, itemTaskIndex, toolIndex)
  2818. ">
  2819. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2820. <div style="margin: 5px 0">AI Python</div>
  2821. </div>
  2822. <div class="noCTool">
  2823. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2824. </div>
  2825. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1">
  2826. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2827. </div>
  2828. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2829. <img src="../../../assets/icon/checkNo.png" alt
  2830. v-if="itemTool.tool.indexOf(23) == -1" />
  2831. <div class="checkDiv" v-else>
  2832. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2833. </div>
  2834. </div> -->
  2835. </div>
  2836. <div class="tool" :class="{
  2837. isToolChoose:
  2838. itemTool.tool.indexOf(24) != -1,
  2839. }" @click="
  2840. addTools(24, itemTaskIndex, toolIndex)
  2841. ">
  2842. <div class="whiteBIcon" @click.stop="
  2843. addTools(24, itemTaskIndex, toolIndex)
  2844. ">
  2845. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2846. <div style="margin: 5px 0">
  2847. AI Blockly
  2848. </div>
  2849. </div>
  2850. <div class="noCTool">
  2851. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2852. </div>
  2853. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1">
  2854. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2855. </div>
  2856. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2857. <img src="../../../assets/icon/checkNo.png" alt
  2858. v-if="itemTool.tool.indexOf(24) == -1" />
  2859. <div class="checkDiv" v-else>
  2860. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2861. </div>
  2862. </div> -->
  2863. </div>
  2864. <div class="tool" :class="{
  2865. isToolChoose:
  2866. itemTool.tool.indexOf(32) != -1,
  2867. }" @click="
  2868. addTools(32, itemTaskIndex, toolIndex)
  2869. ">
  2870. <div class="whiteBIcon" @click.stop="
  2871. addTools(32, itemTaskIndex, toolIndex)
  2872. ">
  2873. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2874. <div style="margin: 5px 0">源码编辑</div>
  2875. </div>
  2876. <div class="noCTool">
  2877. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2878. </div>
  2879. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1">
  2880. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2881. </div>
  2882. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2883. <img src="../../../assets/icon/checkNo.png" alt
  2884. v-if="itemTool.tool.indexOf(32) == -1" />
  2885. <div class="checkDiv" v-else>
  2886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2887. </div>
  2888. </div> -->
  2889. </div>
  2890. <div class="tool" :class="{
  2891. isToolChoose:
  2892. itemTool.tool.indexOf(57) != -1,
  2893. }" @click="
  2894. addTools(57, itemTaskIndex, toolIndex)
  2895. ">
  2896. <div class="whiteBIcon" @click.stop="
  2897. openTools(itemTaskIndex, 57, toolIndex)
  2898. ">
  2899. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2900. <div style="margin: 5px 0">CocoPi</div>
  2901. </div>
  2902. <div class="noCTool">
  2903. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2904. </div>
  2905. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1">
  2906. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2907. </div>
  2908. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2909. <img src="../../../assets/icon/checkNo.png" alt
  2910. v-if="itemTool.tool.indexOf(57) == -1" />
  2911. <div class="checkDiv" v-else>
  2912. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2913. </div>
  2914. </div> -->
  2915. </div>
  2916. <div class="tool" :class="{
  2917. isToolChoose:
  2918. itemTool.tool.indexOf(63) != -1,
  2919. }" @click="
  2920. addTools(63, itemTaskIndex, toolIndex)
  2921. ">
  2922. <div class="whiteBIcon" @click.stop="
  2923. addTools(63, itemTaskIndex, toolIndex)
  2924. ">
  2925. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2926. <div style="margin: 5px 0">海龟编程</div>
  2927. </div>
  2928. <div class="noCTool">
  2929. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2930. </div>
  2931. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1">
  2932. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2933. </div>
  2934. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2935. <img src="../../../assets/icon/checkNo.png" alt
  2936. v-if="itemTool.tool.indexOf(63) == -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(71) != -1,
  2945. }" @click="
  2946. addTools(71, itemTaskIndex, toolIndex)
  2947. ">
  2948. <div class="whiteBIcon" @click.stop="
  2949. addTools(71, itemTaskIndex, toolIndex)
  2950. ">
  2951. <img src="../../../assets/icon/fourthToolList/chatgpt.png" alt />
  2952. <div style="margin: 5px 0">AI智能体</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(71) != -1">
  2958. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2959. </div>
  2960. </div>
  2961. </div>
  2962. <div class="toolSort" v-if="itemTool.toolType == 7">
  2963. <div class="tool" :class="{
  2964. isToolChoose:
  2965. itemTool.tool.indexOf(40) != -1,
  2966. }" @click.stop="
  2967. addTools(40, itemTaskIndex, toolIndex)
  2968. ">
  2969. <div class="whiteBIcon" @click.stop="
  2970. openTools(itemTaskIndex, 40, toolIndex)
  2971. ">
  2972. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2973. <div style="margin: 5px 0">个人评价</div>
  2974. </div>
  2975. <div class="noCTool">
  2976. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2977. </div>
  2978. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1">
  2979. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2980. </div>
  2981. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2982. <img src="../../../assets/icon/checkNo.png" alt
  2983. v-if="itemTool.tool.indexOf(40) == -1" />
  2984. <div class="checkDiv" v-else>
  2985. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2986. </div>
  2987. </div> -->
  2988. </div>
  2989. </div>
  2990. <div class="toolSort" v-if="itemTool.toolType == 5">
  2991. <div class="tool" :class="{
  2992. isToolChoose:
  2993. itemTool.tool.indexOf(28) != -1,
  2994. }" @click="
  2995. addTools(28, itemTaskIndex, toolIndex)
  2996. ">
  2997. <div class="whiteBIcon" @click.stop="
  2998. addTools(28, itemTaskIndex, toolIndex)
  2999. ">
  3000. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3001. <div style="margin: 5px 0">翻译</div>
  3002. </div>
  3003. <div class="noCTool">
  3004. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3005. </div>
  3006. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1">
  3007. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3008. </div>
  3009. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3010. <img src="../../../assets/icon/checkNo.png" alt
  3011. v-if="itemTool.tool.indexOf(28) == -1" />
  3012. <div class="checkDiv" v-else>
  3013. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3014. </div>
  3015. </div> -->
  3016. </div>
  3017. <div class="tool" :class="{
  3018. isToolChoose:
  3019. itemTool.tool.indexOf(31) != -1,
  3020. }" @click="
  3021. addTools(31, itemTaskIndex, toolIndex)
  3022. ">
  3023. <div class="whiteBIcon" @click.stop="
  3024. addTools(31, itemTaskIndex, toolIndex)
  3025. ">
  3026. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3027. <div style="margin: 5px 0">数字画板</div>
  3028. </div>
  3029. <div class="noCTool">
  3030. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3031. </div>
  3032. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1">
  3033. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3034. </div>
  3035. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3036. <img src="../../../assets/icon/checkNo.png" alt
  3037. v-if="itemTool.tool.indexOf(31) == -1" />
  3038. <div class="checkDiv" v-else>
  3039. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3040. </div>
  3041. </div> -->
  3042. </div>
  3043. <div class="tool" :class="{
  3044. isToolChoose:
  3045. itemTool.tool.indexOf(39) != -1,
  3046. }" @click="
  3047. addTools(39, itemTaskIndex, toolIndex)
  3048. ">
  3049. <div class="whiteBIcon" @click.stop="
  3050. addTools(39, itemTaskIndex, toolIndex)
  3051. ">
  3052. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3053. <div style="margin: 5px 0">GeoGebra</div>
  3054. </div>
  3055. <div class="noCTool">
  3056. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3057. </div>
  3058. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1">
  3059. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3060. </div>
  3061. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3062. <img src="../../../assets/icon/checkNo.png" alt
  3063. v-if="itemTool.tool.indexOf(39) == -1" />
  3064. <div class="checkDiv" v-else>
  3065. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3066. </div>
  3067. </div> -->
  3068. </div>
  3069. <div class="tool" :class="{
  3070. isToolChoose:
  3071. itemTool.tool.indexOf(66) != -1,
  3072. }" @click="
  3073. addTools(66, itemTaskIndex, toolIndex)
  3074. ">
  3075. <div class="whiteBIcon" @click.stop="
  3076. addTools(66, itemTaskIndex, toolIndex)
  3077. ">
  3078. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  3079. <div style="margin: 5px 0">公式编辑</div>
  3080. </div>
  3081. <div class="noCTool">
  3082. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3083. </div>
  3084. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1">
  3085. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3086. </div>
  3087. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3088. <img src="../../../assets/icon/checkNo.png" alt
  3089. v-if="itemTool.tool.indexOf(66) == -1" />
  3090. <div class="checkDiv" v-else>
  3091. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3092. </div>
  3093. </div> -->
  3094. </div>
  3095. <!-- <div class="tool">
  3096. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3097. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3098. <div style="margin: 5px 0">分子结构</div>
  3099. </div>
  3100. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3101. <img src="../../../assets/icon/checkNo.png" alt
  3102. v-if="itemTool.tool.indexOf(67) == -1" />
  3103. <div class="checkDiv" v-else>
  3104. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3105. </div>
  3106. </div>
  3107. </div> -->
  3108. <div class="tool" :class="{
  3109. isToolChoose:
  3110. itemTool.tool.indexOf(68) != -1,
  3111. }" @click="
  3112. addTools(68, itemTaskIndex, toolIndex)
  3113. ">
  3114. <div class="whiteBIcon" @click.stop="
  3115. addTools(68, itemTaskIndex, toolIndex)
  3116. ">
  3117. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  3118. <div style="margin: 5px 0">时间轴</div>
  3119. </div>
  3120. <div class="noCTool">
  3121. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3122. </div>
  3123. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1">
  3124. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3125. </div>
  3126. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3127. <img src="../../../assets/icon/checkNo.png" alt
  3128. v-if="itemTool.tool.indexOf(68) == -1" />
  3129. <div class="checkDiv" v-else>
  3130. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3131. </div>
  3132. </div> -->
  3133. </div>
  3134. <div class="tool" :class="{
  3135. isToolChoose:
  3136. itemTool.tool.indexOf(69) != -1,
  3137. }" @click="
  3138. addTools(69, itemTaskIndex, toolIndex)
  3139. ">
  3140. <div class="whiteBIcon" @click.stop="
  3141. openTools(itemTaskIndex, 69, toolIndex)
  3142. ">
  3143. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  3144. <div style="margin: 5px 0">英语写作</div>
  3145. </div>
  3146. <div class="noCTool">
  3147. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3148. </div>
  3149. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1">
  3150. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3151. </div>
  3152. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3153. <img src="../../../assets/icon/checkNo.png" alt
  3154. v-if="itemTool.tool.indexOf(4) == -1" />
  3155. <div class="checkDiv" v-else>
  3156. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3157. </div>
  3158. </div> -->
  3159. </div>
  3160. <div class="tool" :class="{
  3161. isToolChoose:
  3162. itemTool.tool.indexOf(70) != -1,
  3163. }" @click="
  3164. addTools(70, itemTaskIndex, toolIndex)
  3165. ">
  3166. <div class="whiteBIcon" @click.stop="
  3167. openTools(itemTaskIndex, 70, toolIndex)
  3168. ">
  3169. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  3170. <div style="margin: 5px 0">英语口语</div>
  3171. </div>
  3172. <div class="noCTool">
  3173. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3174. </div>
  3175. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1">
  3176. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  3177. </div>
  3178. </div>
  3179. <!-- <div class="tool">
  3180. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3181. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3182. <div style="margin: 5px 0">翻译</div>
  3183. </div>
  3184. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3185. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3186. <div class="checkDiv" v-else>
  3187. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3188. </div>
  3189. </div>
  3190. </div>
  3191. <div class="tool">
  3192. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3193. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3194. <div style="margin: 5px 0">魔盒识字</div>
  3195. </div>
  3196. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3197. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3198. <div class="checkDiv" v-else>
  3199. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3200. </div>
  3201. </div>
  3202. </div>
  3203. <div class="tool">
  3204. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3205. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3206. <div style="margin: 5px 0">24点</div>
  3207. </div>
  3208. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3209. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3210. <div class="checkDiv" v-else>
  3211. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. <div class="tool">
  3216. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3217. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3218. <div style="margin: 5px 0">数学画板</div>
  3219. </div>
  3220. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3221. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3222. <div class="checkDiv" v-else>
  3223. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div class="tool">
  3228. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3229. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3230. <div style="margin: 5px 0">GeoGebra</div>
  3231. </div>
  3232. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3233. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3234. <div class="checkDiv" v-else>
  3235. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3236. </div>
  3237. </div>
  3238. </div>
  3239. <div class="tool">
  3240. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3241. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3242. <div style="margin: 5px 0">模拟驾驶</div>
  3243. </div>
  3244. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3245. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3246. <div class="checkDiv" v-else>
  3247. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3248. </div>
  3249. </div>
  3250. </div>
  3251. <div class="tool">
  3252. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3253. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3254. <div style="margin: 5px 0">路径搜索</div>
  3255. </div>
  3256. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3257. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3258. <div class="checkDiv" v-else>
  3259. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3260. </div>
  3261. </div>
  3262. </div>
  3263. <div class="tool">
  3264. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3265. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3266. <div style="margin: 5px 0">深度学习</div>
  3267. </div>
  3268. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3269. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -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="addTools(61, itemTaskIndex, toolIndex)">
  3277. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3278. <div style="margin: 5px 0">全历史</div>
  3279. </div>
  3280. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3281. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3282. <div class="checkDiv" v-else>
  3283. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3284. </div>
  3285. </div>
  3286. </div>
  3287. </div>
  3288. <div class="toolSort" v-if="itemTool.toolType == 4">
  3289. <div class="tool">
  3290. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3291. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3292. <div style="margin: 5px 0">课程设计</div>
  3293. </div>
  3294. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3295. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3296. <div class="checkDiv" v-else>
  3297. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. <div class="tool">
  3302. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3303. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3304. <div style="margin: 5px 0">目标管理</div>
  3305. </div>
  3306. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3307. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3308. <div class="checkDiv" v-else>
  3309. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3310. </div>
  3311. </div>
  3312. </div> -->
  3313. <!-- <div class="tool">
  3314. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3315. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3316. <div style="margin: 5px 0">汉字宫</div>
  3317. </div>
  3318. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3319. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3320. <div class="checkDiv" v-else>
  3321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3322. </div>
  3323. </div>
  3324. </div> -->
  3325. </div>
  3326. </div>
  3327. <!-- v-show="!itemTool.isFold3" -->
  3328. <div class="op_tool_box"
  3329. v-loading="taskDetailLoading3.indexOf('task-' + itemTaskIndex + toolIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  3330. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述"
  3331. class="binfo_input" style="
  3332. margin: 0 0 20px 0;
  3333. width: 100% !important;
  3334. " v-model="itemTool.toolDetail"></textarea>
  3335. <div class="op_box">
  3336. <div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
  3337. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  3338. <div class="r_pub_button_op"
  3339. @contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
  3340. @click="openAiDialog(2, 'aiDetail3', itemTool.toolDetail, itemTaskIndex, toolIndex)">
  3341. 智能优化</div>
  3342.                              
  3343. </el-tooltip>
  3344. </div>
  3345. </div>
  3346. </div>
  3347. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3348. <div class="addToolImg">
  3349. <img src="../../../assets/icon/add.png" alt />
  3350. </div>
  3351. <div>添加工具</div>
  3352. </div> -->
  3353. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="
  3354. margin: 0 auto;
  3355. padding: 0 30px;
  3356. height: 45px;
  3357. ">
  3358. 添加工具
  3359. </button>
  3360. </div>
  3361. </div>
  3362. <div v-else-if="
  3363. unitJson[unitIndex].easy == 2 ||
  3364. unitJson[unitIndex].easy == 4
  3365. " class="toolChoose" style="padding: 0 0 40px">
  3366. <div class="tools">
  3367. <div class="leftTools" style="width: 100%" v-for="(
  3368. itemTool, toolIndex
  3369. ) in itemTask.toolChoose" :key="toolIndex">
  3370. <div>
  3371. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  3372. margin: 0 0 20px 0;
  3373. width: 100% !important;
  3374. " v-model="itemTool.toolDetail"></textarea>
  3375. </div>
  3376. <div style="
  3377. display: flex;
  3378. flex-direction: row;
  3379. align-items: baseline;
  3380. flex-wrap: nowrap;
  3381. justify-content: flex-start;
  3382. position: relative;
  3383. ">
  3384. <div style="margin-right: 20px; font-weight: bold"
  3385. :id="'gj' + itemTaskIndex + '' + toolIndex">
  3386. 工具 {{ toolIndex + 1 }} :
  3387. </div>
  3388. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3389. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  3390. </div>
  3391. <div style="min-height: 163px">
  3392. <div class="toolSort">
  3393. <div class="tool">
  3394. <div class="whiteBIcon" @click="
  3395. openTools(itemTaskIndex, 1, toolIndex)
  3396. ">
  3397. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3398. <div style="margin: 5px 0">电子白板</div>
  3399. </div>
  3400. <div class="check" @click="
  3401. addTools(1, itemTaskIndex, toolIndex)
  3402. ">
  3403. <img src="../../../assets/icon/checkNo.png" alt
  3404. v-if="itemTool.tool.indexOf(1) == -1" />
  3405. <div class="checkDiv" v-else>
  3406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3407. </div>
  3408. </div>
  3409. </div>
  3410. <div class="tool">
  3411. <div class="whiteBIcon" @click="
  3412. openTools(itemTaskIndex, 52, toolIndex)
  3413. ">
  3414. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3415. <div style="margin: 5px 0">文档</div>
  3416. </div>
  3417. <div class="check" @click="
  3418. addTools(52, itemTaskIndex, toolIndex)
  3419. ">
  3420. <img src="../../../assets/icon/checkNo.png" alt
  3421. v-if="itemTool.tool.indexOf(52) == -1" />
  3422. <div class="checkDiv" v-else>
  3423. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3424. </div>
  3425. </div>
  3426. </div>
  3427. <div class="tool">
  3428. <div class="whiteBIcon" @click="
  3429. openTools(itemTaskIndex, 3, toolIndex)
  3430. ">
  3431. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3432. <div style="margin: 5px 0">思维导图</div>
  3433. </div>
  3434. <div class="check" @click="
  3435. addTools(3, itemTaskIndex, toolIndex)
  3436. ">
  3437. <img src="../../../assets/icon/checkNo.png" alt
  3438. v-if="itemTool.tool.indexOf(3) == -1" />
  3439. <div class="checkDiv" v-else>
  3440. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3441. </div>
  3442. </div>
  3443. </div>
  3444. <div class="tool">
  3445. <div class="whiteBIcon" @click="
  3446. openTools(itemTaskIndex, 4, toolIndex)
  3447. ">
  3448. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3449. <div style="margin: 5px 0">问卷调查</div>
  3450. </div>
  3451. <div class="check" @click="
  3452. addTools(4, itemTaskIndex, toolIndex)
  3453. ">
  3454. <img src="../../../assets/icon/checkNo.png" alt
  3455. v-if="itemTool.tool.indexOf(4) == -1" />
  3456. <div class="checkDiv" v-else>
  3457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. <div class="tool">
  3462. <div class="whiteBIcon" @click="
  3463. openTools(itemTaskIndex, 45, toolIndex)
  3464. ">
  3465. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3466. <div style="margin: 5px 0">选择题</div>
  3467. </div>
  3468. <div class="check" @click="
  3469. addTools(45, itemTaskIndex, toolIndex)
  3470. ">
  3471. <img src="../../../assets/icon/checkNo.png" alt
  3472. v-if="itemTool.tool.indexOf(45) == -1" />
  3473. <div class="checkDiv" v-else>
  3474. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3475. </div>
  3476. </div>
  3477. </div>
  3478. <div class="tool">
  3479. <div class="whiteBIcon" @click="
  3480. openTools(itemTaskIndex, 15, toolIndex)
  3481. ">
  3482. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3483. <div style="margin: 5px 0">问答</div>
  3484. </div>
  3485. <div class="check" @click="
  3486. addTools(15, itemTaskIndex, toolIndex)
  3487. ">
  3488. <img src="../../../assets/icon/checkNo.png" alt
  3489. v-if="itemTool.tool.indexOf(15) == -1" />
  3490. <div class="checkDiv" v-else>
  3491. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3492. </div>
  3493. </div>
  3494. </div>
  3495. <div class="tool">
  3496. <div class="whiteBIcon" @click="
  3497. addTools(16, itemTaskIndex, toolIndex)
  3498. ">
  3499. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3500. <div style="margin: 5px 0">作业提交</div>
  3501. </div>
  3502. <div class="check" @click="
  3503. addTools(16, itemTaskIndex, toolIndex)
  3504. ">
  3505. <img src="../../../assets/icon/checkNo.png" alt
  3506. v-if="itemTool.tool.indexOf(16) == -1" />
  3507. <div class="checkDiv" v-else>
  3508. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3509. </div>
  3510. </div>
  3511. </div>
  3512. <div class="tool">
  3513. <div class="whiteBIcon" @click="
  3514. openTools(itemTaskIndex, 50, toolIndex)
  3515. ">
  3516. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3517. <div style="margin: 5px 0">批量上传</div>
  3518. </div>
  3519. <div class="check" @click="
  3520. addTools(50, itemTaskIndex, toolIndex)
  3521. ">
  3522. <img src="../../../assets/icon/checkNo.png" alt
  3523. v-if="itemTool.tool.indexOf(50) == -1" />
  3524. <div class="checkDiv" v-else>
  3525. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. <div class="tool">
  3530. <div class="whiteBIcon" @click="
  3531. openTools(itemTaskIndex, 41, toolIndex)
  3532. ">
  3533. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3534. <div style="margin: 5px 0">选择匹配</div>
  3535. </div>
  3536. <div class="check" @click="
  3537. addTools(41, itemTaskIndex, toolIndex)
  3538. ">
  3539. <img src="../../../assets/icon/checkNo.png" alt
  3540. v-if="itemTool.tool.indexOf(41) == -1" />
  3541. <div class="checkDiv" v-else>
  3542. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. <div class="tool">
  3547. <div class="whiteBIcon" @click="
  3548. openTools(itemTaskIndex, 47, toolIndex)
  3549. ">
  3550. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3551. <div style="margin: 5px 0">排序</div>
  3552. </div>
  3553. <div class="check" @click="
  3554. addTools(47, itemTaskIndex, toolIndex)
  3555. ">
  3556. <img src="../../../assets/icon/checkNo.png" alt
  3557. v-if="itemTool.tool.indexOf(47) == -1" />
  3558. <div class="checkDiv" v-else>
  3559. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3560. </div>
  3561. </div>
  3562. </div>
  3563. <div class="tool">
  3564. <div class="whiteBIcon" @click="
  3565. openTools(itemTaskIndex, 48, toolIndex)
  3566. ">
  3567. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3568. <div style="margin: 5px 0">表格</div>
  3569. </div>
  3570. <div class="check" @click="
  3571. addTools(48, itemTaskIndex, toolIndex)
  3572. ">
  3573. <img src="../../../assets/icon/checkNo.png" alt
  3574. v-if="itemTool.tool.indexOf(48) == -1" />
  3575. <div class="checkDiv" v-else>
  3576. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3577. </div>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. </div>
  3582. </div>
  3583. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3584. <div class="addToolImg">
  3585. <img src="../../../assets/icon/add.png" alt />
  3586. </div>
  3587. <div>添加工具</div>
  3588. </div> -->
  3589. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  3590. style="margin: 35px auto 20px">
  3591. 添加工具
  3592. </button>
  3593. </div>
  3594. </div>
  3595. <div v-else-if="
  3596. unitJson[unitIndex].easy == 1 ||
  3597. (unitJson[unitIndex].easy == 5 &&
  3598. itemTask.taskType == 2)
  3599. " class="toolChoose" style="padding: 0 0 40px">
  3600. <div class="tools">
  3601. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0" v-for="(
  3602. itemTool, toolIndex
  3603. ) in itemTask.toolChoose" :key="toolIndex">
  3604. <div style="min-height: 163px">
  3605. <div class="toolSort">
  3606. <div class="tool">
  3607. <div class="whiteBIcon" @click="
  3608. openTools(itemTaskIndex, 50, toolIndex)
  3609. ">
  3610. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3611. <div style="margin: 5px 0">批量上传</div>
  3612. </div>
  3613. <div class="check" @click="
  3614. addTools(50, itemTaskIndex, toolIndex)
  3615. ">
  3616. <img src="../../../assets/icon/checkNo.png" alt
  3617. v-if="itemTool.tool.indexOf(50) == -1" />
  3618. <div class="checkDiv" v-else>
  3619. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3620. </div>
  3621. </div>
  3622. </div>
  3623. </div>
  3624. </div>
  3625. </div>
  3626. </div>
  3627. </div>
  3628. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  3629. v-loading="taskDetailLoading4.indexOf('task-' + itemTaskIndex) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
  3630. <div class="elist_title">
  3631. <div style="
  3632. display: flex;
  3633. flex-direction: row;
  3634. align-items: center;
  3635. margin: 20px 0;
  3636. ">
  3637. <div class="lineTitle clineTitle">评价设置</div>
  3638. <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
  3639. <div class="r_pub_button_op" style="margin-left:auto;"
  3640. @contextmenu.prevent="openAiDialog(1, 'aiDetail4', itemTask.eList, itemTaskIndex)"
  3641. @click="openAiDialog(2, 'aiDetail4', itemTask.eList, itemTaskIndex)">智能优化</div>
  3642. </el-tooltip>
  3643. <!-- <div class="line" style="width: 90%"></div> -->
  3644. </div>
  3645. </div>
  3646. <div class="mbCss">
  3647. <div class="pjCss" :style="{
  3648. width: itemTask.isEvaFold
  3649. ? 'calc(100% - 55%)'
  3650. : 'calc(100% - 120px)',
  3651. }">
  3652. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3653. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3654. <span>评价维度:</span>
  3655. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  3656. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  3657. <!-- </el-tooltip> -->
  3658. <!-- <span>评星等级:</span>
  3659. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  3660. disabled></el-rate> -->
  3661. <div class="remove" @click="
  3662. deletEList(
  3663. unitIndex,
  3664. itemTaskIndex,
  3665. eIndex
  3666. )
  3667. "></div>
  3668. <div class="elist_inptu_text">
  3669. <span>维度描述:</span>
  3670. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  3671. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  3672. <!-- </el-tooltip> -->
  3673. </div>
  3674. <div class="elist_inptu_text" v-if="evalua">
  3675. <span>目标:</span>
  3676. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  3677. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3678. @change="forceUpdate()">
  3679. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3680. :value="e.name">
  3681. </el-option>
  3682. </el-select> -->
  3683. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3684. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3685. </div>
  3686. </div>
  3687. </div>
  3688. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  3689. style="margin: 35px 35px 0 0">
  3690. <div class="addToolImg">
  3691. <img src="../../../assets/icon/add.png" alt />
  3692. </div>
  3693. <div>添加</div>
  3694. </div> -->
  3695. <div class="eva_btn_box">
  3696. <div class="eva_btn_left_box">
  3697. <button class="c_pub_button_add pub_btn_eval_img"
  3698. @click="addEList(unitIndex, itemTaskIndex)">
  3699. 添加
  3700. </button>
  3701. <button class="c_pub_button_add pub_btn_eval_source_img"
  3702. @click="openEList(unitIndex, itemTaskIndex)">
  3703. 资源
  3704. </button>
  3705. </div>
  3706. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)"
  3707. v-if="itemTask.eList && itemTask.eList.length">
  3708. 添加资源模板
  3709. </button>
  3710. </div>
  3711. </div>
  3712. <div v-if="evalua" style="
  3713. border: 1px solid #e5e5e5;
  3714. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3715. " :style="{
  3716. width: itemTask.isEvaFold ? '55%' : '116px',
  3717. }" class="evaCss">
  3718. <!-- <div class="e_add_top">
  3719. <div class="e_add_title">
  3720. <span>当前使用目标管理</span>
  3721. <span>{{ eTitle }}</span>
  3722. <img src="../../../assets/line.png" class="cru_line" style="
  3723. width: 125px;
  3724. height: 20px;
  3725. bottom: -10px;
  3726. left: 155px;
  3727. " />
  3728. </div>
  3729. </div> -->
  3730. <div class="e_add_content" style="width: 100%">
  3731. <div class="e_add_list_pbox" style="width: 100%">
  3732. <div class="e_add_list_pbox_title">
  3733. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  3734. <div class="type_content" v-if="itemTask.isEvaFold">
  3735. <span :class="{ active: typeMode == 1 }"
  3736. @click="OtherMb(1, itemTaskIndex)">目标树</span>
  3737. <span :class="{ active: typeMode == 2 }"
  3738. @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  3739. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  3740. </div>
  3741. <div v-if="itemTask.isEvaFold" class="show_taskD show" style="margin: 0 0 0 auto"
  3742. @click="foldEva(itemTaskIndex)">
  3743. <img src="../../../assets/icon/new/icon-slide.png" />收起目标
  3744. </div>
  3745. <div v-else style="margin: 0 0 0 auto" class="show_taskD"
  3746. @click="foldEva(itemTaskIndex)">
  3747. <img src="../../../assets/icon/new/icon-slide.png" />展开目标
  3748. </div>
  3749. </div>
  3750. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold"
  3751. style="min-height: 200px">
  3752. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3753. " v-if="typeMode == 1"></Mind>
  3754. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3755. </Sunburst>
  3756. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3757. v-if="typeMode == 3"></SeeBoard>
  3758. </div>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div class="funBlock" style="padding: 0">
  3765. <div class="fold" @click="fold(itemTaskIndex, $event)">
  3766. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }"></div>
  3767. <div>
  3768. {{
  3769. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  3770. }}
  3771. </div>
  3772. </div>
  3773. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3774. <div>展开</div>
  3775. <div class="arrow">
  3776. <img src="../../../assets/icon/expand.png" alt />
  3777. </div>
  3778. </div> -->
  3779. </div>
  3780. </div>
  3781. </div>
  3782. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3783. <!-- <div>
  3784. <img src="../../../../assets/icon/new/addStage.png" alt />
  3785. <span>添加任务</span>
  3786. </div> -->
  3787. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  3788. 添加任务
  3789. </button>
  3790. </div>
  3791. </div>
  3792. <div class="info_btnBox3">
  3793. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  3794. goTo(
  3795. '/course?userid=' +
  3796. userid +
  3797. '&oid=' +
  3798. oid +
  3799. '&org=' +
  3800. org +
  3801. '&role=' +
  3802. role
  3803. )
  3804. ">
  3805. 返回课程
  3806. </button>
  3807. <button class="c_pub_button_return pub_btn_last_img"
  3808. v-if="steps > 1 && steps != 5 && istemplate != 1" @click="lastSteps" style="background: #dbdbdb">
  3809. {{ steps == 4 ? "返回课程" : "上一步" }}
  3810. </button>
  3811. <button class="c_pub_button_confirm" v-if="steps < 4 && istemplate != 1" @click="nextSteps" :class="{
  3812. pub_btn_next_img: steps != 3,
  3813. pub_btn_finish_img: steps == 3,
  3814. }">
  3815. {{ steps == 3 ? "确认上传" : "下一步" }}
  3816. </button>
  3817. <button class="c_pub_button_confirm" v-if="istemplate == 1" @click="openSaveTips">{{ templateid ?
  3818. '修改模板' : '保存模板'}}</button>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. </div>
  3823. </div>
  3824. <div style="
  3825. width: calc(100% - 20px);
  3826. background: rgb(255, 255, 255);
  3827. border-radius: 10px;
  3828. " v-if="steps == 4">
  3829. <div class="basic_box_success">
  3830. <div class="right_img">
  3831. <img src="../../../assets/icon/right.png" alt />
  3832. </div>
  3833. <div style="font-weight: bold">成功</div>
  3834. <!-- <div>您的课程编号</div>
  3835. <div class="number">{{ number }}</div>-->
  3836. <!-- <div class="success_button">
  3837. <div class="look_course" @click="isNoFinsh">
  3838. 邀请老师协同编辑
  3839. </div>
  3840. <div class="attend_others" @click="goCourse">预览课程</div>
  3841. </div> -->
  3842. </div>
  3843. </div>
  3844. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3845. @mouseleave="btnDisplay(false)" v-if="false">
  3846. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  3847. goTo(
  3848. '/course?userid=' +
  3849. userid +
  3850. '&oid=' +
  3851. oid +
  3852. '&org=' +
  3853. org +
  3854. '&role=' +
  3855. role
  3856. )
  3857. ">
  3858. 返回课程
  3859. </button>
  3860. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  3861. @click="lastSteps">
  3862. {{ steps == 4 ? "返回课程" : "上一步" }}
  3863. </button>
  3864. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps" :class="{
  3865. pub_btn_next_img: steps != 3,
  3866. pub_btn_finish_img: steps == 3,
  3867. }">
  3868. {{ steps == 3 ? "确认上传" : "下一步" }}
  3869. </button>
  3870. </div>
  3871. </div>
  3872. </div>
  3873. <div class="leftBar" v-if="istemplate == 1">
  3874. <aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson" />
  3875. <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson" />
  3876. <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson" />
  3877. <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson" />
  3878. <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail"
  3879. @setAiJson="setAiJson" />
  3880. <aiTips ttitle="生成教案" title="生成任务按钮" :detail="aiJson.aiTask" pan="aiTask" @setAiJson="setAiJson" />
  3881. <aiTips ttitle="任务详情" title="任务描述优化" :detail="aiJson.aiDetail2" pan="aiDetail2" @setAiJson="setAiJson" />
  3882. <aiTips ttitle="任务详情" title="工具描述优化" :detail="aiJson.aiDetail3" pan="aiDetail3" @setAiJson="setAiJson" />
  3883. <aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson" />
  3884. </div>
  3885. </div>
  3886. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3887. class="dialog_diy2 customWidth">
  3888. <div>请复制该链接邀请协同编辑</div>
  3889. <div>http://www.boomyon.com/index-zhang.com</div>
  3890. <span slot="footer" class="dialog-footer">
  3891. <el-button type="primary">复制链接分享</el-button>
  3892. <el-button @click="dialogVisible = false">取消</el-button>
  3893. </span>
  3894. </el-dialog>
  3895. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3896. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3897. <el-form>
  3898. <el-form-item label="文档标题">
  3899. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3900. </el-form-item>
  3901. <div>文档简介</div>
  3902. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3903. </el-form>
  3904. <span slot="footer" class="dialog-footer">
  3905. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3906. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3907. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3908. </span>
  3909. </el-dialog>
  3910. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3911. :before-close="handleClose" class="dialog_diy">
  3912. <el-form>
  3913. <el-form-item label="文档标题">
  3914. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3915. </el-form-item>
  3916. <div>文档内容</div>
  3917. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3918. </el-form>
  3919. <span slot="footer" class="dialog-footer">
  3920. <el-button @click="clearChoose">取 消</el-button>
  3921. <el-button type="primary" @click="wordNext()">确定</el-button>
  3922. </span>
  3923. </el-dialog>
  3924. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3925. :before-close="handleClose" class="dialog_diy">
  3926. <el-form>
  3927. <el-form-item label="文本标题">
  3928. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3929. placeholder="请输入文本标题..."></el-input>
  3930. </el-form-item>
  3931. <!-- <div>富文本内容</div> -->
  3932. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3933. </el-form>
  3934. <span slot="footer" class="dialog-footer">
  3935. <el-button @click="clearAttText">取 消</el-button>
  3936. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3937. </span>
  3938. </el-dialog>
  3939. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3940. :before-close="handleClose" class="dialog_diy lineCss">
  3941. <el-form>
  3942. <el-form-item label="标题" :label-width="formLabelWidth">
  3943. <span>
  3944. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3945. </span>
  3946. </el-form-item>
  3947. <el-form-item label="链接" :label-width="formLabelWidth">
  3948. <span>
  3949. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3950. </span>
  3951. </el-form-item>
  3952. </el-form>
  3953. <span slot="footer" class="dialog-footer">
  3954. <el-button @click="clearLine">取 消</el-button>
  3955. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3956. </span>
  3957. </el-dialog>
  3958. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3959. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3960. <div>
  3961. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3962. </div>
  3963. <span slot="footer" class="dialog-footer">
  3964. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3965. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3966. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3967. </span>
  3968. </el-dialog>
  3969. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3970. :before-close="handleClose" class="addNewPP customWidth">
  3971. <div class="people">
  3972. <div class="people_top">
  3973. <div class="people_nav">选择成员</div>
  3974. <div class="people_top_right">
  3975. <div class="people_search">
  3976. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3977. <div class="search_img" @click="searchStudent">
  3978. <img src="../../../assets/icon/search.png" alt />
  3979. </div>
  3980. </div>
  3981. </div>
  3982. </div>
  3983. <el-checkbox-group v-model="checkboxList" class="people_name">
  3984. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3985. "暂无学生可选" }}</el-checkbox>
  3986. </el-checkbox-group>
  3987. </div>
  3988. <span slot="footer" class="dialog-footer">
  3989. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3990. <el-button type="primary" @click="isAddPP">确定</el-button>
  3991. </span>
  3992. </el-dialog>
  3993. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3994. :before-close="handleClose" class="addNewPP2">
  3995. <div class="check_classBox">
  3996. <div class="check_class_right">
  3997. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3998. 全部
  3999. </div>
  4000. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  4001. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  4002. {{ item.name }}
  4003. </div>
  4004. </el-tooltip>
  4005. </div>
  4006. <div class="check_class_left">
  4007. <div class="check_class_all_box">
  4008. <div class="check_class_left_title">选择班级</div>
  4009. <div style="display: flex; align-items: center; margin-left: auto">
  4010. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  4011. </div>
  4012. </div>
  4013. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  4014. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  4015. </div> -->
  4016. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  4017. v-if="grade2.length">
  4018. <div v-for="item in grade2" :key="item.id" class="class_item">
  4019. <el-checkbox :label="item.id">
  4020. {{ item.name }}
  4021. </el-checkbox>
  4022. </div>
  4023. </el-checkbox-group>
  4024. <div v-if="!grade2.length">暂无数据</div>
  4025. </div>
  4026. </div>
  4027. <span slot="footer" class="dialog-footer">
  4028. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  4029. <el-button type="primary" @click="isAddClass">确定</el-button>
  4030. </span>
  4031. </el-dialog>
  4032. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  4033. :before-close="handleClose" class="addNewPP customWidth">
  4034. <div style="display: flex;justify-content: space-between;">
  4035. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  4036. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  4037. 全部
  4038. </div>
  4039. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)"
  4040. v-for="(i) in CollaborativeTeaList" :key="i.id">
  4041. <el-tooltip placement="top" :content="i.name">
  4042. <span>{{i.name}}</span>
  4043. </el-tooltip>
  4044. </div>
  4045. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  4046. 其他
  4047. </div>
  4048. </div>
  4049. <div style="width: calc(100% - 100px);" v-loading="CollLoading">
  4050. <div class="people">
  4051. <div class="people_top">
  4052. <div class="people_top_right">
  4053. <div class="people_search">
  4054. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher(collid)"></el-input>
  4055. <div class="search_img" @click="getTeacher(collid)">
  4056. <img src="../../../assets/icon/search.png" alt />
  4057. </div>
  4058. </div>
  4059. </div>
  4060. <div class="people_nav" style="display: flex; align-items: center">
  4061. <div class="check_class_left_title">选择成员</div>
  4062. <div style="display: flex; align-items: center; margin-left: auto">
  4063. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  4064. </div>
  4065. </div>
  4066. </div>
  4067. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  4068. @change="InviteChange2">
  4069. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  4070. <div class="t_j_box">
  4071. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  4072. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  4073. </el-tooltip>
  4074. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  4075. <span>{{ item.username.split('@')[0] }}</span>
  4076. </el-tooltip>
  4077. <el-tooltip placement="top" :content="item.school">
  4078. <span>{{ item.school }}</span>
  4079. </el-tooltip>
  4080. </div>
  4081. </el-checkbox>
  4082. </el-checkbox-group>
  4083. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  4084. </div>
  4085. </div>
  4086. </div>
  4087. <span slot="footer" class="dialog-footer">
  4088. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  4089. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  4090. </span>
  4091. </el-dialog>
  4092. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  4093. closePan(4);
  4094. }
  4095. " class="dialog_diy fullStyle">
  4096. <div style="height: 100%">
  4097. <div class="a_add_title" style="
  4098. display: flex;
  4099. flex-direction: row;
  4100. align-items: center;
  4101. justify-content: center;
  4102. ">
  4103. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  4104. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4105. </div>
  4106. <div class="a_addBox" style="height: calc(100% - 50px)">
  4107. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  4108. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4109. <div class="a_add_checkType">
  4110. <span :class="{
  4111. active:
  4112. askJson.askJson[index1].type == '1' ||
  4113. !askJson.askJson[index1].type,
  4114. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  4115. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  4116. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  4117. </div>
  4118. <div class="a_add_head">
  4119. <div style="
  4120. display: flex;
  4121. align-items: center;
  4122. width: 100%;
  4123. margin-right: 20px;
  4124. ">
  4125. <span style="min-width: fit-content">{{
  4126. index1 + 1 + "、"
  4127. }}</span>
  4128. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4129. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  4130. $forceUpdate();
  4131. }
  4132. "></textarea>
  4133. </div>
  4134. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  4135. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  4136. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  4137. </div>
  4138. <div class="a_add_head_div">
  4139. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  4140. </el-button>
  4141. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  4142. </div>
  4143. </div>
  4144. <div class="a_add_body">
  4145. <div class="a_add_input" style="flex-direction: column">
  4146. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  4147. margin: 20px 10px 0 0;
  4148. display: flex;
  4149. align-items: center;
  4150. position: relative;
  4151. ">
  4152. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  4153. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4154. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  4155. @change="() => {
  4156. $forceUpdate();
  4157. }
  4158. "></textarea>
  4159. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  4160. v-if="askJson.askJson[index1].askItem != 1">
  4161. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  4162. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  4163. </div>
  4164. <div class="a_add_body_div">
  4165. <el-button type="primary" size="small"
  4166. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  4167. <el-button type="primary" size="small" @click="
  4168. deletecheckList(askJson.askJson[index1], checkIndex)
  4169. " v-if="askJson.askJson[index1].askItem != 1">删除
  4170. </el-button>
  4171. </div>
  4172. </div>
  4173. </div>
  4174. <!-- <div class="a_add_body_div">
  4175. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  4176. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  4177. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  4178. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  4179. </el-button>
  4180. </div> -->
  4181. </div>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <span slot="footer" class="dialog-footer">
  4186. <el-button @click="closePan(4)">取 消</el-button>
  4187. <el-button type="primary" @click="addAsk">确 定</el-button>
  4188. </span>
  4189. </el-dialog>
  4190. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  4191. closePan(45);
  4192. }
  4193. " class="dialog_diy fullStyle">
  4194. <div style="height: 100%">
  4195. <!-- <div class="a_add_title" style="
  4196. display: flex;
  4197. flex-direction: row;
  4198. align-items: center;
  4199. justify-content: center;
  4200. ">
  4201. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4202. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4203. </div> -->
  4204. <div class="a_addBox" style="height: 100%">
  4205. <div style="
  4206. font-size: 16px;
  4207. color: #c7c7c7;
  4208. display: flex;
  4209. align-items: center;
  4210. ">
  4211. <!-- 请输入题目内容 -->
  4212. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4213. v-if="isPasteChoice">
  4214. 智能粘贴
  4215. </button>
  4216. </div>
  4217. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4218. <div class="a_add_checkType">
  4219. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4220. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4221. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4222. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4223. </div>
  4224. <div class="a_add_head">
  4225. <div class="timuUpImg">
  4226. <div style="display: flex; align-items: center">
  4227. <span style="min-width: fit-content">{{
  4228. index1 + 1 + "、"
  4229. }}</span>
  4230. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4231. placeholder="请输入题目">
  4232. </el-input> -->
  4233. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4234. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  4235. $forceUpdate();
  4236. }
  4237. "></textarea>
  4238. </div>
  4239. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4240. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  4241. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4242. </div>
  4243. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  4244. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4245. <input type="file" accept="image/*" style="display: none"
  4246. @change="beforeUploadTiMu($event, index1)" />
  4247. </div>
  4248. </div>
  4249. <div class="a_add_head_div">
  4250. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4251. </el-button>
  4252. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4253. </div>
  4254. </div>
  4255. <div class="timuImgBox" v-if="
  4256. testJson.testJson[index1].timuList &&
  4257. testJson.testJson[index1].timuList.length
  4258. ">
  4259. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4260. @click.stop="previewImg(timg.src)">
  4261. <img :src="timg.src" alt="" />
  4262. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4263. <img src="../../../assets/icon/delete.png" alt="" />
  4264. </div>
  4265. </div>
  4266. </div>
  4267. <div class="a_add_body">
  4268. <div class="a_add_input a_add_input_choice">
  4269. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4270. @change="() => {
  4271. $forceUpdate();
  4272. }
  4273. ">
  4274. <div class="radioBox">
  4275. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4276. .testItem" :key="checkIndex" :label="checkIndex">
  4277. <div style="margin-right: 10px">
  4278. 选项{{ checkIndex + 1 }}
  4279. </div>
  4280. <div style="margin-right: 10px; width: 300px" v-if="
  4281. testJson.testJson[index1].checkList[checkIndex] &&
  4282. testJson.testJson[index1].checkList[checkIndex]
  4283. .imgType &&
  4284. testJson.testJson[index1].checkList[checkIndex]
  4285. .imgType == 1
  4286. ">
  4287. <div class="inImg" @click.stop="
  4288. previewImg(
  4289. testJson.testJson[index1].checkList[checkIndex]
  4290. .src
  4291. )
  4292. ">
  4293. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4294. .src
  4295. " lazy />
  4296. <!-- <img :src="
  4297. testJson.testJson[index1].checkList[checkIndex]
  4298. .src
  4299. " alt="" /> -->
  4300. </div>
  4301. </div>
  4302. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4303. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4304. $forceUpdate();
  4305. }
  4306. "></textarea>
  4307. <div class="xzUpImg" @click.stop="addImg($event)">
  4308. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4309. <input type="file" accept="image/*" style="display: none"
  4310. @change="beforeUploadTi($event, index1, checkIndex)" />
  4311. </div>
  4312. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4313. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4314. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4315. </div>
  4316. <div class="a_add_body_div">
  4317. <el-button type="primary" size="small" @click.stop="
  4318. addTcheckList(testJson.testJson[index1], checkIndex)
  4319. ">添加</el-button>
  4320. <el-button type="primary" size="small" @click.stop="
  4321. deleteTcheckList(
  4322. testJson.testJson[index1],
  4323. checkIndex
  4324. )
  4325. " v-if="testJson.testJson[index1].testItem != 1">删除
  4326. </el-button>
  4327. </div>
  4328. </el-radio>
  4329. </div>
  4330. </el-radio-group>
  4331. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4332. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4333. $forceUpdate();
  4334. }
  4335. ">
  4336. <div class="radioBox">
  4337. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4338. .testItem" :key="checkIndex1" :label="checkIndex1">
  4339. <div style="margin-right: 10px">
  4340. 选项{{ checkIndex1 + 1 }}
  4341. </div>
  4342. <div style="margin-right: 10px; width: 300px" v-if="
  4343. testJson.testJson[index1].checkList[checkIndex1] &&
  4344. testJson.testJson[index1].checkList[checkIndex1]
  4345. .imgType &&
  4346. testJson.testJson[index1].checkList[checkIndex1]
  4347. .imgType == 1
  4348. ">
  4349. <div class="inImg" @click.stop="
  4350. previewImg(
  4351. testJson.testJson[index1].checkList[checkIndex1]
  4352. .src
  4353. )
  4354. ">
  4355. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4356. .src
  4357. " lazy />
  4358. <!-- <img :src="
  4359. testJson.testJson[index1].checkList[checkIndex1]
  4360. .src
  4361. " alt="" /> -->
  4362. </div>
  4363. </div>
  4364. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4365. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4366. $forceUpdate();
  4367. }
  4368. "></textarea>
  4369. <div class="xzUpImg" @click.stop="addImg($event)">
  4370. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4371. <input type="file" accept="image/*" style="display: none"
  4372. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4373. </div>
  4374. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4375. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4376. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4377. </div>
  4378. <div class="a_add_body_div">
  4379. <el-button type="primary" size="small" @click.stop="
  4380. addTcheckList(
  4381. testJson.testJson[index1],
  4382. checkIndex1
  4383. )
  4384. ">添加</el-button>
  4385. <el-button type="primary" size="small" @click.stop="
  4386. deleteTcheckList(
  4387. testJson.testJson[index1],
  4388. checkIndex1
  4389. )
  4390. " v-if="testJson.testJson[index1].testItem != 1">删除
  4391. </el-button>
  4392. </div>
  4393. </el-checkbox>
  4394. </div>
  4395. </el-checkbox-group>
  4396. </div>
  4397. <!-- <div class="a_add_body_div">
  4398. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4399. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4400. v-if="testJson.testJson[index1].testItem != 1">删除
  4401. </el-button>
  4402. </div> -->
  4403. </div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. <span slot="footer" class="dialog-footer">
  4408. <el-button @click="closePan(45)">取 消</el-button>
  4409. <el-button type="primary" @click="addTest">确 定</el-button>
  4410. </span>
  4411. </el-dialog>
  4412. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4413. :before-close="handleClose" class="dialog_diy addToolsDia">
  4414. <div class="toolChoose">
  4415. <div class="tools">
  4416. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4417. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4418. <div style="
  4419. display: flex;
  4420. flex-direction: row;
  4421. align-items: baseline;
  4422. flex-wrap: nowrap;
  4423. justify-content: flex-start;
  4424. position: relative;
  4425. ">
  4426. <div class="chooseWho">
  4427. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4428. 互动类
  4429. </div>
  4430. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4431. 思维类
  4432. </div>
  4433. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4434. 评价类
  4435. </div>
  4436. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4437. 其他
  4438. </div>
  4439. </div>
  4440. </div>
  4441. <div style="min-height: 163px">
  4442. <div class="toolSort" v-if="chapToolsType == 0">
  4443. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4444. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4445. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4446. <div style="margin: 5px 0">素材库</div>
  4447. </div>
  4448. <div class="noCTool">
  4449. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4450. </div>
  4451. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4452. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4453. </div>
  4454. <!-- <div class="check" @click="chapAddTools(8)">
  4455. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4456. <div class="checkDiv" v-else>
  4457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4458. </div>
  4459. </div> -->
  4460. </div>
  4461. </div>
  4462. <div class="toolSort" v-if="chapToolsType == 1">
  4463. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4464. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4465. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4466. <div style="margin: 5px 0">思维网格</div>
  4467. </div>
  4468. <div class="noCTool">
  4469. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4470. </div>
  4471. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4472. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4473. </div>
  4474. <!-- <div class="check" @click="chapAddTools(7)">
  4475. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4476. <div class="checkDiv" v-else>
  4477. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4478. </div>
  4479. </div> -->
  4480. </div>
  4481. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4482. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4483. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4484. <div style="margin: 5px 0">电子白板</div>
  4485. </div>
  4486. <div class="noCTool">
  4487. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4488. </div>
  4489. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4490. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4491. </div>
  4492. <!-- <div class="check" @click="chapAddTools(1)">
  4493. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4494. <div class="checkDiv" v-else>
  4495. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4496. </div>
  4497. </div> -->
  4498. </div>
  4499. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4500. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4501. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4502. <div style="margin: 5px 0">便签</div>
  4503. </div>
  4504. <div class="noCTool">
  4505. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4506. </div>
  4507. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4508. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4509. </div>
  4510. <!-- <div class="check" @click="chapAddTools(2)">
  4511. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4512. <div class="checkDiv" v-else>
  4513. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4514. </div>
  4515. </div> -->
  4516. </div>
  4517. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4518. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4519. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4520. <div style="margin: 5px 0">协同文档</div>
  4521. </div>
  4522. <div class="noCTool">
  4523. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4524. </div>
  4525. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4526. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4527. </div>
  4528. <!-- <div class="check" @click="chapAddTools(6)">
  4529. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4530. <div class="checkDiv" v-else>
  4531. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4532. </div>
  4533. </div> -->
  4534. </div>
  4535. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4536. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4537. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4538. <div style="margin: 5px 0">思维导图</div>
  4539. </div>
  4540. <div class="noCTool">
  4541. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4542. </div>
  4543. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4544. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4545. </div>
  4546. <!-- <div class="check" @click="chapAddTools(3)">
  4547. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4548. <div class="checkDiv" v-else>
  4549. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4550. </div>
  4551. </div> -->
  4552. </div>
  4553. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4554. @click="chapAddTools(31)">
  4555. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4556. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4557. <div style="margin: 5px 0">数学画板</div>
  4558. </div>
  4559. <div class="noCTool">
  4560. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4561. </div>
  4562. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4563. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4564. </div>
  4565. <!-- <div class="check" @click="chapAddTools(31)">
  4566. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4567. <div class="checkDiv" v-else>
  4568. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4569. </div>
  4570. </div> -->
  4571. </div>
  4572. </div>
  4573. <div class="toolSort" v-if="chapToolsType == 2">
  4574. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4575. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4576. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4577. <div style="margin: 5px 0">量规评分</div>
  4578. </div>
  4579. <div class="noCTool">
  4580. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4581. </div>
  4582. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4583. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4584. </div>
  4585. <!-- <div class="check" @click="chapAddTools(5)">
  4586. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4587. <div class="checkDiv" v-else>
  4588. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4589. </div>
  4590. </div> -->
  4591. </div>
  4592. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4593. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4594. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4595. <div style="margin: 5px 0">问卷调查</div>
  4596. </div>
  4597. <div class="noCTool">
  4598. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4599. </div>
  4600. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4601. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4602. </div>
  4603. <!-- <div class="check" @click="chapAddTools(4)">
  4604. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4605. <div class="checkDiv" v-else>
  4606. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4607. </div>
  4608. </div> -->
  4609. </div>
  4610. </div>
  4611. </div>
  4612. <div>
  4613. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4614. v-model="itemTools.toolDetail" />
  4615. </div>
  4616. </div>
  4617. </div>
  4618. </div>
  4619. <span slot="footer" class="dialog-footer">
  4620. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4621. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4622. </span>
  4623. </el-dialog>
  4624. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4625. closePan(15);
  4626. }
  4627. " class="dialog_diy">
  4628. <div>
  4629. <div class="a_add_title" style="
  4630. display: flex;
  4631. flex-direction: column;
  4632. align-items: flex-start;
  4633. justify-content: center;
  4634. ">
  4635. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4636. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4637. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4638. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4639. </div>
  4640. </div>
  4641. <span slot="footer" class="dialog-footer">
  4642. <el-button @click="closePan(15)">取 消</el-button>
  4643. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4644. </span>
  4645. </el-dialog>
  4646. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4647. :before-close="handleClose" class="dialog_diy">
  4648. <div>
  4649. <div class="a_add_title" style="
  4650. display: flex;
  4651. flex-direction: column;
  4652. align-items: flex-start;
  4653. justify-content: center;
  4654. ">
  4655. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4656. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4657. </div>
  4658. </div>
  4659. <span slot="footer" class="dialog-footer">
  4660. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4661. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4662. </span>
  4663. </el-dialog>
  4664. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4665. :before-close="handleClose" class="dialog_diy">
  4666. <div>
  4667. <div class="fileCss" style="padding-top: 20px">
  4668. <div>
  4669. <button class="info_btn" @click="addImg($event)">
  4670. 选择本地文件
  4671. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4672. </button>
  4673. <div class="spanName">选择本地文件</div>
  4674. </div>
  4675. <!-- <div>
  4676. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4677. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4678. <img :src="cover[0].url" alt="" />
  4679. <div class="deletePic" @click="deleteSysPic">
  4680. <img src="../../../assets/icon/delete.png" alt="" />
  4681. </div>
  4682. </div>
  4683. <div class="spanName">选择系统文件</div>
  4684. </div> -->
  4685. <div>
  4686. <el-button @click="(searchImageValue = courseName), resetImage()"
  4687. v-if="isSysPic2 == false">选择网络文件</el-button>
  4688. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4689. <img :src="cover[0].url" alt="" />
  4690. <div class="deletePic" @click="deleteSysPic">
  4691. <img src="../../../assets/icon/delete.png" alt="" />
  4692. </div>
  4693. </div>
  4694. <div class="spanName">选择网络文件</div>
  4695. </div>
  4696. </div>
  4697. <!-- <div class="fileCss">
  4698. </div> -->
  4699. </div>
  4700. <span slot="footer" class="dialog-footer">
  4701. <el-button @click="choosePicVisible = false">取 消</el-button>
  4702. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4703. </span>
  4704. </el-dialog>
  4705. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4706. :before-close="handleClose" class="dialog_diy">
  4707. <div class="cru_selectBox" style="margin: 0">
  4708. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4709. 绘画
  4710. </div>
  4711. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4712. 科技
  4713. </div>
  4714. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4715. 人文
  4716. </div>
  4717. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4718. 艺术
  4719. </div>
  4720. </div>
  4721. <div class="sysPicBox">
  4722. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4723. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4724. </div>
  4725. </div>
  4726. </el-dialog>
  4727. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4728. :before-close="handleClose" class="dialog_diy">
  4729. <div>
  4730. <div class="people_top_right" style="display: flex; align-items: center">
  4731. <div style="position: relative; width: 100%">
  4732. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4733. @keyup.enter.native="resetImage()"></el-input>
  4734. <div class="search_img" @click="resetImage" style="right: 10px">
  4735. <img src="../../../assets/icon/search.png" alt />
  4736. </div>
  4737. </div>
  4738. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4739. </div>
  4740. <div class="sysPicBox" v-loading="imageloading">
  4741. <div class="picNone" v-if="!imageList.length">
  4742. 请输入关键词搜索图片
  4743. </div>
  4744. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4745. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4746. </div>
  4747. </div>
  4748. </div>
  4749. </el-dialog>
  4750. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4751. closePan(41);
  4752. }
  4753. " class="dialog_diy dialog_diy3 fullStyle">
  4754. <div v-if="selectJson" style="height: 100%">
  4755. <div class="select_box1" v-if="selectSteps == 1">
  4756. <div class="select_box1_img">
  4757. <div class="select_box1_title">
  4758. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4759. </div>
  4760. <div class="select_box1_add_img">
  4761. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4762. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4763. <img src="../../../assets/icon/addPoster.png" alt="" />
  4764. </div>
  4765. <div class="isSysPic" v-else>
  4766. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4767. <div class="deletePic" @click="deleteSelectPic">
  4768. <img src="../../../assets/icon/delete.png" alt="" />
  4769. </div>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div class="select_box1_select">
  4774. <div class="select_box1_title">
  4775. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4776. </div>
  4777. <div class="select_box1_select_box">
  4778. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4779. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4780. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4781. <div class="select_box1_select_box_add">
  4782. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4783. 添加</el-button>
  4784. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4785. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4786. </div>
  4787. </div>
  4788. </div>
  4789. </div>
  4790. <div v-if="selectSteps == 2" style="height: 100%">
  4791. <div class="select_box2">
  4792. <div class="select_box2_title">设置每道题目的正确选项</div>
  4793. <div class="select_box2_box">
  4794. <div class="select_box2_img">
  4795. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4796. </div>
  4797. <div class="select_box2_answer">
  4798. <div class="select_answer_title">根据题目选择对应答案</div>
  4799. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4800. <span>{{ checkIndex + 1 }}、</span>
  4801. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4802. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4803. </el-option>
  4804. </el-select>
  4805. </div>
  4806. </div>
  4807. </div>
  4808. </div>
  4809. </div>
  4810. </div>
  4811. <span slot="footer" class="dialog-footer">
  4812. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4813. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4814. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4815. </span>
  4816. </el-dialog>
  4817. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4818. :before-close="handleClose" class="dialog_diy">
  4819. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4820. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4821. <div class="pjCss" style="width: 100%">
  4822. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4823. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4824. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4825. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4826. <div class="remove" @click="deletRateList(eIndex)"></div>
  4827. <div style="width: 100%; display: flex">
  4828. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4829. <el-rate v-model="eItem.score" disabled></el-rate>
  4830. </div>
  4831. <div class="elist_inptu_text" style="align-items: flex-start">
  4832. <span style="min-width: 100px; text-align: right">描述:</span>
  4833. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4834. </div>
  4835. </div>
  4836. </div>
  4837. <div class="addToolFun" @click="addRateList()">
  4838. <div class="addToolImg">
  4839. <img src="../../../assets/icon/add.png" alt />
  4840. </div>
  4841. <div>添加</div>
  4842. </div>
  4843. </div>
  4844. </div>
  4845. <span slot="footer" class="dialog-footer">
  4846. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4847. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4848. </span>
  4849. </el-dialog>
  4850. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4851. closePan(47);
  4852. }
  4853. " class="dialog_diy dialog_diy3 fullStyle">
  4854. <div style="height: 100%">
  4855. <div class="sentenBox" style="height: 100%">
  4856. <div class="addSen" @click="addSt">添加题目</div>
  4857. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4858. <div class="sentenTopBox">
  4859. <div class="sentenTop" :index="stIndex + 1">
  4860. <div>题目设置</div>
  4861. <div>
  4862. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4863. </div>
  4864. <div @click="addSen(stIndex)">添加</div>
  4865. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4866. </div>
  4867. </div>
  4868. <div class="cardList">
  4869. <div v-if="st.addSentence.length > 0" class="cardBox">
  4870. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4871. @click="setRightAnswer(s, stIndex, sIndex)">
  4872. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4873. <div>{{ s }}</div>
  4874. </el-tooltip>
  4875. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4876. <img src="../../../assets/icon/delete.png" alt="" />
  4877. </div>
  4878. </div>
  4879. </div>
  4880. <div class="card">
  4881. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4882. </div>
  4883. </div>
  4884. <div class="rightCardBox">
  4885. <div>正确顺序</div>
  4886. <div class="rightCardList">
  4887. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4888. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4889. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4890. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4891. <div>{{ r }}</div>
  4892. </el-tooltip>
  4893. </div>
  4894. <div>{{ rIndex + 1 }}</div>
  4895. </div>
  4896. </div>
  4897. <div class="card" v-if="st.rightAnswer.length == 0">
  4898. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4899. </div>
  4900. <div class="card" v-else>
  4901. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4902. </div>
  4903. </div>
  4904. </div>
  4905. </div>
  4906. </div>
  4907. </div>
  4908. <span slot="footer" class="dialog-footer">
  4909. <el-button @click="closePan(47)">取 消</el-button>
  4910. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4911. </span>
  4912. </el-dialog>
  4913. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4914. :before-close="handleClose" class="dialog_diy">
  4915. <el-form>
  4916. <!-- <el-form-item label="文本标题">
  4917. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4918. </el-form-item> -->
  4919. <div>表格内容</div>
  4920. <Table v-model="tableJson.text" @change="change"></Table>
  4921. </el-form>
  4922. <span slot="footer" class="dialog-footer">
  4923. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4924. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4925. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4926. </span>
  4927. </el-dialog>
  4928. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4929. :before-close="handleClose" class="dialog_diy">
  4930. <el-form>
  4931. <!-- <el-form-item label="文本标题">
  4932. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4933. </el-form-item> -->
  4934. <div>文档内容</div>
  4935. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4936. </el-form>
  4937. <span slot="footer" class="dialog-footer">
  4938. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4939. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4940. </span>
  4941. </el-dialog>
  4942. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4943. :before-close="handleClose" class="dialog_diy">
  4944. <div style="
  4945. width: 100%;
  4946. display: flex;
  4947. flex-direction: row;
  4948. flex-wrap: nowrap;
  4949. align-items: center;
  4950. justify-content: center;
  4951. ">
  4952. <div>班级:</div>
  4953. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4954. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4955. </el-option>
  4956. </el-select>
  4957. </div>
  4958. <span slot="footer" class="dialog-footer">
  4959. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4960. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4961. </span>
  4962. </el-dialog>
  4963. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4964. :before-close="handleClose" class="dialog_diy">
  4965. <div style="
  4966. width: 100%;
  4967. display: flex;
  4968. flex-direction: row;
  4969. flex-wrap: nowrap;
  4970. align-items: center;
  4971. justify-content: center;
  4972. ">
  4973. <div>随机码:</div>
  4974. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4975. </div>
  4976. <span slot="footer" class="dialog-footer">
  4977. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4978. <el-button type="primary" @click="addInvite">确定</el-button>
  4979. </span>
  4980. </el-dialog>
  4981. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4982. :before-close="handleClose" class="dialog_diy">
  4983. <div>
  4984. <div style="margin-bottom: 20px; color: #999">
  4985. 提示:点击“+”或“-”修改倒计时时长。
  4986. </div>
  4987. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4988. </div>
  4989. <span slot="footer" class="dialog-footer">
  4990. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4991. <el-button type="primary" @click="addPreTime">确定</el-button>
  4992. </span>
  4993. </el-dialog>
  4994. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4995. :before-close="handleClose" class="dialog_diy">
  4996. <div>
  4997. <div style="
  4998. width: 100%;
  4999. display: flex;
  5000. flex-direction: row;
  5001. flex-wrap: nowrap;
  5002. align-content: center;
  5003. align-items: center;
  5004. justify-content: space-between;
  5005. ">
  5006. <div style="
  5007. display: flex;
  5008. flex-flow: row nowrap;
  5009. align-items: flex-start;
  5010. width: 100%;
  5011. flex-direction: column;
  5012. flex-wrap: nowrap;
  5013. position: relative;
  5014. ">
  5015. <div class="e_box">
  5016. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  5017. <div class="e_card_picture">
  5018. <img src="../../../assets/e_picture.png" />
  5019. </div>
  5020. <div class="e_card_name">
  5021. <span>{{ item.title }}</span>
  5022. </div>
  5023. <div class="e_card_btn">
  5024. <span @click="checkEva(item.id, 2)">导入</span>
  5025. </div>
  5026. </div> -->
  5027. <!-- <div class="addEva" @click="openT">
  5028. <img src="../../../assets/icon/addEva.png" alt="" />
  5029. </div> -->
  5030. <div style="
  5031. display: flex;
  5032. justify-content: flex-end;
  5033. margin-bottom: 10px;
  5034. ">
  5035. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  5036. </div>
  5037. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  5038. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  5039. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  5040. </el-table-column>
  5041. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  5042. </el-table-column>
  5043. <el-table-column label="操作" width="250px">
  5044. <template slot-scope="scope">
  5045. <div class="btnBox">
  5046. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  5047. </div>
  5048. </template>
  5049. </el-table-column>
  5050. </el-table>
  5051. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  5052. 暂无数据
  5053. </div>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. </div>
  5058. <span slot="footer" class="dialog-footer">
  5059. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  5060. </span>
  5061. </el-dialog>
  5062. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  5063. :before-close="handleClose" class="dialog_diy">
  5064. <div class="groupBox">
  5065. <div v-if="groupJson.group" class="groupContent">
  5066. <div class="groupTitle">请设置小组数量及名称</div>
  5067. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  5068. <span class="groupn">第{{ index + 1 }}组名称:</span>
  5069. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  5070. <div class="groupBtn">
  5071. <el-button type="primary" size="small" @click="addGroup(index)"
  5072. v-if="groupJson.group.length - 1 == index">
  5073. 添加</el-button>
  5074. <el-button type="primary" size="small" @click="deleteGroup(index)"
  5075. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  5076. </div>
  5077. </div>
  5078. </div>
  5079. <div class="groupContent">
  5080. <div class="groupTitle">请设置每组人数</div>
  5081. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5082. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5083. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  5084. @change="numberPan"></el-input>
  5085. </div>
  5086. </div>
  5087. <span slot="footer" class="dialog-footer">
  5088. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  5089. <el-button type="primary" @click="addGroupJson">确定</el-button>
  5090. </span>
  5091. </el-dialog>
  5092. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  5093. :before-close="handleClose" class="dialog_diy">
  5094. <div style="
  5095. width: 100%;
  5096. display: flex;
  5097. flex-direction: row;
  5098. flex-wrap: nowrap;
  5099. align-items: center;
  5100. justify-content: center;
  5101. ">
  5102. <div style="min-width: fit-content">文件名称:</div>
  5103. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  5104. </div>
  5105. <span slot="footer" class="dialog-footer">
  5106. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  5107. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  5108. </span>
  5109. </el-dialog>
  5110. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  5111. closePan(69);
  5112. }
  5113. " class="dialog_diy fullStyle fullStyle1">
  5114. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  5115. <span slot="footer" class="dialog-footer">
  5116. <el-button @click="englishDialogVisible = false">取 消</el-button>
  5117. <el-button type="primary" @click="addEnglish">确 定</el-button>
  5118. </span>
  5119. </el-dialog>
  5120. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  5121. :before-close="handleClose" class="dialog_diy">
  5122. <div class="template_box">
  5123. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  5124. :class="{ wordTeacherA: ctJson.id == aa.id }">
  5125. <div class="wordPic">
  5126. <img src="../../../assets/icon/new/course_template.png" alt />
  5127. </div>
  5128. <el-tooltip effect="dark" :content="aa.title" placement="top">
  5129. <div style="
  5130. margin-top: 10px;
  5131. line-height: 19px;
  5132. overflow: hidden;
  5133. text-overflow: ellipsis;
  5134. white-space: nowrap;
  5135. padding: 0 10px;
  5136. box-sizing: border-box;
  5137. width: 100%;
  5138. ">
  5139. {{ aa.title }}
  5140. </div>
  5141. </el-tooltip>
  5142. </div>
  5143. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  5144. :class="{ wordTeacherA: ctJson.id == 1 }">
  5145. <div class="wordPic">
  5146. <img src="../../../assets/icon/new/course_template.png" alt />
  5147. </div>
  5148. <div style="
  5149. margin-top: 10px;
  5150. line-height: 19px;
  5151. overflow: hidden;
  5152. text-overflow: ellipsis;
  5153. white-space: nowrap;
  5154. padding: 0 20px;
  5155. ">
  5156. 简易模板
  5157. </div>
  5158. </div>
  5159. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  5160. :class="{ wordTeacherA: ctJson.id == 2 }">
  5161. <div class="wordPic">
  5162. <img src="../../../assets/icon/new/course_template.png" alt />
  5163. </div>
  5164. <div style="
  5165. margin-top: 10px;
  5166. line-height: 19px;
  5167. overflow: hidden;
  5168. text-overflow: ellipsis;
  5169. white-space: nowrap;
  5170. padding: 0 20px;
  5171. ">
  5172. 智能粘贴模式
  5173. </div>
  5174. </div>
  5175. </div>
  5176. <span slot="footer" class="dialog-footer">
  5177. <el-button @click="templateDialog = false">取 消</el-button>
  5178. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  5179. </span>
  5180. </el-dialog>
  5181. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  5182. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  5183. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  5184. <div class="change_stageBox">
  5185. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  5186. <div class="nt_taskBox">
  5187. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  5188. <div class="nt_taskName">
  5189. <el-tooltip effect="light" :content="t.dyName" placement="top">
  5190. <span>{{ t.dyName }}</span>
  5191. </el-tooltip>
  5192. </div>
  5193. </div>
  5194. <div class="moveBtn" v-if="unitJson3.length > 1">
  5195. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  5196. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  5197. </div>
  5198. </div>
  5199. </div>
  5200. <span slot="footer" class="dialog-footer">
  5201. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  5202. <el-button type="primary" @click="updateChange">确定</el-button>
  5203. </span>
  5204. </el-dialog>
  5205. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  5206. :before-close="handleClose" class="dialog_diy">
  5207. <div class="addTypeChoose" style="justify-content: center">
  5208. <div style="min-width: 100px">模板名称:</div>
  5209. <el-input v-model="templateName" style="width: 200px"></el-input>
  5210. </div>
  5211. <div class="addTypeBox">
  5212. <div class="addTypeChoose">
  5213. <div style="min-width: 100px">选择一级分类:</div>
  5214. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  5215. style="width: 200px">
  5216. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  5217. </el-option>
  5218. </el-select>
  5219. </div>
  5220. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  5221. <div style="min-width: 100px">选择二级分类:</div>
  5222. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  5223. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  5224. </el-option>
  5225. </el-select>
  5226. </div>
  5227. </div>
  5228. <span slot="footer" class="dialog-footer">
  5229. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  5230. <el-button @click="close()">关 闭</el-button>
  5231. </span>
  5232. </el-dialog>
  5233. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  5234. </evaBox>
  5235. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  5236. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  5237. <aiDialog :dialogVisibleAiD.sync="dialogVisibleAiD" :aiText="aiText" @aiConfirm="aiConfirm" :clickType="clickType">
  5238. </aiDialog>
  5239. <tipsDialog :dialogVisibleTips.sync="dialogVisibleTips" :tipsJson.sync="tipsJson" :aiJson="aiJson" :userid="userid"
  5240. @retrunCourse="retrunCourse" :templateid="templateid"></tipsDialog>
  5241. <aiCreateDialog :dialogVisibleAiCreate.sync="dialogVisibleAiCreate" :courseName="courseName" @createAiPpt="createAiPpt" :infoData="infoData" :courseTypeId="courseTypeId" :CourseTypeJson="CourseTypeJson"></aiCreateDialog>
  5242. <aiCreateVideoDialog :dialogVisibleAiCreateVideo.sync="dialogVisibleAiCreateVideo" :courseName="courseName" @createAiVideo="createAiVideo"></aiCreateVideoDialog>
  5243. </div>
  5244. </template>
  5245. <script>
  5246. import "../../../common/aws-sdk-2.235.1.min.js";
  5247. import { tools as toolsData } from "../../../common/tools.js";
  5248. // import "../../../common/aws-sdk-2.99.0.min.js";
  5249. import $ from "jquery";
  5250. import EditorBar from "../../../components/tools/wangEnduit";
  5251. import Table from "../../../components/tools/table";
  5252. import Mind from "../../tools/jsmind2";
  5253. import Time from "../../tools/time.vue";
  5254. import Sunburst from "../../tools/sunburst";
  5255. import SeeBoard from "../../tools/seeBoard";
  5256. import weilaiData from "../components/weilai.js";
  5257. import sourceDialog from "../teacherSource/dialog.vue";
  5258. import interVideo from "../interVideo/index.vue";
  5259. import englishRight from "../components/englishRight.vue";
  5260. import evaBox from "../evaBox/index.vue";
  5261. import EnglishVoice from "../EnglishVoice/index.vue";
  5262. import aiBox from './aiBox.vue'
  5263. import aiDialog from './aiDialog'
  5264. import aiTips from './aiTips.vue'
  5265. import tipsDialog from './tipsDialog.vue'
  5266. import { v4 as uuidv4 } from "uuid";
  5267. import MarkdownIt from "markdown-it";
  5268. import aiCreateDialog from './aiCreateDialog.vue'
  5269. import aiCreateVideoDialog from './aiCreateVideoDialog.vue'
  5270. var OpenCC = require("opencc-js");
  5271. let converter = OpenCC.Converter({
  5272. from:'hk',
  5273. to:'cn'
  5274. })
  5275. export default {
  5276. components: {
  5277. EditorBar,
  5278. Mind,
  5279. Time,
  5280. Sunburst,
  5281. SeeBoard,
  5282. Table,
  5283. sourceDialog,
  5284. interVideo,
  5285. englishRight,
  5286. evaBox,
  5287. EnglishVoice,
  5288. aiBox,
  5289. aiDialog,
  5290. aiTips,
  5291. tipsDialog,
  5292. aiCreateDialog,
  5293. aiCreateVideoDialog
  5294. },
  5295. data() {
  5296. return {
  5297. checkAll: false,
  5298. checkAll2: false,
  5299. chooseType: 1,
  5300. checkedCities: [],
  5301. isIndeterminate: true,
  5302. isIndeterminate2: true,
  5303. isSysPic: false,
  5304. isSysPic2: false,
  5305. steps: 1,
  5306. stepsNav: 1,
  5307. nbOrder: 0,
  5308. courseId: "",
  5309. chapToolsType: 0,
  5310. chapTools: [
  5311. {
  5312. tools: [],
  5313. toolDetail: "",
  5314. },
  5315. ],
  5316. line: "",
  5317. lineTitle: "",
  5318. sysPic: [],
  5319. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5320. sentenceList2: [],
  5321. isPushTitleList: [],
  5322. lineCount: 0,
  5323. lineType: 0,
  5324. chapCount: 0,
  5325. courseName: "",
  5326. isTeacherSee: false,
  5327. courseText: "",
  5328. textLoading: false,
  5329. ttextLoading: false,
  5330. courseText2: "",
  5331. preTime: 0,
  5332. formLabelWidth: "100px",
  5333. choosePicVisible: false,
  5334. sysPicVisible: false,
  5335. sysPicVisible2: false,
  5336. uploadLoading1: false,
  5337. noneBtnImg: false,
  5338. updateBoolean2: false,
  5339. unitIndex: 0,
  5340. taskCount: 0,
  5341. dialogVisible: false,
  5342. dialogVisible1: false,
  5343. dialogVisible2: false,
  5344. dialogVisible3: false,
  5345. dialogVisible4: false,
  5346. dialogVisible5: false,
  5347. dialogVisible6: false,
  5348. dialogVisible7: false,
  5349. dialogVisible8: false,
  5350. dialogVisible9: false,
  5351. dialogVisibleClass: false,
  5352. dialogVisibleMember: false,
  5353. dialogVisibleMp3: false,
  5354. dialogVisibleSelect: false,
  5355. dialogVisibleSentence: false,
  5356. dialogVisibleRate: false,
  5357. dialogVisibleChoice: false,
  5358. dialogVisiblemb: false,
  5359. dialogVisibleInvite: false,
  5360. dialogVisibleSource: false,
  5361. dialogVisibleVideo: false,
  5362. dialogVisibleStageChange: false,
  5363. dialogVisibleupdataVideoT: false,
  5364. englishDialogVisible: false,
  5365. templateDialog: false,
  5366. ctJson: {},
  5367. isClickColor: 1,
  5368. toolIndexType: "",
  5369. publicTool: 0,
  5370. searchPeople: "",
  5371. searchTN: "",
  5372. collid: '',
  5373. CollLoading: false,
  5374. userid: this.$route.query.userid,
  5375. oid: this.$route.query.oid,
  5376. org: this.$route.query.org,
  5377. role: this.$route.query.role,
  5378. aiId: this.$route.query.aiId != undefined ? this.$route.query.aiId : "",
  5379. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5380. dialogVisibleTable: false,
  5381. dialogVisibleWord: false,
  5382. tableJson: { text: "" },
  5383. wordJson: { text: "" },
  5384. dialogVisibleMoreUpload: false,
  5385. dialogVisiblePreTime: false,
  5386. uploadJson: [],
  5387. classJuri: [],
  5388. gradeList: [],
  5389. cover: [], //课程封面
  5390. myWord: [],
  5391. evaJuri: [],
  5392. evalua: "",
  5393. targetArray: [],
  5394. eTitle: "",
  5395. eJson: {},
  5396. fid: "", //一级
  5397. sid: "", //二级
  5398. tid: "", //二级
  5399. typeMode: 1,
  5400. eJSONNum: 0,
  5401. data: {
  5402. meta: {
  5403. name: "example",
  5404. author: "dd@163.com",
  5405. version: "0.2",
  5406. },
  5407. format: "node_array",
  5408. data: [{ id: "root", isroot: true, topic: "" }],
  5409. },
  5410. askJson: {
  5411. askCount: 1,
  5412. askTitle: "",
  5413. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5414. },
  5415. askJson2: {},
  5416. testJson: {},
  5417. testJson2: {},
  5418. selectJson: {},
  5419. selectJson2: {},
  5420. rateJson: [],
  5421. unitJson2: [],
  5422. unitJson3: [],
  5423. unitJson: [
  5424. {
  5425. dyName: "", //单元标题
  5426. chapterInfo: [
  5427. {
  5428. isread: false,
  5429. chapterid: this.guid(),
  5430. title: "",
  5431. courseName: "",
  5432. taskJson: [
  5433. {
  5434. task: "",
  5435. taskDetail: "",
  5436. chapterData: [],
  5437. toolText: "",
  5438. toolChoose: [
  5439. {
  5440. tool: [],
  5441. toolDetail: "",
  5442. toolType: 0,
  5443. askCount: 1,
  5444. askTitle: "",
  5445. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5446. },
  5447. ],
  5448. isShowTools: false,
  5449. askCount: 1,
  5450. isFold: 1,
  5451. askTitle: "",
  5452. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5453. checkJson: [{ checkCount: [], checkPerent: [] }],
  5454. homeworkList: [],
  5455. },
  5456. ],
  5457. itemCount: 1,
  5458. fileList1: [],
  5459. video: [],
  5460. testData: [],
  5461. pData: [],
  5462. templateArray: [],
  5463. },
  5464. ],
  5465. },
  5466. ],
  5467. templateArray: [],
  5468. studentJuri: [],
  5469. teacherJuri: [],
  5470. CollaborativeTeaList: [],
  5471. checkboxList: [],
  5472. checkboxList2: [],
  5473. checkboxList3: [],
  5474. classSearch: "",
  5475. gradeId: "",
  5476. number: "",
  5477. tTitle: "",
  5478. tdetail: "",
  5479. templateC: {},
  5480. AttText: {},
  5481. AttTextType: 0,
  5482. AttTextIndex: 0,
  5483. cTemplate: "",
  5484. CourseType: [],
  5485. CourseType1: [],
  5486. CourseType2: [],
  5487. CourseTypeJson: {},
  5488. CourseTypeJson1: {},
  5489. courseTypeId: [],
  5490. courseTypeId1: [],
  5491. courseTypeSon: [],
  5492. clearArray: [],
  5493. pTypeCheck: [],
  5494. pTypeCheckName: [],
  5495. loading: false,
  5496. toolType: 0,
  5497. inputShow: true,
  5498. inputShow2: true,
  5499. toolIndex: 0,
  5500. cidType: 0,
  5501. answerQ: "",
  5502. answerQ2: "",
  5503. grade: [],
  5504. grade2: [],
  5505. courseUserid: "",
  5506. timer: null,
  5507. timer2: null,
  5508. pasteTimer: null,
  5509. checkId: "",
  5510. isDelete: 1,
  5511. addindex: 0,
  5512. selectSteps: 1,
  5513. groupJson: {},
  5514. dialogVisibleGroup: false,
  5515. rightBoxHeight: 0,
  5516. ManAarray: [],
  5517. checkBoolean: false,
  5518. inviteCode: [],
  5519. inviteId: "",
  5520. icode: "",
  5521. easyArray: [2, 4],
  5522. sourceData: {},
  5523. updateSourcePan: false,
  5524. videoJson: {},
  5525. isBtnDisplay: false,
  5526. isStepDisplay: false,
  5527. isPasteStage: false,
  5528. isPasteTask: false,
  5529. isPasteChoice: false,
  5530. imageList: [],
  5531. imageloading: false,
  5532. imageloading2: false,
  5533. searchImageValue: "",
  5534. ppage: 1,
  5535. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  5536. oldIndex: 0,
  5537. dragType: "",
  5538. oldUnitIndex: 0,
  5539. oldData: null,
  5540. newIndex: "",
  5541. englishList: {},
  5542. typeIndex: "",
  5543. courseState: 4,
  5544. taskJSONa: [
  5545. {
  5546. task: "",
  5547. taskDetail: "",
  5548. chapterData: [],
  5549. toolText: "",
  5550. toolChoose: [
  5551. {
  5552. tool: [],
  5553. toolDetail: "",
  5554. toolType: 0,
  5555. askCount: 1,
  5556. askTitle: "",
  5557. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5558. },
  5559. ],
  5560. isShowTools: false,
  5561. askCount: 1,
  5562. isFold: 1,
  5563. askTitle: "",
  5564. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5565. checkJson: [{ checkCount: [], checkPerent: [] }],
  5566. homeworkList: [],
  5567. },
  5568. ],
  5569. checkUnitIndex: 0,
  5570. isdrag: "",
  5571. evaIndex: "",
  5572. evatIndex: "",
  5573. evaBoxDialog: false,
  5574. EnglishVoiceDialog: false,
  5575. englishVoiceJson: {},
  5576. cetIndex: "",
  5577. cettIndex: "",
  5578. cetBoxDialog: false,
  5579. templateName: "",
  5580. setTypeJson: {
  5581. one: "",
  5582. two: "",
  5583. },
  5584. twoJson: [],
  5585. oneJson: [],
  5586. updateKey: 1,
  5587. isOutline: false,
  5588. isOutline2: false,
  5589. infoData: [],
  5590. infoproVisible: false,
  5591. infoisFinishSize: 0,
  5592. infoisAllSize: 0,
  5593. infoprogress: 0,
  5594. taskDetailLoading: [],
  5595. ttaskDetailLoading: [],
  5596. taskDetailLoading2: [],
  5597. ttaskDetailLoading2: [],
  5598. taskDetailLoading3: [],
  5599. ttaskDetailLoading3: [],
  5600. taskDetailLoading4: [],
  5601. taskDetailLoading5: [],
  5602. ttaskDetailLoading5: [],
  5603. dArray: {},
  5604. dialogVisibleAiD: false,
  5605. aitype: "",
  5606. aiJson: {
  5607. "aiDetail": "请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  5608. "aiOutline": "请为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>学生的项目式学习课程设计序列教学活动(需要每个任务都需要至少100个token的详细描述)。你需要参考课程简要描述<课程简要描述>,并产出每个教学任务的设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。",
  5609. "aiTask": "请根据<教学任务教案>。",
  5610. "aiDetail1": "请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  5611. "aiDetail2": "请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  5612. "aiDetail3": "请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  5613. "aiDetail4": "请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  5614. "aiTeacher": "请根据<任务大纲>为每个教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含实例答案。",
  5615. "teacherDetail": "请根据<任务大纲>,以及# 其他教学任务教案,为本教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动),相关知识点的讲解,练习(练习需要包含实例答案。注意,你绝对不能重复其他教学任务教案中的内容"
  5616. },
  5617. aiText: "",
  5618. aiCallBack: "",
  5619. aiIndex: "",
  5620. clickType: 1,
  5621. promptShow: false,
  5622. templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : "",
  5623. istemplate: this.$route.query.istemplate != undefined && this.$route.query.istemplate ? 1 : 2,
  5624. dialogVisibleTips: false,
  5625. tipsJson: {},
  5626. cpote:{
  5627. cpote1: '',
  5628. cpote2: '',
  5629. cpote3: '',
  5630. cpote4: '',
  5631. },
  5632. cpoteLoading:{
  5633. cpote1: false,
  5634. cpote2: false,
  5635. cpote3: false,
  5636. cpote4: false,
  5637. },
  5638. cpotetLoading:{
  5639. cpote1: false,
  5640. cpote2: false,
  5641. cpote3: false,
  5642. cpote4: false,
  5643. },
  5644. cpoteType: 0,
  5645. dialogVisibleAiCreate: false,
  5646. dialogVisibleAiCreateVideo: false,
  5647. teacherText: [],
  5648. isFileSearch: true,
  5649. fileIds: ['file-A81p1q02HHpJhus4nYYwtAmM'],
  5650. templatePan: ['0e7966d6-1e49-11ef-bee5-005056b86db5','60d153e3-1e49-11ef-bee5-005056b86db5','7f3e28b7-1e66-11ef-bee5-005056b86db5','9dd4bb76-1e48-11ef-bee5-005056b86db5','ab317f23-1e66-11ef-bee5-005056b86db5'],
  5651. courseJie:1,
  5652. courseTime:45,
  5653. };
  5654. },
  5655. directives: {
  5656. autoHeight: {
  5657. update(el, binding) {
  5658. const { value } = binding;
  5659. if (value && typeof value === "number") {
  5660. el.style.height = `${value}px`;
  5661. } else {
  5662. el.style.height = "auto";
  5663. }
  5664. },
  5665. componentUpdated(el) {
  5666. el.style.height = `${el.scrollHeight + 25}px`;
  5667. },
  5668. },
  5669. },
  5670. computed: {
  5671. // rightBoxHeight: function () {
  5672. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5673. // },
  5674. offsetLetfPx: function () {
  5675. //addnum可以直接在模板语法里面用,相当于data内的值
  5676. return (
  5677. $(".cru_select")[this.unitIndex] &&
  5678. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5679. );
  5680. },
  5681. getMan2() {
  5682. return function (people) {
  5683. let _people = people;
  5684. let _people2 = "";
  5685. if (this.ManAarray.length) {
  5686. for (var i = 0; i < this.ManAarray.length; i++) {
  5687. if (this.ManAarray[i].userid == people) {
  5688. _people2 = this.ManAarray[i].name;
  5689. break;
  5690. }
  5691. }
  5692. }
  5693. if (people == this.courseUserid) {
  5694. return "";
  5695. }
  5696. return this.ManAarray.length ? _people2 : "";
  5697. };
  5698. },
  5699. getListMan2() {
  5700. return function (list) {
  5701. let _people2 = [];
  5702. if (this.ManAarray.length) {
  5703. for (var j = 0; j < list.length; j++) {
  5704. let people = list[j];
  5705. for (var i = 0; i < this.ManAarray.length; i++) {
  5706. if (
  5707. this.ManAarray[i].userid == people &&
  5708. people != this.courseUserid
  5709. ) {
  5710. _people2.push(this.ManAarray[i].name);
  5711. break;
  5712. }
  5713. }
  5714. }
  5715. }
  5716. return this.ManAarray.length ? _people2.join("、") : "";
  5717. };
  5718. },
  5719. isInvite() {
  5720. return function (cid) {
  5721. let array = [];
  5722. for (var i = 0; i < this.inviteCode.length; i++) {
  5723. array.push(this.inviteCode[i].cid);
  5724. }
  5725. return array.indexOf(cid) != -1;
  5726. };
  5727. },
  5728. getInviteCodeC() {
  5729. return function (cid) {
  5730. let array = [];
  5731. for (var i = 0; i < this.inviteCode.length; i++) {
  5732. array.push(this.inviteCode[i].cid);
  5733. }
  5734. return this.inviteCode[array.indexOf(cid)].ic;
  5735. };
  5736. },
  5737. getClassC() {
  5738. return function (c) {
  5739. let _c2 = "";
  5740. if (this.grade.length) {
  5741. for (var i = 0; i < this.grade.length; i++) {
  5742. if (this.grade[i].id == c) {
  5743. _c2 = this.grade[i].name;
  5744. break;
  5745. }
  5746. }
  5747. }
  5748. return this.grade.length ? _c2 : "";
  5749. };
  5750. },
  5751. getListClassC() {
  5752. return function (list) {
  5753. let _c2 = [];
  5754. if (this.grade.length) {
  5755. for (var j = 0; j < list.length; j++) {
  5756. let c = list[j];
  5757. for (var i = 0; i < this.grade.length; i++) {
  5758. if (this.grade[i].id == c) {
  5759. _c2.push(this.grade[i].name);
  5760. break;
  5761. }
  5762. }
  5763. }
  5764. }
  5765. return this.grade.length ? _c2.join("、") : "";
  5766. };
  5767. },
  5768. MarkdownT() {
  5769. return function (c) {
  5770. let md = new MarkdownIt();
  5771. return c
  5772. ? md.render(c) : "";
  5773. };
  5774. },
  5775. },
  5776. watch: {
  5777. unitIndex(newValue, oldValue) {
  5778. // return;
  5779. if (this.isDelete == 2) {
  5780. this.isDelete = 1;
  5781. return;
  5782. }
  5783. if (this.cid != "") {
  5784. let _unitIndex = oldValue;
  5785. if (
  5786. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5787. JSON.stringify(this.unitJson[_unitIndex])
  5788. ) {
  5789. this.$refs.rightboxR.scrollTop = 0;
  5790. return;
  5791. }
  5792. let cPan = 1;
  5793. for (
  5794. var j = 0;
  5795. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5796. j++
  5797. ) {
  5798. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5799. j
  5800. ].proVisible = false;
  5801. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5802. j
  5803. ].proVisible2 = false;
  5804. if (
  5805. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5806. .length > 1
  5807. ) {
  5808. for (
  5809. var z = 0;
  5810. z <
  5811. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5812. .length;
  5813. z++
  5814. ) {
  5815. if (
  5816. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5817. .toolChoose[z].tool.length
  5818. ) {
  5819. this.$message.error("请把工具添加完整");
  5820. cPan = 2;
  5821. break;
  5822. }
  5823. }
  5824. }
  5825. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5826. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5827. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5828. (ele) => {
  5829. return ele.value != "";
  5830. }
  5831. );
  5832. }
  5833. }
  5834. if (cPan == 2) {
  5835. this.unitIndex = oldValue;
  5836. return;
  5837. }
  5838. for (var i = 0; i < this.unitJson.length; i++) {
  5839. if (this.addindex != i) {
  5840. delete this.unitJson[i].isUpdate;
  5841. }
  5842. }
  5843. this.$refs.rightboxR.scrollTop = 0;
  5844. this.addindex = -1;
  5845. let params = [
  5846. {
  5847. cid: this.cid,
  5848. chapters: JSON.stringify(this.unitJson),
  5849. uid: this.userid,
  5850. unitIndex: _unitIndex,
  5851. },
  5852. ];
  5853. this.ajax
  5854. .post(this.$store.state.api + "updateWorkNew4", params)
  5855. .then((res) => {
  5856. // this.$message({
  5857. // message: "修改成功",
  5858. // type: "success",
  5859. // });
  5860. // this.courseId = this.cid;
  5861. this.addtips()
  5862. })
  5863. .catch((err) => {
  5864. this.$message.error("网络不佳");
  5865. console.error(err);
  5866. });
  5867. }
  5868. },
  5869. steps(newValue, old) {
  5870. if (newValue == 4) {
  5871. let cPan = 1;
  5872. for (var i = 0; i < this.unitJson.length; i++) {
  5873. for (
  5874. var j = 0;
  5875. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5876. j++
  5877. ) {
  5878. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5879. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5880. if (
  5881. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5882. ) {
  5883. for (
  5884. var z = 0;
  5885. z <
  5886. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5887. z++
  5888. ) {
  5889. if (
  5890. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5891. .tool.length
  5892. ) {
  5893. this.$message.error("请把工具添加完整");
  5894. cPan = 2;
  5895. break;
  5896. }
  5897. }
  5898. }
  5899. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5900. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5901. i
  5902. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5903. return ele.value != "";
  5904. });
  5905. }
  5906. }
  5907. }
  5908. this.inputShow = true;
  5909. if (cPan == 2) {
  5910. this.steps = old;
  5911. return;
  5912. }
  5913. this.goTo(
  5914. "/course?userid=" +
  5915. this.userid +
  5916. "&oid=" +
  5917. this.oid +
  5918. "&org=" +
  5919. this.org +
  5920. "&role=" +
  5921. this.role
  5922. );
  5923. }
  5924. },
  5925. },
  5926. methods: {
  5927. tableRowClassName({ row, rowIndex }) {
  5928. if ((rowIndex + 1) % 2 === 0) {
  5929. return "even_row";
  5930. } else {
  5931. return "";
  5932. }
  5933. },
  5934. close() {
  5935. this.cetIndex = "";
  5936. this.cettIndex = "";
  5937. this.templateName = "";
  5938. this.cetBoxDialog = false;
  5939. },
  5940. openAI() {
  5941. top.postMessage({ tools: "64" }, "*");
  5942. },
  5943. setMan() {
  5944. // let teacherJuri = this.teacherJuri2;
  5945. this.ManAarray = [];
  5946. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5947. if (_user.indexOf(this.userid) == -1) {
  5948. _user.push(this.userid);
  5949. }
  5950. if (_user.indexOf(this.courseUserid) == -1) {
  5951. _user.push(this.courseUserid);
  5952. }
  5953. let params = {
  5954. uid: _user.join(","),
  5955. };
  5956. this.ajax
  5957. .get(this.$store.state.api + "getAllUserById", params)
  5958. .then((res) => {
  5959. let teacherJuri = res.data[0];
  5960. this.ManAarray = teacherJuri;
  5961. })
  5962. .catch((err) => {
  5963. console.error(err);
  5964. });
  5965. },
  5966. previewImg(url) {
  5967. this.$hevueImgPreview(url);
  5968. },
  5969. btnDisplay(bool) {
  5970. this.isBtnDisplay = bool;
  5971. },
  5972. stepDisplay(bool) {
  5973. this.isStepDisplay = bool;
  5974. },
  5975. scrollChange() {
  5976. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5977. },
  5978. addHw(e) {
  5979. var el = e.currentTarget;
  5980. el.getElementsByTagName("input")[0].click();
  5981. },
  5982. change(val) {
  5983. if (this.dialogVisible1) {
  5984. this.tdetail = val;
  5985. } else if (this.dialogVisible6) {
  5986. this.AttText.text = val;
  5987. } else if (this.dialogVisible2) {
  5988. this.cTemplate = val;
  5989. } else if (this.dialogVisibleTable) {
  5990. this.tableJson.text = val;
  5991. }
  5992. this.$forceUpdate();
  5993. console.log(val);
  5994. },
  5995. change2(val) {
  5996. console.log(val);
  5997. this.$forceUpdate();
  5998. },
  5999. handleClose(done) {
  6000. done();
  6001. },
  6002. closePan(tool) {
  6003. if (tool == 15) {
  6004. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  6005. this.dialogVisible8 = false;
  6006. } else {
  6007. this.closeConfirm(tool);
  6008. }
  6009. } else if (tool == 4) {
  6010. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  6011. this.dialogVisible5 = false;
  6012. } else {
  6013. this.closeConfirm(tool);
  6014. }
  6015. } else if (tool == 45) {
  6016. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  6017. this.dialogVisibleChoice = false;
  6018. } else {
  6019. this.closeConfirm(tool);
  6020. }
  6021. } else if (tool == 41) {
  6022. if (
  6023. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  6024. ) {
  6025. this.dialogVisibleSelect = false;
  6026. } else {
  6027. this.closeConfirm(tool);
  6028. }
  6029. } else if (tool == 47) {
  6030. if (
  6031. JSON.stringify(this.sentenceList) ==
  6032. JSON.stringify(this.sentenceList2)
  6033. ) {
  6034. this.dialogVisibleSentence = false;
  6035. } else {
  6036. this.closeConfirm(tool);
  6037. }
  6038. } else if (tool == 69) {
  6039. if (
  6040. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  6041. ) {
  6042. this.englishDialogVisible = false;
  6043. } else {
  6044. this.closeConfirm(tool);
  6045. }
  6046. }
  6047. },
  6048. closeConfirm(tool) {
  6049. this.$confirm("是否保存已编辑内容?", "提示", {
  6050. confirmButtonText: "保存",
  6051. cancelButtonText: "不保存",
  6052. type: "warning",
  6053. })
  6054. .then(() => {
  6055. if (tool == 15) {
  6056. this.addAnswer();
  6057. } else if (tool == 4) {
  6058. this.addAsk();
  6059. } else if (tool == 45) {
  6060. this.addTest();
  6061. } else if (tool == 41) {
  6062. this.addSelectAnswer();
  6063. } else if (tool == 47) {
  6064. this.addSentenceTool();
  6065. } else if (tool == 69) {
  6066. this.addEnglish();
  6067. }
  6068. })
  6069. .catch(() => {
  6070. if (tool == 15) {
  6071. this.dialogVisible8 = false;
  6072. } else if (tool == 4) {
  6073. this.dialogVisible5 = false;
  6074. } else if (tool == 45) {
  6075. this.dialogVisibleChoice = false;
  6076. } else if (tool == 41) {
  6077. this.dialogVisibleSelect = false;
  6078. } else if (tool == 47) {
  6079. this.dialogVisibleSentence = false;
  6080. } else if (tool == 69) {
  6081. this.englishDialogVisible = false;
  6082. }
  6083. });
  6084. },
  6085. addEnglish(jsonType) {
  6086. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  6087. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  6088. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  6089. if (
  6090. this.englishList.engTitle == "" ||
  6091. this.englishList.englishText == ""
  6092. ) {
  6093. this.$message.error("请将内容填写完整!");
  6094. return;
  6095. }
  6096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6097. this.taskCount
  6098. ].toolChoose[this.toolIndex].englishList = this.englishList;
  6099. this.englishList = {};
  6100. if (jsonType && jsonType == 1) {
  6101. this.englishDialogVisible = true;
  6102. } else {
  6103. this.englishDialogVisible = false;
  6104. }
  6105. if (
  6106. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6107. .toolChoose[this.toolIndex].tool != 69
  6108. ) {
  6109. this.addTools(69, this.taskCount, this.toolIndex);
  6110. }
  6111. },
  6112. imgChange2(i, j) {
  6113. var _tmp = this.testJson.testJson[i].checkList[j];
  6114. this.noneBtnImg = _tmp.length >= 1;
  6115. },
  6116. imgChange3(i) {
  6117. var _tmp = this.testJson.testJson[i];
  6118. this.noneBtnImg = _tmp.length >= 1;
  6119. },
  6120. imgChange1(file, fileList, type, itemTaskIndex) {
  6121. if (type == 1) {
  6122. var _tmp = this.cover;
  6123. } else if (
  6124. type == 2 ||
  6125. type == 3 ||
  6126. type == 6 ||
  6127. type == 7 ||
  6128. type == 8
  6129. ) {
  6130. var _tmp =
  6131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6132. .chapterData;
  6133. } else if (type == 4) {
  6134. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  6135. } else {
  6136. var _tmp =
  6137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6138. .homeworkList;
  6139. }
  6140. this.noneBtnImg = _tmp.length >= 1;
  6141. },
  6142. goTo(path) {
  6143. this.$router.push(path);
  6144. },
  6145. guid() {
  6146. var _num,
  6147. i,
  6148. _guid = "";
  6149. for (i = 0; i < 32; i++) {
  6150. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6151. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6152. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6153. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6154. _guid += "-";
  6155. }
  6156. }
  6157. return _guid;
  6158. },
  6159. retrunCourse() {
  6160. if(this.istemplate == 1){
  6161. this.goTo(
  6162. "/course?userid=" +
  6163. this.userid +
  6164. "&oid=" +
  6165. this.oid +
  6166. "&org=" +
  6167. this.org +
  6168. "&role=" +
  6169. this.role
  6170. );
  6171. return
  6172. }
  6173. this.$confirm("是否保存已编辑内容?", "提示", {
  6174. confirmButtonText: "保存",
  6175. cancelButtonText: "不保存",
  6176. distinguishCancelAndClose: true,
  6177. type: "warning",
  6178. })
  6179. .then(() => {
  6180. if (this.cid == "" || this.cid == undefined) {
  6181. if (this.courseName == "") {
  6182. this.$message.error("请补充填写课程名称");
  6183. return;
  6184. } else {
  6185. this.addWork();
  6186. }
  6187. this.steps = 4;
  6188. } else {
  6189. if (this.courseName == "") {
  6190. this.$message.error("请补充填写课程名称");
  6191. return;
  6192. } else {
  6193. if (this.userid != this.courseUserid && this.role != "1") {
  6194. this.updateWork2();
  6195. } else {
  6196. this.updateWork();
  6197. }
  6198. this.steps = 4;
  6199. }
  6200. }
  6201. })
  6202. .catch((v) => {
  6203. console.log(v);
  6204. if (v == "cancel") {
  6205. this.goTo(
  6206. "/course?userid=" +
  6207. this.userid +
  6208. "&oid=" +
  6209. this.oid +
  6210. "&org=" +
  6211. this.org +
  6212. "&role=" +
  6213. this.role
  6214. );
  6215. }
  6216. });
  6217. },
  6218. lastSteps() {
  6219. if (this.steps == 4) {
  6220. this.goTo(
  6221. "/course?userid=" +
  6222. this.userid +
  6223. "&oid=" +
  6224. this.oid +
  6225. "&org=" +
  6226. this.org +
  6227. "&role=" +
  6228. this.role
  6229. );
  6230. } else {
  6231. // if (this.cidType == 0) {
  6232. // this.steps--;
  6233. // if (this.steps == 1) {
  6234. // setTimeout(() => {
  6235. // this.checkEva(this.checkId);
  6236. // setTimeout(() => {
  6237. // this.checkEva(this.checkId);
  6238. // }, 100);
  6239. // }, 100);
  6240. // }
  6241. // } else {
  6242. if (this.steps == 3) {
  6243. this.steps = 1;
  6244. setTimeout(() => {
  6245. this.checkEva(this.checkId);
  6246. setTimeout(() => {
  6247. this.checkEva(this.checkId);
  6248. }, 100);
  6249. }, 100);
  6250. }
  6251. // }
  6252. }
  6253. },
  6254. navSteps(s) {
  6255. if (this.courseName == "") {
  6256. this.$message.error("请补充填写课程名称");
  6257. return;
  6258. }
  6259. if (this.cidType == 0) {
  6260. if (this.steps == 1) {
  6261. if (this.cid == "" || this.cid == undefined) {
  6262. this.addWork();
  6263. } else {
  6264. if (this.userid != this.courseUserid && this.role != "1") {
  6265. this.updateWork2();
  6266. } else {
  6267. this.updateWork();
  6268. }
  6269. }
  6270. }
  6271. if (s == 1) {
  6272. this.steps = 1;
  6273. setTimeout(() => {
  6274. this.checkEva(this.checkId);
  6275. setTimeout(() => {
  6276. this.checkEva(this.checkId);
  6277. }, 100);
  6278. }, 100);
  6279. }
  6280. if (s == 2) {
  6281. this.steps = 2;
  6282. }
  6283. if (s == 3) {
  6284. this.cTemplate = this.templateC.content;
  6285. this.dialogVisible2 = false;
  6286. this.steps = 3;
  6287. this.isClickColor = 1;
  6288. this.unitJson[
  6289. this.unitIndex
  6290. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6291. this.$forceUpdate();
  6292. setTimeout(() => {
  6293. this.checkEva(this.checkId);
  6294. setTimeout(() => {
  6295. this.checkEva(this.checkId);
  6296. }, 100);
  6297. }, 1000);
  6298. }
  6299. } else {
  6300. if (this.steps == 1) {
  6301. if (this.cid == "" || this.cid == undefined) {
  6302. this.addWork();
  6303. } else {
  6304. if (this.userid != this.courseUserid && this.role != "1") {
  6305. this.updateWork2();
  6306. } else {
  6307. this.updateWork();
  6308. }
  6309. }
  6310. }
  6311. if (s == 1) {
  6312. this.steps = 1;
  6313. setTimeout(() => {
  6314. this.checkEva(this.checkId);
  6315. setTimeout(() => {
  6316. this.checkEva(this.checkId);
  6317. }, 100);
  6318. }, 100);
  6319. }
  6320. if (s == 3) {
  6321. this.cTemplate = this.templateC.content;
  6322. this.dialogVisible2 = false;
  6323. this.steps = 3;
  6324. this.isClickColor = 1;
  6325. this.unitJson[
  6326. this.unitIndex
  6327. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6328. this.$forceUpdate();
  6329. setTimeout(() => {
  6330. this.checkEva(this.checkId);
  6331. setTimeout(() => {
  6332. this.checkEva(this.checkId);
  6333. }, 100);
  6334. }, 1000);
  6335. }
  6336. }
  6337. this.$refs.stepBox.scrollTop = 0;
  6338. },
  6339. nextSteps(clickType) {
  6340. // if (this.cidType == 1) {
  6341. if (this.steps == 1) {
  6342. if (this.courseName != "") {
  6343. if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
  6344. this.openAiDialog(clickType, 'aiOutline')
  6345. return;
  6346. }
  6347. if(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && this.cpoteType != 4){
  6348. let _type = ''
  6349. if(this.cpoteType == 0){
  6350. _type = 'aiCpote1'
  6351. }else if(this.cpoteType == 1){
  6352. _type = 'aiCpote2'
  6353. }else if(this.cpoteType == 2){
  6354. _type = 'aiCpote3'
  6355. }else if(this.cpoteType == 3){
  6356. _type = 'aiCpote4'
  6357. }
  6358. this.cpoteType++
  6359. this.openAiDialog(clickType, _type)
  6360. return;
  6361. }
  6362. if (!this.isOutline2) {
  6363. this.openAiDialog(clickType, 'aiTeacher')
  6364. return;
  6365. }
  6366. const functionA = () => {
  6367. setTimeout(() => {
  6368. this.loading = false
  6369. this.steps = 3;
  6370. }, 0)
  6371. this.isClickColor = 1;
  6372. this.unitJson[
  6373. this.unitIndex
  6374. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6375. this.$forceUpdate();
  6376. setTimeout(() => {
  6377. this.checkEva(this.checkId);
  6378. setTimeout(() => {
  6379. this.checkEva(this.checkId);
  6380. }, 100);
  6381. }, 1000);
  6382. if (this.cid == "" || this.cid == undefined) {
  6383. this.addWork();
  6384. } else {
  6385. if (this.userid != this.courseUserid && this.role != "1") {
  6386. this.updateWork2();
  6387. } else {
  6388. this.updateWork();
  6389. }
  6390. }
  6391. }
  6392. if (this.cid) {
  6393. this.loading = true
  6394. functionA()
  6395. } else {
  6396. this.openAiDialog(clickType, "aiTask", functionA)
  6397. }
  6398. } else {
  6399. this.$message.error("请补充填写课程名称");
  6400. return;
  6401. }
  6402. } else if (this.steps == 3) {
  6403. if (this.cid == "" || this.cid == undefined) {
  6404. if (this.courseName == "") {
  6405. this.$message.error("请补充填写课程名称");
  6406. return;
  6407. } else {
  6408. this.addWork();
  6409. this.steps++;
  6410. }
  6411. } else {
  6412. if (this.courseName == "") {
  6413. this.$message.error("请补充填写课程名称");
  6414. return;
  6415. } else {
  6416. if (this.userid != this.courseUserid && this.role != "1") {
  6417. this.updateWork2();
  6418. } else {
  6419. this.updateWork();
  6420. }
  6421. this.steps++;
  6422. }
  6423. }
  6424. }
  6425. // } else {
  6426. // if (this.steps == 1) {
  6427. // if (this.courseName != "") {
  6428. // if (this.cid == "" || this.cid == undefined) {
  6429. // this.addWork();
  6430. // } else {
  6431. // if (this.userid != this.courseUserid && this.role != "1") {
  6432. // // this.updateWork2();
  6433. // } else {
  6434. // this.updateWork();
  6435. // }
  6436. // }
  6437. // this.steps++;
  6438. // } else {
  6439. // this.$message.error("请补充填写课程名称");
  6440. // return;
  6441. // }
  6442. // } else if (this.steps == 2) {
  6443. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6444. // this.cTemplate = this.templateC.content;
  6445. // }
  6446. // this.dialogVisible2 = false;
  6447. // this.steps++;
  6448. // setTimeout(() => {
  6449. // this.checkEva(this.checkId);
  6450. // setTimeout(() => {
  6451. // this.checkEva(this.checkId);
  6452. // }, 100);
  6453. // }, 1000);
  6454. // } else if (this.steps == 3) {
  6455. // if (this.cid == "" || this.cid == undefined) {
  6456. // if (this.courseName == "") {
  6457. // this.$message.error("请补充填写课程名称");
  6458. // return;
  6459. // } else {
  6460. // this.addWork();
  6461. // this.steps++;
  6462. // }
  6463. // } else {
  6464. // if (this.courseName == "") {
  6465. // this.$message.error("请补充填写课程名称");
  6466. // return;
  6467. // } else {
  6468. // if (this.userid != this.courseUserid && this.role != "1") {
  6469. // this.updateWork2();
  6470. // } else {
  6471. // this.updateWork();
  6472. // }
  6473. // this.steps++;
  6474. // }
  6475. // }
  6476. // }
  6477. // }
  6478. this.$refs.stepBox.scrollTop = 0;
  6479. },
  6480. unitSet(i) {
  6481. if (this.unitIndex == i) {
  6482. return;
  6483. }
  6484. this.unitIndex = i;
  6485. this.isClickColor = 1;
  6486. // this.$refs.rightboxR.scrollTop = 0;
  6487. this.$refs.unitBox.scrollTop = 0;
  6488. },
  6489. panUnitJson() {
  6490. let _unitIndex = this.unitIndex;
  6491. let cPan = 1;
  6492. for (
  6493. var j = 0;
  6494. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6495. j++
  6496. ) {
  6497. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6498. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6499. j
  6500. ].proVisible2 = false;
  6501. if (
  6502. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6503. .length > 1
  6504. ) {
  6505. for (
  6506. var z = 0;
  6507. z <
  6508. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6509. .length;
  6510. z++
  6511. ) {
  6512. if (
  6513. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6514. z
  6515. ].tool.length
  6516. ) {
  6517. this.$message.error("请把工具添加完整");
  6518. cPan = 2;
  6519. break;
  6520. }
  6521. }
  6522. }
  6523. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6524. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6525. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6526. (ele) => {
  6527. return ele.value != "";
  6528. }
  6529. );
  6530. }
  6531. }
  6532. return cPan;
  6533. },
  6534. unitOpen(i) {
  6535. if (this.unitJson[i].toolOpen) {
  6536. this.unitJson[i].toolOpen = false;
  6537. } else {
  6538. this.unitJson[i].toolOpen = true;
  6539. }
  6540. this.updateWork();
  6541. this.$forceUpdate();
  6542. },
  6543. unitSet2(i) {
  6544. if (this.panUnitJson() == 2) {
  6545. return;
  6546. }
  6547. // if(this.unitJson[i].toolOpen){
  6548. // this.unitJson[i].toolOpen = false
  6549. // this.updateWork()
  6550. // this.$forceUpdate()
  6551. // return
  6552. // }else {
  6553. this.unitJson[i].toolOpen = true;
  6554. // }
  6555. this.$forceUpdate();
  6556. if (this.unitIndex == i) {
  6557. return;
  6558. }
  6559. this.unitIndex = i;
  6560. this.isClickColor = 1;
  6561. // this.$refs.rightboxR.scrollTop = 0;
  6562. this.$refs.unitBox.scrollTop = 0;
  6563. },
  6564. updateCourseState(i) {
  6565. let params = [
  6566. {
  6567. cid: this.cid,
  6568. state: i,
  6569. },
  6570. ];
  6571. this.ajax
  6572. .post(this.$store.state.api + "updateCourseMode", params)
  6573. .then((res) => {
  6574. this.courseState = i;
  6575. })
  6576. .catch((err) => {
  6577. this.$message.error("网络不佳");
  6578. console.error(err);
  6579. });
  6580. },
  6581. addtips(){
  6582. let params = [
  6583. {
  6584. cid: this.cid,
  6585. tips: JSON.stringify(this.aiJson),
  6586. tid: this.templateid
  6587. },
  6588. ];
  6589. this.ajax
  6590. .post(this.$store.state.api + "addTips", params)
  6591. .then((res) => {
  6592. })
  6593. .catch((err) => {
  6594. this.$message.error("网络不佳");
  6595. console.error(err);
  6596. });
  6597. },
  6598. openSaveTips(){
  6599. this.dialogVisibleTips = true
  6600. },
  6601. time() {
  6602. if (!this.now) {
  6603. this.now = new Date().getTime();
  6604. return true;
  6605. } else {
  6606. let time = new Date().getTime();
  6607. if (time - this.now > 3000) {
  6608. this.now = time;
  6609. return true;
  6610. } else {
  6611. return false;
  6612. }
  6613. }
  6614. },
  6615. deleteUnit(i) {
  6616. var _this = this;
  6617. if (i == 0 && _this.unitJson.length == 1) {
  6618. _this
  6619. .$confirm("确定切换成任务模式吗?", "提示", {
  6620. confirmButtonText: "确定",
  6621. cancelButtonText: "取消",
  6622. type: "warning",
  6623. })
  6624. .then(() => {
  6625. _this.unitJson[i].dyName = "";
  6626. // _this.updateCourseState(2);
  6627. })
  6628. .catch(() => {
  6629. return;
  6630. });
  6631. } else {
  6632. _this
  6633. .$confirm("确定删除此阶段吗?", "提示", {
  6634. confirmButtonText: "确定",
  6635. cancelButtonText: "取消",
  6636. type: "warning",
  6637. })
  6638. .then(() => {
  6639. _this.isDelete = 2;
  6640. // _this.unitIndex = _this.unitIndex - 1;
  6641. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6642. // _this.$message.success("删除成功");
  6643. })
  6644. .catch(() => {
  6645. return;
  6646. });
  6647. }
  6648. },
  6649. deleteWork(chapid) {
  6650. let params = [
  6651. {
  6652. cid: this.cid,
  6653. chapters: JSON.stringify(this.unitJson),
  6654. uid: this.userid,
  6655. chapid: chapid,
  6656. },
  6657. ];
  6658. this.ajax
  6659. .post(this.$store.state.api + "deleteWork", params)
  6660. .then((res) => {
  6661. this.$message({
  6662. message: "删除成功",
  6663. type: "success",
  6664. });
  6665. let task = JSON.parse(
  6666. JSON.stringify(
  6667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6668. )
  6669. );
  6670. this.unitJson.splice(this.unitIndex, 1);
  6671. if (this.unitIndex == 0) {
  6672. this.unitIndex = 0;
  6673. } else {
  6674. this.unitIndex = this.unitIndex - 1;
  6675. }
  6676. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6678. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6679. ...task,
  6680. ];
  6681. }
  6682. })
  6683. .catch((err) => {
  6684. this.$message.error("网络不佳");
  6685. console.error(err);
  6686. });
  6687. },
  6688. deleteTool(itemTaskIndex, i) {
  6689. var _this = this;
  6690. if (_this.time()) {
  6691. _this
  6692. .$confirm("确定删除此工具吗?", "提示", {
  6693. confirmButtonText: "确定",
  6694. cancelButtonText: "取消",
  6695. type: "warning",
  6696. })
  6697. .then(() => {
  6698. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6699. itemTaskIndex
  6700. ].toolChoose.splice(i, 1);
  6701. _this.$message.success("删除成功");
  6702. })
  6703. .catch(() => {
  6704. return;
  6705. });
  6706. }
  6707. },
  6708. deleteSentence(i) {
  6709. var _this = this;
  6710. _this
  6711. .$confirm("确定删除此题目吗?", "提示", {
  6712. confirmButtonText: "确定",
  6713. cancelButtonText: "取消",
  6714. type: "warning",
  6715. })
  6716. .then(() => {
  6717. _this.sentenceList.splice(i, 1);
  6718. _this.$message.success("删除成功");
  6719. })
  6720. .catch(() => {
  6721. return;
  6722. });
  6723. },
  6724. deleteS(s, i, j) {
  6725. this.sentenceList[i].addSentence.splice(j, 1);
  6726. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6727. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6728. this.sentenceList[i].rightAnswer.splice(a, 1);
  6729. }
  6730. },
  6731. openT() {
  6732. top.postMessage({ tools: "25" }, "*");
  6733. },
  6734. deleteTask(i) {
  6735. var _this = this;
  6736. if (_this.time()) {
  6737. _this
  6738. .$confirm(
  6739. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6740. 1 ==
  6741. i
  6742. ? "确定删除此任务吗?"
  6743. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6744. "提示",
  6745. {
  6746. confirmButtonText: "确定",
  6747. cancelButtonText: "取消",
  6748. type: "warning",
  6749. }
  6750. )
  6751. .then(() => {
  6752. if (i == 0) {
  6753. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6754. i + 1
  6755. ].chapterData = JSON.parse(
  6756. JSON.stringify(
  6757. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6758. .chapterData
  6759. )
  6760. );
  6761. }
  6762. _this.$forceUpdate();
  6763. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6764. i,
  6765. 1
  6766. );
  6767. _this.$message.success("删除成功");
  6768. })
  6769. .catch(() => {
  6770. return;
  6771. });
  6772. }
  6773. },
  6774. handlePictureCardPreview(file) {
  6775. this.dialogImageUrl = file.url;
  6776. },
  6777. clean(i, c) {
  6778. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6779. },
  6780. handle_remove1(file, fileList, type) {
  6781. var _tmp = this.cover;
  6782. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6783. // if (_tmp[i].uid == file.uid) {
  6784. // _tmp.splice(i, 1);
  6785. // break;
  6786. // }
  6787. // this.cover = _tmp;
  6788. // }
  6789. this.cover = [];
  6790. this.noneBtnImg = this.cover.length >= 1;
  6791. this.isSysPic = false;
  6792. this.isSysPic2 = false;
  6793. this.$forceUpdate();
  6794. },
  6795. addImg(e) {
  6796. var el = e.currentTarget;
  6797. el.getElementsByTagName("input")[0].click();
  6798. e.target.value = "";
  6799. },
  6800. addChaptersTools(i) {
  6801. this.chapTools = [
  6802. {
  6803. tools: [],
  6804. toolDetail: "",
  6805. },
  6806. ];
  6807. this.chapCount = i;
  6808. this.dialogVisible4 = true;
  6809. },
  6810. isNoFinsh() {
  6811. this.$message.warning("功能正在开发中");
  6812. },
  6813. addAttText(i) {
  6814. this.AttText = {
  6815. title: "",
  6816. text: "",
  6817. };
  6818. this.taskCount = i;
  6819. this.AttTextType = 0;
  6820. this.$forceUpdate();
  6821. this.dialogVisible6 = true;
  6822. setTimeout(() => {
  6823. this.$refs["fuInput"].focus();
  6824. }, 100);
  6825. },
  6826. openLine(i) {
  6827. this.line = "";
  6828. this.lineCount = i;
  6829. this.lineType = 0;
  6830. this.$forceUpdate();
  6831. this.dialogVisible7 = true;
  6832. },
  6833. pasteLine(i) {
  6834. navigator.clipboard
  6835. .readText()
  6836. .then((v) => {
  6837. console.log("获取剪贴板成功:", v);
  6838. const html = v;
  6839. const regex = /src="(.*?)"/g;
  6840. const match = regex.exec(html);
  6841. if (match && match[1]) {
  6842. console.log(match[1]);
  6843. this.$message.success("粘贴成功");
  6844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6845. i
  6846. ].chapterData.push({
  6847. name: "链接",
  6848. title: "嵌入代码",
  6849. url: match[1],
  6850. type: 8,
  6851. });
  6852. } else {
  6853. // console.log("未找到包含 src 属性的 iframe");
  6854. this.$message.error(
  6855. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6856. );
  6857. }
  6858. })
  6859. .catch((v) => {
  6860. console.log("获取剪贴板失败: ", v);
  6861. });
  6862. },
  6863. openSource(i) {
  6864. this.lineCount = i;
  6865. this.sourceData = {};
  6866. this.dialogVisibleSource = true;
  6867. this.updateSourcePan = false;
  6868. },
  6869. openAiCreate(){
  6870. this.dialogVisibleAiCreate = true;
  6871. },
  6872. createAiPpt(json){
  6873. this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
  6874. this.dialogVisibleAiCreate = false;
  6875. },
  6876. openAiCreateVideo(){
  6877. this.dialogVisibleAiCreateVideo = true;
  6878. },
  6879. createAiVideo(json){
  6880. this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
  6881. // this.dialogVisibleAiCreateVideo = false;
  6882. },
  6883. async createTeacherAn(){
  6884. this.loading = true
  6885. let md = new MarkdownIt();
  6886. for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
  6887. let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
  6888. let name = _task.task+'-教案'
  6889. let _html = _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
  6890. await this.generate(name, _html, i)
  6891. }
  6892. },
  6893. async generate(a, html, index) {
  6894. // 将html文件中需要用到的数据挂载到store上
  6895. const content = `<!DOCTYPE html>
  6896. <html lang="en">
  6897. <head>
  6898. <meta charset="UTF-8">
  6899. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6900. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6901. <title>${a}</title>
  6902. <style>
  6903. </style>
  6904. </head>
  6905. <body>
  6906. ${html}
  6907. </body>
  6908. </html>`;
  6909. // debugger
  6910. let dname = a + ".doc";
  6911. // 创建文件流
  6912. // 创建bolb实例时,内容一定要放在[]中
  6913. const blob = new Blob([content], {
  6914. type: "text/plain;charset='utf-8'",
  6915. });
  6916. const file = new File([blob], dname, { type: 'application/msword' });
  6917. await this.beforeUploadHtml(file, index)
  6918. },
  6919. beforeUploadHtml(event, index) {
  6920. var file = event;
  6921. var credentials = {
  6922. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6923. secretAccessKey: "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",
  6924. }; //秘钥形式的登录上传
  6925. window.AWS.config.update(credentials);
  6926. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6927. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6928. var _this = this;
  6929. if (file) {
  6930. var params = {
  6931. Key:
  6932. file.name.split(".")[0] +
  6933. new Date().getTime() +
  6934. "." +
  6935. file.name.split(".")[file.name.split(".").length - 1],
  6936. ContentType: file.type,
  6937. Body: file,
  6938. "Access-Control-Allow-Credentials": "*",
  6939. ACL: "public-read",
  6940. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6941. var options = {
  6942. partSize: 2048 * 1024 * 1024,
  6943. queueSize: 2,
  6944. leavePartsOnError: true,
  6945. };
  6946. bucket
  6947. .upload(params, options)
  6948. .on("httpUploadProgress", function (evt) {
  6949. //这里可以写进度条
  6950. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6951. })
  6952. .send(function (err, data) {
  6953. if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1)){
  6954. _this.loading = false
  6955. }
  6956. if (err) {
  6957. _this.$message.error("上传失败");
  6958. } else {
  6959. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  6960.                   name: file.name,
  6961.                   url: data.Location,
  6962.                   type: 3,
  6963.                 })
  6964. console.log(data.Location);
  6965. }
  6966. });
  6967. }
  6968. },
  6969. addSource() {
  6970. if (!Object.keys(this.sourceData).length) {
  6971. this.$message.error("请选择要上传的资源");
  6972. return;
  6973. }
  6974. let keys = Object.keys(this.sourceData);
  6975. for (var i = 0; i < keys.length; i++) {
  6976. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6977. this.lineCount
  6978. ].chapterData.push({
  6979. name: "链接",
  6980. title: this.sourceData[keys[i]].name,
  6981. url: this.sourceData[keys[i]].url,
  6982. type: 14,
  6983. id: keys[i],
  6984. });
  6985. }
  6986. this.$forceUpdate();
  6987. this.dialogVisibleSource = false;
  6988. },
  6989. updateSource() {
  6990. if (!Object.keys(this.sourceData).length) {
  6991. this.$message.error("请选择要上传的资源");
  6992. return;
  6993. }
  6994. let keys = Object.keys(this.sourceData);
  6995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6996. this.taskCount
  6997. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6999. this.taskCount
  7000. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  7001. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7002. this.taskCount
  7003. ].chapterData[this.lineCount].id = keys[0];
  7004. this.updateSourcePan = false;
  7005. this.$forceUpdate();
  7006. this.dialogVisibleSource = false;
  7007. },
  7008. deleteM(i, j) {
  7009. this.testJson.testJson[i].timuList.splice(j, 1);
  7010. },
  7011. beforeUploadTiMu(event, i) {
  7012. const loading = this.openLoading();
  7013. var file = event.target.files[0];
  7014. var credentials = {
  7015. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7016. secretAccessKey: "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",
  7017. }; //秘钥形式的登录上传
  7018. window.AWS.config.update(credentials);
  7019. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7020. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7021. var _this = this;
  7022. if (file) {
  7023. var params = {
  7024. Key:
  7025. file.name.split(".")[0] +
  7026. new Date().getTime() +
  7027. "." +
  7028. file.name.split(".")[file.name.split(".").length - 1],
  7029. ContentType: file.type,
  7030. Body: file,
  7031. "Access-Control-Allow-Credentials": "*",
  7032. ACL: "public-read",
  7033. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7034. var options = {
  7035. partSize: 2048 * 1024 * 1024,
  7036. queueSize: 2,
  7037. leavePartsOnError: true,
  7038. };
  7039. bucket
  7040. .upload(params, options)
  7041. .on("httpUploadProgress", function (evt) {
  7042. //这里可以写进度条
  7043. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7044. })
  7045. .send(function (err, data) {
  7046. loading.close();
  7047. if (err) {
  7048. _this.$message.error("上传失败");
  7049. } else {
  7050. if (_this.testJson.testJson[i].timuList) {
  7051. _this.testJson.testJson[i].timuList.push({
  7052. src: data.Location,
  7053. });
  7054. } else {
  7055. _this.testJson.testJson[i].timuList = [];
  7056. _this.testJson.testJson[i].timuList.push({
  7057. src: data.Location,
  7058. });
  7059. }
  7060. _this.imgChange3(i);
  7061. _this.$forceUpdate();
  7062. }
  7063. });
  7064. }
  7065. },
  7066. beforeUploadTi(event, i, j) {
  7067. const loading = this.openLoading();
  7068. var file = event.target.files[0];
  7069. var credentials = {
  7070. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7071. secretAccessKey: "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",
  7072. }; //秘钥形式的登录上传
  7073. window.AWS.config.update(credentials);
  7074. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7075. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7076. var _this = this;
  7077. if (file) {
  7078. var params = {
  7079. Key:
  7080. file.name.split(".")[0] +
  7081. new Date().getTime() +
  7082. "." +
  7083. file.name.split(".")[file.name.split(".").length - 1],
  7084. ContentType: file.type,
  7085. Body: file,
  7086. "Access-Control-Allow-Credentials": "*",
  7087. ACL: "public-read",
  7088. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7089. var options = {
  7090. partSize: 2048 * 1024 * 1024,
  7091. queueSize: 2,
  7092. leavePartsOnError: true,
  7093. };
  7094. bucket
  7095. .upload(params, options)
  7096. .on("httpUploadProgress", function (evt) {
  7097. //这里可以写进度条
  7098. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7099. })
  7100. .send(function (err, data) {
  7101. loading.close();
  7102. if (err) {
  7103. _this.$message.error("上传失败");
  7104. } else {
  7105. _this.testJson.testJson[i].checkList[j] = {};
  7106. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7107. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7108. _this.imgChange2(i, j);
  7109. _this.$forceUpdate();
  7110. }
  7111. });
  7112. }
  7113. },
  7114. beforeUpload1(event, type) {
  7115. // const loading = this.openLoading();
  7116. var file = event.target.files[0];
  7117. var credentials = {
  7118. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7119. secretAccessKey: "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",
  7120. }; //秘钥形式的登录上传
  7121. window.AWS.config.update(credentials);
  7122. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7123. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7124. var _this = this;
  7125. if (file) {
  7126. var params = {
  7127. Key:
  7128. file.name.split(".")[0] +
  7129. new Date().getTime() +
  7130. "." +
  7131. file.name.split(".")[file.name.split(".").length - 1],
  7132. ContentType: file.type,
  7133. Body: file,
  7134. "Access-Control-Allow-Credentials": "*",
  7135. ACL: "public-read",
  7136. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7137. var options = {
  7138. partSize: 2048 * 1024 * 1024,
  7139. queueSize: 2,
  7140. leavePartsOnError: true,
  7141. };
  7142. bucket
  7143. .upload(params, options)
  7144. .on("httpUploadProgress", function (evt) {
  7145. //这里可以写进度条
  7146. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7147. })
  7148. .send(function (err, data) {
  7149. // loading.close();
  7150. if (err) {
  7151. // var a = _this.$refs.upload1.uploadFiles;
  7152. // a.splice(a.length - 1, a.length);
  7153. _this.$message.error("上传失败");
  7154. } else {
  7155. // _this.cover.push({
  7156. // name: file.name,
  7157. // url: data.Location,
  7158. // uid: file.uid,
  7159. // });
  7160. _this.cover = [
  7161. {
  7162. name: file.name,
  7163. url: data.Location,
  7164. uid: file.uid,
  7165. },
  7166. ];
  7167. _this.imgChange1(null, null, 1, null);
  7168. _this.choosePicVisible = false;
  7169. console.log(data.Location);
  7170. }
  7171. });
  7172. }
  7173. },
  7174. beforeUploadSelect(event, type) {
  7175. // const loading = this.openLoading();
  7176. var file = event.target.files[0];
  7177. var credentials = {
  7178. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7179. secretAccessKey: "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",
  7180. }; //秘钥形式的登录上传
  7181. window.AWS.config.update(credentials);
  7182. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7183. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7184. var _this = this;
  7185. if (file) {
  7186. var params = {
  7187. Key:
  7188. file.name.split(".")[0] +
  7189. new Date().getTime() +
  7190. "." +
  7191. file.name.split(".")[file.name.split(".").length - 1],
  7192. ContentType: file.type,
  7193. Body: file,
  7194. "Access-Control-Allow-Credentials": "*",
  7195. ACL: "public-read",
  7196. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7197. var options = {
  7198. partSize: 2048 * 1024 * 1024,
  7199. queueSize: 2,
  7200. leavePartsOnError: true,
  7201. };
  7202. bucket
  7203. .upload(params, options)
  7204. .on("httpUploadProgress", function (evt) {
  7205. //这里可以写进度条
  7206. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7207. })
  7208. .send(function (err, data) {
  7209. // loading.close();
  7210. if (err) {
  7211. _this.$message.error("上传失败");
  7212. } else {
  7213. _this.selectJson.url = data.Location;
  7214. console.log(data.Location);
  7215. }
  7216. });
  7217. }
  7218. },
  7219. chooseSysPic(p) {
  7220. this.cover = [];
  7221. setTimeout(() => {
  7222. this.cover[0] = {
  7223. name: "系统图片.png",
  7224. url: p,
  7225. };
  7226. this.imgChange1(null, null, 1, null);
  7227. this.$forceUpdate();
  7228. }, 0);
  7229. this.isSysPic = true;
  7230. this.isSysPic2 = false;
  7231. this.sysPicVisible = false;
  7232. this.$forceUpdate();
  7233. },
  7234. chooseSysPic2(p) {
  7235. this.cover = [];
  7236. setTimeout(() => {
  7237. this.cover[0] = {
  7238. name: "网络图片.png",
  7239. url: p,
  7240. };
  7241. this.imgChange1(null, null, 1, null);
  7242. this.$forceUpdate();
  7243. }, 0);
  7244. this.isSysPic2 = true;
  7245. this.isSysPic = false;
  7246. this.sysPicVisible2 = false;
  7247. this.$forceUpdate();
  7248. },
  7249. beforeUpload(data) {
  7250. this.$refs.upload1.uploadFiles;
  7251. this.uploadLoading1 = true;
  7252. var file = data.file;
  7253. var credentials = {
  7254. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7255. secretAccessKey: "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",
  7256. }; //秘钥形式的登录上传
  7257. window.AWS.config.update(credentials);
  7258. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7259. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7260. var _this = this;
  7261. if (file) {
  7262. var params = {
  7263. Key:
  7264. file.name.split(".")[0] +
  7265. new Date().getTime() +
  7266. "." +
  7267. file.name.split(".")[file.name.split(".").length - 1],
  7268. ContentType: file.type,
  7269. Body: file,
  7270. "Access-Control-Allow-Credentials": "*",
  7271. ACL: "public-read",
  7272. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7273. var options = {
  7274. partSize: 2048 * 1024 * 1024,
  7275. queueSize: 2,
  7276. leavePartsOnError: true,
  7277. };
  7278. bucket
  7279. .upload(params, options)
  7280. .on("httpUploadProgress", function (evt) {
  7281. //这里可以写进度条
  7282. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7283. })
  7284. .send(function (err, data) {
  7285. _this.uploadLoading1 = false;
  7286. if (err) {
  7287. // var a = _this.$refs.upload1.uploadFiles;
  7288. // a.splice(a.length - 1, a.length);
  7289. _this.$message.error("上传失败");
  7290. } else {
  7291. //上传成功处理
  7292. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7293. name: file.name,
  7294. url: data.Location,
  7295. uid: file.uid,
  7296. });
  7297. _this.imgChange();
  7298. console.log(data.Location);
  7299. }
  7300. });
  7301. }
  7302. },
  7303. onExceed() {
  7304. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7305. },
  7306. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7307. // const loading = this.openLoading();
  7308. var file = event.target.files[0];
  7309. var credentials = {
  7310. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7311. secretAccessKey: "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",
  7312. }; //秘钥形式的登录上传
  7313. window.AWS.config.update(credentials);
  7314. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7315. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7316. var _this = this;
  7317. if (type == 3) {
  7318. var b = [
  7319. "DOC",
  7320. "DOCX",
  7321. "DOCM",
  7322. "DOTM",
  7323. "DOTX",
  7324. "PPTX",
  7325. "PPSX",
  7326. "PPT",
  7327. "PPS",
  7328. "PPTM",
  7329. "POTM",
  7330. "PPAM",
  7331. "POTX",
  7332. "PPSM",
  7333. ];
  7334. if (
  7335. b.indexOf(
  7336. file.name
  7337. .split(".")
  7338. [file.name.split(".").length - 1].toLocaleUpperCase()
  7339. ) != -1
  7340. ) {
  7341. if (file.size / 1024 / 1024 > 80) {
  7342. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7343. this.inputShow = true;
  7344. // var a = _this.$refs.upload1.uploadFiles;
  7345. // a.splice(a.length - 1, a.length);
  7346. // loading.close();
  7347. return;
  7348. }
  7349. } else if (
  7350. file.name
  7351. .split(".")
  7352. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7353. ) {
  7354. if (file.size / 1024 / 1024 > 80) {
  7355. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7356. this.inputShow = true;
  7357. // var a = _this.$refs.upload1.uploadFiles;
  7358. // a.splice(a.length - 1, a.length);
  7359. // loading.close();
  7360. return;
  7361. }
  7362. }
  7363. }
  7364. this.inputShow = false;
  7365. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7366. itemTaskIndex
  7367. ].progress = 0;
  7368. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7369. itemTaskIndex
  7370. ].proVisible = true;
  7371. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7372. itemTaskIndex
  7373. ].isFinishSize = 0;
  7374. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7375. itemTaskIndex
  7376. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7377. _this.$forceUpdate();
  7378. if (file) {
  7379. var params = {
  7380. Key:
  7381. file.name.split(".")[0] +
  7382. new Date().getTime() +
  7383. "." +
  7384. file.name.split(".")[file.name.split(".").length - 1],
  7385. ContentType: file.type,
  7386. Body: file,
  7387. "Access-Control-Allow-Credentials": "*",
  7388. ACL: "public-read",
  7389. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7390. var options = {
  7391. partSize: 2048 * 1024 * 1024,
  7392. queueSize: 2,
  7393. leavePartsOnError: true,
  7394. };
  7395. bucket
  7396. .upload(params, options)
  7397. .on("httpUploadProgress", function (evt) {
  7398. //这里可以写进度条
  7399. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7401. itemTaskIndex
  7402. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7403. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7404. itemTaskIndex
  7405. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7406. _this.$forceUpdate();
  7407. })
  7408. .send(function (err, data) {
  7409. // loading.close();
  7410. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7411. itemTaskIndex
  7412. ].progress = 100;
  7413. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7414. itemTaskIndex
  7415. ].isFinishSize =
  7416. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7417. itemTaskIndex
  7418. ].isAllSize;
  7419. _this.$forceUpdate();
  7420. setTimeout(() => {
  7421. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7422. itemTaskIndex
  7423. ].proVisible = false;
  7424. _this.$forceUpdate();
  7425. }, 1000);
  7426. _this.inputShow = true;
  7427. if (err) {
  7428. // var a = _this.$refs.upload1.uploadFiles;
  7429. // a.splice(a.length - 1, a.length);
  7430. _this.$message.error("上传失败");
  7431. } else {
  7432. if (type == 13) {
  7433. let _type = 2;
  7434. var imgA = [
  7435. "png",
  7436. "jpg",
  7437. "jpeg",
  7438. "bmp",
  7439. "gif",
  7440. "webp",
  7441. "psd",
  7442. "svg",
  7443. "tiff",
  7444. ];
  7445. var fileA = [
  7446. "PDF",
  7447. "DOC",
  7448. "DOCX",
  7449. "DOCM",
  7450. "DOTM",
  7451. "DOTX",
  7452. "PPTX",
  7453. "PPSX",
  7454. "PPT",
  7455. "PPS",
  7456. "PPTM",
  7457. "POTM",
  7458. "PPAM",
  7459. "POTX",
  7460. "PPSM",
  7461. "XLSX",
  7462. "XLS",
  7463. ];
  7464. var videoA = [
  7465. "AVI",
  7466. "NAVI",
  7467. "MPEG",
  7468. "ASF",
  7469. "MOV",
  7470. "WMV",
  7471. "3GP",
  7472. "RM",
  7473. "RMVB",
  7474. "FLV",
  7475. "F4V",
  7476. "H.264",
  7477. "H.265",
  7478. "REAL VIDEO",
  7479. "MKV",
  7480. "WebM",
  7481. "HDDVD",
  7482. "MP4",
  7483. "MPG",
  7484. "M4V",
  7485. "MGV",
  7486. "OGV",
  7487. "QTM",
  7488. "STR",
  7489. "AMC",
  7490. "DVX",
  7491. "EVO",
  7492. "DAT",
  7493. "OGG",
  7494. "OGM",
  7495. ];
  7496. if (
  7497. fileA.indexOf(
  7498. data.Location.split(".")[
  7499. data.Location.split(".").length - 1
  7500. ].toLocaleUpperCase()
  7501. ) != -1
  7502. ) {
  7503. _type = 3;
  7504. } else if (
  7505. videoA.indexOf(
  7506. data.Location.split(".")[
  7507. data.Location.split(".").length - 1
  7508. ].toLocaleUpperCase()
  7509. ) != -1
  7510. ) {
  7511. _type = 2;
  7512. } else if (
  7513. imgA.indexOf(
  7514. data.Location.split(".")[
  7515. data.Location.split(".").length - 1
  7516. ].toLocaleLowerCase()
  7517. ) != -1
  7518. ) {
  7519. _type = 13;
  7520. } else {
  7521. _type = 12;
  7522. }
  7523. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7524. itemTaskIndex
  7525. ].chapterData.push({
  7526. name: file.name,
  7527. url: data.Location,
  7528. uid: file.uid,
  7529. type: _type,
  7530. });
  7531. _this.imgChange1(null, null, _type, itemTaskIndex);
  7532. } else if (type == 2 || type == 3 || type == 12) {
  7533. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7534. itemTaskIndex
  7535. ].chapterData.push({
  7536. name: file.name,
  7537. url: data.Location,
  7538. uid: file.uid,
  7539. type: type,
  7540. });
  7541. _this.imgChange1(null, null, type, itemTaskIndex);
  7542. } else if (type == 4) {
  7543. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7544. itemTaskIndex
  7545. ].fileList1.push({
  7546. name: file.name,
  7547. url: data.Location,
  7548. uid: file.uid,
  7549. });
  7550. _this.imgChange1(null, null, type, itemTaskIndex);
  7551. } else if (type == 5) {
  7552. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7553. itemTaskIndex
  7554. ].homeworkList.push({
  7555. name: file.name,
  7556. url: data.Location,
  7557. uid: file.uid,
  7558. });
  7559. _this.imgChange1(null, null, type, itemTaskIndex);
  7560. }
  7561. console.log(data.Location);
  7562. }
  7563. });
  7564. }
  7565. },
  7566. beforeUploadInfo2(event, type) {
  7567. // const loading = this.openLoading();
  7568. var file = event.target.files[0];
  7569. var credentials = {
  7570. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7571. secretAccessKey: "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",
  7572. }; //秘钥形式的登录上传
  7573. window.AWS.config.update(credentials);
  7574. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7575. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7576. var _this = this;
  7577. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  7578. if (
  7579. xianObj.indexOf(
  7580. file.name
  7581. .split(".")
  7582. [file.name.split(".").length - 1].toLocaleUpperCase()
  7583. ) == -1
  7584. ) {
  7585. this.$message.error("请上传.doc,.docx,.ppt,.pptx,.md,.txt,.pdf文件!");
  7586. this.inputShow = true;
  7587. // var a = _this.$refs.upload1.uploadFiles;
  7588. // a.splice(a.length - 1, a.length);
  7589. // loading.close();
  7590. return;
  7591. }
  7592. if (type == 3) {
  7593. var b = [
  7594. "DOC",
  7595. "DOCX",
  7596. "DOCM",
  7597. "DOTM",
  7598. "DOTX",
  7599. "PPTX",
  7600. "PPSX",
  7601. "PPT",
  7602. "PPS",
  7603. "PPTM",
  7604. "POTM",
  7605. "PPAM",
  7606. "POTX",
  7607. "PPSM",
  7608. ];
  7609. if (
  7610. b.indexOf(
  7611. file.name
  7612. .split(".")
  7613. [file.name.split(".").length - 1].toLocaleUpperCase()
  7614. ) != -1
  7615. ) {
  7616. if (file.size / 1024 / 1024 > 80) {
  7617. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7618. this.inputShow = true;
  7619. // var a = _this.$refs.upload1.uploadFiles;
  7620. // a.splice(a.length - 1, a.length);
  7621. // loading.close();
  7622. return;
  7623. }
  7624. } else if (
  7625. file.name
  7626. .split(".")
  7627. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7628. ) {
  7629. if (file.size / 1024 / 1024 > 80) {
  7630. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7631. this.inputShow = true;
  7632. // var a = _this.$refs.upload1.uploadFiles;
  7633. // a.splice(a.length - 1, a.length);
  7634. // loading.close();
  7635. return;
  7636. }
  7637. }
  7638. }
  7639. this.inputShow = false;
  7640. _this.infoprogress = 0;
  7641. _this.infoproVisible = true;
  7642. _this.infoisFinishSize = 0;
  7643. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7644. _this.$forceUpdate();
  7645. if (file) {
  7646. var params = {
  7647. Key:
  7648. file.name.split(".")[0] +
  7649. new Date().getTime() +
  7650. "." +
  7651. file.name.split(".")[file.name.split(".").length - 1],
  7652. ContentType: file.type,
  7653. Body: file,
  7654. "Access-Control-Allow-Credentials": "*",
  7655. ACL: "public-read",
  7656. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7657. var options = {
  7658. partSize: 2048 * 1024 * 1024,
  7659. queueSize: 2,
  7660. leavePartsOnError: true,
  7661. };
  7662. bucket
  7663. .upload(params, options)
  7664. .on("httpUploadProgress", function (evt) {
  7665. //这里可以写进度条
  7666. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7667. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7668. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7669. _this.$forceUpdate();
  7670. })
  7671. .send(async function (err, data) {
  7672. // loading.close();
  7673. _this.infoprogress = 100;
  7674. _this.infoisFinishSize = _this.infoisAllSize;
  7675. _this.$forceUpdate();
  7676. _this.inputShow = true;
  7677. if (err) {
  7678. setTimeout(() => {
  7679. _this.infoproVisible = false;
  7680. _this.$forceUpdate();
  7681. }, 1000);
  7682. // var a = _this.$refs.upload1.uploadFiles;
  7683. // a.splice(a.length - 1, a.length);
  7684. _this.$message.error("上传失败");
  7685. } else {
  7686. let fileid = await _this.createFileid(data.Location)
  7687. if(fileid){
  7688. _this.infoproVisible = false;
  7689. _this.$forceUpdate();
  7690. }
  7691. if (type == 13) {
  7692. let _type = 2;
  7693. var imgA = [
  7694. "png",
  7695. "jpg",
  7696. "jpeg",
  7697. "bmp",
  7698. "gif",
  7699. "webp",
  7700. "psd",
  7701. "svg",
  7702. "tiff",
  7703. ];
  7704. var fileA = [
  7705. "PDF",
  7706. "DOC",
  7707. "DOCX",
  7708. "DOCM",
  7709. "DOTM",
  7710. "DOTX",
  7711. "PPTX",
  7712. "PPSX",
  7713. "PPT",
  7714. "PPS",
  7715. "PPTM",
  7716. "POTM",
  7717. "PPAM",
  7718. "POTX",
  7719. "PPSM",
  7720. "XLSX",
  7721. "XLS",
  7722. ];
  7723. var videoA = [
  7724. "AVI",
  7725. "NAVI",
  7726. "MPEG",
  7727. "ASF",
  7728. "MOV",
  7729. "WMV",
  7730. "3GP",
  7731. "RM",
  7732. "RMVB",
  7733. "FLV",
  7734. "F4V",
  7735. "H.264",
  7736. "H.265",
  7737. "REAL VIDEO",
  7738. "MKV",
  7739. "WebM",
  7740. "HDDVD",
  7741. "MP4",
  7742. "MPG",
  7743. "M4V",
  7744. "MGV",
  7745. "OGV",
  7746. "QTM",
  7747. "STR",
  7748. "AMC",
  7749. "DVX",
  7750. "EVO",
  7751. "DAT",
  7752. "OGG",
  7753. "OGM",
  7754. ];
  7755. if (
  7756. fileA.indexOf(
  7757. data.Location.split(".")[
  7758. data.Location.split(".").length - 1
  7759. ].toLocaleUpperCase()
  7760. ) != -1
  7761. ) {
  7762. _type = 3;
  7763. } else if (
  7764. videoA.indexOf(
  7765. data.Location.split(".")[
  7766. data.Location.split(".").length - 1
  7767. ].toLocaleUpperCase()
  7768. ) != -1
  7769. ) {
  7770. _type = 2;
  7771. } else if (
  7772. imgA.indexOf(
  7773. data.Location.split(".")[
  7774. data.Location.split(".").length - 1
  7775. ].toLocaleLowerCase()
  7776. ) != -1
  7777. ) {
  7778. _type = 13;
  7779. } else {
  7780. _type = 12;
  7781. }
  7782. _this.infoData.push({
  7783. name: file.name,
  7784. url: data.Location,
  7785. uid: file.uid,
  7786. type: _type,
  7787. fileid: fileid,
  7788. });
  7789. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7790. name: file.name,
  7791. url: data.Location,
  7792. uid: file.uid,
  7793. type: _type,
  7794. fileid: fileid,
  7795. })
  7796. } else if (type == 2 || type == 3 || type == 12) {
  7797. _this.infoData.push({
  7798. name: file.name,
  7799. url: data.Location,
  7800. uid: file.uid,
  7801. type: type,
  7802. fileid: fileid,
  7803. });
  7804. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7805. name: file.name,
  7806. url: data.Location,
  7807. uid: file.uid,
  7808. type: type,
  7809. fileid: fileid,
  7810. })
  7811. }
  7812. console.log(data.Location);
  7813. console.log(fileid);
  7814. }
  7815. });
  7816. }
  7817. },
  7818. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7819. // const loading = this.openLoading();
  7820. var file = event.target.files[0];
  7821. var credentials = {
  7822. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7823. secretAccessKey: "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",
  7824. }; //秘钥形式的登录上传
  7825. window.AWS.config.update(credentials);
  7826. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7827. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7828. var _this = this;
  7829. if (type == 3) {
  7830. var b = [
  7831. "DOC",
  7832. "DOCX",
  7833. "DOCM",
  7834. "DOTM",
  7835. "DOTX",
  7836. "PPTX",
  7837. "PPSX",
  7838. "PPT",
  7839. "PPS",
  7840. "PPTM",
  7841. "POTM",
  7842. "PPAM",
  7843. "POTX",
  7844. "PPSM",
  7845. ];
  7846. if (
  7847. b.indexOf(
  7848. file.name
  7849. .split(".")
  7850. [file.name.split(".").length - 1].toLocaleUpperCase()
  7851. ) != -1
  7852. ) {
  7853. if (file.size / 1024 / 1024 > 80) {
  7854. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7855. this.inputShow = true;
  7856. // var a = _this.$refs.upload1.uploadFiles;
  7857. // a.splice(a.length - 1, a.length);
  7858. // loading.close();
  7859. return;
  7860. }
  7861. } else if (
  7862. file.name
  7863. .split(".")
  7864. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7865. ) {
  7866. if (file.size / 1024 / 1024 > 80) {
  7867. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7868. this.inputShow = true;
  7869. // var a = _this.$refs.upload1.uploadFiles;
  7870. // a.splice(a.length - 1, a.length);
  7871. // loading.close();
  7872. return;
  7873. }
  7874. }
  7875. }
  7876. this.inputShow = false;
  7877. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7878. itemTaskIndex
  7879. ].progress = 0;
  7880. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7881. itemTaskIndex
  7882. ].proVisible = true;
  7883. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7884. itemTaskIndex
  7885. ].isFinishSize = 0;
  7886. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7887. itemTaskIndex
  7888. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7889. _this.$forceUpdate();
  7890. if (file) {
  7891. var params = {
  7892. Key:
  7893. file.name.split(".")[0] +
  7894. new Date().getTime() +
  7895. "." +
  7896. file.name.split(".")[file.name.split(".").length - 1],
  7897. ContentType: file.type,
  7898. Body: file,
  7899. "Access-Control-Allow-Credentials": "*",
  7900. ACL: "public-read",
  7901. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7902. var options = {
  7903. partSize: 2048 * 1024 * 1024,
  7904. queueSize: 2,
  7905. leavePartsOnError: true,
  7906. };
  7907. bucket
  7908. .upload(params, options)
  7909. .on("httpUploadProgress", function (evt) {
  7910. //这里可以写进度条
  7911. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7912. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7913. itemTaskIndex
  7914. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7915. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7916. itemTaskIndex
  7917. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7918. _this.$forceUpdate();
  7919. })
  7920. .send(function (err, data) {
  7921. // loading.close();
  7922. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7923. itemTaskIndex
  7924. ].progress = 100;
  7925. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7926. itemTaskIndex
  7927. ].isFinishSize =
  7928. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7929. itemTaskIndex
  7930. ].isAllSize;
  7931. _this.$forceUpdate();
  7932. setTimeout(() => {
  7933. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7934. itemTaskIndex
  7935. ].proVisible = false;
  7936. _this.$forceUpdate();
  7937. }, 1000);
  7938. _this.inputShow = true;
  7939. if (err) {
  7940. // var a = _this.$refs.upload1.uploadFiles;
  7941. // a.splice(a.length - 1, a.length);
  7942. _this.$message.error("上传失败");
  7943. } else {
  7944. if (type == 2 || type == 3) {
  7945. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7946. itemTaskIndex
  7947. ].chapterData.push({
  7948. name: file.name,
  7949. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7950. // itemTaskIndex
  7951. // ].chapterData.length+1),
  7952. url: data.Location,
  7953. uid: file.uid,
  7954. type: type,
  7955. text: string,
  7956. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7957. // itemTaskIndex
  7958. // ].chapterData.length + 1),
  7959. });
  7960. _this.imgChange1(null, null, type, itemTaskIndex);
  7961. } else if (type == 4) {
  7962. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7963. itemTaskIndex
  7964. ].fileList1.push({
  7965. name: file.name,
  7966. url: data.Location,
  7967. uid: file.uid,
  7968. });
  7969. _this.imgChange1(null, null, type, itemTaskIndex);
  7970. } else if (type == 5) {
  7971. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7972. itemTaskIndex
  7973. ].homeworkList.push({
  7974. name: file.name,
  7975. url: data.Location,
  7976. uid: file.uid,
  7977. });
  7978. _this.imgChange1(null, null, type, itemTaskIndex);
  7979. }
  7980. console.log(data.Location);
  7981. }
  7982. });
  7983. }
  7984. },
  7985. addunit() {
  7986. this.unitJson.push({
  7987. dyName: "", //单元标题
  7988. isUpdate: 1,
  7989. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7990. chapterInfo: [
  7991. {
  7992. isread: false,
  7993. chapterid: this.guid(),
  7994. title: "",
  7995. courseName: "",
  7996. taskJson: [
  7997. {
  7998. task: "",
  7999. taskDetail: "",
  8000. chapterData: [],
  8001. toolText: "",
  8002. toolChoose: [
  8003. {
  8004. tool: [],
  8005. toolDetail: "",
  8006. toolType: 0,
  8007. askCount: 1,
  8008. askTitle: "",
  8009. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8010. },
  8011. ],
  8012. isShowTools: false,
  8013. askCount: 1,
  8014. isFold: 1,
  8015. askTitle: "",
  8016. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8017. checkJson: [{ checkCount: [], checkPerent: [] }],
  8018. homeworkList: [],
  8019. },
  8020. ],
  8021. itemCount: 1,
  8022. fileList1: [],
  8023. video: [],
  8024. testData: [],
  8025. pData: [],
  8026. templateArray: [],
  8027. },
  8028. ],
  8029. });
  8030. this.addindex = this.unitJson.length - 1;
  8031. setTimeout(() => {
  8032. this.unitIndex = this.unitJson.length - 1;
  8033. setTimeout(() => {
  8034. console.log(this.$refs.dyInput);
  8035. this.$refs.dyInput[0].focus();
  8036. }, 100);
  8037. this.unitSet(this.unitIndex);
  8038. }, 0);
  8039. },
  8040. addToolFun(itemTaskIndex) {
  8041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8042. itemTaskIndex
  8043. ].toolChoose.push({
  8044. tool: [],
  8045. toolDetail: "",
  8046. toolType: 0,
  8047. askCount: 1,
  8048. askTitle: "",
  8049. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8050. });
  8051. },
  8052. addTaskBorder() {
  8053. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8054. task: "",
  8055. taskDetail: "",
  8056. chapterData: [],
  8057. toolText: "",
  8058. toolChoose: [
  8059. {
  8060. tool: [],
  8061. toolDetail: "",
  8062. toolType: 0,
  8063. askCount: 1,
  8064. askTitle: "",
  8065. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8066. },
  8067. ],
  8068. isShowTools: false,
  8069. askCount: 1,
  8070. isFold: 1, //任务收起状态
  8071. askTitle: "",
  8072. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8073. checkJson: [{ checkCount: [], checkPerent: [] }],
  8074. homeworkList: [],
  8075. });
  8076. setTimeout(() => {
  8077. this.checkEva(this.checkId);
  8078. setTimeout(() => {
  8079. this.checkEva(this.checkId);
  8080. }, 100);
  8081. }, 100);
  8082. },
  8083. add(e, i) {
  8084. var el = e.currentTarget;
  8085. el.getElementsByTagName("input")[0].click();
  8086. },
  8087. fold(i, e) {
  8088. if (
  8089. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  8090. ) {
  8091. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8092. } else {
  8093. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8094. }
  8095. },
  8096. fold2(i) {
  8097. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8099. i
  8100. ].isFold2 = false;
  8101. } else {
  8102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8103. }
  8104. this.$forceUpdate();
  8105. },
  8106. foldEva(i) {
  8107. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  8108. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8109. i
  8110. ].isEvaFold = false;
  8111. } else {
  8112. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8113. i
  8114. ].isEvaFold = true;
  8115. setTimeout(() => {
  8116. this.checkEva(this.checkId);
  8117. setTimeout(() => {
  8118. this.checkEva(this.checkId);
  8119. }, 500);
  8120. }, 0);
  8121. }
  8122. this.$forceUpdate();
  8123. },
  8124. foldC(i) {
  8125. if (
  8126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  8127. ) {
  8128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8129. i
  8130. ].isFoldchapter = false;
  8131. } else {
  8132. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8133. i
  8134. ].isFoldchapter = true;
  8135. }
  8136. this.$forceUpdate();
  8137. },
  8138. fold3(i, ti) {
  8139. if (
  8140. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  8141. .isFold3
  8142. ) {
  8143. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8144. ti
  8145. ].isFold3 = false;
  8146. } else {
  8147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8148. ti
  8149. ].isFold3 = true;
  8150. }
  8151. this.$forceUpdate();
  8152. },
  8153. deleteHomeworkBox(unitIndex, index, i) {
  8154. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8155. this.taskCount
  8156. ].homeworkList.splice(i, 1);
  8157. },
  8158. getStudent() {
  8159. let params = {
  8160. oid: this.oid,
  8161. cu: "",
  8162. cn: this.searchPeople,
  8163. };
  8164. this.ajax
  8165. .get(this.$store.state.api + "selectStudentAdd", params)
  8166. .then((res) => {
  8167. this.studentJuri = res.data[0];
  8168. })
  8169. .catch((err) => {
  8170. this.isLoading = false;
  8171. console.error(err);
  8172. });
  8173. },
  8174. // 添加协同成员其他选项按钮
  8175. getTeacherCopy(){
  8176. this.CollLoading=true
  8177. this.collid = ''
  8178. this.collid = '1xpz'
  8179. let params = {
  8180. oid:
  8181. this.org && this.org != "undefined" && this.org != "null"
  8182. ? this.org
  8183. : this.oid,
  8184. cu: "",
  8185. cn: this.searchTN,
  8186. coll: ''
  8187. };
  8188. this.ajax
  8189. .get(
  8190. this.$store.state.api +
  8191. (this.org && this.org != "undefined" && this.org != "null"
  8192. ? "selectCollaborativeMembersOrg"
  8193. : "selectCollaborativeMembers"),
  8194. params
  8195. )
  8196. .then((res) => {
  8197. let teacherJuri = res.data[0];
  8198. this.CollaborativeTeaList = res.data[1];
  8199. for (var i = 0; i < teacherJuri.length; i++) {
  8200. if (teacherJuri[i].userid == this.userid) {
  8201. teacherJuri.splice(i, 1);
  8202. break;
  8203. }
  8204. }
  8205. this.teacherJuri = teacherJuri.filter((i,index)=>{
  8206. return (i.cclassid == '' || i.cclassid == null)
  8207. })
  8208. console.log(' this.teacherJuri', this.teacherJuri);
  8209. let _check = [];
  8210. let _check2 = [];
  8211. for (var i = 0; i < this.teacherJuri.length; i++) {
  8212. var gid = this.teacherJuri[i].userid;
  8213. _check.push(gid);
  8214. }
  8215. for (var i = 0; i < this.checkboxList3.length; i++) {
  8216. var _id = this.checkboxList3[i];
  8217. if (_check.indexOf(_id) !== -1) {
  8218. _check2.push(_id);
  8219. }
  8220. }
  8221. if (_check2.length==0 && _check.length==0) {
  8222. }else{
  8223. this.checkAll2 = _check2.length === _check.length;
  8224. }
  8225. this.CollLoading=false
  8226. })
  8227. .catch((err) => {
  8228. console.error(err);
  8229. this.CollLoading=false
  8230. });
  8231. },
  8232. getTeacher(val) {
  8233. this.CollLoading=true
  8234. this.collid = ''
  8235. this.collid = !val ? '' : val
  8236. let params = {
  8237. oid:
  8238. this.org && this.org != "undefined" && this.org != "null"
  8239. ? this.org
  8240. : this.oid,
  8241. cu: "",
  8242. cn: this.searchTN,
  8243. coll: this.collid
  8244. };
  8245. this.ajax
  8246. .get(
  8247. this.$store.state.api +
  8248. (this.org && this.org != "undefined" && this.org != "null"
  8249. ? "selectCollaborativeMembersOrg"
  8250. : "selectCollaborativeMembers"),
  8251. params
  8252. )
  8253. .then((res) => {
  8254. let teacherJuri = res.data[0];
  8255. this.CollaborativeTeaList = res.data[1];
  8256. for (var i = 0; i < teacherJuri.length; i++) {
  8257. if (teacherJuri[i].userid == this.userid) {
  8258. teacherJuri.splice(i, 1);
  8259. break;
  8260. }
  8261. }
  8262. this.teacherJuri = teacherJuri;
  8263. let _check = [];
  8264. let _check2 = [];
  8265. for (var i = 0; i < this.teacherJuri.length; i++) {
  8266. var gid = this.teacherJuri[i].userid;
  8267. _check.push(gid);
  8268. }
  8269. for (var i = 0; i < this.checkboxList3.length; i++) {
  8270. var _id = this.checkboxList3[i];
  8271. if (_check.indexOf(_id) !== -1) {
  8272. _check2.push(_id);
  8273. }
  8274. }
  8275. if (_check2.length==0 && _check.length==0) {
  8276. }else{
  8277. this.checkAll2 = _check2.length === _check.length;
  8278. }
  8279. this.CollLoading=false
  8280. })
  8281. .catch((err) => {
  8282. console.error(err);
  8283. this.CollLoading=false
  8284. });
  8285. },
  8286. searchStudent() {
  8287. this.getStudent();
  8288. },
  8289. selectGrage() {
  8290. let params = {
  8291. oid: this.oid,
  8292. };
  8293. this.ajax
  8294. .get(this.$store.state.api + "selectGrageBySchool", params)
  8295. .then((res) => {
  8296. this.gradeList = res.data[0];
  8297. })
  8298. .catch((err) => {
  8299. this.isLoading = false;
  8300. console.error(err);
  8301. });
  8302. },
  8303. //获取班级列表
  8304. getClass() {
  8305. let params = {
  8306. oid: this.oid,
  8307. gid: this.gradeId,
  8308. cn: this.classSearch,
  8309. };
  8310. this.ajax
  8311. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8312. .then((res) => {
  8313. if (!this.grade.length) {
  8314. this.grade = res.data[0];
  8315. }
  8316. this.grade2 = res.data[0];
  8317. this.classJuri = res.data[0];
  8318. let _check = [];
  8319. let _check2 = [];
  8320. for (var i = 0; i < this.grade2.length; i++) {
  8321. var gid = this.grade2[i].id;
  8322. _check.push(gid);
  8323. }
  8324. for (var i = 0; i < this.checkboxList2.length; i++) {
  8325. var _id = this.checkboxList2[i];
  8326. if (_check.indexOf(_id) !== -1) {
  8327. _check2.push(_id);
  8328. }
  8329. }
  8330. this.checkAll = _check2.length === _check.length;
  8331. })
  8332. .catch((err) => {
  8333. this.isLoading = false;
  8334. console.error(err);
  8335. });
  8336. },
  8337. CourseType2Change(val) {
  8338. this.pTypeCheck = [];
  8339. for (var i = 0; i < this.CourseType2.length; i++) {
  8340. let typeA = this.CourseType2[i];
  8341. if (val.indexOf(typeA.name) != -1) {
  8342. this.pTypeCheck.push(...typeA.id);
  8343. }
  8344. }
  8345. },
  8346. getChapterData(e, i, j, ic, type) {
  8347. e.stopPropagation();
  8348. this.updataC = true;
  8349. this.icc = ic;
  8350. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8351. console.log("还不能下载图片喔");
  8352. }
  8353. },
  8354. deleteChapterData(e, i, j, ic, taskI) {
  8355. e.stopPropagation();
  8356. let _this = this;
  8357. _this
  8358. .$confirm("确定删除此项?", "提示", {
  8359. confirmButtonText: "确定",
  8360. cancelButtonText: "取消",
  8361. type: "warning",
  8362. })
  8363. .then(() => {
  8364. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  8365. ic,
  8366. 1
  8367. );
  8368. })
  8369. .catch(() => {
  8370. return;
  8371. });
  8372. },
  8373. deleteInfoData(e, ic) {
  8374. e.stopPropagation();
  8375. let _this = this;
  8376. _this
  8377. .$confirm("确定删除此项?", "提示", {
  8378. confirmButtonText: "确定",
  8379. cancelButtonText: "取消",
  8380. type: "warning",
  8381. })
  8382. .then(() => {
  8383. _this.infoData.splice(
  8384. ic,
  8385. 1
  8386. );
  8387. })
  8388. .catch(() => {
  8389. return;
  8390. });
  8391. },
  8392. updataVideoT(e, i, j, ic) {
  8393. // e.stopPropagation();
  8394. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8395. // ic
  8396. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8397. this.line =
  8398. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  8399. this.taskCount = j;
  8400. this.lineCount = ic;
  8401. this.dialogVisibleupdataVideoT = true;
  8402. this.$forceUpdate();
  8403. },
  8404. updataVideoC() {
  8405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8406. this.taskCount
  8407. ].chapterData[this.lineCount].name = JSON.parse(
  8408. JSON.stringify(this.line)
  8409. );
  8410. this.dialogVisibleupdataVideoT = false;
  8411. this.$forceUpdate();
  8412. },
  8413. upCd(e, i, j, taskCount, ic) {
  8414. e.stopPropagation();
  8415. if (ic == 0) {
  8416. return;
  8417. }
  8418. var a = JSON.parse(
  8419. JSON.stringify(
  8420. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8421. ic - 1
  8422. ]
  8423. )
  8424. );
  8425. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8426. JSON.parse(
  8427. JSON.stringify(
  8428. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8429. )
  8430. );
  8431. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8432. this.$forceUpdate();
  8433. },
  8434. downCd(e, i, j, taskCount, ic) {
  8435. e.stopPropagation();
  8436. if (
  8437. ic ==
  8438. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8439. 1
  8440. ) {
  8441. return;
  8442. }
  8443. var a = JSON.parse(
  8444. JSON.stringify(
  8445. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8446. ic + 1
  8447. ]
  8448. )
  8449. );
  8450. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8451. JSON.parse(
  8452. JSON.stringify(
  8453. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8454. )
  8455. );
  8456. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8457. this.$forceUpdate();
  8458. },
  8459. async upTool(e, i, j, tooli) {
  8460. e.stopPropagation();
  8461. if (tooli == 0) {
  8462. return;
  8463. }
  8464. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  8465. let count2 = await this.getWorksCount(3, i, j, tooli);
  8466. if (count1 > 0 || count2 > 0) {
  8467. this.$confirm(
  8468. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8469. "提示",
  8470. {
  8471. confirmButtonText: "确定",
  8472. cancelButtonText: "取消",
  8473. type: "warning",
  8474. }
  8475. )
  8476. .then(() => {
  8477. var a = JSON.parse(
  8478. JSON.stringify(
  8479. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8480. tooli - 1
  8481. ]
  8482. )
  8483. );
  8484. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8485. JSON.parse(
  8486. JSON.stringify(
  8487. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8488. )
  8489. );
  8490. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8491. this.$forceUpdate();
  8492. })
  8493. .catch(() => {
  8494. return;
  8495. });
  8496. } else {
  8497. var a = JSON.parse(
  8498. JSON.stringify(
  8499. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8500. )
  8501. );
  8502. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8503. JSON.parse(
  8504. JSON.stringify(
  8505. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8506. )
  8507. );
  8508. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8509. this.$forceUpdate();
  8510. }
  8511. },
  8512. async downTool(e, i, j, tooli) {
  8513. e.stopPropagation();
  8514. if (
  8515. tooli ==
  8516. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8517. ) {
  8518. return;
  8519. }
  8520. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8521. let count2 = await this.getWorksCount(3, i, j, tooli);
  8522. if (count1 > 0 || count2 > 0) {
  8523. this.$confirm(
  8524. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8525. "提示",
  8526. {
  8527. confirmButtonText: "确定",
  8528. cancelButtonText: "取消",
  8529. type: "warning",
  8530. }
  8531. )
  8532. .then(() => {
  8533. var a = JSON.parse(
  8534. JSON.stringify(
  8535. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8536. tooli + 1
  8537. ]
  8538. )
  8539. );
  8540. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8541. JSON.parse(
  8542. JSON.stringify(
  8543. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8544. )
  8545. );
  8546. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8547. this.$forceUpdate();
  8548. })
  8549. .catch(() => {
  8550. return;
  8551. });
  8552. } else {
  8553. var a = JSON.parse(
  8554. JSON.stringify(
  8555. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8556. )
  8557. );
  8558. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8559. JSON.parse(
  8560. JSON.stringify(
  8561. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8562. )
  8563. );
  8564. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8565. this.$forceUpdate();
  8566. }
  8567. },
  8568. addWork() {
  8569. let cPan = 1;
  8570. for (var i = 0; i < this.unitJson.length; i++) {
  8571. for (
  8572. var j = 0;
  8573. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8574. j++
  8575. ) {
  8576. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8577. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8578. if (
  8579. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8580. ) {
  8581. for (
  8582. var z = 0;
  8583. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8584. z++
  8585. ) {
  8586. if (
  8587. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8588. .length
  8589. ) {
  8590. this.$message.error("请把工具添加完整");
  8591. cPan = 2;
  8592. break;
  8593. }
  8594. }
  8595. }
  8596. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8597. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8598. i
  8599. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8600. return ele.value != "";
  8601. });
  8602. }
  8603. }
  8604. }
  8605. this.inputShow = true;
  8606. if (cPan == 2) {
  8607. this.steps--;
  8608. return;
  8609. }
  8610. for (var i = 0; i < this.unitJson.length; i++) {
  8611. delete this.unitJson[i].isUpdate;
  8612. }
  8613. let params = [
  8614. {
  8615. uid: this.userid,
  8616. title: this.courseName,
  8617. brief: this.courseText,
  8618. cover:
  8619. this.cover.length > 0
  8620. ? JSON.stringify(this.cover)
  8621. : JSON.stringify([
  8622. {
  8623. name: "noBanner.jpg",
  8624. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8625. uid: 1656409780264,
  8626. status: "success",
  8627. },
  8628. ]),
  8629. evaId: this.evalua,
  8630. astudent:
  8631. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8632. see: this.isTeacherSee == true ? 1 : 0,
  8633. chapters: JSON.stringify(this.unitJson),
  8634. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8635. courseType: JSON.stringify(this.courseTypeId),
  8636. ateacher:
  8637. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8638. inviteCode: JSON.stringify(this.inviteCode),
  8639. refile: JSON.stringify(this.infoData),
  8640. reBrief: this.courseText2,
  8641. cpote: JSON.stringify(this.cpote),
  8642. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  8643. iresearch: this.isFileSearch ? 1 : 2,
  8644. },
  8645. ];
  8646. this.ajax
  8647. .post(this.$store.state.api + "addWorkNew2AI3", params)
  8648. .then((res) => {
  8649. console.log(this.steps);
  8650. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8651. this.$message({
  8652. message: "新增成功",
  8653. type: "success",
  8654. });
  8655. }
  8656. this.number = res.data.ordernumber;
  8657. this.courseId = res.data.courseId;
  8658. this.cid = res.data.courseId;
  8659. this.courseUserid = this.userid;
  8660. this.islogin = true;
  8661. this.updateCourseState(4);
  8662. this.addtips()
  8663. })
  8664. .catch((err) => {
  8665. this.$message.error("网络不佳");
  8666. console.error(err);
  8667. });
  8668. },
  8669. goCourse() {
  8670. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8671. },
  8672. updateWork2() {
  8673. let _unitIndex = this.unitIndex;
  8674. let cPan = 1;
  8675. for (
  8676. var j = 0;
  8677. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8678. j++
  8679. ) {
  8680. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8681. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8682. j
  8683. ].proVisible2 = false;
  8684. if (
  8685. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8686. .length > 1
  8687. ) {
  8688. for (
  8689. var z = 0;
  8690. z <
  8691. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8692. .length;
  8693. z++
  8694. ) {
  8695. if (
  8696. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8697. z
  8698. ].tool.length
  8699. ) {
  8700. this.$message.error("请把工具添加完整");
  8701. cPan = 2;
  8702. break;
  8703. }
  8704. }
  8705. }
  8706. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8707. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8708. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8709. (ele) => {
  8710. return ele.value != "";
  8711. }
  8712. );
  8713. }
  8714. }
  8715. this.inputShow = true;
  8716. if (cPan == 2) {
  8717. this.steps--;
  8718. return;
  8719. }
  8720. let params = [
  8721. {
  8722. cid: this.cid,
  8723. chapters: JSON.stringify(this.unitJson),
  8724. uid: this.userid,
  8725. unitIndex: _unitIndex,
  8726. },
  8727. ];
  8728. this.ajax
  8729. .post(this.$store.state.api + "updateWorkNew4", params)
  8730. .then((res) => {
  8731. this.$message({
  8732. message: "修改成功",
  8733. type: "success",
  8734. });
  8735. this.courseId = this.cid;
  8736. this.addtips();
  8737. })
  8738. .catch((err) => {
  8739. this.$message.error("网络不佳");
  8740. console.error(err);
  8741. });
  8742. },
  8743. updateWork3(unitIndex) {
  8744. let _unitIndex = unitIndex;
  8745. let cPan = 1;
  8746. for (
  8747. var j = 0;
  8748. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8749. j++
  8750. ) {
  8751. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8752. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8753. j
  8754. ].proVisible2 = false;
  8755. if (
  8756. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8757. .length > 1
  8758. ) {
  8759. for (
  8760. var z = 0;
  8761. z <
  8762. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8763. .length;
  8764. z++
  8765. ) {
  8766. if (
  8767. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8768. z
  8769. ].tool.length
  8770. ) {
  8771. this.$message.error("请把工具添加完整");
  8772. cPan = 2;
  8773. break;
  8774. }
  8775. }
  8776. }
  8777. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8778. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8779. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8780. (ele) => {
  8781. return ele.value != "";
  8782. }
  8783. );
  8784. }
  8785. }
  8786. this.inputShow = true;
  8787. if (cPan == 2) {
  8788. this.steps--;
  8789. return;
  8790. }
  8791. let params = [
  8792. {
  8793. cid: this.cid,
  8794. chapters: JSON.stringify(this.unitJson),
  8795. uid: this.userid,
  8796. unitIndex: _unitIndex,
  8797. },
  8798. ];
  8799. this.ajax
  8800. .post(this.$store.state.api + "updateWorkNew4", params)
  8801. .then((res) => {
  8802. // this.$message({
  8803. // message: "修改成功",
  8804. // type: "success",
  8805. // });
  8806. this.courseId = this.cid;
  8807. this.addtips()
  8808. })
  8809. .catch((err) => {
  8810. this.$message.error("网络不佳");
  8811. console.error(err);
  8812. });
  8813. },
  8814. updateWork() {
  8815. let cPan = 1;
  8816. for (var i = 0; i < this.unitJson.length; i++) {
  8817. for (
  8818. var j = 0;
  8819. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8820. j++
  8821. ) {
  8822. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8823. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8824. if (
  8825. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8826. ) {
  8827. for (
  8828. var z = 0;
  8829. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8830. z++
  8831. ) {
  8832. if (
  8833. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8834. .length
  8835. ) {
  8836. this.$message.error("请把工具添加完整");
  8837. cPan = 2;
  8838. break;
  8839. }
  8840. }
  8841. }
  8842. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8843. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8844. i
  8845. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8846. return ele.value != "";
  8847. });
  8848. }
  8849. }
  8850. }
  8851. this.inputShow = true;
  8852. if (cPan == 2) {
  8853. this.steps--;
  8854. return;
  8855. }
  8856. for (var i = 0; i < this.unitJson.length; i++) {
  8857. delete this.unitJson[i].isUpdate;
  8858. }
  8859. let params = [
  8860. {
  8861. cid: this.cid,
  8862. title: this.courseName,
  8863. brief: this.courseText,
  8864. cover:
  8865. this.cover.length > 0
  8866. ? JSON.stringify(this.cover)
  8867. : JSON.stringify([
  8868. {
  8869. name: "noBanner.jpg",
  8870. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8871. uid: 1656409780264,
  8872. status: "success",
  8873. },
  8874. ]),
  8875. evaId: this.evalua,
  8876. astudent:
  8877. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8878. see: this.isTeacherSee == true ? 1 : 0,
  8879. chapters: JSON.stringify(this.unitJson),
  8880. template: this.myWord != "undefined" ? this.myWord : [],
  8881. uid: this.userid,
  8882. courseType: JSON.stringify(this.courseTypeId),
  8883. ateacher:
  8884. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8885. inviteCode: JSON.stringify(this.inviteCode),
  8886. refile: JSON.stringify(this.infoData),
  8887. reBrief: this.courseText2,
  8888. cpote: JSON.stringify(this.cpote),
  8889. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  8890. iresearch: this.isFileSearch ? 1 : 2,
  8891. },
  8892. ];
  8893. this.ajax
  8894. .post(this.$store.state.api + "updateWorkNew2AI3", params)
  8895. .then((res) => {
  8896. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8897. if (this.cidType == 1) {
  8898. this.$message({
  8899. message: "修改成功",
  8900. type: "success",
  8901. });
  8902. } else {
  8903. this.$message({
  8904. message: "新增成功",
  8905. type: "success",
  8906. });
  8907. }
  8908. }
  8909. this.number = this.nbOrder;
  8910. this.courseId = this.cid;
  8911. this.addtips()
  8912. })
  8913. .catch((err) => {
  8914. this.$message.error("网络不佳");
  8915. console.error(err);
  8916. });
  8917. },
  8918. insertWord() {
  8919. this.dialogVisible1 = true;
  8920. this.updateBoolean2 = false;
  8921. this.tTitle = "";
  8922. this.tdetail = "";
  8923. },
  8924. addWord() {
  8925. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8926. name: this.tTitle,
  8927. content: this.tdetail,
  8928. uid: this.guid(),
  8929. });
  8930. this.dialogVisible1 = false;
  8931. },
  8932. upWord() { },
  8933. selectWord(uid, i, c) {
  8934. this.dialogVisible1 = true;
  8935. this.updateBoolean2 = true;
  8936. if (
  8937. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8938. ) {
  8939. this.tTitle =
  8940. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8941. this.tdetail =
  8942. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8943. }
  8944. },
  8945. isAddPP() {
  8946. if (this.checkboxList.length > 0) {
  8947. this.$message({
  8948. message: "添加成功",
  8949. type: "success",
  8950. });
  8951. this.dialogVisible3 = false;
  8952. } else {
  8953. this.$message({
  8954. message: "请添加课程成员",
  8955. type: "error",
  8956. });
  8957. }
  8958. },
  8959. isAddClass() {
  8960. this.dialogVisibleClass = false;
  8961. },
  8962. isAddPPTeacher() {
  8963. this.dialogVisibleMember = false;
  8964. this.setMan();
  8965. },
  8966. getTipsTemplate(){
  8967. if(this.templateid){
  8968. let params = {
  8969. id: this.templateid
  8970. }
  8971. this.ajax
  8972. .get(this.$store.state.api + "selectTipsTemplateById", params)
  8973. .then((res) => {
  8974. if(res.data[0].length){
  8975. this.tipsJson = res.data[0][0]
  8976. this.aiJson = JSON.parse(res.data[0][0].tips)
  8977. this.$forceUpdate();
  8978. }
  8979. })
  8980. .catch((err) => { });
  8981. }
  8982. },
  8983. getTemplate() {
  8984. this.ajax
  8985. .get(this.$store.state.api + "getCourseTemplateT", "")
  8986. .then((res) => {
  8987. this.templateArray = res.data[0];
  8988. this.getTemplateOid();
  8989. this.$forceUpdate();
  8990. })
  8991. .catch((err) => { });
  8992. },
  8993. getTemplateOid() {
  8994. let params = {
  8995. oid: this.oid,
  8996. };
  8997. this.ajax
  8998. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8999. .then((res) => {
  9000. if (res.data[0].length) {
  9001. this.templateArray = [...res.data[0], ...this.templateArray];
  9002. }
  9003. this.getTemplateOrg();
  9004. this.$forceUpdate();
  9005. })
  9006. .catch((err) => { });
  9007. },
  9008. getTemplateOrg() {
  9009. let params = {
  9010. oid: this.org,
  9011. };
  9012. this.ajax
  9013. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9014. .then((res) => {
  9015. if (res.data[0].length) {
  9016. this.templateArray = [...res.data[0], ...this.templateArray];
  9017. }
  9018. this.$forceUpdate();
  9019. })
  9020. .catch((err) => { });
  9021. },
  9022. clearChoose() {
  9023. this.clearArray.splice(this.templateC.id, 1);
  9024. this.dialogVisible2 = false;
  9025. },
  9026. clearAttText() {
  9027. this.AttText = {
  9028. title: "",
  9029. text: "",
  9030. };
  9031. this.dialogVisible6 = false;
  9032. },
  9033. clearLine() {
  9034. this.line = "";
  9035. this.dialogVisible7 = false;
  9036. },
  9037. openTemplate() {
  9038. this.ctJson = {};
  9039. this.templateDialog = true;
  9040. },
  9041. checkctJson(json) {
  9042. if (this.ctJson.id == json.id) {
  9043. this.ctJson = {};
  9044. } else {
  9045. this.ctJson = json;
  9046. }
  9047. },
  9048. addTemplate(res) {
  9049. let _this = this;
  9050. let _res = [];
  9051. if (res.id == 1) {
  9052. _res = [
  9053. {
  9054. dyName: "", //单元标题
  9055. easy: 1,
  9056. chapterInfo: [
  9057. {
  9058. isread: false,
  9059. chapterid: this.guid(),
  9060. title: "",
  9061. courseName: "",
  9062. taskJson: [
  9063. {
  9064. task: "",
  9065. taskDetail: "",
  9066. chapterData: [],
  9067. toolText: "",
  9068. toolChoose: [
  9069. {
  9070. tool: [],
  9071. toolDetail: "",
  9072. toolType: 0,
  9073. askCount: 1,
  9074. askTitle: "",
  9075. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9076. },
  9077. ],
  9078. isShowTools: false,
  9079. askCount: 1,
  9080. isFold: 1,
  9081. askTitle: "",
  9082. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9083. checkJson: [{ checkCount: [], checkPerent: [] }],
  9084. homeworkList: [],
  9085. },
  9086. ],
  9087. itemCount: 1,
  9088. fileList1: [],
  9089. video: [],
  9090. testData: [],
  9091. pData: [],
  9092. templateArray: [],
  9093. },
  9094. ],
  9095. },
  9096. ];
  9097. this.updateCourseState(1);
  9098. } else if (res.id == 2) {
  9099. let stageData = [];
  9100. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9101. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9102. if (!iframe && !iframe2) {
  9103. this.$message.error("请使用AI共创生成");
  9104. return;
  9105. }
  9106. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9107. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9108. if (
  9109. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  9110. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  9111. ) {
  9112. this.$message.error("请使用AI共创生成");
  9113. return;
  9114. }
  9115. stageData = copyData
  9116. ? copyData.stageData
  9117. : copyData2
  9118. ? copyData2.stageData
  9119. : [""];
  9120. for (var i = 0; i < stageData.length; i++) {
  9121. _res.push({
  9122. dyName: stageData[i], //单元标题
  9123. chapterInfo: [
  9124. {
  9125. isread: false,
  9126. chapterid: this.guid(),
  9127. title: "",
  9128. courseName: "",
  9129. taskJson: [
  9130. {
  9131. task: "",
  9132. taskDetail: "",
  9133. chapterData: [],
  9134. toolText: "",
  9135. toolChoose: [
  9136. {
  9137. tool: [],
  9138. toolDetail: "",
  9139. toolType: 0,
  9140. askCount: 1,
  9141. askTitle: "",
  9142. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9143. },
  9144. ],
  9145. isShowTools: false,
  9146. askCount: 1,
  9147. isFold: 1,
  9148. askTitle: "",
  9149. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9150. checkJson: [{ checkCount: [], checkPerent: [] }],
  9151. homeworkList: [],
  9152. },
  9153. ],
  9154. itemCount: 1,
  9155. fileList1: [],
  9156. video: [],
  9157. testData: [],
  9158. pData: [],
  9159. templateArray: [],
  9160. },
  9161. ],
  9162. });
  9163. }
  9164. this.updateCourseState(1);
  9165. } else if (!Object.keys(res).length) {
  9166. this.$message.error("请选择模板");
  9167. retrun;
  9168. } else {
  9169. _res = JSON.parse(res.chapters);
  9170. this.updateCourseState(parseInt(res.state));
  9171. }
  9172. _this
  9173. .$confirm(
  9174. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9175. "提示",
  9176. {
  9177. confirmButtonText: "确定",
  9178. cancelButtonText: "取消",
  9179. type: "warning",
  9180. }
  9181. )
  9182. .then(() => {
  9183. _this.unitJson = _res;
  9184. _this.updateWork();
  9185. // _this.steps++;
  9186. _this.templateDialog = false;
  9187. setTimeout(() => {
  9188. this.checkEva(this.checkId);
  9189. setTimeout(() => {
  9190. this.checkEva(this.checkId);
  9191. }, 100);
  9192. }, 1000);
  9193. })
  9194. .catch(() => {
  9195. return;
  9196. });
  9197. },
  9198. checkTemplate(res) {
  9199. let _this = this;
  9200. _this
  9201. .$confirm(
  9202. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9203. "提示",
  9204. {
  9205. confirmButtonText: "确定",
  9206. cancelButtonText: "取消",
  9207. type: "warning",
  9208. }
  9209. )
  9210. .then(() => {
  9211. _this.unitJson = JSON.parse(res.chapters);
  9212. _this.steps++;
  9213. setTimeout(() => {
  9214. this.checkEva(this.checkId);
  9215. setTimeout(() => {
  9216. this.checkEva(this.checkId);
  9217. }, 100);
  9218. }, 1000);
  9219. })
  9220. .catch(() => {
  9221. return;
  9222. });
  9223. },
  9224. checkTemplate1(w) {
  9225. this.steps++;
  9226. },
  9227. checkTemplate2() {
  9228. let _this = this;
  9229. _this
  9230. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  9231. confirmButtonText: "确定",
  9232. cancelButtonText: "取消",
  9233. type: "warning",
  9234. })
  9235. .then(() => {
  9236. _this.unitIndex = 0;
  9237. _this.unitJson = [
  9238. {
  9239. dyName: "", //单元标题
  9240. chapterInfo: [
  9241. {
  9242. isread: false,
  9243. chapterid: this.guid(),
  9244. title: "",
  9245. courseName: "",
  9246. taskJson: [
  9247. {
  9248. task: "",
  9249. taskDetail: "",
  9250. chapterData: [],
  9251. toolText: "",
  9252. toolChoose: [
  9253. {
  9254. tool: [],
  9255. toolDetail: "",
  9256. toolType: 0,
  9257. askCount: 1,
  9258. askTitle: "",
  9259. askJson: [
  9260. { askstitle: "", askItem: 1, checkList: [] },
  9261. ],
  9262. },
  9263. ],
  9264. isShowTools: false,
  9265. askCount: 1,
  9266. isFold: 1,
  9267. askTitle: "",
  9268. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9269. checkJson: [{ checkCount: [], checkPerent: [] }],
  9270. homeworkList: [],
  9271. },
  9272. ],
  9273. itemCount: 1,
  9274. fileList1: [],
  9275. video: [],
  9276. testData: [],
  9277. pData: [],
  9278. templateArray: [],
  9279. },
  9280. ],
  9281. },
  9282. ];
  9283. this.steps++;
  9284. setTimeout(() => {
  9285. this.checkEva(this.checkId);
  9286. setTimeout(() => {
  9287. this.checkEva(this.checkId);
  9288. }, 100);
  9289. }, 1000);
  9290. this.updateWork();
  9291. })
  9292. .catch(() => {
  9293. return;
  9294. });
  9295. },
  9296. checkTemplate3() {
  9297. let _this = this;
  9298. _this
  9299. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  9300. confirmButtonText: "确定",
  9301. cancelButtonText: "取消",
  9302. type: "warning",
  9303. })
  9304. .then(() => {
  9305. _this.unitIndex = 0;
  9306. _this.unitJson = [
  9307. {
  9308. dyName: "", //单元标题
  9309. easy: 1,
  9310. chapterInfo: [
  9311. {
  9312. isread: false,
  9313. chapterid: this.guid(),
  9314. title: "",
  9315. courseName: "",
  9316. taskJson: [
  9317. {
  9318. task: "",
  9319. taskDetail: "",
  9320. chapterData: [],
  9321. toolText: "",
  9322. toolChoose: [
  9323. {
  9324. tool: [],
  9325. toolDetail: "",
  9326. toolType: 0,
  9327. askCount: 1,
  9328. askTitle: "",
  9329. askJson: [
  9330. { askstitle: "", askItem: 1, checkList: [] },
  9331. ],
  9332. },
  9333. ],
  9334. isShowTools: false,
  9335. askCount: 1,
  9336. isFold: 1,
  9337. askTitle: "",
  9338. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9339. checkJson: [{ checkCount: [], checkPerent: [] }],
  9340. homeworkList: [],
  9341. },
  9342. ],
  9343. itemCount: 1,
  9344. fileList1: [],
  9345. video: [],
  9346. testData: [],
  9347. pData: [],
  9348. templateArray: [],
  9349. },
  9350. ],
  9351. },
  9352. ];
  9353. // this.steps++;
  9354. this.updateWork();
  9355. })
  9356. .catch(() => {
  9357. return;
  9358. });
  9359. },
  9360. checkTemplate4() {
  9361. let _this = this;
  9362. _this
  9363. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9364. confirmButtonText: "确定",
  9365. cancelButtonText: "取消",
  9366. type: "warning",
  9367. })
  9368. .then(() => {
  9369. _this.unitIndex = 0;
  9370. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9371. this.steps++;
  9372. this.updateWork();
  9373. })
  9374. .catch(() => {
  9375. return;
  9376. });
  9377. },
  9378. wordNext() {
  9379. this.dialogVisible2 = false;
  9380. },
  9381. isAddOrUpdateAttText() {
  9382. if (this.AttTextType == 0) {
  9383. this.addAttTextMessage();
  9384. } else {
  9385. this.updateAttText();
  9386. }
  9387. },
  9388. isAddOrUpdateLine() {
  9389. if (!this.lineTitle) {
  9390. this.$message.error("请填写链接标题");
  9391. return;
  9392. }
  9393. if (this.lineType == 0) {
  9394. this.addLine();
  9395. } else {
  9396. this.updateLine();
  9397. }
  9398. },
  9399. addAttTextMessage() {
  9400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9401. this.taskCount
  9402. ].chapterData.push({
  9403. name: this.AttText.title,
  9404. url: this.AttText.text,
  9405. type: 6,
  9406. });
  9407. this.imgChange1(null, null, 6, this.taskCount);
  9408. this.dialogVisible6 = false;
  9409. },
  9410. selectAttText(itemTaskIndex, i) {
  9411. this.AttText.title =
  9412. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9413. itemTaskIndex
  9414. ].chapterData[i].name;
  9415. this.AttText.text =
  9416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9417. itemTaskIndex
  9418. ].chapterData[i].url;
  9419. this.taskCount = itemTaskIndex;
  9420. this.AttTextIndex = i;
  9421. this.AttTextType = 1;
  9422. this.dialogVisible6 = true;
  9423. },
  9424. updateAttText() {
  9425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9426. this.taskCount
  9427. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9429. this.taskCount
  9430. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9431. this.dialogVisible6 = false;
  9432. },
  9433. addLine() {
  9434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9435. this.lineCount
  9436. ].chapterData.push({
  9437. name: "链接",
  9438. title: this.lineTitle,
  9439. url: this.line,
  9440. type: 8,
  9441. });
  9442. this.imgChange1(null, null, 8, this.lineCount);
  9443. this.dialogVisible7 = false;
  9444. },
  9445. selectLine(itemTaskIndex, i) {
  9446. this.line =
  9447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9448. itemTaskIndex
  9449. ].chapterData[i].url;
  9450. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9451. itemTaskIndex
  9452. ].chapterData[i].title
  9453. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9454. .chapterData[i].title
  9455. : "";
  9456. this.taskCount = itemTaskIndex;
  9457. this.lineCount = i;
  9458. this.lineType = 1;
  9459. this.dialogVisible7 = true;
  9460. },
  9461. openUpdateSource(itemTaskIndex, i) {
  9462. this.sourceData = {};
  9463. let source =
  9464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9465. .chapterData[i];
  9466. this.sourceData[source.id] = {};
  9467. this.sourceData[source.id].name = source.title;
  9468. this.sourceData[source.id].url = source.url;
  9469. this.dialogVisibleSource = true;
  9470. this.updateSourcePan = true;
  9471. this.taskCount = itemTaskIndex;
  9472. this.lineCount = i;
  9473. },
  9474. updateLine() {
  9475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9476. this.taskCount
  9477. ].chapterData[this.lineCount].url = this.line;
  9478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9479. this.taskCount
  9480. ].chapterData[this.lineCount].title = this.lineTitle;
  9481. this.dialogVisible7 = false;
  9482. },
  9483. addPP() {
  9484. this.dialogVisible3 = true;
  9485. },
  9486. goTo(path) {
  9487. this.$router.push(path);
  9488. },
  9489. openTools(itemTaskIndex, i, toolIndex) {
  9490. this.toolIndex = toolIndex;
  9491. this.taskCount = itemTaskIndex;
  9492. if (i == 4) {
  9493. if (toolIndex == null) {
  9494. var a =
  9495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9496. .chapterData;
  9497. for (var i = 0; i < a.length; i++) {
  9498. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9499. this.askJson =
  9500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9501. itemTaskIndex
  9502. ].chapterData[i].askJson;
  9503. }
  9504. }
  9505. } else {
  9506. this.askJson = JSON.parse(
  9507. JSON.stringify(
  9508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9509. itemTaskIndex
  9510. ].toolChoose[toolIndex]
  9511. )
  9512. );
  9513. }
  9514. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9515. this.dialogVisible5 = true;
  9516. } else if (i == 45) {
  9517. if (
  9518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9519. .toolChoose[toolIndex].testJson
  9520. ) {
  9521. this.testJson = JSON.parse(
  9522. JSON.stringify(
  9523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9524. itemTaskIndex
  9525. ].toolChoose[toolIndex].testJson
  9526. )
  9527. );
  9528. } else {
  9529. var testJson = {
  9530. testCount: 1,
  9531. testTitle: "",
  9532. testJson: [
  9533. {
  9534. teststitle: "",
  9535. testItem: 1,
  9536. checkList: [],
  9537. timuList: [],
  9538. answer: [],
  9539. type: "1",
  9540. },
  9541. ],
  9542. };
  9543. this.testJson = testJson;
  9544. }
  9545. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9546. this.dialogVisibleChoice = true;
  9547. } else if (i == 47) {
  9548. if (
  9549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9550. .toolChoose[toolIndex].sentenceList
  9551. ) {
  9552. this.sentenceList = JSON.parse(
  9553. JSON.stringify(
  9554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9555. itemTaskIndex
  9556. ].toolChoose[toolIndex].sentenceList
  9557. )
  9558. );
  9559. } else {
  9560. var sentenceList = [
  9561. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9562. ];
  9563. this.sentenceList = sentenceList;
  9564. }
  9565. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9566. this.dialogVisibleSentence = true;
  9567. } else if (i == 48) {
  9568. if (
  9569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9570. .toolChoose[toolIndex].tableJson
  9571. ) {
  9572. this.tableJson = JSON.parse(
  9573. JSON.stringify(
  9574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9575. itemTaskIndex
  9576. ].toolChoose[toolIndex].tableJson
  9577. )
  9578. );
  9579. } else {
  9580. var tableJson = { text: "" };
  9581. this.tableJson = tableJson;
  9582. }
  9583. this.dialogVisibleTable = true;
  9584. } else if (i == 52) {
  9585. if (
  9586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9587. .toolChoose[toolIndex].wordJson
  9588. ) {
  9589. this.wordJson = JSON.parse(
  9590. JSON.stringify(
  9591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9592. itemTaskIndex
  9593. ].toolChoose[toolIndex].wordJson
  9594. )
  9595. );
  9596. } else {
  9597. var wordJson = { text: "" };
  9598. this.wordJson = wordJson;
  9599. }
  9600. this.dialogVisibleWord = true;
  9601. // else if (i == 50) {
  9602. // if (
  9603. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9604. // .toolChoose[toolIndex].uploadJson
  9605. // ) {
  9606. // this.uploadJson = JSON.parse(
  9607. // JSON.stringify(
  9608. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9609. // itemTaskIndex
  9610. // ].toolChoose[toolIndex].uploadJson
  9611. // )
  9612. // );
  9613. // } else {
  9614. // var uploadJson = [];
  9615. // this.uploadJson = uploadJson;
  9616. // }
  9617. // this.dialogVisibleMoreUpload = true;
  9618. // }
  9619. } else if (i == 10) {
  9620. if (
  9621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9622. .toolChoose[toolIndex].preTime
  9623. ) {
  9624. this.preTime = JSON.parse(
  9625. JSON.stringify(
  9626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9627. itemTaskIndex
  9628. ].toolChoose[toolIndex].preTime
  9629. )
  9630. );
  9631. } else {
  9632. var preTime = 0;
  9633. this.preTime = preTime;
  9634. }
  9635. this.dialogVisiblePreTime = true;
  9636. } else if (i == 49) {
  9637. if (
  9638. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9639. .toolChoose[toolIndex].groupJson
  9640. ) {
  9641. this.groupJson = JSON.parse(
  9642. JSON.stringify(
  9643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9644. itemTaskIndex
  9645. ].toolChoose[toolIndex].groupJson
  9646. )
  9647. );
  9648. } else {
  9649. var groupJson = {
  9650. group: [{ name: "第1组" }],
  9651. number: undefined,
  9652. islock: 1,
  9653. };
  9654. this.groupJson = groupJson;
  9655. }
  9656. this.dialogVisibleGroup = true;
  9657. } else if (i == 62) {
  9658. if (
  9659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9660. .toolChoose[toolIndex].videoJson
  9661. ) {
  9662. this.videoJson = JSON.parse(
  9663. JSON.stringify(
  9664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9665. itemTaskIndex
  9666. ].toolChoose[toolIndex].videoJson
  9667. )
  9668. );
  9669. } else {
  9670. var videoJson = {
  9671. video: "",
  9672. setting: [],
  9673. };
  9674. this.videoJson = videoJson;
  9675. }
  9676. this.dialogVisibleVideo = true;
  9677. } else if (i == 15) {
  9678. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9679. itemTaskIndex
  9680. ].toolChoose[toolIndex].answerQ
  9681. ? JSON.parse(
  9682. JSON.stringify(
  9683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9684. itemTaskIndex
  9685. ].toolChoose[toolIndex].answerQ
  9686. )
  9687. )
  9688. : "";
  9689. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9690. this.dialogVisible8 = true;
  9691. } else if (i == 40) {
  9692. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9693. itemTaskIndex
  9694. ].toolChoose[toolIndex].rateJson
  9695. ? JSON.parse(
  9696. JSON.stringify(
  9697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9698. itemTaskIndex
  9699. ].toolChoose[toolIndex].rateJson
  9700. )
  9701. )
  9702. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9703. this.selectSteps = 1;
  9704. this.dialogVisibleRate = true;
  9705. } else if (i == 42) {
  9706. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9707. itemTaskIndex
  9708. ].toolChoose[toolIndex].answerQ
  9709. ? JSON.parse(
  9710. JSON.stringify(
  9711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9712. itemTaskIndex
  9713. ].toolChoose[toolIndex].answerQ
  9714. )
  9715. )
  9716. : "";
  9717. this.dialogVisibleMp3 = true;
  9718. } else if (i == 41) {
  9719. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9720. itemTaskIndex
  9721. ].toolChoose[toolIndex].selectJson
  9722. ? JSON.parse(
  9723. JSON.stringify(
  9724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9725. itemTaskIndex
  9726. ].toolChoose[toolIndex].selectJson
  9727. )
  9728. )
  9729. : { url: "", select: [], answer: [] };
  9730. this.selectSteps = 1;
  9731. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9732. this.dialogVisibleSelect = true;
  9733. } else if (i == 3) {
  9734. top.postMessage(
  9735. {
  9736. tools: "3y",
  9737. cid: this.cid,
  9738. stage: this.unitIndex,
  9739. task: itemTaskIndex,
  9740. tool: toolIndex,
  9741. },
  9742. "*"
  9743. );
  9744. } else if (i == 1) {
  9745. top.postMessage(
  9746. {
  9747. tools: "1y",
  9748. cid: this.cid,
  9749. stage: this.unitIndex,
  9750. task: itemTaskIndex,
  9751. tool: toolIndex,
  9752. },
  9753. "*"
  9754. );
  9755. } else if (i == 57) {
  9756. top.postMessage(
  9757. {
  9758. tools: "57y",
  9759. cid: this.cid,
  9760. stage: this.unitIndex,
  9761. task: itemTaskIndex,
  9762. tool: toolIndex,
  9763. },
  9764. "*"
  9765. );
  9766. } else if (i == 69) {
  9767. this.englishList = {};
  9768. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9769. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9770. ? JSON.parse(
  9771. JSON.stringify(
  9772. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9773. itemTaskIndex
  9774. ].toolChoose[toolIndex].englishList
  9775. )
  9776. )
  9777. : {};
  9778. this.$forceUpdate();
  9779. this.englishDialogVisible = true;
  9780. } else if (i == 70) {
  9781. this.englishVoiceJson = {};
  9782. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9783. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9784. ? JSON.parse(
  9785. JSON.stringify(
  9786. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9787. itemTaskIndex
  9788. ].toolChoose[toolIndex].englishVoiceJson
  9789. )
  9790. )
  9791. : {
  9792. title: '',
  9793. detail: '',
  9794. array: []
  9795. };
  9796. // {
  9797. // time: "",
  9798. // class: "",
  9799. // difficulty: 0,
  9800. // topic: "",
  9801. // isShow: false,
  9802. // eva: 0,
  9803. // aiEva: {
  9804. // isAiEva: false,
  9805. // aiEvaChoose: [],
  9806. // },
  9807. // allfType: [],
  9808. // englishJson: {},
  9809. // };
  9810. this.$forceUpdate();
  9811. this.EnglishVoiceDialog = true;
  9812. }
  9813. },
  9814. setEnglishVoiceJson(val) {
  9815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9816. this.taskCount
  9817. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9818. JSON.stringify(val)
  9819. );
  9820. this.$forceUpdate();
  9821. if (
  9822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9823. .toolChoose[this.toolIndex].tool != 70
  9824. ) {
  9825. this.addTools(70, this.taskCount, this.toolIndex);
  9826. }
  9827. },
  9828. chapAddTools(i) {
  9829. if (this.chapTools[0].tools.length == 0) {
  9830. this.chapTools[0].tools.push(i);
  9831. } else {
  9832. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9833. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9834. } else {
  9835. this.chapTools[0].tools.push(i);
  9836. }
  9837. }
  9838. this.$forceUpdate();
  9839. },
  9840. addChaptersDataTools() {
  9841. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9843. this.chapCount
  9844. ].chapterData.push({
  9845. name: this.chapTools[0].toolDetail,
  9846. url: this.chapTools[0].tools,
  9847. type: 7,
  9848. askJson: this.askJson,
  9849. });
  9850. } else {
  9851. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9852. this.chapCount
  9853. ].chapterData.push({
  9854. name: this.chapTools[0].toolDetail,
  9855. url: this.chapTools[0].tools,
  9856. type: 7,
  9857. });
  9858. }
  9859. this.imgChange1(null, null, 7, this.chapCount);
  9860. this.dialogVisible4 = false;
  9861. },
  9862. addTools(i, itemTaskIndex, toolIndex) {
  9863. // if (
  9864. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9865. // .toolChoose[toolIndex].tool.length == 0
  9866. // ) {
  9867. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9868. // itemTaskIndex
  9869. // ].toolChoose[toolIndex].tool.push(i);
  9870. // } else {
  9871. // if (
  9872. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9873. // itemTaskIndex
  9874. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9875. // ) {
  9876. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9877. // itemTaskIndex
  9878. // ].toolChoose[toolIndex].tool.splice(
  9879. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9880. // itemTaskIndex
  9881. // ].toolChoose[toolIndex].tool.indexOf(i),
  9882. // 1
  9883. // );
  9884. // } else {
  9885. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9886. // itemTaskIndex
  9887. // ].toolChoose[toolIndex].tool.push(i);
  9888. // }
  9889. // console.log(
  9890. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9891. // .toolChoose[toolIndex].tool
  9892. // );
  9893. // }
  9894. if (i == 4) {
  9895. if (
  9896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9897. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9898. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9899. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9900. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9901. .toolChoose[toolIndex].askJson[0].checkList < 2
  9902. ) {
  9903. this.openTools(itemTaskIndex, 4, toolIndex);
  9904. // this.$message({
  9905. // message: "请填写完整问卷内容",
  9906. // type: "error",
  9907. // });
  9908. return;
  9909. }
  9910. }
  9911. if (i == 45) {
  9912. if (
  9913. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9914. .toolChoose[toolIndex].testJson ||
  9915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9916. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9917. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9918. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9919. ) {
  9920. this.openTools(itemTaskIndex, 45, toolIndex);
  9921. // this.$message({
  9922. // message: "请填写完整问卷内容",
  9923. // type: "error",
  9924. // });
  9925. return;
  9926. }
  9927. }
  9928. if (i == 47) {
  9929. if (
  9930. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9931. .toolChoose[toolIndex].sentenceList ||
  9932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9933. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9934. ) {
  9935. this.openTools(itemTaskIndex, 47, toolIndex);
  9936. return;
  9937. }
  9938. }
  9939. if (i == 69) {
  9940. if (
  9941. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9942. .toolChoose[toolIndex].englishList
  9943. ) {
  9944. this.openTools(itemTaskIndex, 69, toolIndex);
  9945. return;
  9946. }
  9947. }
  9948. if (i == 70) {
  9949. if (
  9950. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9951. .toolChoose[toolIndex].englishVoiceJson
  9952. ) {
  9953. this.openTools(itemTaskIndex, 70, toolIndex);
  9954. return;
  9955. }
  9956. }
  9957. // if (i == 48) {
  9958. // if (
  9959. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9960. // .toolChoose[toolIndex].tableJson
  9961. // ) {
  9962. // this.openTools(itemTaskIndex, 48, toolIndex);
  9963. // return;
  9964. // }
  9965. // }
  9966. // if (i == 50) {
  9967. // if (
  9968. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9969. // .toolChoose[toolIndex].uploadJson
  9970. // ) {
  9971. // this.openTools(itemTaskIndex, 50, toolIndex);
  9972. // return;
  9973. // }
  9974. // }
  9975. if (i == 49) {
  9976. if (
  9977. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9978. .toolChoose[toolIndex].groupJson
  9979. ) {
  9980. this.openTools(itemTaskIndex, 49, toolIndex);
  9981. return;
  9982. }
  9983. }
  9984. if (i == 62) {
  9985. if (
  9986. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9987. .toolChoose[toolIndex].videoJson
  9988. ) {
  9989. this.openTools(itemTaskIndex, 62, toolIndex);
  9990. return;
  9991. }
  9992. }
  9993. if (i == 15) {
  9994. if (
  9995. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9996. .toolChoose[toolIndex].answerQ ||
  9997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9998. .toolChoose[toolIndex].answerQ == ""
  9999. ) {
  10000. this.openTools(itemTaskIndex, 15, toolIndex);
  10001. // this.$message({
  10002. // message: "请填写问答内容",
  10003. // type: "error",
  10004. // });
  10005. return;
  10006. }
  10007. }
  10008. if (i == 40) {
  10009. if (
  10010. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10011. .toolChoose[toolIndex].rateJson ||
  10012. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10013. .toolChoose[toolIndex].rateJson.length
  10014. ) {
  10015. this.openTools(itemTaskIndex, 40, toolIndex);
  10016. return;
  10017. }
  10018. }
  10019. if (i == 41) {
  10020. if (
  10021. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10022. .toolChoose[toolIndex].selectJson ||
  10023. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10024. .toolChoose[toolIndex].selectJson.url == "" ||
  10025. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10026. .toolChoose[toolIndex].selectJson.select.length ||
  10027. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10028. .toolChoose[toolIndex].selectJson.answer.length
  10029. ) {
  10030. this.openTools(itemTaskIndex, 41, toolIndex);
  10031. return;
  10032. }
  10033. }
  10034. if (i == 42) {
  10035. if (
  10036. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10037. .toolChoose[toolIndex].answerQ ||
  10038. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10039. .toolChoose[toolIndex].answerQ == ""
  10040. ) {
  10041. this.openTools(itemTaskIndex, 42, toolIndex);
  10042. return;
  10043. }
  10044. }
  10045. if (
  10046. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10047. .toolChoose[toolIndex].tool.length > 0
  10048. ) {
  10049. if (
  10050. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10051. itemTaskIndex
  10052. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  10053. ) {
  10054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10055. itemTaskIndex
  10056. ].toolChoose[toolIndex].tool.splice(
  10057. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10058. itemTaskIndex
  10059. ].toolChoose[toolIndex].tool.indexOf(i),
  10060. 1
  10061. );
  10062. } else {
  10063. // this.$message({
  10064. // message: "每个工具只能添加一个",
  10065. // type: "error",
  10066. // });
  10067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10068. itemTaskIndex
  10069. ].toolChoose[toolIndex].tool = [];
  10070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10071. itemTaskIndex
  10072. ].toolChoose[toolIndex].tool.push(i);
  10073. }
  10074. } else {
  10075. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10076. itemTaskIndex
  10077. ].toolChoose[toolIndex].tool.push(i);
  10078. }
  10079. this.$forceUpdate();
  10080. },
  10081. addAskList(index) {
  10082. this.askJson.askJson.splice(index + 1, 0, {
  10083. askstitle: "",
  10084. askItem: 1,
  10085. checkList: [],
  10086. });
  10087. this.askJson.askCount++;
  10088. },
  10089. addTestList(index) {
  10090. this.testJson.testJson.splice(index + 1, 0, {
  10091. teststitle: "",
  10092. testItem: 1,
  10093. checkList: [],
  10094. timuList: [],
  10095. answer: [],
  10096. type: "1",
  10097. });
  10098. this.testJson.testCount++;
  10099. },
  10100. deleteAskList(index) {
  10101. if (
  10102. !this.askJson.askJson[index].askstitle &&
  10103. this.askJson.askJson[index].askItem == 1 &&
  10104. !this.askJson.askJson[index].checkList[0]
  10105. ) {
  10106. this.askJson.askJson.splice(index, 1);
  10107. this.askJson.askCount--;
  10108. } else {
  10109. let _this = this;
  10110. _this
  10111. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10112. confirmButtonText: "确定",
  10113. cancelButtonText: "取消",
  10114. type: "warning",
  10115. })
  10116. .then(() => {
  10117. _this.askJson.askJson.splice(index, 1);
  10118. _this.askJson.askCount--;
  10119. })
  10120. .catch(() => {
  10121. return;
  10122. });
  10123. }
  10124. },
  10125. deleteTestList(index) {
  10126. if (
  10127. !this.testJson.testJson[index].teststitle &&
  10128. this.testJson.testJson[index].testItem == 1 &&
  10129. !this.testJson.testJson[index].checkList[0]
  10130. ) {
  10131. this.testJson.testJson.splice(index, 1);
  10132. this.testJson.testCount--;
  10133. } else {
  10134. let _this = this;
  10135. _this
  10136. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10137. confirmButtonText: "确定",
  10138. cancelButtonText: "取消",
  10139. type: "warning",
  10140. })
  10141. .then(() => {
  10142. _this.testJson.testJson.splice(index, 1);
  10143. _this.testJson.testCount--;
  10144. })
  10145. .catch(() => {
  10146. return;
  10147. });
  10148. }
  10149. },
  10150. askMove(type, index) {
  10151. if (type == 1) {
  10152. if (index > 0) {
  10153. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  10154. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10155. this.askJson.askJson[index - 1] = b;
  10156. this.askJson.askJson[index] = a;
  10157. }
  10158. } else {
  10159. if (index < this.askJson.askJson.length - 1) {
  10160. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  10161. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10162. this.askJson.askJson[index + 1] = b;
  10163. this.askJson.askJson[index] = a;
  10164. }
  10165. }
  10166. this.$forceUpdate();
  10167. },
  10168. checkMove(type, index, checkIndex) {
  10169. if (type == 1) {
  10170. if (checkIndex > 0) {
  10171. let a = JSON.parse(
  10172. JSON.stringify(
  10173. this.askJson.askJson[index].checkList[checkIndex - 1]
  10174. )
  10175. );
  10176. let b = JSON.parse(
  10177. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10178. );
  10179. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  10180. this.askJson.askJson[index].checkList[checkIndex] = a;
  10181. }
  10182. } else {
  10183. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  10184. let a = JSON.parse(
  10185. JSON.stringify(
  10186. this.askJson.askJson[index].checkList[checkIndex + 1]
  10187. )
  10188. );
  10189. let b = JSON.parse(
  10190. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10191. );
  10192. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  10193. this.askJson.askJson[index].checkList[checkIndex] = a;
  10194. }
  10195. }
  10196. this.$forceUpdate();
  10197. },
  10198. testMove(type, index) {
  10199. if (type == 1) {
  10200. if (index > 0) {
  10201. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  10202. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10203. this.testJson.testJson[index - 1] = b;
  10204. this.testJson.testJson[index] = a;
  10205. }
  10206. } else {
  10207. if (index < this.testJson.testJson.length - 1) {
  10208. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  10209. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10210. this.testJson.testJson[index + 1] = b;
  10211. this.testJson.testJson[index] = a;
  10212. }
  10213. }
  10214. this.$forceUpdate();
  10215. },
  10216. tcheckMove(type, index, checkIndex) {
  10217. if (type == 1) {
  10218. if (checkIndex > 0) {
  10219. let a = JSON.parse(
  10220. JSON.stringify(
  10221. this.testJson.testJson[index].checkList[checkIndex - 1]
  10222. )
  10223. );
  10224. let b = JSON.parse(
  10225. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10226. );
  10227. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  10228. this.testJson.testJson[index].checkList[checkIndex] = a;
  10229. }
  10230. } else {
  10231. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  10232. let a = JSON.parse(
  10233. JSON.stringify(
  10234. this.testJson.testJson[index].checkList[checkIndex + 1]
  10235. )
  10236. );
  10237. let b = JSON.parse(
  10238. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10239. );
  10240. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  10241. this.testJson.testJson[index].checkList[checkIndex] = a;
  10242. }
  10243. }
  10244. this.$forceUpdate();
  10245. },
  10246. addcheckList(json, index) {
  10247. // json.checkList.length++;
  10248. json.checkList.splice(index + 1, 0, "");
  10249. json.askItem++;
  10250. this.$forceUpdate();
  10251. },
  10252. deletecheckList(json, index) {
  10253. // json.checkList.length--;
  10254. json.checkList.splice(index, 1);
  10255. json.askItem--;
  10256. this.$forceUpdate();
  10257. },
  10258. addTcheckList(json, index) {
  10259. // json.checkList.length++;
  10260. json.checkList.splice(index + 1, 0, "");
  10261. json.testItem++;
  10262. this.$forceUpdate();
  10263. },
  10264. deleteTcheckList(json, index) {
  10265. // json.checkList.length--;
  10266. json.checkList.splice(index, 1);
  10267. json.testItem--;
  10268. this.$forceUpdate();
  10269. },
  10270. checkTestType(type, json) {
  10271. json.type = type;
  10272. setTimeout(() => {
  10273. json.answer = [];
  10274. }, 100);
  10275. },
  10276. checkAskType(type, json) {
  10277. json.type = type;
  10278. // json.checkList = [];
  10279. this.$forceUpdate();
  10280. },
  10281. addSelectList(json) {
  10282. json.select.push("");
  10283. json.answer.push("");
  10284. },
  10285. deleteSelectList(json) {
  10286. // json.select.length--;
  10287. // json.answer.length--;
  10288. json.select.splice(json.select.length - 1, 1);
  10289. json.answer.splice(json.answer.length - 1, 1);
  10290. },
  10291. addAsk() {
  10292. if (this.askJson.askTitle === "") {
  10293. this.$message.error("标题不能为空!");
  10294. return;
  10295. }
  10296. var aj = this.askJson.askJson;
  10297. var b = 1;
  10298. for (var i = 0; i < aj.length; i++) {
  10299. if (aj[i].askstitle === "") {
  10300. var a = 1;
  10301. for (let index = 0; index < aj[i].askItem; index++) {
  10302. const element = aj[i].checkList[index]
  10303. ? aj[i].checkList[index]
  10304. : "";
  10305. if (element != "") {
  10306. b++;
  10307. this.$message.error(`请将题目${i + 1}填写完整。`);
  10308. return;
  10309. } else {
  10310. a++;
  10311. }
  10312. }
  10313. if (b == 1) {
  10314. this.$message.error("至少填写一个问题");
  10315. return;
  10316. }
  10317. } else if (aj[i].askstitle != "") {
  10318. for (let index = 0; index < aj[i].askItem; index++) {
  10319. const element = aj[i].checkList[index]
  10320. ? aj[i].checkList[index]
  10321. : "";
  10322. var index = 0;
  10323. for (var z = 0; z < aj[i].checkList.length; z++) {
  10324. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10325. if (checkC != "") {
  10326. index++;
  10327. } else {
  10328. this.$message.error(`题目${i + 1}选项不能为空!`);
  10329. return;
  10330. }
  10331. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10332. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10333. if (checkC == checkC2) {
  10334. this.$message.error(
  10335. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10336. );
  10337. return;
  10338. }
  10339. }
  10340. }
  10341. b++;
  10342. if (index < 2) {
  10343. this.$message.error("每道题目至少需要设置2个选项。");
  10344. return;
  10345. }
  10346. }
  10347. }
  10348. }
  10349. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  10350. var elc = el.checkList.filter((element) => {
  10351. return element != "";
  10352. });
  10353. return el.askstitle != "" && elc.length != 0;
  10354. });
  10355. if (!this.dialogVisible4) {
  10356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10357. this.taskCount
  10358. ].toolChoose[this.toolIndex] = this.askJson;
  10359. }
  10360. this.dialogVisible5 = false;
  10361. if (
  10362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10363. .toolChoose[this.toolIndex].tool != 4
  10364. ) {
  10365. this.addTools(4, this.taskCount, this.toolIndex);
  10366. }
  10367. },
  10368. addTest() {
  10369. // if (this.testJson.testTitle === "") {
  10370. // this.$message.error("标题不能为空!");
  10371. // return;
  10372. // }
  10373. var aj = this.testJson.testJson;
  10374. var b = 1;
  10375. for (var i = 0; i < aj.length; i++) {
  10376. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  10377. var a = 1;
  10378. for (let index = 0; index < aj[i].testItem; index++) {
  10379. const element = aj[i].checkList[index]
  10380. ? aj[i].checkList[index]
  10381. : "";
  10382. if (element != "") {
  10383. b++;
  10384. this.$message.error(`请将题目${i + 1}填写完整。`);
  10385. return;
  10386. } else {
  10387. a++;
  10388. }
  10389. }
  10390. if (b == 1) {
  10391. this.$message.error("至少填写一个问题");
  10392. return;
  10393. }
  10394. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10395. for (let index = 0; index < aj[i].testItem; index++) {
  10396. const element = aj[i].checkList[index]
  10397. ? aj[i].checkList[index]
  10398. : "";
  10399. var index = 0;
  10400. for (var z = 0; z < aj[i].checkList.length; z++) {
  10401. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10402. if (checkC != "") {
  10403. index++;
  10404. } else {
  10405. this.$message.error(`题目${i + 1}选项不能为空!`);
  10406. return;
  10407. }
  10408. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10409. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10410. if (checkC == checkC2) {
  10411. this.$message.error(
  10412. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10413. );
  10414. return;
  10415. }
  10416. }
  10417. }
  10418. b++;
  10419. if (index < 2) {
  10420. this.$message.error("每道题目至少需要设置2个选项。");
  10421. return;
  10422. }
  10423. if (
  10424. (aj[i].type == "2" && !aj[i].answer.length) ||
  10425. (aj[i].type == "1" &&
  10426. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  10427. (aj[i].answer !== 0 && !aj[i].answer)))
  10428. ) {
  10429. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  10430. return;
  10431. }
  10432. }
  10433. }
  10434. }
  10435. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10436. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10437. var elc = el.checkList.filter((element) => {
  10438. return element != "";
  10439. });
  10440. return (
  10441. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10442. );
  10443. });
  10444. isTestJson.testCount = isTestJson.testJson.length;
  10445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10446. this.taskCount
  10447. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10448. this.dialogVisibleChoice = false;
  10449. if (
  10450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10451. .toolChoose[this.toolIndex].tool != 45
  10452. ) {
  10453. this.addTools(45, this.taskCount, this.toolIndex);
  10454. }
  10455. },
  10456. addVideoJson(videoJson) {
  10457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10458. this.taskCount
  10459. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10460. this.dialogVisibleVideo = false;
  10461. if (
  10462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10463. .toolChoose[this.toolIndex].tool != 62
  10464. ) {
  10465. this.addTools(62, this.taskCount, this.toolIndex);
  10466. }
  10467. },
  10468. //自动获取剪贴板
  10469. pasteOption() {
  10470. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10471. if (!iframe) {
  10472. this.$message.error("请使用AI共创生成题目");
  10473. return;
  10474. }
  10475. let copyData = iframe.contentWindow.copyData;
  10476. if (!copyData || !copyData.selectData.length) {
  10477. this.$message.error("请使用AI共创生成题目");
  10478. return;
  10479. }
  10480. let selectData = copyData.selectData;
  10481. for (var i = 0; i < selectData.length; i++) {
  10482. let answer = 0;
  10483. switch (selectData[i].answer[0]) {
  10484. case "A":
  10485. answer = 0;
  10486. break;
  10487. case "B":
  10488. answer = 1;
  10489. break;
  10490. case "C":
  10491. answer = 2;
  10492. break;
  10493. case "D":
  10494. answer = 3;
  10495. break;
  10496. case "E":
  10497. answer = 4;
  10498. break;
  10499. default:
  10500. break;
  10501. }
  10502. this.testJson.testJson.push({
  10503. teststitle: selectData[i].subject,
  10504. testItem: selectData[i].options.length,
  10505. checkList: selectData[i].options,
  10506. timuList: [],
  10507. answer: answer,
  10508. type: "1",
  10509. });
  10510. this.testJson.testCount++;
  10511. }
  10512. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10513. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10514. var elc = el.checkList.filter((element) => {
  10515. return element != "";
  10516. });
  10517. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10518. });
  10519. isTestJson.testCount = isTestJson.testJson.length;
  10520. if (!isTestJson.testCount) {
  10521. return;
  10522. }
  10523. this.testJson = isTestJson;
  10524. this.$forceUpdate();
  10525. },
  10526. pasteTask(taskJson) {
  10527. let stageTasksData = [];
  10528. if (taskJson) {
  10529. stageTasksData = taskJson;
  10530. } else {
  10531. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10532. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10533. if (!iframe && !iframe2) {
  10534. this.$message.error("请使用AI共创生成");
  10535. return;
  10536. }
  10537. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10538. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10539. if (
  10540. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10541. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10542. ) {
  10543. this.$message.error("请使用AI共创生成");
  10544. return;
  10545. }
  10546. stageTasksData = copyData
  10547. ? copyData.tasksData
  10548. : copyData2
  10549. ? copyData2.tasksData
  10550. : [{ taskName: "", taskDecs: "" }];
  10551. }
  10552. let taskA = [];
  10553. let tasks = stageTasksData;
  10554. for (var j = 0; j < tasks.length; j++) {
  10555. taskA.push({
  10556. task: tasks[j].taskName,
  10557. taskDetail: tasks[j].taskDecs,
  10558. chapterData: [],
  10559. toolText: "",
  10560. toolChoose: [
  10561. {
  10562. tool: [],
  10563. toolDetail: "",
  10564. toolType: 0,
  10565. askCount: 1,
  10566. askTitle: "",
  10567. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10568. },
  10569. ],
  10570. isShowTools: false,
  10571. askCount: 1,
  10572. isFold: 1,
  10573. askTitle: "",
  10574. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10575. checkJson: [{ checkCount: [], checkPerent: [] }],
  10576. homeworkList: [],
  10577. });
  10578. }
  10579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10580. this.$forceUpdate();
  10581. },
  10582. pasteStage(stageJson) {
  10583. let stageData = [];
  10584. if (stageJson) {
  10585. stageData = stageJson;
  10586. } else {
  10587. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10588. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10589. if (!iframe && !iframe2) {
  10590. this.$message.error("请使用AI共创生成");
  10591. return;
  10592. }
  10593. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10594. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10595. if (
  10596. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10597. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10598. ) {
  10599. this.$message.error("请使用AI共创生成");
  10600. return;
  10601. }
  10602. stageData = copyData
  10603. ? copyData.stageData
  10604. : copyData2
  10605. ? copyData2.stageData
  10606. : [""];
  10607. }
  10608. let stage = [];
  10609. for (var i = 0; i < stageData.length; i++) {
  10610. stage.push({
  10611. dyName: stageData[i], //单元标题
  10612. chapterInfo: [
  10613. {
  10614. isread: false,
  10615. chapterid: this.guid(),
  10616. title: "",
  10617. courseName: "",
  10618. taskJson: [
  10619. {
  10620. task: "",
  10621. taskDetail: "",
  10622. chapterData: [],
  10623. toolText: "",
  10624. toolChoose: [
  10625. {
  10626. tool: [],
  10627. toolDetail: "",
  10628. toolType: 0,
  10629. askCount: 1,
  10630. askTitle: "",
  10631. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10632. },
  10633. ],
  10634. isShowTools: false,
  10635. askCount: 1,
  10636. isFold: 1,
  10637. askTitle: "",
  10638. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10639. checkJson: [{ checkCount: [], checkPerent: [] }],
  10640. homeworkList: [],
  10641. },
  10642. ],
  10643. itemCount: 1,
  10644. fileList1: [],
  10645. video: [],
  10646. testData: [],
  10647. pData: [],
  10648. templateArray: [],
  10649. },
  10650. ],
  10651. });
  10652. }
  10653. let _this = this;
  10654. if (stageJson) {
  10655. if (!_this.cid) {
  10656. _this.unitJson = stage;
  10657. } else {
  10658. _this.unitIndex = 0;
  10659. _this.unitJson = stage;
  10660. _this.updateWork();
  10661. }
  10662. } else {
  10663. _this
  10664. .$confirm(
  10665. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10666. "提示",
  10667. {
  10668. confirmButtonText: "确定",
  10669. cancelButtonText: "取消",
  10670. type: "warning",
  10671. }
  10672. )
  10673. .then(() => {
  10674. _this.unitIndex = 0;
  10675. _this.unitJson = stage;
  10676. // _this.steps++;
  10677. _this.updateWork();
  10678. })
  10679. .catch(() => {
  10680. return;
  10681. });
  10682. }
  10683. },
  10684. openStageBox() {
  10685. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10686. this.dialogVisibleStageChange = true;
  10687. },
  10688. updateChange() {
  10689. this.$confirm(
  10690. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10691. "提示",
  10692. {
  10693. confirmButtonText: "确定",
  10694. cancelButtonText: "取消",
  10695. type: "warning",
  10696. }
  10697. )
  10698. .then(() => {
  10699. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10700. this.updateWork();
  10701. this.dialogVisibleStageChange = false;
  10702. })
  10703. .catch(() => {
  10704. return;
  10705. });
  10706. },
  10707. addAnswer() {
  10708. if (this.answerQ == "") {
  10709. this.$message.error("请输入您想要问的问题");
  10710. return;
  10711. }
  10712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10713. this.taskCount
  10714. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10715. this.dialogVisible8 = false;
  10716. if (
  10717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10718. .toolChoose[this.toolIndex].tool != 15
  10719. ) {
  10720. this.addTools(15, this.taskCount, this.toolIndex);
  10721. }
  10722. },
  10723. addMp3Answer() {
  10724. if (this.answerQ == "") {
  10725. this.$message.error("请输入您想要回答的问题");
  10726. return;
  10727. }
  10728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10729. this.taskCount
  10730. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10731. this.dialogVisibleMp3 = false;
  10732. },
  10733. addRateAnswer() {
  10734. var a = 1;
  10735. for (var i = 0; i < this.rateJson.length; i++) {
  10736. if (this.rateJson[i].value == "") {
  10737. a = 2;
  10738. break;
  10739. }
  10740. }
  10741. if (a == 2) {
  10742. this.$message.error("请把评价信息填写完整");
  10743. return;
  10744. }
  10745. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10746. this.taskCount
  10747. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10748. this.dialogVisibleRate = false;
  10749. if (
  10750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10751. .toolChoose[this.toolIndex].tool != 40
  10752. ) {
  10753. this.addTools(40, this.taskCount, this.toolIndex);
  10754. }
  10755. },
  10756. addSelectAnswer() {
  10757. if (this.selectJson.url == "") {
  10758. this.$message.error("请上传题目");
  10759. return;
  10760. }
  10761. if (!this.selectJson.select.length) {
  10762. this.$message.error("请添加选项");
  10763. return;
  10764. }
  10765. if (!this.selectJson.answer.length) {
  10766. this.$message.error("请设置答案");
  10767. return;
  10768. }
  10769. var a = 1;
  10770. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10771. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10772. a = 2;
  10773. }
  10774. }
  10775. if (a == 2) {
  10776. this.$message.error("请设置答案");
  10777. return;
  10778. }
  10779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10780. this.taskCount
  10781. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10782. this.dialogVisibleSelect = false;
  10783. if (
  10784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10785. .toolChoose[this.toolIndex].tool != 41
  10786. ) {
  10787. this.addTools(41, this.taskCount, this.toolIndex);
  10788. }
  10789. },
  10790. nextSelectSteps() {
  10791. if (this.selectJson.url == "") {
  10792. this.$message.error("请上传题目");
  10793. return;
  10794. }
  10795. if (!this.selectJson.select.length) {
  10796. this.$message.error("请添加选项");
  10797. return;
  10798. } else {
  10799. for (var z = 0; z < this.selectJson.select.length; z++) {
  10800. let checkC = this.selectJson.select[z];
  10801. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10802. let checkC2 = this.selectJson.select[z2];
  10803. if (checkC == checkC2) {
  10804. this.$message.error(
  10805. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10806. );
  10807. return;
  10808. }
  10809. }
  10810. }
  10811. }
  10812. var a = 1;
  10813. for (var i = 0; i < this.selectJson.select.length; i++) {
  10814. if (!this.selectJson.select[i]) {
  10815. a = 2;
  10816. }
  10817. }
  10818. if (a == 2) {
  10819. this.$message.error("添加的选项不能为空");
  10820. return;
  10821. }
  10822. this.selectSteps++;
  10823. },
  10824. selectCourseDetail() {
  10825. if (this.cid == "" || this.cid == undefined) {
  10826. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10827. this.isTeacherSee = true;
  10828. }
  10829. console.log("这是新增课程");
  10830. this.selectAllType();
  10831. } else {
  10832. this.isOutline = true
  10833. this.isOutline2 = true
  10834. this.cpoteType = 4
  10835. this.cidType = 1;
  10836. let params = {
  10837. cid: this.cid,
  10838. };
  10839. this.ajax
  10840. .get(this.$store.state.api + "select_course_detail", params)
  10841. .then((res) => {
  10842. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10843. this.courseState = res.data[0][0].state;
  10844. for (var j = 0; j < this.unitJson.length; j++) {
  10845. for (
  10846. var k = 0;
  10847. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10848. k++
  10849. ) {
  10850. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10851. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10852. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10853. : [];
  10854. let _chapterData = [];
  10855. for (
  10856. var c = 0;
  10857. c <
  10858. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10859. .length;
  10860. c++
  10861. ) {
  10862. if (
  10863. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10864. ) {
  10865. _chapterData.push(
  10866. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10867. );
  10868. }
  10869. }
  10870. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10871. _chapterData;
  10872. }
  10873. }
  10874. this.$forceUpdate();
  10875. this.courseName = res.data[0][0].title;
  10876. this.courseText = res.data[0][0].brief;
  10877. this.courseText2 = res.data[0][0].reBrief;
  10878. this.evalua = res.data[0][0].evaId;
  10879. this.cover = JSON.parse(res.data[0][0].cover);
  10880. this.noneBtnImg = this.cover.length >= 1;
  10881. if (res.data[0][0].refile) {
  10882. this.infoData = JSON.parse(res.data[0][0].refile)
  10883. }
  10884. // this.checkboxList =
  10885. // res.data[0][0].course_student.length > 0
  10886. // ? JSON.parse(res.data[0][0].course_student)
  10887. // : [];
  10888. this.checkboxList2 = res.data[0][0].juri
  10889. ? res.data[0][0].juri.split(",")
  10890. : [];
  10891. this.inviteCode = [];
  10892. for (var i = 0; i < res.data[2].length; i++) {
  10893. this.inviteCode.push({
  10894. cid: res.data[2][i].classid,
  10895. ic: res.data[2][i].code,
  10896. });
  10897. }
  10898. this.checkboxList3 = res.data[0][0].course_teacher
  10899. ? res.data[0][0].course_teacher.split(",")
  10900. : [];
  10901. // this.isTeacherSee =
  10902. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10903. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10904. this.myWord = res.data[0][0].template;
  10905. this.templateC.id = "123";
  10906. this.courseUserid = res.data[0][0].userid;
  10907. // if(this.courseUserid == this.userid){
  10908. // this.InviteChange(this.checkboxList2)
  10909. // }
  10910. this.nbOrder = res.data[0][0].ordernumber;
  10911. this.courseTypeId = [];
  10912. for (var i = 0; i < res.data[1].length; i++) {
  10913. this.courseTypeId.push(res.data[1][i].typeid);
  10914. }
  10915. console.log(this.courseTypeId);
  10916. // if (this.timer) clearInterval(this.timer);
  10917. if (this.timer) clearTimeout(this.timer);
  10918. this.timer = null;
  10919. // this.timer = setInterval(() => {
  10920. if(res.data[3].length){
  10921. try {
  10922. this.aiJson = JSON.parse(res.data[3][0].tips);
  10923. this.templateid = res.data[3][0].template;
  10924. }catch(error){
  10925. console.error(error)
  10926. }
  10927. }
  10928. if(res.data[0][0].cpote){
  10929. try {
  10930. this.cpote = JSON.parse(res.data[0][0].cpote);
  10931. }catch(error){
  10932. console.error(error)
  10933. }
  10934. }
  10935. if(res.data[0][0].setting){
  10936. try {
  10937. this.courseJie = JSON.parse(res.data[0][0].setting).courseJie;
  10938. this.courseTime = JSON.parse(res.data[0][0].setting).courseTime;
  10939. }catch(error){
  10940. console.error(error)
  10941. }
  10942. }
  10943. this.isFileSearch = res.data[0][0].iresearch == 1
  10944. this.seleteCourseUpdate();
  10945. this.setMan();
  10946. this.selectAllType();
  10947. this.unitJson[
  10948. this.unitIndex
  10949. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10950. // }, 5000);
  10951. this.$forceUpdate();
  10952. setTimeout(() => {
  10953. this.checkEva(this.evalua);
  10954. setTimeout(() => {
  10955. this.checkEva(this.evalua);
  10956. }, 100);
  10957. }, 100);
  10958. })
  10959. .catch((err) => {
  10960. console.error(err);
  10961. });
  10962. }
  10963. if(this.aiId){
  10964. let params = {
  10965. cid: this.aiId,
  10966. };
  10967. this.ajax
  10968. .get(this.$store.state.api + "select_course_detail", params)
  10969. .then((res) => {
  10970. let _unitJson = JSON.parse(res.data[0][0].chapters);
  10971. let fileInfo = []
  10972. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  10973. for(var i = 0; i < _unitJson.length; i++){
  10974. let tasks = _unitJson[i].chapterInfo[0].taskJson
  10975. for(var j = 0; j < tasks.length; j++){
  10976. let _infoData = tasks[j].chapterData.filter(el => {
  10977. return xianObj.indexOf(el.url.split(".")[el.url.split(".").length - 1].toLocaleUpperCase()) != -1
  10978. })
  10979. if(_infoData.length){
  10980. fileInfo = [...fileInfo, ..._infoData]
  10981. }
  10982. }
  10983. }
  10984. this.infoData = fileInfo
  10985. this.$forceUpdate();
  10986. this.courseName = res.data[0][0].title;
  10987. this.courseText = res.data[0][0].brief;
  10988. this.courseText2 = res.data[0][0].reBrief;
  10989. this.cover = JSON.parse(res.data[0][0].cover);
  10990. this.noneBtnImg = this.cover.length >= 1;
  10991. this.checkboxList2 = res.data[0][0].juri
  10992. ? res.data[0][0].juri.split(",")
  10993. : [];
  10994. this.inviteCode = [];
  10995. for (var i = 0; i < res.data[2].length; i++) {
  10996. this.inviteCode.push({
  10997. cid: res.data[2][i].classid,
  10998. ic: res.data[2][i].code,
  10999. });
  11000. }
  11001. this.checkboxList3 = res.data[0][0].course_teacher
  11002. ? res.data[0][0].course_teacher.split(",")
  11003. : [];
  11004. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  11005. this.myWord = res.data[0][0].template;
  11006. this.templateC.id = "123";
  11007. this.courseTypeId = [];
  11008. for (var i = 0; i < res.data[1].length; i++) {
  11009. this.courseTypeId.push(res.data[1][i].typeid);
  11010. }
  11011. console.log(this.courseTypeId);
  11012. this.setMan();
  11013. this.unitJson[
  11014. this.unitIndex
  11015. ].chapterInfo[0].taskJson[0].toolOpen = true;
  11016. this.$forceUpdate();
  11017. setTimeout(() => {
  11018. this.checkEva(this.evalua);
  11019. setTimeout(() => {
  11020. this.checkEva(this.evalua);
  11021. }, 100);
  11022. }, 100);
  11023. })
  11024. .catch((err) => {
  11025. console.error(err);
  11026. });
  11027. }
  11028. // if(this.cidType != 1 && this.templateid == ''){
  11029. // this.promptShow = true
  11030. // }
  11031. },
  11032. seleteCourseUpdate() {
  11033. let params = {
  11034. cid: this.cid,
  11035. };
  11036. this.ajax
  11037. .get(this.$store.state.api + "select_course_detail", params)
  11038. .then((res) => {
  11039. // console.log(this.unitJson);
  11040. let unitJson = JSON.parse(res.data[0][0].chapters);
  11041. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  11042. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  11043. let _unitJson = [];
  11044. let _chapAarry = [];
  11045. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  11046. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  11047. let index = 1;
  11048. let chapindex;
  11049. if (_unitJson2.length > unitJson.length) {
  11050. for (let c = 0; c < _unitJson2.length; c++) {
  11051. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  11052. }
  11053. for (let j = 0; j < unitJson.length; j++) {
  11054. let count = 0;
  11055. for (let k = 0; k < _unitJson2.length; k++) {
  11056. if (
  11057. unitJson[j].chapterInfo[0].chapterid ==
  11058. _unitJson2[k].chapterInfo[0].chapterid
  11059. ) {
  11060. count++;
  11061. _chapAarry.splice(
  11062. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11063. 1
  11064. );
  11065. _unitJson.push(unitJson[j]);
  11066. break;
  11067. }
  11068. }
  11069. // if(count === 0){
  11070. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11071. // }
  11072. }
  11073. for (let k = 0; k < _unitJson2.length; k++) {
  11074. if (_unitJson2[k].isUpdate == 1) {
  11075. _chapAarry.splice(
  11076. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11077. 1
  11078. );
  11079. _unitJson.push(_unitJson2[k]);
  11080. }
  11081. }
  11082. console.log(_chapAarry);
  11083. for (let d = 0; d < _unitJson2.length; d++) {
  11084. if (
  11085. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  11086. ) {
  11087. if (_unitIndex == d) {
  11088. index = 2;
  11089. }
  11090. chapindex = d;
  11091. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11092. }
  11093. }
  11094. } else {
  11095. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  11096. }
  11097. for (let i = 0; i < unitJson.length; i++) {
  11098. if (
  11099. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  11100. _unitJson[i].chapterInfo[0].chapterid !=
  11101. unitJson[i].chapterInfo[0].chapterid
  11102. ) {
  11103. if (i == _unitJson.length - 1) {
  11104. // this.unitIndex++
  11105. _unitIndex2++;
  11106. }
  11107. _unitJson.splice(i, 0, unitJson[i]);
  11108. } else if (i > _unitJson.length - 1) {
  11109. _unitJson.push(unitJson[i]);
  11110. } else if (
  11111. _unitJson[i].chapterInfo[0].chapterid ==
  11112. unitJson[i].chapterInfo[0].chapterid
  11113. ) {
  11114. _unitJson[i] = unitJson[i];
  11115. }
  11116. // if (i == _unitIndex) {
  11117. // continue;
  11118. // } else
  11119. }
  11120. if (_chapAarry.length && index != 2) {
  11121. if (chapindex < _unitIndex) {
  11122. this.isDelete = 2;
  11123. // this.unitIndex--;
  11124. _unitIndex2--;
  11125. } else if (
  11126. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  11127. _unitJson[_unitIndex].chapterInfo[0].chapterid
  11128. ) {
  11129. this.isDelete = 2;
  11130. for (let n = 0; n < _unitJson.length; n++) {
  11131. if (
  11132. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  11133. _unitJson[n].chapterInfo[0].chapterid
  11134. ) {
  11135. // this.unitIndex = n;
  11136. _unitIndex2 = n;
  11137. _unitJson[n] = _unitJson2[_unitIndex];
  11138. break;
  11139. }
  11140. }
  11141. }
  11142. } else if (index != 2) {
  11143. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  11144. _unitJson2[_unitIndex];
  11145. for (
  11146. var ci = 0;
  11147. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  11148. ci++
  11149. ) {
  11150. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  11151. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  11152. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11153. .toolChoose
  11154. : [];
  11155. let _chapterData = [];
  11156. for (
  11157. var c = 0;
  11158. c <
  11159. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  11160. .length;
  11161. c++
  11162. ) {
  11163. if (
  11164. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11165. .chapterData[c]
  11166. ) {
  11167. _chapterData.push(
  11168. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11169. .chapterData[c]
  11170. );
  11171. }
  11172. }
  11173. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  11174. _chapterData;
  11175. }
  11176. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  11177. }
  11178. if (index == 1) {
  11179. this.unitJson = _unitJson;
  11180. this.$forceUpdate();
  11181. setTimeout(() => {
  11182. if (this.unitIndex != _unitIndex2) {
  11183. this.isDelete = 2;
  11184. this.unitIndex = _unitIndex2;
  11185. }
  11186. }, 0);
  11187. this.timer = setTimeout(() => {
  11188. this.seleteCourseUpdate();
  11189. }, 1000);
  11190. } else if (index == 2) {
  11191. let _this = this;
  11192. _this
  11193. .$confirm(
  11194. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  11195. "提示",
  11196. {
  11197. confirmButtonText: "需要",
  11198. cancelButtonText: "取消",
  11199. type: "warning",
  11200. }
  11201. )
  11202. .then(() => {
  11203. if (_this.time()) {
  11204. _this.restoreWork(
  11205. _chapAarry[0],
  11206. _unitJson,
  11207. chapindex,
  11208. _unitJson2,
  11209. _unitIndex2
  11210. );
  11211. }
  11212. })
  11213. .catch(() => {
  11214. _this.unitJson = _unitJson;
  11215. _this.$forceUpdate();
  11216. setTimeout(() => {
  11217. if (this.unitIndex != _unitIndex2) {
  11218. this.isDelete = 2;
  11219. this.unitIndex = _unitIndex2;
  11220. }
  11221. }, 0);
  11222. _this.timer = setTimeout(() => {
  11223. _this.seleteCourseUpdate();
  11224. }, 1000);
  11225. });
  11226. }
  11227. // 在复制操作之前记录滚动位置
  11228. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11229. // 执行复制操作
  11230. // 复制操作完成后恢复滚动位置
  11231. this.$nextTick(() => {
  11232. if (this.$refs.scrollContainer) {
  11233. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11234. }
  11235. });
  11236. })
  11237. .catch((err) => {
  11238. console.error(err);
  11239. });
  11240. },
  11241. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  11242. let params = [
  11243. {
  11244. cid: this.cid,
  11245. chapters: JSON.stringify(this.unitJson),
  11246. uid: this.userid,
  11247. chapid: chapid,
  11248. },
  11249. ];
  11250. this.ajax
  11251. .post(this.$store.state.api + "restoreWork", params)
  11252. .then((res) => {
  11253. this.$message({
  11254. message: "恢复成功",
  11255. type: "success",
  11256. });
  11257. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  11258. this.unitJson = unitJson;
  11259. this.$forceUpdate();
  11260. setTimeout(() => {
  11261. if (this.unitIndex != unitIndex2) {
  11262. this.isDelete = 2;
  11263. this.unitIndex = unitIndex2;
  11264. }
  11265. }, 0);
  11266. this.timer = setTimeout(() => {
  11267. this.seleteCourseUpdate();
  11268. }, 1000);
  11269. })
  11270. .catch((err) => {
  11271. this.$message.error("网络不佳");
  11272. console.error(err);
  11273. });
  11274. },
  11275. getTypeName() {
  11276. console.log(this.courseTypeId);
  11277. this.$forceUpdate();
  11278. },
  11279. selectAllType() {
  11280. let params = {
  11281. org: this.org && this.org != "" ? this.org : "",
  11282. oid: this.oid && this.oid != "" ? this.oid : "",
  11283. };
  11284. this.ajax
  11285. .get(this.$store.state.api + "selectAllType", params)
  11286. .then((res) => {
  11287. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11288. res.data[0] = [...res.data[0], ...res.data[4]];
  11289. }
  11290. this.CourseType = res.data;
  11291. this.CourseType2 = [
  11292. { name: "智见课程", id: [] },
  11293. { name: "智行课程", id: [] },
  11294. { name: "智创课程", id: [] },
  11295. ];
  11296. for (var cti = 0; cti < res.data[0].length; cti++) {
  11297. if (
  11298. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11299. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  11300. ) {
  11301. this.CourseType2[0].id.push(res.data[0][cti].id);
  11302. } else if (
  11303. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  11304. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11305. ) {
  11306. this.CourseType2[1].id.push(res.data[0][cti].id);
  11307. } else if (
  11308. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11309. ) {
  11310. this.CourseType2[2].id.push(res.data[0][cti].id);
  11311. }
  11312. if (
  11313. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11314. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  11315. ) {
  11316. res.data[0][cti].name = "年级";
  11317. } else if (
  11318. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  11319. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11320. ) {
  11321. res.data[0][cti].name = "学科";
  11322. } else if (
  11323. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11324. ) {
  11325. res.data[0][cti].name = "主题";
  11326. }
  11327. }
  11328. let _courseTypeId = [];
  11329. for (var i = 0; i < res.data[0].length; i++) {
  11330. if (!this.cid) {
  11331. this.courseTypeId[res.data[0][i].id] = [];
  11332. }
  11333. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  11334. // }
  11335. this.CourseTypeJson[res.data[0][i].id] = [];
  11336. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11337. if (res.data[0][i].name == "栏目") {
  11338. this.CourseType[0][i].name = "主题";
  11339. }
  11340. }
  11341. if (res.data[2].length == 0 && res.data[3].length == 0) {
  11342. for (var j = 0; j < res.data[1].length; j++) {
  11343. if (
  11344. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  11345. _courseTypeId.indexOf(res.data[1][j].id) == -1
  11346. ) {
  11347. _courseTypeId.push(res.data[1][j].id);
  11348. }
  11349. if (res.data[0][i].id == res.data[1][j].pid) {
  11350. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11351. }
  11352. }
  11353. } else {
  11354. if (res.data[2].length > 0) {
  11355. for (var j = 0; j < res.data[2].length; j++) {
  11356. if (
  11357. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  11358. _courseTypeId.indexOf(res.data[2][j].id) == -1
  11359. ) {
  11360. _courseTypeId.push(res.data[2][j].id);
  11361. }
  11362. if (res.data[0][i].id == res.data[2][j].pid) {
  11363. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  11364. }
  11365. }
  11366. }
  11367. if (res.data[3].length > 0) {
  11368. for (var j = 0; j < res.data[3].length; j++) {
  11369. if (
  11370. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  11371. _courseTypeId.indexOf(res.data[3][j].id) == -1
  11372. ) {
  11373. _courseTypeId.push(res.data[3][j].id);
  11374. }
  11375. if (res.data[0][i].id == res.data[3][j].pid) {
  11376. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  11377. }
  11378. }
  11379. }
  11380. }
  11381. }
  11382. this.courseTypeId = _courseTypeId;
  11383. })
  11384. .catch((err) => {
  11385. console.error(err);
  11386. });
  11387. },
  11388. selectType() {
  11389. this.ajax
  11390. .get(this.$store.state.api + "selectType")
  11391. .then((res) => {
  11392. this.CourseType = res.data;
  11393. for (var i = 0; i < res.data[0].length; i++) {
  11394. if (!this.cid) {
  11395. this.courseTypeId[res.data[0][i].id] = "";
  11396. }
  11397. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11398. if (res.data[0][i].name == "栏目") {
  11399. this.CourseType[0][i].name = "主题";
  11400. }
  11401. }
  11402. for (var j = 0; j < res.data[1].length; j++) {
  11403. if (res.data[0][i].id == res.data[1][j].pid) {
  11404. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11405. this.CourseTypeJson[res.data[0][i].id] = [];
  11406. }
  11407. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11408. }
  11409. }
  11410. }
  11411. this.selectTypeByOid();
  11412. this.selectTypeByOrg();
  11413. })
  11414. .catch((err) => {
  11415. console.error(err);
  11416. });
  11417. },
  11418. selectTypeByOid() {
  11419. let params = {
  11420. oid: this.oid,
  11421. };
  11422. this.ajax
  11423. .get(this.$store.state.api + "selectTypeByOid", params)
  11424. .then((res) => {
  11425. for (var i = 0; i < res.data[0].length; i++) {
  11426. for (var j = 0; j < res.data[1].length; j++) {
  11427. if (res.data[0][i].id == res.data[1][j].pid) {
  11428. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11429. this.CourseTypeJson[res.data[0][i].id] = [];
  11430. }
  11431. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11432. }
  11433. }
  11434. }
  11435. })
  11436. .catch((err) => {
  11437. console.error(err);
  11438. });
  11439. },
  11440. selectTypeByOrg() {
  11441. let params = {
  11442. oid: this.org,
  11443. };
  11444. this.ajax
  11445. .get(this.$store.state.api + "selectTypeByOrg", params)
  11446. .then((res) => {
  11447. for (var i = 0; i < res.data[0].length; i++) {
  11448. for (var j = 0; j < res.data[1].length; j++) {
  11449. if (res.data[0][i].id == res.data[1][j].pid) {
  11450. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11451. this.CourseTypeJson[res.data[0][i].id] = [];
  11452. }
  11453. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11454. }
  11455. }
  11456. }
  11457. this.$forceUpdate();
  11458. })
  11459. .catch((err) => {
  11460. console.error(err);
  11461. });
  11462. },
  11463. OtherMb(type, task) {
  11464. if (task === 0 || task) {
  11465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11466. task
  11467. ].isEvaFold = true;
  11468. }
  11469. this.typeMode = type;
  11470. setTimeout(() => {
  11471. this.checkEva(this.checkId);
  11472. setTimeout(() => {
  11473. this.checkEva(this.checkId);
  11474. }, 100);
  11475. }, 100);
  11476. },
  11477. openMember() {
  11478. this.searchTN = "";
  11479. this.getTeacher();
  11480. this.dialogVisibleMember = true;
  11481. },
  11482. checkEva(id, type) {
  11483. this.dialogVisiblemb = false;
  11484. this.selectEva();
  11485. if (this.evalua != id && type == 2) {
  11486. this.$message.success("导入成功");
  11487. setTimeout(() => {
  11488. this.checkEva(id);
  11489. }, 100);
  11490. }
  11491. this.evalua = id;
  11492. this.checkId = id;
  11493. if (this.evalua != "") {
  11494. for (var i = 0; i < this.evaJuri.length; i++) {
  11495. if (this.evalua == this.evaJuri[i].id) {
  11496. this.eTitle = this.evaJuri[i].title;
  11497. this.eJson = JSON.parse(this.evaJuri[i].content);
  11498. }
  11499. }
  11500. this.data.data = [];
  11501. this.$forceUpdate();
  11502. setTimeout(() => {
  11503. this.setMindData();
  11504. }, 1000);
  11505. }
  11506. },
  11507. deleteEva() {
  11508. let _this = this;
  11509. if (_this.evalua == "") {
  11510. this.$message.warning("内容已经清空了,请勿重复清空");
  11511. return;
  11512. }
  11513. _this
  11514. .$confirm("确定删除此目标吗?", "提示", {
  11515. confirmButtonText: "确定",
  11516. cancelButtonText: "取消",
  11517. type: "warning",
  11518. })
  11519. .then(() => {
  11520. _this.evalua = "";
  11521. _this.checkId = "";
  11522. _this.eTitle = "";
  11523. let _unitJson = _this.unitJson;
  11524. for (var i = 0; i < _unitJson.length; i++) {
  11525. let _task = _unitJson[i].chapterInfo[0].taskJson;
  11526. for (var j = 0; j < _task.length; j++) {
  11527. let _eList = _task[j].eList;
  11528. for (var k = 0; k < _eList.length; k++) {
  11529. delete _eList[k].target;
  11530. }
  11531. }
  11532. }
  11533. _this.$forceUpdate();
  11534. if (_this.cid) {
  11535. _this.updateWork();
  11536. }
  11537. })
  11538. .catch(() => {
  11539. return;
  11540. });
  11541. },
  11542. selectEva() {
  11543. let params = {
  11544. oid: this.oid,
  11545. };
  11546. this.ajax
  11547. .get(this.$store.state.api + "selectAllEvaluation", params)
  11548. .then((res) => {
  11549. this.evaJuri = res.data[0];
  11550. // 在复制操作之前记录滚动位置
  11551. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11552. // 执行复制操作
  11553. // 复制操作完成后恢复滚动位置
  11554. this.$nextTick(() => {
  11555. if (this.$refs.scrollContainer) {
  11556. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11557. }
  11558. });
  11559. })
  11560. .catch((err) => {
  11561. console.error(err);
  11562. });
  11563. },
  11564. setMindData() {
  11565. let targetArray = [];
  11566. this.data.data = [];
  11567. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11568. let _eJson = Object.keys(this.eJson);
  11569. let _e = this.eJson;
  11570. for (let i = 0; i < _eJson.length; i++) {
  11571. let element = _e[_eJson[i]];
  11572. this.data.data.push({
  11573. id: element.id,
  11574. parentid: "root",
  11575. topic: element.name,
  11576. });
  11577. // targetArray.push({
  11578. // id: element.id,
  11579. // parentid: "root",
  11580. // name: element.name,
  11581. // });
  11582. targetArray.push({
  11583. value: element.name,
  11584. label: element.name,
  11585. children: [],
  11586. });
  11587. let _eJsonc = Object.keys(element.child);
  11588. let _e2 = element.child;
  11589. for (let j = 0; j < _eJsonc.length; j++) {
  11590. let _ec = _e2[_eJsonc[j]];
  11591. this.data.data.push({
  11592. id: _ec.id,
  11593. parentid: element.id,
  11594. topic: _ec.name,
  11595. });
  11596. // targetArray.push({
  11597. // id: _ec.id,
  11598. // parentid: element.id,
  11599. // name: _ec.name,
  11600. // });
  11601. targetArray[i].children.push({
  11602. value: _ec.name,
  11603. label: _ec.name,
  11604. children: [],
  11605. });
  11606. let _eJsonz = Object.keys(_ec.child);
  11607. let _e3 = _ec.child;
  11608. for (let z = 0; z < _eJsonz.length; z++) {
  11609. let _ez = _e3[_eJsonz[z]];
  11610. this.data.data.push({
  11611. id: _ez.id,
  11612. parentid: _ec.id,
  11613. topic: _ez.name,
  11614. });
  11615. // targetArray.push({
  11616. // id: _ez.id,
  11617. // parentid: _ec.id,
  11618. // name: _ez.name,
  11619. // });
  11620. targetArray[i].children[j].children.push({
  11621. value: _ez.name,
  11622. label: _ez.name,
  11623. });
  11624. }
  11625. }
  11626. }
  11627. this.targetArray = targetArray;
  11628. this.$forceUpdate();
  11629. },
  11630. /*添加评价 */
  11631. addEList(index, tIndex) {
  11632. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11633. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11634. value: "",
  11635. detail: "",
  11636. score: 5,
  11637. })
  11638. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11639. { value: "", detail: "", score: 5 },
  11640. ]);
  11641. this.$forceUpdate();
  11642. },
  11643. openEList(index, tIndex) {
  11644. this.evaIndex = index;
  11645. this.evatIndex = tIndex;
  11646. this.evaBoxDialog = true;
  11647. },
  11648. addCET(index, tIndex) {
  11649. this.cetIndex = index;
  11650. this.cettIndex = tIndex;
  11651. this.selectAllType1();
  11652. },
  11653. addCETemplate() {
  11654. var array =
  11655. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11656. .eList;
  11657. let params = [
  11658. {
  11659. uid: this.userid,
  11660. n: this.templateName,
  11661. json: JSON.stringify(array),
  11662. t: 1,
  11663. oid: this.oid,
  11664. },
  11665. ];
  11666. this.ajax
  11667. .post(this.$store.state.api + "addCETShare", params)
  11668. .then((res) => {
  11669. this.addTypeByCET(res.data[0][0].id);
  11670. })
  11671. .catch((err) => {
  11672. this.$message.error("网络不佳");
  11673. console.error(err);
  11674. });
  11675. },
  11676. addTypeByCET(id) {
  11677. if (this.setTypeJson.two == "") {
  11678. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11679. return;
  11680. }
  11681. let params = {
  11682. cid: id,
  11683. };
  11684. this.ajax
  11685. .get(this.$store.state.api + "deleteCETLabel", params)
  11686. .then((res) => {
  11687. for (var i = 0; i < 2; i++) {
  11688. let tid = "";
  11689. if (i == 0) {
  11690. tid = this.setTypeJson.one;
  11691. } else {
  11692. tid = this.setTypeJson.two;
  11693. }
  11694. let params = [
  11695. {
  11696. cid: id,
  11697. tid: tid,
  11698. uid: this.userid,
  11699. },
  11700. ];
  11701. this.ajax
  11702. .post(this.$store.state.api + "addCETLabel", params)
  11703. .then((res) => {
  11704. this.$message({
  11705. message: "添加成功",
  11706. type: "success",
  11707. });
  11708. this.close();
  11709. })
  11710. .catch((err) => {
  11711. this.$message.error("网络不佳");
  11712. console.error(err);
  11713. });
  11714. }
  11715. })
  11716. .catch((err) => {
  11717. this.$message.error("网络不佳");
  11718. console.error(err);
  11719. });
  11720. },
  11721. updateEvaJson(array) {
  11722. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11723. this.evatIndex
  11724. ].eList = array;
  11725. },
  11726. forceUpdate() {
  11727. this.$forceUpdate();
  11728. },
  11729. deletEList(index, tIndex, eIndex) {
  11730. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11731. eIndex,
  11732. 1
  11733. );
  11734. this.$forceUpdate();
  11735. },
  11736. getChoosePic(t) {
  11737. this.chooseType = t;
  11738. this.getAllBanner();
  11739. },
  11740. getAllBanner() {
  11741. this.sysPicVisible = true;
  11742. let params = {
  11743. t: this.chooseType,
  11744. };
  11745. this.ajax
  11746. .get(this.$store.state.api + "selectAllBanner", params)
  11747. .then((res) => {
  11748. this.sysPic = res.data[0];
  11749. })
  11750. .catch((err) => {
  11751. console.error(err);
  11752. });
  11753. },
  11754. // getClass() {
  11755. // let params = {
  11756. // oid: this.oid,
  11757. // };
  11758. // this.ajax
  11759. // .get(this.$store.state.api + "selectClassBySchool", params)
  11760. // .then((res) => {
  11761. // this.classJuri = res.data[0];
  11762. // })
  11763. // .catch((err) => {
  11764. // console.error(err);
  11765. // });
  11766. // },
  11767. deleteSysPic() {
  11768. this.cover = [];
  11769. this.isSysPic = false;
  11770. this.isSysPic2 = false;
  11771. },
  11772. deleteSelectPic() {
  11773. this.selectJson.url = "";
  11774. },
  11775. setEListStar() {
  11776. this.$forceUpdate();
  11777. },
  11778. deletRateList(i) {
  11779. this.rateJson.splice(i, 1);
  11780. },
  11781. addRateList() {
  11782. this.rateJson.push({ detail: "", score: 5, value: "" });
  11783. },
  11784. addSt() {
  11785. this.sentenceList.push({
  11786. sentenceTitle: "",
  11787. addSentence: [],
  11788. rightAnswer: [],
  11789. });
  11790. },
  11791. addSen(i) {
  11792. if (!this.sentenceList[i].sentenceTitle) {
  11793. this.$message.error("请填写卡片内容!");
  11794. return;
  11795. }
  11796. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11797. this.$message.error("卡片内容字数不能超过10位");
  11798. return;
  11799. }
  11800. if (
  11801. this.sentenceList[i].addSentence.indexOf(
  11802. this.sentenceList[i].sentenceTitle
  11803. ) !== -1
  11804. ) {
  11805. this.$message.error("不能添加重复的卡片内容!");
  11806. return;
  11807. }
  11808. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11809. // this.isPushTitleList.push(this.sentenceTitle);
  11810. this.sentenceList[i].sentenceTitle = "";
  11811. },
  11812. setRightAnswer(s, i, j) {
  11813. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11814. this.sentenceList[i].rightAnswer.push(s);
  11815. }
  11816. },
  11817. returnCard(r, i, j) {
  11818. this.sentenceList[i].rightAnswer.splice(j, 1);
  11819. },
  11820. addSentenceTool() {
  11821. for (var i = 0; i < this.sentenceList.length; i++) {
  11822. if (this.sentenceList[i].rightAnswer.length == 0) {
  11823. this.$message.error(`请将题目${i + 1}设置完整。`);
  11824. return;
  11825. }
  11826. if (
  11827. this.sentenceList[i].addSentence.length !=
  11828. this.sentenceList[i].rightAnswer.length
  11829. ) {
  11830. this.$message.error(`请将题目${i + 1}设置完整。`);
  11831. return;
  11832. }
  11833. }
  11834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11835. this.taskCount
  11836. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11837. this.sentenceList = [
  11838. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11839. ];
  11840. this.dialogVisibleSentence = false;
  11841. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11842. // itemTaskIndex
  11843. // ].toolChoose[toolIndex].tool = [];
  11844. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11845. // itemTaskIndex
  11846. // ].toolChoose[toolIndex].tool.push(i);
  11847. if (
  11848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11849. .toolChoose[this.toolIndex].tool != 47
  11850. ) {
  11851. this.addTools(47, this.taskCount, this.toolIndex);
  11852. }
  11853. },
  11854. addTableJson() {
  11855. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11856. // this.$message.error("请将信息填写完整!");
  11857. // return;
  11858. // }
  11859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11860. this.taskCount
  11861. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11862. // this.tableJson = [{ text: "" }];
  11863. // this.dialogVisibleTable = false;
  11864. this.$message.success("上传成功");
  11865. if (
  11866. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11867. .toolChoose[this.toolIndex].tool != 48
  11868. ) {
  11869. this.addTools(48, this.taskCount, this.toolIndex);
  11870. }
  11871. },
  11872. addWordJson() {
  11873. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11874. this.taskCount
  11875. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11876. // this.wordJson = [{ text: "" }];
  11877. // this.dialogVisibleWord = false;
  11878. this.$message.success("上传成功");
  11879. if (
  11880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11881. .toolChoose[this.toolIndex].tool != 52
  11882. ) {
  11883. this.addTools(52, this.taskCount, this.toolIndex);
  11884. }
  11885. },
  11886. addMoreUpload() {
  11887. if (this.uploadJson.length == 0) {
  11888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11889. this.taskCount
  11890. ].toolChoose[this.toolIndex].uploadJson = [];
  11891. } else {
  11892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11893. this.taskCount
  11894. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11895. }
  11896. this.uploadJson = [];
  11897. this.dialogVisibleMoreUpload = false;
  11898. if (
  11899. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11900. .toolChoose[this.toolIndex].tool != 50
  11901. ) {
  11902. this.addTools(50, this.taskCount, this.toolIndex);
  11903. }
  11904. },
  11905. addPreTime() {
  11906. if (this.preTime == 0) {
  11907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11908. this.taskCount
  11909. ].toolChoose[this.toolIndex].preTime = 0;
  11910. } else {
  11911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11912. this.taskCount
  11913. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11914. }
  11915. this.preTime = 0;
  11916. this.dialogVisiblePreTime = false;
  11917. if (
  11918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11919. .toolChoose[this.toolIndex].tool != 10
  11920. ) {
  11921. this.addTools(10, this.taskCount, this.toolIndex);
  11922. }
  11923. },
  11924. goToTask(i) {
  11925. this.toolIndexType = "";
  11926. if (this.isClickColor == i + 1) {
  11927. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11928. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11929. // } else {
  11930. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11931. i
  11932. ].toolOpen = true;
  11933. // }
  11934. this.$forceUpdate();
  11935. return;
  11936. }
  11937. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11938. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11939. // } else {
  11940. document.querySelectorAll(".basic_box")[0].scrollTop =
  11941. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11942. this.isClickColor = i + 1;
  11943. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11944. // }
  11945. this.$forceUpdate();
  11946. },
  11947. taskOpen(i, stageIndex) {
  11948. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11949. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11950. } else {
  11951. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11952. }
  11953. this.updateWork3(stageIndex);
  11954. this.$forceUpdate();
  11955. },
  11956. goToTask2(i, stage) {
  11957. this.toolIndexType = "";
  11958. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11959. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11960. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11961. // } else {
  11962. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11963. i
  11964. ].toolOpen = true;
  11965. // }
  11966. this.$forceUpdate();
  11967. return;
  11968. }
  11969. if (this.unitIndex != stage) {
  11970. if (this.panUnitJson() == 2) {
  11971. return;
  11972. }
  11973. this.unitSet(stage);
  11974. }
  11975. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11976. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11977. // } else {
  11978. document.querySelectorAll(".basic_box")[0].scrollTop =
  11979. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11980. this.isClickColor = i + 1;
  11981. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11982. // }
  11983. this.$forceUpdate();
  11984. },
  11985. taskMove(type, index) {
  11986. this.$confirm(
  11987. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11988. "提示",
  11989. {
  11990. confirmButtonText: "确定",
  11991. cancelButtonText: "取消",
  11992. type: "warning",
  11993. }
  11994. )
  11995. .then(() => {
  11996. if (type == 1) {
  11997. if (index > 0) {
  11998. let a = JSON.parse(
  11999. JSON.stringify(
  12000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12001. index - 1
  12002. ]
  12003. )
  12004. );
  12005. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  12006. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12008. }
  12009. } else {
  12010. if (
  12011. index <
  12012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  12013. ) {
  12014. let a = JSON.parse(
  12015. JSON.stringify(
  12016. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12017. index + 1
  12018. ]
  12019. )
  12020. );
  12021. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  12022. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12023. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12024. }
  12025. }
  12026. this.$forceUpdate();
  12027. })
  12028. .catch(() => {
  12029. return;
  12030. });
  12031. },
  12032. stageMove(type, index) {
  12033. if (type == 1) {
  12034. if (index > 0) {
  12035. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  12036. let acid = JSON.parse(
  12037. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  12038. );
  12039. let bcid = JSON.parse(
  12040. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12041. );
  12042. this.unitJson3[index - 1] = this.unitJson3[index];
  12043. this.unitJson3[index] = a;
  12044. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  12045. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12046. }
  12047. } else {
  12048. if (index < this.unitJson3.length - 1) {
  12049. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  12050. let acid = JSON.parse(
  12051. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  12052. );
  12053. let bcid = JSON.parse(
  12054. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12055. );
  12056. this.unitJson3[index + 1] = this.unitJson3[index];
  12057. this.unitJson3[index] = a;
  12058. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  12059. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12060. }
  12061. }
  12062. this.$forceUpdate();
  12063. },
  12064. addGroup(i) {
  12065. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  12066. this.groupJson.group.push({
  12067. name: "第" + (this.groupJson.group.length + 1) + "组",
  12068. });
  12069. },
  12070. deleteGroup(i) {
  12071. this.groupJson.group.splice(i, 1);
  12072. },
  12073. numberPan() {
  12074. if (
  12075. /[^\d]/.test(this.groupJson.number) ||
  12076. this.groupJson.number < 2 ||
  12077. this.groupJson.number > 10
  12078. ) {
  12079. this.$message.error("请输入2-10的数字");
  12080. this.groupJson.number = "";
  12081. }
  12082. },
  12083. numberPanJie() {
  12084. if (/[^\d]/.test(this.courseJie) || this.courseJie < 1) {
  12085. this.$message.error('请输入大于1的数字')
  12086. this.courseJie = 1
  12087. }
  12088. },
  12089. numberPanTime() {
  12090. if (/[^\d]/.test(this.courseTime) || this.courseTime < 1) {
  12091. this.$message.error('请输入大于1的数字')
  12092. this.courseTime = 1
  12093. }
  12094. },
  12095. addGroupJson() {
  12096. for (var i = 0; i < this.groupJson.group.length; i++) {
  12097. if (!this.groupJson.group[i].name) {
  12098. this.$message.error("请将信息填写完整!");
  12099. return;
  12100. }
  12101. }
  12102. if (!this.groupJson.number) {
  12103. this.$message.error("请将信息填写完整!");
  12104. return;
  12105. }
  12106. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12107. this.taskCount
  12108. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  12109. JSON.stringify(this.groupJson)
  12110. );
  12111. this.dialogVisibleGroup = false;
  12112. this.groupJson = {};
  12113. if (
  12114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12115. .toolChoose[this.toolIndex].tool != 49
  12116. ) {
  12117. this.addTools(49, this.taskCount, this.toolIndex);
  12118. }
  12119. },
  12120. updateTime(preTime) {
  12121. this.preTime = preTime;
  12122. },
  12123. InviteChange(val) {
  12124. console.log(val);
  12125. let _check = [];
  12126. let _check2 = [];
  12127. for (var i = 0; i < this.grade2.length; i++) {
  12128. var gid = this.grade2[i].id;
  12129. _check.push(gid);
  12130. }
  12131. for (var i = 0; i < this.checkboxList2.length; i++) {
  12132. var _id = this.checkboxList2[i];
  12133. if (_check.indexOf(_id) !== -1) {
  12134. _check2.push(_id);
  12135. }
  12136. }
  12137. this.checkAll = _check2.length === _check.length;
  12138. return;
  12139. let array = JSON.parse(JSON.stringify(val));
  12140. this.inviteCode = this.inviteCode.filter((el) => {
  12141. if (val.indexOf(el.cid) != -1) {
  12142. array.splice(array.indexOf(el.cid), 1);
  12143. return el;
  12144. }
  12145. });
  12146. for (var i = 0; i < array.length; i++) {
  12147. this.getInviteCode(array[i]);
  12148. }
  12149. },
  12150. InviteChange2(val) {
  12151. console.log(val);
  12152. let _check = [];
  12153. let _check2 = [];
  12154. for (var i = 0; i < this.teacherJuri.length; i++) {
  12155. var gid = this.teacherJuri[i].userid;
  12156. _check.push(gid);
  12157. }
  12158. for (var i = 0; i < this.checkboxList3.length; i++) {
  12159. var _id = this.checkboxList3[i];
  12160. if (_check.indexOf(_id) !== -1) {
  12161. _check2.push(_id);
  12162. }
  12163. }
  12164. this.checkAll2 = _check2.length === _check.length;
  12165. this.setMan();
  12166. return;
  12167. let array = JSON.parse(JSON.stringify(val));
  12168. this.inviteCode = this.inviteCode.filter((el) => {
  12169. if (val.indexOf(el.cid) != -1) {
  12170. array.splice(array.indexOf(el.cid), 1);
  12171. return el;
  12172. }
  12173. });
  12174. for (var i = 0; i < array.length; i++) {
  12175. this.getInviteCode(array[i]);
  12176. }
  12177. },
  12178. handleCheckAllChange(val) {
  12179. if (val) {
  12180. for (var i = 0; i < this.grade2.length; i++) {
  12181. var gid = this.grade2[i].id;
  12182. if (this.checkboxList2.indexOf(gid) === -1) {
  12183. this.checkboxList2.push(gid);
  12184. }
  12185. }
  12186. } else {
  12187. let _check = [];
  12188. let _check2 = [];
  12189. for (var i = 0; i < this.grade2.length; i++) {
  12190. var gid = this.grade2[i].id;
  12191. _check.push(gid);
  12192. }
  12193. for (var i = 0; i < this.checkboxList2.length; i++) {
  12194. var _id = this.checkboxList2[i];
  12195. if (_check.indexOf(_id) === -1) {
  12196. _check2.push(_id);
  12197. }
  12198. }
  12199. this.checkboxList2 = _check2;
  12200. }
  12201. this.isIndeterminate = false;
  12202. },
  12203. handleCheckAllChange2(val) {
  12204. if (val) {
  12205. for (var i = 0; i < this.teacherJuri.length; i++) {
  12206. var gid = this.teacherJuri[i].userid;
  12207. if (this.checkboxList3.indexOf(gid) === -1) {
  12208. this.checkboxList3.push(gid);
  12209. }
  12210. }
  12211. } else {
  12212. let _check = [];
  12213. let _check2 = [];
  12214. for (var i = 0; i < this.teacherJuri.length; i++) {
  12215. var gid = this.teacherJuri[i].userid;
  12216. _check.push(gid);
  12217. }
  12218. for (var i = 0; i < this.checkboxList3.length; i++) {
  12219. var _id = this.checkboxList3[i];
  12220. if (_check.indexOf(_id) === -1) {
  12221. _check2.push(_id);
  12222. }
  12223. }
  12224. this.checkboxList3 = _check2;
  12225. }
  12226. this.isIndeterminate2 = false;
  12227. },
  12228. async getInviteCode(cid) {
  12229. let code = this.randomNumber();
  12230. let params = {
  12231. code: code,
  12232. oid: this.oid,
  12233. };
  12234. let type = 1;
  12235. for (var i = 0; i < this.inviteCode.length; i++) {
  12236. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  12237. type = 2;
  12238. }
  12239. }
  12240. if (type == 2) {
  12241. this.getInviteCode(cid);
  12242. return;
  12243. }
  12244. const res = await this.ajax.get(
  12245. this.$store.state.api + "selectInviteCode2",
  12246. params
  12247. );
  12248. if (
  12249. res.data.length &&
  12250. res.data[0].length &&
  12251. res.data[0][0].courseId != this.cid
  12252. ) {
  12253. this.getInviteCode(cid);
  12254. return;
  12255. }
  12256. let array = [];
  12257. for (var i = 0; i < this.inviteCode.length; i++) {
  12258. array.push(this.inviteCode[i].cid);
  12259. }
  12260. if (array.indexOf(cid) != -1) {
  12261. this.inviteCode[array.indexOf(cid)].ic = code;
  12262. } else {
  12263. this.inviteCode.push({ cid: cid, ic: code });
  12264. }
  12265. },
  12266. OpenInviteD(cid) {
  12267. let array = [];
  12268. this.icode = "";
  12269. for (var i = 0; i < this.inviteCode.length; i++) {
  12270. array.push(this.inviteCode[i].cid);
  12271. }
  12272. if (array.indexOf(cid) != -1) {
  12273. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  12274. }
  12275. this.inviteId = cid;
  12276. this.dialogVisibleInvite = true;
  12277. },
  12278. addInvite() {
  12279. let reg = /^[A-Za-z0-9]{4,}$/;
  12280. if (!reg.test(this.icode)) {
  12281. this.$message.error("请输入至少四位数字或英文组合的随机码");
  12282. return;
  12283. }
  12284. let type = 1;
  12285. for (var i = 0; i < this.inviteCode.length; i++) {
  12286. if (
  12287. this.inviteCode[i].cid != this.inviteId &&
  12288. this.icode == this.inviteCode[i].ic
  12289. ) {
  12290. type = 2;
  12291. }
  12292. }
  12293. if (type == 2) {
  12294. this.$message.error("已有此随机码,不能重复");
  12295. return;
  12296. }
  12297. let params = {
  12298. code: this.icode,
  12299. oid: this.oid,
  12300. };
  12301. this.ajax
  12302. .get(this.$store.state.api + "selectInviteCode", params)
  12303. .then((res) => {
  12304. if (
  12305. res.data.length &&
  12306. res.data[0].length &&
  12307. res.data[0][0].courseId != this.cid
  12308. ) {
  12309. this.$message.error("已有此随机码,不能重复");
  12310. return;
  12311. }
  12312. let array = [];
  12313. for (var i = 0; i < this.inviteCode.length; i++) {
  12314. array.push(this.inviteCode[i].cid);
  12315. }
  12316. if (array.indexOf(this.inviteId) != -1) {
  12317. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  12318. } else {
  12319. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  12320. }
  12321. this.icode = "";
  12322. this.dialogVisibleInvite = false;
  12323. })
  12324. .catch((err) => {
  12325. console.error(err);
  12326. });
  12327. },
  12328. randomNumber() {
  12329. // 随机生成两位数
  12330. // let num = Math.floor(Math.random() * 900) + 100;
  12331. // 生成 0 到 99 之间的随机整数
  12332. const randomNumber = Math.floor(Math.random() * 100);
  12333. // 如果随机数小于 10,补上前导零
  12334. const num =
  12335. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  12336. // 随机生成两个大写字母
  12337. let letters = "";
  12338. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  12339. for (let i = 0; i < 3; i++) {
  12340. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  12341. }
  12342. // 随机生成两位数字和字母的组合
  12343. let mix = "";
  12344. let chars =
  12345. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  12346. for (let i = 0; i < 3; i++) {
  12347. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  12348. mix += char;
  12349. }
  12350. // 随机选择一种类型
  12351. let type = Math.floor(Math.random() * 3);
  12352. return num;
  12353. // 根据类型输出结果
  12354. switch (type) {
  12355. case 0:
  12356. console.log(num); // 输出两位数
  12357. return num;
  12358. case 1:
  12359. console.log(letters); // 输出两个大写字母
  12360. return letters;
  12361. case 2:
  12362. console.log(mix); // 输出两位数字和字母的组合
  12363. return mix;
  12364. }
  12365. },
  12366. getPaste() {
  12367. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12368. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12369. if (!iframe && !iframe2) {
  12370. return;
  12371. }
  12372. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12373. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12374. if (copyData && copyData.stageData && copyData.stageData.length) {
  12375. this.isPasteStage = true;
  12376. }
  12377. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  12378. this.isPasteStage = true;
  12379. }
  12380. if (copyData && copyData.selectData.length) {
  12381. this.isPasteChoice = true;
  12382. }
  12383. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  12384. this.isPasteTask = true;
  12385. }
  12386. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  12387. this.isPasteTask = true;
  12388. }
  12389. },
  12390. setCover() {
  12391. var _this = this;
  12392. if(_this.cover.length){
  12393. return;
  12394. }
  12395. _this.imageloading2 = true
  12396. _this.ajax
  12397. .post("https://gpt.cocorobo.cn/search_image", {
  12398. page: _this.ppage,
  12399. pagesize: 9,
  12400. query: _this.courseName,
  12401. })
  12402. .then(function (response) {
  12403. // console.log(response.data.data);
  12404. var data = response.data.FunctionResponse.result;
  12405. _this.cover = [];
  12406.       setTimeout(() => {
  12407.         _this.cover[0] = {
  12408.           name: "网络图片.png",
  12409.           url: data[0].thumbnail
  12410.         };
  12411.         _this.imgChange1(null, null, 1, null);
  12412.         _this.$forceUpdate();
  12413.       }, 0);
  12414. _this.imageloading2 = false
  12415. })
  12416. .catch(function (error) {
  12417. _this.imageloading2 = false
  12418. console.log(error);
  12419. });
  12420. },
  12421. searchImage() {
  12422. var _this = this;
  12423. _this.imageList = [];
  12424. if (!_this.searchImageValue) {
  12425. _this.sysPicVisible2 = true;
  12426. return;
  12427. }
  12428. _this.imageloading = true;
  12429. _this.ajax
  12430. .post("https://gpt.cocorobo.cn/search_image", {
  12431. page: _this.ppage,
  12432. pagesize: 9,
  12433. query: _this.searchImageValue,
  12434. })
  12435. .then(function (response) {
  12436. // console.log(response.data.data);
  12437. var data = response.data.FunctionResponse.result;
  12438. for (var i = 0; i < data.length; i++) {
  12439. _this.imageList.push({ url: data[i].thumbnail });
  12440. }
  12441. _this.imageloading = false;
  12442. })
  12443. .catch(function (error) {
  12444. console.log(error);
  12445. });
  12446. _this.sysPicVisible2 = true;
  12447. },
  12448. changePicture() {
  12449. this.ppage++;
  12450. this.searchImage();
  12451. },
  12452. resetImage() {
  12453. this.ppage = 1;
  12454. this.searchImage();
  12455. },
  12456. jumpGj(i, j) {
  12457. if (i + 1 != this.isClickColor) {
  12458. this.isClickColor = i + 1;
  12459. }
  12460. var a = document.scrollingElement;
  12461. this.toolIndexType = `gj${i}${j}`;
  12462. let target = document.querySelector(`#gj${i}${j}`);
  12463. if (target) {
  12464. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12465. setTimeout(() => {
  12466. target.scrollIntoView(true);
  12467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12468. j
  12469. ].isFold3 = false;
  12470. setTimeout(() => {
  12471. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12472. }, 0);
  12473. }, 0);
  12474. }
  12475. },
  12476. jumpGj2(i, j, k) {
  12477. if (this.unitIndex != k) {
  12478. if (this.panUnitJson() == 2) {
  12479. return;
  12480. }
  12481. this.unitSet(k);
  12482. }
  12483. setTimeout(() => {
  12484. if (i + 1 != this.isClickColor) {
  12485. this.isClickColor = i + 1;
  12486. }
  12487. var a = document.scrollingElement;
  12488. this.toolIndexType = `gj${i}${j}${k}`;
  12489. let target = document.querySelector(`#gj${i}${j}`);
  12490. if (target) {
  12491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12492. setTimeout(() => {
  12493. target.scrollIntoView(true);
  12494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12495. j
  12496. ].isFold3 = false;
  12497. setTimeout(() => {
  12498. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12499. }, 0);
  12500. }, 0);
  12501. }
  12502. }, 0);
  12503. },
  12504. dragStart(val, i, j) {
  12505. console.log(this.taskCount);
  12506. this.dragType = "drag";
  12507. this.taskCount = j;
  12508. this.oldIndex = i;
  12509. this.oldData = val;
  12510. },
  12511. dragOver(i, j) {
  12512. this.typeIndex = "chapter-" + j + "-" + i;
  12513. this.newIndex = i;
  12514. },
  12515. dragEnd() {
  12516. if (this.dragType != "drag") {
  12517. this.typeIndex = "";
  12518. this.newIndex = "";
  12519. this.dragType = "";
  12520. this.isdrag = "";
  12521. return;
  12522. }
  12523. console.log(this.taskCount);
  12524. let newItems = [
  12525. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12526. .chapterData,
  12527. ];
  12528. // 删除老的节点
  12529. newItems.splice(this.oldIndex, 1);
  12530. // 在列表中目标位置增加新的节点
  12531. newItems.splice(this.newIndex, 0, this.oldData);
  12532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12533. this.taskCount
  12534. ].chapterData = [...newItems];
  12535. this.typeIndex = "";
  12536. this.newIndex = "";
  12537. this.dragType = "";
  12538. this.isdrag = "";
  12539. this.$forceUpdate();
  12540. },
  12541. dragTaskStart(val, i, j) {
  12542. this.dragType = "task";
  12543. this.oldIndex = i;
  12544. this.oldData = val;
  12545. this.oldUnitIndex = j;
  12546. },
  12547. dragTaskOver(i, j) {
  12548. this.typeIndex = "task-" + i;
  12549. this.newIndex = i;
  12550. this.checkUnitIndex = j;
  12551. },
  12552. async dragTaskEnd() {
  12553. if (this.dragType != "task") {
  12554. this.newIndex = "";
  12555. this.dragType = "";
  12556. this.typeIndex = "";
  12557. this.checkUnitIndex = "";
  12558. this.isdrag = "";
  12559. return;
  12560. }
  12561. if (
  12562. this.newIndex == this.oldIndex &&
  12563. this.oldUnitIndex == this.checkUnitIndex
  12564. ) {
  12565. this.newIndex = "";
  12566. this.dragType = "";
  12567. this.typeIndex = "";
  12568. this.checkUnitIndex = "";
  12569. this.isdrag = "";
  12570. return;
  12571. }
  12572. let count1 = await this.getWorksCount(
  12573. 2,
  12574. this.checkUnitIndex,
  12575. this.newIndex,
  12576. 0
  12577. );
  12578. let count2 = await this.getWorksCount(
  12579. 2,
  12580. this.oldUnitIndex,
  12581. this.oldIndex,
  12582. 0
  12583. );
  12584. if (count1 > 0 || count2 > 0) {
  12585. this.$confirm(
  12586. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  12587. "提示",
  12588. {
  12589. confirmButtonText: "确定",
  12590. cancelButtonText: "取消",
  12591. type: "warning",
  12592. }
  12593. )
  12594. .then(() => {
  12595. if (this.oldUnitIndex != this.checkUnitIndex) {
  12596. let newItems = [
  12597. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12598. ];
  12599. // 删除老的节点
  12600. newItems.splice(this.oldIndex, 1);
  12601. // 在列表中目标位置增加新的节点
  12602. let newItems2 = [
  12603. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12604. ];
  12605. newItems2.splice(this.newIndex, 0, this.oldData);
  12606. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12607. ...newItems,
  12608. ];
  12609. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12610. ...newItems2,
  12611. ];
  12612. } else {
  12613. let newItems = [
  12614. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12615. ];
  12616. let chapterData = []
  12617. if (this.oldIndex == 0) {
  12618. chapterData = newItems[this.oldIndex].chapterData
  12619. newItems[this.oldIndex].chapterData = []
  12620. } else if (this.newIndex == 0) {
  12621. chapterData = newItems[this.newIndex].chapterData
  12622. newItems[this.oldIndex].chapterData = []
  12623. }
  12624. // 删除老的节点
  12625. newItems.splice(this.oldIndex, 1);
  12626. // 在列表中目标位置增加新的节点
  12627. newItems.splice(this.newIndex, 0, this.oldData);
  12628. if (this.oldIndex == 0 || this.newIndex == 0) {
  12629. newItems[0].chapterData = chapterData
  12630. }
  12631. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12632. ...newItems,
  12633. ];
  12634. }
  12635. this.typeIndex = "";
  12636. this.newIndex = "";
  12637. this.dragType = "";
  12638. this.checkUnitIndex = "";
  12639. this.isdrag = "";
  12640. this.updateWork();
  12641. this.$forceUpdate();
  12642. })
  12643. .catch(() => {
  12644. this.newIndex = "";
  12645. this.dragType = "";
  12646. this.typeIndex = "";
  12647. this.checkUnitIndex = "";
  12648. this.isdrag = "";
  12649. return;
  12650. });
  12651. } else {
  12652. if (this.oldUnitIndex != this.checkUnitIndex) {
  12653. let newItems = [
  12654. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12655. ];
  12656. // 删除老的节点
  12657. newItems.splice(this.oldIndex, 1);
  12658. // 在列表中目标位置增加新的节点
  12659. let newItems2 = [
  12660. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12661. ];
  12662. newItems2.splice(this.newIndex, 0, this.oldData);
  12663. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12664. ...newItems,
  12665. ];
  12666. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12667. ...newItems2,
  12668. ];
  12669. } else {
  12670. let newItems = [
  12671. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12672. ];
  12673. let chapterData = []
  12674. if (this.oldIndex == 0) {
  12675. chapterData = newItems[this.oldIndex].chapterData
  12676. newItems[this.oldIndex].chapterData = []
  12677. } else if (this.newIndex == 0) {
  12678. chapterData = newItems[this.newIndex].chapterData
  12679. newItems[this.oldIndex].chapterData = []
  12680. }
  12681. // 删除老的节点
  12682. newItems.splice(this.oldIndex, 1);
  12683. // 在列表中目标位置增加新的节点
  12684. newItems.splice(this.newIndex, 0, this.oldData);
  12685. if (this.oldIndex == 0 || this.newIndex == 0) {
  12686. newItems[0].chapterData = chapterData
  12687. }
  12688. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12689. ...newItems,
  12690. ];
  12691. }
  12692. this.typeIndex = "";
  12693. this.newIndex = "";
  12694. this.dragType = "";
  12695. this.checkUnitIndex = "";
  12696. this.isdrag = "";
  12697. this.updateWork();
  12698. this.$forceUpdate();
  12699. }
  12700. },
  12701. dragUnitStart(val, i) {
  12702. this.dragType = "Unit";
  12703. this.oldIndex = i;
  12704. this.oldData = val;
  12705. },
  12706. dragUnitOver(i) {
  12707. this.typeIndex = "Unit-" + i;
  12708. this.newIndex = i;
  12709. console.log(i, this.unitJson[i].toolOpen);
  12710. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12711. this.unitJson[i].toolOpen = true;
  12712. this.updateWork();
  12713. this.$forceUpdate();
  12714. }
  12715. },
  12716. async dragUnitEnd() {
  12717. if (this.dragType != "Unit") {
  12718. this.newIndex = "";
  12719. this.dragType = "";
  12720. this.typeIndex = "";
  12721. this.isdrag = "";
  12722. return;
  12723. }
  12724. if (this.newIndex == this.oldIndex) {
  12725. this.newIndex = "";
  12726. this.dragType = "";
  12727. this.typeIndex = "";
  12728. this.isdrag = "";
  12729. return;
  12730. }
  12731. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12732. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12733. console.log(count1, count2);
  12734. if (count1 > 0 || count2 > 0) {
  12735. this.$confirm(
  12736. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12737. "提示",
  12738. {
  12739. confirmButtonText: "确定",
  12740. cancelButtonText: "取消",
  12741. type: "warning",
  12742. }
  12743. )
  12744. .then(() => {
  12745. let newItems = [...this.unitJson];
  12746. // 删除老的节点
  12747. newItems.splice(this.oldIndex, 1);
  12748. // 在列表中目标位置增加新的节点
  12749. newItems.splice(this.newIndex, 0, this.oldData);
  12750. this.unitJson = [...newItems];
  12751. this.typeIndex = "";
  12752. this.newIndex = "";
  12753. this.dragType = "";
  12754. this.isdrag = "";
  12755. this.updateWork();
  12756. this.$forceUpdate();
  12757. })
  12758. .catch(() => {
  12759. this.newIndex = "";
  12760. this.dragType = "";
  12761. this.typeIndex = "";
  12762. this.isdrag = "";
  12763. return;
  12764. });
  12765. } else {
  12766. let newItems = [...this.unitJson];
  12767. // 删除老的节点
  12768. newItems.splice(this.oldIndex, 1);
  12769. // 在列表中目标位置增加新的节点
  12770. newItems.splice(this.newIndex, 0, this.oldData);
  12771. this.unitJson = [...newItems];
  12772. this.typeIndex = "";
  12773. this.newIndex = "";
  12774. this.dragType = "";
  12775. this.isdrag = "";
  12776. this.updateWork();
  12777. this.$forceUpdate();
  12778. }
  12779. },
  12780. getWorksCount(type, stage, task, tool) {
  12781. return new Promise((resolve, reject) => {
  12782. let params = [
  12783. {
  12784. cid: this.cid,
  12785. stage: stage,
  12786. task: task,
  12787. tool: tool,
  12788. type: type,
  12789. },
  12790. ];
  12791. this.ajax
  12792. .post(this.$store.state.api + "getCourseWorkCount", params)
  12793. .then((res) => {
  12794. let count = res.data[0][0].count;
  12795. resolve(count);
  12796. })
  12797. .catch((err) => {
  12798. resolve(0);
  12799. this.$message.error("网络不佳");
  12800. console.error(err);
  12801. });
  12802. });
  12803. },
  12804. getTwoType(id) {
  12805. this.twoJson = [];
  12806. var array = this.CourseTypeJson1[
  12807. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12808. ].filter((e) => {
  12809. return e.ppid == id;
  12810. });
  12811. this.twoJson = array;
  12812. this.$forceUpdate();
  12813. },
  12814. ctype() {
  12815. this.oneJson =
  12816. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12817. },
  12818. selectAllType1() {
  12819. this.CourseType1 = [];
  12820. this.CourseTypeJson1 = {};
  12821. this.courseTypeId1 = {};
  12822. this.$forceUpdate();
  12823. let params = {
  12824. org: this.org && this.org != "" ? this.org : "",
  12825. oid: this.oid && this.oid != "" ? this.oid : "",
  12826. };
  12827. this.ajax
  12828. .get(this.$store.state.api + "selectAllEvaType", params)
  12829. .then((res) => {
  12830. this.CourseType1 = res.data;
  12831. for (var i = 0; i < res.data[0].length; i++) {
  12832. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12833. res.data[0][i].name = "一级分类";
  12834. } else if (
  12835. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12836. ) {
  12837. res.data[0][i].name = "二级分类";
  12838. }
  12839. if (!this.cid) {
  12840. this.courseTypeId1[res.data[0][i].id] = [];
  12841. }
  12842. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12843. this.CourseTypeJson1[res.data[0][i].id] = [];
  12844. }
  12845. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12846. for (var j = 0; j < res.data[1].length; j++) {
  12847. if (res.data[0][i].id == res.data[1][j].pid) {
  12848. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12849. }
  12850. }
  12851. // } else {
  12852. if (res.data[2].length > 0) {
  12853. for (var j = 0; j < res.data[2].length; j++) {
  12854. if (res.data[0][i].id == res.data[2][j].pid) {
  12855. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12856. }
  12857. }
  12858. }
  12859. if (res.data[3].length > 0) {
  12860. for (var j = 0; j < res.data[3].length; j++) {
  12861. if (res.data[0][i].id == res.data[3][j].pid) {
  12862. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12863. }
  12864. }
  12865. }
  12866. // }
  12867. }
  12868. this.ctype();
  12869. this.cetBoxDialog = true;
  12870. })
  12871. .catch((err) => {
  12872. console.error(err);
  12873. });
  12874. },
  12875. setAiJson(pan,string){
  12876. this.aiJson[pan] = string
  12877. this.$forceUpdate();
  12878. },
  12879. editTask3(index){
  12880. if(this.unitJson[0].chapterInfo[0].taskJson[index].isTask3){
  12881. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = false
  12882. }else {
  12883. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = true
  12884. }
  12885. this.$forceUpdate();
  12886. },
  12887. editCpote(index){
  12888. if(this.cpote[index]){
  12889. this.cpote[index] = false
  12890. }else {
  12891. this.cpote[index] = true
  12892. }
  12893. this.$forceUpdate();
  12894. },
  12895. openAiDialog(clickType, type, callback, index, tindex) {
  12896. // if(clickType == 1){
  12897. // return;
  12898. // }
  12899. if (this.courseName == "") {
  12900. this.$message.error("请补充填写课程名称");
  12901. return;
  12902. }
  12903. this.clickType = clickType
  12904. let sub = []
  12905. if (this.courseTypeId.length) {
  12906. for (var i = 0; i < this.courseTypeId.length; i++) {
  12907. let _sid = this.courseTypeId[i]
  12908. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12909. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12910. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12911. }
  12912. }
  12913. }
  12914. }
  12915. let mclass = []
  12916. if (this.courseTypeId.length) {
  12917. for (var i = 0; i < this.courseTypeId.length; i++) {
  12918. let _sid = this.courseTypeId[i]
  12919. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12920. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  12921. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  12922. }
  12923. }
  12924. }
  12925. }
  12926. if (type == "aiDetail") {
  12927. if (this.ttextLoading) {
  12928. this.$message({
  12929. message: "请回答完毕后再次发送",
  12930. type: "warning"
  12931. });
  12932. return;
  12933. }
  12934. this.aitype = "aiDetail"
  12935. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12936. this.aiText = this.aiJson.aiDetail
  12937. } else if (type == "aiOutline") {
  12938. this.aitype = "aiOutline"
  12939. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12940. this.aiText = this.aiJson.aiOutline
  12941. } else if (type == "aiTask") {
  12942. this.aitype = "aiTask"
  12943. var _text = ""
  12944. for (var i = 0; i < this.teacherText.length; i++) {
  12945. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12946. }
  12947. // this.aiText = `请根据${_text}。`
  12948. this.aiText = this.aiJson.aiTask
  12949. this.aiCallBack = callback
  12950. } else if (type == "aiDetail1") {
  12951. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12952. this.$message({
  12953. message: "请回答完毕后再次发送",
  12954. type: "warning"
  12955. });
  12956. return;
  12957. }
  12958. this.aitype = "aiDetail1"
  12959. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12960. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12961. this.aiText = this.aiJson.aiDetail1
  12962. this.aiCallBack = callback
  12963. this.aiIndex = index
  12964. } else if (type == "aiDetail2") {
  12965. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12966. this.$message({
  12967. message: "请回答完毕后再次发送",
  12968. type: "warning"
  12969. });
  12970. return;
  12971. }
  12972. this.aitype = "aiDetail2"
  12973. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12974. this.aiText = this.aiJson.aiDetail2
  12975. this.aiCallBack = callback
  12976. this.aiIndex = index
  12977. } else if (type == "aiDetail3") {
  12978. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12979. this.$message({
  12980. message: "请回答完毕后再次发送",
  12981. type: "warning"
  12982. });
  12983. return;
  12984. }
  12985. this.aitype = "aiDetail3"
  12986. this.aiText = this.aiJson.aiDetail3
  12987. this.aiIndex = index + '-' + tindex
  12988. } else if (type == "aiDetail4") {
  12989. var _text = ""
  12990. for (var i = 0; i < callback.length; i++) {
  12991. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12992. }
  12993. this.aitype = "aiDetail4"
  12994. this.aiText = this.aiJson.aiDetail4
  12995. this.aiIndex = index
  12996. } else if (type == "aiTeacher") {
  12997. this.aitype = "aiTeacher"
  12998. var _text = ""
  12999. for (var i = 0; i < this.dArray.length; i++) {
  13000. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  13001. }
  13002. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13003. this.aiText = this.aiJson.aiTeacher
  13004. this.aiCallBack = callback
  13005. } else if (type == "teacherDetail") {
  13006. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  13007. this.$message({
  13008. message: "请回答完毕后再次发送",
  13009. type: "warning"
  13010. });
  13011. return;
  13012. }
  13013. this.aitype = "teacherDetail"
  13014. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13015. this.aiText = this.aiJson.teacherDetail
  13016. this.aiCallBack = callback
  13017. this.aiIndex = index
  13018. } else if (type == "aiCpote1") {
  13019. if (this.cpotetLoading.cpote1) {
  13020. this.$message({
  13021. message: "请回答完毕后再次发送",
  13022. type: "warning"
  13023. });
  13024. return;
  13025. }
  13026. this.aitype = "aiCpote1"
  13027. this.aiText = this.aiJson.cpote1
  13028. this.aiCallBack = callback
  13029. } else if (type == "aiCpote2") {
  13030. if (this.cpotetLoading.cpote2) {
  13031. this.$message({
  13032. message: "请回答完毕后再次发送",
  13033. type: "warning"
  13034. });
  13035. return;
  13036. }
  13037. this.aitype = "aiCpote2"
  13038. this.aiText = this.aiJson.cpote2
  13039. this.aiCallBack = callback
  13040. }
  13041. else if (type == "aiCpote3") {
  13042. if (this.cpotetLoading.cpote3) {
  13043. this.$message({
  13044. message: "请回答完毕后再次发送",
  13045. type: "warning"
  13046. });
  13047. return;
  13048. }
  13049. this.aitype = "aiCpote3"
  13050. this.aiText = this.aiJson.cpote3
  13051. this.aiCallBack = callback
  13052. } else if (type == "aiCpote4") {
  13053. if (this.cpotetLoading.cpote4) {
  13054. this.$message({
  13055. message: "请回答完毕后再次发送",
  13056. type: "warning"
  13057. });
  13058. return;
  13059. }
  13060. this.aitype = "aiCpote4"
  13061. this.aiText = this.aiJson.cpote4
  13062. this.aiCallBack = callback
  13063. }
  13064. this.dialogVisibleAiD = true
  13065. },
  13066. aiConfirm(msg) {
  13067. let sub = []
  13068. if (this.courseTypeId.length) {
  13069. for (var i = 0; i < this.courseTypeId.length; i++) {
  13070. let _sid = this.courseTypeId[i]
  13071. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13072. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13073. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13074. }
  13075. }
  13076. }
  13077. }
  13078. let mclass = []
  13079. if (this.courseTypeId.length) {
  13080. for (var i = 0; i < this.courseTypeId.length; i++) {
  13081. let _sid = this.courseTypeId[i]
  13082. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13083. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13084. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13085. }
  13086. }
  13087. }
  13088. }
  13089. let url = []
  13090. if (this.infoData.length) {
  13091. for (var i = 0; i < this.infoData.length; i++) {
  13092. url.push(this.infoData[i].url)
  13093. }
  13094. }
  13095. if (this.aitype == "aiDetail") {
  13096. this.detailYou(msg)
  13097. } else if (this.aitype == "aiOutline") {
  13098. this.loading = true
  13099. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13100. // ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13101. let message = `NOTICE
  13102. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13103. 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.
  13104. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13105. Instruction: Based on the context, follow "Format example", write content.
  13106. # Context
  13107. ## 要求
  13108. ${msg} 以及##参考资料
  13109. ## 参考资料
  13110. 课程名字:${this.courseName}
  13111. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  13112. ${sub.length ? '学科:' + sub.join(",") : ''}
  13113. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13114. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13115. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13116. # Format example
  13117. [{"task": "任务名称1","detail": "任务设计和评价标准"},{"task": "任务名称2","detail": "任务设计和评价标准"}]`
  13118. this.aiGet2(message, () => {
  13119. this.loading = false
  13120. this.isOutline = true
  13121. })
  13122. } else if (this.aitype == "aiTask") {
  13123. var _text = ""
  13124. for (var i = 0; i < this.teacherText.length; i++) {
  13125. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  13126. }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13127. let message = `NOTICE
  13128. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13129. 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.
  13130. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13131. Instruction: Based on the context, follow "Format example", write content.
  13132. # Context
  13133. ## 要求
  13134. ${msg} 以及#教学任务教案 内容要求参考#格式要求
  13135. ## 教学任务教案
  13136. ${_text}
  13137. ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
  13138. ## 格式要求
  13139. 任务数量:${this.teacherText.length}个
  13140. 任务描述:用老师的身份以友好,但是又清晰明确的口吻来撰写该描述,该描述教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动
  13141. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13142. 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:电子白板,文档,思维导图,表格,作业提交,问答,选择题,只在这几个工具里选
  13143. 工具描述:用同学的方式以友好亲切,明确的口吻告诉学生该如何使用该工具
  13144. # Format example
  13145. [{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"}]}]`
  13146. this.loading = true
  13147. this.aiGet3(message, this.aiCallBack)
  13148. } else if (this.aitype == "aiDetail1") {
  13149. this.aiDetail(msg, this.aiIndex)
  13150. } else if (this.aitype == "aiDetail2") {
  13151. this.aiDetail2(msg, this.aiIndex)
  13152. } else if (this.aitype == "aiDetail3") {
  13153. let _index = this.aiIndex.split('-')
  13154. this.aiDetail3(msg, _index[0], _index[1])
  13155. } else if (this.aitype == "aiDetail4") {
  13156. this.aiDetail4(msg, this.aiIndex)
  13157. } else if (this.aitype == "teacherDetail") {
  13158. this.aiDetail5(msg, this.aiIndex)
  13159. } else if (this.aitype == "aiCpote1") {
  13160. this.aiCpote(msg, this.aiCallBack)
  13161. } else if (this.aitype == "aiCpote2") {
  13162. this.aiCpote(msg, this.aiCallBack)
  13163. } else if (this.aitype == "aiCpote3") {
  13164. this.aiCpote(msg, this.aiCallBack)
  13165. } else if (this.aitype == "aiCpote4") {
  13166. this.aiCpote(msg, this.aiCallBack)
  13167. } else if (this.aitype == "aiTeacher") {
  13168. this.loading = true
  13169. var _text = ""
  13170. for (var i = 0; i < this.dArray.length; i++) {
  13171. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  13172. }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13173. let message = ` NOTICE
  13174. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13175. 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.
  13176. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13177. Instruction: Based on the context, follow "Format example", write content.
  13178. # Context
  13179. ## 要求
  13180. ${msg} 以及${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '##任务大纲' : '##目标层,##任务簇'}
  13181. ${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 任务大纲\n'+_text : ''}
  13182. ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n## 任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
  13183. ## Format example
  13184. [{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]`
  13185. this.aiGet4(message, () => {
  13186. this.loading = false
  13187. this.isOutline2 = true
  13188. })
  13189. }
  13190. this.setAiJson(this.aitype, msg)
  13191. },
  13192. detailYou(message) {
  13193. this.textLoading = true
  13194. this.ttextLoading = true
  13195. let sub = []
  13196. if (this.courseTypeId.length) {
  13197. for (var i = 0; i < this.courseTypeId.length; i++) {
  13198. let _sid = this.courseTypeId[i]
  13199. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13200. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13201. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13202. }
  13203. }
  13204. }
  13205. }
  13206. let mclass = []
  13207. if (this.courseTypeId.length) {
  13208. for (var i = 0; i < this.courseTypeId.length; i++) {
  13209. let _sid = this.courseTypeId[i]
  13210. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13211. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13212. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13213. }
  13214. }
  13215. }
  13216. }
  13217. let url = []
  13218. if (this.infoData.length) {
  13219. for (var i = 0; i < this.infoData.length; i++) {
  13220. url.push(this.infoData[i].url)
  13221. }
  13222. }
  13223. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13224. // --------
  13225. // ## 补充参考资料
  13226. // 补充资料:${url.join(",")}
  13227. // 补充描述:${this.courseText2} ##补充参考资料和
  13228. let msg = `
  13229. 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.
  13230. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13231. --------
  13232. ## 参考资料
  13233. 课程名字:${this.courseName}
  13234. ${sub.length ? '学科:' + sub.join(",") : ''}
  13235. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13236. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13237. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13238. --------
  13239. ## 要求
  13240. ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  13241. --------
  13242. ## Format example
  13243. -课程简要描述:
  13244. -驱动性问题:**1个**驱动整个项目的问题
  13245. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  13246. this.aiGet(msg)
  13247. },
  13248. setUnitJson() {
  13249. 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 }] }
  13250. this.$forceUpdate()
  13251. },
  13252. async aiGet(messages) {
  13253. let _this = this
  13254. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13255. if (_this.infoData.length) {
  13256. for (var i = 0; i < _this.infoData.length; i++) {
  13257. if(_this.infoData[i].fileid){
  13258. fileid.push(_this.infoData[i].fileid)
  13259. }else {
  13260. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13261. if(_fileid){
  13262. _this.infoData[i].fileid = _fileid
  13263. _this.$forceUpdate();
  13264. fileid.push(_fileid)
  13265. }
  13266. }
  13267. }
  13268. }
  13269. let _uuid = uuidv4();
  13270. // let params = JSON.stringify({
  13271. // // "model": "Chat",
  13272. // model: 'gpt-3.5-turbo',
  13273. // temperature: 0,
  13274. // max_tokens: 4096,
  13275. // top_p: 1,
  13276. // frequency_penalty: 0,
  13277. // presence_penalty: 0,
  13278. // messages: [{
  13279. // content: messages,
  13280. // role: 'user'
  13281. // }],
  13282. // uid: _uuid,
  13283. // mind_map_question: "",
  13284. // })
  13285. let params = {
  13286. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13287. message: [{"type":"text", "text":messages}],
  13288. session_name: _uuid,
  13289. userId: _this.userid,
  13290. uid: _uuid,
  13291. file_ids: fileid.length ? [...fileid] : '',
  13292. }
  13293. // let params = JSON.stringify({
  13294. // message: {
  13295. // anthropic_version: "bedrock-2023-05-31",
  13296. // max_tokens: 4096,
  13297. // temperature: 0,
  13298. // top_p: 1,
  13299. // messages: [{
  13300. // "role": "user",
  13301. // "content": messages
  13302. // }] ,
  13303. // },
  13304. // uid: _uuid,
  13305. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13306. // });
  13307. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13308. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  13309. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13310. console.log(response);
  13311. // let data = response.data.FunctionResponse
  13312. // if (data.choices && data.choices.length && data.choices[0].message) {
  13313. // _this.courseText = data.choices[0].message.content
  13314. // }
  13315. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  13316. } else {
  13317. this.$message.warning(response.data.FunctionResponse.result);
  13318. }
  13319. }).catch(function (error) {
  13320. _this.textLoading = false
  13321. _this.ttextLoading = false
  13322. console.log(error);
  13323. });
  13324. _this.aiGetgetAiContent(_uuid)
  13325. },
  13326. aiGetgetAiContent(_uid) {
  13327. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13328. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13329. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13330. let _allText = "";
  13331. let _mdText = "";
  13332. _source.onmessage = _e => {
  13333. let _eData = JSON.parse(_e.data).content;
  13334. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  13335. //对话已经完成
  13336. _mdText = _mdText.replace("_", "");
  13337. _source.close();
  13338. this.courseText = _mdText;
  13339. this.textLoading = false
  13340. this.ttextLoading = false
  13341. return;
  13342. } else {
  13343. //对话还在继续
  13344. let _text = "";
  13345. _text = _eData.replaceAll("'", "");
  13346. if (_allText == "") {
  13347. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13348. } else {
  13349. _allText += _text;
  13350. }
  13351. _mdText = _allText + "_";
  13352. _mdText = _mdText.replace(/\\n/g, "\n");
  13353. _mdText = _mdText.replace(/\\/g, "");
  13354. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13355. //转化返回的回复流数据
  13356. this.courseText = _mdText;
  13357. this.textLoading = false
  13358. // 处理流数据
  13359. }
  13360. };
  13361. },
  13362. async aiGet2(messages, callback) {
  13363. let _this = this
  13364. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13365. if (_this.infoData.length) {
  13366. for (var i = 0; i < _this.infoData.length; i++) {
  13367. if(_this.infoData[i].fileid){
  13368. fileid.push(_this.infoData[i].fileid)
  13369. }else {
  13370. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13371. if(_fileid){
  13372. _this.infoData[i].fileid = _fileid
  13373. _this.$forceUpdate();
  13374. fileid.push(_fileid)
  13375. }
  13376. }
  13377. }
  13378. }
  13379. console.log('fileid=========',fileid)
  13380. // let params = JSON.stringify({
  13381. // // "model": "Chat",
  13382. // model: 'gpt-3.5-turbo',
  13383. // temperature: 0,
  13384. // max_tokens: 4096,
  13385. // top_p: 1,
  13386. // frequency_penalty: 0,
  13387. // presence_penalty: 0,
  13388. // messages: [{
  13389. // content: messages,
  13390. // role: 'user'
  13391. // }],
  13392. // stream: false,
  13393. // uid: this.userid,
  13394. // mind_map_question: "",
  13395. // })
  13396. // // let params = JSON.stringify({
  13397. // // message: {
  13398. // // anthropic_version: "bedrock-2023-05-31",
  13399. // // max_tokens: 4096,
  13400. // // temperature: 0,
  13401. // // top_p: 1,
  13402. // // messages: [{
  13403. // // content: messages,
  13404. // // role: 'user'
  13405. // // }], //
  13406. // // },
  13407. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13408. // // });
  13409. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13410. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13411. // console.log(response);
  13412. // let data = response.data.FunctionResponse
  13413. // if (data.choices && data.choices.length && data.choices[0].message) {
  13414. // console.log(data.choices[0].message.content);
  13415. // let dArray = JSON.parse(data.choices[0].message.content)
  13416. // _this.dArray = dArray
  13417. // _this.unitJson[0].chapterInfo[0].taskJson = []
  13418. // for (var i = 0; i < dArray.length; i++) {
  13419. // let _task = dArray[i]
  13420. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13421. // task: _task.task,
  13422. // taskDetail: "",
  13423. // taskDetail2: _task.detail,
  13424. // taskDetail3: "",
  13425. // chapterData: [],
  13426. // toolText: "",
  13427. // toolChoose: [
  13428. // {
  13429. // tool: [],
  13430. // toolDetail: "",
  13431. // toolType: 0,
  13432. // askCount: 1,
  13433. // askTitle: "",
  13434. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13435. // },
  13436. // ],
  13437. // isShowTools: false,
  13438. // askCount: 1,
  13439. // isFold: 2,
  13440. // askTitle: "",
  13441. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13442. // checkJson: [{ checkCount: [], checkPerent: [] }],
  13443. // homeworkList: [],
  13444. // })
  13445. // }
  13446. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  13447. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13448. // _this.$forceUpdate();
  13449. // }
  13450. // // if (data.result) {
  13451. // // console.log(data.result);
  13452. // // let dArray = JSON.parse(data.result)
  13453. // // _this.dArray = dArray
  13454. // // _this.unitJson[0].chapterInfo[0].taskJson = []
  13455. // // for (var i = 0; i < dArray.length; i++) {
  13456. // // let _task = dArray[i]
  13457. // // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13458. // // task: _task.task,
  13459. // // taskDetail: "",
  13460. // // taskDetail2: _task.detail,
  13461. // // taskDetail3: "",
  13462. // // chapterData: [],
  13463. // // toolText: "",
  13464. // // toolChoose: [
  13465. // // {
  13466. // // tool: [],
  13467. // // toolDetail: "",
  13468. // // toolType: 0,
  13469. // // askCount: 1,
  13470. // // askTitle: "",
  13471. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13472. // // },
  13473. // // ],
  13474. // // isShowTools: false,
  13475. // // askCount: 1,
  13476. // // isFold: 1,
  13477. // // askTitle: "",
  13478. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13479. // // checkJson: [{ checkCount: [], checkPerent: [] }],
  13480. // // homeworkList: [],
  13481. // // })
  13482. // // }
  13483. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13484. // // _this.$forceUpdate();
  13485. // // }
  13486. // callback ? callback() : ''
  13487. // }).catch(function (error) {
  13488. // _this.loading = false
  13489. // console.log(error);
  13490. // });
  13491. let parm = {
  13492. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13493. message: [{"type":"text", "text":messages}],
  13494. session_name: uuidv4(),
  13495. userId: this.userid,
  13496. file_ids: fileid.length ? [...fileid] : '',
  13497. }
  13498. this.ajax
  13499. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13500. .then((response) => {
  13501. console.log(response);
  13502. let data = response.data.FunctionResponse
  13503. if (data.message) {
  13504. console.log(data.message);
  13505. let dArray = {}
  13506. try {
  13507. dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13508. } catch (error) {
  13509. console.log("error_________________" + error);
  13510. try {
  13511. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  13512. let match = data.message.match(regex);
  13513. dArray = JSON.parse(match[0]);
  13514. // var message = data.message;
  13515. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  13516. // var jsonEnd = message.indexOf("```", jsonStart);
  13517. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  13518. // dArray = JSON.parse(jsonString);
  13519. } catch (error) {
  13520. console.log("error_________________" + error);
  13521. }
  13522. }
  13523. _this.dArray = dArray
  13524. _this.unitJson[0].chapterInfo[0].taskJson = []
  13525. for (var i = 0; i < dArray.length; i++) {
  13526. let _task = dArray[i]
  13527. _this.unitJson[0].chapterInfo[0].taskJson.push({
  13528. task: _task.task,
  13529. taskDetail: "",
  13530. taskDetail2: _task.detail,
  13531. taskDetail3: "",
  13532. chapterData: [],
  13533. toolText: "",
  13534. toolChoose: [
  13535. {
  13536. tool: [],
  13537. toolDetail: "",
  13538. toolType: 0,
  13539. askCount: 1,
  13540. askTitle: "",
  13541. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13542. },
  13543. ],
  13544. isShowTools: false,
  13545. askCount: 1,
  13546. isFold: 2,
  13547. askTitle: "",
  13548. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13549. checkJson: [{ checkCount: [], checkPerent: [] }],
  13550. homeworkList: [],
  13551. })
  13552. }
  13553. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  13554. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13555. _this.$forceUpdate();
  13556. }
  13557. callback ? callback() : ''
  13558. })
  13559. .catch((error) => {
  13560. _this.loading = false
  13561. console.log(error);
  13562. });
  13563. },
  13564. async aiGet3(messages, callback) {
  13565. let _this = this
  13566. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13567. if (_this.infoData.length) {
  13568. for (var i = 0; i < _this.infoData.length; i++) {
  13569. if(_this.infoData[i].fileid){
  13570. fileid.push(_this.infoData[i].fileid)
  13571. }else {
  13572. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13573. if(_fileid){
  13574. _this.infoData[i].fileid = _fileid
  13575. _this.$forceUpdate();
  13576. fileid.push(_fileid)
  13577. }
  13578. }
  13579. }
  13580. }
  13581. // let params = JSON.stringify({
  13582. // // "model": "Chat",
  13583. // model: 'gpt-3.5-turbo',
  13584. // temperature: 0,
  13585. // max_tokens: 4096,
  13586. // top_p: 1,
  13587. // frequency_penalty: 0,
  13588. // presence_penalty: 0,
  13589. // messages: [{
  13590. // content: messages,
  13591. // role: 'user'
  13592. // }],
  13593. // stream: false,
  13594. // uid: this.userid,
  13595. // mind_map_question: "",
  13596. // })
  13597. // // let params = JSON.stringify({
  13598. // // message: {
  13599. // // anthropic_version: "bedrock-2023-05-31",
  13600. // // max_tokens: 4096,
  13601. // // temperature: 0,
  13602. // // top_p: 1,
  13603. // // messages: [{
  13604. // // content: messages,
  13605. // // role: 'user'
  13606. // // }], //
  13607. // // },
  13608. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13609. // // });
  13610. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13611. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13612. // console.log(response);
  13613. // let data = response.data.FunctionResponse
  13614. // if (data.choices && data.choices.length && data.choices[0].message) {
  13615. // console.log(data.choices[0].message.content);
  13616. // let tArray = JSON.parse(data.choices[0].message.content)
  13617. // // _this.unitJson[0].chapterInfo[0].task = []
  13618. // let toolsJson = {
  13619. // "电子白板": { tool: 1, type: 1 },
  13620. // "文档": { tool: 52, type: 1 },
  13621. // "思维导图": { tool: 3, type: 1 },
  13622. // "表格": { tool: 48, type: 1 },
  13623. // "作业提交": { tool: 16, type: 2 }
  13624. // }
  13625. // for (var i = 0; i < tArray.length; i++) {
  13626. // let _task = tArray[i]
  13627. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13628. // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13629. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13630. // if (_task.toolChoose.length) {
  13631. // for (var j = 0; j < _task.toolChoose.length; j++) {
  13632. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13633. // {
  13634. // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  13635. // toolDetail: _task.toolChoose[j].detail,
  13636. // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  13637. // askCount: 1,
  13638. // askTitle: "",
  13639. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13640. // },
  13641. // )
  13642. // }
  13643. // } else {
  13644. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13645. // {
  13646. // tool: [],
  13647. // toolDetail: "",
  13648. // toolType: 0,
  13649. // askCount: 1,
  13650. // askTitle: "",
  13651. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13652. // },
  13653. // )
  13654. // }
  13655. // }
  13656. // // if (_this.infoData.length) {
  13657. // // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  13658. // // }
  13659. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13660. // _this.$forceUpdate();
  13661. // }
  13662. // // if (data.result) {
  13663. // // console.log(data.result);
  13664. // // let tArray = JSON.parse(data.result)
  13665. // // // _this.unitJson[0].chapterInfo[0].task = []
  13666. // // let toolsJson = {
  13667. // // "电子白板": { tool: 1, type: 1 },
  13668. // // "文档": { tool: 52, type: 1 },
  13669. // // "思维导图": { tool: 3, type: 1 },
  13670. // // "表格": { tool: 48, type: 1 },
  13671. // // "作业提交": { tool: 16, type: 2 }
  13672. // // }
  13673. // // for (var i = 0; i < tArray.length; i++) {
  13674. // // let _task = tArray[i]
  13675. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13676. // // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13677. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13678. // // if (_task.toolChoose.length) {
  13679. // // for (var j = 0; j < _task.toolChoose.length; j++) {
  13680. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13681. // // {
  13682. // // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  13683. // // toolDetail: _task.toolChoose[j].detail,
  13684. // // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  13685. // // askCount: 1,
  13686. // // askTitle: "",
  13687. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13688. // // },
  13689. // // )
  13690. // // }
  13691. // // } else {
  13692. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13693. // // {
  13694. // // tool: [],
  13695. // // toolDetail: "",
  13696. // // toolType: 0,
  13697. // // askCount: 1,
  13698. // // askTitle: "",
  13699. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13700. // // },
  13701. // // )
  13702. // // }
  13703. // // }
  13704. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13705. // // _this.$forceUpdate();
  13706. // // }
  13707. // callback ? callback() : ''
  13708. // }).catch(function (error) {
  13709. // _this.loading = false
  13710. // console.log(error);
  13711. // });
  13712. let parm = {
  13713. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13714. message: [{"type":"text", "text":messages}],
  13715. session_name: uuidv4(),
  13716. userId: this.userid,
  13717. file_ids: fileid.length ? [...fileid] : '',
  13718. }
  13719. this.ajax
  13720. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13721. .then(async (response) => {
  13722. console.log(response);
  13723. let data = response.data.FunctionResponse
  13724. if (data.message) {
  13725. console.log(data.message);
  13726. let tArray = {}
  13727. try {
  13728. tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13729. } catch (error) {
  13730. console.log("error_________________" + error);
  13731. try {
  13732. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  13733. let match = data.message.match(regex);
  13734. tArray = JSON.parse(match[0]);
  13735. // var message = data.message;
  13736. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  13737. // var jsonEnd = message.indexOf("```", jsonStart);
  13738. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  13739. // tArray = JSON.parse(jsonString);
  13740. } catch (error) {
  13741. console.log("error_________________" + error);
  13742. }
  13743. }
  13744. let toolsJson = {
  13745. "电子白板": { tool: 1, type: 1 },
  13746. "文档": { tool: 52, type: 1 },
  13747. "思维导图": { tool: 3, type: 1 },
  13748. "表格": { tool: 48, type: 1 },
  13749. "作业提交": { tool: 16, type: 2 },
  13750. "问答": { tool: 15, type: 2 },
  13751. "选择题": { tool: 45, type: 2 },
  13752. }
  13753. // answerQ:"sssssssssssssss"
  13754. for (var i = 0; i < tArray.length; i++) {
  13755. let _task = tArray[i]
  13756. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13757. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13758. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13759. if (_task.toolChoose.length) {
  13760. for (var j = 0; j < _task.toolChoose.length; j++) {
  13761. let _json = {
  13762. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [16],
  13763. toolDetail: _task.toolChoose[j].detail,
  13764. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 2,
  13765. askCount: 1,
  13766. askTitle: "",
  13767. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13768. }
  13769. if(converter(_task.toolChoose[j].tool) == converter('问答')){
  13770. let answerQ = await _this.aiCreateQuestion(15, i)
  13771. _json.answerQ = answerQ.answerQ
  13772. }else if(converter(_task.toolChoose[j].tool) == converter('选择题')){
  13773. let testJson = await _this.aiCreateQuestion(45, i)
  13774. _json.testJson = {"testCount":testJson.length,"testTitle":"","testJson":testJson}
  13775. }
  13776. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(_json)
  13777. }
  13778. } else {
  13779. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13780. {
  13781. tool: [],
  13782. toolDetail: "",
  13783. toolType: 0,
  13784. askCount: 1,
  13785. askTitle: "",
  13786. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13787. },
  13788. )
  13789. }
  13790. }
  13791. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13792. _this.$forceUpdate();
  13793. _this.createTeacherAn();
  13794. }
  13795. callback ? callback() : ''
  13796. })
  13797. .catch((error) => {
  13798. _this.loading = false
  13799. console.log(error);
  13800. });
  13801. },
  13802. async aiCreateQuestion(type, task) {
  13803. let _this = this
  13804. return new Promise((resolve, reject) => {
  13805. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13806. if (_this.infoData.length) {
  13807. for (var i = 0; i < _this.infoData.length; i++) {
  13808. if(_this.infoData[i].fileid){
  13809. fileid.push(_this.infoData[i].fileid)
  13810. }
  13811. }
  13812. }
  13813. let sub = []
  13814. let mclass = []
  13815. if (this.courseTypeId.length) {
  13816. for (var i = 0; i < this.courseTypeId.length; i++) {
  13817. let _sid = this.courseTypeId[i]
  13818. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13819. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13820. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13821. }
  13822. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13823. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13824. }
  13825. }
  13826. }
  13827. }
  13828. let messages = ""
  13829. if(type == 15){
  13830. messages = `NOTICE
  13831. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13832. 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.
  13833. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13834. Instruction: Based on the context, follow "Format example", write content.
  13835. # Context
  13836. ## 任务
  13837. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成1道问答题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。然后根据Format example的要求返回要以json的格式
  13838. ## 限制
  13839. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  13840. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  13841. ## 课程简介
  13842. 课程名字:${_this.courseName}
  13843. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  13844. ${sub.length ? '学科:' + sub.join(",") : ''}
  13845. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13846. ## 教案
  13847. ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  13848. # Format example
  13849. {answerQ:"问题"}
  13850. `
  13851. }else if(type == 45){
  13852. messages = `NOTICE
  13853. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13854. 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.
  13855. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13856. Instruction: Based on the context, follow "Format example", write content.
  13857. # Context
  13858. ## 任务
  13859. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成5道单选题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。
  13860. ## 限制
  13861. - 生成题目禁止重复。
  13862. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  13863. - 请严格按照以下格式要求输出内容,题目必须是单选题。
  13864. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  13865. ## 课程简介
  13866. 课程名字:${_this.courseName}
  13867. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  13868. ${sub.length ? '学科:' + sub.join(",") : ''}
  13869. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13870. ## 教案
  13871. ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  13872. # Format example
  13873. [{"teststitle":"题目内容","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"},{"teststitle":"题目内容","testItem":"选项数量(数字)","checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":"答案(数字)","type":"1"}]
  13874. `
  13875. }
  13876. let parm = {
  13877. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13878. message: [{"type":"text", "text":messages}],
  13879. session_name: uuidv4(),
  13880. userId: this.userid,
  13881. file_ids: fileid.length ? [...fileid] : '',
  13882. }
  13883. this.ajax
  13884. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13885. .then((response) => {
  13886. console.log(response);
  13887. let data = response.data.FunctionResponse
  13888. if (data.message) {
  13889. console.log(data.message);
  13890. try {
  13891. // let tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13892. let tArray = {}
  13893. try {
  13894. tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13895. } catch (error) {
  13896. console.log("error_________________" + error);
  13897. try {
  13898. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  13899. let match = data.message.match(regex);
  13900. tArray = JSON.parse(match[0]);
  13901. // var message = data.message;
  13902. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  13903. // var jsonEnd = message.indexOf("```", jsonStart);
  13904. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  13905. // tArray = JSON.parse(jsonString);
  13906. } catch (error) {
  13907. console.log("error_________________" + error);
  13908. }
  13909. }
  13910. resolve(tArray)
  13911. } catch (error) {
  13912. if(type == 15){
  13913. resolve({answerQ: "题目"})
  13914. }else if(type == 45){
  13915. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13916. }
  13917. }
  13918. }else if(type == 15){
  13919. resolve({answerQ: "题目"})
  13920. }else if(type == 45){
  13921. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13922. }
  13923. })
  13924. .catch((error) => {
  13925. if(type == 15){
  13926. resolve({answerQ: "题目"})
  13927. }else if(type == 45){
  13928. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13929. }
  13930. console.log(error);
  13931. });
  13932. });
  13933. },
  13934. async aiGet4(messages, callback, clickType) {
  13935. let _this = this
  13936. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13937. if (_this.infoData.length) {
  13938. for (var i = 0; i < _this.infoData.length; i++) {
  13939. if(_this.infoData[i].fileid){
  13940. fileid.push(_this.infoData[i].fileid)
  13941. }else {
  13942. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13943. if(_fileid){
  13944. _this.infoData[i].fileid = _fileid
  13945. _this.$forceUpdate();
  13946. fileid.push(_fileid)
  13947. }
  13948. }
  13949. }
  13950. }
  13951. // let params = JSON.stringify({
  13952. // // "model": "Chat",
  13953. // model: 'gpt-3.5-turbo',
  13954. // temperature: 0,
  13955. // max_tokens: 4096,
  13956. // top_p: 1,
  13957. // frequency_penalty: 0,
  13958. // presence_penalty: 0,
  13959. // messages: [{
  13960. // content: messages,
  13961. // role: 'user'
  13962. // }],
  13963. // stream: false,
  13964. // uid: this.userid,
  13965. // mind_map_question: "",
  13966. // })
  13967. // // let params = JSON.stringify({
  13968. // // message: {
  13969. // // anthropic_version: "bedrock-2023-05-31",
  13970. // // max_tokens: 4096,
  13971. // // temperature: 0,
  13972. // // top_p: 1,
  13973. // // messages: [{
  13974. // // content: messages,
  13975. // // role: 'user'
  13976. // // }], //
  13977. // // },
  13978. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13979. // // });
  13980. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13981. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13982. // console.log(response);
  13983. // let data = response.data.FunctionResponse
  13984. // if (data.choices && data.choices.length && data.choices[0].message) {
  13985. // console.log(data.choices[0].message.content);
  13986. // let dArray = JSON.parse(data.choices[0].message.content)
  13987. // _this.teacherText = JSON.parse(data.choices[0].message.content)
  13988. // if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  13989. // _this.unitJson[0].chapterInfo[0].taskJson = []
  13990. // for (var i = 0; i < dArray.length; i++) {
  13991. // let _task = dArray[i]
  13992. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13993. // task: _task.task,
  13994. // taskDetail: "",
  13995. // taskDetail2: "",
  13996. // taskDetail3: _task.detail,
  13997. // chapterData: [],
  13998. // toolText: "",
  13999. // toolChoose: [
  14000. // {
  14001. // tool: [],
  14002. // toolDetail: "",
  14003. // toolType: 0,
  14004. // askCount: 1,
  14005. // askTitle: "",
  14006. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14007. // },
  14008. // ],
  14009. // isShowTools: false,
  14010. // askCount: 1,
  14011. // isFold: 2,
  14012. // askTitle: "",
  14013. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14014. // checkJson: [{ checkCount: [], checkPerent: [] }],
  14015. // homeworkList: [],
  14016. // })
  14017. // }
  14018. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  14019. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14020. // _this.$forceUpdate();
  14021. // } else {
  14022. // for (var i = 0; i < dArray.length; i++) {
  14023. // let _task = dArray[i]
  14024. // if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  14025. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14026. // }else {
  14027. // _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  14028. // task: _task.task,
  14029. // taskDetail: "",
  14030. // taskDetail2: "",
  14031. // taskDetail3: _task.detail,
  14032. // chapterData: [],
  14033. // toolText: "",
  14034. // toolChoose: [
  14035. // {
  14036. // tool: [],
  14037. // toolDetail: "",
  14038. // toolType: 0,
  14039. // askCount: 1,
  14040. // askTitle: "",
  14041. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14042. // },
  14043. // ],
  14044. // isShowTools: false,
  14045. // askCount: 1,
  14046. // isFold: 2,
  14047. // askTitle: "",
  14048. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14049. // checkJson: [{ checkCount: [], checkPerent: [] }],
  14050. // homeworkList: [],
  14051. // }
  14052. // }
  14053. // }
  14054. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14055. // _this.$forceUpdate();
  14056. // }
  14057. // }
  14058. // // if (data.result) {
  14059. // // console.log(data.result);
  14060. // // let dArray = JSON.parse(data.result)
  14061. // // _this.teacherText = JSON.parse(data.result)
  14062. // // for (var i = 0; i < dArray.length; i++) {
  14063. // // let _task = dArray[i]
  14064. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14065. // // }
  14066. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14067. // // _this.$forceUpdate();
  14068. // // }
  14069. // callback ? callback() : ''
  14070. // _this.loading = false
  14071. // }).catch(function (error) {
  14072. // _this.loading = false
  14073. // console.log(error);
  14074. // });
  14075. let parm = {
  14076. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14077. message: [{"type":"text", "text":messages}],
  14078. session_name: uuidv4(),
  14079. userId: this.userid,
  14080. file_ids: fileid.length ? [...fileid] : '',
  14081. }
  14082. this.ajax
  14083. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14084. .then((response) => {
  14085. console.log(response);
  14086. let data = response.data.FunctionResponse
  14087. if (data.message) {
  14088. console.log(data.message);
  14089. // let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14090. let dArray = {}
  14091. try {
  14092. dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14093. } catch (error) {
  14094. console.log("error_________________" + error);
  14095. try {
  14096. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14097. let match = data.message.match(regex);
  14098. dArray = JSON.parse(match[0]);
  14099. // var message = data.message;
  14100. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14101. // var jsonEnd = message.indexOf("```", jsonStart);
  14102. // var jsonString = message.substring(jsonStart, jsonEnd).trim();
  14103. // dArray = JSON.parse(jsonString);
  14104. } catch (error) {
  14105. console.log("error_________________" + error);
  14106. }
  14107. }
  14108. _this.teacherText = JSON.parse(JSON.stringify(dArray))
  14109. if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  14110. _this.unitJson[0].chapterInfo[0].taskJson = []
  14111. for (var i = 0; i < dArray.length; i++) {
  14112. let _task = dArray[i]
  14113. _this.unitJson[0].chapterInfo[0].taskJson.push({
  14114. task: _task.task,
  14115. taskDetail: "",
  14116. taskDetail2: "",
  14117. taskDetail3: _task.detail,
  14118. chapterData: [],
  14119. toolText: "",
  14120. toolChoose: [
  14121. {
  14122. tool: [],
  14123. toolDetail: "",
  14124. toolType: 0,
  14125. askCount: 1,
  14126. askTitle: "",
  14127. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14128. },
  14129. ],
  14130. isShowTools: false,
  14131. askCount: 1,
  14132. isFold: 2,
  14133. askTitle: "",
  14134. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14135. checkJson: [{ checkCount: [], checkPerent: [] }],
  14136. homeworkList: [],
  14137. })
  14138. }
  14139. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  14140. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14141. _this.$forceUpdate();
  14142. } else {
  14143. for (var i = 0; i < dArray.length; i++) {
  14144. let _task = dArray[i]
  14145. if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  14146. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14147. }else {
  14148. _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  14149. task: _task.task,
  14150. taskDetail: "",
  14151. taskDetail2: "",
  14152. taskDetail3: _task.detail,
  14153. chapterData: [],
  14154. toolText: "",
  14155. toolChoose: [
  14156. {
  14157. tool: [],
  14158. toolDetail: "",
  14159. toolType: 0,
  14160. askCount: 1,
  14161. askTitle: "",
  14162. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14163. },
  14164. ],
  14165. isShowTools: false,
  14166. askCount: 1,
  14167. isFold: 2,
  14168. askTitle: "",
  14169. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14170. checkJson: [{ checkCount: [], checkPerent: [] }],
  14171. homeworkList: [],
  14172. }
  14173. }
  14174. }
  14175. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14176. _this.$forceUpdate();
  14177. }
  14178. }
  14179. callback ? callback() : ''
  14180. })
  14181. .catch((error) => {
  14182. _this.loading = false
  14183. console.log(error);
  14184. });
  14185. },
  14186. async aiDetail(msg, index) {
  14187. let _this = this
  14188. const _tindex = 'task-' + index
  14189. const _tindex2 = index
  14190. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14191. if (_this.infoData.length) {
  14192. for (var i = 0; i < _this.infoData.length; i++) {
  14193. if(_this.infoData[i].fileid){
  14194. fileid.push(_this.infoData[i].fileid)
  14195. }else {
  14196. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14197. if(_fileid){
  14198. _this.infoData[i].fileid = _fileid
  14199. _this.$forceUpdate();
  14200. fileid.push(_fileid)
  14201. }
  14202. }
  14203. }
  14204. }
  14205. let url = []
  14206. if (this.infoData.length) {
  14207. for (var i = 0; i < this.infoData.length; i++) {
  14208. url.push(this.infoData[i].url)
  14209. }
  14210. }
  14211. let messages = `
  14212. 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.
  14213. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14214. --------
  14215. ## 要求
  14216. ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
  14217. --------
  14218. ## 教学任务描述
  14219. 任务名称:${_this.aiCallBack.task}
  14220. 大纲描述:${_this.aiCallBack.taskDetail2}`
  14221. // -------- #补充参考资料和
  14222. // ## 补充参考资料
  14223. // - 补充资料:${url.join(",")}
  14224. // - 补充描述:${_this.courseText2}
  14225. _this.taskDetailLoading.push(_tindex)
  14226. _this.ttaskDetailLoading.push(_tindex)
  14227. let _uuid = uuidv4();
  14228. // let params = JSON.stringify({
  14229. // // "model": "Chat",
  14230. // model: 'gpt-3.5-turbo',
  14231. // temperature: 0,
  14232. // max_tokens: 4096,
  14233. // top_p: 1,
  14234. // frequency_penalty: 0,
  14235. // presence_penalty: 0,
  14236. // messages: [{
  14237. // content: messages,
  14238. // role: 'user'
  14239. // }],
  14240. // uid: _uuid,
  14241. // mind_map_question: "",
  14242. // })
  14243. let params = {
  14244. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14245. message: [{"type":"text", "text":messages}],
  14246. session_name: _uuid,
  14247. userId: _this.userid,
  14248. uid: _uuid,
  14249. file_ids: fileid.length ? [...fileid] : '',
  14250. }
  14251. // let params = JSON.stringify({
  14252. // message: {
  14253. // anthropic_version: "bedrock-2023-05-31",
  14254. // max_tokens: 4096,
  14255. // temperature: 0,
  14256. // top_p: 1,
  14257. // messages: [{
  14258. // "role": "user",
  14259. // "content": messages
  14260. // }] ,
  14261. // },
  14262. // uid: _uuid,
  14263. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14264. // });
  14265. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14266. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14267. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14268. console.log(response);
  14269. // let data = response.data.FunctionResponse
  14270. // if (data.choices && data.choices.length && data.choices[0].message) {
  14271. // console.log(data.choices[0].message.content);
  14272. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  14273. // _this.$forceUpdate()
  14274. // }
  14275. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14276. } else {
  14277. this.$message.warning(response.data.FunctionResponse.result);
  14278. }
  14279. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14280. }).catch(function (error) {
  14281. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14282. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  14283. console.log(error);
  14284. });
  14285. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  14286. },
  14287. aiDetailgetAiContent(_uid, loading, _tindex2) {
  14288. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14289. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14290. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14291. let _allText = "";
  14292. let _mdText = "";
  14293. _source.onmessage = _e => {
  14294. let _eData = JSON.parse(_e.data).content;
  14295. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14296. //对话已经完成
  14297. _mdText = _mdText.replace("_", "");
  14298. _source.close();
  14299. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14300. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14301. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  14302. return;
  14303. } else {
  14304. //对话还在继续
  14305. let _text = "";
  14306. _text = _eData.replaceAll("'", "");
  14307. if (_allText == "") {
  14308. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14309. } else {
  14310. _allText += _text;
  14311. }
  14312. _mdText = _allText + "_";
  14313. _mdText = _mdText.replace(/\\n/g, "\n");
  14314. _mdText = _mdText.replace(/\\/g, "");
  14315. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14316. //转化返回的回复流数据
  14317. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14318. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14319. // 处理流数据
  14320. }
  14321. };
  14322. },
  14323. async aiDetail2(msg, index) {
  14324. let _this = this
  14325. const _tindex = 'task-' + index
  14326. const _tindex2 = index
  14327. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14328. if (_this.infoData.length) {
  14329. for (var i = 0; i < _this.infoData.length; i++) {
  14330. if(_this.infoData[i].fileid){
  14331. fileid.push(_this.infoData[i].fileid)
  14332. }else {
  14333. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14334. if(_fileid){
  14335. _this.infoData[i].fileid = _fileid
  14336. _this.$forceUpdate();
  14337. fileid.push(_fileid)
  14338. }
  14339. }
  14340. }
  14341. }
  14342. let messages = `
  14343. 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.
  14344. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14345. --------
  14346. ## 要求
  14347. ${msg}
  14348. --------
  14349. ## 优化信息
  14350. 任务名字: ${_this.aiCallBack.task}
  14351. 任务描述: ${_this.aiCallBack.taskDetail}
  14352. # 格式与要求
  14353. - 任务名:
  14354. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  14355. _this.taskDetailLoading2.push(_tindex)
  14356. _this.ttaskDetailLoading2.push(_tindex)
  14357. let _uuid = uuidv4();
  14358. // let params = JSON.stringify({
  14359. // // "model": "Chat",
  14360. // model: 'gpt-3.5-turbo',
  14361. // temperature: 0,
  14362. // max_tokens: 4096,
  14363. // top_p: 1,
  14364. // frequency_penalty: 0,
  14365. // presence_penalty: 0,
  14366. // messages: [{
  14367. // content: messages,
  14368. // role: 'user'
  14369. // }],
  14370. // uid: _uuid,
  14371. // mind_map_question: "",
  14372. // })
  14373. let params = {
  14374. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14375. message: [{"type":"text", "text":messages}],
  14376. session_name: _uuid,
  14377. userId: _this.userid,
  14378. uid: _uuid,
  14379. file_ids: fileid.length ? [...fileid] : '',
  14380. }
  14381. // let params = JSON.stringify({
  14382. // message: {
  14383. // anthropic_version: "bedrock-2023-05-31",
  14384. // max_tokens: 4096,
  14385. // temperature: 0,
  14386. // top_p: 1,
  14387. // messages: [{
  14388. // "role": "user",
  14389. // "content": messages
  14390. // }] ,
  14391. // },
  14392. // uid: _uuid,
  14393. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14394. // });
  14395. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14396. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14397. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14398. console.log(response);
  14399. // let data = response.data.FunctionResponse
  14400. // if (data.choices && data.choices.length && data.choices[0].message) {
  14401. // console.log(data.choices[0].message.content);
  14402. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14403. // _this.$forceUpdate()
  14404. // }
  14405. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14406. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14407. } else {
  14408. this.$message.warning(response.data.FunctionResponse.result);
  14409. }
  14410. }).catch(function (error) {
  14411. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  14412. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  14413. console.log(error);
  14414. });
  14415. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  14416. },
  14417. aiDetail2getAiContent(_uid, loading, _tindex2) {
  14418. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14419. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14420. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14421. let _allText = "";
  14422. let _mdText = "";
  14423. _source.onmessage = _e => {
  14424. let _eData = JSON.parse(_e.data).content;
  14425. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14426. //对话已经完成
  14427. _mdText = _mdText.replace("_", "");
  14428. _source.close();
  14429. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14430. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14431. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  14432. return;
  14433. } else {
  14434. //对话还在继续
  14435. let _text = "";
  14436. _text = _eData.replaceAll("'", "");
  14437. if (_allText == "") {
  14438. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14439. } else {
  14440. _allText += _text;
  14441. }
  14442. _mdText = _allText + "_";
  14443. _mdText = _mdText.replace(/\\n/g, "\n");
  14444. _mdText = _mdText.replace(/\\/g, "");
  14445. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14446. //转化返回的回复流数据
  14447. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14448. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14449. // 处理流数据
  14450. }
  14451. };
  14452. },
  14453. async aiDetail3(msg, index, tindex) {
  14454. let _this = this
  14455. const _tindex = 'task-' + index + tindex
  14456. const _tindex2 = index
  14457. const _tindex3 = tindex
  14458. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14459. if (_this.infoData.length) {
  14460. for (var i = 0; i < _this.infoData.length; i++) {
  14461. if(_this.infoData[i].fileid){
  14462. fileid.push(_this.infoData[i].fileid)
  14463. }else {
  14464. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14465. if(_fileid){
  14466. _this.infoData[i].fileid = _fileid
  14467. _this.$forceUpdate();
  14468. fileid.push(_fileid)
  14469. }
  14470. }
  14471. }
  14472. }
  14473. // **重点考虑该任务及工具名和工具内容的情况下*
  14474. let messages = `
  14475. 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.
  14476. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14477. --------
  14478. ## 参考内容
  14479. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  14480. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  14481. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  14482. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  14483. --------
  14484. ## 要求
  14485. ${msg} 输出格式和内容要求参考#格式与要求
  14486. # 格式与要求
  14487. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  14488. _this.taskDetailLoading3.push(_tindex)
  14489. _this.ttaskDetailLoading3.push(_tindex)
  14490. let _uuid = uuidv4();
  14491. // let params = JSON.stringify({
  14492. // // "model": "Chat",
  14493. // model: 'gpt-3.5-turbo',
  14494. // temperature: 0,
  14495. // max_tokens: 4096,
  14496. // top_p: 1,
  14497. // frequency_penalty: 0,
  14498. // presence_penalty: 0,
  14499. // messages: [{
  14500. // content: messages,
  14501. // role: 'user'
  14502. // }],
  14503. // uid: _uuid,
  14504. // mind_map_question: "",
  14505. // })
  14506. let params = {
  14507. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14508. message: [{"type":"text", "text":messages}],
  14509. session_name: _uuid,
  14510. userId: _this.userid,
  14511. uid: _uuid,
  14512. file_ids: fileid.length ? [...fileid] : '',
  14513. }
  14514. // let params = JSON.stringify({
  14515. // message: {
  14516. // anthropic_version: "bedrock-2023-05-31",
  14517. // max_tokens: 4096,
  14518. // temperature: 0,
  14519. // top_p: 1,
  14520. // messages: [{
  14521. // "role": "user",
  14522. // "content": messages
  14523. // }] ,
  14524. // },
  14525. // uid: _uuid,
  14526. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14527. // });
  14528. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14529. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14530. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14531. console.log(response);
  14532. let data = response.data.FunctionResponse
  14533. // if (data.choices && data.choices.length && data.choices[0].message) {
  14534. // console.log(data.choices[0].message.content);
  14535. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  14536. // _this.$forceUpdate()
  14537. // }
  14538. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  14539. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14540. } else {
  14541. this.$message.warning(response.data.FunctionResponse.result);
  14542. }
  14543. }).catch(function (error) {
  14544. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  14545. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  14546. console.log(error);
  14547. });
  14548. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  14549. },
  14550. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  14551. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14552. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14553. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14554. let _allText = "";
  14555. let _mdText = "";
  14556. _source.onmessage = _e => {
  14557. let _eData = JSON.parse(_e.data).content;
  14558. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14559. //对话已经完成
  14560. _mdText = _mdText.replace("_", "");
  14561. _source.close();
  14562. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  14563. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  14564. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  14565. return;
  14566. } else {
  14567. //对话还在继续
  14568. let _text = "";
  14569. _text = _eData.replaceAll("'", "");
  14570. if (_allText == "") {
  14571. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14572. } else {
  14573. _allText += _text;
  14574. }
  14575. _mdText = _allText + "_";
  14576. _mdText = _mdText.replace(/\\n/g, "\n");
  14577. _mdText = _mdText.replace(/\\/g, "");
  14578. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14579. //转化返回的回复流数据
  14580. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  14581. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  14582. // 处理流数据
  14583. }
  14584. };
  14585. },
  14586. async aiDetail4(msg, index) {
  14587. if (!msg.length) {
  14588. this.$message.error("请添加评价后才能优化")
  14589. return
  14590. }
  14591. let _this = this
  14592. const _tindex = 'task-' + index
  14593. const _tindex2 = index
  14594. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14595. if (_this.infoData.length) {
  14596. for (var i = 0; i < _this.infoData.length; i++) {
  14597. if(_this.infoData[i].fileid){
  14598. fileid.push(_this.infoData[i].fileid)
  14599. }else {
  14600. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14601. if(_fileid){
  14602. _this.infoData[i].fileid = _fileid
  14603. _this.$forceUpdate();
  14604. fileid.push(_fileid)
  14605. }
  14606. }
  14607. }
  14608. }
  14609. var _text = ""
  14610. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  14611. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  14612. }
  14613. // **重点考虑该任务详情**
  14614. let messages = `
  14615. 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.
  14616. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14617. #Context
  14618. ## 参考内容
  14619. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  14620. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  14621. 评价设计:${_text}
  14622. ## 要求
  14623. ${msg} 优化评价维度和维度描述,输出格式和内容要求参考# 格式与要求
  14624. # 格式与要求
  14625. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  14626. # Format example
  14627. [{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]`
  14628. _this.taskDetailLoading4.push(_tindex)
  14629. // let params = JSON.stringify({
  14630. // // "model": "Chat",
  14631. // model: 'gpt-3.5-turbo',
  14632. // temperature: 0,
  14633. // max_tokens: 4096,
  14634. // top_p: 1,
  14635. // frequency_penalty: 0,
  14636. // presence_penalty: 0,
  14637. // messages: [{
  14638. // content: messages,
  14639. // role: 'user'
  14640. // }],
  14641. // stream: false,
  14642. // uid: this.userid,
  14643. // mind_map_question: "",
  14644. // })
  14645. let params = {
  14646. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14647. message: [{"type":"text", "text":messages}],
  14648. session_name: uuidv4(),
  14649. userId: _this.userid,
  14650. file_ids: fileid.length ? [...fileid] : '',
  14651. }
  14652. // let params = JSON.stringify({
  14653. // message: {
  14654. // anthropic_version: "bedrock-2023-05-31",
  14655. // max_tokens: 4096,
  14656. // temperature: 0,
  14657. // top_p: 1,
  14658. // messages: [{
  14659. // content: messages,
  14660. // role: 'user'
  14661. // }], //
  14662. // },
  14663. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14664. // });
  14665. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14666. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat', params).then(function (response) {
  14667. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  14668. console.log(response);
  14669. let data = response.data.FunctionResponse
  14670. // if (data.choices && data.choices.length && data.choices[0].message) {
  14671. // console.log(data.choices[0].message.content);
  14672. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  14673. // _this.$forceUpdate()
  14674. // }
  14675. if (data.message) {
  14676. console.log(data.message);
  14677. try {
  14678. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.message.replaceAll("```json", "").replaceAll("```", ""))
  14679. } catch (e) {
  14680. console.log("error_________________" + e);
  14681. // _this.$message.error(data.message)
  14682. try {
  14683. let regex = new RegExp("(?<=```json)([\\s\\S]*?)(?=```)");
  14684. let match = data.message.match(regex);
  14685. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(match[0]);
  14686. // var message = data.message;
  14687. // var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14688. // var jsonEnd = message.indexOf("```", jsonStart);
  14689. // if (jsonStart !== -1 && jsonEnd !== -1) {
  14690. // var jsonString = message
  14691. // .substring(jsonStart, jsonEnd)
  14692. // .trim();
  14693. // var _data2 = JSON.parse(jsonString);
  14694. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = _data2
  14695. // }
  14696. } catch (error) {
  14697. }
  14698. }
  14699. _this.$forceUpdate()
  14700. }
  14701. // if (data.result) {
  14702. // console.log(data.result);
  14703. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.result)
  14704. // _this.$forceUpdate()
  14705. // }
  14706. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14707. }).catch(function (error) {
  14708. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14709. console.log(error);
  14710. });
  14711. },
  14712. async aiDetail5(msg, index) {
  14713. let _this = this
  14714. const _tindex = 'task-' + index
  14715. const _tindex2 = index
  14716. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14717. if (_this.infoData.length) {
  14718. for (var i = 0; i < _this.infoData.length; i++) {
  14719. if(_this.infoData[i].fileid){
  14720. fileid.push(_this.infoData[i].fileid)
  14721. }else {
  14722. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14723. if(_fileid){
  14724. _this.infoData[i].fileid = _fileid
  14725. _this.$forceUpdate();
  14726. fileid.push(_fileid)
  14727. }
  14728. }
  14729. }
  14730. }
  14731. let url = []
  14732. if (this.infoData.length) {
  14733. for (var i = 0; i < this.infoData.length; i++) {
  14734. url.push(this.infoData[i].url)
  14735. }
  14736. }
  14737. var _text = ""
  14738. var _text2 = ""
  14739. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
  14740. _text += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  14741. _text2 += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 教案描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  14742. }
  14743. let messages = `
  14744. 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.
  14745. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14746. --------
  14747. ## 要求
  14748. ${msg}
  14749. -------
  14750. ## 本教案描述
  14751. ${_this.aiCallBack}
  14752. -------
  14753. ## 课程大纲
  14754. ${_text}
  14755. -------
  14756. ## 其他教学任务教案
  14757. ${_text2}`
  14758. // ## 补充参考资料
  14759. // - 补充资料:${url.join(",")}
  14760. // - 补充描述:${this.courseText2}
  14761. _this.taskDetailLoading5.push(_tindex)
  14762. _this.ttaskDetailLoading5.push(_tindex)
  14763. let _uuid = uuidv4();
  14764. // let params = JSON.stringify({
  14765. // // "model": "Chat",
  14766. // model: 'gpt-3.5-turbo',
  14767. // temperature: 0,
  14768. // max_tokens: 4096,
  14769. // top_p: 1,
  14770. // frequency_penalty: 0,
  14771. // presence_penalty: 0,
  14772. // messages: [{
  14773. // content: messages,
  14774. // role: 'user'
  14775. // }],
  14776. // uid: _uuid,
  14777. // mind_map_question: "",
  14778. // })
  14779. let params = {
  14780. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14781. message: [{"type":"text", "text":messages}],
  14782. session_name: _uuid,
  14783. userId: _this.userid,
  14784. uid: _uuid,
  14785. file_ids: fileid.length ? [...fileid] : '',
  14786. }
  14787. // let params = JSON.stringify({
  14788. // message: {
  14789. // anthropic_version: "bedrock-2023-05-31",
  14790. // max_tokens: 4096,
  14791. // temperature: 0,
  14792. // top_p: 1,
  14793. // messages: [{
  14794. // "role": "user",
  14795. // "content": messages
  14796. // }] ,
  14797. // },
  14798. // uid: _uuid,
  14799. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14800. // });
  14801. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14802. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14803. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14804. console.log(response);
  14805. // let data = response.data.FunctionResponse
  14806. // if (data.choices && data.choices.length && data.choices[0].message) {
  14807. // console.log(data.choices[0].message.content);
  14808. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14809. // _this.$forceUpdate()
  14810. // }
  14811. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14812. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14813. } else {
  14814. this.$message.warning(response.data.FunctionResponse.result);
  14815. }
  14816. }).catch(function (error) {
  14817. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  14818. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  14819. console.log(error);
  14820. });
  14821. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  14822. },
  14823. aiDetail5getAiContent(_uid, loading, _tindex2) {
  14824. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14825. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14826. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14827. let _allText = "";
  14828. let _mdText = "";
  14829. _source.onmessage = _e => {
  14830. let _eData = JSON.parse(_e.data).content;
  14831. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14832. //对话已经完成
  14833. _mdText = _mdText.replace("_", "");
  14834. _source.close();
  14835. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  14836. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  14837. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  14838. return;
  14839. } else {
  14840. //对话还在继续
  14841. let _text = "";
  14842. _text = _eData.replaceAll("'", "");
  14843. if (_allText == "") {
  14844. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14845. } else {
  14846. _allText += _text;
  14847. }
  14848. _mdText = _allText + "_";
  14849. _mdText = _mdText.replace(/\\n/g, "\n");
  14850. _mdText = _mdText.replace(/\\/g, "");
  14851. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14852. //转化返回的回复流数据
  14853. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  14854. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  14855. // 处理流数据
  14856. }
  14857. };
  14858. },
  14859. async aiCpote(msg, callback) {
  14860. let _this = this
  14861. let _index = _this.aitype.replace("aiC","c")
  14862. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14863. if (_this.infoData.length) {
  14864. for (var i = 0; i < _this.infoData.length; i++) {
  14865. if(_this.infoData[i].fileid){
  14866. fileid.push(_this.infoData[i].fileid)
  14867. }else {
  14868. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14869. if(_fileid){
  14870. _this.infoData[i].fileid = _fileid
  14871. _this.$forceUpdate();
  14872. fileid.push(_fileid)
  14873. }
  14874. }
  14875. }
  14876. }
  14877. let sub = []
  14878. if (this.courseTypeId.length) {
  14879. for (var i = 0; i < this.courseTypeId.length; i++) {
  14880. let _sid = this.courseTypeId[i]
  14881. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  14882. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  14883. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  14884. }
  14885. }
  14886. }
  14887. }
  14888. let mclass = []
  14889. if (this.courseTypeId.length) {
  14890. for (var i = 0; i < this.courseTypeId.length; i++) {
  14891. let _sid = this.courseTypeId[i]
  14892. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  14893. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  14894. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  14895. }
  14896. }
  14897. }
  14898. }
  14899. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  14900. // ${this.cpote[_index] ? '## 优化内容\n'+this.cpote[_index] : ''}
  14901. let messages = `
  14902. 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.
  14903. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14904. ${msg}
  14905. ## 课程简介
  14906. 课程名字:${this.courseName}
  14907. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  14908. ${sub.length ? '学科:' + sub.join(",") : ''}
  14909. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  14910. ${this.aitype == 'aiCpote2' || this.aitype == 'aiCpote3' || this.aitype == 'aiCpote4' ? '## 概念群\n'+this.cpote['cpote1'] : ''}
  14911. ${this.aitype == 'aiCpote4' ? '## 问题链\n'+this.cpote['cpote2'] : ''}
  14912. ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
  14913. _this.cpoteLoading[_index] = true
  14914. _this.cpotetLoading[_index] = true
  14915. let _uuid = uuidv4();
  14916. // let params = JSON.stringify({
  14917. // // "model": "Chat",
  14918. // model: 'gpt-3.5-turbo',
  14919. // temperature: 0,
  14920. // max_tokens: 4096,
  14921. // top_p: 1,
  14922. // frequency_penalty: 0,
  14923. // presence_penalty: 0,
  14924. // messages: [{
  14925. // content: messages,
  14926. // role: 'user'
  14927. // }],
  14928. // uid: _uuid,
  14929. // mind_map_question: "",
  14930. // })
  14931. let params = {
  14932. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14933. message: [{"type":"text", "text":messages}],
  14934. session_name: _uuid,
  14935. userId: _this.userid,
  14936. uid: _uuid,
  14937. file_ids: fileid.length ? [...fileid] : '',
  14938. }
  14939. // let params = JSON.stringify({
  14940. // message: {
  14941. // anthropic_version: "bedrock-2023-05-31",
  14942. // max_tokens: 4096,
  14943. // temperature: 0,
  14944. // top_p: 1,
  14945. // messages: [{
  14946. // "role": "user",
  14947. // "content": messages
  14948. // }] ,
  14949. // },
  14950. // uid: _uuid,
  14951. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14952. // });
  14953. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14954. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14955. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14956. console.log(response);
  14957. // let data = response.data.FunctionResponse
  14958. // if (data.choices && data.choices.length && data.choices[0].message) {
  14959. // console.log(data.choices[0].message.content);
  14960. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14961. // _this.$forceUpdate()
  14962. // }
  14963. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14964. if (converter(response.data.FunctionResponse.result) == converter("发送成功")) {
  14965. } else {
  14966. this.$message.warning(response.data.FunctionResponse.result);
  14967. }
  14968. }).catch(function (error) {
  14969. _this.cpoteLoading[_index] = false
  14970. _this.cpotetLoading[_index] = false
  14971. callback ? callback() : ''
  14972. console.log(error);
  14973. });
  14974. _this.aiCpotegetAiContent(_uuid, _index, callback)
  14975. },
  14976. aiCpotegetAiContent(_uid, loading, callback) {
  14977. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14978. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14979. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14980. let _allText = "";
  14981. let _mdText = "";
  14982. _source.onmessage = _e => {
  14983. let _eData = JSON.parse(_e.data).content;
  14984. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14985. //对话已经完成
  14986. _mdText = _mdText.replace("_", "");
  14987. _source.close();
  14988. this.cpote[loading] = _mdText;
  14989. this.cpoteLoading[loading] = false
  14990. this.cpotetLoading[loading] = false
  14991. callback ? callback() : ''
  14992. return;
  14993. } else {
  14994. //对话还在继续
  14995. let _text = "";
  14996. _text = _eData.replaceAll("'", "");
  14997. if (_allText == "") {
  14998. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14999. } else {
  15000. _allText += _text;
  15001. }
  15002. _mdText = _allText + "_";
  15003. _mdText = _mdText.replace(/\\n/g, "\n");
  15004. _mdText = _mdText.replace(/\\/g, "");
  15005. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  15006. //转化返回的回复流数据
  15007. this.cpote[loading] = _mdText;
  15008. this.cpoteLoading[loading] = false
  15009. // 处理流数据
  15010. }
  15011. };
  15012. },
  15013. createFileid(url) {
  15014. let _this = this
  15015. return new Promise((resolve, reject) => {
  15016. try {
  15017. _this.ajax
  15018. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15019. url: url,
  15020. })
  15021. .then((res) => {
  15022. let _data = res.data.FunctionResponse;
  15023. if (_data.result && _data.result.id) {
  15024. resolve(_data.result.id)
  15025. }
  15026. }).catch(function (error) {
  15027. resolve('')
  15028. });
  15029. }catch (e){
  15030. resolve()
  15031. }
  15032. });
  15033. }
  15034. },
  15035. beforeDestroy() {
  15036. clearTimeout(this.timer);
  15037. this.timer = null;
  15038. clearInterval(this.timer2);
  15039. this.timer2 = null;
  15040. clearInterval(this.pasteTimer);
  15041. this.pasteTimer = null;
  15042. },
  15043. beforeRouteLeave(to, from, next) {
  15044. clearTimeout(this.timer);
  15045. this.timer = null;
  15046. clearInterval(this.timer2);
  15047. this.timer2 = null;
  15048. clearInterval(this.pasteTimer);
  15049. this.pasteTimer = null;
  15050. next();
  15051. },
  15052. created() {
  15053. this.getStudent();
  15054. this.getTeacher();
  15055. this.getClass();
  15056. this.selectGrage();
  15057. this.getTemplate();
  15058. this.getTipsTemplate();
  15059. // this.selectType();
  15060. this.selectEva();
  15061. if(this.istemplate == 1){
  15062. this.isOutline = true
  15063. this.isOutline2 = true
  15064. }
  15065. this.loading = false;
  15066. this.timer2 = setInterval(() => {
  15067. this.selectEva();
  15068. }, 5000);
  15069. this.pasteTimer = setInterval(() => {
  15070. this.getPaste();
  15071. }, 1000);
  15072. setTimeout(() => {
  15073. // this.selectAllType();
  15074. this.selectCourseDetail();
  15075. }, 500);
  15076. let _this = this;
  15077. window.pasteStage = function (json) {
  15078. _this.pasteStage(json);
  15079. };
  15080. window.pasteTask = function (json) {
  15081. _this.pasteTask(json);
  15082. };
  15083. },
  15084. };
  15085. </script>
  15086. <style scoped>
  15087. @media screen and (max-width: 1280px) {
  15088. .mbCss {
  15089. flex-direction: column !important;
  15090. }
  15091. .pjCss {
  15092. width: 100% !important;
  15093. }
  15094. .evaCss {
  15095. width: 100% !important;
  15096. margin-top: 10px;
  15097. }
  15098. }
  15099. .el-table>>>.even_row {
  15100. background-color: #f1f1f1 !important;
  15101. }
  15102. .dialog_diy>>>.el-dialog__header {
  15103. background: #3c3c3c !important;
  15104. padding: 15px 20px;
  15105. }
  15106. .dialog_diy>>>.el-dialog__title {
  15107. color: #fff;
  15108. }
  15109. .dialog_diy>>>.el-dialog__headerbtn {
  15110. top: 19px;
  15111. }
  15112. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  15113. color: #fff;
  15114. }
  15115. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  15116. color: #fff;
  15117. }
  15118. .dialog_diy>>>.el-dialog__body,
  15119. .dialog_diy>>>.el-dialog__footer {
  15120. background: #fafafa;
  15121. }
  15122. .dialog_diy3>>>.el-dialog__body,
  15123. .dialog_diy3>>>.el-dialog__footer {
  15124. background: #eee !important;
  15125. }
  15126. .dialog_diy3>>>.el-dialog__body {
  15127. padding: 20px 20px;
  15128. }
  15129. .dialog_diyStage>>>.el-dialog__body {
  15130. padding: 10px;
  15131. }
  15132. .source_diy>>>.el-dialog {
  15133. height: 100% !important;
  15134. margin: 0 auto !important;
  15135. }
  15136. .source_diy>>>.el-dialog__body {
  15137. height: calc(100% - 185px);
  15138. overflow: auto;
  15139. background: #e6eaf0;
  15140. }
  15141. .source_diy>>>.el-dialog__footer {
  15142. background: #e6eaf0 !important;
  15143. }
  15144. .left {
  15145. border-right: 1px solid rgb(60, 94, 143);
  15146. display: flex;
  15147. flex-direction: column;
  15148. align-items: center;
  15149. min-height: 600px;
  15150. width: 385px;
  15151. height: 80%;
  15152. }
  15153. .tips {
  15154. color: rgb(128, 128, 128);
  15155. font-size: 12px;
  15156. width: 270px;
  15157. margin: 40px;
  15158. }
  15159. .pb_content {
  15160. height: 100% !important;
  15161. /* margin: 0 20px 0 20px; */
  15162. }
  15163. .pb_content_body {
  15164. width: 100% !important;
  15165. height: 100%;
  15166. display: flex;
  15167. }
  15168. .info_solid {
  15169. width: 270px;
  15170. height: 30px;
  15171. border-left: 1px solid #bdbdbd;
  15172. margin: 10px 0px 10px 30px;
  15173. }
  15174. .info_steps {
  15175. width: 270px;
  15176. font-size: 0.875rem;
  15177. display: flex;
  15178. align-items: center;
  15179. }
  15180. .info_steps span:nth-child(1) {
  15181. width: 30px;
  15182. height: 30px;
  15183. background: rgba(0, 0, 0, 0.38);
  15184. display: block;
  15185. color: #fff;
  15186. border-radius: 40px;
  15187. text-align: center;
  15188. line-height: 30px;
  15189. }
  15190. .steps_active {
  15191. background: #3d67bc !important;
  15192. }
  15193. .info_steps span:nth-child(2) {
  15194. margin-left: 5px;
  15195. }
  15196. .right {
  15197. height: 100%;
  15198. width: 100%;
  15199. display: flex;
  15200. overflow: hidden;
  15201. flex-direction: column;
  15202. }
  15203. .leftBar{
  15204. width: 290px;
  15205. height: calc(100% - 50px);
  15206. overflow: auto;
  15207. border-radius: 5px;
  15208. margin: 25px auto;
  15209. box-sizing: border-box;
  15210. margin-right: 10px;
  15211. }
  15212. .basic_box {
  15213. margin: 0 auto;
  15214. position: relative;
  15215. padding: 0 20px 0 20px;
  15216. }
  15217. .basic_box_success {
  15218. width: 100%;
  15219. min-height: 455px;
  15220. padding: 50px 0;
  15221. position: relative;
  15222. text-align: center;
  15223. border-bottom: 1px solid #bfbfbf;
  15224. box-sizing: border-box;
  15225. display: flex;
  15226. align-items: center;
  15227. flex-direction: column;
  15228. justify-content: center;
  15229. }
  15230. .info_title {
  15231. font-size: 1.5em;
  15232. margin-right: 25px;
  15233. /* margin: 20px 30px 20px 30px; */
  15234. }
  15235. .bInfo_title {
  15236. text-align: left;
  15237. margin: 10px 0;
  15238. }
  15239. .small_title {
  15240. font-size: 14px;
  15241. line-height: 40px;
  15242. }
  15243. .chapter_beizhu {
  15244. font-size: 12px;
  15245. font-weight: bold;
  15246. float: right;
  15247. color: rgb(128, 128, 128);
  15248. margin-top: 5px;
  15249. }
  15250. .chapter_uploadBox1 {
  15251. text-align: left;
  15252. background-color: rgb(242, 242, 242);
  15253. width: 100%;
  15254. height: 67px;
  15255. padding: 0px 15px;
  15256. border-radius: 8px;
  15257. overflow: hidden;
  15258. font-size: 16px;
  15259. box-sizing: border-box;
  15260. position: relative;
  15261. }
  15262. .chapter_add {
  15263. width: 100%;
  15264. height: 32px;
  15265. margin-top: 15px;
  15266. cursor: pointer;
  15267. }
  15268. .chapter_add_l {
  15269. margin-left: 5px;
  15270. width: 30px;
  15271. height: 30px;
  15272. float: left;
  15273. border: 1px solid #aaa;
  15274. color: #aaa;
  15275. border-radius: 50%;
  15276. font-size: 25px;
  15277. text-align: center;
  15278. }
  15279. .chapter_add_r {
  15280. font-size: 18px;
  15281. height: 40px;
  15282. line-height: 30px;
  15283. text-indent: 10px;
  15284. color: #aaa;
  15285. }
  15286. .chapter_add_r span {
  15287. font-size: 12px;
  15288. color: rgb(204, 204, 204);
  15289. }
  15290. .chapter_add_input {
  15291. display: none;
  15292. }
  15293. .line {
  15294. width: 85%;
  15295. margin: 0 auto;
  15296. border-top: 1px solid #e5e5e5;
  15297. margin-top: 20px;
  15298. }
  15299. .info_btnBox {
  15300. width: calc(100%);
  15301. display: flex;
  15302. justify-content: center;
  15303. height: 80px;
  15304. align-items: center;
  15305. background: #fff;
  15306. margin: 0 auto;
  15307. border-top: 2px solid rgb(228, 232, 237);
  15308. box-sizing: border-box;
  15309. }
  15310. .info_btnBox2 {
  15311. width: calc(100%);
  15312. display: flex;
  15313. justify-content: center;
  15314. height: 20px;
  15315. align-items: center;
  15316. background: #fff;
  15317. margin: 0 auto;
  15318. border-top: 2px solid rgb(228, 232, 237);
  15319. box-sizing: border-box;
  15320. overflow: hidden;
  15321. cursor: pointer;
  15322. }
  15323. .info_btnBox3 {
  15324. width: calc(100%);
  15325. display: flex;
  15326. justify-content: flex-end;
  15327. padding: 0 20px;
  15328. height: 60px;
  15329. align-items: center;
  15330. background: unset;
  15331. margin: 0 auto;
  15332. /* border-top: 1px solid rgb(228, 232, 237); */
  15333. box-sizing: border-box;
  15334. overflow: hidden;
  15335. cursor: pointer;
  15336. background: #fff;
  15337. border-radius: 10px;
  15338. }
  15339. .info_btn+.info_btn {
  15340. margin-left: 15px;
  15341. }
  15342. .info_btn,
  15343. .teacherWord {
  15344. color: #fff;
  15345. background-color: #0f7eff;
  15346. padding: 8px 24px;
  15347. font-size: 0.9375rem;
  15348. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  15349. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  15350. min-width: 64px;
  15351. font-weight: 500;
  15352. border-radius: 4px;
  15353. box-sizing: border-box;
  15354. border: none;
  15355. cursor: pointer;
  15356. }
  15357. .teacherWord {
  15358. width: 105px !important;
  15359. text-align: center !important;
  15360. line-height: 36px !important;
  15361. padding: 0 !important;
  15362. font-size: 14px !important;
  15363. margin: 10px 0 !important;
  15364. }
  15365. .template_box {
  15366. display: flex;
  15367. flex-wrap: wrap;
  15368. }
  15369. .wordTeacher {
  15370. display: flex;
  15371. flex-direction: column;
  15372. width: 100px;
  15373. height: 100px;
  15374. text-align: center;
  15375. font-size: 13px;
  15376. margin: 0 20px 20px 0;
  15377. background: #f0f4fa;
  15378. position: relative;
  15379. border-radius: 5px;
  15380. align-items: center;
  15381. justify-content: center;
  15382. border: 1px solid #cad1dc;
  15383. color: #0e1e33;
  15384. /* padding: 25px 0px; */
  15385. cursor: pointer;
  15386. }
  15387. .wordTeacher::after {
  15388. content: "";
  15389. display: block;
  15390. position: absolute;
  15391. width: 15px;
  15392. height: 15px;
  15393. right: 10px;
  15394. top: 10px;
  15395. background-image: url(../../../assets/icon/new/choose_a.png);
  15396. background-size: 100% 100%;
  15397. }
  15398. .wordTeacherA::after {
  15399. background-image: url(../../../assets/icon/new/choose_b.png);
  15400. }
  15401. .wordTeacher:nth-child(5n) {
  15402. margin-right: 0px;
  15403. }
  15404. .wordPic {
  15405. margin: 0 auto;
  15406. width: 30px;
  15407. height: 30px;
  15408. cursor: pointer;
  15409. }
  15410. .deleteWord {
  15411. width: 22px;
  15412. height: 22px;
  15413. position: absolute;
  15414. right: 5px;
  15415. top: -15px;
  15416. cursor: pointer;
  15417. display: none;
  15418. z-index: 999;
  15419. }
  15420. .wordPic>img,
  15421. .deleteWord>img,
  15422. .addToolImg>img {
  15423. width: 100%;
  15424. height: 100%;
  15425. }
  15426. .info_btn:hover {
  15427. background-color: #4f7cd5 !important;
  15428. }
  15429. .cru_selectBox {
  15430. display: flex;
  15431. margin: 15px 0;
  15432. flex-wrap: nowrap;
  15433. white-space: nowrap;
  15434. overflow: auto;
  15435. position: relative;
  15436. height: 40px;
  15437. max-width: calc(100% - 175px);
  15438. }
  15439. .cru_selectBox::-webkit-scrollbar {
  15440. /*滚动条整体样式*/
  15441. width: 6px;
  15442. /*高宽分别对应横竖滚动条的尺寸*/
  15443. height: 6px;
  15444. }
  15445. /*定义滚动条轨道 内阴影+圆角*/
  15446. .cru_selectBox::-webkit-scrollbar-track {
  15447. border-radius: 10px;
  15448. background-color: #eee;
  15449. }
  15450. /*定义滑块 内阴影+圆角*/
  15451. .cru_selectBox::-webkit-scrollbar-thumb {
  15452. border-radius: 10px;
  15453. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  15454. background-color: rgba(0, 0, 0, 0.1);
  15455. }
  15456. .cru_line {
  15457. position: absolute;
  15458. bottom: 0px;
  15459. transition: all 0.5s;
  15460. left: 0px;
  15461. width: 50px;
  15462. height: 4px;
  15463. left: 10px;
  15464. border-radius: 2px;
  15465. background: #3681fc;
  15466. }
  15467. .cru_select {
  15468. font-size: 18px;
  15469. margin-right: 20px;
  15470. margin-left: 5px;
  15471. cursor: pointer;
  15472. color: #0e1e33;
  15473. }
  15474. .cru_select:hover {
  15475. color: #3681fc !important;
  15476. }
  15477. .cru_selected {
  15478. color: #3681fc !important;
  15479. font-weight: bold;
  15480. }
  15481. .chapter_box {
  15482. margin-top: 10px;
  15483. width: 100%;
  15484. padding: 10px 20px;
  15485. background: #fff;
  15486. border-radius: 8px;
  15487. box-sizing: border-box;
  15488. }
  15489. .chapter_contentbox {
  15490. display: flex;
  15491. align-items: center;
  15492. /* margin-top: 15px; */
  15493. }
  15494. .chapter_contentbox .cc_title {
  15495. margin: 0px;
  15496. color: black;
  15497. display: block;
  15498. white-space: nowrap;
  15499. overflow: hidden;
  15500. text-overflow: ellipsis;
  15501. margin-right: 20px;
  15502. font-size: 18px;
  15503. height: 20px;
  15504. line-height: 22px;
  15505. min-width: fit-content;
  15506. display: flex;
  15507. }
  15508. .chapter_contentbox .cc_title::before {
  15509. content: "";
  15510. height: 100%;
  15511. width: 3px;
  15512. background: #3681fc;
  15513. border-radius: 3px;
  15514. opacity: 1;
  15515. display: block;
  15516. margin-right: 10px;
  15517. }
  15518. .chapter_contentbox .cc_input {
  15519. width: 100%;
  15520. display: flex;
  15521. }
  15522. .show_taskD {
  15523. min-width: fit-content;
  15524. margin-left: 10px;
  15525. display: flex;
  15526. align-items: center;
  15527. font-size: 14px;
  15528. cursor: pointer;
  15529. color: #717c8d;
  15530. }
  15531. .show_taskD>img {
  15532. width: 15px;
  15533. margin-right: 5px;
  15534. transition: 0.2s all;
  15535. transform: rotate(-90deg);
  15536. }
  15537. .show_taskD.show>img {
  15538. transform: rotate(0deg);
  15539. }
  15540. .show_toolD {
  15541. min-width: fit-content;
  15542. margin-left: 10px;
  15543. display: flex;
  15544. align-items: center;
  15545. font-size: 14px;
  15546. cursor: pointer;
  15547. color: #717c8d;
  15548. /* position: absolute;
  15549. right: 45px;
  15550. top: 5px; */
  15551. }
  15552. .show_toolD>img {
  15553. width: 15px;
  15554. margin-right: 5px;
  15555. transition: 0.2s all;
  15556. transform: rotate(-90deg);
  15557. }
  15558. .show_toolD.show>img {
  15559. transform: rotate(0deg);
  15560. }
  15561. .remove {
  15562. background-image: url("../../../assets/icon/new/delete_u.png");
  15563. cursor: pointer;
  15564. opacity: 0.5;
  15565. width: 30px;
  15566. min-width: 30px;
  15567. height: 30px;
  15568. background-size: 100% 100%;
  15569. background-repeat: no-repeat;
  15570. margin-left: 10px;
  15571. }
  15572. .remove1 {
  15573. background-image: url("../../../assets/remove1.png");
  15574. background-repeat: no-repeat;
  15575. background-position: 5px 10px;
  15576. width: 40px;
  15577. height: 50px;
  15578. cursor: pointer;
  15579. margin-left: 10px;
  15580. }
  15581. .binfo_input {
  15582. width: 100%;
  15583. margin: 0;
  15584. padding: 12px 14px;
  15585. display: block;
  15586. min-width: 0;
  15587. outline: none;
  15588. box-sizing: border-box;
  15589. background: none;
  15590. border: none;
  15591. border-radius: 4px;
  15592. background: #fff;
  15593. font-size: 16px;
  15594. resize: none;
  15595. font-family: "Microsoft YaHei";
  15596. min-height: 48px;
  15597. /* border: 1px solid #3682fc00; */
  15598. border: 1.5px solid #cad1dc;
  15599. }
  15600. .binfo_textarea {
  15601. border: 1.5px solid #cad1dc;
  15602. font-size: 16px;
  15603. resize: none;
  15604. /* background: #f6f6f6; */
  15605. font-family: "Microsoft YaHei";
  15606. }
  15607. .binfo_input:focus-visible {
  15608. border: 1.5px solid #3681fc !important;
  15609. }
  15610. .time {
  15611. display: flex;
  15612. margin: 35px 0 80px 0;
  15613. }
  15614. .chapter_btnbox {
  15615. width: 160px;
  15616. border-radius: 5px;
  15617. border: 2px dashed gray;
  15618. display: flex;
  15619. padding: 8px 50px;
  15620. align-items: center;
  15621. justify-content: center;
  15622. margin: 30px auto 0;
  15623. cursor: pointer;
  15624. }
  15625. .icon_add {
  15626. position: relative;
  15627. width: 24px;
  15628. padding-top: 20px;
  15629. border-radius: 100%;
  15630. border-width: 2px;
  15631. border-style: solid;
  15632. border-color: gray;
  15633. }
  15634. .icon_add i:nth-child(1) {
  15635. position: absolute;
  15636. left: 50%;
  15637. top: 50%;
  15638. height: 60%;
  15639. transform: translate(-50%, -50%);
  15640. border-width: 1px;
  15641. border-style: solid;
  15642. border-color: inherit;
  15643. }
  15644. .icon_add i:nth-child(2) {
  15645. position: absolute;
  15646. top: 50%;
  15647. left: 50%;
  15648. width: 60%;
  15649. transform: translate(-50%, -50%);
  15650. border-width: 1px;
  15651. border-style: solid;
  15652. border-color: inherit;
  15653. }
  15654. .chapter_btn_w {
  15655. font-size: 0.9375rem;
  15656. font-weight: bold;
  15657. color: gray;
  15658. margin-left: 20px;
  15659. }
  15660. .disUoloadSty>>>.el-icon-plus {
  15661. display: none !important;
  15662. /* 上传按钮隐藏 */
  15663. }
  15664. .imgLeft {
  15665. margin: 15px 0;
  15666. }
  15667. .add_info_box {
  15668. margin: 0 0 0 auto;
  15669. display: flex;
  15670. flex-wrap: wrap;
  15671. }
  15672. .add_info_box button {
  15673. margin: 0 5px 10px 0;
  15674. }
  15675. .add_info_box2 {
  15676. display: flex;
  15677. align-items: center;
  15678. flex-wrap: wrap;
  15679. }
  15680. .add_info_box2::after {
  15681. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  15682. color: red;
  15683. font-size: 14px;
  15684. margin-bottom: 10px;
  15685. }
  15686. .add_chapters_box {
  15687. text-align: left;
  15688. background-color: #fff;
  15689. width: 100%;
  15690. border-radius: 4px;
  15691. font-size: 16px;
  15692. box-sizing: border-box;
  15693. position: relative;
  15694. padding: 0 15px;
  15695. height: auto;
  15696. overflow-y: auto;
  15697. overflow-x: hidden;
  15698. border: 1px solid #cad1dc;
  15699. }
  15700. .add_chapters_box.add_c_none {
  15701. display: flex;
  15702. justify-content: center;
  15703. align-items: center;
  15704. padding: 15px;
  15705. }
  15706. .add_c_none>img {
  15707. width: 25px;
  15708. }
  15709. .add_chapters_box.add_c_none>span {
  15710. font-size: 14px;
  15711. font-weight: 400;
  15712. margin: 0 0 5px 5px;
  15713. }
  15714. .homework_box {
  15715. display: flex;
  15716. align-items: flex-start;
  15717. flex-wrap: wrap;
  15718. margin: 15px 0 0 0;
  15719. flex-direction: column;
  15720. align-content: flex-start;
  15721. }
  15722. .course_homework {
  15723. display: flex;
  15724. justify-content: center;
  15725. flex-direction: row;
  15726. align-items: center;
  15727. margin: 0 10px 0 0;
  15728. }
  15729. .course_homework>>>.el-input__inner {
  15730. width: 140px;
  15731. margin-left: 15px;
  15732. }
  15733. .chapter_upload_move {
  15734. position: relative;
  15735. background-color: #fff;
  15736. position: absolute;
  15737. width: 100%;
  15738. top: 0px;
  15739. left: 0px;
  15740. border: 1px solid #eee;
  15741. border-radius: 5px;
  15742. transition: width 2s;
  15743. -moz-transition: width 2s;
  15744. -webkit-transition: width 2s;
  15745. -o-transition: width 2s;
  15746. }
  15747. .chapter_upload_l_i {
  15748. background-image: url("../../../assets/icon.png");
  15749. background-position: 3px -165px;
  15750. width: 30px;
  15751. height: 30px;
  15752. margin: 10px auto 0 auto;
  15753. }
  15754. .course_input_box {
  15755. display: flex;
  15756. margin-right: 20px;
  15757. width: 100%;
  15758. align-items: center;
  15759. position: relative;
  15760. }
  15761. .course_input_box>.binfo_input {
  15762. width: calc(100% - 0 - 200px - 20px);
  15763. margin: 0 10px;
  15764. }
  15765. .bb_courseIcon {
  15766. width: 57px;
  15767. height: 45px;
  15768. background: #f0f4fa;
  15769. border-radius: 5px 0px 0px 5px;
  15770. display: flex;
  15771. align-items: center;
  15772. justify-content: center;
  15773. border-right: 1.5px solid rgb(202, 209, 220);
  15774. box-sizing: border-box;
  15775. position: absolute;
  15776. left: 1.5px;
  15777. }
  15778. .bb_courseIcon>img {
  15779. width: 25px;
  15780. height: auto;
  15781. }
  15782. .big_box {
  15783. /* margin-top: 20px; */
  15784. display: flex;
  15785. justify-content: space-between;
  15786. /* border-bottom: 1px solid #E0E2ED; */
  15787. }
  15788. .left_first {
  15789. display: flex;
  15790. flex-direction: column;
  15791. flex-wrap: nowrap;
  15792. width: calc(100% - 310px);
  15793. padding: 20px;
  15794. box-sizing: border-box;
  15795. background: #fff;
  15796. border-radius: 5px;
  15797. }
  15798. .right_first {
  15799. width: 300px;
  15800. display: flex;
  15801. align-items: center;
  15802. justify-content: center;
  15803. /* border-left: 1px solid #E0E2ED; */
  15804. box-sizing: border-box;
  15805. padding: 20px;
  15806. flex-direction: column;
  15807. background: #fff;
  15808. border-radius: 5px;
  15809. }
  15810. .ai_box {
  15811. width: 204px;
  15812. display: flex;
  15813. justify-content: flex-end;
  15814. margin-bottom: 15px;
  15815. }
  15816. .ai_content {
  15817. display: flex;
  15818. align-items: center;
  15819. font-size: 14px;
  15820. padding: 7px 20px;
  15821. box-sizing: border-box;
  15822. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  15823. border-radius: 12px;
  15824. font-weight: 700;
  15825. cursor: pointer;
  15826. }
  15827. .ai_content>img {
  15828. width: 40px;
  15829. margin-right: 5px;
  15830. }
  15831. .c_info_title {
  15832. padding: 15px 0 15px 0;
  15833. font-size: 16px;
  15834. font-weight: bold;
  15835. margin: 0 0 0 20px;
  15836. box-sizing: border-box;
  15837. display: flex;
  15838. align-items: center;
  15839. line-height: 20px;
  15840. }
  15841. .c_info_title::before {
  15842. content: "";
  15843. display: block;
  15844. width: 3px;
  15845. height: 20px;
  15846. background: #0061ff;
  15847. border-radius: 3px;
  15848. margin: 0 5px 0 0;
  15849. }
  15850. .right_title {
  15851. height: 30px;
  15852. padding: 15px 0 15px 20px;
  15853. border-bottom: 1px solid #f2f2f2;
  15854. font-size: 1.5em;
  15855. font-weight: bold;
  15856. color: #0f7eff;
  15857. margin: 0 auto;
  15858. }
  15859. .people {
  15860. border: 1px solid rgb(229 229 229);
  15861. /* height: 495px; */
  15862. height: 350px;
  15863. border-radius: 5px;
  15864. width: 100%;
  15865. overflow: auto;
  15866. }
  15867. .people_top {
  15868. display: flex;
  15869. width: 100%;
  15870. /* justify-content: space-between; */
  15871. /* align-items: center; */
  15872. flex-direction: column;
  15873. padding: 10px 10px 0;
  15874. box-sizing: border-box;
  15875. }
  15876. .people_nav,
  15877. .people_top_right {
  15878. /* padding: 20px 0 0 20px; */
  15879. }
  15880. .people_top_right {
  15881. height: 40px;
  15882. margin-bottom: 10px;
  15883. }
  15884. .people_search {
  15885. display: flex;
  15886. position: relative;
  15887. }
  15888. .people_search>>>.el-input__inner {
  15889. /* height: 25px; */
  15890. width: 100%;
  15891. }
  15892. .search_img {
  15893. width: 20px;
  15894. height: 20px;
  15895. position: absolute;
  15896. right: 10px;
  15897. top: 50%;
  15898. transform: translateY(-50%);
  15899. }
  15900. .search_img>img {
  15901. width: 100%;
  15902. height: 100%;
  15903. }
  15904. .people_name {
  15905. display: flex;
  15906. justify-content: flex-start;
  15907. padding: 20px 10px;
  15908. flex-direction: column;
  15909. flex-wrap: wrap;
  15910. }
  15911. .p_box {
  15912. position: relative;
  15913. }
  15914. .people_name>>>.el-checkbox {
  15915. width: 100%;
  15916. display: flex;
  15917. align-items: center;
  15918. margin-bottom: 10px;
  15919. }
  15920. .people_name>>>.el-checkbox__label {
  15921. text-overflow: ellipsis;
  15922. overflow: hidden;
  15923. width: calc(100%);
  15924. }
  15925. .people_name2>>>.el-checkbox__label {
  15926. width: calc(100% - 130px);
  15927. }
  15928. .inviteCode {
  15929. position: absolute;
  15930. right: 30px;
  15931. color: #237ade;
  15932. top: 0;
  15933. cursor: pointer;
  15934. font-size: 13px;
  15935. }
  15936. .noneInvite {
  15937. color: #a8a8a8;
  15938. }
  15939. .inviteImg {
  15940. position: absolute;
  15941. right: 5px;
  15942. top: 0;
  15943. width: 20px;
  15944. }
  15945. .right_img {
  15946. width: 150px;
  15947. height: 150px;
  15948. margin: 0 auto;
  15949. }
  15950. .right_img>img {
  15951. width: 100%;
  15952. height: 100%;
  15953. }
  15954. .number {
  15955. margin-top: 20px;
  15956. color: #4aa6ff;
  15957. text-decoration: underline;
  15958. }
  15959. .success_button {
  15960. display: flex;
  15961. text-align: center;
  15962. margin: 5% 0 auto;
  15963. flex-direction: row;
  15964. justify-content: center;
  15965. }
  15966. .look_course {
  15967. margin-right: 40px;
  15968. background: #3d67bc;
  15969. width: 200px;
  15970. height: 35px;
  15971. line-height: 35px;
  15972. color: #fff;
  15973. text-align: center;
  15974. font-size: 14px;
  15975. border-radius: 5px;
  15976. cursor: pointer;
  15977. }
  15978. .attend_others {
  15979. width: 250px;
  15980. background: #4fb13c;
  15981. height: 35px;
  15982. line-height: 35px;
  15983. color: #fff;
  15984. text-align: center;
  15985. font-size: 14px;
  15986. border-radius: 5px;
  15987. cursor: pointer;
  15988. }
  15989. .dialog_diy2>>>.el-dialog__body {
  15990. text-align: center;
  15991. }
  15992. .write_togother {
  15993. position: absolute;
  15994. right: 45px;
  15995. display: flex;
  15996. top: 5%;
  15997. }
  15998. .write_people {
  15999. font-size: 14px;
  16000. line-height: 50px;
  16001. padding-right: 10px;
  16002. }
  16003. .end_write {
  16004. background: #3d67bc;
  16005. color: #fff;
  16006. width: 100px;
  16007. height: 35px;
  16008. line-height: 35px;
  16009. text-align: center;
  16010. font-size: 14px;
  16011. border-radius: 5px;
  16012. cursor: pointer;
  16013. }
  16014. .chapter_upload+.chapter_upload {
  16015. /* margin-top: 15px; */
  16016. border-top: 1px solid #e7ebf1;
  16017. }
  16018. .chapter_upload {
  16019. height: 45px;
  16020. position: relative;
  16021. display: flex;
  16022. align-items: center;
  16023. width: 100%;
  16024. min-height: 45px;
  16025. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  16026. /* border-radius: 4px; */
  16027. /* overflow: hidden; */
  16028. box-sizing: border-box;
  16029. }
  16030. .chapter_upload_drag {
  16031. position: absolute;
  16032. cursor: pointer;
  16033. width: 16px;
  16034. height: 16px;
  16035. left: -9px;
  16036. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  16037. background-size: 100% 100%;
  16038. z-index: 10;
  16039. display: none;
  16040. }
  16041. .isNavStage>.chapter_upload_drag {
  16042. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  16043. }
  16044. .chapter_upload_t {
  16045. background-color: #fff;
  16046. position: absolute;
  16047. height: 100%;
  16048. top: 0px;
  16049. left: 0px;
  16050. box-sizing: border-box;
  16051. }
  16052. .chapter_upload_o {
  16053. width: 100%;
  16054. height: 100%;
  16055. position: relative;
  16056. z-index: 1;
  16057. }
  16058. .chapter_upload_ic {
  16059. margin: 0 15px 0px auto;
  16060. display: flex;
  16061. align-items: center;
  16062. }
  16063. .chapter_upload_ic_l {
  16064. width: 50px;
  16065. height: 50px;
  16066. float: left;
  16067. }
  16068. .chapter_upload_ic_l div {
  16069. width: 30px;
  16070. height: 35px;
  16071. background: url("../../../assets/icon/icon.png");
  16072. }
  16073. .chapter_upload_ic_edit {
  16074. height: 100%;
  16075. display: flex;
  16076. align-items: center;
  16077. cursor: pointer;
  16078. margin: 0 10px 0 0;
  16079. }
  16080. .chapter_upload_ic_edit div {
  16081. width: 18px;
  16082. height: 18px;
  16083. background-image: url("../../../assets/icon/new/edit_u.png");
  16084. background-size: 100% 100%;
  16085. }
  16086. .chapter_upload_ic_r {
  16087. height: 100%;
  16088. display: flex;
  16089. align-items: center;
  16090. cursor: pointer;
  16091. }
  16092. .chapter_upload_ic_r div {
  16093. width: 18px;
  16094. height: 18px;
  16095. background-image: url("../../../assets/icon/new/delete_u.png");
  16096. background-size: 100% 100%;
  16097. }
  16098. .chapter_upload_n {
  16099. display: flex;
  16100. text-indent: 10px;
  16101. text-decoration: none;
  16102. text-overflow: ellipsis;
  16103. white-space: nowrap;
  16104. overflow: hidden;
  16105. width: 55%;
  16106. margin-left: 10px;
  16107. cursor: pointer;
  16108. margin-top: 2px;
  16109. align-items: center;
  16110. }
  16111. .chapter_upload_l_i2,
  16112. .chapter_upload_l_i3,
  16113. .chapter_upload_l_i8,
  16114. .chapter_upload_l_i6,
  16115. .chapter_upload_l_i12,
  16116. .chapter_upload_l_i14,
  16117. .chapter_upload_l_i13 {
  16118. width: 15px;
  16119. height: 15px;
  16120. background-size: 100% 100%;
  16121. }
  16122. .chapter_upload_l_i2 {
  16123. background-image: url("../../../assets/icon/new/u_word.png");
  16124. }
  16125. .chapter_upload_l_i3 {
  16126. background-image: url("../../../assets/icon/new/u_video.png");
  16127. }
  16128. .chapter_upload_l_i8 {
  16129. background-image: url("../../../assets/icon/new/u_url.png");
  16130. }
  16131. .chapter_upload_l_i14 {
  16132. background-image: url("../../../assets/icon/new/u_source.png");
  16133. }
  16134. .chapter_upload_l_i6 {
  16135. background-image: url("../../../assets/icon/new/u_picture.png");
  16136. }
  16137. .chapter_upload_l_i12 {
  16138. background-image: url("../../../assets/icon/new/u_word.png");
  16139. }
  16140. .chapter_upload_l_i13 {
  16141. background-image: url("../../../assets/icon/new/u_img.png");
  16142. }
  16143. .chapter_upload_noSee {
  16144. background-image: url("../../../assets/icon/new/u_noUpload.png");
  16145. width: 18px;
  16146. height: 18px;
  16147. background-size: 100% 100%;
  16148. display: block;
  16149. margin-right: 10px;
  16150. }
  16151. .chapter_upload_ud {
  16152. display: flex;
  16153. flex-direction: row;
  16154. justify-content: center;
  16155. margin: 0 10px 0 0;
  16156. }
  16157. .chapter_upload_ud>.chapter_upload_up {
  16158. margin-bottom: 0;
  16159. margin-right: 10px;
  16160. }
  16161. .chapter_upload_down,
  16162. .chapter_upload_up {
  16163. width: 20px;
  16164. height: 20px;
  16165. background: #e4eaf2;
  16166. cursor: pointer;
  16167. margin: 0 auto;
  16168. border-radius: 5px;
  16169. display: flex;
  16170. justify-content: center;
  16171. align-items: center;
  16172. }
  16173. .chapter_upload_up::after,
  16174. .chapter_upload_down::after {
  16175. content: "";
  16176. background-image: url("../../../assets/icon/new/downBtn.png");
  16177. width: 13px;
  16178. height: 13px;
  16179. background-size: 100% 100%;
  16180. display: block;
  16181. }
  16182. .chapter_upload_up::after {
  16183. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  16184. }
  16185. .chapter_upload_up {
  16186. margin-bottom: 5px;
  16187. }
  16188. .chapter_upload_ud2 {
  16189. display: flex;
  16190. flex-direction: row;
  16191. justify-content: center;
  16192. margin: 0 10px 0 0;
  16193. }
  16194. .chapter_upload_ud2>.chapter_upload_up2 {
  16195. margin-bottom: 0;
  16196. margin-right: 10px;
  16197. }
  16198. .chapter_upload_down2,
  16199. .chapter_upload_up2 {
  16200. cursor: pointer;
  16201. margin: 0 auto;
  16202. border-radius: 5px;
  16203. display: flex;
  16204. justify-content: center;
  16205. align-items: center;
  16206. color: #717c8d;
  16207. font-size: 14px;
  16208. }
  16209. .chapter_upload_up2 {
  16210. margin-right: 10px;
  16211. }
  16212. .chapter_upload_up2::before,
  16213. .chapter_upload_down2::before {
  16214. content: "";
  16215. background-image: url("../../../assets/icon/new/c_down.png");
  16216. width: 14px;
  16217. height: 14px;
  16218. background-size: 100% 100%;
  16219. display: block;
  16220. margin-right: 5px;
  16221. }
  16222. .chapter_upload_up2::before {
  16223. background-image: url("../../../assets/icon/new/c_up.png") !important;
  16224. }
  16225. .addWordStyle {
  16226. display: flex;
  16227. flex-direction: row;
  16228. justify-content: flex-start;
  16229. overflow-x: auto;
  16230. white-space: nowrap;
  16231. flex-wrap: wrap;
  16232. }
  16233. /* table 样式 */
  16234. .cont>>>table {
  16235. border-top: 1px solid #ccc;
  16236. border-left: 1px solid #ccc;
  16237. }
  16238. .cont>>>table td,
  16239. .cont>>>table th {
  16240. border-bottom: 1px solid #ccc;
  16241. border-right: 1px solid #ccc;
  16242. /* padding: 20px 5px; */
  16243. padding: 5px 10px;
  16244. max-width: 0px;
  16245. height: 30px;
  16246. vertical-align: baseline;
  16247. }
  16248. .cont>>>table th {
  16249. border-bottom: 2px solid #ccc;
  16250. text-align: center;
  16251. }
  16252. /* blockquote 样式 */
  16253. .cont>>>blockquote {
  16254. display: block;
  16255. border-left: 8px solid #d0e5f2;
  16256. padding: 5px 10px;
  16257. margin: 10px 0;
  16258. line-height: 1.4;
  16259. font-size: 100%;
  16260. background-color: #f1f1f1;
  16261. }
  16262. /* code 样式 */
  16263. .cont>>>code {
  16264. display: inline-block;
  16265. /* *display: inline; */
  16266. zoom: 1;
  16267. background-color: #f1f1f1;
  16268. border-radius: 3px;
  16269. padding: 3px 5px;
  16270. margin: 0 3px;
  16271. }
  16272. .cont>>>pre code {
  16273. display: block;
  16274. }
  16275. /* ul ol 样式 */
  16276. .cont>>>ul,
  16277. ol {
  16278. margin: 10px 0 10px 20px;
  16279. }
  16280. .wordbox {
  16281. display: flex;
  16282. flex-wrap: wrap;
  16283. cursor: pointer;
  16284. width: 100%;
  16285. }
  16286. .checkword {
  16287. width: 22px;
  16288. height: 22px;
  16289. margin: 10px auto 0;
  16290. cursor: pointer;
  16291. }
  16292. .checkword img {
  16293. width: 100%;
  16294. }
  16295. .stepBg {
  16296. display: flex;
  16297. justify-content: space-between;
  16298. align-items: center;
  16299. background: #fff;
  16300. width: calc(100%);
  16301. margin: 0 auto;
  16302. }
  16303. .stepBorder {
  16304. height: 3px !important;
  16305. background: #cad1dc;
  16306. width: 100px !important;
  16307. margin: 0 15px !important;
  16308. position: relative;
  16309. }
  16310. .border-active {
  16311. background: #3681fc !important;
  16312. }
  16313. .border-active::before,
  16314. .border-active::after {
  16315. border-color: #3681fc !important;
  16316. }
  16317. .stepBorder::before,
  16318. .stepBorder::after {
  16319. content: "";
  16320. width: 9px;
  16321. height: 9px;
  16322. background: #ffffff;
  16323. opacity: 1;
  16324. border: 2px solid #acb4bf;
  16325. display: block;
  16326. box-sizing: border-box;
  16327. border-radius: 50%;
  16328. position: absolute;
  16329. top: 50%;
  16330. transform: translateY(-50%);
  16331. }
  16332. .stepBorder::after {
  16333. right: -9px;
  16334. }
  16335. .stepTop {
  16336. width: 100%;
  16337. /* border-radius: 10px; */
  16338. display: flex;
  16339. justify-content: center;
  16340. align-items: center;
  16341. flex-wrap: nowrap;
  16342. background: #fff;
  16343. /* top: 18%; */
  16344. height: 80px;
  16345. border-bottom: 2px solid rgb(228, 232, 237);
  16346. box-sizing: border-box;
  16347. }
  16348. .stepTop2 {
  16349. width: 100%;
  16350. /* border-radius: 10px; */
  16351. display: flex;
  16352. justify-content: center;
  16353. align-items: center;
  16354. flex-wrap: nowrap;
  16355. background: #fff;
  16356. /* top: 18%; */
  16357. height: 20px;
  16358. border-bottom: 2px solid rgb(228, 232, 237);
  16359. box-sizing: border-box;
  16360. overflow: hidden;
  16361. cursor: pointer;
  16362. }
  16363. .stepTop>div img {
  16364. width: 100%;
  16365. }
  16366. .stepTop>div {
  16367. height: 50px;
  16368. width: 180px;
  16369. cursor: pointer;
  16370. margin: 10px 0;
  16371. border-radius: 10px;
  16372. }
  16373. .first,
  16374. .second,
  16375. .third,
  16376. .four {
  16377. background: #3681fc;
  16378. height: 90px;
  16379. color: #fff;
  16380. display: flex;
  16381. flex-direction: row;
  16382. align-items: center;
  16383. justify-content: center;
  16384. }
  16385. .first>div:nth-child(1),
  16386. .second>div:nth-child(1),
  16387. .third>div:nth-child(1),
  16388. .four>div:nth-child(1) {
  16389. margin: 5px 10px 0 0;
  16390. width: 2rem;
  16391. }
  16392. .firstNo,
  16393. .secondNo,
  16394. .thirdNo,
  16395. .fourNo {
  16396. background: #e7e7e7;
  16397. color: #adadad;
  16398. display: flex;
  16399. flex-direction: row;
  16400. align-items: center;
  16401. justify-content: center;
  16402. }
  16403. .firstNo>div:nth-child(1),
  16404. .secondNo>div:nth-child(1),
  16405. .thirdNo>div:nth-child(1),
  16406. .fourNo>div:nth-child(1) {
  16407. margin: 5px 10px 0 0;
  16408. width: 2rem;
  16409. }
  16410. .uploadWidth>>>.el-upload {
  16411. width: 60px;
  16412. height: 60px;
  16413. position: relative;
  16414. }
  16415. .addPeople {
  16416. background: #fa6060;
  16417. width: 150px;
  16418. height: 40px;
  16419. color: #fff;
  16420. border-radius: 5px;
  16421. text-align: center;
  16422. line-height: 40px;
  16423. font-size: 14px;
  16424. cursor: pointer;
  16425. }
  16426. .kcImg {
  16427. width: 60px;
  16428. margin-left: 10px;
  16429. }
  16430. .zyImg {
  16431. width: 55px;
  16432. margin: 0 10px;
  16433. }
  16434. .deleteZy {
  16435. width: 20px;
  16436. position: absolute;
  16437. top: 5px;
  16438. right: 5px;
  16439. cursor: pointer;
  16440. }
  16441. .kcImg>img,
  16442. .zyImg>img,
  16443. .deleteZy>img {
  16444. width: 100%;
  16445. height: 100%;
  16446. }
  16447. .zyBox {
  16448. display: flex;
  16449. flex-direction: row;
  16450. align-items: center;
  16451. background: #67d37d;
  16452. color: #fff;
  16453. width: 210px;
  16454. margin: 20px 20px 0 0;
  16455. border-radius: 10px;
  16456. height: 70px;
  16457. position: relative;
  16458. }
  16459. .upCss {
  16460. display: flex;
  16461. flex-direction: row;
  16462. justify-content: flex-start;
  16463. }
  16464. .upCss>>>.el-icon-plus {
  16465. position: none !important;
  16466. width: 200px;
  16467. height: 100px;
  16468. display: flex;
  16469. flex-wrap: nowrap;
  16470. flex-direction: column;
  16471. align-items: center;
  16472. justify-content: center;
  16473. border: 1px dashed #ccc;
  16474. min-width: 78px;
  16475. min-height: 100px;
  16476. z-index: 999;
  16477. }
  16478. .upCss>>>.el-upload-list__item-name {
  16479. width: 100px;
  16480. white-space: nowrap;
  16481. overflow: hidden;
  16482. text-overflow: ellipsis;
  16483. }
  16484. .upCss>>>.el-upload-list__item .el-icon-close {
  16485. font-size: 20px;
  16486. z-index: 9999;
  16487. }
  16488. .addStageImg {
  16489. min-width: 20px;
  16490. min-height: 20px;
  16491. width: 20px;
  16492. height: 20px;
  16493. cursor: pointer;
  16494. }
  16495. .addHW {
  16496. width: 28px;
  16497. height: 28px;
  16498. cursor: pointer;
  16499. }
  16500. .addStageImg>img,
  16501. .addHW>img {
  16502. width: 100%;
  16503. height: 100%;
  16504. }
  16505. .addNewPP>>>.el-dialog__body {
  16506. padding: 5px 20px;
  16507. }
  16508. .addNewPP>>>.el-dialog {
  16509. margin-top: 5vh !important;
  16510. }
  16511. .addNewPP2>>>.el-dialog__body {
  16512. padding: 5px 0;
  16513. }
  16514. .addNewPP2>>>.el-dialog {
  16515. margin-top: 5vh !important;
  16516. }
  16517. .isHeight {
  16518. height: 680px;
  16519. }
  16520. .toolChoose {
  16521. display: flex;
  16522. /* width: 100%; */
  16523. flex-direction: row;
  16524. flex-wrap: wrap;
  16525. }
  16526. .tool,
  16527. .isToolChoose {
  16528. display: flex;
  16529. flex-direction: column;
  16530. flex-wrap: nowrap;
  16531. width: fit-content;
  16532. margin: 10px 0 10px 0;
  16533. align-items: center;
  16534. border: 2px solid #dbdbdb00;
  16535. padding: 10px 20px;
  16536. border-radius: 5px;
  16537. cursor: pointer;
  16538. /* box-shadow: 0 0 2px 0px #dedede; */
  16539. position: relative;
  16540. box-sizing: border-box;
  16541. }
  16542. .tool:hover {
  16543. border: 2px solid #a5c7ff;
  16544. }
  16545. .tool:hover>.noCTool {
  16546. display: block;
  16547. opacity: 0.5;
  16548. }
  16549. .isToolChoose {
  16550. border: 2px solid #438aff !important;
  16551. box-shadow: 0 0 2px 0px #438aff;
  16552. opacity: 1 !important;
  16553. }
  16554. .isCTool,
  16555. .noCTool {
  16556. width: 30px;
  16557. height: 30px;
  16558. position: absolute;
  16559. top: -4px;
  16560. right: -4px;
  16561. }
  16562. .noCTool {
  16563. display: none;
  16564. }
  16565. .isCTool>img,
  16566. .noCTool>img {
  16567. width: 100%;
  16568. height: 100%;
  16569. }
  16570. .tool+.tool {
  16571. margin-right: 10px;
  16572. }
  16573. .whiteBIcon {
  16574. width: 80px;
  16575. cursor: pointer;
  16576. display: flex;
  16577. flex-direction: column;
  16578. flex-wrap: nowrap;
  16579. align-items: center;
  16580. font-size: 14px;
  16581. }
  16582. .whiteBIcon>img,
  16583. .toolIcon>img,
  16584. .arrow>img {
  16585. width: 100%;
  16586. height: 100%;
  16587. }
  16588. .check img {
  16589. width: 20px;
  16590. height: 20px;
  16591. }
  16592. .whiteBIcon>img {
  16593. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  16594. border-radius: 15px;
  16595. }
  16596. .whiteBIcon>div:nth-child(2) {
  16597. height: 20px;
  16598. line-height: 20px;
  16599. }
  16600. .check {
  16601. /* width: 20px;
  16602. height: 20px; */
  16603. cursor: pointer;
  16604. margin: 10px 0 0;
  16605. }
  16606. .checkDiv {
  16607. display: flex;
  16608. align-items: center;
  16609. }
  16610. .checkDiv span {
  16611. margin-left: 5px;
  16612. color: #858585;
  16613. }
  16614. .customWidth>>>.el-dialog {
  16615. min-width: 600px !important;
  16616. }
  16617. .CollaborativeCss {
  16618. width: 100%;
  16619. display: flex;
  16620. justify-content: center;
  16621. align-items: center;
  16622. box-sizing: border-box;
  16623. padding: 10px 0;
  16624. cursor: pointer;
  16625. }
  16626. .CollaborativeCss >>> .el-tooltip {
  16627. overflow: hidden;
  16628. white-space: nowrap;
  16629. text-overflow: ellipsis;
  16630. }
  16631. .CollaborativeCss2 {
  16632. background: #e0eafb;
  16633. color: #3681fc;
  16634. font-weight: 700;
  16635. border-radius: 5px;
  16636. }
  16637. .a_addBox {
  16638. margin: 10px 0;
  16639. background: #fff;
  16640. padding: 15px;
  16641. /* max-height: 600px; */
  16642. overflow: auto;
  16643. }
  16644. .a_add_box {
  16645. border-bottom: 2px solid #eee;
  16646. padding-bottom: 25px;
  16647. }
  16648. .a_add_head {
  16649. display: flex;
  16650. align-items: center;
  16651. justify-content: space-between;
  16652. margin: 10px 0 0 0;
  16653. font-size: 18px;
  16654. }
  16655. .a_add_checkType {
  16656. margin-top: 10px;
  16657. display: flex;
  16658. font-size: 14px;
  16659. align-items: center;
  16660. }
  16661. .a_add_checkType span {
  16662. box-sizing: border-box;
  16663. padding: 0 0 5px 0;
  16664. cursor: pointer;
  16665. }
  16666. .a_add_checkType span+span {
  16667. margin-left: 10px;
  16668. }
  16669. .a_add_checkType .active {
  16670. border-bottom: 2px solid #409eff;
  16671. color: #409eff;
  16672. }
  16673. .a_add_head .a_add_head_input {
  16674. /* width: 540px; */
  16675. width: 100%;
  16676. }
  16677. .a_add_head .a_add_head_div {
  16678. display: flex;
  16679. align-items: center;
  16680. justify-content: space-between;
  16681. }
  16682. .a_add_body {
  16683. display: flex;
  16684. /* align-items: center; */
  16685. align-items: flex-end;
  16686. }
  16687. .a_add_input {
  16688. display: flex;
  16689. align-items: center;
  16690. flex-wrap: wrap;
  16691. }
  16692. .a_add_input_choice {
  16693. flex-direction: column;
  16694. margin-right: 10px;
  16695. }
  16696. .a_add_input_choice>>>.el-radio {
  16697. display: flex;
  16698. align-items: center;
  16699. flex-direction: row-reverse;
  16700. margin: 30px 0 0 0;
  16701. position: relative;
  16702. }
  16703. .a_add_input_choice>>>.el-checkbox {
  16704. display: flex;
  16705. align-items: center;
  16706. flex-direction: row-reverse;
  16707. margin: 30px 0 0 0;
  16708. position: relative;
  16709. }
  16710. .width100 {
  16711. width: 100%;
  16712. }
  16713. .a_add_input .a_add_persent {
  16714. width: 100%;
  16715. }
  16716. .a_add_persent_div {
  16717. width: 100%;
  16718. display: flex;
  16719. align-items: center;
  16720. }
  16721. .a_add_persent_div span {
  16722. margin: 5px 0;
  16723. }
  16724. .a_add_persent_div span:nth-child(1) {
  16725. width: 30%;
  16726. }
  16727. .a_add_persent_div span:nth-child(2) {
  16728. width: 7%;
  16729. }
  16730. .a_add_persent_div span:nth-child(3) {
  16731. width: 40%;
  16732. }
  16733. .a_add_body_div {
  16734. display: flex;
  16735. align-items: center;
  16736. justify-content: center;
  16737. /* flex-direction: column; */
  16738. position: absolute;
  16739. right: -20px;
  16740. transform: translateX(100%);
  16741. }
  16742. .a_add_body_div>>>.el-button--primary {
  16743. background: #466b99;
  16744. border: none;
  16745. }
  16746. .all_choose {
  16747. display: flex;
  16748. flex-direction: row;
  16749. align-items: flex-start;
  16750. width: 100%;
  16751. }
  16752. .all_choose+.all_choose {
  16753. /* margin-top: 10px */
  16754. }
  16755. .all_choose>span {
  16756. min-width: fit-content;
  16757. display: block;
  16758. white-space: nowrap;
  16759. overflow: hidden;
  16760. text-overflow: ellipsis;
  16761. margin-right: 20px;
  16762. font-weight: bold;
  16763. font-size: 14px;
  16764. }
  16765. .all_choose>>>.el-checkbox-group {
  16766. display: flex;
  16767. flex-direction: row;
  16768. width: 100%;
  16769. flex-wrap: wrap;
  16770. align-content: center;
  16771. justify-content: flex-start;
  16772. align-items: center;
  16773. margin-top: 3px;
  16774. }
  16775. .all_choose>.el-checkbox-group>>>.el-checkbox {
  16776. margin-bottom: 10px;
  16777. display: flex;
  16778. flex-direction: row;
  16779. align-items: center;
  16780. margin-right: 10px;
  16781. }
  16782. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  16783. min-width: 80px;
  16784. overflow: hidden;
  16785. width: 80px;
  16786. text-overflow: ellipsis;
  16787. white-space: nowrap;
  16788. }
  16789. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  16790. width: auto;
  16791. }
  16792. .choose>div:nth-child(3)>span {
  16793. /* letter-spacing: 0 !important; */
  16794. }
  16795. .choose {
  16796. display: flex;
  16797. flex-direction: column;
  16798. flex-wrap: nowrap;
  16799. height: 100%;
  16800. justify-content: space-evenly;
  16801. align-items: flex-start;
  16802. }
  16803. .both {
  16804. display: flex;
  16805. flex-direction: row;
  16806. flex-wrap: wrap;
  16807. width: 100%;
  16808. align-items: center;
  16809. justify-content: flex-start;
  16810. margin: 15px 0;
  16811. }
  16812. .notice>>>.el-dialog {
  16813. width: 500px !important;
  16814. text-align: center;
  16815. }
  16816. .notice>>>.el-button {
  16817. margin-top: 20px;
  16818. }
  16819. .whiteBg {
  16820. /* background: #fff; */
  16821. border-radius: 10px;
  16822. }
  16823. .wb_j_box {
  16824. display: flex;
  16825. width: 100%;
  16826. padding: 0 20px 0;
  16827. box-sizing: border-box;
  16828. }
  16829. .wb_j_box_content {
  16830. width: calc(100% - 55% - 100px);
  16831. display: flex;
  16832. align-items: center;
  16833. }
  16834. .wb_j_box_p_box {
  16835. max-width: calc(100% - 200px);
  16836. word-break: break-all;
  16837. overflow: hidden;
  16838. margin: 0 0 0 10px;
  16839. font-size: 14px;
  16840. color: #6e6e6e;
  16841. z-index: 999;
  16842. }
  16843. .chooseWho {
  16844. display: flex;
  16845. width: 410px;
  16846. flex-direction: row;
  16847. flex-wrap: nowrap;
  16848. justify-content: space-between;
  16849. padding-bottom: 10px;
  16850. }
  16851. .chooseWho>div {
  16852. cursor: pointer;
  16853. padding-bottom: 10px;
  16854. font-weight: bold;
  16855. }
  16856. .isChooseActive {
  16857. color: #3e88f4;
  16858. border-bottom: 2px solid #2f80f3;
  16859. }
  16860. .toolSort {
  16861. display: flex;
  16862. flex-direction: row;
  16863. flex-wrap: wrap;
  16864. justify-content: flex-start;
  16865. align-items: flex-start;
  16866. }
  16867. .toolSort>div {
  16868. margin-right: 10px;
  16869. }
  16870. .tools {
  16871. width: 100%;
  16872. display: flex;
  16873. flex-direction: column;
  16874. flex-wrap: nowrap;
  16875. align-items: flex-start;
  16876. }
  16877. .leftTools,
  16878. .rightTools {
  16879. width: 50%;
  16880. }
  16881. .leftTools+.leftTools {
  16882. border-top: 1px solid #dbdbdb;
  16883. padding-top: 30px;
  16884. }
  16885. .rightTools {
  16886. display: flex;
  16887. flex-direction: row;
  16888. flex-wrap: nowrap;
  16889. justify-content: space-around;
  16890. }
  16891. .firstToolList {
  16892. display: flex;
  16893. flex-direction: column;
  16894. flex-wrap: nowrap;
  16895. align-items: center;
  16896. }
  16897. .iconList {
  16898. display: flex;
  16899. flex-direction: row;
  16900. flex-wrap: wrap;
  16901. justify-content: flex-start;
  16902. align-items: center;
  16903. margin: 20px 0 5px 0;
  16904. width: 240px;
  16905. min-width: 240px;
  16906. }
  16907. .iconTool {
  16908. display: flex;
  16909. flex-direction: column;
  16910. flex-wrap: nowrap;
  16911. align-items: center;
  16912. justify-content: flex-start;
  16913. margin: 15px 10px;
  16914. }
  16915. .toolIcon {
  16916. width: 50px;
  16917. }
  16918. .taskBorder {
  16919. /* border: 1px solid #CAD1DC; */
  16920. border-radius: 10px;
  16921. margin-top: 10px;
  16922. min-height: 670px;
  16923. position: relative;
  16924. background: #fff;
  16925. padding: 20px;
  16926. overflow: hidden;
  16927. box-sizing: border-box;
  16928. }
  16929. .smallTaskBorder {
  16930. height: 405px;
  16931. min-height: 405px !important;
  16932. overflow: hidden;
  16933. }
  16934. /* .taskBorder>div {
  16935. padding: 30px 30px 10px;
  16936. } */
  16937. .addTaskBorder {
  16938. /* border: 2px solid #5E9AFC; */
  16939. border-radius: 8px;
  16940. margin-top: 10px;
  16941. cursor: pointer;
  16942. /* height: 50px;
  16943. line-height: 50px; */
  16944. background: #fff;
  16945. padding: 15px 0;
  16946. display: flex;
  16947. align-items: center;
  16948. justify-content: center;
  16949. }
  16950. /* .addTaskBorder>div {
  16951. margin: 0 auto;
  16952. display: flex;
  16953. align-items: center;
  16954. justify-content: center;
  16955. }
  16956. .addTaskBorder>div>img {
  16957. width: 20px;
  16958. }
  16959. .addTaskBorder>div>span {
  16960. font-size: 16px;
  16961. margin-left: 10px;
  16962. color: #5E9AFC;
  16963. } */
  16964. .funBlock {
  16965. display: flex;
  16966. padding: 15px 0;
  16967. flex-direction: row;
  16968. justify-content: center;
  16969. align-items: center;
  16970. position: absolute;
  16971. right: 0;
  16972. bottom: 0;
  16973. background: #fff;
  16974. width: 100%;
  16975. height: 60px;
  16976. z-index: 9;
  16977. }
  16978. .fold {
  16979. display: flex;
  16980. margin: 0 20px;
  16981. flex-direction: row;
  16982. align-items: center;
  16983. cursor: pointer;
  16984. color: #2b7bff;
  16985. }
  16986. .arrow {
  16987. margin-right: 8px;
  16988. width: 16px;
  16989. height: 16px;
  16990. min-width: 16px;
  16991. min-height: 16px;
  16992. background-size: 100% 100%;
  16993. display: block;
  16994. background-image: url(../../../assets/icon/new/u_up.png);
  16995. /* border-left: 7px solid transparent;
  16996. border-bottom: 7px solid #717C8D;
  16997. border-top: 0px solid transparent;
  16998. border-right: 7px solid transparent; */
  16999. /* box-sizing: border-box; */
  17000. transition: all 0.3s;
  17001. }
  17002. .arrowZ {
  17003. transform: rotate(180deg);
  17004. }
  17005. .addToolFun {
  17006. display: flex;
  17007. width: 150px;
  17008. flex-direction: row;
  17009. align-items: center;
  17010. justify-content: center;
  17011. border: 2px dashed #cad1dc;
  17012. border-radius: 5px;
  17013. height: 50px;
  17014. margin: 35px auto 0;
  17015. cursor: pointer;
  17016. }
  17017. .addToolFun2 {
  17018. display: flex;
  17019. width: 150px;
  17020. border: 2px dashed #cad1dc;
  17021. flex-direction: row;
  17022. align-items: center;
  17023. justify-content: center;
  17024. border-radius: 5px;
  17025. height: 50px;
  17026. margin: 0 auto 0;
  17027. cursor: pointer;
  17028. }
  17029. .addToolFun2>div,
  17030. .addToolFun>div {
  17031. display: flex;
  17032. line-height: 50px;
  17033. }
  17034. .addToolImg {
  17035. width: 20px;
  17036. height: 20px;
  17037. margin-right: 10px;
  17038. }
  17039. .addToolsDia>>>.el-dialog__body {
  17040. padding: 20px;
  17041. }
  17042. .addToolsDia>>>.el-dialog__body>.toolChoose {
  17043. padding: 0;
  17044. }
  17045. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  17046. padding: 0;
  17047. border-bottom: none;
  17048. margin-bottom: 0;
  17049. }
  17050. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  17051. width: 100%;
  17052. }
  17053. .lineCss>>>.el-form-item__label {
  17054. width: auto !important;
  17055. }
  17056. .lineCss>>>.el-form-item__content {
  17057. margin-left: 50px !important;
  17058. }
  17059. .newSteps {
  17060. display: flex;
  17061. width: 100% !important;
  17062. /* height: 80px; */
  17063. cursor: pointer;
  17064. margin: 10px 0;
  17065. border-radius: 10px;
  17066. flex-direction: row;
  17067. align-content: center;
  17068. justify-content: center;
  17069. align-items: center;
  17070. margin: 0 !important;
  17071. }
  17072. /* 评价样式 */
  17073. .elist_css {
  17074. padding-bottom: 75px !important;
  17075. }
  17076. .elist_title {
  17077. margin-bottom: 10px;
  17078. }
  17079. .elist_input {
  17080. width: 100%;
  17081. }
  17082. .elist_input_box {
  17083. display: flex;
  17084. align-items: center;
  17085. flex-wrap: wrap;
  17086. }
  17087. .elist_input_box+.elist_input_box {
  17088. margin-top: 30px;
  17089. }
  17090. .elist_input .elist_input_box input {
  17091. font: inherit;
  17092. color: currentColor;
  17093. width: 100%;
  17094. /* max-width: calc(100% - 385px); */
  17095. max-width: calc(100% - 150px);
  17096. padding: 8px 14px;
  17097. display: block;
  17098. min-width: 0;
  17099. outline: none;
  17100. border: 1px solid rgba(0, 0, 0, 0.23);
  17101. border-radius: 4px;
  17102. box-sizing: border-box;
  17103. background: #fff;
  17104. margin: 0 20px 0 0;
  17105. }
  17106. .elist_input .elist_input_box span {
  17107. height: 36px;
  17108. line-height: 36px;
  17109. color: rgb(82, 82, 82);
  17110. min-width: 80px;
  17111. }
  17112. .elist_input .elist_input_box .remove {
  17113. height: 20px;
  17114. width: 20px;
  17115. min-height: 20px;
  17116. min-width: 20px;
  17117. background-size: 100% 100%;
  17118. background-position: unset;
  17119. margin-left: 5px;
  17120. }
  17121. .elist_input_box>>>.el-rate {
  17122. display: flex;
  17123. height: 36px;
  17124. align-items: center;
  17125. }
  17126. .elist_input_box .elist_inptu_text {
  17127. width: 100%;
  17128. display: flex;
  17129. align-items: center;
  17130. margin-top: 10px;
  17131. }
  17132. .elist_input_box .elist_inptu_text input {
  17133. /* width: 500px; */
  17134. width: 100%;
  17135. max-width: unset;
  17136. }
  17137. .elist_input_box>>>.el-rate__icon {
  17138. font-size: 24px;
  17139. }
  17140. .elist_btn {
  17141. margin-top: 10px;
  17142. }
  17143. .lineTitle {
  17144. /* margin-top: 15px; */
  17145. width: 110px;
  17146. font-size: 16px;
  17147. display: flex;
  17148. align-items: center;
  17149. line-height: 20px;
  17150. }
  17151. .lineTitle::before {
  17152. content: "";
  17153. display: block;
  17154. width: 3px;
  17155. height: 20px;
  17156. background: #0061ff;
  17157. border-radius: 3px;
  17158. margin: 0 5px 0 0;
  17159. }
  17160. .clineTitle::before {
  17161. content: "";
  17162. display: block;
  17163. min-width: 10px;
  17164. width: 10px;
  17165. height: 10px;
  17166. background: #0061ff;
  17167. border-radius: 50%;
  17168. margin: 0 5px 0 0;
  17169. }
  17170. .courseTop {
  17171. display: flex;
  17172. flex-direction: row;
  17173. justify-content: space-between;
  17174. align-items: center;
  17175. width: calc(100% - 40px);
  17176. margin: 0 auto;
  17177. padding: 10px 0;
  17178. }
  17179. .stepsNav {
  17180. display: flex;
  17181. flex-direction: row;
  17182. justify-content: flex-start;
  17183. align-items: center;
  17184. }
  17185. .stepsWord {
  17186. font-size: 18px;
  17187. color: #fff;
  17188. font-weight: bold;
  17189. margin-left: auto;
  17190. background: rgb(15, 126, 255);
  17191. border-radius: 5px;
  17192. padding: 3px 25px;
  17193. box-sizing: border-box;
  17194. }
  17195. .stepBox {
  17196. width: calc(100% - 40px);
  17197. height: calc(100% - 50px);
  17198. overflow: hidden;
  17199. border-radius: 5px;
  17200. margin: 0 auto;
  17201. }
  17202. .rightBox {
  17203. width: calc(100%);
  17204. background: #f0f2f5;
  17205. /* border-radius: 10px; */
  17206. overflow: auto;
  17207. height: calc(100% - 150px);
  17208. margin: 0 auto;
  17209. position: relative;
  17210. box-sizing: border-box;
  17211. }
  17212. .e_add_top {
  17213. display: flex;
  17214. justify-content: space-between;
  17215. background: #fff;
  17216. position: absolute;
  17217. right: 20px;
  17218. height: 50px;
  17219. align-items: center;
  17220. }
  17221. .e_add_title2 {
  17222. display: flex;
  17223. align-items: center;
  17224. }
  17225. .e_add_title2 span {
  17226. width: 40px;
  17227. }
  17228. .e_add_title {
  17229. display: flex;
  17230. align-items: center;
  17231. color: #b8b8b8;
  17232. font-size: 18px;
  17233. position: relative;
  17234. height: 40px;
  17235. }
  17236. .e_add_title span {
  17237. margin-right: 10px;
  17238. }
  17239. .e_add_title .el_input {
  17240. width: 300px;
  17241. }
  17242. .e_add_title>>>.el-input__inner {
  17243. width: 400px;
  17244. }
  17245. .e_add_btn {}
  17246. .e_add_content {
  17247. display: flex;
  17248. width: 100%;
  17249. }
  17250. .e_add_list {
  17251. background: #fff;
  17252. height: 500px;
  17253. width: 210px;
  17254. position: relative;
  17255. margin: 15px 5px 0 0;
  17256. flex-shrink: 0;
  17257. display: flex;
  17258. flex-direction: column;
  17259. }
  17260. .e_add_list_title {
  17261. font-size: 20px;
  17262. width: 100%;
  17263. box-sizing: border-box;
  17264. padding: 15px 40px;
  17265. text-align: center;
  17266. border-bottom: 1px solid #eaeaea;
  17267. position: relative;
  17268. display: flex;
  17269. align-items: center;
  17270. justify-content: center;
  17271. height: 57px;
  17272. background: #f6f6f6;
  17273. }
  17274. .e_add_list_title span {
  17275. overflow: hidden;
  17276. white-space: nowrap;
  17277. text-overflow: ellipsis;
  17278. }
  17279. .e_add_list_title img {
  17280. position: absolute;
  17281. right: 15px;
  17282. width: 25px;
  17283. cursor: pointer;
  17284. top: 50%;
  17285. transform: translateY(-50%);
  17286. }
  17287. .e_add_list_body {
  17288. height: calc(100% - 187px);
  17289. overflow: auto;
  17290. }
  17291. .e_add_list_child {
  17292. width: 100%;
  17293. display: flex;
  17294. align-items: center;
  17295. justify-content: center;
  17296. position: relative;
  17297. box-sizing: border-box;
  17298. padding: 15px 40px;
  17299. text-align: center;
  17300. }
  17301. .e_add_list_child span {
  17302. overflow: hidden;
  17303. white-space: nowrap;
  17304. text-overflow: ellipsis;
  17305. cursor: pointer;
  17306. }
  17307. .e_add_list_child img {
  17308. position: absolute;
  17309. right: 10px;
  17310. width: 21px;
  17311. cursor: pointer;
  17312. top: 50%;
  17313. transform: translateY(-50%);
  17314. }
  17315. .e_add_list_child+.e_add_list_child {
  17316. border-top: 1px solid #eaeaea;
  17317. }
  17318. .e_add_list_child .active {
  17319. color: #409eff;
  17320. }
  17321. .e_add_list_btn {
  17322. position: absolute;
  17323. bottom: 0;
  17324. height: 50px;
  17325. background: rgb(120, 120, 254);
  17326. width: 100%;
  17327. color: #fff;
  17328. font-size: 16px;
  17329. text-align: center;
  17330. line-height: 50px;
  17331. cursor: pointer;
  17332. }
  17333. .e_add_list_detail {
  17334. position: absolute;
  17335. bottom: 0;
  17336. height: 130px;
  17337. background: rgb(120, 120, 254);
  17338. width: 100%;
  17339. color: #fff;
  17340. font-size: 16px;
  17341. display: flex;
  17342. align-items: center;
  17343. justify-content: center;
  17344. }
  17345. .e_add_list_detail textarea {
  17346. height: 90%;
  17347. width: 95%;
  17348. border: none;
  17349. resize: none;
  17350. outline: none;
  17351. padding: 5px;
  17352. box-sizing: border-box;
  17353. }
  17354. .e_add_list_pbox {
  17355. width: 100%;
  17356. }
  17357. .e_add_list_pbox_title {
  17358. height: 50px;
  17359. background: #fff;
  17360. display: flex;
  17361. align-items: center;
  17362. width: 100%;
  17363. box-sizing: border-box;
  17364. padding: 0 20px;
  17365. flex-direction: row;
  17366. flex-wrap: wrap;
  17367. }
  17368. .type_title {
  17369. font-size: 18px;
  17370. font-weight: 700;
  17371. }
  17372. .type_content {
  17373. font-size: 16px;
  17374. margin-left: 30px;
  17375. }
  17376. .type_content span+span {
  17377. margin-left: 20px;
  17378. }
  17379. .type_content span {
  17380. cursor: pointer;
  17381. padding-bottom: 5px;
  17382. box-sizing: border-box;
  17383. }
  17384. .type_content .active {
  17385. color: #409eff;
  17386. border-bottom: 2px solid #409eff;
  17387. }
  17388. .e_add_list_pbox_content {
  17389. height: calc(100% - 50px);
  17390. display: flex;
  17391. align-items: center;
  17392. width: 100%;
  17393. background: #fff;
  17394. }
  17395. .mbCss {
  17396. width: 100%;
  17397. display: flex;
  17398. flex-direction: row;
  17399. flex-wrap: nowrap;
  17400. align-content: center;
  17401. align-items: flex-start;
  17402. justify-content: flex-start;
  17403. }
  17404. .pjCss {
  17405. /* width: 42%; */
  17406. width: calc(100% - 55%);
  17407. display: flex;
  17408. flex-direction: column;
  17409. flex-wrap: nowrap;
  17410. align-items: flex-start;
  17411. }
  17412. .e_box {
  17413. /* display: flex; */
  17414. flex-wrap: wrap;
  17415. max-height: 500px;
  17416. align-items: flex-start;
  17417. overflow: auto;
  17418. width: 100%;
  17419. }
  17420. .e_card {
  17421. border: 1px solid #ccc;
  17422. background: #fff;
  17423. margin-right: 20px;
  17424. width: 270px;
  17425. display: flex;
  17426. flex-direction: column;
  17427. align-items: center;
  17428. border-radius: 5px;
  17429. margin-top: 10px;
  17430. text-align: center;
  17431. }
  17432. .e_card_picture {
  17433. margin: 10px 0;
  17434. }
  17435. .e_card_picture>img {
  17436. width: 50px;
  17437. }
  17438. .e_card_name {
  17439. width: 100%;
  17440. padding: 0 10px;
  17441. box-sizing: border-box;
  17442. margin-bottom: 10px;
  17443. overflow: hidden;
  17444. text-overflow: ellipsis;
  17445. white-space: nowrap;
  17446. }
  17447. .e_card_time {
  17448. width: 100%;
  17449. padding: 0 10px;
  17450. box-sizing: border-box;
  17451. font-size: 15px;
  17452. color: #c3c3c3;
  17453. margin-bottom: 10px;
  17454. }
  17455. .e_card_btn {
  17456. height: 40px;
  17457. display: flex;
  17458. align-items: center;
  17459. width: 100%;
  17460. background: rgb(244, 244, 244);
  17461. }
  17462. .e_card_btn:hover {
  17463. background: rgb(221 221 221);
  17464. }
  17465. .e_card_btn span {
  17466. flex: 1 1 auto;
  17467. text-align: center;
  17468. cursor: pointer;
  17469. }
  17470. .addEva {
  17471. border: 1px solid #ccc;
  17472. background: #fff;
  17473. margin-right: 20px;
  17474. width: 270px;
  17475. height: 149px;
  17476. display: flex;
  17477. flex-direction: column;
  17478. align-items: center;
  17479. border-radius: 5px;
  17480. margin-top: 10px;
  17481. text-align: center;
  17482. cursor: pointer;
  17483. justify-content: center;
  17484. }
  17485. .addEva>img {
  17486. width: 50px;
  17487. object-fit: cover;
  17488. }
  17489. .uploadFm {
  17490. border: 1px dashed #ccc;
  17491. width: 100%;
  17492. height: 140px;
  17493. position: relative;
  17494. cursor: pointer;
  17495. display: flex;
  17496. flex-direction: column;
  17497. justify-content: center;
  17498. align-items: center;
  17499. font-size: 14px;
  17500. color: #6e6e6e;
  17501. position: relative;
  17502. }
  17503. .cover_p {
  17504. width: 100% !important;
  17505. height: 100%;
  17506. object-fit: cover;
  17507. }
  17508. .uploadFm2:hover .cover_mask {
  17509. display: flex !important;
  17510. }
  17511. .cover_mask {
  17512. display: none;
  17513. width: 100%;
  17514. height: 100%;
  17515. position: absolute;
  17516. background: #00000054;
  17517. align-items: center;
  17518. justify-content: center;
  17519. flex-direction: column;
  17520. }
  17521. .cover_mask>img {
  17522. width: 30px;
  17523. }
  17524. .cover_mask>span {
  17525. color: #fff;
  17526. font-size: 12px;
  17527. }
  17528. .uploadFm>img {
  17529. width: 50px;
  17530. }
  17531. .fileCss {
  17532. width: 100%;
  17533. display: flex;
  17534. flex-direction: row;
  17535. flex-wrap: nowrap;
  17536. justify-content: space-around;
  17537. align-items: center;
  17538. padding-top: 15px;
  17539. }
  17540. .fileCss>div {
  17541. display: flex;
  17542. flex-direction: column;
  17543. align-items: center;
  17544. }
  17545. .fileCss .spanName {
  17546. margin-top: 10px;
  17547. }
  17548. .sysPicBox {
  17549. display: flex;
  17550. flex-direction: row;
  17551. flex-wrap: wrap;
  17552. align-content: flex-start;
  17553. height: 435px;
  17554. overflow: auto;
  17555. position: relative;
  17556. }
  17557. .picNone {
  17558. position: absolute;
  17559. left: 50%;
  17560. top: 45%;
  17561. transform: translate(-50%, -50%);
  17562. width: fit-content;
  17563. color: #9c9c9c;
  17564. }
  17565. .sysPic {
  17566. width: 200px;
  17567. height: 115px;
  17568. margin: 0 20px 20px 0;
  17569. cursor: pointer;
  17570. }
  17571. .sysPic>img,
  17572. .isSysPic>img,
  17573. .deletePic>img {
  17574. width: 100%;
  17575. height: 100%;
  17576. object-fit: cover;
  17577. }
  17578. .isSysPic {
  17579. width: 200px;
  17580. height: 115px;
  17581. position: relative;
  17582. }
  17583. .deletePic {
  17584. width: 20px;
  17585. height: 20px;
  17586. position: absolute;
  17587. top: 0;
  17588. right: 0;
  17589. cursor: pointer;
  17590. }
  17591. .select_box1 {
  17592. height: 100%;
  17593. }
  17594. .select_box1_img {
  17595. background: #fff;
  17596. border-radius: 5px;
  17597. padding: 15px;
  17598. box-sizing: border-box;
  17599. margin-bottom: 20px;
  17600. }
  17601. .select_box1_title {
  17602. padding: 0 0 15px 0;
  17603. border-bottom: 1px solid #eee;
  17604. margin-bottom: 15px;
  17605. }
  17606. .select_box1_title span:nth-child(1) {
  17607. font-size: 16px;
  17608. margin-right: 20px;
  17609. color: #000;
  17610. }
  17611. .select_box1_title span:nth-child(2) {
  17612. font-size: 14px;
  17613. color: rgb(112, 112, 112);
  17614. }
  17615. .select_box1_add_img {}
  17616. .select_box1_select {
  17617. background: #fff;
  17618. border-radius: 5px;
  17619. padding: 15px;
  17620. box-sizing: border-box;
  17621. height: calc(100% - 200px);
  17622. overflow: auto;
  17623. }
  17624. .select_box2 {
  17625. height: 100%;
  17626. }
  17627. .select_box2_title {
  17628. background: #fff;
  17629. border-radius: 5px;
  17630. padding: 5px 10px;
  17631. box-sizing: border-box;
  17632. margin-bottom: 10px;
  17633. }
  17634. .select_box2_box {
  17635. display: flex;
  17636. height: calc(100% - 30px);
  17637. }
  17638. .select_box2_img {
  17639. width: calc(100% - 310px);
  17640. height: 100%;
  17641. overflow: auto;
  17642. background: #fff;
  17643. border-radius: 5px;
  17644. }
  17645. .select_box2_img img {
  17646. width: 100%;
  17647. }
  17648. .select_box2_answer {
  17649. background: #fff;
  17650. margin-left: 10px;
  17651. border-radius: 5px;
  17652. width: 300px;
  17653. overflow: auto;
  17654. height: 100%;
  17655. display: flex;
  17656. flex-direction: column;
  17657. align-items: center;
  17658. padding-top: 10px;
  17659. box-sizing: border-box;
  17660. }
  17661. .select_box2_answer_box {
  17662. margin: 0 0 10px 0;
  17663. width: 85%;
  17664. }
  17665. .rate_textarea {
  17666. font: inherit;
  17667. color: currentColor;
  17668. width: 100%;
  17669. padding: 8px 14px;
  17670. display: block;
  17671. min-width: 0;
  17672. outline: none;
  17673. border: 1px solid rgba(0, 0, 0, 0.23);
  17674. border-radius: 4px;
  17675. box-sizing: border-box;
  17676. background: #fff;
  17677. margin: 0 20px 0 0;
  17678. resize: none;
  17679. }
  17680. .select_answer_title {
  17681. text-align: left;
  17682. width: 85%;
  17683. margin-bottom: 10px;
  17684. font-size: 18px;
  17685. color: #8e8e8e;
  17686. }
  17687. .mask {
  17688. background-color: rgb(0 0 0 / 30%);
  17689. /* position: fixed; */
  17690. position: absolute;
  17691. top: 0;
  17692. left: 0;
  17693. width: 100%;
  17694. height: 100%;
  17695. z-index: 90;
  17696. display: flex;
  17697. align-items: center;
  17698. justify-content: center;
  17699. }
  17700. .progressBox {
  17701. width: 300px;
  17702. height: 150px;
  17703. background: #fff;
  17704. border-radius: 10px;
  17705. box-shadow: 0 0 6px 1px #bfbfbf;
  17706. display: flex;
  17707. align-items: center;
  17708. justify-content: center;
  17709. flex-direction: column;
  17710. position: relative;
  17711. color: #6c6c6c;
  17712. }
  17713. .progressBox>>>.el-progress-bar__outer {
  17714. background-color: #d1dfff !important;
  17715. }
  17716. .progressBox .lbox {
  17717. height: 50px;
  17718. font-size: 19px;
  17719. display: flex;
  17720. align-items: center;
  17721. color: #747474;
  17722. }
  17723. .progressBox .lbox img {
  17724. width: 40px;
  17725. margin-right: 20px;
  17726. }
  17727. .closeCss {
  17728. position: absolute;
  17729. top: 8px;
  17730. right: 8px;
  17731. cursor: pointer;
  17732. width: 20px;
  17733. height: 20px;
  17734. }
  17735. .closeCss>img {
  17736. width: 100%;
  17737. height: 100%;
  17738. }
  17739. .updateTips::before {
  17740. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  17741. font-size: 14px;
  17742. margin-left: 20px;
  17743. font-weight: 400;
  17744. color: #ff3a3a;
  17745. margin-bottom: 10px;
  17746. display: block;
  17747. }
  17748. .updateMask {
  17749. width: 100%;
  17750. z-index: 3;
  17751. top: 0;
  17752. position: absolute;
  17753. /* background-color: rgba(0,0,0,.3); */
  17754. }
  17755. .t_j_box {
  17756. display: flex;
  17757. }
  17758. .t_j_box span:nth-child(1) {
  17759. width: 15%;
  17760. overflow: hidden;
  17761. margin-right: 10px;
  17762. text-overflow: ellipsis;
  17763. white-space: nowrap;
  17764. }
  17765. .t_j_box span:nth-child(2) {
  17766. width: 30%;
  17767. overflow: hidden;
  17768. text-overflow: ellipsis;
  17769. margin-right: 10px;
  17770. }
  17771. .t_j_box span:nth-child(3) {
  17772. max-width: calc(55% - 20px);
  17773. overflow: hidden;
  17774. text-overflow: ellipsis;
  17775. }
  17776. .sentenBox {
  17777. background: #fff;
  17778. height: 600px;
  17779. overflow: auto;
  17780. background-image: url("../../../assets/icon/conSentences/csBg.png");
  17781. background-position: 102%;
  17782. background-repeat: no-repeat;
  17783. background-size: 60%;
  17784. }
  17785. .sentenBox>.sentenContent {
  17786. padding-bottom: 10px;
  17787. width: 97%;
  17788. margin: 0 auto;
  17789. }
  17790. .sentenBox>.sentenContent+.sentenContent {
  17791. border-top: 1px solid #cbcbcb;
  17792. }
  17793. .addSen {
  17794. background: #409efe;
  17795. width: 90px;
  17796. color: #fff;
  17797. height: 35px;
  17798. text-align: center;
  17799. line-height: 35px;
  17800. border-radius: 5px;
  17801. float: right;
  17802. margin: 10px 20px 0 0;
  17803. cursor: pointer;
  17804. }
  17805. .sentenTop {
  17806. display: flex;
  17807. flex-direction: row;
  17808. flex-wrap: nowrap;
  17809. align-items: center;
  17810. }
  17811. .sentenTop::before {
  17812. content: attr(index);
  17813. background: #3681fc;
  17814. border-radius: 50%;
  17815. color: #fff;
  17816. width: 25px;
  17817. height: 25px;
  17818. min-width: 25px;
  17819. min-height: 25px;
  17820. text-align: center;
  17821. line-height: 25px;
  17822. margin-right: 5px;
  17823. }
  17824. .sentenTop>div:nth-child(2) {
  17825. width: 300px;
  17826. margin: 0 15px;
  17827. }
  17828. .sentenTop>div:nth-child(3) {
  17829. background: #409efe;
  17830. color: #fff;
  17831. width: 65px;
  17832. height: 35px;
  17833. text-align: center;
  17834. line-height: 35px;
  17835. border-radius: 5px;
  17836. cursor: pointer;
  17837. }
  17838. .cardList {
  17839. padding: 30px 0 20px 0;
  17840. display: flex;
  17841. flex-direction: row;
  17842. flex-wrap: wrap;
  17843. align-items: center;
  17844. box-sizing: border-box;
  17845. border-bottom: 1px solid #f4f4f4;
  17846. width: 98%;
  17847. margin: 0 auto;
  17848. }
  17849. .rightCardList {
  17850. display: flex;
  17851. flex-wrap: wrap;
  17852. }
  17853. .cardBox {
  17854. display: flex;
  17855. flex-direction: row;
  17856. flex-wrap: wrap;
  17857. align-items: center;
  17858. align-content: center;
  17859. }
  17860. .isCard,
  17861. .isCard1 {
  17862. width: auto;
  17863. padding: 0 20px;
  17864. height: 65px;
  17865. text-align: center;
  17866. line-height: 65px;
  17867. font-size: 14px;
  17868. cursor: pointer;
  17869. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  17870. background-size: 100% 100%;
  17871. position: relative;
  17872. z-index: 99;
  17873. }
  17874. .isCard1 {
  17875. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  17876. }
  17877. .isCard:hover .deleteWord {
  17878. display: block;
  17879. }
  17880. .isCard>div:nth-child(1),
  17881. .isCard1>div:nth-child(1) {
  17882. white-space: nowrap;
  17883. overflow: hidden;
  17884. text-overflow: ellipsis;
  17885. width: 100%;
  17886. margin: 0 auto;
  17887. }
  17888. .card {
  17889. width: 140px;
  17890. height: 65px;
  17891. }
  17892. .card>img {
  17893. width: 100%;
  17894. height: 100%;
  17895. }
  17896. .rightCardBox {
  17897. width: 98%;
  17898. margin: 10px auto 0;
  17899. }
  17900. .rightCardBox>div:nth-child(1) {
  17901. margin-bottom: 10px;
  17902. }
  17903. .cardCss {
  17904. display: flex;
  17905. flex-direction: column;
  17906. flex-wrap: nowrap;
  17907. align-items: center;
  17908. border-bottom: 3px solid #b4c3d3;
  17909. padding: 0 0 5px 0;
  17910. /* margin-right: 10px; */
  17911. }
  17912. .cardCss>div:nth-child(2) {
  17913. background: #5b7b9d;
  17914. color: #fff;
  17915. width: 20px;
  17916. height: 20px;
  17917. border-radius: 50%;
  17918. text-align: center;
  17919. line-height: 20px;
  17920. }
  17921. .sentenTopBox {
  17922. display: flex;
  17923. flex-direction: row;
  17924. flex-wrap: nowrap;
  17925. align-items: center;
  17926. justify-content: space-between;
  17927. padding: 55px 0 0 20px;
  17928. box-sizing: border-box;
  17929. width: 85%;
  17930. }
  17931. .rb_c_ai_box,
  17932. .stepsBottom {
  17933. width: 100%;
  17934. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17935. /* background: #f7f7f7; */
  17936. border-radius: 10px;
  17937. overflow: hidden;
  17938. /* height: 100%; */
  17939. height: calc(100% - 55px);
  17940. }
  17941. .navTop {
  17942. background: #53749b;
  17943. color: #fff;
  17944. height: 40px;
  17945. line-height: 40px;
  17946. padding-left: 15px;
  17947. font-size: 18px;
  17948. }
  17949. .navBottom {
  17950. /* background: #6b91b7; */
  17951. height: 100%;
  17952. overflow: auto;
  17953. padding: 10px 0;
  17954. }
  17955. .navStage {
  17956. display: flex;
  17957. flex-direction: row;
  17958. flex-wrap: nowrap;
  17959. align-items: center;
  17960. padding: 10px 10px 10px 0;
  17961. cursor: pointer;
  17962. background: #ffffff;
  17963. width: 95%;
  17964. margin: 5px auto 5px;
  17965. box-sizing: border-box;
  17966. border-radius: 5px;
  17967. flex-wrap: wrap;
  17968. position: relative;
  17969. }
  17970. .navStage:hover>.chapter_upload_drag {
  17971. display: block;
  17972. }
  17973. .navTask:hover>.chapter_upload_drag {
  17974. display: block;
  17975. }
  17976. .chapter_upload:hover>.chapter_upload_drag {
  17977. display: block;
  17978. }
  17979. .navStage::before {
  17980. content: "";
  17981. display: block;
  17982. width: 16px;
  17983. height: 16px;
  17984. background-image: url(../../../assets/icon/new/icon_stage.png);
  17985. background-size: 100%;
  17986. margin-left: 25px;
  17987. }
  17988. .navStage .chapter_unit_open {
  17989. content: "";
  17990. display: block;
  17991. width: 16px;
  17992. height: 16px;
  17993. background-image: url(../../../assets/icon/new/down.png);
  17994. transform: rotate(-90deg);
  17995. background-size: 100%;
  17996. margin-left: 10px;
  17997. transition: all 0.5s;
  17998. }
  17999. .isNavStageOpen .chapter_unit_open {
  18000. transform: rotate(0deg);
  18001. }
  18002. .isNavStage {
  18003. background: #0061ff;
  18004. }
  18005. .isNavStage::before {
  18006. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  18007. }
  18008. .isNavStage .chapter_unit_open {
  18009. background-image: url(../../../assets/icon/new/downC.png);
  18010. }
  18011. .isNavStage .nt_taskName {
  18012. font-weight: bold !important;
  18013. color: #ffffff !important;
  18014. }
  18015. .isNavStage .nt_taskTitle {
  18016. font-weight: bold !important;
  18017. color: #fff !important;
  18018. }
  18019. .navStage .nt_taskBox {
  18020. width: calc(100% - 68px);
  18021. padding: 0 0 0 5px;
  18022. box-sizing: border-box;
  18023. box-sizing: border-box;
  18024. display: flex;
  18025. flex-direction: row;
  18026. flex-wrap: nowrap;
  18027. align-items: baseline;
  18028. }
  18029. .navStage .nt_taskTitle {
  18030. color: #060e17;
  18031. line-height: 25px;
  18032. font-size: 16px;
  18033. }
  18034. .navStage .nt_taskName {
  18035. max-width: calc(100% - 82px);
  18036. white-space: nowrap;
  18037. overflow: hidden;
  18038. text-overflow: ellipsis;
  18039. font-size: 16px;
  18040. color: #060e17;
  18041. }
  18042. .navTask {
  18043. display: flex;
  18044. flex-direction: row;
  18045. flex-wrap: nowrap;
  18046. align-items: center;
  18047. padding: 10px 10px 10px 0;
  18048. cursor: pointer;
  18049. background: #ffffff;
  18050. width: 95%;
  18051. margin: 5px auto 5px;
  18052. box-sizing: border-box;
  18053. border-radius: 5px;
  18054. flex-wrap: wrap;
  18055. position: relative;
  18056. }
  18057. .navTask .chapter_upload_open {
  18058. content: "";
  18059. display: block;
  18060. width: 16px;
  18061. height: 16px;
  18062. background-image: url(../../../assets/icon/new/icon_arrow.png);
  18063. background-size: 100%;
  18064. margin-left: 23px;
  18065. }
  18066. .noImage .chapter_upload_open {
  18067. display: none;
  18068. background-image: unset !important;
  18069. }
  18070. .isNavOpen .chapter_upload_open {
  18071. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  18072. transform: rotate(90deg);
  18073. }
  18074. .isNavTask .chapter_upload_open {
  18075. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  18076. transform: rotate(-90deg);
  18077. }
  18078. .isNavTask.isNavOpen .chapter_upload_open {
  18079. transform: rotate(0deg);
  18080. }
  18081. .dragOverTop {
  18082. border-top: 2px solid #0061ff !important;
  18083. border-radius: 0 !important;
  18084. margin-top: 10px;
  18085. }
  18086. .dragOverBottom {
  18087. border-bottom: 2px solid #0061ff !important;
  18088. border-radius: 0 !important;
  18089. margin-top: 10px;
  18090. }
  18091. .dragOverTop2 {
  18092. border-top: 2px solid #0061ff !important;
  18093. border-radius: 0 !important;
  18094. }
  18095. .dragOverBottom2 {
  18096. border-bottom: 2px solid #0061ff !important;
  18097. border-radius: 0 !important;
  18098. }
  18099. .isNavTask {
  18100. /* background: #3681FC; */
  18101. background: #eef3fb;
  18102. }
  18103. .isNavTask>.chapter_upload_drag {
  18104. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  18105. }
  18106. .isNavTask .nt_taskName {
  18107. /* color: #fff !important; */
  18108. font-weight: bold !important;
  18109. color: #0061ff !important;
  18110. }
  18111. .isNavTask .nt_taskTitle {
  18112. /* color: #AECCFE !important; */
  18113. font-weight: bold !important;
  18114. color: #0061ff !important;
  18115. }
  18116. .navTask .nt_taskBox {
  18117. width: calc(100% - 40px);
  18118. padding: 0 0 0 5px;
  18119. box-sizing: border-box;
  18120. box-sizing: border-box;
  18121. display: flex;
  18122. flex-direction: row;
  18123. flex-wrap: nowrap;
  18124. align-items: baseline;
  18125. }
  18126. .navTask .nt_taskTitle {
  18127. /* color: #717C8D; */
  18128. color: #060e17;
  18129. line-height: 25px;
  18130. font-size: 16px;
  18131. /* min-width: 66px; */
  18132. }
  18133. .navTask .nt_taskName {
  18134. /* color: #fff; */
  18135. /* max-width: 130px; */
  18136. /* width: 100%; */
  18137. max-width: calc(100% - 66px);
  18138. font-size: 16px;
  18139. color: #060e17;
  18140. /* color: #0E1E33; */
  18141. }
  18142. .navTask .nt_taskName span {
  18143. width: 100%;
  18144. white-space: nowrap;
  18145. overflow: hidden;
  18146. text-overflow: ellipsis;
  18147. display: block;
  18148. }
  18149. .gjBox {
  18150. width: calc(100% - 25px);
  18151. padding: 0 0 0 0;
  18152. box-sizing: border-box;
  18153. border-left: 1px solid #cad1dc;
  18154. margin-left: 25px;
  18155. }
  18156. .gjBox>div {
  18157. display: flex;
  18158. align-items: center;
  18159. }
  18160. .gjBox>div::before {
  18161. content: "";
  18162. height: 1px;
  18163. width: 10px;
  18164. background: #cad1dc;
  18165. display: block;
  18166. margin-right: 5px;
  18167. }
  18168. .gjCss {
  18169. display: flex;
  18170. flex-direction: row;
  18171. flex-wrap: nowrap;
  18172. align-items: center;
  18173. padding: 15px 0;
  18174. box-sizing: border-box;
  18175. font-size: 14px;
  18176. cursor: pointer;
  18177. }
  18178. .isGjCss {
  18179. color: #0061ff;
  18180. }
  18181. .groupBox {}
  18182. .groupContent+.groupContent {
  18183. margin-top: 30px;
  18184. }
  18185. .groupTitle {
  18186. font-size: 24px;
  18187. color: rgb(80, 80, 80);
  18188. margin-bottom: 20px;
  18189. }
  18190. .groupName {
  18191. display: flex;
  18192. align-items: center;
  18193. }
  18194. .groupn {
  18195. font-size: 15px;
  18196. margin-right: 10px;
  18197. }
  18198. .groupName+.groupName {
  18199. margin-top: 15px;
  18200. }
  18201. .groupBtn {
  18202. margin-left: 10px;
  18203. }
  18204. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  18205. text-align: left;
  18206. }
  18207. .radioBox>div {
  18208. margin: 10px 0 0 10px;
  18209. }
  18210. .radioBox>>>.el-radio__input,
  18211. .radioBox>>>.el-checkbox__inner {
  18212. margin-left: 10px;
  18213. }
  18214. .radioBox>>>.el-radio__label,
  18215. .radioBox>>>.el-checkbox__label {
  18216. display: flex;
  18217. align-items: center;
  18218. }
  18219. .inImg {
  18220. width: 50px;
  18221. }
  18222. .inImg>img {
  18223. width: 100%;
  18224. height: 100%;
  18225. object-fit: cover;
  18226. }
  18227. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  18228. height: auto;
  18229. padding: 10px;
  18230. margin: 0;
  18231. }
  18232. .upCss>>>.el-upload-list {
  18233. width: 100%;
  18234. }
  18235. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  18236. width: 100%;
  18237. height: 120px;
  18238. object-fit: contain;
  18239. background: unset;
  18240. margin-left: 0;
  18241. }
  18242. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  18243. display: none;
  18244. }
  18245. .tcMember+.tcMember::before {
  18246. content: "、";
  18247. }
  18248. .xzUpImg {
  18249. width: 25px;
  18250. height: 25px;
  18251. min-width: 25px;
  18252. min-height: 25px;
  18253. cursor: pointer;
  18254. margin: 0 10px;
  18255. }
  18256. .xzUpImg>img {
  18257. width: 100%;
  18258. height: 100%;
  18259. }
  18260. .closeCss {
  18261. position: absolute;
  18262. top: 8px;
  18263. right: 8px;
  18264. cursor: pointer;
  18265. width: 20px;
  18266. height: 20px;
  18267. }
  18268. .closeCss>img {
  18269. width: 100%;
  18270. height: 100%;
  18271. }
  18272. .moveBtn {
  18273. display: flex;
  18274. flex-direction: row;
  18275. flex-wrap: nowrap;
  18276. align-items: center;
  18277. width: 55px;
  18278. }
  18279. .timuUpImg {
  18280. display: flex;
  18281. flex-direction: row;
  18282. align-items: center;
  18283. width: 100%;
  18284. margin-right: 10px;
  18285. }
  18286. .timuUpImg>div:nth-child(1) {
  18287. margin-right: 10px;
  18288. display: flex;
  18289. align-items: center;
  18290. width: 100%;
  18291. }
  18292. .timuImgBox {
  18293. margin: 10px 0;
  18294. display: flex;
  18295. flex-direction: column;
  18296. flex-wrap: wrap;
  18297. align-items: flex-start;
  18298. }
  18299. .timuImg {
  18300. width: 100px;
  18301. margin: 5px 0;
  18302. cursor: pointer;
  18303. position: relative;
  18304. }
  18305. .timuImg:hover .deleteWord {
  18306. display: block;
  18307. }
  18308. .deleteWord {
  18309. width: 25px;
  18310. height: 25px;
  18311. position: absolute;
  18312. right: -5px;
  18313. top: -5px;
  18314. cursor: pointer;
  18315. display: none;
  18316. }
  18317. .timuImg>img,
  18318. .deleteWord>img {
  18319. width: 100%;
  18320. height: 100%;
  18321. object-fit: cover;
  18322. }
  18323. .e_add_delete {
  18324. cursor: pointer;
  18325. margin-left: 10px;
  18326. }
  18327. .pType_box {
  18328. margin-top: 30px;
  18329. align-items: flex-end;
  18330. }
  18331. .noneBox {
  18332. height: 200px;
  18333. width: 100%;
  18334. display: flex;
  18335. align-items: center;
  18336. justify-content: center;
  18337. flex-direction: column;
  18338. /* margin-top: 150px; */
  18339. }
  18340. .noneBox>img {
  18341. width: 95px;
  18342. }
  18343. .noneBox>span {
  18344. margin-top: 10px;
  18345. color: #717c8d;
  18346. }
  18347. .rb_c_box {
  18348. width: 100%;
  18349. height: 100%;
  18350. display: flex;
  18351. /* padding: 20px; */
  18352. box-sizing: border-box;
  18353. justify-content: space-between;
  18354. }
  18355. .rb_c_box_left {
  18356. height: 100%;
  18357. background: #fff;
  18358. width: 270px;
  18359. min-width: 270px;
  18360. border-radius: 8px;
  18361. margin-right: 10px;
  18362. }
  18363. .rb_c_box_right {
  18364. height: 100%;
  18365. width: calc(100%);
  18366. overflow: hidden;
  18367. }
  18368. .rb_c_box_btn {
  18369. display: flex;
  18370. justify-content: flex-start;
  18371. height: 50px;
  18372. align-items: center;
  18373. }
  18374. .rb_c_box_right>.basic_box {
  18375. /* background: #fff; */
  18376. border-radius: 0;
  18377. height: calc(100% - 0px);
  18378. overflow: auto;
  18379. padding: 0;
  18380. }
  18381. .textarea_css {
  18382. display: block;
  18383. resize: none;
  18384. padding: 10px 15px;
  18385. line-height: 1.5;
  18386. box-sizing: border-box;
  18387. width: 100%;
  18388. font-size: 14px;
  18389. color: #606266;
  18390. background-color: #fff;
  18391. background-image: none;
  18392. border: 1px solid #dcdfe6;
  18393. border-radius: 4px;
  18394. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  18395. outline: none;
  18396. overflow: hidden;
  18397. height: 46px;
  18398. font-family: "Microsoft YaHei";
  18399. }
  18400. .textarea_css::-webkit-input-placeholder {
  18401. color: #c0c4cc;
  18402. }
  18403. .textarea_css:focus {
  18404. border-color: #409eff;
  18405. outline: 0;
  18406. }
  18407. .addEditor>>>.text {
  18408. height: auto;
  18409. min-height: 100px;
  18410. }
  18411. .addEditor>>>.w-e-text-container {
  18412. min-height: 100px;
  18413. }
  18414. .moveBtn2 {
  18415. flex-direction: column;
  18416. width: fit-content;
  18417. margin: 0 10px 0 10px;
  18418. }
  18419. .moveBtn2 .chapter_upload_down,
  18420. .moveBtn2 .chapter_upload_up {
  18421. width: 16px;
  18422. height: 16px;
  18423. }
  18424. .moveBtn2 .chapter_upload_up::after,
  18425. .moveBtn2 .chapter_upload_down::after {
  18426. width: 10px;
  18427. height: 10px;
  18428. }
  18429. .fullStyle>>>.el-dialog__body {
  18430. height: calc(100% - 125px) !important;
  18431. box-sizing: border-box;
  18432. }
  18433. .fullStyle1>>>.el-dialog__body {
  18434. height: auto !important;
  18435. }
  18436. .fullStyle>>>.el-dialog {
  18437. width: 100% !important;
  18438. max-width: 100% !important;
  18439. height: 100% !important;
  18440. margin: 0 !important;
  18441. }
  18442. .fullStyle {
  18443. width: 100% !important;
  18444. max-width: 100% !important;
  18445. height: 100% !important;
  18446. margin: 0 auto !important;
  18447. }
  18448. .wb_j_box_btn {
  18449. width: calc(100% - 30px);
  18450. display: flex;
  18451. height: 40px;
  18452. border: 1.5px solid #cad1dc;
  18453. border-radius: 4px;
  18454. box-sizing: border-box;
  18455. align-items: center;
  18456. font-size: 14px;
  18457. cursor: pointer;
  18458. overflow: hidden;
  18459. }
  18460. .wb_j_box_btn:hover {
  18461. border: 1.5px solid #0061ff;
  18462. }
  18463. .wb_j_box_title {
  18464. background: #f0f4fa;
  18465. height: 100%;
  18466. line-height: 40px;
  18467. width: 90px;
  18468. text-align: center;
  18469. color: #060e17;
  18470. border-right: 1.5px solid #cad1dc;
  18471. box-sizing: border-box;
  18472. }
  18473. .wb_j_box_btn_c {
  18474. width: calc(100% - 90px);
  18475. padding: 0 35px 0 10px;
  18476. box-sizing: border-box;
  18477. position: relative;
  18478. }
  18479. .wb_j_box_span {
  18480. width: 100%;
  18481. overflow: hidden;
  18482. white-space: nowrap;
  18483. text-overflow: ellipsis;
  18484. word-wrap: break-word;
  18485. color: #717c8d;
  18486. }
  18487. .wb_j_box_arrow {
  18488. content: "";
  18489. width: 14px;
  18490. height: 14px;
  18491. background: url(../../../assets/icon/new/u_arrow.png);
  18492. background-size: 100% 100%;
  18493. position: absolute;
  18494. right: 12px;
  18495. top: 50%;
  18496. transform: translateY(-50%);
  18497. }
  18498. .check_classBox {
  18499. height: 400px;
  18500. display: flex;
  18501. border-top: 1.5px solid #e7ebf1;
  18502. border-bottom: 1.5px solid #e7ebf1;
  18503. }
  18504. .check_class_right {
  18505. width: 130px;
  18506. border-right: 1px solid #e7ebf1;
  18507. display: flex;
  18508. align-items: center;
  18509. flex-direction: column;
  18510. height: 100%;
  18511. overflow: auto;
  18512. padding: 15px 0;
  18513. box-sizing: border-box;
  18514. }
  18515. .check_class {
  18516. width: 85%;
  18517. border-radius: 5px;
  18518. height: 30px;
  18519. min-height: 30px;
  18520. line-height: 30px;
  18521. text-align: center;
  18522. padding: 0 10px;
  18523. box-sizing: border-box;
  18524. cursor: pointer;
  18525. white-space: nowrap;
  18526. overflow: hidden;
  18527. text-overflow: ellipsis;
  18528. }
  18529. .check_class.activeX {
  18530. background: #e0eafb;
  18531. color: #3681fc;
  18532. font-weight: 700;
  18533. }
  18534. .check_class+.check_class {
  18535. margin-top: 15px;
  18536. }
  18537. .check_class_left {
  18538. background: #fafafa;
  18539. width: calc(100% - 130px);
  18540. padding: 15px;
  18541. box-sizing: border-box;
  18542. }
  18543. .check_class_all_box {
  18544. display: flex;
  18545. margin-bottom: 10px;
  18546. }
  18547. .all_check {
  18548. display: flex;
  18549. align-items: center;
  18550. padding: 2px 0 0;
  18551. margin-left: 10px;
  18552. }
  18553. .all_check>>>.el-checkbox__label {
  18554. line-height: 18px;
  18555. }
  18556. .check_class_left_title {
  18557. font-size: 16px;
  18558. font-weight: 700;
  18559. }
  18560. .check_class_item {
  18561. display: flex;
  18562. flex-wrap: wrap;
  18563. height: calc(100% - 45px);
  18564. overflow: auto;
  18565. justify-content: flex-start;
  18566. align-items: flex-start;
  18567. align-content: flex-start;
  18568. }
  18569. .class_item:first-child {
  18570. /* margin: 0 15px 15px 67px; */
  18571. }
  18572. .class_item {
  18573. margin: 0 15px 15px 0;
  18574. }
  18575. .class_item:hover>>>.el-checkbox__label {
  18576. color: #409eff;
  18577. }
  18578. .class_item>>>.el-checkbox__label {
  18579. color: #0e1e33;
  18580. }
  18581. .class_item:hover>>>.el-checkbox__inner {
  18582. border-color: #409eff;
  18583. }
  18584. .class_item>>>.el-checkbox,
  18585. .class_item>>>.el-checkbox__input {
  18586. display: flex;
  18587. align-items: center;
  18588. }
  18589. .taskTitle {
  18590. font-size: 20px;
  18591. font-weight: bold;
  18592. margin-bottom: 35px;
  18593. }
  18594. .taskTitle:after {
  18595. content: "";
  18596. width: 100%;
  18597. display: block;
  18598. height: 1px;
  18599. background: #cad1dc;
  18600. position: absolute;
  18601. left: 0;
  18602. margin: 15px 0 0;
  18603. }
  18604. .eva_btn_box {
  18605. margin: 20px 0px 0 0;
  18606. display: flex;
  18607. flex-direction: row;
  18608. flex-wrap: nowrap;
  18609. align-items: center;
  18610. justify-content: space-between;
  18611. width: 100%;
  18612. }
  18613. .eva_btn_left_box {
  18614. display: flex;
  18615. flex-direction: row;
  18616. flex-wrap: nowrap;
  18617. align-items: center;
  18618. }
  18619. .addTypeChoose {
  18620. display: flex;
  18621. flex-direction: row;
  18622. flex-wrap: nowrap;
  18623. align-items: center;
  18624. margin: 15px 0;
  18625. }
  18626. .addTypeBox {
  18627. display: flex;
  18628. flex-direction: column;
  18629. flex-wrap: nowrap;
  18630. align-items: center;
  18631. }
  18632. .addTypeChoose {
  18633. display: flex;
  18634. flex-direction: row;
  18635. flex-wrap: nowrap;
  18636. align-items: center;
  18637. margin: 15px 0;
  18638. }
  18639. .buchong_box {
  18640. background: #E0EAFB66;
  18641. width: calc(100% - 20px);
  18642. min-height: 50px;
  18643. display: flex;
  18644. align-items: center;
  18645. justify-content: center;
  18646. margin: 0 auto;
  18647. }
  18648. .outline {
  18649. width: calc(100% - 40px);
  18650. margin: 0 auto;
  18651. }
  18652. .task_outline {
  18653. width: calc(100% - 40px);
  18654. margin: 0 auto;
  18655. }
  18656. .outline_box+.outline_box {
  18657. margin: 30px 0 0px;
  18658. }
  18659. .outline_task {
  18660. display: flex;
  18661. align-items: center;
  18662. margin-bottom: 10px;
  18663. }
  18664. .outline_task .title {
  18665. font-size: 18px;
  18666. font-weight: bold;
  18667. min-width: 80px;
  18668. }
  18669. .op_task_box,
  18670. .op_tool_box,
  18671. .outline_detail {
  18672. position: relative;
  18673. }
  18674. .op_task_box:hover .op_box,
  18675. .op_tool_box:hover .op_box,
  18676. .outline_detail:hover .op_box {
  18677. display: flex
  18678. }
  18679. .op_box {
  18680. position: absolute;
  18681. bottom: 10px;
  18682. display: none;
  18683. align-items: center;
  18684. justify-content: space-between;
  18685. width: calc(100% - 20px);
  18686. left: 50%;
  18687. transform: translateX(-50%);
  18688. }
  18689. .op_box .op_remark {
  18690. color: #8E8E8E;
  18691. font-size: 14px;
  18692. }
  18693. .rb_c_nav {
  18694. width: calc(100% - 20px);
  18695. margin: 15px auto 0;
  18696. font-size: 18px;
  18697. }
  18698. .rb_c_nav span {
  18699. cursor: pointer;
  18700. }
  18701. .rb_c_nav span+span {
  18702. margin-left: 10px;
  18703. }
  18704. .rb_c_nav span.active {
  18705. color: #0061FF
  18706. }
  18707. .text_panel>>>.text {
  18708. height: 400px;
  18709. }
  18710. .markBox{
  18711. padding: 20px 14px;
  18712. line-height: 29px;
  18713. font-size: 16px;
  18714. background: #f4f4f4;
  18715. border-radius: 5px;
  18716. }
  18717. .info_box_t{
  18718. display: flex;
  18719. align-items: center;
  18720. }
  18721. .info_box_t_box{
  18722. display: flex;
  18723. align-items: center;
  18724. }
  18725. .info_box_t_box + .info_box_t_box{
  18726. margin-left: 10px;
  18727. }
  18728. .info_box_t_box > span{
  18729. width: fit-content
  18730. }
  18731. .info_box_t_box > input{
  18732. width: 150px !important;
  18733. margin: 0 5px 0 0;
  18734. }
  18735. </style>