addCourse.vue 699 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right" :style="{width: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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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. export default {
  5271. components: {
  5272. EditorBar,
  5273. Mind,
  5274. Time,
  5275. Sunburst,
  5276. SeeBoard,
  5277. Table,
  5278. sourceDialog,
  5279. interVideo,
  5280. englishRight,
  5281. evaBox,
  5282. EnglishVoice,
  5283. aiBox,
  5284. aiDialog,
  5285. aiTips,
  5286. tipsDialog,
  5287. aiCreateDialog,
  5288. aiCreateVideoDialog
  5289. },
  5290. data() {
  5291. return {
  5292. checkAll: false,
  5293. checkAll2: false,
  5294. chooseType: 1,
  5295. checkedCities: [],
  5296. isIndeterminate: true,
  5297. isIndeterminate2: true,
  5298. isSysPic: false,
  5299. isSysPic2: false,
  5300. steps: 1,
  5301. stepsNav: 1,
  5302. nbOrder: 0,
  5303. courseId: "",
  5304. chapToolsType: 0,
  5305. chapTools: [
  5306. {
  5307. tools: [],
  5308. toolDetail: "",
  5309. },
  5310. ],
  5311. line: "",
  5312. lineTitle: "",
  5313. sysPic: [],
  5314. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5315. sentenceList2: [],
  5316. isPushTitleList: [],
  5317. lineCount: 0,
  5318. lineType: 0,
  5319. chapCount: 0,
  5320. courseName: "",
  5321. isTeacherSee: false,
  5322. courseText: "",
  5323. textLoading: false,
  5324. ttextLoading: false,
  5325. courseText2: "",
  5326. preTime: 0,
  5327. formLabelWidth: "100px",
  5328. choosePicVisible: false,
  5329. sysPicVisible: false,
  5330. sysPicVisible2: false,
  5331. uploadLoading1: false,
  5332. noneBtnImg: false,
  5333. updateBoolean2: false,
  5334. unitIndex: 0,
  5335. taskCount: 0,
  5336. dialogVisible: false,
  5337. dialogVisible1: false,
  5338. dialogVisible2: false,
  5339. dialogVisible3: false,
  5340. dialogVisible4: false,
  5341. dialogVisible5: false,
  5342. dialogVisible6: false,
  5343. dialogVisible7: false,
  5344. dialogVisible8: false,
  5345. dialogVisible9: false,
  5346. dialogVisibleClass: false,
  5347. dialogVisibleMember: false,
  5348. dialogVisibleMp3: false,
  5349. dialogVisibleSelect: false,
  5350. dialogVisibleSentence: false,
  5351. dialogVisibleRate: false,
  5352. dialogVisibleChoice: false,
  5353. dialogVisiblemb: false,
  5354. dialogVisibleInvite: false,
  5355. dialogVisibleSource: false,
  5356. dialogVisibleVideo: false,
  5357. dialogVisibleStageChange: false,
  5358. dialogVisibleupdataVideoT: false,
  5359. englishDialogVisible: false,
  5360. templateDialog: false,
  5361. ctJson: {},
  5362. isClickColor: 1,
  5363. toolIndexType: "",
  5364. publicTool: 0,
  5365. searchPeople: "",
  5366. searchTN: "",
  5367. collid: '',
  5368. CollLoading: false,
  5369. userid: this.$route.query.userid,
  5370. oid: this.$route.query.oid,
  5371. org: this.$route.query.org,
  5372. role: this.$route.query.role,
  5373. aiId: this.$route.query.aiId != undefined ? this.$route.query.aiId : "",
  5374. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5375. dialogVisibleTable: false,
  5376. dialogVisibleWord: false,
  5377. tableJson: { text: "" },
  5378. wordJson: { text: "" },
  5379. dialogVisibleMoreUpload: false,
  5380. dialogVisiblePreTime: false,
  5381. uploadJson: [],
  5382. classJuri: [],
  5383. gradeList: [],
  5384. cover: [], //课程封面
  5385. myWord: [],
  5386. evaJuri: [],
  5387. evalua: "",
  5388. targetArray: [],
  5389. eTitle: "",
  5390. eJson: {},
  5391. fid: "", //一级
  5392. sid: "", //二级
  5393. tid: "", //二级
  5394. typeMode: 1,
  5395. eJSONNum: 0,
  5396. data: {
  5397. meta: {
  5398. name: "example",
  5399. author: "dd@163.com",
  5400. version: "0.2",
  5401. },
  5402. format: "node_array",
  5403. data: [{ id: "root", isroot: true, topic: "" }],
  5404. },
  5405. askJson: {
  5406. askCount: 1,
  5407. askTitle: "",
  5408. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5409. },
  5410. askJson2: {},
  5411. testJson: {},
  5412. testJson2: {},
  5413. selectJson: {},
  5414. selectJson2: {},
  5415. rateJson: [],
  5416. unitJson2: [],
  5417. unitJson3: [],
  5418. unitJson: [
  5419. {
  5420. dyName: "", //单元标题
  5421. chapterInfo: [
  5422. {
  5423. isread: false,
  5424. chapterid: this.guid(),
  5425. title: "",
  5426. courseName: "",
  5427. taskJson: [
  5428. {
  5429. task: "",
  5430. taskDetail: "",
  5431. chapterData: [],
  5432. toolText: "",
  5433. toolChoose: [
  5434. {
  5435. tool: [],
  5436. toolDetail: "",
  5437. toolType: 0,
  5438. askCount: 1,
  5439. askTitle: "",
  5440. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5441. },
  5442. ],
  5443. isShowTools: false,
  5444. askCount: 1,
  5445. isFold: 1,
  5446. askTitle: "",
  5447. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5448. checkJson: [{ checkCount: [], checkPerent: [] }],
  5449. homeworkList: [],
  5450. },
  5451. ],
  5452. itemCount: 1,
  5453. fileList1: [],
  5454. video: [],
  5455. testData: [],
  5456. pData: [],
  5457. templateArray: [],
  5458. },
  5459. ],
  5460. },
  5461. ],
  5462. templateArray: [],
  5463. studentJuri: [],
  5464. teacherJuri: [],
  5465. CollaborativeTeaList: [],
  5466. checkboxList: [],
  5467. checkboxList2: [],
  5468. checkboxList3: [],
  5469. classSearch: "",
  5470. gradeId: "",
  5471. number: "",
  5472. tTitle: "",
  5473. tdetail: "",
  5474. templateC: {},
  5475. AttText: {},
  5476. AttTextType: 0,
  5477. AttTextIndex: 0,
  5478. cTemplate: "",
  5479. CourseType: [],
  5480. CourseType1: [],
  5481. CourseType2: [],
  5482. CourseTypeJson: {},
  5483. CourseTypeJson1: {},
  5484. courseTypeId: [],
  5485. courseTypeId1: [],
  5486. courseTypeSon: [],
  5487. clearArray: [],
  5488. pTypeCheck: [],
  5489. pTypeCheckName: [],
  5490. loading: false,
  5491. toolType: 0,
  5492. inputShow: true,
  5493. inputShow2: true,
  5494. toolIndex: 0,
  5495. cidType: 0,
  5496. answerQ: "",
  5497. answerQ2: "",
  5498. grade: [],
  5499. grade2: [],
  5500. courseUserid: "",
  5501. timer: null,
  5502. timer2: null,
  5503. pasteTimer: null,
  5504. checkId: "",
  5505. isDelete: 1,
  5506. addindex: 0,
  5507. selectSteps: 1,
  5508. groupJson: {},
  5509. dialogVisibleGroup: false,
  5510. rightBoxHeight: 0,
  5511. ManAarray: [],
  5512. checkBoolean: false,
  5513. inviteCode: [],
  5514. inviteId: "",
  5515. icode: "",
  5516. easyArray: [2, 4],
  5517. sourceData: {},
  5518. updateSourcePan: false,
  5519. videoJson: {},
  5520. isBtnDisplay: false,
  5521. isStepDisplay: false,
  5522. isPasteStage: false,
  5523. isPasteTask: false,
  5524. isPasteChoice: false,
  5525. imageList: [],
  5526. imageloading: false,
  5527. imageloading2: false,
  5528. searchImageValue: "",
  5529. ppage: 1,
  5530. toolsData: toolsData,
  5531. oldIndex: 0,
  5532. dragType: "",
  5533. oldUnitIndex: 0,
  5534. oldData: null,
  5535. newIndex: "",
  5536. englishList: {},
  5537. typeIndex: "",
  5538. courseState: 4,
  5539. taskJSONa: [
  5540. {
  5541. task: "",
  5542. taskDetail: "",
  5543. chapterData: [],
  5544. toolText: "",
  5545. toolChoose: [
  5546. {
  5547. tool: [],
  5548. toolDetail: "",
  5549. toolType: 0,
  5550. askCount: 1,
  5551. askTitle: "",
  5552. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5553. },
  5554. ],
  5555. isShowTools: false,
  5556. askCount: 1,
  5557. isFold: 1,
  5558. askTitle: "",
  5559. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5560. checkJson: [{ checkCount: [], checkPerent: [] }],
  5561. homeworkList: [],
  5562. },
  5563. ],
  5564. checkUnitIndex: 0,
  5565. isdrag: "",
  5566. evaIndex: "",
  5567. evatIndex: "",
  5568. evaBoxDialog: false,
  5569. EnglishVoiceDialog: false,
  5570. englishVoiceJson: {},
  5571. cetIndex: "",
  5572. cettIndex: "",
  5573. cetBoxDialog: false,
  5574. templateName: "",
  5575. setTypeJson: {
  5576. one: "",
  5577. two: "",
  5578. },
  5579. twoJson: [],
  5580. oneJson: [],
  5581. updateKey: 1,
  5582. isOutline: false,
  5583. isOutline2: false,
  5584. infoData: [],
  5585. infoproVisible: false,
  5586. infoisFinishSize: 0,
  5587. infoisAllSize: 0,
  5588. infoprogress: 0,
  5589. taskDetailLoading: [],
  5590. ttaskDetailLoading: [],
  5591. taskDetailLoading2: [],
  5592. ttaskDetailLoading2: [],
  5593. taskDetailLoading3: [],
  5594. ttaskDetailLoading3: [],
  5595. taskDetailLoading4: [],
  5596. taskDetailLoading5: [],
  5597. ttaskDetailLoading5: [],
  5598. dArray: {},
  5599. dialogVisibleAiD: false,
  5600. aitype: "",
  5601. aiJson: {
  5602. "aiDetail": "请根据<课程简要描述>设计一个名为<课程名字>的<课程学科>学科的,面向<面向年级>的项目式学习课程。",
  5603. "aiOutline": "请为这个名为<课程名字>的<课程学科>学科的,面向<面向年级>学生的项目式学习课程设计序列教学活动(需要每个任务都需要至少100个token的详细描述)。你需要参考课程简要描述<课程简要描述>,并产出每个教学任务的设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。",
  5604. "aiTask": "请根据<教学任务教案>。",
  5605. "aiDetail1": "请根据<课程描述>,重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准。",
  5606. "aiDetail2": "请你在考虑到整个课程的情况下,优化该任务描述和任务名:<任务名>:<任务描述>",
  5607. "aiDetail3": "请你在考虑到整个课程的情况下,**重点考虑该任务及工具名和工具内容的情况下**,优化工具指引。",
  5608. "aiDetail4": "请你在考虑到整个课程的情况下,**重点考虑该任务详情**以及工具的情况下,优化评价标准。",
  5609. "aiTeacher": "请根据<任务大纲>为每个教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含实例答案。",
  5610. "teacherDetail": "请根据<任务大纲>,以及# 其他教学任务教案,为本教学任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动),相关知识点的讲解,练习(练习需要包含实例答案。注意,你绝对不能重复其他教学任务教案中的内容"
  5611. },
  5612. aiText: "",
  5613. aiCallBack: "",
  5614. aiIndex: "",
  5615. clickType: 1,
  5616. promptShow: false,
  5617. templateid: this.$route.query.templateid != undefined ? this.$route.query.templateid : "",
  5618. istemplate: this.$route.query.istemplate != undefined && this.$route.query.istemplate ? 1 : 2,
  5619. dialogVisibleTips: false,
  5620. tipsJson: {},
  5621. cpote:{
  5622. cpote1: '',
  5623. cpote2: '',
  5624. cpote3: '',
  5625. cpote4: '',
  5626. },
  5627. cpoteLoading:{
  5628. cpote1: false,
  5629. cpote2: false,
  5630. cpote3: false,
  5631. cpote4: false,
  5632. },
  5633. cpotetLoading:{
  5634. cpote1: false,
  5635. cpote2: false,
  5636. cpote3: false,
  5637. cpote4: false,
  5638. },
  5639. cpoteType: 0,
  5640. dialogVisibleAiCreate: false,
  5641. dialogVisibleAiCreateVideo: false,
  5642. teacherText: [],
  5643. isFileSearch: true,
  5644. fileIds: ['file-A81p1q02HHpJhus4nYYwtAmM'],
  5645. 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'],
  5646. courseJie:1,
  5647. courseTime:45,
  5648. };
  5649. },
  5650. directives: {
  5651. autoHeight: {
  5652. update(el, binding) {
  5653. const { value } = binding;
  5654. if (value && typeof value === "number") {
  5655. el.style.height = `${value}px`;
  5656. } else {
  5657. el.style.height = "auto";
  5658. }
  5659. },
  5660. componentUpdated(el) {
  5661. el.style.height = `${el.scrollHeight + 25}px`;
  5662. },
  5663. },
  5664. },
  5665. computed: {
  5666. // rightBoxHeight: function () {
  5667. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5668. // },
  5669. offsetLetfPx: function () {
  5670. //addnum可以直接在模板语法里面用,相当于data内的值
  5671. return (
  5672. $(".cru_select")[this.unitIndex] &&
  5673. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5674. );
  5675. },
  5676. getMan2() {
  5677. return function (people) {
  5678. let _people = people;
  5679. let _people2 = "";
  5680. if (this.ManAarray.length) {
  5681. for (var i = 0; i < this.ManAarray.length; i++) {
  5682. if (this.ManAarray[i].userid == people) {
  5683. _people2 = this.ManAarray[i].name;
  5684. break;
  5685. }
  5686. }
  5687. }
  5688. if (people == this.courseUserid) {
  5689. return "";
  5690. }
  5691. return this.ManAarray.length ? _people2 : "";
  5692. };
  5693. },
  5694. getListMan2() {
  5695. return function (list) {
  5696. let _people2 = [];
  5697. if (this.ManAarray.length) {
  5698. for (var j = 0; j < list.length; j++) {
  5699. let people = list[j];
  5700. for (var i = 0; i < this.ManAarray.length; i++) {
  5701. if (
  5702. this.ManAarray[i].userid == people &&
  5703. people != this.courseUserid
  5704. ) {
  5705. _people2.push(this.ManAarray[i].name);
  5706. break;
  5707. }
  5708. }
  5709. }
  5710. }
  5711. return this.ManAarray.length ? _people2.join("、") : "";
  5712. };
  5713. },
  5714. isInvite() {
  5715. return function (cid) {
  5716. let array = [];
  5717. for (var i = 0; i < this.inviteCode.length; i++) {
  5718. array.push(this.inviteCode[i].cid);
  5719. }
  5720. return array.indexOf(cid) != -1;
  5721. };
  5722. },
  5723. getInviteCodeC() {
  5724. return function (cid) {
  5725. let array = [];
  5726. for (var i = 0; i < this.inviteCode.length; i++) {
  5727. array.push(this.inviteCode[i].cid);
  5728. }
  5729. return this.inviteCode[array.indexOf(cid)].ic;
  5730. };
  5731. },
  5732. getClassC() {
  5733. return function (c) {
  5734. let _c2 = "";
  5735. if (this.grade.length) {
  5736. for (var i = 0; i < this.grade.length; i++) {
  5737. if (this.grade[i].id == c) {
  5738. _c2 = this.grade[i].name;
  5739. break;
  5740. }
  5741. }
  5742. }
  5743. return this.grade.length ? _c2 : "";
  5744. };
  5745. },
  5746. getListClassC() {
  5747. return function (list) {
  5748. let _c2 = [];
  5749. if (this.grade.length) {
  5750. for (var j = 0; j < list.length; j++) {
  5751. let c = list[j];
  5752. for (var i = 0; i < this.grade.length; i++) {
  5753. if (this.grade[i].id == c) {
  5754. _c2.push(this.grade[i].name);
  5755. break;
  5756. }
  5757. }
  5758. }
  5759. }
  5760. return this.grade.length ? _c2.join("、") : "";
  5761. };
  5762. },
  5763. MarkdownT() {
  5764. return function (c) {
  5765. let md = new MarkdownIt();
  5766. return c
  5767. ? md.render(c) : "";
  5768. };
  5769. },
  5770. },
  5771. watch: {
  5772. unitIndex(newValue, oldValue) {
  5773. // return;
  5774. if (this.isDelete == 2) {
  5775. this.isDelete = 1;
  5776. return;
  5777. }
  5778. if (this.cid != "") {
  5779. let _unitIndex = oldValue;
  5780. if (
  5781. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5782. JSON.stringify(this.unitJson[_unitIndex])
  5783. ) {
  5784. this.$refs.rightboxR.scrollTop = 0;
  5785. return;
  5786. }
  5787. let cPan = 1;
  5788. for (
  5789. var j = 0;
  5790. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5791. j++
  5792. ) {
  5793. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5794. j
  5795. ].proVisible = false;
  5796. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5797. j
  5798. ].proVisible2 = false;
  5799. if (
  5800. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5801. .length > 1
  5802. ) {
  5803. for (
  5804. var z = 0;
  5805. z <
  5806. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5807. .length;
  5808. z++
  5809. ) {
  5810. if (
  5811. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5812. .toolChoose[z].tool.length
  5813. ) {
  5814. this.$message.error("请把工具添加完整");
  5815. cPan = 2;
  5816. break;
  5817. }
  5818. }
  5819. }
  5820. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5821. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5822. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5823. (ele) => {
  5824. return ele.value != "";
  5825. }
  5826. );
  5827. }
  5828. }
  5829. if (cPan == 2) {
  5830. this.unitIndex = oldValue;
  5831. return;
  5832. }
  5833. for (var i = 0; i < this.unitJson.length; i++) {
  5834. if (this.addindex != i) {
  5835. delete this.unitJson[i].isUpdate;
  5836. }
  5837. }
  5838. this.$refs.rightboxR.scrollTop = 0;
  5839. this.addindex = -1;
  5840. let params = [
  5841. {
  5842. cid: this.cid,
  5843. chapters: JSON.stringify(this.unitJson),
  5844. uid: this.userid,
  5845. unitIndex: _unitIndex,
  5846. },
  5847. ];
  5848. this.ajax
  5849. .post(this.$store.state.api + "updateWorkNew4", params)
  5850. .then((res) => {
  5851. // this.$message({
  5852. // message: "修改成功",
  5853. // type: "success",
  5854. // });
  5855. // this.courseId = this.cid;
  5856. this.addtips()
  5857. })
  5858. .catch((err) => {
  5859. this.$message.error("网络不佳");
  5860. console.error(err);
  5861. });
  5862. }
  5863. },
  5864. steps(newValue, old) {
  5865. if (newValue == 4) {
  5866. let cPan = 1;
  5867. for (var i = 0; i < this.unitJson.length; i++) {
  5868. for (
  5869. var j = 0;
  5870. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5871. j++
  5872. ) {
  5873. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5874. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5875. if (
  5876. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5877. ) {
  5878. for (
  5879. var z = 0;
  5880. z <
  5881. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5882. z++
  5883. ) {
  5884. if (
  5885. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5886. .tool.length
  5887. ) {
  5888. this.$message.error("请把工具添加完整");
  5889. cPan = 2;
  5890. break;
  5891. }
  5892. }
  5893. }
  5894. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5895. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5896. i
  5897. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5898. return ele.value != "";
  5899. });
  5900. }
  5901. }
  5902. }
  5903. this.inputShow = true;
  5904. if (cPan == 2) {
  5905. this.steps = old;
  5906. return;
  5907. }
  5908. this.goTo(
  5909. "/course?userid=" +
  5910. this.userid +
  5911. "&oid=" +
  5912. this.oid +
  5913. "&org=" +
  5914. this.org +
  5915. "&role=" +
  5916. this.role
  5917. );
  5918. }
  5919. },
  5920. },
  5921. methods: {
  5922. tableRowClassName({ row, rowIndex }) {
  5923. if ((rowIndex + 1) % 2 === 0) {
  5924. return "even_row";
  5925. } else {
  5926. return "";
  5927. }
  5928. },
  5929. close() {
  5930. this.cetIndex = "";
  5931. this.cettIndex = "";
  5932. this.templateName = "";
  5933. this.cetBoxDialog = false;
  5934. },
  5935. openAI() {
  5936. top.postMessage({ tools: "64" }, "*");
  5937. },
  5938. setMan() {
  5939. // let teacherJuri = this.teacherJuri2;
  5940. this.ManAarray = [];
  5941. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5942. if (_user.indexOf(this.userid) == -1) {
  5943. _user.push(this.userid);
  5944. }
  5945. if (_user.indexOf(this.courseUserid) == -1) {
  5946. _user.push(this.courseUserid);
  5947. }
  5948. let params = {
  5949. uid: _user.join(","),
  5950. };
  5951. this.ajax
  5952. .get(this.$store.state.api + "getAllUserById", params)
  5953. .then((res) => {
  5954. let teacherJuri = res.data[0];
  5955. this.ManAarray = teacherJuri;
  5956. })
  5957. .catch((err) => {
  5958. console.error(err);
  5959. });
  5960. },
  5961. previewImg(url) {
  5962. this.$hevueImgPreview(url);
  5963. },
  5964. btnDisplay(bool) {
  5965. this.isBtnDisplay = bool;
  5966. },
  5967. stepDisplay(bool) {
  5968. this.isStepDisplay = bool;
  5969. },
  5970. scrollChange() {
  5971. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5972. },
  5973. addHw(e) {
  5974. var el = e.currentTarget;
  5975. el.getElementsByTagName("input")[0].click();
  5976. },
  5977. change(val) {
  5978. if (this.dialogVisible1) {
  5979. this.tdetail = val;
  5980. } else if (this.dialogVisible6) {
  5981. this.AttText.text = val;
  5982. } else if (this.dialogVisible2) {
  5983. this.cTemplate = val;
  5984. } else if (this.dialogVisibleTable) {
  5985. this.tableJson.text = val;
  5986. }
  5987. this.$forceUpdate();
  5988. console.log(val);
  5989. },
  5990. change2(val) {
  5991. console.log(val);
  5992. this.$forceUpdate();
  5993. },
  5994. handleClose(done) {
  5995. done();
  5996. },
  5997. closePan(tool) {
  5998. if (tool == 15) {
  5999. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  6000. this.dialogVisible8 = false;
  6001. } else {
  6002. this.closeConfirm(tool);
  6003. }
  6004. } else if (tool == 4) {
  6005. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  6006. this.dialogVisible5 = false;
  6007. } else {
  6008. this.closeConfirm(tool);
  6009. }
  6010. } else if (tool == 45) {
  6011. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  6012. this.dialogVisibleChoice = false;
  6013. } else {
  6014. this.closeConfirm(tool);
  6015. }
  6016. } else if (tool == 41) {
  6017. if (
  6018. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  6019. ) {
  6020. this.dialogVisibleSelect = false;
  6021. } else {
  6022. this.closeConfirm(tool);
  6023. }
  6024. } else if (tool == 47) {
  6025. if (
  6026. JSON.stringify(this.sentenceList) ==
  6027. JSON.stringify(this.sentenceList2)
  6028. ) {
  6029. this.dialogVisibleSentence = false;
  6030. } else {
  6031. this.closeConfirm(tool);
  6032. }
  6033. } else if (tool == 69) {
  6034. if (
  6035. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  6036. ) {
  6037. this.englishDialogVisible = false;
  6038. } else {
  6039. this.closeConfirm(tool);
  6040. }
  6041. }
  6042. },
  6043. closeConfirm(tool) {
  6044. this.$confirm("是否保存已编辑内容?", "提示", {
  6045. confirmButtonText: "保存",
  6046. cancelButtonText: "不保存",
  6047. type: "warning",
  6048. })
  6049. .then(() => {
  6050. if (tool == 15) {
  6051. this.addAnswer();
  6052. } else if (tool == 4) {
  6053. this.addAsk();
  6054. } else if (tool == 45) {
  6055. this.addTest();
  6056. } else if (tool == 41) {
  6057. this.addSelectAnswer();
  6058. } else if (tool == 47) {
  6059. this.addSentenceTool();
  6060. } else if (tool == 69) {
  6061. this.addEnglish();
  6062. }
  6063. })
  6064. .catch(() => {
  6065. if (tool == 15) {
  6066. this.dialogVisible8 = false;
  6067. } else if (tool == 4) {
  6068. this.dialogVisible5 = false;
  6069. } else if (tool == 45) {
  6070. this.dialogVisibleChoice = false;
  6071. } else if (tool == 41) {
  6072. this.dialogVisibleSelect = false;
  6073. } else if (tool == 47) {
  6074. this.dialogVisibleSentence = false;
  6075. } else if (tool == 69) {
  6076. this.englishDialogVisible = false;
  6077. }
  6078. });
  6079. },
  6080. addEnglish(jsonType) {
  6081. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  6082. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  6083. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  6084. if (
  6085. this.englishList.engTitle == "" ||
  6086. this.englishList.englishText == ""
  6087. ) {
  6088. this.$message.error("请将内容填写完整!");
  6089. return;
  6090. }
  6091. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6092. this.taskCount
  6093. ].toolChoose[this.toolIndex].englishList = this.englishList;
  6094. this.englishList = {};
  6095. if (jsonType && jsonType == 1) {
  6096. this.englishDialogVisible = true;
  6097. } else {
  6098. this.englishDialogVisible = false;
  6099. }
  6100. if (
  6101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6102. .toolChoose[this.toolIndex].tool != 69
  6103. ) {
  6104. this.addTools(69, this.taskCount, this.toolIndex);
  6105. }
  6106. },
  6107. imgChange2(i, j) {
  6108. var _tmp = this.testJson.testJson[i].checkList[j];
  6109. this.noneBtnImg = _tmp.length >= 1;
  6110. },
  6111. imgChange3(i) {
  6112. var _tmp = this.testJson.testJson[i];
  6113. this.noneBtnImg = _tmp.length >= 1;
  6114. },
  6115. imgChange1(file, fileList, type, itemTaskIndex) {
  6116. if (type == 1) {
  6117. var _tmp = this.cover;
  6118. } else if (
  6119. type == 2 ||
  6120. type == 3 ||
  6121. type == 6 ||
  6122. type == 7 ||
  6123. type == 8
  6124. ) {
  6125. var _tmp =
  6126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6127. .chapterData;
  6128. } else if (type == 4) {
  6129. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  6130. } else {
  6131. var _tmp =
  6132. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6133. .homeworkList;
  6134. }
  6135. this.noneBtnImg = _tmp.length >= 1;
  6136. },
  6137. goTo(path) {
  6138. this.$router.push(path);
  6139. },
  6140. guid() {
  6141. var _num,
  6142. i,
  6143. _guid = "";
  6144. for (i = 0; i < 32; i++) {
  6145. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6146. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6147. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6148. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6149. _guid += "-";
  6150. }
  6151. }
  6152. return _guid;
  6153. },
  6154. retrunCourse() {
  6155. if(this.istemplate == 1){
  6156. this.goTo(
  6157. "/course?userid=" +
  6158. this.userid +
  6159. "&oid=" +
  6160. this.oid +
  6161. "&org=" +
  6162. this.org +
  6163. "&role=" +
  6164. this.role
  6165. );
  6166. return
  6167. }
  6168. this.$confirm("是否保存已编辑内容?", "提示", {
  6169. confirmButtonText: "保存",
  6170. cancelButtonText: "不保存",
  6171. distinguishCancelAndClose: true,
  6172. type: "warning",
  6173. })
  6174. .then(() => {
  6175. if (this.cid == "" || this.cid == undefined) {
  6176. if (this.courseName == "") {
  6177. this.$message.error("请补充填写课程名称");
  6178. return;
  6179. } else {
  6180. this.addWork();
  6181. }
  6182. this.steps = 4;
  6183. } else {
  6184. if (this.courseName == "") {
  6185. this.$message.error("请补充填写课程名称");
  6186. return;
  6187. } else {
  6188. if (this.userid != this.courseUserid && this.role != "1") {
  6189. this.updateWork2();
  6190. } else {
  6191. this.updateWork();
  6192. }
  6193. this.steps = 4;
  6194. }
  6195. }
  6196. })
  6197. .catch((v) => {
  6198. console.log(v);
  6199. if (v == "cancel") {
  6200. this.goTo(
  6201. "/course?userid=" +
  6202. this.userid +
  6203. "&oid=" +
  6204. this.oid +
  6205. "&org=" +
  6206. this.org +
  6207. "&role=" +
  6208. this.role
  6209. );
  6210. }
  6211. });
  6212. },
  6213. lastSteps() {
  6214. if (this.steps == 4) {
  6215. this.goTo(
  6216. "/course?userid=" +
  6217. this.userid +
  6218. "&oid=" +
  6219. this.oid +
  6220. "&org=" +
  6221. this.org +
  6222. "&role=" +
  6223. this.role
  6224. );
  6225. } else {
  6226. // if (this.cidType == 0) {
  6227. // this.steps--;
  6228. // if (this.steps == 1) {
  6229. // setTimeout(() => {
  6230. // this.checkEva(this.checkId);
  6231. // setTimeout(() => {
  6232. // this.checkEva(this.checkId);
  6233. // }, 100);
  6234. // }, 100);
  6235. // }
  6236. // } else {
  6237. if (this.steps == 3) {
  6238. this.steps = 1;
  6239. setTimeout(() => {
  6240. this.checkEva(this.checkId);
  6241. setTimeout(() => {
  6242. this.checkEva(this.checkId);
  6243. }, 100);
  6244. }, 100);
  6245. }
  6246. // }
  6247. }
  6248. },
  6249. navSteps(s) {
  6250. if (this.courseName == "") {
  6251. this.$message.error("请补充填写课程名称");
  6252. return;
  6253. }
  6254. if (this.cidType == 0) {
  6255. if (this.steps == 1) {
  6256. if (this.cid == "" || this.cid == undefined) {
  6257. this.addWork();
  6258. } else {
  6259. if (this.userid != this.courseUserid && this.role != "1") {
  6260. this.updateWork2();
  6261. } else {
  6262. this.updateWork();
  6263. }
  6264. }
  6265. }
  6266. if (s == 1) {
  6267. this.steps = 1;
  6268. setTimeout(() => {
  6269. this.checkEva(this.checkId);
  6270. setTimeout(() => {
  6271. this.checkEva(this.checkId);
  6272. }, 100);
  6273. }, 100);
  6274. }
  6275. if (s == 2) {
  6276. this.steps = 2;
  6277. }
  6278. if (s == 3) {
  6279. this.cTemplate = this.templateC.content;
  6280. this.dialogVisible2 = false;
  6281. this.steps = 3;
  6282. this.isClickColor = 1;
  6283. this.unitJson[
  6284. this.unitIndex
  6285. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6286. this.$forceUpdate();
  6287. setTimeout(() => {
  6288. this.checkEva(this.checkId);
  6289. setTimeout(() => {
  6290. this.checkEva(this.checkId);
  6291. }, 100);
  6292. }, 1000);
  6293. }
  6294. } else {
  6295. if (this.steps == 1) {
  6296. if (this.cid == "" || this.cid == undefined) {
  6297. this.addWork();
  6298. } else {
  6299. if (this.userid != this.courseUserid && this.role != "1") {
  6300. this.updateWork2();
  6301. } else {
  6302. this.updateWork();
  6303. }
  6304. }
  6305. }
  6306. if (s == 1) {
  6307. this.steps = 1;
  6308. setTimeout(() => {
  6309. this.checkEva(this.checkId);
  6310. setTimeout(() => {
  6311. this.checkEva(this.checkId);
  6312. }, 100);
  6313. }, 100);
  6314. }
  6315. if (s == 3) {
  6316. this.cTemplate = this.templateC.content;
  6317. this.dialogVisible2 = false;
  6318. this.steps = 3;
  6319. this.isClickColor = 1;
  6320. this.unitJson[
  6321. this.unitIndex
  6322. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6323. this.$forceUpdate();
  6324. setTimeout(() => {
  6325. this.checkEva(this.checkId);
  6326. setTimeout(() => {
  6327. this.checkEva(this.checkId);
  6328. }, 100);
  6329. }, 1000);
  6330. }
  6331. }
  6332. this.$refs.stepBox.scrollTop = 0;
  6333. },
  6334. nextSteps(clickType) {
  6335. // if (this.cidType == 1) {
  6336. if (this.steps == 1) {
  6337. if (this.courseName != "") {
  6338. if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
  6339. this.openAiDialog(clickType, 'aiOutline')
  6340. return;
  6341. }
  6342. if(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && this.cpoteType != 4){
  6343. let _type = ''
  6344. if(this.cpoteType == 0){
  6345. _type = 'aiCpote1'
  6346. }else if(this.cpoteType == 1){
  6347. _type = 'aiCpote2'
  6348. }else if(this.cpoteType == 2){
  6349. _type = 'aiCpote3'
  6350. }else if(this.cpoteType == 3){
  6351. _type = 'aiCpote4'
  6352. }
  6353. this.cpoteType++
  6354. this.openAiDialog(clickType, _type)
  6355. return;
  6356. }
  6357. if (!this.isOutline2) {
  6358. this.openAiDialog(clickType, 'aiTeacher')
  6359. return;
  6360. }
  6361. const functionA = () => {
  6362. setTimeout(() => {
  6363. this.loading = false
  6364. this.steps = 3;
  6365. }, 0)
  6366. this.isClickColor = 1;
  6367. this.unitJson[
  6368. this.unitIndex
  6369. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6370. this.$forceUpdate();
  6371. setTimeout(() => {
  6372. this.checkEva(this.checkId);
  6373. setTimeout(() => {
  6374. this.checkEva(this.checkId);
  6375. }, 100);
  6376. }, 1000);
  6377. if (this.cid == "" || this.cid == undefined) {
  6378. this.addWork();
  6379. } else {
  6380. if (this.userid != this.courseUserid && this.role != "1") {
  6381. this.updateWork2();
  6382. } else {
  6383. this.updateWork();
  6384. }
  6385. }
  6386. }
  6387. if (this.cid) {
  6388. this.loading = true
  6389. functionA()
  6390. } else {
  6391. this.openAiDialog(clickType, "aiTask", functionA)
  6392. }
  6393. } else {
  6394. this.$message.error("请补充填写课程名称");
  6395. return;
  6396. }
  6397. } else if (this.steps == 3) {
  6398. if (this.cid == "" || this.cid == undefined) {
  6399. if (this.courseName == "") {
  6400. this.$message.error("请补充填写课程名称");
  6401. return;
  6402. } else {
  6403. this.addWork();
  6404. this.steps++;
  6405. }
  6406. } else {
  6407. if (this.courseName == "") {
  6408. this.$message.error("请补充填写课程名称");
  6409. return;
  6410. } else {
  6411. if (this.userid != this.courseUserid && this.role != "1") {
  6412. this.updateWork2();
  6413. } else {
  6414. this.updateWork();
  6415. }
  6416. this.steps++;
  6417. }
  6418. }
  6419. }
  6420. // } else {
  6421. // if (this.steps == 1) {
  6422. // if (this.courseName != "") {
  6423. // if (this.cid == "" || this.cid == undefined) {
  6424. // this.addWork();
  6425. // } else {
  6426. // if (this.userid != this.courseUserid && this.role != "1") {
  6427. // // this.updateWork2();
  6428. // } else {
  6429. // this.updateWork();
  6430. // }
  6431. // }
  6432. // this.steps++;
  6433. // } else {
  6434. // this.$message.error("请补充填写课程名称");
  6435. // return;
  6436. // }
  6437. // } else if (this.steps == 2) {
  6438. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6439. // this.cTemplate = this.templateC.content;
  6440. // }
  6441. // this.dialogVisible2 = false;
  6442. // this.steps++;
  6443. // setTimeout(() => {
  6444. // this.checkEva(this.checkId);
  6445. // setTimeout(() => {
  6446. // this.checkEva(this.checkId);
  6447. // }, 100);
  6448. // }, 1000);
  6449. // } else if (this.steps == 3) {
  6450. // if (this.cid == "" || this.cid == undefined) {
  6451. // if (this.courseName == "") {
  6452. // this.$message.error("请补充填写课程名称");
  6453. // return;
  6454. // } else {
  6455. // this.addWork();
  6456. // this.steps++;
  6457. // }
  6458. // } else {
  6459. // if (this.courseName == "") {
  6460. // this.$message.error("请补充填写课程名称");
  6461. // return;
  6462. // } else {
  6463. // if (this.userid != this.courseUserid && this.role != "1") {
  6464. // this.updateWork2();
  6465. // } else {
  6466. // this.updateWork();
  6467. // }
  6468. // this.steps++;
  6469. // }
  6470. // }
  6471. // }
  6472. // }
  6473. this.$refs.stepBox.scrollTop = 0;
  6474. },
  6475. unitSet(i) {
  6476. if (this.unitIndex == i) {
  6477. return;
  6478. }
  6479. this.unitIndex = i;
  6480. this.isClickColor = 1;
  6481. // this.$refs.rightboxR.scrollTop = 0;
  6482. this.$refs.unitBox.scrollTop = 0;
  6483. },
  6484. panUnitJson() {
  6485. let _unitIndex = this.unitIndex;
  6486. let cPan = 1;
  6487. for (
  6488. var j = 0;
  6489. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6490. j++
  6491. ) {
  6492. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6493. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6494. j
  6495. ].proVisible2 = false;
  6496. if (
  6497. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6498. .length > 1
  6499. ) {
  6500. for (
  6501. var z = 0;
  6502. z <
  6503. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6504. .length;
  6505. z++
  6506. ) {
  6507. if (
  6508. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6509. z
  6510. ].tool.length
  6511. ) {
  6512. this.$message.error("请把工具添加完整");
  6513. cPan = 2;
  6514. break;
  6515. }
  6516. }
  6517. }
  6518. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6519. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6520. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6521. (ele) => {
  6522. return ele.value != "";
  6523. }
  6524. );
  6525. }
  6526. }
  6527. return cPan;
  6528. },
  6529. unitOpen(i) {
  6530. if (this.unitJson[i].toolOpen) {
  6531. this.unitJson[i].toolOpen = false;
  6532. } else {
  6533. this.unitJson[i].toolOpen = true;
  6534. }
  6535. this.updateWork();
  6536. this.$forceUpdate();
  6537. },
  6538. unitSet2(i) {
  6539. if (this.panUnitJson() == 2) {
  6540. return;
  6541. }
  6542. // if(this.unitJson[i].toolOpen){
  6543. // this.unitJson[i].toolOpen = false
  6544. // this.updateWork()
  6545. // this.$forceUpdate()
  6546. // return
  6547. // }else {
  6548. this.unitJson[i].toolOpen = true;
  6549. // }
  6550. this.$forceUpdate();
  6551. if (this.unitIndex == i) {
  6552. return;
  6553. }
  6554. this.unitIndex = i;
  6555. this.isClickColor = 1;
  6556. // this.$refs.rightboxR.scrollTop = 0;
  6557. this.$refs.unitBox.scrollTop = 0;
  6558. },
  6559. updateCourseState(i) {
  6560. let params = [
  6561. {
  6562. cid: this.cid,
  6563. state: i,
  6564. },
  6565. ];
  6566. this.ajax
  6567. .post(this.$store.state.api + "updateCourseMode", params)
  6568. .then((res) => {
  6569. this.courseState = i;
  6570. })
  6571. .catch((err) => {
  6572. this.$message.error("网络不佳");
  6573. console.error(err);
  6574. });
  6575. },
  6576. addtips(){
  6577. let params = [
  6578. {
  6579. cid: this.cid,
  6580. tips: JSON.stringify(this.aiJson),
  6581. tid: this.templateid
  6582. },
  6583. ];
  6584. this.ajax
  6585. .post(this.$store.state.api + "addTips", params)
  6586. .then((res) => {
  6587. })
  6588. .catch((err) => {
  6589. this.$message.error("网络不佳");
  6590. console.error(err);
  6591. });
  6592. },
  6593. openSaveTips(){
  6594. this.dialogVisibleTips = true
  6595. },
  6596. time() {
  6597. if (!this.now) {
  6598. this.now = new Date().getTime();
  6599. return true;
  6600. } else {
  6601. let time = new Date().getTime();
  6602. if (time - this.now > 3000) {
  6603. this.now = time;
  6604. return true;
  6605. } else {
  6606. return false;
  6607. }
  6608. }
  6609. },
  6610. deleteUnit(i) {
  6611. var _this = this;
  6612. if (i == 0 && _this.unitJson.length == 1) {
  6613. _this
  6614. .$confirm("确定切换成任务模式吗?", "提示", {
  6615. confirmButtonText: "确定",
  6616. cancelButtonText: "取消",
  6617. type: "warning",
  6618. })
  6619. .then(() => {
  6620. _this.unitJson[i].dyName = "";
  6621. // _this.updateCourseState(2);
  6622. })
  6623. .catch(() => {
  6624. return;
  6625. });
  6626. } else {
  6627. _this
  6628. .$confirm("确定删除此阶段吗?", "提示", {
  6629. confirmButtonText: "确定",
  6630. cancelButtonText: "取消",
  6631. type: "warning",
  6632. })
  6633. .then(() => {
  6634. _this.isDelete = 2;
  6635. // _this.unitIndex = _this.unitIndex - 1;
  6636. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6637. // _this.$message.success("删除成功");
  6638. })
  6639. .catch(() => {
  6640. return;
  6641. });
  6642. }
  6643. },
  6644. deleteWork(chapid) {
  6645. let params = [
  6646. {
  6647. cid: this.cid,
  6648. chapters: JSON.stringify(this.unitJson),
  6649. uid: this.userid,
  6650. chapid: chapid,
  6651. },
  6652. ];
  6653. this.ajax
  6654. .post(this.$store.state.api + "deleteWork", params)
  6655. .then((res) => {
  6656. this.$message({
  6657. message: "删除成功",
  6658. type: "success",
  6659. });
  6660. let task = JSON.parse(
  6661. JSON.stringify(
  6662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6663. )
  6664. );
  6665. this.unitJson.splice(this.unitIndex, 1);
  6666. if (this.unitIndex == 0) {
  6667. this.unitIndex = 0;
  6668. } else {
  6669. this.unitIndex = this.unitIndex - 1;
  6670. }
  6671. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6672. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6673. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6674. ...task,
  6675. ];
  6676. }
  6677. })
  6678. .catch((err) => {
  6679. this.$message.error("网络不佳");
  6680. console.error(err);
  6681. });
  6682. },
  6683. deleteTool(itemTaskIndex, i) {
  6684. var _this = this;
  6685. if (_this.time()) {
  6686. _this
  6687. .$confirm("确定删除此工具吗?", "提示", {
  6688. confirmButtonText: "确定",
  6689. cancelButtonText: "取消",
  6690. type: "warning",
  6691. })
  6692. .then(() => {
  6693. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6694. itemTaskIndex
  6695. ].toolChoose.splice(i, 1);
  6696. _this.$message.success("删除成功");
  6697. })
  6698. .catch(() => {
  6699. return;
  6700. });
  6701. }
  6702. },
  6703. deleteSentence(i) {
  6704. var _this = this;
  6705. _this
  6706. .$confirm("确定删除此题目吗?", "提示", {
  6707. confirmButtonText: "确定",
  6708. cancelButtonText: "取消",
  6709. type: "warning",
  6710. })
  6711. .then(() => {
  6712. _this.sentenceList.splice(i, 1);
  6713. _this.$message.success("删除成功");
  6714. })
  6715. .catch(() => {
  6716. return;
  6717. });
  6718. },
  6719. deleteS(s, i, j) {
  6720. this.sentenceList[i].addSentence.splice(j, 1);
  6721. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6722. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6723. this.sentenceList[i].rightAnswer.splice(a, 1);
  6724. }
  6725. },
  6726. openT() {
  6727. top.postMessage({ tools: "25" }, "*");
  6728. },
  6729. deleteTask(i) {
  6730. var _this = this;
  6731. if (_this.time()) {
  6732. _this
  6733. .$confirm(
  6734. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6735. 1 ==
  6736. i
  6737. ? "确定删除此任务吗?"
  6738. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6739. "提示",
  6740. {
  6741. confirmButtonText: "确定",
  6742. cancelButtonText: "取消",
  6743. type: "warning",
  6744. }
  6745. )
  6746. .then(() => {
  6747. if (i == 0) {
  6748. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6749. i + 1
  6750. ].chapterData = JSON.parse(
  6751. JSON.stringify(
  6752. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6753. .chapterData
  6754. )
  6755. );
  6756. }
  6757. _this.$forceUpdate();
  6758. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6759. i,
  6760. 1
  6761. );
  6762. _this.$message.success("删除成功");
  6763. })
  6764. .catch(() => {
  6765. return;
  6766. });
  6767. }
  6768. },
  6769. handlePictureCardPreview(file) {
  6770. this.dialogImageUrl = file.url;
  6771. },
  6772. clean(i, c) {
  6773. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6774. },
  6775. handle_remove1(file, fileList, type) {
  6776. var _tmp = this.cover;
  6777. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6778. // if (_tmp[i].uid == file.uid) {
  6779. // _tmp.splice(i, 1);
  6780. // break;
  6781. // }
  6782. // this.cover = _tmp;
  6783. // }
  6784. this.cover = [];
  6785. this.noneBtnImg = this.cover.length >= 1;
  6786. this.isSysPic = false;
  6787. this.isSysPic2 = false;
  6788. this.$forceUpdate();
  6789. },
  6790. addImg(e) {
  6791. var el = e.currentTarget;
  6792. el.getElementsByTagName("input")[0].click();
  6793. e.target.value = "";
  6794. },
  6795. addChaptersTools(i) {
  6796. this.chapTools = [
  6797. {
  6798. tools: [],
  6799. toolDetail: "",
  6800. },
  6801. ];
  6802. this.chapCount = i;
  6803. this.dialogVisible4 = true;
  6804. },
  6805. isNoFinsh() {
  6806. this.$message.warning("功能正在开发中");
  6807. },
  6808. addAttText(i) {
  6809. this.AttText = {
  6810. title: "",
  6811. text: "",
  6812. };
  6813. this.taskCount = i;
  6814. this.AttTextType = 0;
  6815. this.$forceUpdate();
  6816. this.dialogVisible6 = true;
  6817. setTimeout(() => {
  6818. this.$refs["fuInput"].focus();
  6819. }, 100);
  6820. },
  6821. openLine(i) {
  6822. this.line = "";
  6823. this.lineCount = i;
  6824. this.lineType = 0;
  6825. this.$forceUpdate();
  6826. this.dialogVisible7 = true;
  6827. },
  6828. pasteLine(i) {
  6829. navigator.clipboard
  6830. .readText()
  6831. .then((v) => {
  6832. console.log("获取剪贴板成功:", v);
  6833. const html = v;
  6834. const regex = /src="(.*?)"/g;
  6835. const match = regex.exec(html);
  6836. if (match && match[1]) {
  6837. console.log(match[1]);
  6838. this.$message.success("粘贴成功");
  6839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6840. i
  6841. ].chapterData.push({
  6842. name: "链接",
  6843. title: "嵌入代码",
  6844. url: match[1],
  6845. type: 8,
  6846. });
  6847. } else {
  6848. // console.log("未找到包含 src 属性的 iframe");
  6849. this.$message.error(
  6850. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6851. );
  6852. }
  6853. })
  6854. .catch((v) => {
  6855. console.log("获取剪贴板失败: ", v);
  6856. });
  6857. },
  6858. openSource(i) {
  6859. this.lineCount = i;
  6860. this.sourceData = {};
  6861. this.dialogVisibleSource = true;
  6862. this.updateSourcePan = false;
  6863. },
  6864. openAiCreate(){
  6865. this.dialogVisibleAiCreate = true;
  6866. },
  6867. createAiPpt(json){
  6868. this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
  6869. this.dialogVisibleAiCreate = false;
  6870. },
  6871. openAiCreateVideo(){
  6872. this.dialogVisibleAiCreateVideo = true;
  6873. },
  6874. createAiVideo(json){
  6875. this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
  6876. // this.dialogVisibleAiCreateVideo = false;
  6877. },
  6878. async createTeacherAn(){
  6879. this.loading = true
  6880. let md = new MarkdownIt();
  6881. for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
  6882. let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
  6883. let name = _task.task+'-教案'
  6884. let _html = _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
  6885. await this.generate(name, _html, i)
  6886. }
  6887. },
  6888. async generate(a, html, index) {
  6889. // 将html文件中需要用到的数据挂载到store上
  6890. const content = `<!DOCTYPE html>
  6891. <html lang="en">
  6892. <head>
  6893. <meta charset="UTF-8">
  6894. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6895. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6896. <title>${a}</title>
  6897. <style>
  6898. </style>
  6899. </head>
  6900. <body>
  6901. ${html}
  6902. </body>
  6903. </html>`;
  6904. // debugger
  6905. let dname = a + ".doc";
  6906. // 创建文件流
  6907. // 创建bolb实例时,内容一定要放在[]中
  6908. const blob = new Blob([content], {
  6909. type: "text/plain;charset='utf-8'",
  6910. });
  6911. const file = new File([blob], dname, { type: 'application/msword' });
  6912. await this.beforeUploadHtml(file, index)
  6913. },
  6914. beforeUploadHtml(event, index) {
  6915. var file = event;
  6916. var credentials = {
  6917. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6918. secretAccessKey: "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",
  6919. }; //秘钥形式的登录上传
  6920. window.AWS.config.update(credentials);
  6921. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6922. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6923. var _this = this;
  6924. if (file) {
  6925. var params = {
  6926. Key:
  6927. file.name.split(".")[0] +
  6928. new Date().getTime() +
  6929. "." +
  6930. file.name.split(".")[file.name.split(".").length - 1],
  6931. ContentType: file.type,
  6932. Body: file,
  6933. "Access-Control-Allow-Credentials": "*",
  6934. ACL: "public-read",
  6935. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6936. var options = {
  6937. partSize: 2048 * 1024 * 1024,
  6938. queueSize: 2,
  6939. leavePartsOnError: true,
  6940. };
  6941. bucket
  6942. .upload(params, options)
  6943. .on("httpUploadProgress", function (evt) {
  6944. //这里可以写进度条
  6945. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6946. })
  6947. .send(function (err, data) {
  6948. if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1)){
  6949. _this.loading = false
  6950. }
  6951. if (err) {
  6952. _this.$message.error("上传失败");
  6953. } else {
  6954. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  6955.                   name: file.name,
  6956.                   url: data.Location,
  6957.                   type: 3,
  6958.                 })
  6959. console.log(data.Location);
  6960. }
  6961. });
  6962. }
  6963. },
  6964. addSource() {
  6965. if (!Object.keys(this.sourceData).length) {
  6966. this.$message.error("请选择要上传的资源");
  6967. return;
  6968. }
  6969. let keys = Object.keys(this.sourceData);
  6970. for (var i = 0; i < keys.length; i++) {
  6971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6972. this.lineCount
  6973. ].chapterData.push({
  6974. name: "链接",
  6975. title: this.sourceData[keys[i]].name,
  6976. url: this.sourceData[keys[i]].url,
  6977. type: 14,
  6978. id: keys[i],
  6979. });
  6980. }
  6981. this.$forceUpdate();
  6982. this.dialogVisibleSource = false;
  6983. },
  6984. updateSource() {
  6985. if (!Object.keys(this.sourceData).length) {
  6986. this.$message.error("请选择要上传的资源");
  6987. return;
  6988. }
  6989. let keys = Object.keys(this.sourceData);
  6990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6991. this.taskCount
  6992. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6994. this.taskCount
  6995. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6996. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6997. this.taskCount
  6998. ].chapterData[this.lineCount].id = keys[0];
  6999. this.updateSourcePan = false;
  7000. this.$forceUpdate();
  7001. this.dialogVisibleSource = false;
  7002. },
  7003. deleteM(i, j) {
  7004. this.testJson.testJson[i].timuList.splice(j, 1);
  7005. },
  7006. beforeUploadTiMu(event, i) {
  7007. const loading = this.openLoading();
  7008. var file = event.target.files[0];
  7009. var credentials = {
  7010. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7011. secretAccessKey: "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",
  7012. }; //秘钥形式的登录上传
  7013. window.AWS.config.update(credentials);
  7014. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7015. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7016. var _this = this;
  7017. if (file) {
  7018. var params = {
  7019. Key:
  7020. file.name.split(".")[0] +
  7021. new Date().getTime() +
  7022. "." +
  7023. file.name.split(".")[file.name.split(".").length - 1],
  7024. ContentType: file.type,
  7025. Body: file,
  7026. "Access-Control-Allow-Credentials": "*",
  7027. ACL: "public-read",
  7028. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7029. var options = {
  7030. partSize: 2048 * 1024 * 1024,
  7031. queueSize: 2,
  7032. leavePartsOnError: true,
  7033. };
  7034. bucket
  7035. .upload(params, options)
  7036. .on("httpUploadProgress", function (evt) {
  7037. //这里可以写进度条
  7038. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7039. })
  7040. .send(function (err, data) {
  7041. loading.close();
  7042. if (err) {
  7043. _this.$message.error("上传失败");
  7044. } else {
  7045. if (_this.testJson.testJson[i].timuList) {
  7046. _this.testJson.testJson[i].timuList.push({
  7047. src: data.Location,
  7048. });
  7049. } else {
  7050. _this.testJson.testJson[i].timuList = [];
  7051. _this.testJson.testJson[i].timuList.push({
  7052. src: data.Location,
  7053. });
  7054. }
  7055. _this.imgChange3(i);
  7056. _this.$forceUpdate();
  7057. }
  7058. });
  7059. }
  7060. },
  7061. beforeUploadTi(event, i, j) {
  7062. const loading = this.openLoading();
  7063. var file = event.target.files[0];
  7064. var credentials = {
  7065. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7066. secretAccessKey: "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",
  7067. }; //秘钥形式的登录上传
  7068. window.AWS.config.update(credentials);
  7069. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7070. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7071. var _this = this;
  7072. if (file) {
  7073. var params = {
  7074. Key:
  7075. file.name.split(".")[0] +
  7076. new Date().getTime() +
  7077. "." +
  7078. file.name.split(".")[file.name.split(".").length - 1],
  7079. ContentType: file.type,
  7080. Body: file,
  7081. "Access-Control-Allow-Credentials": "*",
  7082. ACL: "public-read",
  7083. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7084. var options = {
  7085. partSize: 2048 * 1024 * 1024,
  7086. queueSize: 2,
  7087. leavePartsOnError: true,
  7088. };
  7089. bucket
  7090. .upload(params, options)
  7091. .on("httpUploadProgress", function (evt) {
  7092. //这里可以写进度条
  7093. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7094. })
  7095. .send(function (err, data) {
  7096. loading.close();
  7097. if (err) {
  7098. _this.$message.error("上传失败");
  7099. } else {
  7100. _this.testJson.testJson[i].checkList[j] = {};
  7101. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7102. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7103. _this.imgChange2(i, j);
  7104. _this.$forceUpdate();
  7105. }
  7106. });
  7107. }
  7108. },
  7109. beforeUpload1(event, type) {
  7110. // const loading = this.openLoading();
  7111. var file = event.target.files[0];
  7112. var credentials = {
  7113. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7114. secretAccessKey: "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",
  7115. }; //秘钥形式的登录上传
  7116. window.AWS.config.update(credentials);
  7117. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7118. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7119. var _this = this;
  7120. if (file) {
  7121. var params = {
  7122. Key:
  7123. file.name.split(".")[0] +
  7124. new Date().getTime() +
  7125. "." +
  7126. file.name.split(".")[file.name.split(".").length - 1],
  7127. ContentType: file.type,
  7128. Body: file,
  7129. "Access-Control-Allow-Credentials": "*",
  7130. ACL: "public-read",
  7131. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7132. var options = {
  7133. partSize: 2048 * 1024 * 1024,
  7134. queueSize: 2,
  7135. leavePartsOnError: true,
  7136. };
  7137. bucket
  7138. .upload(params, options)
  7139. .on("httpUploadProgress", function (evt) {
  7140. //这里可以写进度条
  7141. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7142. })
  7143. .send(function (err, data) {
  7144. // loading.close();
  7145. if (err) {
  7146. // var a = _this.$refs.upload1.uploadFiles;
  7147. // a.splice(a.length - 1, a.length);
  7148. _this.$message.error("上传失败");
  7149. } else {
  7150. // _this.cover.push({
  7151. // name: file.name,
  7152. // url: data.Location,
  7153. // uid: file.uid,
  7154. // });
  7155. _this.cover = [
  7156. {
  7157. name: file.name,
  7158. url: data.Location,
  7159. uid: file.uid,
  7160. },
  7161. ];
  7162. _this.imgChange1(null, null, 1, null);
  7163. _this.choosePicVisible = false;
  7164. console.log(data.Location);
  7165. }
  7166. });
  7167. }
  7168. },
  7169. beforeUploadSelect(event, type) {
  7170. // const loading = this.openLoading();
  7171. var file = event.target.files[0];
  7172. var credentials = {
  7173. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7174. secretAccessKey: "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",
  7175. }; //秘钥形式的登录上传
  7176. window.AWS.config.update(credentials);
  7177. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7178. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7179. var _this = this;
  7180. if (file) {
  7181. var params = {
  7182. Key:
  7183. file.name.split(".")[0] +
  7184. new Date().getTime() +
  7185. "." +
  7186. file.name.split(".")[file.name.split(".").length - 1],
  7187. ContentType: file.type,
  7188. Body: file,
  7189. "Access-Control-Allow-Credentials": "*",
  7190. ACL: "public-read",
  7191. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7192. var options = {
  7193. partSize: 2048 * 1024 * 1024,
  7194. queueSize: 2,
  7195. leavePartsOnError: true,
  7196. };
  7197. bucket
  7198. .upload(params, options)
  7199. .on("httpUploadProgress", function (evt) {
  7200. //这里可以写进度条
  7201. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7202. })
  7203. .send(function (err, data) {
  7204. // loading.close();
  7205. if (err) {
  7206. _this.$message.error("上传失败");
  7207. } else {
  7208. _this.selectJson.url = data.Location;
  7209. console.log(data.Location);
  7210. }
  7211. });
  7212. }
  7213. },
  7214. chooseSysPic(p) {
  7215. this.cover = [];
  7216. setTimeout(() => {
  7217. this.cover[0] = {
  7218. name: "系统图片.png",
  7219. url: p,
  7220. };
  7221. this.imgChange1(null, null, 1, null);
  7222. this.$forceUpdate();
  7223. }, 0);
  7224. this.isSysPic = true;
  7225. this.isSysPic2 = false;
  7226. this.sysPicVisible = false;
  7227. this.$forceUpdate();
  7228. },
  7229. chooseSysPic2(p) {
  7230. this.cover = [];
  7231. setTimeout(() => {
  7232. this.cover[0] = {
  7233. name: "网络图片.png",
  7234. url: p,
  7235. };
  7236. this.imgChange1(null, null, 1, null);
  7237. this.$forceUpdate();
  7238. }, 0);
  7239. this.isSysPic2 = true;
  7240. this.isSysPic = false;
  7241. this.sysPicVisible2 = false;
  7242. this.$forceUpdate();
  7243. },
  7244. beforeUpload(data) {
  7245. this.$refs.upload1.uploadFiles;
  7246. this.uploadLoading1 = true;
  7247. var file = data.file;
  7248. var credentials = {
  7249. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7250. secretAccessKey: "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",
  7251. }; //秘钥形式的登录上传
  7252. window.AWS.config.update(credentials);
  7253. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7254. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7255. var _this = this;
  7256. if (file) {
  7257. var params = {
  7258. Key:
  7259. file.name.split(".")[0] +
  7260. new Date().getTime() +
  7261. "." +
  7262. file.name.split(".")[file.name.split(".").length - 1],
  7263. ContentType: file.type,
  7264. Body: file,
  7265. "Access-Control-Allow-Credentials": "*",
  7266. ACL: "public-read",
  7267. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7268. var options = {
  7269. partSize: 2048 * 1024 * 1024,
  7270. queueSize: 2,
  7271. leavePartsOnError: true,
  7272. };
  7273. bucket
  7274. .upload(params, options)
  7275. .on("httpUploadProgress", function (evt) {
  7276. //这里可以写进度条
  7277. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7278. })
  7279. .send(function (err, data) {
  7280. _this.uploadLoading1 = false;
  7281. if (err) {
  7282. // var a = _this.$refs.upload1.uploadFiles;
  7283. // a.splice(a.length - 1, a.length);
  7284. _this.$message.error("上传失败");
  7285. } else {
  7286. //上传成功处理
  7287. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7288. name: file.name,
  7289. url: data.Location,
  7290. uid: file.uid,
  7291. });
  7292. _this.imgChange();
  7293. console.log(data.Location);
  7294. }
  7295. });
  7296. }
  7297. },
  7298. onExceed() {
  7299. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7300. },
  7301. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7302. // const loading = this.openLoading();
  7303. var file = event.target.files[0];
  7304. var credentials = {
  7305. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7306. secretAccessKey: "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",
  7307. }; //秘钥形式的登录上传
  7308. window.AWS.config.update(credentials);
  7309. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7310. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7311. var _this = this;
  7312. if (type == 3) {
  7313. var b = [
  7314. "DOC",
  7315. "DOCX",
  7316. "DOCM",
  7317. "DOTM",
  7318. "DOTX",
  7319. "PPTX",
  7320. "PPSX",
  7321. "PPT",
  7322. "PPS",
  7323. "PPTM",
  7324. "POTM",
  7325. "PPAM",
  7326. "POTX",
  7327. "PPSM",
  7328. ];
  7329. if (
  7330. b.indexOf(
  7331. file.name
  7332. .split(".")
  7333. [file.name.split(".").length - 1].toLocaleUpperCase()
  7334. ) != -1
  7335. ) {
  7336. if (file.size / 1024 / 1024 > 80) {
  7337. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7338. this.inputShow = true;
  7339. // var a = _this.$refs.upload1.uploadFiles;
  7340. // a.splice(a.length - 1, a.length);
  7341. // loading.close();
  7342. return;
  7343. }
  7344. } else if (
  7345. file.name
  7346. .split(".")
  7347. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7348. ) {
  7349. if (file.size / 1024 / 1024 > 80) {
  7350. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7351. this.inputShow = true;
  7352. // var a = _this.$refs.upload1.uploadFiles;
  7353. // a.splice(a.length - 1, a.length);
  7354. // loading.close();
  7355. return;
  7356. }
  7357. }
  7358. }
  7359. this.inputShow = false;
  7360. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7361. itemTaskIndex
  7362. ].progress = 0;
  7363. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7364. itemTaskIndex
  7365. ].proVisible = true;
  7366. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7367. itemTaskIndex
  7368. ].isFinishSize = 0;
  7369. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7370. itemTaskIndex
  7371. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7372. _this.$forceUpdate();
  7373. if (file) {
  7374. var params = {
  7375. Key:
  7376. file.name.split(".")[0] +
  7377. new Date().getTime() +
  7378. "." +
  7379. file.name.split(".")[file.name.split(".").length - 1],
  7380. ContentType: file.type,
  7381. Body: file,
  7382. "Access-Control-Allow-Credentials": "*",
  7383. ACL: "public-read",
  7384. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7385. var options = {
  7386. partSize: 2048 * 1024 * 1024,
  7387. queueSize: 2,
  7388. leavePartsOnError: true,
  7389. };
  7390. bucket
  7391. .upload(params, options)
  7392. .on("httpUploadProgress", function (evt) {
  7393. //这里可以写进度条
  7394. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7395. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7396. itemTaskIndex
  7397. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7398. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7399. itemTaskIndex
  7400. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7401. _this.$forceUpdate();
  7402. })
  7403. .send(function (err, data) {
  7404. // loading.close();
  7405. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7406. itemTaskIndex
  7407. ].progress = 100;
  7408. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7409. itemTaskIndex
  7410. ].isFinishSize =
  7411. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7412. itemTaskIndex
  7413. ].isAllSize;
  7414. _this.$forceUpdate();
  7415. setTimeout(() => {
  7416. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7417. itemTaskIndex
  7418. ].proVisible = false;
  7419. _this.$forceUpdate();
  7420. }, 1000);
  7421. _this.inputShow = true;
  7422. if (err) {
  7423. // var a = _this.$refs.upload1.uploadFiles;
  7424. // a.splice(a.length - 1, a.length);
  7425. _this.$message.error("上传失败");
  7426. } else {
  7427. if (type == 13) {
  7428. let _type = 2;
  7429. var imgA = [
  7430. "png",
  7431. "jpg",
  7432. "jpeg",
  7433. "bmp",
  7434. "gif",
  7435. "webp",
  7436. "psd",
  7437. "svg",
  7438. "tiff",
  7439. ];
  7440. var fileA = [
  7441. "PDF",
  7442. "DOC",
  7443. "DOCX",
  7444. "DOCM",
  7445. "DOTM",
  7446. "DOTX",
  7447. "PPTX",
  7448. "PPSX",
  7449. "PPT",
  7450. "PPS",
  7451. "PPTM",
  7452. "POTM",
  7453. "PPAM",
  7454. "POTX",
  7455. "PPSM",
  7456. "XLSX",
  7457. "XLS",
  7458. ];
  7459. var videoA = [
  7460. "AVI",
  7461. "NAVI",
  7462. "MPEG",
  7463. "ASF",
  7464. "MOV",
  7465. "WMV",
  7466. "3GP",
  7467. "RM",
  7468. "RMVB",
  7469. "FLV",
  7470. "F4V",
  7471. "H.264",
  7472. "H.265",
  7473. "REAL VIDEO",
  7474. "MKV",
  7475. "WebM",
  7476. "HDDVD",
  7477. "MP4",
  7478. "MPG",
  7479. "M4V",
  7480. "MGV",
  7481. "OGV",
  7482. "QTM",
  7483. "STR",
  7484. "AMC",
  7485. "DVX",
  7486. "EVO",
  7487. "DAT",
  7488. "OGG",
  7489. "OGM",
  7490. ];
  7491. if (
  7492. fileA.indexOf(
  7493. data.Location.split(".")[
  7494. data.Location.split(".").length - 1
  7495. ].toLocaleUpperCase()
  7496. ) != -1
  7497. ) {
  7498. _type = 3;
  7499. } else if (
  7500. videoA.indexOf(
  7501. data.Location.split(".")[
  7502. data.Location.split(".").length - 1
  7503. ].toLocaleUpperCase()
  7504. ) != -1
  7505. ) {
  7506. _type = 2;
  7507. } else if (
  7508. imgA.indexOf(
  7509. data.Location.split(".")[
  7510. data.Location.split(".").length - 1
  7511. ].toLocaleLowerCase()
  7512. ) != -1
  7513. ) {
  7514. _type = 13;
  7515. } else {
  7516. _type = 12;
  7517. }
  7518. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7519. itemTaskIndex
  7520. ].chapterData.push({
  7521. name: file.name,
  7522. url: data.Location,
  7523. uid: file.uid,
  7524. type: _type,
  7525. });
  7526. _this.imgChange1(null, null, _type, itemTaskIndex);
  7527. } else if (type == 2 || type == 3 || type == 12) {
  7528. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7529. itemTaskIndex
  7530. ].chapterData.push({
  7531. name: file.name,
  7532. url: data.Location,
  7533. uid: file.uid,
  7534. type: type,
  7535. });
  7536. _this.imgChange1(null, null, type, itemTaskIndex);
  7537. } else if (type == 4) {
  7538. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7539. itemTaskIndex
  7540. ].fileList1.push({
  7541. name: file.name,
  7542. url: data.Location,
  7543. uid: file.uid,
  7544. });
  7545. _this.imgChange1(null, null, type, itemTaskIndex);
  7546. } else if (type == 5) {
  7547. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7548. itemTaskIndex
  7549. ].homeworkList.push({
  7550. name: file.name,
  7551. url: data.Location,
  7552. uid: file.uid,
  7553. });
  7554. _this.imgChange1(null, null, type, itemTaskIndex);
  7555. }
  7556. console.log(data.Location);
  7557. }
  7558. });
  7559. }
  7560. },
  7561. beforeUploadInfo2(event, type) {
  7562. // const loading = this.openLoading();
  7563. var file = event.target.files[0];
  7564. var credentials = {
  7565. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7566. secretAccessKey: "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",
  7567. }; //秘钥形式的登录上传
  7568. window.AWS.config.update(credentials);
  7569. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7570. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7571. var _this = this;
  7572. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  7573. if (
  7574. xianObj.indexOf(
  7575. file.name
  7576. .split(".")
  7577. [file.name.split(".").length - 1].toLocaleUpperCase()
  7578. ) == -1
  7579. ) {
  7580. this.$message.error("请上传.doc,.docx,.ppt,.pptx,.md,.txt,.pdf文件!");
  7581. this.inputShow = true;
  7582. // var a = _this.$refs.upload1.uploadFiles;
  7583. // a.splice(a.length - 1, a.length);
  7584. // loading.close();
  7585. return;
  7586. }
  7587. if (type == 3) {
  7588. var b = [
  7589. "DOC",
  7590. "DOCX",
  7591. "DOCM",
  7592. "DOTM",
  7593. "DOTX",
  7594. "PPTX",
  7595. "PPSX",
  7596. "PPT",
  7597. "PPS",
  7598. "PPTM",
  7599. "POTM",
  7600. "PPAM",
  7601. "POTX",
  7602. "PPSM",
  7603. ];
  7604. if (
  7605. b.indexOf(
  7606. file.name
  7607. .split(".")
  7608. [file.name.split(".").length - 1].toLocaleUpperCase()
  7609. ) != -1
  7610. ) {
  7611. if (file.size / 1024 / 1024 > 80) {
  7612. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7613. this.inputShow = true;
  7614. // var a = _this.$refs.upload1.uploadFiles;
  7615. // a.splice(a.length - 1, a.length);
  7616. // loading.close();
  7617. return;
  7618. }
  7619. } else if (
  7620. file.name
  7621. .split(".")
  7622. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7623. ) {
  7624. if (file.size / 1024 / 1024 > 80) {
  7625. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7626. this.inputShow = true;
  7627. // var a = _this.$refs.upload1.uploadFiles;
  7628. // a.splice(a.length - 1, a.length);
  7629. // loading.close();
  7630. return;
  7631. }
  7632. }
  7633. }
  7634. this.inputShow = false;
  7635. _this.infoprogress = 0;
  7636. _this.infoproVisible = true;
  7637. _this.infoisFinishSize = 0;
  7638. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7639. _this.$forceUpdate();
  7640. if (file) {
  7641. var params = {
  7642. Key:
  7643. file.name.split(".")[0] +
  7644. new Date().getTime() +
  7645. "." +
  7646. file.name.split(".")[file.name.split(".").length - 1],
  7647. ContentType: file.type,
  7648. Body: file,
  7649. "Access-Control-Allow-Credentials": "*",
  7650. ACL: "public-read",
  7651. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7652. var options = {
  7653. partSize: 2048 * 1024 * 1024,
  7654. queueSize: 2,
  7655. leavePartsOnError: true,
  7656. };
  7657. bucket
  7658. .upload(params, options)
  7659. .on("httpUploadProgress", function (evt) {
  7660. //这里可以写进度条
  7661. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7662. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7663. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7664. _this.$forceUpdate();
  7665. })
  7666. .send(async function (err, data) {
  7667. // loading.close();
  7668. _this.infoprogress = 100;
  7669. _this.infoisFinishSize = _this.infoisAllSize;
  7670. _this.$forceUpdate();
  7671. _this.inputShow = true;
  7672. if (err) {
  7673. setTimeout(() => {
  7674. _this.infoproVisible = false;
  7675. _this.$forceUpdate();
  7676. }, 1000);
  7677. // var a = _this.$refs.upload1.uploadFiles;
  7678. // a.splice(a.length - 1, a.length);
  7679. _this.$message.error("上传失败");
  7680. } else {
  7681. let fileid = await _this.createFileid(data.Location)
  7682. if(fileid){
  7683. _this.infoproVisible = false;
  7684. _this.$forceUpdate();
  7685. }
  7686. if (type == 13) {
  7687. let _type = 2;
  7688. var imgA = [
  7689. "png",
  7690. "jpg",
  7691. "jpeg",
  7692. "bmp",
  7693. "gif",
  7694. "webp",
  7695. "psd",
  7696. "svg",
  7697. "tiff",
  7698. ];
  7699. var fileA = [
  7700. "PDF",
  7701. "DOC",
  7702. "DOCX",
  7703. "DOCM",
  7704. "DOTM",
  7705. "DOTX",
  7706. "PPTX",
  7707. "PPSX",
  7708. "PPT",
  7709. "PPS",
  7710. "PPTM",
  7711. "POTM",
  7712. "PPAM",
  7713. "POTX",
  7714. "PPSM",
  7715. "XLSX",
  7716. "XLS",
  7717. ];
  7718. var videoA = [
  7719. "AVI",
  7720. "NAVI",
  7721. "MPEG",
  7722. "ASF",
  7723. "MOV",
  7724. "WMV",
  7725. "3GP",
  7726. "RM",
  7727. "RMVB",
  7728. "FLV",
  7729. "F4V",
  7730. "H.264",
  7731. "H.265",
  7732. "REAL VIDEO",
  7733. "MKV",
  7734. "WebM",
  7735. "HDDVD",
  7736. "MP4",
  7737. "MPG",
  7738. "M4V",
  7739. "MGV",
  7740. "OGV",
  7741. "QTM",
  7742. "STR",
  7743. "AMC",
  7744. "DVX",
  7745. "EVO",
  7746. "DAT",
  7747. "OGG",
  7748. "OGM",
  7749. ];
  7750. if (
  7751. fileA.indexOf(
  7752. data.Location.split(".")[
  7753. data.Location.split(".").length - 1
  7754. ].toLocaleUpperCase()
  7755. ) != -1
  7756. ) {
  7757. _type = 3;
  7758. } else if (
  7759. videoA.indexOf(
  7760. data.Location.split(".")[
  7761. data.Location.split(".").length - 1
  7762. ].toLocaleUpperCase()
  7763. ) != -1
  7764. ) {
  7765. _type = 2;
  7766. } else if (
  7767. imgA.indexOf(
  7768. data.Location.split(".")[
  7769. data.Location.split(".").length - 1
  7770. ].toLocaleLowerCase()
  7771. ) != -1
  7772. ) {
  7773. _type = 13;
  7774. } else {
  7775. _type = 12;
  7776. }
  7777. _this.infoData.push({
  7778. name: file.name,
  7779. url: data.Location,
  7780. uid: file.uid,
  7781. type: _type,
  7782. fileid: fileid,
  7783. });
  7784. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7785. name: file.name,
  7786. url: data.Location,
  7787. uid: file.uid,
  7788. type: _type,
  7789. fileid: fileid,
  7790. })
  7791. } else if (type == 2 || type == 3 || type == 12) {
  7792. _this.infoData.push({
  7793. name: file.name,
  7794. url: data.Location,
  7795. uid: file.uid,
  7796. type: type,
  7797. fileid: fileid,
  7798. });
  7799. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
  7800. name: file.name,
  7801. url: data.Location,
  7802. uid: file.uid,
  7803. type: type,
  7804. fileid: fileid,
  7805. })
  7806. }
  7807. console.log(data.Location);
  7808. console.log(fileid);
  7809. }
  7810. });
  7811. }
  7812. },
  7813. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7814. // const loading = this.openLoading();
  7815. var file = event.target.files[0];
  7816. var credentials = {
  7817. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7818. secretAccessKey: "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",
  7819. }; //秘钥形式的登录上传
  7820. window.AWS.config.update(credentials);
  7821. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7822. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7823. var _this = this;
  7824. if (type == 3) {
  7825. var b = [
  7826. "DOC",
  7827. "DOCX",
  7828. "DOCM",
  7829. "DOTM",
  7830. "DOTX",
  7831. "PPTX",
  7832. "PPSX",
  7833. "PPT",
  7834. "PPS",
  7835. "PPTM",
  7836. "POTM",
  7837. "PPAM",
  7838. "POTX",
  7839. "PPSM",
  7840. ];
  7841. if (
  7842. b.indexOf(
  7843. file.name
  7844. .split(".")
  7845. [file.name.split(".").length - 1].toLocaleUpperCase()
  7846. ) != -1
  7847. ) {
  7848. if (file.size / 1024 / 1024 > 80) {
  7849. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7850. this.inputShow = true;
  7851. // var a = _this.$refs.upload1.uploadFiles;
  7852. // a.splice(a.length - 1, a.length);
  7853. // loading.close();
  7854. return;
  7855. }
  7856. } else if (
  7857. file.name
  7858. .split(".")
  7859. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7860. ) {
  7861. if (file.size / 1024 / 1024 > 80) {
  7862. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7863. this.inputShow = true;
  7864. // var a = _this.$refs.upload1.uploadFiles;
  7865. // a.splice(a.length - 1, a.length);
  7866. // loading.close();
  7867. return;
  7868. }
  7869. }
  7870. }
  7871. this.inputShow = false;
  7872. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7873. itemTaskIndex
  7874. ].progress = 0;
  7875. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7876. itemTaskIndex
  7877. ].proVisible = true;
  7878. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7879. itemTaskIndex
  7880. ].isFinishSize = 0;
  7881. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7882. itemTaskIndex
  7883. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7884. _this.$forceUpdate();
  7885. if (file) {
  7886. var params = {
  7887. Key:
  7888. file.name.split(".")[0] +
  7889. new Date().getTime() +
  7890. "." +
  7891. file.name.split(".")[file.name.split(".").length - 1],
  7892. ContentType: file.type,
  7893. Body: file,
  7894. "Access-Control-Allow-Credentials": "*",
  7895. ACL: "public-read",
  7896. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7897. var options = {
  7898. partSize: 2048 * 1024 * 1024,
  7899. queueSize: 2,
  7900. leavePartsOnError: true,
  7901. };
  7902. bucket
  7903. .upload(params, options)
  7904. .on("httpUploadProgress", function (evt) {
  7905. //这里可以写进度条
  7906. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7907. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7908. itemTaskIndex
  7909. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7910. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7911. itemTaskIndex
  7912. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7913. _this.$forceUpdate();
  7914. })
  7915. .send(function (err, data) {
  7916. // loading.close();
  7917. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7918. itemTaskIndex
  7919. ].progress = 100;
  7920. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7921. itemTaskIndex
  7922. ].isFinishSize =
  7923. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7924. itemTaskIndex
  7925. ].isAllSize;
  7926. _this.$forceUpdate();
  7927. setTimeout(() => {
  7928. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7929. itemTaskIndex
  7930. ].proVisible = false;
  7931. _this.$forceUpdate();
  7932. }, 1000);
  7933. _this.inputShow = true;
  7934. if (err) {
  7935. // var a = _this.$refs.upload1.uploadFiles;
  7936. // a.splice(a.length - 1, a.length);
  7937. _this.$message.error("上传失败");
  7938. } else {
  7939. if (type == 2 || type == 3) {
  7940. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7941. itemTaskIndex
  7942. ].chapterData.push({
  7943. name: file.name,
  7944. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7945. // itemTaskIndex
  7946. // ].chapterData.length+1),
  7947. url: data.Location,
  7948. uid: file.uid,
  7949. type: type,
  7950. text: string,
  7951. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7952. // itemTaskIndex
  7953. // ].chapterData.length + 1),
  7954. });
  7955. _this.imgChange1(null, null, type, itemTaskIndex);
  7956. } else if (type == 4) {
  7957. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7958. itemTaskIndex
  7959. ].fileList1.push({
  7960. name: file.name,
  7961. url: data.Location,
  7962. uid: file.uid,
  7963. });
  7964. _this.imgChange1(null, null, type, itemTaskIndex);
  7965. } else if (type == 5) {
  7966. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7967. itemTaskIndex
  7968. ].homeworkList.push({
  7969. name: file.name,
  7970. url: data.Location,
  7971. uid: file.uid,
  7972. });
  7973. _this.imgChange1(null, null, type, itemTaskIndex);
  7974. }
  7975. console.log(data.Location);
  7976. }
  7977. });
  7978. }
  7979. },
  7980. addunit() {
  7981. this.unitJson.push({
  7982. dyName: "", //单元标题
  7983. isUpdate: 1,
  7984. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7985. chapterInfo: [
  7986. {
  7987. isread: false,
  7988. chapterid: this.guid(),
  7989. title: "",
  7990. courseName: "",
  7991. taskJson: [
  7992. {
  7993. task: "",
  7994. taskDetail: "",
  7995. chapterData: [],
  7996. toolText: "",
  7997. toolChoose: [
  7998. {
  7999. tool: [],
  8000. toolDetail: "",
  8001. toolType: 0,
  8002. askCount: 1,
  8003. askTitle: "",
  8004. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8005. },
  8006. ],
  8007. isShowTools: false,
  8008. askCount: 1,
  8009. isFold: 1,
  8010. askTitle: "",
  8011. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8012. checkJson: [{ checkCount: [], checkPerent: [] }],
  8013. homeworkList: [],
  8014. },
  8015. ],
  8016. itemCount: 1,
  8017. fileList1: [],
  8018. video: [],
  8019. testData: [],
  8020. pData: [],
  8021. templateArray: [],
  8022. },
  8023. ],
  8024. });
  8025. this.addindex = this.unitJson.length - 1;
  8026. setTimeout(() => {
  8027. this.unitIndex = this.unitJson.length - 1;
  8028. setTimeout(() => {
  8029. console.log(this.$refs.dyInput);
  8030. this.$refs.dyInput[0].focus();
  8031. }, 100);
  8032. this.unitSet(this.unitIndex);
  8033. }, 0);
  8034. },
  8035. addToolFun(itemTaskIndex) {
  8036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8037. itemTaskIndex
  8038. ].toolChoose.push({
  8039. tool: [],
  8040. toolDetail: "",
  8041. toolType: 0,
  8042. askCount: 1,
  8043. askTitle: "",
  8044. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8045. });
  8046. },
  8047. addTaskBorder() {
  8048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8049. task: "",
  8050. taskDetail: "",
  8051. chapterData: [],
  8052. toolText: "",
  8053. toolChoose: [
  8054. {
  8055. tool: [],
  8056. toolDetail: "",
  8057. toolType: 0,
  8058. askCount: 1,
  8059. askTitle: "",
  8060. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8061. },
  8062. ],
  8063. isShowTools: false,
  8064. askCount: 1,
  8065. isFold: 1, //任务收起状态
  8066. askTitle: "",
  8067. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8068. checkJson: [{ checkCount: [], checkPerent: [] }],
  8069. homeworkList: [],
  8070. });
  8071. setTimeout(() => {
  8072. this.checkEva(this.checkId);
  8073. setTimeout(() => {
  8074. this.checkEva(this.checkId);
  8075. }, 100);
  8076. }, 100);
  8077. },
  8078. add(e, i) {
  8079. var el = e.currentTarget;
  8080. el.getElementsByTagName("input")[0].click();
  8081. },
  8082. fold(i, e) {
  8083. if (
  8084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  8085. ) {
  8086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8087. } else {
  8088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8089. }
  8090. },
  8091. fold2(i) {
  8092. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8093. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8094. i
  8095. ].isFold2 = false;
  8096. } else {
  8097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8098. }
  8099. this.$forceUpdate();
  8100. },
  8101. foldEva(i) {
  8102. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  8103. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8104. i
  8105. ].isEvaFold = false;
  8106. } else {
  8107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8108. i
  8109. ].isEvaFold = true;
  8110. setTimeout(() => {
  8111. this.checkEva(this.checkId);
  8112. setTimeout(() => {
  8113. this.checkEva(this.checkId);
  8114. }, 500);
  8115. }, 0);
  8116. }
  8117. this.$forceUpdate();
  8118. },
  8119. foldC(i) {
  8120. if (
  8121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  8122. ) {
  8123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8124. i
  8125. ].isFoldchapter = false;
  8126. } else {
  8127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8128. i
  8129. ].isFoldchapter = true;
  8130. }
  8131. this.$forceUpdate();
  8132. },
  8133. fold3(i, ti) {
  8134. if (
  8135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  8136. .isFold3
  8137. ) {
  8138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8139. ti
  8140. ].isFold3 = false;
  8141. } else {
  8142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  8143. ti
  8144. ].isFold3 = true;
  8145. }
  8146. this.$forceUpdate();
  8147. },
  8148. deleteHomeworkBox(unitIndex, index, i) {
  8149. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8150. this.taskCount
  8151. ].homeworkList.splice(i, 1);
  8152. },
  8153. getStudent() {
  8154. let params = {
  8155. oid: this.oid,
  8156. cu: "",
  8157. cn: this.searchPeople,
  8158. };
  8159. this.ajax
  8160. .get(this.$store.state.api + "selectStudentAdd", params)
  8161. .then((res) => {
  8162. this.studentJuri = res.data[0];
  8163. })
  8164. .catch((err) => {
  8165. this.isLoading = false;
  8166. console.error(err);
  8167. });
  8168. },
  8169. // 添加协同成员其他选项按钮
  8170. getTeacherCopy(){
  8171. this.CollLoading=true
  8172. this.collid = ''
  8173. this.collid = '1xpz'
  8174. let params = {
  8175. oid:
  8176. this.org && this.org != "undefined" && this.org != "null"
  8177. ? this.org
  8178. : this.oid,
  8179. cu: "",
  8180. cn: this.searchTN,
  8181. coll: ''
  8182. };
  8183. this.ajax
  8184. .get(
  8185. this.$store.state.api +
  8186. (this.org && this.org != "undefined" && this.org != "null"
  8187. ? "selectCollaborativeMembersOrg"
  8188. : "selectCollaborativeMembers"),
  8189. params
  8190. )
  8191. .then((res) => {
  8192. let teacherJuri = res.data[0];
  8193. this.CollaborativeTeaList = res.data[1];
  8194. for (var i = 0; i < teacherJuri.length; i++) {
  8195. if (teacherJuri[i].userid == this.userid) {
  8196. teacherJuri.splice(i, 1);
  8197. break;
  8198. }
  8199. }
  8200. this.teacherJuri = teacherJuri.filter((i,index)=>{
  8201. return (i.cclassid == '' || i.cclassid == null)
  8202. })
  8203. console.log(' this.teacherJuri', this.teacherJuri);
  8204. let _check = [];
  8205. let _check2 = [];
  8206. for (var i = 0; i < this.teacherJuri.length; i++) {
  8207. var gid = this.teacherJuri[i].userid;
  8208. _check.push(gid);
  8209. }
  8210. for (var i = 0; i < this.checkboxList3.length; i++) {
  8211. var _id = this.checkboxList3[i];
  8212. if (_check.indexOf(_id) !== -1) {
  8213. _check2.push(_id);
  8214. }
  8215. }
  8216. if (_check2.length==0 && _check.length==0) {
  8217. }else{
  8218. this.checkAll2 = _check2.length === _check.length;
  8219. }
  8220. this.CollLoading=false
  8221. })
  8222. .catch((err) => {
  8223. console.error(err);
  8224. this.CollLoading=false
  8225. });
  8226. },
  8227. getTeacher(val) {
  8228. this.CollLoading=true
  8229. this.collid = ''
  8230. this.collid = !val ? '' : val
  8231. let params = {
  8232. oid:
  8233. this.org && this.org != "undefined" && this.org != "null"
  8234. ? this.org
  8235. : this.oid,
  8236. cu: "",
  8237. cn: this.searchTN,
  8238. coll: this.collid
  8239. };
  8240. this.ajax
  8241. .get(
  8242. this.$store.state.api +
  8243. (this.org && this.org != "undefined" && this.org != "null"
  8244. ? "selectCollaborativeMembersOrg"
  8245. : "selectCollaborativeMembers"),
  8246. params
  8247. )
  8248. .then((res) => {
  8249. let teacherJuri = res.data[0];
  8250. this.CollaborativeTeaList = res.data[1];
  8251. for (var i = 0; i < teacherJuri.length; i++) {
  8252. if (teacherJuri[i].userid == this.userid) {
  8253. teacherJuri.splice(i, 1);
  8254. break;
  8255. }
  8256. }
  8257. this.teacherJuri = teacherJuri;
  8258. let _check = [];
  8259. let _check2 = [];
  8260. for (var i = 0; i < this.teacherJuri.length; i++) {
  8261. var gid = this.teacherJuri[i].userid;
  8262. _check.push(gid);
  8263. }
  8264. for (var i = 0; i < this.checkboxList3.length; i++) {
  8265. var _id = this.checkboxList3[i];
  8266. if (_check.indexOf(_id) !== -1) {
  8267. _check2.push(_id);
  8268. }
  8269. }
  8270. if (_check2.length==0 && _check.length==0) {
  8271. }else{
  8272. this.checkAll2 = _check2.length === _check.length;
  8273. }
  8274. this.CollLoading=false
  8275. })
  8276. .catch((err) => {
  8277. console.error(err);
  8278. this.CollLoading=false
  8279. });
  8280. },
  8281. searchStudent() {
  8282. this.getStudent();
  8283. },
  8284. selectGrage() {
  8285. let params = {
  8286. oid: this.oid,
  8287. };
  8288. this.ajax
  8289. .get(this.$store.state.api + "selectGrageBySchool", params)
  8290. .then((res) => {
  8291. this.gradeList = res.data[0];
  8292. })
  8293. .catch((err) => {
  8294. this.isLoading = false;
  8295. console.error(err);
  8296. });
  8297. },
  8298. //获取班级列表
  8299. getClass() {
  8300. let params = {
  8301. oid: this.oid,
  8302. gid: this.gradeId,
  8303. cn: this.classSearch,
  8304. };
  8305. this.ajax
  8306. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8307. .then((res) => {
  8308. if (!this.grade.length) {
  8309. this.grade = res.data[0];
  8310. }
  8311. this.grade2 = res.data[0];
  8312. this.classJuri = res.data[0];
  8313. let _check = [];
  8314. let _check2 = [];
  8315. for (var i = 0; i < this.grade2.length; i++) {
  8316. var gid = this.grade2[i].id;
  8317. _check.push(gid);
  8318. }
  8319. for (var i = 0; i < this.checkboxList2.length; i++) {
  8320. var _id = this.checkboxList2[i];
  8321. if (_check.indexOf(_id) !== -1) {
  8322. _check2.push(_id);
  8323. }
  8324. }
  8325. this.checkAll = _check2.length === _check.length;
  8326. })
  8327. .catch((err) => {
  8328. this.isLoading = false;
  8329. console.error(err);
  8330. });
  8331. },
  8332. CourseType2Change(val) {
  8333. this.pTypeCheck = [];
  8334. for (var i = 0; i < this.CourseType2.length; i++) {
  8335. let typeA = this.CourseType2[i];
  8336. if (val.indexOf(typeA.name) != -1) {
  8337. this.pTypeCheck.push(...typeA.id);
  8338. }
  8339. }
  8340. },
  8341. getChapterData(e, i, j, ic, type) {
  8342. e.stopPropagation();
  8343. this.updataC = true;
  8344. this.icc = ic;
  8345. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8346. console.log("还不能下载图片喔");
  8347. }
  8348. },
  8349. deleteChapterData(e, i, j, ic, taskI) {
  8350. e.stopPropagation();
  8351. let _this = this;
  8352. _this
  8353. .$confirm("确定删除此项?", "提示", {
  8354. confirmButtonText: "确定",
  8355. cancelButtonText: "取消",
  8356. type: "warning",
  8357. })
  8358. .then(() => {
  8359. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  8360. ic,
  8361. 1
  8362. );
  8363. })
  8364. .catch(() => {
  8365. return;
  8366. });
  8367. },
  8368. deleteInfoData(e, ic) {
  8369. e.stopPropagation();
  8370. let _this = this;
  8371. _this
  8372. .$confirm("确定删除此项?", "提示", {
  8373. confirmButtonText: "确定",
  8374. cancelButtonText: "取消",
  8375. type: "warning",
  8376. })
  8377. .then(() => {
  8378. _this.infoData.splice(
  8379. ic,
  8380. 1
  8381. );
  8382. })
  8383. .catch(() => {
  8384. return;
  8385. });
  8386. },
  8387. updataVideoT(e, i, j, ic) {
  8388. // e.stopPropagation();
  8389. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8390. // ic
  8391. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8392. this.line =
  8393. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  8394. this.taskCount = j;
  8395. this.lineCount = ic;
  8396. this.dialogVisibleupdataVideoT = true;
  8397. this.$forceUpdate();
  8398. },
  8399. updataVideoC() {
  8400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8401. this.taskCount
  8402. ].chapterData[this.lineCount].name = JSON.parse(
  8403. JSON.stringify(this.line)
  8404. );
  8405. this.dialogVisibleupdataVideoT = false;
  8406. this.$forceUpdate();
  8407. },
  8408. upCd(e, i, j, taskCount, ic) {
  8409. e.stopPropagation();
  8410. if (ic == 0) {
  8411. return;
  8412. }
  8413. var a = JSON.parse(
  8414. JSON.stringify(
  8415. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8416. ic - 1
  8417. ]
  8418. )
  8419. );
  8420. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8421. JSON.parse(
  8422. JSON.stringify(
  8423. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8424. )
  8425. );
  8426. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8427. this.$forceUpdate();
  8428. },
  8429. downCd(e, i, j, taskCount, ic) {
  8430. e.stopPropagation();
  8431. if (
  8432. ic ==
  8433. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8434. 1
  8435. ) {
  8436. return;
  8437. }
  8438. var a = JSON.parse(
  8439. JSON.stringify(
  8440. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  8441. ic + 1
  8442. ]
  8443. )
  8444. );
  8445. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8446. JSON.parse(
  8447. JSON.stringify(
  8448. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  8449. )
  8450. );
  8451. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8452. this.$forceUpdate();
  8453. },
  8454. async upTool(e, i, j, tooli) {
  8455. e.stopPropagation();
  8456. if (tooli == 0) {
  8457. return;
  8458. }
  8459. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  8460. let count2 = await this.getWorksCount(3, i, j, tooli);
  8461. if (count1 > 0 || count2 > 0) {
  8462. this.$confirm(
  8463. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8464. "提示",
  8465. {
  8466. confirmButtonText: "确定",
  8467. cancelButtonText: "取消",
  8468. type: "warning",
  8469. }
  8470. )
  8471. .then(() => {
  8472. var a = JSON.parse(
  8473. JSON.stringify(
  8474. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8475. tooli - 1
  8476. ]
  8477. )
  8478. );
  8479. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8480. JSON.parse(
  8481. JSON.stringify(
  8482. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8483. )
  8484. );
  8485. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8486. this.$forceUpdate();
  8487. })
  8488. .catch(() => {
  8489. return;
  8490. });
  8491. } else {
  8492. var a = JSON.parse(
  8493. JSON.stringify(
  8494. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  8495. )
  8496. );
  8497. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  8498. JSON.parse(
  8499. JSON.stringify(
  8500. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8501. )
  8502. );
  8503. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8504. this.$forceUpdate();
  8505. }
  8506. },
  8507. async downTool(e, i, j, tooli) {
  8508. e.stopPropagation();
  8509. if (
  8510. tooli ==
  8511. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  8512. ) {
  8513. return;
  8514. }
  8515. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  8516. let count2 = await this.getWorksCount(3, i, j, tooli);
  8517. if (count1 > 0 || count2 > 0) {
  8518. this.$confirm(
  8519. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  8520. "提示",
  8521. {
  8522. confirmButtonText: "确定",
  8523. cancelButtonText: "取消",
  8524. type: "warning",
  8525. }
  8526. )
  8527. .then(() => {
  8528. var a = JSON.parse(
  8529. JSON.stringify(
  8530. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  8531. tooli + 1
  8532. ]
  8533. )
  8534. );
  8535. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8536. JSON.parse(
  8537. JSON.stringify(
  8538. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8539. )
  8540. );
  8541. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8542. this.$forceUpdate();
  8543. })
  8544. .catch(() => {
  8545. return;
  8546. });
  8547. } else {
  8548. var a = JSON.parse(
  8549. JSON.stringify(
  8550. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  8551. )
  8552. );
  8553. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  8554. JSON.parse(
  8555. JSON.stringify(
  8556. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  8557. )
  8558. );
  8559. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  8560. this.$forceUpdate();
  8561. }
  8562. },
  8563. addWork() {
  8564. let cPan = 1;
  8565. for (var i = 0; i < this.unitJson.length; i++) {
  8566. for (
  8567. var j = 0;
  8568. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8569. j++
  8570. ) {
  8571. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8572. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8573. if (
  8574. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8575. ) {
  8576. for (
  8577. var z = 0;
  8578. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8579. z++
  8580. ) {
  8581. if (
  8582. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8583. .length
  8584. ) {
  8585. this.$message.error("请把工具添加完整");
  8586. cPan = 2;
  8587. break;
  8588. }
  8589. }
  8590. }
  8591. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8592. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8593. i
  8594. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8595. return ele.value != "";
  8596. });
  8597. }
  8598. }
  8599. }
  8600. this.inputShow = true;
  8601. if (cPan == 2) {
  8602. this.steps--;
  8603. return;
  8604. }
  8605. for (var i = 0; i < this.unitJson.length; i++) {
  8606. delete this.unitJson[i].isUpdate;
  8607. }
  8608. let params = [
  8609. {
  8610. uid: this.userid,
  8611. title: this.courseName,
  8612. brief: this.courseText,
  8613. cover:
  8614. this.cover.length > 0
  8615. ? JSON.stringify(this.cover)
  8616. : JSON.stringify([
  8617. {
  8618. name: "noBanner.jpg",
  8619. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8620. uid: 1656409780264,
  8621. status: "success",
  8622. },
  8623. ]),
  8624. evaId: this.evalua,
  8625. astudent:
  8626. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8627. see: this.isTeacherSee == true ? 1 : 0,
  8628. chapters: JSON.stringify(this.unitJson),
  8629. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8630. courseType: JSON.stringify(this.courseTypeId),
  8631. ateacher:
  8632. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8633. inviteCode: JSON.stringify(this.inviteCode),
  8634. refile: JSON.stringify(this.infoData),
  8635. reBrief: this.courseText2,
  8636. cpote: JSON.stringify(this.cpote),
  8637. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  8638. iresearch: this.isFileSearch ? 1 : 2,
  8639. },
  8640. ];
  8641. this.ajax
  8642. .post(this.$store.state.api + "addWorkNew2AI3", params)
  8643. .then((res) => {
  8644. console.log(this.steps);
  8645. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8646. this.$message({
  8647. message: "新增成功",
  8648. type: "success",
  8649. });
  8650. }
  8651. this.number = res.data.ordernumber;
  8652. this.courseId = res.data.courseId;
  8653. this.cid = res.data.courseId;
  8654. this.courseUserid = this.userid;
  8655. this.islogin = true;
  8656. this.updateCourseState(4);
  8657. this.addtips()
  8658. })
  8659. .catch((err) => {
  8660. this.$message.error("网络不佳");
  8661. console.error(err);
  8662. });
  8663. },
  8664. goCourse() {
  8665. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8666. },
  8667. updateWork2() {
  8668. let _unitIndex = this.unitIndex;
  8669. let cPan = 1;
  8670. for (
  8671. var j = 0;
  8672. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8673. j++
  8674. ) {
  8675. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8676. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8677. j
  8678. ].proVisible2 = false;
  8679. if (
  8680. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8681. .length > 1
  8682. ) {
  8683. for (
  8684. var z = 0;
  8685. z <
  8686. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8687. .length;
  8688. z++
  8689. ) {
  8690. if (
  8691. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8692. z
  8693. ].tool.length
  8694. ) {
  8695. this.$message.error("请把工具添加完整");
  8696. cPan = 2;
  8697. break;
  8698. }
  8699. }
  8700. }
  8701. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8702. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8703. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8704. (ele) => {
  8705. return ele.value != "";
  8706. }
  8707. );
  8708. }
  8709. }
  8710. this.inputShow = true;
  8711. if (cPan == 2) {
  8712. this.steps--;
  8713. return;
  8714. }
  8715. let params = [
  8716. {
  8717. cid: this.cid,
  8718. chapters: JSON.stringify(this.unitJson),
  8719. uid: this.userid,
  8720. unitIndex: _unitIndex,
  8721. },
  8722. ];
  8723. this.ajax
  8724. .post(this.$store.state.api + "updateWorkNew4", params)
  8725. .then((res) => {
  8726. this.$message({
  8727. message: "修改成功",
  8728. type: "success",
  8729. });
  8730. this.courseId = this.cid;
  8731. this.addtips();
  8732. })
  8733. .catch((err) => {
  8734. this.$message.error("网络不佳");
  8735. console.error(err);
  8736. });
  8737. },
  8738. updateWork3(unitIndex) {
  8739. let _unitIndex = unitIndex;
  8740. let cPan = 1;
  8741. for (
  8742. var j = 0;
  8743. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8744. j++
  8745. ) {
  8746. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8747. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8748. j
  8749. ].proVisible2 = false;
  8750. if (
  8751. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8752. .length > 1
  8753. ) {
  8754. for (
  8755. var z = 0;
  8756. z <
  8757. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8758. .length;
  8759. z++
  8760. ) {
  8761. if (
  8762. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8763. z
  8764. ].tool.length
  8765. ) {
  8766. this.$message.error("请把工具添加完整");
  8767. cPan = 2;
  8768. break;
  8769. }
  8770. }
  8771. }
  8772. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8773. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8774. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8775. (ele) => {
  8776. return ele.value != "";
  8777. }
  8778. );
  8779. }
  8780. }
  8781. this.inputShow = true;
  8782. if (cPan == 2) {
  8783. this.steps--;
  8784. return;
  8785. }
  8786. let params = [
  8787. {
  8788. cid: this.cid,
  8789. chapters: JSON.stringify(this.unitJson),
  8790. uid: this.userid,
  8791. unitIndex: _unitIndex,
  8792. },
  8793. ];
  8794. this.ajax
  8795. .post(this.$store.state.api + "updateWorkNew4", params)
  8796. .then((res) => {
  8797. // this.$message({
  8798. // message: "修改成功",
  8799. // type: "success",
  8800. // });
  8801. this.courseId = this.cid;
  8802. this.addtips()
  8803. })
  8804. .catch((err) => {
  8805. this.$message.error("网络不佳");
  8806. console.error(err);
  8807. });
  8808. },
  8809. updateWork() {
  8810. let cPan = 1;
  8811. for (var i = 0; i < this.unitJson.length; i++) {
  8812. for (
  8813. var j = 0;
  8814. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8815. j++
  8816. ) {
  8817. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8818. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8819. if (
  8820. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8821. ) {
  8822. for (
  8823. var z = 0;
  8824. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8825. z++
  8826. ) {
  8827. if (
  8828. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8829. .length
  8830. ) {
  8831. this.$message.error("请把工具添加完整");
  8832. cPan = 2;
  8833. break;
  8834. }
  8835. }
  8836. }
  8837. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8838. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8839. i
  8840. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8841. return ele.value != "";
  8842. });
  8843. }
  8844. }
  8845. }
  8846. this.inputShow = true;
  8847. if (cPan == 2) {
  8848. this.steps--;
  8849. return;
  8850. }
  8851. for (var i = 0; i < this.unitJson.length; i++) {
  8852. delete this.unitJson[i].isUpdate;
  8853. }
  8854. let params = [
  8855. {
  8856. cid: this.cid,
  8857. title: this.courseName,
  8858. brief: this.courseText,
  8859. cover:
  8860. this.cover.length > 0
  8861. ? JSON.stringify(this.cover)
  8862. : JSON.stringify([
  8863. {
  8864. name: "noBanner.jpg",
  8865. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8866. uid: 1656409780264,
  8867. status: "success",
  8868. },
  8869. ]),
  8870. evaId: this.evalua,
  8871. astudent:
  8872. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8873. see: this.isTeacherSee == true ? 1 : 0,
  8874. chapters: JSON.stringify(this.unitJson),
  8875. template: this.myWord != "undefined" ? this.myWord : [],
  8876. uid: this.userid,
  8877. courseType: JSON.stringify(this.courseTypeId),
  8878. ateacher:
  8879. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8880. inviteCode: JSON.stringify(this.inviteCode),
  8881. refile: JSON.stringify(this.infoData),
  8882. reBrief: this.courseText2,
  8883. cpote: JSON.stringify(this.cpote),
  8884. setting: JSON.stringify({courseJie: this.courseJie, courseTime: this.courseTime}),
  8885. iresearch: this.isFileSearch ? 1 : 2,
  8886. },
  8887. ];
  8888. this.ajax
  8889. .post(this.$store.state.api + "updateWorkNew2AI3", params)
  8890. .then((res) => {
  8891. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8892. if (this.cidType == 1) {
  8893. this.$message({
  8894. message: "修改成功",
  8895. type: "success",
  8896. });
  8897. } else {
  8898. this.$message({
  8899. message: "新增成功",
  8900. type: "success",
  8901. });
  8902. }
  8903. }
  8904. this.number = this.nbOrder;
  8905. this.courseId = this.cid;
  8906. this.addtips()
  8907. })
  8908. .catch((err) => {
  8909. this.$message.error("网络不佳");
  8910. console.error(err);
  8911. });
  8912. },
  8913. insertWord() {
  8914. this.dialogVisible1 = true;
  8915. this.updateBoolean2 = false;
  8916. this.tTitle = "";
  8917. this.tdetail = "";
  8918. },
  8919. addWord() {
  8920. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8921. name: this.tTitle,
  8922. content: this.tdetail,
  8923. uid: this.guid(),
  8924. });
  8925. this.dialogVisible1 = false;
  8926. },
  8927. upWord() { },
  8928. selectWord(uid, i, c) {
  8929. this.dialogVisible1 = true;
  8930. this.updateBoolean2 = true;
  8931. if (
  8932. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8933. ) {
  8934. this.tTitle =
  8935. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8936. this.tdetail =
  8937. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8938. }
  8939. },
  8940. isAddPP() {
  8941. if (this.checkboxList.length > 0) {
  8942. this.$message({
  8943. message: "添加成功",
  8944. type: "success",
  8945. });
  8946. this.dialogVisible3 = false;
  8947. } else {
  8948. this.$message({
  8949. message: "请添加课程成员",
  8950. type: "error",
  8951. });
  8952. }
  8953. },
  8954. isAddClass() {
  8955. this.dialogVisibleClass = false;
  8956. },
  8957. isAddPPTeacher() {
  8958. this.dialogVisibleMember = false;
  8959. this.setMan();
  8960. },
  8961. getTipsTemplate(){
  8962. if(this.templateid){
  8963. let params = {
  8964. id: this.templateid
  8965. }
  8966. this.ajax
  8967. .get(this.$store.state.api + "selectTipsTemplateById", params)
  8968. .then((res) => {
  8969. if(res.data[0].length){
  8970. this.tipsJson = res.data[0][0]
  8971. this.aiJson = JSON.parse(res.data[0][0].tips)
  8972. this.$forceUpdate();
  8973. }
  8974. })
  8975. .catch((err) => { });
  8976. }
  8977. },
  8978. getTemplate() {
  8979. this.ajax
  8980. .get(this.$store.state.api + "getCourseTemplateT", "")
  8981. .then((res) => {
  8982. this.templateArray = res.data[0];
  8983. this.getTemplateOid();
  8984. this.$forceUpdate();
  8985. })
  8986. .catch((err) => { });
  8987. },
  8988. getTemplateOid() {
  8989. let params = {
  8990. oid: this.oid,
  8991. };
  8992. this.ajax
  8993. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8994. .then((res) => {
  8995. if (res.data[0].length) {
  8996. this.templateArray = [...res.data[0], ...this.templateArray];
  8997. }
  8998. this.getTemplateOrg();
  8999. this.$forceUpdate();
  9000. })
  9001. .catch((err) => { });
  9002. },
  9003. getTemplateOrg() {
  9004. let params = {
  9005. oid: this.org,
  9006. };
  9007. this.ajax
  9008. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9009. .then((res) => {
  9010. if (res.data[0].length) {
  9011. this.templateArray = [...res.data[0], ...this.templateArray];
  9012. }
  9013. this.$forceUpdate();
  9014. })
  9015. .catch((err) => { });
  9016. },
  9017. clearChoose() {
  9018. this.clearArray.splice(this.templateC.id, 1);
  9019. this.dialogVisible2 = false;
  9020. },
  9021. clearAttText() {
  9022. this.AttText = {
  9023. title: "",
  9024. text: "",
  9025. };
  9026. this.dialogVisible6 = false;
  9027. },
  9028. clearLine() {
  9029. this.line = "";
  9030. this.dialogVisible7 = false;
  9031. },
  9032. openTemplate() {
  9033. this.ctJson = {};
  9034. this.templateDialog = true;
  9035. },
  9036. checkctJson(json) {
  9037. if (this.ctJson.id == json.id) {
  9038. this.ctJson = {};
  9039. } else {
  9040. this.ctJson = json;
  9041. }
  9042. },
  9043. addTemplate(res) {
  9044. let _this = this;
  9045. let _res = [];
  9046. if (res.id == 1) {
  9047. _res = [
  9048. {
  9049. dyName: "", //单元标题
  9050. easy: 1,
  9051. chapterInfo: [
  9052. {
  9053. isread: false,
  9054. chapterid: this.guid(),
  9055. title: "",
  9056. courseName: "",
  9057. taskJson: [
  9058. {
  9059. task: "",
  9060. taskDetail: "",
  9061. chapterData: [],
  9062. toolText: "",
  9063. toolChoose: [
  9064. {
  9065. tool: [],
  9066. toolDetail: "",
  9067. toolType: 0,
  9068. askCount: 1,
  9069. askTitle: "",
  9070. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9071. },
  9072. ],
  9073. isShowTools: false,
  9074. askCount: 1,
  9075. isFold: 1,
  9076. askTitle: "",
  9077. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9078. checkJson: [{ checkCount: [], checkPerent: [] }],
  9079. homeworkList: [],
  9080. },
  9081. ],
  9082. itemCount: 1,
  9083. fileList1: [],
  9084. video: [],
  9085. testData: [],
  9086. pData: [],
  9087. templateArray: [],
  9088. },
  9089. ],
  9090. },
  9091. ];
  9092. this.updateCourseState(1);
  9093. } else if (res.id == 2) {
  9094. let stageData = [];
  9095. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9096. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9097. if (!iframe && !iframe2) {
  9098. this.$message.error("请使用AI共创生成");
  9099. return;
  9100. }
  9101. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9102. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9103. if (
  9104. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  9105. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  9106. ) {
  9107. this.$message.error("请使用AI共创生成");
  9108. return;
  9109. }
  9110. stageData = copyData
  9111. ? copyData.stageData
  9112. : copyData2
  9113. ? copyData2.stageData
  9114. : [""];
  9115. for (var i = 0; i < stageData.length; i++) {
  9116. _res.push({
  9117. dyName: stageData[i], //单元标题
  9118. chapterInfo: [
  9119. {
  9120. isread: false,
  9121. chapterid: this.guid(),
  9122. title: "",
  9123. courseName: "",
  9124. taskJson: [
  9125. {
  9126. task: "",
  9127. taskDetail: "",
  9128. chapterData: [],
  9129. toolText: "",
  9130. toolChoose: [
  9131. {
  9132. tool: [],
  9133. toolDetail: "",
  9134. toolType: 0,
  9135. askCount: 1,
  9136. askTitle: "",
  9137. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9138. },
  9139. ],
  9140. isShowTools: false,
  9141. askCount: 1,
  9142. isFold: 1,
  9143. askTitle: "",
  9144. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9145. checkJson: [{ checkCount: [], checkPerent: [] }],
  9146. homeworkList: [],
  9147. },
  9148. ],
  9149. itemCount: 1,
  9150. fileList1: [],
  9151. video: [],
  9152. testData: [],
  9153. pData: [],
  9154. templateArray: [],
  9155. },
  9156. ],
  9157. });
  9158. }
  9159. this.updateCourseState(1);
  9160. } else if (!Object.keys(res).length) {
  9161. this.$message.error("请选择模板");
  9162. retrun;
  9163. } else {
  9164. _res = JSON.parse(res.chapters);
  9165. this.updateCourseState(parseInt(res.state));
  9166. }
  9167. _this
  9168. .$confirm(
  9169. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9170. "提示",
  9171. {
  9172. confirmButtonText: "确定",
  9173. cancelButtonText: "取消",
  9174. type: "warning",
  9175. }
  9176. )
  9177. .then(() => {
  9178. _this.unitJson = _res;
  9179. _this.updateWork();
  9180. // _this.steps++;
  9181. _this.templateDialog = false;
  9182. setTimeout(() => {
  9183. this.checkEva(this.checkId);
  9184. setTimeout(() => {
  9185. this.checkEva(this.checkId);
  9186. }, 100);
  9187. }, 1000);
  9188. })
  9189. .catch(() => {
  9190. return;
  9191. });
  9192. },
  9193. checkTemplate(res) {
  9194. let _this = this;
  9195. _this
  9196. .$confirm(
  9197. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  9198. "提示",
  9199. {
  9200. confirmButtonText: "确定",
  9201. cancelButtonText: "取消",
  9202. type: "warning",
  9203. }
  9204. )
  9205. .then(() => {
  9206. _this.unitJson = JSON.parse(res.chapters);
  9207. _this.steps++;
  9208. setTimeout(() => {
  9209. this.checkEva(this.checkId);
  9210. setTimeout(() => {
  9211. this.checkEva(this.checkId);
  9212. }, 100);
  9213. }, 1000);
  9214. })
  9215. .catch(() => {
  9216. return;
  9217. });
  9218. },
  9219. checkTemplate1(w) {
  9220. this.steps++;
  9221. },
  9222. checkTemplate2() {
  9223. let _this = this;
  9224. _this
  9225. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  9226. confirmButtonText: "确定",
  9227. cancelButtonText: "取消",
  9228. type: "warning",
  9229. })
  9230. .then(() => {
  9231. _this.unitIndex = 0;
  9232. _this.unitJson = [
  9233. {
  9234. dyName: "", //单元标题
  9235. chapterInfo: [
  9236. {
  9237. isread: false,
  9238. chapterid: this.guid(),
  9239. title: "",
  9240. courseName: "",
  9241. taskJson: [
  9242. {
  9243. task: "",
  9244. taskDetail: "",
  9245. chapterData: [],
  9246. toolText: "",
  9247. toolChoose: [
  9248. {
  9249. tool: [],
  9250. toolDetail: "",
  9251. toolType: 0,
  9252. askCount: 1,
  9253. askTitle: "",
  9254. askJson: [
  9255. { askstitle: "", askItem: 1, checkList: [] },
  9256. ],
  9257. },
  9258. ],
  9259. isShowTools: false,
  9260. askCount: 1,
  9261. isFold: 1,
  9262. askTitle: "",
  9263. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9264. checkJson: [{ checkCount: [], checkPerent: [] }],
  9265. homeworkList: [],
  9266. },
  9267. ],
  9268. itemCount: 1,
  9269. fileList1: [],
  9270. video: [],
  9271. testData: [],
  9272. pData: [],
  9273. templateArray: [],
  9274. },
  9275. ],
  9276. },
  9277. ];
  9278. this.steps++;
  9279. setTimeout(() => {
  9280. this.checkEva(this.checkId);
  9281. setTimeout(() => {
  9282. this.checkEva(this.checkId);
  9283. }, 100);
  9284. }, 1000);
  9285. this.updateWork();
  9286. })
  9287. .catch(() => {
  9288. return;
  9289. });
  9290. },
  9291. checkTemplate3() {
  9292. let _this = this;
  9293. _this
  9294. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  9295. confirmButtonText: "确定",
  9296. cancelButtonText: "取消",
  9297. type: "warning",
  9298. })
  9299. .then(() => {
  9300. _this.unitIndex = 0;
  9301. _this.unitJson = [
  9302. {
  9303. dyName: "", //单元标题
  9304. easy: 1,
  9305. chapterInfo: [
  9306. {
  9307. isread: false,
  9308. chapterid: this.guid(),
  9309. title: "",
  9310. courseName: "",
  9311. taskJson: [
  9312. {
  9313. task: "",
  9314. taskDetail: "",
  9315. chapterData: [],
  9316. toolText: "",
  9317. toolChoose: [
  9318. {
  9319. tool: [],
  9320. toolDetail: "",
  9321. toolType: 0,
  9322. askCount: 1,
  9323. askTitle: "",
  9324. askJson: [
  9325. { askstitle: "", askItem: 1, checkList: [] },
  9326. ],
  9327. },
  9328. ],
  9329. isShowTools: false,
  9330. askCount: 1,
  9331. isFold: 1,
  9332. askTitle: "",
  9333. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9334. checkJson: [{ checkCount: [], checkPerent: [] }],
  9335. homeworkList: [],
  9336. },
  9337. ],
  9338. itemCount: 1,
  9339. fileList1: [],
  9340. video: [],
  9341. testData: [],
  9342. pData: [],
  9343. templateArray: [],
  9344. },
  9345. ],
  9346. },
  9347. ];
  9348. // this.steps++;
  9349. this.updateWork();
  9350. })
  9351. .catch(() => {
  9352. return;
  9353. });
  9354. },
  9355. checkTemplate4() {
  9356. let _this = this;
  9357. _this
  9358. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9359. confirmButtonText: "确定",
  9360. cancelButtonText: "取消",
  9361. type: "warning",
  9362. })
  9363. .then(() => {
  9364. _this.unitIndex = 0;
  9365. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9366. this.steps++;
  9367. this.updateWork();
  9368. })
  9369. .catch(() => {
  9370. return;
  9371. });
  9372. },
  9373. wordNext() {
  9374. this.dialogVisible2 = false;
  9375. },
  9376. isAddOrUpdateAttText() {
  9377. if (this.AttTextType == 0) {
  9378. this.addAttTextMessage();
  9379. } else {
  9380. this.updateAttText();
  9381. }
  9382. },
  9383. isAddOrUpdateLine() {
  9384. if (!this.lineTitle) {
  9385. this.$message.error("请填写链接标题");
  9386. return;
  9387. }
  9388. if (this.lineType == 0) {
  9389. this.addLine();
  9390. } else {
  9391. this.updateLine();
  9392. }
  9393. },
  9394. addAttTextMessage() {
  9395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9396. this.taskCount
  9397. ].chapterData.push({
  9398. name: this.AttText.title,
  9399. url: this.AttText.text,
  9400. type: 6,
  9401. });
  9402. this.imgChange1(null, null, 6, this.taskCount);
  9403. this.dialogVisible6 = false;
  9404. },
  9405. selectAttText(itemTaskIndex, i) {
  9406. this.AttText.title =
  9407. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9408. itemTaskIndex
  9409. ].chapterData[i].name;
  9410. this.AttText.text =
  9411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9412. itemTaskIndex
  9413. ].chapterData[i].url;
  9414. this.taskCount = itemTaskIndex;
  9415. this.AttTextIndex = i;
  9416. this.AttTextType = 1;
  9417. this.dialogVisible6 = true;
  9418. },
  9419. updateAttText() {
  9420. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9421. this.taskCount
  9422. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9424. this.taskCount
  9425. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9426. this.dialogVisible6 = false;
  9427. },
  9428. addLine() {
  9429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9430. this.lineCount
  9431. ].chapterData.push({
  9432. name: "链接",
  9433. title: this.lineTitle,
  9434. url: this.line,
  9435. type: 8,
  9436. });
  9437. this.imgChange1(null, null, 8, this.lineCount);
  9438. this.dialogVisible7 = false;
  9439. },
  9440. selectLine(itemTaskIndex, i) {
  9441. this.line =
  9442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9443. itemTaskIndex
  9444. ].chapterData[i].url;
  9445. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9446. itemTaskIndex
  9447. ].chapterData[i].title
  9448. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9449. .chapterData[i].title
  9450. : "";
  9451. this.taskCount = itemTaskIndex;
  9452. this.lineCount = i;
  9453. this.lineType = 1;
  9454. this.dialogVisible7 = true;
  9455. },
  9456. openUpdateSource(itemTaskIndex, i) {
  9457. this.sourceData = {};
  9458. let source =
  9459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9460. .chapterData[i];
  9461. this.sourceData[source.id] = {};
  9462. this.sourceData[source.id].name = source.title;
  9463. this.sourceData[source.id].url = source.url;
  9464. this.dialogVisibleSource = true;
  9465. this.updateSourcePan = true;
  9466. this.taskCount = itemTaskIndex;
  9467. this.lineCount = i;
  9468. },
  9469. updateLine() {
  9470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9471. this.taskCount
  9472. ].chapterData[this.lineCount].url = this.line;
  9473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9474. this.taskCount
  9475. ].chapterData[this.lineCount].title = this.lineTitle;
  9476. this.dialogVisible7 = false;
  9477. },
  9478. addPP() {
  9479. this.dialogVisible3 = true;
  9480. },
  9481. goTo(path) {
  9482. this.$router.push(path);
  9483. },
  9484. openTools(itemTaskIndex, i, toolIndex) {
  9485. this.toolIndex = toolIndex;
  9486. this.taskCount = itemTaskIndex;
  9487. if (i == 4) {
  9488. if (toolIndex == null) {
  9489. var a =
  9490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9491. .chapterData;
  9492. for (var i = 0; i < a.length; i++) {
  9493. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9494. this.askJson =
  9495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9496. itemTaskIndex
  9497. ].chapterData[i].askJson;
  9498. }
  9499. }
  9500. } else {
  9501. this.askJson = JSON.parse(
  9502. JSON.stringify(
  9503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9504. itemTaskIndex
  9505. ].toolChoose[toolIndex]
  9506. )
  9507. );
  9508. }
  9509. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  9510. this.dialogVisible5 = true;
  9511. } else if (i == 45) {
  9512. if (
  9513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9514. .toolChoose[toolIndex].testJson
  9515. ) {
  9516. this.testJson = JSON.parse(
  9517. JSON.stringify(
  9518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9519. itemTaskIndex
  9520. ].toolChoose[toolIndex].testJson
  9521. )
  9522. );
  9523. } else {
  9524. var testJson = {
  9525. testCount: 1,
  9526. testTitle: "",
  9527. testJson: [
  9528. {
  9529. teststitle: "",
  9530. testItem: 1,
  9531. checkList: [],
  9532. timuList: [],
  9533. answer: [],
  9534. type: "1",
  9535. },
  9536. ],
  9537. };
  9538. this.testJson = testJson;
  9539. }
  9540. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9541. this.dialogVisibleChoice = true;
  9542. } else if (i == 47) {
  9543. if (
  9544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9545. .toolChoose[toolIndex].sentenceList
  9546. ) {
  9547. this.sentenceList = JSON.parse(
  9548. JSON.stringify(
  9549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9550. itemTaskIndex
  9551. ].toolChoose[toolIndex].sentenceList
  9552. )
  9553. );
  9554. } else {
  9555. var sentenceList = [
  9556. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9557. ];
  9558. this.sentenceList = sentenceList;
  9559. }
  9560. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9561. this.dialogVisibleSentence = true;
  9562. } else if (i == 48) {
  9563. if (
  9564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9565. .toolChoose[toolIndex].tableJson
  9566. ) {
  9567. this.tableJson = JSON.parse(
  9568. JSON.stringify(
  9569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9570. itemTaskIndex
  9571. ].toolChoose[toolIndex].tableJson
  9572. )
  9573. );
  9574. } else {
  9575. var tableJson = { text: "" };
  9576. this.tableJson = tableJson;
  9577. }
  9578. this.dialogVisibleTable = true;
  9579. } else if (i == 52) {
  9580. if (
  9581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9582. .toolChoose[toolIndex].wordJson
  9583. ) {
  9584. this.wordJson = JSON.parse(
  9585. JSON.stringify(
  9586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9587. itemTaskIndex
  9588. ].toolChoose[toolIndex].wordJson
  9589. )
  9590. );
  9591. } else {
  9592. var wordJson = { text: "" };
  9593. this.wordJson = wordJson;
  9594. }
  9595. this.dialogVisibleWord = true;
  9596. // else if (i == 50) {
  9597. // if (
  9598. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9599. // .toolChoose[toolIndex].uploadJson
  9600. // ) {
  9601. // this.uploadJson = JSON.parse(
  9602. // JSON.stringify(
  9603. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9604. // itemTaskIndex
  9605. // ].toolChoose[toolIndex].uploadJson
  9606. // )
  9607. // );
  9608. // } else {
  9609. // var uploadJson = [];
  9610. // this.uploadJson = uploadJson;
  9611. // }
  9612. // this.dialogVisibleMoreUpload = true;
  9613. // }
  9614. } else if (i == 10) {
  9615. if (
  9616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9617. .toolChoose[toolIndex].preTime
  9618. ) {
  9619. this.preTime = JSON.parse(
  9620. JSON.stringify(
  9621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9622. itemTaskIndex
  9623. ].toolChoose[toolIndex].preTime
  9624. )
  9625. );
  9626. } else {
  9627. var preTime = 0;
  9628. this.preTime = preTime;
  9629. }
  9630. this.dialogVisiblePreTime = true;
  9631. } else if (i == 49) {
  9632. if (
  9633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9634. .toolChoose[toolIndex].groupJson
  9635. ) {
  9636. this.groupJson = JSON.parse(
  9637. JSON.stringify(
  9638. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9639. itemTaskIndex
  9640. ].toolChoose[toolIndex].groupJson
  9641. )
  9642. );
  9643. } else {
  9644. var groupJson = {
  9645. group: [{ name: "第1组" }],
  9646. number: undefined,
  9647. islock: 1,
  9648. };
  9649. this.groupJson = groupJson;
  9650. }
  9651. this.dialogVisibleGroup = true;
  9652. } else if (i == 62) {
  9653. if (
  9654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9655. .toolChoose[toolIndex].videoJson
  9656. ) {
  9657. this.videoJson = JSON.parse(
  9658. JSON.stringify(
  9659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9660. itemTaskIndex
  9661. ].toolChoose[toolIndex].videoJson
  9662. )
  9663. );
  9664. } else {
  9665. var videoJson = {
  9666. video: "",
  9667. setting: [],
  9668. };
  9669. this.videoJson = videoJson;
  9670. }
  9671. this.dialogVisibleVideo = true;
  9672. } else if (i == 15) {
  9673. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9674. itemTaskIndex
  9675. ].toolChoose[toolIndex].answerQ
  9676. ? JSON.parse(
  9677. JSON.stringify(
  9678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9679. itemTaskIndex
  9680. ].toolChoose[toolIndex].answerQ
  9681. )
  9682. )
  9683. : "";
  9684. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9685. this.dialogVisible8 = true;
  9686. } else if (i == 40) {
  9687. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9688. itemTaskIndex
  9689. ].toolChoose[toolIndex].rateJson
  9690. ? JSON.parse(
  9691. JSON.stringify(
  9692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9693. itemTaskIndex
  9694. ].toolChoose[toolIndex].rateJson
  9695. )
  9696. )
  9697. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9698. this.selectSteps = 1;
  9699. this.dialogVisibleRate = true;
  9700. } else if (i == 42) {
  9701. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9702. itemTaskIndex
  9703. ].toolChoose[toolIndex].answerQ
  9704. ? JSON.parse(
  9705. JSON.stringify(
  9706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9707. itemTaskIndex
  9708. ].toolChoose[toolIndex].answerQ
  9709. )
  9710. )
  9711. : "";
  9712. this.dialogVisibleMp3 = true;
  9713. } else if (i == 41) {
  9714. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9715. itemTaskIndex
  9716. ].toolChoose[toolIndex].selectJson
  9717. ? JSON.parse(
  9718. JSON.stringify(
  9719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9720. itemTaskIndex
  9721. ].toolChoose[toolIndex].selectJson
  9722. )
  9723. )
  9724. : { url: "", select: [], answer: [] };
  9725. this.selectSteps = 1;
  9726. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9727. this.dialogVisibleSelect = true;
  9728. } else if (i == 3) {
  9729. top.postMessage(
  9730. {
  9731. tools: "3y",
  9732. cid: this.cid,
  9733. stage: this.unitIndex,
  9734. task: itemTaskIndex,
  9735. tool: toolIndex,
  9736. },
  9737. "*"
  9738. );
  9739. } else if (i == 1) {
  9740. top.postMessage(
  9741. {
  9742. tools: "1y",
  9743. cid: this.cid,
  9744. stage: this.unitIndex,
  9745. task: itemTaskIndex,
  9746. tool: toolIndex,
  9747. },
  9748. "*"
  9749. );
  9750. } else if (i == 57) {
  9751. top.postMessage(
  9752. {
  9753. tools: "57y",
  9754. cid: this.cid,
  9755. stage: this.unitIndex,
  9756. task: itemTaskIndex,
  9757. tool: toolIndex,
  9758. },
  9759. "*"
  9760. );
  9761. } else if (i == 69) {
  9762. this.englishList = {};
  9763. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9764. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9765. ? JSON.parse(
  9766. JSON.stringify(
  9767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9768. itemTaskIndex
  9769. ].toolChoose[toolIndex].englishList
  9770. )
  9771. )
  9772. : {};
  9773. this.$forceUpdate();
  9774. this.englishDialogVisible = true;
  9775. } else if (i == 70) {
  9776. this.englishVoiceJson = {};
  9777. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9778. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9779. ? JSON.parse(
  9780. JSON.stringify(
  9781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9782. itemTaskIndex
  9783. ].toolChoose[toolIndex].englishVoiceJson
  9784. )
  9785. )
  9786. : {
  9787. title: '',
  9788. detail: '',
  9789. array: []
  9790. };
  9791. // {
  9792. // time: "",
  9793. // class: "",
  9794. // difficulty: 0,
  9795. // topic: "",
  9796. // isShow: false,
  9797. // eva: 0,
  9798. // aiEva: {
  9799. // isAiEva: false,
  9800. // aiEvaChoose: [],
  9801. // },
  9802. // allfType: [],
  9803. // englishJson: {},
  9804. // };
  9805. this.$forceUpdate();
  9806. this.EnglishVoiceDialog = true;
  9807. }
  9808. },
  9809. setEnglishVoiceJson(val) {
  9810. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9811. this.taskCount
  9812. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9813. JSON.stringify(val)
  9814. );
  9815. this.$forceUpdate();
  9816. if (
  9817. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9818. .toolChoose[this.toolIndex].tool != 70
  9819. ) {
  9820. this.addTools(70, this.taskCount, this.toolIndex);
  9821. }
  9822. },
  9823. chapAddTools(i) {
  9824. if (this.chapTools[0].tools.length == 0) {
  9825. this.chapTools[0].tools.push(i);
  9826. } else {
  9827. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9828. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9829. } else {
  9830. this.chapTools[0].tools.push(i);
  9831. }
  9832. }
  9833. this.$forceUpdate();
  9834. },
  9835. addChaptersDataTools() {
  9836. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9838. this.chapCount
  9839. ].chapterData.push({
  9840. name: this.chapTools[0].toolDetail,
  9841. url: this.chapTools[0].tools,
  9842. type: 7,
  9843. askJson: this.askJson,
  9844. });
  9845. } else {
  9846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9847. this.chapCount
  9848. ].chapterData.push({
  9849. name: this.chapTools[0].toolDetail,
  9850. url: this.chapTools[0].tools,
  9851. type: 7,
  9852. });
  9853. }
  9854. this.imgChange1(null, null, 7, this.chapCount);
  9855. this.dialogVisible4 = false;
  9856. },
  9857. addTools(i, itemTaskIndex, toolIndex) {
  9858. // if (
  9859. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9860. // .toolChoose[toolIndex].tool.length == 0
  9861. // ) {
  9862. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9863. // itemTaskIndex
  9864. // ].toolChoose[toolIndex].tool.push(i);
  9865. // } else {
  9866. // if (
  9867. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9868. // itemTaskIndex
  9869. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9870. // ) {
  9871. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9872. // itemTaskIndex
  9873. // ].toolChoose[toolIndex].tool.splice(
  9874. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9875. // itemTaskIndex
  9876. // ].toolChoose[toolIndex].tool.indexOf(i),
  9877. // 1
  9878. // );
  9879. // } else {
  9880. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9881. // itemTaskIndex
  9882. // ].toolChoose[toolIndex].tool.push(i);
  9883. // }
  9884. // console.log(
  9885. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9886. // .toolChoose[toolIndex].tool
  9887. // );
  9888. // }
  9889. if (i == 4) {
  9890. if (
  9891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9892. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9893. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9894. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9895. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9896. .toolChoose[toolIndex].askJson[0].checkList < 2
  9897. ) {
  9898. this.openTools(itemTaskIndex, 4, toolIndex);
  9899. // this.$message({
  9900. // message: "请填写完整问卷内容",
  9901. // type: "error",
  9902. // });
  9903. return;
  9904. }
  9905. }
  9906. if (i == 45) {
  9907. if (
  9908. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9909. .toolChoose[toolIndex].testJson ||
  9910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9911. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9912. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9913. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9914. ) {
  9915. this.openTools(itemTaskIndex, 45, toolIndex);
  9916. // this.$message({
  9917. // message: "请填写完整问卷内容",
  9918. // type: "error",
  9919. // });
  9920. return;
  9921. }
  9922. }
  9923. if (i == 47) {
  9924. if (
  9925. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9926. .toolChoose[toolIndex].sentenceList ||
  9927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9928. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9929. ) {
  9930. this.openTools(itemTaskIndex, 47, toolIndex);
  9931. return;
  9932. }
  9933. }
  9934. if (i == 69) {
  9935. if (
  9936. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9937. .toolChoose[toolIndex].englishList
  9938. ) {
  9939. this.openTools(itemTaskIndex, 69, toolIndex);
  9940. return;
  9941. }
  9942. }
  9943. if (i == 70) {
  9944. if (
  9945. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9946. .toolChoose[toolIndex].englishVoiceJson
  9947. ) {
  9948. this.openTools(itemTaskIndex, 70, toolIndex);
  9949. return;
  9950. }
  9951. }
  9952. // if (i == 48) {
  9953. // if (
  9954. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9955. // .toolChoose[toolIndex].tableJson
  9956. // ) {
  9957. // this.openTools(itemTaskIndex, 48, toolIndex);
  9958. // return;
  9959. // }
  9960. // }
  9961. // if (i == 50) {
  9962. // if (
  9963. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9964. // .toolChoose[toolIndex].uploadJson
  9965. // ) {
  9966. // this.openTools(itemTaskIndex, 50, toolIndex);
  9967. // return;
  9968. // }
  9969. // }
  9970. if (i == 49) {
  9971. if (
  9972. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9973. .toolChoose[toolIndex].groupJson
  9974. ) {
  9975. this.openTools(itemTaskIndex, 49, toolIndex);
  9976. return;
  9977. }
  9978. }
  9979. if (i == 62) {
  9980. if (
  9981. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9982. .toolChoose[toolIndex].videoJson
  9983. ) {
  9984. this.openTools(itemTaskIndex, 62, toolIndex);
  9985. return;
  9986. }
  9987. }
  9988. if (i == 15) {
  9989. if (
  9990. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9991. .toolChoose[toolIndex].answerQ ||
  9992. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9993. .toolChoose[toolIndex].answerQ == ""
  9994. ) {
  9995. this.openTools(itemTaskIndex, 15, toolIndex);
  9996. // this.$message({
  9997. // message: "请填写问答内容",
  9998. // type: "error",
  9999. // });
  10000. return;
  10001. }
  10002. }
  10003. if (i == 40) {
  10004. if (
  10005. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10006. .toolChoose[toolIndex].rateJson ||
  10007. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10008. .toolChoose[toolIndex].rateJson.length
  10009. ) {
  10010. this.openTools(itemTaskIndex, 40, toolIndex);
  10011. return;
  10012. }
  10013. }
  10014. if (i == 41) {
  10015. if (
  10016. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10017. .toolChoose[toolIndex].selectJson ||
  10018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10019. .toolChoose[toolIndex].selectJson.url == "" ||
  10020. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10021. .toolChoose[toolIndex].selectJson.select.length ||
  10022. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10023. .toolChoose[toolIndex].selectJson.answer.length
  10024. ) {
  10025. this.openTools(itemTaskIndex, 41, toolIndex);
  10026. return;
  10027. }
  10028. }
  10029. if (i == 42) {
  10030. if (
  10031. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10032. .toolChoose[toolIndex].answerQ ||
  10033. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10034. .toolChoose[toolIndex].answerQ == ""
  10035. ) {
  10036. this.openTools(itemTaskIndex, 42, toolIndex);
  10037. return;
  10038. }
  10039. }
  10040. if (
  10041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10042. .toolChoose[toolIndex].tool.length > 0
  10043. ) {
  10044. if (
  10045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10046. itemTaskIndex
  10047. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  10048. ) {
  10049. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10050. itemTaskIndex
  10051. ].toolChoose[toolIndex].tool.splice(
  10052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10053. itemTaskIndex
  10054. ].toolChoose[toolIndex].tool.indexOf(i),
  10055. 1
  10056. );
  10057. } else {
  10058. // this.$message({
  10059. // message: "每个工具只能添加一个",
  10060. // type: "error",
  10061. // });
  10062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10063. itemTaskIndex
  10064. ].toolChoose[toolIndex].tool = [];
  10065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10066. itemTaskIndex
  10067. ].toolChoose[toolIndex].tool.push(i);
  10068. }
  10069. } else {
  10070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10071. itemTaskIndex
  10072. ].toolChoose[toolIndex].tool.push(i);
  10073. }
  10074. this.$forceUpdate();
  10075. },
  10076. addAskList(index) {
  10077. this.askJson.askJson.splice(index + 1, 0, {
  10078. askstitle: "",
  10079. askItem: 1,
  10080. checkList: [],
  10081. });
  10082. this.askJson.askCount++;
  10083. },
  10084. addTestList(index) {
  10085. this.testJson.testJson.splice(index + 1, 0, {
  10086. teststitle: "",
  10087. testItem: 1,
  10088. checkList: [],
  10089. timuList: [],
  10090. answer: [],
  10091. type: "1",
  10092. });
  10093. this.testJson.testCount++;
  10094. },
  10095. deleteAskList(index) {
  10096. if (
  10097. !this.askJson.askJson[index].askstitle &&
  10098. this.askJson.askJson[index].askItem == 1 &&
  10099. !this.askJson.askJson[index].checkList[0]
  10100. ) {
  10101. this.askJson.askJson.splice(index, 1);
  10102. this.askJson.askCount--;
  10103. } else {
  10104. let _this = this;
  10105. _this
  10106. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10107. confirmButtonText: "确定",
  10108. cancelButtonText: "取消",
  10109. type: "warning",
  10110. })
  10111. .then(() => {
  10112. _this.askJson.askJson.splice(index, 1);
  10113. _this.askJson.askCount--;
  10114. })
  10115. .catch(() => {
  10116. return;
  10117. });
  10118. }
  10119. },
  10120. deleteTestList(index) {
  10121. if (
  10122. !this.testJson.testJson[index].teststitle &&
  10123. this.testJson.testJson[index].testItem == 1 &&
  10124. !this.testJson.testJson[index].checkList[0]
  10125. ) {
  10126. this.testJson.testJson.splice(index, 1);
  10127. this.testJson.testCount--;
  10128. } else {
  10129. let _this = this;
  10130. _this
  10131. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10132. confirmButtonText: "确定",
  10133. cancelButtonText: "取消",
  10134. type: "warning",
  10135. })
  10136. .then(() => {
  10137. _this.testJson.testJson.splice(index, 1);
  10138. _this.testJson.testCount--;
  10139. })
  10140. .catch(() => {
  10141. return;
  10142. });
  10143. }
  10144. },
  10145. askMove(type, index) {
  10146. if (type == 1) {
  10147. if (index > 0) {
  10148. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  10149. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10150. this.askJson.askJson[index - 1] = b;
  10151. this.askJson.askJson[index] = a;
  10152. }
  10153. } else {
  10154. if (index < this.askJson.askJson.length - 1) {
  10155. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  10156. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10157. this.askJson.askJson[index + 1] = b;
  10158. this.askJson.askJson[index] = a;
  10159. }
  10160. }
  10161. this.$forceUpdate();
  10162. },
  10163. checkMove(type, index, checkIndex) {
  10164. if (type == 1) {
  10165. if (checkIndex > 0) {
  10166. let a = JSON.parse(
  10167. JSON.stringify(
  10168. this.askJson.askJson[index].checkList[checkIndex - 1]
  10169. )
  10170. );
  10171. let b = JSON.parse(
  10172. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10173. );
  10174. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  10175. this.askJson.askJson[index].checkList[checkIndex] = a;
  10176. }
  10177. } else {
  10178. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  10179. let a = JSON.parse(
  10180. JSON.stringify(
  10181. this.askJson.askJson[index].checkList[checkIndex + 1]
  10182. )
  10183. );
  10184. let b = JSON.parse(
  10185. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  10186. );
  10187. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  10188. this.askJson.askJson[index].checkList[checkIndex] = a;
  10189. }
  10190. }
  10191. this.$forceUpdate();
  10192. },
  10193. testMove(type, index) {
  10194. if (type == 1) {
  10195. if (index > 0) {
  10196. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  10197. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10198. this.testJson.testJson[index - 1] = b;
  10199. this.testJson.testJson[index] = a;
  10200. }
  10201. } else {
  10202. if (index < this.testJson.testJson.length - 1) {
  10203. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  10204. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10205. this.testJson.testJson[index + 1] = b;
  10206. this.testJson.testJson[index] = a;
  10207. }
  10208. }
  10209. this.$forceUpdate();
  10210. },
  10211. tcheckMove(type, index, checkIndex) {
  10212. if (type == 1) {
  10213. if (checkIndex > 0) {
  10214. let a = JSON.parse(
  10215. JSON.stringify(
  10216. this.testJson.testJson[index].checkList[checkIndex - 1]
  10217. )
  10218. );
  10219. let b = JSON.parse(
  10220. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10221. );
  10222. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  10223. this.testJson.testJson[index].checkList[checkIndex] = a;
  10224. }
  10225. } else {
  10226. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  10227. let a = JSON.parse(
  10228. JSON.stringify(
  10229. this.testJson.testJson[index].checkList[checkIndex + 1]
  10230. )
  10231. );
  10232. let b = JSON.parse(
  10233. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  10234. );
  10235. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  10236. this.testJson.testJson[index].checkList[checkIndex] = a;
  10237. }
  10238. }
  10239. this.$forceUpdate();
  10240. },
  10241. addcheckList(json, index) {
  10242. // json.checkList.length++;
  10243. json.checkList.splice(index + 1, 0, "");
  10244. json.askItem++;
  10245. this.$forceUpdate();
  10246. },
  10247. deletecheckList(json, index) {
  10248. // json.checkList.length--;
  10249. json.checkList.splice(index, 1);
  10250. json.askItem--;
  10251. this.$forceUpdate();
  10252. },
  10253. addTcheckList(json, index) {
  10254. // json.checkList.length++;
  10255. json.checkList.splice(index + 1, 0, "");
  10256. json.testItem++;
  10257. this.$forceUpdate();
  10258. },
  10259. deleteTcheckList(json, index) {
  10260. // json.checkList.length--;
  10261. json.checkList.splice(index, 1);
  10262. json.testItem--;
  10263. this.$forceUpdate();
  10264. },
  10265. checkTestType(type, json) {
  10266. json.type = type;
  10267. setTimeout(() => {
  10268. json.answer = [];
  10269. }, 100);
  10270. },
  10271. checkAskType(type, json) {
  10272. json.type = type;
  10273. // json.checkList = [];
  10274. this.$forceUpdate();
  10275. },
  10276. addSelectList(json) {
  10277. json.select.push("");
  10278. json.answer.push("");
  10279. },
  10280. deleteSelectList(json) {
  10281. // json.select.length--;
  10282. // json.answer.length--;
  10283. json.select.splice(json.select.length - 1, 1);
  10284. json.answer.splice(json.answer.length - 1, 1);
  10285. },
  10286. addAsk() {
  10287. if (this.askJson.askTitle === "") {
  10288. this.$message.error("标题不能为空!");
  10289. return;
  10290. }
  10291. var aj = this.askJson.askJson;
  10292. var b = 1;
  10293. for (var i = 0; i < aj.length; i++) {
  10294. if (aj[i].askstitle === "") {
  10295. var a = 1;
  10296. for (let index = 0; index < aj[i].askItem; index++) {
  10297. const element = aj[i].checkList[index]
  10298. ? aj[i].checkList[index]
  10299. : "";
  10300. if (element != "") {
  10301. b++;
  10302. this.$message.error(`请将题目${i + 1}填写完整。`);
  10303. return;
  10304. } else {
  10305. a++;
  10306. }
  10307. }
  10308. if (b == 1) {
  10309. this.$message.error("至少填写一个问题");
  10310. return;
  10311. }
  10312. } else if (aj[i].askstitle != "") {
  10313. for (let index = 0; index < aj[i].askItem; index++) {
  10314. const element = aj[i].checkList[index]
  10315. ? aj[i].checkList[index]
  10316. : "";
  10317. var index = 0;
  10318. for (var z = 0; z < aj[i].checkList.length; z++) {
  10319. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10320. if (checkC != "") {
  10321. index++;
  10322. } else {
  10323. this.$message.error(`题目${i + 1}选项不能为空!`);
  10324. return;
  10325. }
  10326. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10327. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10328. if (checkC == checkC2) {
  10329. this.$message.error(
  10330. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10331. );
  10332. return;
  10333. }
  10334. }
  10335. }
  10336. b++;
  10337. if (index < 2) {
  10338. this.$message.error("每道题目至少需要设置2个选项。");
  10339. return;
  10340. }
  10341. }
  10342. }
  10343. }
  10344. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  10345. var elc = el.checkList.filter((element) => {
  10346. return element != "";
  10347. });
  10348. return el.askstitle != "" && elc.length != 0;
  10349. });
  10350. if (!this.dialogVisible4) {
  10351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10352. this.taskCount
  10353. ].toolChoose[this.toolIndex] = this.askJson;
  10354. }
  10355. this.dialogVisible5 = false;
  10356. if (
  10357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10358. .toolChoose[this.toolIndex].tool != 4
  10359. ) {
  10360. this.addTools(4, this.taskCount, this.toolIndex);
  10361. }
  10362. },
  10363. addTest() {
  10364. // if (this.testJson.testTitle === "") {
  10365. // this.$message.error("标题不能为空!");
  10366. // return;
  10367. // }
  10368. var aj = this.testJson.testJson;
  10369. var b = 1;
  10370. for (var i = 0; i < aj.length; i++) {
  10371. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  10372. var a = 1;
  10373. for (let index = 0; index < aj[i].testItem; index++) {
  10374. const element = aj[i].checkList[index]
  10375. ? aj[i].checkList[index]
  10376. : "";
  10377. if (element != "") {
  10378. b++;
  10379. this.$message.error(`请将题目${i + 1}填写完整。`);
  10380. return;
  10381. } else {
  10382. a++;
  10383. }
  10384. }
  10385. if (b == 1) {
  10386. this.$message.error("至少填写一个问题");
  10387. return;
  10388. }
  10389. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10390. for (let index = 0; index < aj[i].testItem; index++) {
  10391. const element = aj[i].checkList[index]
  10392. ? aj[i].checkList[index]
  10393. : "";
  10394. var index = 0;
  10395. for (var z = 0; z < aj[i].checkList.length; z++) {
  10396. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10397. if (checkC != "") {
  10398. index++;
  10399. } else {
  10400. this.$message.error(`题目${i + 1}选项不能为空!`);
  10401. return;
  10402. }
  10403. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  10404. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10405. if (checkC == checkC2) {
  10406. this.$message.error(
  10407. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10408. );
  10409. return;
  10410. }
  10411. }
  10412. }
  10413. b++;
  10414. if (index < 2) {
  10415. this.$message.error("每道题目至少需要设置2个选项。");
  10416. return;
  10417. }
  10418. if (
  10419. (aj[i].type == "2" && !aj[i].answer.length) ||
  10420. (aj[i].type == "1" &&
  10421. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  10422. (aj[i].answer !== 0 && !aj[i].answer)))
  10423. ) {
  10424. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  10425. return;
  10426. }
  10427. }
  10428. }
  10429. }
  10430. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10431. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10432. var elc = el.checkList.filter((element) => {
  10433. return element != "";
  10434. });
  10435. return (
  10436. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10437. );
  10438. });
  10439. isTestJson.testCount = isTestJson.testJson.length;
  10440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10441. this.taskCount
  10442. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10443. this.dialogVisibleChoice = false;
  10444. if (
  10445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10446. .toolChoose[this.toolIndex].tool != 45
  10447. ) {
  10448. this.addTools(45, this.taskCount, this.toolIndex);
  10449. }
  10450. },
  10451. addVideoJson(videoJson) {
  10452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10453. this.taskCount
  10454. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10455. this.dialogVisibleVideo = false;
  10456. if (
  10457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10458. .toolChoose[this.toolIndex].tool != 62
  10459. ) {
  10460. this.addTools(62, this.taskCount, this.toolIndex);
  10461. }
  10462. },
  10463. //自动获取剪贴板
  10464. pasteOption() {
  10465. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10466. if (!iframe) {
  10467. this.$message.error("请使用AI共创生成题目");
  10468. return;
  10469. }
  10470. let copyData = iframe.contentWindow.copyData;
  10471. if (!copyData || !copyData.selectData.length) {
  10472. this.$message.error("请使用AI共创生成题目");
  10473. return;
  10474. }
  10475. let selectData = copyData.selectData;
  10476. for (var i = 0; i < selectData.length; i++) {
  10477. let answer = 0;
  10478. switch (selectData[i].answer[0]) {
  10479. case "A":
  10480. answer = 0;
  10481. break;
  10482. case "B":
  10483. answer = 1;
  10484. break;
  10485. case "C":
  10486. answer = 2;
  10487. break;
  10488. case "D":
  10489. answer = 3;
  10490. break;
  10491. case "E":
  10492. answer = 4;
  10493. break;
  10494. default:
  10495. break;
  10496. }
  10497. this.testJson.testJson.push({
  10498. teststitle: selectData[i].subject,
  10499. testItem: selectData[i].options.length,
  10500. checkList: selectData[i].options,
  10501. timuList: [],
  10502. answer: answer,
  10503. type: "1",
  10504. });
  10505. this.testJson.testCount++;
  10506. }
  10507. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10508. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10509. var elc = el.checkList.filter((element) => {
  10510. return element != "";
  10511. });
  10512. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  10513. });
  10514. isTestJson.testCount = isTestJson.testJson.length;
  10515. if (!isTestJson.testCount) {
  10516. return;
  10517. }
  10518. this.testJson = isTestJson;
  10519. this.$forceUpdate();
  10520. },
  10521. pasteTask(taskJson) {
  10522. let stageTasksData = [];
  10523. if (taskJson) {
  10524. stageTasksData = taskJson;
  10525. } else {
  10526. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10527. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10528. if (!iframe && !iframe2) {
  10529. this.$message.error("请使用AI共创生成");
  10530. return;
  10531. }
  10532. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10533. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10534. if (
  10535. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  10536. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  10537. ) {
  10538. this.$message.error("请使用AI共创生成");
  10539. return;
  10540. }
  10541. stageTasksData = copyData
  10542. ? copyData.tasksData
  10543. : copyData2
  10544. ? copyData2.tasksData
  10545. : [{ taskName: "", taskDecs: "" }];
  10546. }
  10547. let taskA = [];
  10548. let tasks = stageTasksData;
  10549. for (var j = 0; j < tasks.length; j++) {
  10550. taskA.push({
  10551. task: tasks[j].taskName,
  10552. taskDetail: tasks[j].taskDecs,
  10553. chapterData: [],
  10554. toolText: "",
  10555. toolChoose: [
  10556. {
  10557. tool: [],
  10558. toolDetail: "",
  10559. toolType: 0,
  10560. askCount: 1,
  10561. askTitle: "",
  10562. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10563. },
  10564. ],
  10565. isShowTools: false,
  10566. askCount: 1,
  10567. isFold: 1,
  10568. askTitle: "",
  10569. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10570. checkJson: [{ checkCount: [], checkPerent: [] }],
  10571. homeworkList: [],
  10572. });
  10573. }
  10574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10575. this.$forceUpdate();
  10576. },
  10577. pasteStage(stageJson) {
  10578. let stageData = [];
  10579. if (stageJson) {
  10580. stageData = stageJson;
  10581. } else {
  10582. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10583. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10584. if (!iframe && !iframe2) {
  10585. this.$message.error("请使用AI共创生成");
  10586. return;
  10587. }
  10588. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10589. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10590. if (
  10591. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10592. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10593. ) {
  10594. this.$message.error("请使用AI共创生成");
  10595. return;
  10596. }
  10597. stageData = copyData
  10598. ? copyData.stageData
  10599. : copyData2
  10600. ? copyData2.stageData
  10601. : [""];
  10602. }
  10603. let stage = [];
  10604. for (var i = 0; i < stageData.length; i++) {
  10605. stage.push({
  10606. dyName: stageData[i], //单元标题
  10607. chapterInfo: [
  10608. {
  10609. isread: false,
  10610. chapterid: this.guid(),
  10611. title: "",
  10612. courseName: "",
  10613. taskJson: [
  10614. {
  10615. task: "",
  10616. taskDetail: "",
  10617. chapterData: [],
  10618. toolText: "",
  10619. toolChoose: [
  10620. {
  10621. tool: [],
  10622. toolDetail: "",
  10623. toolType: 0,
  10624. askCount: 1,
  10625. askTitle: "",
  10626. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10627. },
  10628. ],
  10629. isShowTools: false,
  10630. askCount: 1,
  10631. isFold: 1,
  10632. askTitle: "",
  10633. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10634. checkJson: [{ checkCount: [], checkPerent: [] }],
  10635. homeworkList: [],
  10636. },
  10637. ],
  10638. itemCount: 1,
  10639. fileList1: [],
  10640. video: [],
  10641. testData: [],
  10642. pData: [],
  10643. templateArray: [],
  10644. },
  10645. ],
  10646. });
  10647. }
  10648. let _this = this;
  10649. if (stageJson) {
  10650. if (!_this.cid) {
  10651. _this.unitJson = stage;
  10652. } else {
  10653. _this.unitIndex = 0;
  10654. _this.unitJson = stage;
  10655. _this.updateWork();
  10656. }
  10657. } else {
  10658. _this
  10659. .$confirm(
  10660. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10661. "提示",
  10662. {
  10663. confirmButtonText: "确定",
  10664. cancelButtonText: "取消",
  10665. type: "warning",
  10666. }
  10667. )
  10668. .then(() => {
  10669. _this.unitIndex = 0;
  10670. _this.unitJson = stage;
  10671. // _this.steps++;
  10672. _this.updateWork();
  10673. })
  10674. .catch(() => {
  10675. return;
  10676. });
  10677. }
  10678. },
  10679. openStageBox() {
  10680. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10681. this.dialogVisibleStageChange = true;
  10682. },
  10683. updateChange() {
  10684. this.$confirm(
  10685. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10686. "提示",
  10687. {
  10688. confirmButtonText: "确定",
  10689. cancelButtonText: "取消",
  10690. type: "warning",
  10691. }
  10692. )
  10693. .then(() => {
  10694. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10695. this.updateWork();
  10696. this.dialogVisibleStageChange = false;
  10697. })
  10698. .catch(() => {
  10699. return;
  10700. });
  10701. },
  10702. addAnswer() {
  10703. if (this.answerQ == "") {
  10704. this.$message.error("请输入您想要问的问题");
  10705. return;
  10706. }
  10707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10708. this.taskCount
  10709. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10710. this.dialogVisible8 = false;
  10711. if (
  10712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10713. .toolChoose[this.toolIndex].tool != 15
  10714. ) {
  10715. this.addTools(15, this.taskCount, this.toolIndex);
  10716. }
  10717. },
  10718. addMp3Answer() {
  10719. if (this.answerQ == "") {
  10720. this.$message.error("请输入您想要回答的问题");
  10721. return;
  10722. }
  10723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10724. this.taskCount
  10725. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10726. this.dialogVisibleMp3 = false;
  10727. },
  10728. addRateAnswer() {
  10729. var a = 1;
  10730. for (var i = 0; i < this.rateJson.length; i++) {
  10731. if (this.rateJson[i].value == "") {
  10732. a = 2;
  10733. break;
  10734. }
  10735. }
  10736. if (a == 2) {
  10737. this.$message.error("请把评价信息填写完整");
  10738. return;
  10739. }
  10740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10741. this.taskCount
  10742. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10743. this.dialogVisibleRate = false;
  10744. if (
  10745. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10746. .toolChoose[this.toolIndex].tool != 40
  10747. ) {
  10748. this.addTools(40, this.taskCount, this.toolIndex);
  10749. }
  10750. },
  10751. addSelectAnswer() {
  10752. if (this.selectJson.url == "") {
  10753. this.$message.error("请上传题目");
  10754. return;
  10755. }
  10756. if (!this.selectJson.select.length) {
  10757. this.$message.error("请添加选项");
  10758. return;
  10759. }
  10760. if (!this.selectJson.answer.length) {
  10761. this.$message.error("请设置答案");
  10762. return;
  10763. }
  10764. var a = 1;
  10765. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10766. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10767. a = 2;
  10768. }
  10769. }
  10770. if (a == 2) {
  10771. this.$message.error("请设置答案");
  10772. return;
  10773. }
  10774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10775. this.taskCount
  10776. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10777. this.dialogVisibleSelect = false;
  10778. if (
  10779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10780. .toolChoose[this.toolIndex].tool != 41
  10781. ) {
  10782. this.addTools(41, this.taskCount, this.toolIndex);
  10783. }
  10784. },
  10785. nextSelectSteps() {
  10786. if (this.selectJson.url == "") {
  10787. this.$message.error("请上传题目");
  10788. return;
  10789. }
  10790. if (!this.selectJson.select.length) {
  10791. this.$message.error("请添加选项");
  10792. return;
  10793. } else {
  10794. for (var z = 0; z < this.selectJson.select.length; z++) {
  10795. let checkC = this.selectJson.select[z];
  10796. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10797. let checkC2 = this.selectJson.select[z2];
  10798. if (checkC == checkC2) {
  10799. this.$message.error(
  10800. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10801. );
  10802. return;
  10803. }
  10804. }
  10805. }
  10806. }
  10807. var a = 1;
  10808. for (var i = 0; i < this.selectJson.select.length; i++) {
  10809. if (!this.selectJson.select[i]) {
  10810. a = 2;
  10811. }
  10812. }
  10813. if (a == 2) {
  10814. this.$message.error("添加的选项不能为空");
  10815. return;
  10816. }
  10817. this.selectSteps++;
  10818. },
  10819. selectCourseDetail() {
  10820. if (this.cid == "" || this.cid == undefined) {
  10821. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10822. this.isTeacherSee = true;
  10823. }
  10824. console.log("这是新增课程");
  10825. this.selectAllType();
  10826. } else {
  10827. this.isOutline = true
  10828. this.isOutline2 = true
  10829. this.cpoteType = 4
  10830. this.cidType = 1;
  10831. let params = {
  10832. cid: this.cid,
  10833. };
  10834. this.ajax
  10835. .get(this.$store.state.api + "select_course_detail", params)
  10836. .then((res) => {
  10837. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10838. this.courseState = res.data[0][0].state;
  10839. for (var j = 0; j < this.unitJson.length; j++) {
  10840. for (
  10841. var k = 0;
  10842. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10843. k++
  10844. ) {
  10845. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10846. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10847. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10848. : [];
  10849. let _chapterData = [];
  10850. for (
  10851. var c = 0;
  10852. c <
  10853. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10854. .length;
  10855. c++
  10856. ) {
  10857. if (
  10858. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10859. ) {
  10860. _chapterData.push(
  10861. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10862. );
  10863. }
  10864. }
  10865. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10866. _chapterData;
  10867. }
  10868. }
  10869. this.$forceUpdate();
  10870. this.courseName = res.data[0][0].title;
  10871. this.courseText = res.data[0][0].brief;
  10872. this.courseText2 = res.data[0][0].reBrief;
  10873. this.evalua = res.data[0][0].evaId;
  10874. this.cover = JSON.parse(res.data[0][0].cover);
  10875. this.noneBtnImg = this.cover.length >= 1;
  10876. if (res.data[0][0].refile) {
  10877. this.infoData = JSON.parse(res.data[0][0].refile)
  10878. }
  10879. // this.checkboxList =
  10880. // res.data[0][0].course_student.length > 0
  10881. // ? JSON.parse(res.data[0][0].course_student)
  10882. // : [];
  10883. this.checkboxList2 = res.data[0][0].juri
  10884. ? res.data[0][0].juri.split(",")
  10885. : [];
  10886. this.inviteCode = [];
  10887. for (var i = 0; i < res.data[2].length; i++) {
  10888. this.inviteCode.push({
  10889. cid: res.data[2][i].classid,
  10890. ic: res.data[2][i].code,
  10891. });
  10892. }
  10893. this.checkboxList3 = res.data[0][0].course_teacher
  10894. ? res.data[0][0].course_teacher.split(",")
  10895. : [];
  10896. // this.isTeacherSee =
  10897. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10898. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10899. this.myWord = res.data[0][0].template;
  10900. this.templateC.id = "123";
  10901. this.courseUserid = res.data[0][0].userid;
  10902. // if(this.courseUserid == this.userid){
  10903. // this.InviteChange(this.checkboxList2)
  10904. // }
  10905. this.nbOrder = res.data[0][0].ordernumber;
  10906. this.courseTypeId = [];
  10907. for (var i = 0; i < res.data[1].length; i++) {
  10908. this.courseTypeId.push(res.data[1][i].typeid);
  10909. }
  10910. console.log(this.courseTypeId);
  10911. // if (this.timer) clearInterval(this.timer);
  10912. if (this.timer) clearTimeout(this.timer);
  10913. this.timer = null;
  10914. // this.timer = setInterval(() => {
  10915. if(res.data[3].length){
  10916. try {
  10917. this.aiJson = JSON.parse(res.data[3][0].tips);
  10918. this.templateid = res.data[3][0].template;
  10919. }catch(error){
  10920. console.error(error)
  10921. }
  10922. }
  10923. if(res.data[0][0].cpote){
  10924. try {
  10925. this.cpote = JSON.parse(res.data[0][0].cpote);
  10926. }catch(error){
  10927. console.error(error)
  10928. }
  10929. }
  10930. if(res.data[0][0].setting){
  10931. try {
  10932. this.courseJie = JSON.parse(res.data[0][0].setting).courseJie;
  10933. this.courseTime = JSON.parse(res.data[0][0].setting).courseTime;
  10934. }catch(error){
  10935. console.error(error)
  10936. }
  10937. }
  10938. this.isFileSearch = res.data[0][0].iresearch == 1
  10939. this.seleteCourseUpdate();
  10940. this.setMan();
  10941. this.selectAllType();
  10942. this.unitJson[
  10943. this.unitIndex
  10944. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10945. // }, 5000);
  10946. this.$forceUpdate();
  10947. setTimeout(() => {
  10948. this.checkEva(this.evalua);
  10949. setTimeout(() => {
  10950. this.checkEva(this.evalua);
  10951. }, 100);
  10952. }, 100);
  10953. })
  10954. .catch((err) => {
  10955. console.error(err);
  10956. });
  10957. }
  10958. if(this.aiId){
  10959. let params = {
  10960. cid: this.aiId,
  10961. };
  10962. this.ajax
  10963. .get(this.$store.state.api + "select_course_detail", params)
  10964. .then((res) => {
  10965. let _unitJson = JSON.parse(res.data[0][0].chapters);
  10966. let fileInfo = []
  10967. var xianObj = ['DOCX','DOC','PPT','PPTX','MD','TXT','PDF']
  10968. for(var i = 0; i < _unitJson.length; i++){
  10969. let tasks = _unitJson[i].chapterInfo[0].taskJson
  10970. for(var j = 0; j < tasks.length; j++){
  10971. let _infoData = tasks[j].chapterData.filter(el => {
  10972. return xianObj.indexOf(el.url.split(".")[el.url.split(".").length - 1].toLocaleUpperCase()) != -1
  10973. })
  10974. if(_infoData.length){
  10975. fileInfo = [...fileInfo, ..._infoData]
  10976. }
  10977. }
  10978. }
  10979. this.infoData = fileInfo
  10980. this.$forceUpdate();
  10981. this.courseName = res.data[0][0].title;
  10982. this.courseText = res.data[0][0].brief;
  10983. this.courseText2 = res.data[0][0].reBrief;
  10984. this.cover = JSON.parse(res.data[0][0].cover);
  10985. this.noneBtnImg = this.cover.length >= 1;
  10986. this.checkboxList2 = res.data[0][0].juri
  10987. ? res.data[0][0].juri.split(",")
  10988. : [];
  10989. this.inviteCode = [];
  10990. for (var i = 0; i < res.data[2].length; i++) {
  10991. this.inviteCode.push({
  10992. cid: res.data[2][i].classid,
  10993. ic: res.data[2][i].code,
  10994. });
  10995. }
  10996. this.checkboxList3 = res.data[0][0].course_teacher
  10997. ? res.data[0][0].course_teacher.split(",")
  10998. : [];
  10999. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  11000. this.myWord = res.data[0][0].template;
  11001. this.templateC.id = "123";
  11002. this.courseTypeId = [];
  11003. for (var i = 0; i < res.data[1].length; i++) {
  11004. this.courseTypeId.push(res.data[1][i].typeid);
  11005. }
  11006. console.log(this.courseTypeId);
  11007. this.setMan();
  11008. this.unitJson[
  11009. this.unitIndex
  11010. ].chapterInfo[0].taskJson[0].toolOpen = true;
  11011. this.$forceUpdate();
  11012. setTimeout(() => {
  11013. this.checkEva(this.evalua);
  11014. setTimeout(() => {
  11015. this.checkEva(this.evalua);
  11016. }, 100);
  11017. }, 100);
  11018. })
  11019. .catch((err) => {
  11020. console.error(err);
  11021. });
  11022. }
  11023. // if(this.cidType != 1 && this.templateid == ''){
  11024. // this.promptShow = true
  11025. // }
  11026. },
  11027. seleteCourseUpdate() {
  11028. let params = {
  11029. cid: this.cid,
  11030. };
  11031. this.ajax
  11032. .get(this.$store.state.api + "select_course_detail", params)
  11033. .then((res) => {
  11034. // console.log(this.unitJson);
  11035. let unitJson = JSON.parse(res.data[0][0].chapters);
  11036. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  11037. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  11038. let _unitJson = [];
  11039. let _chapAarry = [];
  11040. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  11041. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  11042. let index = 1;
  11043. let chapindex;
  11044. if (_unitJson2.length > unitJson.length) {
  11045. for (let c = 0; c < _unitJson2.length; c++) {
  11046. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  11047. }
  11048. for (let j = 0; j < unitJson.length; j++) {
  11049. let count = 0;
  11050. for (let k = 0; k < _unitJson2.length; k++) {
  11051. if (
  11052. unitJson[j].chapterInfo[0].chapterid ==
  11053. _unitJson2[k].chapterInfo[0].chapterid
  11054. ) {
  11055. count++;
  11056. _chapAarry.splice(
  11057. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11058. 1
  11059. );
  11060. _unitJson.push(unitJson[j]);
  11061. break;
  11062. }
  11063. }
  11064. // if(count === 0){
  11065. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11066. // }
  11067. }
  11068. for (let k = 0; k < _unitJson2.length; k++) {
  11069. if (_unitJson2[k].isUpdate == 1) {
  11070. _chapAarry.splice(
  11071. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  11072. 1
  11073. );
  11074. _unitJson.push(_unitJson2[k]);
  11075. }
  11076. }
  11077. console.log(_chapAarry);
  11078. for (let d = 0; d < _unitJson2.length; d++) {
  11079. if (
  11080. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  11081. ) {
  11082. if (_unitIndex == d) {
  11083. index = 2;
  11084. }
  11085. chapindex = d;
  11086. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  11087. }
  11088. }
  11089. } else {
  11090. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  11091. }
  11092. for (let i = 0; i < unitJson.length; i++) {
  11093. if (
  11094. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  11095. _unitJson[i].chapterInfo[0].chapterid !=
  11096. unitJson[i].chapterInfo[0].chapterid
  11097. ) {
  11098. if (i == _unitJson.length - 1) {
  11099. // this.unitIndex++
  11100. _unitIndex2++;
  11101. }
  11102. _unitJson.splice(i, 0, unitJson[i]);
  11103. } else if (i > _unitJson.length - 1) {
  11104. _unitJson.push(unitJson[i]);
  11105. } else if (
  11106. _unitJson[i].chapterInfo[0].chapterid ==
  11107. unitJson[i].chapterInfo[0].chapterid
  11108. ) {
  11109. _unitJson[i] = unitJson[i];
  11110. }
  11111. // if (i == _unitIndex) {
  11112. // continue;
  11113. // } else
  11114. }
  11115. if (_chapAarry.length && index != 2) {
  11116. if (chapindex < _unitIndex) {
  11117. this.isDelete = 2;
  11118. // this.unitIndex--;
  11119. _unitIndex2--;
  11120. } else if (
  11121. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  11122. _unitJson[_unitIndex].chapterInfo[0].chapterid
  11123. ) {
  11124. this.isDelete = 2;
  11125. for (let n = 0; n < _unitJson.length; n++) {
  11126. if (
  11127. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  11128. _unitJson[n].chapterInfo[0].chapterid
  11129. ) {
  11130. // this.unitIndex = n;
  11131. _unitIndex2 = n;
  11132. _unitJson[n] = _unitJson2[_unitIndex];
  11133. break;
  11134. }
  11135. }
  11136. }
  11137. } else if (index != 2) {
  11138. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  11139. _unitJson2[_unitIndex];
  11140. for (
  11141. var ci = 0;
  11142. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  11143. ci++
  11144. ) {
  11145. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  11146. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  11147. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11148. .toolChoose
  11149. : [];
  11150. let _chapterData = [];
  11151. for (
  11152. var c = 0;
  11153. c <
  11154. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  11155. .length;
  11156. c++
  11157. ) {
  11158. if (
  11159. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11160. .chapterData[c]
  11161. ) {
  11162. _chapterData.push(
  11163. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  11164. .chapterData[c]
  11165. );
  11166. }
  11167. }
  11168. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  11169. _chapterData;
  11170. }
  11171. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  11172. }
  11173. if (index == 1) {
  11174. this.unitJson = _unitJson;
  11175. this.$forceUpdate();
  11176. setTimeout(() => {
  11177. if (this.unitIndex != _unitIndex2) {
  11178. this.isDelete = 2;
  11179. this.unitIndex = _unitIndex2;
  11180. }
  11181. }, 0);
  11182. this.timer = setTimeout(() => {
  11183. this.seleteCourseUpdate();
  11184. }, 1000);
  11185. } else if (index == 2) {
  11186. let _this = this;
  11187. _this
  11188. .$confirm(
  11189. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  11190. "提示",
  11191. {
  11192. confirmButtonText: "需要",
  11193. cancelButtonText: "取消",
  11194. type: "warning",
  11195. }
  11196. )
  11197. .then(() => {
  11198. if (_this.time()) {
  11199. _this.restoreWork(
  11200. _chapAarry[0],
  11201. _unitJson,
  11202. chapindex,
  11203. _unitJson2,
  11204. _unitIndex2
  11205. );
  11206. }
  11207. })
  11208. .catch(() => {
  11209. _this.unitJson = _unitJson;
  11210. _this.$forceUpdate();
  11211. setTimeout(() => {
  11212. if (this.unitIndex != _unitIndex2) {
  11213. this.isDelete = 2;
  11214. this.unitIndex = _unitIndex2;
  11215. }
  11216. }, 0);
  11217. _this.timer = setTimeout(() => {
  11218. _this.seleteCourseUpdate();
  11219. }, 1000);
  11220. });
  11221. }
  11222. // 在复制操作之前记录滚动位置
  11223. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11224. // 执行复制操作
  11225. // 复制操作完成后恢复滚动位置
  11226. this.$nextTick(() => {
  11227. if (this.$refs.scrollContainer) {
  11228. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11229. }
  11230. });
  11231. })
  11232. .catch((err) => {
  11233. console.error(err);
  11234. });
  11235. },
  11236. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  11237. let params = [
  11238. {
  11239. cid: this.cid,
  11240. chapters: JSON.stringify(this.unitJson),
  11241. uid: this.userid,
  11242. chapid: chapid,
  11243. },
  11244. ];
  11245. this.ajax
  11246. .post(this.$store.state.api + "restoreWork", params)
  11247. .then((res) => {
  11248. this.$message({
  11249. message: "恢复成功",
  11250. type: "success",
  11251. });
  11252. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  11253. this.unitJson = unitJson;
  11254. this.$forceUpdate();
  11255. setTimeout(() => {
  11256. if (this.unitIndex != unitIndex2) {
  11257. this.isDelete = 2;
  11258. this.unitIndex = unitIndex2;
  11259. }
  11260. }, 0);
  11261. this.timer = setTimeout(() => {
  11262. this.seleteCourseUpdate();
  11263. }, 1000);
  11264. })
  11265. .catch((err) => {
  11266. this.$message.error("网络不佳");
  11267. console.error(err);
  11268. });
  11269. },
  11270. getTypeName() {
  11271. console.log(this.courseTypeId);
  11272. this.$forceUpdate();
  11273. },
  11274. selectAllType() {
  11275. let params = {
  11276. org: this.org && this.org != "" ? this.org : "",
  11277. oid: this.oid && this.oid != "" ? this.oid : "",
  11278. };
  11279. this.ajax
  11280. .get(this.$store.state.api + "selectAllType", params)
  11281. .then((res) => {
  11282. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11283. res.data[0] = [...res.data[0], ...res.data[4]];
  11284. }
  11285. this.CourseType = res.data;
  11286. this.CourseType2 = [
  11287. { name: "智见课程", id: [] },
  11288. { name: "智行课程", id: [] },
  11289. { name: "智创课程", id: [] },
  11290. ];
  11291. for (var cti = 0; cti < res.data[0].length; cti++) {
  11292. if (
  11293. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11294. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  11295. ) {
  11296. this.CourseType2[0].id.push(res.data[0][cti].id);
  11297. } else if (
  11298. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  11299. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11300. ) {
  11301. this.CourseType2[1].id.push(res.data[0][cti].id);
  11302. } else if (
  11303. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11304. ) {
  11305. this.CourseType2[2].id.push(res.data[0][cti].id);
  11306. }
  11307. if (
  11308. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11309. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  11310. ) {
  11311. res.data[0][cti].name = "年级";
  11312. } else if (
  11313. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  11314. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  11315. ) {
  11316. res.data[0][cti].name = "学科";
  11317. } else if (
  11318. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  11319. ) {
  11320. res.data[0][cti].name = "主题";
  11321. }
  11322. }
  11323. let _courseTypeId = [];
  11324. for (var i = 0; i < res.data[0].length; i++) {
  11325. if (!this.cid) {
  11326. this.courseTypeId[res.data[0][i].id] = [];
  11327. }
  11328. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  11329. // }
  11330. this.CourseTypeJson[res.data[0][i].id] = [];
  11331. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11332. if (res.data[0][i].name == "栏目") {
  11333. this.CourseType[0][i].name = "主题";
  11334. }
  11335. }
  11336. if (res.data[2].length == 0 && res.data[3].length == 0) {
  11337. for (var j = 0; j < res.data[1].length; j++) {
  11338. if (
  11339. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  11340. _courseTypeId.indexOf(res.data[1][j].id) == -1
  11341. ) {
  11342. _courseTypeId.push(res.data[1][j].id);
  11343. }
  11344. if (res.data[0][i].id == res.data[1][j].pid) {
  11345. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11346. }
  11347. }
  11348. } else {
  11349. if (res.data[2].length > 0) {
  11350. for (var j = 0; j < res.data[2].length; j++) {
  11351. if (
  11352. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  11353. _courseTypeId.indexOf(res.data[2][j].id) == -1
  11354. ) {
  11355. _courseTypeId.push(res.data[2][j].id);
  11356. }
  11357. if (res.data[0][i].id == res.data[2][j].pid) {
  11358. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  11359. }
  11360. }
  11361. }
  11362. if (res.data[3].length > 0) {
  11363. for (var j = 0; j < res.data[3].length; j++) {
  11364. if (
  11365. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  11366. _courseTypeId.indexOf(res.data[3][j].id) == -1
  11367. ) {
  11368. _courseTypeId.push(res.data[3][j].id);
  11369. }
  11370. if (res.data[0][i].id == res.data[3][j].pid) {
  11371. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  11372. }
  11373. }
  11374. }
  11375. }
  11376. }
  11377. this.courseTypeId = _courseTypeId;
  11378. })
  11379. .catch((err) => {
  11380. console.error(err);
  11381. });
  11382. },
  11383. selectType() {
  11384. this.ajax
  11385. .get(this.$store.state.api + "selectType")
  11386. .then((res) => {
  11387. this.CourseType = res.data;
  11388. for (var i = 0; i < res.data[0].length; i++) {
  11389. if (!this.cid) {
  11390. this.courseTypeId[res.data[0][i].id] = "";
  11391. }
  11392. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11393. if (res.data[0][i].name == "栏目") {
  11394. this.CourseType[0][i].name = "主题";
  11395. }
  11396. }
  11397. for (var j = 0; j < res.data[1].length; j++) {
  11398. if (res.data[0][i].id == res.data[1][j].pid) {
  11399. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11400. this.CourseTypeJson[res.data[0][i].id] = [];
  11401. }
  11402. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11403. }
  11404. }
  11405. }
  11406. this.selectTypeByOid();
  11407. this.selectTypeByOrg();
  11408. })
  11409. .catch((err) => {
  11410. console.error(err);
  11411. });
  11412. },
  11413. selectTypeByOid() {
  11414. let params = {
  11415. oid: this.oid,
  11416. };
  11417. this.ajax
  11418. .get(this.$store.state.api + "selectTypeByOid", params)
  11419. .then((res) => {
  11420. for (var i = 0; i < res.data[0].length; i++) {
  11421. for (var j = 0; j < res.data[1].length; j++) {
  11422. if (res.data[0][i].id == res.data[1][j].pid) {
  11423. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11424. this.CourseTypeJson[res.data[0][i].id] = [];
  11425. }
  11426. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11427. }
  11428. }
  11429. }
  11430. })
  11431. .catch((err) => {
  11432. console.error(err);
  11433. });
  11434. },
  11435. selectTypeByOrg() {
  11436. let params = {
  11437. oid: this.org,
  11438. };
  11439. this.ajax
  11440. .get(this.$store.state.api + "selectTypeByOrg", params)
  11441. .then((res) => {
  11442. for (var i = 0; i < res.data[0].length; i++) {
  11443. for (var j = 0; j < res.data[1].length; j++) {
  11444. if (res.data[0][i].id == res.data[1][j].pid) {
  11445. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11446. this.CourseTypeJson[res.data[0][i].id] = [];
  11447. }
  11448. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11449. }
  11450. }
  11451. }
  11452. this.$forceUpdate();
  11453. })
  11454. .catch((err) => {
  11455. console.error(err);
  11456. });
  11457. },
  11458. OtherMb(type, task) {
  11459. if (task === 0 || task) {
  11460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11461. task
  11462. ].isEvaFold = true;
  11463. }
  11464. this.typeMode = type;
  11465. setTimeout(() => {
  11466. this.checkEva(this.checkId);
  11467. setTimeout(() => {
  11468. this.checkEva(this.checkId);
  11469. }, 100);
  11470. }, 100);
  11471. },
  11472. openMember() {
  11473. this.searchTN = "";
  11474. this.getTeacher();
  11475. this.dialogVisibleMember = true;
  11476. },
  11477. checkEva(id, type) {
  11478. this.dialogVisiblemb = false;
  11479. this.selectEva();
  11480. if (this.evalua != id && type == 2) {
  11481. this.$message.success("导入成功");
  11482. setTimeout(() => {
  11483. this.checkEva(id);
  11484. }, 100);
  11485. }
  11486. this.evalua = id;
  11487. this.checkId = id;
  11488. if (this.evalua != "") {
  11489. for (var i = 0; i < this.evaJuri.length; i++) {
  11490. if (this.evalua == this.evaJuri[i].id) {
  11491. this.eTitle = this.evaJuri[i].title;
  11492. this.eJson = JSON.parse(this.evaJuri[i].content);
  11493. }
  11494. }
  11495. this.data.data = [];
  11496. this.$forceUpdate();
  11497. setTimeout(() => {
  11498. this.setMindData();
  11499. }, 1000);
  11500. }
  11501. },
  11502. deleteEva() {
  11503. let _this = this;
  11504. if (_this.evalua == "") {
  11505. this.$message.warning("内容已经清空了,请勿重复清空");
  11506. return;
  11507. }
  11508. _this
  11509. .$confirm("确定删除此目标吗?", "提示", {
  11510. confirmButtonText: "确定",
  11511. cancelButtonText: "取消",
  11512. type: "warning",
  11513. })
  11514. .then(() => {
  11515. _this.evalua = "";
  11516. _this.checkId = "";
  11517. _this.eTitle = "";
  11518. let _unitJson = _this.unitJson;
  11519. for (var i = 0; i < _unitJson.length; i++) {
  11520. let _task = _unitJson[i].chapterInfo[0].taskJson;
  11521. for (var j = 0; j < _task.length; j++) {
  11522. let _eList = _task[j].eList;
  11523. for (var k = 0; k < _eList.length; k++) {
  11524. delete _eList[k].target;
  11525. }
  11526. }
  11527. }
  11528. _this.$forceUpdate();
  11529. if (_this.cid) {
  11530. _this.updateWork();
  11531. }
  11532. })
  11533. .catch(() => {
  11534. return;
  11535. });
  11536. },
  11537. selectEva() {
  11538. let params = {
  11539. oid: this.oid,
  11540. };
  11541. this.ajax
  11542. .get(this.$store.state.api + "selectAllEvaluation", params)
  11543. .then((res) => {
  11544. this.evaJuri = res.data[0];
  11545. // 在复制操作之前记录滚动位置
  11546. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  11547. // 执行复制操作
  11548. // 复制操作完成后恢复滚动位置
  11549. this.$nextTick(() => {
  11550. if (this.$refs.scrollContainer) {
  11551. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  11552. }
  11553. });
  11554. })
  11555. .catch((err) => {
  11556. console.error(err);
  11557. });
  11558. },
  11559. setMindData() {
  11560. let targetArray = [];
  11561. this.data.data = [];
  11562. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11563. let _eJson = Object.keys(this.eJson);
  11564. let _e = this.eJson;
  11565. for (let i = 0; i < _eJson.length; i++) {
  11566. let element = _e[_eJson[i]];
  11567. this.data.data.push({
  11568. id: element.id,
  11569. parentid: "root",
  11570. topic: element.name,
  11571. });
  11572. // targetArray.push({
  11573. // id: element.id,
  11574. // parentid: "root",
  11575. // name: element.name,
  11576. // });
  11577. targetArray.push({
  11578. value: element.name,
  11579. label: element.name,
  11580. children: [],
  11581. });
  11582. let _eJsonc = Object.keys(element.child);
  11583. let _e2 = element.child;
  11584. for (let j = 0; j < _eJsonc.length; j++) {
  11585. let _ec = _e2[_eJsonc[j]];
  11586. this.data.data.push({
  11587. id: _ec.id,
  11588. parentid: element.id,
  11589. topic: _ec.name,
  11590. });
  11591. // targetArray.push({
  11592. // id: _ec.id,
  11593. // parentid: element.id,
  11594. // name: _ec.name,
  11595. // });
  11596. targetArray[i].children.push({
  11597. value: _ec.name,
  11598. label: _ec.name,
  11599. children: [],
  11600. });
  11601. let _eJsonz = Object.keys(_ec.child);
  11602. let _e3 = _ec.child;
  11603. for (let z = 0; z < _eJsonz.length; z++) {
  11604. let _ez = _e3[_eJsonz[z]];
  11605. this.data.data.push({
  11606. id: _ez.id,
  11607. parentid: _ec.id,
  11608. topic: _ez.name,
  11609. });
  11610. // targetArray.push({
  11611. // id: _ez.id,
  11612. // parentid: _ec.id,
  11613. // name: _ez.name,
  11614. // });
  11615. targetArray[i].children[j].children.push({
  11616. value: _ez.name,
  11617. label: _ez.name,
  11618. });
  11619. }
  11620. }
  11621. }
  11622. this.targetArray = targetArray;
  11623. this.$forceUpdate();
  11624. },
  11625. /*添加评价 */
  11626. addEList(index, tIndex) {
  11627. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11628. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11629. value: "",
  11630. detail: "",
  11631. score: 5,
  11632. })
  11633. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11634. { value: "", detail: "", score: 5 },
  11635. ]);
  11636. this.$forceUpdate();
  11637. },
  11638. openEList(index, tIndex) {
  11639. this.evaIndex = index;
  11640. this.evatIndex = tIndex;
  11641. this.evaBoxDialog = true;
  11642. },
  11643. addCET(index, tIndex) {
  11644. this.cetIndex = index;
  11645. this.cettIndex = tIndex;
  11646. this.selectAllType1();
  11647. },
  11648. addCETemplate() {
  11649. var array =
  11650. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  11651. .eList;
  11652. let params = [
  11653. {
  11654. uid: this.userid,
  11655. n: this.templateName,
  11656. json: JSON.stringify(array),
  11657. t: 1,
  11658. oid: this.oid,
  11659. },
  11660. ];
  11661. this.ajax
  11662. .post(this.$store.state.api + "addCETShare", params)
  11663. .then((res) => {
  11664. this.addTypeByCET(res.data[0][0].id);
  11665. })
  11666. .catch((err) => {
  11667. this.$message.error("网络不佳");
  11668. console.error(err);
  11669. });
  11670. },
  11671. addTypeByCET(id) {
  11672. if (this.setTypeJson.two == "") {
  11673. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  11674. return;
  11675. }
  11676. let params = {
  11677. cid: id,
  11678. };
  11679. this.ajax
  11680. .get(this.$store.state.api + "deleteCETLabel", params)
  11681. .then((res) => {
  11682. for (var i = 0; i < 2; i++) {
  11683. let tid = "";
  11684. if (i == 0) {
  11685. tid = this.setTypeJson.one;
  11686. } else {
  11687. tid = this.setTypeJson.two;
  11688. }
  11689. let params = [
  11690. {
  11691. cid: id,
  11692. tid: tid,
  11693. uid: this.userid,
  11694. },
  11695. ];
  11696. this.ajax
  11697. .post(this.$store.state.api + "addCETLabel", params)
  11698. .then((res) => {
  11699. this.$message({
  11700. message: "添加成功",
  11701. type: "success",
  11702. });
  11703. this.close();
  11704. })
  11705. .catch((err) => {
  11706. this.$message.error("网络不佳");
  11707. console.error(err);
  11708. });
  11709. }
  11710. })
  11711. .catch((err) => {
  11712. this.$message.error("网络不佳");
  11713. console.error(err);
  11714. });
  11715. },
  11716. updateEvaJson(array) {
  11717. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11718. this.evatIndex
  11719. ].eList = array;
  11720. },
  11721. forceUpdate() {
  11722. this.$forceUpdate();
  11723. },
  11724. deletEList(index, tIndex, eIndex) {
  11725. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11726. eIndex,
  11727. 1
  11728. );
  11729. this.$forceUpdate();
  11730. },
  11731. getChoosePic(t) {
  11732. this.chooseType = t;
  11733. this.getAllBanner();
  11734. },
  11735. getAllBanner() {
  11736. this.sysPicVisible = true;
  11737. let params = {
  11738. t: this.chooseType,
  11739. };
  11740. this.ajax
  11741. .get(this.$store.state.api + "selectAllBanner", params)
  11742. .then((res) => {
  11743. this.sysPic = res.data[0];
  11744. })
  11745. .catch((err) => {
  11746. console.error(err);
  11747. });
  11748. },
  11749. // getClass() {
  11750. // let params = {
  11751. // oid: this.oid,
  11752. // };
  11753. // this.ajax
  11754. // .get(this.$store.state.api + "selectClassBySchool", params)
  11755. // .then((res) => {
  11756. // this.classJuri = res.data[0];
  11757. // })
  11758. // .catch((err) => {
  11759. // console.error(err);
  11760. // });
  11761. // },
  11762. deleteSysPic() {
  11763. this.cover = [];
  11764. this.isSysPic = false;
  11765. this.isSysPic2 = false;
  11766. },
  11767. deleteSelectPic() {
  11768. this.selectJson.url = "";
  11769. },
  11770. setEListStar() {
  11771. this.$forceUpdate();
  11772. },
  11773. deletRateList(i) {
  11774. this.rateJson.splice(i, 1);
  11775. },
  11776. addRateList() {
  11777. this.rateJson.push({ detail: "", score: 5, value: "" });
  11778. },
  11779. addSt() {
  11780. this.sentenceList.push({
  11781. sentenceTitle: "",
  11782. addSentence: [],
  11783. rightAnswer: [],
  11784. });
  11785. },
  11786. addSen(i) {
  11787. if (!this.sentenceList[i].sentenceTitle) {
  11788. this.$message.error("请填写卡片内容!");
  11789. return;
  11790. }
  11791. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11792. this.$message.error("卡片内容字数不能超过10位");
  11793. return;
  11794. }
  11795. if (
  11796. this.sentenceList[i].addSentence.indexOf(
  11797. this.sentenceList[i].sentenceTitle
  11798. ) !== -1
  11799. ) {
  11800. this.$message.error("不能添加重复的卡片内容!");
  11801. return;
  11802. }
  11803. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11804. // this.isPushTitleList.push(this.sentenceTitle);
  11805. this.sentenceList[i].sentenceTitle = "";
  11806. },
  11807. setRightAnswer(s, i, j) {
  11808. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11809. this.sentenceList[i].rightAnswer.push(s);
  11810. }
  11811. },
  11812. returnCard(r, i, j) {
  11813. this.sentenceList[i].rightAnswer.splice(j, 1);
  11814. },
  11815. addSentenceTool() {
  11816. for (var i = 0; i < this.sentenceList.length; i++) {
  11817. if (this.sentenceList[i].rightAnswer.length == 0) {
  11818. this.$message.error(`请将题目${i + 1}设置完整。`);
  11819. return;
  11820. }
  11821. if (
  11822. this.sentenceList[i].addSentence.length !=
  11823. this.sentenceList[i].rightAnswer.length
  11824. ) {
  11825. this.$message.error(`请将题目${i + 1}设置完整。`);
  11826. return;
  11827. }
  11828. }
  11829. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11830. this.taskCount
  11831. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11832. this.sentenceList = [
  11833. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11834. ];
  11835. this.dialogVisibleSentence = false;
  11836. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11837. // itemTaskIndex
  11838. // ].toolChoose[toolIndex].tool = [];
  11839. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11840. // itemTaskIndex
  11841. // ].toolChoose[toolIndex].tool.push(i);
  11842. if (
  11843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11844. .toolChoose[this.toolIndex].tool != 47
  11845. ) {
  11846. this.addTools(47, this.taskCount, this.toolIndex);
  11847. }
  11848. },
  11849. addTableJson() {
  11850. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11851. // this.$message.error("请将信息填写完整!");
  11852. // return;
  11853. // }
  11854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11855. this.taskCount
  11856. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11857. // this.tableJson = [{ text: "" }];
  11858. // this.dialogVisibleTable = false;
  11859. this.$message.success("上传成功");
  11860. if (
  11861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11862. .toolChoose[this.toolIndex].tool != 48
  11863. ) {
  11864. this.addTools(48, this.taskCount, this.toolIndex);
  11865. }
  11866. },
  11867. addWordJson() {
  11868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11869. this.taskCount
  11870. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11871. // this.wordJson = [{ text: "" }];
  11872. // this.dialogVisibleWord = false;
  11873. this.$message.success("上传成功");
  11874. if (
  11875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11876. .toolChoose[this.toolIndex].tool != 52
  11877. ) {
  11878. this.addTools(52, this.taskCount, this.toolIndex);
  11879. }
  11880. },
  11881. addMoreUpload() {
  11882. if (this.uploadJson.length == 0) {
  11883. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11884. this.taskCount
  11885. ].toolChoose[this.toolIndex].uploadJson = [];
  11886. } else {
  11887. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11888. this.taskCount
  11889. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11890. }
  11891. this.uploadJson = [];
  11892. this.dialogVisibleMoreUpload = false;
  11893. if (
  11894. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11895. .toolChoose[this.toolIndex].tool != 50
  11896. ) {
  11897. this.addTools(50, this.taskCount, this.toolIndex);
  11898. }
  11899. },
  11900. addPreTime() {
  11901. if (this.preTime == 0) {
  11902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11903. this.taskCount
  11904. ].toolChoose[this.toolIndex].preTime = 0;
  11905. } else {
  11906. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11907. this.taskCount
  11908. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11909. }
  11910. this.preTime = 0;
  11911. this.dialogVisiblePreTime = false;
  11912. if (
  11913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11914. .toolChoose[this.toolIndex].tool != 10
  11915. ) {
  11916. this.addTools(10, this.taskCount, this.toolIndex);
  11917. }
  11918. },
  11919. goToTask(i) {
  11920. this.toolIndexType = "";
  11921. if (this.isClickColor == i + 1) {
  11922. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11923. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11924. // } else {
  11925. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11926. i
  11927. ].toolOpen = true;
  11928. // }
  11929. this.$forceUpdate();
  11930. return;
  11931. }
  11932. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11933. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11934. // } else {
  11935. document.querySelectorAll(".basic_box")[0].scrollTop =
  11936. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11937. this.isClickColor = i + 1;
  11938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11939. // }
  11940. this.$forceUpdate();
  11941. },
  11942. taskOpen(i, stageIndex) {
  11943. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11944. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11945. } else {
  11946. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11947. }
  11948. this.updateWork3(stageIndex);
  11949. this.$forceUpdate();
  11950. },
  11951. goToTask2(i, stage) {
  11952. this.toolIndexType = "";
  11953. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11954. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11955. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11956. // } else {
  11957. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11958. i
  11959. ].toolOpen = true;
  11960. // }
  11961. this.$forceUpdate();
  11962. return;
  11963. }
  11964. if (this.unitIndex != stage) {
  11965. if (this.panUnitJson() == 2) {
  11966. return;
  11967. }
  11968. this.unitSet(stage);
  11969. }
  11970. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11971. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11972. // } else {
  11973. document.querySelectorAll(".basic_box")[0].scrollTop =
  11974. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11975. this.isClickColor = i + 1;
  11976. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11977. // }
  11978. this.$forceUpdate();
  11979. },
  11980. taskMove(type, index) {
  11981. this.$confirm(
  11982. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11983. "提示",
  11984. {
  11985. confirmButtonText: "确定",
  11986. cancelButtonText: "取消",
  11987. type: "warning",
  11988. }
  11989. )
  11990. .then(() => {
  11991. if (type == 1) {
  11992. if (index > 0) {
  11993. let a = JSON.parse(
  11994. JSON.stringify(
  11995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11996. index - 1
  11997. ]
  11998. )
  11999. );
  12000. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  12001. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12002. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12003. }
  12004. } else {
  12005. if (
  12006. index <
  12007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  12008. ) {
  12009. let a = JSON.parse(
  12010. JSON.stringify(
  12011. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12012. index + 1
  12013. ]
  12014. )
  12015. );
  12016. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  12017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  12018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  12019. }
  12020. }
  12021. this.$forceUpdate();
  12022. })
  12023. .catch(() => {
  12024. return;
  12025. });
  12026. },
  12027. stageMove(type, index) {
  12028. if (type == 1) {
  12029. if (index > 0) {
  12030. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  12031. let acid = JSON.parse(
  12032. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  12033. );
  12034. let bcid = JSON.parse(
  12035. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12036. );
  12037. this.unitJson3[index - 1] = this.unitJson3[index];
  12038. this.unitJson3[index] = a;
  12039. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  12040. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12041. }
  12042. } else {
  12043. if (index < this.unitJson3.length - 1) {
  12044. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  12045. let acid = JSON.parse(
  12046. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  12047. );
  12048. let bcid = JSON.parse(
  12049. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  12050. );
  12051. this.unitJson3[index + 1] = this.unitJson3[index];
  12052. this.unitJson3[index] = a;
  12053. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  12054. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  12055. }
  12056. }
  12057. this.$forceUpdate();
  12058. },
  12059. addGroup(i) {
  12060. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  12061. this.groupJson.group.push({
  12062. name: "第" + (this.groupJson.group.length + 1) + "组",
  12063. });
  12064. },
  12065. deleteGroup(i) {
  12066. this.groupJson.group.splice(i, 1);
  12067. },
  12068. numberPan() {
  12069. if (
  12070. /[^\d]/.test(this.groupJson.number) ||
  12071. this.groupJson.number < 2 ||
  12072. this.groupJson.number > 10
  12073. ) {
  12074. this.$message.error("请输入2-10的数字");
  12075. this.groupJson.number = "";
  12076. }
  12077. },
  12078. numberPanJie() {
  12079. if (/[^\d]/.test(this.courseJie) || this.courseJie < 1) {
  12080. this.$message.error('请输入大于1的数字')
  12081. this.courseJie = 1
  12082. }
  12083. },
  12084. numberPanTime() {
  12085. if (/[^\d]/.test(this.courseTime) || this.courseTime < 1) {
  12086. this.$message.error('请输入大于1的数字')
  12087. this.courseTime = 1
  12088. }
  12089. },
  12090. addGroupJson() {
  12091. for (var i = 0; i < this.groupJson.group.length; i++) {
  12092. if (!this.groupJson.group[i].name) {
  12093. this.$message.error("请将信息填写完整!");
  12094. return;
  12095. }
  12096. }
  12097. if (!this.groupJson.number) {
  12098. this.$message.error("请将信息填写完整!");
  12099. return;
  12100. }
  12101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12102. this.taskCount
  12103. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  12104. JSON.stringify(this.groupJson)
  12105. );
  12106. this.dialogVisibleGroup = false;
  12107. this.groupJson = {};
  12108. if (
  12109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12110. .toolChoose[this.toolIndex].tool != 49
  12111. ) {
  12112. this.addTools(49, this.taskCount, this.toolIndex);
  12113. }
  12114. },
  12115. updateTime(preTime) {
  12116. this.preTime = preTime;
  12117. },
  12118. InviteChange(val) {
  12119. console.log(val);
  12120. let _check = [];
  12121. let _check2 = [];
  12122. for (var i = 0; i < this.grade2.length; i++) {
  12123. var gid = this.grade2[i].id;
  12124. _check.push(gid);
  12125. }
  12126. for (var i = 0; i < this.checkboxList2.length; i++) {
  12127. var _id = this.checkboxList2[i];
  12128. if (_check.indexOf(_id) !== -1) {
  12129. _check2.push(_id);
  12130. }
  12131. }
  12132. this.checkAll = _check2.length === _check.length;
  12133. return;
  12134. let array = JSON.parse(JSON.stringify(val));
  12135. this.inviteCode = this.inviteCode.filter((el) => {
  12136. if (val.indexOf(el.cid) != -1) {
  12137. array.splice(array.indexOf(el.cid), 1);
  12138. return el;
  12139. }
  12140. });
  12141. for (var i = 0; i < array.length; i++) {
  12142. this.getInviteCode(array[i]);
  12143. }
  12144. },
  12145. InviteChange2(val) {
  12146. console.log(val);
  12147. let _check = [];
  12148. let _check2 = [];
  12149. for (var i = 0; i < this.teacherJuri.length; i++) {
  12150. var gid = this.teacherJuri[i].userid;
  12151. _check.push(gid);
  12152. }
  12153. for (var i = 0; i < this.checkboxList3.length; i++) {
  12154. var _id = this.checkboxList3[i];
  12155. if (_check.indexOf(_id) !== -1) {
  12156. _check2.push(_id);
  12157. }
  12158. }
  12159. this.checkAll2 = _check2.length === _check.length;
  12160. this.setMan();
  12161. return;
  12162. let array = JSON.parse(JSON.stringify(val));
  12163. this.inviteCode = this.inviteCode.filter((el) => {
  12164. if (val.indexOf(el.cid) != -1) {
  12165. array.splice(array.indexOf(el.cid), 1);
  12166. return el;
  12167. }
  12168. });
  12169. for (var i = 0; i < array.length; i++) {
  12170. this.getInviteCode(array[i]);
  12171. }
  12172. },
  12173. handleCheckAllChange(val) {
  12174. if (val) {
  12175. for (var i = 0; i < this.grade2.length; i++) {
  12176. var gid = this.grade2[i].id;
  12177. if (this.checkboxList2.indexOf(gid) === -1) {
  12178. this.checkboxList2.push(gid);
  12179. }
  12180. }
  12181. } else {
  12182. let _check = [];
  12183. let _check2 = [];
  12184. for (var i = 0; i < this.grade2.length; i++) {
  12185. var gid = this.grade2[i].id;
  12186. _check.push(gid);
  12187. }
  12188. for (var i = 0; i < this.checkboxList2.length; i++) {
  12189. var _id = this.checkboxList2[i];
  12190. if (_check.indexOf(_id) === -1) {
  12191. _check2.push(_id);
  12192. }
  12193. }
  12194. this.checkboxList2 = _check2;
  12195. }
  12196. this.isIndeterminate = false;
  12197. },
  12198. handleCheckAllChange2(val) {
  12199. if (val) {
  12200. for (var i = 0; i < this.teacherJuri.length; i++) {
  12201. var gid = this.teacherJuri[i].userid;
  12202. if (this.checkboxList3.indexOf(gid) === -1) {
  12203. this.checkboxList3.push(gid);
  12204. }
  12205. }
  12206. } else {
  12207. let _check = [];
  12208. let _check2 = [];
  12209. for (var i = 0; i < this.teacherJuri.length; i++) {
  12210. var gid = this.teacherJuri[i].userid;
  12211. _check.push(gid);
  12212. }
  12213. for (var i = 0; i < this.checkboxList3.length; i++) {
  12214. var _id = this.checkboxList3[i];
  12215. if (_check.indexOf(_id) === -1) {
  12216. _check2.push(_id);
  12217. }
  12218. }
  12219. this.checkboxList3 = _check2;
  12220. }
  12221. this.isIndeterminate2 = false;
  12222. },
  12223. async getInviteCode(cid) {
  12224. let code = this.randomNumber();
  12225. let params = {
  12226. code: code,
  12227. oid: this.oid,
  12228. };
  12229. let type = 1;
  12230. for (var i = 0; i < this.inviteCode.length; i++) {
  12231. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  12232. type = 2;
  12233. }
  12234. }
  12235. if (type == 2) {
  12236. this.getInviteCode(cid);
  12237. return;
  12238. }
  12239. const res = await this.ajax.get(
  12240. this.$store.state.api + "selectInviteCode2",
  12241. params
  12242. );
  12243. if (
  12244. res.data.length &&
  12245. res.data[0].length &&
  12246. res.data[0][0].courseId != this.cid
  12247. ) {
  12248. this.getInviteCode(cid);
  12249. return;
  12250. }
  12251. let array = [];
  12252. for (var i = 0; i < this.inviteCode.length; i++) {
  12253. array.push(this.inviteCode[i].cid);
  12254. }
  12255. if (array.indexOf(cid) != -1) {
  12256. this.inviteCode[array.indexOf(cid)].ic = code;
  12257. } else {
  12258. this.inviteCode.push({ cid: cid, ic: code });
  12259. }
  12260. },
  12261. OpenInviteD(cid) {
  12262. let array = [];
  12263. this.icode = "";
  12264. for (var i = 0; i < this.inviteCode.length; i++) {
  12265. array.push(this.inviteCode[i].cid);
  12266. }
  12267. if (array.indexOf(cid) != -1) {
  12268. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  12269. }
  12270. this.inviteId = cid;
  12271. this.dialogVisibleInvite = true;
  12272. },
  12273. addInvite() {
  12274. let reg = /^[A-Za-z0-9]{4,}$/;
  12275. if (!reg.test(this.icode)) {
  12276. this.$message.error("请输入至少四位数字或英文组合的随机码");
  12277. return;
  12278. }
  12279. let type = 1;
  12280. for (var i = 0; i < this.inviteCode.length; i++) {
  12281. if (
  12282. this.inviteCode[i].cid != this.inviteId &&
  12283. this.icode == this.inviteCode[i].ic
  12284. ) {
  12285. type = 2;
  12286. }
  12287. }
  12288. if (type == 2) {
  12289. this.$message.error("已有此随机码,不能重复");
  12290. return;
  12291. }
  12292. let params = {
  12293. code: this.icode,
  12294. oid: this.oid,
  12295. };
  12296. this.ajax
  12297. .get(this.$store.state.api + "selectInviteCode", params)
  12298. .then((res) => {
  12299. if (
  12300. res.data.length &&
  12301. res.data[0].length &&
  12302. res.data[0][0].courseId != this.cid
  12303. ) {
  12304. this.$message.error("已有此随机码,不能重复");
  12305. return;
  12306. }
  12307. let array = [];
  12308. for (var i = 0; i < this.inviteCode.length; i++) {
  12309. array.push(this.inviteCode[i].cid);
  12310. }
  12311. if (array.indexOf(this.inviteId) != -1) {
  12312. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  12313. } else {
  12314. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  12315. }
  12316. this.icode = "";
  12317. this.dialogVisibleInvite = false;
  12318. })
  12319. .catch((err) => {
  12320. console.error(err);
  12321. });
  12322. },
  12323. randomNumber() {
  12324. // 随机生成两位数
  12325. // let num = Math.floor(Math.random() * 900) + 100;
  12326. // 生成 0 到 99 之间的随机整数
  12327. const randomNumber = Math.floor(Math.random() * 100);
  12328. // 如果随机数小于 10,补上前导零
  12329. const num =
  12330. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  12331. // 随机生成两个大写字母
  12332. let letters = "";
  12333. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  12334. for (let i = 0; i < 3; i++) {
  12335. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  12336. }
  12337. // 随机生成两位数字和字母的组合
  12338. let mix = "";
  12339. let chars =
  12340. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  12341. for (let i = 0; i < 3; i++) {
  12342. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  12343. mix += char;
  12344. }
  12345. // 随机选择一种类型
  12346. let type = Math.floor(Math.random() * 3);
  12347. return num;
  12348. // 根据类型输出结果
  12349. switch (type) {
  12350. case 0:
  12351. console.log(num); // 输出两位数
  12352. return num;
  12353. case 1:
  12354. console.log(letters); // 输出两个大写字母
  12355. return letters;
  12356. case 2:
  12357. console.log(mix); // 输出两位数字和字母的组合
  12358. return mix;
  12359. }
  12360. },
  12361. getPaste() {
  12362. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12363. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12364. if (!iframe && !iframe2) {
  12365. return;
  12366. }
  12367. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12368. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12369. if (copyData && copyData.stageData && copyData.stageData.length) {
  12370. this.isPasteStage = true;
  12371. }
  12372. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  12373. this.isPasteStage = true;
  12374. }
  12375. if (copyData && copyData.selectData.length) {
  12376. this.isPasteChoice = true;
  12377. }
  12378. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  12379. this.isPasteTask = true;
  12380. }
  12381. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  12382. this.isPasteTask = true;
  12383. }
  12384. },
  12385. setCover() {
  12386. var _this = this;
  12387. if(_this.cover.length){
  12388. return;
  12389. }
  12390. _this.imageloading2 = true
  12391. _this.ajax
  12392. .post("https://gpt.cocorobo.cn/search_image", {
  12393. page: _this.ppage,
  12394. pagesize: 9,
  12395. query: _this.courseName,
  12396. })
  12397. .then(function (response) {
  12398. // console.log(response.data.data);
  12399. var data = response.data.FunctionResponse.result;
  12400. _this.cover = [];
  12401.       setTimeout(() => {
  12402.         _this.cover[0] = {
  12403.           name: "网络图片.png",
  12404.           url: data[0].thumbnail
  12405.         };
  12406.         _this.imgChange1(null, null, 1, null);
  12407.         _this.$forceUpdate();
  12408.       }, 0);
  12409. _this.imageloading2 = false
  12410. })
  12411. .catch(function (error) {
  12412. _this.imageloading2 = false
  12413. console.log(error);
  12414. });
  12415. },
  12416. searchImage() {
  12417. var _this = this;
  12418. _this.imageList = [];
  12419. if (!_this.searchImageValue) {
  12420. _this.sysPicVisible2 = true;
  12421. return;
  12422. }
  12423. _this.imageloading = true;
  12424. _this.ajax
  12425. .post("https://gpt.cocorobo.cn/search_image", {
  12426. page: _this.ppage,
  12427. pagesize: 9,
  12428. query: _this.searchImageValue,
  12429. })
  12430. .then(function (response) {
  12431. // console.log(response.data.data);
  12432. var data = response.data.FunctionResponse.result;
  12433. for (var i = 0; i < data.length; i++) {
  12434. _this.imageList.push({ url: data[i].thumbnail });
  12435. }
  12436. _this.imageloading = false;
  12437. })
  12438. .catch(function (error) {
  12439. console.log(error);
  12440. });
  12441. _this.sysPicVisible2 = true;
  12442. },
  12443. changePicture() {
  12444. this.ppage++;
  12445. this.searchImage();
  12446. },
  12447. resetImage() {
  12448. this.ppage = 1;
  12449. this.searchImage();
  12450. },
  12451. jumpGj(i, j) {
  12452. if (i + 1 != this.isClickColor) {
  12453. this.isClickColor = i + 1;
  12454. }
  12455. var a = document.scrollingElement;
  12456. this.toolIndexType = `gj${i}${j}`;
  12457. let target = document.querySelector(`#gj${i}${j}`);
  12458. if (target) {
  12459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12460. setTimeout(() => {
  12461. target.scrollIntoView(true);
  12462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12463. j
  12464. ].isFold3 = false;
  12465. setTimeout(() => {
  12466. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12467. }, 0);
  12468. }, 0);
  12469. }
  12470. },
  12471. jumpGj2(i, j, k) {
  12472. if (this.unitIndex != k) {
  12473. if (this.panUnitJson() == 2) {
  12474. return;
  12475. }
  12476. this.unitSet(k);
  12477. }
  12478. setTimeout(() => {
  12479. if (i + 1 != this.isClickColor) {
  12480. this.isClickColor = i + 1;
  12481. }
  12482. var a = document.scrollingElement;
  12483. this.toolIndexType = `gj${i}${j}${k}`;
  12484. let target = document.querySelector(`#gj${i}${j}`);
  12485. if (target) {
  12486. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  12487. setTimeout(() => {
  12488. target.scrollIntoView(true);
  12489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  12490. j
  12491. ].isFold3 = false;
  12492. setTimeout(() => {
  12493. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  12494. }, 0);
  12495. }, 0);
  12496. }
  12497. }, 0);
  12498. },
  12499. dragStart(val, i, j) {
  12500. console.log(this.taskCount);
  12501. this.dragType = "drag";
  12502. this.taskCount = j;
  12503. this.oldIndex = i;
  12504. this.oldData = val;
  12505. },
  12506. dragOver(i, j) {
  12507. this.typeIndex = "chapter-" + j + "-" + i;
  12508. this.newIndex = i;
  12509. },
  12510. dragEnd() {
  12511. if (this.dragType != "drag") {
  12512. this.typeIndex = "";
  12513. this.newIndex = "";
  12514. this.dragType = "";
  12515. this.isdrag = "";
  12516. return;
  12517. }
  12518. console.log(this.taskCount);
  12519. let newItems = [
  12520. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12521. .chapterData,
  12522. ];
  12523. // 删除老的节点
  12524. newItems.splice(this.oldIndex, 1);
  12525. // 在列表中目标位置增加新的节点
  12526. newItems.splice(this.newIndex, 0, this.oldData);
  12527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12528. this.taskCount
  12529. ].chapterData = [...newItems];
  12530. this.typeIndex = "";
  12531. this.newIndex = "";
  12532. this.dragType = "";
  12533. this.isdrag = "";
  12534. this.$forceUpdate();
  12535. },
  12536. dragTaskStart(val, i, j) {
  12537. this.dragType = "task";
  12538. this.oldIndex = i;
  12539. this.oldData = val;
  12540. this.oldUnitIndex = j;
  12541. },
  12542. dragTaskOver(i, j) {
  12543. this.typeIndex = "task-" + i;
  12544. this.newIndex = i;
  12545. this.checkUnitIndex = j;
  12546. },
  12547. async dragTaskEnd() {
  12548. if (this.dragType != "task") {
  12549. this.newIndex = "";
  12550. this.dragType = "";
  12551. this.typeIndex = "";
  12552. this.checkUnitIndex = "";
  12553. this.isdrag = "";
  12554. return;
  12555. }
  12556. if (
  12557. this.newIndex == this.oldIndex &&
  12558. this.oldUnitIndex == this.checkUnitIndex
  12559. ) {
  12560. this.newIndex = "";
  12561. this.dragType = "";
  12562. this.typeIndex = "";
  12563. this.checkUnitIndex = "";
  12564. this.isdrag = "";
  12565. return;
  12566. }
  12567. let count1 = await this.getWorksCount(
  12568. 2,
  12569. this.checkUnitIndex,
  12570. this.newIndex,
  12571. 0
  12572. );
  12573. let count2 = await this.getWorksCount(
  12574. 2,
  12575. this.oldUnitIndex,
  12576. this.oldIndex,
  12577. 0
  12578. );
  12579. if (count1 > 0 || count2 > 0) {
  12580. this.$confirm(
  12581. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  12582. "提示",
  12583. {
  12584. confirmButtonText: "确定",
  12585. cancelButtonText: "取消",
  12586. type: "warning",
  12587. }
  12588. )
  12589. .then(() => {
  12590. if (this.oldUnitIndex != this.checkUnitIndex) {
  12591. let newItems = [
  12592. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12593. ];
  12594. // 删除老的节点
  12595. newItems.splice(this.oldIndex, 1);
  12596. // 在列表中目标位置增加新的节点
  12597. let newItems2 = [
  12598. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12599. ];
  12600. newItems2.splice(this.newIndex, 0, this.oldData);
  12601. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12602. ...newItems,
  12603. ];
  12604. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12605. ...newItems2,
  12606. ];
  12607. } else {
  12608. let newItems = [
  12609. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12610. ];
  12611. let chapterData = []
  12612. if (this.oldIndex == 0) {
  12613. chapterData = newItems[this.oldIndex].chapterData
  12614. newItems[this.oldIndex].chapterData = []
  12615. } else if (this.newIndex == 0) {
  12616. chapterData = newItems[this.newIndex].chapterData
  12617. newItems[this.oldIndex].chapterData = []
  12618. }
  12619. // 删除老的节点
  12620. newItems.splice(this.oldIndex, 1);
  12621. // 在列表中目标位置增加新的节点
  12622. newItems.splice(this.newIndex, 0, this.oldData);
  12623. if (this.oldIndex == 0 || this.newIndex == 0) {
  12624. newItems[0].chapterData = chapterData
  12625. }
  12626. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12627. ...newItems,
  12628. ];
  12629. }
  12630. this.typeIndex = "";
  12631. this.newIndex = "";
  12632. this.dragType = "";
  12633. this.checkUnitIndex = "";
  12634. this.isdrag = "";
  12635. this.updateWork();
  12636. this.$forceUpdate();
  12637. })
  12638. .catch(() => {
  12639. this.newIndex = "";
  12640. this.dragType = "";
  12641. this.typeIndex = "";
  12642. this.checkUnitIndex = "";
  12643. this.isdrag = "";
  12644. return;
  12645. });
  12646. } else {
  12647. if (this.oldUnitIndex != this.checkUnitIndex) {
  12648. let newItems = [
  12649. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12650. ];
  12651. // 删除老的节点
  12652. newItems.splice(this.oldIndex, 1);
  12653. // 在列表中目标位置增加新的节点
  12654. let newItems2 = [
  12655. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  12656. ];
  12657. newItems2.splice(this.newIndex, 0, this.oldData);
  12658. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12659. ...newItems,
  12660. ];
  12661. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  12662. ...newItems2,
  12663. ];
  12664. } else {
  12665. let newItems = [
  12666. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  12667. ];
  12668. let chapterData = []
  12669. if (this.oldIndex == 0) {
  12670. chapterData = newItems[this.oldIndex].chapterData
  12671. newItems[this.oldIndex].chapterData = []
  12672. } else if (this.newIndex == 0) {
  12673. chapterData = newItems[this.newIndex].chapterData
  12674. newItems[this.oldIndex].chapterData = []
  12675. }
  12676. // 删除老的节点
  12677. newItems.splice(this.oldIndex, 1);
  12678. // 在列表中目标位置增加新的节点
  12679. newItems.splice(this.newIndex, 0, this.oldData);
  12680. if (this.oldIndex == 0 || this.newIndex == 0) {
  12681. newItems[0].chapterData = chapterData
  12682. }
  12683. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  12684. ...newItems,
  12685. ];
  12686. }
  12687. this.typeIndex = "";
  12688. this.newIndex = "";
  12689. this.dragType = "";
  12690. this.checkUnitIndex = "";
  12691. this.isdrag = "";
  12692. this.updateWork();
  12693. this.$forceUpdate();
  12694. }
  12695. },
  12696. dragUnitStart(val, i) {
  12697. this.dragType = "Unit";
  12698. this.oldIndex = i;
  12699. this.oldData = val;
  12700. },
  12701. dragUnitOver(i) {
  12702. this.typeIndex = "Unit-" + i;
  12703. this.newIndex = i;
  12704. console.log(i, this.unitJson[i].toolOpen);
  12705. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  12706. this.unitJson[i].toolOpen = true;
  12707. this.updateWork();
  12708. this.$forceUpdate();
  12709. }
  12710. },
  12711. async dragUnitEnd() {
  12712. if (this.dragType != "Unit") {
  12713. this.newIndex = "";
  12714. this.dragType = "";
  12715. this.typeIndex = "";
  12716. this.isdrag = "";
  12717. return;
  12718. }
  12719. if (this.newIndex == this.oldIndex) {
  12720. this.newIndex = "";
  12721. this.dragType = "";
  12722. this.typeIndex = "";
  12723. this.isdrag = "";
  12724. return;
  12725. }
  12726. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  12727. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  12728. console.log(count1, count2);
  12729. if (count1 > 0 || count2 > 0) {
  12730. this.$confirm(
  12731. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12732. "提示",
  12733. {
  12734. confirmButtonText: "确定",
  12735. cancelButtonText: "取消",
  12736. type: "warning",
  12737. }
  12738. )
  12739. .then(() => {
  12740. let newItems = [...this.unitJson];
  12741. // 删除老的节点
  12742. newItems.splice(this.oldIndex, 1);
  12743. // 在列表中目标位置增加新的节点
  12744. newItems.splice(this.newIndex, 0, this.oldData);
  12745. this.unitJson = [...newItems];
  12746. this.typeIndex = "";
  12747. this.newIndex = "";
  12748. this.dragType = "";
  12749. this.isdrag = "";
  12750. this.updateWork();
  12751. this.$forceUpdate();
  12752. })
  12753. .catch(() => {
  12754. this.newIndex = "";
  12755. this.dragType = "";
  12756. this.typeIndex = "";
  12757. this.isdrag = "";
  12758. return;
  12759. });
  12760. } else {
  12761. let newItems = [...this.unitJson];
  12762. // 删除老的节点
  12763. newItems.splice(this.oldIndex, 1);
  12764. // 在列表中目标位置增加新的节点
  12765. newItems.splice(this.newIndex, 0, this.oldData);
  12766. this.unitJson = [...newItems];
  12767. this.typeIndex = "";
  12768. this.newIndex = "";
  12769. this.dragType = "";
  12770. this.isdrag = "";
  12771. this.updateWork();
  12772. this.$forceUpdate();
  12773. }
  12774. },
  12775. getWorksCount(type, stage, task, tool) {
  12776. return new Promise((resolve, reject) => {
  12777. let params = [
  12778. {
  12779. cid: this.cid,
  12780. stage: stage,
  12781. task: task,
  12782. tool: tool,
  12783. type: type,
  12784. },
  12785. ];
  12786. this.ajax
  12787. .post(this.$store.state.api + "getCourseWorkCount", params)
  12788. .then((res) => {
  12789. let count = res.data[0][0].count;
  12790. resolve(count);
  12791. })
  12792. .catch((err) => {
  12793. resolve(0);
  12794. this.$message.error("网络不佳");
  12795. console.error(err);
  12796. });
  12797. });
  12798. },
  12799. getTwoType(id) {
  12800. this.twoJson = [];
  12801. var array = this.CourseTypeJson1[
  12802. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12803. ].filter((e) => {
  12804. return e.ppid == id;
  12805. });
  12806. this.twoJson = array;
  12807. this.$forceUpdate();
  12808. },
  12809. ctype() {
  12810. this.oneJson =
  12811. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12812. },
  12813. selectAllType1() {
  12814. this.CourseType1 = [];
  12815. this.CourseTypeJson1 = {};
  12816. this.courseTypeId1 = {};
  12817. this.$forceUpdate();
  12818. let params = {
  12819. org: this.org && this.org != "" ? this.org : "",
  12820. oid: this.oid && this.oid != "" ? this.oid : "",
  12821. };
  12822. this.ajax
  12823. .get(this.$store.state.api + "selectAllEvaType", params)
  12824. .then((res) => {
  12825. this.CourseType1 = res.data;
  12826. for (var i = 0; i < res.data[0].length; i++) {
  12827. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12828. res.data[0][i].name = "一级分类";
  12829. } else if (
  12830. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12831. ) {
  12832. res.data[0][i].name = "二级分类";
  12833. }
  12834. if (!this.cid) {
  12835. this.courseTypeId1[res.data[0][i].id] = [];
  12836. }
  12837. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12838. this.CourseTypeJson1[res.data[0][i].id] = [];
  12839. }
  12840. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12841. for (var j = 0; j < res.data[1].length; j++) {
  12842. if (res.data[0][i].id == res.data[1][j].pid) {
  12843. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12844. }
  12845. }
  12846. // } else {
  12847. if (res.data[2].length > 0) {
  12848. for (var j = 0; j < res.data[2].length; j++) {
  12849. if (res.data[0][i].id == res.data[2][j].pid) {
  12850. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12851. }
  12852. }
  12853. }
  12854. if (res.data[3].length > 0) {
  12855. for (var j = 0; j < res.data[3].length; j++) {
  12856. if (res.data[0][i].id == res.data[3][j].pid) {
  12857. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12858. }
  12859. }
  12860. }
  12861. // }
  12862. }
  12863. this.ctype();
  12864. this.cetBoxDialog = true;
  12865. })
  12866. .catch((err) => {
  12867. console.error(err);
  12868. });
  12869. },
  12870. setAiJson(pan,string){
  12871. this.aiJson[pan] = string
  12872. this.$forceUpdate();
  12873. },
  12874. editTask3(index){
  12875. if(this.unitJson[0].chapterInfo[0].taskJson[index].isTask3){
  12876. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = false
  12877. }else {
  12878. this.unitJson[0].chapterInfo[0].taskJson[index].isTask3 = true
  12879. }
  12880. this.$forceUpdate();
  12881. },
  12882. editCpote(index){
  12883. if(this.cpote[index]){
  12884. this.cpote[index] = false
  12885. }else {
  12886. this.cpote[index] = true
  12887. }
  12888. this.$forceUpdate();
  12889. },
  12890. openAiDialog(clickType, type, callback, index, tindex) {
  12891. // if(clickType == 1){
  12892. // return;
  12893. // }
  12894. if (this.courseName == "") {
  12895. this.$message.error("请补充填写课程名称");
  12896. return;
  12897. }
  12898. this.clickType = clickType
  12899. let sub = []
  12900. if (this.courseTypeId.length) {
  12901. for (var i = 0; i < this.courseTypeId.length; i++) {
  12902. let _sid = this.courseTypeId[i]
  12903. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12904. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  12905. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  12906. }
  12907. }
  12908. }
  12909. }
  12910. let mclass = []
  12911. if (this.courseTypeId.length) {
  12912. for (var i = 0; i < this.courseTypeId.length; i++) {
  12913. let _sid = this.courseTypeId[i]
  12914. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  12915. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  12916. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  12917. }
  12918. }
  12919. }
  12920. }
  12921. if (type == "aiDetail") {
  12922. if (this.ttextLoading) {
  12923. this.$message({
  12924. message: "请回答完毕后再次发送",
  12925. type: "warning"
  12926. });
  12927. return;
  12928. }
  12929. this.aitype = "aiDetail"
  12930. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程。`
  12931. this.aiText = this.aiJson.aiDetail
  12932. } else if (type == "aiOutline") {
  12933. this.aitype = "aiOutline"
  12934. // this.aiText = `请根据${this.courseText}设计一个名为${this.courseName}的${sub.length ? sub.join(",") + "学科的" : ""},面向${this.getListClassC(this.checkboxList2)}的项目式学习课程设计序列教学活动(需要每个任务都需要至少50个token的详细描述),每个教学活动的活动设计(可以直接使用文件内容)以及每个教学活动的评价量规(学生能做到...)。`
  12935. this.aiText = this.aiJson.aiOutline
  12936. } else if (type == "aiTask") {
  12937. this.aitype = "aiTask"
  12938. var _text = ""
  12939. for (var i = 0; i < this.teacherText.length; i++) {
  12940. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  12941. }
  12942. // this.aiText = `请根据${_text}。`
  12943. this.aiText = this.aiJson.aiTask
  12944. this.aiCallBack = callback
  12945. } else if (type == "aiDetail1") {
  12946. if (this.ttaskDetailLoading.indexOf('task-' + index) !== -1) {
  12947. this.$message({
  12948. message: "请回答完毕后再次发送",
  12949. type: "warning"
  12950. });
  12951. return;
  12952. }
  12953. this.aitype = "aiDetail1"
  12954. // this.aiText = `请帮我优化下列文字内容,更具象化更详细,输出文本格式就行不要带有其他格式\n${callback}`
  12955. // this.aiText = `请根据${callback},重新设计该教学任务。任务需要至少50个token的详细描述,包含任务设计,评价标准 \n`
  12956. this.aiText = this.aiJson.aiDetail1
  12957. this.aiCallBack = callback
  12958. this.aiIndex = index
  12959. } else if (type == "aiDetail2") {
  12960. if (this.ttaskDetailLoading2.indexOf('task-' + index) !== -1) {
  12961. this.$message({
  12962. message: "请回答完毕后再次发送",
  12963. type: "warning"
  12964. });
  12965. return;
  12966. }
  12967. this.aitype = "aiDetail2"
  12968. // this.aiText = `请你在考虑到整个课程的情况下,优化该任务描述和任务名:${callback.task}:${callback.taskDetail}`
  12969. this.aiText = this.aiJson.aiDetail2
  12970. this.aiCallBack = callback
  12971. this.aiIndex = index
  12972. } else if (type == "aiDetail3") {
  12973. if (this.ttaskDetailLoading3.indexOf('task-' + index + tindex) !== -1) {
  12974. this.$message({
  12975. message: "请回答完毕后再次发送",
  12976. type: "warning"
  12977. });
  12978. return;
  12979. }
  12980. this.aitype = "aiDetail3"
  12981. this.aiText = this.aiJson.aiDetail3
  12982. this.aiIndex = index + '-' + tindex
  12983. } else if (type == "aiDetail4") {
  12984. var _text = ""
  12985. for (var i = 0; i < callback.length; i++) {
  12986. _text += `评价维度:${callback[i].value} 维度描述:${callback[i].detail} `
  12987. }
  12988. this.aitype = "aiDetail4"
  12989. this.aiText = this.aiJson.aiDetail4
  12990. this.aiIndex = index
  12991. } else if (type == "aiTeacher") {
  12992. this.aitype = "aiTeacher"
  12993. var _text = ""
  12994. for (var i = 0; i < this.dArray.length; i++) {
  12995. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  12996. }
  12997. // this.aiText = `请根据${_text}为每个教学任务设计详细的教案,其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  12998. this.aiText = this.aiJson.aiTeacher
  12999. this.aiCallBack = callback
  13000. } else if (type == "teacherDetail") {
  13001. if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
  13002. this.$message({
  13003. message: "请回答完毕后再次发送",
  13004. type: "warning"
  13005. });
  13006. return;
  13007. }
  13008. this.aitype = "teacherDetail"
  13009. // this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
  13010. this.aiText = this.aiJson.teacherDetail
  13011. this.aiCallBack = callback
  13012. this.aiIndex = index
  13013. } else if (type == "aiCpote1") {
  13014. if (this.cpotetLoading.cpote1) {
  13015. this.$message({
  13016. message: "请回答完毕后再次发送",
  13017. type: "warning"
  13018. });
  13019. return;
  13020. }
  13021. this.aitype = "aiCpote1"
  13022. this.aiText = this.aiJson.cpote1
  13023. this.aiCallBack = callback
  13024. } else if (type == "aiCpote2") {
  13025. if (this.cpotetLoading.cpote2) {
  13026. this.$message({
  13027. message: "请回答完毕后再次发送",
  13028. type: "warning"
  13029. });
  13030. return;
  13031. }
  13032. this.aitype = "aiCpote2"
  13033. this.aiText = this.aiJson.cpote2
  13034. this.aiCallBack = callback
  13035. }
  13036. else if (type == "aiCpote3") {
  13037. if (this.cpotetLoading.cpote3) {
  13038. this.$message({
  13039. message: "请回答完毕后再次发送",
  13040. type: "warning"
  13041. });
  13042. return;
  13043. }
  13044. this.aitype = "aiCpote3"
  13045. this.aiText = this.aiJson.cpote3
  13046. this.aiCallBack = callback
  13047. } else if (type == "aiCpote4") {
  13048. if (this.cpotetLoading.cpote4) {
  13049. this.$message({
  13050. message: "请回答完毕后再次发送",
  13051. type: "warning"
  13052. });
  13053. return;
  13054. }
  13055. this.aitype = "aiCpote4"
  13056. this.aiText = this.aiJson.cpote4
  13057. this.aiCallBack = callback
  13058. }
  13059. this.dialogVisibleAiD = true
  13060. },
  13061. aiConfirm(msg) {
  13062. let sub = []
  13063. if (this.courseTypeId.length) {
  13064. for (var i = 0; i < this.courseTypeId.length; i++) {
  13065. let _sid = this.courseTypeId[i]
  13066. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13067. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13068. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13069. }
  13070. }
  13071. }
  13072. }
  13073. let mclass = []
  13074. if (this.courseTypeId.length) {
  13075. for (var i = 0; i < this.courseTypeId.length; i++) {
  13076. let _sid = this.courseTypeId[i]
  13077. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13078. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13079. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13080. }
  13081. }
  13082. }
  13083. }
  13084. let url = []
  13085. if (this.infoData.length) {
  13086. for (var i = 0; i < this.infoData.length; i++) {
  13087. url.push(this.infoData[i].url)
  13088. }
  13089. }
  13090. if (this.aitype == "aiDetail") {
  13091. this.detailYou(msg)
  13092. } else if (this.aitype == "aiOutline") {
  13093. this.loading = true
  13094. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13095. // ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13096. let message = `NOTICE
  13097. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13098. 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.
  13099. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13100. Instruction: Based on the context, follow "Format example", write content.
  13101. # Context
  13102. ## 要求
  13103. ${msg} 以及##参考资料
  13104. ## 参考资料
  13105. 课程名字:${this.courseName}
  13106. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  13107. ${sub.length ? '学科:' + sub.join(",") : ''}
  13108. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13109. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13110. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13111. # Format example
  13112. [
  13113. {
  13114. "task": "任务名称1",
  13115. "detail": "任务设计和评价标准"
  13116. },
  13117. {
  13118. "task": "任务名称2",
  13119. "detail": "任务设计和评价标准"
  13120. }
  13121. ]`
  13122. this.aiGet2(message, () => {
  13123. this.loading = false
  13124. this.isOutline = true
  13125. })
  13126. } else if (this.aitype == "aiTask") {
  13127. var _text = ""
  13128. for (var i = 0; i < this.teacherText.length; i++) {
  13129. _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
  13130. }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13131. let message = `NOTICE
  13132. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13133. 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.
  13134. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13135. Instruction: Based on the context, follow "Format example", write content.
  13136. # Context
  13137. ## 要求
  13138. ${msg} 以及#教学任务教案 内容要求参考#格式要求
  13139. ## 教学任务教案
  13140. ${_text}
  13141. ${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','') : ''}
  13142. ## 格式要求
  13143. 任务数量:${this.teacherText.length}个
  13144. 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
  13145. 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  13146. 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
  13147. 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
  13148. # Format example
  13149. [{"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":"工具描述"}]}]`
  13150. this.loading = true
  13151. this.aiGet3(message, this.aiCallBack)
  13152. } else if (this.aitype == "aiDetail1") {
  13153. this.aiDetail(msg, this.aiIndex)
  13154. } else if (this.aitype == "aiDetail2") {
  13155. this.aiDetail2(msg, this.aiIndex)
  13156. } else if (this.aitype == "aiDetail3") {
  13157. let _index = this.aiIndex.split('-')
  13158. this.aiDetail3(msg, _index[0], _index[1])
  13159. } else if (this.aitype == "aiDetail4") {
  13160. this.aiDetail4(msg, this.aiIndex)
  13161. } else if (this.aitype == "teacherDetail") {
  13162. this.aiDetail5(msg, this.aiIndex)
  13163. } else if (this.aitype == "aiCpote1") {
  13164. this.aiCpote(msg, this.aiCallBack)
  13165. } else if (this.aitype == "aiCpote2") {
  13166. this.aiCpote(msg, this.aiCallBack)
  13167. } else if (this.aitype == "aiCpote3") {
  13168. this.aiCpote(msg, this.aiCallBack)
  13169. } else if (this.aitype == "aiCpote4") {
  13170. this.aiCpote(msg, this.aiCallBack)
  13171. } else if (this.aitype == "aiTeacher") {
  13172. this.loading = true
  13173. var _text = ""
  13174. for (var i = 0; i < this.dArray.length; i++) {
  13175. _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
  13176. }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
  13177. let message = ` NOTICE
  13178. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13179. 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.
  13180. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13181. Instruction: Based on the context, follow "Format example", write content.
  13182. # Context
  13183. ## 要求
  13184. ${msg} 以及${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '##任务大纲' : '##目标层,##任务簇'}
  13185. ${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 任务大纲\n'+_text : ''}
  13186. ${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','') : ''}
  13187. ## Format example
  13188. [
  13189. {
  13190. "task": "任务名称1",
  13191. "detail": "教案输出为文本格式就行"
  13192. },
  13193. {
  13194. "task": "任务名称2",
  13195. "detail": "教案输出为文本格式就行"
  13196. }
  13197. ]`
  13198. this.aiGet4(message, () => {
  13199. this.loading = false
  13200. this.isOutline2 = true
  13201. })
  13202. }
  13203. this.setAiJson(this.aitype, msg)
  13204. },
  13205. detailYou(message) {
  13206. this.textLoading = true
  13207. this.ttextLoading = true
  13208. let sub = []
  13209. if (this.courseTypeId.length) {
  13210. for (var i = 0; i < this.courseTypeId.length; i++) {
  13211. let _sid = this.courseTypeId[i]
  13212. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13213. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13214. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13215. }
  13216. }
  13217. }
  13218. }
  13219. let mclass = []
  13220. if (this.courseTypeId.length) {
  13221. for (var i = 0; i < this.courseTypeId.length; i++) {
  13222. let _sid = this.courseTypeId[i]
  13223. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13224. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13225. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13226. }
  13227. }
  13228. }
  13229. }
  13230. let url = []
  13231. if (this.infoData.length) {
  13232. for (var i = 0; i < this.infoData.length; i++) {
  13233. url.push(this.infoData[i].url)
  13234. }
  13235. }
  13236. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  13237. // --------
  13238. // ## 补充参考资料
  13239. // 补充资料:${url.join(",")}
  13240. // 补充描述:${this.courseText2} ##补充参考资料和
  13241. let msg = `
  13242. 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.
  13243. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13244. --------
  13245. ## 参考资料
  13246. 课程名字:${this.courseName}
  13247. ${sub.length ? '学科:' + sub.join(",") : ''}
  13248. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13249. ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
  13250. ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
  13251. --------
  13252. ## 要求
  13253. ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
  13254. --------
  13255. ## Format example
  13256. -课程简要描述:
  13257. -驱动性问题:**1个**驱动整个项目的问题
  13258. -最终作品:对应解决驱动性问题的作品,可个人可团队`
  13259. this.aiGet(msg)
  13260. },
  13261. setUnitJson() {
  13262. 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 }] }
  13263. this.$forceUpdate()
  13264. },
  13265. async aiGet(messages) {
  13266. let _this = this
  13267. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13268. if (_this.infoData.length) {
  13269. for (var i = 0; i < _this.infoData.length; i++) {
  13270. if(_this.infoData[i].fileid){
  13271. fileid.push(_this.infoData[i].fileid)
  13272. }else {
  13273. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13274. if(_fileid){
  13275. _this.infoData[i].fileid = _fileid
  13276. _this.$forceUpdate();
  13277. fileid.push(_fileid)
  13278. }
  13279. }
  13280. }
  13281. }
  13282. let _uuid = uuidv4();
  13283. // let params = JSON.stringify({
  13284. // // "model": "Chat",
  13285. // model: 'gpt-3.5-turbo',
  13286. // temperature: 0,
  13287. // max_tokens: 4096,
  13288. // top_p: 1,
  13289. // frequency_penalty: 0,
  13290. // presence_penalty: 0,
  13291. // messages: [{
  13292. // content: messages,
  13293. // role: 'user'
  13294. // }],
  13295. // uid: _uuid,
  13296. // mind_map_question: "",
  13297. // })
  13298. let params = {
  13299. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13300. message: [{"type":"text", "text":messages}],
  13301. session_name: _uuid,
  13302. userId: _this.userid,
  13303. uid: _uuid,
  13304. file_ids: fileid.length ? [...fileid] : '',
  13305. }
  13306. // let params = JSON.stringify({
  13307. // message: {
  13308. // anthropic_version: "bedrock-2023-05-31",
  13309. // max_tokens: 4096,
  13310. // temperature: 0,
  13311. // top_p: 1,
  13312. // messages: [{
  13313. // "role": "user",
  13314. // "content": messages
  13315. // }] ,
  13316. // },
  13317. // uid: _uuid,
  13318. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13319. // });
  13320. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13321. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  13322. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  13323. console.log(response);
  13324. // let data = response.data.FunctionResponse
  13325. // if (data.choices && data.choices.length && data.choices[0].message) {
  13326. // _this.courseText = data.choices[0].message.content
  13327. // }
  13328. if (response.data.FunctionResponse.result == "发送成功") {
  13329. } else {
  13330. this.$message.warning(response.data.FunctionResponse.result);
  13331. }
  13332. }).catch(function (error) {
  13333. _this.textLoading = false
  13334. _this.ttextLoading = false
  13335. console.log(error);
  13336. });
  13337. _this.aiGetgetAiContent(_uuid)
  13338. },
  13339. aiGetgetAiContent(_uid) {
  13340. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13341. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13342. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  13343. let _allText = "";
  13344. let _mdText = "";
  13345. _source.onmessage = _e => {
  13346. let _eData = JSON.parse(_e.data).content;
  13347. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  13348. //对话已经完成
  13349. _mdText = _mdText.replace("_", "");
  13350. _source.close();
  13351. this.courseText = _mdText;
  13352. this.textLoading = false
  13353. this.ttextLoading = false
  13354. return;
  13355. } else {
  13356. //对话还在继续
  13357. let _text = "";
  13358. _text = _eData.replaceAll("'", "");
  13359. if (_allText == "") {
  13360. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  13361. } else {
  13362. _allText += _text;
  13363. }
  13364. _mdText = _allText + "_";
  13365. _mdText = _mdText.replace(/\\n/g, "\n");
  13366. _mdText = _mdText.replace(/\\/g, "");
  13367. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  13368. //转化返回的回复流数据
  13369. this.courseText = _mdText;
  13370. this.textLoading = false
  13371. // 处理流数据
  13372. }
  13373. };
  13374. },
  13375. async aiGet2(messages, callback) {
  13376. let _this = this
  13377. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13378. if (_this.infoData.length) {
  13379. for (var i = 0; i < _this.infoData.length; i++) {
  13380. if(_this.infoData[i].fileid){
  13381. fileid.push(_this.infoData[i].fileid)
  13382. }else {
  13383. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13384. if(_fileid){
  13385. _this.infoData[i].fileid = _fileid
  13386. _this.$forceUpdate();
  13387. fileid.push(_fileid)
  13388. }
  13389. }
  13390. }
  13391. }
  13392. console.log('fileid=========',fileid)
  13393. // let params = JSON.stringify({
  13394. // // "model": "Chat",
  13395. // model: 'gpt-3.5-turbo',
  13396. // temperature: 0,
  13397. // max_tokens: 4096,
  13398. // top_p: 1,
  13399. // frequency_penalty: 0,
  13400. // presence_penalty: 0,
  13401. // messages: [{
  13402. // content: messages,
  13403. // role: 'user'
  13404. // }],
  13405. // stream: false,
  13406. // uid: this.userid,
  13407. // mind_map_question: "",
  13408. // })
  13409. // // let params = JSON.stringify({
  13410. // // message: {
  13411. // // anthropic_version: "bedrock-2023-05-31",
  13412. // // max_tokens: 4096,
  13413. // // temperature: 0,
  13414. // // top_p: 1,
  13415. // // messages: [{
  13416. // // content: messages,
  13417. // // role: 'user'
  13418. // // }], //
  13419. // // },
  13420. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13421. // // });
  13422. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13423. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13424. // console.log(response);
  13425. // let data = response.data.FunctionResponse
  13426. // if (data.choices && data.choices.length && data.choices[0].message) {
  13427. // console.log(data.choices[0].message.content);
  13428. // let dArray = JSON.parse(data.choices[0].message.content)
  13429. // _this.dArray = dArray
  13430. // _this.unitJson[0].chapterInfo[0].taskJson = []
  13431. // for (var i = 0; i < dArray.length; i++) {
  13432. // let _task = dArray[i]
  13433. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13434. // task: _task.task,
  13435. // taskDetail: "",
  13436. // taskDetail2: _task.detail,
  13437. // taskDetail3: "",
  13438. // chapterData: [],
  13439. // toolText: "",
  13440. // toolChoose: [
  13441. // {
  13442. // tool: [],
  13443. // toolDetail: "",
  13444. // toolType: 0,
  13445. // askCount: 1,
  13446. // askTitle: "",
  13447. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13448. // },
  13449. // ],
  13450. // isShowTools: false,
  13451. // askCount: 1,
  13452. // isFold: 2,
  13453. // askTitle: "",
  13454. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13455. // checkJson: [{ checkCount: [], checkPerent: [] }],
  13456. // homeworkList: [],
  13457. // })
  13458. // }
  13459. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  13460. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13461. // _this.$forceUpdate();
  13462. // }
  13463. // // if (data.result) {
  13464. // // console.log(data.result);
  13465. // // let dArray = JSON.parse(data.result)
  13466. // // _this.dArray = dArray
  13467. // // _this.unitJson[0].chapterInfo[0].taskJson = []
  13468. // // for (var i = 0; i < dArray.length; i++) {
  13469. // // let _task = dArray[i]
  13470. // // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13471. // // task: _task.task,
  13472. // // taskDetail: "",
  13473. // // taskDetail2: _task.detail,
  13474. // // taskDetail3: "",
  13475. // // chapterData: [],
  13476. // // toolText: "",
  13477. // // toolChoose: [
  13478. // // {
  13479. // // tool: [],
  13480. // // toolDetail: "",
  13481. // // toolType: 0,
  13482. // // askCount: 1,
  13483. // // askTitle: "",
  13484. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13485. // // },
  13486. // // ],
  13487. // // isShowTools: false,
  13488. // // askCount: 1,
  13489. // // isFold: 1,
  13490. // // askTitle: "",
  13491. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13492. // // checkJson: [{ checkCount: [], checkPerent: [] }],
  13493. // // homeworkList: [],
  13494. // // })
  13495. // // }
  13496. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13497. // // _this.$forceUpdate();
  13498. // // }
  13499. // callback ? callback() : ''
  13500. // }).catch(function (error) {
  13501. // _this.loading = false
  13502. // console.log(error);
  13503. // });
  13504. let parm = {
  13505. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13506. message: [{"type":"text", "text":messages}],
  13507. session_name: uuidv4(),
  13508. userId: this.userid,
  13509. file_ids: fileid.length ? [...fileid] : '',
  13510. }
  13511. this.ajax
  13512. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13513. .then((response) => {
  13514. console.log(response);
  13515. let data = response.data.FunctionResponse
  13516. if (data.message) {
  13517. console.log(data.message);
  13518. let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13519. _this.dArray = dArray
  13520. _this.unitJson[0].chapterInfo[0].taskJson = []
  13521. for (var i = 0; i < dArray.length; i++) {
  13522. let _task = dArray[i]
  13523. _this.unitJson[0].chapterInfo[0].taskJson.push({
  13524. task: _task.task,
  13525. taskDetail: "",
  13526. taskDetail2: _task.detail,
  13527. taskDetail3: "",
  13528. chapterData: [],
  13529. toolText: "",
  13530. toolChoose: [
  13531. {
  13532. tool: [],
  13533. toolDetail: "",
  13534. toolType: 0,
  13535. askCount: 1,
  13536. askTitle: "",
  13537. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13538. },
  13539. ],
  13540. isShowTools: false,
  13541. askCount: 1,
  13542. isFold: 2,
  13543. askTitle: "",
  13544. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13545. checkJson: [{ checkCount: [], checkPerent: [] }],
  13546. homeworkList: [],
  13547. })
  13548. }
  13549. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  13550. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13551. _this.$forceUpdate();
  13552. }
  13553. callback ? callback() : ''
  13554. })
  13555. .catch((error) => {
  13556. _this.loading = false
  13557. console.log(error);
  13558. });
  13559. },
  13560. async aiGet3(messages, callback) {
  13561. let _this = this
  13562. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13563. if (_this.infoData.length) {
  13564. for (var i = 0; i < _this.infoData.length; i++) {
  13565. if(_this.infoData[i].fileid){
  13566. fileid.push(_this.infoData[i].fileid)
  13567. }else {
  13568. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13569. if(_fileid){
  13570. _this.infoData[i].fileid = _fileid
  13571. _this.$forceUpdate();
  13572. fileid.push(_fileid)
  13573. }
  13574. }
  13575. }
  13576. }
  13577. // let params = JSON.stringify({
  13578. // // "model": "Chat",
  13579. // model: 'gpt-3.5-turbo',
  13580. // temperature: 0,
  13581. // max_tokens: 4096,
  13582. // top_p: 1,
  13583. // frequency_penalty: 0,
  13584. // presence_penalty: 0,
  13585. // messages: [{
  13586. // content: messages,
  13587. // role: 'user'
  13588. // }],
  13589. // stream: false,
  13590. // uid: this.userid,
  13591. // mind_map_question: "",
  13592. // })
  13593. // // let params = JSON.stringify({
  13594. // // message: {
  13595. // // anthropic_version: "bedrock-2023-05-31",
  13596. // // max_tokens: 4096,
  13597. // // temperature: 0,
  13598. // // top_p: 1,
  13599. // // messages: [{
  13600. // // content: messages,
  13601. // // role: 'user'
  13602. // // }], //
  13603. // // },
  13604. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13605. // // });
  13606. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13607. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13608. // console.log(response);
  13609. // let data = response.data.FunctionResponse
  13610. // if (data.choices && data.choices.length && data.choices[0].message) {
  13611. // console.log(data.choices[0].message.content);
  13612. // let tArray = JSON.parse(data.choices[0].message.content)
  13613. // // _this.unitJson[0].chapterInfo[0].task = []
  13614. // let toolsJson = {
  13615. // "电子白板": { tool: 1, type: 1 },
  13616. // "文档": { tool: 52, type: 1 },
  13617. // "思维导图": { tool: 3, type: 1 },
  13618. // "表格": { tool: 48, type: 1 },
  13619. // "作业提交": { tool: 16, type: 2 }
  13620. // }
  13621. // for (var i = 0; i < tArray.length; i++) {
  13622. // let _task = tArray[i]
  13623. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13624. // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13625. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13626. // if (_task.toolChoose.length) {
  13627. // for (var j = 0; j < _task.toolChoose.length; j++) {
  13628. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13629. // {
  13630. // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  13631. // toolDetail: _task.toolChoose[j].detail,
  13632. // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  13633. // askCount: 1,
  13634. // askTitle: "",
  13635. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13636. // },
  13637. // )
  13638. // }
  13639. // } else {
  13640. // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13641. // {
  13642. // tool: [],
  13643. // toolDetail: "",
  13644. // toolType: 0,
  13645. // askCount: 1,
  13646. // askTitle: "",
  13647. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13648. // },
  13649. // )
  13650. // }
  13651. // }
  13652. // // if (_this.infoData.length) {
  13653. // // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  13654. // // }
  13655. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13656. // _this.$forceUpdate();
  13657. // }
  13658. // // if (data.result) {
  13659. // // console.log(data.result);
  13660. // // let tArray = JSON.parse(data.result)
  13661. // // // _this.unitJson[0].chapterInfo[0].task = []
  13662. // // let toolsJson = {
  13663. // // "电子白板": { tool: 1, type: 1 },
  13664. // // "文档": { tool: 52, type: 1 },
  13665. // // "思维导图": { tool: 3, type: 1 },
  13666. // // "表格": { tool: 48, type: 1 },
  13667. // // "作业提交": { tool: 16, type: 2 }
  13668. // // }
  13669. // // for (var i = 0; i < tArray.length; i++) {
  13670. // // let _task = tArray[i]
  13671. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13672. // // _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13673. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13674. // // if (_task.toolChoose.length) {
  13675. // // for (var j = 0; j < _task.toolChoose.length; j++) {
  13676. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13677. // // {
  13678. // // tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  13679. // // toolDetail: _task.toolChoose[j].detail,
  13680. // // toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  13681. // // askCount: 1,
  13682. // // askTitle: "",
  13683. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13684. // // },
  13685. // // )
  13686. // // }
  13687. // // } else {
  13688. // // _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13689. // // {
  13690. // // tool: [],
  13691. // // toolDetail: "",
  13692. // // toolType: 0,
  13693. // // askCount: 1,
  13694. // // askTitle: "",
  13695. // // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13696. // // },
  13697. // // )
  13698. // // }
  13699. // // }
  13700. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13701. // // _this.$forceUpdate();
  13702. // // }
  13703. // callback ? callback() : ''
  13704. // }).catch(function (error) {
  13705. // _this.loading = false
  13706. // console.log(error);
  13707. // });
  13708. let parm = {
  13709. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13710. message: [{"type":"text", "text":messages}],
  13711. session_name: uuidv4(),
  13712. userId: this.userid,
  13713. file_ids: fileid.length ? [...fileid] : '',
  13714. }
  13715. this.ajax
  13716. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13717. .then(async (response) => {
  13718. console.log(response);
  13719. let data = response.data.FunctionResponse
  13720. if (data.message) {
  13721. console.log(data.message);
  13722. let tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13723. let toolsJson = {
  13724. "电子白板": { tool: 1, type: 1 },
  13725. "文档": { tool: 52, type: 1 },
  13726. "思维导图": { tool: 3, type: 1 },
  13727. "表格": { tool: 48, type: 1 },
  13728. "作业提交": { tool: 16, type: 2 },
  13729. "问答": { tool: 15, type: 2 },
  13730. "选择题": { tool: 45, type: 2 },
  13731. }
  13732. // answerQ:"sssssssssssssss"
  13733. for (var i = 0; i < tArray.length; i++) {
  13734. let _task = tArray[i]
  13735. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail = _task.detail
  13736. _this.unitJson[0].chapterInfo[0].taskJson[i].eList = _task.elist
  13737. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose = []
  13738. if (_task.toolChoose.length) {
  13739. for (var j = 0; j < _task.toolChoose.length; j++) {
  13740. let _json = {
  13741. tool: toolsJson[_task.toolChoose[j].tool] ? [toolsJson[_task.toolChoose[j].tool].tool] : [],
  13742. toolDetail: _task.toolChoose[j].detail,
  13743. toolType: toolsJson[_task.toolChoose[j].tool] ? toolsJson[_task.toolChoose[j].tool].type : 0,
  13744. askCount: 1,
  13745. askTitle: "",
  13746. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13747. }
  13748. if(_task.toolChoose[j].tool == '问答'){
  13749. let answerQ = await _this.aiCreateQuestion(15, i)
  13750. _json.answerQ = answerQ.answerQ
  13751. }else if(_task.toolChoose[j].tool == '选择题'){
  13752. let testJson = await _this.aiCreateQuestion(45, i)
  13753. _json.testJson = {"testCount":testJson.length,"testTitle":"","testJson":testJson}
  13754. }
  13755. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(_json)
  13756. }
  13757. } else {
  13758. _this.unitJson[0].chapterInfo[0].taskJson[i].toolChoose.push(
  13759. {
  13760. tool: [],
  13761. toolDetail: "",
  13762. toolType: 0,
  13763. askCount: 1,
  13764. askTitle: "",
  13765. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13766. },
  13767. )
  13768. }
  13769. }
  13770. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13771. _this.$forceUpdate();
  13772. _this.createTeacherAn();
  13773. }
  13774. callback ? callback() : ''
  13775. })
  13776. .catch((error) => {
  13777. _this.loading = false
  13778. console.log(error);
  13779. });
  13780. },
  13781. async aiCreateQuestion(type, task) {
  13782. let _this = this
  13783. return new Promise((resolve, reject) => {
  13784. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13785. if (_this.infoData.length) {
  13786. for (var i = 0; i < _this.infoData.length; i++) {
  13787. if(_this.infoData[i].fileid){
  13788. fileid.push(_this.infoData[i].fileid)
  13789. }
  13790. }
  13791. }
  13792. let sub = []
  13793. let mclass = []
  13794. if (this.courseTypeId.length) {
  13795. for (var i = 0; i < this.courseTypeId.length; i++) {
  13796. let _sid = this.courseTypeId[i]
  13797. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  13798. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  13799. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  13800. }
  13801. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  13802. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  13803. }
  13804. }
  13805. }
  13806. }
  13807. let messages = ""
  13808. if(type == 15){
  13809. messages = `NOTICE
  13810. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13811. 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.
  13812. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13813. Instruction: Based on the context, follow "Format example", write content.
  13814. # Context
  13815. ## 任务
  13816. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成1道问答题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。然后根据Format example的要求返回要以json的格式
  13817. ## 限制
  13818. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  13819. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  13820. ## 课程简介
  13821. 课程名字:${_this.courseName}
  13822. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  13823. ${sub.length ? '学科:' + sub.join(",") : ''}
  13824. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13825. ## 教案
  13826. ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  13827. # Format example
  13828. {answerQ:"问题"}
  13829. `
  13830. }else if(type == 45){
  13831. messages = `NOTICE
  13832. Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
  13833. 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.
  13834. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13835. Instruction: Based on the context, follow "Format example", write content.
  13836. # Context
  13837. ## 任务
  13838. 根据本任务的#教案,在考虑到面向学生年级(<面向年级>)以及相对应的学科(<课程学科>)的基础上生成5道单选题。题目的意义是测试学生对本教学任务知识点的掌握情况,你的题目应当是有意义的。
  13839. ## 限制
  13840. - 生成题目禁止重复。
  13841. - 生成题目应该充分考虑学生年级<面向年级>和面向学科<课程学科>,你的题目应有教学意义。
  13842. - 请严格按照以下格式要求输出内容,题目必须是单选题。
  13843. - 你仅仅需要输出题目,其他什么内容都不需要输出。禁止输出题目以外的任何内容。
  13844. ## 课程简介
  13845. 课程名字:${_this.courseName}
  13846. ${_this.courseText ? '课程简要描述:' + _this.courseText : ''}
  13847. ${sub.length ? '学科:' + sub.join(",") : ''}
  13848. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  13849. ## 教案
  13850. ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}
  13851. # Format example
  13852. [{"teststitle":"题目内容","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"},{"teststitle":"题目内容","testItem":"选项数量(数字)","checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":"答案(数字)","type":"1"}]
  13853. `
  13854. }
  13855. let parm = {
  13856. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  13857. message: [{"type":"text", "text":messages}],
  13858. session_name: uuidv4(),
  13859. userId: this.userid,
  13860. file_ids: fileid.length ? [...fileid] : '',
  13861. }
  13862. this.ajax
  13863. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  13864. .then((response) => {
  13865. console.log(response);
  13866. let data = response.data.FunctionResponse
  13867. if (data.message) {
  13868. console.log(data.message);
  13869. try {
  13870. let tArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  13871. resolve(tArray)
  13872. } catch (error) {
  13873. if(type == 15){
  13874. resolve({answerQ: "题目"})
  13875. }else if(type == 45){
  13876. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13877. }
  13878. }
  13879. }else if(type == 15){
  13880. resolve({answerQ: "题目"})
  13881. }else if(type == 45){
  13882. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13883. }
  13884. })
  13885. .catch((error) => {
  13886. if(type == 15){
  13887. resolve({answerQ: "题目"})
  13888. }else if(type == 45){
  13889. resolve([{"teststitle":"题目1","testItem":4,"checkList":["选项1","选项2","选项3","选项4"],"timuList":[],"answer":0,"type":"1"}])
  13890. }
  13891. console.log(error);
  13892. });
  13893. });
  13894. },
  13895. async aiGet4(messages, callback, clickType) {
  13896. let _this = this
  13897. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  13898. if (_this.infoData.length) {
  13899. for (var i = 0; i < _this.infoData.length; i++) {
  13900. if(_this.infoData[i].fileid){
  13901. fileid.push(_this.infoData[i].fileid)
  13902. }else {
  13903. let _fileid = await _this.createFileid(_this.infoData[i].url)
  13904. if(_fileid){
  13905. _this.infoData[i].fileid = _fileid
  13906. _this.$forceUpdate();
  13907. fileid.push(_fileid)
  13908. }
  13909. }
  13910. }
  13911. }
  13912. // let params = JSON.stringify({
  13913. // // "model": "Chat",
  13914. // model: 'gpt-3.5-turbo',
  13915. // temperature: 0,
  13916. // max_tokens: 4096,
  13917. // top_p: 1,
  13918. // frequency_penalty: 0,
  13919. // presence_penalty: 0,
  13920. // messages: [{
  13921. // content: messages,
  13922. // role: 'user'
  13923. // }],
  13924. // stream: false,
  13925. // uid: this.userid,
  13926. // mind_map_question: "",
  13927. // })
  13928. // // let params = JSON.stringify({
  13929. // // message: {
  13930. // // anthropic_version: "bedrock-2023-05-31",
  13931. // // max_tokens: 4096,
  13932. // // temperature: 0,
  13933. // // top_p: 1,
  13934. // // messages: [{
  13935. // // content: messages,
  13936. // // role: 'user'
  13937. // // }], //
  13938. // // },
  13939. // // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  13940. // // });
  13941. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  13942. // // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  13943. // console.log(response);
  13944. // let data = response.data.FunctionResponse
  13945. // if (data.choices && data.choices.length && data.choices[0].message) {
  13946. // console.log(data.choices[0].message.content);
  13947. // let dArray = JSON.parse(data.choices[0].message.content)
  13948. // _this.teacherText = JSON.parse(data.choices[0].message.content)
  13949. // if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  13950. // _this.unitJson[0].chapterInfo[0].taskJson = []
  13951. // for (var i = 0; i < dArray.length; i++) {
  13952. // let _task = dArray[i]
  13953. // _this.unitJson[0].chapterInfo[0].taskJson.push({
  13954. // task: _task.task,
  13955. // taskDetail: "",
  13956. // taskDetail2: "",
  13957. // taskDetail3: _task.detail,
  13958. // chapterData: [],
  13959. // toolText: "",
  13960. // toolChoose: [
  13961. // {
  13962. // tool: [],
  13963. // toolDetail: "",
  13964. // toolType: 0,
  13965. // askCount: 1,
  13966. // askTitle: "",
  13967. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13968. // },
  13969. // ],
  13970. // isShowTools: false,
  13971. // askCount: 1,
  13972. // isFold: 2,
  13973. // askTitle: "",
  13974. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13975. // checkJson: [{ checkCount: [], checkPerent: [] }],
  13976. // homeworkList: [],
  13977. // })
  13978. // }
  13979. // _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = _this.infoData
  13980. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  13981. // _this.$forceUpdate();
  13982. // } else {
  13983. // for (var i = 0; i < dArray.length; i++) {
  13984. // let _task = dArray[i]
  13985. // if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  13986. // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  13987. // }else {
  13988. // _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  13989. // task: _task.task,
  13990. // taskDetail: "",
  13991. // taskDetail2: "",
  13992. // taskDetail3: _task.detail,
  13993. // chapterData: [],
  13994. // toolText: "",
  13995. // toolChoose: [
  13996. // {
  13997. // tool: [],
  13998. // toolDetail: "",
  13999. // toolType: 0,
  14000. // askCount: 1,
  14001. // askTitle: "",
  14002. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14003. // },
  14004. // ],
  14005. // isShowTools: false,
  14006. // askCount: 1,
  14007. // isFold: 2,
  14008. // askTitle: "",
  14009. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14010. // checkJson: [{ checkCount: [], checkPerent: [] }],
  14011. // homeworkList: [],
  14012. // }
  14013. // }
  14014. // }
  14015. // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14016. // _this.$forceUpdate();
  14017. // }
  14018. // }
  14019. // // if (data.result) {
  14020. // // console.log(data.result);
  14021. // // let dArray = JSON.parse(data.result)
  14022. // // _this.teacherText = JSON.parse(data.result)
  14023. // // for (var i = 0; i < dArray.length; i++) {
  14024. // // let _task = dArray[i]
  14025. // // _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14026. // // }
  14027. // // _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14028. // // _this.$forceUpdate();
  14029. // // }
  14030. // callback ? callback() : ''
  14031. // _this.loading = false
  14032. // }).catch(function (error) {
  14033. // _this.loading = false
  14034. // console.log(error);
  14035. // });
  14036. let parm = {
  14037. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14038. message: [{"type":"text", "text":messages}],
  14039. session_name: uuidv4(),
  14040. userId: this.userid,
  14041. file_ids: fileid.length ? [...fileid] : '',
  14042. }
  14043. this.ajax
  14044. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
  14045. .then((response) => {
  14046. console.log(response);
  14047. let data = response.data.FunctionResponse
  14048. if (data.message) {
  14049. console.log(data.message);
  14050. let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14051. _this.teacherText = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
  14052. if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
  14053. _this.unitJson[0].chapterInfo[0].taskJson = []
  14054. for (var i = 0; i < dArray.length; i++) {
  14055. let _task = dArray[i]
  14056. _this.unitJson[0].chapterInfo[0].taskJson.push({
  14057. task: _task.task,
  14058. taskDetail: "",
  14059. taskDetail2: "",
  14060. taskDetail3: _task.detail,
  14061. chapterData: [],
  14062. toolText: "",
  14063. toolChoose: [
  14064. {
  14065. tool: [],
  14066. toolDetail: "",
  14067. toolType: 0,
  14068. askCount: 1,
  14069. askTitle: "",
  14070. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14071. },
  14072. ],
  14073. isShowTools: false,
  14074. askCount: 1,
  14075. isFold: 2,
  14076. askTitle: "",
  14077. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14078. checkJson: [{ checkCount: [], checkPerent: [] }],
  14079. homeworkList: [],
  14080. })
  14081. }
  14082. _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData = JSON.parse(JSON.stringify(_this.infoData))
  14083. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14084. _this.$forceUpdate();
  14085. } else {
  14086. for (var i = 0; i < dArray.length; i++) {
  14087. let _task = dArray[i]
  14088. if(_this.unitJson[0].chapterInfo[0].taskJson[i]){
  14089. _this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3 = _task.detail
  14090. }else {
  14091. _this.unitJson[0].chapterInfo[0].taskJson[i] = {
  14092. task: _task.task,
  14093. taskDetail: "",
  14094. taskDetail2: "",
  14095. taskDetail3: _task.detail,
  14096. chapterData: [],
  14097. toolText: "",
  14098. toolChoose: [
  14099. {
  14100. tool: [],
  14101. toolDetail: "",
  14102. toolType: 0,
  14103. askCount: 1,
  14104. askTitle: "",
  14105. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14106. },
  14107. ],
  14108. isShowTools: false,
  14109. askCount: 1,
  14110. isFold: 2,
  14111. askTitle: "",
  14112. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14113. checkJson: [{ checkCount: [], checkPerent: [] }],
  14114. homeworkList: [],
  14115. }
  14116. }
  14117. }
  14118. _this.unitJson2 = JSON.parse(JSON.stringify(_this.unitJson))
  14119. _this.$forceUpdate();
  14120. }
  14121. }
  14122. callback ? callback() : ''
  14123. })
  14124. .catch((error) => {
  14125. _this.loading = false
  14126. console.log(error);
  14127. });
  14128. },
  14129. async aiDetail(msg, index) {
  14130. let _this = this
  14131. const _tindex = 'task-' + index
  14132. const _tindex2 = index
  14133. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14134. if (_this.infoData.length) {
  14135. for (var i = 0; i < _this.infoData.length; i++) {
  14136. if(_this.infoData[i].fileid){
  14137. fileid.push(_this.infoData[i].fileid)
  14138. }else {
  14139. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14140. if(_fileid){
  14141. _this.infoData[i].fileid = _fileid
  14142. _this.$forceUpdate();
  14143. fileid.push(_fileid)
  14144. }
  14145. }
  14146. }
  14147. }
  14148. let url = []
  14149. if (this.infoData.length) {
  14150. for (var i = 0; i < this.infoData.length; i++) {
  14151. url.push(this.infoData[i].url)
  14152. }
  14153. }
  14154. let messages = `
  14155. 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.
  14156. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14157. --------
  14158. ## 要求
  14159. ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
  14160. --------
  14161. ## 教学任务描述
  14162. 任务名称:${_this.aiCallBack.task}
  14163. 大纲描述:${_this.aiCallBack.taskDetail2}`
  14164. // -------- #补充参考资料和
  14165. // ## 补充参考资料
  14166. // - 补充资料:${url.join(",")}
  14167. // - 补充描述:${_this.courseText2}
  14168. _this.taskDetailLoading.push(_tindex)
  14169. _this.ttaskDetailLoading.push(_tindex)
  14170. let _uuid = uuidv4();
  14171. // let params = JSON.stringify({
  14172. // // "model": "Chat",
  14173. // model: 'gpt-3.5-turbo',
  14174. // temperature: 0,
  14175. // max_tokens: 4096,
  14176. // top_p: 1,
  14177. // frequency_penalty: 0,
  14178. // presence_penalty: 0,
  14179. // messages: [{
  14180. // content: messages,
  14181. // role: 'user'
  14182. // }],
  14183. // uid: _uuid,
  14184. // mind_map_question: "",
  14185. // })
  14186. let params = {
  14187. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14188. message: [{"type":"text", "text":messages}],
  14189. session_name: _uuid,
  14190. userId: _this.userid,
  14191. uid: _uuid,
  14192. file_ids: fileid.length ? [...fileid] : '',
  14193. }
  14194. // let params = JSON.stringify({
  14195. // message: {
  14196. // anthropic_version: "bedrock-2023-05-31",
  14197. // max_tokens: 4096,
  14198. // temperature: 0,
  14199. // top_p: 1,
  14200. // messages: [{
  14201. // "role": "user",
  14202. // "content": messages
  14203. // }] ,
  14204. // },
  14205. // uid: _uuid,
  14206. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14207. // });
  14208. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14209. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14210. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14211. console.log(response);
  14212. // let data = response.data.FunctionResponse
  14213. // if (data.choices && data.choices.length && data.choices[0].message) {
  14214. // console.log(data.choices[0].message.content);
  14215. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = data.choices[0].message.content
  14216. // _this.$forceUpdate()
  14217. // }
  14218. if (response.data.FunctionResponse.result == "发送成功") {
  14219. } else {
  14220. this.$message.warning(response.data.FunctionResponse.result);
  14221. }
  14222. // _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14223. }).catch(function (error) {
  14224. _this.taskDetailLoading.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14225. _this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
  14226. console.log(error);
  14227. });
  14228. _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
  14229. },
  14230. aiDetailgetAiContent(_uid, loading, _tindex2) {
  14231. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14232. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14233. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14234. let _allText = "";
  14235. let _mdText = "";
  14236. _source.onmessage = _e => {
  14237. let _eData = JSON.parse(_e.data).content;
  14238. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14239. //对话已经完成
  14240. _mdText = _mdText.replace("_", "");
  14241. _source.close();
  14242. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14243. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14244. this.ttaskDetailLoading.splice(this.ttaskDetailLoading.indexOf(loading), 1)
  14245. return;
  14246. } else {
  14247. //对话还在继续
  14248. let _text = "";
  14249. _text = _eData.replaceAll("'", "");
  14250. if (_allText == "") {
  14251. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14252. } else {
  14253. _allText += _text;
  14254. }
  14255. _mdText = _allText + "_";
  14256. _mdText = _mdText.replace(/\\n/g, "\n");
  14257. _mdText = _mdText.replace(/\\/g, "");
  14258. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14259. //转化返回的回复流数据
  14260. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 = _mdText;
  14261. this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
  14262. // 处理流数据
  14263. }
  14264. };
  14265. },
  14266. async aiDetail2(msg, index) {
  14267. let _this = this
  14268. const _tindex = 'task-' + index
  14269. const _tindex2 = index
  14270. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14271. if (_this.infoData.length) {
  14272. for (var i = 0; i < _this.infoData.length; i++) {
  14273. if(_this.infoData[i].fileid){
  14274. fileid.push(_this.infoData[i].fileid)
  14275. }else {
  14276. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14277. if(_fileid){
  14278. _this.infoData[i].fileid = _fileid
  14279. _this.$forceUpdate();
  14280. fileid.push(_fileid)
  14281. }
  14282. }
  14283. }
  14284. }
  14285. let messages = `
  14286. 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.
  14287. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14288. --------
  14289. ## 要求
  14290. ${msg}
  14291. --------
  14292. ## 优化信息
  14293. 任务名字: ${_this.aiCallBack.task}
  14294. 任务描述: ${_this.aiCallBack.taskDetail}
  14295. # 格式与要求
  14296. - 任务名:
  14297. - 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
  14298. _this.taskDetailLoading2.push(_tindex)
  14299. _this.ttaskDetailLoading2.push(_tindex)
  14300. let _uuid = uuidv4();
  14301. // let params = JSON.stringify({
  14302. // // "model": "Chat",
  14303. // model: 'gpt-3.5-turbo',
  14304. // temperature: 0,
  14305. // max_tokens: 4096,
  14306. // top_p: 1,
  14307. // frequency_penalty: 0,
  14308. // presence_penalty: 0,
  14309. // messages: [{
  14310. // content: messages,
  14311. // role: 'user'
  14312. // }],
  14313. // uid: _uuid,
  14314. // mind_map_question: "",
  14315. // })
  14316. let params = {
  14317. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14318. message: [{"type":"text", "text":messages}],
  14319. session_name: _uuid,
  14320. userId: _this.userid,
  14321. uid: _uuid,
  14322. file_ids: fileid.length ? [...fileid] : '',
  14323. }
  14324. // let params = JSON.stringify({
  14325. // message: {
  14326. // anthropic_version: "bedrock-2023-05-31",
  14327. // max_tokens: 4096,
  14328. // temperature: 0,
  14329. // top_p: 1,
  14330. // messages: [{
  14331. // "role": "user",
  14332. // "content": messages
  14333. // }] ,
  14334. // },
  14335. // uid: _uuid,
  14336. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14337. // });
  14338. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14339. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14340. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14341. console.log(response);
  14342. // let data = response.data.FunctionResponse
  14343. // if (data.choices && data.choices.length && data.choices[0].message) {
  14344. // console.log(data.choices[0].message.content);
  14345. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14346. // _this.$forceUpdate()
  14347. // }
  14348. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14349. if (response.data.FunctionResponse.result == "发送成功") {
  14350. } else {
  14351. this.$message.warning(response.data.FunctionResponse.result);
  14352. }
  14353. }).catch(function (error) {
  14354. _this.taskDetailLoading2.splice(_this.taskDetailLoading2.indexOf(_tindex), 1)
  14355. _this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
  14356. console.log(error);
  14357. });
  14358. _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
  14359. },
  14360. aiDetail2getAiContent(_uid, loading, _tindex2) {
  14361. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14362. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14363. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14364. let _allText = "";
  14365. let _mdText = "";
  14366. _source.onmessage = _e => {
  14367. let _eData = JSON.parse(_e.data).content;
  14368. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14369. //对话已经完成
  14370. _mdText = _mdText.replace("_", "");
  14371. _source.close();
  14372. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14373. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14374. this.ttaskDetailLoading2.splice(this.ttaskDetailLoading2.indexOf(loading), 1)
  14375. return;
  14376. } else {
  14377. //对话还在继续
  14378. let _text = "";
  14379. _text = _eData.replaceAll("'", "");
  14380. if (_allText == "") {
  14381. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14382. } else {
  14383. _allText += _text;
  14384. }
  14385. _mdText = _allText + "_";
  14386. _mdText = _mdText.replace(/\\n/g, "\n");
  14387. _mdText = _mdText.replace(/\\/g, "");
  14388. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14389. //转化返回的回复流数据
  14390. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = _mdText;
  14391. this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
  14392. // 处理流数据
  14393. }
  14394. };
  14395. },
  14396. async aiDetail3(msg, index, tindex) {
  14397. let _this = this
  14398. const _tindex = 'task-' + index + tindex
  14399. const _tindex2 = index
  14400. const _tindex3 = tindex
  14401. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14402. if (_this.infoData.length) {
  14403. for (var i = 0; i < _this.infoData.length; i++) {
  14404. if(_this.infoData[i].fileid){
  14405. fileid.push(_this.infoData[i].fileid)
  14406. }else {
  14407. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14408. if(_fileid){
  14409. _this.infoData[i].fileid = _fileid
  14410. _this.$forceUpdate();
  14411. fileid.push(_fileid)
  14412. }
  14413. }
  14414. }
  14415. }
  14416. // **重点考虑该任务及工具名和工具内容的情况下*
  14417. let messages = `
  14418. 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.
  14419. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14420. --------
  14421. ## 参考内容
  14422. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  14423. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  14424. 工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
  14425. 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
  14426. --------
  14427. ## 要求
  14428. ${msg} 输出格式和内容要求参考#格式与要求
  14429. # 格式与要求
  14430. -工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
  14431. _this.taskDetailLoading3.push(_tindex)
  14432. _this.ttaskDetailLoading3.push(_tindex)
  14433. let _uuid = uuidv4();
  14434. // let params = JSON.stringify({
  14435. // // "model": "Chat",
  14436. // model: 'gpt-3.5-turbo',
  14437. // temperature: 0,
  14438. // max_tokens: 4096,
  14439. // top_p: 1,
  14440. // frequency_penalty: 0,
  14441. // presence_penalty: 0,
  14442. // messages: [{
  14443. // content: messages,
  14444. // role: 'user'
  14445. // }],
  14446. // uid: _uuid,
  14447. // mind_map_question: "",
  14448. // })
  14449. let params = {
  14450. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14451. message: [{"type":"text", "text":messages}],
  14452. session_name: _uuid,
  14453. userId: _this.userid,
  14454. uid: _uuid,
  14455. file_ids: fileid.length ? [...fileid] : '',
  14456. }
  14457. // let params = JSON.stringify({
  14458. // message: {
  14459. // anthropic_version: "bedrock-2023-05-31",
  14460. // max_tokens: 4096,
  14461. // temperature: 0,
  14462. // top_p: 1,
  14463. // messages: [{
  14464. // "role": "user",
  14465. // "content": messages
  14466. // }] ,
  14467. // },
  14468. // uid: _uuid,
  14469. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14470. // });
  14471. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14472. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14473. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14474. console.log(response);
  14475. let data = response.data.FunctionResponse
  14476. // if (data.choices && data.choices.length && data.choices[0].message) {
  14477. // console.log(data.choices[0].message.content);
  14478. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = data.choices[0].message.content
  14479. // _this.$forceUpdate()
  14480. // }
  14481. // _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  14482. if (response.data.FunctionResponse.result == "发送成功") {
  14483. } else {
  14484. this.$message.warning(response.data.FunctionResponse.result);
  14485. }
  14486. }).catch(function (error) {
  14487. _this.taskDetailLoading3.splice(_this.taskDetailLoading3.indexOf(_tindex), 1)
  14488. _this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
  14489. console.log(error);
  14490. });
  14491. _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
  14492. },
  14493. aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
  14494. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14495. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14496. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14497. let _allText = "";
  14498. let _mdText = "";
  14499. _source.onmessage = _e => {
  14500. let _eData = JSON.parse(_e.data).content;
  14501. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14502. //对话已经完成
  14503. _mdText = _mdText.replace("_", "");
  14504. _source.close();
  14505. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  14506. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  14507. this.ttaskDetailLoading3.splice(this.ttaskDetailLoading3.indexOf(loading), 1)
  14508. return;
  14509. } else {
  14510. //对话还在继续
  14511. let _text = "";
  14512. _text = _eData.replaceAll("'", "");
  14513. if (_allText == "") {
  14514. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14515. } else {
  14516. _allText += _text;
  14517. }
  14518. _mdText = _allText + "_";
  14519. _mdText = _mdText.replace(/\\n/g, "\n");
  14520. _mdText = _mdText.replace(/\\/g, "");
  14521. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14522. //转化返回的回复流数据
  14523. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail = _mdText;
  14524. this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
  14525. // 处理流数据
  14526. }
  14527. };
  14528. },
  14529. async aiDetail4(msg, index) {
  14530. if (!msg.length) {
  14531. this.$message.error("请添加评价后才能优化")
  14532. return
  14533. }
  14534. let _this = this
  14535. const _tindex = 'task-' + index
  14536. const _tindex2 = index
  14537. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14538. if (_this.infoData.length) {
  14539. for (var i = 0; i < _this.infoData.length; i++) {
  14540. if(_this.infoData[i].fileid){
  14541. fileid.push(_this.infoData[i].fileid)
  14542. }else {
  14543. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14544. if(_fileid){
  14545. _this.infoData[i].fileid = _fileid
  14546. _this.$forceUpdate();
  14547. fileid.push(_fileid)
  14548. }
  14549. }
  14550. }
  14551. }
  14552. var _text = ""
  14553. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList.length; i++) {
  14554. _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
  14555. }
  14556. // **重点考虑该任务详情**
  14557. let messages = `
  14558. 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.
  14559. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14560. #Context
  14561. ## 参考内容
  14562. 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
  14563. 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
  14564. 评价设计:${_text}
  14565. ## 要求
  14566. ${msg} 优化评价维度和维度描述,输出格式和内容要求参考# 格式与要求
  14567. # 格式与要求
  14568. -评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
  14569. # Format example
  14570. [{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]`
  14571. _this.taskDetailLoading4.push(_tindex)
  14572. // let params = JSON.stringify({
  14573. // // "model": "Chat",
  14574. // model: 'gpt-3.5-turbo',
  14575. // temperature: 0,
  14576. // max_tokens: 4096,
  14577. // top_p: 1,
  14578. // frequency_penalty: 0,
  14579. // presence_penalty: 0,
  14580. // messages: [{
  14581. // content: messages,
  14582. // role: 'user'
  14583. // }],
  14584. // stream: false,
  14585. // uid: this.userid,
  14586. // mind_map_question: "",
  14587. // })
  14588. let params = {
  14589. assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
  14590. message: [{"type":"text", "text":messages}],
  14591. session_name: uuidv4(),
  14592. userId: _this.userid,
  14593. file_ids: fileid.length ? [...fileid] : '',
  14594. }
  14595. // let params = JSON.stringify({
  14596. // message: {
  14597. // anthropic_version: "bedrock-2023-05-31",
  14598. // max_tokens: 4096,
  14599. // temperature: 0,
  14600. // top_p: 1,
  14601. // messages: [{
  14602. // content: messages,
  14603. // role: 'user'
  14604. // }], //
  14605. // },
  14606. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14607. // });
  14608. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14609. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat', params).then(function (response) {
  14610. // _this.ajax.post('https://claude3.cocorobo.cn/claude3Chat', params).then(function (response) {
  14611. console.log(response);
  14612. let data = response.data.FunctionResponse
  14613. // if (data.choices && data.choices.length && data.choices[0].message) {
  14614. // console.log(data.choices[0].message.content);
  14615. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.choices[0].message.content)
  14616. // _this.$forceUpdate()
  14617. // }
  14618. if (data.message) {
  14619. console.log(data.message);
  14620. try {
  14621. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.message.replaceAll("```json", "").replaceAll("```", ""))
  14622. } catch (e) {
  14623. console.log("error_________________" + e);
  14624. // _this.$message.error(data.message)
  14625. try {
  14626. // let _data = JSON.parse(data.message.match(/(?<=```json).*?(?=```)/)[0])
  14627. var message = data.message;
  14628. var jsonStart = message.indexOf("```json") + 7; // `+ 7` 是为了跳过 ```json
  14629. var jsonEnd = message.indexOf("```", jsonStart);
  14630. if (jsonStart !== -1 && jsonEnd !== -1) {
  14631. var jsonString = message
  14632. .substring(jsonStart, jsonEnd)
  14633. .trim();
  14634. var _data2 = JSON.parse(jsonString);
  14635. _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = _data2
  14636. }
  14637. } catch (error) {
  14638. }
  14639. }
  14640. _this.$forceUpdate()
  14641. }
  14642. // if (data.result) {
  14643. // console.log(data.result);
  14644. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList = JSON.parse(data.result)
  14645. // _this.$forceUpdate()
  14646. // }
  14647. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14648. }).catch(function (error) {
  14649. _this.taskDetailLoading4.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14650. console.log(error);
  14651. });
  14652. },
  14653. async aiDetail5(msg, index) {
  14654. let _this = this
  14655. const _tindex = 'task-' + index
  14656. const _tindex2 = index
  14657. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14658. if (_this.infoData.length) {
  14659. for (var i = 0; i < _this.infoData.length; i++) {
  14660. if(_this.infoData[i].fileid){
  14661. fileid.push(_this.infoData[i].fileid)
  14662. }else {
  14663. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14664. if(_fileid){
  14665. _this.infoData[i].fileid = _fileid
  14666. _this.$forceUpdate();
  14667. fileid.push(_fileid)
  14668. }
  14669. }
  14670. }
  14671. }
  14672. let url = []
  14673. if (this.infoData.length) {
  14674. for (var i = 0; i < this.infoData.length; i++) {
  14675. url.push(this.infoData[i].url)
  14676. }
  14677. }
  14678. var _text = ""
  14679. var _text2 = ""
  14680. for (var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
  14681. _text += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  14682. _text2 += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 教案描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
  14683. }
  14684. let messages = `
  14685. 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.
  14686. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14687. --------
  14688. ## 要求
  14689. ${msg}
  14690. -------
  14691. ## 本教案描述
  14692. ${_this.aiCallBack}
  14693. -------
  14694. ## 课程大纲
  14695. ${_text}
  14696. -------
  14697. ## 其他教学任务教案
  14698. ${_text2}`
  14699. // ## 补充参考资料
  14700. // - 补充资料:${url.join(",")}
  14701. // - 补充描述:${this.courseText2}
  14702. _this.taskDetailLoading5.push(_tindex)
  14703. _this.ttaskDetailLoading5.push(_tindex)
  14704. let _uuid = uuidv4();
  14705. // let params = JSON.stringify({
  14706. // // "model": "Chat",
  14707. // model: 'gpt-3.5-turbo',
  14708. // temperature: 0,
  14709. // max_tokens: 4096,
  14710. // top_p: 1,
  14711. // frequency_penalty: 0,
  14712. // presence_penalty: 0,
  14713. // messages: [{
  14714. // content: messages,
  14715. // role: 'user'
  14716. // }],
  14717. // uid: _uuid,
  14718. // mind_map_question: "",
  14719. // })
  14720. let params = {
  14721. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14722. message: [{"type":"text", "text":messages}],
  14723. session_name: _uuid,
  14724. userId: _this.userid,
  14725. uid: _uuid,
  14726. file_ids: fileid.length ? [...fileid] : '',
  14727. }
  14728. // let params = JSON.stringify({
  14729. // message: {
  14730. // anthropic_version: "bedrock-2023-05-31",
  14731. // max_tokens: 4096,
  14732. // temperature: 0,
  14733. // top_p: 1,
  14734. // messages: [{
  14735. // "role": "user",
  14736. // "content": messages
  14737. // }] ,
  14738. // },
  14739. // uid: _uuid,
  14740. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14741. // });
  14742. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14743. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14744. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14745. console.log(response);
  14746. // let data = response.data.FunctionResponse
  14747. // if (data.choices && data.choices.length && data.choices[0].message) {
  14748. // console.log(data.choices[0].message.content);
  14749. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14750. // _this.$forceUpdate()
  14751. // }
  14752. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14753. if (response.data.FunctionResponse.result == "发送成功") {
  14754. } else {
  14755. this.$message.warning(response.data.FunctionResponse.result);
  14756. }
  14757. }).catch(function (error) {
  14758. _this.taskDetailLoading5.splice(_this.taskDetailLoading5.indexOf(_tindex), 1)
  14759. _this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
  14760. console.log(error);
  14761. });
  14762. _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
  14763. },
  14764. aiDetail5getAiContent(_uid, loading, _tindex2) {
  14765. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14766. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14767. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14768. let _allText = "";
  14769. let _mdText = "";
  14770. _source.onmessage = _e => {
  14771. let _eData = JSON.parse(_e.data).content;
  14772. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14773. //对话已经完成
  14774. _mdText = _mdText.replace("_", "");
  14775. _source.close();
  14776. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  14777. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  14778. this.ttaskDetailLoading5.splice(this.ttaskDetailLoading5.indexOf(loading), 1)
  14779. return;
  14780. } else {
  14781. //对话还在继续
  14782. let _text = "";
  14783. _text = _eData.replaceAll("'", "");
  14784. if (_allText == "") {
  14785. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14786. } else {
  14787. _allText += _text;
  14788. }
  14789. _mdText = _allText + "_";
  14790. _mdText = _mdText.replace(/\\n/g, "\n");
  14791. _mdText = _mdText.replace(/\\/g, "");
  14792. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14793. //转化返回的回复流数据
  14794. this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail3 = _mdText;
  14795. this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
  14796. // 处理流数据
  14797. }
  14798. };
  14799. },
  14800. async aiCpote(msg, callback) {
  14801. let _this = this
  14802. let _index = _this.aitype.replace("aiC","c")
  14803. let fileid = _this.isFileSearch ? [..._this.fileIds] : []
  14804. if (_this.infoData.length) {
  14805. for (var i = 0; i < _this.infoData.length; i++) {
  14806. if(_this.infoData[i].fileid){
  14807. fileid.push(_this.infoData[i].fileid)
  14808. }else {
  14809. let _fileid = await _this.createFileid(_this.infoData[i].url)
  14810. if(_fileid){
  14811. _this.infoData[i].fileid = _fileid
  14812. _this.$forceUpdate();
  14813. fileid.push(_fileid)
  14814. }
  14815. }
  14816. }
  14817. }
  14818. let sub = []
  14819. if (this.courseTypeId.length) {
  14820. for (var i = 0; i < this.courseTypeId.length; i++) {
  14821. let _sid = this.courseTypeId[i]
  14822. for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
  14823. if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
  14824. sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
  14825. }
  14826. }
  14827. }
  14828. }
  14829. let mclass = []
  14830. if (this.courseTypeId.length) {
  14831. for (var i = 0; i < this.courseTypeId.length; i++) {
  14832. let _sid = this.courseTypeId[i]
  14833. for (var j = 0; j < this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'].length; j++) {
  14834. if (_sid == this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].id) {
  14835. mclass.push(this.CourseTypeJson['34628934-d02f-11ec-8c78-005056b86db5'][j].name)
  14836. }
  14837. }
  14838. }
  14839. }
  14840. // ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
  14841. // ${this.cpote[_index] ? '## 优化内容\n'+this.cpote[_index] : ''}
  14842. let messages = `
  14843. 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.
  14844. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
  14845. ${msg}
  14846. ## 课程简介
  14847. 课程名字:${this.courseName}
  14848. ${this.courseText ? '课程简要描述:' + this.courseText : ''}
  14849. ${sub.length ? '学科:' + sub.join(",") : ''}
  14850. ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
  14851. ${this.aitype == 'aiCpote2' || this.aitype == 'aiCpote3' || this.aitype == 'aiCpote4' ? '## 概念群\n'+this.cpote['cpote1'] : ''}
  14852. ${this.aitype == 'aiCpote4' ? '## 问题链\n'+this.cpote['cpote2'] : ''}
  14853. ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
  14854. _this.cpoteLoading[_index] = true
  14855. _this.cpotetLoading[_index] = true
  14856. let _uuid = uuidv4();
  14857. // let params = JSON.stringify({
  14858. // // "model": "Chat",
  14859. // model: 'gpt-3.5-turbo',
  14860. // temperature: 0,
  14861. // max_tokens: 4096,
  14862. // top_p: 1,
  14863. // frequency_penalty: 0,
  14864. // presence_penalty: 0,
  14865. // messages: [{
  14866. // content: messages,
  14867. // role: 'user'
  14868. // }],
  14869. // uid: _uuid,
  14870. // mind_map_question: "",
  14871. // })
  14872. let params = {
  14873. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14874. message: [{"type":"text", "text":messages}],
  14875. session_name: _uuid,
  14876. userId: _this.userid,
  14877. uid: _uuid,
  14878. file_ids: fileid.length ? [...fileid] : '',
  14879. }
  14880. // let params = JSON.stringify({
  14881. // message: {
  14882. // anthropic_version: "bedrock-2023-05-31",
  14883. // max_tokens: 4096,
  14884. // temperature: 0,
  14885. // top_p: 1,
  14886. // messages: [{
  14887. // "role": "user",
  14888. // "content": messages
  14889. // }] ,
  14890. // },
  14891. // uid: _uuid,
  14892. // model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
  14893. // });
  14894. // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
  14895. _this.ajax.post('https://gpt4.cocorobo.cn/ai_agent_park_chat_new', params).then(function (response) {
  14896. // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
  14897. console.log(response);
  14898. // let data = response.data.FunctionResponse
  14899. // if (data.choices && data.choices.length && data.choices[0].message) {
  14900. // console.log(data.choices[0].message.content);
  14901. // _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail = data.choices[0].message.content
  14902. // _this.$forceUpdate()
  14903. // }
  14904. // _this.taskDetailLoading2.splice(_this.taskDetailLoading.indexOf(_tindex), 1)
  14905. if (response.data.FunctionResponse.result == "发送成功") {
  14906. } else {
  14907. this.$message.warning(response.data.FunctionResponse.result);
  14908. }
  14909. }).catch(function (error) {
  14910. _this.cpoteLoading[_index] = false
  14911. _this.cpotetLoading[_index] = false
  14912. callback ? callback() : ''
  14913. console.log(error);
  14914. });
  14915. _this.aiCpotegetAiContent(_uuid, _index, callback)
  14916. },
  14917. aiCpotegetAiContent(_uid, loading, callback) {
  14918. // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14919. let _source = new EventSource(`https://gpt4.cocorobo.cn/question/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14920. // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
  14921. let _allText = "";
  14922. let _mdText = "";
  14923. _source.onmessage = _e => {
  14924. let _eData = JSON.parse(_e.data).content;
  14925. if (_eData.replace("'", "").replace("'", "") == "[DONE]") {
  14926. //对话已经完成
  14927. _mdText = _mdText.replace("_", "");
  14928. _source.close();
  14929. this.cpote[loading] = _mdText;
  14930. this.cpoteLoading[loading] = false
  14931. this.cpotetLoading[loading] = false
  14932. callback ? callback() : ''
  14933. return;
  14934. } else {
  14935. //对话还在继续
  14936. let _text = "";
  14937. _text = _eData.replaceAll("'", "");
  14938. if (_allText == "") {
  14939. _allText = _text.replace(/^\n+/, ""); //去掉回复消息中偶尔开头就存在的连续换行符
  14940. } else {
  14941. _allText += _text;
  14942. }
  14943. _mdText = _allText + "_";
  14944. _mdText = _mdText.replace(/\\n/g, "\n");
  14945. _mdText = _mdText.replace(/\\/g, "");
  14946. if (_allText.split("```").length % 2 == 0) _mdText += "\n```\n";
  14947. //转化返回的回复流数据
  14948. this.cpote[loading] = _mdText;
  14949. this.cpoteLoading[loading] = false
  14950. // 处理流数据
  14951. }
  14952. };
  14953. },
  14954. createFileid(url) {
  14955. let _this = this
  14956. return new Promise((resolve, reject) => {
  14957. try {
  14958. _this.ajax
  14959. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  14960. url: url,
  14961. })
  14962. .then((res) => {
  14963. let _data = res.data.FunctionResponse;
  14964. if (_data.result && _data.result.id) {
  14965. resolve(_data.result.id)
  14966. }
  14967. }).catch(function (error) {
  14968. resolve('')
  14969. });
  14970. }catch (e){
  14971. resolve()
  14972. }
  14973. });
  14974. }
  14975. },
  14976. beforeDestroy() {
  14977. clearTimeout(this.timer);
  14978. this.timer = null;
  14979. clearInterval(this.timer2);
  14980. this.timer2 = null;
  14981. clearInterval(this.pasteTimer);
  14982. this.pasteTimer = null;
  14983. },
  14984. beforeRouteLeave(to, from, next) {
  14985. clearTimeout(this.timer);
  14986. this.timer = null;
  14987. clearInterval(this.timer2);
  14988. this.timer2 = null;
  14989. clearInterval(this.pasteTimer);
  14990. this.pasteTimer = null;
  14991. next();
  14992. },
  14993. created() {
  14994. this.getStudent();
  14995. this.getTeacher();
  14996. this.getClass();
  14997. this.selectGrage();
  14998. this.getTemplate();
  14999. this.getTipsTemplate();
  15000. // this.selectType();
  15001. this.selectEva();
  15002. if(this.istemplate == 1){
  15003. this.isOutline = true
  15004. this.isOutline2 = true
  15005. }
  15006. this.loading = false;
  15007. this.timer2 = setInterval(() => {
  15008. this.selectEva();
  15009. }, 5000);
  15010. this.pasteTimer = setInterval(() => {
  15011. this.getPaste();
  15012. }, 1000);
  15013. setTimeout(() => {
  15014. // this.selectAllType();
  15015. this.selectCourseDetail();
  15016. }, 500);
  15017. let _this = this;
  15018. window.pasteStage = function (json) {
  15019. _this.pasteStage(json);
  15020. };
  15021. window.pasteTask = function (json) {
  15022. _this.pasteTask(json);
  15023. };
  15024. },
  15025. };
  15026. </script>
  15027. <style scoped>
  15028. @media screen and (max-width: 1280px) {
  15029. .mbCss {
  15030. flex-direction: column !important;
  15031. }
  15032. .pjCss {
  15033. width: 100% !important;
  15034. }
  15035. .evaCss {
  15036. width: 100% !important;
  15037. margin-top: 10px;
  15038. }
  15039. }
  15040. .el-table>>>.even_row {
  15041. background-color: #f1f1f1 !important;
  15042. }
  15043. .dialog_diy>>>.el-dialog__header {
  15044. background: #3c3c3c !important;
  15045. padding: 15px 20px;
  15046. }
  15047. .dialog_diy>>>.el-dialog__title {
  15048. color: #fff;
  15049. }
  15050. .dialog_diy>>>.el-dialog__headerbtn {
  15051. top: 19px;
  15052. }
  15053. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  15054. color: #fff;
  15055. }
  15056. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  15057. color: #fff;
  15058. }
  15059. .dialog_diy>>>.el-dialog__body,
  15060. .dialog_diy>>>.el-dialog__footer {
  15061. background: #fafafa;
  15062. }
  15063. .dialog_diy3>>>.el-dialog__body,
  15064. .dialog_diy3>>>.el-dialog__footer {
  15065. background: #eee !important;
  15066. }
  15067. .dialog_diy3>>>.el-dialog__body {
  15068. padding: 20px 20px;
  15069. }
  15070. .dialog_diyStage>>>.el-dialog__body {
  15071. padding: 10px;
  15072. }
  15073. .source_diy>>>.el-dialog {
  15074. height: 100% !important;
  15075. margin: 0 auto !important;
  15076. }
  15077. .source_diy>>>.el-dialog__body {
  15078. height: calc(100% - 185px);
  15079. overflow: auto;
  15080. background: #e6eaf0;
  15081. }
  15082. .source_diy>>>.el-dialog__footer {
  15083. background: #e6eaf0 !important;
  15084. }
  15085. .left {
  15086. border-right: 1px solid rgb(60, 94, 143);
  15087. display: flex;
  15088. flex-direction: column;
  15089. align-items: center;
  15090. min-height: 600px;
  15091. width: 385px;
  15092. height: 80%;
  15093. }
  15094. .tips {
  15095. color: rgb(128, 128, 128);
  15096. font-size: 12px;
  15097. width: 270px;
  15098. margin: 40px;
  15099. }
  15100. .pb_content {
  15101. height: 100% !important;
  15102. /* margin: 0 20px 0 20px; */
  15103. }
  15104. .pb_content_body {
  15105. width: 100% !important;
  15106. height: 100%;
  15107. display: flex;
  15108. }
  15109. .info_solid {
  15110. width: 270px;
  15111. height: 30px;
  15112. border-left: 1px solid #bdbdbd;
  15113. margin: 10px 0px 10px 30px;
  15114. }
  15115. .info_steps {
  15116. width: 270px;
  15117. font-size: 0.875rem;
  15118. display: flex;
  15119. align-items: center;
  15120. }
  15121. .info_steps span:nth-child(1) {
  15122. width: 30px;
  15123. height: 30px;
  15124. background: rgba(0, 0, 0, 0.38);
  15125. display: block;
  15126. color: #fff;
  15127. border-radius: 40px;
  15128. text-align: center;
  15129. line-height: 30px;
  15130. }
  15131. .steps_active {
  15132. background: #3d67bc !important;
  15133. }
  15134. .info_steps span:nth-child(2) {
  15135. margin-left: 5px;
  15136. }
  15137. .right {
  15138. height: 100%;
  15139. width: 100%;
  15140. display: flex;
  15141. overflow: hidden;
  15142. flex-direction: column;
  15143. }
  15144. .leftBar{
  15145. width: 290px;
  15146. height: calc(100% - 50px);
  15147. overflow: auto;
  15148. border-radius: 5px;
  15149. margin: 25px auto;
  15150. box-sizing: border-box;
  15151. margin-right: 10px;
  15152. }
  15153. .basic_box {
  15154. margin: 0 auto;
  15155. position: relative;
  15156. padding: 0 20px 0 20px;
  15157. }
  15158. .basic_box_success {
  15159. width: 100%;
  15160. min-height: 455px;
  15161. padding: 50px 0;
  15162. position: relative;
  15163. text-align: center;
  15164. border-bottom: 1px solid #bfbfbf;
  15165. box-sizing: border-box;
  15166. display: flex;
  15167. align-items: center;
  15168. flex-direction: column;
  15169. justify-content: center;
  15170. }
  15171. .info_title {
  15172. font-size: 1.5em;
  15173. margin-right: 25px;
  15174. /* margin: 20px 30px 20px 30px; */
  15175. }
  15176. .bInfo_title {
  15177. text-align: left;
  15178. margin: 10px 0;
  15179. }
  15180. .small_title {
  15181. font-size: 14px;
  15182. line-height: 40px;
  15183. }
  15184. .chapter_beizhu {
  15185. font-size: 12px;
  15186. font-weight: bold;
  15187. float: right;
  15188. color: rgb(128, 128, 128);
  15189. margin-top: 5px;
  15190. }
  15191. .chapter_uploadBox1 {
  15192. text-align: left;
  15193. background-color: rgb(242, 242, 242);
  15194. width: 100%;
  15195. height: 67px;
  15196. padding: 0px 15px;
  15197. border-radius: 8px;
  15198. overflow: hidden;
  15199. font-size: 16px;
  15200. box-sizing: border-box;
  15201. position: relative;
  15202. }
  15203. .chapter_add {
  15204. width: 100%;
  15205. height: 32px;
  15206. margin-top: 15px;
  15207. cursor: pointer;
  15208. }
  15209. .chapter_add_l {
  15210. margin-left: 5px;
  15211. width: 30px;
  15212. height: 30px;
  15213. float: left;
  15214. border: 1px solid #aaa;
  15215. color: #aaa;
  15216. border-radius: 50%;
  15217. font-size: 25px;
  15218. text-align: center;
  15219. }
  15220. .chapter_add_r {
  15221. font-size: 18px;
  15222. height: 40px;
  15223. line-height: 30px;
  15224. text-indent: 10px;
  15225. color: #aaa;
  15226. }
  15227. .chapter_add_r span {
  15228. font-size: 12px;
  15229. color: rgb(204, 204, 204);
  15230. }
  15231. .chapter_add_input {
  15232. display: none;
  15233. }
  15234. .line {
  15235. width: 85%;
  15236. margin: 0 auto;
  15237. border-top: 1px solid #e5e5e5;
  15238. margin-top: 20px;
  15239. }
  15240. .info_btnBox {
  15241. width: calc(100%);
  15242. display: flex;
  15243. justify-content: center;
  15244. height: 80px;
  15245. align-items: center;
  15246. background: #fff;
  15247. margin: 0 auto;
  15248. border-top: 2px solid rgb(228, 232, 237);
  15249. box-sizing: border-box;
  15250. }
  15251. .info_btnBox2 {
  15252. width: calc(100%);
  15253. display: flex;
  15254. justify-content: center;
  15255. height: 20px;
  15256. align-items: center;
  15257. background: #fff;
  15258. margin: 0 auto;
  15259. border-top: 2px solid rgb(228, 232, 237);
  15260. box-sizing: border-box;
  15261. overflow: hidden;
  15262. cursor: pointer;
  15263. }
  15264. .info_btnBox3 {
  15265. width: calc(100%);
  15266. display: flex;
  15267. justify-content: flex-end;
  15268. padding: 0 20px;
  15269. height: 60px;
  15270. align-items: center;
  15271. background: unset;
  15272. margin: 0 auto;
  15273. /* border-top: 1px solid rgb(228, 232, 237); */
  15274. box-sizing: border-box;
  15275. overflow: hidden;
  15276. cursor: pointer;
  15277. background: #fff;
  15278. border-radius: 10px;
  15279. }
  15280. .info_btn+.info_btn {
  15281. margin-left: 15px;
  15282. }
  15283. .info_btn,
  15284. .teacherWord {
  15285. color: #fff;
  15286. background-color: #0f7eff;
  15287. padding: 8px 24px;
  15288. font-size: 0.9375rem;
  15289. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  15290. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  15291. min-width: 64px;
  15292. font-weight: 500;
  15293. border-radius: 4px;
  15294. box-sizing: border-box;
  15295. border: none;
  15296. cursor: pointer;
  15297. }
  15298. .teacherWord {
  15299. width: 105px !important;
  15300. text-align: center !important;
  15301. line-height: 36px !important;
  15302. padding: 0 !important;
  15303. font-size: 14px !important;
  15304. margin: 10px 0 !important;
  15305. }
  15306. .template_box {
  15307. display: flex;
  15308. flex-wrap: wrap;
  15309. }
  15310. .wordTeacher {
  15311. display: flex;
  15312. flex-direction: column;
  15313. width: 100px;
  15314. height: 100px;
  15315. text-align: center;
  15316. font-size: 13px;
  15317. margin: 0 20px 20px 0;
  15318. background: #f0f4fa;
  15319. position: relative;
  15320. border-radius: 5px;
  15321. align-items: center;
  15322. justify-content: center;
  15323. border: 1px solid #cad1dc;
  15324. color: #0e1e33;
  15325. /* padding: 25px 0px; */
  15326. cursor: pointer;
  15327. }
  15328. .wordTeacher::after {
  15329. content: "";
  15330. display: block;
  15331. position: absolute;
  15332. width: 15px;
  15333. height: 15px;
  15334. right: 10px;
  15335. top: 10px;
  15336. background-image: url(../../../assets/icon/new/choose_a.png);
  15337. background-size: 100% 100%;
  15338. }
  15339. .wordTeacherA::after {
  15340. background-image: url(../../../assets/icon/new/choose_b.png);
  15341. }
  15342. .wordTeacher:nth-child(5n) {
  15343. margin-right: 0px;
  15344. }
  15345. .wordPic {
  15346. margin: 0 auto;
  15347. width: 30px;
  15348. height: 30px;
  15349. cursor: pointer;
  15350. }
  15351. .deleteWord {
  15352. width: 22px;
  15353. height: 22px;
  15354. position: absolute;
  15355. right: 5px;
  15356. top: -15px;
  15357. cursor: pointer;
  15358. display: none;
  15359. z-index: 999;
  15360. }
  15361. .wordPic>img,
  15362. .deleteWord>img,
  15363. .addToolImg>img {
  15364. width: 100%;
  15365. height: 100%;
  15366. }
  15367. .info_btn:hover {
  15368. background-color: #4f7cd5 !important;
  15369. }
  15370. .cru_selectBox {
  15371. display: flex;
  15372. margin: 15px 0;
  15373. flex-wrap: nowrap;
  15374. white-space: nowrap;
  15375. overflow: auto;
  15376. position: relative;
  15377. height: 40px;
  15378. max-width: calc(100% - 175px);
  15379. }
  15380. .cru_selectBox::-webkit-scrollbar {
  15381. /*滚动条整体样式*/
  15382. width: 6px;
  15383. /*高宽分别对应横竖滚动条的尺寸*/
  15384. height: 6px;
  15385. }
  15386. /*定义滚动条轨道 内阴影+圆角*/
  15387. .cru_selectBox::-webkit-scrollbar-track {
  15388. border-radius: 10px;
  15389. background-color: #eee;
  15390. }
  15391. /*定义滑块 内阴影+圆角*/
  15392. .cru_selectBox::-webkit-scrollbar-thumb {
  15393. border-radius: 10px;
  15394. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  15395. background-color: rgba(0, 0, 0, 0.1);
  15396. }
  15397. .cru_line {
  15398. position: absolute;
  15399. bottom: 0px;
  15400. transition: all 0.5s;
  15401. left: 0px;
  15402. width: 50px;
  15403. height: 4px;
  15404. left: 10px;
  15405. border-radius: 2px;
  15406. background: #3681fc;
  15407. }
  15408. .cru_select {
  15409. font-size: 18px;
  15410. margin-right: 20px;
  15411. margin-left: 5px;
  15412. cursor: pointer;
  15413. color: #0e1e33;
  15414. }
  15415. .cru_select:hover {
  15416. color: #3681fc !important;
  15417. }
  15418. .cru_selected {
  15419. color: #3681fc !important;
  15420. font-weight: bold;
  15421. }
  15422. .chapter_box {
  15423. margin-top: 10px;
  15424. width: 100%;
  15425. padding: 10px 20px;
  15426. background: #fff;
  15427. border-radius: 8px;
  15428. box-sizing: border-box;
  15429. }
  15430. .chapter_contentbox {
  15431. display: flex;
  15432. align-items: center;
  15433. /* margin-top: 15px; */
  15434. }
  15435. .chapter_contentbox .cc_title {
  15436. margin: 0px;
  15437. color: black;
  15438. display: block;
  15439. white-space: nowrap;
  15440. overflow: hidden;
  15441. text-overflow: ellipsis;
  15442. margin-right: 20px;
  15443. font-size: 18px;
  15444. height: 20px;
  15445. line-height: 22px;
  15446. min-width: fit-content;
  15447. display: flex;
  15448. }
  15449. .chapter_contentbox .cc_title::before {
  15450. content: "";
  15451. height: 100%;
  15452. width: 3px;
  15453. background: #3681fc;
  15454. border-radius: 3px;
  15455. opacity: 1;
  15456. display: block;
  15457. margin-right: 10px;
  15458. }
  15459. .chapter_contentbox .cc_input {
  15460. width: 100%;
  15461. display: flex;
  15462. }
  15463. .show_taskD {
  15464. min-width: fit-content;
  15465. margin-left: 10px;
  15466. display: flex;
  15467. align-items: center;
  15468. font-size: 14px;
  15469. cursor: pointer;
  15470. color: #717c8d;
  15471. }
  15472. .show_taskD>img {
  15473. width: 15px;
  15474. margin-right: 5px;
  15475. transition: 0.2s all;
  15476. transform: rotate(-90deg);
  15477. }
  15478. .show_taskD.show>img {
  15479. transform: rotate(0deg);
  15480. }
  15481. .show_toolD {
  15482. min-width: fit-content;
  15483. margin-left: 10px;
  15484. display: flex;
  15485. align-items: center;
  15486. font-size: 14px;
  15487. cursor: pointer;
  15488. color: #717c8d;
  15489. /* position: absolute;
  15490. right: 45px;
  15491. top: 5px; */
  15492. }
  15493. .show_toolD>img {
  15494. width: 15px;
  15495. margin-right: 5px;
  15496. transition: 0.2s all;
  15497. transform: rotate(-90deg);
  15498. }
  15499. .show_toolD.show>img {
  15500. transform: rotate(0deg);
  15501. }
  15502. .remove {
  15503. background-image: url("../../../assets/icon/new/delete_u.png");
  15504. cursor: pointer;
  15505. opacity: 0.5;
  15506. width: 30px;
  15507. min-width: 30px;
  15508. height: 30px;
  15509. background-size: 100% 100%;
  15510. background-repeat: no-repeat;
  15511. margin-left: 10px;
  15512. }
  15513. .remove1 {
  15514. background-image: url("../../../assets/remove1.png");
  15515. background-repeat: no-repeat;
  15516. background-position: 5px 10px;
  15517. width: 40px;
  15518. height: 50px;
  15519. cursor: pointer;
  15520. margin-left: 10px;
  15521. }
  15522. .binfo_input {
  15523. width: 100%;
  15524. margin: 0;
  15525. padding: 12px 14px;
  15526. display: block;
  15527. min-width: 0;
  15528. outline: none;
  15529. box-sizing: border-box;
  15530. background: none;
  15531. border: none;
  15532. border-radius: 4px;
  15533. background: #fff;
  15534. font-size: 16px;
  15535. resize: none;
  15536. font-family: "Microsoft YaHei";
  15537. min-height: 48px;
  15538. /* border: 1px solid #3682fc00; */
  15539. border: 1.5px solid #cad1dc;
  15540. }
  15541. .binfo_textarea {
  15542. border: 1.5px solid #cad1dc;
  15543. font-size: 16px;
  15544. resize: none;
  15545. /* background: #f6f6f6; */
  15546. font-family: "Microsoft YaHei";
  15547. }
  15548. .binfo_input:focus-visible {
  15549. border: 1.5px solid #3681fc !important;
  15550. }
  15551. .time {
  15552. display: flex;
  15553. margin: 35px 0 80px 0;
  15554. }
  15555. .chapter_btnbox {
  15556. width: 160px;
  15557. border-radius: 5px;
  15558. border: 2px dashed gray;
  15559. display: flex;
  15560. padding: 8px 50px;
  15561. align-items: center;
  15562. justify-content: center;
  15563. margin: 30px auto 0;
  15564. cursor: pointer;
  15565. }
  15566. .icon_add {
  15567. position: relative;
  15568. width: 24px;
  15569. padding-top: 20px;
  15570. border-radius: 100%;
  15571. border-width: 2px;
  15572. border-style: solid;
  15573. border-color: gray;
  15574. }
  15575. .icon_add i:nth-child(1) {
  15576. position: absolute;
  15577. left: 50%;
  15578. top: 50%;
  15579. height: 60%;
  15580. transform: translate(-50%, -50%);
  15581. border-width: 1px;
  15582. border-style: solid;
  15583. border-color: inherit;
  15584. }
  15585. .icon_add i:nth-child(2) {
  15586. position: absolute;
  15587. top: 50%;
  15588. left: 50%;
  15589. width: 60%;
  15590. transform: translate(-50%, -50%);
  15591. border-width: 1px;
  15592. border-style: solid;
  15593. border-color: inherit;
  15594. }
  15595. .chapter_btn_w {
  15596. font-size: 0.9375rem;
  15597. font-weight: bold;
  15598. color: gray;
  15599. margin-left: 20px;
  15600. }
  15601. .disUoloadSty>>>.el-icon-plus {
  15602. display: none !important;
  15603. /* 上传按钮隐藏 */
  15604. }
  15605. .imgLeft {
  15606. margin: 15px 0;
  15607. }
  15608. .add_info_box {
  15609. margin: 0 0 0 auto;
  15610. display: flex;
  15611. flex-wrap: wrap;
  15612. }
  15613. .add_info_box button {
  15614. margin: 0 5px 10px 0;
  15615. }
  15616. .add_info_box2 {
  15617. display: flex;
  15618. align-items: center;
  15619. flex-wrap: wrap;
  15620. }
  15621. .add_info_box2::after {
  15622. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  15623. color: red;
  15624. font-size: 14px;
  15625. margin-bottom: 10px;
  15626. }
  15627. .add_chapters_box {
  15628. text-align: left;
  15629. background-color: #fff;
  15630. width: 100%;
  15631. border-radius: 4px;
  15632. font-size: 16px;
  15633. box-sizing: border-box;
  15634. position: relative;
  15635. padding: 0 15px;
  15636. height: auto;
  15637. overflow-y: auto;
  15638. overflow-x: hidden;
  15639. border: 1px solid #cad1dc;
  15640. }
  15641. .add_chapters_box.add_c_none {
  15642. display: flex;
  15643. justify-content: center;
  15644. align-items: center;
  15645. padding: 15px;
  15646. }
  15647. .add_c_none>img {
  15648. width: 25px;
  15649. }
  15650. .add_chapters_box.add_c_none>span {
  15651. font-size: 14px;
  15652. font-weight: 400;
  15653. margin: 0 0 5px 5px;
  15654. }
  15655. .homework_box {
  15656. display: flex;
  15657. align-items: flex-start;
  15658. flex-wrap: wrap;
  15659. margin: 15px 0 0 0;
  15660. flex-direction: column;
  15661. align-content: flex-start;
  15662. }
  15663. .course_homework {
  15664. display: flex;
  15665. justify-content: center;
  15666. flex-direction: row;
  15667. align-items: center;
  15668. margin: 0 10px 0 0;
  15669. }
  15670. .course_homework>>>.el-input__inner {
  15671. width: 140px;
  15672. margin-left: 15px;
  15673. }
  15674. .chapter_upload_move {
  15675. position: relative;
  15676. background-color: #fff;
  15677. position: absolute;
  15678. width: 100%;
  15679. top: 0px;
  15680. left: 0px;
  15681. border: 1px solid #eee;
  15682. border-radius: 5px;
  15683. transition: width 2s;
  15684. -moz-transition: width 2s;
  15685. -webkit-transition: width 2s;
  15686. -o-transition: width 2s;
  15687. }
  15688. .chapter_upload_l_i {
  15689. background-image: url("../../../assets/icon.png");
  15690. background-position: 3px -165px;
  15691. width: 30px;
  15692. height: 30px;
  15693. margin: 10px auto 0 auto;
  15694. }
  15695. .course_input_box {
  15696. display: flex;
  15697. margin-right: 20px;
  15698. width: 100%;
  15699. align-items: center;
  15700. position: relative;
  15701. }
  15702. .course_input_box>.binfo_input {
  15703. width: calc(100% - 0 - 200px - 20px);
  15704. margin: 0 10px;
  15705. }
  15706. .bb_courseIcon {
  15707. width: 57px;
  15708. height: 45px;
  15709. background: #f0f4fa;
  15710. border-radius: 5px 0px 0px 5px;
  15711. display: flex;
  15712. align-items: center;
  15713. justify-content: center;
  15714. border-right: 1.5px solid rgb(202, 209, 220);
  15715. box-sizing: border-box;
  15716. position: absolute;
  15717. left: 1.5px;
  15718. }
  15719. .bb_courseIcon>img {
  15720. width: 25px;
  15721. height: auto;
  15722. }
  15723. .big_box {
  15724. /* margin-top: 20px; */
  15725. display: flex;
  15726. justify-content: space-between;
  15727. /* border-bottom: 1px solid #E0E2ED; */
  15728. }
  15729. .left_first {
  15730. display: flex;
  15731. flex-direction: column;
  15732. flex-wrap: nowrap;
  15733. width: calc(100% - 310px);
  15734. padding: 20px;
  15735. box-sizing: border-box;
  15736. background: #fff;
  15737. border-radius: 5px;
  15738. }
  15739. .right_first {
  15740. width: 300px;
  15741. display: flex;
  15742. align-items: center;
  15743. justify-content: center;
  15744. /* border-left: 1px solid #E0E2ED; */
  15745. box-sizing: border-box;
  15746. padding: 20px;
  15747. flex-direction: column;
  15748. background: #fff;
  15749. border-radius: 5px;
  15750. }
  15751. .ai_box {
  15752. width: 204px;
  15753. display: flex;
  15754. justify-content: flex-end;
  15755. margin-bottom: 15px;
  15756. }
  15757. .ai_content {
  15758. display: flex;
  15759. align-items: center;
  15760. font-size: 14px;
  15761. padding: 7px 20px;
  15762. box-sizing: border-box;
  15763. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  15764. border-radius: 12px;
  15765. font-weight: 700;
  15766. cursor: pointer;
  15767. }
  15768. .ai_content>img {
  15769. width: 40px;
  15770. margin-right: 5px;
  15771. }
  15772. .c_info_title {
  15773. padding: 15px 0 15px 0;
  15774. font-size: 16px;
  15775. font-weight: bold;
  15776. margin: 0 0 0 20px;
  15777. box-sizing: border-box;
  15778. display: flex;
  15779. align-items: center;
  15780. line-height: 20px;
  15781. }
  15782. .c_info_title::before {
  15783. content: "";
  15784. display: block;
  15785. width: 3px;
  15786. height: 20px;
  15787. background: #0061ff;
  15788. border-radius: 3px;
  15789. margin: 0 5px 0 0;
  15790. }
  15791. .right_title {
  15792. height: 30px;
  15793. padding: 15px 0 15px 20px;
  15794. border-bottom: 1px solid #f2f2f2;
  15795. font-size: 1.5em;
  15796. font-weight: bold;
  15797. color: #0f7eff;
  15798. margin: 0 auto;
  15799. }
  15800. .people {
  15801. border: 1px solid rgb(229 229 229);
  15802. /* height: 495px; */
  15803. height: 350px;
  15804. border-radius: 5px;
  15805. width: 100%;
  15806. overflow: auto;
  15807. }
  15808. .people_top {
  15809. display: flex;
  15810. width: 100%;
  15811. /* justify-content: space-between; */
  15812. /* align-items: center; */
  15813. flex-direction: column;
  15814. padding: 10px 10px 0;
  15815. box-sizing: border-box;
  15816. }
  15817. .people_nav,
  15818. .people_top_right {
  15819. /* padding: 20px 0 0 20px; */
  15820. }
  15821. .people_top_right {
  15822. height: 40px;
  15823. margin-bottom: 10px;
  15824. }
  15825. .people_search {
  15826. display: flex;
  15827. position: relative;
  15828. }
  15829. .people_search>>>.el-input__inner {
  15830. /* height: 25px; */
  15831. width: 100%;
  15832. }
  15833. .search_img {
  15834. width: 20px;
  15835. height: 20px;
  15836. position: absolute;
  15837. right: 10px;
  15838. top: 50%;
  15839. transform: translateY(-50%);
  15840. }
  15841. .search_img>img {
  15842. width: 100%;
  15843. height: 100%;
  15844. }
  15845. .people_name {
  15846. display: flex;
  15847. justify-content: flex-start;
  15848. padding: 20px 10px;
  15849. flex-direction: column;
  15850. flex-wrap: wrap;
  15851. }
  15852. .p_box {
  15853. position: relative;
  15854. }
  15855. .people_name>>>.el-checkbox {
  15856. width: 100%;
  15857. display: flex;
  15858. align-items: center;
  15859. margin-bottom: 10px;
  15860. }
  15861. .people_name>>>.el-checkbox__label {
  15862. text-overflow: ellipsis;
  15863. overflow: hidden;
  15864. width: calc(100%);
  15865. }
  15866. .people_name2>>>.el-checkbox__label {
  15867. width: calc(100% - 130px);
  15868. }
  15869. .inviteCode {
  15870. position: absolute;
  15871. right: 30px;
  15872. color: #237ade;
  15873. top: 0;
  15874. cursor: pointer;
  15875. font-size: 13px;
  15876. }
  15877. .noneInvite {
  15878. color: #a8a8a8;
  15879. }
  15880. .inviteImg {
  15881. position: absolute;
  15882. right: 5px;
  15883. top: 0;
  15884. width: 20px;
  15885. }
  15886. .right_img {
  15887. width: 150px;
  15888. height: 150px;
  15889. margin: 0 auto;
  15890. }
  15891. .right_img>img {
  15892. width: 100%;
  15893. height: 100%;
  15894. }
  15895. .number {
  15896. margin-top: 20px;
  15897. color: #4aa6ff;
  15898. text-decoration: underline;
  15899. }
  15900. .success_button {
  15901. display: flex;
  15902. text-align: center;
  15903. margin: 5% 0 auto;
  15904. flex-direction: row;
  15905. justify-content: center;
  15906. }
  15907. .look_course {
  15908. margin-right: 40px;
  15909. background: #3d67bc;
  15910. width: 200px;
  15911. height: 35px;
  15912. line-height: 35px;
  15913. color: #fff;
  15914. text-align: center;
  15915. font-size: 14px;
  15916. border-radius: 5px;
  15917. cursor: pointer;
  15918. }
  15919. .attend_others {
  15920. width: 250px;
  15921. background: #4fb13c;
  15922. height: 35px;
  15923. line-height: 35px;
  15924. color: #fff;
  15925. text-align: center;
  15926. font-size: 14px;
  15927. border-radius: 5px;
  15928. cursor: pointer;
  15929. }
  15930. .dialog_diy2>>>.el-dialog__body {
  15931. text-align: center;
  15932. }
  15933. .write_togother {
  15934. position: absolute;
  15935. right: 45px;
  15936. display: flex;
  15937. top: 5%;
  15938. }
  15939. .write_people {
  15940. font-size: 14px;
  15941. line-height: 50px;
  15942. padding-right: 10px;
  15943. }
  15944. .end_write {
  15945. background: #3d67bc;
  15946. color: #fff;
  15947. width: 100px;
  15948. height: 35px;
  15949. line-height: 35px;
  15950. text-align: center;
  15951. font-size: 14px;
  15952. border-radius: 5px;
  15953. cursor: pointer;
  15954. }
  15955. .chapter_upload+.chapter_upload {
  15956. /* margin-top: 15px; */
  15957. border-top: 1px solid #e7ebf1;
  15958. }
  15959. .chapter_upload {
  15960. height: 45px;
  15961. position: relative;
  15962. display: flex;
  15963. align-items: center;
  15964. width: 100%;
  15965. min-height: 45px;
  15966. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15967. /* border-radius: 4px; */
  15968. /* overflow: hidden; */
  15969. box-sizing: border-box;
  15970. }
  15971. .chapter_upload_drag {
  15972. position: absolute;
  15973. cursor: pointer;
  15974. width: 16px;
  15975. height: 16px;
  15976. left: -9px;
  15977. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  15978. background-size: 100% 100%;
  15979. z-index: 10;
  15980. display: none;
  15981. }
  15982. .isNavStage>.chapter_upload_drag {
  15983. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  15984. }
  15985. .chapter_upload_t {
  15986. background-color: #fff;
  15987. position: absolute;
  15988. height: 100%;
  15989. top: 0px;
  15990. left: 0px;
  15991. box-sizing: border-box;
  15992. }
  15993. .chapter_upload_o {
  15994. width: 100%;
  15995. height: 100%;
  15996. position: relative;
  15997. z-index: 1;
  15998. }
  15999. .chapter_upload_ic {
  16000. margin: 0 15px 0px auto;
  16001. display: flex;
  16002. align-items: center;
  16003. }
  16004. .chapter_upload_ic_l {
  16005. width: 50px;
  16006. height: 50px;
  16007. float: left;
  16008. }
  16009. .chapter_upload_ic_l div {
  16010. width: 30px;
  16011. height: 35px;
  16012. background: url("../../../assets/icon/icon.png");
  16013. }
  16014. .chapter_upload_ic_edit {
  16015. height: 100%;
  16016. display: flex;
  16017. align-items: center;
  16018. cursor: pointer;
  16019. margin: 0 10px 0 0;
  16020. }
  16021. .chapter_upload_ic_edit div {
  16022. width: 18px;
  16023. height: 18px;
  16024. background-image: url("../../../assets/icon/new/edit_u.png");
  16025. background-size: 100% 100%;
  16026. }
  16027. .chapter_upload_ic_r {
  16028. height: 100%;
  16029. display: flex;
  16030. align-items: center;
  16031. cursor: pointer;
  16032. }
  16033. .chapter_upload_ic_r div {
  16034. width: 18px;
  16035. height: 18px;
  16036. background-image: url("../../../assets/icon/new/delete_u.png");
  16037. background-size: 100% 100%;
  16038. }
  16039. .chapter_upload_n {
  16040. display: flex;
  16041. text-indent: 10px;
  16042. text-decoration: none;
  16043. text-overflow: ellipsis;
  16044. white-space: nowrap;
  16045. overflow: hidden;
  16046. width: 55%;
  16047. margin-left: 10px;
  16048. cursor: pointer;
  16049. margin-top: 2px;
  16050. align-items: center;
  16051. }
  16052. .chapter_upload_l_i2,
  16053. .chapter_upload_l_i3,
  16054. .chapter_upload_l_i8,
  16055. .chapter_upload_l_i6,
  16056. .chapter_upload_l_i12,
  16057. .chapter_upload_l_i14,
  16058. .chapter_upload_l_i13 {
  16059. width: 15px;
  16060. height: 15px;
  16061. background-size: 100% 100%;
  16062. }
  16063. .chapter_upload_l_i2 {
  16064. background-image: url("../../../assets/icon/new/u_word.png");
  16065. }
  16066. .chapter_upload_l_i3 {
  16067. background-image: url("../../../assets/icon/new/u_video.png");
  16068. }
  16069. .chapter_upload_l_i8 {
  16070. background-image: url("../../../assets/icon/new/u_url.png");
  16071. }
  16072. .chapter_upload_l_i14 {
  16073. background-image: url("../../../assets/icon/new/u_source.png");
  16074. }
  16075. .chapter_upload_l_i6 {
  16076. background-image: url("../../../assets/icon/new/u_picture.png");
  16077. }
  16078. .chapter_upload_l_i12 {
  16079. background-image: url("../../../assets/icon/new/u_word.png");
  16080. }
  16081. .chapter_upload_l_i13 {
  16082. background-image: url("../../../assets/icon/new/u_img.png");
  16083. }
  16084. .chapter_upload_noSee {
  16085. background-image: url("../../../assets/icon/new/u_noUpload.png");
  16086. width: 18px;
  16087. height: 18px;
  16088. background-size: 100% 100%;
  16089. display: block;
  16090. margin-right: 10px;
  16091. }
  16092. .chapter_upload_ud {
  16093. display: flex;
  16094. flex-direction: row;
  16095. justify-content: center;
  16096. margin: 0 10px 0 0;
  16097. }
  16098. .chapter_upload_ud>.chapter_upload_up {
  16099. margin-bottom: 0;
  16100. margin-right: 10px;
  16101. }
  16102. .chapter_upload_down,
  16103. .chapter_upload_up {
  16104. width: 20px;
  16105. height: 20px;
  16106. background: #e4eaf2;
  16107. cursor: pointer;
  16108. margin: 0 auto;
  16109. border-radius: 5px;
  16110. display: flex;
  16111. justify-content: center;
  16112. align-items: center;
  16113. }
  16114. .chapter_upload_up::after,
  16115. .chapter_upload_down::after {
  16116. content: "";
  16117. background-image: url("../../../assets/icon/new/downBtn.png");
  16118. width: 13px;
  16119. height: 13px;
  16120. background-size: 100% 100%;
  16121. display: block;
  16122. }
  16123. .chapter_upload_up::after {
  16124. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  16125. }
  16126. .chapter_upload_up {
  16127. margin-bottom: 5px;
  16128. }
  16129. .chapter_upload_ud2 {
  16130. display: flex;
  16131. flex-direction: row;
  16132. justify-content: center;
  16133. margin: 0 10px 0 0;
  16134. }
  16135. .chapter_upload_ud2>.chapter_upload_up2 {
  16136. margin-bottom: 0;
  16137. margin-right: 10px;
  16138. }
  16139. .chapter_upload_down2,
  16140. .chapter_upload_up2 {
  16141. cursor: pointer;
  16142. margin: 0 auto;
  16143. border-radius: 5px;
  16144. display: flex;
  16145. justify-content: center;
  16146. align-items: center;
  16147. color: #717c8d;
  16148. font-size: 14px;
  16149. }
  16150. .chapter_upload_up2 {
  16151. margin-right: 10px;
  16152. }
  16153. .chapter_upload_up2::before,
  16154. .chapter_upload_down2::before {
  16155. content: "";
  16156. background-image: url("../../../assets/icon/new/c_down.png");
  16157. width: 14px;
  16158. height: 14px;
  16159. background-size: 100% 100%;
  16160. display: block;
  16161. margin-right: 5px;
  16162. }
  16163. .chapter_upload_up2::before {
  16164. background-image: url("../../../assets/icon/new/c_up.png") !important;
  16165. }
  16166. .addWordStyle {
  16167. display: flex;
  16168. flex-direction: row;
  16169. justify-content: flex-start;
  16170. overflow-x: auto;
  16171. white-space: nowrap;
  16172. flex-wrap: wrap;
  16173. }
  16174. /* table 样式 */
  16175. .cont>>>table {
  16176. border-top: 1px solid #ccc;
  16177. border-left: 1px solid #ccc;
  16178. }
  16179. .cont>>>table td,
  16180. .cont>>>table th {
  16181. border-bottom: 1px solid #ccc;
  16182. border-right: 1px solid #ccc;
  16183. /* padding: 20px 5px; */
  16184. padding: 5px 10px;
  16185. max-width: 0px;
  16186. height: 30px;
  16187. vertical-align: baseline;
  16188. }
  16189. .cont>>>table th {
  16190. border-bottom: 2px solid #ccc;
  16191. text-align: center;
  16192. }
  16193. /* blockquote 样式 */
  16194. .cont>>>blockquote {
  16195. display: block;
  16196. border-left: 8px solid #d0e5f2;
  16197. padding: 5px 10px;
  16198. margin: 10px 0;
  16199. line-height: 1.4;
  16200. font-size: 100%;
  16201. background-color: #f1f1f1;
  16202. }
  16203. /* code 样式 */
  16204. .cont>>>code {
  16205. display: inline-block;
  16206. /* *display: inline; */
  16207. zoom: 1;
  16208. background-color: #f1f1f1;
  16209. border-radius: 3px;
  16210. padding: 3px 5px;
  16211. margin: 0 3px;
  16212. }
  16213. .cont>>>pre code {
  16214. display: block;
  16215. }
  16216. /* ul ol 样式 */
  16217. .cont>>>ul,
  16218. ol {
  16219. margin: 10px 0 10px 20px;
  16220. }
  16221. .wordbox {
  16222. display: flex;
  16223. flex-wrap: wrap;
  16224. cursor: pointer;
  16225. width: 100%;
  16226. }
  16227. .checkword {
  16228. width: 22px;
  16229. height: 22px;
  16230. margin: 10px auto 0;
  16231. cursor: pointer;
  16232. }
  16233. .checkword img {
  16234. width: 100%;
  16235. }
  16236. .stepBg {
  16237. display: flex;
  16238. justify-content: space-between;
  16239. align-items: center;
  16240. background: #fff;
  16241. width: calc(100%);
  16242. margin: 0 auto;
  16243. }
  16244. .stepBorder {
  16245. height: 3px !important;
  16246. background: #cad1dc;
  16247. width: 100px !important;
  16248. margin: 0 15px !important;
  16249. position: relative;
  16250. }
  16251. .border-active {
  16252. background: #3681fc !important;
  16253. }
  16254. .border-active::before,
  16255. .border-active::after {
  16256. border-color: #3681fc !important;
  16257. }
  16258. .stepBorder::before,
  16259. .stepBorder::after {
  16260. content: "";
  16261. width: 9px;
  16262. height: 9px;
  16263. background: #ffffff;
  16264. opacity: 1;
  16265. border: 2px solid #acb4bf;
  16266. display: block;
  16267. box-sizing: border-box;
  16268. border-radius: 50%;
  16269. position: absolute;
  16270. top: 50%;
  16271. transform: translateY(-50%);
  16272. }
  16273. .stepBorder::after {
  16274. right: -9px;
  16275. }
  16276. .stepTop {
  16277. width: 100%;
  16278. /* border-radius: 10px; */
  16279. display: flex;
  16280. justify-content: center;
  16281. align-items: center;
  16282. flex-wrap: nowrap;
  16283. background: #fff;
  16284. /* top: 18%; */
  16285. height: 80px;
  16286. border-bottom: 2px solid rgb(228, 232, 237);
  16287. box-sizing: border-box;
  16288. }
  16289. .stepTop2 {
  16290. width: 100%;
  16291. /* border-radius: 10px; */
  16292. display: flex;
  16293. justify-content: center;
  16294. align-items: center;
  16295. flex-wrap: nowrap;
  16296. background: #fff;
  16297. /* top: 18%; */
  16298. height: 20px;
  16299. border-bottom: 2px solid rgb(228, 232, 237);
  16300. box-sizing: border-box;
  16301. overflow: hidden;
  16302. cursor: pointer;
  16303. }
  16304. .stepTop>div img {
  16305. width: 100%;
  16306. }
  16307. .stepTop>div {
  16308. height: 50px;
  16309. width: 180px;
  16310. cursor: pointer;
  16311. margin: 10px 0;
  16312. border-radius: 10px;
  16313. }
  16314. .first,
  16315. .second,
  16316. .third,
  16317. .four {
  16318. background: #3681fc;
  16319. height: 90px;
  16320. color: #fff;
  16321. display: flex;
  16322. flex-direction: row;
  16323. align-items: center;
  16324. justify-content: center;
  16325. }
  16326. .first>div:nth-child(1),
  16327. .second>div:nth-child(1),
  16328. .third>div:nth-child(1),
  16329. .four>div:nth-child(1) {
  16330. margin: 5px 10px 0 0;
  16331. width: 2rem;
  16332. }
  16333. .firstNo,
  16334. .secondNo,
  16335. .thirdNo,
  16336. .fourNo {
  16337. background: #e7e7e7;
  16338. color: #adadad;
  16339. display: flex;
  16340. flex-direction: row;
  16341. align-items: center;
  16342. justify-content: center;
  16343. }
  16344. .firstNo>div:nth-child(1),
  16345. .secondNo>div:nth-child(1),
  16346. .thirdNo>div:nth-child(1),
  16347. .fourNo>div:nth-child(1) {
  16348. margin: 5px 10px 0 0;
  16349. width: 2rem;
  16350. }
  16351. .uploadWidth>>>.el-upload {
  16352. width: 60px;
  16353. height: 60px;
  16354. position: relative;
  16355. }
  16356. .addPeople {
  16357. background: #fa6060;
  16358. width: 150px;
  16359. height: 40px;
  16360. color: #fff;
  16361. border-radius: 5px;
  16362. text-align: center;
  16363. line-height: 40px;
  16364. font-size: 14px;
  16365. cursor: pointer;
  16366. }
  16367. .kcImg {
  16368. width: 60px;
  16369. margin-left: 10px;
  16370. }
  16371. .zyImg {
  16372. width: 55px;
  16373. margin: 0 10px;
  16374. }
  16375. .deleteZy {
  16376. width: 20px;
  16377. position: absolute;
  16378. top: 5px;
  16379. right: 5px;
  16380. cursor: pointer;
  16381. }
  16382. .kcImg>img,
  16383. .zyImg>img,
  16384. .deleteZy>img {
  16385. width: 100%;
  16386. height: 100%;
  16387. }
  16388. .zyBox {
  16389. display: flex;
  16390. flex-direction: row;
  16391. align-items: center;
  16392. background: #67d37d;
  16393. color: #fff;
  16394. width: 210px;
  16395. margin: 20px 20px 0 0;
  16396. border-radius: 10px;
  16397. height: 70px;
  16398. position: relative;
  16399. }
  16400. .upCss {
  16401. display: flex;
  16402. flex-direction: row;
  16403. justify-content: flex-start;
  16404. }
  16405. .upCss>>>.el-icon-plus {
  16406. position: none !important;
  16407. width: 200px;
  16408. height: 100px;
  16409. display: flex;
  16410. flex-wrap: nowrap;
  16411. flex-direction: column;
  16412. align-items: center;
  16413. justify-content: center;
  16414. border: 1px dashed #ccc;
  16415. min-width: 78px;
  16416. min-height: 100px;
  16417. z-index: 999;
  16418. }
  16419. .upCss>>>.el-upload-list__item-name {
  16420. width: 100px;
  16421. white-space: nowrap;
  16422. overflow: hidden;
  16423. text-overflow: ellipsis;
  16424. }
  16425. .upCss>>>.el-upload-list__item .el-icon-close {
  16426. font-size: 20px;
  16427. z-index: 9999;
  16428. }
  16429. .addStageImg {
  16430. min-width: 20px;
  16431. min-height: 20px;
  16432. width: 20px;
  16433. height: 20px;
  16434. cursor: pointer;
  16435. }
  16436. .addHW {
  16437. width: 28px;
  16438. height: 28px;
  16439. cursor: pointer;
  16440. }
  16441. .addStageImg>img,
  16442. .addHW>img {
  16443. width: 100%;
  16444. height: 100%;
  16445. }
  16446. .addNewPP>>>.el-dialog__body {
  16447. padding: 5px 20px;
  16448. }
  16449. .addNewPP>>>.el-dialog {
  16450. margin-top: 5vh !important;
  16451. }
  16452. .addNewPP2>>>.el-dialog__body {
  16453. padding: 5px 0;
  16454. }
  16455. .addNewPP2>>>.el-dialog {
  16456. margin-top: 5vh !important;
  16457. }
  16458. .isHeight {
  16459. height: 680px;
  16460. }
  16461. .toolChoose {
  16462. display: flex;
  16463. /* width: 100%; */
  16464. flex-direction: row;
  16465. flex-wrap: wrap;
  16466. }
  16467. .tool,
  16468. .isToolChoose {
  16469. display: flex;
  16470. flex-direction: column;
  16471. flex-wrap: nowrap;
  16472. width: fit-content;
  16473. margin: 10px 0 10px 0;
  16474. align-items: center;
  16475. border: 2px solid #dbdbdb00;
  16476. padding: 10px 20px;
  16477. border-radius: 5px;
  16478. cursor: pointer;
  16479. /* box-shadow: 0 0 2px 0px #dedede; */
  16480. position: relative;
  16481. box-sizing: border-box;
  16482. }
  16483. .tool:hover {
  16484. border: 2px solid #a5c7ff;
  16485. }
  16486. .tool:hover>.noCTool {
  16487. display: block;
  16488. opacity: 0.5;
  16489. }
  16490. .isToolChoose {
  16491. border: 2px solid #438aff !important;
  16492. box-shadow: 0 0 2px 0px #438aff;
  16493. opacity: 1 !important;
  16494. }
  16495. .isCTool,
  16496. .noCTool {
  16497. width: 30px;
  16498. height: 30px;
  16499. position: absolute;
  16500. top: -4px;
  16501. right: -4px;
  16502. }
  16503. .noCTool {
  16504. display: none;
  16505. }
  16506. .isCTool>img,
  16507. .noCTool>img {
  16508. width: 100%;
  16509. height: 100%;
  16510. }
  16511. .tool+.tool {
  16512. margin-right: 10px;
  16513. }
  16514. .whiteBIcon {
  16515. width: 80px;
  16516. cursor: pointer;
  16517. display: flex;
  16518. flex-direction: column;
  16519. flex-wrap: nowrap;
  16520. align-items: center;
  16521. font-size: 14px;
  16522. }
  16523. .whiteBIcon>img,
  16524. .toolIcon>img,
  16525. .arrow>img {
  16526. width: 100%;
  16527. height: 100%;
  16528. }
  16529. .check img {
  16530. width: 20px;
  16531. height: 20px;
  16532. }
  16533. .whiteBIcon>img {
  16534. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  16535. border-radius: 15px;
  16536. }
  16537. .whiteBIcon>div:nth-child(2) {
  16538. height: 20px;
  16539. line-height: 20px;
  16540. }
  16541. .check {
  16542. /* width: 20px;
  16543. height: 20px; */
  16544. cursor: pointer;
  16545. margin: 10px 0 0;
  16546. }
  16547. .checkDiv {
  16548. display: flex;
  16549. align-items: center;
  16550. }
  16551. .checkDiv span {
  16552. margin-left: 5px;
  16553. color: #858585;
  16554. }
  16555. .customWidth>>>.el-dialog {
  16556. min-width: 600px !important;
  16557. }
  16558. .CollaborativeCss {
  16559. width: 100%;
  16560. display: flex;
  16561. justify-content: center;
  16562. align-items: center;
  16563. box-sizing: border-box;
  16564. padding: 10px 0;
  16565. cursor: pointer;
  16566. }
  16567. .CollaborativeCss >>> .el-tooltip {
  16568. overflow: hidden;
  16569. white-space: nowrap;
  16570. text-overflow: ellipsis;
  16571. }
  16572. .CollaborativeCss2 {
  16573. background: #e0eafb;
  16574. color: #3681fc;
  16575. font-weight: 700;
  16576. border-radius: 5px;
  16577. }
  16578. .a_addBox {
  16579. margin: 10px 0;
  16580. background: #fff;
  16581. padding: 15px;
  16582. /* max-height: 600px; */
  16583. overflow: auto;
  16584. }
  16585. .a_add_box {
  16586. border-bottom: 2px solid #eee;
  16587. padding-bottom: 25px;
  16588. }
  16589. .a_add_head {
  16590. display: flex;
  16591. align-items: center;
  16592. justify-content: space-between;
  16593. margin: 10px 0 0 0;
  16594. font-size: 18px;
  16595. }
  16596. .a_add_checkType {
  16597. margin-top: 10px;
  16598. display: flex;
  16599. font-size: 14px;
  16600. align-items: center;
  16601. }
  16602. .a_add_checkType span {
  16603. box-sizing: border-box;
  16604. padding: 0 0 5px 0;
  16605. cursor: pointer;
  16606. }
  16607. .a_add_checkType span+span {
  16608. margin-left: 10px;
  16609. }
  16610. .a_add_checkType .active {
  16611. border-bottom: 2px solid #409eff;
  16612. color: #409eff;
  16613. }
  16614. .a_add_head .a_add_head_input {
  16615. /* width: 540px; */
  16616. width: 100%;
  16617. }
  16618. .a_add_head .a_add_head_div {
  16619. display: flex;
  16620. align-items: center;
  16621. justify-content: space-between;
  16622. }
  16623. .a_add_body {
  16624. display: flex;
  16625. /* align-items: center; */
  16626. align-items: flex-end;
  16627. }
  16628. .a_add_input {
  16629. display: flex;
  16630. align-items: center;
  16631. flex-wrap: wrap;
  16632. }
  16633. .a_add_input_choice {
  16634. flex-direction: column;
  16635. margin-right: 10px;
  16636. }
  16637. .a_add_input_choice>>>.el-radio {
  16638. display: flex;
  16639. align-items: center;
  16640. flex-direction: row-reverse;
  16641. margin: 30px 0 0 0;
  16642. position: relative;
  16643. }
  16644. .a_add_input_choice>>>.el-checkbox {
  16645. display: flex;
  16646. align-items: center;
  16647. flex-direction: row-reverse;
  16648. margin: 30px 0 0 0;
  16649. position: relative;
  16650. }
  16651. .width100 {
  16652. width: 100%;
  16653. }
  16654. .a_add_input .a_add_persent {
  16655. width: 100%;
  16656. }
  16657. .a_add_persent_div {
  16658. width: 100%;
  16659. display: flex;
  16660. align-items: center;
  16661. }
  16662. .a_add_persent_div span {
  16663. margin: 5px 0;
  16664. }
  16665. .a_add_persent_div span:nth-child(1) {
  16666. width: 30%;
  16667. }
  16668. .a_add_persent_div span:nth-child(2) {
  16669. width: 7%;
  16670. }
  16671. .a_add_persent_div span:nth-child(3) {
  16672. width: 40%;
  16673. }
  16674. .a_add_body_div {
  16675. display: flex;
  16676. align-items: center;
  16677. justify-content: center;
  16678. /* flex-direction: column; */
  16679. position: absolute;
  16680. right: -20px;
  16681. transform: translateX(100%);
  16682. }
  16683. .a_add_body_div>>>.el-button--primary {
  16684. background: #466b99;
  16685. border: none;
  16686. }
  16687. .all_choose {
  16688. display: flex;
  16689. flex-direction: row;
  16690. align-items: flex-start;
  16691. width: 100%;
  16692. }
  16693. .all_choose+.all_choose {
  16694. /* margin-top: 10px */
  16695. }
  16696. .all_choose>span {
  16697. min-width: fit-content;
  16698. display: block;
  16699. white-space: nowrap;
  16700. overflow: hidden;
  16701. text-overflow: ellipsis;
  16702. margin-right: 20px;
  16703. font-weight: bold;
  16704. font-size: 14px;
  16705. }
  16706. .all_choose>>>.el-checkbox-group {
  16707. display: flex;
  16708. flex-direction: row;
  16709. width: 100%;
  16710. flex-wrap: wrap;
  16711. align-content: center;
  16712. justify-content: flex-start;
  16713. align-items: center;
  16714. margin-top: 3px;
  16715. }
  16716. .all_choose>.el-checkbox-group>>>.el-checkbox {
  16717. margin-bottom: 10px;
  16718. display: flex;
  16719. flex-direction: row;
  16720. align-items: center;
  16721. margin-right: 10px;
  16722. }
  16723. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  16724. min-width: 80px;
  16725. overflow: hidden;
  16726. width: 80px;
  16727. text-overflow: ellipsis;
  16728. white-space: nowrap;
  16729. }
  16730. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  16731. width: auto;
  16732. }
  16733. .choose>div:nth-child(3)>span {
  16734. /* letter-spacing: 0 !important; */
  16735. }
  16736. .choose {
  16737. display: flex;
  16738. flex-direction: column;
  16739. flex-wrap: nowrap;
  16740. height: 100%;
  16741. justify-content: space-evenly;
  16742. align-items: flex-start;
  16743. }
  16744. .both {
  16745. display: flex;
  16746. flex-direction: row;
  16747. flex-wrap: wrap;
  16748. width: 100%;
  16749. align-items: center;
  16750. justify-content: flex-start;
  16751. margin: 15px 0;
  16752. }
  16753. .notice>>>.el-dialog {
  16754. width: 500px !important;
  16755. text-align: center;
  16756. }
  16757. .notice>>>.el-button {
  16758. margin-top: 20px;
  16759. }
  16760. .whiteBg {
  16761. /* background: #fff; */
  16762. border-radius: 10px;
  16763. }
  16764. .wb_j_box {
  16765. display: flex;
  16766. width: 100%;
  16767. padding: 0 20px 0;
  16768. box-sizing: border-box;
  16769. }
  16770. .wb_j_box_content {
  16771. width: calc(100% - 55% - 100px);
  16772. display: flex;
  16773. align-items: center;
  16774. }
  16775. .wb_j_box_p_box {
  16776. max-width: calc(100% - 200px);
  16777. word-break: break-all;
  16778. overflow: hidden;
  16779. margin: 0 0 0 10px;
  16780. font-size: 14px;
  16781. color: #6e6e6e;
  16782. z-index: 999;
  16783. }
  16784. .chooseWho {
  16785. display: flex;
  16786. width: 410px;
  16787. flex-direction: row;
  16788. flex-wrap: nowrap;
  16789. justify-content: space-between;
  16790. padding-bottom: 10px;
  16791. }
  16792. .chooseWho>div {
  16793. cursor: pointer;
  16794. padding-bottom: 10px;
  16795. font-weight: bold;
  16796. }
  16797. .isChooseActive {
  16798. color: #3e88f4;
  16799. border-bottom: 2px solid #2f80f3;
  16800. }
  16801. .toolSort {
  16802. display: flex;
  16803. flex-direction: row;
  16804. flex-wrap: wrap;
  16805. justify-content: flex-start;
  16806. align-items: flex-start;
  16807. }
  16808. .toolSort>div {
  16809. margin-right: 10px;
  16810. }
  16811. .tools {
  16812. width: 100%;
  16813. display: flex;
  16814. flex-direction: column;
  16815. flex-wrap: nowrap;
  16816. align-items: flex-start;
  16817. }
  16818. .leftTools,
  16819. .rightTools {
  16820. width: 50%;
  16821. }
  16822. .leftTools+.leftTools {
  16823. border-top: 1px solid #dbdbdb;
  16824. padding-top: 30px;
  16825. }
  16826. .rightTools {
  16827. display: flex;
  16828. flex-direction: row;
  16829. flex-wrap: nowrap;
  16830. justify-content: space-around;
  16831. }
  16832. .firstToolList {
  16833. display: flex;
  16834. flex-direction: column;
  16835. flex-wrap: nowrap;
  16836. align-items: center;
  16837. }
  16838. .iconList {
  16839. display: flex;
  16840. flex-direction: row;
  16841. flex-wrap: wrap;
  16842. justify-content: flex-start;
  16843. align-items: center;
  16844. margin: 20px 0 5px 0;
  16845. width: 240px;
  16846. min-width: 240px;
  16847. }
  16848. .iconTool {
  16849. display: flex;
  16850. flex-direction: column;
  16851. flex-wrap: nowrap;
  16852. align-items: center;
  16853. justify-content: flex-start;
  16854. margin: 15px 10px;
  16855. }
  16856. .toolIcon {
  16857. width: 50px;
  16858. }
  16859. .taskBorder {
  16860. /* border: 1px solid #CAD1DC; */
  16861. border-radius: 10px;
  16862. margin-top: 10px;
  16863. min-height: 670px;
  16864. position: relative;
  16865. background: #fff;
  16866. padding: 20px;
  16867. overflow: hidden;
  16868. box-sizing: border-box;
  16869. }
  16870. .smallTaskBorder {
  16871. height: 405px;
  16872. min-height: 405px !important;
  16873. overflow: hidden;
  16874. }
  16875. /* .taskBorder>div {
  16876. padding: 30px 30px 10px;
  16877. } */
  16878. .addTaskBorder {
  16879. /* border: 2px solid #5E9AFC; */
  16880. border-radius: 8px;
  16881. margin-top: 10px;
  16882. cursor: pointer;
  16883. /* height: 50px;
  16884. line-height: 50px; */
  16885. background: #fff;
  16886. padding: 15px 0;
  16887. display: flex;
  16888. align-items: center;
  16889. justify-content: center;
  16890. }
  16891. /* .addTaskBorder>div {
  16892. margin: 0 auto;
  16893. display: flex;
  16894. align-items: center;
  16895. justify-content: center;
  16896. }
  16897. .addTaskBorder>div>img {
  16898. width: 20px;
  16899. }
  16900. .addTaskBorder>div>span {
  16901. font-size: 16px;
  16902. margin-left: 10px;
  16903. color: #5E9AFC;
  16904. } */
  16905. .funBlock {
  16906. display: flex;
  16907. padding: 15px 0;
  16908. flex-direction: row;
  16909. justify-content: center;
  16910. align-items: center;
  16911. position: absolute;
  16912. right: 0;
  16913. bottom: 0;
  16914. background: #fff;
  16915. width: 100%;
  16916. height: 60px;
  16917. z-index: 9;
  16918. }
  16919. .fold {
  16920. display: flex;
  16921. margin: 0 20px;
  16922. flex-direction: row;
  16923. align-items: center;
  16924. cursor: pointer;
  16925. color: #2b7bff;
  16926. }
  16927. .arrow {
  16928. margin-right: 8px;
  16929. width: 16px;
  16930. height: 16px;
  16931. min-width: 16px;
  16932. min-height: 16px;
  16933. background-size: 100% 100%;
  16934. display: block;
  16935. background-image: url(../../../assets/icon/new/u_up.png);
  16936. /* border-left: 7px solid transparent;
  16937. border-bottom: 7px solid #717C8D;
  16938. border-top: 0px solid transparent;
  16939. border-right: 7px solid transparent; */
  16940. /* box-sizing: border-box; */
  16941. transition: all 0.3s;
  16942. }
  16943. .arrowZ {
  16944. transform: rotate(180deg);
  16945. }
  16946. .addToolFun {
  16947. display: flex;
  16948. width: 150px;
  16949. flex-direction: row;
  16950. align-items: center;
  16951. justify-content: center;
  16952. border: 2px dashed #cad1dc;
  16953. border-radius: 5px;
  16954. height: 50px;
  16955. margin: 35px auto 0;
  16956. cursor: pointer;
  16957. }
  16958. .addToolFun2 {
  16959. display: flex;
  16960. width: 150px;
  16961. border: 2px dashed #cad1dc;
  16962. flex-direction: row;
  16963. align-items: center;
  16964. justify-content: center;
  16965. border-radius: 5px;
  16966. height: 50px;
  16967. margin: 0 auto 0;
  16968. cursor: pointer;
  16969. }
  16970. .addToolFun2>div,
  16971. .addToolFun>div {
  16972. display: flex;
  16973. line-height: 50px;
  16974. }
  16975. .addToolImg {
  16976. width: 20px;
  16977. height: 20px;
  16978. margin-right: 10px;
  16979. }
  16980. .addToolsDia>>>.el-dialog__body {
  16981. padding: 20px;
  16982. }
  16983. .addToolsDia>>>.el-dialog__body>.toolChoose {
  16984. padding: 0;
  16985. }
  16986. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  16987. padding: 0;
  16988. border-bottom: none;
  16989. margin-bottom: 0;
  16990. }
  16991. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  16992. width: 100%;
  16993. }
  16994. .lineCss>>>.el-form-item__label {
  16995. width: auto !important;
  16996. }
  16997. .lineCss>>>.el-form-item__content {
  16998. margin-left: 50px !important;
  16999. }
  17000. .newSteps {
  17001. display: flex;
  17002. width: 100% !important;
  17003. /* height: 80px; */
  17004. cursor: pointer;
  17005. margin: 10px 0;
  17006. border-radius: 10px;
  17007. flex-direction: row;
  17008. align-content: center;
  17009. justify-content: center;
  17010. align-items: center;
  17011. margin: 0 !important;
  17012. }
  17013. /* 评价样式 */
  17014. .elist_css {
  17015. padding-bottom: 75px !important;
  17016. }
  17017. .elist_title {
  17018. margin-bottom: 10px;
  17019. }
  17020. .elist_input {
  17021. width: 100%;
  17022. }
  17023. .elist_input_box {
  17024. display: flex;
  17025. align-items: center;
  17026. flex-wrap: wrap;
  17027. }
  17028. .elist_input_box+.elist_input_box {
  17029. margin-top: 30px;
  17030. }
  17031. .elist_input .elist_input_box input {
  17032. font: inherit;
  17033. color: currentColor;
  17034. width: 100%;
  17035. /* max-width: calc(100% - 385px); */
  17036. max-width: calc(100% - 150px);
  17037. padding: 8px 14px;
  17038. display: block;
  17039. min-width: 0;
  17040. outline: none;
  17041. border: 1px solid rgba(0, 0, 0, 0.23);
  17042. border-radius: 4px;
  17043. box-sizing: border-box;
  17044. background: #fff;
  17045. margin: 0 20px 0 0;
  17046. }
  17047. .elist_input .elist_input_box span {
  17048. height: 36px;
  17049. line-height: 36px;
  17050. color: rgb(82, 82, 82);
  17051. min-width: 80px;
  17052. }
  17053. .elist_input .elist_input_box .remove {
  17054. height: 20px;
  17055. width: 20px;
  17056. min-height: 20px;
  17057. min-width: 20px;
  17058. background-size: 100% 100%;
  17059. background-position: unset;
  17060. margin-left: 5px;
  17061. }
  17062. .elist_input_box>>>.el-rate {
  17063. display: flex;
  17064. height: 36px;
  17065. align-items: center;
  17066. }
  17067. .elist_input_box .elist_inptu_text {
  17068. width: 100%;
  17069. display: flex;
  17070. align-items: center;
  17071. margin-top: 10px;
  17072. }
  17073. .elist_input_box .elist_inptu_text input {
  17074. /* width: 500px; */
  17075. width: 100%;
  17076. max-width: unset;
  17077. }
  17078. .elist_input_box>>>.el-rate__icon {
  17079. font-size: 24px;
  17080. }
  17081. .elist_btn {
  17082. margin-top: 10px;
  17083. }
  17084. .lineTitle {
  17085. /* margin-top: 15px; */
  17086. width: 110px;
  17087. font-size: 16px;
  17088. display: flex;
  17089. align-items: center;
  17090. line-height: 20px;
  17091. }
  17092. .lineTitle::before {
  17093. content: "";
  17094. display: block;
  17095. width: 3px;
  17096. height: 20px;
  17097. background: #0061ff;
  17098. border-radius: 3px;
  17099. margin: 0 5px 0 0;
  17100. }
  17101. .clineTitle::before {
  17102. content: "";
  17103. display: block;
  17104. min-width: 10px;
  17105. width: 10px;
  17106. height: 10px;
  17107. background: #0061ff;
  17108. border-radius: 50%;
  17109. margin: 0 5px 0 0;
  17110. }
  17111. .courseTop {
  17112. display: flex;
  17113. flex-direction: row;
  17114. justify-content: space-between;
  17115. align-items: center;
  17116. width: calc(100% - 40px);
  17117. margin: 0 auto;
  17118. padding: 10px 0;
  17119. }
  17120. .stepsNav {
  17121. display: flex;
  17122. flex-direction: row;
  17123. justify-content: flex-start;
  17124. align-items: center;
  17125. }
  17126. .stepsWord {
  17127. font-size: 18px;
  17128. color: #fff;
  17129. font-weight: bold;
  17130. margin-left: auto;
  17131. background: rgb(15, 126, 255);
  17132. border-radius: 5px;
  17133. padding: 3px 25px;
  17134. box-sizing: border-box;
  17135. }
  17136. .stepBox {
  17137. width: calc(100% - 40px);
  17138. height: calc(100% - 50px);
  17139. overflow: hidden;
  17140. border-radius: 5px;
  17141. margin: 0 auto;
  17142. }
  17143. .rightBox {
  17144. width: calc(100%);
  17145. background: #f0f2f5;
  17146. /* border-radius: 10px; */
  17147. overflow: auto;
  17148. height: calc(100% - 150px);
  17149. margin: 0 auto;
  17150. position: relative;
  17151. box-sizing: border-box;
  17152. }
  17153. .e_add_top {
  17154. display: flex;
  17155. justify-content: space-between;
  17156. background: #fff;
  17157. position: absolute;
  17158. right: 20px;
  17159. height: 50px;
  17160. align-items: center;
  17161. }
  17162. .e_add_title2 {
  17163. display: flex;
  17164. align-items: center;
  17165. }
  17166. .e_add_title2 span {
  17167. width: 40px;
  17168. }
  17169. .e_add_title {
  17170. display: flex;
  17171. align-items: center;
  17172. color: #b8b8b8;
  17173. font-size: 18px;
  17174. position: relative;
  17175. height: 40px;
  17176. }
  17177. .e_add_title span {
  17178. margin-right: 10px;
  17179. }
  17180. .e_add_title .el_input {
  17181. width: 300px;
  17182. }
  17183. .e_add_title>>>.el-input__inner {
  17184. width: 400px;
  17185. }
  17186. .e_add_btn {}
  17187. .e_add_content {
  17188. display: flex;
  17189. width: 100%;
  17190. }
  17191. .e_add_list {
  17192. background: #fff;
  17193. height: 500px;
  17194. width: 210px;
  17195. position: relative;
  17196. margin: 15px 5px 0 0;
  17197. flex-shrink: 0;
  17198. display: flex;
  17199. flex-direction: column;
  17200. }
  17201. .e_add_list_title {
  17202. font-size: 20px;
  17203. width: 100%;
  17204. box-sizing: border-box;
  17205. padding: 15px 40px;
  17206. text-align: center;
  17207. border-bottom: 1px solid #eaeaea;
  17208. position: relative;
  17209. display: flex;
  17210. align-items: center;
  17211. justify-content: center;
  17212. height: 57px;
  17213. background: #f6f6f6;
  17214. }
  17215. .e_add_list_title span {
  17216. overflow: hidden;
  17217. white-space: nowrap;
  17218. text-overflow: ellipsis;
  17219. }
  17220. .e_add_list_title img {
  17221. position: absolute;
  17222. right: 15px;
  17223. width: 25px;
  17224. cursor: pointer;
  17225. top: 50%;
  17226. transform: translateY(-50%);
  17227. }
  17228. .e_add_list_body {
  17229. height: calc(100% - 187px);
  17230. overflow: auto;
  17231. }
  17232. .e_add_list_child {
  17233. width: 100%;
  17234. display: flex;
  17235. align-items: center;
  17236. justify-content: center;
  17237. position: relative;
  17238. box-sizing: border-box;
  17239. padding: 15px 40px;
  17240. text-align: center;
  17241. }
  17242. .e_add_list_child span {
  17243. overflow: hidden;
  17244. white-space: nowrap;
  17245. text-overflow: ellipsis;
  17246. cursor: pointer;
  17247. }
  17248. .e_add_list_child img {
  17249. position: absolute;
  17250. right: 10px;
  17251. width: 21px;
  17252. cursor: pointer;
  17253. top: 50%;
  17254. transform: translateY(-50%);
  17255. }
  17256. .e_add_list_child+.e_add_list_child {
  17257. border-top: 1px solid #eaeaea;
  17258. }
  17259. .e_add_list_child .active {
  17260. color: #409eff;
  17261. }
  17262. .e_add_list_btn {
  17263. position: absolute;
  17264. bottom: 0;
  17265. height: 50px;
  17266. background: rgb(120, 120, 254);
  17267. width: 100%;
  17268. color: #fff;
  17269. font-size: 16px;
  17270. text-align: center;
  17271. line-height: 50px;
  17272. cursor: pointer;
  17273. }
  17274. .e_add_list_detail {
  17275. position: absolute;
  17276. bottom: 0;
  17277. height: 130px;
  17278. background: rgb(120, 120, 254);
  17279. width: 100%;
  17280. color: #fff;
  17281. font-size: 16px;
  17282. display: flex;
  17283. align-items: center;
  17284. justify-content: center;
  17285. }
  17286. .e_add_list_detail textarea {
  17287. height: 90%;
  17288. width: 95%;
  17289. border: none;
  17290. resize: none;
  17291. outline: none;
  17292. padding: 5px;
  17293. box-sizing: border-box;
  17294. }
  17295. .e_add_list_pbox {
  17296. width: 100%;
  17297. }
  17298. .e_add_list_pbox_title {
  17299. height: 50px;
  17300. background: #fff;
  17301. display: flex;
  17302. align-items: center;
  17303. width: 100%;
  17304. box-sizing: border-box;
  17305. padding: 0 20px;
  17306. flex-direction: row;
  17307. flex-wrap: wrap;
  17308. }
  17309. .type_title {
  17310. font-size: 18px;
  17311. font-weight: 700;
  17312. }
  17313. .type_content {
  17314. font-size: 16px;
  17315. margin-left: 30px;
  17316. }
  17317. .type_content span+span {
  17318. margin-left: 20px;
  17319. }
  17320. .type_content span {
  17321. cursor: pointer;
  17322. padding-bottom: 5px;
  17323. box-sizing: border-box;
  17324. }
  17325. .type_content .active {
  17326. color: #409eff;
  17327. border-bottom: 2px solid #409eff;
  17328. }
  17329. .e_add_list_pbox_content {
  17330. height: calc(100% - 50px);
  17331. display: flex;
  17332. align-items: center;
  17333. width: 100%;
  17334. background: #fff;
  17335. }
  17336. .mbCss {
  17337. width: 100%;
  17338. display: flex;
  17339. flex-direction: row;
  17340. flex-wrap: nowrap;
  17341. align-content: center;
  17342. align-items: flex-start;
  17343. justify-content: flex-start;
  17344. }
  17345. .pjCss {
  17346. /* width: 42%; */
  17347. width: calc(100% - 55%);
  17348. display: flex;
  17349. flex-direction: column;
  17350. flex-wrap: nowrap;
  17351. align-items: flex-start;
  17352. }
  17353. .e_box {
  17354. /* display: flex; */
  17355. flex-wrap: wrap;
  17356. max-height: 500px;
  17357. align-items: flex-start;
  17358. overflow: auto;
  17359. width: 100%;
  17360. }
  17361. .e_card {
  17362. border: 1px solid #ccc;
  17363. background: #fff;
  17364. margin-right: 20px;
  17365. width: 270px;
  17366. display: flex;
  17367. flex-direction: column;
  17368. align-items: center;
  17369. border-radius: 5px;
  17370. margin-top: 10px;
  17371. text-align: center;
  17372. }
  17373. .e_card_picture {
  17374. margin: 10px 0;
  17375. }
  17376. .e_card_picture>img {
  17377. width: 50px;
  17378. }
  17379. .e_card_name {
  17380. width: 100%;
  17381. padding: 0 10px;
  17382. box-sizing: border-box;
  17383. margin-bottom: 10px;
  17384. overflow: hidden;
  17385. text-overflow: ellipsis;
  17386. white-space: nowrap;
  17387. }
  17388. .e_card_time {
  17389. width: 100%;
  17390. padding: 0 10px;
  17391. box-sizing: border-box;
  17392. font-size: 15px;
  17393. color: #c3c3c3;
  17394. margin-bottom: 10px;
  17395. }
  17396. .e_card_btn {
  17397. height: 40px;
  17398. display: flex;
  17399. align-items: center;
  17400. width: 100%;
  17401. background: rgb(244, 244, 244);
  17402. }
  17403. .e_card_btn:hover {
  17404. background: rgb(221 221 221);
  17405. }
  17406. .e_card_btn span {
  17407. flex: 1 1 auto;
  17408. text-align: center;
  17409. cursor: pointer;
  17410. }
  17411. .addEva {
  17412. border: 1px solid #ccc;
  17413. background: #fff;
  17414. margin-right: 20px;
  17415. width: 270px;
  17416. height: 149px;
  17417. display: flex;
  17418. flex-direction: column;
  17419. align-items: center;
  17420. border-radius: 5px;
  17421. margin-top: 10px;
  17422. text-align: center;
  17423. cursor: pointer;
  17424. justify-content: center;
  17425. }
  17426. .addEva>img {
  17427. width: 50px;
  17428. object-fit: cover;
  17429. }
  17430. .uploadFm {
  17431. border: 1px dashed #ccc;
  17432. width: 100%;
  17433. height: 140px;
  17434. position: relative;
  17435. cursor: pointer;
  17436. display: flex;
  17437. flex-direction: column;
  17438. justify-content: center;
  17439. align-items: center;
  17440. font-size: 14px;
  17441. color: #6e6e6e;
  17442. position: relative;
  17443. }
  17444. .cover_p {
  17445. width: 100% !important;
  17446. height: 100%;
  17447. object-fit: cover;
  17448. }
  17449. .uploadFm2:hover .cover_mask {
  17450. display: flex !important;
  17451. }
  17452. .cover_mask {
  17453. display: none;
  17454. width: 100%;
  17455. height: 100%;
  17456. position: absolute;
  17457. background: #00000054;
  17458. align-items: center;
  17459. justify-content: center;
  17460. flex-direction: column;
  17461. }
  17462. .cover_mask>img {
  17463. width: 30px;
  17464. }
  17465. .cover_mask>span {
  17466. color: #fff;
  17467. font-size: 12px;
  17468. }
  17469. .uploadFm>img {
  17470. width: 50px;
  17471. }
  17472. .fileCss {
  17473. width: 100%;
  17474. display: flex;
  17475. flex-direction: row;
  17476. flex-wrap: nowrap;
  17477. justify-content: space-around;
  17478. align-items: center;
  17479. padding-top: 15px;
  17480. }
  17481. .fileCss>div {
  17482. display: flex;
  17483. flex-direction: column;
  17484. align-items: center;
  17485. }
  17486. .fileCss .spanName {
  17487. margin-top: 10px;
  17488. }
  17489. .sysPicBox {
  17490. display: flex;
  17491. flex-direction: row;
  17492. flex-wrap: wrap;
  17493. align-content: flex-start;
  17494. height: 435px;
  17495. overflow: auto;
  17496. position: relative;
  17497. }
  17498. .picNone {
  17499. position: absolute;
  17500. left: 50%;
  17501. top: 45%;
  17502. transform: translate(-50%, -50%);
  17503. width: fit-content;
  17504. color: #9c9c9c;
  17505. }
  17506. .sysPic {
  17507. width: 200px;
  17508. height: 115px;
  17509. margin: 0 20px 20px 0;
  17510. cursor: pointer;
  17511. }
  17512. .sysPic>img,
  17513. .isSysPic>img,
  17514. .deletePic>img {
  17515. width: 100%;
  17516. height: 100%;
  17517. object-fit: cover;
  17518. }
  17519. .isSysPic {
  17520. width: 200px;
  17521. height: 115px;
  17522. position: relative;
  17523. }
  17524. .deletePic {
  17525. width: 20px;
  17526. height: 20px;
  17527. position: absolute;
  17528. top: 0;
  17529. right: 0;
  17530. cursor: pointer;
  17531. }
  17532. .select_box1 {
  17533. height: 100%;
  17534. }
  17535. .select_box1_img {
  17536. background: #fff;
  17537. border-radius: 5px;
  17538. padding: 15px;
  17539. box-sizing: border-box;
  17540. margin-bottom: 20px;
  17541. }
  17542. .select_box1_title {
  17543. padding: 0 0 15px 0;
  17544. border-bottom: 1px solid #eee;
  17545. margin-bottom: 15px;
  17546. }
  17547. .select_box1_title span:nth-child(1) {
  17548. font-size: 16px;
  17549. margin-right: 20px;
  17550. color: #000;
  17551. }
  17552. .select_box1_title span:nth-child(2) {
  17553. font-size: 14px;
  17554. color: rgb(112, 112, 112);
  17555. }
  17556. .select_box1_add_img {}
  17557. .select_box1_select {
  17558. background: #fff;
  17559. border-radius: 5px;
  17560. padding: 15px;
  17561. box-sizing: border-box;
  17562. height: calc(100% - 200px);
  17563. overflow: auto;
  17564. }
  17565. .select_box2 {
  17566. height: 100%;
  17567. }
  17568. .select_box2_title {
  17569. background: #fff;
  17570. border-radius: 5px;
  17571. padding: 5px 10px;
  17572. box-sizing: border-box;
  17573. margin-bottom: 10px;
  17574. }
  17575. .select_box2_box {
  17576. display: flex;
  17577. height: calc(100% - 30px);
  17578. }
  17579. .select_box2_img {
  17580. width: calc(100% - 310px);
  17581. height: 100%;
  17582. overflow: auto;
  17583. background: #fff;
  17584. border-radius: 5px;
  17585. }
  17586. .select_box2_img img {
  17587. width: 100%;
  17588. }
  17589. .select_box2_answer {
  17590. background: #fff;
  17591. margin-left: 10px;
  17592. border-radius: 5px;
  17593. width: 300px;
  17594. overflow: auto;
  17595. height: 100%;
  17596. display: flex;
  17597. flex-direction: column;
  17598. align-items: center;
  17599. padding-top: 10px;
  17600. box-sizing: border-box;
  17601. }
  17602. .select_box2_answer_box {
  17603. margin: 0 0 10px 0;
  17604. width: 85%;
  17605. }
  17606. .rate_textarea {
  17607. font: inherit;
  17608. color: currentColor;
  17609. width: 100%;
  17610. padding: 8px 14px;
  17611. display: block;
  17612. min-width: 0;
  17613. outline: none;
  17614. border: 1px solid rgba(0, 0, 0, 0.23);
  17615. border-radius: 4px;
  17616. box-sizing: border-box;
  17617. background: #fff;
  17618. margin: 0 20px 0 0;
  17619. resize: none;
  17620. }
  17621. .select_answer_title {
  17622. text-align: left;
  17623. width: 85%;
  17624. margin-bottom: 10px;
  17625. font-size: 18px;
  17626. color: #8e8e8e;
  17627. }
  17628. .mask {
  17629. background-color: rgb(0 0 0 / 30%);
  17630. /* position: fixed; */
  17631. position: absolute;
  17632. top: 0;
  17633. left: 0;
  17634. width: 100%;
  17635. height: 100%;
  17636. z-index: 90;
  17637. display: flex;
  17638. align-items: center;
  17639. justify-content: center;
  17640. }
  17641. .progressBox {
  17642. width: 300px;
  17643. height: 150px;
  17644. background: #fff;
  17645. border-radius: 10px;
  17646. box-shadow: 0 0 6px 1px #bfbfbf;
  17647. display: flex;
  17648. align-items: center;
  17649. justify-content: center;
  17650. flex-direction: column;
  17651. position: relative;
  17652. color: #6c6c6c;
  17653. }
  17654. .progressBox>>>.el-progress-bar__outer {
  17655. background-color: #d1dfff !important;
  17656. }
  17657. .progressBox .lbox {
  17658. height: 50px;
  17659. font-size: 19px;
  17660. display: flex;
  17661. align-items: center;
  17662. color: #747474;
  17663. }
  17664. .progressBox .lbox img {
  17665. width: 40px;
  17666. margin-right: 20px;
  17667. }
  17668. .closeCss {
  17669. position: absolute;
  17670. top: 8px;
  17671. right: 8px;
  17672. cursor: pointer;
  17673. width: 20px;
  17674. height: 20px;
  17675. }
  17676. .closeCss>img {
  17677. width: 100%;
  17678. height: 100%;
  17679. }
  17680. .updateTips::before {
  17681. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  17682. font-size: 14px;
  17683. margin-left: 20px;
  17684. font-weight: 400;
  17685. color: #ff3a3a;
  17686. margin-bottom: 10px;
  17687. display: block;
  17688. }
  17689. .updateMask {
  17690. width: 100%;
  17691. z-index: 3;
  17692. top: 0;
  17693. position: absolute;
  17694. /* background-color: rgba(0,0,0,.3); */
  17695. }
  17696. .t_j_box {
  17697. display: flex;
  17698. }
  17699. .t_j_box span:nth-child(1) {
  17700. width: 15%;
  17701. overflow: hidden;
  17702. margin-right: 10px;
  17703. text-overflow: ellipsis;
  17704. white-space: nowrap;
  17705. }
  17706. .t_j_box span:nth-child(2) {
  17707. width: 30%;
  17708. overflow: hidden;
  17709. text-overflow: ellipsis;
  17710. margin-right: 10px;
  17711. }
  17712. .t_j_box span:nth-child(3) {
  17713. max-width: calc(55% - 20px);
  17714. overflow: hidden;
  17715. text-overflow: ellipsis;
  17716. }
  17717. .sentenBox {
  17718. background: #fff;
  17719. height: 600px;
  17720. overflow: auto;
  17721. background-image: url("../../../assets/icon/conSentences/csBg.png");
  17722. background-position: 102%;
  17723. background-repeat: no-repeat;
  17724. background-size: 60%;
  17725. }
  17726. .sentenBox>.sentenContent {
  17727. padding-bottom: 10px;
  17728. width: 97%;
  17729. margin: 0 auto;
  17730. }
  17731. .sentenBox>.sentenContent+.sentenContent {
  17732. border-top: 1px solid #cbcbcb;
  17733. }
  17734. .addSen {
  17735. background: #409efe;
  17736. width: 90px;
  17737. color: #fff;
  17738. height: 35px;
  17739. text-align: center;
  17740. line-height: 35px;
  17741. border-radius: 5px;
  17742. float: right;
  17743. margin: 10px 20px 0 0;
  17744. cursor: pointer;
  17745. }
  17746. .sentenTop {
  17747. display: flex;
  17748. flex-direction: row;
  17749. flex-wrap: nowrap;
  17750. align-items: center;
  17751. }
  17752. .sentenTop::before {
  17753. content: attr(index);
  17754. background: #3681fc;
  17755. border-radius: 50%;
  17756. color: #fff;
  17757. width: 25px;
  17758. height: 25px;
  17759. min-width: 25px;
  17760. min-height: 25px;
  17761. text-align: center;
  17762. line-height: 25px;
  17763. margin-right: 5px;
  17764. }
  17765. .sentenTop>div:nth-child(2) {
  17766. width: 300px;
  17767. margin: 0 15px;
  17768. }
  17769. .sentenTop>div:nth-child(3) {
  17770. background: #409efe;
  17771. color: #fff;
  17772. width: 65px;
  17773. height: 35px;
  17774. text-align: center;
  17775. line-height: 35px;
  17776. border-radius: 5px;
  17777. cursor: pointer;
  17778. }
  17779. .cardList {
  17780. padding: 30px 0 20px 0;
  17781. display: flex;
  17782. flex-direction: row;
  17783. flex-wrap: wrap;
  17784. align-items: center;
  17785. box-sizing: border-box;
  17786. border-bottom: 1px solid #f4f4f4;
  17787. width: 98%;
  17788. margin: 0 auto;
  17789. }
  17790. .rightCardList {
  17791. display: flex;
  17792. flex-wrap: wrap;
  17793. }
  17794. .cardBox {
  17795. display: flex;
  17796. flex-direction: row;
  17797. flex-wrap: wrap;
  17798. align-items: center;
  17799. align-content: center;
  17800. }
  17801. .isCard,
  17802. .isCard1 {
  17803. width: auto;
  17804. padding: 0 20px;
  17805. height: 65px;
  17806. text-align: center;
  17807. line-height: 65px;
  17808. font-size: 14px;
  17809. cursor: pointer;
  17810. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  17811. background-size: 100% 100%;
  17812. position: relative;
  17813. z-index: 99;
  17814. }
  17815. .isCard1 {
  17816. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  17817. }
  17818. .isCard:hover .deleteWord {
  17819. display: block;
  17820. }
  17821. .isCard>div:nth-child(1),
  17822. .isCard1>div:nth-child(1) {
  17823. white-space: nowrap;
  17824. overflow: hidden;
  17825. text-overflow: ellipsis;
  17826. width: 100%;
  17827. margin: 0 auto;
  17828. }
  17829. .card {
  17830. width: 140px;
  17831. height: 65px;
  17832. }
  17833. .card>img {
  17834. width: 100%;
  17835. height: 100%;
  17836. }
  17837. .rightCardBox {
  17838. width: 98%;
  17839. margin: 10px auto 0;
  17840. }
  17841. .rightCardBox>div:nth-child(1) {
  17842. margin-bottom: 10px;
  17843. }
  17844. .cardCss {
  17845. display: flex;
  17846. flex-direction: column;
  17847. flex-wrap: nowrap;
  17848. align-items: center;
  17849. border-bottom: 3px solid #b4c3d3;
  17850. padding: 0 0 5px 0;
  17851. /* margin-right: 10px; */
  17852. }
  17853. .cardCss>div:nth-child(2) {
  17854. background: #5b7b9d;
  17855. color: #fff;
  17856. width: 20px;
  17857. height: 20px;
  17858. border-radius: 50%;
  17859. text-align: center;
  17860. line-height: 20px;
  17861. }
  17862. .sentenTopBox {
  17863. display: flex;
  17864. flex-direction: row;
  17865. flex-wrap: nowrap;
  17866. align-items: center;
  17867. justify-content: space-between;
  17868. padding: 55px 0 0 20px;
  17869. box-sizing: border-box;
  17870. width: 85%;
  17871. }
  17872. .rb_c_ai_box,
  17873. .stepsBottom {
  17874. width: 100%;
  17875. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17876. /* background: #f7f7f7; */
  17877. border-radius: 10px;
  17878. overflow: hidden;
  17879. /* height: 100%; */
  17880. height: calc(100% - 55px);
  17881. }
  17882. .navTop {
  17883. background: #53749b;
  17884. color: #fff;
  17885. height: 40px;
  17886. line-height: 40px;
  17887. padding-left: 15px;
  17888. font-size: 18px;
  17889. }
  17890. .navBottom {
  17891. /* background: #6b91b7; */
  17892. height: 100%;
  17893. overflow: auto;
  17894. padding: 10px 0;
  17895. }
  17896. .navStage {
  17897. display: flex;
  17898. flex-direction: row;
  17899. flex-wrap: nowrap;
  17900. align-items: center;
  17901. padding: 10px 10px 10px 0;
  17902. cursor: pointer;
  17903. background: #ffffff;
  17904. width: 95%;
  17905. margin: 5px auto 5px;
  17906. box-sizing: border-box;
  17907. border-radius: 5px;
  17908. flex-wrap: wrap;
  17909. position: relative;
  17910. }
  17911. .navStage:hover>.chapter_upload_drag {
  17912. display: block;
  17913. }
  17914. .navTask:hover>.chapter_upload_drag {
  17915. display: block;
  17916. }
  17917. .chapter_upload:hover>.chapter_upload_drag {
  17918. display: block;
  17919. }
  17920. .navStage::before {
  17921. content: "";
  17922. display: block;
  17923. width: 16px;
  17924. height: 16px;
  17925. background-image: url(../../../assets/icon/new/icon_stage.png);
  17926. background-size: 100%;
  17927. margin-left: 25px;
  17928. }
  17929. .navStage .chapter_unit_open {
  17930. content: "";
  17931. display: block;
  17932. width: 16px;
  17933. height: 16px;
  17934. background-image: url(../../../assets/icon/new/down.png);
  17935. transform: rotate(-90deg);
  17936. background-size: 100%;
  17937. margin-left: 10px;
  17938. transition: all 0.5s;
  17939. }
  17940. .isNavStageOpen .chapter_unit_open {
  17941. transform: rotate(0deg);
  17942. }
  17943. .isNavStage {
  17944. background: #0061ff;
  17945. }
  17946. .isNavStage::before {
  17947. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  17948. }
  17949. .isNavStage .chapter_unit_open {
  17950. background-image: url(../../../assets/icon/new/downC.png);
  17951. }
  17952. .isNavStage .nt_taskName {
  17953. font-weight: bold !important;
  17954. color: #ffffff !important;
  17955. }
  17956. .isNavStage .nt_taskTitle {
  17957. font-weight: bold !important;
  17958. color: #fff !important;
  17959. }
  17960. .navStage .nt_taskBox {
  17961. width: calc(100% - 68px);
  17962. padding: 0 0 0 5px;
  17963. box-sizing: border-box;
  17964. box-sizing: border-box;
  17965. display: flex;
  17966. flex-direction: row;
  17967. flex-wrap: nowrap;
  17968. align-items: baseline;
  17969. }
  17970. .navStage .nt_taskTitle {
  17971. color: #060e17;
  17972. line-height: 25px;
  17973. font-size: 16px;
  17974. }
  17975. .navStage .nt_taskName {
  17976. max-width: calc(100% - 82px);
  17977. white-space: nowrap;
  17978. overflow: hidden;
  17979. text-overflow: ellipsis;
  17980. font-size: 16px;
  17981. color: #060e17;
  17982. }
  17983. .navTask {
  17984. display: flex;
  17985. flex-direction: row;
  17986. flex-wrap: nowrap;
  17987. align-items: center;
  17988. padding: 10px 10px 10px 0;
  17989. cursor: pointer;
  17990. background: #ffffff;
  17991. width: 95%;
  17992. margin: 5px auto 5px;
  17993. box-sizing: border-box;
  17994. border-radius: 5px;
  17995. flex-wrap: wrap;
  17996. position: relative;
  17997. }
  17998. .navTask .chapter_upload_open {
  17999. content: "";
  18000. display: block;
  18001. width: 16px;
  18002. height: 16px;
  18003. background-image: url(../../../assets/icon/new/icon_arrow.png);
  18004. background-size: 100%;
  18005. margin-left: 23px;
  18006. }
  18007. .noImage .chapter_upload_open {
  18008. display: none;
  18009. background-image: unset !important;
  18010. }
  18011. .isNavOpen .chapter_upload_open {
  18012. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  18013. transform: rotate(90deg);
  18014. }
  18015. .isNavTask .chapter_upload_open {
  18016. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  18017. transform: rotate(-90deg);
  18018. }
  18019. .isNavTask.isNavOpen .chapter_upload_open {
  18020. transform: rotate(0deg);
  18021. }
  18022. .dragOverTop {
  18023. border-top: 2px solid #0061ff !important;
  18024. border-radius: 0 !important;
  18025. margin-top: 10px;
  18026. }
  18027. .dragOverBottom {
  18028. border-bottom: 2px solid #0061ff !important;
  18029. border-radius: 0 !important;
  18030. margin-top: 10px;
  18031. }
  18032. .dragOverTop2 {
  18033. border-top: 2px solid #0061ff !important;
  18034. border-radius: 0 !important;
  18035. }
  18036. .dragOverBottom2 {
  18037. border-bottom: 2px solid #0061ff !important;
  18038. border-radius: 0 !important;
  18039. }
  18040. .isNavTask {
  18041. /* background: #3681FC; */
  18042. background: #eef3fb;
  18043. }
  18044. .isNavTask>.chapter_upload_drag {
  18045. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  18046. }
  18047. .isNavTask .nt_taskName {
  18048. /* color: #fff !important; */
  18049. font-weight: bold !important;
  18050. color: #0061ff !important;
  18051. }
  18052. .isNavTask .nt_taskTitle {
  18053. /* color: #AECCFE !important; */
  18054. font-weight: bold !important;
  18055. color: #0061ff !important;
  18056. }
  18057. .navTask .nt_taskBox {
  18058. width: calc(100% - 40px);
  18059. padding: 0 0 0 5px;
  18060. box-sizing: border-box;
  18061. box-sizing: border-box;
  18062. display: flex;
  18063. flex-direction: row;
  18064. flex-wrap: nowrap;
  18065. align-items: baseline;
  18066. }
  18067. .navTask .nt_taskTitle {
  18068. /* color: #717C8D; */
  18069. color: #060e17;
  18070. line-height: 25px;
  18071. font-size: 16px;
  18072. /* min-width: 66px; */
  18073. }
  18074. .navTask .nt_taskName {
  18075. /* color: #fff; */
  18076. /* max-width: 130px; */
  18077. /* width: 100%; */
  18078. max-width: calc(100% - 66px);
  18079. font-size: 16px;
  18080. color: #060e17;
  18081. /* color: #0E1E33; */
  18082. }
  18083. .navTask .nt_taskName span {
  18084. width: 100%;
  18085. white-space: nowrap;
  18086. overflow: hidden;
  18087. text-overflow: ellipsis;
  18088. display: block;
  18089. }
  18090. .gjBox {
  18091. width: calc(100% - 25px);
  18092. padding: 0 0 0 0;
  18093. box-sizing: border-box;
  18094. border-left: 1px solid #cad1dc;
  18095. margin-left: 25px;
  18096. }
  18097. .gjBox>div {
  18098. display: flex;
  18099. align-items: center;
  18100. }
  18101. .gjBox>div::before {
  18102. content: "";
  18103. height: 1px;
  18104. width: 10px;
  18105. background: #cad1dc;
  18106. display: block;
  18107. margin-right: 5px;
  18108. }
  18109. .gjCss {
  18110. display: flex;
  18111. flex-direction: row;
  18112. flex-wrap: nowrap;
  18113. align-items: center;
  18114. padding: 15px 0;
  18115. box-sizing: border-box;
  18116. font-size: 14px;
  18117. cursor: pointer;
  18118. }
  18119. .isGjCss {
  18120. color: #0061ff;
  18121. }
  18122. .groupBox {}
  18123. .groupContent+.groupContent {
  18124. margin-top: 30px;
  18125. }
  18126. .groupTitle {
  18127. font-size: 24px;
  18128. color: rgb(80, 80, 80);
  18129. margin-bottom: 20px;
  18130. }
  18131. .groupName {
  18132. display: flex;
  18133. align-items: center;
  18134. }
  18135. .groupn {
  18136. font-size: 15px;
  18137. margin-right: 10px;
  18138. }
  18139. .groupName+.groupName {
  18140. margin-top: 15px;
  18141. }
  18142. .groupBtn {
  18143. margin-left: 10px;
  18144. }
  18145. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  18146. text-align: left;
  18147. }
  18148. .radioBox>div {
  18149. margin: 10px 0 0 10px;
  18150. }
  18151. .radioBox>>>.el-radio__input,
  18152. .radioBox>>>.el-checkbox__inner {
  18153. margin-left: 10px;
  18154. }
  18155. .radioBox>>>.el-radio__label,
  18156. .radioBox>>>.el-checkbox__label {
  18157. display: flex;
  18158. align-items: center;
  18159. }
  18160. .inImg {
  18161. width: 50px;
  18162. }
  18163. .inImg>img {
  18164. width: 100%;
  18165. height: 100%;
  18166. object-fit: cover;
  18167. }
  18168. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  18169. height: auto;
  18170. padding: 10px;
  18171. margin: 0;
  18172. }
  18173. .upCss>>>.el-upload-list {
  18174. width: 100%;
  18175. }
  18176. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  18177. width: 100%;
  18178. height: 120px;
  18179. object-fit: contain;
  18180. background: unset;
  18181. margin-left: 0;
  18182. }
  18183. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  18184. display: none;
  18185. }
  18186. .tcMember+.tcMember::before {
  18187. content: "、";
  18188. }
  18189. .xzUpImg {
  18190. width: 25px;
  18191. height: 25px;
  18192. min-width: 25px;
  18193. min-height: 25px;
  18194. cursor: pointer;
  18195. margin: 0 10px;
  18196. }
  18197. .xzUpImg>img {
  18198. width: 100%;
  18199. height: 100%;
  18200. }
  18201. .closeCss {
  18202. position: absolute;
  18203. top: 8px;
  18204. right: 8px;
  18205. cursor: pointer;
  18206. width: 20px;
  18207. height: 20px;
  18208. }
  18209. .closeCss>img {
  18210. width: 100%;
  18211. height: 100%;
  18212. }
  18213. .moveBtn {
  18214. display: flex;
  18215. flex-direction: row;
  18216. flex-wrap: nowrap;
  18217. align-items: center;
  18218. width: 55px;
  18219. }
  18220. .timuUpImg {
  18221. display: flex;
  18222. flex-direction: row;
  18223. align-items: center;
  18224. width: 100%;
  18225. margin-right: 10px;
  18226. }
  18227. .timuUpImg>div:nth-child(1) {
  18228. margin-right: 10px;
  18229. display: flex;
  18230. align-items: center;
  18231. width: 100%;
  18232. }
  18233. .timuImgBox {
  18234. margin: 10px 0;
  18235. display: flex;
  18236. flex-direction: column;
  18237. flex-wrap: wrap;
  18238. align-items: flex-start;
  18239. }
  18240. .timuImg {
  18241. width: 100px;
  18242. margin: 5px 0;
  18243. cursor: pointer;
  18244. position: relative;
  18245. }
  18246. .timuImg:hover .deleteWord {
  18247. display: block;
  18248. }
  18249. .deleteWord {
  18250. width: 25px;
  18251. height: 25px;
  18252. position: absolute;
  18253. right: -5px;
  18254. top: -5px;
  18255. cursor: pointer;
  18256. display: none;
  18257. }
  18258. .timuImg>img,
  18259. .deleteWord>img {
  18260. width: 100%;
  18261. height: 100%;
  18262. object-fit: cover;
  18263. }
  18264. .e_add_delete {
  18265. cursor: pointer;
  18266. margin-left: 10px;
  18267. }
  18268. .pType_box {
  18269. margin-top: 30px;
  18270. align-items: flex-end;
  18271. }
  18272. .noneBox {
  18273. height: 200px;
  18274. width: 100%;
  18275. display: flex;
  18276. align-items: center;
  18277. justify-content: center;
  18278. flex-direction: column;
  18279. /* margin-top: 150px; */
  18280. }
  18281. .noneBox>img {
  18282. width: 95px;
  18283. }
  18284. .noneBox>span {
  18285. margin-top: 10px;
  18286. color: #717c8d;
  18287. }
  18288. .rb_c_box {
  18289. width: 100%;
  18290. height: 100%;
  18291. display: flex;
  18292. /* padding: 20px; */
  18293. box-sizing: border-box;
  18294. justify-content: space-between;
  18295. }
  18296. .rb_c_box_left {
  18297. height: 100%;
  18298. background: #fff;
  18299. width: 270px;
  18300. min-width: 270px;
  18301. border-radius: 8px;
  18302. margin-right: 10px;
  18303. }
  18304. .rb_c_box_right {
  18305. height: 100%;
  18306. width: calc(100%);
  18307. overflow: hidden;
  18308. }
  18309. .rb_c_box_btn {
  18310. display: flex;
  18311. justify-content: flex-start;
  18312. height: 50px;
  18313. align-items: center;
  18314. }
  18315. .rb_c_box_right>.basic_box {
  18316. /* background: #fff; */
  18317. border-radius: 0;
  18318. height: calc(100% - 0px);
  18319. overflow: auto;
  18320. padding: 0;
  18321. }
  18322. .textarea_css {
  18323. display: block;
  18324. resize: none;
  18325. padding: 10px 15px;
  18326. line-height: 1.5;
  18327. box-sizing: border-box;
  18328. width: 100%;
  18329. font-size: 14px;
  18330. color: #606266;
  18331. background-color: #fff;
  18332. background-image: none;
  18333. border: 1px solid #dcdfe6;
  18334. border-radius: 4px;
  18335. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  18336. outline: none;
  18337. overflow: hidden;
  18338. height: 46px;
  18339. font-family: "Microsoft YaHei";
  18340. }
  18341. .textarea_css::-webkit-input-placeholder {
  18342. color: #c0c4cc;
  18343. }
  18344. .textarea_css:focus {
  18345. border-color: #409eff;
  18346. outline: 0;
  18347. }
  18348. .addEditor>>>.text {
  18349. height: auto;
  18350. min-height: 100px;
  18351. }
  18352. .addEditor>>>.w-e-text-container {
  18353. min-height: 100px;
  18354. }
  18355. .moveBtn2 {
  18356. flex-direction: column;
  18357. width: fit-content;
  18358. margin: 0 10px 0 10px;
  18359. }
  18360. .moveBtn2 .chapter_upload_down,
  18361. .moveBtn2 .chapter_upload_up {
  18362. width: 16px;
  18363. height: 16px;
  18364. }
  18365. .moveBtn2 .chapter_upload_up::after,
  18366. .moveBtn2 .chapter_upload_down::after {
  18367. width: 10px;
  18368. height: 10px;
  18369. }
  18370. .fullStyle>>>.el-dialog__body {
  18371. height: calc(100% - 125px) !important;
  18372. box-sizing: border-box;
  18373. }
  18374. .fullStyle1>>>.el-dialog__body {
  18375. height: auto !important;
  18376. }
  18377. .fullStyle>>>.el-dialog {
  18378. width: 100% !important;
  18379. max-width: 100% !important;
  18380. height: 100% !important;
  18381. margin: 0 !important;
  18382. }
  18383. .fullStyle {
  18384. width: 100% !important;
  18385. max-width: 100% !important;
  18386. height: 100% !important;
  18387. margin: 0 auto !important;
  18388. }
  18389. .wb_j_box_btn {
  18390. width: calc(100% - 30px);
  18391. display: flex;
  18392. height: 40px;
  18393. border: 1.5px solid #cad1dc;
  18394. border-radius: 4px;
  18395. box-sizing: border-box;
  18396. align-items: center;
  18397. font-size: 14px;
  18398. cursor: pointer;
  18399. overflow: hidden;
  18400. }
  18401. .wb_j_box_btn:hover {
  18402. border: 1.5px solid #0061ff;
  18403. }
  18404. .wb_j_box_title {
  18405. background: #f0f4fa;
  18406. height: 100%;
  18407. line-height: 40px;
  18408. width: 90px;
  18409. text-align: center;
  18410. color: #060e17;
  18411. border-right: 1.5px solid #cad1dc;
  18412. box-sizing: border-box;
  18413. }
  18414. .wb_j_box_btn_c {
  18415. width: calc(100% - 90px);
  18416. padding: 0 35px 0 10px;
  18417. box-sizing: border-box;
  18418. position: relative;
  18419. }
  18420. .wb_j_box_span {
  18421. width: 100%;
  18422. overflow: hidden;
  18423. white-space: nowrap;
  18424. text-overflow: ellipsis;
  18425. word-wrap: break-word;
  18426. color: #717c8d;
  18427. }
  18428. .wb_j_box_arrow {
  18429. content: "";
  18430. width: 14px;
  18431. height: 14px;
  18432. background: url(../../../assets/icon/new/u_arrow.png);
  18433. background-size: 100% 100%;
  18434. position: absolute;
  18435. right: 12px;
  18436. top: 50%;
  18437. transform: translateY(-50%);
  18438. }
  18439. .check_classBox {
  18440. height: 400px;
  18441. display: flex;
  18442. border-top: 1.5px solid #e7ebf1;
  18443. border-bottom: 1.5px solid #e7ebf1;
  18444. }
  18445. .check_class_right {
  18446. width: 130px;
  18447. border-right: 1px solid #e7ebf1;
  18448. display: flex;
  18449. align-items: center;
  18450. flex-direction: column;
  18451. height: 100%;
  18452. overflow: auto;
  18453. padding: 15px 0;
  18454. box-sizing: border-box;
  18455. }
  18456. .check_class {
  18457. width: 85%;
  18458. border-radius: 5px;
  18459. height: 30px;
  18460. min-height: 30px;
  18461. line-height: 30px;
  18462. text-align: center;
  18463. padding: 0 10px;
  18464. box-sizing: border-box;
  18465. cursor: pointer;
  18466. white-space: nowrap;
  18467. overflow: hidden;
  18468. text-overflow: ellipsis;
  18469. }
  18470. .check_class.activeX {
  18471. background: #e0eafb;
  18472. color: #3681fc;
  18473. font-weight: 700;
  18474. }
  18475. .check_class+.check_class {
  18476. margin-top: 15px;
  18477. }
  18478. .check_class_left {
  18479. background: #fafafa;
  18480. width: calc(100% - 130px);
  18481. padding: 15px;
  18482. box-sizing: border-box;
  18483. }
  18484. .check_class_all_box {
  18485. display: flex;
  18486. margin-bottom: 10px;
  18487. }
  18488. .all_check {
  18489. display: flex;
  18490. align-items: center;
  18491. padding: 2px 0 0;
  18492. margin-left: 10px;
  18493. }
  18494. .all_check>>>.el-checkbox__label {
  18495. line-height: 18px;
  18496. }
  18497. .check_class_left_title {
  18498. font-size: 16px;
  18499. font-weight: 700;
  18500. }
  18501. .check_class_item {
  18502. display: flex;
  18503. flex-wrap: wrap;
  18504. height: calc(100% - 45px);
  18505. overflow: auto;
  18506. justify-content: flex-start;
  18507. align-items: flex-start;
  18508. align-content: flex-start;
  18509. }
  18510. .class_item:first-child {
  18511. /* margin: 0 15px 15px 67px; */
  18512. }
  18513. .class_item {
  18514. margin: 0 15px 15px 0;
  18515. }
  18516. .class_item:hover>>>.el-checkbox__label {
  18517. color: #409eff;
  18518. }
  18519. .class_item>>>.el-checkbox__label {
  18520. color: #0e1e33;
  18521. }
  18522. .class_item:hover>>>.el-checkbox__inner {
  18523. border-color: #409eff;
  18524. }
  18525. .class_item>>>.el-checkbox,
  18526. .class_item>>>.el-checkbox__input {
  18527. display: flex;
  18528. align-items: center;
  18529. }
  18530. .taskTitle {
  18531. font-size: 20px;
  18532. font-weight: bold;
  18533. margin-bottom: 35px;
  18534. }
  18535. .taskTitle:after {
  18536. content: "";
  18537. width: 100%;
  18538. display: block;
  18539. height: 1px;
  18540. background: #cad1dc;
  18541. position: absolute;
  18542. left: 0;
  18543. margin: 15px 0 0;
  18544. }
  18545. .eva_btn_box {
  18546. margin: 20px 0px 0 0;
  18547. display: flex;
  18548. flex-direction: row;
  18549. flex-wrap: nowrap;
  18550. align-items: center;
  18551. justify-content: space-between;
  18552. width: 100%;
  18553. }
  18554. .eva_btn_left_box {
  18555. display: flex;
  18556. flex-direction: row;
  18557. flex-wrap: nowrap;
  18558. align-items: center;
  18559. }
  18560. .addTypeChoose {
  18561. display: flex;
  18562. flex-direction: row;
  18563. flex-wrap: nowrap;
  18564. align-items: center;
  18565. margin: 15px 0;
  18566. }
  18567. .addTypeBox {
  18568. display: flex;
  18569. flex-direction: column;
  18570. flex-wrap: nowrap;
  18571. align-items: center;
  18572. }
  18573. .addTypeChoose {
  18574. display: flex;
  18575. flex-direction: row;
  18576. flex-wrap: nowrap;
  18577. align-items: center;
  18578. margin: 15px 0;
  18579. }
  18580. .buchong_box {
  18581. background: #E0EAFB66;
  18582. width: calc(100% - 20px);
  18583. min-height: 50px;
  18584. display: flex;
  18585. align-items: center;
  18586. justify-content: center;
  18587. margin: 0 auto;
  18588. }
  18589. .outline {
  18590. width: calc(100% - 40px);
  18591. margin: 0 auto;
  18592. }
  18593. .task_outline {
  18594. width: calc(100% - 40px);
  18595. margin: 0 auto;
  18596. }
  18597. .outline_box+.outline_box {
  18598. margin: 30px 0 0px;
  18599. }
  18600. .outline_task {
  18601. display: flex;
  18602. align-items: center;
  18603. margin-bottom: 10px;
  18604. }
  18605. .outline_task .title {
  18606. font-size: 18px;
  18607. font-weight: bold;
  18608. min-width: 80px;
  18609. }
  18610. .op_task_box,
  18611. .op_tool_box,
  18612. .outline_detail {
  18613. position: relative;
  18614. }
  18615. .op_task_box:hover .op_box,
  18616. .op_tool_box:hover .op_box,
  18617. .outline_detail:hover .op_box {
  18618. display: flex
  18619. }
  18620. .op_box {
  18621. position: absolute;
  18622. bottom: 10px;
  18623. display: none;
  18624. align-items: center;
  18625. justify-content: space-between;
  18626. width: calc(100% - 20px);
  18627. left: 50%;
  18628. transform: translateX(-50%);
  18629. }
  18630. .op_box .op_remark {
  18631. color: #8E8E8E;
  18632. font-size: 14px;
  18633. }
  18634. .rb_c_nav {
  18635. width: calc(100% - 20px);
  18636. margin: 15px auto 0;
  18637. font-size: 18px;
  18638. }
  18639. .rb_c_nav span {
  18640. cursor: pointer;
  18641. }
  18642. .rb_c_nav span+span {
  18643. margin-left: 10px;
  18644. }
  18645. .rb_c_nav span.active {
  18646. color: #0061FF
  18647. }
  18648. .text_panel>>>.text {
  18649. height: 400px;
  18650. }
  18651. .markBox{
  18652. padding: 20px 14px;
  18653. line-height: 29px;
  18654. font-size: 16px;
  18655. background: #f4f4f4;
  18656. border-radius: 5px;
  18657. }
  18658. .info_box_t{
  18659. display: flex;
  18660. align-items: center;
  18661. }
  18662. .info_box_t_box{
  18663. display: flex;
  18664. align-items: center;
  18665. }
  18666. .info_box_t_box + .info_box_t_box{
  18667. margin-left: 10px;
  18668. }
  18669. .info_box_t_box > span{
  18670. width: fit-content
  18671. }
  18672. .info_box_t_box > input{
  18673. width: 150px !important;
  18674. margin: 0 5px 0 0;
  18675. }
  18676. </style>