addCourse.vue 420 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  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. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模版</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模版</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course_icon.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid #CAD1DC;background: #f6f6f6;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="justify-content: center;width: 200px;"></el-switch>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  107. <span>类型</span>
  108. <!-- 学科+ 主题+ 未来+ -->
  109. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  110. style="display: flex; align-items: center">
  111. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  112. <el-radio :label="item.name">{{
  113. item.name
  114. }}</el-radio>
  115. </div>
  116. </el-radio-group>
  117. </div>
  118. <div class="both">
  119. <div class="choose">
  120. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  121. <span v-if="CourseTypeJson[item.id].length > 0 &&
  122. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  123. ? pTypeCheck.indexOf(item.id) != -1
  124. : true)
  125. ">{{ item.name }}:</span>
  126. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  127. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  128. ? pTypeCheck.indexOf(item.id) != -1
  129. : true)
  130. ">
  131. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  132. item1.name }}</el-checkbox>
  133. </el-checkbox-group>
  134. <!-- <div
  135. v-else
  136. style="font-size: 14px; margin-left: -8px"
  137. >
  138. 暂无
  139. </div> -->
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="right_first">
  145. <!-- <div class="ai_box">
  146. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  147. </div> -->
  148. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  149. <div style="width: 100%;">
  150. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  151. <img src="../../assets/icon/addPoster.png" alt="" />
  152. <div>点击添加封面</div>
  153. </div>
  154. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  155. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  156. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  157. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  158. <i class="el-icon-plus"></i>
  159. </el-upload>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  167. <div class="whiteBg" style="border-radius: 0">
  168. <div class="c_info_title">课程权限设置</div>
  169. <div class="wb_j_box">
  170. <div class="wb_j_box_content">
  171. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  172. (dialogVisibleClass = true),
  173. (classSearch = ''),
  174. (gradeId = ''),
  175. getClass()
  176. ">添加班级</button>
  177. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  178. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  179. getClassC(tc) }}</span>
  180. </div> -->
  181. <div class="wb_j_box_btn" @click="
  182. (dialogVisibleClass = true),
  183. (classSearch = ''),
  184. (gradeId = ''),
  185. getClass()
  186. ">
  187. <div class="wb_j_box_title">授课班级</div>
  188. <div class="wb_j_box_btn_c">
  189. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top" v-if="checkboxList2.length" popper-class="text_tooltip2">
  190. <div class="wb_j_box_span">{{getListClassC(checkboxList2)}}</div>
  191. </el-tooltip>
  192. <div v-else class="wb_j_box_span">请选择授课班级</div>
  193. <div class="wb_j_box_arrow"></div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="wb_j_box_content">
  198. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  199. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  200. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  201. checkBoolean
  202. ? checkboxList3
  203. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  204. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  205. </div> -->
  206. <div class="wb_j_box_btn" @click="openMember">
  207. <div class="wb_j_box_title">协同人员</div>
  208. <div class="wb_j_box_btn_c">
  209. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top" v-if="checkboxList3.length" popper-class="text_tooltip2">
  210. <div class="wb_j_box_span">{{getListMan2(checkboxList3)}}</div>
  211. </el-tooltip>
  212. <div v-else class="wb_j_box_span">请选择协同人员</div>
  213. <div class="wb_j_box_arrow"></div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  220. <div class="c_info_title">课程简要描述</div>
  221. <div style="width: 95%; padding: 0 0px 0 20px">
  222. <div style="width: 55%">
  223. <textarea rows="6" class="binfo_input binfo_textarea" cols v-model="courseText"></textarea>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  228. <div class="c_info_title">目标管理</div>
  229. <div style="margin: 0 auto;padding:0 20px">
  230. <div style="
  231. width: 95%;
  232. min-height: 200px;
  233. border: 1px solid #CAD1DC;
  234. border-radius: 4px;
  235. position: relative;
  236. ">
  237. <div class="e_add_top">
  238. <div class="e_add_title">
  239. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  240. v-if="evalua">清除</button>
  241. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  242. <!-- <span>当前使用目标管理</span>
  243. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  244. <img
  245. src="../../assets/line.png"
  246. class="cru_line"
  247. style="
  248. width: 125px;
  249. height: 20px;
  250. bottom: -10px;
  251. left: 155px;
  252. "
  253. /> -->
  254. </div>
  255. <div style="
  256. display: flex;
  257. flex-direction: row;
  258. align-items: center;
  259. ">
  260. <!-- <el-button
  261. type="primary"
  262. size="small"
  263. @click="dialogVisiblemb = true"
  264. >添加目标管理</el-button
  265. >
  266. <el-button
  267. type="primary"
  268. size="small"
  269. @click="deleteEva()"
  270. >清除内容</el-button
  271. > -->
  272. <!-- <div class="e_add_delete" @click="deleteEva()">
  273. <img src="../../assets/icon/delete.png" alt="" />
  274. </div> -->
  275. </div>
  276. </div>
  277. <div v-if="evalua == ''">
  278. <div class="noneBox">
  279. <img src="../../assets/icon/new/eva_none.png" />
  280. <span>请添加目标管理</span>
  281. </div>
  282. </div>
  283. <div class="e_add_content" v-else>
  284. <div class="e_add_list_pbox">
  285. <div class="e_add_list_pbox_title">
  286. <span class="type_title">切换模式</span>
  287. <div class="type_content">
  288. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  289. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  290. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  291. </div>
  292. </div>
  293. <div class="e_add_list_pbox_content">
  294. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  295. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  296. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  297. v-if="typeMode == 3">
  298. </SeeBoard>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <div class="info_btnBox3">
  307. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  308. goTo(
  309. '/course?userid=' +
  310. userid +
  311. '&oid=' +
  312. oid +
  313. '&org=' +
  314. org +
  315. '&role=' +
  316. role
  317. )
  318. ">
  319. 返回课程
  320. </button>
  321. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  322. {{ steps == 4 ? "返回课程" : "上一步" }}
  323. </button>
  324. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  325. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  326. {{ steps == 3 ? "确认上传" : "下一步" }}
  327. </button>
  328. </div>
  329. </div>
  330. <div class="rightBox" v-if="this.steps == 2"
  331. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  332. <div class="basic_box"
  333. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  334. <!-- <div
  335. style="
  336. color: #b8b8b8;
  337. background: #fff;
  338. width: 26%;
  339. height: 40px;
  340. border-radius: 15px;
  341. padding-left: 20px;
  342. line-height: 40px;
  343. font-size: 17px;
  344. box-shadow: 0px 1px 2px 2px #e0e0e0;
  345. "
  346. >-->
  347. <div class="right_title" style="border: none; margin: 0; padding: 0">
  348. 请选择合适的课程模板
  349. </div>
  350. <div class="wordbox">
  351. <div class="wordTeacher" @click="checkTemplate2()">
  352. <div class="wordPic">
  353. <img src="../../assets/icon/new/template_none.png" alt />
  354. </div>
  355. <div style="
  356. margin-top: 10px;
  357. line-height: 19px;
  358. overflow: hidden;
  359. text-overflow: ellipsis;
  360. white-space: nowrap;
  361. padding: 0 20px;
  362. ">
  363. 空白模板
  364. </div>
  365. </div>
  366. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  367. <div class="wordPic">
  368. <img src="../../assets/icon/new/template.png" alt />
  369. </div>
  370. <div style="
  371. margin-top: 10px;
  372. line-height: 19px;
  373. overflow: hidden;
  374. text-overflow: ellipsis;
  375. white-space: nowrap;
  376. padding: 0 20px;
  377. ">
  378. {{ aa.title }}
  379. </div>
  380. </div>
  381. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  382. <div class="wordPic">
  383. <img src="../../assets/icon/new/template.png" alt />
  384. </div>
  385. <div style="
  386. margin-top: 10px;
  387. line-height: 19px;
  388. overflow: hidden;
  389. text-overflow: ellipsis;
  390. white-space: nowrap;
  391. padding: 0 20px;
  392. ">
  393. 简易模板
  394. </div>
  395. </div>
  396. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  397. <div class="wordPic">
  398. <img src="../../assets/icon/new/template.png" alt />
  399. </div>
  400. <div style="
  401. margin-top: 10px;
  402. line-height: 19px;
  403. overflow: hidden;
  404. text-overflow: ellipsis;
  405. white-space: nowrap;
  406. padding: 0 20px;
  407. ">
  408. 智能粘贴模式
  409. </div>
  410. </div>
  411. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  412. <div class="wordPic">
  413. <img src="../../assets/icon/wordMub.png" alt />
  414. </div>
  415. <div style="
  416. margin-top: 10px;
  417. line-height: 19px;
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. white-space: nowrap;
  421. padding: 0 20px;
  422. ">
  423. 未来小学课程设计
  424. </div>
  425. </div> -->
  426. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  427. <div class="wordPic">
  428. <img src="../../assets/icon/wordMub.png" alt />
  429. </div>
  430. <div style="
  431. margin-top: 10px;
  432. line-height: 19px;
  433. overflow: hidden;
  434. text-overflow: ellipsis;
  435. white-space: nowrap;
  436. padding: 0 20px;
  437. ">
  438. 我的课程
  439. </div>
  440. </div> -->
  441. </div>
  442. </div>
  443. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  444. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  445. goTo(
  446. '/course?userid=' +
  447. userid +
  448. '&oid=' +
  449. oid +
  450. '&org=' +
  451. org +
  452. '&role=' +
  453. role
  454. )
  455. ">
  456. 返回课程
  457. </button>
  458. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  459. {{ steps == 4 ? "返回课程" : "上一步" }}
  460. </button>
  461. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  462. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  463. {{ steps == 3 ? "确认上传" : "下一步" }}
  464. </button>
  465. </div>
  466. </div>
  467. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  468. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  469. <div class="rb_c_box">
  470. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  471. <div class="stepsBottom">
  472. <!-- <div class="navTop">辅助导航</div> -->
  473. <div class="navBottom">
  474. <div class="navTask" v-if="unitJson[unitIndex].dyName">
  475. <div class="nt_taskBox" style="width: 100%;">
  476. <div class="nt_taskTitle"
  477. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  478. unitIndex + 1 }}</div>
  479. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  480. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  481. <span>{{ unitJson[unitIndex].dyName }}</span>
  482. </el-tooltip>
  483. </div>
  484. </div>
  485. </div>
  486. <div class="navTask" :class="{
  487. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  488. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  489. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  490. <div class="nt_taskBox">
  491. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  492. <div class="nt_taskName">
  493. <el-tooltip effect="light" :content="t.task" placement="top">
  494. <span>{{ t.task }}</span>
  495. </el-tooltip>
  496. </div>
  497. </div>
  498. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  499. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  500. @click.stop="taskMove(1, tIndex)">
  501. </div>
  502. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  503. @click.stop="taskMove(2, tIndex)"></div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. <div class="rb_c_box_right">
  510. <!-- <div class="rb_c_box_btn">
  511. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  512. </div> -->
  513. <div class="basic_box" ref="unitBox">
  514. <div style="
  515. display: flex;
  516. flex-direction: row;
  517. align-items: center;
  518. position: sticky;
  519. top: 0;
  520. z-index: 99;
  521. width: 100%;
  522. padding: 0 20px 0 20px;
  523. box-sizing: border-box;
  524. background: #fff
  525. ">
  526. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  527. <div class="cru_selectBox"
  528. :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
  529. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  530. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  531. <!-- item.dyName ? item.dyName : -->
  532. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  533. unitJson[unitJson.length - 1].easy == 6
  534. ">{{
  535. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  536. }}</span>
  537. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  538. </div>
  539. <div class="cru_line" :style="{
  540. left: offsetLetfPx + 'px',
  541. }"></div>
  542. </div>
  543. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  544. !(unitJson[unitJson.length - 1].easy == 6)
  545. ">
  546. <img src="../../assets/icon/new/addStage.png" alt />
  547. </div>
  548. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  549. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  550. style="margin: 0 0 0 auto;">阶段顺序</button>
  551. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  552. style="margin: 0 0 0 auto;">智能粘贴</button>
  553. </div>
  554. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  555. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  556. <div>
  557. <div class="chapter_contentbox">
  558. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  559. <div class="cc_input">
  560. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  561. v-model="unitJson[unitIndex].dyName" />
  562. </div>
  563. <div class="remove" v-if="unitJson.length > 1 &&
  564. !(unitJson[unitJson.length - 1].easy == 4) &&
  565. !(unitJson[unitJson.length - 1].easy == 6)
  566. " @click="deleteUnit(unitIndex)"></div>
  567. </div>
  568. </div>
  569. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  570. margin: 50px 0px 10px;
  571. font-size: 1.5em;
  572. font-weight: 700;
  573. color: #0f7eff;
  574. ">
  575. 添加任务
  576. </div> -->
  577. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  578. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  579. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  580. <div style="background: #fff;border-radius: 5px;">
  581. <!-- padding: 20px; -->
  582. <div v-if="unitJson[unitIndex].easy != 1">
  583. <div :style="{
  584. marginBottom:
  585. unitJson[unitIndex].easy == 3 ||
  586. (unitJson[unitIndex].easy == 5 &&
  587. itemTask.taskType == 1)
  588. ? '75px'
  589. : '0',
  590. }">
  591. <div style="
  592. display: flex;
  593. margin: 0px 0 20px;
  594. flex-direction: row;
  595. justify-content: flex-start;
  596. align-items: center;
  597. ">
  598. <div class="lineTitle">任务概述</div>
  599. </div>
  600. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  601. flex-direction: row;
  602. justify-content: flex-start;
  603. align-items: center;
  604. margin:0;
  605. ">
  606. <!-- <div class="cc_title">
  607. 任务{{ itemTaskIndex + 1 }}
  608. </div> -->
  609. <div class="cc_input">
  610. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  611. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  612. itemTaskIndex
  613. ].task
  614. " />
  615. </div>
  616. <div class="remove" v-if="item.taskJson.length > 1 &&
  617. (!unitJson[unitIndex].easy ||
  618. unitJson[unitIndex].easy == 6)
  619. " @click="deleteTask(itemTaskIndex)"></div>
  620. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
  621. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  622. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  623. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  624. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  625. </div>
  626. </div>
  627. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  628. display: flex;
  629. margin: 20px 0;
  630. flex-direction: row;
  631. justify-content: flex-start;
  632. align-items: center;
  633. ">
  634. <div class="lineTitle">任务描述</div>
  635. </div> -->
  636. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="margin-top: 20px;">
  637. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  638. itemTaskIndex
  639. ].taskDetail
  640. " @change="change"></editor-bar>
  641. <!-- <textarea
  642. rows="6"
  643. class="binfo_input"
  644. placeholder="请输入任务描述"
  645. cols
  646. style="width: 70.5% !important; height: 120px"
  647. v-model="
  648. unitJson[unitIndex].chapterInfo[0].taskJson[
  649. itemTaskIndex
  650. ].taskDetail
  651. "
  652. ></textarea>-->
  653. </div>
  654. </div>
  655. </div>
  656. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  657. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  658. ">
  659. <div style="
  660. display: flex;
  661. flex-direction: row;
  662. justify-content: space-between;
  663. align-items: center;
  664. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0' : '20px 0 10px' }">
  665. <div class="lineTitle">学习内容</div>
  666. <div v-if="!itemTask.isFoldchapter" class="show_taskD show" @click="foldC(itemTaskIndex)"><img
  667. src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  668. <div v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  669. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  670. <!-- <div class="line"></div> -->
  671. </div>
  672. <div v-if="!itemTask.isFoldchapter">
  673. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  674. itemTask.chapterData.length == 0
  675. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  676. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  677. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  678. @click="
  679. getChapterData(
  680. $event,
  681. unitIndex,
  682. index,
  683. index1,
  684. item1.type
  685. )
  686. ">
  687. <div class="chapter_upload_o" style="
  688. position: relative;
  689. display: flex;
  690. align-items: center;
  691. ">
  692. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  693. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  694. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  695. </div>
  696. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  697. </div>
  698. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  699. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  700. </div>
  701. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  702. </div>
  703. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  704. </div>
  705. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  706. </div>
  707. </div>
  708. <div class="chapter_upload_n">
  709. <input readonly="true" v-if="item1.type == 2 ||
  710. item1.type == 3 ||
  711. item1.type == 12 ||
  712. item1.type == 13 ||
  713. item1.type == 7
  714. " :placeholder="item1.name" @click="
  715. updataVideoT(
  716. $event,
  717. unitIndex,
  718. itemTaskIndex,
  719. index1
  720. )
  721. " style="
  722. border: none;
  723. outline: none;
  724. width: 80%;
  725. minwidth: 215px;
  726. z-index: 99;
  727. font-size: 14px;
  728. white-space: nowrap;
  729. overflow: hidden;
  730. text-overflow: ellipsis;
  731. " />
  732. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  733. border: none;
  734. outline: none;
  735. width: 80%;
  736. white-space: nowrap;
  737. overflow: hidden;
  738. text-overflow: ellipsis;
  739. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  740. <input :placeholder="item1.title ? item1.title : '链接'
  741. " v-if="item1.type == 8" style="
  742. border: none;
  743. outline: none;
  744. width: 80%;
  745. white-space: nowrap;
  746. overflow: hidden;
  747. text-overflow: ellipsis;
  748. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  749. <input :placeholder="item1.title ? item1.title : '链接'
  750. " v-if="item1.type == 14" style="
  751. border: none;
  752. outline: none;
  753. width: 80%;
  754. white-space: nowrap;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  758. </div>
  759. <div class="chapter_upload_ic">
  760. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  761. </div>
  762. <div class="chapter_upload_ud" style="z-index: 99">
  763. <div class="chapter_upload_up" @click="
  764. upCd(
  765. $event,
  766. unitIndex,
  767. index,
  768. itemTaskIndex,
  769. index1
  770. )
  771. "></div>
  772. <div class="chapter_upload_down" @click="
  773. downCd(
  774. $event,
  775. unitIndex,
  776. index,
  777. itemTaskIndex,
  778. index1
  779. )
  780. "></div>
  781. </div>
  782. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  783. item1.type == 3 ||
  784. item1.type == 12 ||
  785. item1.type == 13 ||
  786. item1.type == 7
  787. " @click.stop="
  788. updataVideoT(
  789. $event,
  790. unitIndex,
  791. itemTaskIndex,
  792. index1
  793. )
  794. ">
  795. <div></div>
  796. </div>
  797. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  798. @click="selectAttText(itemTaskIndex, index1)">
  799. <div></div>
  800. </div>
  801. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  802. @click="selectLine(itemTaskIndex, index1)">
  803. <div></div>
  804. </div>
  805. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  806. @click="openUpdateSource(itemTaskIndex, index1)">
  807. <div></div>
  808. </div>
  809. <div class="chapter_upload_ic_r" @click.stop="
  810. deleteChapterData(
  811. $event,
  812. unitIndex,
  813. index,
  814. index1,
  815. itemTaskIndex
  816. )
  817. ">
  818. <div></div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="add_info_box" v-if="!itemTask.isFoldchapter">
  826. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  827. 添加文件
  828. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  829. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  830. " />
  831. </button>
  832. <!-- <button class="info_btn" @click="addImg($event)">
  833. 添加视频
  834. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  835. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  836. " />
  837. </button>
  838. <button class="info_btn" @click="addImg($event)">
  839. 添加文档
  840. <input type="file"
  841. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  842. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  843. " />
  844. </button> -->
  845. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  846. 添加图文
  847. </button>
  848. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  849. 添加链接
  850. </button>
  851. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  852. 嵌入代码
  853. </button>
  854. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  855. 添加资源
  856. </button>
  857. <!-- <button class="info_btn" @click="addImg($event)">
  858. 其他附件
  859. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  860. " />
  861. </button> -->
  862. </div>
  863. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  864. itemTaskIndex
  865. ].proVisible
  866. " class="mask">
  867. <div class="progressBox">
  868. <!-- <div id="closePro" class="closeCss">
  869. <img src="../../../assets/icon/close.png" alt />
  870. </div> -->
  871. <div class="lbox">
  872. <img src="../../assets/loading.gif" />上传中,请稍后
  873. </div>
  874. <div style="margin-bottom: 10px">
  875. <span>{{
  876. unitJson[unitIndex].chapterInfo[0].taskJson[
  877. itemTaskIndex
  878. ].isFinishSize
  879. }}M</span>
  880. /
  881. <span>{{
  882. unitJson[unitIndex].chapterInfo[0].taskJson[
  883. itemTaskIndex
  884. ].isAllSize
  885. }}M</span>
  886. </div>
  887. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  888. itemTaskIndex
  889. ].progress
  890. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  891. itemTaskIndex
  892. ].progress
  893. : 0
  894. " style="width: 80%"></el-progress>
  895. </div>
  896. </div>
  897. </div>
  898. <div v-if="unitJson[unitIndex].easy == 1 ||
  899. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  900. ">
  901. <div>
  902. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  903. itemTask.chapterData.length == 0
  904. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  905. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  906. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  907. @click="
  908. getChapterData(
  909. $event,
  910. unitIndex,
  911. index,
  912. index1,
  913. item1.type
  914. )
  915. ">
  916. <div class="chapter_upload_t" style="width: 100%"></div>
  917. <div class="chapter_upload_o" style="
  918. position: relative;
  919. display: flex;
  920. align-items: center;
  921. ">
  922. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  923. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  924. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  925. </div>
  926. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  927. </div>
  928. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  929. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  930. </div>
  931. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  932. </div>
  933. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  934. </div>
  935. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  936. </div>
  937. </div>
  938. <div class="chapter_upload_n">
  939. <span style="
  940. font-size: 14px;
  941. color: rgb(109, 109, 109);
  942. height: 14px;
  943. line-height: 14px;
  944. " v-if="item1.type == 2 ||
  945. item1.type == 3 ||
  946. item1.type == 7
  947. ">{{ item1.text }}-</span>
  948. <input readonly="true" v-if="item1.type == 2 ||
  949. item1.type == 3 ||
  950. item1.type == 7
  951. " :placeholder="item1.name" @click="
  952. updataVideoT(
  953. $event,
  954. unitIndex,
  955. itemTaskIndex,
  956. index1
  957. )
  958. " style="
  959. border: none;
  960. outline: none;
  961. width: 80%;
  962. minwidth: 215px;
  963. z-index: 99;
  964. font-size: 14px;
  965. white-space: nowrap;
  966. overflow: hidden;
  967. text-overflow: ellipsis;
  968. " />
  969. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  970. border: none;
  971. outline: none;
  972. width: 80%;
  973. white-space: nowrap;
  974. overflow: hidden;
  975. text-overflow: ellipsis;
  976. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  977. <input :placeholder="item1.title ? item1.title : '链接'
  978. " v-if="item1.type == 8 || item1.type == 14" style="
  979. border: none;
  980. outline: none;
  981. width: 80%;
  982. white-space: nowrap;
  983. overflow: hidden;
  984. text-overflow: ellipsis;
  985. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  986. </div>
  987. <div class="chapter_upload_ic">
  988. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  989. </div>
  990. <div class="chapter_upload_ud" style="z-index: 99">
  991. <div class="chapter_upload_up" @click="
  992. upCd(
  993. $event,
  994. unitIndex,
  995. index,
  996. itemTaskIndex,
  997. index1
  998. )
  999. "></div>
  1000. <div class="chapter_upload_down" @click="
  1001. downCd(
  1002. $event,
  1003. unitIndex,
  1004. index,
  1005. itemTaskIndex,
  1006. index1
  1007. )
  1008. "></div>
  1009. </div>
  1010. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1011. item1.type == 3 ||
  1012. item1.type == 12 ||
  1013. item1.type == 13 ||
  1014. item1.type == 7
  1015. " @click.stop="
  1016. updataVideoT(
  1017. $event,
  1018. unitIndex,
  1019. itemTaskIndex,
  1020. index1
  1021. )
  1022. ">
  1023. <div></div>
  1024. </div>
  1025. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1026. @click="selectAttText(itemTaskIndex, index1)">
  1027. <div></div>
  1028. </div>
  1029. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1030. @click="selectLine(itemTaskIndex, index1)">
  1031. <div></div>
  1032. </div>
  1033. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1034. @click="openUpdateSource(itemTaskIndex, index1)">
  1035. <div></div>
  1036. </div>
  1037. <div class="chapter_upload_ic_r" @click.stop="
  1038. deleteChapterData(
  1039. $event,
  1040. unitIndex,
  1041. index,
  1042. index1,
  1043. itemTaskIndex
  1044. )
  1045. ">
  1046. <div></div>
  1047. </div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <div class="add_info_box" style="margin: 10px 0 0">
  1054. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1055. <span style="color: red">*</span>
  1056. 教学设计
  1057. <input type="file"
  1058. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1059. style="display: none" v-if="inputShow" @change="
  1060. beforeUpload3(
  1061. $event,
  1062. unitIndex,
  1063. 3,
  1064. itemTaskIndex,
  1065. '教学设计'
  1066. )
  1067. " />
  1068. </button>
  1069. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1070. <span style="color: red">*</span>
  1071. 教学课件
  1072. <input type="file"
  1073. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1074. style="display: none" v-if="inputShow" @change="
  1075. beforeUpload3(
  1076. $event,
  1077. unitIndex,
  1078. 3,
  1079. itemTaskIndex,
  1080. '教学课件'
  1081. )
  1082. " />
  1083. </button>
  1084. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1085. 教学视频
  1086. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1087. style="display: none" v-if="inputShow" @change="
  1088. beforeUpload3(
  1089. $event,
  1090. unitIndex,
  1091. 2,
  1092. itemTaskIndex,
  1093. '教学视频'
  1094. )
  1095. " />
  1096. </button>
  1097. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1098. 教学音频
  1099. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1100. beforeUpload3(
  1101. $event,
  1102. unitIndex,
  1103. 2,
  1104. itemTaskIndex,
  1105. '教学音频'
  1106. )
  1107. " />
  1108. </button>
  1109. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1110. 学习单
  1111. <input type="file"
  1112. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1113. style="display: none" v-if="inputShow" @change="
  1114. beforeUpload3(
  1115. $event,
  1116. unitIndex,
  1117. 3,
  1118. itemTaskIndex,
  1119. '学习单'
  1120. )
  1121. " />
  1122. </button>
  1123. </div>
  1124. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1125. itemTaskIndex
  1126. ].proVisible
  1127. " class="mask">
  1128. <div class="progressBox">
  1129. <!-- <div id="closePro" class="closeCss">
  1130. <img src="../../../assets/icon/close.png" alt />
  1131. </div> -->
  1132. <div class="lbox">
  1133. <img src="../../assets/loading.gif" />上传中,请稍后
  1134. </div>
  1135. <div style="margin-bottom: 10px">
  1136. <span>{{
  1137. unitJson[unitIndex].chapterInfo[0].taskJson[
  1138. itemTaskIndex
  1139. ].isFinishSize
  1140. }}M</span>
  1141. /
  1142. <span>{{
  1143. unitJson[unitIndex].chapterInfo[0].taskJson[
  1144. itemTaskIndex
  1145. ].isAllSize
  1146. }}M</span>
  1147. </div>
  1148. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1149. itemTaskIndex
  1150. ].progress
  1151. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1152. itemTaskIndex
  1153. ].progress
  1154. : 0
  1155. " style="width: 80%"></el-progress>
  1156. </div>
  1157. </div>
  1158. </div>
  1159. </div>
  1160. <!-- padding: 20px; -->
  1161. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1162. <div v-if="unitJson[unitIndex].easy != 3 &&
  1163. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1164. " style="
  1165. flex-direction: row;
  1166. justify-content: flex-start;
  1167. align-items: center;
  1168. ">
  1169. <div style="
  1170. display: flex;
  1171. flex-direction: row;
  1172. align-items: center;
  1173. margin: 5px 0 20px;
  1174. ">
  1175. <div class="lineTitle">
  1176. {{
  1177. !unitJson[unitIndex].easy ||
  1178. unitJson[unitIndex].easy == 6 ||
  1179. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1180. ? "练习内容"
  1181. : "评价内容"
  1182. }}
  1183. </div>
  1184. <!-- <div class="line" style="width: 90%"></div> -->
  1185. </div>
  1186. </div>
  1187. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1188. " class="toolChoose">
  1189. <div class="tools">
  1190. <div class="leftTools" style="
  1191. width: 100%;
  1192. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1193. <div style="
  1194. display: flex;
  1195. flex-direction: row;
  1196. align-items: baseline;
  1197. flex-wrap: nowrap;
  1198. justify-content: flex-start;
  1199. position: relative;
  1200. ">
  1201. <div style="margin-right: 20px; font-weight: bold">
  1202. 步骤 {{ toolIndex + 1 }} :
  1203. </div>
  1204. <div class="chooseWho">
  1205. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1206. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  1207. 互动类
  1208. </div>
  1209. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1210. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()">
  1211. 思维类
  1212. </div>
  1213. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1214. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()">
  1215. 协作类
  1216. </div>
  1217. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1218. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()">
  1219. 测评类
  1220. </div>
  1221. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1222. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()">
  1223. 评价类
  1224. </div>
  1225. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1226. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()">
  1227. 编程类
  1228. </div>
  1229. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1230. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  1231. 学科类
  1232. </div>
  1233. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1234. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1235. 其他
  1236. </div> -->
  1237. </div>
  1238. <div v-if="itemTool.isFold3" class="show_toolD show"
  1239. @click="fold3(itemTaskIndex, toolIndex)"
  1240. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1241. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1242. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1243. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  1244. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  1245. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1246. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  1247. </div>
  1248. <div style="min-height: 163px" v-show="itemTool.isFold3">
  1249. <div class="toolSort" v-if="itemTool.toolType == 0">
  1250. <!-- <div class="tool">
  1251. <div
  1252. class="whiteBIcon"
  1253. @click="addTools(8, itemTaskIndex, toolIndex)"
  1254. >
  1255. <img src="../../assets/icon/secondToolList/library.png" alt />
  1256. <div style="margin: 5px 0">素材库</div>
  1257. </div>
  1258. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1259. <img
  1260. src="../../assets/icon/checkNo.png"
  1261. alt
  1262. v-if="itemTool.tool.indexOf(8) == -1"
  1263. />
  1264. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1265. alt /><span>已选择</span></div>
  1266. </div>
  1267. </div>-->
  1268. <!-- <div class="tool">
  1269. <div
  1270. class="whiteBIcon"
  1271. @click="addTools(17, itemTaskIndex, toolIndex)"
  1272. >
  1273. <img
  1274. src="../../assets/icon/secondToolList/library.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">学习资料</div>
  1278. </div>
  1279. <div
  1280. class="check"
  1281. @click="addTools(17, itemTaskIndex, toolIndex)"
  1282. >
  1283. <img
  1284. src="../../assets/icon/checkNo.png"
  1285. alt
  1286. v-if="itemTool.tool.indexOf(17) == -1"
  1287. />
  1288. <img
  1289. src="../../assets/icon/checkedIs.png"
  1290. alt
  1291. v-else
  1292. />
  1293. </div>10
  1294. </div> -->
  1295. <div class="tool">
  1296. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1297. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1298. <div style="margin: 5px 0">倒计时</div>
  1299. </div>
  1300. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1301. <img src="../../assets/icon/checkNo.png" alt
  1302. v-if="itemTool.tool.indexOf(10) == -1" />
  1303. <div class="checkDiv" v-else>
  1304. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. <div class="tool">
  1309. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  1310. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1311. <div style="margin: 5px 0">挑人</div>
  1312. </div>
  1313. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1314. <img src="../../assets/icon/checkNo.png" alt
  1315. v-if="itemTool.tool.indexOf(65) == -1" />
  1316. <div class="checkDiv" v-else>
  1317. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1318. </div>
  1319. </div>
  1320. </div>
  1321. <!-- <div class="tool">
  1322. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1323. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1324. <div style="margin: 5px 0">学生分组</div>
  1325. </div>
  1326. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1327. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1328. <div class="checkDiv" v-else>
  1329. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1330. </div>
  1331. </div>
  1332. </div> -->
  1333. <!-- <div class="tool">
  1334. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1335. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1336. <div style="margin: 5px 0">交互视频</div>
  1337. </div>
  1338. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1339. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1340. <div class="checkDiv" v-else>
  1341. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1342. </div>
  1343. </div>
  1344. </div> -->
  1345. </div>
  1346. <div class="toolSort" v-if="itemTool.toolType == 1">
  1347. <div class="tool">
  1348. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1349. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1350. <div style="margin: 5px 0">思维网格</div>
  1351. </div>
  1352. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1353. <img src="../../assets/icon/checkNo.png" alt
  1354. v-if="itemTool.tool.indexOf(7) == -1" />
  1355. <div class="checkDiv" v-else>
  1356. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1357. </div>
  1358. </div>
  1359. </div>
  1360. <div class="tool">
  1361. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1362. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1363. <div style="margin: 5px 0">电子白板</div>
  1364. </div>
  1365. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1366. <img src="../../assets/icon/checkNo.png" alt
  1367. v-if="itemTool.tool.indexOf(1) == -1" />
  1368. <div class="checkDiv" v-else>
  1369. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <!-- <div class="tool">
  1374. <div
  1375. class="whiteBIcon"
  1376. @click="addTools(2, itemTaskIndex, toolIndex)"
  1377. >
  1378. <img
  1379. src="../../assets/icon/secondToolList/note.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">便签</div>
  1383. </div>
  1384. <div
  1385. class="check"
  1386. @click="addTools(2, itemTaskIndex, toolIndex)"
  1387. >
  1388. <img
  1389. src="../../assets/icon/checkNo.png"
  1390. alt
  1391. v-if="itemTool.tool.indexOf(2) == -1"
  1392. />
  1393. <div class="checkDiv" v-else>
  1394. <img
  1395. src="../../assets/icon/checkedIs.png"
  1396. alt
  1397. /><span>已选择</span>
  1398. </div>
  1399. </div>
  1400. </div> -->
  1401. <!-- <div class="tool">
  1402. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1403. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1404. <div style="margin: 5px 0">协同文档</div>
  1405. </div>
  1406. <div
  1407. class="check"
  1408. @click="addTools(6, itemTaskIndex, toolIndex)"
  1409. >
  1410. <img
  1411. src="../../assets/icon/checkNo.png"
  1412. alt
  1413. v-if="itemTool.tool.indexOf(6) == -1"
  1414. />
  1415. <div class="checkDiv" v-else>
  1416. <img
  1417. src="../../assets/icon/checkedIs.png"
  1418. alt
  1419. /><span>已选择</span>
  1420. </div>
  1421. </div>
  1422. </div> -->
  1423. <div class="tool">
  1424. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1425. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1426. <div style="margin: 5px 0">文档</div>
  1427. </div>
  1428. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1429. <img src="../../assets/icon/checkNo.png" alt
  1430. v-if="itemTool.tool.indexOf(52) == -1" />
  1431. <div class="checkDiv" v-else>
  1432. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. <div class="tool">
  1437. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1438. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1439. <div style="margin: 5px 0">思维导图</div>
  1440. </div>
  1441. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1442. <img src="../../assets/icon/checkNo.png" alt
  1443. v-if="itemTool.tool.indexOf(3) == -1" />
  1444. <div class="checkDiv" v-else>
  1445. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1446. </div>
  1447. </div>
  1448. </div>
  1449. <div class="tool">
  1450. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1451. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1452. <div style="margin: 5px 0">表格</div>
  1453. </div>
  1454. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1455. <img src="../../assets/icon/checkNo.png" alt
  1456. v-if="itemTool.tool.indexOf(48) == -1" />
  1457. <div class="checkDiv" v-else>
  1458. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1459. </div>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. <div class="toolSort" v-if="itemTool.toolType == 6">
  1464. <div class="tool">
  1465. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1466. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1467. <div style="margin: 5px 0">学生分组</div>
  1468. </div>
  1469. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1470. <img src="../../assets/icon/checkNo.png" alt
  1471. v-if="itemTool.tool.indexOf(49) == -1" />
  1472. <div class="checkDiv" v-else>
  1473. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="toolSort" v-if="itemTool.toolType == 2">
  1479. <!-- <div class="tool">
  1480. <div
  1481. class="whiteBIcon"
  1482. @click="addTools(5, itemTaskIndex, toolIndex)"
  1483. >
  1484. <img
  1485. src="../../assets/icon/thirdToolList/score.png"
  1486. alt
  1487. />
  1488. <div style="margin: 5px 0">量规评分</div>
  1489. </div>
  1490. <div
  1491. class="check"
  1492. @click="addTools(5, itemTaskIndex, toolIndex)"
  1493. >
  1494. <img
  1495. src="../../assets/icon/checkNo.png"
  1496. alt
  1497. v-if="itemTool.tool.indexOf(5) == -1"
  1498. />
  1499. <img
  1500. src="../../assets/icon/checkedIs.png"
  1501. alt
  1502. v-else
  1503. />
  1504. </div>
  1505. </div>-->
  1506. <div class="tool">
  1507. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1508. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1509. <div style="margin: 5px 0">问卷调查</div>
  1510. </div>
  1511. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1512. <img src="../../assets/icon/checkNo.png" alt
  1513. v-if="itemTool.tool.indexOf(4) == -1" />
  1514. <div class="checkDiv" v-else>
  1515. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1516. </div>
  1517. </div>
  1518. </div>
  1519. <div class="tool">
  1520. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1521. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1522. <div style="margin: 5px 0">选择题</div>
  1523. </div>
  1524. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1525. <img src="../../assets/icon/checkNo.png" alt
  1526. v-if="itemTool.tool.indexOf(45) == -1" />
  1527. <div class="checkDiv" v-else>
  1528. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1529. </div>
  1530. </div>
  1531. </div>
  1532. <div class="tool">
  1533. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1534. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1535. <div style="margin: 5px 0">问答</div>
  1536. </div>
  1537. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1538. <img src="../../assets/icon/checkNo.png" alt
  1539. v-if="itemTool.tool.indexOf(15) == -1" />
  1540. <div class="checkDiv" v-else>
  1541. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. <div class="tool">
  1546. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1547. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1548. <div style="margin: 5px 0">作业提交</div>
  1549. </div>
  1550. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1551. <img src="../../assets/icon/checkNo.png" alt
  1552. v-if="itemTool.tool.indexOf(16) == -1" />
  1553. <div class="checkDiv" v-else>
  1554. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div class="tool">
  1559. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1560. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1561. <div style="margin: 5px 0">批量上传</div>
  1562. </div>
  1563. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1564. <img src="../../assets/icon/checkNo.png" alt
  1565. v-if="itemTool.tool.indexOf(50) == -1" />
  1566. <div class="checkDiv" v-else>
  1567. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <!-- <div class="tool">
  1572. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1573. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1574. <div style="margin: 5px 0">个人评价</div>
  1575. </div>
  1576. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1577. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1578. <div class="checkDiv" v-else>
  1579. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1580. </div>
  1581. </div>
  1582. </div> -->
  1583. <div class="tool">
  1584. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1585. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1586. <div style="margin: 5px 0">选择匹配</div>
  1587. </div>
  1588. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1589. <img src="../../assets/icon/checkNo.png" alt
  1590. v-if="itemTool.tool.indexOf(41) == -1" />
  1591. <div class="checkDiv" v-else>
  1592. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1593. </div>
  1594. </div>
  1595. </div>
  1596. <div class="tool">
  1597. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1598. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1599. <div style="margin: 5px 0">排序</div>
  1600. </div>
  1601. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1602. <img src="../../assets/icon/checkNo.png" alt
  1603. v-if="itemTool.tool.indexOf(47) == -1" />
  1604. <div class="checkDiv" v-else>
  1605. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1606. </div>
  1607. </div>
  1608. </div>
  1609. <!-- <div class="tool">
  1610. <div
  1611. class="whiteBIcon"
  1612. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1613. >
  1614. <img
  1615. src="../../assets/icon/thirdToolList/mp3.png"
  1616. alt
  1617. />
  1618. <div style="margin: 5px 0">上传音频</div>
  1619. </div>
  1620. <div
  1621. class="check"
  1622. @click="addTools(42, itemTaskIndex, toolIndex)"
  1623. >
  1624. <img
  1625. src="../../assets/icon/checkNo.png"
  1626. alt
  1627. v-if="itemTool.tool.indexOf(42) == -1"
  1628. />
  1629. <img
  1630. src="../../assets/icon/checkedIs.png"
  1631. alt
  1632. v-else
  1633. />
  1634. </div>
  1635. </div> -->
  1636. </div>
  1637. <div class="toolSort" v-if="itemTool.toolType == 3">
  1638. <div class="tool">
  1639. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1640. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1641. <div style="margin: 5px 0">训练平台</div>
  1642. </div>
  1643. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1644. <img src="../../assets/icon/checkNo.png" alt
  1645. v-if="itemTool.tool.indexOf(18) == -1" />
  1646. <div class="checkDiv" v-else>
  1647. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. <div class="tool">
  1652. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1653. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1654. <div style="margin: 5px 0">AIoT Blockly</div>
  1655. </div>
  1656. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1657. <img src="../../assets/icon/checkNo.png" alt
  1658. v-if="itemTool.tool.indexOf(21) == -1" />
  1659. <div class="checkDiv" v-else>
  1660. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. <!-- <div class="tool">
  1665. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1666. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1667. <div style="margin: 5px 0">AI体验</div>
  1668. </div>
  1669. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1670. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1671. <div class="checkDiv" v-else>
  1672. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1673. </div>
  1674. </div>
  1675. </div> -->
  1676. <div class="tool">
  1677. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1678. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1679. <div style="margin: 5px 0">AI Python</div>
  1680. </div>
  1681. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1682. <img src="../../assets/icon/checkNo.png" alt
  1683. v-if="itemTool.tool.indexOf(23) == -1" />
  1684. <div class="checkDiv" v-else>
  1685. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1686. </div>
  1687. </div>
  1688. </div>
  1689. <div class="tool">
  1690. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1691. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1692. <div style="margin: 5px 0">AI Blockly</div>
  1693. </div>
  1694. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1695. <img src="../../assets/icon/checkNo.png" alt
  1696. v-if="itemTool.tool.indexOf(24) == -1" />
  1697. <div class="checkDiv" v-else>
  1698. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1699. </div>
  1700. </div>
  1701. </div>
  1702. <div class="tool">
  1703. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1704. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1705. <div style="margin: 5px 0">源码编辑</div>
  1706. </div>
  1707. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1708. <img src="../../assets/icon/checkNo.png" alt
  1709. v-if="itemTool.tool.indexOf(32) == -1" />
  1710. <div class="checkDiv" v-else>
  1711. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div class="tool">
  1716. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1717. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1718. <div style="margin: 5px 0">CocoPi</div>
  1719. </div>
  1720. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1721. <img src="../../assets/icon/checkNo.png" alt
  1722. v-if="itemTool.tool.indexOf(57) == -1" />
  1723. <div class="checkDiv" v-else>
  1724. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. <div class="tool">
  1729. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1730. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1731. <div style="margin: 5px 0">海龟编程</div>
  1732. </div>
  1733. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1734. <img src="../../assets/icon/checkNo.png" alt
  1735. v-if="itemTool.tool.indexOf(63) == -1" />
  1736. <div class="checkDiv" v-else>
  1737. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1738. </div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. <div class="toolSort" v-if="itemTool.toolType == 7">
  1743. <div class="tool">
  1744. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1745. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1746. <div style="margin: 5px 0">个人评价</div>
  1747. </div>
  1748. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1749. <img src="../../assets/icon/checkNo.png" alt
  1750. v-if="itemTool.tool.indexOf(40) == -1" />
  1751. <div class="checkDiv" v-else>
  1752. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="toolSort" v-if="itemTool.toolType == 5">
  1758. <div class="tool">
  1759. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1760. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1761. <div style="margin: 5px 0">翻译</div>
  1762. </div>
  1763. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1764. <img src="../../assets/icon/checkNo.png" alt
  1765. v-if="itemTool.tool.indexOf(28) == -1" />
  1766. <div class="checkDiv" v-else>
  1767. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1768. </div>
  1769. </div>
  1770. </div>
  1771. <div class="tool">
  1772. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1773. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1774. <div style="margin: 5px 0">数字画板</div>
  1775. </div>
  1776. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1777. <img src="../../assets/icon/checkNo.png" alt
  1778. v-if="itemTool.tool.indexOf(31) == -1" />
  1779. <div class="checkDiv" v-else>
  1780. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div class="tool">
  1785. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1786. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1787. <div style="margin: 5px 0">GeoGebra</div>
  1788. </div>
  1789. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1790. <img src="../../assets/icon/checkNo.png" alt
  1791. v-if="itemTool.tool.indexOf(39) == -1" />
  1792. <div class="checkDiv" v-else>
  1793. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1794. </div>
  1795. </div>
  1796. </div>
  1797. <div class="tool">
  1798. <div class="whiteBIcon" @click="addTools(66, itemTaskIndex, toolIndex)">
  1799. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  1800. <div style="margin: 5px 0">公式编辑</div>
  1801. </div>
  1802. <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  1803. <img src="../../assets/icon/checkNo.png" alt
  1804. v-if="itemTool.tool.indexOf(66) == -1" />
  1805. <div class="checkDiv" v-else>
  1806. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. <div class="tool">
  1811. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  1812. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  1813. <div style="margin: 5px 0">分子结构</div>
  1814. </div>
  1815. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  1816. <img src="../../assets/icon/checkNo.png" alt
  1817. v-if="itemTool.tool.indexOf(67) == -1" />
  1818. <div class="checkDiv" v-else>
  1819. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1820. </div>
  1821. </div>
  1822. </div>
  1823. <div class="tool">
  1824. <div class="whiteBIcon" @click="addTools(68, itemTaskIndex, toolIndex)">
  1825. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  1826. <div style="margin: 5px 0">时间轴</div>
  1827. </div>
  1828. <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  1829. <img src="../../assets/icon/checkNo.png" alt
  1830. v-if="itemTool.tool.indexOf(68) == -1" />
  1831. <div class="checkDiv" v-else>
  1832. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1833. </div>
  1834. </div>
  1835. </div>
  1836. <!-- <div class="tool">
  1837. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1838. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1839. <div style="margin: 5px 0">翻译</div>
  1840. </div>
  1841. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1842. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1843. <div class="checkDiv" v-else>
  1844. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1845. </div>
  1846. </div>
  1847. </div>
  1848. <div class="tool">
  1849. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1850. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  1851. <div style="margin: 5px 0">魔盒识字</div>
  1852. </div>
  1853. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1854. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1855. <div class="checkDiv" v-else>
  1856. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1857. </div>
  1858. </div>
  1859. </div>
  1860. <div class="tool">
  1861. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1862. <img src="../../assets/icon/secondToolList/24game.png" alt />
  1863. <div style="margin: 5px 0">24点</div>
  1864. </div>
  1865. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1866. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1867. <div class="checkDiv" v-else>
  1868. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1869. </div>
  1870. </div>
  1871. </div>
  1872. <div class="tool">
  1873. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1874. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1875. <div style="margin: 5px 0">数学画板</div>
  1876. </div>
  1877. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1878. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1879. <div class="checkDiv" v-else>
  1880. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. <div class="tool">
  1885. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1886. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  1887. <div style="margin: 5px 0">GeoGebra</div>
  1888. </div>
  1889. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1890. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1891. <div class="checkDiv" v-else>
  1892. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div class="tool">
  1897. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1898. <img src="../../assets/icon/fourthToolList/car.png" alt />
  1899. <div style="margin: 5px 0">模拟驾驶</div>
  1900. </div>
  1901. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1902. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1903. <div class="checkDiv" v-else>
  1904. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1905. </div>
  1906. </div>
  1907. </div>
  1908. <div class="tool">
  1909. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1910. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  1911. <div style="margin: 5px 0">路径搜索</div>
  1912. </div>
  1913. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1914. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1915. <div class="checkDiv" v-else>
  1916. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1917. </div>
  1918. </div>
  1919. </div>
  1920. <div class="tool">
  1921. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1922. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  1923. <div style="margin: 5px 0">深度学习</div>
  1924. </div>
  1925. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1926. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1927. <div class="checkDiv" v-else>
  1928. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. <div class="tool">
  1933. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1934. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  1935. <div style="margin: 5px 0">全历史</div>
  1936. </div>
  1937. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1938. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1939. <div class="checkDiv" v-else>
  1940. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. <div class="toolSort" v-if="itemTool.toolType == 4">
  1946. <div class="tool">
  1947. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1948. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  1949. <div style="margin: 5px 0">课程设计</div>
  1950. </div>
  1951. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1952. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1953. <div class="checkDiv" v-else>
  1954. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1955. </div>
  1956. </div>
  1957. </div>
  1958. <div class="tool">
  1959. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1960. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  1961. <div style="margin: 5px 0">目标管理</div>
  1962. </div>
  1963. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1964. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1965. <div class="checkDiv" v-else>
  1966. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1967. </div>
  1968. </div>
  1969. </div> -->
  1970. <!-- <div class="tool">
  1971. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1972. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  1973. <div style="margin: 5px 0">汉字宫</div>
  1974. </div>
  1975. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1976. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1977. <div class="checkDiv" v-else>
  1978. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1979. </div>
  1980. </div>
  1981. </div> -->
  1982. </div>
  1983. </div>
  1984. <div v-show="itemTool.isFold3">
  1985. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  1986. style="margin: 0 0 20px 0; width: 100% !important"
  1987. v-model="itemTool.toolDetail"></textarea>
  1988. </div>
  1989. </div>
  1990. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1991. <div class="addToolImg">
  1992. <img src="../../assets/icon/add.png" alt />
  1993. </div>
  1994. <div>添加工具</div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1999. unitJson[unitIndex].easy == 4
  2000. " class="toolChoose" style="padding: 0 0 40px;">
  2001. <div class="tools">
  2002. <div class="leftTools" style="width: 100%"
  2003. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2004. <div>
  2005. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2006. style="margin: 0 0 20px 0; width: 100% !important"
  2007. v-model="itemTool.toolDetail"></textarea>
  2008. </div>
  2009. <div style="
  2010. display: flex;
  2011. flex-direction: row;
  2012. align-items: baseline;
  2013. flex-wrap: nowrap;
  2014. justify-content: flex-start;
  2015. position: relative;
  2016. ">
  2017. <div style="margin-right: 20px; font-weight: bold">
  2018. 步骤 {{ toolIndex + 1 }} :
  2019. </div>
  2020. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2021. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2022. </div>
  2023. <div style="min-height: 163px">
  2024. <div class="toolSort">
  2025. <div class="tool">
  2026. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2027. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2028. <div style="margin: 5px 0">电子白板</div>
  2029. </div>
  2030. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2031. <img src="../../assets/icon/checkNo.png" alt
  2032. v-if="itemTool.tool.indexOf(1) == -1" />
  2033. <div class="checkDiv" v-else>
  2034. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2035. </div>
  2036. </div>
  2037. </div>
  2038. <div class="tool">
  2039. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2040. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2041. <div style="margin: 5px 0">文档</div>
  2042. </div>
  2043. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2044. <img src="../../assets/icon/checkNo.png" alt
  2045. v-if="itemTool.tool.indexOf(52) == -1" />
  2046. <div class="checkDiv" v-else>
  2047. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. <div class="tool">
  2052. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2053. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2054. <div style="margin: 5px 0">思维导图</div>
  2055. </div>
  2056. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2057. <img src="../../assets/icon/checkNo.png" alt
  2058. v-if="itemTool.tool.indexOf(3) == -1" />
  2059. <div class="checkDiv" v-else>
  2060. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2061. </div>
  2062. </div>
  2063. </div>
  2064. <div class="tool">
  2065. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2066. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2067. <div style="margin: 5px 0">问卷调查</div>
  2068. </div>
  2069. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2070. <img src="../../assets/icon/checkNo.png" alt
  2071. v-if="itemTool.tool.indexOf(4) == -1" />
  2072. <div class="checkDiv" v-else>
  2073. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2074. </div>
  2075. </div>
  2076. </div>
  2077. <div class="tool">
  2078. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2079. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2080. <div style="margin: 5px 0">选择题</div>
  2081. </div>
  2082. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2083. <img src="../../assets/icon/checkNo.png" alt
  2084. v-if="itemTool.tool.indexOf(45) == -1" />
  2085. <div class="checkDiv" v-else>
  2086. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. <div class="tool">
  2091. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2092. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2093. <div style="margin: 5px 0">问答</div>
  2094. </div>
  2095. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2096. <img src="../../assets/icon/checkNo.png" alt
  2097. v-if="itemTool.tool.indexOf(15) == -1" />
  2098. <div class="checkDiv" v-else>
  2099. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2100. </div>
  2101. </div>
  2102. </div>
  2103. <div class="tool">
  2104. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2105. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2106. <div style="margin: 5px 0">作业提交</div>
  2107. </div>
  2108. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2109. <img src="../../assets/icon/checkNo.png" alt
  2110. v-if="itemTool.tool.indexOf(16) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. <div class="tool">
  2117. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2118. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2119. <div style="margin: 5px 0">批量上传</div>
  2120. </div>
  2121. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2122. <img src="../../assets/icon/checkNo.png" alt
  2123. v-if="itemTool.tool.indexOf(50) == -1" />
  2124. <div class="checkDiv" v-else>
  2125. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2126. </div>
  2127. </div>
  2128. </div>
  2129. <div class="tool">
  2130. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2131. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2132. <div style="margin: 5px 0">选择匹配</div>
  2133. </div>
  2134. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2135. <img src="../../assets/icon/checkNo.png" alt
  2136. v-if="itemTool.tool.indexOf(41) == -1" />
  2137. <div class="checkDiv" v-else>
  2138. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <div class="tool">
  2143. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2144. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2145. <div style="margin: 5px 0">排序</div>
  2146. </div>
  2147. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2148. <img src="../../assets/icon/checkNo.png" alt
  2149. v-if="itemTool.tool.indexOf(47) == -1" />
  2150. <div class="checkDiv" v-else>
  2151. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. <div class="tool">
  2156. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2157. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2158. <div style="margin: 5px 0">表格</div>
  2159. </div>
  2160. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2161. <img src="../../assets/icon/checkNo.png" alt
  2162. v-if="itemTool.tool.indexOf(48) == -1" />
  2163. <div class="checkDiv" v-else>
  2164. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2165. </div>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2172. <div class="addToolImg">
  2173. <img src="../../assets/icon/add.png" alt />
  2174. </div>
  2175. <div>添加工具</div>
  2176. </div>
  2177. </div>
  2178. </div>
  2179. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2180. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2181. " class="toolChoose" style="padding: 0 0 40px;">
  2182. <div class="tools">
  2183. <div class="leftTools" style="
  2184. width: 100%;
  2185. padding: 0 0 15px 0;
  2186. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2187. <div style="min-height: 163px">
  2188. <div class="toolSort">
  2189. <div class="tool">
  2190. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2191. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2192. <div style="margin: 5px 0">批量上传</div>
  2193. </div>
  2194. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2195. <img src="../../assets/icon/checkNo.png" alt
  2196. v-if="itemTool.tool.indexOf(50) == -1" />
  2197. <div class="checkDiv" v-else>
  2198. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2199. </div>
  2200. </div>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. </div>
  2205. </div>
  2206. </div>
  2207. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2208. <div class="elist_title">
  2209. <div style="
  2210. display: flex;
  2211. flex-direction: row;
  2212. align-items: center;
  2213. margin: 20px 0;
  2214. ">
  2215. <div class="lineTitle">评价设置</div>
  2216. <!-- <div class="line" style="width: 90%"></div> -->
  2217. </div>
  2218. </div>
  2219. <div class="mbCss">
  2220. <div class="pjCss">
  2221. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2222. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2223. <span>评价名称:</span>
  2224. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2225. <span>评星等级:</span>
  2226. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2227. disabled></el-rate>
  2228. <div class="remove" @click="
  2229. deletEList(unitIndex, itemTaskIndex, eIndex)
  2230. "></div>
  2231. <div class="elist_inptu_text">
  2232. <span>评价描述:</span>
  2233. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2234. </div>
  2235. <div class="elist_inptu_text" v-if="evalua">
  2236. <span>目标:</span>
  2237. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2238. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2239. @change="forceUpdate()">
  2240. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2241. :value="e.name">
  2242. </el-option>
  2243. </el-select> -->
  2244. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2245. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2246. </div>
  2247. </div>
  2248. </div>
  2249. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2250. style="margin: 35px 35px 0 0">
  2251. <div class="addToolImg">
  2252. <img src="../../assets/icon/add.png" alt />
  2253. </div>
  2254. <div>添加</div>
  2255. </div>
  2256. </div>
  2257. <div v-if="evalua" style="
  2258. border: 1px solid #e5e5e5;
  2259. width: 55%;
  2260. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2261. " class="evaCss">
  2262. <!-- <div class="e_add_top">
  2263. <div class="e_add_title">
  2264. <span>当前使用目标管理</span>
  2265. <span>{{ eTitle }}</span>
  2266. <img src="../../assets/line.png" class="cru_line" style="
  2267. width: 125px;
  2268. height: 20px;
  2269. bottom: -10px;
  2270. left: 155px;
  2271. " />
  2272. </div>
  2273. </div> -->
  2274. <div class="e_add_content" style="width: 100%">
  2275. <div class="e_add_list_pbox" style="width: 100%">
  2276. <div class="e_add_list_pbox_title">
  2277. <span class="type_title">切换模式</span>
  2278. <div class="type_content">
  2279. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2280. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2281. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2282. </div>
  2283. </div>
  2284. <div class="e_add_list_pbox_content">
  2285. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2286. " v-if="typeMode == 1"></Mind>
  2287. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2288. </Sunburst>
  2289. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2290. v-if="typeMode == 3"></SeeBoard>
  2291. </div>
  2292. </div>
  2293. </div>
  2294. </div>
  2295. </div>
  2296. </div>
  2297. <div class="funBlock" style="padding: 0">
  2298. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2299. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2300. </div>
  2301. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2302. </div>
  2303. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2304. <div>展开</div>
  2305. <div class="arrow">
  2306. <img src="../../assets/icon/expand.png" alt />
  2307. </div>
  2308. </div> -->
  2309. </div>
  2310. </div>
  2311. </div>
  2312. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2313. <!-- <div>
  2314. <img src="../../../assets/icon/new/addStage.png" alt />
  2315. <span>添加任务</span>
  2316. </div> -->
  2317. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2318. 添加任务
  2319. </button>
  2320. </div>
  2321. </div>
  2322. <div class="info_btnBox3">
  2323. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2324. goTo(
  2325. '/course?userid=' +
  2326. userid +
  2327. '&oid=' +
  2328. oid +
  2329. '&org=' +
  2330. org +
  2331. '&role=' +
  2332. role
  2333. )
  2334. ">
  2335. 返回课程
  2336. </button>
  2337. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2338. style="background:#dbdbdb">
  2339. {{ steps == 4 ? "返回课程" : "上一步" }}
  2340. </button>
  2341. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2342. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2343. {{ steps == 3 ? "确认上传" : "下一步" }}
  2344. </button>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. </div>
  2349. </div>
  2350. <div style="
  2351. width: calc(100% - 20px);
  2352. background: rgb(255, 255, 255);
  2353. border-radius: 10px;
  2354. " v-if="this.steps == 4">
  2355. <div class="basic_box_success">
  2356. <div class="right_img">
  2357. <img src="../../assets/icon/right.png" alt />
  2358. </div>
  2359. <div style="font-weight: bold">成功</div>
  2360. <!-- <div>您的课程编号</div>
  2361. <div class="number">{{ number }}</div>-->
  2362. <!-- <div class="success_button">
  2363. <div class="look_course" @click="isNoFinsh">
  2364. 邀请老师协同编辑
  2365. </div>
  2366. <div class="attend_others" @click="goCourse">预览课程</div>
  2367. </div> -->
  2368. </div>
  2369. </div>
  2370. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2371. @mouseleave="btnDisplay(false)" v-if="false">
  2372. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2373. goTo(
  2374. '/course?userid=' +
  2375. userid +
  2376. '&oid=' +
  2377. oid +
  2378. '&org=' +
  2379. org +
  2380. '&role=' +
  2381. role
  2382. )
  2383. ">
  2384. 返回课程
  2385. </button>
  2386. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2387. @click="lastSteps">
  2388. {{ steps == 4 ? "返回课程" : "上一步" }}
  2389. </button>
  2390. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2391. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2392. {{ steps == 3 ? "确认上传" : "下一步" }}
  2393. </button>
  2394. </div>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2399. class="dialog_diy2 customWidth">
  2400. <div>请复制该链接邀请协同编辑</div>
  2401. <div>http://www.boomyon.com/index-zhang.com</div>
  2402. <span slot="footer" class="dialog-footer">
  2403. <el-button type="primary">复制链接分享</el-button>
  2404. <el-button @click="dialogVisible = false">取消</el-button>
  2405. </span>
  2406. </el-dialog>
  2407. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2408. :before-close="handleClose" class="dialog_diy2 customWidth">
  2409. <el-form>
  2410. <el-form-item label="文档标题">
  2411. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2412. </el-form-item>
  2413. <div>文档简介</div>
  2414. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2415. </el-form>
  2416. <span slot="footer" class="dialog-footer">
  2417. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2418. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2419. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2420. </span>
  2421. </el-dialog>
  2422. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2423. :before-close="handleClose" class="dialog_diy">
  2424. <el-form>
  2425. <el-form-item label="文档标题">
  2426. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2427. </el-form-item>
  2428. <div>文档内容</div>
  2429. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2430. </el-form>
  2431. <span slot="footer" class="dialog-footer">
  2432. <el-button @click="clearChoose">取 消</el-button>
  2433. <el-button type="primary" @click="wordNext()">确定</el-button>
  2434. </span>
  2435. </el-dialog>
  2436. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2437. :before-close="handleClose" class="dialog_diy">
  2438. <el-form>
  2439. <el-form-item label="文本标题">
  2440. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2441. placeholder="请输入文本标题..."></el-input>
  2442. </el-form-item>
  2443. <!-- <div>富文本内容</div> -->
  2444. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2445. </el-form>
  2446. <span slot="footer" class="dialog-footer">
  2447. <el-button @click="clearAttText">取 消</el-button>
  2448. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2449. </span>
  2450. </el-dialog>
  2451. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2452. :before-close="handleClose" class="dialog_diy lineCss">
  2453. <el-form>
  2454. <el-form-item label="标题" :label-width="formLabelWidth">
  2455. <span>
  2456. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2457. </span>
  2458. </el-form-item>
  2459. <el-form-item label="链接" :label-width="formLabelWidth">
  2460. <span>
  2461. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2462. </span>
  2463. </el-form-item>
  2464. </el-form>
  2465. <span slot="footer" class="dialog-footer">
  2466. <el-button @click="clearLine">取 消</el-button>
  2467. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2468. </span>
  2469. </el-dialog>
  2470. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2471. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2472. <div>
  2473. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2474. </div>
  2475. <span slot="footer" class="dialog-footer">
  2476. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2477. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2478. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2479. </span>
  2480. </el-dialog>
  2481. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2482. :before-close="handleClose" class="addNewPP customWidth">
  2483. <div class="people">
  2484. <div class="people_top">
  2485. <div class="people_nav">选择成员</div>
  2486. <div class="people_top_right">
  2487. <div class="people_search">
  2488. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2489. <div class="search_img" @click="searchStudent">
  2490. <img src="../../assets/icon/search.png" alt />
  2491. </div>
  2492. </div>
  2493. </div>
  2494. </div>
  2495. <el-checkbox-group v-model="checkboxList" class="people_name">
  2496. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2497. "暂无学生可选" }}</el-checkbox>
  2498. </el-checkbox-group>
  2499. </div>
  2500. <span slot="footer" class="dialog-footer">
  2501. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2502. <el-button type="primary" @click="isAddPP">确定</el-button>
  2503. </span>
  2504. </el-dialog>
  2505. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2506. :before-close="handleClose" class="addNewPP">
  2507. <div class="people" style="height: 300px">
  2508. <div class="people_top">
  2509. <div class="people_top_right">
  2510. <div class="people_search">
  2511. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  2512. <el-option label="全部" value=""></el-option>
  2513. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  2514. :value="item.id"></el-option>
  2515. </el-select>
  2516. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2517. <!-- @click="getClass()"
  2518. @keyup.enter.native="getClass()"
  2519. -->
  2520. <div class="search_img">
  2521. <img src="../../assets/icon/search.png" alt />
  2522. </div>
  2523. </div>
  2524. </div>
  2525. <div class="people_nav">选择班级</div>
  2526. </div>
  2527. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  2528. v-if="grade2.length">
  2529. <div v-for="item in grade2" :key="item.id" class="p_box">
  2530. <el-checkbox :label="item.id">
  2531. {{ item.name }}
  2532. </el-checkbox>
  2533. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2534. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2535. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2536. @click="OpenInviteD(item.id)">随机码设置</div>
  2537. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2538. </div>
  2539. </el-checkbox-group>
  2540. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  2541. </div>
  2542. <span slot="footer" class="dialog-footer">
  2543. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2544. <el-button type="primary" @click="isAddClass">确定</el-button>
  2545. </span>
  2546. </el-dialog>
  2547. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2548. :before-close="handleClose" class="addNewPP customWidth">
  2549. <div class="people">
  2550. <div class="people_top">
  2551. <div class="people_top_right">
  2552. <div class="people_search">
  2553. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2554. <div class="search_img" @click="getTeacher">
  2555. <img src="../../assets/icon/search.png" alt />
  2556. </div>
  2557. </div>
  2558. </div>
  2559. <div class="people_nav">选择成员</div>
  2560. </div>
  2561. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2562. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2563. <div class="t_j_box">
  2564. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2565. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2566. </el-tooltip>
  2567. <el-tooltip placement="top" :content="item.username">
  2568. <span>{{ item.username }}</span>
  2569. </el-tooltip>
  2570. <el-tooltip placement="top" :content="item.school">
  2571. <span>{{ item.school }}</span>
  2572. </el-tooltip>
  2573. </div>
  2574. </el-checkbox>
  2575. </el-checkbox-group>
  2576. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2577. </div>
  2578. <span slot="footer" class="dialog-footer">
  2579. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2580. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2581. </span>
  2582. </el-dialog>
  2583. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2584. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2585. <div style="height:100%">
  2586. <div class="a_add_title" style="
  2587. display: flex;
  2588. flex-direction: row;
  2589. align-items: center;
  2590. justify-content: center;
  2591. ">
  2592. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2593. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2594. </div>
  2595. <div class="a_addBox" style="height:calc(100% - 50px)">
  2596. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2597. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2598. <div class="a_add_checkType">
  2599. <span :class="{
  2600. active:
  2601. askJson.askJson[index1].type == '1' ||
  2602. !askJson.askJson[index1].type,
  2603. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2604. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2605. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2606. </div>
  2607. <div class="a_add_head">
  2608. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2609. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2610. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2611. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2612. </div>
  2613. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2614. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2615. </div>
  2616. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2617. </div>
  2618. <div class="a_add_head_div">
  2619. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2620. </el-button>
  2621. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2622. </div>
  2623. </div>
  2624. <div class="a_add_body">
  2625. <div class="a_add_input" style="flex-direction: column;">
  2626. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2627. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2628. <div style="margin-right: 10px">
  2629. 选项{{ checkIndex + 1 }}
  2630. </div>
  2631. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2632. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2633. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2634. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2635. </div>
  2636. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2637. </div>
  2638. <div class="a_add_body_div">
  2639. <el-button type="primary" size="small"
  2640. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2641. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2642. v-if="askJson.askJson[index1].askItem != 1">删除
  2643. </el-button>
  2644. </div>
  2645. </div>
  2646. </div>
  2647. <!-- <div class="a_add_body_div">
  2648. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2649. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2650. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2651. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2652. </el-button>
  2653. </div> -->
  2654. </div>
  2655. </div>
  2656. </div>
  2657. </div>
  2658. <span slot="footer" class="dialog-footer">
  2659. <el-button @click="closePan(4)">取 消</el-button>
  2660. <el-button type="primary" @click="addAsk">确 定</el-button>
  2661. </span>
  2662. </el-dialog>
  2663. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2664. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2665. <div style="height:100%">
  2666. <!-- <div class="a_add_title" style="
  2667. display: flex;
  2668. flex-direction: row;
  2669. align-items: center;
  2670. justify-content: center;
  2671. ">
  2672. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2673. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2674. </div> -->
  2675. <div class="a_addBox" style="height:100%">
  2676. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2677. <!-- 请输入题目内容 -->
  2678. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2679. v-if="isPasteChoice">智能粘贴</button>
  2680. </div>
  2681. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2682. <div class="a_add_checkType">
  2683. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2684. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2685. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2686. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2687. </div>
  2688. <div class="a_add_head">
  2689. <div class="timuUpImg">
  2690. <div style="display: flex;align-items: center;">
  2691. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2692. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2693. placeholder="请输入题目">
  2694. </el-input> -->
  2695. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2696. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2697. @change="() => { $forceUpdate() }"></textarea>
  2698. </div>
  2699. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2700. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2701. </div>
  2702. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2703. </div>
  2704. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2705. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2706. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2707. </div>
  2708. </div>
  2709. <div class="a_add_head_div">
  2710. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2711. </el-button>
  2712. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2713. </div>
  2714. </div>
  2715. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2716. testJson.testJson[index1].timuList.length
  2717. ">
  2718. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2719. @click.stop="previewImg(timg.src)">
  2720. <img :src="timg.src" alt="" />
  2721. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2722. <img src="../../assets/icon/delete.png" alt="" />
  2723. </div>
  2724. </div>
  2725. </div>
  2726. <div class="a_add_body">
  2727. <div class="a_add_input a_add_input_choice">
  2728. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2729. @change="() => { $forceUpdate() }">
  2730. <div class="radioBox">
  2731. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2732. .testItem" :key="checkIndex" :label="checkIndex">
  2733. <div style="margin-right: 10px">
  2734. 选项{{ checkIndex + 1 }}
  2735. </div>
  2736. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2737. testJson.testJson[index1].checkList[checkIndex]
  2738. .imgType &&
  2739. testJson.testJson[index1].checkList[checkIndex]
  2740. .imgType == 1
  2741. ">
  2742. <div class="inImg" @click.stop="
  2743. previewImg(
  2744. testJson.testJson[index1].checkList[checkIndex]
  2745. .src
  2746. )
  2747. ">
  2748. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2749. .src
  2750. " lazy />
  2751. <!-- <img :src="
  2752. testJson.testJson[index1].checkList[checkIndex]
  2753. .src
  2754. " alt="" /> -->
  2755. </div>
  2756. </div>
  2757. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2758. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2759. @change="() => { $forceUpdate() }"></textarea>
  2760. <div class="xzUpImg" @click.stop="addImg($event)">
  2761. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2762. <input type="file" accept="image/*" style="display: none"
  2763. @change="beforeUploadTi($event, index1, checkIndex)" />
  2764. </div>
  2765. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2766. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  2767. </div>
  2768. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  2769. </div>
  2770. <div class="a_add_body_div">
  2771. <el-button type="primary" size="small"
  2772. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  2773. <el-button type="primary" size="small"
  2774. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  2775. v-if="testJson.testJson[index1].testItem != 1">删除
  2776. </el-button>
  2777. </div>
  2778. </el-radio>
  2779. </div>
  2780. </el-radio-group>
  2781. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2782. @change="() => { $forceUpdate() }">
  2783. <div class="radioBox">
  2784. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2785. .testItem" :key="checkIndex1" :label="checkIndex1">
  2786. <div style="margin-right: 10px">
  2787. 选项{{ checkIndex1 + 1 }}
  2788. </div>
  2789. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2790. testJson.testJson[index1].checkList[checkIndex1]
  2791. .imgType &&
  2792. testJson.testJson[index1].checkList[checkIndex1]
  2793. .imgType == 1
  2794. ">
  2795. <div class="inImg" @click.stop="
  2796. previewImg(
  2797. testJson.testJson[index1].checkList[checkIndex1]
  2798. .src
  2799. )
  2800. ">
  2801. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2802. .src
  2803. " lazy />
  2804. <!-- <img :src="
  2805. testJson.testJson[index1].checkList[checkIndex1]
  2806. .src
  2807. " alt="" /> -->
  2808. </div>
  2809. </div>
  2810. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2811. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2812. @change="() => { $forceUpdate() }"></textarea>
  2813. <div class="xzUpImg" @click.stop="addImg($event)">
  2814. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2815. <input type="file" accept="image/*" style="display: none"
  2816. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2817. </div>
  2818. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2819. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2820. </div>
  2821. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2822. </div>
  2823. <div class="a_add_body_div">
  2824. <el-button type="primary" size="small"
  2825. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2826. <el-button type="primary" size="small"
  2827. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2828. v-if="testJson.testJson[index1].testItem != 1">删除
  2829. </el-button>
  2830. </div>
  2831. </el-checkbox>
  2832. </div>
  2833. </el-checkbox-group>
  2834. </div>
  2835. <!-- <div class="a_add_body_div">
  2836. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2837. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2838. v-if="testJson.testJson[index1].testItem != 1">删除
  2839. </el-button>
  2840. </div> -->
  2841. </div>
  2842. </div>
  2843. </div>
  2844. </div>
  2845. <span slot="footer" class="dialog-footer">
  2846. <el-button @click="closePan(45)">取 消</el-button>
  2847. <el-button type="primary" @click="addTest">确 定</el-button>
  2848. </span>
  2849. </el-dialog>
  2850. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2851. :before-close="handleClose" class="dialog_diy addToolsDia">
  2852. <div class="toolChoose">
  2853. <div class="tools">
  2854. <div class="leftTools" style="
  2855. width: 100%;
  2856. padding: 0 0 15px 0;
  2857. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2858. <div style="
  2859. display: flex;
  2860. flex-direction: row;
  2861. align-items: baseline;
  2862. flex-wrap: nowrap;
  2863. justify-content: flex-start;
  2864. position: relative;
  2865. ">
  2866. <div class="chooseWho">
  2867. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2868. 互动类
  2869. </div>
  2870. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2871. 思维类
  2872. </div>
  2873. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2874. 评价类
  2875. </div>
  2876. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2877. 其他
  2878. </div>
  2879. </div>
  2880. </div>
  2881. <div style="min-height: 163px">
  2882. <div class="toolSort" v-if="chapToolsType == 0">
  2883. <div class="tool">
  2884. <div class="whiteBIcon" @click="chapAddTools(8)">
  2885. <img src="../../assets/icon/secondToolList/library.png" alt />
  2886. <div style="margin: 5px 0">素材库</div>
  2887. </div>
  2888. <div class="check" @click="chapAddTools(8)">
  2889. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2890. <div class="checkDiv" v-else>
  2891. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2892. </div>
  2893. </div>
  2894. </div>
  2895. </div>
  2896. <div class="toolSort" v-if="chapToolsType == 1">
  2897. <div class="tool">
  2898. <div class="whiteBIcon" @click="chapAddTools(7)">
  2899. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  2900. <div style="margin: 5px 0">思维网格</div>
  2901. </div>
  2902. <div class="check" @click="chapAddTools(7)">
  2903. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2904. <div class="checkDiv" v-else>
  2905. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2906. </div>
  2907. </div>
  2908. </div>
  2909. <div class="tool">
  2910. <div class="whiteBIcon" @click="chapAddTools(1)">
  2911. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2912. <div style="margin: 5px 0">电子白板</div>
  2913. </div>
  2914. <div class="check" @click="chapAddTools(1)">
  2915. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2916. <div class="checkDiv" v-else>
  2917. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <div class="tool">
  2922. <div class="whiteBIcon" @click="chapAddTools(2)">
  2923. <img src="../../assets/icon/secondToolList/note.png" alt />
  2924. <div style="margin: 5px 0">便签</div>
  2925. </div>
  2926. <div class="check" @click="chapAddTools(2)">
  2927. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2928. <div class="checkDiv" v-else>
  2929. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2930. </div>
  2931. </div>
  2932. </div>
  2933. <div class="tool">
  2934. <div class="whiteBIcon" @click="chapAddTools(6)">
  2935. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2936. <div style="margin: 5px 0">协同文档</div>
  2937. </div>
  2938. <div class="check" @click="chapAddTools(6)">
  2939. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2940. <div class="checkDiv" v-else>
  2941. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2942. </div>
  2943. </div>
  2944. </div>
  2945. <div class="tool">
  2946. <div class="whiteBIcon" @click="chapAddTools(3)">
  2947. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2948. <div style="margin: 5px 0">思维导图</div>
  2949. </div>
  2950. <div class="check" @click="chapAddTools(3)">
  2951. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -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">
  2958. <div class="whiteBIcon" @click="chapAddTools(31)">
  2959. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2960. <div style="margin: 5px 0">数学画板</div>
  2961. </div>
  2962. <div class="check" @click="chapAddTools(31)">
  2963. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2964. <div class="checkDiv" v-else>
  2965. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. </div>
  2970. <div class="toolSort" v-if="chapToolsType == 2">
  2971. <div class="tool">
  2972. <div class="whiteBIcon" @click="chapAddTools(5)">
  2973. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2974. <div style="margin: 5px 0">量规评分</div>
  2975. </div>
  2976. <div class="check" @click="chapAddTools(5)">
  2977. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2978. <div class="checkDiv" v-else>
  2979. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. <div class="tool">
  2984. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2985. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2986. <div style="margin: 5px 0">问卷调查</div>
  2987. </div>
  2988. <div class="check" @click="chapAddTools(4)">
  2989. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2990. <div class="checkDiv" v-else>
  2991. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2992. </div>
  2993. </div>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. <div>
  2998. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  2999. v-model="itemTools.toolDetail" />
  3000. </div>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. <span slot="footer" class="dialog-footer">
  3005. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3006. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3007. </span>
  3008. </el-dialog>
  3009. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3010. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3011. <div>
  3012. <div class="a_add_title" style="
  3013. display: flex;
  3014. flex-direction: column;
  3015. align-items: flex-start;
  3016. justify-content: center;
  3017. ">
  3018. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3019. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3020. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3021. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3022. </div>
  3023. </div>
  3024. <span slot="footer" class="dialog-footer">
  3025. <el-button @click="closePan(15)">取 消</el-button>
  3026. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3027. </span>
  3028. </el-dialog>
  3029. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3030. :before-close="handleClose" class="dialog_diy">
  3031. <div>
  3032. <div class="a_add_title" style="
  3033. display: flex;
  3034. flex-direction: column;
  3035. align-items: flex-start;
  3036. justify-content: center;
  3037. ">
  3038. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3039. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3040. </div>
  3041. </div>
  3042. <span slot="footer" class="dialog-footer">
  3043. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3044. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3045. </span>
  3046. </el-dialog>
  3047. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3048. :before-close="handleClose" class="dialog_diy">
  3049. <div>
  3050. <div class="fileCss" style="padding-top: 20px">
  3051. <div>
  3052. <button class="info_btn" @click="addImg($event)">
  3053. 选择本地文件
  3054. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3055. </button>
  3056. <div class="spanName">选择本地文件</div>
  3057. </div>
  3058. <div>
  3059. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3060. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3061. <img :src="cover[0].url" alt="" />
  3062. <div class="deletePic" @click="deleteSysPic">
  3063. <img src="../../assets/icon/delete.png" alt="" />
  3064. </div>
  3065. </div>
  3066. <div class="spanName">选择系统文件</div>
  3067. </div>
  3068. <div>
  3069. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3070. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3071. <img :src="cover[0].url" alt="" />
  3072. <div class="deletePic" @click="deleteSysPic">
  3073. <img src="../../assets/icon/delete.png" alt="" />
  3074. </div>
  3075. </div>
  3076. <div class="spanName">选择网络文件</div>
  3077. </div>
  3078. </div>
  3079. <!-- <div class="fileCss">
  3080. </div> -->
  3081. </div>
  3082. <span slot="footer" class="dialog-footer">
  3083. <el-button @click="choosePicVisible = false">取 消</el-button>
  3084. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3085. </span>
  3086. </el-dialog>
  3087. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3088. :before-close="handleClose" class="dialog_diy">
  3089. <div class="cru_selectBox" style="margin: 0">
  3090. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3091. 绘画
  3092. </div>
  3093. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3094. 科技
  3095. </div>
  3096. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3097. 人文
  3098. </div>
  3099. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3100. 艺术
  3101. </div>
  3102. </div>
  3103. <div class="sysPicBox">
  3104. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3105. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3106. </div>
  3107. </div>
  3108. </el-dialog>
  3109. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3110. :before-close="handleClose" class="dialog_diy">
  3111. <div>
  3112. <div class="people_top_right" style="display: flex;align-items: center;">
  3113. <div style="position: relative; width: 100%;">
  3114. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3115. @keyup.enter.native="resetImage()"></el-input>
  3116. <div class="search_img" @click="resetImage" style="right: 10px;">
  3117. <img src="../../assets/icon/search.png" alt />
  3118. </div>
  3119. </div>
  3120. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3121. </div>
  3122. <div class="sysPicBox" v-loading="imageloading">
  3123. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3124. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3125. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3126. </div>
  3127. </div>
  3128. </div>
  3129. </el-dialog>
  3130. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3131. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3132. <div v-if="selectJson" style="height:100%">
  3133. <div class="select_box1" v-if="selectSteps == 1">
  3134. <div class="select_box1_img">
  3135. <div class="select_box1_title">
  3136. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3137. </div>
  3138. <div class="select_box1_add_img">
  3139. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3140. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3141. <img src="../../assets/icon/addPoster.png" alt="" />
  3142. </div>
  3143. <div class="isSysPic" v-else>
  3144. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3145. <div class="deletePic" @click="deleteSelectPic">
  3146. <img src="../../assets/icon/delete.png" alt="" />
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div class="select_box1_select">
  3152. <div class="select_box1_title">
  3153. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3154. </div>
  3155. <div class="select_box1_select_box">
  3156. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3157. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3158. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3159. <div class="select_box1_select_box_add">
  3160. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3161. 添加</el-button>
  3162. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3163. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3164. </div>
  3165. </div>
  3166. </div>
  3167. </div>
  3168. <div v-if="selectSteps == 2" style="height:100%">
  3169. <div class="select_box2">
  3170. <div class="select_box2_title">设置每道题目的正确选项</div>
  3171. <div class="select_box2_box">
  3172. <div class="select_box2_img">
  3173. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3174. </div>
  3175. <div class="select_box2_answer">
  3176. <div class="select_answer_title">根据题目选择对应答案</div>
  3177. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3178. <span>{{ checkIndex + 1 }}、</span>
  3179. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3180. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3181. </el-option>
  3182. </el-select>
  3183. </div>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <span slot="footer" class="dialog-footer">
  3190. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3191. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3192. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3193. </span>
  3194. </el-dialog>
  3195. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3196. :before-close="handleClose" class="dialog_diy">
  3197. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3198. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3199. <div class="pjCss" style="width: 100%">
  3200. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3201. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3202. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3203. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3204. <div class="remove" @click="deletRateList(eIndex)"></div>
  3205. <div style="width: 100%; display: flex">
  3206. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3207. <el-rate v-model="eItem.score" disabled></el-rate>
  3208. </div>
  3209. <div class="elist_inptu_text" style="align-items: flex-start">
  3210. <span style="min-width: 100px; text-align: right">描述:</span>
  3211. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. <div class="addToolFun" @click="addRateList()">
  3216. <div class="addToolImg">
  3217. <img src="../../assets/icon/add.png" alt />
  3218. </div>
  3219. <div>添加</div>
  3220. </div>
  3221. </div>
  3222. </div>
  3223. <span slot="footer" class="dialog-footer">
  3224. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3225. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3226. </span>
  3227. </el-dialog>
  3228. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3229. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3230. <div style="height: 100%;">
  3231. <div class="sentenBox" style="height: 100%;">
  3232. <div class="addSen" @click="addSt">添加题目</div>
  3233. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3234. <div class="sentenTopBox">
  3235. <div class="sentenTop" :index="stIndex + 1">
  3236. <div>题目设置</div>
  3237. <div>
  3238. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  3239. </div>
  3240. <div @click="addSen(stIndex)">添加</div>
  3241. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3242. </div>
  3243. </div>
  3244. <div class="cardList">
  3245. <div v-if="st.addSentence.length > 0" class="cardBox">
  3246. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3247. @click="setRightAnswer(s, stIndex, sIndex)">
  3248. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3249. <div>{{ s }}</div>
  3250. </el-tooltip>
  3251. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3252. <img src="../../assets/icon/delete.png" alt="" />
  3253. </div>
  3254. </div>
  3255. </div>
  3256. <div class="card">
  3257. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3258. </div>
  3259. </div>
  3260. <div class="rightCardBox">
  3261. <div>正确顺序</div>
  3262. <div class="rightCardList">
  3263. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3264. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3265. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3266. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3267. <div>{{ r }}</div>
  3268. </el-tooltip>
  3269. </div>
  3270. <div>{{ rIndex + 1 }}</div>
  3271. </div>
  3272. </div>
  3273. <div class="card" v-if="st.rightAnswer.length == 0">
  3274. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3275. </div>
  3276. <div class="card" v-else>
  3277. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3278. </div>
  3279. </div>
  3280. </div>
  3281. </div>
  3282. </div>
  3283. </div>
  3284. <span slot="footer" class="dialog-footer">
  3285. <el-button @click="closePan(47)">取 消</el-button>
  3286. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3287. </span>
  3288. </el-dialog>
  3289. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3290. :before-close="handleClose" class="dialog_diy">
  3291. <el-form>
  3292. <!-- <el-form-item label="文本标题">
  3293. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3294. </el-form-item> -->
  3295. <div>表格内容</div>
  3296. <Table v-model="tableJson.text" @change="change"></Table>
  3297. </el-form>
  3298. <span slot="footer" class="dialog-footer">
  3299. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3300. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3301. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3302. </span>
  3303. </el-dialog>
  3304. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3305. :before-close="handleClose" class="dialog_diy">
  3306. <el-form>
  3307. <!-- <el-form-item label="文本标题">
  3308. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3309. </el-form-item> -->
  3310. <div>文档内容</div>
  3311. <editor-bar v-model="wordJson.text"></editor-bar>
  3312. </el-form>
  3313. <span slot="footer" class="dialog-footer">
  3314. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3315. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3316. </span>
  3317. </el-dialog>
  3318. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3319. :before-close="handleClose" class="dialog_diy">
  3320. <div style="
  3321. width: 100%;
  3322. display: flex;
  3323. flex-direction: row;
  3324. flex-wrap: nowrap;
  3325. align-items: center;
  3326. justify-content: center;
  3327. ">
  3328. <div>班级:</div>
  3329. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3330. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3331. </el-option>
  3332. </el-select>
  3333. </div>
  3334. <span slot="footer" class="dialog-footer">
  3335. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3336. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3337. </span>
  3338. </el-dialog>
  3339. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3340. :before-close="handleClose" class="dialog_diy">
  3341. <div style="
  3342. width: 100%;
  3343. display: flex;
  3344. flex-direction: row;
  3345. flex-wrap: nowrap;
  3346. align-items: center;
  3347. justify-content: center;
  3348. ">
  3349. <div>随机码:</div>
  3350. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3351. </div>
  3352. <span slot="footer" class="dialog-footer">
  3353. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3354. <el-button type="primary" @click="addInvite">确定</el-button>
  3355. </span>
  3356. </el-dialog>
  3357. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3358. :before-close="handleClose" class="dialog_diy">
  3359. <div>
  3360. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3361. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3362. </div>
  3363. <span slot="footer" class="dialog-footer">
  3364. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3365. <el-button type="primary" @click="addPreTime">确定</el-button>
  3366. </span>
  3367. </el-dialog>
  3368. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3369. class="dialog_diy">
  3370. <div>
  3371. <div style="
  3372. width: 100%;
  3373. display: flex;
  3374. flex-direction: row;
  3375. flex-wrap: nowrap;
  3376. align-content: center;
  3377. align-items: center;
  3378. justify-content: space-between;
  3379. ">
  3380. <div style="
  3381. display: flex;
  3382. flex-flow: row nowrap;
  3383. align-items: flex-start;
  3384. width: 100%;
  3385. flex-direction: column;
  3386. flex-wrap: nowrap;
  3387. position: relative;
  3388. ">
  3389. <div class="e_box">
  3390. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3391. <div class="e_card_picture">
  3392. <img src="../../assets/e_picture.png" />
  3393. </div>
  3394. <div class="e_card_name">
  3395. <span>{{ item.title }}</span>
  3396. </div>
  3397. <div class="e_card_btn">
  3398. <span @click="checkEva(item.id, 2)">导入</span>
  3399. </div>
  3400. </div>
  3401. <div class="addEva" @click="openT">
  3402. <img src="../../assets/icon/addEva.png" alt="" />
  3403. </div>
  3404. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3405. 暂无数据
  3406. </div>
  3407. </div>
  3408. </div>
  3409. </div>
  3410. </div>
  3411. <span slot="footer" class="dialog-footer">
  3412. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3413. </span>
  3414. </el-dialog>
  3415. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3416. :before-close="handleClose" class="dialog_diy">
  3417. <div class="groupBox">
  3418. <div v-if="groupJson.group" class="groupContent">
  3419. <div class="groupTitle">请设置小组数量及名称</div>
  3420. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3421. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3422. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3423. <div class="groupBtn">
  3424. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3425. 添加</el-button>
  3426. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3427. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. <div class="groupContent">
  3432. <div class="groupTitle">请设置每组人数</div>
  3433. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3434. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3435. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3436. @change="numberPan"></el-input>
  3437. </div>
  3438. </div>
  3439. <span slot="footer" class="dialog-footer">
  3440. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3441. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3442. </span>
  3443. </el-dialog>
  3444. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3445. :before-close="handleClose" class="dialog_diy">
  3446. <div style="
  3447. width: 100%;
  3448. display: flex;
  3449. flex-direction: row;
  3450. flex-wrap: nowrap;
  3451. align-items: center;
  3452. justify-content: center;
  3453. ">
  3454. <div style="min-width: fit-content;">文件名称:</div>
  3455. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3456. </div>
  3457. <span slot="footer" class="dialog-footer">
  3458. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3459. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3460. </span>
  3461. </el-dialog>
  3462. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3463. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3464. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3465. <div class="change_stageBox">
  3466. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3467. <div class="nt_taskBox">
  3468. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3469. <div class="nt_taskName">
  3470. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3471. <span>{{ t.dyName }}</span>
  3472. </el-tooltip>
  3473. </div>
  3474. </div>
  3475. <div class="moveBtn" v-if="unitJson3.length > 1">
  3476. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3477. </div>
  3478. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. <span slot="footer" class="dialog-footer">
  3483. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3484. <el-button type="primary" @click="updateChange">确定</el-button>
  3485. </span>
  3486. </el-dialog>
  3487. </div>
  3488. </template>
  3489. <script>
  3490. import "../../common/aws-sdk-2.235.1.min.js";
  3491. // import "../../common/aws-sdk-2.99.0.min.js";
  3492. import $ from "jquery";
  3493. import EditorBar from "../../components/tools/wangEnduit";
  3494. import Table from "../../components/tools/table";
  3495. import Mind from "../tools/jsmind2";
  3496. import Time from "../tools/time.vue";
  3497. import Sunburst from "../tools/sunburst";
  3498. import SeeBoard from "../tools/seeBoard";
  3499. import weilaiData from "./components/weilai.js";
  3500. import sourceDialog from "./teacherSource/dialog.vue";
  3501. import interVideo from "./interVideo/index.vue";
  3502. export default {
  3503. components: {
  3504. EditorBar,
  3505. Mind,
  3506. Time,
  3507. Sunburst,
  3508. SeeBoard,
  3509. Table,
  3510. sourceDialog,
  3511. interVideo,
  3512. },
  3513. data() {
  3514. return {
  3515. checkAll: false,
  3516. chooseType: 1,
  3517. checkedCities: [],
  3518. isIndeterminate: true,
  3519. isSysPic: false,
  3520. isSysPic2: false,
  3521. steps: 1,
  3522. nbOrder: 0,
  3523. courseId: "",
  3524. chapToolsType: 0,
  3525. chapTools: [
  3526. {
  3527. tools: [],
  3528. toolDetail: "",
  3529. },
  3530. ],
  3531. line: "",
  3532. lineTitle: "",
  3533. sysPic: [],
  3534. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3535. sentenceList2: [],
  3536. isPushTitleList: [],
  3537. lineCount: 0,
  3538. lineType: 0,
  3539. chapCount: 0,
  3540. courseName: "",
  3541. isTeacherSee: false,
  3542. courseText: "",
  3543. preTime: 0,
  3544. formLabelWidth: "100px",
  3545. choosePicVisible: false,
  3546. sysPicVisible: false,
  3547. sysPicVisible2: false,
  3548. uploadLoading1: false,
  3549. noneBtnImg: false,
  3550. updateBoolean2: false,
  3551. unitIndex: 0,
  3552. taskCount: 0,
  3553. dialogVisible: false,
  3554. dialogVisible1: false,
  3555. dialogVisible2: false,
  3556. dialogVisible3: false,
  3557. dialogVisible4: false,
  3558. dialogVisible5: false,
  3559. dialogVisible6: false,
  3560. dialogVisible7: false,
  3561. dialogVisible8: false,
  3562. dialogVisible9: false,
  3563. dialogVisibleClass: false,
  3564. dialogVisibleMember: false,
  3565. dialogVisibleMp3: false,
  3566. dialogVisibleSelect: false,
  3567. dialogVisibleSentence: false,
  3568. dialogVisibleRate: false,
  3569. dialogVisibleChoice: false,
  3570. dialogVisiblemb: false,
  3571. dialogVisibleInvite: false,
  3572. dialogVisibleSource: false,
  3573. dialogVisibleVideo: false,
  3574. dialogVisibleStageChange: false,
  3575. dialogVisibleupdataVideoT: false,
  3576. isClickColor: 1,
  3577. publicTool: 0,
  3578. searchPeople: "",
  3579. searchTN: "",
  3580. userid: this.$route.query.userid,
  3581. oid: this.$route.query.oid,
  3582. org: this.$route.query.org,
  3583. role: this.$route.query.role,
  3584. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3585. dialogVisibleTable: false,
  3586. dialogVisibleWord: false,
  3587. tableJson: { text: "" },
  3588. wordJson: { text: "" },
  3589. dialogVisibleMoreUpload: false,
  3590. dialogVisiblePreTime: false,
  3591. uploadJson: [],
  3592. classJuri: [],
  3593. gradeList: [],
  3594. cover: [], //课程封面
  3595. myWord: [],
  3596. evaJuri: [],
  3597. evalua: "",
  3598. targetArray: [],
  3599. eTitle: "",
  3600. eJson: {},
  3601. fid: "", //一级
  3602. sid: "", //二级
  3603. tid: "", //二级
  3604. typeMode: 1,
  3605. eJSONNum: 0,
  3606. data: {
  3607. meta: {
  3608. name: "example",
  3609. author: "dd@163.com",
  3610. version: "0.2",
  3611. },
  3612. format: "node_array",
  3613. data: [{ id: "root", isroot: true, topic: "" }],
  3614. },
  3615. askJson: {
  3616. askCount: 1,
  3617. askTitle: "",
  3618. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3619. },
  3620. askJson2: {},
  3621. testJson: {},
  3622. testJson2: {},
  3623. selectJson: {},
  3624. selectJson2: {},
  3625. rateJson: [],
  3626. unitJson2: [],
  3627. unitJson3: [],
  3628. unitJson: [
  3629. {
  3630. dyName: "", //单元标题
  3631. chapterInfo: [
  3632. {
  3633. isread: false,
  3634. chapterid: this.guid(),
  3635. title: "",
  3636. courseName: "",
  3637. taskJson: [
  3638. {
  3639. task: "",
  3640. taskDetail: "",
  3641. chapterData: [],
  3642. toolText: "",
  3643. toolChoose: [
  3644. {
  3645. tool: [],
  3646. toolDetail: "",
  3647. toolType: 0,
  3648. askCount: 1,
  3649. askTitle: "",
  3650. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3651. },
  3652. ],
  3653. isShowTools: false,
  3654. askCount: 1,
  3655. isFold: 0,
  3656. askTitle: "",
  3657. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3658. checkJson: [{ checkCount: [], checkPerent: [] }],
  3659. homeworkList: [],
  3660. },
  3661. ],
  3662. itemCount: 1,
  3663. fileList1: [],
  3664. video: [],
  3665. testData: [],
  3666. pData: [],
  3667. templateArray: [],
  3668. },
  3669. ],
  3670. },
  3671. ],
  3672. studentJuri: [],
  3673. teacherJuri: [],
  3674. checkboxList: [],
  3675. checkboxList2: [],
  3676. checkboxList3: [],
  3677. classSearch: "",
  3678. gradeId: "",
  3679. number: "",
  3680. tTitle: "",
  3681. tdetail: "",
  3682. templateC: {},
  3683. AttText: {},
  3684. AttTextType: 0,
  3685. AttTextIndex: 0,
  3686. cTemplate: "",
  3687. CourseType: [],
  3688. CourseType2: [],
  3689. CourseTypeJson: {},
  3690. courseTypeId: [],
  3691. courseTypeSon: [],
  3692. clearArray: [],
  3693. pTypeCheck: [],
  3694. pTypeCheckName: [],
  3695. loading: false,
  3696. toolType: 0,
  3697. inputShow: true,
  3698. inputShow2: true,
  3699. toolIndex: 0,
  3700. cidType: 0,
  3701. answerQ: "",
  3702. answerQ2: "",
  3703. grade: [],
  3704. grade2: [],
  3705. courseUserid: "",
  3706. timer: null,
  3707. timer2: null,
  3708. pasteTimer: null,
  3709. checkId: "",
  3710. isDelete: 1,
  3711. addindex: 0,
  3712. selectSteps: 1,
  3713. groupJson: {},
  3714. dialogVisibleGroup: false,
  3715. rightBoxHeight: 0,
  3716. ManAarray: [],
  3717. checkBoolean: false,
  3718. inviteCode: [],
  3719. inviteId: "",
  3720. icode: "",
  3721. easyArray: [2, 4],
  3722. sourceData: {},
  3723. updateSourcePan: false,
  3724. videoJson: {},
  3725. isBtnDisplay: false,
  3726. isStepDisplay: false,
  3727. isPasteStage: false,
  3728. isPasteTask: false,
  3729. isPasteChoice: false,
  3730. imageList: [],
  3731. imageloading: false,
  3732. searchImageValue: "",
  3733. ppage: 1,
  3734. };
  3735. },
  3736. directives: {
  3737. autoHeight: {
  3738. update(el, binding) {
  3739. const { value } = binding
  3740. if (value && typeof value === 'number') {
  3741. el.style.height = `${value}px`
  3742. } else {
  3743. el.style.height = 'auto'
  3744. }
  3745. },
  3746. componentUpdated(el) {
  3747. el.style.height = `${el.scrollHeight + 5}px`
  3748. },
  3749. },
  3750. },
  3751. computed: {
  3752. // rightBoxHeight: function () {
  3753. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3754. // },
  3755. offsetLetfPx: function () {
  3756. //addnum可以直接在模板语法里面用,相当于data内的值
  3757. return (
  3758. $(".cru_select")[this.unitIndex] &&
  3759. $(".cru_select")[this.unitIndex].offsetLeft + 5
  3760. );
  3761. },
  3762. getMan2() {
  3763. return function (people) {
  3764. let _people = people;
  3765. let _people2 = "";
  3766. if (this.ManAarray.length) {
  3767. for (var i = 0; i < this.ManAarray.length; i++) {
  3768. if (this.ManAarray[i].userid == people) {
  3769. _people2 = this.ManAarray[i].name;
  3770. break;
  3771. }
  3772. }
  3773. }
  3774. if (people == this.courseUserid) {
  3775. return "";
  3776. }
  3777. return this.ManAarray.length ? _people2 : "";
  3778. };
  3779. },
  3780. getListMan2() {
  3781. return function (list) {
  3782. let _people2 = [];
  3783. if (this.ManAarray.length) {
  3784. for(var j = 0;j < list.length; j++){
  3785. let people = list[j];
  3786. for (var i = 0; i < this.ManAarray.length; i++) {
  3787. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  3788. _people2.push(this.ManAarray[i].name);
  3789. break;
  3790. }
  3791. }
  3792. }
  3793. }
  3794. return this.ManAarray.length ? _people2.join("、") : "";
  3795. };
  3796. },
  3797. isInvite() {
  3798. return function (cid) {
  3799. let array = [];
  3800. for (var i = 0; i < this.inviteCode.length; i++) {
  3801. array.push(this.inviteCode[i].cid);
  3802. }
  3803. return array.indexOf(cid) != -1;
  3804. };
  3805. },
  3806. getInviteCodeC() {
  3807. return function (cid) {
  3808. let array = [];
  3809. for (var i = 0; i < this.inviteCode.length; i++) {
  3810. array.push(this.inviteCode[i].cid);
  3811. }
  3812. return this.inviteCode[array.indexOf(cid)].ic;
  3813. };
  3814. },
  3815. getClassC() {
  3816. return function (c) {
  3817. let _c2 = "";
  3818. if (this.grade.length) {
  3819. for (var i = 0; i < this.grade.length; i++) {
  3820. if (this.grade[i].id == c) {
  3821. _c2 = this.grade[i].name;
  3822. break;
  3823. }
  3824. }
  3825. }
  3826. return this.grade.length ? _c2 : "";
  3827. };
  3828. },
  3829. getListClassC() {
  3830. return function (list) {
  3831. let _c2 = [];
  3832. if (this.grade.length) {
  3833. for(var j = 0; j < list.length; j++){
  3834. let c = list[j]
  3835. for (var i = 0; i < this.grade.length; i++) {
  3836. if (this.grade[i].id == c) {
  3837. _c2.push(this.grade[i].name);
  3838. break;
  3839. }
  3840. }
  3841. }
  3842. }
  3843. return this.grade.length ? _c2.join('、') : "";
  3844. };
  3845. },
  3846. },
  3847. watch: {
  3848. unitIndex(newValue, oldValue) {
  3849. if (this.isDelete == 2) {
  3850. this.isDelete = 1;
  3851. return;
  3852. }
  3853. if (this.cid != "") {
  3854. let _unitIndex = oldValue;
  3855. if (
  3856. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3857. JSON.stringify(this.unitJson[_unitIndex])
  3858. ) {
  3859. this.$refs.rightboxR.scrollTop = 0;
  3860. return;
  3861. }
  3862. let cPan = 1;
  3863. for (
  3864. var j = 0;
  3865. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3866. j++
  3867. ) {
  3868. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3869. j
  3870. ].proVisible = false;
  3871. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3872. j
  3873. ].proVisible2 = false;
  3874. if (
  3875. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3876. .length > 1
  3877. ) {
  3878. for (
  3879. var z = 0;
  3880. z <
  3881. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3882. .length;
  3883. z++
  3884. ) {
  3885. if (
  3886. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3887. .toolChoose[z].tool.length
  3888. ) {
  3889. this.$message.error("请把工具添加完整");
  3890. cPan = 2;
  3891. break;
  3892. }
  3893. }
  3894. }
  3895. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3896. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3897. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3898. (ele) => {
  3899. return ele.value != "";
  3900. }
  3901. );
  3902. }
  3903. }
  3904. if (cPan == 2) {
  3905. this.unitIndex = oldValue;
  3906. return;
  3907. }
  3908. for (var i = 0; i < this.unitJson.length; i++) {
  3909. if (this.addindex != i) {
  3910. delete this.unitJson[i].isUpdate;
  3911. }
  3912. }
  3913. this.$refs.rightboxR.scrollTop = 0;
  3914. this.addindex = -1;
  3915. let params = [
  3916. {
  3917. cid: this.cid,
  3918. chapters: JSON.stringify(this.unitJson),
  3919. uid: this.userid,
  3920. unitIndex: _unitIndex,
  3921. },
  3922. ];
  3923. this.ajax
  3924. .post(this.$store.state.api + "updateWorkNew4", params)
  3925. .then((res) => {
  3926. // this.$message({
  3927. // message: "修改成功",
  3928. // type: "success",
  3929. // });
  3930. // this.courseId = this.cid;
  3931. })
  3932. .catch((err) => {
  3933. this.$message.error("网络不佳");
  3934. console.error(err);
  3935. });
  3936. }
  3937. },
  3938. steps(newValue, old) {
  3939. if (newValue == 4) {
  3940. let cPan = 1;
  3941. for (var i = 0; i < this.unitJson.length; i++) {
  3942. for (
  3943. var j = 0;
  3944. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3945. j++
  3946. ) {
  3947. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  3948. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  3949. if (
  3950. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3951. ) {
  3952. for (
  3953. var z = 0;
  3954. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  3955. z++
  3956. ) {
  3957. if (
  3958. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3959. .length
  3960. ) {
  3961. this.$message.error("请把工具添加完整");
  3962. cPan = 2;
  3963. break;
  3964. }
  3965. }
  3966. }
  3967. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3968. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3969. i
  3970. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3971. return ele.value != "";
  3972. });
  3973. }
  3974. }
  3975. }
  3976. this.inputShow = true;
  3977. if (cPan == 2) {
  3978. this.steps = old;
  3979. return;
  3980. }
  3981. this.goTo(
  3982. "/course?userid=" +
  3983. this.userid +
  3984. "&oid=" +
  3985. this.oid +
  3986. "&org=" +
  3987. this.org +
  3988. "&role=" +
  3989. this.role
  3990. );
  3991. }
  3992. },
  3993. },
  3994. methods: {
  3995. openAI() {
  3996. window.parent.postMessage({ tools: "64" }, "*");
  3997. },
  3998. setMan() {
  3999. // let teacherJuri = this.teacherJuri2;
  4000. this.ManAarray = [];
  4001. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4002. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  4003. _user.push(this.courseUserid || this.userid);
  4004. }
  4005. let params = {
  4006. uid: _user.join(","),
  4007. };
  4008. this.ajax
  4009. .get(this.$store.state.api + "getAllUserById", params)
  4010. .then((res) => {
  4011. let teacherJuri = res.data[0];
  4012. this.ManAarray = teacherJuri;
  4013. })
  4014. .catch((err) => {
  4015. console.error(err);
  4016. });
  4017. },
  4018. previewImg(url) {
  4019. this.$hevueImgPreview(url);
  4020. },
  4021. btnDisplay(bool) {
  4022. this.isBtnDisplay = bool
  4023. },
  4024. stepDisplay(bool) {
  4025. this.isStepDisplay = bool
  4026. },
  4027. scrollChange() {
  4028. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4029. },
  4030. handleCheckAllChange(val) {
  4031. this.checkedCities = val ? cityOptions : [];
  4032. this.isIndeterminate = false;
  4033. },
  4034. handleCheckedCitiesChange(value) {
  4035. let checkedCount = value.length;
  4036. this.checkAll = checkedCount === this.cities.length;
  4037. this.isIndeterminate =
  4038. checkedCount > 0 && checkedCount < this.cities.length;
  4039. },
  4040. addHw(e) {
  4041. var el = e.currentTarget;
  4042. el.getElementsByTagName("input")[0].click();
  4043. },
  4044. change(val) {
  4045. if (this.dialogVisible1) {
  4046. this.tdetail = val
  4047. } else if (this.dialogVisible6) {
  4048. this.AttText.text = val
  4049. } else if (this.dialogVisible2) {
  4050. this.cTemplate = val
  4051. } else if (this.dialogVisibleTable) {
  4052. this.tableJson.text = val
  4053. }
  4054. this.$forceUpdate();
  4055. console.log(val);
  4056. },
  4057. change2(val) {
  4058. console.log(val);
  4059. this.$forceUpdate();
  4060. },
  4061. handleClose(done) {
  4062. done();
  4063. },
  4064. closePan(tool) {
  4065. if (tool == 15) {
  4066. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4067. this.dialogVisible8 = false
  4068. } else {
  4069. this.closeConfirm(tool);
  4070. }
  4071. } else if (tool == 4) {
  4072. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4073. this.dialogVisible5 = false
  4074. } else {
  4075. this.closeConfirm(tool);
  4076. }
  4077. } else if (tool == 45) {
  4078. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4079. this.dialogVisibleChoice = false
  4080. } else {
  4081. this.closeConfirm(tool);
  4082. }
  4083. } else if (tool == 41) {
  4084. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4085. this.dialogVisibleSelect = false
  4086. } else {
  4087. this.closeConfirm(tool);
  4088. }
  4089. } else if (tool == 47) {
  4090. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4091. this.dialogVisibleSentence = false
  4092. } else {
  4093. this.closeConfirm(tool);
  4094. }
  4095. }
  4096. },
  4097. closeConfirm(tool) {
  4098. this
  4099. .$confirm("是否保存已编辑内容?", "提示", {
  4100. confirmButtonText: "保存",
  4101. cancelButtonText: "不保存",
  4102. type: "warning",
  4103. })
  4104. .then(() => {
  4105. if (tool == 15) {
  4106. this.addAnswer();
  4107. } else if (tool == 4) {
  4108. this.addAsk();
  4109. } else if (tool == 45) {
  4110. this.addTest();
  4111. } else if (tool == 41) {
  4112. this.addSelectAnswer();
  4113. } else if (tool == 47) {
  4114. this.addSentenceTool();
  4115. }
  4116. })
  4117. .catch(() => {
  4118. if (tool == 15) {
  4119. this.dialogVisible8 = false;
  4120. } else if (tool == 4) {
  4121. this.dialogVisible5 = false;
  4122. } else if (tool == 45) {
  4123. this.dialogVisibleChoice = false;
  4124. } else if (tool == 41) {
  4125. this.dialogVisibleSelect = false;
  4126. } else if (tool == 47) {
  4127. this.dialogVisibleSentence = false;
  4128. }
  4129. });
  4130. },
  4131. imgChange2(i, j) {
  4132. var _tmp = this.testJson.testJson[i].checkList[j];
  4133. this.noneBtnImg = _tmp.length >= 1;
  4134. },
  4135. imgChange3(i) {
  4136. var _tmp = this.testJson.testJson[i];
  4137. this.noneBtnImg = _tmp.length >= 1;
  4138. },
  4139. imgChange1(file, fileList, type, itemTaskIndex) {
  4140. if (type == 1) {
  4141. var _tmp = this.cover;
  4142. } else if (
  4143. type == 2 ||
  4144. type == 3 ||
  4145. type == 6 ||
  4146. type == 7 ||
  4147. type == 8
  4148. ) {
  4149. var _tmp =
  4150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4151. .chapterData;
  4152. } else if (type == 4) {
  4153. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4154. } else {
  4155. var _tmp =
  4156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4157. .homeworkList;
  4158. }
  4159. this.noneBtnImg = _tmp.length >= 1;
  4160. },
  4161. goTo(path) {
  4162. this.$router.push(path);
  4163. },
  4164. guid() {
  4165. var _num,
  4166. i,
  4167. _guid = "";
  4168. for (i = 0; i < 32; i++) {
  4169. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4170. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4171. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4172. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4173. _guid += "-";
  4174. }
  4175. }
  4176. return _guid;
  4177. },
  4178. retrunCourse() {
  4179. this
  4180. .$confirm("是否保存已编辑内容?", "提示", {
  4181. confirmButtonText: "保存",
  4182. cancelButtonText: "不保存",
  4183. type: "warning",
  4184. })
  4185. .then(() => {
  4186. if (this.cid == "" || this.cid == undefined) {
  4187. if (this.courseName == "") {
  4188. this.$message.error("请补充填写课程名称");
  4189. return;
  4190. } else {
  4191. this.addWork();
  4192. }
  4193. this.steps = 4
  4194. } else {
  4195. if (this.courseName == "") {
  4196. this.$message.error("请补充填写课程名称");
  4197. return;
  4198. } else {
  4199. if (this.userid != this.courseUserid && this.role != "1") {
  4200. this.updateWork2();
  4201. } else {
  4202. this.updateWork();
  4203. }
  4204. this.steps = 4
  4205. }
  4206. }
  4207. })
  4208. .catch(() => {
  4209. this.goTo(
  4210. "/course?userid=" +
  4211. this.userid +
  4212. "&oid=" +
  4213. this.oid +
  4214. "&org=" +
  4215. this.org +
  4216. "&role=" +
  4217. this.role
  4218. );
  4219. });
  4220. },
  4221. lastSteps() {
  4222. if (this.steps == 4) {
  4223. this.goTo(
  4224. "/course?userid=" +
  4225. this.userid +
  4226. "&oid=" +
  4227. this.oid +
  4228. "&org=" +
  4229. this.org +
  4230. "&role=" +
  4231. this.role
  4232. );
  4233. } else {
  4234. if (this.cidType == 0) {
  4235. this.steps--;
  4236. if (this.steps == 1) {
  4237. setTimeout(() => {
  4238. this.checkEva(this.checkId);
  4239. }, 100);
  4240. }
  4241. } else {
  4242. if (this.steps == 3) {
  4243. this.steps = 1;
  4244. setTimeout(() => {
  4245. this.checkEva(this.checkId);
  4246. }, 100);
  4247. }
  4248. }
  4249. }
  4250. },
  4251. navSteps(s) {
  4252. if (this.courseName == "") {
  4253. this.$message.error("请补充填写课程名称");
  4254. return;
  4255. }
  4256. if (this.cidType == 0) {
  4257. if (this.steps == 1) {
  4258. if (this.cid == "" || this.cid == undefined) {
  4259. this.addWork();
  4260. } else {
  4261. if (this.userid != this.courseUserid && this.role != "1") {
  4262. // this.updateWork2();
  4263. } else {
  4264. this.updateWork();
  4265. }
  4266. }
  4267. }
  4268. if (s == 1) {
  4269. this.steps = 1;
  4270. setTimeout(() => {
  4271. this.checkEva(this.checkId);
  4272. }, 100);
  4273. }
  4274. if (s == 2) {
  4275. this.steps = 2;
  4276. }
  4277. if (s == 3) {
  4278. this.cTemplate = this.templateC.content;
  4279. this.dialogVisible2 = false;
  4280. this.steps = 3;
  4281. setTimeout(() => {
  4282. this.checkEva(this.checkId);
  4283. }, 1000);
  4284. }
  4285. } else {
  4286. if (this.steps == 1) {
  4287. if (this.cid == "" || this.cid == undefined) {
  4288. this.addWork();
  4289. } else {
  4290. if (this.userid != this.courseUserid && this.role != "1") {
  4291. // this.updateWork2();
  4292. } else {
  4293. this.updateWork();
  4294. }
  4295. }
  4296. }
  4297. if (s == 1) {
  4298. this.steps = 1;
  4299. setTimeout(() => {
  4300. this.checkEva(this.checkId);
  4301. }, 100);
  4302. }
  4303. if (s == 3) {
  4304. this.cTemplate = this.templateC.content;
  4305. this.dialogVisible2 = false;
  4306. this.steps = 3;
  4307. setTimeout(() => {
  4308. this.checkEva(this.checkId);
  4309. }, 1000);
  4310. }
  4311. }
  4312. this.$refs.stepBox.scrollTop = 0;
  4313. },
  4314. nextSteps() {
  4315. if (this.cidType == 1) {
  4316. if (this.steps == 1) {
  4317. if (this.courseName != "") {
  4318. this.steps = 3;
  4319. setTimeout(() => {
  4320. this.checkEva(this.checkId);
  4321. }, 1000);
  4322. if (this.cid == "" || this.cid == undefined) {
  4323. this.addWork();
  4324. } else {
  4325. if (this.userid != this.courseUserid && this.role != "1") {
  4326. // this.updateWork2();
  4327. } else {
  4328. this.updateWork();
  4329. }
  4330. }
  4331. } else {
  4332. this.$message.error("请补充填写课程名称");
  4333. return;
  4334. }
  4335. } else if (this.steps == 3) {
  4336. if (this.cid == "" || this.cid == undefined) {
  4337. if (this.courseName == "") {
  4338. this.$message.error("请补充填写课程名称");
  4339. return;
  4340. } else {
  4341. this.addWork();
  4342. this.steps++;
  4343. }
  4344. } else {
  4345. if (this.courseName == "") {
  4346. this.$message.error("请补充填写课程名称");
  4347. return;
  4348. } else {
  4349. if (this.userid != this.courseUserid && this.role != "1") {
  4350. this.updateWork2();
  4351. } else {
  4352. this.updateWork();
  4353. }
  4354. this.steps++;
  4355. }
  4356. }
  4357. }
  4358. } else {
  4359. if (this.steps == 1) {
  4360. if (this.courseName != "") {
  4361. if (this.cid == "" || this.cid == undefined) {
  4362. this.addWork();
  4363. } else {
  4364. if (this.userid != this.courseUserid && this.role != "1") {
  4365. // this.updateWork2();
  4366. } else {
  4367. this.updateWork();
  4368. }
  4369. }
  4370. this.steps++;
  4371. } else {
  4372. this.$message.error("请补充填写课程名称");
  4373. return;
  4374. }
  4375. } else if (this.steps == 2) {
  4376. if (this.templateC.id != "" || this.templateC.id != undefined) {
  4377. this.cTemplate = this.templateC.content;
  4378. }
  4379. this.dialogVisible2 = false;
  4380. this.steps++;
  4381. setTimeout(() => {
  4382. this.checkEva(this.checkId);
  4383. }, 1000);
  4384. } else if (this.steps == 3) {
  4385. if (this.cid == "" || this.cid == undefined) {
  4386. if (this.courseName == "") {
  4387. this.$message.error("请补充填写课程名称");
  4388. return;
  4389. } else {
  4390. this.addWork();
  4391. this.steps++;
  4392. }
  4393. } else {
  4394. if (this.courseName == "") {
  4395. this.$message.error("请补充填写课程名称");
  4396. return;
  4397. } else {
  4398. if (this.userid != this.courseUserid && this.role != "1") {
  4399. this.updateWork2();
  4400. } else {
  4401. this.updateWork();
  4402. }
  4403. this.steps++;
  4404. }
  4405. }
  4406. }
  4407. }
  4408. this.$refs.stepBox.scrollTop = 0;
  4409. },
  4410. unitSet(i) {
  4411. this.unitIndex = i;
  4412. // this.$refs.rightboxR.scrollTop = 0;
  4413. this.$refs.unitBox.scrollTop = 0
  4414. },
  4415. time() {
  4416. if (!this.now) {
  4417. this.now = new Date().getTime();
  4418. return true;
  4419. } else {
  4420. let time = new Date().getTime();
  4421. if (time - this.now > 3000) {
  4422. this.now = time;
  4423. return true;
  4424. } else {
  4425. return false;
  4426. }
  4427. }
  4428. },
  4429. deleteUnit(i) {
  4430. var _this = this;
  4431. if (_this.time()) {
  4432. _this
  4433. .$confirm("确定删除此单元吗?", "提示", {
  4434. confirmButtonText: "确定",
  4435. cancelButtonText: "取消",
  4436. type: "warning",
  4437. })
  4438. .then(() => {
  4439. _this.isDelete = 2;
  4440. // _this.unitIndex = _this.unitIndex - 1;
  4441. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4442. // _this.$message.success("删除成功");
  4443. })
  4444. .catch(() => {
  4445. return;
  4446. });
  4447. }
  4448. },
  4449. deleteWork(chapid) {
  4450. let params = [
  4451. {
  4452. cid: this.cid,
  4453. chapters: JSON.stringify(this.unitJson),
  4454. uid: this.userid,
  4455. chapid: chapid,
  4456. },
  4457. ];
  4458. this.ajax
  4459. .post(this.$store.state.api + "deleteWork", params)
  4460. .then((res) => {
  4461. this.$message({
  4462. message: "删除成功",
  4463. type: "success",
  4464. });
  4465. this.unitJson.splice(this.unitIndex, 1);
  4466. this.unitIndex = this.unitIndex - 1;
  4467. })
  4468. .catch((err) => {
  4469. this.$message.error("网络不佳");
  4470. console.error(err);
  4471. });
  4472. },
  4473. deleteTool(itemTaskIndex, i) {
  4474. var _this = this;
  4475. if (_this.time()) {
  4476. _this
  4477. .$confirm("确定删除此工具吗?", "提示", {
  4478. confirmButtonText: "确定",
  4479. cancelButtonText: "取消",
  4480. type: "warning",
  4481. })
  4482. .then(() => {
  4483. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4484. itemTaskIndex
  4485. ].toolChoose.splice(i, 1);
  4486. _this.$message.success("删除成功");
  4487. })
  4488. .catch(() => {
  4489. return;
  4490. });
  4491. }
  4492. },
  4493. deleteSentence(i) {
  4494. var _this = this;
  4495. _this
  4496. .$confirm("确定删除此题目吗?", "提示", {
  4497. confirmButtonText: "确定",
  4498. cancelButtonText: "取消",
  4499. type: "warning",
  4500. })
  4501. .then(() => {
  4502. _this.sentenceList.splice(i, 1);
  4503. _this.$message.success("删除成功");
  4504. })
  4505. .catch(() => {
  4506. return;
  4507. });
  4508. },
  4509. deleteS(s, i, j) {
  4510. this.sentenceList[i].addSentence.splice(j, 1);
  4511. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4512. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4513. this.sentenceList[i].rightAnswer.splice(a, 1);
  4514. }
  4515. },
  4516. openT() {
  4517. window.parent.postMessage({ tools: "25" }, "*");
  4518. },
  4519. deleteTask(i) {
  4520. var _this = this;
  4521. if (_this.time()) {
  4522. _this
  4523. .$confirm(
  4524. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  4525. 1 ==
  4526. i
  4527. ? "确定删除此任务吗?"
  4528. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  4529. "提示",
  4530. {
  4531. confirmButtonText: "确定",
  4532. cancelButtonText: "取消",
  4533. type: "warning",
  4534. }
  4535. )
  4536. .then(() => {
  4537. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4538. i,
  4539. 1
  4540. );
  4541. _this.$message.success("删除成功");
  4542. })
  4543. .catch(() => {
  4544. return;
  4545. });
  4546. }
  4547. },
  4548. handlePictureCardPreview(file) {
  4549. this.dialogImageUrl = file.url;
  4550. },
  4551. clean(i, c) {
  4552. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4553. },
  4554. handle_remove1(file, fileList, type) {
  4555. var _tmp = this.cover;
  4556. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4557. // if (_tmp[i].uid == file.uid) {
  4558. // _tmp.splice(i, 1);
  4559. // break;
  4560. // }
  4561. // this.cover = _tmp;
  4562. // }
  4563. this.cover = [];
  4564. this.noneBtnImg = this.cover.length >= 1;
  4565. this.isSysPic = false;
  4566. this.isSysPic2 = false;
  4567. this.$forceUpdate();
  4568. },
  4569. addImg(e) {
  4570. var el = e.currentTarget;
  4571. el.getElementsByTagName("input")[0].click();
  4572. e.target.value = "";
  4573. },
  4574. addChaptersTools(i) {
  4575. this.chapTools = [
  4576. {
  4577. tools: [],
  4578. toolDetail: "",
  4579. },
  4580. ];
  4581. this.chapCount = i;
  4582. this.dialogVisible4 = true;
  4583. },
  4584. isNoFinsh() {
  4585. this.$message.warning("功能正在开发中");
  4586. },
  4587. addAttText(i) {
  4588. this.AttText = {
  4589. title: "",
  4590. text: "",
  4591. };
  4592. this.taskCount = i;
  4593. this.AttTextType = 0;
  4594. this.$forceUpdate();
  4595. this.dialogVisible6 = true;
  4596. setTimeout(() => {
  4597. this.$refs['fuInput'].focus();
  4598. }, 100);
  4599. },
  4600. openLine(i) {
  4601. this.line = "";
  4602. this.lineCount = i;
  4603. this.lineType = 0;
  4604. this.$forceUpdate();
  4605. this.dialogVisible7 = true;
  4606. },
  4607. pasteLine(i) {
  4608. navigator.clipboard
  4609. .readText()
  4610. .then((v) => {
  4611. console.log("获取剪贴板成功:", v);
  4612. const html = v;
  4613. const regex = /src="(.*?)"/g;
  4614. const match = regex.exec(html);
  4615. if (match && match[1]) {
  4616. console.log(match[1]);
  4617. this.$message.success("粘贴成功");
  4618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4619. i
  4620. ].chapterData.push({
  4621. name: "链接",
  4622. title: "嵌入代码",
  4623. url: match[1],
  4624. type: 8,
  4625. });
  4626. } else {
  4627. // console.log("未找到包含 src 属性的 iframe");
  4628. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  4629. }
  4630. })
  4631. .catch((v) => {
  4632. console.log("获取剪贴板失败: ", v);
  4633. });
  4634. },
  4635. openSource(i) {
  4636. this.lineCount = i;
  4637. this.sourceData = {};
  4638. this.dialogVisibleSource = true;
  4639. this.updateSourcePan = false;
  4640. },
  4641. addSource() {
  4642. if (!Object.keys(this.sourceData).length) {
  4643. this.$message.error("请选择要上传的资源");
  4644. return;
  4645. }
  4646. let keys = Object.keys(this.sourceData);
  4647. for (var i = 0; i < keys.length; i++) {
  4648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4649. this.lineCount
  4650. ].chapterData.push({
  4651. name: "链接",
  4652. title: this.sourceData[keys[i]].name,
  4653. url: this.sourceData[keys[i]].url,
  4654. type: 14,
  4655. id: keys[i]
  4656. });
  4657. }
  4658. this.$forceUpdate();
  4659. this.dialogVisibleSource = false;
  4660. },
  4661. updateSource() {
  4662. if (!Object.keys(this.sourceData).length) {
  4663. this.$message.error("请选择要上传的资源");
  4664. return;
  4665. }
  4666. let keys = Object.keys(this.sourceData);
  4667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4668. this.taskCount
  4669. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  4670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4671. this.taskCount
  4672. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  4673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4674. this.taskCount
  4675. ].chapterData[this.lineCount].id = keys[0];
  4676. this.updateSourcePan = false;
  4677. this.$forceUpdate();
  4678. this.dialogVisibleSource = false;
  4679. },
  4680. deleteM(i, j) {
  4681. this.testJson.testJson[i].timuList.splice(j, 1);
  4682. },
  4683. beforeUploadTiMu(event, i) {
  4684. const loading = this.openLoading();
  4685. var file = event.target.files[0];
  4686. var credentials = {
  4687. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4688. secretAccessKey: "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",
  4689. }; //秘钥形式的登录上传
  4690. window.AWS.config.update(credentials);
  4691. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4692. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4693. var _this = this;
  4694. if (file) {
  4695. var params = {
  4696. Key:
  4697. file.name.split(".")[0] +
  4698. new Date().getTime() +
  4699. "." +
  4700. file.name.split(".")[file.name.split(".").length - 1],
  4701. ContentType: file.type,
  4702. Body: file,
  4703. "Access-Control-Allow-Credentials": "*",
  4704. ACL: "public-read",
  4705. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4706. var options = {
  4707. partSize: 2048 * 1024 * 1024,
  4708. queueSize: 2,
  4709. leavePartsOnError: true,
  4710. };
  4711. bucket
  4712. .upload(params, options)
  4713. .on("httpUploadProgress", function (evt) {
  4714. //这里可以写进度条
  4715. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4716. })
  4717. .send(function (err, data) {
  4718. loading.close();
  4719. if (err) {
  4720. _this.$message.error("上传失败");
  4721. } else {
  4722. if (_this.testJson.testJson[i].timuList) {
  4723. _this.testJson.testJson[i].timuList.push({
  4724. src: data.Location,
  4725. });
  4726. } else {
  4727. _this.testJson.testJson[i].timuList = [];
  4728. _this.testJson.testJson[i].timuList.push({
  4729. src: data.Location,
  4730. });
  4731. }
  4732. _this.imgChange3(i);
  4733. _this.$forceUpdate();
  4734. }
  4735. });
  4736. }
  4737. },
  4738. beforeUploadTi(event, i, j) {
  4739. const loading = this.openLoading();
  4740. var file = event.target.files[0];
  4741. var credentials = {
  4742. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4743. secretAccessKey: "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",
  4744. }; //秘钥形式的登录上传
  4745. window.AWS.config.update(credentials);
  4746. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4747. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4748. var _this = this;
  4749. if (file) {
  4750. var params = {
  4751. Key:
  4752. file.name.split(".")[0] +
  4753. new Date().getTime() +
  4754. "." +
  4755. file.name.split(".")[file.name.split(".").length - 1],
  4756. ContentType: file.type,
  4757. Body: file,
  4758. "Access-Control-Allow-Credentials": "*",
  4759. ACL: "public-read",
  4760. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4761. var options = {
  4762. partSize: 2048 * 1024 * 1024,
  4763. queueSize: 2,
  4764. leavePartsOnError: true,
  4765. };
  4766. bucket
  4767. .upload(params, options)
  4768. .on("httpUploadProgress", function (evt) {
  4769. //这里可以写进度条
  4770. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4771. })
  4772. .send(function (err, data) {
  4773. loading.close();
  4774. if (err) {
  4775. _this.$message.error("上传失败");
  4776. } else {
  4777. _this.testJson.testJson[i].checkList[j] = {};
  4778. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4779. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4780. _this.imgChange2(i, j);
  4781. _this.$forceUpdate();
  4782. }
  4783. });
  4784. }
  4785. },
  4786. beforeUpload1(event, type) {
  4787. // const loading = this.openLoading();
  4788. var file = event.target.files[0];
  4789. var credentials = {
  4790. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4791. secretAccessKey: "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",
  4792. }; //秘钥形式的登录上传
  4793. window.AWS.config.update(credentials);
  4794. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4795. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4796. var _this = this;
  4797. if (file) {
  4798. var params = {
  4799. Key:
  4800. file.name.split(".")[0] +
  4801. new Date().getTime() +
  4802. "." +
  4803. file.name.split(".")[file.name.split(".").length - 1],
  4804. ContentType: file.type,
  4805. Body: file,
  4806. "Access-Control-Allow-Credentials": "*",
  4807. ACL: "public-read",
  4808. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4809. var options = {
  4810. partSize: 2048 * 1024 * 1024,
  4811. queueSize: 2,
  4812. leavePartsOnError: true,
  4813. };
  4814. bucket
  4815. .upload(params, options)
  4816. .on("httpUploadProgress", function (evt) {
  4817. //这里可以写进度条
  4818. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4819. })
  4820. .send(function (err, data) {
  4821. // loading.close();
  4822. if (err) {
  4823. // var a = _this.$refs.upload1.uploadFiles;
  4824. // a.splice(a.length - 1, a.length);
  4825. _this.$message.error("上传失败");
  4826. } else {
  4827. _this.cover.push({
  4828. name: file.name,
  4829. url: data.Location,
  4830. uid: file.uid,
  4831. });
  4832. _this.imgChange1(null, null, 1, null);
  4833. _this.choosePicVisible = false;
  4834. console.log(data.Location);
  4835. }
  4836. });
  4837. }
  4838. },
  4839. beforeUploadSelect(event, type) {
  4840. // const loading = this.openLoading();
  4841. var file = event.target.files[0];
  4842. var credentials = {
  4843. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4844. secretAccessKey: "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",
  4845. }; //秘钥形式的登录上传
  4846. window.AWS.config.update(credentials);
  4847. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4848. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4849. var _this = this;
  4850. if (file) {
  4851. var params = {
  4852. Key:
  4853. file.name.split(".")[0] +
  4854. new Date().getTime() +
  4855. "." +
  4856. file.name.split(".")[file.name.split(".").length - 1],
  4857. ContentType: file.type,
  4858. Body: file,
  4859. "Access-Control-Allow-Credentials": "*",
  4860. ACL: "public-read",
  4861. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4862. var options = {
  4863. partSize: 2048 * 1024 * 1024,
  4864. queueSize: 2,
  4865. leavePartsOnError: true,
  4866. };
  4867. bucket
  4868. .upload(params, options)
  4869. .on("httpUploadProgress", function (evt) {
  4870. //这里可以写进度条
  4871. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4872. })
  4873. .send(function (err, data) {
  4874. // loading.close();
  4875. if (err) {
  4876. _this.$message.error("上传失败");
  4877. } else {
  4878. _this.selectJson.url = data.Location;
  4879. console.log(data.Location);
  4880. }
  4881. });
  4882. }
  4883. },
  4884. chooseSysPic(p) {
  4885. this.cover = []
  4886. setTimeout(() => {
  4887. this.cover[0] = {
  4888. name: "系统图片.png",
  4889. url: p,
  4890. };
  4891. this.imgChange1(null, null, 1, null);
  4892. this.$forceUpdate();
  4893. }, 0);
  4894. this.isSysPic = true;
  4895. this.isSysPic2 = false;
  4896. this.sysPicVisible = false;
  4897. this.$forceUpdate();
  4898. },
  4899. chooseSysPic2(p) {
  4900. this.cover = []
  4901. setTimeout(() => {
  4902. this.cover[0] = {
  4903. name: "网络图片.png",
  4904. url: p,
  4905. };
  4906. this.imgChange1(null, null, 1, null);
  4907. this.$forceUpdate();
  4908. }, 0);
  4909. this.isSysPic2 = true;
  4910. this.isSysPic = false;
  4911. this.sysPicVisible2 = false;
  4912. this.$forceUpdate();
  4913. },
  4914. beforeUpload(data) {
  4915. this.$refs.upload1.uploadFiles;
  4916. this.uploadLoading1 = true;
  4917. var file = data.file;
  4918. var credentials = {
  4919. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4920. secretAccessKey: "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",
  4921. }; //秘钥形式的登录上传
  4922. window.AWS.config.update(credentials);
  4923. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4924. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4925. var _this = this;
  4926. if (file) {
  4927. var params = {
  4928. Key:
  4929. file.name.split(".")[0] +
  4930. new Date().getTime() +
  4931. "." +
  4932. file.name.split(".")[file.name.split(".").length - 1],
  4933. ContentType: file.type,
  4934. Body: file,
  4935. "Access-Control-Allow-Credentials": "*",
  4936. ACL: "public-read",
  4937. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4938. var options = {
  4939. partSize: 2048 * 1024 * 1024,
  4940. queueSize: 2,
  4941. leavePartsOnError: true,
  4942. };
  4943. bucket
  4944. .upload(params, options)
  4945. .on("httpUploadProgress", function (evt) {
  4946. //这里可以写进度条
  4947. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4948. })
  4949. .send(function (err, data) {
  4950. _this.uploadLoading1 = false;
  4951. if (err) {
  4952. // var a = _this.$refs.upload1.uploadFiles;
  4953. // a.splice(a.length - 1, a.length);
  4954. _this.$message.error("上传失败");
  4955. } else {
  4956. //上传成功处理
  4957. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4958. name: file.name,
  4959. url: data.Location,
  4960. uid: file.uid,
  4961. });
  4962. _this.imgChange();
  4963. console.log(data.Location);
  4964. }
  4965. });
  4966. }
  4967. },
  4968. onExceed() {
  4969. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4970. },
  4971. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4972. // const loading = this.openLoading();
  4973. var file = event.target.files[0];
  4974. var credentials = {
  4975. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4976. secretAccessKey: "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",
  4977. }; //秘钥形式的登录上传
  4978. window.AWS.config.update(credentials);
  4979. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4980. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4981. var _this = this;
  4982. if (type == 3) {
  4983. var b = [
  4984. "DOC",
  4985. "DOCX",
  4986. "DOCM",
  4987. "DOTM",
  4988. "DOTX",
  4989. "PPTX",
  4990. "PPSX",
  4991. "PPT",
  4992. "PPS",
  4993. "PPTM",
  4994. "POTM",
  4995. "PPAM",
  4996. "POTX",
  4997. "PPSM",
  4998. ];
  4999. if (
  5000. b.indexOf(
  5001. file.name
  5002. .split(".")
  5003. [file.name.split(".").length - 1].toLocaleUpperCase()
  5004. ) != -1
  5005. ) {
  5006. if (file.size / 1024 / 1024 > 80) {
  5007. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5008. this.inputShow = true;
  5009. // var a = _this.$refs.upload1.uploadFiles;
  5010. // a.splice(a.length - 1, a.length);
  5011. // loading.close();
  5012. return;
  5013. }
  5014. } else if (
  5015. file.name
  5016. .split(".")
  5017. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5018. ) {
  5019. if (file.size / 1024 / 1024 > 80) {
  5020. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5021. this.inputShow = true;
  5022. // var a = _this.$refs.upload1.uploadFiles;
  5023. // a.splice(a.length - 1, a.length);
  5024. // loading.close();
  5025. return;
  5026. }
  5027. }
  5028. }
  5029. this.inputShow = false;
  5030. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5031. itemTaskIndex
  5032. ].progress = 0;
  5033. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5034. itemTaskIndex
  5035. ].proVisible = true;
  5036. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5037. itemTaskIndex
  5038. ].isFinishSize = 0;
  5039. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5040. itemTaskIndex
  5041. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5042. _this.$forceUpdate();
  5043. if (file) {
  5044. var params = {
  5045. Key:
  5046. file.name.split(".")[0] +
  5047. new Date().getTime() +
  5048. "." +
  5049. file.name.split(".")[file.name.split(".").length - 1],
  5050. ContentType: file.type,
  5051. Body: file,
  5052. "Access-Control-Allow-Credentials": "*",
  5053. ACL: "public-read",
  5054. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5055. var options = {
  5056. partSize: 2048 * 1024 * 1024,
  5057. queueSize: 2,
  5058. leavePartsOnError: true,
  5059. };
  5060. bucket
  5061. .upload(params, options)
  5062. .on("httpUploadProgress", function (evt) {
  5063. //这里可以写进度条
  5064. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5065. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5066. itemTaskIndex
  5067. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5068. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5069. itemTaskIndex
  5070. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5071. _this.$forceUpdate();
  5072. })
  5073. .send(function (err, data) {
  5074. // loading.close();
  5075. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5076. itemTaskIndex
  5077. ].progress = 100;
  5078. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5079. itemTaskIndex
  5080. ].isFinishSize =
  5081. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5082. itemTaskIndex
  5083. ].isAllSize;
  5084. _this.$forceUpdate();
  5085. setTimeout(() => {
  5086. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5087. itemTaskIndex
  5088. ].proVisible = false;
  5089. _this.$forceUpdate();
  5090. }, 1000);
  5091. _this.inputShow = true;
  5092. if (err) {
  5093. // var a = _this.$refs.upload1.uploadFiles;
  5094. // a.splice(a.length - 1, a.length);
  5095. _this.$message.error("上传失败");
  5096. } else {
  5097. if (type == 13) {
  5098. let _type = 2;
  5099. var imgA = [
  5100. "png",
  5101. "jpg",
  5102. "jpeg",
  5103. "bmp",
  5104. "gif",
  5105. "webp",
  5106. "psd",
  5107. "svg",
  5108. "tiff",
  5109. ];
  5110. var fileA = [
  5111. "PDF",
  5112. "DOC",
  5113. "DOCX",
  5114. "DOCM",
  5115. "DOTM",
  5116. "DOTX",
  5117. "PPTX",
  5118. "PPSX",
  5119. "PPT",
  5120. "PPS",
  5121. "PPTM",
  5122. "POTM",
  5123. "PPAM",
  5124. "POTX",
  5125. "PPSM",
  5126. "XLSX",
  5127. "XLS",
  5128. ];
  5129. var videoA = [
  5130. "AVI",
  5131. "NAVI",
  5132. "MPEG",
  5133. "ASF",
  5134. "MOV",
  5135. "WMV",
  5136. "3GP",
  5137. "RM",
  5138. "RMVB",
  5139. "FLV",
  5140. "F4V",
  5141. "H.264",
  5142. "H.265",
  5143. "REAL VIDEO",
  5144. "MKV",
  5145. "WebM",
  5146. "HDDVD",
  5147. "MP4",
  5148. "MPG",
  5149. "M4V",
  5150. "MGV",
  5151. "OGV",
  5152. "QTM",
  5153. "STR",
  5154. "AMC",
  5155. "DVX",
  5156. "EVO",
  5157. "DAT",
  5158. "OGG",
  5159. "OGM",
  5160. ];
  5161. if (
  5162. fileA.indexOf(
  5163. data.Location.split(".")[
  5164. data.Location.split(".").length - 1
  5165. ].toLocaleUpperCase()
  5166. ) != -1
  5167. ) {
  5168. _type = 3;
  5169. } else if (
  5170. videoA.indexOf(
  5171. data.Location.split(".")[
  5172. data.Location.split(".").length - 1
  5173. ].toLocaleUpperCase()
  5174. ) != -1
  5175. ) {
  5176. _type = 2;
  5177. } else if (
  5178. imgA.indexOf(
  5179. data.Location.split(".")[
  5180. data.Location.split(".").length - 1
  5181. ].toLocaleLowerCase()
  5182. ) != -1
  5183. ) {
  5184. _type = 13;
  5185. } else {
  5186. _type = 12;
  5187. }
  5188. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5189. itemTaskIndex
  5190. ].chapterData.push({
  5191. name: file.name,
  5192. url: data.Location,
  5193. uid: file.uid,
  5194. type: _type,
  5195. });
  5196. _this.imgChange1(null, null, _type, itemTaskIndex);
  5197. } else if (type == 2 || type == 3 || type == 12) {
  5198. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5199. itemTaskIndex
  5200. ].chapterData.push({
  5201. name: file.name,
  5202. url: data.Location,
  5203. uid: file.uid,
  5204. type: type,
  5205. });
  5206. _this.imgChange1(null, null, type, itemTaskIndex);
  5207. } else if (type == 4) {
  5208. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5209. itemTaskIndex
  5210. ].fileList1.push({
  5211. name: file.name,
  5212. url: data.Location,
  5213. uid: file.uid,
  5214. });
  5215. _this.imgChange1(null, null, type, itemTaskIndex);
  5216. } else if (type == 5) {
  5217. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5218. itemTaskIndex
  5219. ].homeworkList.push({
  5220. name: file.name,
  5221. url: data.Location,
  5222. uid: file.uid,
  5223. });
  5224. _this.imgChange1(null, null, type, itemTaskIndex);
  5225. }
  5226. console.log(data.Location);
  5227. }
  5228. });
  5229. }
  5230. },
  5231. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5232. // const loading = this.openLoading();
  5233. var file = event.target.files[0];
  5234. var credentials = {
  5235. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5236. secretAccessKey: "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",
  5237. }; //秘钥形式的登录上传
  5238. window.AWS.config.update(credentials);
  5239. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5240. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5241. var _this = this;
  5242. if (type == 3) {
  5243. var b = [
  5244. "DOC",
  5245. "DOCX",
  5246. "DOCM",
  5247. "DOTM",
  5248. "DOTX",
  5249. "PPTX",
  5250. "PPSX",
  5251. "PPT",
  5252. "PPS",
  5253. "PPTM",
  5254. "POTM",
  5255. "PPAM",
  5256. "POTX",
  5257. "PPSM",
  5258. ];
  5259. if (
  5260. b.indexOf(
  5261. file.name
  5262. .split(".")
  5263. [file.name.split(".").length - 1].toLocaleUpperCase()
  5264. ) != -1
  5265. ) {
  5266. if (file.size / 1024 / 1024 > 80) {
  5267. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5268. this.inputShow = true;
  5269. // var a = _this.$refs.upload1.uploadFiles;
  5270. // a.splice(a.length - 1, a.length);
  5271. // loading.close();
  5272. return;
  5273. }
  5274. } else if (
  5275. file.name
  5276. .split(".")
  5277. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5278. ) {
  5279. if (file.size / 1024 / 1024 > 80) {
  5280. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5281. this.inputShow = true;
  5282. // var a = _this.$refs.upload1.uploadFiles;
  5283. // a.splice(a.length - 1, a.length);
  5284. // loading.close();
  5285. return;
  5286. }
  5287. }
  5288. }
  5289. this.inputShow = false;
  5290. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5291. itemTaskIndex
  5292. ].progress = 0;
  5293. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5294. itemTaskIndex
  5295. ].proVisible = true;
  5296. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5297. itemTaskIndex
  5298. ].isFinishSize = 0;
  5299. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5300. itemTaskIndex
  5301. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5302. _this.$forceUpdate();
  5303. if (file) {
  5304. var params = {
  5305. Key:
  5306. file.name.split(".")[0] +
  5307. new Date().getTime() +
  5308. "." +
  5309. file.name.split(".")[file.name.split(".").length - 1],
  5310. ContentType: file.type,
  5311. Body: file,
  5312. "Access-Control-Allow-Credentials": "*",
  5313. ACL: "public-read",
  5314. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5315. var options = {
  5316. partSize: 2048 * 1024 * 1024,
  5317. queueSize: 2,
  5318. leavePartsOnError: true,
  5319. };
  5320. bucket
  5321. .upload(params, options)
  5322. .on("httpUploadProgress", function (evt) {
  5323. //这里可以写进度条
  5324. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5325. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5326. itemTaskIndex
  5327. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5328. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5329. itemTaskIndex
  5330. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5331. _this.$forceUpdate();
  5332. })
  5333. .send(function (err, data) {
  5334. // loading.close();
  5335. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5336. itemTaskIndex
  5337. ].progress = 100;
  5338. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5339. itemTaskIndex
  5340. ].isFinishSize =
  5341. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5342. itemTaskIndex
  5343. ].isAllSize;
  5344. _this.$forceUpdate();
  5345. setTimeout(() => {
  5346. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5347. itemTaskIndex
  5348. ].proVisible = false;
  5349. _this.$forceUpdate();
  5350. }, 1000);
  5351. _this.inputShow = true;
  5352. if (err) {
  5353. // var a = _this.$refs.upload1.uploadFiles;
  5354. // a.splice(a.length - 1, a.length);
  5355. _this.$message.error("上传失败");
  5356. } else {
  5357. if (type == 2 || type == 3) {
  5358. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5359. itemTaskIndex
  5360. ].chapterData.push({
  5361. name: file.name,
  5362. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5363. // itemTaskIndex
  5364. // ].chapterData.length+1),
  5365. url: data.Location,
  5366. uid: file.uid,
  5367. type: type,
  5368. text: string,
  5369. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5370. // itemTaskIndex
  5371. // ].chapterData.length + 1),
  5372. });
  5373. _this.imgChange1(null, null, type, itemTaskIndex);
  5374. } else if (type == 4) {
  5375. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5376. itemTaskIndex
  5377. ].fileList1.push({
  5378. name: file.name,
  5379. url: data.Location,
  5380. uid: file.uid,
  5381. });
  5382. _this.imgChange1(null, null, type, itemTaskIndex);
  5383. } else if (type == 5) {
  5384. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5385. itemTaskIndex
  5386. ].homeworkList.push({
  5387. name: file.name,
  5388. url: data.Location,
  5389. uid: file.uid,
  5390. });
  5391. _this.imgChange1(null, null, type, itemTaskIndex);
  5392. }
  5393. console.log(data.Location);
  5394. }
  5395. });
  5396. }
  5397. },
  5398. addunit() {
  5399. this.unitJson.push({
  5400. dyName: "", //单元标题
  5401. isUpdate: 1,
  5402. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5403. chapterInfo: [
  5404. {
  5405. isread: false,
  5406. chapterid: this.guid(),
  5407. title: "",
  5408. courseName: "",
  5409. taskJson: [
  5410. {
  5411. task: "",
  5412. taskDetail: "",
  5413. chapterData: [],
  5414. toolText: "",
  5415. toolChoose: [
  5416. {
  5417. tool: [],
  5418. toolDetail: "",
  5419. toolType: 0,
  5420. askCount: 1,
  5421. askTitle: "",
  5422. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5423. },
  5424. ],
  5425. isShowTools: false,
  5426. askCount: 1,
  5427. isFold: 0,
  5428. askTitle: "",
  5429. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5430. checkJson: [{ checkCount: [], checkPerent: [] }],
  5431. homeworkList: [],
  5432. },
  5433. ],
  5434. itemCount: 1,
  5435. fileList1: [],
  5436. video: [],
  5437. testData: [],
  5438. pData: [],
  5439. templateArray: [],
  5440. },
  5441. ],
  5442. });
  5443. this.addindex = this.unitJson.length - 1;
  5444. setTimeout(() => {
  5445. this.unitIndex = this.unitJson.length - 1;
  5446. setTimeout(() => {
  5447. console.log(this.$refs.dyInput)
  5448. this.$refs.dyInput[0].focus()
  5449. }, 100);
  5450. this.unitSet(this.unitIndex);
  5451. }, 0);
  5452. },
  5453. addToolFun(itemTaskIndex) {
  5454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5455. itemTaskIndex
  5456. ].toolChoose.push({
  5457. tool: [],
  5458. toolDetail: "",
  5459. toolType: 0,
  5460. askCount: 1,
  5461. askTitle: "",
  5462. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5463. });
  5464. },
  5465. addTaskBorder() {
  5466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5467. task: "",
  5468. taskDetail: "",
  5469. chapterData: [],
  5470. toolText: "",
  5471. toolChoose: [
  5472. {
  5473. tool: [],
  5474. toolDetail: "",
  5475. toolType: 0,
  5476. askCount: 1,
  5477. askTitle: "",
  5478. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5479. },
  5480. ],
  5481. isShowTools: false,
  5482. askCount: 1,
  5483. isFold: 0,
  5484. askTitle: "",
  5485. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5486. checkJson: [{ checkCount: [], checkPerent: [] }],
  5487. homeworkList: [],
  5488. });
  5489. setTimeout(() => {
  5490. this.checkEva(this.checkId);
  5491. }, 100);
  5492. },
  5493. add(e, i) {
  5494. var el = e.currentTarget;
  5495. el.getElementsByTagName("input")[0].click();
  5496. },
  5497. fold(i, e) {
  5498. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5500. } else {
  5501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5502. }
  5503. },
  5504. fold2(i) {
  5505. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  5506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  5507. } else {
  5508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  5509. }
  5510. this.$forceUpdate();
  5511. },
  5512. foldC(i) {
  5513. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  5514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  5515. } else {
  5516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  5517. }
  5518. this.$forceUpdate();
  5519. },
  5520. fold3(i, ti) {
  5521. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  5522. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  5523. } else {
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  5525. }
  5526. this.$forceUpdate();
  5527. },
  5528. deleteHomeworkBox(unitIndex, index, i) {
  5529. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5530. this.taskCount
  5531. ].homeworkList.splice(i, 1);
  5532. },
  5533. getStudent() {
  5534. let params = {
  5535. oid: this.oid,
  5536. cu: "",
  5537. cn: this.searchPeople,
  5538. };
  5539. this.ajax
  5540. .get(this.$store.state.api + "selectStudentAdd", params)
  5541. .then((res) => {
  5542. this.studentJuri = res.data[0];
  5543. })
  5544. .catch((err) => {
  5545. this.isLoading = false;
  5546. console.error(err);
  5547. });
  5548. },
  5549. getTeacher() {
  5550. let params = {
  5551. oid:
  5552. this.org && this.org != "undefined" && this.org != "null"
  5553. ? this.org
  5554. : this.oid,
  5555. cu: "",
  5556. cn: this.searchTN,
  5557. };
  5558. this.ajax
  5559. .get(
  5560. this.$store.state.api +
  5561. (this.org && this.org != "undefined" && this.org != "null"
  5562. ? "selectTeacherAddOrg"
  5563. : "selectTeacherAdd"),
  5564. params
  5565. )
  5566. .then((res) => {
  5567. let teacherJuri = res.data[0];
  5568. for (var i = 0; i < teacherJuri.length; i++) {
  5569. if (teacherJuri[i].userid == this.userid) {
  5570. teacherJuri.splice(i, 1);
  5571. break;
  5572. }
  5573. }
  5574. this.teacherJuri = teacherJuri;
  5575. })
  5576. .catch((err) => {
  5577. console.error(err);
  5578. });
  5579. },
  5580. searchStudent() {
  5581. this.getStudent();
  5582. },
  5583. selectGrage() {
  5584. let params = {
  5585. oid: this.oid,
  5586. };
  5587. this.ajax
  5588. .get(this.$store.state.api + "selectGrageBySchool", params)
  5589. .then((res) => {
  5590. this.gradeList = res.data[0];
  5591. })
  5592. .catch((err) => {
  5593. this.isLoading = false;
  5594. console.error(err);
  5595. });
  5596. },
  5597. //获取班级列表
  5598. getClass() {
  5599. let params = {
  5600. oid: this.oid,
  5601. gid: this.gradeId,
  5602. cn: this.classSearch,
  5603. };
  5604. this.ajax
  5605. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  5606. .then((res) => {
  5607. if (!this.grade.length) {
  5608. this.grade = res.data[0];
  5609. }
  5610. this.grade2 = res.data[0];
  5611. this.classJuri = res.data[0];
  5612. })
  5613. .catch((err) => {
  5614. this.isLoading = false;
  5615. console.error(err);
  5616. });
  5617. },
  5618. CourseType2Change(val) {
  5619. this.pTypeCheck = [];
  5620. for (var i = 0; i < this.CourseType2.length; i++) {
  5621. let typeA = this.CourseType2[i];
  5622. if (val.indexOf(typeA.name) != -1) {
  5623. this.pTypeCheck.push(...typeA.id);
  5624. }
  5625. }
  5626. },
  5627. getChapterData(e, i, j, ic, type) {
  5628. e.stopPropagation();
  5629. this.updataC = true;
  5630. this.icc = ic;
  5631. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5632. console.log("还不能下载图片喔");
  5633. }
  5634. },
  5635. deleteChapterData(e, i, j, ic, taskI) {
  5636. e.stopPropagation();
  5637. let _this = this;
  5638. _this
  5639. .$confirm("确定删除此项?", "提示", {
  5640. confirmButtonText: "确定",
  5641. cancelButtonText: "取消",
  5642. type: "warning",
  5643. })
  5644. .then(() => {
  5645. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5646. })
  5647. .catch(() => {
  5648. return;
  5649. });
  5650. },
  5651. updataVideoT(e, i, j, ic) {
  5652. // e.stopPropagation();
  5653. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  5654. // ic
  5655. // ].name = JSON.parse(JSON.stringify(e.target.value));
  5656. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5657. ic
  5658. ].name;
  5659. this.taskCount = j;
  5660. this.lineCount = ic;
  5661. this.dialogVisibleupdataVideoT = true;
  5662. this.$forceUpdate();
  5663. },
  5664. updataVideoC() {
  5665. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  5666. this.dialogVisibleupdataVideoT = false;
  5667. this.$forceUpdate();
  5668. },
  5669. upCd(e, i, j, taskCount, ic) {
  5670. e.stopPropagation();
  5671. if (ic == 0) {
  5672. return;
  5673. }
  5674. var a =
  5675. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5676. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5677. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5678. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5679. this.$forceUpdate();
  5680. },
  5681. downCd(e, i, j, taskCount, ic) {
  5682. e.stopPropagation();
  5683. if (
  5684. ic ==
  5685. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5686. 1
  5687. ) {
  5688. return;
  5689. }
  5690. var a =
  5691. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5692. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5693. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5694. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5695. this.$forceUpdate();
  5696. },
  5697. addWork() {
  5698. let cPan = 1;
  5699. for (var i = 0; i < this.unitJson.length; i++) {
  5700. for (
  5701. var j = 0;
  5702. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5703. j++
  5704. ) {
  5705. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5706. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5707. if (
  5708. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5709. ) {
  5710. for (
  5711. var z = 0;
  5712. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5713. z++
  5714. ) {
  5715. if (
  5716. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5717. .length
  5718. ) {
  5719. this.$message.error("请把工具添加完整");
  5720. cPan = 2;
  5721. break;
  5722. }
  5723. }
  5724. }
  5725. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5726. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5727. i
  5728. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5729. return ele.value != "";
  5730. });
  5731. }
  5732. }
  5733. }
  5734. this.inputShow = true;
  5735. if (cPan == 2) {
  5736. this.steps--;
  5737. return;
  5738. }
  5739. for (var i = 0; i < this.unitJson.length; i++) {
  5740. delete this.unitJson[i].isUpdate;
  5741. }
  5742. let params = [
  5743. {
  5744. uid: this.userid,
  5745. title: this.courseName.replace(/%/g, "%25"),
  5746. brief: this.courseText.replace(/%/g, "%25"),
  5747. cover:
  5748. this.cover.length > 0
  5749. ? JSON.stringify(this.cover)
  5750. : JSON.stringify([
  5751. {
  5752. name: "noBanner.jpg",
  5753. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5754. uid: 1656409780264,
  5755. status: "success",
  5756. },
  5757. ]),
  5758. evaId: this.evalua,
  5759. astudent:
  5760. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5761. see: this.isTeacherSee == true ? 1 : 0,
  5762. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5763. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5764. courseType: JSON.stringify(this.courseTypeId),
  5765. ateacher:
  5766. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5767. inviteCode: JSON.stringify(this.inviteCode),
  5768. },
  5769. ];
  5770. this.ajax
  5771. .post(this.$store.state.api + "addWorkNew2", params)
  5772. .then((res) => {
  5773. console.log(this.steps);
  5774. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5775. this.$message({
  5776. message: "新增成功",
  5777. type: "success",
  5778. });
  5779. }
  5780. this.number = res.data.ordernumber;
  5781. this.courseId = res.data.courseId;
  5782. this.cid = res.data.courseId;
  5783. this.courseUserid = this.userid;
  5784. this.islogin = true;
  5785. })
  5786. .catch((err) => {
  5787. this.$message.error("网络不佳");
  5788. console.error(err);
  5789. });
  5790. },
  5791. goCourse() {
  5792. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5793. },
  5794. updateWork2() {
  5795. let _unitIndex = this.unitIndex;
  5796. let cPan = 1;
  5797. for (
  5798. var j = 0;
  5799. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5800. j++
  5801. ) {
  5802. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  5803. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5804. j
  5805. ].proVisible2 = false;
  5806. if (
  5807. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5808. .length > 1
  5809. ) {
  5810. for (
  5811. var z = 0;
  5812. z <
  5813. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5814. .length;
  5815. z++
  5816. ) {
  5817. if (
  5818. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  5819. z
  5820. ].tool.length
  5821. ) {
  5822. this.$message.error("请把工具添加完整");
  5823. cPan = 2;
  5824. break;
  5825. }
  5826. }
  5827. }
  5828. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5829. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5830. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5831. (ele) => {
  5832. return ele.value != "";
  5833. }
  5834. );
  5835. }
  5836. }
  5837. this.inputShow = true;
  5838. if (cPan == 2) {
  5839. this.steps--;
  5840. return;
  5841. }
  5842. let params = [
  5843. {
  5844. cid: this.cid,
  5845. chapters: JSON.stringify(this.unitJson),
  5846. uid: this.userid,
  5847. unitIndex: _unitIndex,
  5848. },
  5849. ];
  5850. this.ajax
  5851. .post(this.$store.state.api + "updateWorkNew4", params)
  5852. .then((res) => {
  5853. this.$message({
  5854. message: "修改成功",
  5855. type: "success",
  5856. });
  5857. this.courseId = this.cid;
  5858. })
  5859. .catch((err) => {
  5860. this.$message.error("网络不佳");
  5861. console.error(err);
  5862. });
  5863. },
  5864. updateWork() {
  5865. let cPan = 1;
  5866. for (var i = 0; i < this.unitJson.length; i++) {
  5867. for (
  5868. var j = 0;
  5869. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5870. j++
  5871. ) {
  5872. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5873. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5874. if (
  5875. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5876. ) {
  5877. for (
  5878. var z = 0;
  5879. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5880. z++
  5881. ) {
  5882. if (
  5883. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5884. .length
  5885. ) {
  5886. this.$message.error("请把工具添加完整");
  5887. cPan = 2;
  5888. break;
  5889. }
  5890. }
  5891. }
  5892. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5893. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5894. i
  5895. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5896. return ele.value != "";
  5897. });
  5898. }
  5899. }
  5900. }
  5901. this.inputShow = true;
  5902. if (cPan == 2) {
  5903. this.steps--;
  5904. return;
  5905. }
  5906. for (var i = 0; i < this.unitJson.length; i++) {
  5907. delete this.unitJson[i].isUpdate;
  5908. }
  5909. let params = [
  5910. {
  5911. cid: this.cid,
  5912. title: this.courseName.replace(/%/g, "%25"),
  5913. brief: this.courseText.replace(/%/g, "%25"),
  5914. cover:
  5915. this.cover.length > 0
  5916. ? JSON.stringify(this.cover)
  5917. : JSON.stringify([
  5918. {
  5919. name: "noBanner.jpg",
  5920. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5921. uid: 1656409780264,
  5922. status: "success",
  5923. },
  5924. ]),
  5925. evaId: this.evalua,
  5926. astudent:
  5927. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5928. see: this.isTeacherSee == true ? 1 : 0,
  5929. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5930. template: this.myWord != "undefined" ? this.myWord : [],
  5931. uid: this.userid,
  5932. courseType: JSON.stringify(this.courseTypeId),
  5933. ateacher:
  5934. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5935. inviteCode: JSON.stringify(this.inviteCode),
  5936. },
  5937. ];
  5938. this.ajax
  5939. .post(this.$store.state.api + "updateWorkNew2", params)
  5940. .then((res) => {
  5941. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5942. if (this.cidType == 1) {
  5943. this.$message({
  5944. message: "修改成功",
  5945. type: "success",
  5946. });
  5947. } else {
  5948. this.$message({
  5949. message: "新增成功",
  5950. type: "success",
  5951. });
  5952. }
  5953. }
  5954. this.number = this.nbOrder;
  5955. this.courseId = this.cid;
  5956. })
  5957. .catch((err) => {
  5958. this.$message.error("网络不佳");
  5959. console.error(err);
  5960. });
  5961. },
  5962. guid() {
  5963. var _num,
  5964. i,
  5965. _guid = "";
  5966. for (i = 0; i < 32; i++) {
  5967. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5968. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5969. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5970. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5971. _guid += "-";
  5972. }
  5973. }
  5974. return _guid;
  5975. },
  5976. insertWord() {
  5977. this.dialogVisible1 = true;
  5978. this.updateBoolean2 = false;
  5979. this.tTitle = "";
  5980. this.tdetail = "";
  5981. },
  5982. addWord() {
  5983. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5984. name: this.tTitle,
  5985. content: this.tdetail,
  5986. uid: this.guid(),
  5987. });
  5988. this.dialogVisible1 = false;
  5989. },
  5990. upWord() { },
  5991. selectWord(uid, i, c) {
  5992. this.dialogVisible1 = true;
  5993. this.updateBoolean2 = true;
  5994. if (
  5995. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5996. ) {
  5997. this.tTitle =
  5998. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5999. this.tdetail =
  6000. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6001. }
  6002. },
  6003. isAddPP() {
  6004. if (this.checkboxList.length > 0) {
  6005. this.$message({
  6006. message: "添加成功",
  6007. type: "success",
  6008. });
  6009. this.dialogVisible3 = false;
  6010. } else {
  6011. this.$message({
  6012. message: "请添加课程成员",
  6013. type: "error",
  6014. });
  6015. }
  6016. },
  6017. isAddClass() {
  6018. this.dialogVisibleClass = false;
  6019. },
  6020. isAddPPTeacher() {
  6021. this.dialogVisibleMember = false;
  6022. this.setMan();
  6023. },
  6024. getTemplate() {
  6025. this.ajax
  6026. .get(this.$store.state.api + "getCourseTemplateT", "")
  6027. .then((res) => {
  6028. this.templateArray = res.data[0];
  6029. this.getTemplateOid();
  6030. this.$forceUpdate();
  6031. })
  6032. .catch((err) => { });
  6033. },
  6034. getTemplateOid() {
  6035. let params = {
  6036. oid: this.oid,
  6037. };
  6038. this.ajax
  6039. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6040. .then((res) => {
  6041. if (res.data[0].length) {
  6042. this.templateArray = [...res.data[0], ...this.templateArray];
  6043. }
  6044. this.getTemplateOrg();
  6045. this.$forceUpdate();
  6046. })
  6047. .catch((err) => { });
  6048. },
  6049. getTemplateOrg() {
  6050. let params = {
  6051. oid: this.org,
  6052. };
  6053. this.ajax
  6054. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6055. .then((res) => {
  6056. if (res.data[0].length) {
  6057. this.templateArray = [...res.data[0], ...this.templateArray];
  6058. }
  6059. this.$forceUpdate();
  6060. })
  6061. .catch((err) => { });
  6062. },
  6063. clearChoose() {
  6064. this.clearArray.splice(this.templateC.id, 1);
  6065. this.dialogVisible2 = false;
  6066. },
  6067. clearAttText() {
  6068. this.AttText = {
  6069. title: "",
  6070. text: "",
  6071. };
  6072. this.dialogVisible6 = false;
  6073. },
  6074. clearLine() {
  6075. this.line = "";
  6076. this.dialogVisible7 = false;
  6077. },
  6078. checkTemplate(res) {
  6079. let _this = this;
  6080. _this
  6081. .$confirm("确定选择此模板吗?修改课程时无法重置课程模板。", "提示", {
  6082. confirmButtonText: "确定",
  6083. cancelButtonText: "取消",
  6084. type: "warning",
  6085. })
  6086. .then(() => {
  6087. _this.unitJson = JSON.parse(res.chapters);
  6088. _this.steps++;
  6089. setTimeout(() => {
  6090. this.checkEva(this.checkId);
  6091. }, 1000);
  6092. })
  6093. .catch(() => {
  6094. return;
  6095. });
  6096. },
  6097. checkTemplate1(w) {
  6098. this.steps++;
  6099. },
  6100. checkTemplate2() {
  6101. let _this = this;
  6102. _this
  6103. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  6104. confirmButtonText: "确定",
  6105. cancelButtonText: "取消",
  6106. type: "warning",
  6107. })
  6108. .then(() => {
  6109. _this.unitIndex = 0;
  6110. _this.unitJson = [
  6111. {
  6112. dyName: "", //单元标题
  6113. chapterInfo: [
  6114. {
  6115. isread: false,
  6116. chapterid: this.guid(),
  6117. title: "",
  6118. courseName: "",
  6119. taskJson: [
  6120. {
  6121. task: "",
  6122. taskDetail: "",
  6123. chapterData: [],
  6124. toolText: "",
  6125. toolChoose: [
  6126. {
  6127. tool: [],
  6128. toolDetail: "",
  6129. toolType: 0,
  6130. askCount: 1,
  6131. askTitle: "",
  6132. askJson: [
  6133. { askstitle: "", askItem: 1, checkList: [] },
  6134. ],
  6135. },
  6136. ],
  6137. isShowTools: false,
  6138. askCount: 1,
  6139. isFold: 0,
  6140. askTitle: "",
  6141. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6142. checkJson: [{ checkCount: [], checkPerent: [] }],
  6143. homeworkList: [],
  6144. },
  6145. ],
  6146. itemCount: 1,
  6147. fileList1: [],
  6148. video: [],
  6149. testData: [],
  6150. pData: [],
  6151. templateArray: [],
  6152. },
  6153. ],
  6154. },
  6155. ];
  6156. this.steps++;
  6157. setTimeout(() => {
  6158. this.checkEva(this.checkId);
  6159. }, 1000);
  6160. this.updateWork();
  6161. })
  6162. .catch(() => {
  6163. return;
  6164. });
  6165. },
  6166. checkTemplate3() {
  6167. let _this = this;
  6168. _this
  6169. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  6170. confirmButtonText: "确定",
  6171. cancelButtonText: "取消",
  6172. type: "warning",
  6173. })
  6174. .then(() => {
  6175. _this.unitIndex = 0;
  6176. _this.unitJson = [
  6177. {
  6178. dyName: "", //单元标题
  6179. easy: 1,
  6180. chapterInfo: [
  6181. {
  6182. isread: false,
  6183. chapterid: this.guid(),
  6184. title: "",
  6185. courseName: "",
  6186. taskJson: [
  6187. {
  6188. task: "",
  6189. taskDetail: "",
  6190. chapterData: [],
  6191. toolText: "",
  6192. toolChoose: [
  6193. {
  6194. tool: [],
  6195. toolDetail: "",
  6196. toolType: 0,
  6197. askCount: 1,
  6198. askTitle: "",
  6199. askJson: [
  6200. { askstitle: "", askItem: 1, checkList: [] },
  6201. ],
  6202. },
  6203. ],
  6204. isShowTools: false,
  6205. askCount: 1,
  6206. isFold: 0,
  6207. askTitle: "",
  6208. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6209. checkJson: [{ checkCount: [], checkPerent: [] }],
  6210. homeworkList: [],
  6211. },
  6212. ],
  6213. itemCount: 1,
  6214. fileList1: [],
  6215. video: [],
  6216. testData: [],
  6217. pData: [],
  6218. templateArray: [],
  6219. },
  6220. ],
  6221. },
  6222. ];
  6223. this.steps++;
  6224. this.updateWork();
  6225. })
  6226. .catch(() => {
  6227. return;
  6228. });
  6229. },
  6230. checkTemplate4() {
  6231. let _this = this;
  6232. _this
  6233. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6234. confirmButtonText: "确定",
  6235. cancelButtonText: "取消",
  6236. type: "warning",
  6237. })
  6238. .then(() => {
  6239. _this.unitIndex = 0;
  6240. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6241. this.steps++;
  6242. this.updateWork();
  6243. })
  6244. .catch(() => {
  6245. return;
  6246. });
  6247. },
  6248. wordNext() {
  6249. this.dialogVisible2 = false;
  6250. },
  6251. isAddOrUpdateAttText() {
  6252. if (this.AttTextType == 0) {
  6253. this.addAttTextMessage();
  6254. } else {
  6255. this.updateAttText();
  6256. }
  6257. },
  6258. isAddOrUpdateLine() {
  6259. if (!this.lineTitle) {
  6260. this.$message.error("请填写链接标题");
  6261. return;
  6262. }
  6263. if (this.lineType == 0) {
  6264. this.addLine();
  6265. } else {
  6266. this.updateLine();
  6267. }
  6268. },
  6269. addAttTextMessage() {
  6270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6271. this.taskCount
  6272. ].chapterData.push({
  6273. name: this.AttText.title,
  6274. url: this.AttText.text,
  6275. type: 6,
  6276. });
  6277. this.imgChange1(null, null, 6, this.taskCount);
  6278. this.dialogVisible6 = false;
  6279. },
  6280. selectAttText(itemTaskIndex, i) {
  6281. this.AttText.title =
  6282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6283. itemTaskIndex
  6284. ].chapterData[i].name;
  6285. this.AttText.text =
  6286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6287. itemTaskIndex
  6288. ].chapterData[i].url;
  6289. this.taskCount = itemTaskIndex;
  6290. this.AttTextIndex = i;
  6291. this.AttTextType = 1;
  6292. this.dialogVisible6 = true;
  6293. },
  6294. updateAttText() {
  6295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6296. this.taskCount
  6297. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6298. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6299. this.taskCount
  6300. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6301. this.dialogVisible6 = false;
  6302. },
  6303. addLine() {
  6304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6305. this.lineCount
  6306. ].chapterData.push({
  6307. name: "链接",
  6308. title: this.lineTitle,
  6309. url: this.line,
  6310. type: 8,
  6311. });
  6312. this.imgChange1(null, null, 8, this.lineCount);
  6313. this.dialogVisible7 = false;
  6314. },
  6315. selectLine(itemTaskIndex, i) {
  6316. this.line =
  6317. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6318. itemTaskIndex
  6319. ].chapterData[i].url;
  6320. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6321. itemTaskIndex
  6322. ].chapterData[i].title
  6323. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6324. .chapterData[i].title
  6325. : "";
  6326. this.taskCount = itemTaskIndex;
  6327. this.lineCount = i;
  6328. this.lineType = 1;
  6329. this.dialogVisible7 = true;
  6330. },
  6331. openUpdateSource(itemTaskIndex, i) {
  6332. this.sourceData = {}
  6333. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  6334. this.sourceData[source.id] = {}
  6335. this.sourceData[source.id].name = source.title
  6336. this.sourceData[source.id].url = source.url
  6337. this.dialogVisibleSource = true;
  6338. this.updateSourcePan = true;
  6339. this.taskCount = itemTaskIndex;
  6340. this.lineCount = i;
  6341. },
  6342. updateLine() {
  6343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6344. this.taskCount
  6345. ].chapterData[this.lineCount].url = this.line;
  6346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6347. this.taskCount
  6348. ].chapterData[this.lineCount].title = this.lineTitle;
  6349. this.dialogVisible7 = false;
  6350. },
  6351. addPP() {
  6352. this.dialogVisible3 = true;
  6353. },
  6354. goTo(path) {
  6355. this.$router.push(path);
  6356. },
  6357. openTools(itemTaskIndex, i, toolIndex) {
  6358. this.toolIndex = toolIndex;
  6359. this.taskCount = itemTaskIndex;
  6360. if (i == 4) {
  6361. if (toolIndex == null) {
  6362. var a =
  6363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6364. .chapterData;
  6365. for (var i = 0; i < a.length; i++) {
  6366. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6367. this.askJson =
  6368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6369. itemTaskIndex
  6370. ].chapterData[i].askJson;
  6371. }
  6372. }
  6373. } else {
  6374. this.askJson = JSON.parse(
  6375. JSON.stringify(
  6376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6377. itemTaskIndex
  6378. ].toolChoose[toolIndex]
  6379. )
  6380. );
  6381. }
  6382. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  6383. this.dialogVisible5 = true;
  6384. } else if (i == 45) {
  6385. if (
  6386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6387. .toolChoose[toolIndex].testJson
  6388. ) {
  6389. this.testJson = JSON.parse(
  6390. JSON.stringify(
  6391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6392. itemTaskIndex
  6393. ].toolChoose[toolIndex].testJson
  6394. )
  6395. );
  6396. } else {
  6397. var testJson = {
  6398. testCount: 1,
  6399. testTitle: "",
  6400. testJson: [
  6401. {
  6402. teststitle: "",
  6403. testItem: 1,
  6404. checkList: [],
  6405. timuList: [],
  6406. answer: [],
  6407. type: "1",
  6408. },
  6409. ],
  6410. };
  6411. this.testJson = testJson;
  6412. }
  6413. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  6414. this.dialogVisibleChoice = true;
  6415. } else if (i == 47) {
  6416. if (
  6417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6418. .toolChoose[toolIndex].sentenceList
  6419. ) {
  6420. this.sentenceList = JSON.parse(
  6421. JSON.stringify(
  6422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6423. itemTaskIndex
  6424. ].toolChoose[toolIndex].sentenceList
  6425. )
  6426. );
  6427. } else {
  6428. var sentenceList = [
  6429. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6430. ];
  6431. this.sentenceList = sentenceList;
  6432. }
  6433. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  6434. this.dialogVisibleSentence = true;
  6435. } else if (i == 48) {
  6436. if (
  6437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6438. .toolChoose[toolIndex].tableJson
  6439. ) {
  6440. this.tableJson = JSON.parse(
  6441. JSON.stringify(
  6442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6443. itemTaskIndex
  6444. ].toolChoose[toolIndex].tableJson
  6445. )
  6446. );
  6447. } else {
  6448. var tableJson = { text: "" };
  6449. this.tableJson = tableJson;
  6450. }
  6451. this.dialogVisibleTable = true;
  6452. } else if (i == 52) {
  6453. if (
  6454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6455. .toolChoose[toolIndex].wordJson
  6456. ) {
  6457. this.wordJson = JSON.parse(
  6458. JSON.stringify(
  6459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6460. itemTaskIndex
  6461. ].toolChoose[toolIndex].wordJson
  6462. )
  6463. );
  6464. } else {
  6465. var wordJson = { text: "" };
  6466. this.wordJson = wordJson;
  6467. }
  6468. this.dialogVisibleWord = true;
  6469. // else if (i == 50) {
  6470. // if (
  6471. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6472. // .toolChoose[toolIndex].uploadJson
  6473. // ) {
  6474. // this.uploadJson = JSON.parse(
  6475. // JSON.stringify(
  6476. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6477. // itemTaskIndex
  6478. // ].toolChoose[toolIndex].uploadJson
  6479. // )
  6480. // );
  6481. // } else {
  6482. // var uploadJson = [];
  6483. // this.uploadJson = uploadJson;
  6484. // }
  6485. // this.dialogVisibleMoreUpload = true;
  6486. // }
  6487. } else if (i == 10) {
  6488. if (
  6489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6490. .toolChoose[toolIndex].preTime
  6491. ) {
  6492. this.preTime = JSON.parse(
  6493. JSON.stringify(
  6494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6495. itemTaskIndex
  6496. ].toolChoose[toolIndex].preTime
  6497. )
  6498. );
  6499. } else {
  6500. var preTime = 0;
  6501. this.preTime = preTime;
  6502. }
  6503. this.dialogVisiblePreTime = true;
  6504. } else if (i == 49) {
  6505. if (
  6506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6507. .toolChoose[toolIndex].groupJson
  6508. ) {
  6509. this.groupJson = JSON.parse(
  6510. JSON.stringify(
  6511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6512. itemTaskIndex
  6513. ].toolChoose[toolIndex].groupJson
  6514. )
  6515. );
  6516. } else {
  6517. var groupJson = {
  6518. group: [{ name: "第1组" }],
  6519. number: undefined,
  6520. islock: 1,
  6521. };
  6522. this.groupJson = groupJson;
  6523. }
  6524. this.dialogVisibleGroup = true;
  6525. } else if (i == 62) {
  6526. if (
  6527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6528. .toolChoose[toolIndex].videoJson
  6529. ) {
  6530. this.videoJson = JSON.parse(
  6531. JSON.stringify(
  6532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6533. itemTaskIndex
  6534. ].toolChoose[toolIndex].videoJson
  6535. )
  6536. );
  6537. } else {
  6538. var videoJson = {
  6539. video: "",
  6540. setting: [],
  6541. };
  6542. this.videoJson = videoJson;
  6543. }
  6544. this.dialogVisibleVideo = true;
  6545. } else if (i == 15) {
  6546. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6547. itemTaskIndex
  6548. ].toolChoose[toolIndex].answerQ
  6549. ? JSON.parse(
  6550. JSON.stringify(
  6551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6552. itemTaskIndex
  6553. ].toolChoose[toolIndex].answerQ
  6554. )
  6555. )
  6556. : "";
  6557. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  6558. this.dialogVisible8 = true;
  6559. } else if (i == 40) {
  6560. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6561. itemTaskIndex
  6562. ].toolChoose[toolIndex].rateJson
  6563. ? JSON.parse(
  6564. JSON.stringify(
  6565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6566. itemTaskIndex
  6567. ].toolChoose[toolIndex].rateJson
  6568. )
  6569. )
  6570. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6571. this.selectSteps = 1;
  6572. this.dialogVisibleRate = true;
  6573. } else if (i == 42) {
  6574. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6575. itemTaskIndex
  6576. ].toolChoose[toolIndex].answerQ
  6577. ? JSON.parse(
  6578. JSON.stringify(
  6579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6580. itemTaskIndex
  6581. ].toolChoose[toolIndex].answerQ
  6582. )
  6583. )
  6584. : "";
  6585. this.dialogVisibleMp3 = true;
  6586. } else if (i == 41) {
  6587. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6588. itemTaskIndex
  6589. ].toolChoose[toolIndex].selectJson
  6590. ? JSON.parse(
  6591. JSON.stringify(
  6592. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6593. itemTaskIndex
  6594. ].toolChoose[toolIndex].selectJson
  6595. )
  6596. )
  6597. : { url: "", select: [], answer: [] };
  6598. this.selectSteps = 1;
  6599. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  6600. this.dialogVisibleSelect = true;
  6601. } else if (i == 3) {
  6602. window.parent.postMessage(
  6603. {
  6604. tools: "3y",
  6605. cid: this.cid,
  6606. stage: this.unitIndex,
  6607. task: itemTaskIndex,
  6608. tool: toolIndex,
  6609. },
  6610. "*"
  6611. );
  6612. } else if (i == 1) {
  6613. window.parent.postMessage(
  6614. {
  6615. tools: "1y",
  6616. cid: this.cid,
  6617. stage: this.unitIndex,
  6618. task: itemTaskIndex,
  6619. tool: toolIndex,
  6620. },
  6621. "*"
  6622. );
  6623. } else if (i == 57) {
  6624. window.parent.postMessage(
  6625. {
  6626. tools: "57y",
  6627. cid: this.cid,
  6628. stage: this.unitIndex,
  6629. task: itemTaskIndex,
  6630. tool: toolIndex,
  6631. },
  6632. "*"
  6633. );
  6634. }
  6635. },
  6636. chapAddTools(i) {
  6637. if (this.chapTools[0].tools.length == 0) {
  6638. this.chapTools[0].tools.push(i);
  6639. } else {
  6640. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6641. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6642. } else {
  6643. this.chapTools[0].tools.push(i);
  6644. }
  6645. }
  6646. this.$forceUpdate();
  6647. },
  6648. addChaptersDataTools() {
  6649. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6651. this.chapCount
  6652. ].chapterData.push({
  6653. name: this.chapTools[0].toolDetail,
  6654. url: this.chapTools[0].tools,
  6655. type: 7,
  6656. askJson: this.askJson,
  6657. });
  6658. } else {
  6659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6660. this.chapCount
  6661. ].chapterData.push({
  6662. name: this.chapTools[0].toolDetail,
  6663. url: this.chapTools[0].tools,
  6664. type: 7,
  6665. });
  6666. }
  6667. this.imgChange1(null, null, 7, this.chapCount);
  6668. this.dialogVisible4 = false;
  6669. },
  6670. addTools(i, itemTaskIndex, toolIndex) {
  6671. // if (
  6672. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6673. // .toolChoose[toolIndex].tool.length == 0
  6674. // ) {
  6675. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6676. // itemTaskIndex
  6677. // ].toolChoose[toolIndex].tool.push(i);
  6678. // } else {
  6679. // if (
  6680. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6681. // itemTaskIndex
  6682. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6683. // ) {
  6684. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6685. // itemTaskIndex
  6686. // ].toolChoose[toolIndex].tool.splice(
  6687. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6688. // itemTaskIndex
  6689. // ].toolChoose[toolIndex].tool.indexOf(i),
  6690. // 1
  6691. // );
  6692. // } else {
  6693. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6694. // itemTaskIndex
  6695. // ].toolChoose[toolIndex].tool.push(i);
  6696. // }
  6697. // console.log(
  6698. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6699. // .toolChoose[toolIndex].tool
  6700. // );
  6701. // }
  6702. if (i == 4) {
  6703. if (
  6704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6705. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6707. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6709. .toolChoose[toolIndex].askJson[0].checkList < 2
  6710. ) {
  6711. this.openTools(itemTaskIndex, 4, toolIndex);
  6712. // this.$message({
  6713. // message: "请填写完整问卷内容",
  6714. // type: "error",
  6715. // });
  6716. return;
  6717. }
  6718. }
  6719. if (i == 45) {
  6720. if (
  6721. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6722. .toolChoose[toolIndex].testJson ||
  6723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6724. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6726. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6727. ) {
  6728. this.openTools(itemTaskIndex, 45, toolIndex);
  6729. // this.$message({
  6730. // message: "请填写完整问卷内容",
  6731. // type: "error",
  6732. // });
  6733. return;
  6734. }
  6735. }
  6736. if (i == 47) {
  6737. if (
  6738. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6739. .toolChoose[toolIndex].sentenceList ||
  6740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6741. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6742. ) {
  6743. this.openTools(itemTaskIndex, 47, toolIndex);
  6744. return;
  6745. }
  6746. }
  6747. // if (i == 48) {
  6748. // if (
  6749. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6750. // .toolChoose[toolIndex].tableJson
  6751. // ) {
  6752. // this.openTools(itemTaskIndex, 48, toolIndex);
  6753. // return;
  6754. // }
  6755. // }
  6756. // if (i == 50) {
  6757. // if (
  6758. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6759. // .toolChoose[toolIndex].uploadJson
  6760. // ) {
  6761. // this.openTools(itemTaskIndex, 50, toolIndex);
  6762. // return;
  6763. // }
  6764. // }
  6765. if (i == 49) {
  6766. if (
  6767. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6768. .toolChoose[toolIndex].groupJson
  6769. ) {
  6770. this.openTools(itemTaskIndex, 49, toolIndex);
  6771. return;
  6772. }
  6773. }
  6774. if (i == 62) {
  6775. if (
  6776. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6777. .toolChoose[toolIndex].videoJson
  6778. ) {
  6779. this.openTools(itemTaskIndex, 62, toolIndex);
  6780. return;
  6781. }
  6782. }
  6783. if (i == 15) {
  6784. if (
  6785. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6786. .toolChoose[toolIndex].answerQ ||
  6787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6788. .toolChoose[toolIndex].answerQ == ""
  6789. ) {
  6790. this.openTools(itemTaskIndex, 15, toolIndex);
  6791. // this.$message({
  6792. // message: "请填写问答内容",
  6793. // type: "error",
  6794. // });
  6795. return;
  6796. }
  6797. }
  6798. if (i == 40) {
  6799. if (
  6800. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6801. .toolChoose[toolIndex].rateJson ||
  6802. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6803. .toolChoose[toolIndex].rateJson.length
  6804. ) {
  6805. this.openTools(itemTaskIndex, 40, toolIndex);
  6806. return;
  6807. }
  6808. }
  6809. if (i == 41) {
  6810. if (
  6811. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6812. .toolChoose[toolIndex].selectJson ||
  6813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6814. .toolChoose[toolIndex].selectJson.url == "" ||
  6815. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6816. .toolChoose[toolIndex].selectJson.select.length ||
  6817. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6818. .toolChoose[toolIndex].selectJson.answer.length
  6819. ) {
  6820. this.openTools(itemTaskIndex, 41, toolIndex);
  6821. return;
  6822. }
  6823. }
  6824. if (i == 42) {
  6825. if (
  6826. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6827. .toolChoose[toolIndex].answerQ ||
  6828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6829. .toolChoose[toolIndex].answerQ == ""
  6830. ) {
  6831. this.openTools(itemTaskIndex, 42, toolIndex);
  6832. return;
  6833. }
  6834. }
  6835. if (
  6836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6837. .toolChoose[toolIndex].tool.length > 0
  6838. ) {
  6839. if (
  6840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6841. itemTaskIndex
  6842. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6843. ) {
  6844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6845. itemTaskIndex
  6846. ].toolChoose[toolIndex].tool.splice(
  6847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6848. itemTaskIndex
  6849. ].toolChoose[toolIndex].tool.indexOf(i),
  6850. 1
  6851. );
  6852. } else {
  6853. // this.$message({
  6854. // message: "每个工具只能添加一个",
  6855. // type: "error",
  6856. // });
  6857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6858. itemTaskIndex
  6859. ].toolChoose[toolIndex].tool = [];
  6860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6861. itemTaskIndex
  6862. ].toolChoose[toolIndex].tool.push(i);
  6863. }
  6864. } else {
  6865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6866. itemTaskIndex
  6867. ].toolChoose[toolIndex].tool.push(i);
  6868. }
  6869. this.$forceUpdate();
  6870. },
  6871. addAskList(index) {
  6872. this.askJson.askJson.splice(index + 1, 0, {
  6873. askstitle: "",
  6874. askItem: 1,
  6875. checkList: [],
  6876. })
  6877. this.askJson.askCount++;
  6878. },
  6879. addTestList(index) {
  6880. this.testJson.testJson.splice(index + 1, 0, {
  6881. teststitle: "",
  6882. testItem: 1,
  6883. checkList: [],
  6884. timuList: [],
  6885. answer: [],
  6886. type: "1",
  6887. })
  6888. this.testJson.testCount++;
  6889. },
  6890. deleteAskList(index) {
  6891. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6892. this.askJson.askJson.splice(index, 1);
  6893. this.askJson.askCount--;
  6894. } else {
  6895. let _this = this;
  6896. _this
  6897. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6898. confirmButtonText: "确定",
  6899. cancelButtonText: "取消",
  6900. type: "warning",
  6901. })
  6902. .then(() => {
  6903. _this.askJson.askJson.splice(index, 1);
  6904. _this.askJson.askCount--;
  6905. })
  6906. .catch(() => {
  6907. return;
  6908. });
  6909. }
  6910. },
  6911. deleteTestList(index) {
  6912. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6913. this.testJson.testJson.splice(index, 1);
  6914. this.testJson.testCount--;
  6915. } else {
  6916. let _this = this;
  6917. _this
  6918. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6919. confirmButtonText: "确定",
  6920. cancelButtonText: "取消",
  6921. type: "warning",
  6922. })
  6923. .then(() => {
  6924. _this.testJson.testJson.splice(index, 1);
  6925. _this.testJson.testCount--;
  6926. })
  6927. .catch(() => {
  6928. return;
  6929. });
  6930. }
  6931. },
  6932. askMove(type, index) {
  6933. if (type == 1) {
  6934. if (index > 0) {
  6935. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  6936. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6937. this.askJson.askJson[index - 1] = b;
  6938. this.askJson.askJson[index] = a;
  6939. }
  6940. } else {
  6941. if (
  6942. index < this.askJson.askJson.length - 1
  6943. ) {
  6944. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  6945. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6946. this.askJson.askJson[index + 1] = b;
  6947. this.askJson.askJson[index] = a;
  6948. }
  6949. }
  6950. this.$forceUpdate();
  6951. },
  6952. checkMove(type, index, checkIndex) {
  6953. if (type == 1) {
  6954. if (checkIndex > 0) {
  6955. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  6956. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6957. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  6958. this.askJson.askJson[index].checkList[checkIndex] = a;
  6959. }
  6960. } else {
  6961. if (
  6962. checkIndex < this.askJson.askJson[index].checkList.length - 1
  6963. ) {
  6964. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  6965. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6966. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  6967. this.askJson.askJson[index].checkList[checkIndex] = a;
  6968. }
  6969. }
  6970. this.$forceUpdate();
  6971. },
  6972. testMove(type, index) {
  6973. if (type == 1) {
  6974. if (index > 0) {
  6975. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  6976. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6977. this.testJson.testJson[index - 1] = b;
  6978. this.testJson.testJson[index] = a;
  6979. }
  6980. } else {
  6981. if (
  6982. index < this.testJson.testJson.length - 1
  6983. ) {
  6984. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  6985. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6986. this.testJson.testJson[index + 1] = b;
  6987. this.testJson.testJson[index] = a;
  6988. }
  6989. }
  6990. this.$forceUpdate();
  6991. },
  6992. tcheckMove(type, index, checkIndex) {
  6993. if (type == 1) {
  6994. if (checkIndex > 0) {
  6995. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  6996. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6997. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  6998. this.testJson.testJson[index].checkList[checkIndex] = a;
  6999. }
  7000. } else {
  7001. if (
  7002. checkIndex < this.testJson.testJson[index].checkList.length - 1
  7003. ) {
  7004. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  7005. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  7006. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  7007. this.testJson.testJson[index].checkList[checkIndex] = a;
  7008. }
  7009. }
  7010. this.$forceUpdate();
  7011. },
  7012. addcheckList(json, index) {
  7013. // json.checkList.length++;
  7014. json.checkList.splice(index + 1, 0, '')
  7015. json.askItem++;
  7016. this.$forceUpdate();
  7017. },
  7018. deletecheckList(json, index) {
  7019. // json.checkList.length--;
  7020. json.checkList.splice(index, 1)
  7021. json.askItem--;
  7022. this.$forceUpdate();
  7023. },
  7024. addTcheckList(json, index) {
  7025. // json.checkList.length++;
  7026. json.checkList.splice(index + 1, 0, '')
  7027. json.testItem++;
  7028. this.$forceUpdate();
  7029. },
  7030. deleteTcheckList(json, index) {
  7031. // json.checkList.length--;
  7032. json.checkList.splice(index, 1)
  7033. json.testItem--;
  7034. this.$forceUpdate();
  7035. },
  7036. checkTestType(type, json) {
  7037. json.type = type;
  7038. setTimeout(() => {
  7039. json.answer = [];
  7040. }, 100)
  7041. },
  7042. checkAskType(type, json) {
  7043. json.type = type;
  7044. // json.checkList = [];
  7045. this.$forceUpdate();
  7046. },
  7047. addSelectList(json) {
  7048. json.select.push("");
  7049. json.answer.push("");
  7050. },
  7051. deleteSelectList(json) {
  7052. // json.select.length--;
  7053. // json.answer.length--;
  7054. json.select.splice(json.select.length - 1, 1);
  7055. json.answer.splice(json.answer.length - 1, 1);
  7056. },
  7057. addAsk() {
  7058. if (this.askJson.askTitle === "") {
  7059. this.$message.error("标题不能为空!");
  7060. return;
  7061. }
  7062. var aj = this.askJson.askJson;
  7063. var b = 1;
  7064. for (var i = 0; i < aj.length; i++) {
  7065. if (aj[i].askstitle === "") {
  7066. var a = 1;
  7067. for (let index = 0; index < aj[i].askItem; index++) {
  7068. const element = aj[i].checkList[index]
  7069. ? aj[i].checkList[index]
  7070. : "";
  7071. if (element != "") {
  7072. b++;
  7073. this.$message.error(`请将题目${i + 1}填写完整。`);
  7074. return;
  7075. } else {
  7076. a++;
  7077. }
  7078. }
  7079. if (b == 1) {
  7080. this.$message.error("至少填写一个问题");
  7081. return;
  7082. }
  7083. } else if (aj[i].askstitle != "") {
  7084. for (let index = 0; index < aj[i].askItem; index++) {
  7085. const element = aj[i].checkList[index]
  7086. ? aj[i].checkList[index]
  7087. : "";
  7088. var index = 0;
  7089. for (var z = 0; z < aj[i].checkList.length; z++) {
  7090. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7091. if (checkC != "") {
  7092. index++;
  7093. } else {
  7094. this.$message.error(`题目${i + 1}选项不能为空!`);
  7095. return;
  7096. }
  7097. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7098. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7099. if (checkC == checkC2) {
  7100. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7101. return;
  7102. }
  7103. }
  7104. }
  7105. b++;
  7106. if (index < 2) {
  7107. this.$message.error("每道题目至少需要设置2个选项。");
  7108. return;
  7109. }
  7110. }
  7111. }
  7112. }
  7113. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7114. var elc = el.checkList.filter((element) => {
  7115. return element != "";
  7116. });
  7117. return el.askstitle != "" && elc.length != 0;
  7118. });
  7119. if (!this.dialogVisible4) {
  7120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7121. this.taskCount
  7122. ].toolChoose[this.toolIndex] = this.askJson;
  7123. }
  7124. this.dialogVisible5 = false;
  7125. if (
  7126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7127. .toolChoose[this.toolIndex].tool != 4
  7128. ) {
  7129. this.addTools(4, this.taskCount, this.toolIndex);
  7130. }
  7131. },
  7132. addTest() {
  7133. // if (this.testJson.testTitle === "") {
  7134. // this.$message.error("标题不能为空!");
  7135. // return;
  7136. // }
  7137. var aj = this.testJson.testJson;
  7138. var b = 1;
  7139. for (var i = 0; i < aj.length; i++) {
  7140. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7141. var a = 1;
  7142. for (let index = 0; index < aj[i].testItem; index++) {
  7143. const element = aj[i].checkList[index]
  7144. ? aj[i].checkList[index]
  7145. : "";
  7146. if (element != "") {
  7147. b++;
  7148. this.$message.error(`请将题目${i + 1}填写完整。`);
  7149. return;
  7150. } else {
  7151. a++;
  7152. }
  7153. }
  7154. if (b == 1) {
  7155. this.$message.error("至少填写一个问题");
  7156. return;
  7157. }
  7158. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7159. for (let index = 0; index < aj[i].testItem; index++) {
  7160. const element = aj[i].checkList[index]
  7161. ? aj[i].checkList[index]
  7162. : "";
  7163. var index = 0;
  7164. for (var z = 0; z < aj[i].checkList.length; z++) {
  7165. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7166. if (checkC != "") {
  7167. index++;
  7168. } else {
  7169. this.$message.error(`题目${i + 1}选项不能为空!`);
  7170. return;
  7171. }
  7172. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  7173. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  7174. if (checkC == checkC2) {
  7175. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7176. return;
  7177. }
  7178. }
  7179. }
  7180. b++;
  7181. if (index < 2) {
  7182. this.$message.error("每道题目至少需要设置2个选项。");
  7183. return;
  7184. }
  7185. if (
  7186. (aj[i].type == "2" && !aj[i].answer.length) ||
  7187. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  7188. ) {
  7189. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  7190. return;
  7191. }
  7192. }
  7193. }
  7194. }
  7195. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7196. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7197. var elc = el.checkList.filter((element) => {
  7198. return element != "";
  7199. });
  7200. return (
  7201. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7202. );
  7203. });
  7204. isTestJson.testCount = isTestJson.testJson.length;
  7205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7206. this.taskCount
  7207. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7208. this.dialogVisibleChoice = false;
  7209. if (
  7210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7211. .toolChoose[this.toolIndex].tool != 45
  7212. ) {
  7213. this.addTools(45, this.taskCount, this.toolIndex);
  7214. }
  7215. },
  7216. addVideoJson(videoJson) {
  7217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7218. this.taskCount
  7219. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7220. this.dialogVisibleVideo = false;
  7221. if (
  7222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7223. .toolChoose[this.toolIndex].tool != 62
  7224. ) {
  7225. this.addTools(62, this.taskCount, this.toolIndex);
  7226. }
  7227. },
  7228. //自动获取剪贴板
  7229. pasteOption() {
  7230. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7231. if (!iframe) {
  7232. this.$message.error("请使用AI共创生成题目");
  7233. return;
  7234. }
  7235. let copyData = iframe.contentWindow.copyData;
  7236. if (!copyData || !copyData.selectData.length) {
  7237. this.$message.error("请使用AI共创生成题目");
  7238. return;
  7239. }
  7240. let selectData = copyData.selectData;
  7241. for (var i = 0; i < selectData.length; i++) {
  7242. let answer = 0;
  7243. switch (selectData[i].answer[0]) {
  7244. case "A":
  7245. answer = 0;
  7246. break;
  7247. case "B":
  7248. answer = 1;
  7249. break;
  7250. case "C":
  7251. answer = 2;
  7252. break;
  7253. case "D":
  7254. answer = 3;
  7255. break;
  7256. case "E":
  7257. answer = 4;
  7258. break;
  7259. default:
  7260. break;
  7261. }
  7262. this.testJson.testJson.push({
  7263. teststitle: selectData[i].subject,
  7264. testItem: selectData[i].options.length,
  7265. checkList: selectData[i].options,
  7266. timuList: [],
  7267. answer: answer,
  7268. type: "1",
  7269. });
  7270. this.testJson.testCount++;
  7271. }
  7272. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7273. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7274. var elc = el.checkList.filter((element) => {
  7275. return element != "";
  7276. });
  7277. return (
  7278. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7279. );
  7280. });
  7281. isTestJson.testCount = isTestJson.testJson.length;
  7282. this.testJson = isTestJson;
  7283. this.$forceUpdate();
  7284. },
  7285. pasteTask() {
  7286. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7287. if (!iframe) {
  7288. this.$message.error("请使用AI共创生成");
  7289. return;
  7290. }
  7291. let copyData = iframe.contentWindow.copyData;
  7292. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7293. this.$message.error("请使用AI共创生成");
  7294. return;
  7295. }
  7296. let stageTasksData = copyData.tasksData;
  7297. let taskA = [];
  7298. let tasks = stageTasksData;
  7299. for (var j = 0; j < tasks.length; j++) {
  7300. taskA.push({
  7301. task: tasks[j].taskName,
  7302. taskDetail: tasks[j].taskDecs,
  7303. chapterData: [],
  7304. toolText: "",
  7305. toolChoose: [
  7306. {
  7307. tool: [],
  7308. toolDetail: "",
  7309. toolType: 0,
  7310. askCount: 1,
  7311. askTitle: "",
  7312. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7313. },
  7314. ],
  7315. isShowTools: false,
  7316. askCount: 1,
  7317. isFold: 0,
  7318. askTitle: "",
  7319. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7320. checkJson: [{ checkCount: [], checkPerent: [] }],
  7321. homeworkList: [],
  7322. });
  7323. }
  7324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7325. this.$forceUpdate();
  7326. },
  7327. pasteStage() {
  7328. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7329. if (!iframe) {
  7330. this.$message.error("请使用AI共创生成");
  7331. return;
  7332. }
  7333. let copyData = iframe.contentWindow.copyData;
  7334. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7335. this.$message.error("请使用AI共创生成");
  7336. return;
  7337. }
  7338. let stageData = copyData.stageData;
  7339. let stage = [];
  7340. for (var i = 0; i < stageData.length; i++) {
  7341. stage.push({
  7342. dyName: stageData[i], //单元标题
  7343. chapterInfo: [
  7344. {
  7345. isread: false,
  7346. chapterid: this.guid(),
  7347. title: "",
  7348. courseName: "",
  7349. taskJson: [
  7350. {
  7351. task: "",
  7352. taskDetail: "",
  7353. chapterData: [],
  7354. toolText: "",
  7355. toolChoose: [
  7356. {
  7357. tool: [],
  7358. toolDetail: "",
  7359. toolType: 0,
  7360. askCount: 1,
  7361. askTitle: "",
  7362. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7363. },
  7364. ],
  7365. isShowTools: false,
  7366. askCount: 1,
  7367. isFold: 0,
  7368. askTitle: "",
  7369. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7370. checkJson: [{ checkCount: [], checkPerent: [] }],
  7371. homeworkList: [],
  7372. },
  7373. ],
  7374. itemCount: 1,
  7375. fileList1: [],
  7376. video: [],
  7377. testData: [],
  7378. pData: [],
  7379. templateArray: [],
  7380. },
  7381. ],
  7382. });
  7383. }
  7384. let _this = this;
  7385. _this
  7386. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  7387. confirmButtonText: "确定",
  7388. cancelButtonText: "取消",
  7389. type: "warning",
  7390. })
  7391. .then(() => {
  7392. _this.unitIndex = 0;
  7393. _this.unitJson = stage;
  7394. _this.steps++;
  7395. _this.updateWork();
  7396. })
  7397. .catch(() => {
  7398. return;
  7399. });
  7400. },
  7401. openStageBox() {
  7402. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  7403. this.dialogVisibleStageChange = true;
  7404. },
  7405. updateChange() {
  7406. this.$confirm(
  7407. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  7408. "提示",
  7409. {
  7410. confirmButtonText: "确定",
  7411. cancelButtonText: "取消",
  7412. type: "warning",
  7413. }
  7414. )
  7415. .then(() => {
  7416. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  7417. this.updateWork()
  7418. this.dialogVisibleStageChange = false;
  7419. })
  7420. .catch(() => {
  7421. return;
  7422. });
  7423. },
  7424. addAnswer() {
  7425. if (this.answerQ == "") {
  7426. this.$message.error("请输入您想要问的问题");
  7427. return;
  7428. }
  7429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7430. this.taskCount
  7431. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7432. this.dialogVisible8 = false;
  7433. if (
  7434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7435. .toolChoose[this.toolIndex].tool != 15
  7436. ) {
  7437. this.addTools(15, this.taskCount, this.toolIndex);
  7438. }
  7439. },
  7440. addMp3Answer() {
  7441. if (this.answerQ == "") {
  7442. this.$message.error("请输入您想要回答的问题");
  7443. return;
  7444. }
  7445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7446. this.taskCount
  7447. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7448. this.dialogVisibleMp3 = false;
  7449. },
  7450. addRateAnswer() {
  7451. var a = 1;
  7452. for (var i = 0; i < this.rateJson.length; i++) {
  7453. if (this.rateJson[i].value == "") {
  7454. a = 2;
  7455. break;
  7456. }
  7457. }
  7458. if (a == 2) {
  7459. this.$message.error("请把评价信息填写完整");
  7460. return;
  7461. }
  7462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7463. this.taskCount
  7464. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7465. this.dialogVisibleRate = false;
  7466. if (
  7467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7468. .toolChoose[this.toolIndex].tool != 40
  7469. ) {
  7470. this.addTools(40, this.taskCount, this.toolIndex);
  7471. }
  7472. },
  7473. addSelectAnswer() {
  7474. if (this.selectJson.url == "") {
  7475. this.$message.error("请上传题目");
  7476. return;
  7477. }
  7478. if (!this.selectJson.select.length) {
  7479. this.$message.error("请添加选项");
  7480. return;
  7481. }
  7482. if (!this.selectJson.answer.length) {
  7483. this.$message.error("请设置答案");
  7484. return;
  7485. }
  7486. var a = 1;
  7487. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7488. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7489. a = 2;
  7490. }
  7491. }
  7492. if (a == 2) {
  7493. this.$message.error("请设置答案");
  7494. return;
  7495. }
  7496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7497. this.taskCount
  7498. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7499. this.dialogVisibleSelect = false;
  7500. if (
  7501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7502. .toolChoose[this.toolIndex].tool != 41
  7503. ) {
  7504. this.addTools(41, this.taskCount, this.toolIndex);
  7505. }
  7506. },
  7507. nextSelectSteps() {
  7508. if (this.selectJson.url == "") {
  7509. this.$message.error("请上传题目");
  7510. return;
  7511. }
  7512. if (!this.selectJson.select.length) {
  7513. this.$message.error("请添加选项");
  7514. return;
  7515. } else {
  7516. for (var z = 0; z < this.selectJson.select.length; z++) {
  7517. let checkC = this.selectJson.select[z];
  7518. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  7519. let checkC2 = this.selectJson.select[z2];
  7520. if (checkC == checkC2) {
  7521. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  7522. return;
  7523. }
  7524. }
  7525. }
  7526. }
  7527. var a = 1;
  7528. for (var i = 0; i < this.selectJson.select.length; i++) {
  7529. if (!this.selectJson.select[i]) {
  7530. a = 2;
  7531. }
  7532. }
  7533. if (a == 2) {
  7534. this.$message.error("添加的选项不能为空");
  7535. return;
  7536. }
  7537. this.selectSteps++;
  7538. },
  7539. selectCourseDetail() {
  7540. if (this.cid == "" || this.cid == undefined) {
  7541. console.log("这是新增课程");
  7542. this.selectAllType();
  7543. } else {
  7544. this.cidType = 1;
  7545. let params = {
  7546. cid: this.cid,
  7547. };
  7548. this.ajax
  7549. .get(this.$store.state.api + "select_course_detail", params)
  7550. .then((res) => {
  7551. this.loading = true;
  7552. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7553. for (var j = 0; j < this.unitJson.length; j++) {
  7554. for (
  7555. var k = 0;
  7556. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7557. k++
  7558. ) {
  7559. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7560. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7561. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7562. : [];
  7563. let _chapterData = [];
  7564. for (
  7565. var c = 0;
  7566. c <
  7567. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7568. .length;
  7569. c++
  7570. ) {
  7571. if (
  7572. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7573. ) {
  7574. _chapterData.push(
  7575. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7576. );
  7577. }
  7578. }
  7579. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7580. _chapterData;
  7581. }
  7582. }
  7583. this.$forceUpdate();
  7584. this.courseName = res.data[0][0].title;
  7585. this.courseText = res.data[0][0].brief;
  7586. this.evalua = res.data[0][0].evaId;
  7587. this.cover = JSON.parse(res.data[0][0].cover);
  7588. this.noneBtnImg = this.cover.length >= 1;
  7589. // this.checkboxList =
  7590. // res.data[0][0].course_student.length > 0
  7591. // ? JSON.parse(res.data[0][0].course_student)
  7592. // : [];
  7593. this.checkboxList2 = res.data[0][0].juri
  7594. ? res.data[0][0].juri.split(",")
  7595. : [];
  7596. this.inviteCode = [];
  7597. for (var i = 0; i < res.data[2].length; i++) {
  7598. this.inviteCode.push({
  7599. cid: res.data[2][i].classid,
  7600. ic: res.data[2][i].code,
  7601. });
  7602. }
  7603. this.checkboxList3 = res.data[0][0].course_teacher
  7604. ? res.data[0][0].course_teacher.split(",")
  7605. : [];
  7606. // this.isTeacherSee =
  7607. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7608. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7609. this.myWord = res.data[0][0].template;
  7610. this.templateC.id = "123";
  7611. this.courseUserid = res.data[0][0].userid;
  7612. // if(this.courseUserid == this.userid){
  7613. // this.InviteChange(this.checkboxList2)
  7614. // }
  7615. this.nbOrder = res.data[0][0].ordernumber;
  7616. this.courseTypeId = [];
  7617. for (var i = 0; i < res.data[1].length; i++) {
  7618. this.courseTypeId.push(res.data[1][i].typeid);
  7619. }
  7620. console.log(this.courseTypeId);
  7621. // if (this.timer) clearInterval(this.timer);
  7622. if (this.timer) clearTimeout(this.timer);
  7623. this.timer = null;
  7624. // this.timer = setInterval(() => {
  7625. this.seleteCourseUpdate();
  7626. this.setMan();
  7627. this.selectAllType();
  7628. // }, 5000);
  7629. this.$forceUpdate();
  7630. setTimeout(() => {
  7631. this.checkEva(this.evalua);
  7632. }, 0);
  7633. })
  7634. .catch((err) => {
  7635. console.error(err);
  7636. });
  7637. }
  7638. },
  7639. seleteCourseUpdate() {
  7640. let params = {
  7641. cid: this.cid,
  7642. };
  7643. this.ajax
  7644. .get(this.$store.state.api + "select_course_detail", params)
  7645. .then((res) => {
  7646. // console.log(this.unitJson);
  7647. let unitJson = JSON.parse(res.data[0][0].chapters);
  7648. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7649. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7650. let _unitJson = [];
  7651. let _chapAarry = [];
  7652. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7653. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7654. let index = 1;
  7655. let chapindex;
  7656. if (_unitJson2.length > unitJson.length) {
  7657. for (let c = 0; c < _unitJson2.length; c++) {
  7658. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7659. }
  7660. for (let j = 0; j < unitJson.length; j++) {
  7661. let count = 0;
  7662. for (let k = 0; k < _unitJson2.length; k++) {
  7663. if (
  7664. unitJson[j].chapterInfo[0].chapterid ==
  7665. _unitJson2[k].chapterInfo[0].chapterid
  7666. ) {
  7667. count++;
  7668. _chapAarry.splice(
  7669. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7670. 1
  7671. );
  7672. _unitJson.push(unitJson[j]);
  7673. break;
  7674. }
  7675. }
  7676. // if(count === 0){
  7677. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7678. // }
  7679. }
  7680. for (let k = 0; k < _unitJson2.length; k++) {
  7681. if (_unitJson2[k].isUpdate == 1) {
  7682. _chapAarry.splice(
  7683. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7684. 1
  7685. );
  7686. _unitJson.push(_unitJson2[k]);
  7687. }
  7688. }
  7689. console.log(_chapAarry);
  7690. for (let d = 0; d < _unitJson2.length; d++) {
  7691. if (
  7692. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7693. ) {
  7694. if (_unitIndex == d) {
  7695. index = 2;
  7696. }
  7697. chapindex = d;
  7698. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7699. }
  7700. }
  7701. } else {
  7702. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7703. }
  7704. for (let i = 0; i < unitJson.length; i++) {
  7705. if (
  7706. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7707. _unitJson[i].chapterInfo[0].chapterid !=
  7708. unitJson[i].chapterInfo[0].chapterid
  7709. ) {
  7710. if (i == _unitJson.length - 1) {
  7711. // this.unitIndex++
  7712. _unitIndex2++;
  7713. }
  7714. _unitJson.splice(i, 0, unitJson[i]);
  7715. } else if (i > _unitJson.length - 1) {
  7716. _unitJson.push(unitJson[i]);
  7717. } else if (
  7718. _unitJson[i].chapterInfo[0].chapterid ==
  7719. unitJson[i].chapterInfo[0].chapterid
  7720. ) {
  7721. _unitJson[i] = unitJson[i];
  7722. }
  7723. // if (i == _unitIndex) {
  7724. // continue;
  7725. // } else
  7726. }
  7727. if (_chapAarry.length && index != 2) {
  7728. if (chapindex < _unitIndex) {
  7729. this.isDelete = 2;
  7730. // this.unitIndex--;
  7731. _unitIndex2--;
  7732. } else if (
  7733. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7734. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7735. ) {
  7736. this.isDelete = 2;
  7737. for (let n = 0; n < _unitJson.length; n++) {
  7738. if (
  7739. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7740. _unitJson[n].chapterInfo[0].chapterid
  7741. ) {
  7742. // this.unitIndex = n;
  7743. _unitIndex2 = n;
  7744. _unitJson[n] = _unitJson2[_unitIndex];
  7745. break;
  7746. }
  7747. }
  7748. }
  7749. } else if (index != 2) {
  7750. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  7751. _unitJson2[_unitIndex];
  7752. for (
  7753. var ci = 0;
  7754. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7755. ci++
  7756. ) {
  7757. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7758. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7759. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7760. .toolChoose
  7761. : [];
  7762. let _chapterData = [];
  7763. for (
  7764. var c = 0;
  7765. c <
  7766. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7767. .length;
  7768. c++
  7769. ) {
  7770. if (
  7771. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7772. .chapterData[c]
  7773. ) {
  7774. _chapterData.push(
  7775. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7776. .chapterData[c]
  7777. );
  7778. }
  7779. }
  7780. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7781. _chapterData;
  7782. }
  7783. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7784. }
  7785. if (index == 1) {
  7786. this.unitJson = _unitJson;
  7787. this.$forceUpdate();
  7788. setTimeout(() => {
  7789. if (this.unitIndex != _unitIndex2) {
  7790. this.isDelete = 2;
  7791. this.unitIndex = _unitIndex2;
  7792. }
  7793. }, 0);
  7794. this.timer = setTimeout(() => {
  7795. this.seleteCourseUpdate();
  7796. }, 1000);
  7797. } else if (index == 2) {
  7798. let _this = this;
  7799. _this
  7800. .$confirm(
  7801. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7802. "提示",
  7803. {
  7804. confirmButtonText: "需要",
  7805. cancelButtonText: "取消",
  7806. type: "warning",
  7807. }
  7808. )
  7809. .then(() => {
  7810. if (_this.time()) {
  7811. _this.restoreWork(
  7812. _chapAarry[0],
  7813. _unitJson,
  7814. chapindex,
  7815. _unitJson2,
  7816. _unitIndex2
  7817. );
  7818. }
  7819. })
  7820. .catch(() => {
  7821. _this.unitJson = _unitJson;
  7822. _this.$forceUpdate();
  7823. setTimeout(() => {
  7824. if (this.unitIndex != _unitIndex2) {
  7825. this.isDelete = 2;
  7826. this.unitIndex = _unitIndex2;
  7827. }
  7828. }, 0);
  7829. _this.timer = setTimeout(() => {
  7830. _this.seleteCourseUpdate();
  7831. }, 1000);
  7832. });
  7833. }
  7834. })
  7835. .catch((err) => {
  7836. console.error(err);
  7837. });
  7838. },
  7839. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7840. let params = [
  7841. {
  7842. cid: this.cid,
  7843. chapters: JSON.stringify(this.unitJson),
  7844. uid: this.userid,
  7845. chapid: chapid,
  7846. },
  7847. ];
  7848. this.ajax
  7849. .post(this.$store.state.api + "restoreWork", params)
  7850. .then((res) => {
  7851. this.$message({
  7852. message: "恢复成功",
  7853. type: "success",
  7854. });
  7855. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7856. this.unitJson = unitJson;
  7857. this.$forceUpdate();
  7858. setTimeout(() => {
  7859. if (this.unitIndex != unitIndex2) {
  7860. this.isDelete = 2;
  7861. this.unitIndex = unitIndex2;
  7862. }
  7863. }, 0);
  7864. this.timer = setTimeout(() => {
  7865. this.seleteCourseUpdate();
  7866. }, 1000);
  7867. })
  7868. .catch((err) => {
  7869. this.$message.error("网络不佳");
  7870. console.error(err);
  7871. });
  7872. },
  7873. getTypeName() {
  7874. console.log(this.courseTypeId);
  7875. this.$forceUpdate();
  7876. },
  7877. selectAllType() {
  7878. let params = {
  7879. org: this.org && this.org != "" ? this.org : "",
  7880. oid: this.oid && this.oid != "" ? this.oid : "",
  7881. };
  7882. this.ajax
  7883. .get(this.$store.state.api + "selectAllType", params)
  7884. .then((res) => {
  7885. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7886. res.data[0] = [...res.data[0], ...res.data[4]]
  7887. }
  7888. this.CourseType = res.data;
  7889. this.CourseType2 = [
  7890. { name: "智见课程", id: [] },
  7891. { name: "智行课程", id: [] },
  7892. { name: "智创课程", id: [] },
  7893. ];
  7894. for (var cti = 0; cti < res.data[0].length; cti++) {
  7895. if (
  7896. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7897. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7898. ) {
  7899. this.CourseType2[0].id.push(res.data[0][cti].id);
  7900. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7901. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7902. this.CourseType2[1].id.push(res.data[0][cti].id);
  7903. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7904. this.CourseType2[2].id.push(res.data[0][cti].id);
  7905. }
  7906. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  7907. res.data[0][cti].name = "年级";
  7908. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  7909. res.data[0][cti].name = "学科";
  7910. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7911. res.data[0][cti].name = "主题";
  7912. }
  7913. }
  7914. let _courseTypeId = [];
  7915. for (var i = 0; i < res.data[0].length; i++) {
  7916. if (!this.cid) {
  7917. this.courseTypeId[res.data[0][i].id] = [];
  7918. }
  7919. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7920. // }
  7921. this.CourseTypeJson[res.data[0][i].id] = [];
  7922. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7923. if (res.data[0][i].name == "栏目") {
  7924. this.CourseType[0][i].name = "主题";
  7925. }
  7926. }
  7927. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7928. for (var j = 0; j < res.data[1].length; j++) {
  7929. if (
  7930. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7931. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7932. ) {
  7933. _courseTypeId.push(res.data[1][j].id);
  7934. }
  7935. if (res.data[0][i].id == res.data[1][j].pid) {
  7936. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7937. }
  7938. }
  7939. } else {
  7940. if (res.data[2].length > 0) {
  7941. for (var j = 0; j < res.data[2].length; j++) {
  7942. if (
  7943. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7944. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7945. ) {
  7946. _courseTypeId.push(res.data[2][j].id);
  7947. }
  7948. if (res.data[0][i].id == res.data[2][j].pid) {
  7949. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7950. }
  7951. }
  7952. }
  7953. if (res.data[3].length > 0) {
  7954. for (var j = 0; j < res.data[3].length; j++) {
  7955. if (
  7956. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7957. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7958. ) {
  7959. _courseTypeId.push(res.data[3][j].id);
  7960. }
  7961. if (res.data[0][i].id == res.data[3][j].pid) {
  7962. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7963. }
  7964. }
  7965. }
  7966. }
  7967. }
  7968. this.courseTypeId = _courseTypeId;
  7969. })
  7970. .catch((err) => {
  7971. console.error(err);
  7972. });
  7973. },
  7974. selectType() {
  7975. this.ajax
  7976. .get(this.$store.state.api + "selectType")
  7977. .then((res) => {
  7978. this.CourseType = res.data;
  7979. for (var i = 0; i < res.data[0].length; i++) {
  7980. if (!this.cid) {
  7981. this.courseTypeId[res.data[0][i].id] = "";
  7982. }
  7983. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7984. if (res.data[0][i].name == "栏目") {
  7985. this.CourseType[0][i].name = "主题";
  7986. }
  7987. }
  7988. for (var j = 0; j < res.data[1].length; j++) {
  7989. if (res.data[0][i].id == res.data[1][j].pid) {
  7990. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7991. this.CourseTypeJson[res.data[0][i].id] = [];
  7992. }
  7993. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7994. }
  7995. }
  7996. }
  7997. this.selectTypeByOid();
  7998. this.selectTypeByOrg();
  7999. })
  8000. .catch((err) => {
  8001. console.error(err);
  8002. });
  8003. },
  8004. selectTypeByOid() {
  8005. let params = {
  8006. oid: this.oid,
  8007. };
  8008. this.ajax
  8009. .get(this.$store.state.api + "selectTypeByOid", params)
  8010. .then((res) => {
  8011. for (var i = 0; i < res.data[0].length; i++) {
  8012. for (var j = 0; j < res.data[1].length; j++) {
  8013. if (res.data[0][i].id == res.data[1][j].pid) {
  8014. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8015. this.CourseTypeJson[res.data[0][i].id] = [];
  8016. }
  8017. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8018. }
  8019. }
  8020. }
  8021. })
  8022. .catch((err) => {
  8023. console.error(err);
  8024. });
  8025. },
  8026. selectTypeByOrg() {
  8027. let params = {
  8028. oid: this.org,
  8029. };
  8030. this.ajax
  8031. .get(this.$store.state.api + "selectTypeByOrg", params)
  8032. .then((res) => {
  8033. for (var i = 0; i < res.data[0].length; i++) {
  8034. for (var j = 0; j < res.data[1].length; j++) {
  8035. if (res.data[0][i].id == res.data[1][j].pid) {
  8036. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8037. this.CourseTypeJson[res.data[0][i].id] = [];
  8038. }
  8039. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8040. }
  8041. }
  8042. }
  8043. this.$forceUpdate();
  8044. })
  8045. .catch((err) => {
  8046. console.error(err);
  8047. });
  8048. },
  8049. OtherMb(type) {
  8050. this.typeMode = type;
  8051. setTimeout(() => {
  8052. this.checkEva(this.checkId);
  8053. }, 100);
  8054. },
  8055. openMember() {
  8056. this.searchTN = "";
  8057. this.getTeacher();
  8058. this.dialogVisibleMember = true;
  8059. },
  8060. checkEva(id, type) {
  8061. this.dialogVisiblemb = false;
  8062. this.selectEva();
  8063. if (this.evalua != id && type == 2) {
  8064. this.$message.success("导入成功");
  8065. }
  8066. this.evalua = id;
  8067. this.checkId = id;
  8068. if (this.evalua != "") {
  8069. for (var i = 0; i < this.evaJuri.length; i++) {
  8070. if (this.evalua == this.evaJuri[i].id) {
  8071. this.eTitle = this.evaJuri[i].title;
  8072. this.eJson = JSON.parse(this.evaJuri[i].content);
  8073. }
  8074. }
  8075. this.data.data = [];
  8076. this.$forceUpdate();
  8077. setTimeout(() => {
  8078. this.setMindData();
  8079. }, 500);
  8080. }
  8081. },
  8082. deleteEva() {
  8083. let _this = this;
  8084. if (_this.evalua == "") {
  8085. this.$message.warning("内容已经清空了,请勿重复清空");
  8086. return;
  8087. }
  8088. _this
  8089. .$confirm("确定删除此目标吗?", "提示", {
  8090. confirmButtonText: "确定",
  8091. cancelButtonText: "取消",
  8092. type: "warning",
  8093. })
  8094. .then(() => {
  8095. _this.evalua = "";
  8096. _this.checkId = "";
  8097. _this.eTitle = "";
  8098. let _unitJson = _this.unitJson;
  8099. for (var i = 0; i < _unitJson.length; i++) {
  8100. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8101. for (var j = 0; j < _task.length; j++) {
  8102. let _eList = _task[j].eList;
  8103. for (var k = 0; k < _eList.length; k++) {
  8104. delete _eList[k].target;
  8105. }
  8106. }
  8107. }
  8108. _this.$forceUpdate();
  8109. if (_this.cid) {
  8110. _this.updateWork();
  8111. }
  8112. })
  8113. .catch(() => {
  8114. return;
  8115. });
  8116. },
  8117. selectEva() {
  8118. let params = {
  8119. oid: this.oid,
  8120. };
  8121. this.ajax
  8122. .get(this.$store.state.api + "selectAllEvaluation", params)
  8123. .then((res) => {
  8124. this.evaJuri = res.data[0];
  8125. })
  8126. .catch((err) => {
  8127. console.error(err);
  8128. });
  8129. },
  8130. setMindData() {
  8131. let targetArray = [];
  8132. this.data.data = [];
  8133. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8134. let _eJson = Object.keys(this.eJson);
  8135. let _e = this.eJson;
  8136. for (let i = 0; i < _eJson.length; i++) {
  8137. let element = _e[_eJson[i]];
  8138. this.data.data.push({
  8139. id: element.id,
  8140. parentid: "root",
  8141. topic: element.name,
  8142. });
  8143. // targetArray.push({
  8144. // id: element.id,
  8145. // parentid: "root",
  8146. // name: element.name,
  8147. // });
  8148. targetArray.push({
  8149. value: element.name,
  8150. label: element.name,
  8151. children: [],
  8152. });
  8153. let _eJsonc = Object.keys(element.child);
  8154. let _e2 = element.child;
  8155. for (let j = 0; j < _eJsonc.length; j++) {
  8156. let _ec = _e2[_eJsonc[j]];
  8157. this.data.data.push({
  8158. id: _ec.id,
  8159. parentid: element.id,
  8160. topic: _ec.name,
  8161. });
  8162. // targetArray.push({
  8163. // id: _ec.id,
  8164. // parentid: element.id,
  8165. // name: _ec.name,
  8166. // });
  8167. targetArray[i].children.push({
  8168. value: _ec.name,
  8169. label: _ec.name,
  8170. children: [],
  8171. });
  8172. let _eJsonz = Object.keys(_ec.child);
  8173. let _e3 = _ec.child;
  8174. for (let z = 0; z < _eJsonz.length; z++) {
  8175. let _ez = _e3[_eJsonz[z]];
  8176. this.data.data.push({
  8177. id: _ez.id,
  8178. parentid: _ec.id,
  8179. topic: _ez.name,
  8180. });
  8181. // targetArray.push({
  8182. // id: _ez.id,
  8183. // parentid: _ec.id,
  8184. // name: _ez.name,
  8185. // });
  8186. targetArray[i].children[j].children.push({
  8187. value: _ez.name,
  8188. label: _ez.name,
  8189. });
  8190. }
  8191. }
  8192. }
  8193. this.targetArray = targetArray;
  8194. this.$forceUpdate();
  8195. },
  8196. /*添加评价 */
  8197. addEList(index, tIndex) {
  8198. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8199. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8200. value: "",
  8201. detail: "",
  8202. score: 5,
  8203. })
  8204. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8205. { value: "", detail: "", score: 5 },
  8206. ]);
  8207. this.$forceUpdate();
  8208. },
  8209. forceUpdate() {
  8210. this.$forceUpdate();
  8211. },
  8212. deletEList(index, tIndex, eIndex) {
  8213. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8214. eIndex,
  8215. 1
  8216. );
  8217. this.$forceUpdate();
  8218. },
  8219. getChoosePic(t) {
  8220. this.chooseType = t;
  8221. this.getAllBanner();
  8222. },
  8223. getAllBanner() {
  8224. this.sysPicVisible = true;
  8225. let params = {
  8226. t: this.chooseType,
  8227. };
  8228. this.ajax
  8229. .get(this.$store.state.api + "selectAllBanner", params)
  8230. .then((res) => {
  8231. this.sysPic = res.data[0];
  8232. })
  8233. .catch((err) => {
  8234. console.error(err);
  8235. });
  8236. },
  8237. // getClass() {
  8238. // let params = {
  8239. // oid: this.oid,
  8240. // };
  8241. // this.ajax
  8242. // .get(this.$store.state.api + "selectClassBySchool", params)
  8243. // .then((res) => {
  8244. // this.classJuri = res.data[0];
  8245. // })
  8246. // .catch((err) => {
  8247. // console.error(err);
  8248. // });
  8249. // },
  8250. deleteSysPic() {
  8251. this.cover = [];
  8252. this.isSysPic = false;
  8253. this.isSysPic2 = false;
  8254. },
  8255. deleteSelectPic() {
  8256. this.selectJson.url = "";
  8257. },
  8258. setEListStar() {
  8259. this.$forceUpdate();
  8260. },
  8261. deletRateList(i) {
  8262. this.rateJson.splice(i, 1);
  8263. },
  8264. addRateList() {
  8265. this.rateJson.push({ detail: "", score: 5, value: "" });
  8266. },
  8267. addSt() {
  8268. this.sentenceList.push({
  8269. sentenceTitle: "",
  8270. addSentence: [],
  8271. rightAnswer: [],
  8272. });
  8273. },
  8274. addSen(i) {
  8275. if (!this.sentenceList[i].sentenceTitle) {
  8276. this.$message.error("请填写卡片内容!");
  8277. return;
  8278. }
  8279. if (this.sentenceList[i].sentenceTitle.length > 10) {
  8280. this.$message.error("卡片内容字数不能超过10位");
  8281. return;
  8282. }
  8283. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  8284. this.$message.error("不能添加重复的卡片内容!");
  8285. return;
  8286. }
  8287. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8288. // this.isPushTitleList.push(this.sentenceTitle);
  8289. this.sentenceList[i].sentenceTitle = "";
  8290. },
  8291. setRightAnswer(s, i, j) {
  8292. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8293. this.sentenceList[i].rightAnswer.push(s);
  8294. }
  8295. },
  8296. returnCard(r, i, j) {
  8297. this.sentenceList[i].rightAnswer.splice(j, 1);
  8298. },
  8299. addSentenceTool() {
  8300. for (var i = 0; i < this.sentenceList.length; i++) {
  8301. if (this.sentenceList[i].rightAnswer.length == 0) {
  8302. this.$message.error(`请将题目${i + 1}设置完整。`);
  8303. return;
  8304. }
  8305. if (
  8306. this.sentenceList[i].addSentence.length !=
  8307. this.sentenceList[i].rightAnswer.length
  8308. ) {
  8309. this.$message.error(`请将题目${i + 1}设置完整。`);
  8310. return;
  8311. }
  8312. }
  8313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8314. this.taskCount
  8315. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8316. this.sentenceList = [
  8317. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8318. ];
  8319. this.dialogVisibleSentence = false;
  8320. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8321. // itemTaskIndex
  8322. // ].toolChoose[toolIndex].tool = [];
  8323. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8324. // itemTaskIndex
  8325. // ].toolChoose[toolIndex].tool.push(i);
  8326. if (
  8327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8328. .toolChoose[this.toolIndex].tool != 47
  8329. ) {
  8330. this.addTools(47, this.taskCount, this.toolIndex);
  8331. }
  8332. },
  8333. addTableJson() {
  8334. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8335. // this.$message.error("请将信息填写完整!");
  8336. // return;
  8337. // }
  8338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8339. this.taskCount
  8340. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8341. // this.tableJson = [{ text: "" }];
  8342. // this.dialogVisibleTable = false;
  8343. this.$message.success("上传成功");
  8344. if (
  8345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8346. .toolChoose[this.toolIndex].tool != 48
  8347. ) {
  8348. this.addTools(48, this.taskCount, this.toolIndex);
  8349. }
  8350. },
  8351. addWordJson() {
  8352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8353. this.taskCount
  8354. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8355. // this.wordJson = [{ text: "" }];
  8356. // this.dialogVisibleWord = false;
  8357. this.$message.success("上传成功");
  8358. if (
  8359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8360. .toolChoose[this.toolIndex].tool != 52
  8361. ) {
  8362. this.addTools(52, this.taskCount, this.toolIndex);
  8363. }
  8364. },
  8365. addMoreUpload() {
  8366. if (this.uploadJson.length == 0) {
  8367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8368. this.taskCount
  8369. ].toolChoose[this.toolIndex].uploadJson = [];
  8370. } else {
  8371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8372. this.taskCount
  8373. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8374. }
  8375. this.uploadJson = [];
  8376. this.dialogVisibleMoreUpload = false;
  8377. if (
  8378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8379. .toolChoose[this.toolIndex].tool != 50
  8380. ) {
  8381. this.addTools(50, this.taskCount, this.toolIndex);
  8382. }
  8383. },
  8384. addPreTime() {
  8385. if (this.preTime == 0) {
  8386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8387. this.taskCount
  8388. ].toolChoose[this.toolIndex].preTime = 0;
  8389. } else {
  8390. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8391. this.taskCount
  8392. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8393. }
  8394. this.preTime = 0;
  8395. this.dialogVisiblePreTime = false;
  8396. if (
  8397. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8398. .toolChoose[this.toolIndex].tool != 10
  8399. ) {
  8400. this.addTools(10, this.taskCount, this.toolIndex);
  8401. }
  8402. },
  8403. goToTask(i) {
  8404. document.querySelector(".rb_c_box_right > .basic_box").scrollTop =
  8405. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8406. this.isClickColor = i + 1;
  8407. },
  8408. taskMove(type, index) {
  8409. this.$confirm(
  8410. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8411. "提示",
  8412. {
  8413. confirmButtonText: "确定",
  8414. cancelButtonText: "取消",
  8415. type: "warning",
  8416. }
  8417. )
  8418. .then(() => {
  8419. if (type == 1) {
  8420. if (index > 0) {
  8421. let a = JSON.parse(
  8422. JSON.stringify(
  8423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8424. index - 1
  8425. ]
  8426. )
  8427. );
  8428. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8431. }
  8432. } else {
  8433. if (
  8434. index <
  8435. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8436. ) {
  8437. let a = JSON.parse(
  8438. JSON.stringify(
  8439. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8440. index + 1
  8441. ]
  8442. )
  8443. );
  8444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8445. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8447. }
  8448. }
  8449. this.$forceUpdate();
  8450. })
  8451. .catch(() => {
  8452. return;
  8453. });
  8454. },
  8455. stageMove(type, index) {
  8456. if (type == 1) {
  8457. if (index > 0) {
  8458. let a = JSON.parse(
  8459. JSON.stringify(
  8460. this.unitJson3[index - 1]
  8461. )
  8462. );
  8463. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  8464. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8465. this.unitJson3[index - 1] = this.unitJson3[index];
  8466. this.unitJson3[index] = a;
  8467. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  8468. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8469. }
  8470. } else {
  8471. if (
  8472. index <
  8473. this.unitJson3.length - 1
  8474. ) {
  8475. let a = JSON.parse(
  8476. JSON.stringify(
  8477. this.unitJson3[
  8478. index + 1
  8479. ]
  8480. )
  8481. );
  8482. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  8483. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  8484. this.unitJson3[index + 1] =
  8485. this.unitJson3[index];
  8486. this.unitJson3[index] = a;
  8487. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  8488. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  8489. }
  8490. }
  8491. this.$forceUpdate();
  8492. },
  8493. addGroup(i) {
  8494. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8495. this.groupJson.group.push({
  8496. name: "第" + (this.groupJson.group.length + 1) + "组",
  8497. });
  8498. },
  8499. deleteGroup(i) {
  8500. this.groupJson.group.splice(i, 1);
  8501. },
  8502. numberPan() {
  8503. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  8504. this.$message.error('请输入2-10的数字')
  8505. this.groupJson.number = ''
  8506. }
  8507. },
  8508. addGroupJson() {
  8509. for (var i = 0; i < this.groupJson.group.length; i++) {
  8510. if (!this.groupJson.group[i].name) {
  8511. this.$message.error("请将信息填写完整!");
  8512. return;
  8513. }
  8514. }
  8515. if (!this.groupJson.number) {
  8516. this.$message.error("请将信息填写完整!");
  8517. return;
  8518. }
  8519. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8520. this.taskCount
  8521. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8522. JSON.stringify(this.groupJson)
  8523. );
  8524. this.dialogVisibleGroup = false;
  8525. this.groupJson = {};
  8526. if (
  8527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8528. .toolChoose[this.toolIndex].tool != 49
  8529. ) {
  8530. this.addTools(49, this.taskCount, this.toolIndex);
  8531. }
  8532. },
  8533. updateTime(preTime) {
  8534. this.preTime = preTime;
  8535. },
  8536. InviteChange(val) {
  8537. console.log(val);
  8538. return;
  8539. let array = JSON.parse(JSON.stringify(val));
  8540. this.inviteCode = this.inviteCode.filter((el) => {
  8541. if (val.indexOf(el.cid) != -1) {
  8542. array.splice(array.indexOf(el.cid), 1);
  8543. return el;
  8544. }
  8545. });
  8546. for (var i = 0; i < array.length; i++) {
  8547. this.getInviteCode(array[i]);
  8548. }
  8549. },
  8550. async getInviteCode(cid) {
  8551. let code = this.randomNumber();
  8552. let params = {
  8553. code: code,
  8554. oid: this.oid,
  8555. };
  8556. let type = 1;
  8557. for (var i = 0; i < this.inviteCode.length; i++) {
  8558. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8559. type = 2;
  8560. }
  8561. }
  8562. if (type == 2) {
  8563. this.getInviteCode(cid);
  8564. return;
  8565. }
  8566. const res = await this.ajax.get(
  8567. this.$store.state.api + "selectInviteCode2",
  8568. params
  8569. );
  8570. if (
  8571. res.data.length &&
  8572. res.data[0].length &&
  8573. res.data[0][0].courseId != this.cid
  8574. ) {
  8575. this.getInviteCode(cid);
  8576. return;
  8577. }
  8578. let array = [];
  8579. for (var i = 0; i < this.inviteCode.length; i++) {
  8580. array.push(this.inviteCode[i].cid);
  8581. }
  8582. if (array.indexOf(cid) != -1) {
  8583. this.inviteCode[array.indexOf(cid)].ic = code;
  8584. } else {
  8585. this.inviteCode.push({ cid: cid, ic: code });
  8586. }
  8587. },
  8588. OpenInviteD(cid) {
  8589. let array = [];
  8590. this.icode = "";
  8591. for (var i = 0; i < this.inviteCode.length; i++) {
  8592. array.push(this.inviteCode[i].cid);
  8593. }
  8594. if (array.indexOf(cid) != -1) {
  8595. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8596. }
  8597. this.inviteId = cid;
  8598. this.dialogVisibleInvite = true;
  8599. },
  8600. addInvite() {
  8601. let reg = /^[A-Za-z0-9]{4,}$/;
  8602. if (!reg.test(this.icode)) {
  8603. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8604. return;
  8605. }
  8606. let type = 1;
  8607. for (var i = 0; i < this.inviteCode.length; i++) {
  8608. if (
  8609. this.inviteCode[i].cid != this.inviteId &&
  8610. this.icode == this.inviteCode[i].ic
  8611. ) {
  8612. type = 2;
  8613. }
  8614. }
  8615. if (type == 2) {
  8616. this.$message.error("已有此随机码,不能重复");
  8617. return;
  8618. }
  8619. let params = {
  8620. code: this.icode,
  8621. oid: this.oid,
  8622. };
  8623. this.ajax
  8624. .get(this.$store.state.api + "selectInviteCode", params)
  8625. .then((res) => {
  8626. if (
  8627. res.data.length &&
  8628. res.data[0].length &&
  8629. res.data[0][0].courseId != this.cid
  8630. ) {
  8631. this.$message.error("已有此随机码,不能重复");
  8632. return;
  8633. }
  8634. let array = [];
  8635. for (var i = 0; i < this.inviteCode.length; i++) {
  8636. array.push(this.inviteCode[i].cid);
  8637. }
  8638. if (array.indexOf(this.inviteId) != -1) {
  8639. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8640. } else {
  8641. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8642. }
  8643. this.icode = "";
  8644. this.dialogVisibleInvite = false;
  8645. })
  8646. .catch((err) => {
  8647. console.error(err);
  8648. });
  8649. },
  8650. randomNumber() {
  8651. // 随机生成两位数
  8652. // let num = Math.floor(Math.random() * 900) + 100;
  8653. // 生成 0 到 99 之间的随机整数
  8654. const randomNumber = Math.floor(Math.random() * 100);
  8655. // 如果随机数小于 10,补上前导零
  8656. const num =
  8657. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8658. // 随机生成两个大写字母
  8659. let letters = "";
  8660. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8661. for (let i = 0; i < 3; i++) {
  8662. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8663. }
  8664. // 随机生成两位数字和字母的组合
  8665. let mix = "";
  8666. let chars =
  8667. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8668. for (let i = 0; i < 3; i++) {
  8669. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8670. mix += char;
  8671. }
  8672. // 随机选择一种类型
  8673. let type = Math.floor(Math.random() * 3);
  8674. return num;
  8675. // 根据类型输出结果
  8676. switch (type) {
  8677. case 0:
  8678. console.log(num); // 输出两位数
  8679. return num;
  8680. case 1:
  8681. console.log(letters); // 输出两个大写字母
  8682. return letters;
  8683. case 2:
  8684. console.log(mix); // 输出两位数字和字母的组合
  8685. return mix;
  8686. }
  8687. },
  8688. getPaste() {
  8689. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8690. if (!iframe) {
  8691. return;
  8692. }
  8693. let copyData = iframe.contentWindow.copyData;
  8694. if (copyData && copyData.stageData && copyData.stageData.length) {
  8695. this.isPasteStage = true
  8696. }
  8697. if (copyData && copyData.selectData.length) {
  8698. this.isPasteChoice = true
  8699. }
  8700. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  8701. this.isPasteTask = true
  8702. }
  8703. },
  8704. searchImage() {
  8705. var _this = this;
  8706. _this.imageList = []
  8707. if (!_this.searchImageValue) {
  8708. _this.sysPicVisible2 = true
  8709. return
  8710. }
  8711. _this.imageloading = true
  8712. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  8713. page: _this.ppage,
  8714. pagesize: 9,
  8715. query: _this.searchImageValue
  8716. }).then(function (response) {
  8717. // console.log(response.data.data);
  8718. var data = response.data.FunctionResponse.result;
  8719. for (var i = 0; i < data.length; i++) {
  8720. _this.imageList.push({ url: data[i].image })
  8721. }
  8722. _this.imageloading = false
  8723. }).catch(function (error) {
  8724. console.log(error);
  8725. });
  8726. _this.sysPicVisible2 = true
  8727. },
  8728. changePicture() {
  8729. this.ppage++
  8730. this.searchImage()
  8731. },
  8732. resetImage() {
  8733. this.ppage = 1
  8734. this.searchImage()
  8735. }
  8736. },
  8737. beforeDestroy() {
  8738. clearTimeout(this.timer);
  8739. this.timer = null;
  8740. clearInterval(this.timer2);
  8741. this.timer2 = null;
  8742. clearInterval(this.pasteTimer);
  8743. this.pasteTimer = null;
  8744. },
  8745. beforeRouteLeave(to, from, next) {
  8746. clearTimeout(this.timer);
  8747. this.timer = null;
  8748. clearInterval(this.timer2);
  8749. this.timer2 = null;
  8750. clearInterval(this.pasteTimer);
  8751. this.pasteTimer = null;
  8752. next();
  8753. },
  8754. created() {
  8755. this.getStudent();
  8756. this.getTeacher();
  8757. this.getClass();
  8758. this.selectGrage();
  8759. this.getTemplate();
  8760. // this.selectType();
  8761. this.selectEva();
  8762. this.loading = false;
  8763. this.timer2 = setInterval(() => {
  8764. this.selectEva();
  8765. }, 5000);
  8766. this.pasteTimer = setInterval(() => {
  8767. this.getPaste();
  8768. }, 1000);
  8769. setTimeout(() => {
  8770. this.selectCourseDetail();
  8771. }, 500);
  8772. },
  8773. };
  8774. </script>
  8775. <style scoped>
  8776. @media screen and (max-width: 1280px) {
  8777. .mbCss {
  8778. flex-direction: column !important;
  8779. }
  8780. .pjCss {
  8781. width: 100% !important;
  8782. }
  8783. .evaCss {
  8784. width: 100% !important;
  8785. }
  8786. }
  8787. .dialog_diy>>>.el-dialog__header {
  8788. background: #3c3c3c !important;
  8789. padding: 15px 20px;
  8790. }
  8791. .dialog_diy>>>.el-dialog__title {
  8792. color: #fff;
  8793. }
  8794. .dialog_diy>>>.el-dialog__headerbtn {
  8795. top: 19px;
  8796. }
  8797. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8798. color: #fff;
  8799. }
  8800. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8801. color: #fff;
  8802. }
  8803. .dialog_diy>>>.el-dialog__body,
  8804. .dialog_diy>>>.el-dialog__footer {
  8805. background: #fafafa;
  8806. }
  8807. .dialog_diy3>>>.el-dialog__body,
  8808. .dialog_diy3>>>.el-dialog__footer {
  8809. background: #eee !important;
  8810. }
  8811. .dialog_diy3>>>.el-dialog__body {
  8812. padding: 20px 20px;
  8813. }
  8814. .dialog_diyStage>>>.el-dialog__body {
  8815. padding: 10px;
  8816. }
  8817. .source_diy>>>.el-dialog {
  8818. height: 100% !important;
  8819. margin: 0 auto !important;
  8820. }
  8821. .source_diy>>>.el-dialog__body {
  8822. height: calc(100% - 185px);
  8823. overflow: auto;
  8824. background: #e6eaf0;
  8825. }
  8826. .source_diy>>>.el-dialog__footer {
  8827. background: #e6eaf0 !important;
  8828. }
  8829. .left {
  8830. border-right: 1px solid rgb(60, 94, 143);
  8831. display: flex;
  8832. flex-direction: column;
  8833. align-items: center;
  8834. min-height: 600px;
  8835. width: 385px;
  8836. height: 80%;
  8837. }
  8838. .tips {
  8839. color: rgb(128, 128, 128);
  8840. font-size: 12px;
  8841. width: 270px;
  8842. margin: 40px;
  8843. }
  8844. .pb_content {
  8845. height: 100% !important;
  8846. /* margin: 0 20px 0 20px; */
  8847. }
  8848. .pb_content_body {
  8849. width: 100% !important;
  8850. height: 100%;
  8851. }
  8852. .info_solid {
  8853. width: 270px;
  8854. height: 30px;
  8855. border-left: 1px solid #bdbdbd;
  8856. margin: 10px 0px 10px 30px;
  8857. }
  8858. .info_steps {
  8859. width: 270px;
  8860. font-size: 0.875rem;
  8861. display: flex;
  8862. align-items: center;
  8863. }
  8864. .info_steps span:nth-child(1) {
  8865. width: 30px;
  8866. height: 30px;
  8867. background: rgba(0, 0, 0, 0.38);
  8868. display: block;
  8869. color: #fff;
  8870. border-radius: 40px;
  8871. text-align: center;
  8872. line-height: 30px;
  8873. }
  8874. .steps_active {
  8875. background: #3d67bc !important;
  8876. }
  8877. .info_steps span:nth-child(2) {
  8878. margin-left: 5px;
  8879. }
  8880. .right {
  8881. height: 100%;
  8882. width: 100%;
  8883. display: flex;
  8884. overflow: hidden;
  8885. flex-direction: column;
  8886. }
  8887. .basic_box {
  8888. margin: 0 auto;
  8889. position: relative;
  8890. padding: 0 20px 0 20px;
  8891. }
  8892. .basic_box_success {
  8893. width: 100%;
  8894. min-height: 455px;
  8895. padding: 50px 0;
  8896. position: relative;
  8897. text-align: center;
  8898. border-bottom: 1px solid #bfbfbf;
  8899. box-sizing: border-box;
  8900. display: flex;
  8901. align-items: center;
  8902. flex-direction: column;
  8903. justify-content: center;
  8904. }
  8905. .info_title {
  8906. font-size: 1.5em;
  8907. margin-right: 25px;
  8908. /* margin: 20px 30px 20px 30px; */
  8909. }
  8910. .bInfo_title {
  8911. text-align: left;
  8912. margin: 10px 0;
  8913. }
  8914. .small_title {
  8915. font-size: 14px;
  8916. line-height: 40px;
  8917. }
  8918. .chapter_beizhu {
  8919. font-size: 12px;
  8920. font-weight: bold;
  8921. float: right;
  8922. color: rgb(128, 128, 128);
  8923. margin-top: 5px;
  8924. }
  8925. .chapter_uploadBox1 {
  8926. text-align: left;
  8927. background-color: rgb(242, 242, 242);
  8928. width: 100%;
  8929. height: 67px;
  8930. padding: 0px 15px;
  8931. border-radius: 8px;
  8932. overflow: hidden;
  8933. font-size: 16px;
  8934. box-sizing: border-box;
  8935. position: relative;
  8936. }
  8937. .chapter_add {
  8938. width: 100%;
  8939. height: 32px;
  8940. margin-top: 15px;
  8941. cursor: pointer;
  8942. }
  8943. .chapter_add_l {
  8944. margin-left: 5px;
  8945. width: 30px;
  8946. height: 30px;
  8947. float: left;
  8948. border: 1px solid #aaa;
  8949. color: #aaa;
  8950. border-radius: 50%;
  8951. font-size: 25px;
  8952. text-align: center;
  8953. }
  8954. .chapter_add_r {
  8955. font-size: 18px;
  8956. height: 40px;
  8957. line-height: 30px;
  8958. text-indent: 10px;
  8959. color: #aaa;
  8960. }
  8961. .chapter_add_r span {
  8962. font-size: 12px;
  8963. color: rgb(204, 204, 204);
  8964. }
  8965. .chapter_add_input {
  8966. display: none;
  8967. }
  8968. .line {
  8969. width: 85%;
  8970. margin: 0 auto;
  8971. border-top: 1px solid #e5e5e5;
  8972. margin-top: 20px;
  8973. }
  8974. .info_btnBox {
  8975. width: calc(100%);
  8976. display: flex;
  8977. justify-content: center;
  8978. height: 80px;
  8979. align-items: center;
  8980. background: #fff;
  8981. margin: 0 auto;
  8982. border-top: 2px solid rgb(228, 232, 237);
  8983. box-sizing: border-box;
  8984. }
  8985. .info_btnBox2 {
  8986. width: calc(100%);
  8987. display: flex;
  8988. justify-content: center;
  8989. height: 20px;
  8990. align-items: center;
  8991. background: #fff;
  8992. margin: 0 auto;
  8993. border-top: 2px solid rgb(228, 232, 237);
  8994. box-sizing: border-box;
  8995. overflow: hidden;
  8996. cursor: pointer;
  8997. }
  8998. .info_btnBox3 {
  8999. width: calc(100%);
  9000. display: flex;
  9001. justify-content: flex-end;
  9002. padding: 0 20px;
  9003. height: 60px;
  9004. align-items: center;
  9005. background: unset;
  9006. margin: 0 auto;
  9007. /* border-top: 1px solid rgb(228, 232, 237); */
  9008. box-sizing: border-box;
  9009. overflow: hidden;
  9010. cursor: pointer;
  9011. background: #fff;
  9012. border-radius: 10px;
  9013. }
  9014. .info_btn+.info_btn {
  9015. margin-left: 15px;
  9016. }
  9017. .info_btn,
  9018. .teacherWord {
  9019. color: #fff;
  9020. background-color: #0f7eff;
  9021. padding: 8px 24px;
  9022. font-size: 0.9375rem;
  9023. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9024. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9025. min-width: 64px;
  9026. font-weight: 500;
  9027. border-radius: 4px;
  9028. box-sizing: border-box;
  9029. border: none;
  9030. cursor: pointer;
  9031. }
  9032. .teacherWord {
  9033. width: 105px !important;
  9034. text-align: center !important;
  9035. line-height: 36px !important;
  9036. padding: 0 !important;
  9037. font-size: 14px !important;
  9038. margin: 10px 0 !important;
  9039. }
  9040. .wordTeacher {
  9041. display: flex;
  9042. flex-direction: column;
  9043. width: 145px;
  9044. text-align: center;
  9045. font-size: 14px;
  9046. margin: 30px 0 0 10px;
  9047. background: #fff;
  9048. position: relative;
  9049. border-radius: 5px;
  9050. padding: 25px 0px;
  9051. }
  9052. .wordPic {
  9053. margin: 0 auto;
  9054. width: 60px;
  9055. height: 60px;
  9056. cursor: pointer;
  9057. }
  9058. .deleteWord {
  9059. width: 22px;
  9060. height: 22px;
  9061. position: absolute;
  9062. right: 5px;
  9063. top: -15px;
  9064. cursor: pointer;
  9065. display: none;
  9066. z-index: 999;
  9067. }
  9068. .wordPic>img,
  9069. .deleteWord>img,
  9070. .addToolImg>img {
  9071. width: 100%;
  9072. height: 100%;
  9073. }
  9074. .info_btn:hover {
  9075. background-color: #4f7cd5 !important;
  9076. }
  9077. .cru_selectBox {
  9078. display: flex;
  9079. margin: 24px 0 10px;
  9080. flex-wrap: nowrap;
  9081. white-space: nowrap;
  9082. overflow: auto;
  9083. position: relative;
  9084. height: 40px;
  9085. max-width: calc(100% - 175px);
  9086. }
  9087. .cru_selectBox::-webkit-scrollbar {
  9088. /*滚动条整体样式*/
  9089. width: 6px;
  9090. /*高宽分别对应横竖滚动条的尺寸*/
  9091. height: 6px;
  9092. }
  9093. /*定义滚动条轨道 内阴影+圆角*/
  9094. .cru_selectBox::-webkit-scrollbar-track {
  9095. border-radius: 10px;
  9096. background-color: #eee;
  9097. }
  9098. /*定义滑块 内阴影+圆角*/
  9099. .cru_selectBox::-webkit-scrollbar-thumb {
  9100. border-radius: 10px;
  9101. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9102. background-color: rgba(0, 0, 0, 0.1);
  9103. }
  9104. .cru_line {
  9105. position: absolute;
  9106. bottom: 0px;
  9107. transition: all 0.5s;
  9108. left: 0px;
  9109. width: 50px;
  9110. height: 4px;
  9111. left: 10px;
  9112. border-radius: 2px;
  9113. background: #3681FC;
  9114. }
  9115. .cru_select {
  9116. font-size: 18px;
  9117. margin-right: 20px;
  9118. margin-left: 5px;
  9119. cursor: pointer;
  9120. color: #0E1E33;
  9121. }
  9122. .cru_selected {
  9123. color: #3681FC !important;
  9124. font-weight: bold;
  9125. }
  9126. .chapter_contentbox {
  9127. display: flex;
  9128. align-items: center;
  9129. margin-top: 15px;
  9130. }
  9131. .chapter_contentbox .cc_title {
  9132. margin: 0px;
  9133. color: black;
  9134. display: block;
  9135. white-space: nowrap;
  9136. overflow: hidden;
  9137. text-overflow: ellipsis;
  9138. margin-right: 20px;
  9139. font-size: 18px;
  9140. height: 20px;
  9141. line-height: 22px;
  9142. min-width: fit-content;
  9143. display: flex;
  9144. }
  9145. .chapter_contentbox .cc_title::before {
  9146. content: '';
  9147. height: 100%;
  9148. width: 3px;
  9149. background: #3681FC;
  9150. border-radius: 3px;
  9151. opacity: 1;
  9152. display: block;
  9153. margin-right: 10px;
  9154. }
  9155. .chapter_contentbox .cc_input {
  9156. width: 100%;
  9157. display: flex;
  9158. }
  9159. .show_taskD {
  9160. min-width: fit-content;
  9161. margin-left: 10px;
  9162. display: flex;
  9163. align-items: center;
  9164. font-size: 14px;
  9165. cursor: pointer;
  9166. color: #717C8D;
  9167. }
  9168. .show_taskD>img {
  9169. width: 15px;
  9170. margin-right: 5px;
  9171. transition: .2s all;
  9172. transform: rotate(-90deg);
  9173. }
  9174. .show_taskD.show>img {
  9175. transform: rotate(0deg);
  9176. }
  9177. .show_toolD {
  9178. min-width: fit-content;
  9179. margin-left: 10px;
  9180. display: flex;
  9181. align-items: center;
  9182. font-size: 14px;
  9183. cursor: pointer;
  9184. color: #717C8D;
  9185. position: absolute;
  9186. right: 45px;
  9187. top: 5px;
  9188. }
  9189. .show_toolD>img {
  9190. width: 15px;
  9191. margin-right: 5px;
  9192. transition: .2s all;
  9193. transform: rotate(-90deg);
  9194. }
  9195. .show_toolD.show>img {
  9196. transform: rotate(0deg);
  9197. }
  9198. .remove {
  9199. background-image: url("../../assets/icon/new/delete_u.png");
  9200. cursor: pointer;
  9201. opacity: 0.5;
  9202. width: 30px;
  9203. min-width: 30px;
  9204. height: 30px;
  9205. background-size: 100% 100%;
  9206. background-repeat: no-repeat;
  9207. margin-left: 10px;
  9208. }
  9209. .remove1 {
  9210. background-image: url("../../assets/remove1.png");
  9211. background-repeat: no-repeat;
  9212. background-position: 5px 10px;
  9213. width: 40px;
  9214. height: 50px;
  9215. cursor: pointer;
  9216. margin-left: 10px;
  9217. }
  9218. .binfo_input {
  9219. width: 100%;
  9220. margin: 0;
  9221. padding: 12px 14px;
  9222. display: block;
  9223. min-width: 0;
  9224. outline: none;
  9225. box-sizing: border-box;
  9226. background: none;
  9227. border: none;
  9228. border-radius: 4px;
  9229. background: #fff;
  9230. font-size: 16px;
  9231. resize: none;
  9232. font-family: 'Microsoft YaHei';
  9233. min-height: 48px;
  9234. /* border: 1px solid #3682fc00; */
  9235. border: 1.5px solid #CAD1DC;
  9236. }
  9237. .binfo_textarea {
  9238. border: 1.5px solid #CAD1DC;
  9239. font-size: 16px;
  9240. resize: none;
  9241. background: #f6f6f6;
  9242. font-family: 'Microsoft YaHei';
  9243. }
  9244. .binfo_input:focus-visible {
  9245. border: 1.5px solid #3681FC !important;
  9246. }
  9247. .time {
  9248. display: flex;
  9249. margin: 35px 0 80px 0;
  9250. }
  9251. .chapter_btnbox {
  9252. width: 160px;
  9253. border-radius: 5px;
  9254. border: 2px dashed gray;
  9255. display: flex;
  9256. padding: 8px 50px;
  9257. align-items: center;
  9258. justify-content: center;
  9259. margin: 30px auto 0;
  9260. cursor: pointer;
  9261. }
  9262. .icon_add {
  9263. position: relative;
  9264. width: 24px;
  9265. padding-top: 20px;
  9266. border-radius: 100%;
  9267. border-width: 2px;
  9268. border-style: solid;
  9269. border-color: gray;
  9270. }
  9271. .icon_add i:nth-child(1) {
  9272. position: absolute;
  9273. left: 50%;
  9274. top: 50%;
  9275. height: 60%;
  9276. transform: translate(-50%, -50%);
  9277. border-width: 1px;
  9278. border-style: solid;
  9279. border-color: inherit;
  9280. }
  9281. .icon_add i:nth-child(2) {
  9282. position: absolute;
  9283. top: 50%;
  9284. left: 50%;
  9285. width: 60%;
  9286. transform: translate(-50%, -50%);
  9287. border-width: 1px;
  9288. border-style: solid;
  9289. border-color: inherit;
  9290. }
  9291. .chapter_btn_w {
  9292. font-size: 0.9375rem;
  9293. font-weight: bold;
  9294. color: gray;
  9295. margin-left: 20px;
  9296. }
  9297. .disUoloadSty>>>.el-icon-plus {
  9298. display: none !important;
  9299. /* 上传按钮隐藏 */
  9300. }
  9301. .imgLeft {
  9302. margin: 15px 0;
  9303. }
  9304. .add_info_box {
  9305. margin: 20px 0 0;
  9306. display: flex;
  9307. flex-wrap: wrap;
  9308. }
  9309. .add_info_box button {
  9310. margin: 0 20px 10px 0;
  9311. }
  9312. .add_info_box2 {
  9313. display: flex;
  9314. align-items: center;
  9315. flex-wrap: wrap;
  9316. }
  9317. .add_info_box2::after {
  9318. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9319. color: red;
  9320. font-size: 14px;
  9321. margin-bottom: 10px;
  9322. }
  9323. .add_chapters_box {
  9324. text-align: left;
  9325. background-color: #fff;
  9326. width: 100%;
  9327. border-radius: 4px;
  9328. font-size: 16px;
  9329. box-sizing: border-box;
  9330. position: relative;
  9331. padding: 0 15px;
  9332. height: auto;
  9333. overflow-y: auto;
  9334. overflow-x: hidden;
  9335. border: 1px solid #CAD1DC;
  9336. }
  9337. .add_chapters_box.add_c_none {
  9338. display: flex;
  9339. justify-content: center;
  9340. align-items: center;
  9341. padding: 15px;
  9342. }
  9343. .add_c_none>img {
  9344. width: 25px;
  9345. }
  9346. .add_chapters_box.add_c_none>span {
  9347. font-size: 14px;
  9348. font-weight: 400;
  9349. margin: 0 0 5px 5px;
  9350. }
  9351. .homework_box {
  9352. display: flex;
  9353. align-items: flex-start;
  9354. flex-wrap: wrap;
  9355. margin: 15px 0 0 0;
  9356. flex-direction: column;
  9357. align-content: flex-start;
  9358. }
  9359. .course_homework {
  9360. display: flex;
  9361. justify-content: center;
  9362. flex-direction: row;
  9363. align-items: center;
  9364. margin: 0 10px 0 0;
  9365. }
  9366. .course_homework>>>.el-input__inner {
  9367. width: 140px;
  9368. margin-left: 15px;
  9369. }
  9370. .chapter_upload_move {
  9371. position: relative;
  9372. background-color: #fff;
  9373. position: absolute;
  9374. width: 100%;
  9375. top: 0px;
  9376. left: 0px;
  9377. border: 1px solid #eee;
  9378. border-radius: 5px;
  9379. transition: width 2s;
  9380. -moz-transition: width 2s;
  9381. -webkit-transition: width 2s;
  9382. -o-transition: width 2s;
  9383. }
  9384. .chapter_upload_l_i {
  9385. background-image: url("../../assets/icon.png");
  9386. background-position: 3px -165px;
  9387. width: 30px;
  9388. height: 30px;
  9389. margin: 10px auto 0 auto;
  9390. }
  9391. .course_input_box {
  9392. display: flex;
  9393. margin-right: 20px;
  9394. width: 100%;
  9395. align-items: center;
  9396. }
  9397. .course_input_box>.binfo_input {
  9398. width: calc(100% - 48px - 200px - 20px);
  9399. margin: 0 10px;
  9400. }
  9401. .bb_courseIcon {
  9402. width: 48px;
  9403. height: 48px;
  9404. background: #3681FC;
  9405. border-radius: 6px;
  9406. display: flex;
  9407. align-items: center;
  9408. justify-content: center;
  9409. }
  9410. .bb_courseIcon>img {
  9411. width: 25px;
  9412. height: auto
  9413. }
  9414. .big_box {
  9415. /* margin-top: 20px; */
  9416. display: flex;
  9417. justify-content: space-between;
  9418. /* border-bottom: 1px solid #E0E2ED; */
  9419. }
  9420. .left_first {
  9421. display: flex;
  9422. flex-direction: column;
  9423. flex-wrap: nowrap;
  9424. width: calc(100% - 310px);
  9425. padding: 20px;
  9426. box-sizing: border-box;
  9427. background: #fff;
  9428. border-radius: 5px;
  9429. }
  9430. .right_first {
  9431. width: 300px;
  9432. display: flex;
  9433. align-items: center;
  9434. justify-content: center;
  9435. /* border-left: 1px solid #E0E2ED; */
  9436. box-sizing: border-box;
  9437. padding: 20px;
  9438. flex-direction: column;
  9439. background: #fff;
  9440. border-radius: 5px;
  9441. }
  9442. .ai_box {
  9443. width: 204px;
  9444. display: flex;
  9445. justify-content: flex-end;
  9446. margin-bottom: 15px;
  9447. }
  9448. .ai_content {
  9449. display: flex;
  9450. align-items: center;
  9451. font-size: 14px;
  9452. padding: 7px 20px;
  9453. box-sizing: border-box;
  9454. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  9455. border-radius: 12px;
  9456. font-weight: 700;
  9457. cursor: pointer;
  9458. }
  9459. .ai_content>img {
  9460. width: 40px;
  9461. margin-right: 5px;
  9462. }
  9463. .c_info_title {
  9464. padding: 15px 0 15px 0;
  9465. font-size: 16px;
  9466. font-weight: bold;
  9467. margin: 0 0 0 20px;
  9468. box-sizing: border-box;
  9469. display: flex;
  9470. align-items: center;
  9471. line-height:20px;
  9472. }
  9473. .c_info_title::before {
  9474. content: '';
  9475. display: block;
  9476. width: 3px;
  9477. height: 20px;
  9478. background: #0061FF;
  9479. border-radius: 3px;
  9480. margin: 0 5px 0 0;
  9481. }
  9482. .right_title {
  9483. height: 30px;
  9484. padding: 15px 0 15px 20px;
  9485. border-bottom: 1px solid #f2f2f2;
  9486. font-size: 1.5em;
  9487. font-weight: bold;
  9488. color: #0f7eff;
  9489. margin: 0 auto;
  9490. }
  9491. .people {
  9492. border: 1px solid rgb(229 229 229);
  9493. /* height: 495px; */
  9494. height: 350px;
  9495. border-radius: 5px;
  9496. width: 100%;
  9497. overflow: auto;
  9498. }
  9499. .people_top {
  9500. display: flex;
  9501. width: 100%;
  9502. /* justify-content: space-between; */
  9503. /* align-items: center; */
  9504. flex-direction: column;
  9505. padding: 10px 10px 0;
  9506. box-sizing: border-box;
  9507. }
  9508. .people_nav,
  9509. .people_top_right {
  9510. /* padding: 20px 0 0 20px; */
  9511. }
  9512. .people_top_right {
  9513. height: 40px;
  9514. margin-bottom: 10px;
  9515. }
  9516. .people_search {
  9517. display: flex;
  9518. position: relative;
  9519. }
  9520. .people_search>>>.el-input__inner {
  9521. /* height: 25px; */
  9522. width: 95%;
  9523. }
  9524. .search_img {
  9525. width: 20px;
  9526. height: 20px;
  9527. position: absolute;
  9528. right: 30px;
  9529. top: 50%;
  9530. transform: translateY(-50%);
  9531. }
  9532. .search_img>img {
  9533. width: 100%;
  9534. height: 100%;
  9535. }
  9536. .people_name {
  9537. display: flex;
  9538. justify-content: flex-start;
  9539. padding: 20px 10px;
  9540. flex-direction: column;
  9541. flex-wrap: wrap;
  9542. }
  9543. .p_box {
  9544. position: relative;
  9545. }
  9546. .people_name>>>.el-checkbox {
  9547. width: 100%;
  9548. display: flex;
  9549. align-items: center;
  9550. margin-bottom: 10px;
  9551. }
  9552. .people_name>>>.el-checkbox__label {
  9553. text-overflow: ellipsis;
  9554. overflow: hidden;
  9555. width: calc(100%);
  9556. }
  9557. .people_name2>>>.el-checkbox__label {
  9558. width: calc(100% - 130px);
  9559. }
  9560. .inviteCode {
  9561. position: absolute;
  9562. right: 30px;
  9563. color: #237ade;
  9564. top: 0;
  9565. cursor: pointer;
  9566. font-size: 13px;
  9567. }
  9568. .noneInvite {
  9569. color: #a8a8a8;
  9570. }
  9571. .inviteImg {
  9572. position: absolute;
  9573. right: 5px;
  9574. top: 0;
  9575. width: 20px;
  9576. }
  9577. .right_img {
  9578. width: 150px;
  9579. height: 150px;
  9580. margin: 0 auto;
  9581. }
  9582. .right_img>img {
  9583. width: 100%;
  9584. height: 100%;
  9585. }
  9586. .number {
  9587. margin-top: 20px;
  9588. color: #4aa6ff;
  9589. text-decoration: underline;
  9590. }
  9591. .success_button {
  9592. display: flex;
  9593. text-align: center;
  9594. margin: 5% 0 auto;
  9595. flex-direction: row;
  9596. justify-content: center;
  9597. }
  9598. .look_course {
  9599. margin-right: 40px;
  9600. background: #3d67bc;
  9601. width: 200px;
  9602. height: 35px;
  9603. line-height: 35px;
  9604. color: #fff;
  9605. text-align: center;
  9606. font-size: 14px;
  9607. border-radius: 5px;
  9608. cursor: pointer;
  9609. }
  9610. .attend_others {
  9611. width: 250px;
  9612. background: #4fb13c;
  9613. height: 35px;
  9614. line-height: 35px;
  9615. color: #fff;
  9616. text-align: center;
  9617. font-size: 14px;
  9618. border-radius: 5px;
  9619. cursor: pointer;
  9620. }
  9621. .dialog_diy2>>>.el-dialog__body {
  9622. text-align: center;
  9623. }
  9624. .write_togother {
  9625. position: absolute;
  9626. right: 45px;
  9627. display: flex;
  9628. top: 5%;
  9629. }
  9630. .write_people {
  9631. font-size: 14px;
  9632. line-height: 50px;
  9633. padding-right: 10px;
  9634. }
  9635. .end_write {
  9636. background: #3d67bc;
  9637. color: #fff;
  9638. width: 100px;
  9639. height: 35px;
  9640. line-height: 35px;
  9641. text-align: center;
  9642. font-size: 14px;
  9643. border-radius: 5px;
  9644. cursor: pointer;
  9645. }
  9646. .chapter_upload+.chapter_upload {
  9647. /* margin-top: 15px; */
  9648. border-top: 1px solid #E7EBF1;
  9649. }
  9650. .chapter_upload {
  9651. height: 45px;
  9652. position: relative;
  9653. display: flex;
  9654. align-items: center;
  9655. width: 100%;
  9656. min-height: 45px;
  9657. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  9658. /* border-radius: 4px; */
  9659. overflow: hidden;
  9660. box-sizing: border-box;
  9661. }
  9662. .chapter_upload_t {
  9663. background-color: #fff;
  9664. position: absolute;
  9665. height: 100%;
  9666. top: 0px;
  9667. left: 0px;
  9668. box-sizing: border-box;
  9669. }
  9670. .chapter_upload_o {
  9671. width: 100%;
  9672. height: 100%;
  9673. position: relative;
  9674. z-index: 1;
  9675. }
  9676. .chapter_upload_ic {
  9677. margin: 0 15px 0px auto;
  9678. display: flex;
  9679. align-items: center;
  9680. }
  9681. .chapter_upload_ic_l {
  9682. width: 50px;
  9683. height: 50px;
  9684. float: left;
  9685. }
  9686. .chapter_upload_ic_l div {
  9687. width: 30px;
  9688. height: 35px;
  9689. background: url("../../assets/icon/icon.png");
  9690. }
  9691. .chapter_upload_ic_edit {
  9692. height: 100%;
  9693. display: flex;
  9694. align-items: center;
  9695. cursor: pointer;
  9696. margin: 0 10px 0 0;
  9697. }
  9698. .chapter_upload_ic_edit div {
  9699. width: 18px;
  9700. height: 18px;
  9701. background-image: url("../../assets/icon/new/edit_u.png");
  9702. background-size: 100% 100%;
  9703. }
  9704. .chapter_upload_ic_r {
  9705. height: 100%;
  9706. display: flex;
  9707. align-items: center;
  9708. cursor: pointer;
  9709. }
  9710. .chapter_upload_ic_r div {
  9711. width: 18px;
  9712. height: 18px;
  9713. background-image: url("../../assets/icon/new/delete_u.png");
  9714. background-size: 100% 100%;
  9715. }
  9716. .chapter_upload_n {
  9717. display: flex;
  9718. text-indent: 10px;
  9719. text-decoration: none;
  9720. text-overflow: ellipsis;
  9721. white-space: nowrap;
  9722. overflow: hidden;
  9723. width: 55%;
  9724. margin-left: 10px;
  9725. cursor: pointer;
  9726. margin-top: 2px;
  9727. align-items: center;
  9728. }
  9729. .chapter_upload_l_i2,
  9730. .chapter_upload_l_i3,
  9731. .chapter_upload_l_i8,
  9732. .chapter_upload_l_i6,
  9733. .chapter_upload_l_i12,
  9734. .chapter_upload_l_i14,
  9735. .chapter_upload_l_i13 {
  9736. width: 15px;
  9737. height: 15px;
  9738. background-size: 100% 100%;
  9739. }
  9740. .chapter_upload_l_i2 {
  9741. background-image: url("../../assets/icon/new/u_word.png");
  9742. }
  9743. .chapter_upload_l_i3 {
  9744. background-image: url("../../assets/icon/new/u_video.png");
  9745. }
  9746. .chapter_upload_l_i8 {
  9747. background-image: url("../../assets/icon/new/u_url.png");
  9748. }
  9749. .chapter_upload_l_i14 {
  9750. background-image: url("../../assets/icon/new/u_source.png");
  9751. }
  9752. .chapter_upload_l_i6 {
  9753. background-image: url("../../assets/icon/new/u_picture.png");
  9754. }
  9755. .chapter_upload_l_i12 {
  9756. background-image: url("../../assets/icon/new/u_word.png");
  9757. }
  9758. .chapter_upload_l_i13 {
  9759. background-image: url("../../assets/icon/new/u_img.png");
  9760. }
  9761. .chapter_upload_noSee {
  9762. background-image: url("../../assets/icon/new/u_noUpload.png");
  9763. width: 18px;
  9764. height: 18px;
  9765. background-size: 100% 100%;
  9766. display: block;
  9767. margin-right: 10px;
  9768. }
  9769. .chapter_upload_ud {
  9770. display: flex;
  9771. flex-direction: row;
  9772. justify-content: center;
  9773. margin: 0 10px 0 0;
  9774. }
  9775. .chapter_upload_ud>.chapter_upload_up {
  9776. margin-bottom: 0;
  9777. margin-right: 10px;
  9778. }
  9779. .chapter_upload_down,
  9780. .chapter_upload_up {
  9781. width: 20px;
  9782. height: 20px;
  9783. background: #e4eaf2;
  9784. cursor: pointer;
  9785. margin: 0 auto;
  9786. border-radius: 5px;
  9787. display: flex;
  9788. justify-content: center;
  9789. align-items: center;
  9790. }
  9791. .chapter_upload_up::after,
  9792. .chapter_upload_down::after {
  9793. content: '';
  9794. background-image: url('../../assets/icon/new/downBtn.png');
  9795. width: 13px;
  9796. height: 13px;
  9797. background-size: 100% 100%;
  9798. display: block;
  9799. }
  9800. .chapter_upload_up::after {
  9801. background-image: url('../../assets/icon/new/upBtn.png') !important;
  9802. }
  9803. .chapter_upload_up {
  9804. margin-bottom: 5px;
  9805. }
  9806. .addWordStyle {
  9807. display: flex;
  9808. flex-direction: row;
  9809. justify-content: flex-start;
  9810. overflow-x: auto;
  9811. white-space: nowrap;
  9812. flex-wrap: wrap;
  9813. }
  9814. /* table 样式 */
  9815. .cont>>>table {
  9816. border-top: 1px solid #ccc;
  9817. border-left: 1px solid #ccc;
  9818. }
  9819. .cont>>>table td,
  9820. .cont>>>table th {
  9821. border-bottom: 1px solid #ccc;
  9822. border-right: 1px solid #ccc;
  9823. /* padding: 20px 5px; */
  9824. padding: 5px 10px;
  9825. max-width: 0px;
  9826. height: 30px;
  9827. vertical-align: baseline;
  9828. }
  9829. .cont>>>table th {
  9830. border-bottom: 2px solid #ccc;
  9831. text-align: center;
  9832. }
  9833. /* blockquote 样式 */
  9834. .cont>>>blockquote {
  9835. display: block;
  9836. border-left: 8px solid #d0e5f2;
  9837. padding: 5px 10px;
  9838. margin: 10px 0;
  9839. line-height: 1.4;
  9840. font-size: 100%;
  9841. background-color: #f1f1f1;
  9842. }
  9843. /* code 样式 */
  9844. .cont>>>code {
  9845. display: inline-block;
  9846. /* *display: inline; */
  9847. zoom: 1;
  9848. background-color: #f1f1f1;
  9849. border-radius: 3px;
  9850. padding: 3px 5px;
  9851. margin: 0 3px;
  9852. }
  9853. .cont>>>pre code {
  9854. display: block;
  9855. }
  9856. /* ul ol 样式 */
  9857. .cont>>>ul,
  9858. ol {
  9859. margin: 10px 0 10px 20px;
  9860. }
  9861. .wordbox {
  9862. display: flex;
  9863. flex-wrap: wrap;
  9864. cursor: pointer;
  9865. width: 100%;
  9866. }
  9867. .checkword {
  9868. width: 22px;
  9869. height: 22px;
  9870. margin: 10px auto 0;
  9871. cursor: pointer;
  9872. }
  9873. .checkword img {
  9874. width: 100%;
  9875. }
  9876. .stepBg {
  9877. display: flex;
  9878. justify-content: space-between;
  9879. align-items: center;
  9880. background: #fff;
  9881. width: calc(100%);
  9882. margin: 0 auto;
  9883. }
  9884. .stepBorder {
  9885. height: 3px !important;
  9886. background: #CAD1DC;
  9887. width: 100px !important;
  9888. margin: 0 15px !important;
  9889. position: relative;
  9890. }
  9891. .border-active {
  9892. background: #3681FC !important
  9893. }
  9894. .border-active::before,
  9895. .border-active::after {
  9896. border-color: #3681FC !important
  9897. }
  9898. .stepBorder::before,
  9899. .stepBorder::after {
  9900. content: '';
  9901. width: 9px;
  9902. height: 9px;
  9903. background: #FFFFFF;
  9904. opacity: 1;
  9905. border: 2px solid #ACB4BF;
  9906. display: block;
  9907. box-sizing: border-box;
  9908. border-radius: 50%;
  9909. position: absolute;
  9910. top: 50%;
  9911. transform: translateY(-50%);
  9912. }
  9913. .stepBorder::after {
  9914. right: -9px;
  9915. }
  9916. .stepTop {
  9917. width: 100%;
  9918. /* border-radius: 10px; */
  9919. display: flex;
  9920. justify-content: center;
  9921. align-items: center;
  9922. flex-wrap: nowrap;
  9923. background: #fff;
  9924. /* top: 18%; */
  9925. height: 80px;
  9926. border-bottom: 2px solid rgb(228, 232, 237);
  9927. box-sizing: border-box;
  9928. }
  9929. .stepTop2 {
  9930. width: 100%;
  9931. /* border-radius: 10px; */
  9932. display: flex;
  9933. justify-content: center;
  9934. align-items: center;
  9935. flex-wrap: nowrap;
  9936. background: #fff;
  9937. /* top: 18%; */
  9938. height: 20px;
  9939. border-bottom: 2px solid rgb(228, 232, 237);
  9940. box-sizing: border-box;
  9941. overflow: hidden;
  9942. cursor: pointer;
  9943. }
  9944. .stepTop>div img {
  9945. width: 100%;
  9946. }
  9947. .stepTop>div {
  9948. height: 50px;
  9949. width: 180px;
  9950. cursor: pointer;
  9951. margin: 10px 0;
  9952. border-radius: 10px;
  9953. }
  9954. .first,
  9955. .second,
  9956. .third,
  9957. .four {
  9958. background: #3681FC;
  9959. height: 90px;
  9960. color: #fff;
  9961. display: flex;
  9962. flex-direction: row;
  9963. align-items: center;
  9964. justify-content: center;
  9965. }
  9966. .first>div:nth-child(1),
  9967. .second>div:nth-child(1),
  9968. .third>div:nth-child(1),
  9969. .four>div:nth-child(1) {
  9970. margin: 5px 10px 0 0;
  9971. width: 2rem;
  9972. }
  9973. .firstNo,
  9974. .secondNo,
  9975. .thirdNo,
  9976. .fourNo {
  9977. background: #e7e7e7;
  9978. color: #adadad;
  9979. display: flex;
  9980. flex-direction: row;
  9981. align-items: center;
  9982. justify-content: center;
  9983. }
  9984. .firstNo>div:nth-child(1),
  9985. .secondNo>div:nth-child(1),
  9986. .thirdNo>div:nth-child(1),
  9987. .fourNo>div:nth-child(1) {
  9988. margin: 5px 10px 0 0;
  9989. width: 2rem;
  9990. }
  9991. .uploadWidth>>>.el-upload {
  9992. width: 60px;
  9993. height: 60px;
  9994. position: relative;
  9995. }
  9996. .addPeople {
  9997. background: #fa6060;
  9998. width: 150px;
  9999. height: 40px;
  10000. color: #fff;
  10001. border-radius: 5px;
  10002. text-align: center;
  10003. line-height: 40px;
  10004. font-size: 14px;
  10005. cursor: pointer;
  10006. }
  10007. .kcImg {
  10008. width: 60px;
  10009. margin-left: 10px;
  10010. }
  10011. .zyImg {
  10012. width: 55px;
  10013. margin: 0 10px;
  10014. }
  10015. .deleteZy {
  10016. width: 20px;
  10017. position: absolute;
  10018. top: 5px;
  10019. right: 5px;
  10020. cursor: pointer;
  10021. }
  10022. .kcImg>img,
  10023. .zyImg>img,
  10024. .deleteZy>img {
  10025. width: 100%;
  10026. height: 100%;
  10027. }
  10028. .zyBox {
  10029. display: flex;
  10030. flex-direction: row;
  10031. align-items: center;
  10032. background: #67d37d;
  10033. color: #fff;
  10034. width: 210px;
  10035. margin: 20px 20px 0 0;
  10036. border-radius: 10px;
  10037. height: 70px;
  10038. position: relative;
  10039. }
  10040. .upCss {
  10041. display: flex;
  10042. flex-direction: row;
  10043. justify-content: flex-start;
  10044. }
  10045. .upCss>>>.el-icon-plus {
  10046. position: none !important;
  10047. width: 200px;
  10048. height: 100px;
  10049. display: flex;
  10050. flex-wrap: nowrap;
  10051. flex-direction: column;
  10052. align-items: center;
  10053. justify-content: center;
  10054. border: 1px dashed #ccc;
  10055. min-width: 78px;
  10056. min-height: 100px;
  10057. z-index: 999;
  10058. }
  10059. .upCss>>>.el-upload-list__item-name {
  10060. width: 100px;
  10061. white-space: nowrap;
  10062. overflow: hidden;
  10063. text-overflow: ellipsis;
  10064. }
  10065. .upCss>>>.el-upload-list__item .el-icon-close {
  10066. font-size: 20px;
  10067. z-index: 9999;
  10068. }
  10069. .addStageImg {
  10070. min-width: 20px;
  10071. min-height: 20px;
  10072. width: 20px;
  10073. height: 20px;
  10074. cursor: pointer;
  10075. }
  10076. .addHW {
  10077. width: 28px;
  10078. height: 28px;
  10079. cursor: pointer;
  10080. }
  10081. .addStageImg>img,
  10082. .addHW>img {
  10083. width: 100%;
  10084. height: 100%;
  10085. }
  10086. .addNewPP>>>.el-dialog__body {
  10087. padding: 5px 20px;
  10088. }
  10089. .addNewPP>>>.el-dialog {
  10090. margin-top: 5vh !important;
  10091. }
  10092. .isHeight {
  10093. height: 680px;
  10094. }
  10095. .toolChoose {
  10096. display: flex;
  10097. /* width: 100%; */
  10098. flex-direction: row;
  10099. flex-wrap: wrap;
  10100. }
  10101. .tool {
  10102. display: flex;
  10103. flex-direction: column;
  10104. flex-wrap: nowrap;
  10105. width: fit-content;
  10106. margin: 10px 0 10px 0;
  10107. align-items: center;
  10108. }
  10109. .tool+.tool {
  10110. margin-right: 45px;
  10111. }
  10112. .whiteBIcon {
  10113. width: 80px;
  10114. cursor: pointer;
  10115. display: flex;
  10116. flex-direction: column;
  10117. flex-wrap: nowrap;
  10118. align-items: center;
  10119. font-size: 14px;
  10120. }
  10121. .whiteBIcon>img,
  10122. .toolIcon>img,
  10123. .arrow>img {
  10124. width: 100%;
  10125. height: 100%;
  10126. }
  10127. .check img {
  10128. width: 20px;
  10129. height: 20px;
  10130. }
  10131. .whiteBIcon>img {
  10132. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10133. border-radius: 15px;
  10134. }
  10135. .whiteBIcon>div:nth-child(2) {
  10136. height: 20px;
  10137. line-height: 20px;
  10138. }
  10139. .check {
  10140. /* width: 20px;
  10141. height: 20px; */
  10142. cursor: pointer;
  10143. margin: 10px 0 0;
  10144. }
  10145. .checkDiv {
  10146. display: flex;
  10147. align-items: center;
  10148. }
  10149. .checkDiv span {
  10150. margin-left: 5px;
  10151. color: #858585;
  10152. }
  10153. .customWidth>>>.el-dialog {
  10154. min-width: 500px !important;
  10155. }
  10156. .a_addBox {
  10157. margin: 10px 0;
  10158. background: #fff;
  10159. padding: 15px;
  10160. /* max-height: 600px; */
  10161. overflow: auto;
  10162. }
  10163. .a_add_box {
  10164. border-bottom: 2px solid #eee;
  10165. padding-bottom: 25px;
  10166. }
  10167. .a_add_head {
  10168. display: flex;
  10169. align-items: center;
  10170. justify-content: space-between;
  10171. margin: 10px 0 0 0;
  10172. font-size: 18px;
  10173. }
  10174. .a_add_checkType {
  10175. margin-top: 10px;
  10176. display: flex;
  10177. font-size: 14px;
  10178. align-items: center;
  10179. }
  10180. .a_add_checkType span {
  10181. box-sizing: border-box;
  10182. padding: 0 0 5px 0;
  10183. cursor: pointer;
  10184. }
  10185. .a_add_checkType span+span {
  10186. margin-left: 10px;
  10187. }
  10188. .a_add_checkType .active {
  10189. border-bottom: 2px solid #409eff;
  10190. color: #409eff;
  10191. }
  10192. .a_add_head .a_add_head_input {
  10193. /* width: 540px; */
  10194. width: 100%;
  10195. }
  10196. .a_add_head .a_add_head_div {
  10197. display: flex;
  10198. align-items: center;
  10199. justify-content: space-between;
  10200. }
  10201. .a_add_body {
  10202. display: flex;
  10203. /* align-items: center; */
  10204. align-items: flex-end;
  10205. }
  10206. .a_add_input {
  10207. display: flex;
  10208. align-items: center;
  10209. flex-wrap: wrap;
  10210. }
  10211. .a_add_input_choice {
  10212. flex-direction: column;
  10213. margin-right: 10px;
  10214. }
  10215. .a_add_input_choice>>>.el-radio {
  10216. display: flex;
  10217. align-items: center;
  10218. flex-direction: row-reverse;
  10219. margin: 30px 0 0 0;
  10220. position: relative;
  10221. }
  10222. .a_add_input_choice>>>.el-checkbox {
  10223. display: flex;
  10224. align-items: center;
  10225. flex-direction: row-reverse;
  10226. margin: 30px 0 0 0;
  10227. position: relative;
  10228. }
  10229. .width100 {
  10230. width: 100%;
  10231. }
  10232. .a_add_input .a_add_persent {
  10233. width: 100%;
  10234. }
  10235. .a_add_persent_div {
  10236. width: 100%;
  10237. display: flex;
  10238. align-items: center;
  10239. }
  10240. .a_add_persent_div span {
  10241. margin: 5px 0;
  10242. }
  10243. .a_add_persent_div span:nth-child(1) {
  10244. width: 30%;
  10245. }
  10246. .a_add_persent_div span:nth-child(2) {
  10247. width: 7%;
  10248. }
  10249. .a_add_persent_div span:nth-child(3) {
  10250. width: 40%;
  10251. }
  10252. .a_add_body_div {
  10253. display: flex;
  10254. align-items: center;
  10255. justify-content: center;
  10256. /* flex-direction: column; */
  10257. position: absolute;
  10258. right: -20px;
  10259. transform: translateX(100%);
  10260. }
  10261. .a_add_body_div>>>.el-button--primary {
  10262. background: #466b99;
  10263. border: none;
  10264. }
  10265. .all_choose {
  10266. display: flex;
  10267. flex-direction: row;
  10268. align-items: flex-start;
  10269. width: 100%;
  10270. }
  10271. .all_choose+.all_choose {
  10272. /* margin-top: 10px */
  10273. }
  10274. .all_choose>span {
  10275. min-width: fit-content;
  10276. display: block;
  10277. white-space: nowrap;
  10278. overflow: hidden;
  10279. text-overflow: ellipsis;
  10280. margin-right: 20px;
  10281. font-weight: bold;
  10282. font-size: 14px;
  10283. }
  10284. .all_choose>>>.el-checkbox-group {
  10285. display: flex;
  10286. flex-direction: row;
  10287. width: 100%;
  10288. flex-wrap: wrap;
  10289. align-content: center;
  10290. justify-content: flex-start;
  10291. align-items: center;
  10292. margin-top: 3px;
  10293. }
  10294. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10295. margin-bottom: 10px;
  10296. display: flex;
  10297. flex-direction: row;
  10298. align-items: center;
  10299. margin-right: 10px;
  10300. }
  10301. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10302. min-width: 80px;
  10303. overflow: hidden;
  10304. width: 80px;
  10305. text-overflow: ellipsis;
  10306. white-space: nowrap;
  10307. }
  10308. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10309. width: auto;
  10310. }
  10311. .choose>div:nth-child(3)>span {
  10312. /* letter-spacing: 0 !important; */
  10313. }
  10314. .choose {
  10315. display: flex;
  10316. flex-direction: column;
  10317. flex-wrap: nowrap;
  10318. height: 100%;
  10319. justify-content: space-evenly;
  10320. align-items: flex-start;
  10321. }
  10322. .both {
  10323. display: flex;
  10324. flex-direction: row;
  10325. flex-wrap: wrap;
  10326. width: 100%;
  10327. align-items: center;
  10328. justify-content: flex-start;
  10329. margin: 15px 0;
  10330. }
  10331. .notice>>>.el-dialog {
  10332. width: 500px !important;
  10333. text-align: center;
  10334. }
  10335. .notice>>>.el-button {
  10336. margin-top: 20px;
  10337. }
  10338. .whiteBg {
  10339. /* background: #fff; */
  10340. border-radius: 10px;
  10341. }
  10342. .wb_j_box {
  10343. display: flex;
  10344. width: 100%;
  10345. padding: 0 20px 0;
  10346. box-sizing: border-box;
  10347. }
  10348. .wb_j_box_content {
  10349. width: calc(100% - 55% - 100px);
  10350. display: flex;
  10351. align-items: center;
  10352. }
  10353. .wb_j_box_p_box {
  10354. max-width: calc(100% - 200px);
  10355. word-break: break-all;
  10356. overflow: hidden;
  10357. margin: 0 0 0 10px;
  10358. font-size: 14px;
  10359. color: #6e6e6e;
  10360. z-index: 999;
  10361. }
  10362. .chooseWho {
  10363. display: flex;
  10364. width: 410px;
  10365. flex-direction: row;
  10366. flex-wrap: nowrap;
  10367. justify-content: space-between;
  10368. padding-bottom: 10px;
  10369. }
  10370. .chooseWho>div {
  10371. cursor: pointer;
  10372. padding-bottom: 10px;
  10373. font-weight: bold;
  10374. }
  10375. .isChooseActive {
  10376. color: #3e88f4;
  10377. border-bottom: 2px solid #2f80f3;
  10378. }
  10379. .toolSort {
  10380. display: flex;
  10381. flex-direction: row;
  10382. flex-wrap: wrap;
  10383. justify-content: flex-start;
  10384. align-items: flex-start;
  10385. }
  10386. .toolSort>div {
  10387. margin-right: 45px;
  10388. }
  10389. .tools {
  10390. width: 100%;
  10391. display: flex;
  10392. flex-direction: column;
  10393. flex-wrap: nowrap;
  10394. align-items: flex-start;
  10395. }
  10396. .leftTools,
  10397. .rightTools {
  10398. width: 50%;
  10399. }
  10400. .leftTools+.leftTools {
  10401. border-top: 1px solid #dbdbdb;
  10402. padding-top: 30px;
  10403. }
  10404. .rightTools {
  10405. display: flex;
  10406. flex-direction: row;
  10407. flex-wrap: nowrap;
  10408. justify-content: space-around;
  10409. }
  10410. .firstToolList {
  10411. display: flex;
  10412. flex-direction: column;
  10413. flex-wrap: nowrap;
  10414. align-items: center;
  10415. }
  10416. .iconList {
  10417. display: flex;
  10418. flex-direction: row;
  10419. flex-wrap: wrap;
  10420. justify-content: flex-start;
  10421. align-items: center;
  10422. margin: 20px 0 5px 0;
  10423. width: 240px;
  10424. min-width: 240px;
  10425. }
  10426. .iconTool {
  10427. display: flex;
  10428. flex-direction: column;
  10429. flex-wrap: nowrap;
  10430. align-items: center;
  10431. justify-content: flex-start;
  10432. margin: 15px 10px;
  10433. }
  10434. .toolIcon {
  10435. width: 50px;
  10436. }
  10437. .taskBorder {
  10438. border: 1px solid #CAD1DC;
  10439. border-radius: 10px;
  10440. margin-top: 20px;
  10441. min-height: 670px;
  10442. position: relative;
  10443. background: #fff;
  10444. padding: 20px;
  10445. overflow: hidden;
  10446. box-sizing: border-box;
  10447. }
  10448. .smallTaskBorder {
  10449. height: 280px;
  10450. min-height: 280px !important;
  10451. overflow: hidden;
  10452. }
  10453. /* .taskBorder>div {
  10454. padding: 30px 30px 10px;
  10455. } */
  10456. .addTaskBorder {
  10457. /* border: 2px solid #5E9AFC; */
  10458. border-radius: 8px;
  10459. margin-top: 10px;
  10460. cursor: pointer;
  10461. /* height: 50px;
  10462. line-height: 50px; */
  10463. background: #fff;
  10464. padding: 15px 0;
  10465. display: flex;
  10466. align-items: center;
  10467. justify-content: center;
  10468. }
  10469. /* .addTaskBorder>div {
  10470. margin: 0 auto;
  10471. display: flex;
  10472. align-items: center;
  10473. justify-content: center;
  10474. }
  10475. .addTaskBorder>div>img {
  10476. width: 20px;
  10477. }
  10478. .addTaskBorder>div>span {
  10479. font-size: 16px;
  10480. margin-left: 10px;
  10481. color: #5E9AFC;
  10482. } */
  10483. .funBlock {
  10484. display: flex;
  10485. padding: 15px 0;
  10486. flex-direction: row;
  10487. justify-content: center;
  10488. align-items: center;
  10489. position: absolute;
  10490. right: 0;
  10491. bottom: 0;
  10492. background: #fff;
  10493. width: 100%;
  10494. height: 60px;
  10495. }
  10496. .fold {
  10497. display: flex;
  10498. margin: 0 20px;
  10499. flex-direction: row;
  10500. align-items: center;
  10501. cursor: pointer;
  10502. color: #2b7bff;
  10503. }
  10504. .arrow {
  10505. margin-right: 8px;
  10506. width: 16px;
  10507. height: 16px;
  10508. min-width: 16px;
  10509. min-height: 16px;
  10510. background-size: 100% 100%;
  10511. display: block;
  10512. background-image: url(../../assets/icon/new/u_up.png);
  10513. /* border-left: 7px solid transparent;
  10514. border-bottom: 7px solid #717C8D;
  10515. border-top: 0px solid transparent;
  10516. border-right: 7px solid transparent; */
  10517. /* box-sizing: border-box; */
  10518. transition: all .3s;
  10519. }
  10520. .arrowZ {
  10521. transform: rotate(180deg);
  10522. }
  10523. .addToolFun {
  10524. display: flex;
  10525. width: 150px;
  10526. flex-direction: row;
  10527. align-items: center;
  10528. justify-content: center;
  10529. border: 2px dashed #CAD1DC;
  10530. border-radius: 5px;
  10531. height: 50px;
  10532. margin: 35px auto 0;
  10533. cursor: pointer;
  10534. }
  10535. .addToolFun2 {
  10536. display: flex;
  10537. width: 150px;
  10538. border: 2px dashed #CAD1DC;
  10539. flex-direction: row;
  10540. align-items: center;
  10541. justify-content: center;
  10542. border-radius: 5px;
  10543. height: 50px;
  10544. margin: 0 auto 0;
  10545. cursor: pointer;
  10546. }
  10547. .addToolFun2>div,
  10548. .addToolFun>div {
  10549. display: flex;
  10550. line-height: 50px;
  10551. }
  10552. .addToolImg {
  10553. width: 20px;
  10554. height: 20px;
  10555. margin-right: 10px;
  10556. }
  10557. .addToolsDia>>>.el-dialog__body {
  10558. padding: 20px;
  10559. }
  10560. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10561. padding: 0;
  10562. }
  10563. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10564. padding: 0;
  10565. border-bottom: none;
  10566. margin-bottom: 0;
  10567. }
  10568. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10569. width: 100%;
  10570. }
  10571. .lineCss>>>.el-form-item__label {
  10572. width: auto !important;
  10573. }
  10574. .lineCss>>>.el-form-item__content {
  10575. margin-left: 50px !important;
  10576. }
  10577. .newSteps {
  10578. display: flex;
  10579. width: 100% !important;
  10580. /* height: 80px; */
  10581. cursor: pointer;
  10582. margin: 10px 0;
  10583. border-radius: 10px;
  10584. flex-direction: row;
  10585. align-content: center;
  10586. justify-content: center;
  10587. align-items: center;
  10588. margin: 0 !important;
  10589. }
  10590. /* 评价样式 */
  10591. .elist_css {
  10592. padding-bottom: 75px !important;
  10593. }
  10594. .elist_title {
  10595. margin-bottom: 10px;
  10596. }
  10597. .elist_input {}
  10598. .elist_input_box {
  10599. display: flex;
  10600. align-items: center;
  10601. flex-wrap: wrap;
  10602. }
  10603. .elist_input_box+.elist_input_box {
  10604. margin-top: 30px;
  10605. }
  10606. .elist_input .elist_input_box input {
  10607. font: inherit;
  10608. color: currentColor;
  10609. /* width: 200px; */
  10610. max-width: 200px;
  10611. padding: 8px 14px;
  10612. display: block;
  10613. min-width: 0;
  10614. outline: none;
  10615. border: 1px solid rgba(0, 0, 0, 0.23);
  10616. border-radius: 4px;
  10617. box-sizing: border-box;
  10618. background: #fff;
  10619. margin: 0 20px 0 0;
  10620. }
  10621. .elist_input .elist_input_box span {
  10622. height: 36px;
  10623. line-height: 36px;
  10624. color: rgb(82, 82, 82);
  10625. min-width: 80px;
  10626. }
  10627. .elist_input .elist_input_box .remove {
  10628. height: 20px;
  10629. width: 20px;
  10630. min-height: 20px;
  10631. min-width: 20px;
  10632. background-size: 100% 100%;
  10633. background-position: unset;
  10634. margin-left: 5px;
  10635. }
  10636. .elist_input_box>>>.el-rate {
  10637. display: flex;
  10638. height: 36px;
  10639. align-items: center;
  10640. }
  10641. .elist_input_box .elist_inptu_text {
  10642. width: 100%;
  10643. display: flex;
  10644. align-items: center;
  10645. margin-top: 10px;
  10646. }
  10647. .elist_input_box .elist_inptu_text input {
  10648. /* width: 500px; */
  10649. width: 100%;
  10650. max-width: unset;
  10651. }
  10652. .elist_input_box>>>.el-rate__icon {
  10653. font-size: 24px;
  10654. }
  10655. .elist_btn {
  10656. margin-top: 10px;
  10657. }
  10658. .lineTitle {
  10659. /* margin-top: 15px; */
  10660. width: 110px;
  10661. font-size: 16px;
  10662. display: flex;
  10663. align-items: center;
  10664. line-height: 20px;
  10665. }
  10666. .lineTitle::before {
  10667. content: '';
  10668. display: block;
  10669. width: 3px;
  10670. height: 20px;
  10671. background: #0061FF;
  10672. border-radius: 3px;
  10673. margin: 0 5px 0 0;
  10674. }
  10675. .courseTop {
  10676. display: flex;
  10677. flex-direction: row;
  10678. justify-content: space-between;
  10679. align-items: center;
  10680. width: calc(100% - 40px);
  10681. margin: 0 auto;
  10682. padding: 10px 0;
  10683. }
  10684. .stepsNav {
  10685. display: flex;
  10686. flex-direction: row;
  10687. justify-content: flex-start;
  10688. align-items: center;
  10689. }
  10690. .stepsWord {
  10691. font-size: 18px;
  10692. color: #fff;
  10693. font-weight: bold;
  10694. margin-left: auto;
  10695. background: rgb(15, 126, 255);
  10696. border-radius: 5px;
  10697. padding: 3px 25px;
  10698. box-sizing: border-box;
  10699. }
  10700. .stepBox {
  10701. width: calc(100% - 40px);
  10702. height: calc(100% - 50px);
  10703. overflow: hidden;
  10704. border-radius: 5px;
  10705. margin: 0 auto;
  10706. }
  10707. .rightBox {
  10708. width: calc(100%);
  10709. background: #F0F2F5;
  10710. /* border-radius: 10px; */
  10711. overflow: auto;
  10712. height: calc(100% - 150px);
  10713. margin: 0 auto;
  10714. position: relative;
  10715. box-sizing: border-box;
  10716. }
  10717. .e_add_top {
  10718. display: flex;
  10719. justify-content: space-between;
  10720. background: #fff;
  10721. position: absolute;
  10722. right: 20px;
  10723. height: 50px;
  10724. align-items: center;
  10725. }
  10726. .e_add_title2 {
  10727. display: flex;
  10728. align-items: center;
  10729. }
  10730. .e_add_title2 span {
  10731. width: 40px;
  10732. }
  10733. .e_add_title {
  10734. display: flex;
  10735. align-items: center;
  10736. color: #b8b8b8;
  10737. font-size: 18px;
  10738. position: relative;
  10739. height: 40px;
  10740. }
  10741. .e_add_title span {
  10742. margin-right: 10px;
  10743. }
  10744. .e_add_title .el_input {
  10745. width: 300px;
  10746. }
  10747. .e_add_title>>>.el-input__inner {
  10748. width: 400px;
  10749. }
  10750. .e_add_btn {}
  10751. .e_add_content {
  10752. display: flex;
  10753. width: 100%;
  10754. }
  10755. .e_add_list {
  10756. background: #fff;
  10757. height: 500px;
  10758. width: 210px;
  10759. position: relative;
  10760. margin: 15px 5px 0 0;
  10761. flex-shrink: 0;
  10762. display: flex;
  10763. flex-direction: column;
  10764. }
  10765. .e_add_list_title {
  10766. font-size: 20px;
  10767. width: 100%;
  10768. box-sizing: border-box;
  10769. padding: 15px 40px;
  10770. text-align: center;
  10771. border-bottom: 1px solid #eaeaea;
  10772. position: relative;
  10773. display: flex;
  10774. align-items: center;
  10775. justify-content: center;
  10776. height: 57px;
  10777. background: #f6f6f6;
  10778. }
  10779. .e_add_list_title span {
  10780. overflow: hidden;
  10781. white-space: nowrap;
  10782. text-overflow: ellipsis;
  10783. }
  10784. .e_add_list_title img {
  10785. position: absolute;
  10786. right: 15px;
  10787. width: 25px;
  10788. cursor: pointer;
  10789. top: 50%;
  10790. transform: translateY(-50%);
  10791. }
  10792. .e_add_list_body {
  10793. height: calc(100% - 187px);
  10794. overflow: auto;
  10795. }
  10796. .e_add_list_child {
  10797. width: 100%;
  10798. display: flex;
  10799. align-items: center;
  10800. justify-content: center;
  10801. position: relative;
  10802. box-sizing: border-box;
  10803. padding: 15px 40px;
  10804. text-align: center;
  10805. }
  10806. .e_add_list_child span {
  10807. overflow: hidden;
  10808. white-space: nowrap;
  10809. text-overflow: ellipsis;
  10810. cursor: pointer;
  10811. }
  10812. .e_add_list_child img {
  10813. position: absolute;
  10814. right: 10px;
  10815. width: 21px;
  10816. cursor: pointer;
  10817. top: 50%;
  10818. transform: translateY(-50%);
  10819. }
  10820. .e_add_list_child+.e_add_list_child {
  10821. border-top: 1px solid #eaeaea;
  10822. }
  10823. .e_add_list_child .active {
  10824. color: #409eff;
  10825. }
  10826. .e_add_list_btn {
  10827. position: absolute;
  10828. bottom: 0;
  10829. height: 50px;
  10830. background: rgb(120, 120, 254);
  10831. width: 100%;
  10832. color: #fff;
  10833. font-size: 16px;
  10834. text-align: center;
  10835. line-height: 50px;
  10836. cursor: pointer;
  10837. }
  10838. .e_add_list_detail {
  10839. position: absolute;
  10840. bottom: 0;
  10841. height: 130px;
  10842. background: rgb(120, 120, 254);
  10843. width: 100%;
  10844. color: #fff;
  10845. font-size: 16px;
  10846. display: flex;
  10847. align-items: center;
  10848. justify-content: center;
  10849. }
  10850. .e_add_list_detail textarea {
  10851. height: 90%;
  10852. width: 95%;
  10853. border: none;
  10854. resize: none;
  10855. outline: none;
  10856. padding: 5px;
  10857. box-sizing: border-box;
  10858. }
  10859. .e_add_list_pbox {
  10860. width: 100%;
  10861. }
  10862. .e_add_list_pbox_title {
  10863. height: 50px;
  10864. background: #fff;
  10865. display: flex;
  10866. align-items: center;
  10867. width: 100%;
  10868. box-sizing: border-box;
  10869. padding: 0 20px;
  10870. flex-direction: row;
  10871. flex-wrap: wrap;
  10872. }
  10873. .type_title {
  10874. font-size: 18px;
  10875. font-weight: 700;
  10876. }
  10877. .type_content {
  10878. font-size: 16px;
  10879. margin-left: 30px;
  10880. }
  10881. .type_content span+span {
  10882. margin-left: 20px;
  10883. }
  10884. .type_content span {
  10885. cursor: pointer;
  10886. padding-bottom: 5px;
  10887. box-sizing: border-box;
  10888. }
  10889. .type_content .active {
  10890. color: #409eff;
  10891. border-bottom: 2px solid #409eff;
  10892. }
  10893. .e_add_list_pbox_content {
  10894. height: calc(100% - 50px);
  10895. display: flex;
  10896. align-items: center;
  10897. width: 100%;
  10898. background: #fff;
  10899. }
  10900. .mbCss {
  10901. width: 100%;
  10902. display: flex;
  10903. flex-direction: row;
  10904. flex-wrap: nowrap;
  10905. align-content: center;
  10906. align-items: flex-start;
  10907. justify-content: flex-start;
  10908. }
  10909. .pjCss {
  10910. /* width: 42%; */
  10911. width: calc(100% - 55%);
  10912. display: flex;
  10913. flex-direction: column;
  10914. flex-wrap: nowrap;
  10915. align-items: flex-start;
  10916. }
  10917. .e_box {
  10918. display: flex;
  10919. flex-wrap: wrap;
  10920. max-height: 500px;
  10921. align-items: flex-start;
  10922. overflow: auto;
  10923. }
  10924. .e_card {
  10925. border: 1px solid #ccc;
  10926. background: #fff;
  10927. margin-right: 20px;
  10928. width: 270px;
  10929. display: flex;
  10930. flex-direction: column;
  10931. align-items: center;
  10932. border-radius: 5px;
  10933. margin-top: 10px;
  10934. text-align: center;
  10935. }
  10936. .e_card_picture {
  10937. margin: 10px 0;
  10938. }
  10939. .e_card_picture>img {
  10940. width: 50px;
  10941. }
  10942. .e_card_name {
  10943. width: 100%;
  10944. padding: 0 10px;
  10945. box-sizing: border-box;
  10946. margin-bottom: 10px;
  10947. overflow: hidden;
  10948. text-overflow: ellipsis;
  10949. white-space: nowrap;
  10950. }
  10951. .e_card_time {
  10952. width: 100%;
  10953. padding: 0 10px;
  10954. box-sizing: border-box;
  10955. font-size: 15px;
  10956. color: #c3c3c3;
  10957. margin-bottom: 10px;
  10958. }
  10959. .e_card_btn {
  10960. height: 40px;
  10961. display: flex;
  10962. align-items: center;
  10963. width: 100%;
  10964. background: rgb(244, 244, 244);
  10965. }
  10966. .e_card_btn:hover {
  10967. background: rgb(221 221 221);
  10968. }
  10969. .e_card_btn span {
  10970. flex: 1 1 auto;
  10971. text-align: center;
  10972. cursor: pointer;
  10973. }
  10974. .addEva {
  10975. border: 1px solid #ccc;
  10976. background: #fff;
  10977. margin-right: 20px;
  10978. width: 270px;
  10979. height: 149px;
  10980. display: flex;
  10981. flex-direction: column;
  10982. align-items: center;
  10983. border-radius: 5px;
  10984. margin-top: 10px;
  10985. text-align: center;
  10986. cursor: pointer;
  10987. justify-content: center;
  10988. }
  10989. .addEva>img {
  10990. width: 50px;
  10991. object-fit: cover;
  10992. }
  10993. .uploadFm {
  10994. border: 1px dashed #ccc;
  10995. width: 100%;
  10996. height: 140px;
  10997. position: relative;
  10998. cursor: pointer;
  10999. display: flex;
  11000. flex-direction: column;
  11001. justify-content: center;
  11002. align-items: center;
  11003. font-size: 14px;
  11004. color: #6e6e6e;
  11005. }
  11006. .uploadFm>img {
  11007. width: 50px;
  11008. }
  11009. .fileCss {
  11010. width: 100%;
  11011. display: flex;
  11012. flex-direction: row;
  11013. flex-wrap: nowrap;
  11014. justify-content: space-around;
  11015. align-items: center;
  11016. padding-top: 15px;
  11017. }
  11018. .fileCss>div {
  11019. display: flex;
  11020. flex-direction: column;
  11021. align-items: center;
  11022. }
  11023. .fileCss .spanName {
  11024. margin-top: 10px
  11025. }
  11026. .sysPicBox {
  11027. display: flex;
  11028. flex-direction: row;
  11029. flex-wrap: wrap;
  11030. align-content: flex-start;
  11031. height: 435px;
  11032. overflow: auto;
  11033. position: relative;
  11034. }
  11035. .picNone {
  11036. position: absolute;
  11037. left: 50%;
  11038. top: 45%;
  11039. transform: translate(-50%, -50%);
  11040. width: fit-content;
  11041. color: #9c9c9c;
  11042. }
  11043. .sysPic {
  11044. width: 200px;
  11045. height: 115px;
  11046. margin: 0 20px 20px 0;
  11047. cursor: pointer;
  11048. }
  11049. .sysPic>img,
  11050. .isSysPic>img,
  11051. .deletePic>img {
  11052. width: 100%;
  11053. height: 100%;
  11054. object-fit: cover;
  11055. }
  11056. .isSysPic {
  11057. width: 200px;
  11058. height: 115px;
  11059. position: relative;
  11060. }
  11061. .deletePic {
  11062. width: 20px;
  11063. height: 20px;
  11064. position: absolute;
  11065. top: 0;
  11066. right: 0;
  11067. cursor: pointer;
  11068. }
  11069. .select_box1 {
  11070. height: 100%;
  11071. }
  11072. .select_box1_img {
  11073. background: #fff;
  11074. border-radius: 5px;
  11075. padding: 15px;
  11076. box-sizing: border-box;
  11077. margin-bottom: 20px;
  11078. }
  11079. .select_box1_title {
  11080. padding: 0 0 15px 0;
  11081. border-bottom: 1px solid #eee;
  11082. margin-bottom: 15px;
  11083. }
  11084. .select_box1_title span:nth-child(1) {
  11085. font-size: 16px;
  11086. margin-right: 20px;
  11087. color: #000;
  11088. }
  11089. .select_box1_title span:nth-child(2) {
  11090. font-size: 14px;
  11091. color: rgb(112, 112, 112);
  11092. }
  11093. .select_box1_add_img {}
  11094. .select_box1_select {
  11095. background: #fff;
  11096. border-radius: 5px;
  11097. padding: 15px;
  11098. box-sizing: border-box;
  11099. height: calc(100% - 200px);
  11100. overflow: auto;
  11101. }
  11102. .select_box2 {
  11103. height: 100%;
  11104. }
  11105. .select_box2_title {
  11106. background: #fff;
  11107. border-radius: 5px;
  11108. padding: 5px 10px;
  11109. box-sizing: border-box;
  11110. margin-bottom: 10px;
  11111. }
  11112. .select_box2_box {
  11113. display: flex;
  11114. height: calc(100% - 30px);
  11115. }
  11116. .select_box2_img {
  11117. width: calc(100% - 310px);
  11118. height: 100%;
  11119. overflow: auto;
  11120. background: #fff;
  11121. border-radius: 5px;
  11122. }
  11123. .select_box2_img img {
  11124. width: 100%;
  11125. }
  11126. .select_box2_answer {
  11127. background: #fff;
  11128. margin-left: 10px;
  11129. border-radius: 5px;
  11130. width: 300px;
  11131. overflow: auto;
  11132. height: 100%;
  11133. display: flex;
  11134. flex-direction: column;
  11135. align-items: center;
  11136. padding-top: 10px;
  11137. box-sizing: border-box;
  11138. }
  11139. .select_box2_answer_box {
  11140. margin: 0 0 10px 0;
  11141. width: 85%;
  11142. }
  11143. .rate_textarea {
  11144. font: inherit;
  11145. color: currentColor;
  11146. width: 100%;
  11147. padding: 8px 14px;
  11148. display: block;
  11149. min-width: 0;
  11150. outline: none;
  11151. border: 1px solid rgba(0, 0, 0, 0.23);
  11152. border-radius: 4px;
  11153. box-sizing: border-box;
  11154. background: #fff;
  11155. margin: 0 20px 0 0;
  11156. resize: none;
  11157. }
  11158. .select_answer_title {
  11159. text-align: left;
  11160. width: 85%;
  11161. margin-bottom: 10px;
  11162. font-size: 18px;
  11163. color: #8e8e8e;
  11164. }
  11165. .mask {
  11166. background-color: rgb(0 0 0 / 30%);
  11167. /* position: fixed; */
  11168. position: absolute;
  11169. top: 0;
  11170. left: 0;
  11171. width: 100%;
  11172. height: 100%;
  11173. z-index: 90;
  11174. display: flex;
  11175. align-items: center;
  11176. justify-content: center;
  11177. }
  11178. .progressBox {
  11179. width: 300px;
  11180. height: 150px;
  11181. background: #fff;
  11182. border-radius: 10px;
  11183. box-shadow: 0 0 6px 1px #bfbfbf;
  11184. display: flex;
  11185. align-items: center;
  11186. justify-content: center;
  11187. flex-direction: column;
  11188. position: relative;
  11189. color: #6c6c6c;
  11190. }
  11191. .progressBox>>>.el-progress-bar__outer {
  11192. background-color: #d1dfff !important;
  11193. }
  11194. .progressBox .lbox {
  11195. height: 50px;
  11196. font-size: 19px;
  11197. display: flex;
  11198. align-items: center;
  11199. color: #747474;
  11200. }
  11201. .progressBox .lbox img {
  11202. width: 40px;
  11203. margin-right: 20px;
  11204. }
  11205. .closeCss {
  11206. position: absolute;
  11207. top: 8px;
  11208. right: 8px;
  11209. cursor: pointer;
  11210. width: 20px;
  11211. height: 20px;
  11212. }
  11213. .closeCss>img {
  11214. width: 100%;
  11215. height: 100%;
  11216. }
  11217. .updateTips::before {
  11218. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11219. font-size: 14px;
  11220. margin-left: 20px;
  11221. font-weight: 400;
  11222. color: #ff3a3a;
  11223. margin-bottom: 10px;
  11224. display: block;
  11225. }
  11226. .updateMask {
  11227. width: 100%;
  11228. z-index: 3;
  11229. top: 0;
  11230. position: absolute;
  11231. /* background-color: rgba(0,0,0,.3); */
  11232. }
  11233. .t_j_box {
  11234. display: flex;
  11235. }
  11236. .t_j_box span:nth-child(1) {
  11237. width: 15%;
  11238. overflow: hidden;
  11239. margin-right: 10px;
  11240. text-overflow: ellipsis;
  11241. white-space: nowrap;
  11242. }
  11243. .t_j_box span:nth-child(2) {
  11244. width: 30%;
  11245. overflow: hidden;
  11246. text-overflow: ellipsis;
  11247. margin-right: 10px;
  11248. }
  11249. .t_j_box span:nth-child(3) {
  11250. max-width: calc(55% - 20px);
  11251. overflow: hidden;
  11252. text-overflow: ellipsis;
  11253. }
  11254. .sentenBox {
  11255. background: #fff;
  11256. height: 600px;
  11257. overflow: auto;
  11258. background-image: url("../../assets/icon/conSentences/csBg.png");
  11259. background-position: 102%;
  11260. background-repeat: no-repeat;
  11261. background-size: 60%;
  11262. }
  11263. .sentenBox>.sentenContent {
  11264. padding-bottom: 10px;
  11265. width: 97%;
  11266. margin: 0 auto;
  11267. }
  11268. .sentenBox>.sentenContent+.sentenContent {
  11269. border-top: 1px solid #cbcbcb;
  11270. }
  11271. .addSen {
  11272. background: #409efe;
  11273. width: 90px;
  11274. color: #fff;
  11275. height: 35px;
  11276. text-align: center;
  11277. line-height: 35px;
  11278. border-radius: 5px;
  11279. float: right;
  11280. margin: 10px 20px 0 0;
  11281. cursor: pointer;
  11282. }
  11283. .sentenTop {
  11284. display: flex;
  11285. flex-direction: row;
  11286. flex-wrap: nowrap;
  11287. align-items: center;
  11288. }
  11289. .sentenTop::before {
  11290. content: attr(index);
  11291. background: #3681fc;
  11292. border-radius: 50%;
  11293. color: #fff;
  11294. width: 25px;
  11295. height: 25px;
  11296. min-width: 25px;
  11297. min-height: 25px;
  11298. text-align: center;
  11299. line-height: 25px;
  11300. margin-right: 5px;
  11301. }
  11302. .sentenTop>div:nth-child(2) {
  11303. width: 300px;
  11304. margin: 0 15px;
  11305. }
  11306. .sentenTop>div:nth-child(3) {
  11307. background: #409efe;
  11308. color: #fff;
  11309. width: 65px;
  11310. height: 35px;
  11311. text-align: center;
  11312. line-height: 35px;
  11313. border-radius: 5px;
  11314. cursor: pointer;
  11315. }
  11316. .cardList {
  11317. padding: 30px 0 20px 0;
  11318. display: flex;
  11319. flex-direction: row;
  11320. flex-wrap: wrap;
  11321. align-items: center;
  11322. box-sizing: border-box;
  11323. border-bottom: 1px solid #f4f4f4;
  11324. width: 98%;
  11325. margin: 0 auto;
  11326. }
  11327. .rightCardList {
  11328. display: flex;
  11329. flex-wrap: wrap;
  11330. }
  11331. .cardBox {
  11332. display: flex;
  11333. flex-direction: row;
  11334. flex-wrap: wrap;
  11335. align-items: center;
  11336. align-content: center;
  11337. }
  11338. .isCard,
  11339. .isCard1 {
  11340. width: 200px;
  11341. height: 65px;
  11342. text-align: center;
  11343. line-height: 65px;
  11344. font-size: 14px;
  11345. cursor: pointer;
  11346. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  11347. background-size: 100% 100%;
  11348. position: relative;
  11349. z-index: 99;
  11350. }
  11351. .isCard1 {
  11352. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  11353. }
  11354. .isCard:hover .deleteWord {
  11355. display: block;
  11356. }
  11357. .isCard>div:nth-child(1),
  11358. .isCard1>div:nth-child(1) {
  11359. white-space: nowrap;
  11360. overflow: hidden;
  11361. text-overflow: ellipsis;
  11362. width: 80%;
  11363. margin: 0 auto;
  11364. }
  11365. .card {
  11366. width: 140px;
  11367. height: 65px;
  11368. }
  11369. .card>img {
  11370. width: 100%;
  11371. height: 100%;
  11372. }
  11373. .rightCardBox {
  11374. width: 99%;
  11375. margin: 10px auto 0;
  11376. }
  11377. .rightCardBox>div:nth-child(1) {
  11378. margin-bottom: 10px;
  11379. }
  11380. .cardCss {
  11381. display: flex;
  11382. flex-direction: column;
  11383. flex-wrap: nowrap;
  11384. align-items: center;
  11385. border-bottom: 3px solid #b4c3d3;
  11386. padding: 0 0 5px 0;
  11387. /* margin-right: 10px; */
  11388. }
  11389. .cardCss>div:nth-child(2) {
  11390. background: #5b7b9d;
  11391. color: #fff;
  11392. width: 20px;
  11393. height: 20px;
  11394. border-radius: 50%;
  11395. text-align: center;
  11396. line-height: 20px;
  11397. }
  11398. .sentenTopBox {
  11399. display: flex;
  11400. flex-direction: row;
  11401. flex-wrap: nowrap;
  11402. align-items: center;
  11403. justify-content: space-between;
  11404. padding: 55px 0 0 20px;
  11405. box-sizing: border-box;
  11406. width: 85%;
  11407. }
  11408. .stepsBottom {
  11409. width: 100%;
  11410. box-shadow: 0 0 10px 10px #f7f7f7;
  11411. /* background: #f7f7f7; */
  11412. border-radius: 10px;
  11413. overflow: hidden;
  11414. height: 100%
  11415. }
  11416. .navTop {
  11417. background: #53749b;
  11418. color: #fff;
  11419. height: 40px;
  11420. line-height: 40px;
  11421. padding-left: 15px;
  11422. font-size: 18px;
  11423. }
  11424. .navBottom {
  11425. /* background: #6b91b7; */
  11426. height: 100%;
  11427. overflow: auto;
  11428. }
  11429. .navTask {
  11430. display: flex;
  11431. flex-direction: row;
  11432. flex-wrap: nowrap;
  11433. align-items: center;
  11434. padding: 10px 10px 10px 0;
  11435. cursor: pointer;
  11436. background: #ffffff;
  11437. width: 95%;
  11438. margin: 10px auto;
  11439. box-sizing: border-box;
  11440. border-radius: 5px;
  11441. }
  11442. .isNavTask {
  11443. background: #3681FC;
  11444. }
  11445. .isNavTask .nt_taskName {
  11446. color: #fff !important;
  11447. }
  11448. .isNavTask .nt_taskTitle {
  11449. color: #AECCFE !important;
  11450. }
  11451. .navTask .nt_taskBox {
  11452. width: calc(100% - 55px);
  11453. padding: 0 10px 0 20px;
  11454. box-sizing: border-box;
  11455. display: flex;
  11456. flex-direction: row;
  11457. flex-wrap: nowrap;
  11458. align-items: baseline;
  11459. }
  11460. .navTask .nt_taskTitle {
  11461. color: #717C8D;
  11462. line-height: 25px;
  11463. font-size: 14px;
  11464. min-width: 45px;
  11465. }
  11466. .navTask .nt_taskName {
  11467. /* color: #fff; */
  11468. /* max-width: 130px; */
  11469. width: 100%;
  11470. /* max-width: calc(100% - 50px); */
  11471. white-space: nowrap;
  11472. overflow: hidden;
  11473. text-overflow: ellipsis;
  11474. font-size: 14px;
  11475. color: #0E1E33;
  11476. }
  11477. .groupBox {}
  11478. .groupContent+.groupContent {
  11479. margin-top: 30px;
  11480. }
  11481. .groupTitle {
  11482. font-size: 24px;
  11483. color: rgb(80, 80, 80);
  11484. margin-bottom: 20px;
  11485. }
  11486. .groupName {
  11487. display: flex;
  11488. align-items: center;
  11489. }
  11490. .groupn {
  11491. font-size: 15px;
  11492. margin-right: 10px;
  11493. }
  11494. .groupName+.groupName {
  11495. margin-top: 15px;
  11496. }
  11497. .groupBtn {
  11498. margin-left: 10px;
  11499. }
  11500. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11501. text-align: left;
  11502. }
  11503. .radioBox>div {
  11504. margin: 10px 0 0 10px;
  11505. }
  11506. .radioBox>>>.el-radio__input,
  11507. .radioBox>>>.el-checkbox__inner {
  11508. margin-left: 10px;
  11509. }
  11510. .radioBox>>>.el-radio__label,
  11511. .radioBox>>>.el-checkbox__label {
  11512. display: flex;
  11513. align-items: center;
  11514. }
  11515. .inImg {
  11516. width: 50px;
  11517. }
  11518. .inImg>img {
  11519. width: 100%;
  11520. height: 100%;
  11521. object-fit: cover;
  11522. }
  11523. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11524. height: auto;
  11525. padding: 10px;
  11526. margin: 0;
  11527. }
  11528. .upCss >>> .el-upload-list{
  11529. width: 100%;
  11530. }
  11531. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11532. width: 100%;
  11533. height: 120px;
  11534. object-fit: contain;
  11535. background: unset;
  11536. margin-left: 0;
  11537. }
  11538. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11539. display: none;
  11540. }
  11541. .tcMember+.tcMember::before {
  11542. content: "、";
  11543. }
  11544. .xzUpImg {
  11545. width: 25px;
  11546. height: 25px;
  11547. min-width: 25px;
  11548. min-height: 25px;
  11549. cursor: pointer;
  11550. margin: 0 10px;
  11551. }
  11552. .xzUpImg>img {
  11553. width: 100%;
  11554. height: 100%;
  11555. }
  11556. .closeCss {
  11557. position: absolute;
  11558. top: 8px;
  11559. right: 8px;
  11560. cursor: pointer;
  11561. width: 20px;
  11562. height: 20px;
  11563. }
  11564. .closeCss>img {
  11565. width: 100%;
  11566. height: 100%;
  11567. }
  11568. .moveBtn {
  11569. display: flex;
  11570. flex-direction: row;
  11571. flex-wrap: nowrap;
  11572. align-items: center;
  11573. width: 55px;
  11574. }
  11575. .timuUpImg {
  11576. display: flex;
  11577. flex-direction: row;
  11578. align-items: center;
  11579. width: 100%;
  11580. margin-right: 10px;
  11581. }
  11582. .timuUpImg>div:nth-child(1) {
  11583. margin-right: 10px;
  11584. display: flex;
  11585. align-items: center;
  11586. width: 100%;
  11587. }
  11588. .timuImgBox {
  11589. margin: 10px 0;
  11590. display: flex;
  11591. flex-direction: column;
  11592. flex-wrap: wrap;
  11593. align-items: flex-start;
  11594. }
  11595. .timuImg {
  11596. width: 100px;
  11597. margin: 5px 0;
  11598. cursor: pointer;
  11599. position: relative;
  11600. }
  11601. .timuImg:hover .deleteWord {
  11602. display: block;
  11603. }
  11604. .deleteWord {
  11605. width: 25px;
  11606. height: 25px;
  11607. position: absolute;
  11608. right: -5px;
  11609. top: -5px;
  11610. cursor: pointer;
  11611. display: none;
  11612. }
  11613. .timuImg>img,
  11614. .deleteWord>img {
  11615. width: 100%;
  11616. height: 100%;
  11617. object-fit: cover;
  11618. }
  11619. .e_add_delete {
  11620. cursor: pointer;
  11621. margin-left: 10px;
  11622. }
  11623. .pType_box {
  11624. margin-top: 30px;
  11625. align-items: flex-end;
  11626. }
  11627. .noneBox {
  11628. height: 200px;
  11629. width: 100%;
  11630. display: flex;
  11631. align-items: center;
  11632. justify-content: center;
  11633. flex-direction: column;
  11634. /* margin-top: 150px; */
  11635. }
  11636. .noneBox>img {
  11637. width: 95px;
  11638. }
  11639. .noneBox>span {
  11640. margin-top: 10px;
  11641. color: #717C8D;
  11642. }
  11643. .rb_c_box {
  11644. width: 100%;
  11645. height: 100%;
  11646. display: flex;
  11647. /* padding: 20px; */
  11648. box-sizing: border-box;
  11649. justify-content: space-between;
  11650. }
  11651. .rb_c_box_left {
  11652. height: 100%;
  11653. background: #fff;
  11654. width: 270px;
  11655. min-width: 270px;
  11656. border-radius: 8px;
  11657. margin-right: 10px;
  11658. }
  11659. .rb_c_box_right {
  11660. height: 100%;
  11661. width: calc(100%);
  11662. overflow: hidden;
  11663. }
  11664. .rb_c_box_btn {
  11665. display: flex;
  11666. justify-content: flex-start;
  11667. height: 50px;
  11668. align-items: center;
  11669. }
  11670. .rb_c_box_right>.basic_box {
  11671. background: #fff;
  11672. border-radius: 8px;
  11673. height: calc(100% - 0px);
  11674. overflow: auto;
  11675. }
  11676. .textarea_css {
  11677. display: block;
  11678. resize: none;
  11679. padding: 10px 15px;
  11680. line-height: 1.5;
  11681. box-sizing: border-box;
  11682. width: 100%;
  11683. font-size: 14px;
  11684. color: #606266;
  11685. background-color: #FFF;
  11686. background-image: none;
  11687. border: 1px solid #DCDFE6;
  11688. border-radius: 4px;
  11689. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  11690. outline: none;
  11691. overflow: hidden;
  11692. height: 46px;
  11693. font-family: 'Microsoft YaHei';
  11694. }
  11695. .textarea_css::-webkit-input-placeholder {
  11696. color: #C0C4CC
  11697. }
  11698. .textarea_css:focus {
  11699. border-color: #409EFF;
  11700. outline: 0;
  11701. }
  11702. .addEditor>>>.text {
  11703. height: auto;
  11704. min-height: 100px;
  11705. }
  11706. .addEditor>>>.w-e-text-container {
  11707. min-height: 100px;
  11708. }
  11709. .moveBtn2 {
  11710. flex-direction: column;
  11711. width: fit-content;
  11712. margin: 0 10px 0 10px;
  11713. }
  11714. .moveBtn2 .chapter_upload_down,
  11715. .moveBtn2 .chapter_upload_up {
  11716. width: 16px;
  11717. height: 16px;
  11718. }
  11719. .moveBtn2 .chapter_upload_up::after,
  11720. .moveBtn2 .chapter_upload_down::after {
  11721. width: 10px;
  11722. height: 10px;
  11723. }
  11724. .fullStyle>>>.el-dialog__body {
  11725. height: calc(100% - 125px) !important;
  11726. box-sizing: border-box;
  11727. }
  11728. .fullStyle>>>.el-dialog {
  11729. width: 100% !important;
  11730. max-width: 100% !important;
  11731. height: 100% !important;
  11732. margin: 0 !important;
  11733. }
  11734. .fullStyle {
  11735. width: 100% !important;
  11736. max-width: 100% !important;
  11737. height: 100% !important;
  11738. margin: 0 auto !important;
  11739. }
  11740. .wb_j_box_btn {
  11741. width: calc(100% - 30px);
  11742. display: flex;
  11743. height: 40px;
  11744. border: 1.5px solid #CAD1DC;
  11745. border-radius: 4px;
  11746. box-sizing: border-box;
  11747. align-items: center;
  11748. font-size: 14px;
  11749. cursor: pointer;
  11750. overflow: hidden;
  11751. }
  11752. .wb_j_box_btn:hover{
  11753. border: 1.5px solid #0061FF;
  11754. }
  11755. .wb_j_box_title {
  11756. background: #F0F4FA;
  11757. height: 100%;
  11758. line-height: 40px;
  11759. width: 90px;
  11760. text-align: center;
  11761. color: #060E17;
  11762. border-right: 1.5px solid #CAD1DC;
  11763. box-sizing: border-box;
  11764. }
  11765. .wb_j_box_btn_c {
  11766. width: calc(100% - 90px);
  11767. padding: 0 35px 0 10px;
  11768. box-sizing: border-box;
  11769. position: relative;
  11770. }
  11771. .wb_j_box_span {
  11772. width: 100%;
  11773. overflow: hidden;
  11774. white-space: nowrap;
  11775. text-overflow: ellipsis;
  11776. word-wrap: break-word;
  11777. color: #717C8D;
  11778. }
  11779. .wb_j_box_arrow {
  11780. content: '';
  11781. width: 14px;
  11782. height: 14px;
  11783. background: url(../../assets/icon/new/u_arrow.png);
  11784. background-size: 100% 100%;
  11785. position: absolute;
  11786. right: 12px;
  11787. top: 50%;
  11788. transform: translateY(-50%);
  11789. }</style>