addCourse.vue 604 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5" v-loading="loading">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <!-- @mouseenter="stepDisplay(true)"
  28. @mouseleave="stepDisplay(false)" -->
  29. <div ref="stepBox" class="stepBox">
  30. <div class="stepBg" v-if="false">
  31. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
  32. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  33. <div>
  34. <img src="../../../assets/icon/first.png" alt />
  35. </div>
  36. <div>填写基本信息</div>
  37. </div>
  38. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  39. <div>
  40. <img src="../../../assets/icon/firstNo.png" alt />
  41. </div>
  42. <div>填写基本信息</div>
  43. </div>
  44. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay">
  45. </div>
  46. <!-- <div
  47. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  48. class="second"
  49. @click="navSteps(2)"
  50. >
  51. <div style="margin: 5px 10px 0 0; width: 2rem">
  52. <img src="../../../assets/icon/second.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div
  57. v-else-if="cidType === 0 && isStepDisplay"
  58. class="secondNo"
  59. @click="navSteps(2)"
  60. >
  61. <div>
  62. <img src="../../../assets/icon/secondNo.png" alt />
  63. </div>
  64. <div>选择课程模板</div>
  65. </div> -->
  66. <!-- <div
  67. v-if="isStepDisplay"
  68. class="stepBorder"
  69. :class="{ 'border-active': steps > 2 }"
  70. ></div> -->
  71. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  72. <div>
  73. <img src="../../../assets/icon/third.png" alt />
  74. </div>
  75. <div>上传课程内容</div>
  76. </div>
  77. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  78. <div>
  79. <img src="../../../assets/icon/thirdNo.png" alt />
  80. </div>
  81. <div>上传课程内容</div>
  82. </div>
  83. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  84. <div v-if="steps > 3 && isStepDisplay" class="four">
  85. <div>
  86. <img src="../../../assets/icon/four.png" alt />
  87. </div>
  88. <div>上传完成</div>
  89. </div>
  90. <div v-else-if="isStepDisplay" class="fourNo">
  91. <div>
  92. <img src="../../../assets/icon/fourNo.png" alt />
  93. </div>
  94. <div>上传完成</div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="rightBox" :key="updateKey" ref='scrollContainer' v-if="steps == 1" @mousewheel="scrollChange"
  99. style="padding: 0" :style="{
  100. height:
  101. !isStepDisplay && !isBtnDisplay
  102. ? 'calc(100% - 20px)'
  103. : 'calc(100% - 100px)',
  104. }">
  105. <div class="updateMask" :style="{
  106. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  107. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  108. <div class="whiteBg" style="background: unset; padding: 0">
  109. <div>
  110. <div class="basic_box" style="padding: 0">
  111. <div class="big_box">
  112. <div class="left_first">
  113. <div :class="{
  114. updateTips:
  115. cid && userid != courseUserid && role != '1',
  116. }">
  117. <div style="width: 100%">
  118. <div class="course_input_box">
  119. <div class="bb_courseIcon">
  120. <img src="../../../assets/icon/new/course.png" />
  121. </div>
  122. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" style="
  123. border: 1.5px solid rgb(202, 209, 220);
  124. margin: 0px 10px 0px 0px;
  125. border-radius: 5px;
  126. font-weight: 600;
  127. padding: 12px 14px 12px 71px;
  128. " />
  129. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  130. style="justify-content: center; width: 200px"></el-switch>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  135. <span>类型</span>
  136. <!-- 学科+ 主题+ 未来+ -->
  137. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  138. style="display: flex; align-items: center">
  139. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2"
  140. :key="index">
  141. <el-radio :label="item.name">{{
  142. item.name
  143. }}</el-radio>
  144. </div>
  145. </el-radio-group>
  146. </div>
  147. <div class="both">
  148. <div class="choose">
  149. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  150. <span v-if="
  151. CourseTypeJson[item.id].length > 0 &&
  152. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  153. ? pTypeCheck.indexOf(item.id) != -1
  154. : true)
  155. ">{{ item.name }}:</span>
  156. <el-checkbox-group v-model="courseTypeId" v-if="
  157. CourseTypeJson[item.id].length > 0 &&
  158. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  159. ? pTypeCheck.indexOf(item.id) != -1
  160. : true)
  161. ">
  162. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  163. item1.name }}</el-checkbox>
  164. </el-checkbox-group>
  165. <!-- <div
  166. v-else
  167. style="font-size: 14px; margin-left: -8px"
  168. >
  169. 暂无
  170. </div> -->
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="right_first">
  176. <!-- <div class="ai_box">
  177. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  178. </div> -->
  179. <div class="c_info_title" style="padding: 0 0 15px; margin: 0 auto 0 0">
  180. 上传封面
  181. </div>
  182. <div style="width: 100%">
  183. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  184. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  185. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  186. <div v-if="cover.length == 0">点击添加封面</div>
  187. <div class="cover_mask">
  188. <img src="../../../assets/icon/new/cover_update.png" /><span
  189. style="margin-top: 5px">修改封面</span>
  190. </div>
  191. </div>
  192. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  193. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  194. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  195. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  196. <i class="el-icon-plus"></i>
  197. </el-upload> -->
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="whiteBg" style="background: #fff; margin: 10px 0;padding: 0 0 15px;">
  205. <div class="whiteBg" style="border-radius: 0">
  206. <div class="c_info_title">
  207. 课程权限设置
  208. </div>
  209. <div class="wb_j_box">
  210. <div class="wb_j_box_content">
  211. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  212. (dialogVisibleClass = true),
  213. (classSearch = ''),
  214. (gradeId = ''),
  215. getClass()
  216. ">添加班级</button>
  217. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  218. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  219. getClassC(tc) }}</span>
  220. </div> -->
  221. <div class="wb_j_box_btn" @click="
  222. (dialogVisibleClass = true),
  223. (classSearch = ''),
  224. (gradeId = ''),
  225. getClass()
  226. ">
  227. <div class="wb_j_box_title">授课班级</div>
  228. <div class="wb_j_box_btn_c">
  229. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  230. v-if="checkboxList2.length" popper-class="text_tooltip2">
  231. <div class="wb_j_box_span">
  232. {{ getListClassC(checkboxList2) }}
  233. </div>
  234. </el-tooltip>
  235. <div v-else class="wb_j_box_span">请选择授课班级</div>
  236. <div class="wb_j_box_arrow"></div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="wb_j_box_content">
  241. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  242. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  243. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  244. checkBoolean
  245. ? checkboxList3
  246. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  247. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  248. </div> -->
  249. <div class="wb_j_box_btn" @click="openMember">
  250. <div class="wb_j_box_title">协同人员</div>
  251. <div class="wb_j_box_btn_c">
  252. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  253. v-if="checkboxList3.length" popper-class="text_tooltip2">
  254. <div class="wb_j_box_span">
  255. {{ getListMan2(checkboxList3) }}
  256. </div>
  257. </el-tooltip>
  258. <div v-else class="wb_j_box_span">请选择协同人员</div>
  259. <div class="wb_j_box_arrow"></div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  266. <div class="c_info_title">目标管理</div>
  267. <div style="margin: 0 auto; padding: 0 20px">
  268. <div style="
  269. width: 95%;
  270. min-height: 200px;
  271. border: 1px solid #cad1dc;
  272. border-radius: 4px;
  273. position: relative;
  274. ">
  275. <div class="e_add_top">
  276. <div class="e_add_title">
  277. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()" v-if="evalua">
  278. 清除
  279. </button>
  280. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">
  281. 添加
  282. </button>
  283. <!-- <span>当前使用目标管理</span>
  284. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  285. <img
  286. src="../../../assets/line.png"
  287. class="cru_line"
  288. style="
  289. width: 125px;
  290. height: 20px;
  291. bottom: -10px;
  292. left: 155px;
  293. "
  294. /> -->
  295. </div>
  296. <div style="
  297. display: flex;
  298. flex-direction: row;
  299. align-items: center;
  300. ">
  301. <!-- <el-button
  302. type="primary"
  303. size="small"
  304. @click="dialogVisiblemb = true"
  305. >添加目标管理</el-button
  306. >
  307. <el-button
  308. type="primary"
  309. size="small"
  310. @click="deleteEva()"
  311. >清除内容</el-button
  312. > -->
  313. <!-- <div class="e_add_delete" @click="deleteEva()">
  314. <img src="../../../assets/icon/delete.png" alt="" />
  315. </div> -->
  316. </div>
  317. </div>
  318. <div v-if="evalua == ''">
  319. <div class="noneBox">
  320. <img src="../../../assets/icon/new/eva_none.png" />
  321. <span>请添加目标管理</span>
  322. </div>
  323. </div>
  324. <div class="e_add_content" v-else>
  325. <div class="e_add_list_pbox">
  326. <div class="e_add_list_pbox_title">
  327. <span class="type_title">切换模式</span>
  328. <div class="type_content">
  329. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  330. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  331. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  332. </div>
  333. </div>
  334. <div class="e_add_list_pbox_content">
  335. <Mind :showBar="false" :mindData="data" v-if="typeMode == 1"></Mind>
  336. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  337. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  338. v-if="typeMode == 3">
  339. </SeeBoard>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading">
  348. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  349. <div class="c_info_title">
  350. 课程简要描述
  351. <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;" @click="detailYou">AI优化</button>
  352. </div>
  353. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  354. <div style="width: calc(100%)">
  355. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  356. placeholder="请输入课程简要描述"></textarea>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  362. <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  363. <div class="c_info_title">
  364. 补充资料
  365. <button class="c_pub_button_add pub_btn_add_img" style="margin: 0 20px 0 auto;">上传补充资料</button>
  366. </div>
  367. <div class="buchong_box">
  368. <span>暂时还没有内容,快去添加吧~</span>
  369. </div>
  370. </div> -->
  371. <div style="position: relative;
  372. background: #fff;
  373. box-sizing: border-box;
  374. padding: 1px 20px 10px;
  375. width: 100%;
  376. border-radius: 10px;">
  377. <div style="
  378. display: flex;
  379. flex-direction: row;
  380. justify-content: space-between;
  381. align-items: center;
  382. " :style="{
  383. margin: true
  384. ? '20px 0 10px'
  385. : '20px 0 0',
  386. }">
  387. <div style="margin-bottom: 10px;width:100%" class="lineTitle">
  388. 补充资料
  389. <div class="add_info_box" style="margin: 0 0 0 auto">
  390. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  391. 上传补充资料
  392. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  393. beforeUploadInfo2(
  394. $event,
  395. 13
  396. )
  397. " />
  398. </button>
  399. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  400. 图文
  401. </button>
  402. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  403. 链接
  404. </button>
  405. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  406. 代码
  407. </button>
  408. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  409. 资源
  410. </button> -->
  411. </div>
  412. </div>
  413. </div>
  414. <div>
  415. <div class="add_chapters_box add_c_none" v-if="
  416. infoData &&
  417. infoData.length == 0
  418. ">
  419. <img src="../../../assets/icon/new/c_none.png" alt /><span>暂时还没有内容,快去添加吧</span>
  420. </div>
  421. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  422. <div @dragstart="
  423. dragStart(item1, index1, 0)
  424. " @dragover.prevent="
  425. dragOver(index1, 0)
  426. " @dragend="dragEnd()" :draggable="isdrag ==
  427. 'chapter-' + 0 + '-' + index1
  428. " class="chapter_upload" v-for="(item1, index1) in infoData"
  429. :key="item1.id" @click="
  430. getChapterData(
  431. $event,
  432. index1,
  433. item1.type
  434. )
  435. " :class="{
  436. dragOverTop2:
  437. newIndex === index1 &&
  438. typeIndex ==
  439. 'chapter-' +
  440. 0 +
  441. '-' +
  442. index1 &&
  443. oldIndex > index1 &&
  444. dragType == 'drag',
  445. dragOverBottom2:
  446. newIndex === index1 &&
  447. typeIndex ==
  448. 'chapter-' +
  449. 0 +
  450. '-' +
  451. index1 &&
  452. oldIndex < index1 &&
  453. dragType == 'drag',
  454. }">
  455. <!-- <div @mousedown="
  456. isdrag =
  457. 'chapter-' + 0 + '-' + index1
  458. " @mouseup="isdrag = ''" @touchstart="
  459. isdrag =
  460. 'chapter-' + 0 + '-' + index1
  461. " @touchend="isdrag = ''" class="chapter_upload_drag"></div> -->
  462. <div class="chapter_upload_o" style="
  463. position: relative;
  464. display: flex;
  465. align-items: center;
  466. ">
  467. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  468. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  469. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  470. </div>
  471. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  472. </div>
  473. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  474. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  475. </div>
  476. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  477. </div>
  478. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  479. </div>
  480. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  481. </div>
  482. </div>
  483. <div class="chapter_upload_n">
  484. <input readonly="true" v-if="
  485. item1.type == 2 ||
  486. item1.type == 3 ||
  487. item1.type == 12 ||
  488. item1.type == 13 ||
  489. item1.type == 7
  490. " :placeholder="item1.name" @click="
  491. updataVideoT(
  492. $event,
  493. index1
  494. )
  495. " style="
  496. border: none;
  497. outline: none;
  498. width: 80%;
  499. minwidth: 215px;
  500. z-index: 99;
  501. font-size: 14px;
  502. white-space: nowrap;
  503. overflow: hidden;
  504. text-overflow: ellipsis;
  505. " />
  506. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  507. border: none;
  508. outline: none;
  509. width: 80%;
  510. white-space: nowrap;
  511. overflow: hidden;
  512. text-overflow: ellipsis;
  513. " readonly="true" @click="
  514. selectAttText(index1)
  515. " />
  516. <input :placeholder="item1.title ? item1.title : '链接'
  517. " v-if="item1.type == 8" style="
  518. border: none;
  519. outline: none;
  520. width: 80%;
  521. white-space: nowrap;
  522. overflow: hidden;
  523. text-overflow: ellipsis;
  524. " readonly="true" @click="selectLine(index1)" />
  525. <input :placeholder="item1.title ? item1.title : '链接'
  526. " v-if="item1.type == 14" style="
  527. border: none;
  528. outline: none;
  529. width: 80%;
  530. white-space: nowrap;
  531. overflow: hidden;
  532. text-overflow: ellipsis;
  533. " readonly="true" @click="
  534. openUpdateSource(index1)
  535. " />
  536. </div>
  537. <div class="chapter_upload_ic">
  538. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  539. <!-- <div class="chapter_upload_ud" style="z-index: 99">
  540. <div class="chapter_upload_up" @click="
  541. upCd(
  542. $event,
  543. index1
  544. )
  545. "></div>
  546. <div class="chapter_upload_down" @click="
  547. downCd(
  548. $event,
  549. index1
  550. )
  551. "></div>
  552. </div>
  553. <div class="chapter_upload_ic_edit" v-if="
  554. item1.type == 2 ||
  555. item1.type == 3 ||
  556. item1.type == 12 ||
  557. item1.type == 13 ||
  558. item1.type == 7
  559. " @click.stop="
  560. updataVideoT(
  561. $event,
  562. index1
  563. )
  564. ">
  565. <div></div>
  566. </div>
  567. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  568. selectAttText(index1)
  569. ">
  570. <div></div>
  571. </div>
  572. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  573. @click="selectLine(index1)">
  574. <div></div>
  575. </div>
  576. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  577. openUpdateSource(index1)
  578. ">
  579. <div></div>
  580. </div> -->
  581. <div class="chapter_upload_ic_r" @click.stop="
  582. deleteInfoData(
  583. $event,
  584. index1
  585. )
  586. ">
  587. <div></div>
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. <div v-if="
  595. infoproVisible
  596. " class="mask">
  597. <div class="progressBox">
  598. <!-- <div id="closePro" class="closeCss">
  599. <img src="../../../../assets/icon/close.png" alt />
  600. </div> -->
  601. <div class="lbox">
  602. <img src="../../../assets/loading.gif" />上传中,请稍后
  603. </div>
  604. <div style="margin-bottom: 10px">
  605. <span>{{
  606. infoisFinishSize
  607. }}M</span>
  608. /
  609. <span>{{
  610. infoisAllSize
  611. }}M</span>
  612. </div>
  613. <el-progress :text-inside="true" :stroke-width="20" :percentage="infoprogress
  614. ? infoprogress
  615. : 0
  616. " style="width: 80%"></el-progress>
  617. </div>
  618. </div>
  619. </div>
  620. </div>
  621. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;">
  622. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  623. <div class="c_info_title">
  624. 补充描述
  625. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  626. </div>
  627. <div style="width: 100%; padding: 0px 20px; box-sizing: border-box">
  628. <div style="width: calc(100%)">
  629. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText2"
  630. placeholder="请输入课程补充描述:例如您期望的课程时长、任务数量、任务难度、任务类型等。"></textarea>
  631. </div>
  632. </div>
  633. </div>
  634. </div>
  635. <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="isOutline">
  636. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  637. <div class="c_info_title">
  638. 课程大纲
  639. <!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
  640. </div>
  641. <div class="task_outline">
  642. <div class="outline_box" v-for="(item, index) in unitJson[0].chapterInfo[0].taskJson" :key="index">
  643. <div class="outline_task">
  644. <div class="title">任务{{ index + 1 }}</div>
  645. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="item.task"/>
  646. </div>
  647. <div class="outline_detail">
  648. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  649. placeholder="请输入任务描述" v-model="item.taskDetail2"></textarea>
  650. <div class="op_box">
  651. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  652. <div class="r_pub_button_op">智能优化</div>
  653. </div>
  654. </div>
  655. </div>
  656. </div>
  657. </div>
  658. </div>
  659. <div class="info_btnBox3">
  660. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  661. goTo(
  662. '/course?userid=' +
  663. userid +
  664. '&oid=' +
  665. oid +
  666. '&org=' +
  667. org +
  668. '&role=' +
  669. role
  670. )
  671. ">
  672. 返回课程
  673. </button>
  674. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  675. {{ steps == 4 ? "返回课程" : "上一步" }}
  676. </button>
  677. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  678. pub_btn_next_img: steps != 3,
  679. pub_btn_finish_img: steps == 3,
  680. }">
  681. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  682. </button>
  683. </div>
  684. </div>
  685. <div class="rightBox" v-if="steps == 2" :style="{
  686. height:
  687. !isStepDisplay && !isBtnDisplay
  688. ? 'calc(100% - 40px)'
  689. : 'calc(100% - 100px)',
  690. }">
  691. <div class="basic_box" style="
  692. padding: 20px 30px 0px !important;
  693. box-sizing: border-box;
  694. height: calc(100% - 80px);
  695. overflow: auto;
  696. background: #fff;
  697. ">
  698. <!-- <div
  699. style="
  700. color: #b8b8b8;
  701. background: #fff;
  702. width: 26%;
  703. height: 40px;
  704. border-radius: 15px;
  705. padding-left: 20px;
  706. line-height: 40px;
  707. font-size: 17px;
  708. box-shadow: 0px 1px 2px 2px #e0e0e0;
  709. "
  710. >-->
  711. <div class="right_title" style="border: none; margin: 0; padding: 0">
  712. 请选择合适的课程模板
  713. </div>
  714. <div class="wordbox">
  715. <div class="wordTeacher" @click="checkTemplate2()">
  716. <div class="wordPic">
  717. <img src="../../../assets/icon/new/template_none.png" alt />
  718. </div>
  719. <div style="
  720. margin-top: 10px;
  721. line-height: 19px;
  722. overflow: hidden;
  723. text-overflow: ellipsis;
  724. white-space: nowrap;
  725. padding: 0 20px;
  726. ">
  727. 空白模板
  728. </div>
  729. </div>
  730. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  731. <div class="wordPic">
  732. <img src="../../../assets/icon/new/template.png" alt />
  733. </div>
  734. <div style="
  735. margin-top: 10px;
  736. line-height: 19px;
  737. overflow: hidden;
  738. text-overflow: ellipsis;
  739. white-space: nowrap;
  740. padding: 0 20px;
  741. ">
  742. {{ aa.title }}
  743. </div>
  744. </div>
  745. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  746. <div class="wordPic">
  747. <img src="../../../assets/icon/new/template.png" alt />
  748. </div>
  749. <div style="
  750. margin-top: 10px;
  751. line-height: 19px;
  752. overflow: hidden;
  753. text-overflow: ellipsis;
  754. white-space: nowrap;
  755. padding: 0 20px;
  756. ">
  757. 简易模板
  758. </div>
  759. </div>
  760. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  761. <div class="wordPic">
  762. <img src="../../../assets/icon/new/template.png" alt />
  763. </div>
  764. <div style="
  765. margin-top: 10px;
  766. line-height: 19px;
  767. overflow: hidden;
  768. text-overflow: ellipsis;
  769. white-space: nowrap;
  770. padding: 0 20px;
  771. ">
  772. 智能粘贴模式
  773. </div>
  774. </div>
  775. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  776. <div class="wordPic">
  777. <img src="../../../assets/icon/wordMub.png" alt />
  778. </div>
  779. <div style="
  780. margin-top: 10px;
  781. line-height: 19px;
  782. overflow: hidden;
  783. text-overflow: ellipsis;
  784. white-space: nowrap;
  785. padding: 0 20px;
  786. ">
  787. 未来小学课程设计
  788. </div>
  789. </div> -->
  790. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  791. <div class="wordPic">
  792. <img src="../../../assets/icon/wordMub.png" alt />
  793. </div>
  794. <div style="
  795. margin-top: 10px;
  796. line-height: 19px;
  797. overflow: hidden;
  798. text-overflow: ellipsis;
  799. white-space: nowrap;
  800. padding: 0 20px;
  801. ">
  802. 我的课程
  803. </div>
  804. </div> -->
  805. </div>
  806. </div>
  807. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  808. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  809. goTo(
  810. '/course?userid=' +
  811. userid +
  812. '&oid=' +
  813. oid +
  814. '&org=' +
  815. org +
  816. '&role=' +
  817. role
  818. )
  819. ">
  820. 返回课程
  821. </button>
  822. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  823. {{ steps == 4 ? "返回课程" : "上一步" }}
  824. </button>
  825. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  826. pub_btn_next_img: steps != 3,
  827. pub_btn_finish_img: steps == 3,
  828. }">
  829. {{ steps == 3 ? "确认上传" : !isOutline ? "生成大纲" : "下一步" }}
  830. </button>
  831. </div>
  832. </div>
  833. <div class="rightBox" v-if="steps == 3" ref="rightboxR" :style="{
  834. height:
  835. !isStepDisplay && !isBtnDisplay
  836. ? 'calc(100% - 40px)'
  837. : 'calc(100% - 100px)',
  838. }">
  839. <div class="rb_c_box">
  840. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  841. <div class="rb_c_nav">
  842. <span :class="{ active: stepsNav == 1 }" @click="stepsNav = 1">目录</span>
  843. <span :class="{ active: stepsNav == 2 }" @click="stepsNav = 2">AI助手</span>
  844. </div>
  845. <div class="stepsBottom" v-if="stepsNav == 1">
  846. <!-- <div class="navTop">辅助导航</div> -->
  847. <div class="navBottom" v-if="courseState == 4">
  848. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  849. <div class="nt_taskBox" style="width: 100%;">
  850. <div class="nt_taskTitle"
  851. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  852. unitIndex + 1 }}</div>
  853. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  854. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  855. <span>{{ unitJson[unitIndex].dyName }}</span>
  856. </el-tooltip>
  857. </div>
  858. </div>
  859. </div> -->
  860. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  861. .taskJson" :key="tIndex" :class="{
  862. dragOverTop:
  863. newIndex === tIndex &&
  864. typeIndex == 'task-' + tIndex &&
  865. oldIndex > tIndex &&
  866. dragType == 'task',
  867. dragOverBottom:
  868. newIndex === tIndex &&
  869. typeIndex == 'task-' + tIndex &&
  870. oldIndex < tIndex &&
  871. dragType == 'task',
  872. }">
  873. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  874. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + tIndex" @click="goToTask(tIndex)"
  875. class="navTask" :class="{
  876. isNavTask:
  877. isClickColor > 0 && isClickColor == tIndex + 1,
  878. isNavOpen: t.toolOpen,
  879. }">
  880. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  881. <div @mousedown="isdrag = 'task-' + tIndex" @mouseup="isdrag = ''"
  882. @touchstart="isdrag = 'task-' + tIndex" @touchend="isdrag = ''" style="left: 8px"
  883. class="chapter_upload_drag"></div>
  884. <div class="nt_taskBox">
  885. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  886. <div class="nt_taskName">
  887. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  888. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  889. </el-tooltip>
  890. </div>
  891. </div>
  892. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  893. 1
  894. ">
  895. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  896. @click.stop="taskMove(1, tIndex)"></div>
  897. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  898. @click.stop="taskMove(2, tIndex)"></div>
  899. </div> -->
  900. </div>
  901. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  902. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  903. @click="jumpGj(tIndex, toolIndex2)">
  904. <div class="gjCss" :class="{
  905. isGjCss:
  906. toolIndexType == `gj${tIndex}${toolIndex2}`,
  907. }">
  908. <div>工具{{ toolIndex2 + 1 }}:</div>
  909. <div>
  910. {{
  911. toolsData[tool.tool[0]] &&
  912. toolsData[tool.tool[0]].name
  913. }}
  914. </div>
  915. </div>
  916. </div>
  917. </div>
  918. </div>
  919. </div>
  920. <div class="navBottom" v-if="courseState == 1">
  921. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  922. dragOverTop:
  923. newIndex === stageIndex &&
  924. typeIndex == 'Unit-' + stageIndex &&
  925. oldIndex > stageIndex &&
  926. dragType == 'Unit',
  927. dragOverBottom:
  928. newIndex === stageIndex &&
  929. typeIndex == 'Unit-' + stageIndex &&
  930. oldIndex < stageIndex &&
  931. dragType == 'Unit',
  932. }">
  933. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  934. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex"
  935. @click="unitSet2(stageIndex)" class="navStage" :class="{
  936. isNavStage: stageIndex == unitIndex,
  937. isNavStageOpen: stage.toolOpen,
  938. }">
  939. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  940. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px"
  941. class="chapter_upload_drag"></div>
  942. <div class="nt_taskBox">
  943. <div class="nt_taskTitle">
  944. 第{{ stageIndex + 1 }}阶段:
  945. </div>
  946. <div class="nt_taskName">
  947. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'
  948. " placement="top">
  949. <span>{{
  950. stage.dyName ? stage.dyName : "未命名阶段"
  951. }}</span>
  952. </el-tooltip>
  953. </div>
  954. </div>
  955. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  956. </div>
  957. <div v-for="(t, tIndex) in unitJson[stageIndex]
  958. .chapterInfo[0].taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  959. dragOverTop:
  960. newIndex === tIndex &&
  961. typeIndex == 'task-' + tIndex &&
  962. ((oldIndex > tIndex &&
  963. stageIndex == checkUnitIndex) ||
  964. (oldIndex == tIndex &&
  965. stageIndex == checkUnitIndex &&
  966. checkUnitIndex != oldUnitIndex)) &&
  967. dragType == 'task',
  968. dragOverBottom:
  969. newIndex === tIndex &&
  970. typeIndex == 'task-' + tIndex &&
  971. oldIndex < tIndex &&
  972. stageIndex == checkUnitIndex &&
  973. dragType == 'task',
  974. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  975. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  976. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()" :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex
  977. " @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px" :class="{
  978. isNavTask:
  979. isClickColor > 0 &&
  980. isClickColor == tIndex + 1 &&
  981. stageIndex == unitIndex,
  982. isNavOpen: t.toolOpen,
  983. }">
  984. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  985. <div @mousedown="
  986. isdrag = 'task-' + stageIndex + '-' + tIndex
  987. " @mouseup="isdrag = ''" @touchstart="
  988. isdrag = 'task-' + stageIndex + '-' + tIndex
  989. " @touchend="isdrag = ''" style="left: 20px" class="chapter_upload_drag"></div>
  990. <div class="nt_taskBox" style="width: calc(100% - 52px)">
  991. <div class="nt_taskTitle">
  992. 任务{{ tIndex + 1 }}:
  993. </div>
  994. <div class="nt_taskName">
  995. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  996. <span>{{
  997. t.task ? t.task : "未命名任务"
  998. }}</span>
  999. </el-tooltip>
  1000. </div>
  1001. </div>
  1002. </div>
  1003. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  1004. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  1005. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  1006. <div class="gjCss" :class="{
  1007. isGjCss:
  1008. toolIndexType ==
  1009. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1010. }">
  1011. <div>工具{{ toolIndex2 + 1 }}:</div>
  1012. <div>
  1013. {{
  1014. toolsData[tool.tool[0]] &&
  1015. toolsData[tool.tool[0]].name
  1016. }}
  1017. </div>
  1018. </div>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div class="rb_c_ai_box" v-if="stepsNav == 2">
  1026. <aiBox @setUnitJson="setUnitJson" :unitJson="unitJson"></aiBox>
  1027. </div>
  1028. </div>
  1029. <div class="rb_c_box_right">
  1030. <!-- <div class="rb_c_box_btn">
  1031. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1032. </div> -->
  1033. <div class="basic_box" ref="unitBox">
  1034. <div v-if="false" style="
  1035. display: flex;
  1036. flex-direction: row;
  1037. align-items: center;
  1038. position: sticky;
  1039. top: 0;
  1040. z-index: 99;
  1041. width: 100%;
  1042. padding: 0 20px 0 20px;
  1043. box-sizing: border-box;
  1044. background: #fff;
  1045. border-radius: 8px;
  1046. ">
  1047. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1048. <div class="cru_selectBox" :style="{
  1049. maxWidth: isPasteTask
  1050. ? 'calc(100% - 335px)'
  1051. : 'calc(100% - 190px)',
  1052. }" v-if="courseState == 1">
  1053. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1054. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1055. <!-- item.dyName ? item.dyName : -->
  1056. <span v-if="
  1057. unitJson[unitJson.length - 1].easy == 4 ||
  1058. unitJson[unitJson.length - 1].easy == 6
  1059. ">{{
  1060. item.dyName
  1061. ? item.dyName
  1062. : "第" + (index + 1) + "阶段"
  1063. }}</span>
  1064. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1065. </div>
  1066. <div class="cru_line" :style="{
  1067. left: offsetLetfPx + 'px',
  1068. }"></div>
  1069. </div>
  1070. <div class="addStageImg" @click="addunit()" v-if="
  1071. !(unitJson[unitJson.length - 1].easy == 4) &&
  1072. !(unitJson[unitJson.length - 1].easy == 6) &&
  1073. courseState == 1
  1074. ">
  1075. <img src="../../../assets/icon/new/addStage.png" alt />
  1076. </div>
  1077. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)"
  1078. v-if="courseState == 2" style="margin: 15px 0">
  1079. 新建阶段
  1080. </button>
  1081. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1082. <button class="c_pub_button_add" @click="openStageBox" v-show="false" style="margin: 0 0 0 auto">
  1083. 阶段顺序
  1084. </button>
  1085. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask()"
  1086. v-if="steps == 3 && isPasteTask" style="margin: 0 0 0 auto">
  1087. 智能粘贴
  1088. </button>
  1089. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate" :style="{
  1090. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1091. }" style="padding: 0 12px">
  1092. 选择课程模板
  1093. </button>
  1094. </div>
  1095. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1096. :key="index">
  1097. <div style="position: relative;
  1098. background: #fff;
  1099. box-sizing: border-box;
  1100. padding: 1px 20px 10px;
  1101. width: 100%;
  1102. border-radius: 10px;">
  1103. <div style="
  1104. display: flex;
  1105. flex-direction: row;
  1106. justify-content: space-between;
  1107. align-items: center;
  1108. " :style="{
  1109. margin: !item.taskJson[0].isFoldchapter
  1110. ? '20px 0 10px'
  1111. : '20px 0 0',
  1112. }">
  1113. <div style="margin-bottom: 10px" class="lineTitle">
  1114. 学习内容
  1115. </div>
  1116. </div>
  1117. <div>
  1118. <div class="add_chapters_box add_c_none" v-if="
  1119. item.taskJson[0].chapterData &&
  1120. item.taskJson[0].chapterData.length == 0
  1121. ">
  1122. <img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span>
  1123. </div>
  1124. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1125. <div @dragstart="
  1126. dragStart(item1, index1, 0)
  1127. " @dragover.prevent="
  1128. dragOver(index1, 0)
  1129. " @dragend="dragEnd()" :draggable="isdrag ==
  1130. 'chapter-' + 0 + '-' + index1
  1131. " class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  1132. :key="item1.id" @click="
  1133. getChapterData(
  1134. $event,
  1135. unitIndex,
  1136. index,
  1137. index1,
  1138. item1.type
  1139. )
  1140. " :class="{
  1141. dragOverTop2:
  1142. newIndex === index1 &&
  1143. typeIndex ==
  1144. 'chapter-' +
  1145. 0 +
  1146. '-' +
  1147. index1 &&
  1148. oldIndex > index1 &&
  1149. dragType == 'drag',
  1150. dragOverBottom2:
  1151. newIndex === index1 &&
  1152. typeIndex ==
  1153. 'chapter-' +
  1154. 0 +
  1155. '-' +
  1156. index1 &&
  1157. oldIndex < index1 &&
  1158. dragType == 'drag',
  1159. }">
  1160. <div @mousedown="
  1161. isdrag =
  1162. 'chapter-' + 0 + '-' + index1
  1163. " @mouseup="isdrag = ''" @touchstart="
  1164. isdrag =
  1165. 'chapter-' + 0 + '-' + index1
  1166. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1167. <div class="chapter_upload_o" style="
  1168. position: relative;
  1169. display: flex;
  1170. align-items: center;
  1171. ">
  1172. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1173. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1174. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1175. </div>
  1176. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1177. </div>
  1178. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1179. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1180. </div>
  1181. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1182. </div>
  1183. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1184. </div>
  1185. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1186. </div>
  1187. </div>
  1188. <div class="chapter_upload_n">
  1189. <input readonly="true" v-if="
  1190. item1.type == 2 ||
  1191. item1.type == 3 ||
  1192. item1.type == 12 ||
  1193. item1.type == 13 ||
  1194. item1.type == 7
  1195. " :placeholder="item1.name" @click="
  1196. updataVideoT(
  1197. $event,
  1198. unitIndex,
  1199. 0,
  1200. index1
  1201. )
  1202. " style="
  1203. border: none;
  1204. outline: none;
  1205. width: 80%;
  1206. minwidth: 215px;
  1207. z-index: 99;
  1208. font-size: 14px;
  1209. white-space: nowrap;
  1210. overflow: hidden;
  1211. text-overflow: ellipsis;
  1212. " />
  1213. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1214. border: none;
  1215. outline: none;
  1216. width: 80%;
  1217. white-space: nowrap;
  1218. overflow: hidden;
  1219. text-overflow: ellipsis;
  1220. " readonly="true" @click="
  1221. selectAttText(0, index1)
  1222. " />
  1223. <input :placeholder="item1.title ? item1.title : '链接'
  1224. " v-if="item1.type == 8" style="
  1225. border: none;
  1226. outline: none;
  1227. width: 80%;
  1228. white-space: nowrap;
  1229. overflow: hidden;
  1230. text-overflow: ellipsis;
  1231. " readonly="true" @click="selectLine(0, index1)" />
  1232. <input :placeholder="item1.title ? item1.title : '链接'
  1233. " v-if="item1.type == 14" style="
  1234. border: none;
  1235. outline: none;
  1236. width: 80%;
  1237. white-space: nowrap;
  1238. overflow: hidden;
  1239. text-overflow: ellipsis;
  1240. " readonly="true" @click="
  1241. openUpdateSource(0, index1)
  1242. " />
  1243. </div>
  1244. <div class="chapter_upload_ic">
  1245. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1246. <div class="chapter_upload_ud" style="z-index: 99">
  1247. <div class="chapter_upload_up" @click="
  1248. upCd(
  1249. $event,
  1250. unitIndex,
  1251. index,
  1252. 0,
  1253. index1
  1254. )
  1255. "></div>
  1256. <div class="chapter_upload_down" @click="
  1257. downCd(
  1258. $event,
  1259. unitIndex,
  1260. index,
  1261. 0,
  1262. index1
  1263. )
  1264. "></div>
  1265. </div>
  1266. <div class="chapter_upload_ic_edit" v-if="
  1267. item1.type == 2 ||
  1268. item1.type == 3 ||
  1269. item1.type == 12 ||
  1270. item1.type == 13 ||
  1271. item1.type == 7
  1272. " @click.stop="
  1273. updataVideoT(
  1274. $event,
  1275. unitIndex,
  1276. 0,
  1277. index1
  1278. )
  1279. ">
  1280. <div></div>
  1281. </div>
  1282. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1283. selectAttText(0, index1)
  1284. ">
  1285. <div></div>
  1286. </div>
  1287. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1288. @click="selectLine(0, index1)">
  1289. <div></div>
  1290. </div>
  1291. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1292. openUpdateSource(0, index1)
  1293. ">
  1294. <div></div>
  1295. </div>
  1296. <div class="chapter_upload_ic_r" @click.stop="
  1297. deleteChapterData(
  1298. $event,
  1299. unitIndex,
  1300. index,
  1301. index1,
  1302. 0
  1303. )
  1304. ">
  1305. <div></div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. </div>
  1311. </div>
  1312. <div class="add_info_box" style="margin: 10px 0 0">
  1313. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1314. 文件
  1315. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1316. beforeUpload2(
  1317. $event,
  1318. unitIndex,
  1319. 13,
  1320. 0
  1321. )
  1322. " />
  1323. </button>
  1324. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  1325. 图文
  1326. </button>
  1327. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  1328. 链接
  1329. </button>
  1330. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  1331. 代码
  1332. </button>
  1333. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  1334. 资源
  1335. </button>
  1336. </div>
  1337. <div v-if="
  1338. unitJson[unitIndex].chapterInfo[0].taskJson[
  1339. 0
  1340. ].proVisible
  1341. " class="mask">
  1342. <div class="progressBox">
  1343. <!-- <div id="closePro" class="closeCss">
  1344. <img src="../../../../assets/icon/close.png" alt />
  1345. </div> -->
  1346. <div class="lbox">
  1347. <img src="../../../assets/loading.gif" />上传中,请稍后
  1348. </div>
  1349. <div style="margin-bottom: 10px">
  1350. <span>{{
  1351. unitJson[unitIndex].chapterInfo[0].taskJson[
  1352. 0
  1353. ].isFinishSize
  1354. }}M</span>
  1355. /
  1356. <span>{{
  1357. unitJson[unitIndex].chapterInfo[0].taskJson[
  1358. 0
  1359. ].isAllSize
  1360. }}M</span>
  1361. </div>
  1362. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1363. 0
  1364. ].progress
  1365. ? unitJson[unitIndex].chapterInfo[0]
  1366. .taskJson[0].progress
  1367. : 0
  1368. " style="width: 80%"></el-progress>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. <div class="chapter_box" v-if="courseState == 1">
  1373. <div class="chapter_contentbox">
  1374. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1375. <div class="cc_input">
  1376. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  1377. v-model="unitJson[unitIndex].dyName" />
  1378. </div>
  1379. <div class="remove" v-if="
  1380. (unitJson.length > 1 || courseState != 2) &&
  1381. !(unitJson[unitJson.length - 1].easy == 4) &&
  1382. !(unitJson[unitJson.length - 1].easy == 6)
  1383. " @click="deleteUnit(unitIndex)"></div>
  1384. </div>
  1385. </div>
  1386. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1387. margin: 50px 0px 10px;
  1388. font-size: 1.5em;
  1389. font-weight: 700;
  1390. color: #0f7eff;
  1391. ">
  1392. 添加任务
  1393. </div> -->
  1394. <div class="taskBorder" :style="{
  1395. minHeight: unitJson[unitIndex].easy && 'unset',
  1396. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1397. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1398. <div style="background: #fff; border-radius: 5px">
  1399. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1400. <!-- padding: 20px; -->
  1401. <div v-if="unitJson[unitIndex].easy != 1">
  1402. <div :style="{
  1403. marginBottom:
  1404. unitJson[unitIndex].easy == 3 ||
  1405. (unitJson[unitIndex].easy == 5 &&
  1406. itemTask.taskType == 1)
  1407. ? '75px'
  1408. : '0',
  1409. }">
  1410. <div style="
  1411. display: flex;
  1412. margin: 0px 0 20px;
  1413. flex-direction: row;
  1414. justify-content: flex-start;
  1415. align-items: center;
  1416. ">
  1417. <div class="lineTitle">任务概述</div>
  1418. </div>
  1419. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  1420. flex-direction: row;
  1421. justify-content: flex-start;
  1422. align-items: center;
  1423. margin: 0;
  1424. ">
  1425. <!-- <div class="cc_title">
  1426. 任务{{ itemTaskIndex + 1 }}
  1427. </div> -->
  1428. <div class="cc_input">
  1429. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  1430. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1431. itemTaskIndex
  1432. ].task
  1433. " />
  1434. </div>
  1435. <div class="remove" v-if="
  1436. item.taskJson.length > 1 &&
  1437. (!unitJson[unitIndex].easy ||
  1438. unitJson[unitIndex].easy == 6)
  1439. " @click="deleteTask(itemTaskIndex)"></div>
  1440. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1441. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1442. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1443. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1444. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1445. </div> -->
  1446. </div>
  1447. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1448. display: flex;
  1449. margin: 20px 0;
  1450. flex-direction: row;
  1451. justify-content: flex-start;
  1452. align-items: center;
  1453. ">
  1454. <div class="lineTitle">任务描述</div>
  1455. </div> && !itemTask.isFold2-->
  1456. <div v-if="
  1457. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1458. -1
  1459. " style="margin-top: 20px" class="op_task_box">
  1460. <!-- <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1461. itemTaskIndex
  1462. ].taskDetail
  1463. " @change="change"></editor-bar> -->
  1464. <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols
  1465. placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1466. itemTaskIndex
  1467. ].taskDetail
  1468. "></textarea>
  1469. <!-- <textarea rows="6" class="binfo_input" placeholder="请输入任务描述" cols
  1470. style="width: 70.5% !important; height: 120px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1471. itemTaskIndex
  1472. ].taskDetail
  1473. "></textarea> -->
  1474. <div class="op_box">
  1475. <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
  1476. <div class="r_pub_button_op">智能优化</div>
  1477. </div>
  1478. </div>
  1479. </div>
  1480. </div>
  1481. <div v-if="
  1482. unitJson[unitIndex].easy == 1 ||
  1483. (unitJson[unitIndex].easy == 5 &&
  1484. itemTask.taskType == 2)
  1485. ">
  1486. <div>
  1487. <div class="add_chapters_box add_c_none" v-if="
  1488. itemTask.chapterData &&
  1489. itemTask.chapterData.length == 0
  1490. ">
  1491. <img src="../../../assets/icon/new/c_none.png" alt />
  1492. </div>
  1493. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1494. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="
  1495. dragOver(index1, itemTaskIndex)
  1496. " @dragend="dragEnd()" :draggable="isdrag ==
  1497. 'chapter-' + itemTaskIndex + '-' + index1
  1498. " class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData"
  1499. :key="item1.id" @click="
  1500. getChapterData(
  1501. $event,
  1502. unitIndex,
  1503. index,
  1504. index1,
  1505. item1.type
  1506. )
  1507. " :class="{
  1508. dragOverTop2:
  1509. newIndex === index1 &&
  1510. typeIndex ==
  1511. 'chapter-' +
  1512. itemTaskIndex +
  1513. '-' +
  1514. index1 &&
  1515. oldIndex > index1,
  1516. dragOverBottom2:
  1517. newIndex === index1 &&
  1518. typeIndex ==
  1519. 'chapter-' +
  1520. itemTaskIndex +
  1521. '-' +
  1522. index1 &&
  1523. oldIndex < index1,
  1524. }">
  1525. <div @mousedown="
  1526. isdrag =
  1527. 'chapter-' + itemTaskIndex + '-' + index1
  1528. " @mouseup="isdrag = ''" @touchstart="
  1529. isdrag =
  1530. 'chapter-' + itemTaskIndex + '-' + index1
  1531. " @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1532. <div class="chapter_upload_t" style="width: 100%"></div>
  1533. <div class="chapter_upload_o" style="
  1534. position: relative;
  1535. display: flex;
  1536. align-items: center;
  1537. ">
  1538. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1539. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1540. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1541. </div>
  1542. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1543. </div>
  1544. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1545. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1546. </div>
  1547. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1548. </div>
  1549. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1550. </div>
  1551. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1552. </div>
  1553. </div>
  1554. <div class="chapter_upload_n">
  1555. <span style="
  1556. font-size: 14px;
  1557. color: rgb(109, 109, 109);
  1558. height: 14px;
  1559. line-height: 14px;
  1560. " v-if="
  1561. item1.type == 2 ||
  1562. item1.type == 3 ||
  1563. item1.type == 7
  1564. ">{{ item1.text }}-</span>
  1565. <input readonly="true" v-if="
  1566. item1.type == 2 ||
  1567. item1.type == 3 ||
  1568. item1.type == 7
  1569. " :placeholder="item1.name" @click="
  1570. updataVideoT(
  1571. $event,
  1572. unitIndex,
  1573. itemTaskIndex,
  1574. index1
  1575. )
  1576. " style="
  1577. border: none;
  1578. outline: none;
  1579. width: 80%;
  1580. minwidth: 215px;
  1581. z-index: 99;
  1582. font-size: 14px;
  1583. white-space: nowrap;
  1584. overflow: hidden;
  1585. text-overflow: ellipsis;
  1586. " />
  1587. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1588. border: none;
  1589. outline: none;
  1590. width: 80%;
  1591. white-space: nowrap;
  1592. overflow: hidden;
  1593. text-overflow: ellipsis;
  1594. " readonly="true" @click="
  1595. selectAttText(itemTaskIndex, index1)
  1596. " />
  1597. <input :placeholder="item1.title ? item1.title : '链接'
  1598. " v-if="item1.type == 8 || item1.type == 14" style="
  1599. border: none;
  1600. outline: none;
  1601. width: 80%;
  1602. white-space: nowrap;
  1603. overflow: hidden;
  1604. text-overflow: ellipsis;
  1605. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1606. </div>
  1607. <div class="chapter_upload_ic">
  1608. <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
  1609. <div class="chapter_upload_ud" style="z-index: 99">
  1610. <div class="chapter_upload_up" @click="
  1611. upCd(
  1612. $event,
  1613. unitIndex,
  1614. index,
  1615. itemTaskIndex,
  1616. index1
  1617. )
  1618. "></div>
  1619. <div class="chapter_upload_down" @click="
  1620. downCd(
  1621. $event,
  1622. unitIndex,
  1623. index,
  1624. itemTaskIndex,
  1625. index1
  1626. )
  1627. "></div>
  1628. </div>
  1629. <div class="chapter_upload_ic_edit" v-if="
  1630. item1.type == 2 ||
  1631. item1.type == 3 ||
  1632. item1.type == 12 ||
  1633. item1.type == 13 ||
  1634. item1.type == 7
  1635. " @click.stop="
  1636. updataVideoT(
  1637. $event,
  1638. unitIndex,
  1639. itemTaskIndex,
  1640. index1
  1641. )
  1642. ">
  1643. <div></div>
  1644. </div>
  1645. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="
  1646. selectAttText(itemTaskIndex, index1)
  1647. ">
  1648. <div></div>
  1649. </div>
  1650. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1651. @click="selectLine(itemTaskIndex, index1)">
  1652. <div></div>
  1653. </div>
  1654. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="
  1655. openUpdateSource(itemTaskIndex, index1)
  1656. ">
  1657. <div></div>
  1658. </div>
  1659. <div class="chapter_upload_ic_r" @click.stop="
  1660. deleteChapterData(
  1661. $event,
  1662. unitIndex,
  1663. index,
  1664. index1,
  1665. itemTaskIndex
  1666. )
  1667. ">
  1668. <div></div>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. </div>
  1673. </div>
  1674. </div>
  1675. <div class="add_info_box" style="margin: 10px 0 0">
  1676. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1677. <span style="color: red">*</span>
  1678. 教学设计
  1679. <input type="file"
  1680. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1681. style="display: none" v-if="inputShow" @change="
  1682. beforeUpload3(
  1683. $event,
  1684. unitIndex,
  1685. 3,
  1686. itemTaskIndex,
  1687. '教学设计'
  1688. )
  1689. " />
  1690. </button>
  1691. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1692. <span style="color: red">*</span>
  1693. 教学课件
  1694. <input type="file"
  1695. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1696. style="display: none" v-if="inputShow" @change="
  1697. beforeUpload3(
  1698. $event,
  1699. unitIndex,
  1700. 3,
  1701. itemTaskIndex,
  1702. '教学课件'
  1703. )
  1704. " />
  1705. </button>
  1706. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1707. 教学视频
  1708. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1709. style="display: none" v-if="inputShow" @change="
  1710. beforeUpload3(
  1711. $event,
  1712. unitIndex,
  1713. 2,
  1714. itemTaskIndex,
  1715. '教学视频'
  1716. )
  1717. " />
  1718. </button>
  1719. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1720. 教学音频
  1721. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1722. beforeUpload3(
  1723. $event,
  1724. unitIndex,
  1725. 2,
  1726. itemTaskIndex,
  1727. '教学音频'
  1728. )
  1729. " />
  1730. </button>
  1731. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1732. 学习单
  1733. <input type="file"
  1734. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1735. style="display: none" v-if="inputShow" @change="
  1736. beforeUpload3(
  1737. $event,
  1738. unitIndex,
  1739. 3,
  1740. itemTaskIndex,
  1741. '学习单'
  1742. )
  1743. " />
  1744. </button>
  1745. </div>
  1746. <div v-if="
  1747. unitJson[unitIndex].chapterInfo[0].taskJson[
  1748. itemTaskIndex
  1749. ].proVisible
  1750. " class="mask">
  1751. <div class="progressBox">
  1752. <!-- <div id="closePro" class="closeCss">
  1753. <img src="../../../../assets/icon/close.png" alt />
  1754. </div> -->
  1755. <div class="lbox">
  1756. <img src="../../../assets/loading.gif" />上传中,请稍后
  1757. </div>
  1758. <div style="margin-bottom: 10px">
  1759. <span>{{
  1760. unitJson[unitIndex].chapterInfo[0].taskJson[
  1761. itemTaskIndex
  1762. ].isFinishSize
  1763. }}M</span>
  1764. /
  1765. <span>{{
  1766. unitJson[unitIndex].chapterInfo[0].taskJson[
  1767. itemTaskIndex
  1768. ].isAllSize
  1769. }}M</span>
  1770. </div>
  1771. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1772. itemTaskIndex
  1773. ].progress
  1774. ? unitJson[unitIndex].chapterInfo[0]
  1775. .taskJson[itemTaskIndex].progress
  1776. : 0
  1777. " style="width: 80%"></el-progress>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. <!-- padding: 20px; -->
  1783. <div style="
  1784. background: #fff;
  1785. border-radius: 5px;
  1786. margin-top: 15px;
  1787. ">
  1788. <div v-if="
  1789. unitJson[unitIndex].easy != 3 &&
  1790. !(
  1791. unitJson[unitIndex].easy == 5 &&
  1792. itemTask.taskType == 1
  1793. )
  1794. " style="
  1795. flex-direction: row;
  1796. justify-content: flex-start;
  1797. align-items: center;
  1798. ">
  1799. <div style="
  1800. display: flex;
  1801. flex-direction: row;
  1802. align-items: center;
  1803. margin: 5px 0 20px;
  1804. ">
  1805. <div class="lineTitle clineTitle">
  1806. {{
  1807. !unitJson[unitIndex].easy ||
  1808. unitJson[unitIndex].easy == 6 ||
  1809. easyArray.indexOf(unitJson[unitIndex].easy) !=
  1810. -1
  1811. ? "练习内容"
  1812. : "评价内容"
  1813. }}
  1814. </div>
  1815. <!-- <div class="line" style="width: 90%"></div> -->
  1816. </div>
  1817. </div>
  1818. <div v-if="
  1819. unitJson[unitIndex].easy == 6 ||
  1820. !unitJson[unitIndex].easy
  1821. " class="toolChoose">
  1822. <div class="tools">
  1823. <div class="leftTools" style="width: 100%" v-for="(
  1824. itemTool, toolIndex
  1825. ) in itemTask.toolChoose" :key="toolIndex">
  1826. <div style="
  1827. display: flex;
  1828. flex-direction: row;
  1829. align-items: baseline;
  1830. flex-wrap: nowrap;
  1831. justify-content: flex-start;
  1832. position: relative;
  1833. ">
  1834. <div style="margin-right: 20px; font-weight: bold"
  1835. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1836. 工具 {{ toolIndex + 1 }} :
  1837. </div>
  1838. <div class="chooseWho">
  1839. <div :class="itemTool.toolType == 0
  1840. ? 'isChooseActive'
  1841. : ''
  1842. " @click="
  1843. (itemTool.toolType = 0),
  1844. (itemTool.isFold3 = false),
  1845. $forceUpdate()
  1846. ">
  1847. 互动类
  1848. </div>
  1849. <div :class="itemTool.toolType == 1
  1850. ? 'isChooseActive'
  1851. : ''
  1852. " @click="
  1853. (itemTool.toolType = 1),
  1854. (itemTool.isFold3 = false),
  1855. $forceUpdate()
  1856. ">
  1857. 思维类
  1858. </div>
  1859. <div :class="itemTool.toolType == 6
  1860. ? 'isChooseActive'
  1861. : ''
  1862. " @click="
  1863. (itemTool.toolType = 6),
  1864. (itemTool.isFold3 = false),
  1865. $forceUpdate()
  1866. ">
  1867. 协作类
  1868. </div>
  1869. <div :class="itemTool.toolType == 2
  1870. ? 'isChooseActive'
  1871. : ''
  1872. " @click="
  1873. (itemTool.toolType = 2),
  1874. (itemTool.isFold3 = false),
  1875. $forceUpdate()
  1876. ">
  1877. 测评类
  1878. </div>
  1879. <div :class="itemTool.toolType == 7
  1880. ? 'isChooseActive'
  1881. : ''
  1882. " @click="
  1883. (itemTool.toolType = 7),
  1884. (itemTool.isFold3 = false),
  1885. $forceUpdate()
  1886. ">
  1887. 评价类
  1888. </div>
  1889. <div :class="itemTool.toolType == 3
  1890. ? 'isChooseActive'
  1891. : ''
  1892. " @click="
  1893. (itemTool.toolType = 3),
  1894. (itemTool.isFold3 = false),
  1895. $forceUpdate()
  1896. ">
  1897. 编程类
  1898. </div>
  1899. <div :class="itemTool.toolType == 5
  1900. ? 'isChooseActive'
  1901. : ''
  1902. " @click="
  1903. (itemTool.toolType = 5),
  1904. (itemTool.isFold3 = false),
  1905. $forceUpdate()
  1906. ">
  1907. 学科类
  1908. </div>
  1909. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1910. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1911. 其他
  1912. </div> -->
  1913. </div>
  1914. <div class="chapter_upload_ud2" style="z-index: 9; margin: 0 0 0 auto" :style="{
  1915. margin:
  1916. itemTask.toolChoose.length > 1
  1917. ? '0px 35px 0px auto'
  1918. : '0 0 0 auto',
  1919. }" v-if="itemTask.toolChoose.length > 1">
  1920. <div class="chapter_upload_up2" @click.stop="
  1921. upTool(
  1922. $event,
  1923. unitIndex,
  1924. itemTaskIndex,
  1925. toolIndex
  1926. )
  1927. ">
  1928. 上移
  1929. </div>
  1930. <div class="chapter_upload_down2" @click.stop="
  1931. downTool(
  1932. $event,
  1933. unitIndex,
  1934. itemTaskIndex,
  1935. toolIndex
  1936. )
  1937. ">
  1938. 下移
  1939. </div>
  1940. </div>
  1941. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1942. @click="fold3(itemTaskIndex, toolIndex)"
  1943. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1944. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1945. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1946. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1947. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1948. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1949. v-if="itemTask.toolChoose.length > 1" style="
  1950. position: absolute;
  1951. right: 0;
  1952. top: -5px;
  1953. "></div>
  1954. </div>
  1955. <!-- v-show="!itemTool.isFold3" -->
  1956. <div style="min-height: 163px">
  1957. <div class="toolSort" v-if="itemTool.toolType == 0">
  1958. <!-- <div class="tool">
  1959. <div
  1960. class="whiteBIcon"
  1961. @click="addTools(8, itemTaskIndex, toolIndex)"
  1962. >
  1963. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1964. <div style="margin: 5px 0">素材库</div>
  1965. </div>
  1966. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1967. <img
  1968. src="../../../assets/icon/checkNo.png"
  1969. alt
  1970. v-if="itemTool.tool.indexOf(8) == -1"
  1971. />
  1972. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1973. alt /><span>已选择</span></div>
  1974. </div>
  1975. </div>-->
  1976. <!-- <div class="tool">
  1977. <div
  1978. class="whiteBIcon"
  1979. @click="addTools(17, itemTaskIndex, toolIndex)"
  1980. >
  1981. <img
  1982. src="../../../assets/icon/secondToolList/library.png"
  1983. alt
  1984. />
  1985. <div style="margin: 5px 0">学习资料</div>
  1986. </div>
  1987. <div
  1988. class="check"
  1989. @click="addTools(17, itemTaskIndex, toolIndex)"
  1990. >
  1991. <img
  1992. src="../../../assets/icon/checkNo.png"
  1993. alt
  1994. v-if="itemTool.tool.indexOf(17) == -1"
  1995. />
  1996. <img
  1997. src="../../../assets/icon/checkedIs.png"
  1998. alt
  1999. v-else
  2000. />
  2001. </div>10
  2002. </div> -->
  2003. <div class="tool" :class="{
  2004. isToolChoose:
  2005. itemTool.tool.indexOf(10) != -1,
  2006. }" @click="
  2007. addTools(10, itemTaskIndex, toolIndex)
  2008. ">
  2009. <div class="whiteBIcon" @click.stop="
  2010. openTools(itemTaskIndex, 10, toolIndex)
  2011. ">
  2012. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2013. <div style="margin: 5px 0">倒计时</div>
  2014. </div>
  2015. <div class="noCTool">
  2016. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2017. </div>
  2018. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1">
  2019. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2020. </div>
  2021. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2022. <img src="../../../assets/icon/checkNo.png" alt
  2023. v-if="itemTool.tool.indexOf(10) == -1" />
  2024. <div class="checkDiv" v-else>
  2025. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2026. </div>
  2027. </div> -->
  2028. </div>
  2029. <div class="tool" :class="{
  2030. isToolChoose:
  2031. itemTool.tool.indexOf(65) != -1,
  2032. }" @click="
  2033. addTools(65, itemTaskIndex, toolIndex)
  2034. ">
  2035. <div class="whiteBIcon" @click.stop="
  2036. addTools(65, itemTaskIndex, toolIndex)
  2037. ">
  2038. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  2039. <div style="margin: 5px 0">挑人</div>
  2040. </div>
  2041. <div class="noCTool">
  2042. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2043. </div>
  2044. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1">
  2045. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2046. </div>
  2047. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2048. <img src="../../../assets/icon/checkNo.png" alt
  2049. v-if="itemTool.tool.indexOf(65) == -1" />
  2050. <div class="checkDiv" v-else>
  2051. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2052. </div>
  2053. </div> -->
  2054. </div>
  2055. <!-- <div class="tool">
  2056. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2057. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2058. <div style="margin: 5px 0">学生分组</div>
  2059. </div>
  2060. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2061. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2062. <div class="checkDiv" v-else>
  2063. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2064. </div>
  2065. </div>
  2066. </div> -->
  2067. <!-- <div class="tool">
  2068. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2069. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2070. <div style="margin: 5px 0">交互视频</div>
  2071. </div>
  2072. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2073. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2074. <div class="checkDiv" v-else>
  2075. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2076. </div>
  2077. </div>
  2078. </div> -->
  2079. </div>
  2080. <div class="toolSort" v-if="itemTool.toolType == 1">
  2081. <div class="tool" :class="{
  2082. isToolChoose:
  2083. itemTool.tool.indexOf(7) != -1,
  2084. }" @click="
  2085. addTools(7, itemTaskIndex, toolIndex)
  2086. ">
  2087. <div class="whiteBIcon" @click.stop="
  2088. addTools(7, itemTaskIndex, toolIndex)
  2089. ">
  2090. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2091. <div style="margin: 5px 0">思维网格</div>
  2092. </div>
  2093. <div class="noCTool">
  2094. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2095. </div>
  2096. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1">
  2097. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2098. </div>
  2099. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2100. <img src="../../../assets/icon/checkNo.png" alt
  2101. v-if="itemTool.tool.indexOf(7) == -1" />
  2102. <div class="checkDiv" v-else>
  2103. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2104. </div>
  2105. </div> -->
  2106. </div>
  2107. <div class="tool" :class="{
  2108. isToolChoose:
  2109. itemTool.tool.indexOf(1) != -1,
  2110. }" @click="
  2111. addTools(1, itemTaskIndex, toolIndex)
  2112. ">
  2113. <div class="whiteBIcon" @click.stop="
  2114. openTools(itemTaskIndex, 1, toolIndex)
  2115. ">
  2116. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2117. <div style="margin: 5px 0">电子白板</div>
  2118. </div>
  2119. <div class="noCTool">
  2120. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2121. </div>
  2122. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1">
  2123. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2124. </div>
  2125. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2126. <img src="../../../assets/icon/checkNo.png" alt
  2127. v-if="itemTool.tool.indexOf(1) == -1" />
  2128. <div class="checkDiv" v-else>
  2129. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2130. </div>
  2131. </div> -->
  2132. </div>
  2133. <!-- <div class="tool">
  2134. <div
  2135. class="whiteBIcon"
  2136. @click="addTools(2, itemTaskIndex, toolIndex)"
  2137. >
  2138. <img
  2139. src="../../../assets/icon/secondToolList/note.png"
  2140. alt
  2141. />
  2142. <div style="margin: 5px 0">便签</div>
  2143. </div>
  2144. <div
  2145. class="check"
  2146. @click="addTools(2, itemTaskIndex, toolIndex)"
  2147. >
  2148. <img
  2149. src="../../../assets/icon/checkNo.png"
  2150. alt
  2151. v-if="itemTool.tool.indexOf(2) == -1"
  2152. />
  2153. <div class="checkDiv" v-else>
  2154. <img
  2155. src="../../../assets/icon/checkedIs.png"
  2156. alt
  2157. /><span>已选择</span>
  2158. </div>
  2159. </div>
  2160. </div> -->
  2161. <!-- <div class="tool">
  2162. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2163. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2164. <div style="margin: 5px 0">协同文档</div>
  2165. </div>
  2166. <div
  2167. class="check"
  2168. @click="addTools(6, itemTaskIndex, toolIndex)"
  2169. >
  2170. <img
  2171. src="../../../assets/icon/checkNo.png"
  2172. alt
  2173. v-if="itemTool.tool.indexOf(6) == -1"
  2174. />
  2175. <div class="checkDiv" v-else>
  2176. <img
  2177. src="../../../assets/icon/checkedIs.png"
  2178. alt
  2179. /><span>已选择</span>
  2180. </div>
  2181. </div>
  2182. </div> -->
  2183. <div class="tool" :class="{
  2184. isToolChoose:
  2185. itemTool.tool.indexOf(52) != -1,
  2186. }" @click="
  2187. addTools(52, itemTaskIndex, toolIndex)
  2188. ">
  2189. <div class="whiteBIcon" @click.stop="
  2190. openTools(itemTaskIndex, 52, toolIndex)
  2191. ">
  2192. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2193. <div style="margin: 5px 0">文档</div>
  2194. </div>
  2195. <div class="noCTool">
  2196. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2197. </div>
  2198. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1">
  2199. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2200. </div>
  2201. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2202. <img src="../../../assets/icon/checkNo.png" alt
  2203. v-if="itemTool.tool.indexOf(52) == -1" />
  2204. <div class="checkDiv" v-else>
  2205. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2206. </div>
  2207. </div> -->
  2208. </div>
  2209. <div class="tool" :class="{
  2210. isToolChoose:
  2211. itemTool.tool.indexOf(3) != -1,
  2212. }" @click="
  2213. addTools(3, itemTaskIndex, toolIndex)
  2214. ">
  2215. <div class="whiteBIcon" @click.stop="
  2216. openTools(itemTaskIndex, 3, toolIndex)
  2217. ">
  2218. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2219. <div style="margin: 5px 0">思维导图</div>
  2220. </div>
  2221. <div class="noCTool">
  2222. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2223. </div>
  2224. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1">
  2225. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2226. </div>
  2227. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2228. <img src="../../../assets/icon/checkNo.png" alt
  2229. v-if="itemTool.tool.indexOf(3) == -1" />
  2230. <div class="checkDiv" v-else>
  2231. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2232. </div>
  2233. </div> -->
  2234. </div>
  2235. <div class="tool" :class="{
  2236. isToolChoose:
  2237. itemTool.tool.indexOf(48) != -1,
  2238. }" @click="
  2239. addTools(48, itemTaskIndex, toolIndex)
  2240. ">
  2241. <div class="whiteBIcon" @click.stop="
  2242. openTools(itemTaskIndex, 48, toolIndex)
  2243. ">
  2244. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2245. <div style="margin: 5px 0">表格</div>
  2246. </div>
  2247. <div class="noCTool">
  2248. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2249. </div>
  2250. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1">
  2251. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2252. </div>
  2253. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2254. <img src="../../../assets/icon/checkNo.png" alt
  2255. v-if="itemTool.tool.indexOf(48) == -1" />
  2256. <div class="checkDiv" v-else>
  2257. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2258. </div>
  2259. </div> -->
  2260. </div>
  2261. </div>
  2262. <div class="toolSort" v-if="itemTool.toolType == 6">
  2263. <div class="tool" :class="{
  2264. isToolChoose:
  2265. itemTool.tool.indexOf(49) != -1,
  2266. }" @click="
  2267. addTools(49, itemTaskIndex, toolIndex)
  2268. ">
  2269. <div class="whiteBIcon" @click.stop="
  2270. openTools(itemTaskIndex, 49, toolIndex)
  2271. ">
  2272. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2273. <div style="margin: 5px 0">学生分组</div>
  2274. </div>
  2275. <div class="noCTool">
  2276. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2277. </div>
  2278. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1">
  2279. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2280. </div>
  2281. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2282. <img src="../../../assets/icon/checkNo.png" alt
  2283. v-if="itemTool.tool.indexOf(49) == -1" />
  2284. <div class="checkDiv" v-else>
  2285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2286. </div>
  2287. </div> -->
  2288. </div>
  2289. </div>
  2290. <div class="toolSort" v-if="itemTool.toolType == 2">
  2291. <!-- <div class="tool">
  2292. <div
  2293. class="whiteBIcon"
  2294. @click="addTools(5, itemTaskIndex, toolIndex)"
  2295. >
  2296. <img
  2297. src="../../../assets/icon/thirdToolList/score.png"
  2298. alt
  2299. />
  2300. <div style="margin: 5px 0">量规评分</div>
  2301. </div>
  2302. <div
  2303. class="check"
  2304. @click="addTools(5, itemTaskIndex, toolIndex)"
  2305. >
  2306. <img
  2307. src="../../../assets/icon/checkNo.png"
  2308. alt
  2309. v-if="itemTool.tool.indexOf(5) == -1"
  2310. />
  2311. <img
  2312. src="../../../assets/icon/checkedIs.png"
  2313. alt
  2314. v-else
  2315. />
  2316. </div>
  2317. </div>-->
  2318. <div class="tool" :class="{
  2319. isToolChoose:
  2320. itemTool.tool.indexOf(4) != -1,
  2321. }" @click="
  2322. addTools(4, itemTaskIndex, toolIndex)
  2323. ">
  2324. <div class="whiteBIcon" @click.stop="
  2325. openTools(itemTaskIndex, 4, toolIndex)
  2326. ">
  2327. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2328. <div style="margin: 5px 0">问卷调查</div>
  2329. </div>
  2330. <div class="noCTool">
  2331. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2332. </div>
  2333. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1">
  2334. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2335. </div>
  2336. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2337. <img src="../../../assets/icon/checkNo.png" alt
  2338. v-if="itemTool.tool.indexOf(4) == -1" />
  2339. <div class="checkDiv" v-else>
  2340. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2341. </div>
  2342. </div> -->
  2343. </div>
  2344. <div class="tool" :class="{
  2345. isToolChoose:
  2346. itemTool.tool.indexOf(45) != -1,
  2347. }" @click="
  2348. addTools(45, itemTaskIndex, toolIndex)
  2349. ">
  2350. <div class="whiteBIcon" @click="
  2351. openTools(itemTaskIndex, 45, toolIndex)
  2352. ">
  2353. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2354. <div style="margin: 5px 0">选择题</div>
  2355. </div>
  2356. <div class="noCTool">
  2357. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2358. </div>
  2359. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1">
  2360. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2361. </div>
  2362. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2363. <img src="../../../assets/icon/checkNo.png" alt
  2364. v-if="itemTool.tool.indexOf(45) == -1" />
  2365. <div class="checkDiv" v-else>
  2366. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2367. </div>
  2368. </div> -->
  2369. </div>
  2370. <div class="tool" :class="{
  2371. isToolChoose:
  2372. itemTool.tool.indexOf(15) != -1,
  2373. }" @click="
  2374. addTools(15, itemTaskIndex, toolIndex)
  2375. ">
  2376. <div class="whiteBIcon" @click.stop="
  2377. openTools(itemTaskIndex, 15, toolIndex)
  2378. ">
  2379. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2380. <div style="margin: 5px 0">问答</div>
  2381. </div>
  2382. <div class="noCTool">
  2383. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2384. </div>
  2385. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1">
  2386. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2387. </div>
  2388. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2389. <img src="../../../assets/icon/checkNo.png" alt
  2390. v-if="itemTool.tool.indexOf(15) == -1" />
  2391. <div class="checkDiv" v-else>
  2392. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2393. </div>
  2394. </div> -->
  2395. </div>
  2396. <div class="tool" :class="{
  2397. isToolChoose:
  2398. itemTool.tool.indexOf(16) != -1,
  2399. }" @click="
  2400. addTools(16, itemTaskIndex, toolIndex)
  2401. ">
  2402. <div class="whiteBIcon" @click.stop="
  2403. addTools(16, itemTaskIndex, toolIndex)
  2404. ">
  2405. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2406. <div style="margin: 5px 0">作业提交</div>
  2407. </div>
  2408. <div class="noCTool">
  2409. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2410. </div>
  2411. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1">
  2412. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2413. </div>
  2414. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2415. <img src="../../../assets/icon/checkNo.png" alt
  2416. v-if="itemTool.tool.indexOf(16) == -1" />
  2417. <div class="checkDiv" v-else>
  2418. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2419. </div>
  2420. </div> -->
  2421. </div>
  2422. <div class="tool" :class="{
  2423. isToolChoose:
  2424. itemTool.tool.indexOf(50) != -1,
  2425. }" @click="
  2426. addTools(50, itemTaskIndex, toolIndex)
  2427. ">
  2428. <div class="whiteBIcon" @click.stop="
  2429. addTools(50, itemTaskIndex, toolIndex)
  2430. ">
  2431. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2432. <div style="margin: 5px 0">批量上传</div>
  2433. </div>
  2434. <div class="noCTool">
  2435. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2436. </div>
  2437. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1">
  2438. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2439. </div>
  2440. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2441. <img src="../../../assets/icon/checkNo.png" alt
  2442. v-if="itemTool.tool.indexOf(50) == -1" />
  2443. <div class="checkDiv" v-else>
  2444. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2445. </div>
  2446. </div> -->
  2447. </div>
  2448. <!-- <div class="tool">
  2449. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2450. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2451. <div style="margin: 5px 0">个人评价</div>
  2452. </div>
  2453. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2454. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2455. <div class="checkDiv" v-else>
  2456. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2457. </div>
  2458. </div>
  2459. </div> -->
  2460. <div class="tool" :class="{
  2461. isToolChoose:
  2462. itemTool.tool.indexOf(41) != -1,
  2463. }" @click="
  2464. addTools(41, itemTaskIndex, toolIndex)
  2465. ">
  2466. <div class="whiteBIcon" @click.stop="
  2467. openTools(itemTaskIndex, 41, toolIndex)
  2468. ">
  2469. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2470. <div style="margin: 5px 0">选择匹配</div>
  2471. </div>
  2472. <div class="noCTool">
  2473. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2474. </div>
  2475. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1">
  2476. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2477. </div>
  2478. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2479. <img src="../../../assets/icon/checkNo.png" alt
  2480. v-if="itemTool.tool.indexOf(41) == -1" />
  2481. <div class="checkDiv" v-else>
  2482. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2483. </div>
  2484. </div> -->
  2485. </div>
  2486. <div class="tool" :class="{
  2487. isToolChoose:
  2488. itemTool.tool.indexOf(47) != -1,
  2489. }" @click="
  2490. addTools(47, itemTaskIndex, toolIndex)
  2491. ">
  2492. <div class="whiteBIcon" @click.stop="
  2493. openTools(itemTaskIndex, 47, toolIndex)
  2494. ">
  2495. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2496. <div style="margin: 5px 0">排序</div>
  2497. </div>
  2498. <div class="noCTool">
  2499. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2500. </div>
  2501. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1">
  2502. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2503. </div>
  2504. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2505. <img src="../../../assets/icon/checkNo.png" alt
  2506. v-if="itemTool.tool.indexOf(47) == -1" />
  2507. <div class="checkDiv" v-else>
  2508. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2509. </div>
  2510. </div> -->
  2511. </div>
  2512. <!-- <div class="tool">
  2513. <div
  2514. class="whiteBIcon"
  2515. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2516. >
  2517. <img
  2518. src="../../../assets/icon/thirdToolList/mp3.png"
  2519. alt
  2520. />
  2521. <div style="margin: 5px 0">上传音频</div>
  2522. </div>
  2523. <div
  2524. class="check"
  2525. @click="addTools(42, itemTaskIndex, toolIndex)"
  2526. >
  2527. <img
  2528. src="../../../assets/icon/checkNo.png"
  2529. alt
  2530. v-if="itemTool.tool.indexOf(42) == -1"
  2531. />
  2532. <img
  2533. src="../../../assets/icon/checkedIs.png"
  2534. alt
  2535. v-else
  2536. />
  2537. </div>
  2538. </div> -->
  2539. </div>
  2540. <div class="toolSort" v-if="itemTool.toolType == 3">
  2541. <div class="tool" :class="{
  2542. isToolChoose:
  2543. itemTool.tool.indexOf(18) != -1,
  2544. }" @click="
  2545. addTools(18, itemTaskIndex, toolIndex)
  2546. ">
  2547. <div class="whiteBIcon" @click.stop="
  2548. addTools(18, itemTaskIndex, toolIndex)
  2549. ">
  2550. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2551. <div style="margin: 5px 0">训练平台</div>
  2552. </div>
  2553. <div class="noCTool">
  2554. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2555. </div>
  2556. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1">
  2557. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2558. </div>
  2559. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2560. <img src="../../../assets/icon/checkNo.png" alt
  2561. v-if="itemTool.tool.indexOf(18) == -1" />
  2562. <div class="checkDiv" v-else>
  2563. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2564. </div>
  2565. </div> -->
  2566. </div>
  2567. <div class="tool" :class="{
  2568. isToolChoose:
  2569. itemTool.tool.indexOf(21) != -1,
  2570. }" @click="
  2571. addTools(21, itemTaskIndex, toolIndex)
  2572. ">
  2573. <div class="whiteBIcon" @click.stop="
  2574. addTools(21, itemTaskIndex, toolIndex)
  2575. ">
  2576. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2577. <div style="margin: 5px 0">
  2578. AIoT Blockly
  2579. </div>
  2580. </div>
  2581. <div class="noCTool">
  2582. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2583. </div>
  2584. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1">
  2585. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2586. </div>
  2587. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2588. <img src="../../../assets/icon/checkNo.png" alt
  2589. v-if="itemTool.tool.indexOf(21) == -1" />
  2590. <div class="checkDiv" v-else>
  2591. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2592. </div>
  2593. </div> -->
  2594. </div>
  2595. <!-- <div class="tool">
  2596. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2597. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2598. <div style="margin: 5px 0">AI体验</div>
  2599. </div>
  2600. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2601. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2602. <div class="checkDiv" v-else>
  2603. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2604. </div>
  2605. </div>
  2606. </div> -->
  2607. <div class="tool" :class="{
  2608. isToolChoose:
  2609. itemTool.tool.indexOf(23) != -1,
  2610. }" @click="
  2611. addTools(23, itemTaskIndex, toolIndex)
  2612. ">
  2613. <div class="whiteBIcon" @click.stop="
  2614. addTools(23, itemTaskIndex, toolIndex)
  2615. ">
  2616. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2617. <div style="margin: 5px 0">AI Python</div>
  2618. </div>
  2619. <div class="noCTool">
  2620. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2621. </div>
  2622. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1">
  2623. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2624. </div>
  2625. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2626. <img src="../../../assets/icon/checkNo.png" alt
  2627. v-if="itemTool.tool.indexOf(23) == -1" />
  2628. <div class="checkDiv" v-else>
  2629. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2630. </div>
  2631. </div> -->
  2632. </div>
  2633. <div class="tool" :class="{
  2634. isToolChoose:
  2635. itemTool.tool.indexOf(24) != -1,
  2636. }" @click="
  2637. addTools(24, itemTaskIndex, toolIndex)
  2638. ">
  2639. <div class="whiteBIcon" @click.stop="
  2640. addTools(24, itemTaskIndex, toolIndex)
  2641. ">
  2642. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2643. <div style="margin: 5px 0">
  2644. AI Blockly
  2645. </div>
  2646. </div>
  2647. <div class="noCTool">
  2648. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2649. </div>
  2650. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1">
  2651. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2652. </div>
  2653. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2654. <img src="../../../assets/icon/checkNo.png" alt
  2655. v-if="itemTool.tool.indexOf(24) == -1" />
  2656. <div class="checkDiv" v-else>
  2657. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2658. </div>
  2659. </div> -->
  2660. </div>
  2661. <div class="tool" :class="{
  2662. isToolChoose:
  2663. itemTool.tool.indexOf(32) != -1,
  2664. }" @click="
  2665. addTools(32, itemTaskIndex, toolIndex)
  2666. ">
  2667. <div class="whiteBIcon" @click.stop="
  2668. addTools(32, itemTaskIndex, toolIndex)
  2669. ">
  2670. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2671. <div style="margin: 5px 0">源码编辑</div>
  2672. </div>
  2673. <div class="noCTool">
  2674. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2675. </div>
  2676. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1">
  2677. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2678. </div>
  2679. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2680. <img src="../../../assets/icon/checkNo.png" alt
  2681. v-if="itemTool.tool.indexOf(32) == -1" />
  2682. <div class="checkDiv" v-else>
  2683. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2684. </div>
  2685. </div> -->
  2686. </div>
  2687. <div class="tool" :class="{
  2688. isToolChoose:
  2689. itemTool.tool.indexOf(57) != -1,
  2690. }" @click="
  2691. addTools(57, itemTaskIndex, toolIndex)
  2692. ">
  2693. <div class="whiteBIcon" @click.stop="
  2694. openTools(itemTaskIndex, 57, toolIndex)
  2695. ">
  2696. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2697. <div style="margin: 5px 0">CocoPi</div>
  2698. </div>
  2699. <div class="noCTool">
  2700. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2701. </div>
  2702. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1">
  2703. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2704. </div>
  2705. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2706. <img src="../../../assets/icon/checkNo.png" alt
  2707. v-if="itemTool.tool.indexOf(57) == -1" />
  2708. <div class="checkDiv" v-else>
  2709. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2710. </div>
  2711. </div> -->
  2712. </div>
  2713. <div class="tool" :class="{
  2714. isToolChoose:
  2715. itemTool.tool.indexOf(63) != -1,
  2716. }" @click="
  2717. addTools(63, itemTaskIndex, toolIndex)
  2718. ">
  2719. <div class="whiteBIcon" @click.stop="
  2720. addTools(63, itemTaskIndex, toolIndex)
  2721. ">
  2722. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2723. <div style="margin: 5px 0">海龟编程</div>
  2724. </div>
  2725. <div class="noCTool">
  2726. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2727. </div>
  2728. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1">
  2729. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2730. </div>
  2731. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2732. <img src="../../../assets/icon/checkNo.png" alt
  2733. v-if="itemTool.tool.indexOf(63) == -1" />
  2734. <div class="checkDiv" v-else>
  2735. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2736. </div>
  2737. </div> -->
  2738. </div>
  2739. <div class="tool" :class="{
  2740. isToolChoose:
  2741. itemTool.tool.indexOf(71) != -1,
  2742. }" @click="
  2743. addTools(71, itemTaskIndex, toolIndex)
  2744. ">
  2745. <div class="whiteBIcon" @click.stop="
  2746. addTools(71, itemTaskIndex, toolIndex)
  2747. ">
  2748. <img src="../../../assets/icon/fourthToolList/chatgpt.png" alt />
  2749. <div style="margin: 5px 0">AI智能体</div>
  2750. </div>
  2751. <div class="noCTool">
  2752. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2753. </div>
  2754. <div class="isCTool" v-if="itemTool.tool.indexOf(71) != -1">
  2755. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2756. </div>
  2757. </div>
  2758. </div>
  2759. <div class="toolSort" v-if="itemTool.toolType == 7">
  2760. <div class="tool" :class="{
  2761. isToolChoose:
  2762. itemTool.tool.indexOf(40) != -1,
  2763. }" @click.stop="
  2764. addTools(40, itemTaskIndex, toolIndex)
  2765. ">
  2766. <div class="whiteBIcon" @click.stop="
  2767. openTools(itemTaskIndex, 40, toolIndex)
  2768. ">
  2769. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2770. <div style="margin: 5px 0">个人评价</div>
  2771. </div>
  2772. <div class="noCTool">
  2773. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2774. </div>
  2775. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1">
  2776. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2777. </div>
  2778. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2779. <img src="../../../assets/icon/checkNo.png" alt
  2780. v-if="itemTool.tool.indexOf(40) == -1" />
  2781. <div class="checkDiv" v-else>
  2782. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2783. </div>
  2784. </div> -->
  2785. </div>
  2786. </div>
  2787. <div class="toolSort" v-if="itemTool.toolType == 5">
  2788. <div class="tool" :class="{
  2789. isToolChoose:
  2790. itemTool.tool.indexOf(28) != -1,
  2791. }" @click="
  2792. addTools(28, itemTaskIndex, toolIndex)
  2793. ">
  2794. <div class="whiteBIcon" @click.stop="
  2795. addTools(28, itemTaskIndex, toolIndex)
  2796. ">
  2797. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2798. <div style="margin: 5px 0">翻译</div>
  2799. </div>
  2800. <div class="noCTool">
  2801. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2802. </div>
  2803. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1">
  2804. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2805. </div>
  2806. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2807. <img src="../../../assets/icon/checkNo.png" alt
  2808. v-if="itemTool.tool.indexOf(28) == -1" />
  2809. <div class="checkDiv" v-else>
  2810. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2811. </div>
  2812. </div> -->
  2813. </div>
  2814. <div class="tool" :class="{
  2815. isToolChoose:
  2816. itemTool.tool.indexOf(31) != -1,
  2817. }" @click="
  2818. addTools(31, itemTaskIndex, toolIndex)
  2819. ">
  2820. <div class="whiteBIcon" @click.stop="
  2821. addTools(31, itemTaskIndex, toolIndex)
  2822. ">
  2823. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2824. <div style="margin: 5px 0">数字画板</div>
  2825. </div>
  2826. <div class="noCTool">
  2827. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2828. </div>
  2829. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1">
  2830. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2831. </div>
  2832. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2833. <img src="../../../assets/icon/checkNo.png" alt
  2834. v-if="itemTool.tool.indexOf(31) == -1" />
  2835. <div class="checkDiv" v-else>
  2836. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2837. </div>
  2838. </div> -->
  2839. </div>
  2840. <div class="tool" :class="{
  2841. isToolChoose:
  2842. itemTool.tool.indexOf(39) != -1,
  2843. }" @click="
  2844. addTools(39, itemTaskIndex, toolIndex)
  2845. ">
  2846. <div class="whiteBIcon" @click.stop="
  2847. addTools(39, itemTaskIndex, toolIndex)
  2848. ">
  2849. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2850. <div style="margin: 5px 0">GeoGebra</div>
  2851. </div>
  2852. <div class="noCTool">
  2853. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2854. </div>
  2855. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1">
  2856. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2857. </div>
  2858. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2859. <img src="../../../assets/icon/checkNo.png" alt
  2860. v-if="itemTool.tool.indexOf(39) == -1" />
  2861. <div class="checkDiv" v-else>
  2862. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2863. </div>
  2864. </div> -->
  2865. </div>
  2866. <div class="tool" :class="{
  2867. isToolChoose:
  2868. itemTool.tool.indexOf(66) != -1,
  2869. }" @click="
  2870. addTools(66, itemTaskIndex, toolIndex)
  2871. ">
  2872. <div class="whiteBIcon" @click.stop="
  2873. addTools(66, itemTaskIndex, toolIndex)
  2874. ">
  2875. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  2876. <div style="margin: 5px 0">公式编辑</div>
  2877. </div>
  2878. <div class="noCTool">
  2879. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2880. </div>
  2881. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1">
  2882. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2883. </div>
  2884. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2885. <img src="../../../assets/icon/checkNo.png" alt
  2886. v-if="itemTool.tool.indexOf(66) == -1" />
  2887. <div class="checkDiv" v-else>
  2888. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2889. </div>
  2890. </div> -->
  2891. </div>
  2892. <!-- <div class="tool">
  2893. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2894. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  2895. <div style="margin: 5px 0">分子结构</div>
  2896. </div>
  2897. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2898. <img src="../../../assets/icon/checkNo.png" alt
  2899. v-if="itemTool.tool.indexOf(67) == -1" />
  2900. <div class="checkDiv" v-else>
  2901. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2902. </div>
  2903. </div>
  2904. </div> -->
  2905. <div class="tool" :class="{
  2906. isToolChoose:
  2907. itemTool.tool.indexOf(68) != -1,
  2908. }" @click="
  2909. addTools(68, itemTaskIndex, toolIndex)
  2910. ">
  2911. <div class="whiteBIcon" @click.stop="
  2912. addTools(68, itemTaskIndex, toolIndex)
  2913. ">
  2914. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  2915. <div style="margin: 5px 0">时间轴</div>
  2916. </div>
  2917. <div class="noCTool">
  2918. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2919. </div>
  2920. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1">
  2921. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2922. </div>
  2923. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2924. <img src="../../../assets/icon/checkNo.png" alt
  2925. v-if="itemTool.tool.indexOf(68) == -1" />
  2926. <div class="checkDiv" v-else>
  2927. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2928. </div>
  2929. </div> -->
  2930. </div>
  2931. <div class="tool" :class="{
  2932. isToolChoose:
  2933. itemTool.tool.indexOf(69) != -1,
  2934. }" @click="
  2935. addTools(69, itemTaskIndex, toolIndex)
  2936. ">
  2937. <div class="whiteBIcon" @click.stop="
  2938. openTools(itemTaskIndex, 69, toolIndex)
  2939. ">
  2940. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  2941. <div style="margin: 5px 0">英语写作</div>
  2942. </div>
  2943. <div class="noCTool">
  2944. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2945. </div>
  2946. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1">
  2947. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2948. </div>
  2949. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2950. <img src="../../../assets/icon/checkNo.png" alt
  2951. v-if="itemTool.tool.indexOf(4) == -1" />
  2952. <div class="checkDiv" v-else>
  2953. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2954. </div>
  2955. </div> -->
  2956. </div>
  2957. <div class="tool" :class="{
  2958. isToolChoose:
  2959. itemTool.tool.indexOf(70) != -1,
  2960. }" @click="
  2961. addTools(70, itemTaskIndex, toolIndex)
  2962. ">
  2963. <div class="whiteBIcon" @click.stop="
  2964. openTools(itemTaskIndex, 70, toolIndex)
  2965. ">
  2966. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  2967. <div style="margin: 5px 0">英语口语</div>
  2968. </div>
  2969. <div class="noCTool">
  2970. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2971. </div>
  2972. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1">
  2973. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2974. </div>
  2975. </div>
  2976. <!-- <div class="tool">
  2977. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2978. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2979. <div style="margin: 5px 0">翻译</div>
  2980. </div>
  2981. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2982. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2983. <div class="checkDiv" v-else>
  2984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div class="tool">
  2989. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2990. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  2991. <div style="margin: 5px 0">魔盒识字</div>
  2992. </div>
  2993. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2994. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2995. <div class="checkDiv" v-else>
  2996. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. <div class="tool">
  3001. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3002. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3003. <div style="margin: 5px 0">24点</div>
  3004. </div>
  3005. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3006. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3007. <div class="checkDiv" v-else>
  3008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3009. </div>
  3010. </div>
  3011. </div>
  3012. <div class="tool">
  3013. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3014. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3015. <div style="margin: 5px 0">数学画板</div>
  3016. </div>
  3017. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3018. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3019. <div class="checkDiv" v-else>
  3020. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3021. </div>
  3022. </div>
  3023. </div>
  3024. <div class="tool">
  3025. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3026. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3027. <div style="margin: 5px 0">GeoGebra</div>
  3028. </div>
  3029. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3030. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3031. <div class="checkDiv" v-else>
  3032. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3033. </div>
  3034. </div>
  3035. </div>
  3036. <div class="tool">
  3037. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3038. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3039. <div style="margin: 5px 0">模拟驾驶</div>
  3040. </div>
  3041. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3042. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3043. <div class="checkDiv" v-else>
  3044. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3045. </div>
  3046. </div>
  3047. </div>
  3048. <div class="tool">
  3049. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3050. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3051. <div style="margin: 5px 0">路径搜索</div>
  3052. </div>
  3053. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3054. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3055. <div class="checkDiv" v-else>
  3056. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3057. </div>
  3058. </div>
  3059. </div>
  3060. <div class="tool">
  3061. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3062. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3063. <div style="margin: 5px 0">深度学习</div>
  3064. </div>
  3065. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3066. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3067. <div class="checkDiv" v-else>
  3068. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3069. </div>
  3070. </div>
  3071. </div>
  3072. <div class="tool">
  3073. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3074. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3075. <div style="margin: 5px 0">全历史</div>
  3076. </div>
  3077. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3078. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3079. <div class="checkDiv" v-else>
  3080. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. </div>
  3085. <div class="toolSort" v-if="itemTool.toolType == 4">
  3086. <div class="tool">
  3087. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3088. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3089. <div style="margin: 5px 0">课程设计</div>
  3090. </div>
  3091. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3092. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3093. <div class="checkDiv" v-else>
  3094. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3095. </div>
  3096. </div>
  3097. </div>
  3098. <div class="tool">
  3099. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3100. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3101. <div style="margin: 5px 0">目标管理</div>
  3102. </div>
  3103. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3104. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3105. <div class="checkDiv" v-else>
  3106. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3107. </div>
  3108. </div>
  3109. </div> -->
  3110. <!-- <div class="tool">
  3111. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3112. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3113. <div style="margin: 5px 0">汉字宫</div>
  3114. </div>
  3115. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3116. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3117. <div class="checkDiv" v-else>
  3118. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3119. </div>
  3120. </div>
  3121. </div> -->
  3122. </div>
  3123. </div>
  3124. <!-- v-show="!itemTool.isFold3" -->
  3125. <div class="op_tool_box">
  3126. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述"
  3127. class="binfo_input" style="
  3128. margin: 0 0 20px 0;
  3129. width: 100% !important;
  3130. " v-model="itemTool.toolDetail"></textarea>
  3131. <div class="op_box">
  3132. <div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
  3133. <div class="r_pub_button_op">智能优化</div>
  3134. </div>
  3135. </div>
  3136. </div>
  3137. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3138. <div class="addToolImg">
  3139. <img src="../../../assets/icon/add.png" alt />
  3140. </div>
  3141. <div>添加工具</div>
  3142. </div> -->
  3143. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="
  3144. margin: 0 auto;
  3145. padding: 0 30px;
  3146. height: 45px;
  3147. ">
  3148. 添加工具
  3149. </button>
  3150. </div>
  3151. </div>
  3152. <div v-else-if="
  3153. unitJson[unitIndex].easy == 2 ||
  3154. unitJson[unitIndex].easy == 4
  3155. " class="toolChoose" style="padding: 0 0 40px">
  3156. <div class="tools">
  3157. <div class="leftTools" style="width: 100%" v-for="(
  3158. itemTool, toolIndex
  3159. ) in itemTask.toolChoose" :key="toolIndex">
  3160. <div>
  3161. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  3162. margin: 0 0 20px 0;
  3163. width: 100% !important;
  3164. " v-model="itemTool.toolDetail"></textarea>
  3165. </div>
  3166. <div style="
  3167. display: flex;
  3168. flex-direction: row;
  3169. align-items: baseline;
  3170. flex-wrap: nowrap;
  3171. justify-content: flex-start;
  3172. position: relative;
  3173. ">
  3174. <div style="margin-right: 20px; font-weight: bold"
  3175. :id="'gj' + itemTaskIndex + '' + toolIndex">
  3176. 工具 {{ toolIndex + 1 }} :
  3177. </div>
  3178. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3179. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  3180. </div>
  3181. <div style="min-height: 163px">
  3182. <div class="toolSort">
  3183. <div class="tool">
  3184. <div class="whiteBIcon" @click="
  3185. openTools(itemTaskIndex, 1, toolIndex)
  3186. ">
  3187. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3188. <div style="margin: 5px 0">电子白板</div>
  3189. </div>
  3190. <div class="check" @click="
  3191. addTools(1, itemTaskIndex, toolIndex)
  3192. ">
  3193. <img src="../../../assets/icon/checkNo.png" alt
  3194. v-if="itemTool.tool.indexOf(1) == -1" />
  3195. <div class="checkDiv" v-else>
  3196. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div class="tool">
  3201. <div class="whiteBIcon" @click="
  3202. openTools(itemTaskIndex, 52, toolIndex)
  3203. ">
  3204. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3205. <div style="margin: 5px 0">文档</div>
  3206. </div>
  3207. <div class="check" @click="
  3208. addTools(52, itemTaskIndex, toolIndex)
  3209. ">
  3210. <img src="../../../assets/icon/checkNo.png" alt
  3211. v-if="itemTool.tool.indexOf(52) == -1" />
  3212. <div class="checkDiv" v-else>
  3213. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div class="tool">
  3218. <div class="whiteBIcon" @click="
  3219. openTools(itemTaskIndex, 3, toolIndex)
  3220. ">
  3221. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3222. <div style="margin: 5px 0">思维导图</div>
  3223. </div>
  3224. <div class="check" @click="
  3225. addTools(3, itemTaskIndex, toolIndex)
  3226. ">
  3227. <img src="../../../assets/icon/checkNo.png" alt
  3228. v-if="itemTool.tool.indexOf(3) == -1" />
  3229. <div class="checkDiv" v-else>
  3230. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3231. </div>
  3232. </div>
  3233. </div>
  3234. <div class="tool">
  3235. <div class="whiteBIcon" @click="
  3236. openTools(itemTaskIndex, 4, toolIndex)
  3237. ">
  3238. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3239. <div style="margin: 5px 0">问卷调查</div>
  3240. </div>
  3241. <div class="check" @click="
  3242. addTools(4, itemTaskIndex, toolIndex)
  3243. ">
  3244. <img src="../../../assets/icon/checkNo.png" alt
  3245. v-if="itemTool.tool.indexOf(4) == -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="
  3253. openTools(itemTaskIndex, 45, toolIndex)
  3254. ">
  3255. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3256. <div style="margin: 5px 0">选择题</div>
  3257. </div>
  3258. <div class="check" @click="
  3259. addTools(45, itemTaskIndex, toolIndex)
  3260. ">
  3261. <img src="../../../assets/icon/checkNo.png" alt
  3262. v-if="itemTool.tool.indexOf(45) == -1" />
  3263. <div class="checkDiv" v-else>
  3264. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3265. </div>
  3266. </div>
  3267. </div>
  3268. <div class="tool">
  3269. <div class="whiteBIcon" @click="
  3270. openTools(itemTaskIndex, 15, toolIndex)
  3271. ">
  3272. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3273. <div style="margin: 5px 0">问答</div>
  3274. </div>
  3275. <div class="check" @click="
  3276. addTools(15, itemTaskIndex, toolIndex)
  3277. ">
  3278. <img src="../../../assets/icon/checkNo.png" alt
  3279. v-if="itemTool.tool.indexOf(15) == -1" />
  3280. <div class="checkDiv" v-else>
  3281. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3282. </div>
  3283. </div>
  3284. </div>
  3285. <div class="tool">
  3286. <div class="whiteBIcon" @click="
  3287. addTools(16, itemTaskIndex, toolIndex)
  3288. ">
  3289. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3290. <div style="margin: 5px 0">作业提交</div>
  3291. </div>
  3292. <div class="check" @click="
  3293. addTools(16, itemTaskIndex, toolIndex)
  3294. ">
  3295. <img src="../../../assets/icon/checkNo.png" alt
  3296. v-if="itemTool.tool.indexOf(16) == -1" />
  3297. <div class="checkDiv" v-else>
  3298. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3299. </div>
  3300. </div>
  3301. </div>
  3302. <div class="tool">
  3303. <div class="whiteBIcon" @click="
  3304. openTools(itemTaskIndex, 50, toolIndex)
  3305. ">
  3306. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3307. <div style="margin: 5px 0">批量上传</div>
  3308. </div>
  3309. <div class="check" @click="
  3310. addTools(50, itemTaskIndex, toolIndex)
  3311. ">
  3312. <img src="../../../assets/icon/checkNo.png" alt
  3313. v-if="itemTool.tool.indexOf(50) == -1" />
  3314. <div class="checkDiv" v-else>
  3315. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. <div class="tool">
  3320. <div class="whiteBIcon" @click="
  3321. openTools(itemTaskIndex, 41, toolIndex)
  3322. ">
  3323. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3324. <div style="margin: 5px 0">选择匹配</div>
  3325. </div>
  3326. <div class="check" @click="
  3327. addTools(41, itemTaskIndex, toolIndex)
  3328. ">
  3329. <img src="../../../assets/icon/checkNo.png" alt
  3330. v-if="itemTool.tool.indexOf(41) == -1" />
  3331. <div class="checkDiv" v-else>
  3332. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. <div class="tool">
  3337. <div class="whiteBIcon" @click="
  3338. openTools(itemTaskIndex, 47, toolIndex)
  3339. ">
  3340. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3341. <div style="margin: 5px 0">排序</div>
  3342. </div>
  3343. <div class="check" @click="
  3344. addTools(47, itemTaskIndex, toolIndex)
  3345. ">
  3346. <img src="../../../assets/icon/checkNo.png" alt
  3347. v-if="itemTool.tool.indexOf(47) == -1" />
  3348. <div class="checkDiv" v-else>
  3349. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3350. </div>
  3351. </div>
  3352. </div>
  3353. <div class="tool">
  3354. <div class="whiteBIcon" @click="
  3355. openTools(itemTaskIndex, 48, toolIndex)
  3356. ">
  3357. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3358. <div style="margin: 5px 0">表格</div>
  3359. </div>
  3360. <div class="check" @click="
  3361. addTools(48, itemTaskIndex, toolIndex)
  3362. ">
  3363. <img src="../../../assets/icon/checkNo.png" alt
  3364. v-if="itemTool.tool.indexOf(48) == -1" />
  3365. <div class="checkDiv" v-else>
  3366. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3367. </div>
  3368. </div>
  3369. </div>
  3370. </div>
  3371. </div>
  3372. </div>
  3373. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3374. <div class="addToolImg">
  3375. <img src="../../../assets/icon/add.png" alt />
  3376. </div>
  3377. <div>添加工具</div>
  3378. </div> -->
  3379. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  3380. style="margin: 35px auto 20px">
  3381. 添加工具
  3382. </button>
  3383. </div>
  3384. </div>
  3385. <div v-else-if="
  3386. unitJson[unitIndex].easy == 1 ||
  3387. (unitJson[unitIndex].easy == 5 &&
  3388. itemTask.taskType == 2)
  3389. " class="toolChoose" style="padding: 0 0 40px">
  3390. <div class="tools">
  3391. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0" v-for="(
  3392. itemTool, toolIndex
  3393. ) in itemTask.toolChoose" :key="toolIndex">
  3394. <div style="min-height: 163px">
  3395. <div class="toolSort">
  3396. <div class="tool">
  3397. <div class="whiteBIcon" @click="
  3398. openTools(itemTaskIndex, 50, toolIndex)
  3399. ">
  3400. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3401. <div style="margin: 5px 0">批量上传</div>
  3402. </div>
  3403. <div class="check" @click="
  3404. addTools(50, itemTaskIndex, toolIndex)
  3405. ">
  3406. <img src="../../../assets/icon/checkNo.png" alt
  3407. v-if="itemTool.tool.indexOf(50) == -1" />
  3408. <div class="checkDiv" v-else>
  3409. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3410. </div>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. </div>
  3415. </div>
  3416. </div>
  3417. </div>
  3418. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3419. <div class="elist_title">
  3420. <div style="
  3421. display: flex;
  3422. flex-direction: row;
  3423. align-items: center;
  3424. margin: 20px 0;
  3425. ">
  3426. <div class="lineTitle clineTitle">评价设置</div>
  3427. <div class="r_pub_button_op" style="margin-left:auto;">智能优化</div>
  3428. <!-- <div class="line" style="width: 90%"></div> -->
  3429. </div>
  3430. </div>
  3431. <div class="mbCss">
  3432. <div class="pjCss" :style="{
  3433. width: itemTask.isEvaFold
  3434. ? 'calc(100% - 55%)'
  3435. : 'calc(100% - 120px)',
  3436. }">
  3437. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3438. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3439. <span>评价维度:</span>
  3440. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  3441. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价维度" />
  3442. <!-- </el-tooltip> -->
  3443. <!-- <span>评星等级:</span>
  3444. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  3445. disabled></el-rate> -->
  3446. <div class="remove" @click="
  3447. deletEList(
  3448. unitIndex,
  3449. itemTaskIndex,
  3450. eIndex
  3451. )
  3452. "></div>
  3453. <div class="elist_inptu_text">
  3454. <span>维度描述:</span>
  3455. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  3456. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写维度描述" />
  3457. <!-- </el-tooltip> -->
  3458. </div>
  3459. <div class="elist_inptu_text" v-if="evalua">
  3460. <span>目标:</span>
  3461. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  3462. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3463. @change="forceUpdate()">
  3464. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3465. :value="e.name">
  3466. </el-option>
  3467. </el-select> -->
  3468. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3469. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3470. </div>
  3471. </div>
  3472. </div>
  3473. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  3474. style="margin: 35px 35px 0 0">
  3475. <div class="addToolImg">
  3476. <img src="../../../assets/icon/add.png" alt />
  3477. </div>
  3478. <div>添加</div>
  3479. </div> -->
  3480. <div class="eva_btn_box">
  3481. <div class="eva_btn_left_box">
  3482. <button class="c_pub_button_add pub_btn_eval_img"
  3483. @click="addEList(unitIndex, itemTaskIndex)">
  3484. 添加
  3485. </button>
  3486. <button class="c_pub_button_add pub_btn_eval_source_img"
  3487. @click="openEList(unitIndex, itemTaskIndex)">
  3488. 资源
  3489. </button>
  3490. </div>
  3491. <button class="c_pub_button_add" @click="addCET(unitIndex, itemTaskIndex)"
  3492. v-if="itemTask.eList && itemTask.eList.length">
  3493. 添加资源模板
  3494. </button>
  3495. </div>
  3496. </div>
  3497. <div v-if="evalua" style="
  3498. border: 1px solid #e5e5e5;
  3499. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3500. " :style="{
  3501. width: itemTask.isEvaFold ? '55%' : '116px',
  3502. }" class="evaCss">
  3503. <!-- <div class="e_add_top">
  3504. <div class="e_add_title">
  3505. <span>当前使用目标管理</span>
  3506. <span>{{ eTitle }}</span>
  3507. <img src="../../../assets/line.png" class="cru_line" style="
  3508. width: 125px;
  3509. height: 20px;
  3510. bottom: -10px;
  3511. left: 155px;
  3512. " />
  3513. </div>
  3514. </div> -->
  3515. <div class="e_add_content" style="width: 100%">
  3516. <div class="e_add_list_pbox" style="width: 100%">
  3517. <div class="e_add_list_pbox_title">
  3518. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  3519. <div class="type_content" v-if="itemTask.isEvaFold">
  3520. <span :class="{ active: typeMode == 1 }"
  3521. @click="OtherMb(1, itemTaskIndex)">目标树</span>
  3522. <span :class="{ active: typeMode == 2 }"
  3523. @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  3524. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  3525. </div>
  3526. <div v-if="itemTask.isEvaFold" class="show_taskD show" style="margin: 0 0 0 auto"
  3527. @click="foldEva(itemTaskIndex)">
  3528. <img src="../../../assets/icon/new/icon-slide.png" />收起目标
  3529. </div>
  3530. <div v-else style="margin: 0 0 0 auto" class="show_taskD"
  3531. @click="foldEva(itemTaskIndex)">
  3532. <img src="../../../assets/icon/new/icon-slide.png" />展开目标
  3533. </div>
  3534. </div>
  3535. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold"
  3536. style="min-height: 200px">
  3537. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3538. " v-if="typeMode == 1"></Mind>
  3539. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3540. </Sunburst>
  3541. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3542. v-if="typeMode == 3"></SeeBoard>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. <div class="funBlock" style="padding: 0">
  3550. <div class="fold" @click="fold(itemTaskIndex, $event)">
  3551. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }"></div>
  3552. <div>
  3553. {{
  3554. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  3555. }}
  3556. </div>
  3557. </div>
  3558. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3559. <div>展开</div>
  3560. <div class="arrow">
  3561. <img src="../../../assets/icon/expand.png" alt />
  3562. </div>
  3563. </div> -->
  3564. </div>
  3565. </div>
  3566. </div>
  3567. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3568. <!-- <div>
  3569. <img src="../../../../assets/icon/new/addStage.png" alt />
  3570. <span>添加任务</span>
  3571. </div> -->
  3572. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  3573. 添加任务
  3574. </button>
  3575. </div>
  3576. </div>
  3577. <div class="info_btnBox3">
  3578. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  3579. goTo(
  3580. '/course?userid=' +
  3581. userid +
  3582. '&oid=' +
  3583. oid +
  3584. '&org=' +
  3585. org +
  3586. '&role=' +
  3587. role
  3588. )
  3589. ">
  3590. 返回课程
  3591. </button>
  3592. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5"
  3593. @click="lastSteps" style="background: #dbdbdb">
  3594. {{ steps == 4 ? "返回课程" : "上一步" }}
  3595. </button>
  3596. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps" :class="{
  3597. pub_btn_next_img: steps != 3,
  3598. pub_btn_finish_img: steps == 3,
  3599. }">
  3600. {{ steps == 3 ? "确认上传" : "下一步" }}
  3601. </button>
  3602. </div>
  3603. </div>
  3604. </div>
  3605. </div>
  3606. </div>
  3607. <div style="
  3608. width: calc(100% - 20px);
  3609. background: rgb(255, 255, 255);
  3610. border-radius: 10px;
  3611. " v-if="steps == 4">
  3612. <div class="basic_box_success">
  3613. <div class="right_img">
  3614. <img src="../../../assets/icon/right.png" alt />
  3615. </div>
  3616. <div style="font-weight: bold">成功</div>
  3617. <!-- <div>您的课程编号</div>
  3618. <div class="number">{{ number }}</div>-->
  3619. <!-- <div class="success_button">
  3620. <div class="look_course" @click="isNoFinsh">
  3621. 邀请老师协同编辑
  3622. </div>
  3623. <div class="attend_others" @click="goCourse">预览课程</div>
  3624. </div> -->
  3625. </div>
  3626. </div>
  3627. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3628. @mouseleave="btnDisplay(false)" v-if="false">
  3629. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  3630. goTo(
  3631. '/course?userid=' +
  3632. userid +
  3633. '&oid=' +
  3634. oid +
  3635. '&org=' +
  3636. org +
  3637. '&role=' +
  3638. role
  3639. )
  3640. ">
  3641. 返回课程
  3642. </button>
  3643. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  3644. @click="lastSteps">
  3645. {{ steps == 4 ? "返回课程" : "上一步" }}
  3646. </button>
  3647. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps" :class="{
  3648. pub_btn_next_img: steps != 3,
  3649. pub_btn_finish_img: steps == 3,
  3650. }">
  3651. {{ steps == 3 ? "确认上传" : "下一步" }}
  3652. </button>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3658. class="dialog_diy2 customWidth">
  3659. <div>请复制该链接邀请协同编辑</div>
  3660. <div>http://www.boomyon.com/index-zhang.com</div>
  3661. <span slot="footer" class="dialog-footer">
  3662. <el-button type="primary">复制链接分享</el-button>
  3663. <el-button @click="dialogVisible = false">取消</el-button>
  3664. </span>
  3665. </el-dialog>
  3666. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true"
  3667. width="25%" :before-close="handleClose" class="dialog_diy2 customWidth">
  3668. <el-form>
  3669. <el-form-item label="文档标题">
  3670. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3671. </el-form-item>
  3672. <div>文档简介</div>
  3673. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3674. </el-form>
  3675. <span slot="footer" class="dialog-footer">
  3676. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3677. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3678. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3679. </span>
  3680. </el-dialog>
  3681. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3682. :before-close="handleClose" class="dialog_diy">
  3683. <el-form>
  3684. <el-form-item label="文档标题">
  3685. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3686. </el-form-item>
  3687. <div>文档内容</div>
  3688. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3689. </el-form>
  3690. <span slot="footer" class="dialog-footer">
  3691. <el-button @click="clearChoose">取 消</el-button>
  3692. <el-button type="primary" @click="wordNext()">确定</el-button>
  3693. </span>
  3694. </el-dialog>
  3695. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3696. :before-close="handleClose" class="dialog_diy">
  3697. <el-form>
  3698. <el-form-item label="文本标题">
  3699. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3700. placeholder="请输入文本标题..."></el-input>
  3701. </el-form-item>
  3702. <!-- <div>富文本内容</div> -->
  3703. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3704. </el-form>
  3705. <span slot="footer" class="dialog-footer">
  3706. <el-button @click="clearAttText">取 消</el-button>
  3707. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3708. </span>
  3709. </el-dialog>
  3710. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3711. :before-close="handleClose" class="dialog_diy lineCss">
  3712. <el-form>
  3713. <el-form-item label="标题" :label-width="formLabelWidth">
  3714. <span>
  3715. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3716. </span>
  3717. </el-form-item>
  3718. <el-form-item label="链接" :label-width="formLabelWidth">
  3719. <span>
  3720. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3721. </span>
  3722. </el-form-item>
  3723. </el-form>
  3724. <span slot="footer" class="dialog-footer">
  3725. <el-button @click="clearLine">取 消</el-button>
  3726. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3727. </span>
  3728. </el-dialog>
  3729. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3730. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3731. <div>
  3732. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3733. </div>
  3734. <span slot="footer" class="dialog-footer">
  3735. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3736. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3737. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3738. </span>
  3739. </el-dialog>
  3740. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3741. :before-close="handleClose" class="addNewPP customWidth">
  3742. <div class="people">
  3743. <div class="people_top">
  3744. <div class="people_nav">选择成员</div>
  3745. <div class="people_top_right">
  3746. <div class="people_search">
  3747. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3748. <div class="search_img" @click="searchStudent">
  3749. <img src="../../../assets/icon/search.png" alt />
  3750. </div>
  3751. </div>
  3752. </div>
  3753. </div>
  3754. <el-checkbox-group v-model="checkboxList" class="people_name">
  3755. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3756. "暂无学生可选" }}</el-checkbox>
  3757. </el-checkbox-group>
  3758. </div>
  3759. <span slot="footer" class="dialog-footer">
  3760. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3761. <el-button type="primary" @click="isAddPP">确定</el-button>
  3762. </span>
  3763. </el-dialog>
  3764. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3765. :before-close="handleClose" class="addNewPP2">
  3766. <div class="check_classBox">
  3767. <div class="check_class_right">
  3768. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="(gradeId = ''), getClass()">
  3769. 全部
  3770. </div>
  3771. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3772. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="(gradeId = item.id), getClass()">
  3773. {{ item.name }}
  3774. </div>
  3775. </el-tooltip>
  3776. </div>
  3777. <div class="check_class_left">
  3778. <div class="check_class_all_box">
  3779. <div class="check_class_left_title">选择班级</div>
  3780. <div style="display: flex; align-items: center; margin-left: auto">
  3781. <el-checkbox v-model="checkAll" @change="handleCheckAllChange" class="all_check">全选</el-checkbox>
  3782. </div>
  3783. </div>
  3784. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3785. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3786. </div> -->
  3787. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  3788. v-if="grade2.length">
  3789. <div v-for="item in grade2" :key="item.id" class="class_item">
  3790. <el-checkbox :label="item.id">
  3791. {{ item.name }}
  3792. </el-checkbox>
  3793. </div>
  3794. </el-checkbox-group>
  3795. <div v-if="!grade2.length">暂无数据</div>
  3796. </div>
  3797. </div>
  3798. <span slot="footer" class="dialog-footer">
  3799. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3800. <el-button type="primary" @click="isAddClass">确定</el-button>
  3801. </span>
  3802. </el-dialog>
  3803. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3804. :before-close="handleClose" class="addNewPP customWidth">
  3805. <div class="people">
  3806. <div class="people_top">
  3807. <div class="people_top_right">
  3808. <div class="people_search">
  3809. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3810. <div class="search_img" @click="getTeacher">
  3811. <img src="../../../assets/icon/search.png" alt />
  3812. </div>
  3813. </div>
  3814. </div>
  3815. <div class="people_nav" style="display: flex; align-items: center">
  3816. <div class="check_class_left_title">选择成员</div>
  3817. <div style="display: flex; align-items: center; margin-left: auto">
  3818. <el-checkbox v-model="checkAll2" @change="handleCheckAllChange2" class="all_check">全选</el-checkbox>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length"
  3823. @change="InviteChange2">
  3824. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3825. <div class="t_j_box">
  3826. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3827. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3828. </el-tooltip>
  3829. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  3830. <span>{{ item.username.split('@')[0] }}</span>
  3831. </el-tooltip>
  3832. <el-tooltip placement="top" :content="item.school">
  3833. <span>{{ item.school }}</span>
  3834. </el-tooltip>
  3835. </div>
  3836. </el-checkbox>
  3837. </el-checkbox-group>
  3838. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3839. </div>
  3840. <span slot="footer" class="dialog-footer">
  3841. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3842. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3843. </span>
  3844. </el-dialog>
  3845. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px" :before-close="(done) => {
  3846. closePan(4);
  3847. }
  3848. " class="dialog_diy fullStyle">
  3849. <div style="height: 100%">
  3850. <div class="a_add_title" style="
  3851. display: flex;
  3852. flex-direction: row;
  3853. align-items: center;
  3854. justify-content: center;
  3855. ">
  3856. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3857. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3858. </div>
  3859. <div class="a_addBox" style="height: calc(100% - 50px)">
  3860. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3861. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3862. <div class="a_add_checkType">
  3863. <span :class="{
  3864. active:
  3865. askJson.askJson[index1].type == '1' ||
  3866. !askJson.askJson[index1].type,
  3867. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3868. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3869. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3870. </div>
  3871. <div class="a_add_head">
  3872. <div style="
  3873. display: flex;
  3874. align-items: center;
  3875. width: 100%;
  3876. margin-right: 20px;
  3877. ">
  3878. <span style="min-width: fit-content">{{
  3879. index1 + 1 + "、"
  3880. }}</span>
  3881. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3882. v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目" @change="() => {
  3883. $forceUpdate();
  3884. }
  3885. "></textarea>
  3886. </div>
  3887. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px" v-if="askJson.askCount != 1">
  3888. <div class="chapter_upload_up" @click.stop="askMove(1, index1)"></div>
  3889. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3890. </div>
  3891. <div class="a_add_head_div">
  3892. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3893. </el-button>
  3894. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3895. </div>
  3896. </div>
  3897. <div class="a_add_body">
  3898. <div class="a_add_input" style="flex-direction: column">
  3899. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style="
  3900. margin: 20px 10px 0 0;
  3901. display: flex;
  3902. align-items: center;
  3903. position: relative;
  3904. ">
  3905. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  3906. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3907. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项" style="width: 300px"
  3908. @change="() => {
  3909. $forceUpdate();
  3910. }
  3911. "></textarea>
  3912. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px"
  3913. v-if="askJson.askJson[index1].askItem != 1">
  3914. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)"></div>
  3915. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3916. </div>
  3917. <div class="a_add_body_div">
  3918. <el-button type="primary" size="small"
  3919. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3920. <el-button type="primary" size="small" @click="
  3921. deletecheckList(askJson.askJson[index1], checkIndex)
  3922. " v-if="askJson.askJson[index1].askItem != 1">删除
  3923. </el-button>
  3924. </div>
  3925. </div>
  3926. </div>
  3927. <!-- <div class="a_add_body_div">
  3928. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3929. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3930. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3931. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3932. </el-button>
  3933. </div> -->
  3934. </div>
  3935. </div>
  3936. </div>
  3937. </div>
  3938. <span slot="footer" class="dialog-footer">
  3939. <el-button @click="closePan(4)">取 消</el-button>
  3940. <el-button type="primary" @click="addAsk">确 定</el-button>
  3941. </span>
  3942. </el-dialog>
  3943. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px" :before-close="(done) => {
  3944. closePan(45);
  3945. }
  3946. " class="dialog_diy fullStyle">
  3947. <div style="height: 100%">
  3948. <!-- <div class="a_add_title" style="
  3949. display: flex;
  3950. flex-direction: row;
  3951. align-items: center;
  3952. justify-content: center;
  3953. ">
  3954. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3955. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3956. </div> -->
  3957. <div class="a_addBox" style="height: 100%">
  3958. <div style="
  3959. font-size: 16px;
  3960. color: #c7c7c7;
  3961. display: flex;
  3962. align-items: center;
  3963. ">
  3964. <!-- 请输入题目内容 -->
  3965. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3966. v-if="isPasteChoice">
  3967. 智能粘贴
  3968. </button>
  3969. </div>
  3970. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3971. <div class="a_add_checkType">
  3972. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3973. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3974. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3975. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3976. </div>
  3977. <div class="a_add_head">
  3978. <div class="timuUpImg">
  3979. <div style="display: flex; align-items: center">
  3980. <span style="min-width: fit-content">{{
  3981. index1 + 1 + "、"
  3982. }}</span>
  3983. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3984. placeholder="请输入题目">
  3985. </el-input> -->
  3986. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3987. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="() => {
  3988. $forceUpdate();
  3989. }
  3990. "></textarea>
  3991. </div>
  3992. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3993. <div class="chapter_upload_up" @click.stop="testMove(1, index1)"></div>
  3994. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3995. </div>
  3996. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px">
  3997. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3998. <input type="file" accept="image/*" style="display: none"
  3999. @change="beforeUploadTiMu($event, index1)" />
  4000. </div>
  4001. </div>
  4002. <div class="a_add_head_div">
  4003. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4004. </el-button>
  4005. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4006. </div>
  4007. </div>
  4008. <div class="timuImgBox" v-if="
  4009. testJson.testJson[index1].timuList &&
  4010. testJson.testJson[index1].timuList.length
  4011. ">
  4012. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4013. @click.stop="previewImg(timg.src)">
  4014. <img :src="timg.src" alt="" />
  4015. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4016. <img src="../../../assets/icon/delete.png" alt="" />
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div class="a_add_body">
  4021. <div class="a_add_input a_add_input_choice">
  4022. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4023. @change="() => {
  4024. $forceUpdate();
  4025. }
  4026. ">
  4027. <div class="radioBox">
  4028. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4029. .testItem" :key="checkIndex" :label="checkIndex">
  4030. <div style="margin-right: 10px">
  4031. 选项{{ checkIndex + 1 }}
  4032. </div>
  4033. <div style="margin-right: 10px; width: 300px" v-if="
  4034. testJson.testJson[index1].checkList[checkIndex] &&
  4035. testJson.testJson[index1].checkList[checkIndex]
  4036. .imgType &&
  4037. testJson.testJson[index1].checkList[checkIndex]
  4038. .imgType == 1
  4039. ">
  4040. <div class="inImg" @click.stop="
  4041. previewImg(
  4042. testJson.testJson[index1].checkList[checkIndex]
  4043. .src
  4044. )
  4045. ">
  4046. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4047. .src
  4048. " lazy />
  4049. <!-- <img :src="
  4050. testJson.testJson[index1].checkList[checkIndex]
  4051. .src
  4052. " alt="" /> -->
  4053. </div>
  4054. </div>
  4055. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4056. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4057. $forceUpdate();
  4058. }
  4059. "></textarea>
  4060. <div class="xzUpImg" @click.stop="addImg($event)">
  4061. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4062. <input type="file" accept="image/*" style="display: none"
  4063. @change="beforeUploadTi($event, index1, checkIndex)" />
  4064. </div>
  4065. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4066. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)"></div>
  4067. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4068. </div>
  4069. <div class="a_add_body_div">
  4070. <el-button type="primary" size="small" @click.stop="
  4071. addTcheckList(testJson.testJson[index1], checkIndex)
  4072. ">添加</el-button>
  4073. <el-button type="primary" size="small" @click.stop="
  4074. deleteTcheckList(
  4075. testJson.testJson[index1],
  4076. checkIndex
  4077. )
  4078. " v-if="testJson.testJson[index1].testItem != 1">删除
  4079. </el-button>
  4080. </div>
  4081. </el-radio>
  4082. </div>
  4083. </el-radio-group>
  4084. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  4085. v-if="testJson.testJson[index1].type == '2'" @change="() => {
  4086. $forceUpdate();
  4087. }
  4088. ">
  4089. <div class="radioBox">
  4090. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4091. .testItem" :key="checkIndex1" :label="checkIndex1">
  4092. <div style="margin-right: 10px">
  4093. 选项{{ checkIndex1 + 1 }}
  4094. </div>
  4095. <div style="margin-right: 10px; width: 300px" v-if="
  4096. testJson.testJson[index1].checkList[checkIndex1] &&
  4097. testJson.testJson[index1].checkList[checkIndex1]
  4098. .imgType &&
  4099. testJson.testJson[index1].checkList[checkIndex1]
  4100. .imgType == 1
  4101. ">
  4102. <div class="inImg" @click.stop="
  4103. previewImg(
  4104. testJson.testJson[index1].checkList[checkIndex1]
  4105. .src
  4106. )
  4107. ">
  4108. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4109. .src
  4110. " lazy />
  4111. <!-- <img :src="
  4112. testJson.testJson[index1].checkList[checkIndex1]
  4113. .src
  4114. " alt="" /> -->
  4115. </div>
  4116. </div>
  4117. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4118. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="() => {
  4119. $forceUpdate();
  4120. }
  4121. "></textarea>
  4122. <div class="xzUpImg" @click.stop="addImg($event)">
  4123. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4124. <input type="file" accept="image/*" style="display: none"
  4125. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4126. </div>
  4127. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4128. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)"></div>
  4129. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4130. </div>
  4131. <div class="a_add_body_div">
  4132. <el-button type="primary" size="small" @click.stop="
  4133. addTcheckList(
  4134. testJson.testJson[index1],
  4135. checkIndex1
  4136. )
  4137. ">添加</el-button>
  4138. <el-button type="primary" size="small" @click.stop="
  4139. deleteTcheckList(
  4140. testJson.testJson[index1],
  4141. checkIndex1
  4142. )
  4143. " v-if="testJson.testJson[index1].testItem != 1">删除
  4144. </el-button>
  4145. </div>
  4146. </el-checkbox>
  4147. </div>
  4148. </el-checkbox-group>
  4149. </div>
  4150. <!-- <div class="a_add_body_div">
  4151. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  4152. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  4153. v-if="testJson.testJson[index1].testItem != 1">删除
  4154. </el-button>
  4155. </div> -->
  4156. </div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. <span slot="footer" class="dialog-footer">
  4161. <el-button @click="closePan(45)">取 消</el-button>
  4162. <el-button type="primary" @click="addTest">确 定</el-button>
  4163. </span>
  4164. </el-dialog>
  4165. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4166. :before-close="handleClose" class="dialog_diy addToolsDia">
  4167. <div class="toolChoose">
  4168. <div class="tools">
  4169. <div class="leftTools" style="width: 100%; padding: 0 0 15px 0"
  4170. v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4171. <div style="
  4172. display: flex;
  4173. flex-direction: row;
  4174. align-items: baseline;
  4175. flex-wrap: nowrap;
  4176. justify-content: flex-start;
  4177. position: relative;
  4178. ">
  4179. <div class="chooseWho">
  4180. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4181. 互动类
  4182. </div>
  4183. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4184. 思维类
  4185. </div>
  4186. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4187. 评价类
  4188. </div>
  4189. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4190. 其他
  4191. </div>
  4192. </div>
  4193. </div>
  4194. <div style="min-height: 163px">
  4195. <div class="toolSort" v-if="chapToolsType == 0">
  4196. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  4197. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  4198. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4199. <div style="margin: 5px 0">素材库</div>
  4200. </div>
  4201. <div class="noCTool">
  4202. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4203. </div>
  4204. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  4205. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4206. </div>
  4207. <!-- <div class="check" @click="chapAddTools(8)">
  4208. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4209. <div class="checkDiv" v-else>
  4210. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4211. </div>
  4212. </div> -->
  4213. </div>
  4214. </div>
  4215. <div class="toolSort" v-if="chapToolsType == 1">
  4216. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  4217. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  4218. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4219. <div style="margin: 5px 0">思维网格</div>
  4220. </div>
  4221. <div class="noCTool">
  4222. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4223. </div>
  4224. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  4225. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4226. </div>
  4227. <!-- <div class="check" @click="chapAddTools(7)">
  4228. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4229. <div class="checkDiv" v-else>
  4230. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4231. </div>
  4232. </div> -->
  4233. </div>
  4234. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  4235. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  4236. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4237. <div style="margin: 5px 0">电子白板</div>
  4238. </div>
  4239. <div class="noCTool">
  4240. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4241. </div>
  4242. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  4243. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4244. </div>
  4245. <!-- <div class="check" @click="chapAddTools(1)">
  4246. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4247. <div class="checkDiv" v-else>
  4248. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4249. </div>
  4250. </div> -->
  4251. </div>
  4252. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  4253. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  4254. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4255. <div style="margin: 5px 0">便签</div>
  4256. </div>
  4257. <div class="noCTool">
  4258. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4259. </div>
  4260. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  4261. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4262. </div>
  4263. <!-- <div class="check" @click="chapAddTools(2)">
  4264. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4265. <div class="checkDiv" v-else>
  4266. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4267. </div>
  4268. </div> -->
  4269. </div>
  4270. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  4271. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  4272. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4273. <div style="margin: 5px 0">协同文档</div>
  4274. </div>
  4275. <div class="noCTool">
  4276. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4277. </div>
  4278. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  4279. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4280. </div>
  4281. <!-- <div class="check" @click="chapAddTools(6)">
  4282. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4283. <div class="checkDiv" v-else>
  4284. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4285. </div>
  4286. </div> -->
  4287. </div>
  4288. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  4289. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  4290. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4291. <div style="margin: 5px 0">思维导图</div>
  4292. </div>
  4293. <div class="noCTool">
  4294. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4295. </div>
  4296. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  4297. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4298. </div>
  4299. <!-- <div class="check" @click="chapAddTools(3)">
  4300. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4301. <div class="checkDiv" v-else>
  4302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4303. </div>
  4304. </div> -->
  4305. </div>
  4306. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  4307. @click="chapAddTools(31)">
  4308. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  4309. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4310. <div style="margin: 5px 0">数学画板</div>
  4311. </div>
  4312. <div class="noCTool">
  4313. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4314. </div>
  4315. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  4316. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4317. </div>
  4318. <!-- <div class="check" @click="chapAddTools(31)">
  4319. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4320. <div class="checkDiv" v-else>
  4321. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4322. </div>
  4323. </div> -->
  4324. </div>
  4325. </div>
  4326. <div class="toolSort" v-if="chapToolsType == 2">
  4327. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  4328. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  4329. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4330. <div style="margin: 5px 0">量规评分</div>
  4331. </div>
  4332. <div class="noCTool">
  4333. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4334. </div>
  4335. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  4336. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4337. </div>
  4338. <!-- <div class="check" @click="chapAddTools(5)">
  4339. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4340. <div class="checkDiv" v-else>
  4341. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4342. </div>
  4343. </div> -->
  4344. </div>
  4345. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  4346. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  4347. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4348. <div style="margin: 5px 0">问卷调查</div>
  4349. </div>
  4350. <div class="noCTool">
  4351. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4352. </div>
  4353. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  4354. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  4355. </div>
  4356. <!-- <div class="check" @click="chapAddTools(4)">
  4357. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4358. <div class="checkDiv" v-else>
  4359. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4360. </div>
  4361. </div> -->
  4362. </div>
  4363. </div>
  4364. </div>
  4365. <div>
  4366. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  4367. v-model="itemTools.toolDetail" />
  4368. </div>
  4369. </div>
  4370. </div>
  4371. </div>
  4372. <span slot="footer" class="dialog-footer">
  4373. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4374. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4375. </span>
  4376. </el-dialog>
  4377. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px" :before-close="(done) => {
  4378. closePan(15);
  4379. }
  4380. " class="dialog_diy">
  4381. <div>
  4382. <div class="a_add_title" style="
  4383. display: flex;
  4384. flex-direction: column;
  4385. align-items: flex-start;
  4386. justify-content: center;
  4387. ">
  4388. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4389. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4390. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4391. style="width: 100% !important; border: 1px solid #dcdfe6" v-model="answerQ"></textarea>
  4392. </div>
  4393. </div>
  4394. <span slot="footer" class="dialog-footer">
  4395. <el-button @click="closePan(15)">取 消</el-button>
  4396. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4397. </span>
  4398. </el-dialog>
  4399. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4400. :before-close="handleClose" class="dialog_diy">
  4401. <div>
  4402. <div class="a_add_title" style="
  4403. display: flex;
  4404. flex-direction: column;
  4405. align-items: flex-start;
  4406. justify-content: center;
  4407. ">
  4408. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4409. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4410. </div>
  4411. </div>
  4412. <span slot="footer" class="dialog-footer">
  4413. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4414. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4415. </span>
  4416. </el-dialog>
  4417. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4418. :before-close="handleClose" class="dialog_diy">
  4419. <div>
  4420. <div class="fileCss" style="padding-top: 20px">
  4421. <div>
  4422. <button class="info_btn" @click="addImg($event)">
  4423. 选择本地文件
  4424. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4425. </button>
  4426. <div class="spanName">选择本地文件</div>
  4427. </div>
  4428. <!-- <div>
  4429. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4430. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4431. <img :src="cover[0].url" alt="" />
  4432. <div class="deletePic" @click="deleteSysPic">
  4433. <img src="../../../assets/icon/delete.png" alt="" />
  4434. </div>
  4435. </div>
  4436. <div class="spanName">选择系统文件</div>
  4437. </div> -->
  4438. <div>
  4439. <el-button @click="(searchImageValue = courseName), resetImage()"
  4440. v-if="isSysPic2 == false">选择网络文件</el-button>
  4441. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4442. <img :src="cover[0].url" alt="" />
  4443. <div class="deletePic" @click="deleteSysPic">
  4444. <img src="../../../assets/icon/delete.png" alt="" />
  4445. </div>
  4446. </div>
  4447. <div class="spanName">选择网络文件</div>
  4448. </div>
  4449. </div>
  4450. <!-- <div class="fileCss">
  4451. </div> -->
  4452. </div>
  4453. <span slot="footer" class="dialog-footer">
  4454. <el-button @click="choosePicVisible = false">取 消</el-button>
  4455. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4456. </span>
  4457. </el-dialog>
  4458. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4459. :before-close="handleClose" class="dialog_diy">
  4460. <div class="cru_selectBox" style="margin: 0">
  4461. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4462. 绘画
  4463. </div>
  4464. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4465. 科技
  4466. </div>
  4467. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4468. 人文
  4469. </div>
  4470. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4471. 艺术
  4472. </div>
  4473. </div>
  4474. <div class="sysPicBox">
  4475. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4476. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4477. </div>
  4478. </div>
  4479. </el-dialog>
  4480. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4481. :before-close="handleClose" class="dialog_diy">
  4482. <div>
  4483. <div class="people_top_right" style="display: flex; align-items: center">
  4484. <div style="position: relative; width: 100%">
  4485. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4486. @keyup.enter.native="resetImage()"></el-input>
  4487. <div class="search_img" @click="resetImage" style="right: 10px">
  4488. <img src="../../../assets/icon/search.png" alt />
  4489. </div>
  4490. </div>
  4491. <el-button type="primary" size="default" style="margin-left: 10px" @click="changePicture">换一组</el-button>
  4492. </div>
  4493. <div class="sysPicBox" v-loading="imageloading">
  4494. <div class="picNone" v-if="!imageList.length">
  4495. 请输入关键词搜索图片
  4496. </div>
  4497. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4498. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4499. </div>
  4500. </div>
  4501. </div>
  4502. </el-dialog>
  4503. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px" :before-close="(done) => {
  4504. closePan(41);
  4505. }
  4506. " class="dialog_diy dialog_diy3 fullStyle">
  4507. <div v-if="selectJson" style="height: 100%">
  4508. <div class="select_box1" v-if="selectSteps == 1">
  4509. <div class="select_box1_img">
  4510. <div class="select_box1_title">
  4511. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4512. </div>
  4513. <div class="select_box1_add_img">
  4514. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4515. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4516. <img src="../../../assets/icon/addPoster.png" alt="" />
  4517. </div>
  4518. <div class="isSysPic" v-else>
  4519. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4520. <div class="deletePic" @click="deleteSelectPic">
  4521. <img src="../../../assets/icon/delete.png" alt="" />
  4522. </div>
  4523. </div>
  4524. </div>
  4525. </div>
  4526. <div class="select_box1_select">
  4527. <div class="select_box1_title">
  4528. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4529. </div>
  4530. <div class="select_box1_select_box">
  4531. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4532. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4533. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4534. <div class="select_box1_select_box_add">
  4535. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4536. 添加</el-button>
  4537. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4538. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4539. </div>
  4540. </div>
  4541. </div>
  4542. </div>
  4543. <div v-if="selectSteps == 2" style="height: 100%">
  4544. <div class="select_box2">
  4545. <div class="select_box2_title">设置每道题目的正确选项</div>
  4546. <div class="select_box2_box">
  4547. <div class="select_box2_img">
  4548. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4549. </div>
  4550. <div class="select_box2_answer">
  4551. <div class="select_answer_title">根据题目选择对应答案</div>
  4552. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4553. <span>{{ checkIndex + 1 }}、</span>
  4554. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4555. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4556. </el-option>
  4557. </el-select>
  4558. </div>
  4559. </div>
  4560. </div>
  4561. </div>
  4562. </div>
  4563. </div>
  4564. <span slot="footer" class="dialog-footer">
  4565. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4566. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4567. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4568. </span>
  4569. </el-dialog>
  4570. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4571. :before-close="handleClose" class="dialog_diy">
  4572. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4573. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4574. <div class="pjCss" style="width: 100%">
  4575. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4576. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4577. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4578. <input type="input" v-model="eItem.value" placeholder="填写评价维度" />
  4579. <div class="remove" @click="deletRateList(eIndex)"></div>
  4580. <div style="width: 100%; display: flex">
  4581. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4582. <el-rate v-model="eItem.score" disabled></el-rate>
  4583. </div>
  4584. <div class="elist_inptu_text" style="align-items: flex-start">
  4585. <span style="min-width: 100px; text-align: right">描述:</span>
  4586. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写维度描述"></textarea>
  4587. </div>
  4588. </div>
  4589. </div>
  4590. <div class="addToolFun" @click="addRateList()">
  4591. <div class="addToolImg">
  4592. <img src="../../../assets/icon/add.png" alt />
  4593. </div>
  4594. <div>添加</div>
  4595. </div>
  4596. </div>
  4597. </div>
  4598. <span slot="footer" class="dialog-footer">
  4599. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4600. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4601. </span>
  4602. </el-dialog>
  4603. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px" :before-close="(done) => {
  4604. closePan(47);
  4605. }
  4606. " class="dialog_diy dialog_diy3 fullStyle">
  4607. <div style="height: 100%">
  4608. <div class="sentenBox" style="height: 100%">
  4609. <div class="addSen" @click="addSt">添加题目</div>
  4610. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4611. <div class="sentenTopBox">
  4612. <div class="sentenTop" :index="stIndex + 1">
  4613. <div>题目设置</div>
  4614. <div>
  4615. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4616. </div>
  4617. <div @click="addSen(stIndex)">添加</div>
  4618. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4619. </div>
  4620. </div>
  4621. <div class="cardList">
  4622. <div v-if="st.addSentence.length > 0" class="cardBox">
  4623. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4624. @click="setRightAnswer(s, stIndex, sIndex)">
  4625. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4626. <div>{{ s }}</div>
  4627. </el-tooltip>
  4628. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4629. <img src="../../../assets/icon/delete.png" alt="" />
  4630. </div>
  4631. </div>
  4632. </div>
  4633. <div class="card">
  4634. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4635. </div>
  4636. </div>
  4637. <div class="rightCardBox">
  4638. <div>正确顺序</div>
  4639. <div class="rightCardList">
  4640. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4641. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4642. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4643. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4644. <div>{{ r }}</div>
  4645. </el-tooltip>
  4646. </div>
  4647. <div>{{ rIndex + 1 }}</div>
  4648. </div>
  4649. </div>
  4650. <div class="card" v-if="st.rightAnswer.length == 0">
  4651. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4652. </div>
  4653. <div class="card" v-else>
  4654. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4655. </div>
  4656. </div>
  4657. </div>
  4658. </div>
  4659. </div>
  4660. </div>
  4661. <span slot="footer" class="dialog-footer">
  4662. <el-button @click="closePan(47)">取 消</el-button>
  4663. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4664. </span>
  4665. </el-dialog>
  4666. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4667. :before-close="handleClose" class="dialog_diy">
  4668. <el-form>
  4669. <!-- <el-form-item label="文本标题">
  4670. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4671. </el-form-item> -->
  4672. <div>表格内容</div>
  4673. <Table v-model="tableJson.text" @change="change"></Table>
  4674. </el-form>
  4675. <span slot="footer" class="dialog-footer">
  4676. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4677. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4678. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4679. </span>
  4680. </el-dialog>
  4681. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%"
  4682. :before-close="handleClose" class="dialog_diy">
  4683. <el-form>
  4684. <!-- <el-form-item label="文本标题">
  4685. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4686. </el-form-item> -->
  4687. <div>文档内容</div>
  4688. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  4689. </el-form>
  4690. <span slot="footer" class="dialog-footer">
  4691. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4692. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4693. </span>
  4694. </el-dialog>
  4695. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4696. :before-close="handleClose" class="dialog_diy">
  4697. <div style="
  4698. width: 100%;
  4699. display: flex;
  4700. flex-direction: row;
  4701. flex-wrap: nowrap;
  4702. align-items: center;
  4703. justify-content: center;
  4704. ">
  4705. <div>班级:</div>
  4706. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4707. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4708. </el-option>
  4709. </el-select>
  4710. </div>
  4711. <span slot="footer" class="dialog-footer">
  4712. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4713. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4714. </span>
  4715. </el-dialog>
  4716. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4717. :before-close="handleClose" class="dialog_diy">
  4718. <div style="
  4719. width: 100%;
  4720. display: flex;
  4721. flex-direction: row;
  4722. flex-wrap: nowrap;
  4723. align-items: center;
  4724. justify-content: center;
  4725. ">
  4726. <div>随机码:</div>
  4727. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4728. </div>
  4729. <span slot="footer" class="dialog-footer">
  4730. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4731. <el-button type="primary" @click="addInvite">确定</el-button>
  4732. </span>
  4733. </el-dialog>
  4734. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4735. :before-close="handleClose" class="dialog_diy">
  4736. <div>
  4737. <div style="margin-bottom: 20px; color: #999">
  4738. 提示:点击“+”或“-”修改倒计时时长。
  4739. </div>
  4740. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4741. </div>
  4742. <span slot="footer" class="dialog-footer">
  4743. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4744. <el-button type="primary" @click="addPreTime">确定</el-button>
  4745. </span>
  4746. </el-dialog>
  4747. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%"
  4748. :before-close="handleClose" class="dialog_diy">
  4749. <div>
  4750. <div style="
  4751. width: 100%;
  4752. display: flex;
  4753. flex-direction: row;
  4754. flex-wrap: nowrap;
  4755. align-content: center;
  4756. align-items: center;
  4757. justify-content: space-between;
  4758. ">
  4759. <div style="
  4760. display: flex;
  4761. flex-flow: row nowrap;
  4762. align-items: flex-start;
  4763. width: 100%;
  4764. flex-direction: column;
  4765. flex-wrap: nowrap;
  4766. position: relative;
  4767. ">
  4768. <div class="e_box">
  4769. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4770. <div class="e_card_picture">
  4771. <img src="../../../assets/e_picture.png" />
  4772. </div>
  4773. <div class="e_card_name">
  4774. <span>{{ item.title }}</span>
  4775. </div>
  4776. <div class="e_card_btn">
  4777. <span @click="checkEva(item.id, 2)">导入</span>
  4778. </div>
  4779. </div> -->
  4780. <!-- <div class="addEva" @click="openT">
  4781. <img src="../../../assets/icon/addEva.png" alt="" />
  4782. </div> -->
  4783. <div style="
  4784. display: flex;
  4785. justify-content: flex-end;
  4786. margin-bottom: 10px;
  4787. ">
  4788. <el-button @click="openT" type="primary" size="small">添加目标</el-button>
  4789. </div>
  4790. <el-table v-if="evaJuri.length" ref="table" :data="evaJuri" border :fit="true" style="width: 100%"
  4791. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }" :row-class-name="tableRowClassName">
  4792. <el-table-column label="目标名称" min-width="15" align="center" prop="title">
  4793. </el-table-column>
  4794. <el-table-column prop="username" label="负责人" min-width="15" align="center">
  4795. </el-table-column>
  4796. <el-table-column label="操作" width="250px">
  4797. <template slot-scope="scope">
  4798. <div class="btnBox">
  4799. <el-button type="primary" size="small" @click="checkEva(scope.row.id, 2)">导入</el-button>
  4800. </div>
  4801. </template>
  4802. </el-table-column>
  4803. </el-table>
  4804. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4805. 暂无数据
  4806. </div>
  4807. </div>
  4808. </div>
  4809. </div>
  4810. </div>
  4811. <span slot="footer" class="dialog-footer">
  4812. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4813. </span>
  4814. </el-dialog>
  4815. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4816. :before-close="handleClose" class="dialog_diy">
  4817. <div class="groupBox">
  4818. <div v-if="groupJson.group" class="groupContent">
  4819. <div class="groupTitle">请设置小组数量及名称</div>
  4820. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4821. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4822. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4823. <div class="groupBtn">
  4824. <el-button type="primary" size="small" @click="addGroup(index)"
  4825. v-if="groupJson.group.length - 1 == index">
  4826. 添加</el-button>
  4827. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4828. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4829. </div>
  4830. </div>
  4831. </div>
  4832. <div class="groupContent">
  4833. <div class="groupTitle">请设置每组人数</div>
  4834. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4835. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4836. <el-input v-model="groupJson.number" style="width: 150px" placeholder="请输入2-10的数字"
  4837. @change="numberPan"></el-input>
  4838. </div>
  4839. </div>
  4840. <span slot="footer" class="dialog-footer">
  4841. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4842. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4843. </span>
  4844. </el-dialog>
  4845. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4846. :before-close="handleClose" class="dialog_diy">
  4847. <div style="
  4848. width: 100%;
  4849. display: flex;
  4850. flex-direction: row;
  4851. flex-wrap: nowrap;
  4852. align-items: center;
  4853. justify-content: center;
  4854. ">
  4855. <div style="min-width: fit-content">文件名称:</div>
  4856. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4857. </div>
  4858. <span slot="footer" class="dialog-footer">
  4859. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4860. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4861. </span>
  4862. </el-dialog>
  4863. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px" :before-close="(done) => {
  4864. closePan(69);
  4865. }
  4866. " class="dialog_diy fullStyle fullStyle1">
  4867. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  4868. <span slot="footer" class="dialog-footer">
  4869. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4870. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4871. </span>
  4872. </el-dialog>
  4873. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  4874. :before-close="handleClose" class="dialog_diy">
  4875. <div class="template_box">
  4876. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  4877. :class="{ wordTeacherA: ctJson.id == aa.id }">
  4878. <div class="wordPic">
  4879. <img src="../../../assets/icon/new/course_template.png" alt />
  4880. </div>
  4881. <el-tooltip effect="dark" :content="aa.title" placement="top">
  4882. <div style="
  4883. margin-top: 10px;
  4884. line-height: 19px;
  4885. overflow: hidden;
  4886. text-overflow: ellipsis;
  4887. white-space: nowrap;
  4888. padding: 0 10px;
  4889. box-sizing: border-box;
  4890. width: 100%;
  4891. ">
  4892. {{ aa.title }}
  4893. </div>
  4894. </el-tooltip>
  4895. </div>
  4896. <div class="wordTeacher" @click="checkctJson({ id: 1 })" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4897. :class="{ wordTeacherA: ctJson.id == 1 }">
  4898. <div class="wordPic">
  4899. <img src="../../../assets/icon/new/course_template.png" alt />
  4900. </div>
  4901. <div style="
  4902. margin-top: 10px;
  4903. line-height: 19px;
  4904. overflow: hidden;
  4905. text-overflow: ellipsis;
  4906. white-space: nowrap;
  4907. padding: 0 20px;
  4908. ">
  4909. 简易模板
  4910. </div>
  4911. </div>
  4912. <div class="wordTeacher" @click="checkctJson({ id: 2 })" v-if="isPasteStage"
  4913. :class="{ wordTeacherA: ctJson.id == 2 }">
  4914. <div class="wordPic">
  4915. <img src="../../../assets/icon/new/course_template.png" alt />
  4916. </div>
  4917. <div style="
  4918. margin-top: 10px;
  4919. line-height: 19px;
  4920. overflow: hidden;
  4921. text-overflow: ellipsis;
  4922. white-space: nowrap;
  4923. padding: 0 20px;
  4924. ">
  4925. 智能粘贴模式
  4926. </div>
  4927. </div>
  4928. </div>
  4929. <span slot="footer" class="dialog-footer">
  4930. <el-button @click="templateDialog = false">取 消</el-button>
  4931. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  4932. </span>
  4933. </el-dialog>
  4934. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4935. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  4936. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  4937. <div class="change_stageBox">
  4938. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  4939. <div class="nt_taskBox">
  4940. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  4941. <div class="nt_taskName">
  4942. <el-tooltip effect="light" :content="t.dyName" placement="top">
  4943. <span>{{ t.dyName }}</span>
  4944. </el-tooltip>
  4945. </div>
  4946. </div>
  4947. <div class="moveBtn" v-if="unitJson3.length > 1">
  4948. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)"></div>
  4949. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  4950. </div>
  4951. </div>
  4952. </div>
  4953. <span slot="footer" class="dialog-footer">
  4954. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  4955. <el-button type="primary" @click="updateChange">确定</el-button>
  4956. </span>
  4957. </el-dialog>
  4958. <el-dialog title="添加资源模板" :visible.sync="cetBoxDialog" :append-to-body="true" width="400px"
  4959. :before-close="handleClose" class="dialog_diy">
  4960. <div class="addTypeChoose" style="justify-content: center">
  4961. <div style="min-width: 100px">模板名称:</div>
  4962. <el-input v-model="templateName" style="width: 200px"></el-input>
  4963. </div>
  4964. <div class="addTypeBox">
  4965. <div class="addTypeChoose">
  4966. <div style="min-width: 100px">选择一级分类:</div>
  4967. <el-select v-model="setTypeJson.one" placeholder="请选择" @change="getTwoType(setTypeJson.one)"
  4968. style="width: 200px">
  4969. <el-option v-for="(item, index) in oneJson" :key="index" :label="item.name" :value="item.id">
  4970. </el-option>
  4971. </el-select>
  4972. </div>
  4973. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  4974. <div style="min-width: 100px">选择二级分类:</div>
  4975. <el-select v-model="setTypeJson.two" placeholder="请选择" style="width: 200px">
  4976. <el-option v-for="(item1, index1) in twoJson" :key="index1" :label="item1.name" :value="item1.id">
  4977. </el-option>
  4978. </el-select>
  4979. </div>
  4980. </div>
  4981. <span slot="footer" class="dialog-footer">
  4982. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  4983. <el-button @click="close()">关 闭</el-button>
  4984. </span>
  4985. </el-dialog>
  4986. <evaBox :userid="userid" :oid="oid" :org="org" :dialogVisibleEva.sync="evaBoxDialog" @updateEvaJson="updateEvaJson">
  4987. </evaBox>
  4988. <EnglishVoice :oid="oid" :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  4989. :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  4990. </div>
  4991. </template>
  4992. <script>
  4993. import "../../../common/aws-sdk-2.235.1.min.js";
  4994. import { tools as toolsData } from "../../../common/tools.js";
  4995. // import "../../../common/aws-sdk-2.99.0.min.js";
  4996. import $ from "jquery";
  4997. import EditorBar from "../../../components/tools/wangEnduit";
  4998. import Table from "../../../components/tools/table";
  4999. import Mind from "../../tools/jsmind2";
  5000. import Time from "../../tools/time.vue";
  5001. import Sunburst from "../../tools/sunburst";
  5002. import SeeBoard from "../../tools/seeBoard";
  5003. import weilaiData from "../components/weilai.js";
  5004. import sourceDialog from "../teacherSource/dialog.vue";
  5005. import interVideo from "../interVideo/index.vue";
  5006. import englishRight from "../components/englishRight.vue";
  5007. import evaBox from "../evaBox/index.vue";
  5008. import EnglishVoice from "../EnglishVoice/index.vue";
  5009. import aiBox from './aiBox.vue'
  5010. export default {
  5011. components: {
  5012. EditorBar,
  5013. Mind,
  5014. Time,
  5015. Sunburst,
  5016. SeeBoard,
  5017. Table,
  5018. sourceDialog,
  5019. interVideo,
  5020. englishRight,
  5021. evaBox,
  5022. EnglishVoice,
  5023. aiBox
  5024. },
  5025. data() {
  5026. return {
  5027. checkAll: false,
  5028. checkAll2: false,
  5029. chooseType: 1,
  5030. checkedCities: [],
  5031. isIndeterminate: true,
  5032. isIndeterminate2: true,
  5033. isSysPic: false,
  5034. isSysPic2: false,
  5035. steps: 1,
  5036. stepsNav: 1,
  5037. nbOrder: 0,
  5038. courseId: "",
  5039. chapToolsType: 0,
  5040. chapTools: [
  5041. {
  5042. tools: [],
  5043. toolDetail: "",
  5044. },
  5045. ],
  5046. line: "",
  5047. lineTitle: "",
  5048. sysPic: [],
  5049. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5050. sentenceList2: [],
  5051. isPushTitleList: [],
  5052. lineCount: 0,
  5053. lineType: 0,
  5054. chapCount: 0,
  5055. courseName: "",
  5056. isTeacherSee: false,
  5057. courseText: "",
  5058. textLoading:false,
  5059. courseText2: "",
  5060. preTime: 0,
  5061. formLabelWidth: "100px",
  5062. choosePicVisible: false,
  5063. sysPicVisible: false,
  5064. sysPicVisible2: false,
  5065. uploadLoading1: false,
  5066. noneBtnImg: false,
  5067. updateBoolean2: false,
  5068. unitIndex: 0,
  5069. taskCount: 0,
  5070. dialogVisible: false,
  5071. dialogVisible1: false,
  5072. dialogVisible2: false,
  5073. dialogVisible3: false,
  5074. dialogVisible4: false,
  5075. dialogVisible5: false,
  5076. dialogVisible6: false,
  5077. dialogVisible7: false,
  5078. dialogVisible8: false,
  5079. dialogVisible9: false,
  5080. dialogVisibleClass: false,
  5081. dialogVisibleMember: false,
  5082. dialogVisibleMp3: false,
  5083. dialogVisibleSelect: false,
  5084. dialogVisibleSentence: false,
  5085. dialogVisibleRate: false,
  5086. dialogVisibleChoice: false,
  5087. dialogVisiblemb: false,
  5088. dialogVisibleInvite: false,
  5089. dialogVisibleSource: false,
  5090. dialogVisibleVideo: false,
  5091. dialogVisibleStageChange: false,
  5092. dialogVisibleupdataVideoT: false,
  5093. englishDialogVisible: false,
  5094. templateDialog: false,
  5095. ctJson: {},
  5096. isClickColor: 1,
  5097. toolIndexType: "",
  5098. publicTool: 0,
  5099. searchPeople: "",
  5100. searchTN: "",
  5101. userid: this.$route.query.userid,
  5102. oid: this.$route.query.oid,
  5103. org: this.$route.query.org,
  5104. role: this.$route.query.role,
  5105. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5106. dialogVisibleTable: false,
  5107. dialogVisibleWord: false,
  5108. tableJson: { text: "" },
  5109. wordJson: { text: "" },
  5110. dialogVisibleMoreUpload: false,
  5111. dialogVisiblePreTime: false,
  5112. uploadJson: [],
  5113. classJuri: [],
  5114. gradeList: [],
  5115. cover: [], //课程封面
  5116. myWord: [],
  5117. evaJuri: [],
  5118. evalua: "",
  5119. targetArray: [],
  5120. eTitle: "",
  5121. eJson: {},
  5122. fid: "", //一级
  5123. sid: "", //二级
  5124. tid: "", //二级
  5125. typeMode: 1,
  5126. eJSONNum: 0,
  5127. data: {
  5128. meta: {
  5129. name: "example",
  5130. author: "dd@163.com",
  5131. version: "0.2",
  5132. },
  5133. format: "node_array",
  5134. data: [{ id: "root", isroot: true, topic: "" }],
  5135. },
  5136. askJson: {
  5137. askCount: 1,
  5138. askTitle: "",
  5139. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5140. },
  5141. askJson2: {},
  5142. testJson: {},
  5143. testJson2: {},
  5144. selectJson: {},
  5145. selectJson2: {},
  5146. rateJson: [],
  5147. unitJson2: [],
  5148. unitJson3: [],
  5149. unitJson: [
  5150. {
  5151. dyName: "", //单元标题
  5152. chapterInfo: [
  5153. {
  5154. isread: false,
  5155. chapterid: this.guid(),
  5156. title: "",
  5157. courseName: "",
  5158. taskJson: [
  5159. {
  5160. task: "",
  5161. taskDetail: "",
  5162. chapterData: [],
  5163. toolText: "",
  5164. toolChoose: [
  5165. {
  5166. tool: [],
  5167. toolDetail: "",
  5168. toolType: 0,
  5169. askCount: 1,
  5170. askTitle: "",
  5171. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5172. },
  5173. ],
  5174. isShowTools: false,
  5175. askCount: 1,
  5176. isFold: 1,
  5177. askTitle: "",
  5178. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5179. checkJson: [{ checkCount: [], checkPerent: [] }],
  5180. homeworkList: [],
  5181. },
  5182. ],
  5183. itemCount: 1,
  5184. fileList1: [],
  5185. video: [],
  5186. testData: [],
  5187. pData: [],
  5188. templateArray: [],
  5189. },
  5190. ],
  5191. },
  5192. ],
  5193. templateArray: [],
  5194. studentJuri: [],
  5195. teacherJuri: [],
  5196. checkboxList: [],
  5197. checkboxList2: [],
  5198. checkboxList3: [],
  5199. classSearch: "",
  5200. gradeId: "",
  5201. number: "",
  5202. tTitle: "",
  5203. tdetail: "",
  5204. templateC: {},
  5205. AttText: {},
  5206. AttTextType: 0,
  5207. AttTextIndex: 0,
  5208. cTemplate: "",
  5209. CourseType: [],
  5210. CourseType1: [],
  5211. CourseType2: [],
  5212. CourseTypeJson: {},
  5213. CourseTypeJson1: {},
  5214. courseTypeId: [],
  5215. courseTypeId1: [],
  5216. courseTypeSon: [],
  5217. clearArray: [],
  5218. pTypeCheck: [],
  5219. pTypeCheckName: [],
  5220. loading: false,
  5221. toolType: 0,
  5222. inputShow: true,
  5223. inputShow2: true,
  5224. toolIndex: 0,
  5225. cidType: 0,
  5226. answerQ: "",
  5227. answerQ2: "",
  5228. grade: [],
  5229. grade2: [],
  5230. courseUserid: "",
  5231. timer: null,
  5232. timer2: null,
  5233. pasteTimer: null,
  5234. checkId: "",
  5235. isDelete: 1,
  5236. addindex: 0,
  5237. selectSteps: 1,
  5238. groupJson: {},
  5239. dialogVisibleGroup: false,
  5240. rightBoxHeight: 0,
  5241. ManAarray: [],
  5242. checkBoolean: false,
  5243. inviteCode: [],
  5244. inviteId: "",
  5245. icode: "",
  5246. easyArray: [2, 4],
  5247. sourceData: {},
  5248. updateSourcePan: false,
  5249. videoJson: {},
  5250. isBtnDisplay: false,
  5251. isStepDisplay: false,
  5252. isPasteStage: false,
  5253. isPasteTask: false,
  5254. isPasteChoice: false,
  5255. imageList: [],
  5256. imageloading: false,
  5257. searchImageValue: "",
  5258. ppage: 1,
  5259. toolsData: toolsData,
  5260. oldIndex: 0,
  5261. dragType: "",
  5262. oldUnitIndex: 0,
  5263. oldData: null,
  5264. newIndex: "",
  5265. englishList: {},
  5266. typeIndex: "",
  5267. courseState: 2,
  5268. taskJSONa: [
  5269. {
  5270. task: "",
  5271. taskDetail: "",
  5272. chapterData: [],
  5273. toolText: "",
  5274. toolChoose: [
  5275. {
  5276. tool: [],
  5277. toolDetail: "",
  5278. toolType: 0,
  5279. askCount: 1,
  5280. askTitle: "",
  5281. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5282. },
  5283. ],
  5284. isShowTools: false,
  5285. askCount: 1,
  5286. isFold: 1,
  5287. askTitle: "",
  5288. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5289. checkJson: [{ checkCount: [], checkPerent: [] }],
  5290. homeworkList: [],
  5291. },
  5292. ],
  5293. checkUnitIndex: 0,
  5294. isdrag: "",
  5295. evaIndex: "",
  5296. evatIndex: "",
  5297. evaBoxDialog: false,
  5298. EnglishVoiceDialog: false,
  5299. englishVoiceJson: {},
  5300. cetIndex: "",
  5301. cettIndex: "",
  5302. cetBoxDialog: false,
  5303. templateName: "",
  5304. setTypeJson: {
  5305. one: "",
  5306. two: "",
  5307. },
  5308. twoJson: [],
  5309. oneJson: [],
  5310. updateKey: 1,
  5311. isOutline: false,
  5312. infoData: [],
  5313. infoproVisible: false,
  5314. infoisFinishSize: 0,
  5315. infoisAllSize: 0,
  5316. infoprogress: 0,
  5317. };
  5318. },
  5319. directives: {
  5320. autoHeight: {
  5321. update(el, binding) {
  5322. const { value } = binding;
  5323. if (value && typeof value === "number") {
  5324. el.style.height = `${value}px`;
  5325. } else {
  5326. el.style.height = "auto";
  5327. }
  5328. },
  5329. componentUpdated(el) {
  5330. el.style.height = `${el.scrollHeight + 25}px`;
  5331. },
  5332. },
  5333. },
  5334. computed: {
  5335. // rightBoxHeight: function () {
  5336. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5337. // },
  5338. offsetLetfPx: function () {
  5339. //addnum可以直接在模板语法里面用,相当于data内的值
  5340. return (
  5341. $(".cru_select")[this.unitIndex] &&
  5342. $(".cru_select")[this.unitIndex].offsetLeft + 5
  5343. );
  5344. },
  5345. getMan2() {
  5346. return function (people) {
  5347. let _people = people;
  5348. let _people2 = "";
  5349. if (this.ManAarray.length) {
  5350. for (var i = 0; i < this.ManAarray.length; i++) {
  5351. if (this.ManAarray[i].userid == people) {
  5352. _people2 = this.ManAarray[i].name;
  5353. break;
  5354. }
  5355. }
  5356. }
  5357. if (people == this.courseUserid) {
  5358. return "";
  5359. }
  5360. return this.ManAarray.length ? _people2 : "";
  5361. };
  5362. },
  5363. getListMan2() {
  5364. return function (list) {
  5365. let _people2 = [];
  5366. if (this.ManAarray.length) {
  5367. for (var j = 0; j < list.length; j++) {
  5368. let people = list[j];
  5369. for (var i = 0; i < this.ManAarray.length; i++) {
  5370. if (
  5371. this.ManAarray[i].userid == people &&
  5372. people != this.courseUserid
  5373. ) {
  5374. _people2.push(this.ManAarray[i].name);
  5375. break;
  5376. }
  5377. }
  5378. }
  5379. }
  5380. return this.ManAarray.length ? _people2.join("、") : "";
  5381. };
  5382. },
  5383. isInvite() {
  5384. return function (cid) {
  5385. let array = [];
  5386. for (var i = 0; i < this.inviteCode.length; i++) {
  5387. array.push(this.inviteCode[i].cid);
  5388. }
  5389. return array.indexOf(cid) != -1;
  5390. };
  5391. },
  5392. getInviteCodeC() {
  5393. return function (cid) {
  5394. let array = [];
  5395. for (var i = 0; i < this.inviteCode.length; i++) {
  5396. array.push(this.inviteCode[i].cid);
  5397. }
  5398. return this.inviteCode[array.indexOf(cid)].ic;
  5399. };
  5400. },
  5401. getClassC() {
  5402. return function (c) {
  5403. let _c2 = "";
  5404. if (this.grade.length) {
  5405. for (var i = 0; i < this.grade.length; i++) {
  5406. if (this.grade[i].id == c) {
  5407. _c2 = this.grade[i].name;
  5408. break;
  5409. }
  5410. }
  5411. }
  5412. return this.grade.length ? _c2 : "";
  5413. };
  5414. },
  5415. getListClassC() {
  5416. return function (list) {
  5417. let _c2 = [];
  5418. if (this.grade.length) {
  5419. for (var j = 0; j < list.length; j++) {
  5420. let c = list[j];
  5421. for (var i = 0; i < this.grade.length; i++) {
  5422. if (this.grade[i].id == c) {
  5423. _c2.push(this.grade[i].name);
  5424. break;
  5425. }
  5426. }
  5427. }
  5428. }
  5429. return this.grade.length ? _c2.join("、") : "";
  5430. };
  5431. },
  5432. },
  5433. watch: {
  5434. unitIndex(newValue, oldValue) {
  5435. // return;
  5436. if (this.isDelete == 2) {
  5437. this.isDelete = 1;
  5438. return;
  5439. }
  5440. if (this.cid != "") {
  5441. let _unitIndex = oldValue;
  5442. if (
  5443. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5444. JSON.stringify(this.unitJson[_unitIndex])
  5445. ) {
  5446. this.$refs.rightboxR.scrollTop = 0;
  5447. return;
  5448. }
  5449. let cPan = 1;
  5450. for (
  5451. var j = 0;
  5452. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5453. j++
  5454. ) {
  5455. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5456. j
  5457. ].proVisible = false;
  5458. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5459. j
  5460. ].proVisible2 = false;
  5461. if (
  5462. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5463. .length > 1
  5464. ) {
  5465. for (
  5466. var z = 0;
  5467. z <
  5468. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5469. .length;
  5470. z++
  5471. ) {
  5472. if (
  5473. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5474. .toolChoose[z].tool.length
  5475. ) {
  5476. this.$message.error("请把工具添加完整");
  5477. cPan = 2;
  5478. break;
  5479. }
  5480. }
  5481. }
  5482. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5483. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5484. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5485. (ele) => {
  5486. return ele.value != "";
  5487. }
  5488. );
  5489. }
  5490. }
  5491. if (cPan == 2) {
  5492. this.unitIndex = oldValue;
  5493. return;
  5494. }
  5495. for (var i = 0; i < this.unitJson.length; i++) {
  5496. if (this.addindex != i) {
  5497. delete this.unitJson[i].isUpdate;
  5498. }
  5499. }
  5500. this.$refs.rightboxR.scrollTop = 0;
  5501. this.addindex = -1;
  5502. let params = [
  5503. {
  5504. cid: this.cid,
  5505. chapters: JSON.stringify(this.unitJson),
  5506. uid: this.userid,
  5507. unitIndex: _unitIndex,
  5508. },
  5509. ];
  5510. this.ajax
  5511. .post(this.$store.state.api + "updateWorkNew4", params)
  5512. .then((res) => {
  5513. // this.$message({
  5514. // message: "修改成功",
  5515. // type: "success",
  5516. // });
  5517. // this.courseId = this.cid;
  5518. })
  5519. .catch((err) => {
  5520. this.$message.error("网络不佳");
  5521. console.error(err);
  5522. });
  5523. }
  5524. },
  5525. steps(newValue, old) {
  5526. if (newValue == 4) {
  5527. let cPan = 1;
  5528. for (var i = 0; i < this.unitJson.length; i++) {
  5529. for (
  5530. var j = 0;
  5531. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5532. j++
  5533. ) {
  5534. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5535. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5536. if (
  5537. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5538. ) {
  5539. for (
  5540. var z = 0;
  5541. z <
  5542. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5543. z++
  5544. ) {
  5545. if (
  5546. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  5547. .tool.length
  5548. ) {
  5549. this.$message.error("请把工具添加完整");
  5550. cPan = 2;
  5551. break;
  5552. }
  5553. }
  5554. }
  5555. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5556. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5557. i
  5558. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5559. return ele.value != "";
  5560. });
  5561. }
  5562. }
  5563. }
  5564. this.inputShow = true;
  5565. if (cPan == 2) {
  5566. this.steps = old;
  5567. return;
  5568. }
  5569. this.goTo(
  5570. "/course?userid=" +
  5571. this.userid +
  5572. "&oid=" +
  5573. this.oid +
  5574. "&org=" +
  5575. this.org +
  5576. "&role=" +
  5577. this.role
  5578. );
  5579. }
  5580. },
  5581. },
  5582. methods: {
  5583. tableRowClassName({ row, rowIndex }) {
  5584. if ((rowIndex + 1) % 2 === 0) {
  5585. return "even_row";
  5586. } else {
  5587. return "";
  5588. }
  5589. },
  5590. close() {
  5591. this.cetIndex = "";
  5592. this.cettIndex = "";
  5593. this.templateName = "";
  5594. this.cetBoxDialog = false;
  5595. },
  5596. openAI() {
  5597. top.postMessage({ tools: "64" }, "*");
  5598. },
  5599. setMan() {
  5600. // let teacherJuri = this.teacherJuri2;
  5601. this.ManAarray = [];
  5602. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5603. if (_user.indexOf(this.userid) == -1) {
  5604. _user.push(this.userid);
  5605. }
  5606. if (_user.indexOf(this.courseUserid) == -1) {
  5607. _user.push(this.courseUserid);
  5608. }
  5609. let params = {
  5610. uid: _user.join(","),
  5611. };
  5612. this.ajax
  5613. .get(this.$store.state.api + "getAllUserById", params)
  5614. .then((res) => {
  5615. let teacherJuri = res.data[0];
  5616. this.ManAarray = teacherJuri;
  5617. })
  5618. .catch((err) => {
  5619. console.error(err);
  5620. });
  5621. },
  5622. previewImg(url) {
  5623. this.$hevueImgPreview(url);
  5624. },
  5625. btnDisplay(bool) {
  5626. this.isBtnDisplay = bool;
  5627. },
  5628. stepDisplay(bool) {
  5629. this.isStepDisplay = bool;
  5630. },
  5631. scrollChange() {
  5632. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5633. },
  5634. addHw(e) {
  5635. var el = e.currentTarget;
  5636. el.getElementsByTagName("input")[0].click();
  5637. },
  5638. change(val) {
  5639. if (this.dialogVisible1) {
  5640. this.tdetail = val;
  5641. } else if (this.dialogVisible6) {
  5642. this.AttText.text = val;
  5643. } else if (this.dialogVisible2) {
  5644. this.cTemplate = val;
  5645. } else if (this.dialogVisibleTable) {
  5646. this.tableJson.text = val;
  5647. }
  5648. this.$forceUpdate();
  5649. console.log(val);
  5650. },
  5651. change2(val) {
  5652. console.log(val);
  5653. this.$forceUpdate();
  5654. },
  5655. handleClose(done) {
  5656. done();
  5657. },
  5658. closePan(tool) {
  5659. if (tool == 15) {
  5660. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5661. this.dialogVisible8 = false;
  5662. } else {
  5663. this.closeConfirm(tool);
  5664. }
  5665. } else if (tool == 4) {
  5666. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5667. this.dialogVisible5 = false;
  5668. } else {
  5669. this.closeConfirm(tool);
  5670. }
  5671. } else if (tool == 45) {
  5672. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5673. this.dialogVisibleChoice = false;
  5674. } else {
  5675. this.closeConfirm(tool);
  5676. }
  5677. } else if (tool == 41) {
  5678. if (
  5679. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  5680. ) {
  5681. this.dialogVisibleSelect = false;
  5682. } else {
  5683. this.closeConfirm(tool);
  5684. }
  5685. } else if (tool == 47) {
  5686. if (
  5687. JSON.stringify(this.sentenceList) ==
  5688. JSON.stringify(this.sentenceList2)
  5689. ) {
  5690. this.dialogVisibleSentence = false;
  5691. } else {
  5692. this.closeConfirm(tool);
  5693. }
  5694. } else if (tool == 69) {
  5695. if (
  5696. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  5697. ) {
  5698. this.englishDialogVisible = false;
  5699. } else {
  5700. this.closeConfirm(tool);
  5701. }
  5702. }
  5703. },
  5704. closeConfirm(tool) {
  5705. this.$confirm("是否保存已编辑内容?", "提示", {
  5706. confirmButtonText: "保存",
  5707. cancelButtonText: "不保存",
  5708. type: "warning",
  5709. })
  5710. .then(() => {
  5711. if (tool == 15) {
  5712. this.addAnswer();
  5713. } else if (tool == 4) {
  5714. this.addAsk();
  5715. } else if (tool == 45) {
  5716. this.addTest();
  5717. } else if (tool == 41) {
  5718. this.addSelectAnswer();
  5719. } else if (tool == 47) {
  5720. this.addSentenceTool();
  5721. } else if (tool == 69) {
  5722. this.addEnglish();
  5723. }
  5724. })
  5725. .catch(() => {
  5726. if (tool == 15) {
  5727. this.dialogVisible8 = false;
  5728. } else if (tool == 4) {
  5729. this.dialogVisible5 = false;
  5730. } else if (tool == 45) {
  5731. this.dialogVisibleChoice = false;
  5732. } else if (tool == 41) {
  5733. this.dialogVisibleSelect = false;
  5734. } else if (tool == 47) {
  5735. this.dialogVisibleSentence = false;
  5736. } else if (tool == 69) {
  5737. this.englishDialogVisible = false;
  5738. }
  5739. });
  5740. },
  5741. addEnglish(jsonType) {
  5742. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  5743. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  5744. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  5745. if (
  5746. this.englishList.engTitle == "" ||
  5747. this.englishList.englishText == ""
  5748. ) {
  5749. this.$message.error("请将内容填写完整!");
  5750. return;
  5751. }
  5752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5753. this.taskCount
  5754. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5755. this.englishList = {};
  5756. if (jsonType && jsonType == 1) {
  5757. this.englishDialogVisible = true;
  5758. } else {
  5759. this.englishDialogVisible = false;
  5760. }
  5761. if (
  5762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5763. .toolChoose[this.toolIndex].tool != 69
  5764. ) {
  5765. this.addTools(69, this.taskCount, this.toolIndex);
  5766. }
  5767. },
  5768. imgChange2(i, j) {
  5769. var _tmp = this.testJson.testJson[i].checkList[j];
  5770. this.noneBtnImg = _tmp.length >= 1;
  5771. },
  5772. imgChange3(i) {
  5773. var _tmp = this.testJson.testJson[i];
  5774. this.noneBtnImg = _tmp.length >= 1;
  5775. },
  5776. imgChange1(file, fileList, type, itemTaskIndex) {
  5777. if (type == 1) {
  5778. var _tmp = this.cover;
  5779. } else if (
  5780. type == 2 ||
  5781. type == 3 ||
  5782. type == 6 ||
  5783. type == 7 ||
  5784. type == 8
  5785. ) {
  5786. var _tmp =
  5787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5788. .chapterData;
  5789. } else if (type == 4) {
  5790. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5791. } else {
  5792. var _tmp =
  5793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5794. .homeworkList;
  5795. }
  5796. this.noneBtnImg = _tmp.length >= 1;
  5797. },
  5798. goTo(path) {
  5799. this.$router.push(path);
  5800. },
  5801. guid() {
  5802. var _num,
  5803. i,
  5804. _guid = "";
  5805. for (i = 0; i < 32; i++) {
  5806. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5807. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5808. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5809. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5810. _guid += "-";
  5811. }
  5812. }
  5813. return _guid;
  5814. },
  5815. retrunCourse() {
  5816. this.$confirm("是否保存已编辑内容?", "提示", {
  5817. confirmButtonText: "保存",
  5818. cancelButtonText: "不保存",
  5819. distinguishCancelAndClose: true,
  5820. type: "warning",
  5821. })
  5822. .then(() => {
  5823. if (this.cid == "" || this.cid == undefined) {
  5824. if (this.courseName == "") {
  5825. this.$message.error("请补充填写课程名称");
  5826. return;
  5827. } else {
  5828. this.addWork();
  5829. }
  5830. this.steps = 4;
  5831. } else {
  5832. if (this.courseName == "") {
  5833. this.$message.error("请补充填写课程名称");
  5834. return;
  5835. } else {
  5836. if (this.userid != this.courseUserid && this.role != "1") {
  5837. this.updateWork2();
  5838. } else {
  5839. this.updateWork();
  5840. }
  5841. this.steps = 4;
  5842. }
  5843. }
  5844. })
  5845. .catch((v) => {
  5846. console.log(v);
  5847. if (v == "cancel") {
  5848. this.goTo(
  5849. "/course?userid=" +
  5850. this.userid +
  5851. "&oid=" +
  5852. this.oid +
  5853. "&org=" +
  5854. this.org +
  5855. "&role=" +
  5856. this.role
  5857. );
  5858. }
  5859. });
  5860. },
  5861. lastSteps() {
  5862. if (this.steps == 4) {
  5863. this.goTo(
  5864. "/course?userid=" +
  5865. this.userid +
  5866. "&oid=" +
  5867. this.oid +
  5868. "&org=" +
  5869. this.org +
  5870. "&role=" +
  5871. this.role
  5872. );
  5873. } else {
  5874. // if (this.cidType == 0) {
  5875. // this.steps--;
  5876. // if (this.steps == 1) {
  5877. // setTimeout(() => {
  5878. // this.checkEva(this.checkId);
  5879. // setTimeout(() => {
  5880. // this.checkEva(this.checkId);
  5881. // }, 100);
  5882. // }, 100);
  5883. // }
  5884. // } else {
  5885. if (this.steps == 3) {
  5886. this.steps = 1;
  5887. setTimeout(() => {
  5888. this.checkEva(this.checkId);
  5889. setTimeout(() => {
  5890. this.checkEva(this.checkId);
  5891. }, 100);
  5892. }, 100);
  5893. }
  5894. // }
  5895. }
  5896. },
  5897. navSteps(s) {
  5898. if (this.courseName == "") {
  5899. this.$message.error("请补充填写课程名称");
  5900. return;
  5901. }
  5902. if (this.cidType == 0) {
  5903. if (this.steps == 1) {
  5904. if (this.cid == "" || this.cid == undefined) {
  5905. this.addWork();
  5906. } else {
  5907. if (this.userid != this.courseUserid && this.role != "1") {
  5908. this.updateWork2();
  5909. } else {
  5910. this.updateWork();
  5911. }
  5912. }
  5913. }
  5914. if (s == 1) {
  5915. this.steps = 1;
  5916. setTimeout(() => {
  5917. this.checkEva(this.checkId);
  5918. setTimeout(() => {
  5919. this.checkEva(this.checkId);
  5920. }, 100);
  5921. }, 100);
  5922. }
  5923. if (s == 2) {
  5924. this.steps = 2;
  5925. }
  5926. if (s == 3) {
  5927. this.cTemplate = this.templateC.content;
  5928. this.dialogVisible2 = false;
  5929. this.steps = 3;
  5930. this.isClickColor = 1;
  5931. this.unitJson[
  5932. this.unitIndex
  5933. ].chapterInfo[0].taskJson[0].toolOpen = true;
  5934. this.$forceUpdate();
  5935. setTimeout(() => {
  5936. this.checkEva(this.checkId);
  5937. setTimeout(() => {
  5938. this.checkEva(this.checkId);
  5939. }, 100);
  5940. }, 1000);
  5941. }
  5942. } else {
  5943. if (this.steps == 1) {
  5944. if (this.cid == "" || this.cid == undefined) {
  5945. this.addWork();
  5946. } else {
  5947. if (this.userid != this.courseUserid && this.role != "1") {
  5948. this.updateWork2();
  5949. } else {
  5950. this.updateWork();
  5951. }
  5952. }
  5953. }
  5954. if (s == 1) {
  5955. this.steps = 1;
  5956. setTimeout(() => {
  5957. this.checkEva(this.checkId);
  5958. setTimeout(() => {
  5959. this.checkEva(this.checkId);
  5960. }, 100);
  5961. }, 100);
  5962. }
  5963. if (s == 3) {
  5964. this.cTemplate = this.templateC.content;
  5965. this.dialogVisible2 = false;
  5966. this.steps = 3;
  5967. this.isClickColor = 1;
  5968. this.unitJson[
  5969. this.unitIndex
  5970. ].chapterInfo[0].taskJson[0].toolOpen = true;
  5971. this.$forceUpdate();
  5972. setTimeout(() => {
  5973. this.checkEva(this.checkId);
  5974. setTimeout(() => {
  5975. this.checkEva(this.checkId);
  5976. }, 100);
  5977. }, 1000);
  5978. }
  5979. }
  5980. this.$refs.stepBox.scrollTop = 0;
  5981. },
  5982. nextSteps() {
  5983. // if (this.cidType == 1) {
  5984. if (this.steps == 1) {
  5985. if (this.courseName != "") {
  5986. if (!this.isOutline) {
  5987. this.loading = true
  5988. setTimeout(()=>{
  5989. this.loading = false
  5990. this.isOutline = true
  5991. },0)
  5992. // if(this.courseName == '热传递2'){
  5993. // this.unitJson = [{"dyName":"","chapterInfo":[{"isread":false,"chapterid":"631de859-2c2b-6780-cd3e-08c88a407cfe","title":"","courseName":"","taskJson":[{"task":"探究热的传递方式","taskDetail":"亲爱的同学们,今天我们将一起探索热是如何在不同的环境中传递的。我们将通过一系列有趣的实验来观察热在水中的传递过程。请大家准备好实验材料,并确保遵循安全指南。我们将使用感温粉末或红墨水来帮助我们直观地看到热是如何在水中移动的。在实验过程中,请大家仔细观察并记录你的发现,我们将一起讨论热对流是如何形成的。不要忘记,实验后我们要分享我们的观察结果,并探讨热对流在我们生活中的应用。让我们一起揭开热传递的神秘面纱吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[16],"toolDetail":"在工作单里详细记录你的实验步骤、观察到的现象以及你的分析和结论。请确保包含实验的目的、使用的材料、实验过程的描述和结果的解释。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[15],"toolDetail":"通过问答工具回答与热的传递方式相关的问题,以检验你对教学内容的理解和掌握程度。请仔细阅读每个问题,并给出准确的答案。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"answerQ":"问答"}],"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}],"taskDetail2":"任务设计:学生首先通过回顾和讨论日常生活中的热现象,如热水变凉、金属勺柄变热等,引入热传递的概念。然后教师引导学生通过实验观察水加热时的变化,使用感温粉末或红墨水在试管和烧杯中直观展示热在水中的传递过程。学生记录实验观察结果,并讨论热在水中的传递方式,理解热对流现象。最后,学生将实验结果与生活中的现象联系起来,探讨热对流在生活中的应用。\n\n评价标准:学生能够准确描述热在水中的传递方式;学生能够通过实验记录展示热对流的过程;学生能够举出生活中热对流的应用实例。"},{"task":"实验比较不同材料的导热性能","taskDetail":"大家好,接下来的活动我们将要比较不同材料的导热性能。我们会使用木勺、塑料勺和金属勺来进行一个有趣的“传热比赛”。我们将把这些勺子放入热水中,然后观察和记录哪一款勺子的手柄变热最快。这个实验将帮助我们理解哪些材料是热的良导体,哪些是不良导体。请大家设计实验步骤,并认真记录实验数据。我们将一起分析结果,并讨论为什么不同的材料会有不同的导热速度。准备好了吗?让我们开始实验,找出传热的冠军吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[48],"toolDetail":"使用表格工具记录和整理不同材料的导热性能数据。创建一个表格,列出每种材料的名称、预测的导热性能和实验结果,以便进行比较和分析。","toolType":1,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"tableJson":{"text":""}}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"实验操作和数据记录","detail":"学生应能够准确地进行实验操作,记录不同材料在相同条件下的导热性能数据。","score":5},{"value":"比较和推理能力","detail":"学生需要展示对不同材料导热性能的比较能力,并能够推理出哪些材料是热的良导体或不良导体。","score":5},{"value":"实际应用理解","detail":"学生应能够举出热的良导体和不良导体在生活中的应用实例,并解释其适用性。","score":5}],"taskDetail2":"任务设计:学生首先通过实验比较木勺、塑料勺和金属勺的导热性能,预测哪种材料的传热速度最快。使用热水、感温油墨和温度计进行实验,观察并记录不同材料勺柄上蜡的变化。然后学生根据实验结果,讨论和总结热的良导体和不良导体的特点。并通过进一步比较铜丝、铁丝和铝丝的导热性能,了解不同金属的导热性能差异。\n\n评价标准:学生能够根据实验数据正确排序不同材料的导热性能;学生能够解释为什么某些材料是热的良导体,而其他材料是热的不良导体;学生能够设计并执行实验,准确测量和记录温度变化。"},{"task":"设计保温杯的初步方案","taskDetail":"同学们,现在我们要把所学的热传递知识应用到实际中来。我们的目标是设计一个保温杯,让它能够有效地保持水的温度。在开始之前,让我们先讨论一下保温杯应该具备哪些特性和功能。接下来,你们将分组进行头脑风暴,提出创意设计方案。请记得考虑材料的选择,因为它们对保温效果至关重要。每个人都可以发挥自己的想象力,但也要确保设计的可行性。完成设计图后,我们一起分享和讨论每个方案的亮点和改进空间。让我们动手设计一个既实用又有创意的保温杯吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[52],"toolDetail":"利用文档工具撰写你的保温杯设计方案。请包括设计的目标、选用的材料、预期的功能和任何创新点。确保你的设计方案既实用又有创意。","toolType":1,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[3],"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":[],"eList":[{"value":"创新和设计思维","detail":"学生应展示出创新的设计理念,并能够根据保温需求提出一个切实可行的保温杯设计方案。","score":5},{"value":"材料选择和应用","detail":"学生需要能够合理选择材料,并解释这些材料如何满足保温杯的设计要求。","score":5},{"value":"方案表达和沟通","detail":"学生应能够清晰地表达和展示他们的设计方案,包括设计图和设计报告。","score":5}],"taskDetail2":"任务设计:学生团队首先讨论并确定保温杯的设计目标,如保温效果、材料选择、环保要求等。利用已学的热传递知识和不同材料的导热性能,设计保温杯的初步方案,包括结构、材料和预期功能。学生绘制保温杯的设计图,并准备必要的材料和工具。教师提供指导和建议,帮助学生完善设计方案。\n\n评价量规:学生能够清晰地阐述设计方案的创新点和实用性;设计图应包含所有必要的细节,如尺寸、材料和结构;学生能够根据热传递原理合理选择保温杯的材料。"},{"task":"制作保温杯原型","taskDetail":"优秀的设计师不仅仅是在纸上绘图,我们还需要将设计变为现实。今天,我们将根据之前设计的方案,动手制作保温杯的原型。请大家准备好所需的材料和工具,并确保遵循安全操作规程。在制作过程中,你们可能会遇到一些挑战,但请不要气馁。记住,每一个问题都是一个学习和改进的机会。如果在制作中有任何困难,可以随时向我寻求帮助。完成原型后,我们将进行一个简单的功能测试,看看我们的保温杯是否能有效地保持水的温度。让我们动手制作,展现我们的创造力吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[16],"toolDetail":"拍摄你在制作保温杯原型过程中的关键步骤照片,并上传到平台。请确保照片清晰地展示了制作过程,包括材料准备、制作步骤和最终成品。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[16],"toolDetail":"录制一个短视频,展示你制作保温杯的整个过程。在视频中解释你的操作步骤、遇到的挑战以及你是如何解决这些问题的。","toolType":2,"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":[],"eList":[{"value":"手工制作技能","detail":"学生应能够展示出将设计转化为实际原型的能力,并能够在制作过程中运用适当的技术和工具。","score":5},{"value":"问题解决和适应性","detail":"学生需要在遇到制作挑战时展示出问题解决的能力,并能够适应和调整设计方案。","score":5},{"value":"原型展示和评估","detail":"学生应能够展示完成的保温杯原型,并进行基本的功能测试以评估其性能。","score":5}],"taskDetail2":"活动设计:学生首先根据设计图和准备好的材料,动手制作保温杯原型。在制作过程中,学生需要考虑实际操作的可行性,解决可能出现的问题。教师提供技术指导和安全提示,确保学生能够安全有效地完成制作。学生记录制作过程中的观察和遇到的问题,以及解决方案。\n\n评价量规:学生能够按照设计图制作出功能完备的保温杯原型;学生能够在制作过程中展示出良好的问题解决能力和创新思维;学生能够记录并反思制作过程,提出可能的改进措施。"},{"task":"测试保温杯的效果并进行优化","taskDetail":"到目前为止,我们已经完成了保温杯的设计和制作。但是,一个好的设计需要经过测试和优化才能变得更完美。今天,我们将设计一系列的测试来评估我们的保温杯原型的效果。我们将记录水温随时间的变化,以了解保温杯的保温性能。请大家认真设计测试方案,并精确地记录数据。测试结束后,我们将一起分析结果,找出我们的保温杯的优点和不足。根据这些信息,我们需要提出改进措施,以优化我们的设计。让我们用科学的方法,提升我们的保温杯性能吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[48],"toolDetail":"使用表格工具记录保温杯效果测试的数据。请创建一个表格,包括测试时间、水温读数、环境条件等信息,并记录任何观察到的变化。","toolType":1,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[52],"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":[],"eList":[{"value":"测试方案设计","detail":"学生应能够设计出合理的测试方案,以科学地评估保温杯的保温效果。","score":5},{"value":"数据分析和解释","detail":"学生需要能够准确记录测试数据,并能够对数据进行分析,以评估保温杯的性能。","score":5},{"value":"优化和改进建议","detail":"学生应能够根据测试结果提出具体的优化措施,并解释这些改进如何提高保温杯的性能。","score":5}],"taskDetail2":"活动设计:学生设计并执行保温杯的效果测试,如比较不同保温方法的降温速率。根据测试结果,学生讨论保温杯的优缺点,并提出改进方案。学生实施改进措施,优化保温杯的设计和功能。教师引导学生分析测试数据,理解影响保温效果的关键因素。\n\n评价量规:学生能够设计合理的测试方案,准确测量保温效果;学生能够根据测试结果提出具体的改进措施,并有效实施;学生能够展示出对保温杯性能优化的理解和实践能力。"},{"task":"展示最终作品并撰写设计报告","taskDetail":"同学们,我们的保温杯项目已经接近尾声。现在是时候展示我们的成果,并记录下我们的整个设计旅程了。每个人都将参与到展示材料的准备中,包括PPT、展板和实物模型。在展示中,我们要清晰地介绍我们的设计理念、制作过程、测试结果和优化方案。同时,我们也将撰写一份详细的设计报告,这将帮助我们更好地反思和总结这个项目。请大家认真收集来自老师和同学们的反馈,这将是我们改进和成长的宝贵资源。让我们以最好的状态,展示我们的努力成果吧!","chapterData":[],"toolText":"","toolChoose":[{"tool":[16],"toolDetail":"创建一个PPT来展示你的保温杯设计和制作过程。请包括设计理念、制作步骤、测试结果和优化方案。确保PPT内容清晰、专业,并能够有效地传达你的设计亮点。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[52],"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":[],"eList":[{"value":"项目展示能力","detail":"学生应能够通过PPT或其他形式清晰、专业地展示他们的设计和制作过程。","score":5},{"value":"报告撰写和组织","detail":"学生需要能够撰写一份详细的设计报告,包括项目的所有关键方面,并以逻辑清晰的方式组织内容。","score":5},{"value":"反思和自我评估","detail":"学生应能够对整个项目进行反思,总结学习经验,并在报告中提出自我评估和未来改进的方向。","score":5}],"taskDetail2":"活动设计:学生团队准备展示材料,如PPT、展板和实物模型,全面展示保温杯的设计和制作过程。在展示过程中,学生需要清晰地介绍保温杯的设计理念、制作过程、测试结果和改进措施。学生撰写一份详细的设计报告,包括项目背景、设计思路、实验数据、测试结果和反思总结。教师和同学提供反馈和建议,帮助学生进一步完善作品和报告。\n\n评价量规:学生能够清晰、专业地展示最终作品和设计过程;设计报告应详细记录项目的每个阶段,包括成功经验和遇到的挑战;学生能够根据反馈进行反思,提出后续改进的可能性。"}],"itemCount":1,"fileList1":[],"video":[],"testData":[],"pData":[],"templateArray":[]}]}]
  5994. // }else if(this.courseName == '热传递1'){
  5995. // this.unitJson = [{"dyName":"","chapterInfo":[{"isread":false,"chapterid":"631de859-2c2b-6780-cd3e-08c88a407cfe","title":"","courseName":"","taskJson":[{"task":"什么是热传导?","taskDetail":"亲爱的学生,接下来我们将发掘热传导的奥秘。我会在黑板上为你们讲解这一主题。请你们专注听讲,仔细做笔记,理解并掌握热传导的原理。在课后,你们还需要翻阅科学书籍或查阅网络资源,以进一步深化对热传导的理解,并且我希望你们能够以一个清晰准确的概念图来梳理这个概念。","chapterData":[],"toolText":"","toolChoose":[{"tool":[3],"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}],"taskDetail2":"活动设计:首先,教师通过课堂讲解向学生们介绍热传导的基本概念,如温度差导致的热量转移等。随后,学生们可以通过查阅科学书籍和网络资源,深化对热传导的理解,完成一个简单的热传导的概念图。\n\n活动评价:评价学生所制作的概念图的完整性、准确性,以及学生对热传导的理解程度。"},{"task":"不同材质的热传导效果如何?","taskDetail":"接着,我们将探讨不同材质的热传导效果。你们需要设计并执行一个实验来比较不同材质(比如塑料和金属)的热传导效果。用你们所学的科学方法,准备实验材料,详细记录实验的步骤,过程和结果。记住,好的实验既准确又有趣。","chapterData":[],"toolText":"","toolChoose":[{"tool":[16],"toolDetail":"设计一个实验来比较不同材质(如塑料和金属)热传导效果,并详细记录实验步骤和所需材料,在这里提交你的实验设计。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"tableJson":{"text":""}}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"科学实验设计的能力","detail":"学生应该能设计并执行一个有效的实验,以比较不同材质(如塑料和金属)的热传导效果。","score":5},{"value":"观察和分析的能力","detail":"学生应该能详细记录实验过程和数据,从实验数据中发现和解释热传导率与材质之间的关系。","score":5},{"value":"批判性思考的能力","detail":"批判性思考的能力 学生应该能根据实验结果,对不同材质的热传导效果提出合理的解释。","score":5}],"taskDetail2":"活动设计:学生们需要设计并执行一个实验,来观察和测试不同材质(如塑料和金属)的热传导情况。他们需要准备实验材料,记录实验过程和数据,并进行初步的数据解析。\n\n活动评价:评价学生实验的设计合理性,对实验过程和结果的记录完整性,以及初步数据解析的准确性。"},{"task":"为什么塑料餐具比金属餐具冷得快?","taskDetail":"现在,让我们用已经收集到的实验数据来解决这个有趣的问题。你们需要结合实验数据来解释也就是为什么塑料餐具比金属餐具冷的快?你们需要吸取我们在课堂上所学到的知识,包括已经做过的实验,然后尝试提出你们自己的见解。如果需要帮助,请随时向我或者你的同学寻求答案。","chapterData":[],"toolText":"","toolChoose":[{"tool":[15],"toolDetail":"根据你的实验数据,解释为什么塑料餐具比金属餐具冷得快。提交你的答案。","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"answerQ":"问答"}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"科学解释的能力 ","detail":"学生应该能利用热传导的理论知识,根据实验数据科学地解释为什么塑料餐具比金属餐具冷得快。","score":5},{"value":"分析和解决问题的能力 ","detail":"学生应该能把理论与实际情况结合起来,分析问题并给出解决方案。","score":5},{"value":"创新性思考的能力 ","detail":"学生应该能在理解了热传导原理的基础上,对其他类似的现象提出自己的见解和预测。","score":5}],"taskDetail2":"活动设计:根据收集的实验数据,学生们得出关于塑料和金属传热速度的结论,并试图解释其原因。他们可能需要查阅相关资料或寻求导师的帮助来理解观察到的现象。\n\n活动评价:评价学生们的结论是否基于实验数据,其对相关现象的解释是否科学合理。"},{"task":"如何编写完整的热传导实验报告?","taskDetail":"最后,我们将把我们学到的知识整理成文字。你们需要编写一份完整的热传导实验报告,这包括实验的目的、步骤、结果和结论,同时还要学习如何整理和呈现数据。实验报告不仅是你们展示科学思维和科学技能的好机会,也是一个提升探究能力和逻辑思维能力的绝佳机会","chapterData":[],"toolText":"","toolChoose":[{"tool":[52],"toolDetail":"使用文档编辑器,整理你的实验数据,编写一份完整的热传导实验报告,并提交。","toolType":1,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false},{"tool":[40],"toolDetail":"在你的实验报告提交后,对你自己的实验报告进行评价。","toolType":7,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"rateJson":[{"detail":"ssss","score":5,"value":"sss"}]}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"写作和报告的能力 ","detail":"学生应该能写出一个完整且结构清晰的热传导实验报告,包括实验的目的、步骤、结果和结论。","score":5},{"value":"逻辑思维的能力","detail":"学生应该能在报告中明确展示他们的思考过程,分析和解释实验数据,解释实验结果。","score":5},{"value":"批判性和反思的能力 ","detail":"学生应该能对自己的实验过程和结果进行反思,找出可能的误差来源,提出改进的建议。","score":5}],"taskDetail2":"活动设计:在完成上述任务并得出结论后,学生们需要编写一份关于热传导的实验报告,包括实验的目的,实验的过程,实验的结果和结论等内容。他们还需要学习如何整理和呈现数据,以及如何书写科学报告。\n\n活动评价:评价报告的完整性,包括实验的目的、步骤、结果和结论等。也要评价学生报告的逻辑性,是否能清楚地表述自己的思路和发现。"}],"itemCount":1,"fileList1":[],"video":[],"testData":[],"pData":[],"templateArray":[]}]}]
  5996. // }else if(this.courseName == '热传递'){
  5997. // this.unitJson = [{"dyName":"","chapterInfo":[{"isread":false,"chapterid":"631de859-2c2b-6780-cd3e-08c88a407cfe","title":"","courseName":"","taskJson":[{"task":"热传导理论入门","taskDetail":"•预习材料:阅读提供的关于热传导的基础理论材料。\n•观看视频:观看教师推荐的热传导原理视频,记录至少三个关键点。\n•小组讨论:与小组成员讨论视频中的内容,并举例说明生活中的热传导现象。","chapterData":[],"toolText":"","toolChoose":[{"tool":[],"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}],"taskDetail2":"目标:使学生理解热传导的基本概念和原理。\n内容:\n•定义热传导及其在自然界和工程中的应用。\n•解释导热率和其他影响热传导的因素。\n•观看相关教育视频,加深对热传导现象的理解。\n活动:\n•教师讲解并展示PPT。\n•学生观看视频并记录关键信息。\n小组讨论:讨论生活中遇到的热传导实例。"},{"task":"实验探索热传导","taskDetail":"•实验设计:与小组成员合作,设计一个简单的实验来测试不同材料的热传导性能。\n•实验操作:按照设计的步骤进行实验,确保安全规范的同时,准确记录实验数据。\n•数据记录:使用表格记录每次实验的材料、温度变化和时间等数据。","chapterData":[],"toolText":"","toolChoose":[{"tool":[],"toolDetail":"","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"tableJson":{"text":""}}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"科学方法","detail":"实验设计的科学性和合理性。","score":5},{"value":"数据准确性","detail":"实验数据的准确记录和处理。","score":5},{"value":"安全遵守","detail":"实验过程中遵守安全规则的情况。","score":5}],"taskDetail2":"目标:通过实验比较不同材料的热传导性能。\n内容:\n•设计实验以测量不同材料(如铜、铝、木材)的热传导速率。\n•准备实验材料:热源、温度计、不同的传热材料。\n•实验步骤说明和安全指导。\n\n活动:\n•分组进行实验设计,确定实验方案。\n•实际操作,记录实验数据。\n分析实验结果,准备展示材料。"},{"task":"数据分析与科学报告","taskDetail":"•数据分析:使用Excel等软件工具,将收集的数据制作成图表。\n•报告撰写:根据分析结果撰写科学报告,包括实验目的、方法、结果和结论部分。\n•同伴评审:交换报告进行同伴评审,提供和接受反馈。","chapterData":[],"toolText":"","toolChoose":[{"tool":[],"toolDetail":"","toolType":2,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"answerQ":"问答"}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"分析技能","detail":"数据分析的准确性和图表的清晰度。","score":5},{"value":"报告质量","detail":"报告的完整性、逻辑性和语言表达。","score":5},{"value":"互动与反馈","detail":"在同伴评审中的积极性和建设性反馈。","score":5}],"taskDetail2":"目标:分析实验数据,撰写科学报告。\n内容:\n•学习如何使用图表和图形工具(如Excel)来表示数据。\n•讨论如何从数据中得出科学结论。\n•指导如何撰写科学实验报告。\n\n活动:\n•学生使用电脑软件处理实验数据。\n•编写实验报告,包括实验目的、方法、结果和结论。\n小组内互评报告,提出改进意见。"},{"task":"创意设计与产品制作","taskDetail":"•创意会议:进行头脑风暴,确定一个基于热传导原理的产品创意。\n•产品设计:绘制产品设计图,并列出所需材料和制作步骤。\n•产品制作:按照设计图制作产品原型,测试其功能。","chapterData":[],"toolText":"","toolChoose":[{"tool":[],"toolDetail":"","toolType":0,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"isFold3":false,"rateJson":[{"detail":"ssss","score":5,"value":"sss"}]}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"创意性","detail":"产品创意的独特性和创新性。","score":5},{"value":"设计实现","detail":"设计的可行性和产品制作的精确度。","score":5},{"value":"功能性","detail":"产品的实用性和符合热传导原理的有效性","score":5}],"taskDetail2":"目标:应用热传导知识,设计并制作一个原创产品。\n内容:\n•探索热传导在现实生活中的应用,如热水袋、保温杯等。\n•设计一个基于热传导原理的新产品或改进现有产品。\n•准备制作材料和工具。\n\n活动:\n•头脑风暴和创意设计会议。\n•制作原型或模型。\n准备展示,包括产品的工作原理和创新点介绍。"},{"task":"成果展示与评估","taskDetail":"•准备展示:准备展示材料,包括PPT、产品原型和报告。\n•展示演讲:在班级前进行项目展示,清晰地介绍项目背景、过程和结果。\n•互动问答:在展示后参与问答环节,回答同学和教师的问题。","chapterData":[],"toolText":"","toolChoose":[{"tool":[],"toolDetail":"","toolType":0,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}]}],"isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"eList":[{"value":"展示技巧","detail":"信息的清晰传达和演讲的流畅性。","score":5},{"value":"知识掌握","detail":"在问答环节中展示的专业知识掌握程度。","score":5},{"value":"团队合作","detail":"整个项目中团队成员的协作和贡献。","score":5}],"taskDetail2":"目标:展示学生的项目成果,进行评估和反馈。\n内容:\n•每个小组展示他们的科学报告和创意产品。\n•评估标准包括创意、科学性、实用性和展示技巧。\n•反馈和总结,讨论学习体会和改进空间。\n\n活动:\n1.成果展示会。\n2.评委和同学提问,小组成员回答。\n教师和同学提供反馈和评价。"}],"itemCount":1,"fileList1":[],"video":[],"testData":[],"pData":[],"templateArray":[]}]}]
  5998. // }
  5999. this.$forceUpdate();
  6000. return
  6001. }
  6002. this.loading = true
  6003. setTimeout(()=>{
  6004. this.loading = false
  6005. this.steps = 3;
  6006. },0)
  6007. this.isClickColor = 1;
  6008. this.unitJson[
  6009. this.unitIndex
  6010. ].chapterInfo[0].taskJson[0].toolOpen = true;
  6011. this.$forceUpdate();
  6012. setTimeout(() => {
  6013. this.checkEva(this.checkId);
  6014. setTimeout(() => {
  6015. this.checkEva(this.checkId);
  6016. }, 100);
  6017. }, 1000);
  6018. if (this.cid == "" || this.cid == undefined) {
  6019. this.addWork();
  6020. } else {
  6021. if (this.userid != this.courseUserid && this.role != "1") {
  6022. this.updateWork2();
  6023. } else {
  6024. this.updateWork();
  6025. }
  6026. }
  6027. } else {
  6028. this.$message.error("请补充填写课程名称");
  6029. return;
  6030. }
  6031. } else if (this.steps == 3) {
  6032. if (this.cid == "" || this.cid == undefined) {
  6033. if (this.courseName == "") {
  6034. this.$message.error("请补充填写课程名称");
  6035. return;
  6036. } else {
  6037. this.addWork();
  6038. this.steps++;
  6039. }
  6040. } else {
  6041. if (this.courseName == "") {
  6042. this.$message.error("请补充填写课程名称");
  6043. return;
  6044. } else {
  6045. if (this.userid != this.courseUserid && this.role != "1") {
  6046. this.updateWork2();
  6047. } else {
  6048. this.updateWork();
  6049. }
  6050. this.steps++;
  6051. }
  6052. }
  6053. }
  6054. // } else {
  6055. // if (this.steps == 1) {
  6056. // if (this.courseName != "") {
  6057. // if (this.cid == "" || this.cid == undefined) {
  6058. // this.addWork();
  6059. // } else {
  6060. // if (this.userid != this.courseUserid && this.role != "1") {
  6061. // // this.updateWork2();
  6062. // } else {
  6063. // this.updateWork();
  6064. // }
  6065. // }
  6066. // this.steps++;
  6067. // } else {
  6068. // this.$message.error("请补充填写课程名称");
  6069. // return;
  6070. // }
  6071. // } else if (this.steps == 2) {
  6072. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  6073. // this.cTemplate = this.templateC.content;
  6074. // }
  6075. // this.dialogVisible2 = false;
  6076. // this.steps++;
  6077. // setTimeout(() => {
  6078. // this.checkEva(this.checkId);
  6079. // setTimeout(() => {
  6080. // this.checkEva(this.checkId);
  6081. // }, 100);
  6082. // }, 1000);
  6083. // } else if (this.steps == 3) {
  6084. // if (this.cid == "" || this.cid == undefined) {
  6085. // if (this.courseName == "") {
  6086. // this.$message.error("请补充填写课程名称");
  6087. // return;
  6088. // } else {
  6089. // this.addWork();
  6090. // this.steps++;
  6091. // }
  6092. // } else {
  6093. // if (this.courseName == "") {
  6094. // this.$message.error("请补充填写课程名称");
  6095. // return;
  6096. // } else {
  6097. // if (this.userid != this.courseUserid && this.role != "1") {
  6098. // this.updateWork2();
  6099. // } else {
  6100. // this.updateWork();
  6101. // }
  6102. // this.steps++;
  6103. // }
  6104. // }
  6105. // }
  6106. // }
  6107. this.$refs.stepBox.scrollTop = 0;
  6108. },
  6109. unitSet(i) {
  6110. if (this.unitIndex == i) {
  6111. return;
  6112. }
  6113. this.unitIndex = i;
  6114. this.isClickColor = 1;
  6115. // this.$refs.rightboxR.scrollTop = 0;
  6116. this.$refs.unitBox.scrollTop = 0;
  6117. },
  6118. panUnitJson() {
  6119. let _unitIndex = this.unitIndex;
  6120. let cPan = 1;
  6121. for (
  6122. var j = 0;
  6123. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6124. j++
  6125. ) {
  6126. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6127. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6128. j
  6129. ].proVisible2 = false;
  6130. if (
  6131. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6132. .length > 1
  6133. ) {
  6134. for (
  6135. var z = 0;
  6136. z <
  6137. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6138. .length;
  6139. z++
  6140. ) {
  6141. if (
  6142. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6143. z
  6144. ].tool.length
  6145. ) {
  6146. this.$message.error("请把工具添加完整");
  6147. cPan = 2;
  6148. break;
  6149. }
  6150. }
  6151. }
  6152. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6153. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6154. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6155. (ele) => {
  6156. return ele.value != "";
  6157. }
  6158. );
  6159. }
  6160. }
  6161. return cPan;
  6162. },
  6163. unitOpen(i) {
  6164. if (this.unitJson[i].toolOpen) {
  6165. this.unitJson[i].toolOpen = false;
  6166. } else {
  6167. this.unitJson[i].toolOpen = true;
  6168. }
  6169. this.updateWork();
  6170. this.$forceUpdate();
  6171. },
  6172. unitSet2(i) {
  6173. if (this.panUnitJson() == 2) {
  6174. return;
  6175. }
  6176. // if(this.unitJson[i].toolOpen){
  6177. // this.unitJson[i].toolOpen = false
  6178. // this.updateWork()
  6179. // this.$forceUpdate()
  6180. // return
  6181. // }else {
  6182. this.unitJson[i].toolOpen = true;
  6183. // }
  6184. this.$forceUpdate();
  6185. if (this.unitIndex == i) {
  6186. return;
  6187. }
  6188. this.unitIndex = i;
  6189. this.isClickColor = 1;
  6190. // this.$refs.rightboxR.scrollTop = 0;
  6191. this.$refs.unitBox.scrollTop = 0;
  6192. },
  6193. updateCourseState(i) {
  6194. let params = [
  6195. {
  6196. cid: this.cid,
  6197. state: i,
  6198. },
  6199. ];
  6200. this.ajax
  6201. .post(this.$store.state.api + "updateCourseMode", params)
  6202. .then((res) => {
  6203. this.courseState = i;
  6204. })
  6205. .catch((err) => {
  6206. this.$message.error("网络不佳");
  6207. console.error(err);
  6208. });
  6209. },
  6210. time() {
  6211. if (!this.now) {
  6212. this.now = new Date().getTime();
  6213. return true;
  6214. } else {
  6215. let time = new Date().getTime();
  6216. if (time - this.now > 3000) {
  6217. this.now = time;
  6218. return true;
  6219. } else {
  6220. return false;
  6221. }
  6222. }
  6223. },
  6224. deleteUnit(i) {
  6225. var _this = this;
  6226. if (i == 0 && _this.unitJson.length == 1) {
  6227. _this
  6228. .$confirm("确定切换成任务模式吗?", "提示", {
  6229. confirmButtonText: "确定",
  6230. cancelButtonText: "取消",
  6231. type: "warning",
  6232. })
  6233. .then(() => {
  6234. _this.unitJson[i].dyName = "";
  6235. // _this.updateCourseState(2);
  6236. })
  6237. .catch(() => {
  6238. return;
  6239. });
  6240. } else {
  6241. _this
  6242. .$confirm("确定删除此阶段吗?", "提示", {
  6243. confirmButtonText: "确定",
  6244. cancelButtonText: "取消",
  6245. type: "warning",
  6246. })
  6247. .then(() => {
  6248. _this.isDelete = 2;
  6249. // _this.unitIndex = _this.unitIndex - 1;
  6250. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  6251. // _this.$message.success("删除成功");
  6252. })
  6253. .catch(() => {
  6254. return;
  6255. });
  6256. }
  6257. },
  6258. deleteWork(chapid) {
  6259. let params = [
  6260. {
  6261. cid: this.cid,
  6262. chapters: JSON.stringify(this.unitJson),
  6263. uid: this.userid,
  6264. chapid: chapid,
  6265. },
  6266. ];
  6267. this.ajax
  6268. .post(this.$store.state.api + "deleteWork", params)
  6269. .then((res) => {
  6270. this.$message({
  6271. message: "删除成功",
  6272. type: "success",
  6273. });
  6274. let task = JSON.parse(
  6275. JSON.stringify(
  6276. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  6277. )
  6278. );
  6279. this.unitJson.splice(this.unitIndex, 1);
  6280. if (this.unitIndex == 0) {
  6281. this.unitIndex = 0;
  6282. } else {
  6283. this.unitIndex = this.unitIndex - 1;
  6284. }
  6285. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  6286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  6287. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  6288. ...task,
  6289. ];
  6290. }
  6291. })
  6292. .catch((err) => {
  6293. this.$message.error("网络不佳");
  6294. console.error(err);
  6295. });
  6296. },
  6297. deleteTool(itemTaskIndex, i) {
  6298. var _this = this;
  6299. if (_this.time()) {
  6300. _this
  6301. .$confirm("确定删除此工具吗?", "提示", {
  6302. confirmButtonText: "确定",
  6303. cancelButtonText: "取消",
  6304. type: "warning",
  6305. })
  6306. .then(() => {
  6307. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6308. itemTaskIndex
  6309. ].toolChoose.splice(i, 1);
  6310. _this.$message.success("删除成功");
  6311. })
  6312. .catch(() => {
  6313. return;
  6314. });
  6315. }
  6316. },
  6317. deleteSentence(i) {
  6318. var _this = this;
  6319. _this
  6320. .$confirm("确定删除此题目吗?", "提示", {
  6321. confirmButtonText: "确定",
  6322. cancelButtonText: "取消",
  6323. type: "warning",
  6324. })
  6325. .then(() => {
  6326. _this.sentenceList.splice(i, 1);
  6327. _this.$message.success("删除成功");
  6328. })
  6329. .catch(() => {
  6330. return;
  6331. });
  6332. },
  6333. deleteS(s, i, j) {
  6334. this.sentenceList[i].addSentence.splice(j, 1);
  6335. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  6336. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  6337. this.sentenceList[i].rightAnswer.splice(a, 1);
  6338. }
  6339. },
  6340. openT() {
  6341. top.postMessage({ tools: "25" }, "*");
  6342. },
  6343. deleteTask(i) {
  6344. var _this = this;
  6345. if (_this.time()) {
  6346. _this
  6347. .$confirm(
  6348. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  6349. 1 ==
  6350. i
  6351. ? "确定删除此任务吗?"
  6352. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  6353. "提示",
  6354. {
  6355. confirmButtonText: "确定",
  6356. cancelButtonText: "取消",
  6357. type: "warning",
  6358. }
  6359. )
  6360. .then(() => {
  6361. if (i == 0) {
  6362. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6363. i + 1
  6364. ].chapterData = JSON.parse(
  6365. JSON.stringify(
  6366. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  6367. .chapterData
  6368. )
  6369. );
  6370. }
  6371. _this.$forceUpdate();
  6372. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  6373. i,
  6374. 1
  6375. );
  6376. _this.$message.success("删除成功");
  6377. })
  6378. .catch(() => {
  6379. return;
  6380. });
  6381. }
  6382. },
  6383. handlePictureCardPreview(file) {
  6384. this.dialogImageUrl = file.url;
  6385. },
  6386. clean(i, c) {
  6387. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  6388. },
  6389. handle_remove1(file, fileList, type) {
  6390. var _tmp = this.cover;
  6391. // for (var i = 0, len = _tmp.length; i < len; i++) {
  6392. // if (_tmp[i].uid == file.uid) {
  6393. // _tmp.splice(i, 1);
  6394. // break;
  6395. // }
  6396. // this.cover = _tmp;
  6397. // }
  6398. this.cover = [];
  6399. this.noneBtnImg = this.cover.length >= 1;
  6400. this.isSysPic = false;
  6401. this.isSysPic2 = false;
  6402. this.$forceUpdate();
  6403. },
  6404. addImg(e) {
  6405. var el = e.currentTarget;
  6406. el.getElementsByTagName("input")[0].click();
  6407. e.target.value = "";
  6408. },
  6409. addChaptersTools(i) {
  6410. this.chapTools = [
  6411. {
  6412. tools: [],
  6413. toolDetail: "",
  6414. },
  6415. ];
  6416. this.chapCount = i;
  6417. this.dialogVisible4 = true;
  6418. },
  6419. isNoFinsh() {
  6420. this.$message.warning("功能正在开发中");
  6421. },
  6422. addAttText(i) {
  6423. this.AttText = {
  6424. title: "",
  6425. text: "",
  6426. };
  6427. this.taskCount = i;
  6428. this.AttTextType = 0;
  6429. this.$forceUpdate();
  6430. this.dialogVisible6 = true;
  6431. setTimeout(() => {
  6432. this.$refs["fuInput"].focus();
  6433. }, 100);
  6434. },
  6435. openLine(i) {
  6436. this.line = "";
  6437. this.lineCount = i;
  6438. this.lineType = 0;
  6439. this.$forceUpdate();
  6440. this.dialogVisible7 = true;
  6441. },
  6442. pasteLine(i) {
  6443. navigator.clipboard
  6444. .readText()
  6445. .then((v) => {
  6446. console.log("获取剪贴板成功:", v);
  6447. const html = v;
  6448. const regex = /src="(.*?)"/g;
  6449. const match = regex.exec(html);
  6450. if (match && match[1]) {
  6451. console.log(match[1]);
  6452. this.$message.success("粘贴成功");
  6453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6454. i
  6455. ].chapterData.push({
  6456. name: "链接",
  6457. title: "嵌入代码",
  6458. url: match[1],
  6459. type: 8,
  6460. });
  6461. } else {
  6462. // console.log("未找到包含 src 属性的 iframe");
  6463. this.$message.error(
  6464. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  6465. );
  6466. }
  6467. })
  6468. .catch((v) => {
  6469. console.log("获取剪贴板失败: ", v);
  6470. });
  6471. },
  6472. openSource(i) {
  6473. this.lineCount = i;
  6474. this.sourceData = {};
  6475. this.dialogVisibleSource = true;
  6476. this.updateSourcePan = false;
  6477. },
  6478. addSource() {
  6479. if (!Object.keys(this.sourceData).length) {
  6480. this.$message.error("请选择要上传的资源");
  6481. return;
  6482. }
  6483. let keys = Object.keys(this.sourceData);
  6484. for (var i = 0; i < keys.length; i++) {
  6485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6486. this.lineCount
  6487. ].chapterData.push({
  6488. name: "链接",
  6489. title: this.sourceData[keys[i]].name,
  6490. url: this.sourceData[keys[i]].url,
  6491. type: 14,
  6492. id: keys[i],
  6493. });
  6494. }
  6495. this.$forceUpdate();
  6496. this.dialogVisibleSource = false;
  6497. },
  6498. updateSource() {
  6499. if (!Object.keys(this.sourceData).length) {
  6500. this.$message.error("请选择要上传的资源");
  6501. return;
  6502. }
  6503. let keys = Object.keys(this.sourceData);
  6504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6505. this.taskCount
  6506. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  6507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6508. this.taskCount
  6509. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  6510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6511. this.taskCount
  6512. ].chapterData[this.lineCount].id = keys[0];
  6513. this.updateSourcePan = false;
  6514. this.$forceUpdate();
  6515. this.dialogVisibleSource = false;
  6516. },
  6517. deleteM(i, j) {
  6518. this.testJson.testJson[i].timuList.splice(j, 1);
  6519. },
  6520. beforeUploadTiMu(event, i) {
  6521. const loading = this.openLoading();
  6522. var file = event.target.files[0];
  6523. var credentials = {
  6524. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6525. secretAccessKey: "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",
  6526. }; //秘钥形式的登录上传
  6527. window.AWS.config.update(credentials);
  6528. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6529. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6530. var _this = this;
  6531. if (file) {
  6532. var params = {
  6533. Key:
  6534. file.name.split(".")[0] +
  6535. new Date().getTime() +
  6536. "." +
  6537. file.name.split(".")[file.name.split(".").length - 1],
  6538. ContentType: file.type,
  6539. Body: file,
  6540. "Access-Control-Allow-Credentials": "*",
  6541. ACL: "public-read",
  6542. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6543. var options = {
  6544. partSize: 2048 * 1024 * 1024,
  6545. queueSize: 2,
  6546. leavePartsOnError: true,
  6547. };
  6548. bucket
  6549. .upload(params, options)
  6550. .on("httpUploadProgress", function (evt) {
  6551. //这里可以写进度条
  6552. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6553. })
  6554. .send(function (err, data) {
  6555. loading.close();
  6556. if (err) {
  6557. _this.$message.error("上传失败");
  6558. } else {
  6559. if (_this.testJson.testJson[i].timuList) {
  6560. _this.testJson.testJson[i].timuList.push({
  6561. src: data.Location,
  6562. });
  6563. } else {
  6564. _this.testJson.testJson[i].timuList = [];
  6565. _this.testJson.testJson[i].timuList.push({
  6566. src: data.Location,
  6567. });
  6568. }
  6569. _this.imgChange3(i);
  6570. _this.$forceUpdate();
  6571. }
  6572. });
  6573. }
  6574. },
  6575. beforeUploadTi(event, i, j) {
  6576. const loading = this.openLoading();
  6577. var file = event.target.files[0];
  6578. var credentials = {
  6579. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6580. secretAccessKey: "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",
  6581. }; //秘钥形式的登录上传
  6582. window.AWS.config.update(credentials);
  6583. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6584. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6585. var _this = this;
  6586. if (file) {
  6587. var params = {
  6588. Key:
  6589. file.name.split(".")[0] +
  6590. new Date().getTime() +
  6591. "." +
  6592. file.name.split(".")[file.name.split(".").length - 1],
  6593. ContentType: file.type,
  6594. Body: file,
  6595. "Access-Control-Allow-Credentials": "*",
  6596. ACL: "public-read",
  6597. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6598. var options = {
  6599. partSize: 2048 * 1024 * 1024,
  6600. queueSize: 2,
  6601. leavePartsOnError: true,
  6602. };
  6603. bucket
  6604. .upload(params, options)
  6605. .on("httpUploadProgress", function (evt) {
  6606. //这里可以写进度条
  6607. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6608. })
  6609. .send(function (err, data) {
  6610. loading.close();
  6611. if (err) {
  6612. _this.$message.error("上传失败");
  6613. } else {
  6614. _this.testJson.testJson[i].checkList[j] = {};
  6615. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6616. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6617. _this.imgChange2(i, j);
  6618. _this.$forceUpdate();
  6619. }
  6620. });
  6621. }
  6622. },
  6623. beforeUpload1(event, type) {
  6624. // const loading = this.openLoading();
  6625. var file = event.target.files[0];
  6626. var credentials = {
  6627. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6628. secretAccessKey: "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",
  6629. }; //秘钥形式的登录上传
  6630. window.AWS.config.update(credentials);
  6631. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6632. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6633. var _this = this;
  6634. if (file) {
  6635. var params = {
  6636. Key:
  6637. file.name.split(".")[0] +
  6638. new Date().getTime() +
  6639. "." +
  6640. file.name.split(".")[file.name.split(".").length - 1],
  6641. ContentType: file.type,
  6642. Body: file,
  6643. "Access-Control-Allow-Credentials": "*",
  6644. ACL: "public-read",
  6645. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6646. var options = {
  6647. partSize: 2048 * 1024 * 1024,
  6648. queueSize: 2,
  6649. leavePartsOnError: true,
  6650. };
  6651. bucket
  6652. .upload(params, options)
  6653. .on("httpUploadProgress", function (evt) {
  6654. //这里可以写进度条
  6655. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6656. })
  6657. .send(function (err, data) {
  6658. // loading.close();
  6659. if (err) {
  6660. // var a = _this.$refs.upload1.uploadFiles;
  6661. // a.splice(a.length - 1, a.length);
  6662. _this.$message.error("上传失败");
  6663. } else {
  6664. // _this.cover.push({
  6665. // name: file.name,
  6666. // url: data.Location,
  6667. // uid: file.uid,
  6668. // });
  6669. _this.cover = [
  6670. {
  6671. name: file.name,
  6672. url: data.Location,
  6673. uid: file.uid,
  6674. },
  6675. ];
  6676. _this.imgChange1(null, null, 1, null);
  6677. _this.choosePicVisible = false;
  6678. console.log(data.Location);
  6679. }
  6680. });
  6681. }
  6682. },
  6683. beforeUploadSelect(event, type) {
  6684. // const loading = this.openLoading();
  6685. var file = event.target.files[0];
  6686. var credentials = {
  6687. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6688. secretAccessKey: "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",
  6689. }; //秘钥形式的登录上传
  6690. window.AWS.config.update(credentials);
  6691. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6692. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6693. var _this = this;
  6694. if (file) {
  6695. var params = {
  6696. Key:
  6697. file.name.split(".")[0] +
  6698. new Date().getTime() +
  6699. "." +
  6700. file.name.split(".")[file.name.split(".").length - 1],
  6701. ContentType: file.type,
  6702. Body: file,
  6703. "Access-Control-Allow-Credentials": "*",
  6704. ACL: "public-read",
  6705. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6706. var options = {
  6707. partSize: 2048 * 1024 * 1024,
  6708. queueSize: 2,
  6709. leavePartsOnError: true,
  6710. };
  6711. bucket
  6712. .upload(params, options)
  6713. .on("httpUploadProgress", function (evt) {
  6714. //这里可以写进度条
  6715. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6716. })
  6717. .send(function (err, data) {
  6718. // loading.close();
  6719. if (err) {
  6720. _this.$message.error("上传失败");
  6721. } else {
  6722. _this.selectJson.url = data.Location;
  6723. console.log(data.Location);
  6724. }
  6725. });
  6726. }
  6727. },
  6728. chooseSysPic(p) {
  6729. this.cover = [];
  6730. setTimeout(() => {
  6731. this.cover[0] = {
  6732. name: "系统图片.png",
  6733. url: p,
  6734. };
  6735. this.imgChange1(null, null, 1, null);
  6736. this.$forceUpdate();
  6737. }, 0);
  6738. this.isSysPic = true;
  6739. this.isSysPic2 = false;
  6740. this.sysPicVisible = false;
  6741. this.$forceUpdate();
  6742. },
  6743. chooseSysPic2(p) {
  6744. this.cover = [];
  6745. setTimeout(() => {
  6746. this.cover[0] = {
  6747. name: "网络图片.png",
  6748. url: p,
  6749. };
  6750. this.imgChange1(null, null, 1, null);
  6751. this.$forceUpdate();
  6752. }, 0);
  6753. this.isSysPic2 = true;
  6754. this.isSysPic = false;
  6755. this.sysPicVisible2 = false;
  6756. this.$forceUpdate();
  6757. },
  6758. beforeUpload(data) {
  6759. this.$refs.upload1.uploadFiles;
  6760. this.uploadLoading1 = true;
  6761. var file = data.file;
  6762. var credentials = {
  6763. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6764. secretAccessKey: "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",
  6765. }; //秘钥形式的登录上传
  6766. window.AWS.config.update(credentials);
  6767. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6768. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6769. var _this = this;
  6770. if (file) {
  6771. var params = {
  6772. Key:
  6773. file.name.split(".")[0] +
  6774. new Date().getTime() +
  6775. "." +
  6776. file.name.split(".")[file.name.split(".").length - 1],
  6777. ContentType: file.type,
  6778. Body: file,
  6779. "Access-Control-Allow-Credentials": "*",
  6780. ACL: "public-read",
  6781. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6782. var options = {
  6783. partSize: 2048 * 1024 * 1024,
  6784. queueSize: 2,
  6785. leavePartsOnError: true,
  6786. };
  6787. bucket
  6788. .upload(params, options)
  6789. .on("httpUploadProgress", function (evt) {
  6790. //这里可以写进度条
  6791. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6792. })
  6793. .send(function (err, data) {
  6794. _this.uploadLoading1 = false;
  6795. if (err) {
  6796. // var a = _this.$refs.upload1.uploadFiles;
  6797. // a.splice(a.length - 1, a.length);
  6798. _this.$message.error("上传失败");
  6799. } else {
  6800. //上传成功处理
  6801. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6802. name: file.name,
  6803. url: data.Location,
  6804. uid: file.uid,
  6805. });
  6806. _this.imgChange();
  6807. console.log(data.Location);
  6808. }
  6809. });
  6810. }
  6811. },
  6812. onExceed() {
  6813. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6814. },
  6815. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6816. // const loading = this.openLoading();
  6817. var file = event.target.files[0];
  6818. var credentials = {
  6819. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6820. secretAccessKey: "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",
  6821. }; //秘钥形式的登录上传
  6822. window.AWS.config.update(credentials);
  6823. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6824. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6825. var _this = this;
  6826. if (type == 3) {
  6827. var b = [
  6828. "DOC",
  6829. "DOCX",
  6830. "DOCM",
  6831. "DOTM",
  6832. "DOTX",
  6833. "PPTX",
  6834. "PPSX",
  6835. "PPT",
  6836. "PPS",
  6837. "PPTM",
  6838. "POTM",
  6839. "PPAM",
  6840. "POTX",
  6841. "PPSM",
  6842. ];
  6843. if (
  6844. b.indexOf(
  6845. file.name
  6846. .split(".")
  6847. [file.name.split(".").length - 1].toLocaleUpperCase()
  6848. ) != -1
  6849. ) {
  6850. if (file.size / 1024 / 1024 > 80) {
  6851. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6852. this.inputShow = true;
  6853. // var a = _this.$refs.upload1.uploadFiles;
  6854. // a.splice(a.length - 1, a.length);
  6855. // loading.close();
  6856. return;
  6857. }
  6858. } else if (
  6859. file.name
  6860. .split(".")
  6861. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6862. ) {
  6863. if (file.size / 1024 / 1024 > 80) {
  6864. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6865. this.inputShow = true;
  6866. // var a = _this.$refs.upload1.uploadFiles;
  6867. // a.splice(a.length - 1, a.length);
  6868. // loading.close();
  6869. return;
  6870. }
  6871. }
  6872. }
  6873. this.inputShow = false;
  6874. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6875. itemTaskIndex
  6876. ].progress = 0;
  6877. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6878. itemTaskIndex
  6879. ].proVisible = true;
  6880. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6881. itemTaskIndex
  6882. ].isFinishSize = 0;
  6883. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6884. itemTaskIndex
  6885. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6886. _this.$forceUpdate();
  6887. if (file) {
  6888. var params = {
  6889. Key:
  6890. file.name.split(".")[0] +
  6891. new Date().getTime() +
  6892. "." +
  6893. file.name.split(".")[file.name.split(".").length - 1],
  6894. ContentType: file.type,
  6895. Body: file,
  6896. "Access-Control-Allow-Credentials": "*",
  6897. ACL: "public-read",
  6898. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6899. var options = {
  6900. partSize: 2048 * 1024 * 1024,
  6901. queueSize: 2,
  6902. leavePartsOnError: true,
  6903. };
  6904. bucket
  6905. .upload(params, options)
  6906. .on("httpUploadProgress", function (evt) {
  6907. //这里可以写进度条
  6908. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6909. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6910. itemTaskIndex
  6911. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6912. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6913. itemTaskIndex
  6914. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6915. _this.$forceUpdate();
  6916. })
  6917. .send(function (err, data) {
  6918. // loading.close();
  6919. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6920. itemTaskIndex
  6921. ].progress = 100;
  6922. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6923. itemTaskIndex
  6924. ].isFinishSize =
  6925. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6926. itemTaskIndex
  6927. ].isAllSize;
  6928. _this.$forceUpdate();
  6929. setTimeout(() => {
  6930. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6931. itemTaskIndex
  6932. ].proVisible = false;
  6933. _this.$forceUpdate();
  6934. }, 1000);
  6935. _this.inputShow = true;
  6936. if (err) {
  6937. // var a = _this.$refs.upload1.uploadFiles;
  6938. // a.splice(a.length - 1, a.length);
  6939. _this.$message.error("上传失败");
  6940. } else {
  6941. if (type == 13) {
  6942. let _type = 2;
  6943. var imgA = [
  6944. "png",
  6945. "jpg",
  6946. "jpeg",
  6947. "bmp",
  6948. "gif",
  6949. "webp",
  6950. "psd",
  6951. "svg",
  6952. "tiff",
  6953. ];
  6954. var fileA = [
  6955. "PDF",
  6956. "DOC",
  6957. "DOCX",
  6958. "DOCM",
  6959. "DOTM",
  6960. "DOTX",
  6961. "PPTX",
  6962. "PPSX",
  6963. "PPT",
  6964. "PPS",
  6965. "PPTM",
  6966. "POTM",
  6967. "PPAM",
  6968. "POTX",
  6969. "PPSM",
  6970. "XLSX",
  6971. "XLS",
  6972. ];
  6973. var videoA = [
  6974. "AVI",
  6975. "NAVI",
  6976. "MPEG",
  6977. "ASF",
  6978. "MOV",
  6979. "WMV",
  6980. "3GP",
  6981. "RM",
  6982. "RMVB",
  6983. "FLV",
  6984. "F4V",
  6985. "H.264",
  6986. "H.265",
  6987. "REAL VIDEO",
  6988. "MKV",
  6989. "WebM",
  6990. "HDDVD",
  6991. "MP4",
  6992. "MPG",
  6993. "M4V",
  6994. "MGV",
  6995. "OGV",
  6996. "QTM",
  6997. "STR",
  6998. "AMC",
  6999. "DVX",
  7000. "EVO",
  7001. "DAT",
  7002. "OGG",
  7003. "OGM",
  7004. ];
  7005. if (
  7006. fileA.indexOf(
  7007. data.Location.split(".")[
  7008. data.Location.split(".").length - 1
  7009. ].toLocaleUpperCase()
  7010. ) != -1
  7011. ) {
  7012. _type = 3;
  7013. } else if (
  7014. videoA.indexOf(
  7015. data.Location.split(".")[
  7016. data.Location.split(".").length - 1
  7017. ].toLocaleUpperCase()
  7018. ) != -1
  7019. ) {
  7020. _type = 2;
  7021. } else if (
  7022. imgA.indexOf(
  7023. data.Location.split(".")[
  7024. data.Location.split(".").length - 1
  7025. ].toLocaleLowerCase()
  7026. ) != -1
  7027. ) {
  7028. _type = 13;
  7029. } else {
  7030. _type = 12;
  7031. }
  7032. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7033. itemTaskIndex
  7034. ].chapterData.push({
  7035. name: file.name,
  7036. url: data.Location,
  7037. uid: file.uid,
  7038. type: _type,
  7039. });
  7040. _this.imgChange1(null, null, _type, itemTaskIndex);
  7041. } else if (type == 2 || type == 3 || type == 12) {
  7042. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7043. itemTaskIndex
  7044. ].chapterData.push({
  7045. name: file.name,
  7046. url: data.Location,
  7047. uid: file.uid,
  7048. type: type,
  7049. });
  7050. _this.imgChange1(null, null, type, itemTaskIndex);
  7051. } else if (type == 4) {
  7052. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7053. itemTaskIndex
  7054. ].fileList1.push({
  7055. name: file.name,
  7056. url: data.Location,
  7057. uid: file.uid,
  7058. });
  7059. _this.imgChange1(null, null, type, itemTaskIndex);
  7060. } else if (type == 5) {
  7061. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7062. itemTaskIndex
  7063. ].homeworkList.push({
  7064. name: file.name,
  7065. url: data.Location,
  7066. uid: file.uid,
  7067. });
  7068. _this.imgChange1(null, null, type, itemTaskIndex);
  7069. }
  7070. console.log(data.Location);
  7071. }
  7072. });
  7073. }
  7074. },
  7075. beforeUploadInfo2(event, type) {
  7076. // const loading = this.openLoading();
  7077. var file = event.target.files[0];
  7078. var credentials = {
  7079. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7080. secretAccessKey: "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",
  7081. }; //秘钥形式的登录上传
  7082. window.AWS.config.update(credentials);
  7083. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7084. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7085. var _this = this;
  7086. if (type == 3) {
  7087. var b = [
  7088. "DOC",
  7089. "DOCX",
  7090. "DOCM",
  7091. "DOTM",
  7092. "DOTX",
  7093. "PPTX",
  7094. "PPSX",
  7095. "PPT",
  7096. "PPS",
  7097. "PPTM",
  7098. "POTM",
  7099. "PPAM",
  7100. "POTX",
  7101. "PPSM",
  7102. ];
  7103. if (
  7104. b.indexOf(
  7105. file.name
  7106. .split(".")
  7107. [file.name.split(".").length - 1].toLocaleUpperCase()
  7108. ) != -1
  7109. ) {
  7110. if (file.size / 1024 / 1024 > 80) {
  7111. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7112. this.inputShow = true;
  7113. // var a = _this.$refs.upload1.uploadFiles;
  7114. // a.splice(a.length - 1, a.length);
  7115. // loading.close();
  7116. return;
  7117. }
  7118. } else if (
  7119. file.name
  7120. .split(".")
  7121. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7122. ) {
  7123. if (file.size / 1024 / 1024 > 80) {
  7124. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7125. this.inputShow = true;
  7126. // var a = _this.$refs.upload1.uploadFiles;
  7127. // a.splice(a.length - 1, a.length);
  7128. // loading.close();
  7129. return;
  7130. }
  7131. }
  7132. }
  7133. this.inputShow = false;
  7134. _this.infoprogress = 0;
  7135. _this.infoproVisible = true;
  7136. _this.infoisFinishSize = 0;
  7137. _this.infoisAllSize = (file.size / 1024 / 1024).toFixed(2);
  7138. _this.$forceUpdate();
  7139. if (file) {
  7140. var params = {
  7141. Key:
  7142. file.name.split(".")[0] +
  7143. new Date().getTime() +
  7144. "." +
  7145. file.name.split(".")[file.name.split(".").length - 1],
  7146. ContentType: file.type,
  7147. Body: file,
  7148. "Access-Control-Allow-Credentials": "*",
  7149. ACL: "public-read",
  7150. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7151. var options = {
  7152. partSize: 2048 * 1024 * 1024,
  7153. queueSize: 2,
  7154. leavePartsOnError: true,
  7155. };
  7156. bucket
  7157. .upload(params, options)
  7158. .on("httpUploadProgress", function (evt) {
  7159. //这里可以写进度条
  7160. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7161. _this.infoprogress = parseInt((evt.loaded / evt.total) * 100);
  7162. _this.infoisFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7163. _this.$forceUpdate();
  7164. })
  7165. .send(function (err, data) {
  7166. // loading.close();
  7167. _this.infoprogress = 100;
  7168. _this.infoisFinishSize = _this.infoisAllSize;
  7169. _this.$forceUpdate();
  7170. setTimeout(() => {
  7171. _this.infoproVisible = false;
  7172. _this.$forceUpdate();
  7173. }, 1000);
  7174. _this.inputShow = true;
  7175. if (err) {
  7176. // var a = _this.$refs.upload1.uploadFiles;
  7177. // a.splice(a.length - 1, a.length);
  7178. _this.$message.error("上传失败");
  7179. } else {
  7180. if (type == 13) {
  7181. let _type = 2;
  7182. var imgA = [
  7183. "png",
  7184. "jpg",
  7185. "jpeg",
  7186. "bmp",
  7187. "gif",
  7188. "webp",
  7189. "psd",
  7190. "svg",
  7191. "tiff",
  7192. ];
  7193. var fileA = [
  7194. "PDF",
  7195. "DOC",
  7196. "DOCX",
  7197. "DOCM",
  7198. "DOTM",
  7199. "DOTX",
  7200. "PPTX",
  7201. "PPSX",
  7202. "PPT",
  7203. "PPS",
  7204. "PPTM",
  7205. "POTM",
  7206. "PPAM",
  7207. "POTX",
  7208. "PPSM",
  7209. "XLSX",
  7210. "XLS",
  7211. ];
  7212. var videoA = [
  7213. "AVI",
  7214. "NAVI",
  7215. "MPEG",
  7216. "ASF",
  7217. "MOV",
  7218. "WMV",
  7219. "3GP",
  7220. "RM",
  7221. "RMVB",
  7222. "FLV",
  7223. "F4V",
  7224. "H.264",
  7225. "H.265",
  7226. "REAL VIDEO",
  7227. "MKV",
  7228. "WebM",
  7229. "HDDVD",
  7230. "MP4",
  7231. "MPG",
  7232. "M4V",
  7233. "MGV",
  7234. "OGV",
  7235. "QTM",
  7236. "STR",
  7237. "AMC",
  7238. "DVX",
  7239. "EVO",
  7240. "DAT",
  7241. "OGG",
  7242. "OGM",
  7243. ];
  7244. if (
  7245. fileA.indexOf(
  7246. data.Location.split(".")[
  7247. data.Location.split(".").length - 1
  7248. ].toLocaleUpperCase()
  7249. ) != -1
  7250. ) {
  7251. _type = 3;
  7252. } else if (
  7253. videoA.indexOf(
  7254. data.Location.split(".")[
  7255. data.Location.split(".").length - 1
  7256. ].toLocaleUpperCase()
  7257. ) != -1
  7258. ) {
  7259. _type = 2;
  7260. } else if (
  7261. imgA.indexOf(
  7262. data.Location.split(".")[
  7263. data.Location.split(".").length - 1
  7264. ].toLocaleLowerCase()
  7265. ) != -1
  7266. ) {
  7267. _type = 13;
  7268. } else {
  7269. _type = 12;
  7270. }
  7271. _this.infoData.push({
  7272. name: file.name,
  7273. url: data.Location,
  7274. uid: file.uid,
  7275. type: _type,
  7276. });
  7277. } else if (type == 2 || type == 3 || type == 12) {
  7278. _this.infoData.push({
  7279. name: file.name,
  7280. url: data.Location,
  7281. uid: file.uid,
  7282. type: type,
  7283. });
  7284. }
  7285. console.log(data.Location);
  7286. }
  7287. });
  7288. }
  7289. },
  7290. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  7291. // const loading = this.openLoading();
  7292. var file = event.target.files[0];
  7293. var credentials = {
  7294. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7295. secretAccessKey: "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",
  7296. }; //秘钥形式的登录上传
  7297. window.AWS.config.update(credentials);
  7298. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7299. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7300. var _this = this;
  7301. if (type == 3) {
  7302. var b = [
  7303. "DOC",
  7304. "DOCX",
  7305. "DOCM",
  7306. "DOTM",
  7307. "DOTX",
  7308. "PPTX",
  7309. "PPSX",
  7310. "PPT",
  7311. "PPS",
  7312. "PPTM",
  7313. "POTM",
  7314. "PPAM",
  7315. "POTX",
  7316. "PPSM",
  7317. ];
  7318. if (
  7319. b.indexOf(
  7320. file.name
  7321. .split(".")
  7322. [file.name.split(".").length - 1].toLocaleUpperCase()
  7323. ) != -1
  7324. ) {
  7325. if (file.size / 1024 / 1024 > 80) {
  7326. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7327. this.inputShow = true;
  7328. // var a = _this.$refs.upload1.uploadFiles;
  7329. // a.splice(a.length - 1, a.length);
  7330. // loading.close();
  7331. return;
  7332. }
  7333. } else if (
  7334. file.name
  7335. .split(".")
  7336. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7337. ) {
  7338. if (file.size / 1024 / 1024 > 80) {
  7339. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7340. this.inputShow = true;
  7341. // var a = _this.$refs.upload1.uploadFiles;
  7342. // a.splice(a.length - 1, a.length);
  7343. // loading.close();
  7344. return;
  7345. }
  7346. }
  7347. }
  7348. this.inputShow = false;
  7349. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7350. itemTaskIndex
  7351. ].progress = 0;
  7352. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7353. itemTaskIndex
  7354. ].proVisible = true;
  7355. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7356. itemTaskIndex
  7357. ].isFinishSize = 0;
  7358. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7359. itemTaskIndex
  7360. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7361. _this.$forceUpdate();
  7362. if (file) {
  7363. var params = {
  7364. Key:
  7365. file.name.split(".")[0] +
  7366. new Date().getTime() +
  7367. "." +
  7368. file.name.split(".")[file.name.split(".").length - 1],
  7369. ContentType: file.type,
  7370. Body: file,
  7371. "Access-Control-Allow-Credentials": "*",
  7372. ACL: "public-read",
  7373. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7374. var options = {
  7375. partSize: 2048 * 1024 * 1024,
  7376. queueSize: 2,
  7377. leavePartsOnError: true,
  7378. };
  7379. bucket
  7380. .upload(params, options)
  7381. .on("httpUploadProgress", function (evt) {
  7382. //这里可以写进度条
  7383. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7384. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7385. itemTaskIndex
  7386. ].progress = parseInt((evt.loaded / evt.total) * 100);
  7387. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7388. itemTaskIndex
  7389. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7390. _this.$forceUpdate();
  7391. })
  7392. .send(function (err, data) {
  7393. // loading.close();
  7394. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7395. itemTaskIndex
  7396. ].progress = 100;
  7397. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7398. itemTaskIndex
  7399. ].isFinishSize =
  7400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7401. itemTaskIndex
  7402. ].isAllSize;
  7403. _this.$forceUpdate();
  7404. setTimeout(() => {
  7405. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7406. itemTaskIndex
  7407. ].proVisible = false;
  7408. _this.$forceUpdate();
  7409. }, 1000);
  7410. _this.inputShow = true;
  7411. if (err) {
  7412. // var a = _this.$refs.upload1.uploadFiles;
  7413. // a.splice(a.length - 1, a.length);
  7414. _this.$message.error("上传失败");
  7415. } else {
  7416. if (type == 2 || type == 3) {
  7417. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7418. itemTaskIndex
  7419. ].chapterData.push({
  7420. name: file.name,
  7421. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7422. // itemTaskIndex
  7423. // ].chapterData.length+1),
  7424. url: data.Location,
  7425. uid: file.uid,
  7426. type: type,
  7427. text: string,
  7428. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  7429. // itemTaskIndex
  7430. // ].chapterData.length + 1),
  7431. });
  7432. _this.imgChange1(null, null, type, itemTaskIndex);
  7433. } else if (type == 4) {
  7434. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7435. itemTaskIndex
  7436. ].fileList1.push({
  7437. name: file.name,
  7438. url: data.Location,
  7439. uid: file.uid,
  7440. });
  7441. _this.imgChange1(null, null, type, itemTaskIndex);
  7442. } else if (type == 5) {
  7443. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7444. itemTaskIndex
  7445. ].homeworkList.push({
  7446. name: file.name,
  7447. url: data.Location,
  7448. uid: file.uid,
  7449. });
  7450. _this.imgChange1(null, null, type, itemTaskIndex);
  7451. }
  7452. console.log(data.Location);
  7453. }
  7454. });
  7455. }
  7456. },
  7457. addunit() {
  7458. this.unitJson.push({
  7459. dyName: "", //单元标题
  7460. isUpdate: 1,
  7461. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  7462. chapterInfo: [
  7463. {
  7464. isread: false,
  7465. chapterid: this.guid(),
  7466. title: "",
  7467. courseName: "",
  7468. taskJson: [
  7469. {
  7470. task: "",
  7471. taskDetail: "",
  7472. chapterData: [],
  7473. toolText: "",
  7474. toolChoose: [
  7475. {
  7476. tool: [],
  7477. toolDetail: "",
  7478. toolType: 0,
  7479. askCount: 1,
  7480. askTitle: "",
  7481. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7482. },
  7483. ],
  7484. isShowTools: false,
  7485. askCount: 1,
  7486. isFold: 1,
  7487. askTitle: "",
  7488. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7489. checkJson: [{ checkCount: [], checkPerent: [] }],
  7490. homeworkList: [],
  7491. },
  7492. ],
  7493. itemCount: 1,
  7494. fileList1: [],
  7495. video: [],
  7496. testData: [],
  7497. pData: [],
  7498. templateArray: [],
  7499. },
  7500. ],
  7501. });
  7502. this.addindex = this.unitJson.length - 1;
  7503. setTimeout(() => {
  7504. this.unitIndex = this.unitJson.length - 1;
  7505. setTimeout(() => {
  7506. console.log(this.$refs.dyInput);
  7507. this.$refs.dyInput[0].focus();
  7508. }, 100);
  7509. this.unitSet(this.unitIndex);
  7510. }, 0);
  7511. },
  7512. addToolFun(itemTaskIndex) {
  7513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7514. itemTaskIndex
  7515. ].toolChoose.push({
  7516. tool: [],
  7517. toolDetail: "",
  7518. toolType: 0,
  7519. askCount: 1,
  7520. askTitle: "",
  7521. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7522. });
  7523. },
  7524. addTaskBorder() {
  7525. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  7526. task: "",
  7527. taskDetail: "",
  7528. chapterData: [],
  7529. toolText: "",
  7530. toolChoose: [
  7531. {
  7532. tool: [],
  7533. toolDetail: "",
  7534. toolType: 0,
  7535. askCount: 1,
  7536. askTitle: "",
  7537. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7538. },
  7539. ],
  7540. isShowTools: false,
  7541. askCount: 1,
  7542. isFold: 1, //任务收起状态
  7543. askTitle: "",
  7544. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7545. checkJson: [{ checkCount: [], checkPerent: [] }],
  7546. homeworkList: [],
  7547. });
  7548. setTimeout(() => {
  7549. this.checkEva(this.checkId);
  7550. setTimeout(() => {
  7551. this.checkEva(this.checkId);
  7552. }, 100);
  7553. }, 100);
  7554. },
  7555. add(e, i) {
  7556. var el = e.currentTarget;
  7557. el.getElementsByTagName("input")[0].click();
  7558. },
  7559. fold(i, e) {
  7560. if (
  7561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  7562. ) {
  7563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  7564. } else {
  7565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  7566. }
  7567. },
  7568. fold2(i) {
  7569. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  7570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7571. i
  7572. ].isFold2 = false;
  7573. } else {
  7574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  7575. }
  7576. this.$forceUpdate();
  7577. },
  7578. foldEva(i) {
  7579. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7581. i
  7582. ].isEvaFold = false;
  7583. } else {
  7584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7585. i
  7586. ].isEvaFold = true;
  7587. setTimeout(() => {
  7588. this.checkEva(this.checkId);
  7589. setTimeout(() => {
  7590. this.checkEva(this.checkId);
  7591. }, 500);
  7592. }, 0);
  7593. }
  7594. this.$forceUpdate();
  7595. },
  7596. foldC(i) {
  7597. if (
  7598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  7599. ) {
  7600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7601. i
  7602. ].isFoldchapter = false;
  7603. } else {
  7604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7605. i
  7606. ].isFoldchapter = true;
  7607. }
  7608. this.$forceUpdate();
  7609. },
  7610. fold3(i, ti) {
  7611. if (
  7612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  7613. .isFold3
  7614. ) {
  7615. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7616. ti
  7617. ].isFold3 = false;
  7618. } else {
  7619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  7620. ti
  7621. ].isFold3 = true;
  7622. }
  7623. this.$forceUpdate();
  7624. },
  7625. deleteHomeworkBox(unitIndex, index, i) {
  7626. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  7627. this.taskCount
  7628. ].homeworkList.splice(i, 1);
  7629. },
  7630. getStudent() {
  7631. let params = {
  7632. oid: this.oid,
  7633. cu: "",
  7634. cn: this.searchPeople,
  7635. };
  7636. this.ajax
  7637. .get(this.$store.state.api + "selectStudentAdd", params)
  7638. .then((res) => {
  7639. this.studentJuri = res.data[0];
  7640. })
  7641. .catch((err) => {
  7642. this.isLoading = false;
  7643. console.error(err);
  7644. });
  7645. },
  7646. getTeacher() {
  7647. let params = {
  7648. oid:
  7649. this.org && this.org != "undefined" && this.org != "null"
  7650. ? this.org
  7651. : this.oid,
  7652. cu: "",
  7653. cn: this.searchTN,
  7654. };
  7655. this.ajax
  7656. .get(
  7657. this.$store.state.api +
  7658. (this.org && this.org != "undefined" && this.org != "null"
  7659. ? "selectTeacherAddOrg"
  7660. : "selectTeacherAdd"),
  7661. params
  7662. )
  7663. .then((res) => {
  7664. let teacherJuri = res.data[0];
  7665. for (var i = 0; i < teacherJuri.length; i++) {
  7666. if (teacherJuri[i].userid == this.userid) {
  7667. teacherJuri.splice(i, 1);
  7668. break;
  7669. }
  7670. }
  7671. this.teacherJuri = teacherJuri;
  7672. let _check = [];
  7673. let _check2 = [];
  7674. for (var i = 0; i < this.teacherJuri.length; i++) {
  7675. var gid = this.teacherJuri[i].userid;
  7676. _check.push(gid);
  7677. }
  7678. for (var i = 0; i < this.checkboxList3.length; i++) {
  7679. var _id = this.checkboxList3[i];
  7680. if (_check.indexOf(_id) !== -1) {
  7681. _check2.push(_id);
  7682. }
  7683. }
  7684. this.checkAll2 = _check2.length === _check.length;
  7685. })
  7686. .catch((err) => {
  7687. console.error(err);
  7688. });
  7689. },
  7690. searchStudent() {
  7691. this.getStudent();
  7692. },
  7693. selectGrage() {
  7694. let params = {
  7695. oid: this.oid,
  7696. };
  7697. this.ajax
  7698. .get(this.$store.state.api + "selectGrageBySchool", params)
  7699. .then((res) => {
  7700. this.gradeList = res.data[0];
  7701. })
  7702. .catch((err) => {
  7703. this.isLoading = false;
  7704. console.error(err);
  7705. });
  7706. },
  7707. //获取班级列表
  7708. getClass() {
  7709. let params = {
  7710. oid: this.oid,
  7711. gid: this.gradeId,
  7712. cn: this.classSearch,
  7713. };
  7714. this.ajax
  7715. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  7716. .then((res) => {
  7717. if (!this.grade.length) {
  7718. this.grade = res.data[0];
  7719. }
  7720. this.grade2 = res.data[0];
  7721. this.classJuri = res.data[0];
  7722. let _check = [];
  7723. let _check2 = [];
  7724. for (var i = 0; i < this.grade2.length; i++) {
  7725. var gid = this.grade2[i].id;
  7726. _check.push(gid);
  7727. }
  7728. for (var i = 0; i < this.checkboxList2.length; i++) {
  7729. var _id = this.checkboxList2[i];
  7730. if (_check.indexOf(_id) !== -1) {
  7731. _check2.push(_id);
  7732. }
  7733. }
  7734. this.checkAll = _check2.length === _check.length;
  7735. })
  7736. .catch((err) => {
  7737. this.isLoading = false;
  7738. console.error(err);
  7739. });
  7740. },
  7741. CourseType2Change(val) {
  7742. this.pTypeCheck = [];
  7743. for (var i = 0; i < this.CourseType2.length; i++) {
  7744. let typeA = this.CourseType2[i];
  7745. if (val.indexOf(typeA.name) != -1) {
  7746. this.pTypeCheck.push(...typeA.id);
  7747. }
  7748. }
  7749. },
  7750. getChapterData(e, i, j, ic, type) {
  7751. e.stopPropagation();
  7752. this.updataC = true;
  7753. this.icc = ic;
  7754. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  7755. console.log("还不能下载图片喔");
  7756. }
  7757. },
  7758. deleteChapterData(e, i, j, ic, taskI) {
  7759. e.stopPropagation();
  7760. let _this = this;
  7761. _this
  7762. .$confirm("确定删除此项?", "提示", {
  7763. confirmButtonText: "确定",
  7764. cancelButtonText: "取消",
  7765. type: "warning",
  7766. })
  7767. .then(() => {
  7768. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  7769. ic,
  7770. 1
  7771. );
  7772. })
  7773. .catch(() => {
  7774. return;
  7775. });
  7776. },
  7777. deleteInfoData(e, ic) {
  7778. e.stopPropagation();
  7779. let _this = this;
  7780. _this
  7781. .$confirm("确定删除此项?", "提示", {
  7782. confirmButtonText: "确定",
  7783. cancelButtonText: "取消",
  7784. type: "warning",
  7785. })
  7786. .then(() => {
  7787. _this.infoData.splice(
  7788. ic,
  7789. 1
  7790. );
  7791. })
  7792. .catch(() => {
  7793. return;
  7794. });
  7795. },
  7796. updataVideoT(e, i, j, ic) {
  7797. // e.stopPropagation();
  7798. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  7799. // ic
  7800. // ].name = JSON.parse(JSON.stringify(e.target.value));
  7801. this.line =
  7802. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  7803. this.taskCount = j;
  7804. this.lineCount = ic;
  7805. this.dialogVisibleupdataVideoT = true;
  7806. this.$forceUpdate();
  7807. },
  7808. updataVideoC() {
  7809. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7810. this.taskCount
  7811. ].chapterData[this.lineCount].name = JSON.parse(
  7812. JSON.stringify(this.line)
  7813. );
  7814. this.dialogVisibleupdataVideoT = false;
  7815. this.$forceUpdate();
  7816. },
  7817. upCd(e, i, j, taskCount, ic) {
  7818. e.stopPropagation();
  7819. if (ic == 0) {
  7820. return;
  7821. }
  7822. var a = JSON.parse(
  7823. JSON.stringify(
  7824. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7825. ic - 1
  7826. ]
  7827. )
  7828. );
  7829. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  7830. JSON.parse(
  7831. JSON.stringify(
  7832. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7833. )
  7834. );
  7835. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7836. this.$forceUpdate();
  7837. },
  7838. downCd(e, i, j, taskCount, ic) {
  7839. e.stopPropagation();
  7840. if (
  7841. ic ==
  7842. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  7843. 1
  7844. ) {
  7845. return;
  7846. }
  7847. var a = JSON.parse(
  7848. JSON.stringify(
  7849. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  7850. ic + 1
  7851. ]
  7852. )
  7853. );
  7854. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  7855. JSON.parse(
  7856. JSON.stringify(
  7857. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  7858. )
  7859. );
  7860. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  7861. this.$forceUpdate();
  7862. },
  7863. async upTool(e, i, j, tooli) {
  7864. e.stopPropagation();
  7865. if (tooli == 0) {
  7866. return;
  7867. }
  7868. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  7869. let count2 = await this.getWorksCount(3, i, j, tooli);
  7870. if (count1 > 0 || count2 > 0) {
  7871. this.$confirm(
  7872. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7873. "提示",
  7874. {
  7875. confirmButtonText: "确定",
  7876. cancelButtonText: "取消",
  7877. type: "warning",
  7878. }
  7879. )
  7880. .then(() => {
  7881. var a = JSON.parse(
  7882. JSON.stringify(
  7883. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  7884. tooli - 1
  7885. ]
  7886. )
  7887. );
  7888. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7889. JSON.parse(
  7890. JSON.stringify(
  7891. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7892. )
  7893. );
  7894. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7895. this.$forceUpdate();
  7896. })
  7897. .catch(() => {
  7898. return;
  7899. });
  7900. } else {
  7901. var a = JSON.parse(
  7902. JSON.stringify(
  7903. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  7904. )
  7905. );
  7906. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7907. JSON.parse(
  7908. JSON.stringify(
  7909. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7910. )
  7911. );
  7912. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7913. this.$forceUpdate();
  7914. }
  7915. },
  7916. async downTool(e, i, j, tooli) {
  7917. e.stopPropagation();
  7918. if (
  7919. tooli ==
  7920. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  7921. ) {
  7922. return;
  7923. }
  7924. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  7925. let count2 = await this.getWorksCount(3, i, j, tooli);
  7926. if (count1 > 0 || count2 > 0) {
  7927. this.$confirm(
  7928. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7929. "提示",
  7930. {
  7931. confirmButtonText: "确定",
  7932. cancelButtonText: "取消",
  7933. type: "warning",
  7934. }
  7935. )
  7936. .then(() => {
  7937. var a = JSON.parse(
  7938. JSON.stringify(
  7939. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  7940. tooli + 1
  7941. ]
  7942. )
  7943. );
  7944. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  7945. JSON.parse(
  7946. JSON.stringify(
  7947. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7948. )
  7949. );
  7950. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7951. this.$forceUpdate();
  7952. })
  7953. .catch(() => {
  7954. return;
  7955. });
  7956. } else {
  7957. var a = JSON.parse(
  7958. JSON.stringify(
  7959. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  7960. )
  7961. );
  7962. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  7963. JSON.parse(
  7964. JSON.stringify(
  7965. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  7966. )
  7967. );
  7968. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7969. this.$forceUpdate();
  7970. }
  7971. },
  7972. addWork() {
  7973. let cPan = 1;
  7974. for (var i = 0; i < this.unitJson.length; i++) {
  7975. for (
  7976. var j = 0;
  7977. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7978. j++
  7979. ) {
  7980. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7981. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7982. if (
  7983. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7984. ) {
  7985. for (
  7986. var z = 0;
  7987. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7988. z++
  7989. ) {
  7990. if (
  7991. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  7992. .length
  7993. ) {
  7994. this.$message.error("请把工具添加完整");
  7995. cPan = 2;
  7996. break;
  7997. }
  7998. }
  7999. }
  8000. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8001. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8002. i
  8003. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8004. return ele.value != "";
  8005. });
  8006. }
  8007. }
  8008. }
  8009. this.inputShow = true;
  8010. if (cPan == 2) {
  8011. this.steps--;
  8012. return;
  8013. }
  8014. for (var i = 0; i < this.unitJson.length; i++) {
  8015. delete this.unitJson[i].isUpdate;
  8016. }
  8017. let params = [
  8018. {
  8019. uid: this.userid,
  8020. title: this.courseName,
  8021. brief: this.courseText,
  8022. cover:
  8023. this.cover.length > 0
  8024. ? JSON.stringify(this.cover)
  8025. : JSON.stringify([
  8026. {
  8027. name: "noBanner.jpg",
  8028. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8029. uid: 1656409780264,
  8030. status: "success",
  8031. },
  8032. ]),
  8033. evaId: this.evalua,
  8034. astudent:
  8035. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8036. see: this.isTeacherSee == true ? 1 : 0,
  8037. chapters: JSON.stringify(this.unitJson),
  8038. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8039. courseType: JSON.stringify(this.courseTypeId),
  8040. ateacher:
  8041. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8042. inviteCode: JSON.stringify(this.inviteCode),
  8043. refile: JSON.stringify(this.infoData),
  8044. reBrief: this.courseText2
  8045. },
  8046. ];
  8047. this.ajax
  8048. .post(this.$store.state.api + "addWorkNew2AI", params)
  8049. .then((res) => {
  8050. console.log(this.steps);
  8051. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8052. this.$message({
  8053. message: "新增成功",
  8054. type: "success",
  8055. });
  8056. }
  8057. this.number = res.data.ordernumber;
  8058. this.courseId = res.data.courseId;
  8059. this.cid = res.data.courseId;
  8060. this.courseUserid = this.userid;
  8061. this.islogin = true;
  8062. this.updateCourseState(4);
  8063. })
  8064. .catch((err) => {
  8065. this.$message.error("网络不佳");
  8066. console.error(err);
  8067. });
  8068. },
  8069. goCourse() {
  8070. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  8071. },
  8072. updateWork2() {
  8073. let _unitIndex = this.unitIndex;
  8074. let cPan = 1;
  8075. for (
  8076. var j = 0;
  8077. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8078. j++
  8079. ) {
  8080. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8081. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8082. j
  8083. ].proVisible2 = false;
  8084. if (
  8085. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8086. .length > 1
  8087. ) {
  8088. for (
  8089. var z = 0;
  8090. z <
  8091. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8092. .length;
  8093. z++
  8094. ) {
  8095. if (
  8096. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8097. z
  8098. ].tool.length
  8099. ) {
  8100. this.$message.error("请把工具添加完整");
  8101. cPan = 2;
  8102. break;
  8103. }
  8104. }
  8105. }
  8106. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8107. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8108. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8109. (ele) => {
  8110. return ele.value != "";
  8111. }
  8112. );
  8113. }
  8114. }
  8115. this.inputShow = true;
  8116. if (cPan == 2) {
  8117. this.steps--;
  8118. return;
  8119. }
  8120. let params = [
  8121. {
  8122. cid: this.cid,
  8123. chapters: JSON.stringify(this.unitJson),
  8124. uid: this.userid,
  8125. unitIndex: _unitIndex,
  8126. },
  8127. ];
  8128. this.ajax
  8129. .post(this.$store.state.api + "updateWorkNew4", params)
  8130. .then((res) => {
  8131. this.$message({
  8132. message: "修改成功",
  8133. type: "success",
  8134. });
  8135. this.courseId = this.cid;
  8136. })
  8137. .catch((err) => {
  8138. this.$message.error("网络不佳");
  8139. console.error(err);
  8140. });
  8141. },
  8142. updateWork3(unitIndex) {
  8143. let _unitIndex = unitIndex;
  8144. let cPan = 1;
  8145. for (
  8146. var j = 0;
  8147. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8148. j++
  8149. ) {
  8150. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8151. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8152. j
  8153. ].proVisible2 = false;
  8154. if (
  8155. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8156. .length > 1
  8157. ) {
  8158. for (
  8159. var z = 0;
  8160. z <
  8161. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8162. .length;
  8163. z++
  8164. ) {
  8165. if (
  8166. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8167. z
  8168. ].tool.length
  8169. ) {
  8170. this.$message.error("请把工具添加完整");
  8171. cPan = 2;
  8172. break;
  8173. }
  8174. }
  8175. }
  8176. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8177. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8178. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8179. (ele) => {
  8180. return ele.value != "";
  8181. }
  8182. );
  8183. }
  8184. }
  8185. this.inputShow = true;
  8186. if (cPan == 2) {
  8187. this.steps--;
  8188. return;
  8189. }
  8190. let params = [
  8191. {
  8192. cid: this.cid,
  8193. chapters: JSON.stringify(this.unitJson),
  8194. uid: this.userid,
  8195. unitIndex: _unitIndex,
  8196. },
  8197. ];
  8198. this.ajax
  8199. .post(this.$store.state.api + "updateWorkNew4", params)
  8200. .then((res) => {
  8201. // this.$message({
  8202. // message: "修改成功",
  8203. // type: "success",
  8204. // });
  8205. this.courseId = this.cid;
  8206. })
  8207. .catch((err) => {
  8208. this.$message.error("网络不佳");
  8209. console.error(err);
  8210. });
  8211. },
  8212. updateWork() {
  8213. let cPan = 1;
  8214. for (var i = 0; i < this.unitJson.length; i++) {
  8215. for (
  8216. var j = 0;
  8217. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8218. j++
  8219. ) {
  8220. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8221. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8222. if (
  8223. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8224. ) {
  8225. for (
  8226. var z = 0;
  8227. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8228. z++
  8229. ) {
  8230. if (
  8231. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8232. .length
  8233. ) {
  8234. this.$message.error("请把工具添加完整");
  8235. cPan = 2;
  8236. break;
  8237. }
  8238. }
  8239. }
  8240. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8241. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8242. i
  8243. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8244. return ele.value != "";
  8245. });
  8246. }
  8247. }
  8248. }
  8249. this.inputShow = true;
  8250. if (cPan == 2) {
  8251. this.steps--;
  8252. return;
  8253. }
  8254. for (var i = 0; i < this.unitJson.length; i++) {
  8255. delete this.unitJson[i].isUpdate;
  8256. }
  8257. let params = [
  8258. {
  8259. cid: this.cid,
  8260. title: this.courseName,
  8261. brief: this.courseText,
  8262. cover:
  8263. this.cover.length > 0
  8264. ? JSON.stringify(this.cover)
  8265. : JSON.stringify([
  8266. {
  8267. name: "noBanner.jpg",
  8268. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8269. uid: 1656409780264,
  8270. status: "success",
  8271. },
  8272. ]),
  8273. evaId: this.evalua,
  8274. astudent:
  8275. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8276. see: this.isTeacherSee == true ? 1 : 0,
  8277. chapters: JSON.stringify(this.unitJson),
  8278. template: this.myWord != "undefined" ? this.myWord : [],
  8279. uid: this.userid,
  8280. courseType: JSON.stringify(this.courseTypeId),
  8281. ateacher:
  8282. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8283. inviteCode: JSON.stringify(this.inviteCode),
  8284. refile: JSON.stringify(this.infoData),
  8285. reBrief: this.courseText2
  8286. },
  8287. ];
  8288. this.ajax
  8289. .post(this.$store.state.api + "updateWorkNew2AI", params)
  8290. .then((res) => {
  8291. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8292. if (this.cidType == 1) {
  8293. this.$message({
  8294. message: "修改成功",
  8295. type: "success",
  8296. });
  8297. } else {
  8298. this.$message({
  8299. message: "新增成功",
  8300. type: "success",
  8301. });
  8302. }
  8303. }
  8304. this.number = this.nbOrder;
  8305. this.courseId = this.cid;
  8306. })
  8307. .catch((err) => {
  8308. this.$message.error("网络不佳");
  8309. console.error(err);
  8310. });
  8311. },
  8312. insertWord() {
  8313. this.dialogVisible1 = true;
  8314. this.updateBoolean2 = false;
  8315. this.tTitle = "";
  8316. this.tdetail = "";
  8317. },
  8318. addWord() {
  8319. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8320. name: this.tTitle,
  8321. content: this.tdetail,
  8322. uid: this.guid(),
  8323. });
  8324. this.dialogVisible1 = false;
  8325. },
  8326. upWord() { },
  8327. selectWord(uid, i, c) {
  8328. this.dialogVisible1 = true;
  8329. this.updateBoolean2 = true;
  8330. if (
  8331. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8332. ) {
  8333. this.tTitle =
  8334. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8335. this.tdetail =
  8336. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8337. }
  8338. },
  8339. isAddPP() {
  8340. if (this.checkboxList.length > 0) {
  8341. this.$message({
  8342. message: "添加成功",
  8343. type: "success",
  8344. });
  8345. this.dialogVisible3 = false;
  8346. } else {
  8347. this.$message({
  8348. message: "请添加课程成员",
  8349. type: "error",
  8350. });
  8351. }
  8352. },
  8353. isAddClass() {
  8354. this.dialogVisibleClass = false;
  8355. },
  8356. isAddPPTeacher() {
  8357. this.dialogVisibleMember = false;
  8358. this.setMan();
  8359. },
  8360. getTemplate() {
  8361. this.ajax
  8362. .get(this.$store.state.api + "getCourseTemplateT", "")
  8363. .then((res) => {
  8364. this.templateArray = res.data[0];
  8365. this.getTemplateOid();
  8366. this.$forceUpdate();
  8367. })
  8368. .catch((err) => { });
  8369. },
  8370. getTemplateOid() {
  8371. let params = {
  8372. oid: this.oid,
  8373. };
  8374. this.ajax
  8375. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8376. .then((res) => {
  8377. if (res.data[0].length) {
  8378. this.templateArray = [...res.data[0], ...this.templateArray];
  8379. }
  8380. this.getTemplateOrg();
  8381. this.$forceUpdate();
  8382. })
  8383. .catch((err) => { });
  8384. },
  8385. getTemplateOrg() {
  8386. let params = {
  8387. oid: this.org,
  8388. };
  8389. this.ajax
  8390. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8391. .then((res) => {
  8392. if (res.data[0].length) {
  8393. this.templateArray = [...res.data[0], ...this.templateArray];
  8394. }
  8395. this.$forceUpdate();
  8396. })
  8397. .catch((err) => { });
  8398. },
  8399. clearChoose() {
  8400. this.clearArray.splice(this.templateC.id, 1);
  8401. this.dialogVisible2 = false;
  8402. },
  8403. clearAttText() {
  8404. this.AttText = {
  8405. title: "",
  8406. text: "",
  8407. };
  8408. this.dialogVisible6 = false;
  8409. },
  8410. clearLine() {
  8411. this.line = "";
  8412. this.dialogVisible7 = false;
  8413. },
  8414. openTemplate() {
  8415. this.ctJson = {};
  8416. this.templateDialog = true;
  8417. },
  8418. checkctJson(json) {
  8419. if (this.ctJson.id == json.id) {
  8420. this.ctJson = {};
  8421. } else {
  8422. this.ctJson = json;
  8423. }
  8424. },
  8425. addTemplate(res) {
  8426. let _this = this;
  8427. let _res = [];
  8428. if (res.id == 1) {
  8429. _res = [
  8430. {
  8431. dyName: "", //单元标题
  8432. easy: 1,
  8433. chapterInfo: [
  8434. {
  8435. isread: false,
  8436. chapterid: this.guid(),
  8437. title: "",
  8438. courseName: "",
  8439. taskJson: [
  8440. {
  8441. task: "",
  8442. taskDetail: "",
  8443. chapterData: [],
  8444. toolText: "",
  8445. toolChoose: [
  8446. {
  8447. tool: [],
  8448. toolDetail: "",
  8449. toolType: 0,
  8450. askCount: 1,
  8451. askTitle: "",
  8452. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8453. },
  8454. ],
  8455. isShowTools: false,
  8456. askCount: 1,
  8457. isFold: 1,
  8458. askTitle: "",
  8459. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8460. checkJson: [{ checkCount: [], checkPerent: [] }],
  8461. homeworkList: [],
  8462. },
  8463. ],
  8464. itemCount: 1,
  8465. fileList1: [],
  8466. video: [],
  8467. testData: [],
  8468. pData: [],
  8469. templateArray: [],
  8470. },
  8471. ],
  8472. },
  8473. ];
  8474. this.updateCourseState(1);
  8475. } else if (res.id == 2) {
  8476. let stageData = [];
  8477. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8478. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  8479. if (!iframe && !iframe2) {
  8480. this.$message.error("请使用AI共创生成");
  8481. return;
  8482. }
  8483. let copyData = iframe ? iframe.contentWindow.copyData : false;
  8484. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  8485. if (
  8486. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  8487. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  8488. ) {
  8489. this.$message.error("请使用AI共创生成");
  8490. return;
  8491. }
  8492. stageData = copyData
  8493. ? copyData.stageData
  8494. : copyData2
  8495. ? copyData2.stageData
  8496. : [""];
  8497. for (var i = 0; i < stageData.length; i++) {
  8498. _res.push({
  8499. dyName: stageData[i], //单元标题
  8500. chapterInfo: [
  8501. {
  8502. isread: false,
  8503. chapterid: this.guid(),
  8504. title: "",
  8505. courseName: "",
  8506. taskJson: [
  8507. {
  8508. task: "",
  8509. taskDetail: "",
  8510. chapterData: [],
  8511. toolText: "",
  8512. toolChoose: [
  8513. {
  8514. tool: [],
  8515. toolDetail: "",
  8516. toolType: 0,
  8517. askCount: 1,
  8518. askTitle: "",
  8519. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8520. },
  8521. ],
  8522. isShowTools: false,
  8523. askCount: 1,
  8524. isFold: 1,
  8525. askTitle: "",
  8526. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8527. checkJson: [{ checkCount: [], checkPerent: [] }],
  8528. homeworkList: [],
  8529. },
  8530. ],
  8531. itemCount: 1,
  8532. fileList1: [],
  8533. video: [],
  8534. testData: [],
  8535. pData: [],
  8536. templateArray: [],
  8537. },
  8538. ],
  8539. });
  8540. }
  8541. this.updateCourseState(1);
  8542. } else if (!Object.keys(res).length) {
  8543. this.$message.error("请选择模板");
  8544. retrun;
  8545. } else {
  8546. _res = JSON.parse(res.chapters);
  8547. this.updateCourseState(parseInt(res.state));
  8548. }
  8549. _this
  8550. .$confirm(
  8551. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8552. "提示",
  8553. {
  8554. confirmButtonText: "确定",
  8555. cancelButtonText: "取消",
  8556. type: "warning",
  8557. }
  8558. )
  8559. .then(() => {
  8560. _this.unitJson = _res;
  8561. _this.updateWork();
  8562. // _this.steps++;
  8563. _this.templateDialog = false;
  8564. setTimeout(() => {
  8565. this.checkEva(this.checkId);
  8566. setTimeout(() => {
  8567. this.checkEva(this.checkId);
  8568. }, 100);
  8569. }, 1000);
  8570. })
  8571. .catch(() => {
  8572. return;
  8573. });
  8574. },
  8575. checkTemplate(res) {
  8576. let _this = this;
  8577. _this
  8578. .$confirm(
  8579. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  8580. "提示",
  8581. {
  8582. confirmButtonText: "确定",
  8583. cancelButtonText: "取消",
  8584. type: "warning",
  8585. }
  8586. )
  8587. .then(() => {
  8588. _this.unitJson = JSON.parse(res.chapters);
  8589. _this.steps++;
  8590. setTimeout(() => {
  8591. this.checkEva(this.checkId);
  8592. setTimeout(() => {
  8593. this.checkEva(this.checkId);
  8594. }, 100);
  8595. }, 1000);
  8596. })
  8597. .catch(() => {
  8598. return;
  8599. });
  8600. },
  8601. checkTemplate1(w) {
  8602. this.steps++;
  8603. },
  8604. checkTemplate2() {
  8605. let _this = this;
  8606. _this
  8607. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  8608. confirmButtonText: "确定",
  8609. cancelButtonText: "取消",
  8610. type: "warning",
  8611. })
  8612. .then(() => {
  8613. _this.unitIndex = 0;
  8614. _this.unitJson = [
  8615. {
  8616. dyName: "", //单元标题
  8617. chapterInfo: [
  8618. {
  8619. isread: false,
  8620. chapterid: this.guid(),
  8621. title: "",
  8622. courseName: "",
  8623. taskJson: [
  8624. {
  8625. task: "",
  8626. taskDetail: "",
  8627. chapterData: [],
  8628. toolText: "",
  8629. toolChoose: [
  8630. {
  8631. tool: [],
  8632. toolDetail: "",
  8633. toolType: 0,
  8634. askCount: 1,
  8635. askTitle: "",
  8636. askJson: [
  8637. { askstitle: "", askItem: 1, checkList: [] },
  8638. ],
  8639. },
  8640. ],
  8641. isShowTools: false,
  8642. askCount: 1,
  8643. isFold: 1,
  8644. askTitle: "",
  8645. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8646. checkJson: [{ checkCount: [], checkPerent: [] }],
  8647. homeworkList: [],
  8648. },
  8649. ],
  8650. itemCount: 1,
  8651. fileList1: [],
  8652. video: [],
  8653. testData: [],
  8654. pData: [],
  8655. templateArray: [],
  8656. },
  8657. ],
  8658. },
  8659. ];
  8660. this.steps++;
  8661. setTimeout(() => {
  8662. this.checkEva(this.checkId);
  8663. setTimeout(() => {
  8664. this.checkEva(this.checkId);
  8665. }, 100);
  8666. }, 1000);
  8667. this.updateWork();
  8668. })
  8669. .catch(() => {
  8670. return;
  8671. });
  8672. },
  8673. checkTemplate3() {
  8674. let _this = this;
  8675. _this
  8676. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  8677. confirmButtonText: "确定",
  8678. cancelButtonText: "取消",
  8679. type: "warning",
  8680. })
  8681. .then(() => {
  8682. _this.unitIndex = 0;
  8683. _this.unitJson = [
  8684. {
  8685. dyName: "", //单元标题
  8686. easy: 1,
  8687. chapterInfo: [
  8688. {
  8689. isread: false,
  8690. chapterid: this.guid(),
  8691. title: "",
  8692. courseName: "",
  8693. taskJson: [
  8694. {
  8695. task: "",
  8696. taskDetail: "",
  8697. chapterData: [],
  8698. toolText: "",
  8699. toolChoose: [
  8700. {
  8701. tool: [],
  8702. toolDetail: "",
  8703. toolType: 0,
  8704. askCount: 1,
  8705. askTitle: "",
  8706. askJson: [
  8707. { askstitle: "", askItem: 1, checkList: [] },
  8708. ],
  8709. },
  8710. ],
  8711. isShowTools: false,
  8712. askCount: 1,
  8713. isFold: 1,
  8714. askTitle: "",
  8715. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8716. checkJson: [{ checkCount: [], checkPerent: [] }],
  8717. homeworkList: [],
  8718. },
  8719. ],
  8720. itemCount: 1,
  8721. fileList1: [],
  8722. video: [],
  8723. testData: [],
  8724. pData: [],
  8725. templateArray: [],
  8726. },
  8727. ],
  8728. },
  8729. ];
  8730. // this.steps++;
  8731. this.updateWork();
  8732. })
  8733. .catch(() => {
  8734. return;
  8735. });
  8736. },
  8737. checkTemplate4() {
  8738. let _this = this;
  8739. _this
  8740. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  8741. confirmButtonText: "确定",
  8742. cancelButtonText: "取消",
  8743. type: "warning",
  8744. })
  8745. .then(() => {
  8746. _this.unitIndex = 0;
  8747. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  8748. this.steps++;
  8749. this.updateWork();
  8750. })
  8751. .catch(() => {
  8752. return;
  8753. });
  8754. },
  8755. wordNext() {
  8756. this.dialogVisible2 = false;
  8757. },
  8758. isAddOrUpdateAttText() {
  8759. if (this.AttTextType == 0) {
  8760. this.addAttTextMessage();
  8761. } else {
  8762. this.updateAttText();
  8763. }
  8764. },
  8765. isAddOrUpdateLine() {
  8766. if (!this.lineTitle) {
  8767. this.$message.error("请填写链接标题");
  8768. return;
  8769. }
  8770. if (this.lineType == 0) {
  8771. this.addLine();
  8772. } else {
  8773. this.updateLine();
  8774. }
  8775. },
  8776. addAttTextMessage() {
  8777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8778. this.taskCount
  8779. ].chapterData.push({
  8780. name: this.AttText.title,
  8781. url: this.AttText.text,
  8782. type: 6,
  8783. });
  8784. this.imgChange1(null, null, 6, this.taskCount);
  8785. this.dialogVisible6 = false;
  8786. },
  8787. selectAttText(itemTaskIndex, i) {
  8788. this.AttText.title =
  8789. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8790. itemTaskIndex
  8791. ].chapterData[i].name;
  8792. this.AttText.text =
  8793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8794. itemTaskIndex
  8795. ].chapterData[i].url;
  8796. this.taskCount = itemTaskIndex;
  8797. this.AttTextIndex = i;
  8798. this.AttTextType = 1;
  8799. this.dialogVisible6 = true;
  8800. },
  8801. updateAttText() {
  8802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8803. this.taskCount
  8804. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  8805. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8806. this.taskCount
  8807. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  8808. this.dialogVisible6 = false;
  8809. },
  8810. addLine() {
  8811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8812. this.lineCount
  8813. ].chapterData.push({
  8814. name: "链接",
  8815. title: this.lineTitle,
  8816. url: this.line,
  8817. type: 8,
  8818. });
  8819. this.imgChange1(null, null, 8, this.lineCount);
  8820. this.dialogVisible7 = false;
  8821. },
  8822. selectLine(itemTaskIndex, i) {
  8823. this.line =
  8824. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8825. itemTaskIndex
  8826. ].chapterData[i].url;
  8827. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8828. itemTaskIndex
  8829. ].chapterData[i].title
  8830. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8831. .chapterData[i].title
  8832. : "";
  8833. this.taskCount = itemTaskIndex;
  8834. this.lineCount = i;
  8835. this.lineType = 1;
  8836. this.dialogVisible7 = true;
  8837. },
  8838. openUpdateSource(itemTaskIndex, i) {
  8839. this.sourceData = {};
  8840. let source =
  8841. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8842. .chapterData[i];
  8843. this.sourceData[source.id] = {};
  8844. this.sourceData[source.id].name = source.title;
  8845. this.sourceData[source.id].url = source.url;
  8846. this.dialogVisibleSource = true;
  8847. this.updateSourcePan = true;
  8848. this.taskCount = itemTaskIndex;
  8849. this.lineCount = i;
  8850. },
  8851. updateLine() {
  8852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8853. this.taskCount
  8854. ].chapterData[this.lineCount].url = this.line;
  8855. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8856. this.taskCount
  8857. ].chapterData[this.lineCount].title = this.lineTitle;
  8858. this.dialogVisible7 = false;
  8859. },
  8860. addPP() {
  8861. this.dialogVisible3 = true;
  8862. },
  8863. goTo(path) {
  8864. this.$router.push(path);
  8865. },
  8866. openTools(itemTaskIndex, i, toolIndex) {
  8867. this.toolIndex = toolIndex;
  8868. this.taskCount = itemTaskIndex;
  8869. if (i == 4) {
  8870. if (toolIndex == null) {
  8871. var a =
  8872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8873. .chapterData;
  8874. for (var i = 0; i < a.length; i++) {
  8875. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  8876. this.askJson =
  8877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8878. itemTaskIndex
  8879. ].chapterData[i].askJson;
  8880. }
  8881. }
  8882. } else {
  8883. this.askJson = JSON.parse(
  8884. JSON.stringify(
  8885. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8886. itemTaskIndex
  8887. ].toolChoose[toolIndex]
  8888. )
  8889. );
  8890. }
  8891. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  8892. this.dialogVisible5 = true;
  8893. } else if (i == 45) {
  8894. if (
  8895. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8896. .toolChoose[toolIndex].testJson
  8897. ) {
  8898. this.testJson = JSON.parse(
  8899. JSON.stringify(
  8900. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8901. itemTaskIndex
  8902. ].toolChoose[toolIndex].testJson
  8903. )
  8904. );
  8905. } else {
  8906. var testJson = {
  8907. testCount: 1,
  8908. testTitle: "",
  8909. testJson: [
  8910. {
  8911. teststitle: "",
  8912. testItem: 1,
  8913. checkList: [],
  8914. timuList: [],
  8915. answer: [],
  8916. type: "1",
  8917. },
  8918. ],
  8919. };
  8920. this.testJson = testJson;
  8921. }
  8922. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  8923. this.dialogVisibleChoice = true;
  8924. } else if (i == 47) {
  8925. if (
  8926. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8927. .toolChoose[toolIndex].sentenceList
  8928. ) {
  8929. this.sentenceList = JSON.parse(
  8930. JSON.stringify(
  8931. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8932. itemTaskIndex
  8933. ].toolChoose[toolIndex].sentenceList
  8934. )
  8935. );
  8936. } else {
  8937. var sentenceList = [
  8938. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8939. ];
  8940. this.sentenceList = sentenceList;
  8941. }
  8942. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  8943. this.dialogVisibleSentence = true;
  8944. } else if (i == 48) {
  8945. if (
  8946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8947. .toolChoose[toolIndex].tableJson
  8948. ) {
  8949. this.tableJson = JSON.parse(
  8950. JSON.stringify(
  8951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8952. itemTaskIndex
  8953. ].toolChoose[toolIndex].tableJson
  8954. )
  8955. );
  8956. } else {
  8957. var tableJson = { text: "" };
  8958. this.tableJson = tableJson;
  8959. }
  8960. this.dialogVisibleTable = true;
  8961. } else if (i == 52) {
  8962. if (
  8963. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8964. .toolChoose[toolIndex].wordJson
  8965. ) {
  8966. this.wordJson = JSON.parse(
  8967. JSON.stringify(
  8968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8969. itemTaskIndex
  8970. ].toolChoose[toolIndex].wordJson
  8971. )
  8972. );
  8973. } else {
  8974. var wordJson = { text: "" };
  8975. this.wordJson = wordJson;
  8976. }
  8977. this.dialogVisibleWord = true;
  8978. // else if (i == 50) {
  8979. // if (
  8980. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8981. // .toolChoose[toolIndex].uploadJson
  8982. // ) {
  8983. // this.uploadJson = JSON.parse(
  8984. // JSON.stringify(
  8985. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8986. // itemTaskIndex
  8987. // ].toolChoose[toolIndex].uploadJson
  8988. // )
  8989. // );
  8990. // } else {
  8991. // var uploadJson = [];
  8992. // this.uploadJson = uploadJson;
  8993. // }
  8994. // this.dialogVisibleMoreUpload = true;
  8995. // }
  8996. } else if (i == 10) {
  8997. if (
  8998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8999. .toolChoose[toolIndex].preTime
  9000. ) {
  9001. this.preTime = JSON.parse(
  9002. JSON.stringify(
  9003. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9004. itemTaskIndex
  9005. ].toolChoose[toolIndex].preTime
  9006. )
  9007. );
  9008. } else {
  9009. var preTime = 0;
  9010. this.preTime = preTime;
  9011. }
  9012. this.dialogVisiblePreTime = true;
  9013. } else if (i == 49) {
  9014. if (
  9015. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9016. .toolChoose[toolIndex].groupJson
  9017. ) {
  9018. this.groupJson = JSON.parse(
  9019. JSON.stringify(
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9021. itemTaskIndex
  9022. ].toolChoose[toolIndex].groupJson
  9023. )
  9024. );
  9025. } else {
  9026. var groupJson = {
  9027. group: [{ name: "第1组" }],
  9028. number: undefined,
  9029. islock: 1,
  9030. };
  9031. this.groupJson = groupJson;
  9032. }
  9033. this.dialogVisibleGroup = true;
  9034. } else if (i == 62) {
  9035. if (
  9036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9037. .toolChoose[toolIndex].videoJson
  9038. ) {
  9039. this.videoJson = JSON.parse(
  9040. JSON.stringify(
  9041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9042. itemTaskIndex
  9043. ].toolChoose[toolIndex].videoJson
  9044. )
  9045. );
  9046. } else {
  9047. var videoJson = {
  9048. video: "",
  9049. setting: [],
  9050. };
  9051. this.videoJson = videoJson;
  9052. }
  9053. this.dialogVisibleVideo = true;
  9054. } else if (i == 15) {
  9055. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9056. itemTaskIndex
  9057. ].toolChoose[toolIndex].answerQ
  9058. ? JSON.parse(
  9059. JSON.stringify(
  9060. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9061. itemTaskIndex
  9062. ].toolChoose[toolIndex].answerQ
  9063. )
  9064. )
  9065. : "";
  9066. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  9067. this.dialogVisible8 = true;
  9068. } else if (i == 40) {
  9069. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9070. itemTaskIndex
  9071. ].toolChoose[toolIndex].rateJson
  9072. ? JSON.parse(
  9073. JSON.stringify(
  9074. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9075. itemTaskIndex
  9076. ].toolChoose[toolIndex].rateJson
  9077. )
  9078. )
  9079. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9080. this.selectSteps = 1;
  9081. this.dialogVisibleRate = true;
  9082. } else if (i == 42) {
  9083. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9084. itemTaskIndex
  9085. ].toolChoose[toolIndex].answerQ
  9086. ? JSON.parse(
  9087. JSON.stringify(
  9088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9089. itemTaskIndex
  9090. ].toolChoose[toolIndex].answerQ
  9091. )
  9092. )
  9093. : "";
  9094. this.dialogVisibleMp3 = true;
  9095. } else if (i == 41) {
  9096. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9097. itemTaskIndex
  9098. ].toolChoose[toolIndex].selectJson
  9099. ? JSON.parse(
  9100. JSON.stringify(
  9101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9102. itemTaskIndex
  9103. ].toolChoose[toolIndex].selectJson
  9104. )
  9105. )
  9106. : { url: "", select: [], answer: [] };
  9107. this.selectSteps = 1;
  9108. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  9109. this.dialogVisibleSelect = true;
  9110. } else if (i == 3) {
  9111. top.postMessage(
  9112. {
  9113. tools: "3y",
  9114. cid: this.cid,
  9115. stage: this.unitIndex,
  9116. task: itemTaskIndex,
  9117. tool: toolIndex,
  9118. },
  9119. "*"
  9120. );
  9121. } else if (i == 1) {
  9122. top.postMessage(
  9123. {
  9124. tools: "1y",
  9125. cid: this.cid,
  9126. stage: this.unitIndex,
  9127. task: itemTaskIndex,
  9128. tool: toolIndex,
  9129. },
  9130. "*"
  9131. );
  9132. } else if (i == 57) {
  9133. top.postMessage(
  9134. {
  9135. tools: "57y",
  9136. cid: this.cid,
  9137. stage: this.unitIndex,
  9138. task: itemTaskIndex,
  9139. tool: toolIndex,
  9140. },
  9141. "*"
  9142. );
  9143. } else if (i == 69) {
  9144. this.englishList = {};
  9145. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  9146. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  9147. ? JSON.parse(
  9148. JSON.stringify(
  9149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9150. itemTaskIndex
  9151. ].toolChoose[toolIndex].englishList
  9152. )
  9153. )
  9154. : {};
  9155. this.$forceUpdate();
  9156. this.englishDialogVisible = true;
  9157. } else if (i == 70) {
  9158. this.englishVoiceJson = {};
  9159. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  9160. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  9161. ? JSON.parse(
  9162. JSON.stringify(
  9163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9164. itemTaskIndex
  9165. ].toolChoose[toolIndex].englishVoiceJson
  9166. )
  9167. )
  9168. : {
  9169. title:'',
  9170. detail:'',
  9171. array:[]
  9172. };
  9173. // {
  9174. // time: "",
  9175. // class: "",
  9176. // difficulty: 0,
  9177. // topic: "",
  9178. // isShow: false,
  9179. // eva: 0,
  9180. // aiEva: {
  9181. // isAiEva: false,
  9182. // aiEvaChoose: [],
  9183. // },
  9184. // allfType: [],
  9185. // englishJson: {},
  9186. // };
  9187. this.$forceUpdate();
  9188. this.EnglishVoiceDialog = true;
  9189. }
  9190. },
  9191. setEnglishVoiceJson(val) {
  9192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9193. this.taskCount
  9194. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  9195. JSON.stringify(val)
  9196. );
  9197. this.$forceUpdate();
  9198. if (
  9199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9200. .toolChoose[this.toolIndex].tool != 70
  9201. ) {
  9202. this.addTools(70, this.taskCount, this.toolIndex);
  9203. }
  9204. },
  9205. chapAddTools(i) {
  9206. if (this.chapTools[0].tools.length == 0) {
  9207. this.chapTools[0].tools.push(i);
  9208. } else {
  9209. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9210. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9211. } else {
  9212. this.chapTools[0].tools.push(i);
  9213. }
  9214. }
  9215. this.$forceUpdate();
  9216. },
  9217. addChaptersDataTools() {
  9218. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9220. this.chapCount
  9221. ].chapterData.push({
  9222. name: this.chapTools[0].toolDetail,
  9223. url: this.chapTools[0].tools,
  9224. type: 7,
  9225. askJson: this.askJson,
  9226. });
  9227. } else {
  9228. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9229. this.chapCount
  9230. ].chapterData.push({
  9231. name: this.chapTools[0].toolDetail,
  9232. url: this.chapTools[0].tools,
  9233. type: 7,
  9234. });
  9235. }
  9236. this.imgChange1(null, null, 7, this.chapCount);
  9237. this.dialogVisible4 = false;
  9238. },
  9239. addTools(i, itemTaskIndex, toolIndex) {
  9240. // if (
  9241. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9242. // .toolChoose[toolIndex].tool.length == 0
  9243. // ) {
  9244. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9245. // itemTaskIndex
  9246. // ].toolChoose[toolIndex].tool.push(i);
  9247. // } else {
  9248. // if (
  9249. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9250. // itemTaskIndex
  9251. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9252. // ) {
  9253. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9254. // itemTaskIndex
  9255. // ].toolChoose[toolIndex].tool.splice(
  9256. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9257. // itemTaskIndex
  9258. // ].toolChoose[toolIndex].tool.indexOf(i),
  9259. // 1
  9260. // );
  9261. // } else {
  9262. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9263. // itemTaskIndex
  9264. // ].toolChoose[toolIndex].tool.push(i);
  9265. // }
  9266. // console.log(
  9267. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9268. // .toolChoose[toolIndex].tool
  9269. // );
  9270. // }
  9271. if (i == 4) {
  9272. if (
  9273. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9274. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9276. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9278. .toolChoose[toolIndex].askJson[0].checkList < 2
  9279. ) {
  9280. this.openTools(itemTaskIndex, 4, toolIndex);
  9281. // this.$message({
  9282. // message: "请填写完整问卷内容",
  9283. // type: "error",
  9284. // });
  9285. return;
  9286. }
  9287. }
  9288. if (i == 45) {
  9289. if (
  9290. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9291. .toolChoose[toolIndex].testJson ||
  9292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9293. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9295. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9296. ) {
  9297. this.openTools(itemTaskIndex, 45, toolIndex);
  9298. // this.$message({
  9299. // message: "请填写完整问卷内容",
  9300. // type: "error",
  9301. // });
  9302. return;
  9303. }
  9304. }
  9305. if (i == 47) {
  9306. if (
  9307. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9308. .toolChoose[toolIndex].sentenceList ||
  9309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9310. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9311. ) {
  9312. this.openTools(itemTaskIndex, 47, toolIndex);
  9313. return;
  9314. }
  9315. }
  9316. if (i == 69) {
  9317. if (
  9318. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9319. .toolChoose[toolIndex].englishList
  9320. ) {
  9321. this.openTools(itemTaskIndex, 69, toolIndex);
  9322. return;
  9323. }
  9324. }
  9325. if (i == 70) {
  9326. if (
  9327. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9328. .toolChoose[toolIndex].englishVoiceJson
  9329. ) {
  9330. this.openTools(itemTaskIndex, 70, toolIndex);
  9331. return;
  9332. }
  9333. }
  9334. // if (i == 48) {
  9335. // if (
  9336. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9337. // .toolChoose[toolIndex].tableJson
  9338. // ) {
  9339. // this.openTools(itemTaskIndex, 48, toolIndex);
  9340. // return;
  9341. // }
  9342. // }
  9343. // if (i == 50) {
  9344. // if (
  9345. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9346. // .toolChoose[toolIndex].uploadJson
  9347. // ) {
  9348. // this.openTools(itemTaskIndex, 50, toolIndex);
  9349. // return;
  9350. // }
  9351. // }
  9352. if (i == 49) {
  9353. if (
  9354. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9355. .toolChoose[toolIndex].groupJson
  9356. ) {
  9357. this.openTools(itemTaskIndex, 49, toolIndex);
  9358. return;
  9359. }
  9360. }
  9361. if (i == 62) {
  9362. if (
  9363. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9364. .toolChoose[toolIndex].videoJson
  9365. ) {
  9366. this.openTools(itemTaskIndex, 62, toolIndex);
  9367. return;
  9368. }
  9369. }
  9370. if (i == 15) {
  9371. if (
  9372. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9373. .toolChoose[toolIndex].answerQ ||
  9374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9375. .toolChoose[toolIndex].answerQ == ""
  9376. ) {
  9377. this.openTools(itemTaskIndex, 15, toolIndex);
  9378. // this.$message({
  9379. // message: "请填写问答内容",
  9380. // type: "error",
  9381. // });
  9382. return;
  9383. }
  9384. }
  9385. if (i == 40) {
  9386. if (
  9387. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9388. .toolChoose[toolIndex].rateJson ||
  9389. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9390. .toolChoose[toolIndex].rateJson.length
  9391. ) {
  9392. this.openTools(itemTaskIndex, 40, toolIndex);
  9393. return;
  9394. }
  9395. }
  9396. if (i == 41) {
  9397. if (
  9398. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9399. .toolChoose[toolIndex].selectJson ||
  9400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9401. .toolChoose[toolIndex].selectJson.url == "" ||
  9402. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9403. .toolChoose[toolIndex].selectJson.select.length ||
  9404. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9405. .toolChoose[toolIndex].selectJson.answer.length
  9406. ) {
  9407. this.openTools(itemTaskIndex, 41, toolIndex);
  9408. return;
  9409. }
  9410. }
  9411. if (i == 42) {
  9412. if (
  9413. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9414. .toolChoose[toolIndex].answerQ ||
  9415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9416. .toolChoose[toolIndex].answerQ == ""
  9417. ) {
  9418. this.openTools(itemTaskIndex, 42, toolIndex);
  9419. return;
  9420. }
  9421. }
  9422. if (
  9423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9424. .toolChoose[toolIndex].tool.length > 0
  9425. ) {
  9426. if (
  9427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9428. itemTaskIndex
  9429. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9430. ) {
  9431. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9432. itemTaskIndex
  9433. ].toolChoose[toolIndex].tool.splice(
  9434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9435. itemTaskIndex
  9436. ].toolChoose[toolIndex].tool.indexOf(i),
  9437. 1
  9438. );
  9439. } else {
  9440. // this.$message({
  9441. // message: "每个工具只能添加一个",
  9442. // type: "error",
  9443. // });
  9444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9445. itemTaskIndex
  9446. ].toolChoose[toolIndex].tool = [];
  9447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9448. itemTaskIndex
  9449. ].toolChoose[toolIndex].tool.push(i);
  9450. }
  9451. } else {
  9452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9453. itemTaskIndex
  9454. ].toolChoose[toolIndex].tool.push(i);
  9455. }
  9456. this.$forceUpdate();
  9457. },
  9458. addAskList(index) {
  9459. this.askJson.askJson.splice(index + 1, 0, {
  9460. askstitle: "",
  9461. askItem: 1,
  9462. checkList: [],
  9463. });
  9464. this.askJson.askCount++;
  9465. },
  9466. addTestList(index) {
  9467. this.testJson.testJson.splice(index + 1, 0, {
  9468. teststitle: "",
  9469. testItem: 1,
  9470. checkList: [],
  9471. timuList: [],
  9472. answer: [],
  9473. type: "1",
  9474. });
  9475. this.testJson.testCount++;
  9476. },
  9477. deleteAskList(index) {
  9478. if (
  9479. !this.askJson.askJson[index].askstitle &&
  9480. this.askJson.askJson[index].askItem == 1 &&
  9481. !this.askJson.askJson[index].checkList[0]
  9482. ) {
  9483. this.askJson.askJson.splice(index, 1);
  9484. this.askJson.askCount--;
  9485. } else {
  9486. let _this = this;
  9487. _this
  9488. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9489. confirmButtonText: "确定",
  9490. cancelButtonText: "取消",
  9491. type: "warning",
  9492. })
  9493. .then(() => {
  9494. _this.askJson.askJson.splice(index, 1);
  9495. _this.askJson.askCount--;
  9496. })
  9497. .catch(() => {
  9498. return;
  9499. });
  9500. }
  9501. },
  9502. deleteTestList(index) {
  9503. if (
  9504. !this.testJson.testJson[index].teststitle &&
  9505. this.testJson.testJson[index].testItem == 1 &&
  9506. !this.testJson.testJson[index].checkList[0]
  9507. ) {
  9508. this.testJson.testJson.splice(index, 1);
  9509. this.testJson.testCount--;
  9510. } else {
  9511. let _this = this;
  9512. _this
  9513. .$confirm("此操作不可撤销,是否继续?", "提示", {
  9514. confirmButtonText: "确定",
  9515. cancelButtonText: "取消",
  9516. type: "warning",
  9517. })
  9518. .then(() => {
  9519. _this.testJson.testJson.splice(index, 1);
  9520. _this.testJson.testCount--;
  9521. })
  9522. .catch(() => {
  9523. return;
  9524. });
  9525. }
  9526. },
  9527. askMove(type, index) {
  9528. if (type == 1) {
  9529. if (index > 0) {
  9530. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  9531. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9532. this.askJson.askJson[index - 1] = b;
  9533. this.askJson.askJson[index] = a;
  9534. }
  9535. } else {
  9536. if (index < this.askJson.askJson.length - 1) {
  9537. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  9538. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  9539. this.askJson.askJson[index + 1] = b;
  9540. this.askJson.askJson[index] = a;
  9541. }
  9542. }
  9543. this.$forceUpdate();
  9544. },
  9545. checkMove(type, index, checkIndex) {
  9546. if (type == 1) {
  9547. if (checkIndex > 0) {
  9548. let a = JSON.parse(
  9549. JSON.stringify(
  9550. this.askJson.askJson[index].checkList[checkIndex - 1]
  9551. )
  9552. );
  9553. let b = JSON.parse(
  9554. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9555. );
  9556. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  9557. this.askJson.askJson[index].checkList[checkIndex] = a;
  9558. }
  9559. } else {
  9560. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  9561. let a = JSON.parse(
  9562. JSON.stringify(
  9563. this.askJson.askJson[index].checkList[checkIndex + 1]
  9564. )
  9565. );
  9566. let b = JSON.parse(
  9567. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  9568. );
  9569. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  9570. this.askJson.askJson[index].checkList[checkIndex] = a;
  9571. }
  9572. }
  9573. this.$forceUpdate();
  9574. },
  9575. testMove(type, index) {
  9576. if (type == 1) {
  9577. if (index > 0) {
  9578. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  9579. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9580. this.testJson.testJson[index - 1] = b;
  9581. this.testJson.testJson[index] = a;
  9582. }
  9583. } else {
  9584. if (index < this.testJson.testJson.length - 1) {
  9585. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  9586. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  9587. this.testJson.testJson[index + 1] = b;
  9588. this.testJson.testJson[index] = a;
  9589. }
  9590. }
  9591. this.$forceUpdate();
  9592. },
  9593. tcheckMove(type, index, checkIndex) {
  9594. if (type == 1) {
  9595. if (checkIndex > 0) {
  9596. let a = JSON.parse(
  9597. JSON.stringify(
  9598. this.testJson.testJson[index].checkList[checkIndex - 1]
  9599. )
  9600. );
  9601. let b = JSON.parse(
  9602. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9603. );
  9604. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  9605. this.testJson.testJson[index].checkList[checkIndex] = a;
  9606. }
  9607. } else {
  9608. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  9609. let a = JSON.parse(
  9610. JSON.stringify(
  9611. this.testJson.testJson[index].checkList[checkIndex + 1]
  9612. )
  9613. );
  9614. let b = JSON.parse(
  9615. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  9616. );
  9617. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  9618. this.testJson.testJson[index].checkList[checkIndex] = a;
  9619. }
  9620. }
  9621. this.$forceUpdate();
  9622. },
  9623. addcheckList(json, index) {
  9624. // json.checkList.length++;
  9625. json.checkList.splice(index + 1, 0, "");
  9626. json.askItem++;
  9627. this.$forceUpdate();
  9628. },
  9629. deletecheckList(json, index) {
  9630. // json.checkList.length--;
  9631. json.checkList.splice(index, 1);
  9632. json.askItem--;
  9633. this.$forceUpdate();
  9634. },
  9635. addTcheckList(json, index) {
  9636. // json.checkList.length++;
  9637. json.checkList.splice(index + 1, 0, "");
  9638. json.testItem++;
  9639. this.$forceUpdate();
  9640. },
  9641. deleteTcheckList(json, index) {
  9642. // json.checkList.length--;
  9643. json.checkList.splice(index, 1);
  9644. json.testItem--;
  9645. this.$forceUpdate();
  9646. },
  9647. checkTestType(type, json) {
  9648. json.type = type;
  9649. setTimeout(() => {
  9650. json.answer = [];
  9651. }, 100);
  9652. },
  9653. checkAskType(type, json) {
  9654. json.type = type;
  9655. // json.checkList = [];
  9656. this.$forceUpdate();
  9657. },
  9658. addSelectList(json) {
  9659. json.select.push("");
  9660. json.answer.push("");
  9661. },
  9662. deleteSelectList(json) {
  9663. // json.select.length--;
  9664. // json.answer.length--;
  9665. json.select.splice(json.select.length - 1, 1);
  9666. json.answer.splice(json.answer.length - 1, 1);
  9667. },
  9668. addAsk() {
  9669. if (this.askJson.askTitle === "") {
  9670. this.$message.error("标题不能为空!");
  9671. return;
  9672. }
  9673. var aj = this.askJson.askJson;
  9674. var b = 1;
  9675. for (var i = 0; i < aj.length; i++) {
  9676. if (aj[i].askstitle === "") {
  9677. var a = 1;
  9678. for (let index = 0; index < aj[i].askItem; index++) {
  9679. const element = aj[i].checkList[index]
  9680. ? aj[i].checkList[index]
  9681. : "";
  9682. if (element != "") {
  9683. b++;
  9684. this.$message.error(`请将题目${i + 1}填写完整。`);
  9685. return;
  9686. } else {
  9687. a++;
  9688. }
  9689. }
  9690. if (b == 1) {
  9691. this.$message.error("至少填写一个问题");
  9692. return;
  9693. }
  9694. } else if (aj[i].askstitle != "") {
  9695. for (let index = 0; index < aj[i].askItem; index++) {
  9696. const element = aj[i].checkList[index]
  9697. ? aj[i].checkList[index]
  9698. : "";
  9699. var index = 0;
  9700. for (var z = 0; z < aj[i].checkList.length; z++) {
  9701. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9702. if (checkC != "") {
  9703. index++;
  9704. } else {
  9705. this.$message.error(`题目${i + 1}选项不能为空!`);
  9706. return;
  9707. }
  9708. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9709. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9710. if (checkC == checkC2) {
  9711. this.$message.error(
  9712. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9713. );
  9714. return;
  9715. }
  9716. }
  9717. }
  9718. b++;
  9719. if (index < 2) {
  9720. this.$message.error("每道题目至少需要设置2个选项。");
  9721. return;
  9722. }
  9723. }
  9724. }
  9725. }
  9726. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9727. var elc = el.checkList.filter((element) => {
  9728. return element != "";
  9729. });
  9730. return el.askstitle != "" && elc.length != 0;
  9731. });
  9732. if (!this.dialogVisible4) {
  9733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9734. this.taskCount
  9735. ].toolChoose[this.toolIndex] = this.askJson;
  9736. }
  9737. this.dialogVisible5 = false;
  9738. if (
  9739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9740. .toolChoose[this.toolIndex].tool != 4
  9741. ) {
  9742. this.addTools(4, this.taskCount, this.toolIndex);
  9743. }
  9744. },
  9745. addTest() {
  9746. // if (this.testJson.testTitle === "") {
  9747. // this.$message.error("标题不能为空!");
  9748. // return;
  9749. // }
  9750. var aj = this.testJson.testJson;
  9751. var b = 1;
  9752. for (var i = 0; i < aj.length; i++) {
  9753. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9754. var a = 1;
  9755. for (let index = 0; index < aj[i].testItem; index++) {
  9756. const element = aj[i].checkList[index]
  9757. ? aj[i].checkList[index]
  9758. : "";
  9759. if (element != "") {
  9760. b++;
  9761. this.$message.error(`请将题目${i + 1}填写完整。`);
  9762. return;
  9763. } else {
  9764. a++;
  9765. }
  9766. }
  9767. if (b == 1) {
  9768. this.$message.error("至少填写一个问题");
  9769. return;
  9770. }
  9771. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9772. for (let index = 0; index < aj[i].testItem; index++) {
  9773. const element = aj[i].checkList[index]
  9774. ? aj[i].checkList[index]
  9775. : "";
  9776. var index = 0;
  9777. for (var z = 0; z < aj[i].checkList.length; z++) {
  9778. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9779. if (checkC != "") {
  9780. index++;
  9781. } else {
  9782. this.$message.error(`题目${i + 1}选项不能为空!`);
  9783. return;
  9784. }
  9785. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  9786. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  9787. if (checkC == checkC2) {
  9788. this.$message.error(
  9789. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  9790. );
  9791. return;
  9792. }
  9793. }
  9794. }
  9795. b++;
  9796. if (index < 2) {
  9797. this.$message.error("每道题目至少需要设置2个选项。");
  9798. return;
  9799. }
  9800. if (
  9801. (aj[i].type == "2" && !aj[i].answer.length) ||
  9802. (aj[i].type == "1" &&
  9803. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  9804. (aj[i].answer !== 0 && !aj[i].answer)))
  9805. ) {
  9806. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  9807. return;
  9808. }
  9809. }
  9810. }
  9811. }
  9812. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9813. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9814. var elc = el.checkList.filter((element) => {
  9815. return element != "";
  9816. });
  9817. return (
  9818. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9819. );
  9820. });
  9821. isTestJson.testCount = isTestJson.testJson.length;
  9822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9823. this.taskCount
  9824. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9825. this.dialogVisibleChoice = false;
  9826. if (
  9827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9828. .toolChoose[this.toolIndex].tool != 45
  9829. ) {
  9830. this.addTools(45, this.taskCount, this.toolIndex);
  9831. }
  9832. },
  9833. addVideoJson(videoJson) {
  9834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9835. this.taskCount
  9836. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9837. this.dialogVisibleVideo = false;
  9838. if (
  9839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9840. .toolChoose[this.toolIndex].tool != 62
  9841. ) {
  9842. this.addTools(62, this.taskCount, this.toolIndex);
  9843. }
  9844. },
  9845. //自动获取剪贴板
  9846. pasteOption() {
  9847. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9848. if (!iframe) {
  9849. this.$message.error("请使用AI共创生成题目");
  9850. return;
  9851. }
  9852. let copyData = iframe.contentWindow.copyData;
  9853. if (!copyData || !copyData.selectData.length) {
  9854. this.$message.error("请使用AI共创生成题目");
  9855. return;
  9856. }
  9857. let selectData = copyData.selectData;
  9858. for (var i = 0; i < selectData.length; i++) {
  9859. let answer = 0;
  9860. switch (selectData[i].answer[0]) {
  9861. case "A":
  9862. answer = 0;
  9863. break;
  9864. case "B":
  9865. answer = 1;
  9866. break;
  9867. case "C":
  9868. answer = 2;
  9869. break;
  9870. case "D":
  9871. answer = 3;
  9872. break;
  9873. case "E":
  9874. answer = 4;
  9875. break;
  9876. default:
  9877. break;
  9878. }
  9879. this.testJson.testJson.push({
  9880. teststitle: selectData[i].subject,
  9881. testItem: selectData[i].options.length,
  9882. checkList: selectData[i].options,
  9883. timuList: [],
  9884. answer: answer,
  9885. type: "1",
  9886. });
  9887. this.testJson.testCount++;
  9888. }
  9889. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9890. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9891. var elc = el.checkList.filter((element) => {
  9892. return element != "";
  9893. });
  9894. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  9895. });
  9896. isTestJson.testCount = isTestJson.testJson.length;
  9897. if (!isTestJson.testCount) {
  9898. return;
  9899. }
  9900. this.testJson = isTestJson;
  9901. this.$forceUpdate();
  9902. },
  9903. pasteTask(taskJson) {
  9904. let stageTasksData = [];
  9905. if (taskJson) {
  9906. stageTasksData = taskJson;
  9907. } else {
  9908. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9909. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9910. if (!iframe && !iframe2) {
  9911. this.$message.error("请使用AI共创生成");
  9912. return;
  9913. }
  9914. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9915. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9916. if (
  9917. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  9918. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  9919. ) {
  9920. this.$message.error("请使用AI共创生成");
  9921. return;
  9922. }
  9923. stageTasksData = copyData
  9924. ? copyData.tasksData
  9925. : copyData2
  9926. ? copyData2.tasksData
  9927. : [{ taskName: "", taskDecs: "" }];
  9928. }
  9929. let taskA = [];
  9930. let tasks = stageTasksData;
  9931. for (var j = 0; j < tasks.length; j++) {
  9932. taskA.push({
  9933. task: tasks[j].taskName,
  9934. taskDetail: tasks[j].taskDecs,
  9935. chapterData: [],
  9936. toolText: "",
  9937. toolChoose: [
  9938. {
  9939. tool: [],
  9940. toolDetail: "",
  9941. toolType: 0,
  9942. askCount: 1,
  9943. askTitle: "",
  9944. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9945. },
  9946. ],
  9947. isShowTools: false,
  9948. askCount: 1,
  9949. isFold: 1,
  9950. askTitle: "",
  9951. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9952. checkJson: [{ checkCount: [], checkPerent: [] }],
  9953. homeworkList: [],
  9954. });
  9955. }
  9956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  9957. this.$forceUpdate();
  9958. },
  9959. pasteStage(stageJson) {
  9960. let stageData = [];
  9961. if (stageJson) {
  9962. stageData = stageJson;
  9963. } else {
  9964. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9965. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  9966. if (!iframe && !iframe2) {
  9967. this.$message.error("请使用AI共创生成");
  9968. return;
  9969. }
  9970. let copyData = iframe ? iframe.contentWindow.copyData : false;
  9971. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  9972. if (
  9973. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  9974. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  9975. ) {
  9976. this.$message.error("请使用AI共创生成");
  9977. return;
  9978. }
  9979. stageData = copyData
  9980. ? copyData.stageData
  9981. : copyData2
  9982. ? copyData2.stageData
  9983. : [""];
  9984. }
  9985. let stage = [];
  9986. for (var i = 0; i < stageData.length; i++) {
  9987. stage.push({
  9988. dyName: stageData[i], //单元标题
  9989. chapterInfo: [
  9990. {
  9991. isread: false,
  9992. chapterid: this.guid(),
  9993. title: "",
  9994. courseName: "",
  9995. taskJson: [
  9996. {
  9997. task: "",
  9998. taskDetail: "",
  9999. chapterData: [],
  10000. toolText: "",
  10001. toolChoose: [
  10002. {
  10003. tool: [],
  10004. toolDetail: "",
  10005. toolType: 0,
  10006. askCount: 1,
  10007. askTitle: "",
  10008. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10009. },
  10010. ],
  10011. isShowTools: false,
  10012. askCount: 1,
  10013. isFold: 1,
  10014. askTitle: "",
  10015. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10016. checkJson: [{ checkCount: [], checkPerent: [] }],
  10017. homeworkList: [],
  10018. },
  10019. ],
  10020. itemCount: 1,
  10021. fileList1: [],
  10022. video: [],
  10023. testData: [],
  10024. pData: [],
  10025. templateArray: [],
  10026. },
  10027. ],
  10028. });
  10029. }
  10030. let _this = this;
  10031. if (stageJson) {
  10032. if (!_this.cid) {
  10033. _this.unitJson = stage;
  10034. } else {
  10035. _this.unitIndex = 0;
  10036. _this.unitJson = stage;
  10037. _this.updateWork();
  10038. }
  10039. } else {
  10040. _this
  10041. .$confirm(
  10042. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  10043. "提示",
  10044. {
  10045. confirmButtonText: "确定",
  10046. cancelButtonText: "取消",
  10047. type: "warning",
  10048. }
  10049. )
  10050. .then(() => {
  10051. _this.unitIndex = 0;
  10052. _this.unitJson = stage;
  10053. // _this.steps++;
  10054. _this.updateWork();
  10055. })
  10056. .catch(() => {
  10057. return;
  10058. });
  10059. }
  10060. },
  10061. openStageBox() {
  10062. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  10063. this.dialogVisibleStageChange = true;
  10064. },
  10065. updateChange() {
  10066. this.$confirm(
  10067. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10068. "提示",
  10069. {
  10070. confirmButtonText: "确定",
  10071. cancelButtonText: "取消",
  10072. type: "warning",
  10073. }
  10074. )
  10075. .then(() => {
  10076. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  10077. this.updateWork();
  10078. this.dialogVisibleStageChange = false;
  10079. })
  10080. .catch(() => {
  10081. return;
  10082. });
  10083. },
  10084. addAnswer() {
  10085. if (this.answerQ == "") {
  10086. this.$message.error("请输入您想要问的问题");
  10087. return;
  10088. }
  10089. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10090. this.taskCount
  10091. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10092. this.dialogVisible8 = false;
  10093. if (
  10094. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10095. .toolChoose[this.toolIndex].tool != 15
  10096. ) {
  10097. this.addTools(15, this.taskCount, this.toolIndex);
  10098. }
  10099. },
  10100. addMp3Answer() {
  10101. if (this.answerQ == "") {
  10102. this.$message.error("请输入您想要回答的问题");
  10103. return;
  10104. }
  10105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10106. this.taskCount
  10107. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10108. this.dialogVisibleMp3 = false;
  10109. },
  10110. addRateAnswer() {
  10111. var a = 1;
  10112. for (var i = 0; i < this.rateJson.length; i++) {
  10113. if (this.rateJson[i].value == "") {
  10114. a = 2;
  10115. break;
  10116. }
  10117. }
  10118. if (a == 2) {
  10119. this.$message.error("请把评价信息填写完整");
  10120. return;
  10121. }
  10122. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10123. this.taskCount
  10124. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10125. this.dialogVisibleRate = false;
  10126. if (
  10127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10128. .toolChoose[this.toolIndex].tool != 40
  10129. ) {
  10130. this.addTools(40, this.taskCount, this.toolIndex);
  10131. }
  10132. },
  10133. addSelectAnswer() {
  10134. if (this.selectJson.url == "") {
  10135. this.$message.error("请上传题目");
  10136. return;
  10137. }
  10138. if (!this.selectJson.select.length) {
  10139. this.$message.error("请添加选项");
  10140. return;
  10141. }
  10142. if (!this.selectJson.answer.length) {
  10143. this.$message.error("请设置答案");
  10144. return;
  10145. }
  10146. var a = 1;
  10147. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10148. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10149. a = 2;
  10150. }
  10151. }
  10152. if (a == 2) {
  10153. this.$message.error("请设置答案");
  10154. return;
  10155. }
  10156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10157. this.taskCount
  10158. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10159. this.dialogVisibleSelect = false;
  10160. if (
  10161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10162. .toolChoose[this.toolIndex].tool != 41
  10163. ) {
  10164. this.addTools(41, this.taskCount, this.toolIndex);
  10165. }
  10166. },
  10167. nextSelectSteps() {
  10168. if (this.selectJson.url == "") {
  10169. this.$message.error("请上传题目");
  10170. return;
  10171. }
  10172. if (!this.selectJson.select.length) {
  10173. this.$message.error("请添加选项");
  10174. return;
  10175. } else {
  10176. for (var z = 0; z < this.selectJson.select.length; z++) {
  10177. let checkC = this.selectJson.select[z];
  10178. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  10179. let checkC2 = this.selectJson.select[z2];
  10180. if (checkC == checkC2) {
  10181. this.$message.error(
  10182. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  10183. );
  10184. return;
  10185. }
  10186. }
  10187. }
  10188. }
  10189. var a = 1;
  10190. for (var i = 0; i < this.selectJson.select.length; i++) {
  10191. if (!this.selectJson.select[i]) {
  10192. a = 2;
  10193. }
  10194. }
  10195. if (a == 2) {
  10196. this.$message.error("添加的选项不能为空");
  10197. return;
  10198. }
  10199. this.selectSteps++;
  10200. },
  10201. selectCourseDetail() {
  10202. if (this.cid == "" || this.cid == undefined) {
  10203. if (this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  10204. this.isTeacherSee = true;
  10205. }
  10206. console.log("这是新增课程");
  10207. this.selectAllType();
  10208. } else {
  10209. this.cidType = 1;
  10210. let params = {
  10211. cid: this.cid,
  10212. };
  10213. this.ajax
  10214. .get(this.$store.state.api + "select_course_detail", params)
  10215. .then((res) => {
  10216. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10217. this.courseState = res.data[0][0].state;
  10218. for (var j = 0; j < this.unitJson.length; j++) {
  10219. for (
  10220. var k = 0;
  10221. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10222. k++
  10223. ) {
  10224. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10225. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10226. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10227. : [];
  10228. let _chapterData = [];
  10229. for (
  10230. var c = 0;
  10231. c <
  10232. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10233. .length;
  10234. c++
  10235. ) {
  10236. if (
  10237. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10238. ) {
  10239. _chapterData.push(
  10240. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10241. );
  10242. }
  10243. }
  10244. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10245. _chapterData;
  10246. }
  10247. }
  10248. this.$forceUpdate();
  10249. this.courseName = res.data[0][0].title;
  10250. this.courseText = res.data[0][0].brief;
  10251. this.courseText2 = res.data[0][0].reBrief;
  10252. this.evalua = res.data[0][0].evaId;
  10253. this.cover = JSON.parse(res.data[0][0].cover);
  10254. this.noneBtnImg = this.cover.length >= 1;
  10255. if(res.data[0][0].refile){
  10256. this.infoData = JSON.parse(res.data[0][0].refile)
  10257. }
  10258. // this.checkboxList =
  10259. // res.data[0][0].course_student.length > 0
  10260. // ? JSON.parse(res.data[0][0].course_student)
  10261. // : [];
  10262. this.checkboxList2 = res.data[0][0].juri
  10263. ? res.data[0][0].juri.split(",")
  10264. : [];
  10265. this.inviteCode = [];
  10266. for (var i = 0; i < res.data[2].length; i++) {
  10267. this.inviteCode.push({
  10268. cid: res.data[2][i].classid,
  10269. ic: res.data[2][i].code,
  10270. });
  10271. }
  10272. this.checkboxList3 = res.data[0][0].course_teacher
  10273. ? res.data[0][0].course_teacher.split(",")
  10274. : [];
  10275. // this.isTeacherSee =
  10276. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10277. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10278. this.myWord = res.data[0][0].template;
  10279. this.templateC.id = "123";
  10280. this.courseUserid = res.data[0][0].userid;
  10281. // if(this.courseUserid == this.userid){
  10282. // this.InviteChange(this.checkboxList2)
  10283. // }
  10284. this.nbOrder = res.data[0][0].ordernumber;
  10285. this.courseTypeId = [];
  10286. for (var i = 0; i < res.data[1].length; i++) {
  10287. this.courseTypeId.push(res.data[1][i].typeid);
  10288. }
  10289. console.log(this.courseTypeId);
  10290. // if (this.timer) clearInterval(this.timer);
  10291. if (this.timer) clearTimeout(this.timer);
  10292. this.timer = null;
  10293. // this.timer = setInterval(() => {
  10294. this.seleteCourseUpdate();
  10295. this.setMan();
  10296. this.selectAllType();
  10297. this.unitJson[
  10298. this.unitIndex
  10299. ].chapterInfo[0].taskJson[0].toolOpen = true;
  10300. // }, 5000);
  10301. this.$forceUpdate();
  10302. setTimeout(() => {
  10303. this.checkEva(this.evalua);
  10304. setTimeout(() => {
  10305. this.checkEva(this.evalua);
  10306. }, 100);
  10307. }, 100);
  10308. })
  10309. .catch((err) => {
  10310. console.error(err);
  10311. });
  10312. }
  10313. },
  10314. seleteCourseUpdate() {
  10315. let params = {
  10316. cid: this.cid,
  10317. };
  10318. this.ajax
  10319. .get(this.$store.state.api + "select_course_detail", params)
  10320. .then((res) => {
  10321. // console.log(this.unitJson);
  10322. let unitJson = JSON.parse(res.data[0][0].chapters);
  10323. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10324. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10325. let _unitJson = [];
  10326. let _chapAarry = [];
  10327. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10328. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10329. let index = 1;
  10330. let chapindex;
  10331. if (_unitJson2.length > unitJson.length) {
  10332. for (let c = 0; c < _unitJson2.length; c++) {
  10333. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10334. }
  10335. for (let j = 0; j < unitJson.length; j++) {
  10336. let count = 0;
  10337. for (let k = 0; k < _unitJson2.length; k++) {
  10338. if (
  10339. unitJson[j].chapterInfo[0].chapterid ==
  10340. _unitJson2[k].chapterInfo[0].chapterid
  10341. ) {
  10342. count++;
  10343. _chapAarry.splice(
  10344. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10345. 1
  10346. );
  10347. _unitJson.push(unitJson[j]);
  10348. break;
  10349. }
  10350. }
  10351. // if(count === 0){
  10352. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10353. // }
  10354. }
  10355. for (let k = 0; k < _unitJson2.length; k++) {
  10356. if (_unitJson2[k].isUpdate == 1) {
  10357. _chapAarry.splice(
  10358. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10359. 1
  10360. );
  10361. _unitJson.push(_unitJson2[k]);
  10362. }
  10363. }
  10364. console.log(_chapAarry);
  10365. for (let d = 0; d < _unitJson2.length; d++) {
  10366. if (
  10367. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10368. ) {
  10369. if (_unitIndex == d) {
  10370. index = 2;
  10371. }
  10372. chapindex = d;
  10373. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10374. }
  10375. }
  10376. } else {
  10377. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10378. }
  10379. for (let i = 0; i < unitJson.length; i++) {
  10380. if (
  10381. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10382. _unitJson[i].chapterInfo[0].chapterid !=
  10383. unitJson[i].chapterInfo[0].chapterid
  10384. ) {
  10385. if (i == _unitJson.length - 1) {
  10386. // this.unitIndex++
  10387. _unitIndex2++;
  10388. }
  10389. _unitJson.splice(i, 0, unitJson[i]);
  10390. } else if (i > _unitJson.length - 1) {
  10391. _unitJson.push(unitJson[i]);
  10392. } else if (
  10393. _unitJson[i].chapterInfo[0].chapterid ==
  10394. unitJson[i].chapterInfo[0].chapterid
  10395. ) {
  10396. _unitJson[i] = unitJson[i];
  10397. }
  10398. // if (i == _unitIndex) {
  10399. // continue;
  10400. // } else
  10401. }
  10402. if (_chapAarry.length && index != 2) {
  10403. if (chapindex < _unitIndex) {
  10404. this.isDelete = 2;
  10405. // this.unitIndex--;
  10406. _unitIndex2--;
  10407. } else if (
  10408. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10409. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10410. ) {
  10411. this.isDelete = 2;
  10412. for (let n = 0; n < _unitJson.length; n++) {
  10413. if (
  10414. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10415. _unitJson[n].chapterInfo[0].chapterid
  10416. ) {
  10417. // this.unitIndex = n;
  10418. _unitIndex2 = n;
  10419. _unitJson[n] = _unitJson2[_unitIndex];
  10420. break;
  10421. }
  10422. }
  10423. }
  10424. } else if (index != 2) {
  10425. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10426. _unitJson2[_unitIndex];
  10427. for (
  10428. var ci = 0;
  10429. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10430. ci++
  10431. ) {
  10432. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10433. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10434. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10435. .toolChoose
  10436. : [];
  10437. let _chapterData = [];
  10438. for (
  10439. var c = 0;
  10440. c <
  10441. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10442. .length;
  10443. c++
  10444. ) {
  10445. if (
  10446. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10447. .chapterData[c]
  10448. ) {
  10449. _chapterData.push(
  10450. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10451. .chapterData[c]
  10452. );
  10453. }
  10454. }
  10455. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10456. _chapterData;
  10457. }
  10458. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10459. }
  10460. if (index == 1) {
  10461. this.unitJson = _unitJson;
  10462. this.$forceUpdate();
  10463. setTimeout(() => {
  10464. if (this.unitIndex != _unitIndex2) {
  10465. this.isDelete = 2;
  10466. this.unitIndex = _unitIndex2;
  10467. }
  10468. }, 0);
  10469. this.timer = setTimeout(() => {
  10470. this.seleteCourseUpdate();
  10471. }, 1000);
  10472. } else if (index == 2) {
  10473. let _this = this;
  10474. _this
  10475. .$confirm(
  10476. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10477. "提示",
  10478. {
  10479. confirmButtonText: "需要",
  10480. cancelButtonText: "取消",
  10481. type: "warning",
  10482. }
  10483. )
  10484. .then(() => {
  10485. if (_this.time()) {
  10486. _this.restoreWork(
  10487. _chapAarry[0],
  10488. _unitJson,
  10489. chapindex,
  10490. _unitJson2,
  10491. _unitIndex2
  10492. );
  10493. }
  10494. })
  10495. .catch(() => {
  10496. _this.unitJson = _unitJson;
  10497. _this.$forceUpdate();
  10498. setTimeout(() => {
  10499. if (this.unitIndex != _unitIndex2) {
  10500. this.isDelete = 2;
  10501. this.unitIndex = _unitIndex2;
  10502. }
  10503. }, 0);
  10504. _this.timer = setTimeout(() => {
  10505. _this.seleteCourseUpdate();
  10506. }, 1000);
  10507. });
  10508. }
  10509. // 在复制操作之前记录滚动位置
  10510. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10511. // 执行复制操作
  10512. // 复制操作完成后恢复滚动位置
  10513. this.$nextTick(() => {
  10514. if (this.$refs.scrollContainer) {
  10515. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10516. }
  10517. });
  10518. })
  10519. .catch((err) => {
  10520. console.error(err);
  10521. });
  10522. },
  10523. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10524. let params = [
  10525. {
  10526. cid: this.cid,
  10527. chapters: JSON.stringify(this.unitJson),
  10528. uid: this.userid,
  10529. chapid: chapid,
  10530. },
  10531. ];
  10532. this.ajax
  10533. .post(this.$store.state.api + "restoreWork", params)
  10534. .then((res) => {
  10535. this.$message({
  10536. message: "恢复成功",
  10537. type: "success",
  10538. });
  10539. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10540. this.unitJson = unitJson;
  10541. this.$forceUpdate();
  10542. setTimeout(() => {
  10543. if (this.unitIndex != unitIndex2) {
  10544. this.isDelete = 2;
  10545. this.unitIndex = unitIndex2;
  10546. }
  10547. }, 0);
  10548. this.timer = setTimeout(() => {
  10549. this.seleteCourseUpdate();
  10550. }, 1000);
  10551. })
  10552. .catch((err) => {
  10553. this.$message.error("网络不佳");
  10554. console.error(err);
  10555. });
  10556. },
  10557. getTypeName() {
  10558. console.log(this.courseTypeId);
  10559. this.$forceUpdate();
  10560. },
  10561. selectAllType() {
  10562. let params = {
  10563. org: this.org && this.org != "" ? this.org : "",
  10564. oid: this.oid && this.oid != "" ? this.oid : "",
  10565. };
  10566. this.ajax
  10567. .get(this.$store.state.api + "selectAllType", params)
  10568. .then((res) => {
  10569. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10570. res.data[0] = [...res.data[0], ...res.data[4]];
  10571. }
  10572. this.CourseType = res.data;
  10573. this.CourseType2 = [
  10574. { name: "智见课程", id: [] },
  10575. { name: "智行课程", id: [] },
  10576. { name: "智创课程", id: [] },
  10577. ];
  10578. for (var cti = 0; cti < res.data[0].length; cti++) {
  10579. if (
  10580. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10581. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  10582. ) {
  10583. this.CourseType2[0].id.push(res.data[0][cti].id);
  10584. } else if (
  10585. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  10586. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10587. ) {
  10588. this.CourseType2[1].id.push(res.data[0][cti].id);
  10589. } else if (
  10590. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10591. ) {
  10592. this.CourseType2[2].id.push(res.data[0][cti].id);
  10593. }
  10594. if (
  10595. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  10596. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  10597. ) {
  10598. res.data[0][cti].name = "年级";
  10599. } else if (
  10600. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  10601. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  10602. ) {
  10603. res.data[0][cti].name = "学科";
  10604. } else if (
  10605. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  10606. ) {
  10607. res.data[0][cti].name = "主题";
  10608. }
  10609. }
  10610. let _courseTypeId = [];
  10611. for (var i = 0; i < res.data[0].length; i++) {
  10612. if (!this.cid) {
  10613. this.courseTypeId[res.data[0][i].id] = [];
  10614. }
  10615. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10616. // }
  10617. this.CourseTypeJson[res.data[0][i].id] = [];
  10618. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10619. if (res.data[0][i].name == "栏目") {
  10620. this.CourseType[0][i].name = "主题";
  10621. }
  10622. }
  10623. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10624. for (var j = 0; j < res.data[1].length; j++) {
  10625. if (
  10626. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10627. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10628. ) {
  10629. _courseTypeId.push(res.data[1][j].id);
  10630. }
  10631. if (res.data[0][i].id == res.data[1][j].pid) {
  10632. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10633. }
  10634. }
  10635. } else {
  10636. if (res.data[2].length > 0) {
  10637. for (var j = 0; j < res.data[2].length; j++) {
  10638. if (
  10639. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10640. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10641. ) {
  10642. _courseTypeId.push(res.data[2][j].id);
  10643. }
  10644. if (res.data[0][i].id == res.data[2][j].pid) {
  10645. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10646. }
  10647. }
  10648. }
  10649. if (res.data[3].length > 0) {
  10650. for (var j = 0; j < res.data[3].length; j++) {
  10651. if (
  10652. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10653. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10654. ) {
  10655. _courseTypeId.push(res.data[3][j].id);
  10656. }
  10657. if (res.data[0][i].id == res.data[3][j].pid) {
  10658. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10659. }
  10660. }
  10661. }
  10662. }
  10663. }
  10664. this.courseTypeId = _courseTypeId;
  10665. })
  10666. .catch((err) => {
  10667. console.error(err);
  10668. });
  10669. },
  10670. selectType() {
  10671. this.ajax
  10672. .get(this.$store.state.api + "selectType")
  10673. .then((res) => {
  10674. this.CourseType = res.data;
  10675. for (var i = 0; i < res.data[0].length; i++) {
  10676. if (!this.cid) {
  10677. this.courseTypeId[res.data[0][i].id] = "";
  10678. }
  10679. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10680. if (res.data[0][i].name == "栏目") {
  10681. this.CourseType[0][i].name = "主题";
  10682. }
  10683. }
  10684. for (var j = 0; j < res.data[1].length; j++) {
  10685. if (res.data[0][i].id == res.data[1][j].pid) {
  10686. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10687. this.CourseTypeJson[res.data[0][i].id] = [];
  10688. }
  10689. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10690. }
  10691. }
  10692. }
  10693. this.selectTypeByOid();
  10694. this.selectTypeByOrg();
  10695. })
  10696. .catch((err) => {
  10697. console.error(err);
  10698. });
  10699. },
  10700. selectTypeByOid() {
  10701. let params = {
  10702. oid: this.oid,
  10703. };
  10704. this.ajax
  10705. .get(this.$store.state.api + "selectTypeByOid", params)
  10706. .then((res) => {
  10707. for (var i = 0; i < res.data[0].length; i++) {
  10708. for (var j = 0; j < res.data[1].length; j++) {
  10709. if (res.data[0][i].id == res.data[1][j].pid) {
  10710. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10711. this.CourseTypeJson[res.data[0][i].id] = [];
  10712. }
  10713. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10714. }
  10715. }
  10716. }
  10717. })
  10718. .catch((err) => {
  10719. console.error(err);
  10720. });
  10721. },
  10722. selectTypeByOrg() {
  10723. let params = {
  10724. oid: this.org,
  10725. };
  10726. this.ajax
  10727. .get(this.$store.state.api + "selectTypeByOrg", params)
  10728. .then((res) => {
  10729. for (var i = 0; i < res.data[0].length; i++) {
  10730. for (var j = 0; j < res.data[1].length; j++) {
  10731. if (res.data[0][i].id == res.data[1][j].pid) {
  10732. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10733. this.CourseTypeJson[res.data[0][i].id] = [];
  10734. }
  10735. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10736. }
  10737. }
  10738. }
  10739. this.$forceUpdate();
  10740. })
  10741. .catch((err) => {
  10742. console.error(err);
  10743. });
  10744. },
  10745. OtherMb(type, task) {
  10746. if (task === 0 || task) {
  10747. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10748. task
  10749. ].isEvaFold = true;
  10750. }
  10751. this.typeMode = type;
  10752. setTimeout(() => {
  10753. this.checkEva(this.checkId);
  10754. setTimeout(() => {
  10755. this.checkEva(this.checkId);
  10756. }, 100);
  10757. }, 100);
  10758. },
  10759. openMember() {
  10760. this.searchTN = "";
  10761. this.getTeacher();
  10762. this.dialogVisibleMember = true;
  10763. },
  10764. checkEva(id, type) {
  10765. this.dialogVisiblemb = false;
  10766. this.selectEva();
  10767. if (this.evalua != id && type == 2) {
  10768. this.$message.success("导入成功");
  10769. setTimeout(() => {
  10770. this.checkEva(id);
  10771. }, 100);
  10772. }
  10773. this.evalua = id;
  10774. this.checkId = id;
  10775. if (this.evalua != "") {
  10776. for (var i = 0; i < this.evaJuri.length; i++) {
  10777. if (this.evalua == this.evaJuri[i].id) {
  10778. this.eTitle = this.evaJuri[i].title;
  10779. this.eJson = JSON.parse(this.evaJuri[i].content);
  10780. }
  10781. }
  10782. this.data.data = [];
  10783. this.$forceUpdate();
  10784. setTimeout(() => {
  10785. this.setMindData();
  10786. }, 1000);
  10787. }
  10788. },
  10789. deleteEva() {
  10790. let _this = this;
  10791. if (_this.evalua == "") {
  10792. this.$message.warning("内容已经清空了,请勿重复清空");
  10793. return;
  10794. }
  10795. _this
  10796. .$confirm("确定删除此目标吗?", "提示", {
  10797. confirmButtonText: "确定",
  10798. cancelButtonText: "取消",
  10799. type: "warning",
  10800. })
  10801. .then(() => {
  10802. _this.evalua = "";
  10803. _this.checkId = "";
  10804. _this.eTitle = "";
  10805. let _unitJson = _this.unitJson;
  10806. for (var i = 0; i < _unitJson.length; i++) {
  10807. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10808. for (var j = 0; j < _task.length; j++) {
  10809. let _eList = _task[j].eList;
  10810. for (var k = 0; k < _eList.length; k++) {
  10811. delete _eList[k].target;
  10812. }
  10813. }
  10814. }
  10815. _this.$forceUpdate();
  10816. if (_this.cid) {
  10817. _this.updateWork();
  10818. }
  10819. })
  10820. .catch(() => {
  10821. return;
  10822. });
  10823. },
  10824. selectEva() {
  10825. let params = {
  10826. oid: this.oid,
  10827. };
  10828. this.ajax
  10829. .get(this.$store.state.api + "selectAllEvaluation", params)
  10830. .then((res) => {
  10831. this.evaJuri = res.data[0];
  10832. // 在复制操作之前记录滚动位置
  10833. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  10834. // 执行复制操作
  10835. // 复制操作完成后恢复滚动位置
  10836. this.$nextTick(() => {
  10837. if (this.$refs.scrollContainer) {
  10838. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  10839. }
  10840. });
  10841. })
  10842. .catch((err) => {
  10843. console.error(err);
  10844. });
  10845. },
  10846. setMindData() {
  10847. let targetArray = [];
  10848. this.data.data = [];
  10849. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10850. let _eJson = Object.keys(this.eJson);
  10851. let _e = this.eJson;
  10852. for (let i = 0; i < _eJson.length; i++) {
  10853. let element = _e[_eJson[i]];
  10854. this.data.data.push({
  10855. id: element.id,
  10856. parentid: "root",
  10857. topic: element.name,
  10858. });
  10859. // targetArray.push({
  10860. // id: element.id,
  10861. // parentid: "root",
  10862. // name: element.name,
  10863. // });
  10864. targetArray.push({
  10865. value: element.name,
  10866. label: element.name,
  10867. children: [],
  10868. });
  10869. let _eJsonc = Object.keys(element.child);
  10870. let _e2 = element.child;
  10871. for (let j = 0; j < _eJsonc.length; j++) {
  10872. let _ec = _e2[_eJsonc[j]];
  10873. this.data.data.push({
  10874. id: _ec.id,
  10875. parentid: element.id,
  10876. topic: _ec.name,
  10877. });
  10878. // targetArray.push({
  10879. // id: _ec.id,
  10880. // parentid: element.id,
  10881. // name: _ec.name,
  10882. // });
  10883. targetArray[i].children.push({
  10884. value: _ec.name,
  10885. label: _ec.name,
  10886. children: [],
  10887. });
  10888. let _eJsonz = Object.keys(_ec.child);
  10889. let _e3 = _ec.child;
  10890. for (let z = 0; z < _eJsonz.length; z++) {
  10891. let _ez = _e3[_eJsonz[z]];
  10892. this.data.data.push({
  10893. id: _ez.id,
  10894. parentid: _ec.id,
  10895. topic: _ez.name,
  10896. });
  10897. // targetArray.push({
  10898. // id: _ez.id,
  10899. // parentid: _ec.id,
  10900. // name: _ez.name,
  10901. // });
  10902. targetArray[i].children[j].children.push({
  10903. value: _ez.name,
  10904. label: _ez.name,
  10905. });
  10906. }
  10907. }
  10908. }
  10909. this.targetArray = targetArray;
  10910. this.$forceUpdate();
  10911. },
  10912. /*添加评价 */
  10913. addEList(index, tIndex) {
  10914. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10915. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10916. value: "",
  10917. detail: "",
  10918. score: 5,
  10919. })
  10920. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10921. { value: "", detail: "", score: 5 },
  10922. ]);
  10923. this.$forceUpdate();
  10924. },
  10925. openEList(index, tIndex) {
  10926. this.evaIndex = index;
  10927. this.evatIndex = tIndex;
  10928. this.evaBoxDialog = true;
  10929. },
  10930. addCET(index, tIndex) {
  10931. this.cetIndex = index;
  10932. this.cettIndex = tIndex;
  10933. this.selectAllType1();
  10934. },
  10935. addCETemplate() {
  10936. var array =
  10937. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  10938. .eList;
  10939. let params = [
  10940. {
  10941. uid: this.userid,
  10942. n: this.templateName,
  10943. json: JSON.stringify(array),
  10944. t: 1,
  10945. oid: this.oid,
  10946. },
  10947. ];
  10948. this.ajax
  10949. .post(this.$store.state.api + "addCETShare", params)
  10950. .then((res) => {
  10951. this.addTypeByCET(res.data[0][0].id);
  10952. })
  10953. .catch((err) => {
  10954. this.$message.error("网络不佳");
  10955. console.error(err);
  10956. });
  10957. },
  10958. addTypeByCET(id) {
  10959. if (this.setTypeJson.two == "") {
  10960. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  10961. return;
  10962. }
  10963. let params = {
  10964. cid: id,
  10965. };
  10966. this.ajax
  10967. .get(this.$store.state.api + "deleteCETLabel", params)
  10968. .then((res) => {
  10969. for (var i = 0; i < 2; i++) {
  10970. let tid = "";
  10971. if (i == 0) {
  10972. tid = this.setTypeJson.one;
  10973. } else {
  10974. tid = this.setTypeJson.two;
  10975. }
  10976. let params = [
  10977. {
  10978. cid: id,
  10979. tid: tid,
  10980. uid: this.userid,
  10981. },
  10982. ];
  10983. this.ajax
  10984. .post(this.$store.state.api + "addCETLabel", params)
  10985. .then((res) => {
  10986. this.$message({
  10987. message: "添加成功",
  10988. type: "success",
  10989. });
  10990. this.close();
  10991. })
  10992. .catch((err) => {
  10993. this.$message.error("网络不佳");
  10994. console.error(err);
  10995. });
  10996. }
  10997. })
  10998. .catch((err) => {
  10999. this.$message.error("网络不佳");
  11000. console.error(err);
  11001. });
  11002. },
  11003. updateEvaJson(array) {
  11004. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  11005. this.evatIndex
  11006. ].eList = array;
  11007. },
  11008. forceUpdate() {
  11009. this.$forceUpdate();
  11010. },
  11011. deletEList(index, tIndex, eIndex) {
  11012. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11013. eIndex,
  11014. 1
  11015. );
  11016. this.$forceUpdate();
  11017. },
  11018. getChoosePic(t) {
  11019. this.chooseType = t;
  11020. this.getAllBanner();
  11021. },
  11022. getAllBanner() {
  11023. this.sysPicVisible = true;
  11024. let params = {
  11025. t: this.chooseType,
  11026. };
  11027. this.ajax
  11028. .get(this.$store.state.api + "selectAllBanner", params)
  11029. .then((res) => {
  11030. this.sysPic = res.data[0];
  11031. })
  11032. .catch((err) => {
  11033. console.error(err);
  11034. });
  11035. },
  11036. // getClass() {
  11037. // let params = {
  11038. // oid: this.oid,
  11039. // };
  11040. // this.ajax
  11041. // .get(this.$store.state.api + "selectClassBySchool", params)
  11042. // .then((res) => {
  11043. // this.classJuri = res.data[0];
  11044. // })
  11045. // .catch((err) => {
  11046. // console.error(err);
  11047. // });
  11048. // },
  11049. deleteSysPic() {
  11050. this.cover = [];
  11051. this.isSysPic = false;
  11052. this.isSysPic2 = false;
  11053. },
  11054. deleteSelectPic() {
  11055. this.selectJson.url = "";
  11056. },
  11057. setEListStar() {
  11058. this.$forceUpdate();
  11059. },
  11060. deletRateList(i) {
  11061. this.rateJson.splice(i, 1);
  11062. },
  11063. addRateList() {
  11064. this.rateJson.push({ detail: "", score: 5, value: "" });
  11065. },
  11066. addSt() {
  11067. this.sentenceList.push({
  11068. sentenceTitle: "",
  11069. addSentence: [],
  11070. rightAnswer: [],
  11071. });
  11072. },
  11073. addSen(i) {
  11074. if (!this.sentenceList[i].sentenceTitle) {
  11075. this.$message.error("请填写卡片内容!");
  11076. return;
  11077. }
  11078. if (this.sentenceList[i].sentenceTitle.length > 10) {
  11079. this.$message.error("卡片内容字数不能超过10位");
  11080. return;
  11081. }
  11082. if (
  11083. this.sentenceList[i].addSentence.indexOf(
  11084. this.sentenceList[i].sentenceTitle
  11085. ) !== -1
  11086. ) {
  11087. this.$message.error("不能添加重复的卡片内容!");
  11088. return;
  11089. }
  11090. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11091. // this.isPushTitleList.push(this.sentenceTitle);
  11092. this.sentenceList[i].sentenceTitle = "";
  11093. },
  11094. setRightAnswer(s, i, j) {
  11095. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11096. this.sentenceList[i].rightAnswer.push(s);
  11097. }
  11098. },
  11099. returnCard(r, i, j) {
  11100. this.sentenceList[i].rightAnswer.splice(j, 1);
  11101. },
  11102. addSentenceTool() {
  11103. for (var i = 0; i < this.sentenceList.length; i++) {
  11104. if (this.sentenceList[i].rightAnswer.length == 0) {
  11105. this.$message.error(`请将题目${i + 1}设置完整。`);
  11106. return;
  11107. }
  11108. if (
  11109. this.sentenceList[i].addSentence.length !=
  11110. this.sentenceList[i].rightAnswer.length
  11111. ) {
  11112. this.$message.error(`请将题目${i + 1}设置完整。`);
  11113. return;
  11114. }
  11115. }
  11116. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11117. this.taskCount
  11118. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11119. this.sentenceList = [
  11120. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11121. ];
  11122. this.dialogVisibleSentence = false;
  11123. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11124. // itemTaskIndex
  11125. // ].toolChoose[toolIndex].tool = [];
  11126. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11127. // itemTaskIndex
  11128. // ].toolChoose[toolIndex].tool.push(i);
  11129. if (
  11130. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11131. .toolChoose[this.toolIndex].tool != 47
  11132. ) {
  11133. this.addTools(47, this.taskCount, this.toolIndex);
  11134. }
  11135. },
  11136. addTableJson() {
  11137. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11138. // this.$message.error("请将信息填写完整!");
  11139. // return;
  11140. // }
  11141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11142. this.taskCount
  11143. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11144. // this.tableJson = [{ text: "" }];
  11145. // this.dialogVisibleTable = false;
  11146. this.$message.success("上传成功");
  11147. if (
  11148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11149. .toolChoose[this.toolIndex].tool != 48
  11150. ) {
  11151. this.addTools(48, this.taskCount, this.toolIndex);
  11152. }
  11153. },
  11154. addWordJson() {
  11155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11156. this.taskCount
  11157. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11158. // this.wordJson = [{ text: "" }];
  11159. // this.dialogVisibleWord = false;
  11160. this.$message.success("上传成功");
  11161. if (
  11162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11163. .toolChoose[this.toolIndex].tool != 52
  11164. ) {
  11165. this.addTools(52, this.taskCount, this.toolIndex);
  11166. }
  11167. },
  11168. addMoreUpload() {
  11169. if (this.uploadJson.length == 0) {
  11170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11171. this.taskCount
  11172. ].toolChoose[this.toolIndex].uploadJson = [];
  11173. } else {
  11174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11175. this.taskCount
  11176. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11177. }
  11178. this.uploadJson = [];
  11179. this.dialogVisibleMoreUpload = false;
  11180. if (
  11181. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11182. .toolChoose[this.toolIndex].tool != 50
  11183. ) {
  11184. this.addTools(50, this.taskCount, this.toolIndex);
  11185. }
  11186. },
  11187. addPreTime() {
  11188. if (this.preTime == 0) {
  11189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11190. this.taskCount
  11191. ].toolChoose[this.toolIndex].preTime = 0;
  11192. } else {
  11193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11194. this.taskCount
  11195. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11196. }
  11197. this.preTime = 0;
  11198. this.dialogVisiblePreTime = false;
  11199. if (
  11200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11201. .toolChoose[this.toolIndex].tool != 10
  11202. ) {
  11203. this.addTools(10, this.taskCount, this.toolIndex);
  11204. }
  11205. },
  11206. goToTask(i) {
  11207. this.toolIndexType = "";
  11208. if (this.isClickColor == i + 1) {
  11209. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11210. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11211. // } else {
  11212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11213. i
  11214. ].toolOpen = true;
  11215. // }
  11216. this.$forceUpdate();
  11217. return;
  11218. }
  11219. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11220. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11221. // } else {
  11222. document.querySelectorAll(".basic_box")[0].scrollTop =
  11223. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11224. this.isClickColor = i + 1;
  11225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11226. // }
  11227. this.$forceUpdate();
  11228. },
  11229. taskOpen(i, stageIndex) {
  11230. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11231. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  11232. } else {
  11233. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11234. }
  11235. this.updateWork3(stageIndex);
  11236. this.$forceUpdate();
  11237. },
  11238. goToTask2(i, stage) {
  11239. this.toolIndexType = "";
  11240. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  11241. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11242. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11243. // } else {
  11244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11245. i
  11246. ].toolOpen = true;
  11247. // }
  11248. this.$forceUpdate();
  11249. return;
  11250. }
  11251. if (this.unitIndex != stage) {
  11252. if (this.panUnitJson() == 2) {
  11253. return;
  11254. }
  11255. this.unitSet(stage);
  11256. }
  11257. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  11258. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11259. // } else {
  11260. document.querySelectorAll(".basic_box")[0].scrollTop =
  11261. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  11262. this.isClickColor = i + 1;
  11263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  11264. // }
  11265. this.$forceUpdate();
  11266. },
  11267. taskMove(type, index) {
  11268. this.$confirm(
  11269. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11270. "提示",
  11271. {
  11272. confirmButtonText: "确定",
  11273. cancelButtonText: "取消",
  11274. type: "warning",
  11275. }
  11276. )
  11277. .then(() => {
  11278. if (type == 1) {
  11279. if (index > 0) {
  11280. let a = JSON.parse(
  11281. JSON.stringify(
  11282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11283. index - 1
  11284. ]
  11285. )
  11286. );
  11287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11289. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11290. }
  11291. } else {
  11292. if (
  11293. index <
  11294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11295. ) {
  11296. let a = JSON.parse(
  11297. JSON.stringify(
  11298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11299. index + 1
  11300. ]
  11301. )
  11302. );
  11303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11306. }
  11307. }
  11308. this.$forceUpdate();
  11309. })
  11310. .catch(() => {
  11311. return;
  11312. });
  11313. },
  11314. stageMove(type, index) {
  11315. if (type == 1) {
  11316. if (index > 0) {
  11317. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  11318. let acid = JSON.parse(
  11319. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  11320. );
  11321. let bcid = JSON.parse(
  11322. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11323. );
  11324. this.unitJson3[index - 1] = this.unitJson3[index];
  11325. this.unitJson3[index] = a;
  11326. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  11327. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11328. }
  11329. } else {
  11330. if (index < this.unitJson3.length - 1) {
  11331. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  11332. let acid = JSON.parse(
  11333. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  11334. );
  11335. let bcid = JSON.parse(
  11336. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  11337. );
  11338. this.unitJson3[index + 1] = this.unitJson3[index];
  11339. this.unitJson3[index] = a;
  11340. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  11341. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  11342. }
  11343. }
  11344. this.$forceUpdate();
  11345. },
  11346. addGroup(i) {
  11347. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11348. this.groupJson.group.push({
  11349. name: "第" + (this.groupJson.group.length + 1) + "组",
  11350. });
  11351. },
  11352. deleteGroup(i) {
  11353. this.groupJson.group.splice(i, 1);
  11354. },
  11355. numberPan() {
  11356. if (
  11357. /[^\d]/.test(this.groupJson.number) ||
  11358. this.groupJson.number < 2 ||
  11359. this.groupJson.number > 10
  11360. ) {
  11361. this.$message.error("请输入2-10的数字");
  11362. this.groupJson.number = "";
  11363. }
  11364. },
  11365. addGroupJson() {
  11366. for (var i = 0; i < this.groupJson.group.length; i++) {
  11367. if (!this.groupJson.group[i].name) {
  11368. this.$message.error("请将信息填写完整!");
  11369. return;
  11370. }
  11371. }
  11372. if (!this.groupJson.number) {
  11373. this.$message.error("请将信息填写完整!");
  11374. return;
  11375. }
  11376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11377. this.taskCount
  11378. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11379. JSON.stringify(this.groupJson)
  11380. );
  11381. this.dialogVisibleGroup = false;
  11382. this.groupJson = {};
  11383. if (
  11384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11385. .toolChoose[this.toolIndex].tool != 49
  11386. ) {
  11387. this.addTools(49, this.taskCount, this.toolIndex);
  11388. }
  11389. },
  11390. updateTime(preTime) {
  11391. this.preTime = preTime;
  11392. },
  11393. InviteChange(val) {
  11394. console.log(val);
  11395. let _check = [];
  11396. let _check2 = [];
  11397. for (var i = 0; i < this.grade2.length; i++) {
  11398. var gid = this.grade2[i].id;
  11399. _check.push(gid);
  11400. }
  11401. for (var i = 0; i < this.checkboxList2.length; i++) {
  11402. var _id = this.checkboxList2[i];
  11403. if (_check.indexOf(_id) !== -1) {
  11404. _check2.push(_id);
  11405. }
  11406. }
  11407. this.checkAll = _check2.length === _check.length;
  11408. return;
  11409. let array = JSON.parse(JSON.stringify(val));
  11410. this.inviteCode = this.inviteCode.filter((el) => {
  11411. if (val.indexOf(el.cid) != -1) {
  11412. array.splice(array.indexOf(el.cid), 1);
  11413. return el;
  11414. }
  11415. });
  11416. for (var i = 0; i < array.length; i++) {
  11417. this.getInviteCode(array[i]);
  11418. }
  11419. },
  11420. InviteChange2(val) {
  11421. console.log(val);
  11422. let _check = [];
  11423. let _check2 = [];
  11424. for (var i = 0; i < this.teacherJuri.length; i++) {
  11425. var gid = this.teacherJuri[i].userid;
  11426. _check.push(gid);
  11427. }
  11428. for (var i = 0; i < this.checkboxList3.length; i++) {
  11429. var _id = this.checkboxList3[i];
  11430. if (_check.indexOf(_id) !== -1) {
  11431. _check2.push(_id);
  11432. }
  11433. }
  11434. this.checkAll2 = _check2.length === _check.length;
  11435. this.setMan();
  11436. return;
  11437. let array = JSON.parse(JSON.stringify(val));
  11438. this.inviteCode = this.inviteCode.filter((el) => {
  11439. if (val.indexOf(el.cid) != -1) {
  11440. array.splice(array.indexOf(el.cid), 1);
  11441. return el;
  11442. }
  11443. });
  11444. for (var i = 0; i < array.length; i++) {
  11445. this.getInviteCode(array[i]);
  11446. }
  11447. },
  11448. handleCheckAllChange(val) {
  11449. if (val) {
  11450. for (var i = 0; i < this.grade2.length; i++) {
  11451. var gid = this.grade2[i].id;
  11452. if (this.checkboxList2.indexOf(gid) === -1) {
  11453. this.checkboxList2.push(gid);
  11454. }
  11455. }
  11456. } else {
  11457. let _check = [];
  11458. let _check2 = [];
  11459. for (var i = 0; i < this.grade2.length; i++) {
  11460. var gid = this.grade2[i].id;
  11461. _check.push(gid);
  11462. }
  11463. for (var i = 0; i < this.checkboxList2.length; i++) {
  11464. var _id = this.checkboxList2[i];
  11465. if (_check.indexOf(_id) === -1) {
  11466. _check2.push(_id);
  11467. }
  11468. }
  11469. this.checkboxList2 = _check2;
  11470. }
  11471. this.isIndeterminate = false;
  11472. },
  11473. handleCheckAllChange2(val) {
  11474. if (val) {
  11475. for (var i = 0; i < this.teacherJuri.length; i++) {
  11476. var gid = this.teacherJuri[i].userid;
  11477. if (this.checkboxList3.indexOf(gid) === -1) {
  11478. this.checkboxList3.push(gid);
  11479. }
  11480. }
  11481. } else {
  11482. let _check = [];
  11483. let _check2 = [];
  11484. for (var i = 0; i < this.teacherJuri.length; i++) {
  11485. var gid = this.teacherJuri[i].userid;
  11486. _check.push(gid);
  11487. }
  11488. for (var i = 0; i < this.checkboxList3.length; i++) {
  11489. var _id = this.checkboxList3[i];
  11490. if (_check.indexOf(_id) === -1) {
  11491. _check2.push(_id);
  11492. }
  11493. }
  11494. this.checkboxList3 = _check2;
  11495. }
  11496. this.isIndeterminate2 = false;
  11497. },
  11498. async getInviteCode(cid) {
  11499. let code = this.randomNumber();
  11500. let params = {
  11501. code: code,
  11502. oid: this.oid,
  11503. };
  11504. let type = 1;
  11505. for (var i = 0; i < this.inviteCode.length; i++) {
  11506. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11507. type = 2;
  11508. }
  11509. }
  11510. if (type == 2) {
  11511. this.getInviteCode(cid);
  11512. return;
  11513. }
  11514. const res = await this.ajax.get(
  11515. this.$store.state.api + "selectInviteCode2",
  11516. params
  11517. );
  11518. if (
  11519. res.data.length &&
  11520. res.data[0].length &&
  11521. res.data[0][0].courseId != this.cid
  11522. ) {
  11523. this.getInviteCode(cid);
  11524. return;
  11525. }
  11526. let array = [];
  11527. for (var i = 0; i < this.inviteCode.length; i++) {
  11528. array.push(this.inviteCode[i].cid);
  11529. }
  11530. if (array.indexOf(cid) != -1) {
  11531. this.inviteCode[array.indexOf(cid)].ic = code;
  11532. } else {
  11533. this.inviteCode.push({ cid: cid, ic: code });
  11534. }
  11535. },
  11536. OpenInviteD(cid) {
  11537. let array = [];
  11538. this.icode = "";
  11539. for (var i = 0; i < this.inviteCode.length; i++) {
  11540. array.push(this.inviteCode[i].cid);
  11541. }
  11542. if (array.indexOf(cid) != -1) {
  11543. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11544. }
  11545. this.inviteId = cid;
  11546. this.dialogVisibleInvite = true;
  11547. },
  11548. addInvite() {
  11549. let reg = /^[A-Za-z0-9]{4,}$/;
  11550. if (!reg.test(this.icode)) {
  11551. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11552. return;
  11553. }
  11554. let type = 1;
  11555. for (var i = 0; i < this.inviteCode.length; i++) {
  11556. if (
  11557. this.inviteCode[i].cid != this.inviteId &&
  11558. this.icode == this.inviteCode[i].ic
  11559. ) {
  11560. type = 2;
  11561. }
  11562. }
  11563. if (type == 2) {
  11564. this.$message.error("已有此随机码,不能重复");
  11565. return;
  11566. }
  11567. let params = {
  11568. code: this.icode,
  11569. oid: this.oid,
  11570. };
  11571. this.ajax
  11572. .get(this.$store.state.api + "selectInviteCode", params)
  11573. .then((res) => {
  11574. if (
  11575. res.data.length &&
  11576. res.data[0].length &&
  11577. res.data[0][0].courseId != this.cid
  11578. ) {
  11579. this.$message.error("已有此随机码,不能重复");
  11580. return;
  11581. }
  11582. let array = [];
  11583. for (var i = 0; i < this.inviteCode.length; i++) {
  11584. array.push(this.inviteCode[i].cid);
  11585. }
  11586. if (array.indexOf(this.inviteId) != -1) {
  11587. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11588. } else {
  11589. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11590. }
  11591. this.icode = "";
  11592. this.dialogVisibleInvite = false;
  11593. })
  11594. .catch((err) => {
  11595. console.error(err);
  11596. });
  11597. },
  11598. randomNumber() {
  11599. // 随机生成两位数
  11600. // let num = Math.floor(Math.random() * 900) + 100;
  11601. // 生成 0 到 99 之间的随机整数
  11602. const randomNumber = Math.floor(Math.random() * 100);
  11603. // 如果随机数小于 10,补上前导零
  11604. const num =
  11605. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11606. // 随机生成两个大写字母
  11607. let letters = "";
  11608. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11609. for (let i = 0; i < 3; i++) {
  11610. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11611. }
  11612. // 随机生成两位数字和字母的组合
  11613. let mix = "";
  11614. let chars =
  11615. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11616. for (let i = 0; i < 3; i++) {
  11617. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11618. mix += char;
  11619. }
  11620. // 随机选择一种类型
  11621. let type = Math.floor(Math.random() * 3);
  11622. return num;
  11623. // 根据类型输出结果
  11624. switch (type) {
  11625. case 0:
  11626. console.log(num); // 输出两位数
  11627. return num;
  11628. case 1:
  11629. console.log(letters); // 输出两个大写字母
  11630. return letters;
  11631. case 2:
  11632. console.log(mix); // 输出两位数字和字母的组合
  11633. return mix;
  11634. }
  11635. },
  11636. getPaste() {
  11637. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11638. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11639. if (!iframe && !iframe2) {
  11640. return;
  11641. }
  11642. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11643. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11644. if (copyData && copyData.stageData && copyData.stageData.length) {
  11645. this.isPasteStage = true;
  11646. }
  11647. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  11648. this.isPasteStage = true;
  11649. }
  11650. if (copyData && copyData.selectData.length) {
  11651. this.isPasteChoice = true;
  11652. }
  11653. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11654. this.isPasteTask = true;
  11655. }
  11656. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  11657. this.isPasteTask = true;
  11658. }
  11659. },
  11660. searchImage() {
  11661. var _this = this;
  11662. _this.imageList = [];
  11663. if (!_this.searchImageValue) {
  11664. _this.sysPicVisible2 = true;
  11665. return;
  11666. }
  11667. _this.imageloading = true;
  11668. _this.ajax
  11669. .post("https://gpt.cocorobo.cn/search_image", {
  11670. page: _this.ppage,
  11671. pagesize: 9,
  11672. query: _this.searchImageValue,
  11673. })
  11674. .then(function (response) {
  11675. // console.log(response.data.data);
  11676. var data = response.data.FunctionResponse.result;
  11677. for (var i = 0; i < data.length; i++) {
  11678. _this.imageList.push({ url: data[i].thumbnail });
  11679. }
  11680. _this.imageloading = false;
  11681. })
  11682. .catch(function (error) {
  11683. console.log(error);
  11684. });
  11685. _this.sysPicVisible2 = true;
  11686. },
  11687. changePicture() {
  11688. this.ppage++;
  11689. this.searchImage();
  11690. },
  11691. resetImage() {
  11692. this.ppage = 1;
  11693. this.searchImage();
  11694. },
  11695. jumpGj(i, j) {
  11696. if (i + 1 != this.isClickColor) {
  11697. this.isClickColor = i + 1;
  11698. }
  11699. var a = document.scrollingElement;
  11700. this.toolIndexType = `gj${i}${j}`;
  11701. let target = document.querySelector(`#gj${i}${j}`);
  11702. if (target) {
  11703. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11704. setTimeout(() => {
  11705. target.scrollIntoView(true);
  11706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11707. j
  11708. ].isFold3 = false;
  11709. setTimeout(() => {
  11710. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11711. }, 0);
  11712. }, 0);
  11713. }
  11714. },
  11715. jumpGj2(i, j, k) {
  11716. if (this.unitIndex != k) {
  11717. if (this.panUnitJson() == 2) {
  11718. return;
  11719. }
  11720. this.unitSet(k);
  11721. }
  11722. setTimeout(() => {
  11723. if (i + 1 != this.isClickColor) {
  11724. this.isClickColor = i + 1;
  11725. }
  11726. var a = document.scrollingElement;
  11727. this.toolIndexType = `gj${i}${j}${k}`;
  11728. let target = document.querySelector(`#gj${i}${j}`);
  11729. if (target) {
  11730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  11731. setTimeout(() => {
  11732. target.scrollIntoView(true);
  11733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  11734. j
  11735. ].isFold3 = false;
  11736. setTimeout(() => {
  11737. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  11738. }, 0);
  11739. }, 0);
  11740. }
  11741. }, 0);
  11742. },
  11743. dragStart(val, i, j) {
  11744. console.log(this.taskCount);
  11745. this.dragType = "drag";
  11746. this.taskCount = j;
  11747. this.oldIndex = i;
  11748. this.oldData = val;
  11749. },
  11750. dragOver(i, j) {
  11751. this.typeIndex = "chapter-" + j + "-" + i;
  11752. this.newIndex = i;
  11753. },
  11754. dragEnd() {
  11755. if (this.dragType != "drag") {
  11756. this.typeIndex = "";
  11757. this.newIndex = "";
  11758. this.dragType = "";
  11759. this.isdrag = "";
  11760. return;
  11761. }
  11762. console.log(this.taskCount);
  11763. let newItems = [
  11764. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11765. .chapterData,
  11766. ];
  11767. // 删除老的节点
  11768. newItems.splice(this.oldIndex, 1);
  11769. // 在列表中目标位置增加新的节点
  11770. newItems.splice(this.newIndex, 0, this.oldData);
  11771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11772. this.taskCount
  11773. ].chapterData = [...newItems];
  11774. this.typeIndex = "";
  11775. this.newIndex = "";
  11776. this.dragType = "";
  11777. this.isdrag = "";
  11778. this.$forceUpdate();
  11779. },
  11780. dragTaskStart(val, i, j) {
  11781. this.dragType = "task";
  11782. this.oldIndex = i;
  11783. this.oldData = val;
  11784. this.oldUnitIndex = j;
  11785. },
  11786. dragTaskOver(i, j) {
  11787. this.typeIndex = "task-" + i;
  11788. this.newIndex = i;
  11789. this.checkUnitIndex = j;
  11790. },
  11791. async dragTaskEnd() {
  11792. if (this.dragType != "task") {
  11793. this.newIndex = "";
  11794. this.dragType = "";
  11795. this.typeIndex = "";
  11796. this.checkUnitIndex = "";
  11797. this.isdrag = "";
  11798. return;
  11799. }
  11800. if (
  11801. this.newIndex == this.oldIndex &&
  11802. this.oldUnitIndex == this.checkUnitIndex
  11803. ) {
  11804. this.newIndex = "";
  11805. this.dragType = "";
  11806. this.typeIndex = "";
  11807. this.checkUnitIndex = "";
  11808. this.isdrag = "";
  11809. return;
  11810. }
  11811. let count1 = await this.getWorksCount(
  11812. 2,
  11813. this.checkUnitIndex,
  11814. this.newIndex,
  11815. 0
  11816. );
  11817. let count2 = await this.getWorksCount(
  11818. 2,
  11819. this.oldUnitIndex,
  11820. this.oldIndex,
  11821. 0
  11822. );
  11823. if (count1 > 0 || count2 > 0) {
  11824. this.$confirm(
  11825. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  11826. "提示",
  11827. {
  11828. confirmButtonText: "确定",
  11829. cancelButtonText: "取消",
  11830. type: "warning",
  11831. }
  11832. )
  11833. .then(() => {
  11834. if (this.oldUnitIndex != this.checkUnitIndex) {
  11835. let newItems = [
  11836. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11837. ];
  11838. // 删除老的节点
  11839. newItems.splice(this.oldIndex, 1);
  11840. // 在列表中目标位置增加新的节点
  11841. let newItems2 = [
  11842. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11843. ];
  11844. newItems2.splice(this.newIndex, 0, this.oldData);
  11845. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11846. ...newItems,
  11847. ];
  11848. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11849. ...newItems2,
  11850. ];
  11851. } else {
  11852. let newItems = [
  11853. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11854. ];
  11855. let chapterData = []
  11856. if (this.oldIndex == 0) {
  11857. chapterData = newItems[this.oldIndex].chapterData
  11858. newItems[this.oldIndex].chapterData = []
  11859. } else if (this.newIndex == 0) {
  11860. chapterData = newItems[this.newIndex].chapterData
  11861. newItems[this.oldIndex].chapterData = []
  11862. }
  11863. // 删除老的节点
  11864. newItems.splice(this.oldIndex, 1);
  11865. // 在列表中目标位置增加新的节点
  11866. newItems.splice(this.newIndex, 0, this.oldData);
  11867. if (this.oldIndex == 0 || this.newIndex == 0) {
  11868. newItems[0].chapterData = chapterData
  11869. }
  11870. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11871. ...newItems,
  11872. ];
  11873. }
  11874. this.typeIndex = "";
  11875. this.newIndex = "";
  11876. this.dragType = "";
  11877. this.checkUnitIndex = "";
  11878. this.isdrag = "";
  11879. this.updateWork();
  11880. this.$forceUpdate();
  11881. })
  11882. .catch(() => {
  11883. this.newIndex = "";
  11884. this.dragType = "";
  11885. this.typeIndex = "";
  11886. this.checkUnitIndex = "";
  11887. this.isdrag = "";
  11888. return;
  11889. });
  11890. } else {
  11891. if (this.oldUnitIndex != this.checkUnitIndex) {
  11892. let newItems = [
  11893. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11894. ];
  11895. // 删除老的节点
  11896. newItems.splice(this.oldIndex, 1);
  11897. // 在列表中目标位置增加新的节点
  11898. let newItems2 = [
  11899. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  11900. ];
  11901. newItems2.splice(this.newIndex, 0, this.oldData);
  11902. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11903. ...newItems,
  11904. ];
  11905. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  11906. ...newItems2,
  11907. ];
  11908. } else {
  11909. let newItems = [
  11910. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  11911. ];
  11912. let chapterData = []
  11913. if (this.oldIndex == 0) {
  11914. chapterData = newItems[this.oldIndex].chapterData
  11915. newItems[this.oldIndex].chapterData = []
  11916. } else if (this.newIndex == 0) {
  11917. chapterData = newItems[this.newIndex].chapterData
  11918. newItems[this.oldIndex].chapterData = []
  11919. }
  11920. // 删除老的节点
  11921. newItems.splice(this.oldIndex, 1);
  11922. // 在列表中目标位置增加新的节点
  11923. newItems.splice(this.newIndex, 0, this.oldData);
  11924. if (this.oldIndex == 0 || this.newIndex == 0) {
  11925. newItems[0].chapterData = chapterData
  11926. }
  11927. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  11928. ...newItems,
  11929. ];
  11930. }
  11931. this.typeIndex = "";
  11932. this.newIndex = "";
  11933. this.dragType = "";
  11934. this.checkUnitIndex = "";
  11935. this.isdrag = "";
  11936. this.updateWork();
  11937. this.$forceUpdate();
  11938. }
  11939. },
  11940. dragUnitStart(val, i) {
  11941. this.dragType = "Unit";
  11942. this.oldIndex = i;
  11943. this.oldData = val;
  11944. },
  11945. dragUnitOver(i) {
  11946. this.typeIndex = "Unit-" + i;
  11947. this.newIndex = i;
  11948. console.log(i, this.unitJson[i].toolOpen);
  11949. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  11950. this.unitJson[i].toolOpen = true;
  11951. this.updateWork();
  11952. this.$forceUpdate();
  11953. }
  11954. },
  11955. async dragUnitEnd() {
  11956. if (this.dragType != "Unit") {
  11957. this.newIndex = "";
  11958. this.dragType = "";
  11959. this.typeIndex = "";
  11960. this.isdrag = "";
  11961. return;
  11962. }
  11963. if (this.newIndex == this.oldIndex) {
  11964. this.newIndex = "";
  11965. this.dragType = "";
  11966. this.typeIndex = "";
  11967. this.isdrag = "";
  11968. return;
  11969. }
  11970. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  11971. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  11972. console.log(count1, count2);
  11973. if (count1 > 0 || count2 > 0) {
  11974. this.$confirm(
  11975. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  11976. "提示",
  11977. {
  11978. confirmButtonText: "确定",
  11979. cancelButtonText: "取消",
  11980. type: "warning",
  11981. }
  11982. )
  11983. .then(() => {
  11984. let newItems = [...this.unitJson];
  11985. // 删除老的节点
  11986. newItems.splice(this.oldIndex, 1);
  11987. // 在列表中目标位置增加新的节点
  11988. newItems.splice(this.newIndex, 0, this.oldData);
  11989. this.unitJson = [...newItems];
  11990. this.typeIndex = "";
  11991. this.newIndex = "";
  11992. this.dragType = "";
  11993. this.isdrag = "";
  11994. this.updateWork();
  11995. this.$forceUpdate();
  11996. })
  11997. .catch(() => {
  11998. this.newIndex = "";
  11999. this.dragType = "";
  12000. this.typeIndex = "";
  12001. this.isdrag = "";
  12002. return;
  12003. });
  12004. } else {
  12005. let newItems = [...this.unitJson];
  12006. // 删除老的节点
  12007. newItems.splice(this.oldIndex, 1);
  12008. // 在列表中目标位置增加新的节点
  12009. newItems.splice(this.newIndex, 0, this.oldData);
  12010. this.unitJson = [...newItems];
  12011. this.typeIndex = "";
  12012. this.newIndex = "";
  12013. this.dragType = "";
  12014. this.isdrag = "";
  12015. this.updateWork();
  12016. this.$forceUpdate();
  12017. }
  12018. },
  12019. getWorksCount(type, stage, task, tool) {
  12020. return new Promise((resolve, reject) => {
  12021. let params = [
  12022. {
  12023. cid: this.cid,
  12024. stage: stage,
  12025. task: task,
  12026. tool: tool,
  12027. type: type,
  12028. },
  12029. ];
  12030. this.ajax
  12031. .post(this.$store.state.api + "getCourseWorkCount", params)
  12032. .then((res) => {
  12033. let count = res.data[0][0].count;
  12034. resolve(count);
  12035. })
  12036. .catch((err) => {
  12037. resolve(0);
  12038. this.$message.error("网络不佳");
  12039. console.error(err);
  12040. });
  12041. });
  12042. },
  12043. getTwoType(id) {
  12044. this.twoJson = [];
  12045. var array = this.CourseTypeJson1[
  12046. "3f8eed32-aba9-11ee-b534-005056b86db5"
  12047. ].filter((e) => {
  12048. return e.ppid == id;
  12049. });
  12050. this.twoJson = array;
  12051. this.$forceUpdate();
  12052. },
  12053. ctype() {
  12054. this.oneJson =
  12055. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  12056. },
  12057. selectAllType1() {
  12058. this.CourseType1 = [];
  12059. this.CourseTypeJson1 = {};
  12060. this.courseTypeId1 = {};
  12061. this.$forceUpdate();
  12062. let params = {
  12063. org: this.org && this.org != "" ? this.org : "",
  12064. oid: this.oid && this.oid != "" ? this.oid : "",
  12065. };
  12066. this.ajax
  12067. .get(this.$store.state.api + "selectAllEvaType", params)
  12068. .then((res) => {
  12069. this.CourseType1 = res.data;
  12070. for (var i = 0; i < res.data[0].length; i++) {
  12071. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  12072. res.data[0][i].name = "一级分类";
  12073. } else if (
  12074. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  12075. ) {
  12076. res.data[0][i].name = "二级分类";
  12077. }
  12078. if (!this.cid) {
  12079. this.courseTypeId1[res.data[0][i].id] = [];
  12080. }
  12081. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  12082. this.CourseTypeJson1[res.data[0][i].id] = [];
  12083. }
  12084. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  12085. for (var j = 0; j < res.data[1].length; j++) {
  12086. if (res.data[0][i].id == res.data[1][j].pid) {
  12087. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12088. }
  12089. }
  12090. // } else {
  12091. if (res.data[2].length > 0) {
  12092. for (var j = 0; j < res.data[2].length; j++) {
  12093. if (res.data[0][i].id == res.data[2][j].pid) {
  12094. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12095. }
  12096. }
  12097. }
  12098. if (res.data[3].length > 0) {
  12099. for (var j = 0; j < res.data[3].length; j++) {
  12100. if (res.data[0][i].id == res.data[3][j].pid) {
  12101. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12102. }
  12103. }
  12104. }
  12105. // }
  12106. }
  12107. this.ctype();
  12108. this.cetBoxDialog = true;
  12109. })
  12110. .catch((err) => {
  12111. console.error(err);
  12112. });
  12113. },
  12114. detailYou(){
  12115. this.textLoading = true
  12116. setTimeout(()=>{
  12117. if(this.courseName == '热传递2'){
  12118. this.courseText = `本项目旨在通过一个综合性的学习过程,让学生深入探究“热”的物理现象及其在日常生活中的应用。学生将通过实验、观察、设计和制作等活动,理解热的传递方式、热的良导体与不良导体的概念,以及保温技术的原理和应用。项目的核心是制作一个保温杯,该保温杯需要能够有效地减缓热量散失,保持水温在一定时间内相对稳定。通过这个项目,学生不仅能够巩固和拓展科学知识,还能培养创新思维、问题解决能力和团队合作精神。
  12119. 该项目的驱动性问题是如何设计并制作一个既实用又环保的保温杯,使其在一定时间内最大限度地减少热量散失?
  12120. 该项目的最终作品是一个由学生团队设计和制作的保温杯原型,该保温杯应使用合适的材料和技术,以实现良好的保温效果。最终作品需要附上一份详细的设计报告,阐述设计理念、选材依据、制作过程和测试结果。`
  12121. }else if(this.courseName == '热传递1'){
  12122. this.courseText = `项目名:探索热传导:从热到冷
  12123. 项目概况:随着气温的变化,孩子们可能对热量如何从热物体传到冷物体的过程产生兴趣。这是热传导的基础知识,对日常生活中的很多现象有深入的解释。例如A小组的孩子们在午餐时注意到,他们的塑料餐具比金属餐具冷得快。引出的驱动性问题是:“为什么塑料餐具比金属餐具冷得快?因此在这个项目中学生需要通过实施一系列的实验的方式,解决这个问题。
  12124. 本项目需要孩子们了解热传导的基本知识,掌握观察和记录实验数据的基本技能,以及分析和解释数据的能力。并通过实验研究的方式,完成一个关于热传导的实验报告,报告中需要包括实验的设计、实施过程、数据记录、数据分析和结论。
  12125. 通过了解和掌握热传导的基本原理,以及通过实验测试不同材质的热传导情况,学生们可以了解不同物质的热传导效果的差异,预期的结果是:塑料的热传导效果较差,所以冷得快,而金属的热传导效果好,所以冷得慢。`
  12126. }else if(this.courseName == '热传递'){
  12127. this.courseText = `课程名称:探索热传导的奥秘
  12128. 课程介绍:
  12129. 在这个为期四周的项目式学习课程中,五年级的学生们将通过实际操作和实验,深入了解热传导的基本原理和日常生活中的应用。学生们将通过探索不同材料的热传导性能,设计实验,收集数据,并最终制作一个展示他们发现的创意项目。本课程旨在激发学生的好奇心,提高他们的科学探究能力,并帮助他们理解热能是如何在不同环境中传递的。
  12130. 驱动性问题:
  12131. •热传导是如何在不同材料之间发生的?
  12132. •哪些日常用品的设计利用了热传导的原理?
  12133. •我们如何通过实验来比较不同材料的热传导效率?
  12134. •如何设计一个既实用又创新的产品,利用热传导原理解决实际问题?
  12135. 期末作品:
  12136. •热传导实验报告:详细记录实验过程、数据和结论。
  12137. •创意产品:展示学生基于热传导原理设计的创新产品或模型。
  12138. 通过这个课程,学生不仅能够掌握热传导的科学知识,还能通过实际操作和创造,将理论知识应用于解决实际问题,培养他们的科学素养和创新能力。`
  12139. }
  12140. this.textLoading = false
  12141. }, 5000)
  12142. },
  12143. setUnitJson(){
  12144. 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}]}
  12145. this.$forceUpdate()
  12146. }
  12147. },
  12148. beforeDestroy() {
  12149. clearTimeout(this.timer);
  12150. this.timer = null;
  12151. clearInterval(this.timer2);
  12152. this.timer2 = null;
  12153. clearInterval(this.pasteTimer);
  12154. this.pasteTimer = null;
  12155. },
  12156. beforeRouteLeave(to, from, next) {
  12157. clearTimeout(this.timer);
  12158. this.timer = null;
  12159. clearInterval(this.timer2);
  12160. this.timer2 = null;
  12161. clearInterval(this.pasteTimer);
  12162. this.pasteTimer = null;
  12163. next();
  12164. },
  12165. created() {
  12166. this.getStudent();
  12167. this.getTeacher();
  12168. this.getClass();
  12169. this.selectGrage();
  12170. this.getTemplate();
  12171. // this.selectType();
  12172. this.selectEva();
  12173. this.loading = false;
  12174. this.timer2 = setInterval(() => {
  12175. this.selectEva();
  12176. }, 5000);
  12177. this.pasteTimer = setInterval(() => {
  12178. this.getPaste();
  12179. }, 1000);
  12180. setTimeout(() => {
  12181. // this.selectAllType();
  12182. this.selectCourseDetail();
  12183. }, 500);
  12184. let _this = this;
  12185. window.pasteStage = function (json) {
  12186. _this.pasteStage(json);
  12187. };
  12188. window.pasteTask = function (json) {
  12189. _this.pasteTask(json);
  12190. };
  12191. },
  12192. };
  12193. </script>
  12194. <style scoped>
  12195. @media screen and (max-width: 1280px) {
  12196. .mbCss {
  12197. flex-direction: column !important;
  12198. }
  12199. .pjCss {
  12200. width: 100% !important;
  12201. }
  12202. .evaCss {
  12203. width: 100% !important;
  12204. margin-top: 10px;
  12205. }
  12206. }
  12207. .el-table>>>.even_row {
  12208. background-color: #f1f1f1 !important;
  12209. }
  12210. .dialog_diy>>>.el-dialog__header {
  12211. background: #3c3c3c !important;
  12212. padding: 15px 20px;
  12213. }
  12214. .dialog_diy>>>.el-dialog__title {
  12215. color: #fff;
  12216. }
  12217. .dialog_diy>>>.el-dialog__headerbtn {
  12218. top: 19px;
  12219. }
  12220. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  12221. color: #fff;
  12222. }
  12223. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  12224. color: #fff;
  12225. }
  12226. .dialog_diy>>>.el-dialog__body,
  12227. .dialog_diy>>>.el-dialog__footer {
  12228. background: #fafafa;
  12229. }
  12230. .dialog_diy3>>>.el-dialog__body,
  12231. .dialog_diy3>>>.el-dialog__footer {
  12232. background: #eee !important;
  12233. }
  12234. .dialog_diy3>>>.el-dialog__body {
  12235. padding: 20px 20px;
  12236. }
  12237. .dialog_diyStage>>>.el-dialog__body {
  12238. padding: 10px;
  12239. }
  12240. .source_diy>>>.el-dialog {
  12241. height: 100% !important;
  12242. margin: 0 auto !important;
  12243. }
  12244. .source_diy>>>.el-dialog__body {
  12245. height: calc(100% - 185px);
  12246. overflow: auto;
  12247. background: #e6eaf0;
  12248. }
  12249. .source_diy>>>.el-dialog__footer {
  12250. background: #e6eaf0 !important;
  12251. }
  12252. .left {
  12253. border-right: 1px solid rgb(60, 94, 143);
  12254. display: flex;
  12255. flex-direction: column;
  12256. align-items: center;
  12257. min-height: 600px;
  12258. width: 385px;
  12259. height: 80%;
  12260. }
  12261. .tips {
  12262. color: rgb(128, 128, 128);
  12263. font-size: 12px;
  12264. width: 270px;
  12265. margin: 40px;
  12266. }
  12267. .pb_content {
  12268. height: 100% !important;
  12269. /* margin: 0 20px 0 20px; */
  12270. }
  12271. .pb_content_body {
  12272. width: 100% !important;
  12273. height: 100%;
  12274. }
  12275. .info_solid {
  12276. width: 270px;
  12277. height: 30px;
  12278. border-left: 1px solid #bdbdbd;
  12279. margin: 10px 0px 10px 30px;
  12280. }
  12281. .info_steps {
  12282. width: 270px;
  12283. font-size: 0.875rem;
  12284. display: flex;
  12285. align-items: center;
  12286. }
  12287. .info_steps span:nth-child(1) {
  12288. width: 30px;
  12289. height: 30px;
  12290. background: rgba(0, 0, 0, 0.38);
  12291. display: block;
  12292. color: #fff;
  12293. border-radius: 40px;
  12294. text-align: center;
  12295. line-height: 30px;
  12296. }
  12297. .steps_active {
  12298. background: #3d67bc !important;
  12299. }
  12300. .info_steps span:nth-child(2) {
  12301. margin-left: 5px;
  12302. }
  12303. .right {
  12304. height: 100%;
  12305. width: 100%;
  12306. display: flex;
  12307. overflow: hidden;
  12308. flex-direction: column;
  12309. }
  12310. .basic_box {
  12311. margin: 0 auto;
  12312. position: relative;
  12313. padding: 0 20px 0 20px;
  12314. }
  12315. .basic_box_success {
  12316. width: 100%;
  12317. min-height: 455px;
  12318. padding: 50px 0;
  12319. position: relative;
  12320. text-align: center;
  12321. border-bottom: 1px solid #bfbfbf;
  12322. box-sizing: border-box;
  12323. display: flex;
  12324. align-items: center;
  12325. flex-direction: column;
  12326. justify-content: center;
  12327. }
  12328. .info_title {
  12329. font-size: 1.5em;
  12330. margin-right: 25px;
  12331. /* margin: 20px 30px 20px 30px; */
  12332. }
  12333. .bInfo_title {
  12334. text-align: left;
  12335. margin: 10px 0;
  12336. }
  12337. .small_title {
  12338. font-size: 14px;
  12339. line-height: 40px;
  12340. }
  12341. .chapter_beizhu {
  12342. font-size: 12px;
  12343. font-weight: bold;
  12344. float: right;
  12345. color: rgb(128, 128, 128);
  12346. margin-top: 5px;
  12347. }
  12348. .chapter_uploadBox1 {
  12349. text-align: left;
  12350. background-color: rgb(242, 242, 242);
  12351. width: 100%;
  12352. height: 67px;
  12353. padding: 0px 15px;
  12354. border-radius: 8px;
  12355. overflow: hidden;
  12356. font-size: 16px;
  12357. box-sizing: border-box;
  12358. position: relative;
  12359. }
  12360. .chapter_add {
  12361. width: 100%;
  12362. height: 32px;
  12363. margin-top: 15px;
  12364. cursor: pointer;
  12365. }
  12366. .chapter_add_l {
  12367. margin-left: 5px;
  12368. width: 30px;
  12369. height: 30px;
  12370. float: left;
  12371. border: 1px solid #aaa;
  12372. color: #aaa;
  12373. border-radius: 50%;
  12374. font-size: 25px;
  12375. text-align: center;
  12376. }
  12377. .chapter_add_r {
  12378. font-size: 18px;
  12379. height: 40px;
  12380. line-height: 30px;
  12381. text-indent: 10px;
  12382. color: #aaa;
  12383. }
  12384. .chapter_add_r span {
  12385. font-size: 12px;
  12386. color: rgb(204, 204, 204);
  12387. }
  12388. .chapter_add_input {
  12389. display: none;
  12390. }
  12391. .line {
  12392. width: 85%;
  12393. margin: 0 auto;
  12394. border-top: 1px solid #e5e5e5;
  12395. margin-top: 20px;
  12396. }
  12397. .info_btnBox {
  12398. width: calc(100%);
  12399. display: flex;
  12400. justify-content: center;
  12401. height: 80px;
  12402. align-items: center;
  12403. background: #fff;
  12404. margin: 0 auto;
  12405. border-top: 2px solid rgb(228, 232, 237);
  12406. box-sizing: border-box;
  12407. }
  12408. .info_btnBox2 {
  12409. width: calc(100%);
  12410. display: flex;
  12411. justify-content: center;
  12412. height: 20px;
  12413. align-items: center;
  12414. background: #fff;
  12415. margin: 0 auto;
  12416. border-top: 2px solid rgb(228, 232, 237);
  12417. box-sizing: border-box;
  12418. overflow: hidden;
  12419. cursor: pointer;
  12420. }
  12421. .info_btnBox3 {
  12422. width: calc(100%);
  12423. display: flex;
  12424. justify-content: flex-end;
  12425. padding: 0 20px;
  12426. height: 60px;
  12427. align-items: center;
  12428. background: unset;
  12429. margin: 0 auto;
  12430. /* border-top: 1px solid rgb(228, 232, 237); */
  12431. box-sizing: border-box;
  12432. overflow: hidden;
  12433. cursor: pointer;
  12434. background: #fff;
  12435. border-radius: 10px;
  12436. }
  12437. .info_btn+.info_btn {
  12438. margin-left: 15px;
  12439. }
  12440. .info_btn,
  12441. .teacherWord {
  12442. color: #fff;
  12443. background-color: #0f7eff;
  12444. padding: 8px 24px;
  12445. font-size: 0.9375rem;
  12446. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  12447. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  12448. min-width: 64px;
  12449. font-weight: 500;
  12450. border-radius: 4px;
  12451. box-sizing: border-box;
  12452. border: none;
  12453. cursor: pointer;
  12454. }
  12455. .teacherWord {
  12456. width: 105px !important;
  12457. text-align: center !important;
  12458. line-height: 36px !important;
  12459. padding: 0 !important;
  12460. font-size: 14px !important;
  12461. margin: 10px 0 !important;
  12462. }
  12463. .template_box {
  12464. display: flex;
  12465. flex-wrap: wrap;
  12466. }
  12467. .wordTeacher {
  12468. display: flex;
  12469. flex-direction: column;
  12470. width: 100px;
  12471. height: 100px;
  12472. text-align: center;
  12473. font-size: 13px;
  12474. margin: 0 20px 20px 0;
  12475. background: #f0f4fa;
  12476. position: relative;
  12477. border-radius: 5px;
  12478. align-items: center;
  12479. justify-content: center;
  12480. border: 1px solid #cad1dc;
  12481. color: #0e1e33;
  12482. /* padding: 25px 0px; */
  12483. cursor: pointer;
  12484. }
  12485. .wordTeacher::after {
  12486. content: "";
  12487. display: block;
  12488. position: absolute;
  12489. width: 15px;
  12490. height: 15px;
  12491. right: 10px;
  12492. top: 10px;
  12493. background-image: url(../../../assets/icon/new/choose_a.png);
  12494. background-size: 100% 100%;
  12495. }
  12496. .wordTeacherA::after {
  12497. background-image: url(../../../assets/icon/new/choose_b.png);
  12498. }
  12499. .wordTeacher:nth-child(5n) {
  12500. margin-right: 0px;
  12501. }
  12502. .wordPic {
  12503. margin: 0 auto;
  12504. width: 30px;
  12505. height: 30px;
  12506. cursor: pointer;
  12507. }
  12508. .deleteWord {
  12509. width: 22px;
  12510. height: 22px;
  12511. position: absolute;
  12512. right: 5px;
  12513. top: -15px;
  12514. cursor: pointer;
  12515. display: none;
  12516. z-index: 999;
  12517. }
  12518. .wordPic>img,
  12519. .deleteWord>img,
  12520. .addToolImg>img {
  12521. width: 100%;
  12522. height: 100%;
  12523. }
  12524. .info_btn:hover {
  12525. background-color: #4f7cd5 !important;
  12526. }
  12527. .cru_selectBox {
  12528. display: flex;
  12529. margin: 15px 0;
  12530. flex-wrap: nowrap;
  12531. white-space: nowrap;
  12532. overflow: auto;
  12533. position: relative;
  12534. height: 40px;
  12535. max-width: calc(100% - 175px);
  12536. }
  12537. .cru_selectBox::-webkit-scrollbar {
  12538. /*滚动条整体样式*/
  12539. width: 6px;
  12540. /*高宽分别对应横竖滚动条的尺寸*/
  12541. height: 6px;
  12542. }
  12543. /*定义滚动条轨道 内阴影+圆角*/
  12544. .cru_selectBox::-webkit-scrollbar-track {
  12545. border-radius: 10px;
  12546. background-color: #eee;
  12547. }
  12548. /*定义滑块 内阴影+圆角*/
  12549. .cru_selectBox::-webkit-scrollbar-thumb {
  12550. border-radius: 10px;
  12551. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  12552. background-color: rgba(0, 0, 0, 0.1);
  12553. }
  12554. .cru_line {
  12555. position: absolute;
  12556. bottom: 0px;
  12557. transition: all 0.5s;
  12558. left: 0px;
  12559. width: 50px;
  12560. height: 4px;
  12561. left: 10px;
  12562. border-radius: 2px;
  12563. background: #3681fc;
  12564. }
  12565. .cru_select {
  12566. font-size: 18px;
  12567. margin-right: 20px;
  12568. margin-left: 5px;
  12569. cursor: pointer;
  12570. color: #0e1e33;
  12571. }
  12572. .cru_select:hover {
  12573. color: #3681fc !important;
  12574. }
  12575. .cru_selected {
  12576. color: #3681fc !important;
  12577. font-weight: bold;
  12578. }
  12579. .chapter_box {
  12580. margin-top: 10px;
  12581. width: 100%;
  12582. padding: 10px 20px;
  12583. background: #fff;
  12584. border-radius: 8px;
  12585. box-sizing: border-box;
  12586. }
  12587. .chapter_contentbox {
  12588. display: flex;
  12589. align-items: center;
  12590. /* margin-top: 15px; */
  12591. }
  12592. .chapter_contentbox .cc_title {
  12593. margin: 0px;
  12594. color: black;
  12595. display: block;
  12596. white-space: nowrap;
  12597. overflow: hidden;
  12598. text-overflow: ellipsis;
  12599. margin-right: 20px;
  12600. font-size: 18px;
  12601. height: 20px;
  12602. line-height: 22px;
  12603. min-width: fit-content;
  12604. display: flex;
  12605. }
  12606. .chapter_contentbox .cc_title::before {
  12607. content: "";
  12608. height: 100%;
  12609. width: 3px;
  12610. background: #3681fc;
  12611. border-radius: 3px;
  12612. opacity: 1;
  12613. display: block;
  12614. margin-right: 10px;
  12615. }
  12616. .chapter_contentbox .cc_input {
  12617. width: 100%;
  12618. display: flex;
  12619. }
  12620. .show_taskD {
  12621. min-width: fit-content;
  12622. margin-left: 10px;
  12623. display: flex;
  12624. align-items: center;
  12625. font-size: 14px;
  12626. cursor: pointer;
  12627. color: #717c8d;
  12628. }
  12629. .show_taskD>img {
  12630. width: 15px;
  12631. margin-right: 5px;
  12632. transition: 0.2s all;
  12633. transform: rotate(-90deg);
  12634. }
  12635. .show_taskD.show>img {
  12636. transform: rotate(0deg);
  12637. }
  12638. .show_toolD {
  12639. min-width: fit-content;
  12640. margin-left: 10px;
  12641. display: flex;
  12642. align-items: center;
  12643. font-size: 14px;
  12644. cursor: pointer;
  12645. color: #717c8d;
  12646. /* position: absolute;
  12647. right: 45px;
  12648. top: 5px; */
  12649. }
  12650. .show_toolD>img {
  12651. width: 15px;
  12652. margin-right: 5px;
  12653. transition: 0.2s all;
  12654. transform: rotate(-90deg);
  12655. }
  12656. .show_toolD.show>img {
  12657. transform: rotate(0deg);
  12658. }
  12659. .remove {
  12660. background-image: url("../../../assets/icon/new/delete_u.png");
  12661. cursor: pointer;
  12662. opacity: 0.5;
  12663. width: 30px;
  12664. min-width: 30px;
  12665. height: 30px;
  12666. background-size: 100% 100%;
  12667. background-repeat: no-repeat;
  12668. margin-left: 10px;
  12669. }
  12670. .remove1 {
  12671. background-image: url("../../../assets/remove1.png");
  12672. background-repeat: no-repeat;
  12673. background-position: 5px 10px;
  12674. width: 40px;
  12675. height: 50px;
  12676. cursor: pointer;
  12677. margin-left: 10px;
  12678. }
  12679. .binfo_input {
  12680. width: 100%;
  12681. margin: 0;
  12682. padding: 12px 14px;
  12683. display: block;
  12684. min-width: 0;
  12685. outline: none;
  12686. box-sizing: border-box;
  12687. background: none;
  12688. border: none;
  12689. border-radius: 4px;
  12690. background: #fff;
  12691. font-size: 16px;
  12692. resize: none;
  12693. font-family: "Microsoft YaHei";
  12694. min-height: 48px;
  12695. /* border: 1px solid #3682fc00; */
  12696. border: 1.5px solid #cad1dc;
  12697. }
  12698. .binfo_textarea {
  12699. border: 1.5px solid #cad1dc;
  12700. font-size: 16px;
  12701. resize: none;
  12702. /* background: #f6f6f6; */
  12703. font-family: "Microsoft YaHei";
  12704. }
  12705. .binfo_input:focus-visible {
  12706. border: 1.5px solid #3681fc !important;
  12707. }
  12708. .time {
  12709. display: flex;
  12710. margin: 35px 0 80px 0;
  12711. }
  12712. .chapter_btnbox {
  12713. width: 160px;
  12714. border-radius: 5px;
  12715. border: 2px dashed gray;
  12716. display: flex;
  12717. padding: 8px 50px;
  12718. align-items: center;
  12719. justify-content: center;
  12720. margin: 30px auto 0;
  12721. cursor: pointer;
  12722. }
  12723. .icon_add {
  12724. position: relative;
  12725. width: 24px;
  12726. padding-top: 20px;
  12727. border-radius: 100%;
  12728. border-width: 2px;
  12729. border-style: solid;
  12730. border-color: gray;
  12731. }
  12732. .icon_add i:nth-child(1) {
  12733. position: absolute;
  12734. left: 50%;
  12735. top: 50%;
  12736. height: 60%;
  12737. transform: translate(-50%, -50%);
  12738. border-width: 1px;
  12739. border-style: solid;
  12740. border-color: inherit;
  12741. }
  12742. .icon_add i:nth-child(2) {
  12743. position: absolute;
  12744. top: 50%;
  12745. left: 50%;
  12746. width: 60%;
  12747. transform: translate(-50%, -50%);
  12748. border-width: 1px;
  12749. border-style: solid;
  12750. border-color: inherit;
  12751. }
  12752. .chapter_btn_w {
  12753. font-size: 0.9375rem;
  12754. font-weight: bold;
  12755. color: gray;
  12756. margin-left: 20px;
  12757. }
  12758. .disUoloadSty>>>.el-icon-plus {
  12759. display: none !important;
  12760. /* 上传按钮隐藏 */
  12761. }
  12762. .imgLeft {
  12763. margin: 15px 0;
  12764. }
  12765. .add_info_box {
  12766. margin: 0 0 0 auto;
  12767. display: flex;
  12768. flex-wrap: wrap;
  12769. }
  12770. .add_info_box button {
  12771. margin: 0 5px 10px 0;
  12772. }
  12773. .add_info_box2 {
  12774. display: flex;
  12775. align-items: center;
  12776. flex-wrap: wrap;
  12777. }
  12778. .add_info_box2::after {
  12779. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  12780. color: red;
  12781. font-size: 14px;
  12782. margin-bottom: 10px;
  12783. }
  12784. .add_chapters_box {
  12785. text-align: left;
  12786. background-color: #fff;
  12787. width: 100%;
  12788. border-radius: 4px;
  12789. font-size: 16px;
  12790. box-sizing: border-box;
  12791. position: relative;
  12792. padding: 0 15px;
  12793. height: auto;
  12794. overflow-y: auto;
  12795. overflow-x: hidden;
  12796. border: 1px solid #cad1dc;
  12797. }
  12798. .add_chapters_box.add_c_none {
  12799. display: flex;
  12800. justify-content: center;
  12801. align-items: center;
  12802. padding: 15px;
  12803. }
  12804. .add_c_none>img {
  12805. width: 25px;
  12806. }
  12807. .add_chapters_box.add_c_none>span {
  12808. font-size: 14px;
  12809. font-weight: 400;
  12810. margin: 0 0 5px 5px;
  12811. }
  12812. .homework_box {
  12813. display: flex;
  12814. align-items: flex-start;
  12815. flex-wrap: wrap;
  12816. margin: 15px 0 0 0;
  12817. flex-direction: column;
  12818. align-content: flex-start;
  12819. }
  12820. .course_homework {
  12821. display: flex;
  12822. justify-content: center;
  12823. flex-direction: row;
  12824. align-items: center;
  12825. margin: 0 10px 0 0;
  12826. }
  12827. .course_homework>>>.el-input__inner {
  12828. width: 140px;
  12829. margin-left: 15px;
  12830. }
  12831. .chapter_upload_move {
  12832. position: relative;
  12833. background-color: #fff;
  12834. position: absolute;
  12835. width: 100%;
  12836. top: 0px;
  12837. left: 0px;
  12838. border: 1px solid #eee;
  12839. border-radius: 5px;
  12840. transition: width 2s;
  12841. -moz-transition: width 2s;
  12842. -webkit-transition: width 2s;
  12843. -o-transition: width 2s;
  12844. }
  12845. .chapter_upload_l_i {
  12846. background-image: url("../../../assets/icon.png");
  12847. background-position: 3px -165px;
  12848. width: 30px;
  12849. height: 30px;
  12850. margin: 10px auto 0 auto;
  12851. }
  12852. .course_input_box {
  12853. display: flex;
  12854. margin-right: 20px;
  12855. width: 100%;
  12856. align-items: center;
  12857. position: relative;
  12858. }
  12859. .course_input_box>.binfo_input {
  12860. width: calc(100% - 0 - 200px - 20px);
  12861. margin: 0 10px;
  12862. }
  12863. .bb_courseIcon {
  12864. width: 57px;
  12865. height: 45px;
  12866. background: #f0f4fa;
  12867. border-radius: 5px 0px 0px 5px;
  12868. display: flex;
  12869. align-items: center;
  12870. justify-content: center;
  12871. border-right: 1.5px solid rgb(202, 209, 220);
  12872. box-sizing: border-box;
  12873. position: absolute;
  12874. left: 1.5px;
  12875. }
  12876. .bb_courseIcon>img {
  12877. width: 25px;
  12878. height: auto;
  12879. }
  12880. .big_box {
  12881. /* margin-top: 20px; */
  12882. display: flex;
  12883. justify-content: space-between;
  12884. /* border-bottom: 1px solid #E0E2ED; */
  12885. }
  12886. .left_first {
  12887. display: flex;
  12888. flex-direction: column;
  12889. flex-wrap: nowrap;
  12890. width: calc(100% - 310px);
  12891. padding: 20px;
  12892. box-sizing: border-box;
  12893. background: #fff;
  12894. border-radius: 5px;
  12895. }
  12896. .right_first {
  12897. width: 300px;
  12898. display: flex;
  12899. align-items: center;
  12900. justify-content: center;
  12901. /* border-left: 1px solid #E0E2ED; */
  12902. box-sizing: border-box;
  12903. padding: 20px;
  12904. flex-direction: column;
  12905. background: #fff;
  12906. border-radius: 5px;
  12907. }
  12908. .ai_box {
  12909. width: 204px;
  12910. display: flex;
  12911. justify-content: flex-end;
  12912. margin-bottom: 15px;
  12913. }
  12914. .ai_content {
  12915. display: flex;
  12916. align-items: center;
  12917. font-size: 14px;
  12918. padding: 7px 20px;
  12919. box-sizing: border-box;
  12920. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  12921. border-radius: 12px;
  12922. font-weight: 700;
  12923. cursor: pointer;
  12924. }
  12925. .ai_content>img {
  12926. width: 40px;
  12927. margin-right: 5px;
  12928. }
  12929. .c_info_title {
  12930. padding: 15px 0 15px 0;
  12931. font-size: 16px;
  12932. font-weight: bold;
  12933. margin: 0 0 0 20px;
  12934. box-sizing: border-box;
  12935. display: flex;
  12936. align-items: center;
  12937. line-height: 20px;
  12938. }
  12939. .c_info_title::before {
  12940. content: "";
  12941. display: block;
  12942. width: 3px;
  12943. height: 20px;
  12944. background: #0061ff;
  12945. border-radius: 3px;
  12946. margin: 0 5px 0 0;
  12947. }
  12948. .right_title {
  12949. height: 30px;
  12950. padding: 15px 0 15px 20px;
  12951. border-bottom: 1px solid #f2f2f2;
  12952. font-size: 1.5em;
  12953. font-weight: bold;
  12954. color: #0f7eff;
  12955. margin: 0 auto;
  12956. }
  12957. .people {
  12958. border: 1px solid rgb(229 229 229);
  12959. /* height: 495px; */
  12960. height: 350px;
  12961. border-radius: 5px;
  12962. width: 100%;
  12963. overflow: auto;
  12964. }
  12965. .people_top {
  12966. display: flex;
  12967. width: 100%;
  12968. /* justify-content: space-between; */
  12969. /* align-items: center; */
  12970. flex-direction: column;
  12971. padding: 10px 10px 0;
  12972. box-sizing: border-box;
  12973. }
  12974. .people_nav,
  12975. .people_top_right {
  12976. /* padding: 20px 0 0 20px; */
  12977. }
  12978. .people_top_right {
  12979. height: 40px;
  12980. margin-bottom: 10px;
  12981. }
  12982. .people_search {
  12983. display: flex;
  12984. position: relative;
  12985. }
  12986. .people_search>>>.el-input__inner {
  12987. /* height: 25px; */
  12988. width: 100%;
  12989. }
  12990. .search_img {
  12991. width: 20px;
  12992. height: 20px;
  12993. position: absolute;
  12994. right: 10px;
  12995. top: 50%;
  12996. transform: translateY(-50%);
  12997. }
  12998. .search_img>img {
  12999. width: 100%;
  13000. height: 100%;
  13001. }
  13002. .people_name {
  13003. display: flex;
  13004. justify-content: flex-start;
  13005. padding: 20px 10px;
  13006. flex-direction: column;
  13007. flex-wrap: wrap;
  13008. }
  13009. .p_box {
  13010. position: relative;
  13011. }
  13012. .people_name>>>.el-checkbox {
  13013. width: 100%;
  13014. display: flex;
  13015. align-items: center;
  13016. margin-bottom: 10px;
  13017. }
  13018. .people_name>>>.el-checkbox__label {
  13019. text-overflow: ellipsis;
  13020. overflow: hidden;
  13021. width: calc(100%);
  13022. }
  13023. .people_name2>>>.el-checkbox__label {
  13024. width: calc(100% - 130px);
  13025. }
  13026. .inviteCode {
  13027. position: absolute;
  13028. right: 30px;
  13029. color: #237ade;
  13030. top: 0;
  13031. cursor: pointer;
  13032. font-size: 13px;
  13033. }
  13034. .noneInvite {
  13035. color: #a8a8a8;
  13036. }
  13037. .inviteImg {
  13038. position: absolute;
  13039. right: 5px;
  13040. top: 0;
  13041. width: 20px;
  13042. }
  13043. .right_img {
  13044. width: 150px;
  13045. height: 150px;
  13046. margin: 0 auto;
  13047. }
  13048. .right_img>img {
  13049. width: 100%;
  13050. height: 100%;
  13051. }
  13052. .number {
  13053. margin-top: 20px;
  13054. color: #4aa6ff;
  13055. text-decoration: underline;
  13056. }
  13057. .success_button {
  13058. display: flex;
  13059. text-align: center;
  13060. margin: 5% 0 auto;
  13061. flex-direction: row;
  13062. justify-content: center;
  13063. }
  13064. .look_course {
  13065. margin-right: 40px;
  13066. background: #3d67bc;
  13067. width: 200px;
  13068. height: 35px;
  13069. line-height: 35px;
  13070. color: #fff;
  13071. text-align: center;
  13072. font-size: 14px;
  13073. border-radius: 5px;
  13074. cursor: pointer;
  13075. }
  13076. .attend_others {
  13077. width: 250px;
  13078. background: #4fb13c;
  13079. height: 35px;
  13080. line-height: 35px;
  13081. color: #fff;
  13082. text-align: center;
  13083. font-size: 14px;
  13084. border-radius: 5px;
  13085. cursor: pointer;
  13086. }
  13087. .dialog_diy2>>>.el-dialog__body {
  13088. text-align: center;
  13089. }
  13090. .write_togother {
  13091. position: absolute;
  13092. right: 45px;
  13093. display: flex;
  13094. top: 5%;
  13095. }
  13096. .write_people {
  13097. font-size: 14px;
  13098. line-height: 50px;
  13099. padding-right: 10px;
  13100. }
  13101. .end_write {
  13102. background: #3d67bc;
  13103. color: #fff;
  13104. width: 100px;
  13105. height: 35px;
  13106. line-height: 35px;
  13107. text-align: center;
  13108. font-size: 14px;
  13109. border-radius: 5px;
  13110. cursor: pointer;
  13111. }
  13112. .chapter_upload+.chapter_upload {
  13113. /* margin-top: 15px; */
  13114. border-top: 1px solid #e7ebf1;
  13115. }
  13116. .chapter_upload {
  13117. height: 45px;
  13118. position: relative;
  13119. display: flex;
  13120. align-items: center;
  13121. width: 100%;
  13122. min-height: 45px;
  13123. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  13124. /* border-radius: 4px; */
  13125. /* overflow: hidden; */
  13126. box-sizing: border-box;
  13127. }
  13128. .chapter_upload_drag {
  13129. position: absolute;
  13130. cursor: pointer;
  13131. width: 16px;
  13132. height: 16px;
  13133. left: -9px;
  13134. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  13135. background-size: 100% 100%;
  13136. z-index: 10;
  13137. display: none;
  13138. }
  13139. .isNavStage>.chapter_upload_drag {
  13140. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  13141. }
  13142. .chapter_upload_t {
  13143. background-color: #fff;
  13144. position: absolute;
  13145. height: 100%;
  13146. top: 0px;
  13147. left: 0px;
  13148. box-sizing: border-box;
  13149. }
  13150. .chapter_upload_o {
  13151. width: 100%;
  13152. height: 100%;
  13153. position: relative;
  13154. z-index: 1;
  13155. }
  13156. .chapter_upload_ic {
  13157. margin: 0 15px 0px auto;
  13158. display: flex;
  13159. align-items: center;
  13160. }
  13161. .chapter_upload_ic_l {
  13162. width: 50px;
  13163. height: 50px;
  13164. float: left;
  13165. }
  13166. .chapter_upload_ic_l div {
  13167. width: 30px;
  13168. height: 35px;
  13169. background: url("../../../assets/icon/icon.png");
  13170. }
  13171. .chapter_upload_ic_edit {
  13172. height: 100%;
  13173. display: flex;
  13174. align-items: center;
  13175. cursor: pointer;
  13176. margin: 0 10px 0 0;
  13177. }
  13178. .chapter_upload_ic_edit div {
  13179. width: 18px;
  13180. height: 18px;
  13181. background-image: url("../../../assets/icon/new/edit_u.png");
  13182. background-size: 100% 100%;
  13183. }
  13184. .chapter_upload_ic_r {
  13185. height: 100%;
  13186. display: flex;
  13187. align-items: center;
  13188. cursor: pointer;
  13189. }
  13190. .chapter_upload_ic_r div {
  13191. width: 18px;
  13192. height: 18px;
  13193. background-image: url("../../../assets/icon/new/delete_u.png");
  13194. background-size: 100% 100%;
  13195. }
  13196. .chapter_upload_n {
  13197. display: flex;
  13198. text-indent: 10px;
  13199. text-decoration: none;
  13200. text-overflow: ellipsis;
  13201. white-space: nowrap;
  13202. overflow: hidden;
  13203. width: 55%;
  13204. margin-left: 10px;
  13205. cursor: pointer;
  13206. margin-top: 2px;
  13207. align-items: center;
  13208. }
  13209. .chapter_upload_l_i2,
  13210. .chapter_upload_l_i3,
  13211. .chapter_upload_l_i8,
  13212. .chapter_upload_l_i6,
  13213. .chapter_upload_l_i12,
  13214. .chapter_upload_l_i14,
  13215. .chapter_upload_l_i13 {
  13216. width: 15px;
  13217. height: 15px;
  13218. background-size: 100% 100%;
  13219. }
  13220. .chapter_upload_l_i2 {
  13221. background-image: url("../../../assets/icon/new/u_word.png");
  13222. }
  13223. .chapter_upload_l_i3 {
  13224. background-image: url("../../../assets/icon/new/u_video.png");
  13225. }
  13226. .chapter_upload_l_i8 {
  13227. background-image: url("../../../assets/icon/new/u_url.png");
  13228. }
  13229. .chapter_upload_l_i14 {
  13230. background-image: url("../../../assets/icon/new/u_source.png");
  13231. }
  13232. .chapter_upload_l_i6 {
  13233. background-image: url("../../../assets/icon/new/u_picture.png");
  13234. }
  13235. .chapter_upload_l_i12 {
  13236. background-image: url("../../../assets/icon/new/u_word.png");
  13237. }
  13238. .chapter_upload_l_i13 {
  13239. background-image: url("../../../assets/icon/new/u_img.png");
  13240. }
  13241. .chapter_upload_noSee {
  13242. background-image: url("../../../assets/icon/new/u_noUpload.png");
  13243. width: 18px;
  13244. height: 18px;
  13245. background-size: 100% 100%;
  13246. display: block;
  13247. margin-right: 10px;
  13248. }
  13249. .chapter_upload_ud {
  13250. display: flex;
  13251. flex-direction: row;
  13252. justify-content: center;
  13253. margin: 0 10px 0 0;
  13254. }
  13255. .chapter_upload_ud>.chapter_upload_up {
  13256. margin-bottom: 0;
  13257. margin-right: 10px;
  13258. }
  13259. .chapter_upload_down,
  13260. .chapter_upload_up {
  13261. width: 20px;
  13262. height: 20px;
  13263. background: #e4eaf2;
  13264. cursor: pointer;
  13265. margin: 0 auto;
  13266. border-radius: 5px;
  13267. display: flex;
  13268. justify-content: center;
  13269. align-items: center;
  13270. }
  13271. .chapter_upload_up::after,
  13272. .chapter_upload_down::after {
  13273. content: "";
  13274. background-image: url("../../../assets/icon/new/downBtn.png");
  13275. width: 13px;
  13276. height: 13px;
  13277. background-size: 100% 100%;
  13278. display: block;
  13279. }
  13280. .chapter_upload_up::after {
  13281. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  13282. }
  13283. .chapter_upload_up {
  13284. margin-bottom: 5px;
  13285. }
  13286. .chapter_upload_ud2 {
  13287. display: flex;
  13288. flex-direction: row;
  13289. justify-content: center;
  13290. margin: 0 10px 0 0;
  13291. }
  13292. .chapter_upload_ud2>.chapter_upload_up2 {
  13293. margin-bottom: 0;
  13294. margin-right: 10px;
  13295. }
  13296. .chapter_upload_down2,
  13297. .chapter_upload_up2 {
  13298. cursor: pointer;
  13299. margin: 0 auto;
  13300. border-radius: 5px;
  13301. display: flex;
  13302. justify-content: center;
  13303. align-items: center;
  13304. color: #717c8d;
  13305. font-size: 14px;
  13306. }
  13307. .chapter_upload_up2 {
  13308. margin-right: 10px;
  13309. }
  13310. .chapter_upload_up2::before,
  13311. .chapter_upload_down2::before {
  13312. content: "";
  13313. background-image: url("../../../assets/icon/new/c_down.png");
  13314. width: 14px;
  13315. height: 14px;
  13316. background-size: 100% 100%;
  13317. display: block;
  13318. margin-right: 5px;
  13319. }
  13320. .chapter_upload_up2::before {
  13321. background-image: url("../../../assets/icon/new/c_up.png") !important;
  13322. }
  13323. .addWordStyle {
  13324. display: flex;
  13325. flex-direction: row;
  13326. justify-content: flex-start;
  13327. overflow-x: auto;
  13328. white-space: nowrap;
  13329. flex-wrap: wrap;
  13330. }
  13331. /* table 样式 */
  13332. .cont>>>table {
  13333. border-top: 1px solid #ccc;
  13334. border-left: 1px solid #ccc;
  13335. }
  13336. .cont>>>table td,
  13337. .cont>>>table th {
  13338. border-bottom: 1px solid #ccc;
  13339. border-right: 1px solid #ccc;
  13340. /* padding: 20px 5px; */
  13341. padding: 5px 10px;
  13342. max-width: 0px;
  13343. height: 30px;
  13344. vertical-align: baseline;
  13345. }
  13346. .cont>>>table th {
  13347. border-bottom: 2px solid #ccc;
  13348. text-align: center;
  13349. }
  13350. /* blockquote 样式 */
  13351. .cont>>>blockquote {
  13352. display: block;
  13353. border-left: 8px solid #d0e5f2;
  13354. padding: 5px 10px;
  13355. margin: 10px 0;
  13356. line-height: 1.4;
  13357. font-size: 100%;
  13358. background-color: #f1f1f1;
  13359. }
  13360. /* code 样式 */
  13361. .cont>>>code {
  13362. display: inline-block;
  13363. /* *display: inline; */
  13364. zoom: 1;
  13365. background-color: #f1f1f1;
  13366. border-radius: 3px;
  13367. padding: 3px 5px;
  13368. margin: 0 3px;
  13369. }
  13370. .cont>>>pre code {
  13371. display: block;
  13372. }
  13373. /* ul ol 样式 */
  13374. .cont>>>ul,
  13375. ol {
  13376. margin: 10px 0 10px 20px;
  13377. }
  13378. .wordbox {
  13379. display: flex;
  13380. flex-wrap: wrap;
  13381. cursor: pointer;
  13382. width: 100%;
  13383. }
  13384. .checkword {
  13385. width: 22px;
  13386. height: 22px;
  13387. margin: 10px auto 0;
  13388. cursor: pointer;
  13389. }
  13390. .checkword img {
  13391. width: 100%;
  13392. }
  13393. .stepBg {
  13394. display: flex;
  13395. justify-content: space-between;
  13396. align-items: center;
  13397. background: #fff;
  13398. width: calc(100%);
  13399. margin: 0 auto;
  13400. }
  13401. .stepBorder {
  13402. height: 3px !important;
  13403. background: #cad1dc;
  13404. width: 100px !important;
  13405. margin: 0 15px !important;
  13406. position: relative;
  13407. }
  13408. .border-active {
  13409. background: #3681fc !important;
  13410. }
  13411. .border-active::before,
  13412. .border-active::after {
  13413. border-color: #3681fc !important;
  13414. }
  13415. .stepBorder::before,
  13416. .stepBorder::after {
  13417. content: "";
  13418. width: 9px;
  13419. height: 9px;
  13420. background: #ffffff;
  13421. opacity: 1;
  13422. border: 2px solid #acb4bf;
  13423. display: block;
  13424. box-sizing: border-box;
  13425. border-radius: 50%;
  13426. position: absolute;
  13427. top: 50%;
  13428. transform: translateY(-50%);
  13429. }
  13430. .stepBorder::after {
  13431. right: -9px;
  13432. }
  13433. .stepTop {
  13434. width: 100%;
  13435. /* border-radius: 10px; */
  13436. display: flex;
  13437. justify-content: center;
  13438. align-items: center;
  13439. flex-wrap: nowrap;
  13440. background: #fff;
  13441. /* top: 18%; */
  13442. height: 80px;
  13443. border-bottom: 2px solid rgb(228, 232, 237);
  13444. box-sizing: border-box;
  13445. }
  13446. .stepTop2 {
  13447. width: 100%;
  13448. /* border-radius: 10px; */
  13449. display: flex;
  13450. justify-content: center;
  13451. align-items: center;
  13452. flex-wrap: nowrap;
  13453. background: #fff;
  13454. /* top: 18%; */
  13455. height: 20px;
  13456. border-bottom: 2px solid rgb(228, 232, 237);
  13457. box-sizing: border-box;
  13458. overflow: hidden;
  13459. cursor: pointer;
  13460. }
  13461. .stepTop>div img {
  13462. width: 100%;
  13463. }
  13464. .stepTop>div {
  13465. height: 50px;
  13466. width: 180px;
  13467. cursor: pointer;
  13468. margin: 10px 0;
  13469. border-radius: 10px;
  13470. }
  13471. .first,
  13472. .second,
  13473. .third,
  13474. .four {
  13475. background: #3681fc;
  13476. height: 90px;
  13477. color: #fff;
  13478. display: flex;
  13479. flex-direction: row;
  13480. align-items: center;
  13481. justify-content: center;
  13482. }
  13483. .first>div:nth-child(1),
  13484. .second>div:nth-child(1),
  13485. .third>div:nth-child(1),
  13486. .four>div:nth-child(1) {
  13487. margin: 5px 10px 0 0;
  13488. width: 2rem;
  13489. }
  13490. .firstNo,
  13491. .secondNo,
  13492. .thirdNo,
  13493. .fourNo {
  13494. background: #e7e7e7;
  13495. color: #adadad;
  13496. display: flex;
  13497. flex-direction: row;
  13498. align-items: center;
  13499. justify-content: center;
  13500. }
  13501. .firstNo>div:nth-child(1),
  13502. .secondNo>div:nth-child(1),
  13503. .thirdNo>div:nth-child(1),
  13504. .fourNo>div:nth-child(1) {
  13505. margin: 5px 10px 0 0;
  13506. width: 2rem;
  13507. }
  13508. .uploadWidth>>>.el-upload {
  13509. width: 60px;
  13510. height: 60px;
  13511. position: relative;
  13512. }
  13513. .addPeople {
  13514. background: #fa6060;
  13515. width: 150px;
  13516. height: 40px;
  13517. color: #fff;
  13518. border-radius: 5px;
  13519. text-align: center;
  13520. line-height: 40px;
  13521. font-size: 14px;
  13522. cursor: pointer;
  13523. }
  13524. .kcImg {
  13525. width: 60px;
  13526. margin-left: 10px;
  13527. }
  13528. .zyImg {
  13529. width: 55px;
  13530. margin: 0 10px;
  13531. }
  13532. .deleteZy {
  13533. width: 20px;
  13534. position: absolute;
  13535. top: 5px;
  13536. right: 5px;
  13537. cursor: pointer;
  13538. }
  13539. .kcImg>img,
  13540. .zyImg>img,
  13541. .deleteZy>img {
  13542. width: 100%;
  13543. height: 100%;
  13544. }
  13545. .zyBox {
  13546. display: flex;
  13547. flex-direction: row;
  13548. align-items: center;
  13549. background: #67d37d;
  13550. color: #fff;
  13551. width: 210px;
  13552. margin: 20px 20px 0 0;
  13553. border-radius: 10px;
  13554. height: 70px;
  13555. position: relative;
  13556. }
  13557. .upCss {
  13558. display: flex;
  13559. flex-direction: row;
  13560. justify-content: flex-start;
  13561. }
  13562. .upCss>>>.el-icon-plus {
  13563. position: none !important;
  13564. width: 200px;
  13565. height: 100px;
  13566. display: flex;
  13567. flex-wrap: nowrap;
  13568. flex-direction: column;
  13569. align-items: center;
  13570. justify-content: center;
  13571. border: 1px dashed #ccc;
  13572. min-width: 78px;
  13573. min-height: 100px;
  13574. z-index: 999;
  13575. }
  13576. .upCss>>>.el-upload-list__item-name {
  13577. width: 100px;
  13578. white-space: nowrap;
  13579. overflow: hidden;
  13580. text-overflow: ellipsis;
  13581. }
  13582. .upCss>>>.el-upload-list__item .el-icon-close {
  13583. font-size: 20px;
  13584. z-index: 9999;
  13585. }
  13586. .addStageImg {
  13587. min-width: 20px;
  13588. min-height: 20px;
  13589. width: 20px;
  13590. height: 20px;
  13591. cursor: pointer;
  13592. }
  13593. .addHW {
  13594. width: 28px;
  13595. height: 28px;
  13596. cursor: pointer;
  13597. }
  13598. .addStageImg>img,
  13599. .addHW>img {
  13600. width: 100%;
  13601. height: 100%;
  13602. }
  13603. .addNewPP>>>.el-dialog__body {
  13604. padding: 5px 20px;
  13605. }
  13606. .addNewPP>>>.el-dialog {
  13607. margin-top: 5vh !important;
  13608. }
  13609. .addNewPP2>>>.el-dialog__body {
  13610. padding: 5px 0;
  13611. }
  13612. .addNewPP2>>>.el-dialog {
  13613. margin-top: 5vh !important;
  13614. }
  13615. .isHeight {
  13616. height: 680px;
  13617. }
  13618. .toolChoose {
  13619. display: flex;
  13620. /* width: 100%; */
  13621. flex-direction: row;
  13622. flex-wrap: wrap;
  13623. }
  13624. .tool,
  13625. .isToolChoose {
  13626. display: flex;
  13627. flex-direction: column;
  13628. flex-wrap: nowrap;
  13629. width: fit-content;
  13630. margin: 10px 0 10px 0;
  13631. align-items: center;
  13632. border: 2px solid #dbdbdb00;
  13633. padding: 10px 20px;
  13634. border-radius: 5px;
  13635. cursor: pointer;
  13636. /* box-shadow: 0 0 2px 0px #dedede; */
  13637. position: relative;
  13638. box-sizing: border-box;
  13639. }
  13640. .tool:hover {
  13641. border: 2px solid #a5c7ff;
  13642. }
  13643. .tool:hover>.noCTool {
  13644. display: block;
  13645. opacity: 0.5;
  13646. }
  13647. .isToolChoose {
  13648. border: 2px solid #438aff !important;
  13649. box-shadow: 0 0 2px 0px #438aff;
  13650. opacity: 1 !important;
  13651. }
  13652. .isCTool,
  13653. .noCTool {
  13654. width: 30px;
  13655. height: 30px;
  13656. position: absolute;
  13657. top: -4px;
  13658. right: -4px;
  13659. }
  13660. .noCTool {
  13661. display: none;
  13662. }
  13663. .isCTool>img,
  13664. .noCTool>img {
  13665. width: 100%;
  13666. height: 100%;
  13667. }
  13668. .tool+.tool {
  13669. margin-right: 10px;
  13670. }
  13671. .whiteBIcon {
  13672. width: 80px;
  13673. cursor: pointer;
  13674. display: flex;
  13675. flex-direction: column;
  13676. flex-wrap: nowrap;
  13677. align-items: center;
  13678. font-size: 14px;
  13679. }
  13680. .whiteBIcon>img,
  13681. .toolIcon>img,
  13682. .arrow>img {
  13683. width: 100%;
  13684. height: 100%;
  13685. }
  13686. .check img {
  13687. width: 20px;
  13688. height: 20px;
  13689. }
  13690. .whiteBIcon>img {
  13691. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  13692. border-radius: 15px;
  13693. }
  13694. .whiteBIcon>div:nth-child(2) {
  13695. height: 20px;
  13696. line-height: 20px;
  13697. }
  13698. .check {
  13699. /* width: 20px;
  13700. height: 20px; */
  13701. cursor: pointer;
  13702. margin: 10px 0 0;
  13703. }
  13704. .checkDiv {
  13705. display: flex;
  13706. align-items: center;
  13707. }
  13708. .checkDiv span {
  13709. margin-left: 5px;
  13710. color: #858585;
  13711. }
  13712. .customWidth>>>.el-dialog {
  13713. min-width: 500px !important;
  13714. }
  13715. .a_addBox {
  13716. margin: 10px 0;
  13717. background: #fff;
  13718. padding: 15px;
  13719. /* max-height: 600px; */
  13720. overflow: auto;
  13721. }
  13722. .a_add_box {
  13723. border-bottom: 2px solid #eee;
  13724. padding-bottom: 25px;
  13725. }
  13726. .a_add_head {
  13727. display: flex;
  13728. align-items: center;
  13729. justify-content: space-between;
  13730. margin: 10px 0 0 0;
  13731. font-size: 18px;
  13732. }
  13733. .a_add_checkType {
  13734. margin-top: 10px;
  13735. display: flex;
  13736. font-size: 14px;
  13737. align-items: center;
  13738. }
  13739. .a_add_checkType span {
  13740. box-sizing: border-box;
  13741. padding: 0 0 5px 0;
  13742. cursor: pointer;
  13743. }
  13744. .a_add_checkType span+span {
  13745. margin-left: 10px;
  13746. }
  13747. .a_add_checkType .active {
  13748. border-bottom: 2px solid #409eff;
  13749. color: #409eff;
  13750. }
  13751. .a_add_head .a_add_head_input {
  13752. /* width: 540px; */
  13753. width: 100%;
  13754. }
  13755. .a_add_head .a_add_head_div {
  13756. display: flex;
  13757. align-items: center;
  13758. justify-content: space-between;
  13759. }
  13760. .a_add_body {
  13761. display: flex;
  13762. /* align-items: center; */
  13763. align-items: flex-end;
  13764. }
  13765. .a_add_input {
  13766. display: flex;
  13767. align-items: center;
  13768. flex-wrap: wrap;
  13769. }
  13770. .a_add_input_choice {
  13771. flex-direction: column;
  13772. margin-right: 10px;
  13773. }
  13774. .a_add_input_choice>>>.el-radio {
  13775. display: flex;
  13776. align-items: center;
  13777. flex-direction: row-reverse;
  13778. margin: 30px 0 0 0;
  13779. position: relative;
  13780. }
  13781. .a_add_input_choice>>>.el-checkbox {
  13782. display: flex;
  13783. align-items: center;
  13784. flex-direction: row-reverse;
  13785. margin: 30px 0 0 0;
  13786. position: relative;
  13787. }
  13788. .width100 {
  13789. width: 100%;
  13790. }
  13791. .a_add_input .a_add_persent {
  13792. width: 100%;
  13793. }
  13794. .a_add_persent_div {
  13795. width: 100%;
  13796. display: flex;
  13797. align-items: center;
  13798. }
  13799. .a_add_persent_div span {
  13800. margin: 5px 0;
  13801. }
  13802. .a_add_persent_div span:nth-child(1) {
  13803. width: 30%;
  13804. }
  13805. .a_add_persent_div span:nth-child(2) {
  13806. width: 7%;
  13807. }
  13808. .a_add_persent_div span:nth-child(3) {
  13809. width: 40%;
  13810. }
  13811. .a_add_body_div {
  13812. display: flex;
  13813. align-items: center;
  13814. justify-content: center;
  13815. /* flex-direction: column; */
  13816. position: absolute;
  13817. right: -20px;
  13818. transform: translateX(100%);
  13819. }
  13820. .a_add_body_div>>>.el-button--primary {
  13821. background: #466b99;
  13822. border: none;
  13823. }
  13824. .all_choose {
  13825. display: flex;
  13826. flex-direction: row;
  13827. align-items: flex-start;
  13828. width: 100%;
  13829. }
  13830. .all_choose+.all_choose {
  13831. /* margin-top: 10px */
  13832. }
  13833. .all_choose>span {
  13834. min-width: fit-content;
  13835. display: block;
  13836. white-space: nowrap;
  13837. overflow: hidden;
  13838. text-overflow: ellipsis;
  13839. margin-right: 20px;
  13840. font-weight: bold;
  13841. font-size: 14px;
  13842. }
  13843. .all_choose>>>.el-checkbox-group {
  13844. display: flex;
  13845. flex-direction: row;
  13846. width: 100%;
  13847. flex-wrap: wrap;
  13848. align-content: center;
  13849. justify-content: flex-start;
  13850. align-items: center;
  13851. margin-top: 3px;
  13852. }
  13853. .all_choose>.el-checkbox-group>>>.el-checkbox {
  13854. margin-bottom: 10px;
  13855. display: flex;
  13856. flex-direction: row;
  13857. align-items: center;
  13858. margin-right: 10px;
  13859. }
  13860. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  13861. min-width: 80px;
  13862. overflow: hidden;
  13863. width: 80px;
  13864. text-overflow: ellipsis;
  13865. white-space: nowrap;
  13866. }
  13867. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  13868. width: auto;
  13869. }
  13870. .choose>div:nth-child(3)>span {
  13871. /* letter-spacing: 0 !important; */
  13872. }
  13873. .choose {
  13874. display: flex;
  13875. flex-direction: column;
  13876. flex-wrap: nowrap;
  13877. height: 100%;
  13878. justify-content: space-evenly;
  13879. align-items: flex-start;
  13880. }
  13881. .both {
  13882. display: flex;
  13883. flex-direction: row;
  13884. flex-wrap: wrap;
  13885. width: 100%;
  13886. align-items: center;
  13887. justify-content: flex-start;
  13888. margin: 15px 0;
  13889. }
  13890. .notice>>>.el-dialog {
  13891. width: 500px !important;
  13892. text-align: center;
  13893. }
  13894. .notice>>>.el-button {
  13895. margin-top: 20px;
  13896. }
  13897. .whiteBg {
  13898. /* background: #fff; */
  13899. border-radius: 10px;
  13900. }
  13901. .wb_j_box {
  13902. display: flex;
  13903. width: 100%;
  13904. padding: 0 20px 0;
  13905. box-sizing: border-box;
  13906. }
  13907. .wb_j_box_content {
  13908. width: calc(100% - 55% - 100px);
  13909. display: flex;
  13910. align-items: center;
  13911. }
  13912. .wb_j_box_p_box {
  13913. max-width: calc(100% - 200px);
  13914. word-break: break-all;
  13915. overflow: hidden;
  13916. margin: 0 0 0 10px;
  13917. font-size: 14px;
  13918. color: #6e6e6e;
  13919. z-index: 999;
  13920. }
  13921. .chooseWho {
  13922. display: flex;
  13923. width: 410px;
  13924. flex-direction: row;
  13925. flex-wrap: nowrap;
  13926. justify-content: space-between;
  13927. padding-bottom: 10px;
  13928. }
  13929. .chooseWho>div {
  13930. cursor: pointer;
  13931. padding-bottom: 10px;
  13932. font-weight: bold;
  13933. }
  13934. .isChooseActive {
  13935. color: #3e88f4;
  13936. border-bottom: 2px solid #2f80f3;
  13937. }
  13938. .toolSort {
  13939. display: flex;
  13940. flex-direction: row;
  13941. flex-wrap: wrap;
  13942. justify-content: flex-start;
  13943. align-items: flex-start;
  13944. }
  13945. .toolSort>div {
  13946. margin-right: 10px;
  13947. }
  13948. .tools {
  13949. width: 100%;
  13950. display: flex;
  13951. flex-direction: column;
  13952. flex-wrap: nowrap;
  13953. align-items: flex-start;
  13954. }
  13955. .leftTools,
  13956. .rightTools {
  13957. width: 50%;
  13958. }
  13959. .leftTools+.leftTools {
  13960. border-top: 1px solid #dbdbdb;
  13961. padding-top: 30px;
  13962. }
  13963. .rightTools {
  13964. display: flex;
  13965. flex-direction: row;
  13966. flex-wrap: nowrap;
  13967. justify-content: space-around;
  13968. }
  13969. .firstToolList {
  13970. display: flex;
  13971. flex-direction: column;
  13972. flex-wrap: nowrap;
  13973. align-items: center;
  13974. }
  13975. .iconList {
  13976. display: flex;
  13977. flex-direction: row;
  13978. flex-wrap: wrap;
  13979. justify-content: flex-start;
  13980. align-items: center;
  13981. margin: 20px 0 5px 0;
  13982. width: 240px;
  13983. min-width: 240px;
  13984. }
  13985. .iconTool {
  13986. display: flex;
  13987. flex-direction: column;
  13988. flex-wrap: nowrap;
  13989. align-items: center;
  13990. justify-content: flex-start;
  13991. margin: 15px 10px;
  13992. }
  13993. .toolIcon {
  13994. width: 50px;
  13995. }
  13996. .taskBorder {
  13997. /* border: 1px solid #CAD1DC; */
  13998. border-radius: 10px;
  13999. margin-top: 10px;
  14000. min-height: 670px;
  14001. position: relative;
  14002. background: #fff;
  14003. padding: 20px;
  14004. overflow: hidden;
  14005. box-sizing: border-box;
  14006. }
  14007. .smallTaskBorder {
  14008. height: 405px;
  14009. min-height: 405px !important;
  14010. overflow: hidden;
  14011. }
  14012. /* .taskBorder>div {
  14013. padding: 30px 30px 10px;
  14014. } */
  14015. .addTaskBorder {
  14016. /* border: 2px solid #5E9AFC; */
  14017. border-radius: 8px;
  14018. margin-top: 10px;
  14019. cursor: pointer;
  14020. /* height: 50px;
  14021. line-height: 50px; */
  14022. background: #fff;
  14023. padding: 15px 0;
  14024. display: flex;
  14025. align-items: center;
  14026. justify-content: center;
  14027. }
  14028. /* .addTaskBorder>div {
  14029. margin: 0 auto;
  14030. display: flex;
  14031. align-items: center;
  14032. justify-content: center;
  14033. }
  14034. .addTaskBorder>div>img {
  14035. width: 20px;
  14036. }
  14037. .addTaskBorder>div>span {
  14038. font-size: 16px;
  14039. margin-left: 10px;
  14040. color: #5E9AFC;
  14041. } */
  14042. .funBlock {
  14043. display: flex;
  14044. padding: 15px 0;
  14045. flex-direction: row;
  14046. justify-content: center;
  14047. align-items: center;
  14048. position: absolute;
  14049. right: 0;
  14050. bottom: 0;
  14051. background: #fff;
  14052. width: 100%;
  14053. height: 60px;
  14054. z-index: 9;
  14055. }
  14056. .fold {
  14057. display: flex;
  14058. margin: 0 20px;
  14059. flex-direction: row;
  14060. align-items: center;
  14061. cursor: pointer;
  14062. color: #2b7bff;
  14063. }
  14064. .arrow {
  14065. margin-right: 8px;
  14066. width: 16px;
  14067. height: 16px;
  14068. min-width: 16px;
  14069. min-height: 16px;
  14070. background-size: 100% 100%;
  14071. display: block;
  14072. background-image: url(../../../assets/icon/new/u_up.png);
  14073. /* border-left: 7px solid transparent;
  14074. border-bottom: 7px solid #717C8D;
  14075. border-top: 0px solid transparent;
  14076. border-right: 7px solid transparent; */
  14077. /* box-sizing: border-box; */
  14078. transition: all 0.3s;
  14079. }
  14080. .arrowZ {
  14081. transform: rotate(180deg);
  14082. }
  14083. .addToolFun {
  14084. display: flex;
  14085. width: 150px;
  14086. flex-direction: row;
  14087. align-items: center;
  14088. justify-content: center;
  14089. border: 2px dashed #cad1dc;
  14090. border-radius: 5px;
  14091. height: 50px;
  14092. margin: 35px auto 0;
  14093. cursor: pointer;
  14094. }
  14095. .addToolFun2 {
  14096. display: flex;
  14097. width: 150px;
  14098. border: 2px dashed #cad1dc;
  14099. flex-direction: row;
  14100. align-items: center;
  14101. justify-content: center;
  14102. border-radius: 5px;
  14103. height: 50px;
  14104. margin: 0 auto 0;
  14105. cursor: pointer;
  14106. }
  14107. .addToolFun2>div,
  14108. .addToolFun>div {
  14109. display: flex;
  14110. line-height: 50px;
  14111. }
  14112. .addToolImg {
  14113. width: 20px;
  14114. height: 20px;
  14115. margin-right: 10px;
  14116. }
  14117. .addToolsDia>>>.el-dialog__body {
  14118. padding: 20px;
  14119. }
  14120. .addToolsDia>>>.el-dialog__body>.toolChoose {
  14121. padding: 0;
  14122. }
  14123. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  14124. padding: 0;
  14125. border-bottom: none;
  14126. margin-bottom: 0;
  14127. }
  14128. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  14129. width: 100%;
  14130. }
  14131. .lineCss>>>.el-form-item__label {
  14132. width: auto !important;
  14133. }
  14134. .lineCss>>>.el-form-item__content {
  14135. margin-left: 50px !important;
  14136. }
  14137. .newSteps {
  14138. display: flex;
  14139. width: 100% !important;
  14140. /* height: 80px; */
  14141. cursor: pointer;
  14142. margin: 10px 0;
  14143. border-radius: 10px;
  14144. flex-direction: row;
  14145. align-content: center;
  14146. justify-content: center;
  14147. align-items: center;
  14148. margin: 0 !important;
  14149. }
  14150. /* 评价样式 */
  14151. .elist_css {
  14152. padding-bottom: 75px !important;
  14153. }
  14154. .elist_title {
  14155. margin-bottom: 10px;
  14156. }
  14157. .elist_input {
  14158. width: 100%;
  14159. }
  14160. .elist_input_box {
  14161. display: flex;
  14162. align-items: center;
  14163. flex-wrap: wrap;
  14164. }
  14165. .elist_input_box+.elist_input_box {
  14166. margin-top: 30px;
  14167. }
  14168. .elist_input .elist_input_box input {
  14169. font: inherit;
  14170. color: currentColor;
  14171. width: 100%;
  14172. /* max-width: calc(100% - 385px); */
  14173. max-width: calc(100% - 150px);
  14174. padding: 8px 14px;
  14175. display: block;
  14176. min-width: 0;
  14177. outline: none;
  14178. border: 1px solid rgba(0, 0, 0, 0.23);
  14179. border-radius: 4px;
  14180. box-sizing: border-box;
  14181. background: #fff;
  14182. margin: 0 20px 0 0;
  14183. }
  14184. .elist_input .elist_input_box span {
  14185. height: 36px;
  14186. line-height: 36px;
  14187. color: rgb(82, 82, 82);
  14188. min-width: 80px;
  14189. }
  14190. .elist_input .elist_input_box .remove {
  14191. height: 20px;
  14192. width: 20px;
  14193. min-height: 20px;
  14194. min-width: 20px;
  14195. background-size: 100% 100%;
  14196. background-position: unset;
  14197. margin-left: 5px;
  14198. }
  14199. .elist_input_box>>>.el-rate {
  14200. display: flex;
  14201. height: 36px;
  14202. align-items: center;
  14203. }
  14204. .elist_input_box .elist_inptu_text {
  14205. width: 100%;
  14206. display: flex;
  14207. align-items: center;
  14208. margin-top: 10px;
  14209. }
  14210. .elist_input_box .elist_inptu_text input {
  14211. /* width: 500px; */
  14212. width: 100%;
  14213. max-width: unset;
  14214. }
  14215. .elist_input_box>>>.el-rate__icon {
  14216. font-size: 24px;
  14217. }
  14218. .elist_btn {
  14219. margin-top: 10px;
  14220. }
  14221. .lineTitle {
  14222. /* margin-top: 15px; */
  14223. width: 110px;
  14224. font-size: 16px;
  14225. display: flex;
  14226. align-items: center;
  14227. line-height: 20px;
  14228. }
  14229. .lineTitle::before {
  14230. content: "";
  14231. display: block;
  14232. width: 3px;
  14233. height: 20px;
  14234. background: #0061ff;
  14235. border-radius: 3px;
  14236. margin: 0 5px 0 0;
  14237. }
  14238. .clineTitle::before {
  14239. content: "";
  14240. display: block;
  14241. min-width: 10px;
  14242. width: 10px;
  14243. height: 10px;
  14244. background: #0061ff;
  14245. border-radius: 50%;
  14246. margin: 0 5px 0 0;
  14247. }
  14248. .courseTop {
  14249. display: flex;
  14250. flex-direction: row;
  14251. justify-content: space-between;
  14252. align-items: center;
  14253. width: calc(100% - 40px);
  14254. margin: 0 auto;
  14255. padding: 10px 0;
  14256. }
  14257. .stepsNav {
  14258. display: flex;
  14259. flex-direction: row;
  14260. justify-content: flex-start;
  14261. align-items: center;
  14262. }
  14263. .stepsWord {
  14264. font-size: 18px;
  14265. color: #fff;
  14266. font-weight: bold;
  14267. margin-left: auto;
  14268. background: rgb(15, 126, 255);
  14269. border-radius: 5px;
  14270. padding: 3px 25px;
  14271. box-sizing: border-box;
  14272. }
  14273. .stepBox {
  14274. width: calc(100% - 40px);
  14275. height: calc(100% - 50px);
  14276. overflow: hidden;
  14277. border-radius: 5px;
  14278. margin: 0 auto;
  14279. }
  14280. .rightBox {
  14281. width: calc(100%);
  14282. background: #f0f2f5;
  14283. /* border-radius: 10px; */
  14284. overflow: auto;
  14285. height: calc(100% - 150px);
  14286. margin: 0 auto;
  14287. position: relative;
  14288. box-sizing: border-box;
  14289. }
  14290. .e_add_top {
  14291. display: flex;
  14292. justify-content: space-between;
  14293. background: #fff;
  14294. position: absolute;
  14295. right: 20px;
  14296. height: 50px;
  14297. align-items: center;
  14298. }
  14299. .e_add_title2 {
  14300. display: flex;
  14301. align-items: center;
  14302. }
  14303. .e_add_title2 span {
  14304. width: 40px;
  14305. }
  14306. .e_add_title {
  14307. display: flex;
  14308. align-items: center;
  14309. color: #b8b8b8;
  14310. font-size: 18px;
  14311. position: relative;
  14312. height: 40px;
  14313. }
  14314. .e_add_title span {
  14315. margin-right: 10px;
  14316. }
  14317. .e_add_title .el_input {
  14318. width: 300px;
  14319. }
  14320. .e_add_title>>>.el-input__inner {
  14321. width: 400px;
  14322. }
  14323. .e_add_btn {}
  14324. .e_add_content {
  14325. display: flex;
  14326. width: 100%;
  14327. }
  14328. .e_add_list {
  14329. background: #fff;
  14330. height: 500px;
  14331. width: 210px;
  14332. position: relative;
  14333. margin: 15px 5px 0 0;
  14334. flex-shrink: 0;
  14335. display: flex;
  14336. flex-direction: column;
  14337. }
  14338. .e_add_list_title {
  14339. font-size: 20px;
  14340. width: 100%;
  14341. box-sizing: border-box;
  14342. padding: 15px 40px;
  14343. text-align: center;
  14344. border-bottom: 1px solid #eaeaea;
  14345. position: relative;
  14346. display: flex;
  14347. align-items: center;
  14348. justify-content: center;
  14349. height: 57px;
  14350. background: #f6f6f6;
  14351. }
  14352. .e_add_list_title span {
  14353. overflow: hidden;
  14354. white-space: nowrap;
  14355. text-overflow: ellipsis;
  14356. }
  14357. .e_add_list_title img {
  14358. position: absolute;
  14359. right: 15px;
  14360. width: 25px;
  14361. cursor: pointer;
  14362. top: 50%;
  14363. transform: translateY(-50%);
  14364. }
  14365. .e_add_list_body {
  14366. height: calc(100% - 187px);
  14367. overflow: auto;
  14368. }
  14369. .e_add_list_child {
  14370. width: 100%;
  14371. display: flex;
  14372. align-items: center;
  14373. justify-content: center;
  14374. position: relative;
  14375. box-sizing: border-box;
  14376. padding: 15px 40px;
  14377. text-align: center;
  14378. }
  14379. .e_add_list_child span {
  14380. overflow: hidden;
  14381. white-space: nowrap;
  14382. text-overflow: ellipsis;
  14383. cursor: pointer;
  14384. }
  14385. .e_add_list_child img {
  14386. position: absolute;
  14387. right: 10px;
  14388. width: 21px;
  14389. cursor: pointer;
  14390. top: 50%;
  14391. transform: translateY(-50%);
  14392. }
  14393. .e_add_list_child+.e_add_list_child {
  14394. border-top: 1px solid #eaeaea;
  14395. }
  14396. .e_add_list_child .active {
  14397. color: #409eff;
  14398. }
  14399. .e_add_list_btn {
  14400. position: absolute;
  14401. bottom: 0;
  14402. height: 50px;
  14403. background: rgb(120, 120, 254);
  14404. width: 100%;
  14405. color: #fff;
  14406. font-size: 16px;
  14407. text-align: center;
  14408. line-height: 50px;
  14409. cursor: pointer;
  14410. }
  14411. .e_add_list_detail {
  14412. position: absolute;
  14413. bottom: 0;
  14414. height: 130px;
  14415. background: rgb(120, 120, 254);
  14416. width: 100%;
  14417. color: #fff;
  14418. font-size: 16px;
  14419. display: flex;
  14420. align-items: center;
  14421. justify-content: center;
  14422. }
  14423. .e_add_list_detail textarea {
  14424. height: 90%;
  14425. width: 95%;
  14426. border: none;
  14427. resize: none;
  14428. outline: none;
  14429. padding: 5px;
  14430. box-sizing: border-box;
  14431. }
  14432. .e_add_list_pbox {
  14433. width: 100%;
  14434. }
  14435. .e_add_list_pbox_title {
  14436. height: 50px;
  14437. background: #fff;
  14438. display: flex;
  14439. align-items: center;
  14440. width: 100%;
  14441. box-sizing: border-box;
  14442. padding: 0 20px;
  14443. flex-direction: row;
  14444. flex-wrap: wrap;
  14445. }
  14446. .type_title {
  14447. font-size: 18px;
  14448. font-weight: 700;
  14449. }
  14450. .type_content {
  14451. font-size: 16px;
  14452. margin-left: 30px;
  14453. }
  14454. .type_content span+span {
  14455. margin-left: 20px;
  14456. }
  14457. .type_content span {
  14458. cursor: pointer;
  14459. padding-bottom: 5px;
  14460. box-sizing: border-box;
  14461. }
  14462. .type_content .active {
  14463. color: #409eff;
  14464. border-bottom: 2px solid #409eff;
  14465. }
  14466. .e_add_list_pbox_content {
  14467. height: calc(100% - 50px);
  14468. display: flex;
  14469. align-items: center;
  14470. width: 100%;
  14471. background: #fff;
  14472. }
  14473. .mbCss {
  14474. width: 100%;
  14475. display: flex;
  14476. flex-direction: row;
  14477. flex-wrap: nowrap;
  14478. align-content: center;
  14479. align-items: flex-start;
  14480. justify-content: flex-start;
  14481. }
  14482. .pjCss {
  14483. /* width: 42%; */
  14484. width: calc(100% - 55%);
  14485. display: flex;
  14486. flex-direction: column;
  14487. flex-wrap: nowrap;
  14488. align-items: flex-start;
  14489. }
  14490. .e_box {
  14491. /* display: flex; */
  14492. flex-wrap: wrap;
  14493. max-height: 500px;
  14494. align-items: flex-start;
  14495. overflow: auto;
  14496. width: 100%;
  14497. }
  14498. .e_card {
  14499. border: 1px solid #ccc;
  14500. background: #fff;
  14501. margin-right: 20px;
  14502. width: 270px;
  14503. display: flex;
  14504. flex-direction: column;
  14505. align-items: center;
  14506. border-radius: 5px;
  14507. margin-top: 10px;
  14508. text-align: center;
  14509. }
  14510. .e_card_picture {
  14511. margin: 10px 0;
  14512. }
  14513. .e_card_picture>img {
  14514. width: 50px;
  14515. }
  14516. .e_card_name {
  14517. width: 100%;
  14518. padding: 0 10px;
  14519. box-sizing: border-box;
  14520. margin-bottom: 10px;
  14521. overflow: hidden;
  14522. text-overflow: ellipsis;
  14523. white-space: nowrap;
  14524. }
  14525. .e_card_time {
  14526. width: 100%;
  14527. padding: 0 10px;
  14528. box-sizing: border-box;
  14529. font-size: 15px;
  14530. color: #c3c3c3;
  14531. margin-bottom: 10px;
  14532. }
  14533. .e_card_btn {
  14534. height: 40px;
  14535. display: flex;
  14536. align-items: center;
  14537. width: 100%;
  14538. background: rgb(244, 244, 244);
  14539. }
  14540. .e_card_btn:hover {
  14541. background: rgb(221 221 221);
  14542. }
  14543. .e_card_btn span {
  14544. flex: 1 1 auto;
  14545. text-align: center;
  14546. cursor: pointer;
  14547. }
  14548. .addEva {
  14549. border: 1px solid #ccc;
  14550. background: #fff;
  14551. margin-right: 20px;
  14552. width: 270px;
  14553. height: 149px;
  14554. display: flex;
  14555. flex-direction: column;
  14556. align-items: center;
  14557. border-radius: 5px;
  14558. margin-top: 10px;
  14559. text-align: center;
  14560. cursor: pointer;
  14561. justify-content: center;
  14562. }
  14563. .addEva>img {
  14564. width: 50px;
  14565. object-fit: cover;
  14566. }
  14567. .uploadFm {
  14568. border: 1px dashed #ccc;
  14569. width: 100%;
  14570. height: 140px;
  14571. position: relative;
  14572. cursor: pointer;
  14573. display: flex;
  14574. flex-direction: column;
  14575. justify-content: center;
  14576. align-items: center;
  14577. font-size: 14px;
  14578. color: #6e6e6e;
  14579. position: relative;
  14580. }
  14581. .cover_p {
  14582. width: 100% !important;
  14583. height: 100%;
  14584. object-fit: cover;
  14585. }
  14586. .uploadFm2:hover .cover_mask {
  14587. display: flex !important;
  14588. }
  14589. .cover_mask {
  14590. display: none;
  14591. width: 100%;
  14592. height: 100%;
  14593. position: absolute;
  14594. background: #00000054;
  14595. align-items: center;
  14596. justify-content: center;
  14597. flex-direction: column;
  14598. }
  14599. .cover_mask>img {
  14600. width: 30px;
  14601. }
  14602. .cover_mask>span {
  14603. color: #fff;
  14604. font-size: 12px;
  14605. }
  14606. .uploadFm>img {
  14607. width: 50px;
  14608. }
  14609. .fileCss {
  14610. width: 100%;
  14611. display: flex;
  14612. flex-direction: row;
  14613. flex-wrap: nowrap;
  14614. justify-content: space-around;
  14615. align-items: center;
  14616. padding-top: 15px;
  14617. }
  14618. .fileCss>div {
  14619. display: flex;
  14620. flex-direction: column;
  14621. align-items: center;
  14622. }
  14623. .fileCss .spanName {
  14624. margin-top: 10px;
  14625. }
  14626. .sysPicBox {
  14627. display: flex;
  14628. flex-direction: row;
  14629. flex-wrap: wrap;
  14630. align-content: flex-start;
  14631. height: 435px;
  14632. overflow: auto;
  14633. position: relative;
  14634. }
  14635. .picNone {
  14636. position: absolute;
  14637. left: 50%;
  14638. top: 45%;
  14639. transform: translate(-50%, -50%);
  14640. width: fit-content;
  14641. color: #9c9c9c;
  14642. }
  14643. .sysPic {
  14644. width: 200px;
  14645. height: 115px;
  14646. margin: 0 20px 20px 0;
  14647. cursor: pointer;
  14648. }
  14649. .sysPic>img,
  14650. .isSysPic>img,
  14651. .deletePic>img {
  14652. width: 100%;
  14653. height: 100%;
  14654. object-fit: cover;
  14655. }
  14656. .isSysPic {
  14657. width: 200px;
  14658. height: 115px;
  14659. position: relative;
  14660. }
  14661. .deletePic {
  14662. width: 20px;
  14663. height: 20px;
  14664. position: absolute;
  14665. top: 0;
  14666. right: 0;
  14667. cursor: pointer;
  14668. }
  14669. .select_box1 {
  14670. height: 100%;
  14671. }
  14672. .select_box1_img {
  14673. background: #fff;
  14674. border-radius: 5px;
  14675. padding: 15px;
  14676. box-sizing: border-box;
  14677. margin-bottom: 20px;
  14678. }
  14679. .select_box1_title {
  14680. padding: 0 0 15px 0;
  14681. border-bottom: 1px solid #eee;
  14682. margin-bottom: 15px;
  14683. }
  14684. .select_box1_title span:nth-child(1) {
  14685. font-size: 16px;
  14686. margin-right: 20px;
  14687. color: #000;
  14688. }
  14689. .select_box1_title span:nth-child(2) {
  14690. font-size: 14px;
  14691. color: rgb(112, 112, 112);
  14692. }
  14693. .select_box1_add_img {}
  14694. .select_box1_select {
  14695. background: #fff;
  14696. border-radius: 5px;
  14697. padding: 15px;
  14698. box-sizing: border-box;
  14699. height: calc(100% - 200px);
  14700. overflow: auto;
  14701. }
  14702. .select_box2 {
  14703. height: 100%;
  14704. }
  14705. .select_box2_title {
  14706. background: #fff;
  14707. border-radius: 5px;
  14708. padding: 5px 10px;
  14709. box-sizing: border-box;
  14710. margin-bottom: 10px;
  14711. }
  14712. .select_box2_box {
  14713. display: flex;
  14714. height: calc(100% - 30px);
  14715. }
  14716. .select_box2_img {
  14717. width: calc(100% - 310px);
  14718. height: 100%;
  14719. overflow: auto;
  14720. background: #fff;
  14721. border-radius: 5px;
  14722. }
  14723. .select_box2_img img {
  14724. width: 100%;
  14725. }
  14726. .select_box2_answer {
  14727. background: #fff;
  14728. margin-left: 10px;
  14729. border-radius: 5px;
  14730. width: 300px;
  14731. overflow: auto;
  14732. height: 100%;
  14733. display: flex;
  14734. flex-direction: column;
  14735. align-items: center;
  14736. padding-top: 10px;
  14737. box-sizing: border-box;
  14738. }
  14739. .select_box2_answer_box {
  14740. margin: 0 0 10px 0;
  14741. width: 85%;
  14742. }
  14743. .rate_textarea {
  14744. font: inherit;
  14745. color: currentColor;
  14746. width: 100%;
  14747. padding: 8px 14px;
  14748. display: block;
  14749. min-width: 0;
  14750. outline: none;
  14751. border: 1px solid rgba(0, 0, 0, 0.23);
  14752. border-radius: 4px;
  14753. box-sizing: border-box;
  14754. background: #fff;
  14755. margin: 0 20px 0 0;
  14756. resize: none;
  14757. }
  14758. .select_answer_title {
  14759. text-align: left;
  14760. width: 85%;
  14761. margin-bottom: 10px;
  14762. font-size: 18px;
  14763. color: #8e8e8e;
  14764. }
  14765. .mask {
  14766. background-color: rgb(0 0 0 / 30%);
  14767. /* position: fixed; */
  14768. position: absolute;
  14769. top: 0;
  14770. left: 0;
  14771. width: 100%;
  14772. height: 100%;
  14773. z-index: 90;
  14774. display: flex;
  14775. align-items: center;
  14776. justify-content: center;
  14777. }
  14778. .progressBox {
  14779. width: 300px;
  14780. height: 150px;
  14781. background: #fff;
  14782. border-radius: 10px;
  14783. box-shadow: 0 0 6px 1px #bfbfbf;
  14784. display: flex;
  14785. align-items: center;
  14786. justify-content: center;
  14787. flex-direction: column;
  14788. position: relative;
  14789. color: #6c6c6c;
  14790. }
  14791. .progressBox>>>.el-progress-bar__outer {
  14792. background-color: #d1dfff !important;
  14793. }
  14794. .progressBox .lbox {
  14795. height: 50px;
  14796. font-size: 19px;
  14797. display: flex;
  14798. align-items: center;
  14799. color: #747474;
  14800. }
  14801. .progressBox .lbox img {
  14802. width: 40px;
  14803. margin-right: 20px;
  14804. }
  14805. .closeCss {
  14806. position: absolute;
  14807. top: 8px;
  14808. right: 8px;
  14809. cursor: pointer;
  14810. width: 20px;
  14811. height: 20px;
  14812. }
  14813. .closeCss>img {
  14814. width: 100%;
  14815. height: 100%;
  14816. }
  14817. .updateTips::before {
  14818. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  14819. font-size: 14px;
  14820. margin-left: 20px;
  14821. font-weight: 400;
  14822. color: #ff3a3a;
  14823. margin-bottom: 10px;
  14824. display: block;
  14825. }
  14826. .updateMask {
  14827. width: 100%;
  14828. z-index: 3;
  14829. top: 0;
  14830. position: absolute;
  14831. /* background-color: rgba(0,0,0,.3); */
  14832. }
  14833. .t_j_box {
  14834. display: flex;
  14835. }
  14836. .t_j_box span:nth-child(1) {
  14837. width: 15%;
  14838. overflow: hidden;
  14839. margin-right: 10px;
  14840. text-overflow: ellipsis;
  14841. white-space: nowrap;
  14842. }
  14843. .t_j_box span:nth-child(2) {
  14844. width: 30%;
  14845. overflow: hidden;
  14846. text-overflow: ellipsis;
  14847. margin-right: 10px;
  14848. }
  14849. .t_j_box span:nth-child(3) {
  14850. max-width: calc(55% - 20px);
  14851. overflow: hidden;
  14852. text-overflow: ellipsis;
  14853. }
  14854. .sentenBox {
  14855. background: #fff;
  14856. height: 600px;
  14857. overflow: auto;
  14858. background-image: url("../../../assets/icon/conSentences/csBg.png");
  14859. background-position: 102%;
  14860. background-repeat: no-repeat;
  14861. background-size: 60%;
  14862. }
  14863. .sentenBox>.sentenContent {
  14864. padding-bottom: 10px;
  14865. width: 97%;
  14866. margin: 0 auto;
  14867. }
  14868. .sentenBox>.sentenContent+.sentenContent {
  14869. border-top: 1px solid #cbcbcb;
  14870. }
  14871. .addSen {
  14872. background: #409efe;
  14873. width: 90px;
  14874. color: #fff;
  14875. height: 35px;
  14876. text-align: center;
  14877. line-height: 35px;
  14878. border-radius: 5px;
  14879. float: right;
  14880. margin: 10px 20px 0 0;
  14881. cursor: pointer;
  14882. }
  14883. .sentenTop {
  14884. display: flex;
  14885. flex-direction: row;
  14886. flex-wrap: nowrap;
  14887. align-items: center;
  14888. }
  14889. .sentenTop::before {
  14890. content: attr(index);
  14891. background: #3681fc;
  14892. border-radius: 50%;
  14893. color: #fff;
  14894. width: 25px;
  14895. height: 25px;
  14896. min-width: 25px;
  14897. min-height: 25px;
  14898. text-align: center;
  14899. line-height: 25px;
  14900. margin-right: 5px;
  14901. }
  14902. .sentenTop>div:nth-child(2) {
  14903. width: 300px;
  14904. margin: 0 15px;
  14905. }
  14906. .sentenTop>div:nth-child(3) {
  14907. background: #409efe;
  14908. color: #fff;
  14909. width: 65px;
  14910. height: 35px;
  14911. text-align: center;
  14912. line-height: 35px;
  14913. border-radius: 5px;
  14914. cursor: pointer;
  14915. }
  14916. .cardList {
  14917. padding: 30px 0 20px 0;
  14918. display: flex;
  14919. flex-direction: row;
  14920. flex-wrap: wrap;
  14921. align-items: center;
  14922. box-sizing: border-box;
  14923. border-bottom: 1px solid #f4f4f4;
  14924. width: 98%;
  14925. margin: 0 auto;
  14926. }
  14927. .rightCardList {
  14928. display: flex;
  14929. flex-wrap: wrap;
  14930. }
  14931. .cardBox {
  14932. display: flex;
  14933. flex-direction: row;
  14934. flex-wrap: wrap;
  14935. align-items: center;
  14936. align-content: center;
  14937. }
  14938. .isCard,
  14939. .isCard1 {
  14940. width: auto;
  14941. padding: 0 20px;
  14942. height: 65px;
  14943. text-align: center;
  14944. line-height: 65px;
  14945. font-size: 14px;
  14946. cursor: pointer;
  14947. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  14948. background-size: 100% 100%;
  14949. position: relative;
  14950. z-index: 99;
  14951. }
  14952. .isCard1 {
  14953. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  14954. }
  14955. .isCard:hover .deleteWord {
  14956. display: block;
  14957. }
  14958. .isCard>div:nth-child(1),
  14959. .isCard1>div:nth-child(1) {
  14960. white-space: nowrap;
  14961. overflow: hidden;
  14962. text-overflow: ellipsis;
  14963. width: 100%;
  14964. margin: 0 auto;
  14965. }
  14966. .card {
  14967. width: 140px;
  14968. height: 65px;
  14969. }
  14970. .card>img {
  14971. width: 100%;
  14972. height: 100%;
  14973. }
  14974. .rightCardBox {
  14975. width: 98%;
  14976. margin: 10px auto 0;
  14977. }
  14978. .rightCardBox>div:nth-child(1) {
  14979. margin-bottom: 10px;
  14980. }
  14981. .cardCss {
  14982. display: flex;
  14983. flex-direction: column;
  14984. flex-wrap: nowrap;
  14985. align-items: center;
  14986. border-bottom: 3px solid #b4c3d3;
  14987. padding: 0 0 5px 0;
  14988. /* margin-right: 10px; */
  14989. }
  14990. .cardCss>div:nth-child(2) {
  14991. background: #5b7b9d;
  14992. color: #fff;
  14993. width: 20px;
  14994. height: 20px;
  14995. border-radius: 50%;
  14996. text-align: center;
  14997. line-height: 20px;
  14998. }
  14999. .sentenTopBox {
  15000. display: flex;
  15001. flex-direction: row;
  15002. flex-wrap: nowrap;
  15003. align-items: center;
  15004. justify-content: space-between;
  15005. padding: 55px 0 0 20px;
  15006. box-sizing: border-box;
  15007. width: 85%;
  15008. }
  15009. .rb_c_ai_box,
  15010. .stepsBottom {
  15011. width: 100%;
  15012. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  15013. /* background: #f7f7f7; */
  15014. border-radius: 10px;
  15015. overflow: hidden;
  15016. /* height: 100%; */
  15017. height: calc(100% - 55px);
  15018. }
  15019. .navTop {
  15020. background: #53749b;
  15021. color: #fff;
  15022. height: 40px;
  15023. line-height: 40px;
  15024. padding-left: 15px;
  15025. font-size: 18px;
  15026. }
  15027. .navBottom {
  15028. /* background: #6b91b7; */
  15029. height: 100%;
  15030. overflow: auto;
  15031. padding: 10px 0;
  15032. }
  15033. .navStage {
  15034. display: flex;
  15035. flex-direction: row;
  15036. flex-wrap: nowrap;
  15037. align-items: center;
  15038. padding: 10px 10px 10px 0;
  15039. cursor: pointer;
  15040. background: #ffffff;
  15041. width: 95%;
  15042. margin: 5px auto 5px;
  15043. box-sizing: border-box;
  15044. border-radius: 5px;
  15045. flex-wrap: wrap;
  15046. position: relative;
  15047. }
  15048. .navStage:hover>.chapter_upload_drag {
  15049. display: block;
  15050. }
  15051. .navTask:hover>.chapter_upload_drag {
  15052. display: block;
  15053. }
  15054. .chapter_upload:hover>.chapter_upload_drag {
  15055. display: block;
  15056. }
  15057. .navStage::before {
  15058. content: "";
  15059. display: block;
  15060. width: 16px;
  15061. height: 16px;
  15062. background-image: url(../../../assets/icon/new/icon_stage.png);
  15063. background-size: 100%;
  15064. margin-left: 25px;
  15065. }
  15066. .navStage .chapter_unit_open {
  15067. content: "";
  15068. display: block;
  15069. width: 16px;
  15070. height: 16px;
  15071. background-image: url(../../../assets/icon/new/down.png);
  15072. transform: rotate(-90deg);
  15073. background-size: 100%;
  15074. margin-left: 10px;
  15075. transition: all 0.5s;
  15076. }
  15077. .isNavStageOpen .chapter_unit_open {
  15078. transform: rotate(0deg);
  15079. }
  15080. .isNavStage {
  15081. background: #0061ff;
  15082. }
  15083. .isNavStage::before {
  15084. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  15085. }
  15086. .isNavStage .chapter_unit_open {
  15087. background-image: url(../../../assets/icon/new/downC.png);
  15088. }
  15089. .isNavStage .nt_taskName {
  15090. font-weight: bold !important;
  15091. color: #ffffff !important;
  15092. }
  15093. .isNavStage .nt_taskTitle {
  15094. font-weight: bold !important;
  15095. color: #fff !important;
  15096. }
  15097. .navStage .nt_taskBox {
  15098. width: calc(100% - 68px);
  15099. padding: 0 0 0 5px;
  15100. box-sizing: border-box;
  15101. box-sizing: border-box;
  15102. display: flex;
  15103. flex-direction: row;
  15104. flex-wrap: nowrap;
  15105. align-items: baseline;
  15106. }
  15107. .navStage .nt_taskTitle {
  15108. color: #060e17;
  15109. line-height: 25px;
  15110. font-size: 16px;
  15111. }
  15112. .navStage .nt_taskName {
  15113. max-width: calc(100% - 82px);
  15114. white-space: nowrap;
  15115. overflow: hidden;
  15116. text-overflow: ellipsis;
  15117. font-size: 16px;
  15118. color: #060e17;
  15119. }
  15120. .navTask {
  15121. display: flex;
  15122. flex-direction: row;
  15123. flex-wrap: nowrap;
  15124. align-items: center;
  15125. padding: 10px 10px 10px 0;
  15126. cursor: pointer;
  15127. background: #ffffff;
  15128. width: 95%;
  15129. margin: 5px auto 5px;
  15130. box-sizing: border-box;
  15131. border-radius: 5px;
  15132. flex-wrap: wrap;
  15133. position: relative;
  15134. }
  15135. .navTask .chapter_upload_open {
  15136. content: "";
  15137. display: block;
  15138. width: 16px;
  15139. height: 16px;
  15140. background-image: url(../../../assets/icon/new/icon_arrow.png);
  15141. background-size: 100%;
  15142. margin-left: 23px;
  15143. }
  15144. .noImage .chapter_upload_open {
  15145. display: none;
  15146. background-image: unset !important;
  15147. }
  15148. .isNavOpen .chapter_upload_open {
  15149. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  15150. transform: rotate(90deg);
  15151. }
  15152. .isNavTask .chapter_upload_open {
  15153. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  15154. transform: rotate(-90deg);
  15155. }
  15156. .isNavTask.isNavOpen .chapter_upload_open {
  15157. transform: rotate(0deg);
  15158. }
  15159. .dragOverTop {
  15160. border-top: 2px solid #0061ff !important;
  15161. border-radius: 0 !important;
  15162. margin-top: 10px;
  15163. }
  15164. .dragOverBottom {
  15165. border-bottom: 2px solid #0061ff !important;
  15166. border-radius: 0 !important;
  15167. margin-top: 10px;
  15168. }
  15169. .dragOverTop2 {
  15170. border-top: 2px solid #0061ff !important;
  15171. border-radius: 0 !important;
  15172. }
  15173. .dragOverBottom2 {
  15174. border-bottom: 2px solid #0061ff !important;
  15175. border-radius: 0 !important;
  15176. }
  15177. .isNavTask {
  15178. /* background: #3681FC; */
  15179. background: #eef3fb;
  15180. }
  15181. .isNavTask>.chapter_upload_drag {
  15182. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  15183. }
  15184. .isNavTask .nt_taskName {
  15185. /* color: #fff !important; */
  15186. font-weight: bold !important;
  15187. color: #0061ff !important;
  15188. }
  15189. .isNavTask .nt_taskTitle {
  15190. /* color: #AECCFE !important; */
  15191. font-weight: bold !important;
  15192. color: #0061ff !important;
  15193. }
  15194. .navTask .nt_taskBox {
  15195. width: calc(100% - 40px);
  15196. padding: 0 0 0 5px;
  15197. box-sizing: border-box;
  15198. box-sizing: border-box;
  15199. display: flex;
  15200. flex-direction: row;
  15201. flex-wrap: nowrap;
  15202. align-items: baseline;
  15203. }
  15204. .navTask .nt_taskTitle {
  15205. /* color: #717C8D; */
  15206. color: #060e17;
  15207. line-height: 25px;
  15208. font-size: 16px;
  15209. /* min-width: 66px; */
  15210. }
  15211. .navTask .nt_taskName {
  15212. /* color: #fff; */
  15213. /* max-width: 130px; */
  15214. /* width: 100%; */
  15215. max-width: calc(100% - 66px);
  15216. font-size: 16px;
  15217. color: #060e17;
  15218. /* color: #0E1E33; */
  15219. }
  15220. .navTask .nt_taskName span {
  15221. width: 100%;
  15222. white-space: nowrap;
  15223. overflow: hidden;
  15224. text-overflow: ellipsis;
  15225. display: block;
  15226. }
  15227. .gjBox {
  15228. width: calc(100% - 25px);
  15229. padding: 0 0 0 0;
  15230. box-sizing: border-box;
  15231. border-left: 1px solid #cad1dc;
  15232. margin-left: 25px;
  15233. }
  15234. .gjBox>div {
  15235. display: flex;
  15236. align-items: center;
  15237. }
  15238. .gjBox>div::before {
  15239. content: "";
  15240. height: 1px;
  15241. width: 10px;
  15242. background: #cad1dc;
  15243. display: block;
  15244. margin-right: 5px;
  15245. }
  15246. .gjCss {
  15247. display: flex;
  15248. flex-direction: row;
  15249. flex-wrap: nowrap;
  15250. align-items: center;
  15251. padding: 15px 0;
  15252. box-sizing: border-box;
  15253. font-size: 14px;
  15254. cursor: pointer;
  15255. }
  15256. .isGjCss {
  15257. color: #0061ff;
  15258. }
  15259. .groupBox {}
  15260. .groupContent+.groupContent {
  15261. margin-top: 30px;
  15262. }
  15263. .groupTitle {
  15264. font-size: 24px;
  15265. color: rgb(80, 80, 80);
  15266. margin-bottom: 20px;
  15267. }
  15268. .groupName {
  15269. display: flex;
  15270. align-items: center;
  15271. }
  15272. .groupn {
  15273. font-size: 15px;
  15274. margin-right: 10px;
  15275. }
  15276. .groupName+.groupName {
  15277. margin-top: 15px;
  15278. }
  15279. .groupBtn {
  15280. margin-left: 10px;
  15281. }
  15282. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  15283. text-align: left;
  15284. }
  15285. .radioBox>div {
  15286. margin: 10px 0 0 10px;
  15287. }
  15288. .radioBox>>>.el-radio__input,
  15289. .radioBox>>>.el-checkbox__inner {
  15290. margin-left: 10px;
  15291. }
  15292. .radioBox>>>.el-radio__label,
  15293. .radioBox>>>.el-checkbox__label {
  15294. display: flex;
  15295. align-items: center;
  15296. }
  15297. .inImg {
  15298. width: 50px;
  15299. }
  15300. .inImg>img {
  15301. width: 100%;
  15302. height: 100%;
  15303. object-fit: cover;
  15304. }
  15305. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  15306. height: auto;
  15307. padding: 10px;
  15308. margin: 0;
  15309. }
  15310. .upCss>>>.el-upload-list {
  15311. width: 100%;
  15312. }
  15313. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  15314. width: 100%;
  15315. height: 120px;
  15316. object-fit: contain;
  15317. background: unset;
  15318. margin-left: 0;
  15319. }
  15320. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  15321. display: none;
  15322. }
  15323. .tcMember+.tcMember::before {
  15324. content: "、";
  15325. }
  15326. .xzUpImg {
  15327. width: 25px;
  15328. height: 25px;
  15329. min-width: 25px;
  15330. min-height: 25px;
  15331. cursor: pointer;
  15332. margin: 0 10px;
  15333. }
  15334. .xzUpImg>img {
  15335. width: 100%;
  15336. height: 100%;
  15337. }
  15338. .closeCss {
  15339. position: absolute;
  15340. top: 8px;
  15341. right: 8px;
  15342. cursor: pointer;
  15343. width: 20px;
  15344. height: 20px;
  15345. }
  15346. .closeCss>img {
  15347. width: 100%;
  15348. height: 100%;
  15349. }
  15350. .moveBtn {
  15351. display: flex;
  15352. flex-direction: row;
  15353. flex-wrap: nowrap;
  15354. align-items: center;
  15355. width: 55px;
  15356. }
  15357. .timuUpImg {
  15358. display: flex;
  15359. flex-direction: row;
  15360. align-items: center;
  15361. width: 100%;
  15362. margin-right: 10px;
  15363. }
  15364. .timuUpImg>div:nth-child(1) {
  15365. margin-right: 10px;
  15366. display: flex;
  15367. align-items: center;
  15368. width: 100%;
  15369. }
  15370. .timuImgBox {
  15371. margin: 10px 0;
  15372. display: flex;
  15373. flex-direction: column;
  15374. flex-wrap: wrap;
  15375. align-items: flex-start;
  15376. }
  15377. .timuImg {
  15378. width: 100px;
  15379. margin: 5px 0;
  15380. cursor: pointer;
  15381. position: relative;
  15382. }
  15383. .timuImg:hover .deleteWord {
  15384. display: block;
  15385. }
  15386. .deleteWord {
  15387. width: 25px;
  15388. height: 25px;
  15389. position: absolute;
  15390. right: -5px;
  15391. top: -5px;
  15392. cursor: pointer;
  15393. display: none;
  15394. }
  15395. .timuImg>img,
  15396. .deleteWord>img {
  15397. width: 100%;
  15398. height: 100%;
  15399. object-fit: cover;
  15400. }
  15401. .e_add_delete {
  15402. cursor: pointer;
  15403. margin-left: 10px;
  15404. }
  15405. .pType_box {
  15406. margin-top: 30px;
  15407. align-items: flex-end;
  15408. }
  15409. .noneBox {
  15410. height: 200px;
  15411. width: 100%;
  15412. display: flex;
  15413. align-items: center;
  15414. justify-content: center;
  15415. flex-direction: column;
  15416. /* margin-top: 150px; */
  15417. }
  15418. .noneBox>img {
  15419. width: 95px;
  15420. }
  15421. .noneBox>span {
  15422. margin-top: 10px;
  15423. color: #717c8d;
  15424. }
  15425. .rb_c_box {
  15426. width: 100%;
  15427. height: 100%;
  15428. display: flex;
  15429. /* padding: 20px; */
  15430. box-sizing: border-box;
  15431. justify-content: space-between;
  15432. }
  15433. .rb_c_box_left {
  15434. height: 100%;
  15435. background: #fff;
  15436. width: 270px;
  15437. min-width: 270px;
  15438. border-radius: 8px;
  15439. margin-right: 10px;
  15440. }
  15441. .rb_c_box_right {
  15442. height: 100%;
  15443. width: calc(100%);
  15444. overflow: hidden;
  15445. }
  15446. .rb_c_box_btn {
  15447. display: flex;
  15448. justify-content: flex-start;
  15449. height: 50px;
  15450. align-items: center;
  15451. }
  15452. .rb_c_box_right>.basic_box {
  15453. /* background: #fff; */
  15454. border-radius: 0;
  15455. height: calc(100% - 0px);
  15456. overflow: auto;
  15457. padding: 0;
  15458. }
  15459. .textarea_css {
  15460. display: block;
  15461. resize: none;
  15462. padding: 10px 15px;
  15463. line-height: 1.5;
  15464. box-sizing: border-box;
  15465. width: 100%;
  15466. font-size: 14px;
  15467. color: #606266;
  15468. background-color: #fff;
  15469. background-image: none;
  15470. border: 1px solid #dcdfe6;
  15471. border-radius: 4px;
  15472. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  15473. outline: none;
  15474. overflow: hidden;
  15475. height: 46px;
  15476. font-family: "Microsoft YaHei";
  15477. }
  15478. .textarea_css::-webkit-input-placeholder {
  15479. color: #c0c4cc;
  15480. }
  15481. .textarea_css:focus {
  15482. border-color: #409eff;
  15483. outline: 0;
  15484. }
  15485. .addEditor>>>.text {
  15486. height: auto;
  15487. min-height: 100px;
  15488. }
  15489. .addEditor>>>.w-e-text-container {
  15490. min-height: 100px;
  15491. }
  15492. .moveBtn2 {
  15493. flex-direction: column;
  15494. width: fit-content;
  15495. margin: 0 10px 0 10px;
  15496. }
  15497. .moveBtn2 .chapter_upload_down,
  15498. .moveBtn2 .chapter_upload_up {
  15499. width: 16px;
  15500. height: 16px;
  15501. }
  15502. .moveBtn2 .chapter_upload_up::after,
  15503. .moveBtn2 .chapter_upload_down::after {
  15504. width: 10px;
  15505. height: 10px;
  15506. }
  15507. .fullStyle>>>.el-dialog__body {
  15508. height: calc(100% - 125px) !important;
  15509. box-sizing: border-box;
  15510. }
  15511. .fullStyle1>>>.el-dialog__body {
  15512. height: auto !important;
  15513. }
  15514. .fullStyle>>>.el-dialog {
  15515. width: 100% !important;
  15516. max-width: 100% !important;
  15517. height: 100% !important;
  15518. margin: 0 !important;
  15519. }
  15520. .fullStyle {
  15521. width: 100% !important;
  15522. max-width: 100% !important;
  15523. height: 100% !important;
  15524. margin: 0 auto !important;
  15525. }
  15526. .wb_j_box_btn {
  15527. width: calc(100% - 30px);
  15528. display: flex;
  15529. height: 40px;
  15530. border: 1.5px solid #cad1dc;
  15531. border-radius: 4px;
  15532. box-sizing: border-box;
  15533. align-items: center;
  15534. font-size: 14px;
  15535. cursor: pointer;
  15536. overflow: hidden;
  15537. }
  15538. .wb_j_box_btn:hover {
  15539. border: 1.5px solid #0061ff;
  15540. }
  15541. .wb_j_box_title {
  15542. background: #f0f4fa;
  15543. height: 100%;
  15544. line-height: 40px;
  15545. width: 90px;
  15546. text-align: center;
  15547. color: #060e17;
  15548. border-right: 1.5px solid #cad1dc;
  15549. box-sizing: border-box;
  15550. }
  15551. .wb_j_box_btn_c {
  15552. width: calc(100% - 90px);
  15553. padding: 0 35px 0 10px;
  15554. box-sizing: border-box;
  15555. position: relative;
  15556. }
  15557. .wb_j_box_span {
  15558. width: 100%;
  15559. overflow: hidden;
  15560. white-space: nowrap;
  15561. text-overflow: ellipsis;
  15562. word-wrap: break-word;
  15563. color: #717c8d;
  15564. }
  15565. .wb_j_box_arrow {
  15566. content: "";
  15567. width: 14px;
  15568. height: 14px;
  15569. background: url(../../../assets/icon/new/u_arrow.png);
  15570. background-size: 100% 100%;
  15571. position: absolute;
  15572. right: 12px;
  15573. top: 50%;
  15574. transform: translateY(-50%);
  15575. }
  15576. .check_classBox {
  15577. height: 400px;
  15578. display: flex;
  15579. border-top: 1.5px solid #e7ebf1;
  15580. border-bottom: 1.5px solid #e7ebf1;
  15581. }
  15582. .check_class_right {
  15583. width: 130px;
  15584. border-right: 1px solid #e7ebf1;
  15585. display: flex;
  15586. align-items: center;
  15587. flex-direction: column;
  15588. height: 100%;
  15589. overflow: auto;
  15590. padding: 15px 0;
  15591. box-sizing: border-box;
  15592. }
  15593. .check_class {
  15594. width: 85%;
  15595. border-radius: 5px;
  15596. height: 30px;
  15597. line-height: 30px;
  15598. text-align: center;
  15599. padding: 0 10px;
  15600. box-sizing: border-box;
  15601. cursor: pointer;
  15602. white-space: nowrap;
  15603. overflow: hidden;
  15604. text-overflow: ellipsis;
  15605. }
  15606. .check_class.activeX {
  15607. background: #e0eafb;
  15608. color: #3681fc;
  15609. font-weight: 700;
  15610. }
  15611. .check_class+.check_class {
  15612. margin-top: 15px;
  15613. }
  15614. .check_class_left {
  15615. background: #fafafa;
  15616. width: calc(100% - 130px);
  15617. padding: 15px;
  15618. box-sizing: border-box;
  15619. }
  15620. .check_class_all_box {
  15621. display: flex;
  15622. margin-bottom: 10px;
  15623. }
  15624. .all_check {
  15625. display: flex;
  15626. align-items: center;
  15627. padding: 2px 0 0;
  15628. margin-left: 10px;
  15629. }
  15630. .all_check>>>.el-checkbox__label {
  15631. line-height: 18px;
  15632. }
  15633. .check_class_left_title {
  15634. font-size: 16px;
  15635. font-weight: 700;
  15636. }
  15637. .check_class_item {
  15638. display: flex;
  15639. flex-wrap: wrap;
  15640. height: calc(100% - 45px);
  15641. overflow: auto;
  15642. justify-content: flex-start;
  15643. align-items: flex-start;
  15644. align-content: flex-start;
  15645. }
  15646. .class_item:first-child {
  15647. /* margin: 0 15px 15px 67px; */
  15648. }
  15649. .class_item {
  15650. margin: 0 15px 15px 0;
  15651. }
  15652. .class_item:hover>>>.el-checkbox__label {
  15653. color: #409eff;
  15654. }
  15655. .class_item>>>.el-checkbox__label {
  15656. color: #0e1e33;
  15657. }
  15658. .class_item:hover>>>.el-checkbox__inner {
  15659. border-color: #409eff;
  15660. }
  15661. .class_item>>>.el-checkbox,
  15662. .class_item>>>.el-checkbox__input {
  15663. display: flex;
  15664. align-items: center;
  15665. }
  15666. .taskTitle {
  15667. font-size: 20px;
  15668. font-weight: bold;
  15669. margin-bottom: 35px;
  15670. }
  15671. .taskTitle:after {
  15672. content: "";
  15673. width: 100%;
  15674. display: block;
  15675. height: 1px;
  15676. background: #cad1dc;
  15677. position: absolute;
  15678. left: 0;
  15679. margin: 15px 0 0;
  15680. }
  15681. .eva_btn_box {
  15682. margin: 20px 0px 0 0;
  15683. display: flex;
  15684. flex-direction: row;
  15685. flex-wrap: nowrap;
  15686. align-items: center;
  15687. justify-content: space-between;
  15688. width: 100%;
  15689. }
  15690. .eva_btn_left_box {
  15691. display: flex;
  15692. flex-direction: row;
  15693. flex-wrap: nowrap;
  15694. align-items: center;
  15695. }
  15696. .addTypeChoose {
  15697. display: flex;
  15698. flex-direction: row;
  15699. flex-wrap: nowrap;
  15700. align-items: center;
  15701. margin: 15px 0;
  15702. }
  15703. .addTypeBox {
  15704. display: flex;
  15705. flex-direction: column;
  15706. flex-wrap: nowrap;
  15707. align-items: center;
  15708. }
  15709. .addTypeChoose {
  15710. display: flex;
  15711. flex-direction: row;
  15712. flex-wrap: nowrap;
  15713. align-items: center;
  15714. margin: 15px 0;
  15715. }
  15716. .buchong_box {
  15717. background: #E0EAFB66;
  15718. width: calc(100% - 20px);
  15719. min-height: 50px;
  15720. display: flex;
  15721. align-items: center;
  15722. justify-content: center;
  15723. margin: 0 auto;
  15724. }
  15725. .outline {
  15726. width: calc(100% - 40px);
  15727. margin: 0 auto;
  15728. }
  15729. .task_outline {
  15730. width: calc(100% - 40px);
  15731. margin: 0 auto;
  15732. }
  15733. .outline_box+.outline_box {
  15734. margin: 30px 0 0px;
  15735. }
  15736. .outline_task {
  15737. display: flex;
  15738. align-items: center;
  15739. margin-bottom: 10px;
  15740. }
  15741. .outline_task .title {
  15742. font-size: 18px;
  15743. font-weight: bold;
  15744. min-width: 80px;
  15745. }
  15746. .op_task_box,
  15747. .op_tool_box,
  15748. .outline_detail {
  15749. position: relative;
  15750. }
  15751. .op_task_box:hover .op_box,
  15752. .op_tool_box:hover .op_box,
  15753. .outline_detail:hover .op_box {
  15754. display: flex
  15755. }
  15756. .op_box {
  15757. position: absolute;
  15758. bottom: 10px;
  15759. display: none;
  15760. align-items: center;
  15761. justify-content: space-between;
  15762. width: calc(100% - 20px);
  15763. left: 50%;
  15764. transform: translateX(-50%);
  15765. }
  15766. .op_box .op_remark {
  15767. color: #8E8E8E;
  15768. font-size: 14px;
  15769. }
  15770. .rb_c_nav {
  15771. width: calc(100% - 20px);
  15772. margin: 15px auto 0;
  15773. font-size: 18px;
  15774. }
  15775. .rb_c_nav span {
  15776. cursor: pointer;
  15777. }
  15778. .rb_c_nav span+span {
  15779. margin-left: 10px;
  15780. }
  15781. .rb_c_nav span.active {
  15782. color: #0061FF
  15783. }
  15784. .text_panel >>> .text{
  15785. height: 400px;
  15786. }
  15787. </style>