addCourse.vue 360 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div class="stepTop">
  7. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  8. <div class="cfirst">
  9. <div>
  10. <img src="../../../assets/icon/first.png" alt />
  11. </div>
  12. <div>填写基本信息</div>
  13. </div>
  14. </div>
  15. <div v-else class="firstNo" @click="navSteps(1)">
  16. <div class="cfirst">
  17. <div>
  18. <img src="../../../assets/icon/firstNo.png" alt />
  19. </div>
  20. <div>填写基本信息</div>
  21. </div>
  22. </div>
  23. <div v-show="cidttt === 0" class="secondNo">
  24. <div v-if="steps == 2" class="newSteps second" @click="navSteps(2)">
  25. <div class="cfirst">
  26. <div>
  27. <img src="../../../assets/icon/second.png" alt />
  28. </div>
  29. <div>选择项目框架</div>
  30. </div>
  31. </div>
  32. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  33. <div class="cfirst">
  34. <div>
  35. <img src="../../../assets/icon/secondNo.png" alt />
  36. </div>
  37. <div>选择项目框架</div>
  38. </div>
  39. </div>
  40. </div>
  41. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  42. <div class="cfirst">
  43. <div>
  44. <img src="../../../assets/icon/third.png" alt />
  45. </div>
  46. <div>上传项目内容</div>
  47. </div>
  48. </div>
  49. <div v-else class="thirdNo" @click="navSteps(3)">
  50. <div class="cfirst">
  51. <div>
  52. <img src="../../../assets/icon/thirdNo.png" alt />
  53. </div>
  54. <div>上传项目内容</div>
  55. </div>
  56. </div>
  57. <div v-if="steps == 4 && type == 2" class="four">
  58. <div class="cfirst">
  59. <div>
  60. <img src="../../../assets/icon/five.png" alt />
  61. </div>
  62. <div>项目进展</div>
  63. </div>
  64. </div>
  65. <div v-else-if="type == 2" class="fourNo" @click="navSteps(4)">
  66. <div class="cfirst">
  67. <div>
  68. <img src="../../../assets/icon/fiveNo.png" alt />
  69. </div>
  70. <div>项目进展</div>
  71. </div>
  72. </div>
  73. <div v-if="steps == 5" class="four">
  74. <div class="cfirst">
  75. <div>
  76. <img src="../../../assets/icon/four.png" alt />
  77. </div>
  78. <div>上传完成</div>
  79. </div>
  80. </div>
  81. <div v-else class="fourNo">
  82. <div class="cfirst">
  83. <div>
  84. <img src="../../../assets/icon/fourNo.png" alt />
  85. </div>
  86. <div>上传完成</div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="stepsBottom" v-if="steps == 3">
  91. <div class="navTop">辅助导航</div>
  92. <div class="navBottom">
  93. <div class="navTask" :class="{
  94. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  95. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  96. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  97. <div>任务{{ tIndex + 1 }}</div>
  98. <div>
  99. <el-tooltip effect="light" :content="t.task" placement="top">
  100. <span>{{ t.task }}</span>
  101. </el-tooltip>
  102. </div>
  103. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  104. <div class="chapter_upload_up" style="width: 15px; height: 15px" @click.stop="taskMove(1, tIndex)">
  105. </div>
  106. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  107. @click.stop="taskMove(2, tIndex)"></div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  114. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  115. <div class="courseTop">
  116. <div class="stepsNav">
  117. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  118. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  119. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  120. <h3 class="info_title" v-if="steps == 4">项目管理</h3>
  121. <h3 class="info_title" v-if="steps == 5">上传项目</h3>
  122. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  123. <!-- /studentCourse -->
  124. <el-breadcrumb-item :to="{
  125. path:
  126. fpath +
  127. '?userid=' +
  128. userid +
  129. '&oid=' +
  130. oid +
  131. '&org=' +
  132. org + '&role=' + role,
  133. }">{{
  134. orgArray.indexOf(org) != -1 || oidArray.indexOf(oid) != -1
  135. ? "师生项目"
  136. : "项目管理"
  137. }}
  138. </el-breadcrumb-item>
  139. <el-breadcrumb-item>
  140. <span style="color: rgb(15, 126, 255)">添加项目</span>
  141. </el-breadcrumb-item>
  142. </el-breadcrumb>
  143. </div>
  144. <div v-if="steps == 1 || steps == 2 || steps == 3" class="stepsWord">
  145. {{
  146. steps == 1
  147. ? "第一步"
  148. : steps == 2
  149. ? "第二步"
  150. : steps == 3
  151. ? cidttt === 0
  152. ? "第三步"
  153. : "第二步"
  154. : ""
  155. }}
  156. </div>
  157. </div>
  158. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  159. <div class="updateMask" :style="{
  160. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  161. }" v-if="cid && userid != courseUserid"></div>
  162. <div class="whiteBg">
  163. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid }">项目基本信息</div>
  164. <div class="basic_box">
  165. <div class="big_box">
  166. <div class="left_first">
  167. <div>
  168. <div>
  169. <div class="bInfo_title" style="margin-bottom: 15px">
  170. <!-- <span style="color: red">*</span> -->
  171. 项目名称
  172. </div>
  173. <div style="display: flex; margin-right: 20px">
  174. <img src="../../../assets/icon/projectName2.png" alt style="margin-right: 8px" />
  175. <input type="text" placeholder="请输入项目名称" class="binfo_input" v-model="courseName" />
  176. </div>
  177. </div>
  178. <div class="both" v-if="CourseType.length">
  179. <div class="choose">
  180. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  181. <span v-if="CourseTypeJson[item.id].length > 0">{{
  182. item.name
  183. }}</span>
  184. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0">
  185. <el-checkbox @change="updateType(item1)" v-for="item1 in CourseTypeJson[item.id]"
  186. :key="item1.id" :label="item1.id">{{ item1.name }}
  187. </el-checkbox>
  188. </el-checkbox-group>
  189. <!-- <div v-else style="font-size: 14px; ">
  190. 暂无分类
  191. </div> -->
  192. </div>
  193. </div>
  194. </div>
  195. <div class="subjectBox" v-if="false">
  196. <div class="bInfo_title">添加主题</div>
  197. <div class="subjectList"></div>
  198. <div class="subjectBtn">+ 添加</div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="whiteBg" style="border-radius: 0">
  206. <div class="right_first">
  207. <div class="right_title">上传封面与成员</div>
  208. <div style="
  209. padding: 0 0 50px 20px;
  210. display: flex;
  211. align-items: baseline;
  212. justify-content: flex-start;
  213. margin: 0 auto;
  214. ">
  215. <div>
  216. <div class="bInfo_title" style="margin-top: 0 !important">
  217. 项目封面
  218. </div>
  219. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  220. <img src="../../../assets/icon/addPoster.png" alt="" />
  221. </div>
  222. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  223. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  224. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  225. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  226. <i class="el-icon-plus"></i>
  227. </el-upload>
  228. </div>
  229. <div style="
  230. display: flex;
  231. flex-flow: row nowrap;
  232. flex-direction: row;
  233. flex-wrap: wrap;
  234. align-items: baseline;
  235. margin: 0 30px;
  236. ">
  237. <!-- <div style="margin: 0 80px">
  238. <div class="bInfo_title">
  239. 选择项目成员
  240. </div>
  241. <div
  242. class="addPeople"
  243. @click="addPP"
  244. v-if="this.checkboxList.length == 0"
  245. >添加成员</div>
  246. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  247. </div>-->
  248. <!-- <div style="margin: 0 30px 0 0">
  249. <div class="bInfo_title">添加班级</div>
  250. <div class="addPeople" @click="dialogVisibleClass = true">
  251. 添加班级
  252. </div>
  253. </div> -->
  254. <div style="flex: 0.5 1 0%; margin: 0; width: 180px"
  255. v-if="courseUserid != '' ? courseUserid == userid : true">
  256. <div class="bInfo_title">协同编辑</div>
  257. <div class="addPeople" @click="openMember" style="background: #0061FF">
  258. 添加协同成员
  259. </div>
  260. <div v-if="checkboxList3.length" style="
  261. max-width: 100%;
  262. word-break: break-all;
  263. overflow: hidden;
  264. margin-top: 10px;
  265. font-size: 14px;
  266. color: #6e6e6e;
  267. cursor:pointer
  268. " @click="checkBoolean = !checkBoolean">
  269. <span :class="{ tcMember: getMan2(tc) }"
  270. v-for="(tc, tcIndex) in checkboxList3.length > 6 && checkBoolean ? checkboxList3 : checkboxList3.slice(0, 6)"
  271. :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  272. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  280. <div class="right_title">项目简要描述</div>
  281. <div style="width: 95%; padding: 15px 0px 15px 20px">
  282. <div style="width: 55%">
  283. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、项目内容说明' +
  284. '\n' +
  285. '2、项目学习知识目标' +
  286. '\n' +
  287. '3、项目学习技能目标'
  288. "></textarea>
  289. </div>
  290. </div>
  291. <!-- <div style="width: 95%; margin: 15px auto">
  292. <el-switch
  293. v-model="isTeacherSee"
  294. active-text="允许给其他老师查看"
  295. style="padding-bottom: 30px"
  296. ></el-switch>
  297. </div>-->
  298. <div style="width: 95%; padding: 15px 0px 15px 20px">
  299. <el-switch v-model="isTeacherSee" active-text="是否公开此项目" style="padding-bottom: 30px"></el-switch>
  300. </div>
  301. </div>
  302. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px" v-if="false">
  303. <div class="right_title">目标管理</div>
  304. <div style="margin: 15px auto; padding: 0 0 0 20px">
  305. <div style="
  306. width: 100%;
  307. display: flex;
  308. flex-direction: row;
  309. flex-wrap: nowrap;
  310. align-content: center;
  311. align-items: center;
  312. justify-content: space-between;
  313. ">
  314. <div style="
  315. display: flex;
  316. flex-flow: row nowrap;
  317. align-items: flex-start;
  318. width: 100%;
  319. flex-direction: column;
  320. flex-wrap: nowrap;
  321. position: relative;
  322. ">
  323. <!-- <div style="margin-right: 15px; min-width: 120px">
  324. 请选择评价指标
  325. </div>
  326. <div>
  327. <el-select
  328. v-model="evalua"
  329. placeholder="请选择体系"
  330. @change="checkEva"
  331. >
  332. <el-option
  333. v-for="(e, eIndex) in evaJuri"
  334. :key="eIndex"
  335. :label="e.title"
  336. :value="e.id"
  337. ></el-option>
  338. </el-select>
  339. </div> -->
  340. <!-- <div
  341. @click="openT"
  342. class="addPeople"
  343. style="
  344. background: #6b92c9;
  345. margin: 0 0 0 15px;
  346. position: absolute;
  347. right: 23%;
  348. "
  349. >
  350. 前往设置目标管理
  351. </div> -->
  352. <div class="e_box">
  353. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  354. <div class="e_card_picture">
  355. <img src="../../../assets/e_picture.png" />
  356. </div>
  357. <div class="e_card_name">
  358. <span>{{ item.title }}</span>
  359. </div>
  360. <!-- <div class="e_card_time">
  361. <span>{{ item.time }}</span>
  362. </div> -->
  363. <div class="e_card_btn">
  364. <span @click="checkEva(item.id)">导入</span>
  365. <!-- <span @click="openT">前往设置</span> -->
  366. </div>
  367. </div>
  368. <div class="addEva" @click="openT">
  369. <img src="../../../assets/icon/addEva.png" alt="" />
  370. </div>
  371. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  372. 暂无数据
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <div v-if="evalua" style="
  378. border: 1px solid #e5e5e5;
  379. width: 95%;
  380. margin-top: 30px;
  381. box-shadow: 3px 1px 15px 3px #e0e0e0;
  382. ">
  383. <div class="e_add_top">
  384. <div class="e_add_title">
  385. <span>当前使用目标管理</span>
  386. <span>{{ eTitle }}</span>
  387. <img src="../../../assets/line.png" class="cru_line" style="
  388. width: 125px;
  389. height: 20px;
  390. bottom: -10px;
  391. left: 155px;
  392. " />
  393. <!-- <el-input
  394. v-model="eTitle"
  395. placeholder="请输入名称"
  396. @change="setMindData"
  397. ></el-input>-->
  398. </div>
  399. </div>
  400. <div class="e_add_content">
  401. <div class="e_add_list_pbox">
  402. <div class="e_add_list_pbox_title">
  403. <span class="type_title">切换模式</span>
  404. <div class="type_content">
  405. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  406. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  407. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  408. </div>
  409. </div>
  410. <div class="e_add_list_pbox_content">
  411. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  412. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  413. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  414. </SeeBoard>
  415. </div>
  416. </div>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <div class="rightBox" v-if="this.steps == 2">
  423. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  424. <!-- <div
  425. style="
  426. color: #b8b8b8;
  427. background: #fff;
  428. width: 26%;
  429. height: 40px;
  430. border-radius: 15px;
  431. padding-left: 20px;
  432. line-height: 40px;
  433. font-size: 17px;
  434. box-shadow: 0px 1px 2px 2px #e0e0e0;
  435. "
  436. >-->
  437. <div class="right_title" style="border: none; margin: 0; padding: 0">
  438. 请选择合适的项目模板
  439. </div>
  440. <div class="wordbox">
  441. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  442. <div class="wordPic">
  443. <img src="../../../assets/icon/wordMub.png" alt />
  444. </div>
  445. <div style="
  446. margin-top: 10px;
  447. line-height: 19px;
  448. overflow: hidden;
  449. text-overflow: ellipsis;
  450. white-space: nowrap;
  451. padding: 0 20px;
  452. ">
  453. {{ aa.title }}
  454. </div>
  455. </div>
  456. <div class="wordTeacher" @click="checkTemplate2()">
  457. <div class="wordPic">
  458. <img src="../../../assets/icon/wordMub.png" alt />
  459. </div>
  460. <div style="
  461. margin-top: 10px;
  462. line-height: 19px;
  463. overflow: hidden;
  464. text-overflow: ellipsis;
  465. white-space: nowrap;
  466. padding: 0 20px;
  467. ">
  468. 新建项目
  469. </div>
  470. </div>
  471. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  472. <div class="wordPic">
  473. <img src="../../../assets/icon/wordMub.png" alt />
  474. </div>
  475. <div style="
  476. margin-top: 10px;
  477. line-height: 19px;
  478. overflow: hidden;
  479. text-overflow: ellipsis;
  480. white-space: nowrap;
  481. padding: 0 20px;
  482. ">
  483. 我的项目
  484. </div>
  485. </div> -->
  486. </div>
  487. </div>
  488. </div>
  489. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  490. <div class="basic_box">
  491. <div style="
  492. display: flex;
  493. flex-direction: row;
  494. align-items: center;
  495. position: sticky;
  496. top: 0;
  497. background: #fff;
  498. z-index: 99;
  499. width: 100%;
  500. padding: 0 20px 0 20px;
  501. box-sizing: border-box;
  502. ">
  503. <div class="cru_selectBox">
  504. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  505. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  506. 第{{ index + 1 }}阶段
  507. </div>
  508. <div class="cru_line" :style="{
  509. left: offsetLetfPx + 'px',
  510. }" ></div>
  511. </div>
  512. <div class="addStageImg" @click="addunit()">
  513. <img src="../../../assets/icon/add.png" alt />
  514. </div>
  515. </div>
  516. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  517. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  518. <div>
  519. <div class="chapter_contentbox">
  520. <div>第{{ unitIndex + 1 }}阶段</div>
  521. <div>
  522. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  523. </div>
  524. <div v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  525. </div>
  526. </div>
  527. <div class="task_add_title">添加任务</div>
  528. <div class="taskBorder" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  529. <div>
  530. <div>
  531. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  532. 任务{{ itemTaskIndex + 1 }}
  533. </div>
  534. <div class="chapter_contentbox" style="
  535. flex-direction: row;
  536. justify-content: flex-start;
  537. align-items: center;
  538. flex-wrap: wrap;
  539. ">
  540. <div style="
  541. flex-direction: row;
  542. justify-content: flex-start;
  543. align-items: center;
  544. flex-wrap: wrap;
  545. display: flex;
  546. width: calc(100% - 115px);
  547. ">
  548. <div style="
  549. flex-direction: row;
  550. justify-content: flex-start;
  551. align-items: center;
  552. display: flex;
  553. margin-bottom: 10px;
  554. ">
  555. <div style="
  556. border-left: 6px solid #0061FF;
  557. height: 20px;
  558. padding: 0 10px;
  559. line-height: 22px;
  560. ">
  561. 任务名称
  562. </div>
  563. <div style="width: auto">
  564. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  565. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  566. itemTaskIndex
  567. ].task
  568. " />
  569. </div>
  570. </div>
  571. <div style="
  572. flex-direction: row;
  573. justify-content: flex-start;
  574. align-items: center;
  575. display: flex;
  576. margin-bottom: 10px;
  577. ">
  578. <div style="
  579. height: 20px;
  580. padding: 0 10px 0 16px;
  581. line-height: 22px;
  582. ">
  583. 负责人
  584. </div>
  585. <div style="width: auto">
  586. <!-- <input type="text" placeholder="输入负责人" class="binfo_input" style="border-radius: 4px"
  587. v-model="
  588. unitJson[unitIndex].chapterInfo[0].taskJson[
  589. itemTaskIndex
  590. ].people
  591. " /> -->
  592. <el-select v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  593. itemTaskIndex
  594. ].people
  595. " placeholder="请选择负责人" clearable filterable @change="
  596. peopleChange(
  597. unitJson[unitIndex].chapterInfo[0].taskJson[
  598. itemTaskIndex
  599. ].people,
  600. itemTaskIndex
  601. )
  602. ">
  603. <el-option v-for="item in ManAarray" :key="item.userid" :label="item.name +
  604. (item.type == 1 ? '(老师)' : '(学生)')
  605. " :value="item.userid">
  606. </el-option>
  607. </el-select>
  608. </div>
  609. </div>
  610. <!-- <div class="addPeople" @click="addTcMember(itemTaskIndex)"
  611. style="background: rgb(107, 146, 201);margin: 0 0 10px 15px;margin-bottom: 10px;width: 100px;">
  612. {{
  613. (unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember
  614. &&
  615. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].tcMember.length)
  616. ? '已添加' : '添加协同者'
  617. }}
  618. </div> -->
  619. </div>
  620. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  621. style="position: absolute; right: 55px"></div>
  622. </div>
  623. <div style="
  624. flex-direction: row;
  625. justify-content: flex-start;
  626. align-items: center;
  627. display: flex;
  628. margin: 10px 0 15px;
  629. ">
  630. <div style="
  631. height: 20px;
  632. padding-left: 16px;
  633. line-height: 22px;
  634. font-size: 18px;
  635. ">
  636. 协同人员
  637. </div>
  638. <el-tooltip :content="getMen(
  639. unitJson[unitIndex].chapterInfo[0].taskJson[
  640. itemTaskIndex
  641. ].tcMember
  642. )
  643. " placement="top" effect="dark" v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  644. itemTaskIndex
  645. ].tcMember &&
  646. unitJson[unitIndex].chapterInfo[0].taskJson[
  647. itemTaskIndex
  648. ].tcMember.length
  649. ">
  650. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)">
  651. <span :class="{ tcMember: getMan(tc) }" v-for="(tc, tcIndex) in unitJson[unitIndex]
  652. .chapterInfo[0].taskJson[itemTaskIndex]
  653. .tcMember" :key="tcIndex">{{ getMan(tc) }}</span>
  654. </div>
  655. </el-tooltip>
  656. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)" v-else>
  657. <span>点击添加协同成员</span>
  658. </div>
  659. </div>
  660. <div style="
  661. flex-direction: row;
  662. justify-content: flex-start;
  663. align-items: center;
  664. display: flex;
  665. margin-top: 10px;
  666. ">
  667. <div style="
  668. height: 20px;
  669. padding-left: 16px;
  670. line-height: 22px;
  671. ">
  672. 任务起止时间
  673. </div>
  674. <div style="margin-left: 20px">
  675. <el-date-picker v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  676. itemTaskIndex
  677. ].time
  678. " type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  679. </el-date-picker>
  680. </div>
  681. </div>
  682. <div style="
  683. display: flex;
  684. margin: 0 0 20px 0;
  685. flex-direction: row;
  686. justify-content: flex-start;
  687. align-items: center;
  688. width: 70.5% !important;
  689. ">
  690. <div class="lineTitle">任务描述</div>
  691. <div class="line"></div>
  692. </div>
  693. <div>
  694. <editor-bar style="
  695. width: 90% !important;
  696. margin: 0;
  697. height: 500px;
  698. " class="ed_s" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  699. itemTaskIndex
  700. ].taskDetail
  701. " @change="change"></editor-bar>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="basic_box" v-if="false" style="
  706. margin: 0;
  707. min-height: 0;
  708. width: 90% !important;
  709. paddint-top: 10px !important;
  710. ">
  711. <div style="
  712. display: flex;
  713. margin: 0 0 20px 0;
  714. flex-direction: row;
  715. justify-content: flex-start;
  716. align-items: center;
  717. ">
  718. <div class="lineTitle">资源库</div>
  719. <div class="line"></div>
  720. </div>
  721. <div>
  722. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  723. itemTask.chapterData.length == 0
  724. " style="height: 185px"></div>
  725. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  726. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  727. @click="
  728. getChapterData(
  729. $event,
  730. unitIndex,
  731. index,
  732. index1,
  733. item1.type
  734. )
  735. ">
  736. <div class="chapter_upload_t" style="width: 100%"></div>
  737. <div class="chapter_upload_o" style="
  738. position: relative;
  739. display: flex;
  740. align-items: center;
  741. ">
  742. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  743. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  744. <div v-if="item1.type == 3 ||
  745. item1.type == 9 ||
  746. item1.type == 6 ||
  747. item1.type == 7
  748. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  749. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  750. </div>
  751. <div class="chapter_upload_ic" style="
  752. cursor: pointer;
  753. position: absolute;
  754. width: 45px;
  755. right: 0;
  756. top: 0;
  757. ">
  758. <div class="chapter_upload_ic_l"></div>
  759. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  760. deleteChapterData(
  761. $event,
  762. unitIndex,
  763. index,
  764. index1,
  765. itemTaskIndex
  766. )
  767. ">
  768. <div></div>
  769. </div>
  770. </div>
  771. <div class="chapter_upload_n">
  772. <input v-if="item1.type == 2 ||
  773. item1.type == 3 ||
  774. item1.type == 9 ||
  775. item1.type == 7
  776. " :placeholder="item1.name" @change="
  777. updataVideoT(
  778. $event,
  779. unitIndex,
  780. chapterIndex,
  781. index1
  782. )
  783. " style="
  784. border: none;
  785. outline: none;
  786. width: 80%;
  787. minwidth: 215px;
  788. z-index: 99;
  789. font-size: 14px;
  790. white-space: nowrap;
  791. overflow: hidden;
  792. text-overflow: ellipsis;
  793. " />
  794. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  795. border: none;
  796. outline: none;
  797. width: 80%;
  798. white-space: nowrap;
  799. overflow: hidden;
  800. text-overflow: ellipsis;
  801. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  802. <input :placeholder="item1.title ? item1.title : '链接'
  803. " v-if="item1.type == 8" style="
  804. border: none;
  805. outline: none;
  806. width: 80%;
  807. white-space: nowrap;
  808. overflow: hidden;
  809. text-overflow: ellipsis;
  810. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  811. <div class="chapter_upload_ud" style="z-index: 99">
  812. <div class="chapter_upload_up" @click="
  813. upCd($event, unitIndex, index, index1)
  814. "></div>
  815. <div class="chapter_upload_down" @click="
  816. downCd($event, unitIndex, index, index1)
  817. "></div>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. <div class="add_info_box">
  825. <button class="info_btn" @click="addImg($event)">
  826. 添加视频
  827. <!-- capture="camera" -->
  828. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  829. v-if="inputShow" @change="
  830. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  831. " />
  832. </button>
  833. <button class="info_btn" @click="addImg($event)">
  834. 添加附件
  835. <input type="file"
  836. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  837. style="display: none" v-if="inputShow" @change="
  838. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  839. " />
  840. </button>
  841. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  842. 添加图文
  843. </button>
  844. <button class="info_btn" @click="openLine(itemTaskIndex)">
  845. 添加链接
  846. </button>
  847. </div>
  848. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  849. itemTaskIndex
  850. ].proVisible
  851. " class="mask">
  852. <div class="progressBox">
  853. <div class="lbox">
  854. <img src="../../../assets/loading.gif" />上传中,请稍后
  855. </div>
  856. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  857. itemTaskIndex
  858. ].progress
  859. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  860. itemTaskIndex
  861. ].progress
  862. : 0
  863. " style="width: 80%"></el-progress>
  864. </div>
  865. </div>
  866. </div>
  867. <div class="toolChoose" style="padding: 0 0 30px 30px">
  868. <div class="tools" style="margin-top: 20px">
  869. <div class="leftTools" style="
  870. width: 95%;
  871. padding: 0 0 15px 0;
  872. border-bottom: 1px solid #efefef;
  873. margin-bottom: 15px;
  874. " v-for="(itemTool, toolIndex) in itemTask.toolArray" :key="toolIndex" v-loading="downLoading == 'down'+toolIndex">
  875. <div style="
  876. display: flex;
  877. flex-direction: row;
  878. align-items: center;
  879. flex-wrap: nowrap;
  880. justify-content: flex-start;
  881. position: relative;
  882. ">
  883. <div style="margin-right: 20px; font-weight: bold">
  884. 步骤 {{ toolIndex + 1 }} :
  885. </div>
  886. <div class="chooseWho" style="padding-bottom: 0">
  887. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  888. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  889. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  890. <span v-if="itemTool.tool == 15"> 问答 </span>
  891. <span v-if="itemTool.tool == 48"> 表格 </span>
  892. <span v-if="itemTool.tool == 51"> 资源库 </span>
  893. <span v-if="itemTool.tool == 52"> 文档 </span>
  894. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  895. <span v-if="itemTool.tool == 54"> 拍照 </span>
  896. <span v-if="itemTool.tool == 55"> 文件 </span>
  897. <span v-if="itemTool.tool == 56"> 投票 </span>
  898. <span v-if="itemTool.tool == 57"> CocoPi </span>
  899. </div>
  900. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  901. v-if="itemTask.toolArray.length > 0" style="position: absolute; right: 55px"></div>
  902. </div>
  903. <div style="margin: 10px 0;align-items: center;" :style="{display: (itemTool.tool == 57 || itemTool.tool == 51) ? 'block' : 'flex'}">
  904. <div>
  905. <div class="tool" v-if="itemTool.tool == 1">
  906. <div class="whiteBIcon" @click="openToolFun(1, itemTaskIndex, toolIndex)">
  907. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  908. <div style="margin: 5px 0">电子白板</div>
  909. </div>
  910. </div>
  911. <div class="tool" v-if="itemTool.tool == 3">
  912. <div class="whiteBIcon" @click="openToolFun(3, itemTaskIndex, toolIndex)">
  913. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  914. <div style="margin: 5px 0">思维导图</div>
  915. </div>
  916. </div>
  917. <div class="tool" v-if="itemTool.tool == 6">
  918. <div class="whiteBIcon" @click="openToolFun(6, itemTaskIndex, toolIndex)">
  919. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  920. <div style="margin: 5px 0">协同文档</div>
  921. </div>
  922. </div>
  923. <div class="tool" v-if="itemTool.tool == 15">
  924. <div class="whiteBIcon" @click="openToolFun(15, itemTaskIndex, toolIndex)">
  925. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  926. <div style="margin: 5px 0">问答</div>
  927. </div>
  928. </div>
  929. <div class="tool" v-if="itemTool.tool == 48 && !itemTool.toolPhoto.length
  930. ">
  931. <div class="whiteBIcon" @click="openToolFun(48, itemTaskIndex, toolIndex)">
  932. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  933. <div style="margin: 5px 0">表格</div>
  934. </div>
  935. </div>
  936. <div class="tool" v-if="itemTool.tool == 52 && !itemTool.toolPhoto.length
  937. " style="position: relative">
  938. <div class="whiteBIcon" @click="openToolFun(52, itemTaskIndex, toolIndex)">
  939. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  940. <div style="margin: 5px 0">文档</div>
  941. </div>
  942. </div>
  943. <div class="tool" v-if="itemTool.tool == 53" style="position: relative">
  944. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)">
  945. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  946. <div style="margin: 5px 0">文件上传</div>
  947. <input type="file"
  948. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  949. style="display: none" @change="
  950. beforeUploadCC(
  951. $event,
  952. 1,
  953. itemTaskIndex,
  954. toolIndex,
  955. 53
  956. )
  957. " />
  958. <div v-if="itemTool.proVisible" class="mask">
  959. <div class="lbox2">
  960. <img src="../../../assets/loading.gif" />
  961. </div>
  962. </div>
  963. </div>
  964. </div>
  965. <div class="tool" v-if="itemTool.tool == 54" style="
  966. display: flex;
  967. flex-direction: row;
  968. align-items: flex-end;
  969. ">
  970. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  971. style="position: relative">
  972. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  973. <div style="margin: 5px 0">拍照</div>
  974. <!-- capture="camera" -->
  975. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  976. style="display: none" @change="
  977. beforeUploadCC(
  978. $event,
  979. 2,
  980. itemTaskIndex,
  981. toolIndex,
  982. 54
  983. )
  984. " />
  985. <div v-if="itemTool.proVisible" class="mask" style="background: unset" @click.stop="1">
  986. <div class="lbox2"></div>
  987. </div>
  988. </div>
  989. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  990. <img src="../../../assets/loading.gif" />
  991. <div>
  992. <span>{{ itemTool.isFinishSize }}M</span> /
  993. <span>{{ itemTool.isAllSize }}M</span>
  994. </div>
  995. <!-- <el-button type="text">取消</el-button> -->
  996. </div>
  997. </div>
  998. <div class="tool" v-if="itemTool.tool == 55" style="
  999. display: flex;
  1000. flex-direction: row;
  1001. align-items: flex-end;
  1002. ">
  1003. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  1004. style="position: relative">
  1005. <img src="../../../assets/icon/fourthToolList/zip.png" alt />
  1006. <div style="margin: 5px 0">文件</div>
  1007. <input type="file" accept="*" style="display: none" @change="
  1008. beforeUploadCC(
  1009. $event,
  1010. 3,
  1011. itemTaskIndex,
  1012. toolIndex,
  1013. 55
  1014. )
  1015. " />
  1016. <div v-if="itemTool.proVisible" class="mask" style="background: unset" @click.stop="1">
  1017. <div class="lbox2"></div>
  1018. </div>
  1019. </div>
  1020. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  1021. <img src="../../../assets/loading.gif" />
  1022. <div>
  1023. <span>{{ itemTool.isFinishSize }}M</span> /
  1024. <span>{{ itemTool.isAllSize }}M</span>
  1025. </div>
  1026. <!-- <el-button type="text">取消</el-button> -->
  1027. </div>
  1028. </div>
  1029. <div class="tool" v-if="itemTool.tool == 56">
  1030. <div class="whiteBIcon" @click="openToolFun(56, itemTaskIndex, toolIndex)">
  1031. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1032. <div style="margin: 5px 0">投票</div>
  1033. </div>
  1034. </div>
  1035. <div v-if="itemTool.tool == 57">
  1036. <div>
  1037. <iframe src="https://v.cocorobo.cn" frameborder="0" width="100%" height="650"></iframe>
  1038. </div>
  1039. </div>
  1040. <div v-if="itemTool.tool == 51">
  1041. <div class="vedioTaskBox">
  1042. <div class="box_course" :class="'box_course' + itemTaskIndex + toolIndex
  1043. " v-if="itemTool.toolData.length > 0 && !itemTool.isNoFile">
  1044. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1045. .type == 2
  1046. ">
  1047. <div class="workd_media" style="height: 100%">
  1048. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="itemTool.toolData[itemTool.sourceIndex]
  1049. .src
  1050. " @play="onPlayerPlay($event)" style="width: 99%; height: 100%"></video-player>
  1051. </div>
  1052. </div>
  1053. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1054. .type == 6
  1055. " style="
  1056. box-shadow: 0 0 6px 1px #f2f2f2;
  1057. width: 99%;
  1058. background: #f1f1f1;
  1059. height: 650px;
  1060. ">
  1061. <div class="texttitle">查看文档</div>
  1062. <el-form class="textBox">
  1063. <el-form-item class="textTitle">
  1064. <div style="
  1065. font-size: 22px;
  1066. max-height: 100px;
  1067. overflow: auto;
  1068. ">
  1069. {{
  1070. itemTool.toolData[
  1071. itemTool.sourceIndex
  1072. ].name
  1073. }}
  1074. </div>
  1075. </el-form-item>
  1076. <div v-html="itemTool.toolData[itemTool.sourceIndex]
  1077. .url
  1078. " class="textContent"></div>
  1079. </el-form>
  1080. </div>
  1081. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1082. .type == 3
  1083. " style="height: 650px; width: 99%">
  1084. <iframe style="
  1085. width: 100%;
  1086. height: 100%;
  1087. border: none;
  1088. " :src="itemTool.toolData[itemTool.sourceIndex]
  1089. .src
  1090. "></iframe>
  1091. </div>
  1092. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1093. .type == 8
  1094. " style="height: 650px; width: 99%">
  1095. <iframe style="
  1096. width: 100%;
  1097. height: 100%;
  1098. border: none;
  1099. " :src="itemTool.toolData[itemTool.sourceIndex]
  1100. .src
  1101. " security="restricted"
  1102. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>
  1103. </div>
  1104. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1105. .type == 13
  1106. " style="height: 650px; width: 99%">
  1107. <el-image :src="itemTool.toolData[itemTool.sourceIndex].url" fit="contain"
  1108. style="width: 100%; height: 100%; cursor: pointer"
  1109. @click="previewImg(itemTool.toolData[itemTool.sourceIndex].url)"></el-image>
  1110. </div>
  1111. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  1112. .type == 9
  1113. " style="height: 650px; width: 99%">
  1114. <pdf :pdfUrl="itemTool.toolData[itemTool.sourceIndex]
  1115. .url
  1116. " style="
  1117. width: 100%;
  1118. height: 100%;
  1119. overflow: auto;
  1120. ">
  1121. </pdf>
  1122. </div>
  1123. </div>
  1124. <div class="vedioList" :class="'vedioList' + itemTaskIndex + toolIndex"
  1125. v-if="itemTool.toolData.length > 0">
  1126. <div class="navTitile">内容列表:</div>
  1127. <div class="navBox">
  1128. <div>
  1129. <div class="vedioTimeBox" v-for="(
  1130. chapter, cIndex
  1131. ) in itemTool.toolData" :key="cIndex + '1'"
  1132. @click="setChapterIndex(itemTool, cIndex, toolIndex)">
  1133. <div class="vedioName" :class="{
  1134. isClickNav:
  1135. itemTool.sourceIndex == cIndex,
  1136. }">
  1137. {{
  1138. chapter.type == 8
  1139. ? chapter.title
  1140. : chapter.name
  1141. }}
  1142. </div>
  1143. </div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. <div style="padding: 10px 0 0" v-if="itemTool.toolData[itemTool.sourceIndex]">
  1149. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1150. .type == 3 ||
  1151. itemTool.toolData[itemTool.sourceIndex]
  1152. .type == 9
  1153. " type="primary" @click="
  1154. checkFileFull(
  1155. itemTool.toolData[itemTool.sourceIndex]
  1156. .type,
  1157. itemTool.toolData[itemTool.sourceIndex].src
  1158. )
  1159. ">全屏查看</el-button>
  1160. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1161. .type == 3 ||
  1162. itemTool.toolData[itemTool.sourceIndex]
  1163. .type == 9
  1164. " type="primary" @click="
  1165. downloadFile(
  1166. itemTool.toolData[itemTool.sourceIndex].src,toolIndex
  1167. )
  1168. ">文件下载</el-button>
  1169. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1170. .type == 8
  1171. " type="primary" @click="
  1172. openLineS(
  1173. itemTool.toolData[itemTool.sourceIndex].src
  1174. )
  1175. ">打开链接
  1176. </el-button>
  1177. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  1178. .type == 6
  1179. " type="primary" @click="
  1180. checkFileFull(
  1181. itemTool.toolData[itemTool.sourceIndex]
  1182. .type,
  1183. itemTool.toolData[itemTool.sourceIndex]
  1184. )
  1185. ">全屏查看</el-button>
  1186. <el-button type="primary" @click="
  1187. editSourceUpadte(itemTaskIndex, toolIndex)
  1188. ">添加资源</el-button>
  1189. </div>
  1190. </div>
  1191. </div>
  1192. <div v-if="itemTool.tool != 51" style="width: 71.5%;"
  1193. :style="{ marginLeft: ((itemTool.tool == 52 || itemTool.tool == 48) && itemTool.toolPhoto.length) ? '0' : '10px' }">
  1194. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  1195. resize: none;
  1196. width: 100% !important;
  1197. " v-model="itemTool.toolDetail"></textarea>
  1198. </div>
  1199. </div>
  1200. <div v-if="itemTool.toolPhoto.length" style="margin-top: 10px" class="toolimg_box">
  1201. <div class="toolimg" v-for="(photo, pIndex) in itemTool.toolPhoto" :key="pIndex"
  1202. :class="{ answerWidth: photo.type == 3 }">
  1203. <img v-if="photo.type == 1" :src="photo.content" alt="" @click="previewImg(photo.content)" />
  1204. <div class="answerBg" v-if="photo.type == 3">
  1205. <!-- <div>{{ w.sName }}</div> -->
  1206. <el-tooltip class="item" effect="light" :content="photo.content" placement="top">
  1207. <div class="answerContent">
  1208. {{ photo.content }}
  1209. </div>
  1210. </el-tooltip>
  1211. </div>
  1212. <img v-if="photo.type == 10" src="../../../assets/icon/word2.png" alt=""
  1213. @click="openToolFun(48, itemTaskIndex, toolIndex)" />
  1214. <img v-if="photo.type == 4" src="../../../assets/icon/word2.png" alt=""
  1215. @click="openFile(photo.content)" />
  1216. <img v-if="photo.type == 12" src="../../../assets/icon/word2.png" alt=""
  1217. @click="openToolFun(52, itemTaskIndex, toolIndex)" />
  1218. <img v-if="photo.type == 14" src="../../../assets/icon/word2.png" alt="" @click="
  1219. openAsk(photo.content, itemTaskIndex, toolIndex)
  1220. " />
  1221. <img v-if="photo.type == 13" src="../../../assets/icon/zip.png" alt=""
  1222. @click="downloadFile(photo.content, toolIndex)" />
  1223. <img v-if="photo.type == 5" src="../../../assets/icon/isVideo.png" alt=""
  1224. @click="openVideo(photo.content)" />
  1225. <img class="deleteImg" src="../../../assets/deleteworks.png" v-if="photo.userid == userid &&
  1226. itemTool.tool != 52 &&
  1227. itemTool.tool != 48
  1228. " @click.stop="deleteWorks(photo.id)" alt />
  1229. <div class="comment">
  1230. <div class="worksName">
  1231. <div v-if="itemTool.tool == 52 || itemTool.tool == 48
  1232. ">
  1233. <el-tooltip v-if="itemTool.people.length > 1" :content="itemTool.people.join('、')"
  1234. placement="top" effect="dark">
  1235. <span>{{
  1236. itemTool.people.join("、")
  1237. }}</span>
  1238. </el-tooltip>
  1239. <span v-else>{{
  1240. itemTool.people.join("、")
  1241. }}</span>
  1242. </div>
  1243. <div v-else>{{ photo.username }}</div>
  1244. <div @click="openUpdateName(photo)">
  1245. <el-tooltip :content="photo.name ? photo.name : setTime(photo.create_at)"
  1246. placement="top" effect="dark">
  1247. <span>{{
  1248. photo.name ? photo.name : setTime(photo.create_at)
  1249. }}</span>
  1250. </el-tooltip>
  1251. <img src="../../../assets/icon/edit-icon.png" />
  1252. </div>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <div v-if="itemTool.toolPhoto.length && itemTool.tool == 56
  1258. ">
  1259. <voteStatic :askJSON="itemTool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
  1260. </div>
  1261. </div>
  1262. <div class="addToolFunBox">
  1263. <div class="addToolFun" @click="addToolFunD(itemTaskIndex)">
  1264. <div class="addToolImg">
  1265. <img src="../../../assets/icon/add.png" alt />
  1266. </div>
  1267. <div>添加工具</div>
  1268. </div>
  1269. <!-- <div class="addToolFun" @click="addSourceFunD(itemTaskIndex)">
  1270. <div class="addToolImg">
  1271. <img src="../../../assets/icon/add.png" alt />
  1272. </div>
  1273. <div>添加资源</div>
  1274. </div> -->
  1275. </div>
  1276. </div>
  1277. </div>
  1278. <div class="funBlock" style="padding: 0">
  1279. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  1280. <div>折叠</div>
  1281. <div class="arrow">
  1282. <img src="../../../assets/icon/fold.png" alt />
  1283. </div>
  1284. </div>
  1285. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  1286. <div>展开</div>
  1287. <div class="arrow">
  1288. <img src="../../../assets/icon/expand.png" alt />
  1289. </div>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. <div class="addTaskBorder" @click="addTaskBorder">
  1294. <div>
  1295. <img src="../../../assets/icon/addHw.png" alt />
  1296. <span>添加任务</span>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. <div class="rightBox" v-if="steps == 4">
  1303. <div class="proMan">
  1304. <div class="title">
  1305. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1306. </div>
  1307. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1308. </div>
  1309. <div class="proMan">
  1310. <div class="title">
  1311. <img src="../../../assets/icon/tupu.png" alt />图谱
  1312. </div>
  1313. <graph :Json="graphJson"></graph>
  1314. </div>
  1315. <div class="proMan">
  1316. <div class="title">
  1317. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1318. </div>
  1319. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1320. </div>
  1321. </div>
  1322. <div style="
  1323. width: calc(100% - 20px);
  1324. background: rgb(255, 255, 255);
  1325. border-radius: 10px;
  1326. " v-if="steps == 5">
  1327. <div class="basic_box_success">
  1328. <div class="right_img">
  1329. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1330. <img src="../../../assets/icon/right.png" v-else alt />
  1331. </div>
  1332. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1333. 请参加双师科创成长营活动的成员</div>
  1334. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1335. 前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1336. <div style="font-weight: bold">创建成功</div>
  1337. <!-- <div>您的项目编号</div>
  1338. <div class="number">{{ number }}</div>-->
  1339. <!-- <div class="success_button">
  1340. <div class="look_course" @click="isNoFinsh">
  1341. 邀请老师协同编辑
  1342. </div>
  1343. <div class="attend_others" @click="goCourse">预览项目</div>
  1344. </div> -->
  1345. </div>
  1346. </div>
  1347. <div class="info_btnBox">
  1348. <button class="info_btn" v-if="steps == 1" @click="
  1349. goTo(
  1350. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1351. )
  1352. ">
  1353. 返回项目
  1354. </button>
  1355. <button class="info_btn" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1356. {{ steps == 5 ? "返回首页" : "上一步" }}
  1357. </button>
  1358. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1359. {{
  1360. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1361. ? "确认上传"
  1362. : "下一步"
  1363. }}
  1364. </button>
  1365. </div>
  1366. </div>
  1367. </div>
  1368. </div>
  1369. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1370. class="dialog_diy2 customWidth">
  1371. <div>请复制该链接邀请协同编辑</div>
  1372. <div>http://www.boomyon.com/index-zhang.com</div>
  1373. <span slot="footer" class="dialog-footer">
  1374. <el-button type="primary">复制链接分享</el-button>
  1375. <el-button @click="dialogVisible = false">取消</el-button>
  1376. </span>
  1377. </el-dialog>
  1378. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1379. :before-close="handleClose" class="dialog_diy2 customWidth">
  1380. <el-form>
  1381. <el-form-item label="文档标题">
  1382. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1383. </el-form-item>
  1384. <div>文档简介</div>
  1385. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1386. </el-form>
  1387. <span slot="footer" class="dialog-footer">
  1388. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1389. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1390. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1391. </span>
  1392. </el-dialog>
  1393. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1394. :before-close="handleClose" class="dialog_diy">
  1395. <el-form>
  1396. <el-form-item label="文档标题">
  1397. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1398. </el-form-item>
  1399. <div>文档内容</div>
  1400. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1401. </el-form>
  1402. <span slot="footer" class="dialog-footer">
  1403. <el-button @click="clearChoose">取 消</el-button>
  1404. <el-button type="primary" @click="wordNext()">确定</el-button>
  1405. </span>
  1406. </el-dialog>
  1407. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1408. :before-close="handleClose" class="dialog_diy">
  1409. <el-form>
  1410. <el-form-item label="文本标题">
  1411. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1412. </el-form-item>
  1413. <div>富文本内容</div>
  1414. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1415. </el-form>
  1416. <span slot="footer" class="dialog-footer">
  1417. <el-button @click="clearAttText">取 消</el-button>
  1418. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1419. </span>
  1420. </el-dialog>
  1421. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1422. :before-close="handleClose" class="dialog_diy lineCss">
  1423. <el-form>
  1424. <el-form-item label="标题" :label-width="formLabelWidth">
  1425. <span>
  1426. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1427. </span>
  1428. </el-form-item>
  1429. <el-form-item label="链接" :label-width="formLabelWidth">
  1430. <span>
  1431. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1432. </span>
  1433. </el-form-item>
  1434. </el-form>
  1435. <span slot="footer" class="dialog-footer">
  1436. <el-button @click="clearLine">取 消</el-button>
  1437. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1438. </span>
  1439. </el-dialog>
  1440. <el-dialog title="添加项目成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1441. :before-close="handleClose" class="addNewPP customWidth">
  1442. <div class="people">
  1443. <div class="people_top">
  1444. <div class="people_nav">选择成员</div>
  1445. <div class="people_top_right">
  1446. <div class="people_search">
  1447. <el-input style="height: 100%" placeholder="搜索成员账号" v-model="searchPeople"></el-input>
  1448. <div class="search_img" @click="searchStudent">
  1449. <img src="../../../assets/icon/search.png" alt />
  1450. </div>
  1451. </div>
  1452. </div>
  1453. </div>
  1454. <el-checkbox-group v-model="checkboxList" class="people_name">
  1455. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1456. "暂无学生可选" }}
  1457. </el-checkbox>
  1458. </el-checkbox-group>
  1459. </div>
  1460. <span slot="footer" class="dialog-footer">
  1461. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1462. <el-button type="primary" @click="isAddPP">确定</el-button>
  1463. </span>
  1464. </el-dialog>
  1465. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1466. :before-close="handleClose" class="addNewPP">
  1467. <div class="people" style="height: 300px">
  1468. <div class="people_top">
  1469. <div class="people_nav">选择班级</div>
  1470. </div>
  1471. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1472. <div v-for="(item, index) in grade" :key="item.id">
  1473. <el-checkbox :label="item.id">
  1474. {{ item.name ? item.name : "暂无班级可选" }}
  1475. </el-checkbox>
  1476. <div>
  1477. <span>{{ index }}</span>
  1478. </div>
  1479. </div>
  1480. </el-checkbox-group>
  1481. </div>
  1482. <span slot="footer" class="dialog-footer">
  1483. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1484. <el-button type="primary" @click="isAddClass">确定</el-button>
  1485. </span>
  1486. </el-dialog>
  1487. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1488. :before-close="handleClose" class="addNewPP customWidth">
  1489. <div class="people">
  1490. <div class="people_top">
  1491. <div class="people_top_right">
  1492. <div class="people_search">
  1493. <el-input placeholder="搜索完整的姓名/账号(不含邮箱后缀)" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1494. <div class="search_img" @click="getTeacher">
  1495. <img src="../../../assets/icon/search.png" alt />
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <div class="people_nav">选择成员</div>
  1500. </div>
  1501. <div class="t_j_box" style="
  1502. padding: 20px 0 0 25px;
  1503. width: calc(100% - 55px);
  1504. margin-left: 25px;
  1505. ">
  1506. <span>姓名</span>
  1507. <span>身份</span>
  1508. <span>账号</span>
  1509. <span>学校</span>
  1510. </div>
  1511. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1512. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1513. <div class="t_j_box">
  1514. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1515. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1516. </el-tooltip>
  1517. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1518. <el-tooltip placement="top" :content="item.username">
  1519. <span>{{ item.username }}</span>
  1520. </el-tooltip>
  1521. <el-tooltip placement="top" :content="item.school">
  1522. <span>{{ item.school }}</span>
  1523. </el-tooltip>
  1524. </div>
  1525. </el-checkbox>
  1526. </el-checkbox-group>
  1527. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1528. </div>
  1529. <div style="margin-top: 10px;">
  1530. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1531. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1532. @current-change="handleCurrentChange"></el-pagination>
  1533. </div>
  1534. <span slot="footer" class="dialog-footer">
  1535. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1536. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1537. </span>
  1538. </el-dialog>
  1539. <el-dialog title="添加协同者" :visible.sync="dialogVisibleTcMember" :append-to-body="true" width="25%" height="80%"
  1540. :before-close="handleClose" class="addNewPP customWidth">
  1541. <div class="people">
  1542. <div class="people_top">
  1543. <!-- <div class="people_top_right">
  1544. <div class="people_search">
  1545. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1546. <div class="search_img" @click="getTeacher">
  1547. <img src="../../../assets/icon/search.png" alt />
  1548. </div>
  1549. </div>
  1550. </div> -->
  1551. <div class="people_nav">选择成员</div>
  1552. </div>
  1553. <div class="t_j_box" style="
  1554. padding: 20px 0 0 25px;
  1555. width: calc(100% - 55px);
  1556. margin-left: 25px;
  1557. ">
  1558. <span>姓名</span>
  1559. <span>身份</span>
  1560. <span>账号</span>
  1561. <span>学校</span>
  1562. </div>
  1563. <el-checkbox-group v-model="tcMember" class="people_name" v-if="ManAarray2.length">
  1564. <el-checkbox v-for="item in ManAarray2" :key="item.userid" :label="item.userid">
  1565. <div class="t_j_box">
  1566. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1567. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1568. </el-tooltip>
  1569. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1570. <el-tooltip placement="top" :content="item.username">
  1571. <span>{{ item.username }}</span>
  1572. </el-tooltip>
  1573. <el-tooltip placement="top" :content="item.school">
  1574. <span>{{ item.school }}</span>
  1575. </el-tooltip>
  1576. </div>
  1577. </el-checkbox>
  1578. </el-checkbox-group>
  1579. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1580. </div>
  1581. <span slot="footer" class="dialog-footer">
  1582. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  1583. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  1584. </span>
  1585. </el-dialog>
  1586. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1587. :before-close="handleClose" class="dialog_diy">
  1588. <div>
  1589. <div class="a_add_title" style="
  1590. display: flex;
  1591. flex-direction: row;
  1592. align-items: center;
  1593. justify-content: center;
  1594. ">
  1595. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1596. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1597. </div>
  1598. <div class="a_addBox">
  1599. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1600. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1601. <div class="a_add_head">
  1602. <div>
  1603. {{ index1 + 1 + "、" }}
  1604. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1605. </el-input>
  1606. </div>
  1607. <div class="a_add_head_div">
  1608. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1609. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1610. </el-button>
  1611. </div>
  1612. </div>
  1613. <div class="a_add_body">
  1614. <div class="a_add_input">
  1615. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1616. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1617. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1618. </div>
  1619. <div class="a_add_body_div">
  1620. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1621. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1622. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1623. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1624. </el-button>
  1625. </div>
  1626. </div>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <span slot="footer" class="dialog-footer">
  1631. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1632. <el-button type="primary" @click="addAsk">确 定</el-button>
  1633. </span>
  1634. </el-dialog>
  1635. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1636. :before-close="handleClose" class="dialog_diy">
  1637. <div>
  1638. <!-- <div class="a_add_title" style="
  1639. display: flex;
  1640. flex-direction: row;
  1641. align-items: center;
  1642. justify-content: center;
  1643. ">
  1644. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1645. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1646. </div> -->
  1647. <div class="a_addBox">
  1648. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1649. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1650. <div class="a_add_checkType">
  1651. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1652. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1653. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1654. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1655. </div>
  1656. <div class="a_add_head">
  1657. <div>
  1658. {{ index1 + 1 + "、" }}
  1659. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目...">
  1660. </el-input>
  1661. </div>
  1662. <div class="a_add_head_div">
  1663. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  1664. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1665. </el-button>
  1666. </div>
  1667. </div>
  1668. <div class="a_add_body">
  1669. <div class="a_add_input a_add_input_choice">
  1670. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  1671. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1672. .testItem" :key="checkIndex" :label="checkIndex">
  1673. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1674. style="width: 300px; margin-right: 10px"></el-input>
  1675. </el-radio>
  1676. </el-radio-group>
  1677. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  1678. v-if="testJson.testJson[index1].type == '2'">
  1679. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1680. .testItem" :key="checkIndex" :label="checkIndex">
  1681. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1682. style="width: 300px; margin-right: 10px"></el-input>
  1683. </el-checkbox>
  1684. </el-checkbox-group>
  1685. </div>
  1686. <div class="a_add_body_div">
  1687. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  1688. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  1689. v-if="testJson.testJson[index1].testItem != 1">删除
  1690. </el-button>
  1691. </div>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. </div>
  1696. <span slot="footer" class="dialog-footer">
  1697. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  1698. <el-button type="primary" @click="addTest">确 定</el-button>
  1699. </span>
  1700. </el-dialog>
  1701. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  1702. :before-close="handleClose" class="dialog_diy">
  1703. <div>
  1704. <div class="a_add_title" style="
  1705. display: flex;
  1706. flex-direction: column;
  1707. align-items: flex-start;
  1708. justify-content: center;
  1709. ">
  1710. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1711. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  1712. </div>
  1713. </div>
  1714. <span slot="footer" class="dialog-footer">
  1715. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1716. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1717. </span>
  1718. </el-dialog>
  1719. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  1720. :before-close="handleClose" class="dialog_diy">
  1721. <div>
  1722. <div class="a_add_title" style="
  1723. display: flex;
  1724. flex-direction: column;
  1725. align-items: flex-start;
  1726. justify-content: center;
  1727. ">
  1728. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1729. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  1730. </div>
  1731. </div>
  1732. <span slot="footer" class="dialog-footer">
  1733. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  1734. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  1735. </span>
  1736. </el-dialog>
  1737. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  1738. :before-close="handleClose" class="dialog_diy">
  1739. <div>
  1740. <div class="fileCss" style="padding-top: 20px">
  1741. <div>
  1742. <button class="info_btn" @click="addImg($event)">
  1743. 选择本地文件
  1744. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  1745. </button>
  1746. </div>
  1747. <div>
  1748. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  1749. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  1750. <img :src="cover[0].url" alt="" />
  1751. <div class="deletePic" @click="deleteSysPic">
  1752. <img src="../../../assets/icon/delete.png" alt="" />
  1753. </div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="fileCss">
  1758. <div>选择本地文件</div>
  1759. <div>选择系统文件</div>
  1760. </div>
  1761. </div>
  1762. <span slot="footer" class="dialog-footer">
  1763. <el-button @click="choosePicVisible = false">取 消</el-button>
  1764. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  1765. </span>
  1766. </el-dialog>
  1767. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  1768. :before-close="handleClose" class="dialog_diy">
  1769. <div class="cru_selectBox" style="margin: 0">
  1770. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  1771. 绘画
  1772. </div>
  1773. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  1774. 科技
  1775. </div>
  1776. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  1777. 人文
  1778. </div>
  1779. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  1780. 艺术
  1781. </div>
  1782. </div>
  1783. <div class="sysPicBox">
  1784. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  1785. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  1786. </div>
  1787. </div>
  1788. <span slot="footer" class="dialog-footer">
  1789. <el-button @click="sysPicVisible = false">取 消</el-button>
  1790. <el-button type="primary">确 定</el-button>
  1791. </span>
  1792. </el-dialog>
  1793. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  1794. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1795. <div v-if="selectJson">
  1796. <div class="select_box1" v-if="selectSteps == 1">
  1797. <div class="select_box1_img">
  1798. <div class="select_box1_title">
  1799. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  1800. </div>
  1801. <div class="select_box1_add_img">
  1802. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  1803. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  1804. <img src="../../../assets/icon/addPoster.png" alt="" />
  1805. </div>
  1806. <div class="isSysPic" v-else>
  1807. <img :src="selectJson.url" alt="" />
  1808. <div class="deletePic" @click="deleteSelectPic">
  1809. <img src="../../../assets/icon/delete.png" alt="" />
  1810. </div>
  1811. </div>
  1812. </div>
  1813. </div>
  1814. <div class="select_box1_select">
  1815. <div class="select_box1_title">
  1816. <span>添加选项</span><span>提示:请输入题目选项</span>
  1817. </div>
  1818. <div class="select_box1_select_box">
  1819. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  1820. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  1821. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1822. <div class="select_box1_select_box_add">
  1823. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  1824. 添加</el-button>
  1825. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  1826. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. </div>
  1831. <div v-if="selectSteps == 2">
  1832. <div class="select_box2">
  1833. <div class="select_box2_title">设置答案</div>
  1834. <div class="select_box2_box">
  1835. <div class="select_box2_img">
  1836. <img :src="selectJson.url" alt="" />
  1837. </div>
  1838. <div class="select_box2_answer">
  1839. <div class="select_answer_title">根据题目选择对应答案</div>
  1840. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1841. <span>{{ checkIndex + 1 }}、</span>
  1842. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  1843. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1844. </el-option>
  1845. </el-select>
  1846. </div>
  1847. </div>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <span slot="footer" class="dialog-footer">
  1853. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  1854. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  1855. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  1856. </span>
  1857. </el-dialog>
  1858. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  1859. :before-close="handleClose" class="dialog_diy">
  1860. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  1861. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  1862. <div class="pjCss" style="width: 100%">
  1863. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  1864. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  1865. <span style="min-width: 100px; text-align: right">学生评价指标:</span>
  1866. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  1867. <div class="remove" @click="deletRateList(eIndex)"></div>
  1868. <div style="width: 100%; display: flex">
  1869. <span style="min-width: 100px; text-align: right">评星等级:</span>
  1870. <el-rate v-model="eItem.score" disabled></el-rate>
  1871. </div>
  1872. <div class="elist_inptu_text" style="align-items: flex-start">
  1873. <span style="min-width: 100px; text-align: right">描述:</span>
  1874. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <div class="addToolFunBox">
  1879. <div class="addToolFun" @click="addRateList()">
  1880. <div class="addToolImg">
  1881. <img src="../../../assets/icon/add.png" alt />
  1882. </div>
  1883. <div>添加</div>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. </div>
  1888. <span slot="footer" class="dialog-footer">
  1889. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  1890. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  1891. </span>
  1892. </el-dialog>
  1893. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1894. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1895. <div>
  1896. <div class="sentenBox">
  1897. <div class="addSen" @click="addSt">添加题目</div>
  1898. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1899. <div class="sentenTopBox">
  1900. <div class="sentenTop">
  1901. <div>题目设置</div>
  1902. <div>
  1903. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  1904. </div>
  1905. <div @click="addSen(stIndex)">添加</div>
  1906. </div>
  1907. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  1908. </div>
  1909. <div class="cardList">
  1910. <div v-if="st.addSentence.length > 0" class="cardBox">
  1911. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  1912. @click="setRightAnswer(s, stIndex, sIndex)">
  1913. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1914. <div>{{ s }}</div>
  1915. </el-tooltip>
  1916. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  1917. <img src="../../../assets/icon/delete.png" alt="" />
  1918. </div>
  1919. </div>
  1920. </div>
  1921. <div class="card">
  1922. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  1923. </div>
  1924. </div>
  1925. <div class="rightCardBox">
  1926. <div>正确顺序</div>
  1927. <div class="rightCardList">
  1928. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  1929. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  1930. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  1931. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1932. <div>{{ r }}</div>
  1933. </el-tooltip>
  1934. </div>
  1935. <div>{{ rIndex + 1 }}</div>
  1936. </div>
  1937. </div>
  1938. <div class="card" v-if="st.rightAnswer.length == 0">
  1939. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <span slot="footer" class="dialog-footer">
  1947. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1948. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  1949. </span>
  1950. </el-dialog>
  1951. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1952. :before-close="handleClose" class="dialog_diy">
  1953. <el-form>
  1954. <!-- <el-form-item label="文本标题">
  1955. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1956. </el-form-item> -->
  1957. <div>表格内容</div>
  1958. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1959. </el-form>
  1960. <span slot="footer" class="dialog-footer">
  1961. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1962. <el-button type="primary" @click="addTableJson">确定</el-button>
  1963. </span>
  1964. </el-dialog>
  1965. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable1" :append-to-body="true" width="95%"
  1966. :before-close="handleClose" class="dialog_diy">
  1967. <el-form>
  1968. <!-- <el-form-item label="文本标题">
  1969. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1970. </el-form-item> -->
  1971. <div>表格内容</div>
  1972. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable1"></Table>
  1973. </el-form>
  1974. <span slot="footer" class="dialog-footer">
  1975. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  1976. <el-button type="primary" @click="addTable">确定</el-button>
  1977. </span>
  1978. </el-dialog>
  1979. <el-dialog title="查看表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  1980. :before-close="handleClose" class="dialog_diy">
  1981. <el-form>
  1982. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  1983. </el-form>
  1984. <span slot="footer" class="dialog-footer">
  1985. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  1986. </span>
  1987. </el-dialog>
  1988. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  1989. :before-close="handleClose" class="dialog_diy">
  1990. <div class="groupBox">
  1991. <div v-if="groupJson.group" class="groupContent">
  1992. <div class="groupTitle">请设置小组数量</div>
  1993. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  1994. <span class="groupn">组{{ index + 1 }}名称:</span>
  1995. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  1996. <div class="groupBtn">
  1997. <el-button type="primary" size="small" @click="addGroup(index)">
  1998. 添加</el-button>
  1999. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2000. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. <div class="groupContent">
  2005. <div class="groupTitle">请设置每组人数数量</div>
  2006. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2007. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2008. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  2009. placeholder="2-10人以内"></el-input-number>
  2010. </div>
  2011. </div>
  2012. <span slot="footer" class="dialog-footer">
  2013. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2014. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2015. </span>
  2016. </el-dialog>
  2017. <el-dialog title="添加工具" :visible.sync="dialogVisibleTool" :append-to-body="true" width="600px"
  2018. :before-close="handleClose" class="dialog_diy addToolsDia">
  2019. <div class="toolChoose" style="padding: 0 0 30px 30px">
  2020. <div class="tools">
  2021. <div class="leftTools" style="
  2022. width: 95%;
  2023. padding: 0 0 15px 0;
  2024. border-bottom: 1px solid #efefef;
  2025. margin-bottom: 15px;
  2026. ">
  2027. <div style="min-height: 163px">
  2028. <div class="toolSort">
  2029. <div class="tool">
  2030. <div class="whiteBIcon" @click="addToolFun(1)">
  2031. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2032. <div style="margin: 5px 0">电子白板</div>
  2033. </div>
  2034. </div>
  2035. <div class="tool" v-if="false">
  2036. <div class="whiteBIcon" @click="addToolFun(6)">
  2037. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2038. <div style="margin: 5px 0">协同文档</div>
  2039. </div>
  2040. </div>
  2041. <div class="tool">
  2042. <div class="whiteBIcon" @click="addToolFun(3)">
  2043. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2044. <div style="margin: 5px 0">思维导图</div>
  2045. </div>
  2046. </div>
  2047. <div class="tool">
  2048. <div class="whiteBIcon" @click="addToolFun(48)">
  2049. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2050. <div style="margin: 5px 0">表格</div>
  2051. </div>
  2052. </div>
  2053. <!-- <div class="tool">
  2054. <div class="whiteBIcon" @click="addToolFun(15)">
  2055. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2056. <div style="margin: 5px 0">问答</div>
  2057. </div>
  2058. </div> -->
  2059. <div class="tool">
  2060. <div class="whiteBIcon" @click="addToolFun(52)">
  2061. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2062. <div style="margin: 5px 0">文档</div>
  2063. </div>
  2064. </div>
  2065. <div class="tool">
  2066. <div class="whiteBIcon" @click="addToolFun(51)">
  2067. <img src="../../../assets/icon/fourthToolList/upload.png" alt />
  2068. <div style="margin: 5px 0">资源库</div>
  2069. </div>
  2070. </div>
  2071. <!-- <div class="tool">
  2072. <div class="whiteBIcon" @click="addToolFun(53)">
  2073. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  2074. <div style="margin: 5px 0">文件上传</div>
  2075. </div>
  2076. </div> -->
  2077. <div class="tool">
  2078. <div class="whiteBIcon" @click="addToolFun(54)">
  2079. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  2080. <div style="margin: 5px 0">拍照</div>
  2081. </div>
  2082. </div>
  2083. <!-- <div class="tool">
  2084. <div class="whiteBIcon" @click="addToolFun(55)">
  2085. <img
  2086. src="../../../assets/icon/fourthToolList/zip.png"
  2087. alt
  2088. />
  2089. <div style="margin: 5px 0">文件</div>
  2090. </div>
  2091. </div> -->
  2092. <div class="tool">
  2093. <div class="whiteBIcon" @click="addToolFun(56)">
  2094. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2095. <div style="margin: 5px 0">投票</div>
  2096. </div>
  2097. </div>
  2098. <div class="tool">
  2099. <div class="whiteBIcon" @click="addToolFun(57)">
  2100. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2101. <div style="margin: 5px 0">CocoPi</div>
  2102. </div>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <!-- <span slot="footer" class="dialog-footer">
  2110. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2111. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2112. </span> -->
  2113. </el-dialog>
  2114. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="700px"
  2115. :before-close="handleClose" class="dialog_diy addToolsDia">
  2116. <div class="toolChoose">
  2117. <div class="tools">
  2118. <div class="leftTools" style="width: 100%">
  2119. <div>
  2120. <div class="basic_box">
  2121. <div>
  2122. <div class="add_chapters_box" v-if="sourcesData.length == 0" style="height: 185px"></div>
  2123. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2124. <div class="chapter_upload" v-for="(item, index) in sourcesData" :key="index"
  2125. @click="getChapterData2($event, index, item.type)">
  2126. <div class="chapter_upload_t" style="width: 100%"></div>
  2127. <div class="chapter_upload_o" style="
  2128. position: relative;
  2129. display: flex;
  2130. align-items: center;
  2131. ">
  2132. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2133. <div v-if="item.type == 2" class="chapter_upload_l_i1"></div>
  2134. <div v-if="item.type == 3 ||
  2135. item.type == 9 ||
  2136. item.type == 6 ||
  2137. item.type == 12 ||
  2138. item.type == 13 ||
  2139. item.type == 7
  2140. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2141. <div v-if="item.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2142. </div>
  2143. <div class="chapter_upload_ic" style="
  2144. cursor: pointer;
  2145. position: absolute;
  2146. width: 45px;
  2147. right: 0;
  2148. top: 0;
  2149. ">
  2150. <div class="chapter_upload_ic_l"></div>
  2151. <div class="chapter_upload_ic_r" style="position: absolute"
  2152. @click.stop="deleteChapterData2($event, index)">
  2153. <div></div>
  2154. </div>
  2155. </div>
  2156. <div class="chapter_upload_n">
  2157. <input v-if="item.type == 2 ||
  2158. item.type == 3 ||
  2159. item.type == 9 ||
  2160. item.type == 12 ||
  2161. item.type == 13 ||
  2162. item.type == 7
  2163. " :placeholder="item.name" @change="updataVideoT2($event, index)" style="
  2164. border: none;
  2165. outline: none;
  2166. width: 80%;
  2167. minwidth: 215px;
  2168. z-index: 99;
  2169. font-size: 14px;
  2170. white-space: nowrap;
  2171. overflow: hidden;
  2172. text-overflow: ellipsis;
  2173. " />
  2174. <input :placeholder="item.name" v-if="item.type == 6" style="
  2175. border: none;
  2176. outline: none;
  2177. width: 80%;
  2178. white-space: nowrap;
  2179. overflow: hidden;
  2180. text-overflow: ellipsis;
  2181. " readonly="true" @click="selectAttText2(index)" />
  2182. <input :placeholder="item.title ? item.title : '链接'" v-if="item.type == 8" style="
  2183. border: none;
  2184. outline: none;
  2185. width: 80%;
  2186. white-space: nowrap;
  2187. overflow: hidden;
  2188. text-overflow: ellipsis;
  2189. " readonly="true" @click="selectLine2(index)" />
  2190. <div class="chapter_upload_ud" style="z-index: 99">
  2191. <div class="chapter_upload_up" @click="upCd2($event, index)"></div>
  2192. <div class="chapter_upload_down" @click="downCd2($event, index)"></div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. </div>
  2197. </div>
  2198. </div>
  2199. <div class="add_info_box">
  2200. <button class="info_btn" @click="addImg($event)">
  2201. 添加文件
  2202. <input type="file" accept="*" style="display: none" v-if="inputShow"
  2203. @change="beforeUpload3($event, 13)" />
  2204. </button>
  2205. <!-- <button class="info_btn" @click="addImg($event)">
  2206. 添加视频
  2207. <input
  2208. type="file"
  2209. accept="video/mp4, video/quicktime, video/x-msvideo"
  2210. style="display: none"
  2211. v-if="inputShow"
  2212. @change="beforeUpload3($event, 2)"
  2213. />
  2214. </button>
  2215. <button class="info_btn" @click="addImg($event)">
  2216. 添加附件
  2217. <input
  2218. type="file"
  2219. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2220. style="display: none"
  2221. v-if="inputShow"
  2222. @change="beforeUpload3($event, 3)"
  2223. />
  2224. </button> -->
  2225. <button class="info_btn" @click="addAttText()">
  2226. 添加图文
  2227. </button>
  2228. <button class="info_btn" @click="openLine()">
  2229. 添加链接
  2230. </button>
  2231. <button class="info_btn" @click="pasteLine()">
  2232. 嵌入代码
  2233. </button>
  2234. <button class="info_btn" @click="openSource()">
  2235. 添加资源
  2236. </button>
  2237. </div>
  2238. <div v-if="proVisible" class="mask">
  2239. <div class="progressBox">
  2240. <!-- <div id="closePro" class="closeCss">
  2241. <img src="../../../assets/icon/close.png" alt />
  2242. </div> -->
  2243. <div class="lbox">
  2244. <img src="../../../assets/loading.gif" />上传中,请稍后
  2245. </div>
  2246. <div style="margin-bottom: 10px">
  2247. <span>{{ isFinishSize }}M</span> /
  2248. <span>{{ isAllSize }}M</span>
  2249. </div>
  2250. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress"
  2251. style="width: 80%"></el-progress>
  2252. </div>
  2253. </div>
  2254. </div>
  2255. </div>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. <span slot="footer" class="dialog-footer">
  2260. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2261. <el-button type="primary" @click="addSourceData">确定</el-button>
  2262. </span>
  2263. </el-dialog>
  2264. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2265. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 9 }">
  2266. <div slot="title" class="header-title">
  2267. <div style="color: #fff">查看文档</div>
  2268. <div @click="fullDialogVisible = false" style="
  2269. cursor: pointer;
  2270. position: absolute;
  2271. top: 20px;
  2272. right: 20px;
  2273. color: #fff;
  2274. ">
  2275. 退出全屏
  2276. </div>
  2277. </div>
  2278. <div style="height: 100%">
  2279. <iframe v-if="fulltype == 3" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2280. <pdf v-else-if="fulltype == 9" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto">
  2281. </pdf>
  2282. <div class="wheel" v-if="fulltype == 6" style="
  2283. box-shadow: 0 0 6px 1px #f2f2f2;
  2284. width: 100%;
  2285. background: #f1f1f1;
  2286. ">
  2287. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  2288. 查看文档
  2289. </div>
  2290. <el-form class="textBox" style="height: 90%">
  2291. <el-form-item class="textTitle">
  2292. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2293. {{ fullUrl.name }}
  2294. </div>
  2295. </el-form-item>
  2296. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2297. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2298. </el-form>
  2299. </div>
  2300. </div>
  2301. <!-- <div slot="footer">
  2302. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2303. </div> -->
  2304. </el-dialog>
  2305. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2306. :before-close="handleClose" class="dialog_diy">
  2307. <div>
  2308. <div style="
  2309. display: flex;
  2310. flex-wrap: nowrap;
  2311. flex-direction: column;
  2312. position: relative;
  2313. ">
  2314. <div class="queTop" style="padding: 20px 0 20px 0">
  2315. <div class="question">
  2316. <img src="../../../assets/icon/question.png" alt />
  2317. </div>
  2318. <div class="queTitle">
  2319. <div style="width: 90px; min-width: 90px">提问:</div>
  2320. <div>{{ answerQ }}</div>
  2321. </div>
  2322. </div>
  2323. <div class="ediBottom">
  2324. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2325. v-model="questionAnswer"></textarea>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. <div slot="footer">
  2330. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2331. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2332. </div>
  2333. </el-dialog>
  2334. <el-dialog title="文件预览" :visible.sync="dialogVisibleFile" width="50%" :before-close="handleClose" class="dialog_diy"
  2335. :class="{ fullStyle: full }">
  2336. <div slot="title" class="header-title">
  2337. <div style="color: #fff">文件预览</div>
  2338. <div style="position: absolute; top: 19px; right: 50px">
  2339. <img src="../../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="full = !full" />
  2340. </div>
  2341. </div>
  2342. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2343. :class="{ fullStyle: full }"></pdf>
  2344. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2345. </el-dialog>
  2346. <el-dialog title="添加文档" :visible.sync="dialogVisibleText" :append-to-body="true" width="800px"
  2347. :before-close="handleClose" class="dialog_diy">
  2348. <el-form>
  2349. <div>文档内容</div>
  2350. <editor-bar v-model="tableJson.text" @change="change" v-if="dialogVisibleText"></editor-bar>
  2351. </el-form>
  2352. <span slot="footer" class="dialog-footer">
  2353. <el-button @click="dialogVisibleText = false">取 消</el-button>
  2354. <el-button type="primary" @click="addText">确定</el-button>
  2355. </span>
  2356. </el-dialog>
  2357. <el-dialog title="上传文档" :visible.sync="dialogVisibleText3" :append-to-body="true" width="800px"
  2358. :before-close="handleClose" class="dialog_diy">
  2359. <el-form>
  2360. <div>文档内容</div>
  2361. <EditorBar2 v-model="tableJson.text" @change="change" v-if="dialogVisibleText3"></EditorBar2>
  2362. </el-form>
  2363. <span slot="footer" class="dialog-footer">
  2364. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  2365. <el-button type="primary" @click="addTextJson">确定</el-button>
  2366. </span>
  2367. </el-dialog>
  2368. <el-dialog title="查看文档" :visible.sync="dialogVisibleText2" :append-to-body="true" width="800px"
  2369. :before-close="handleClose" class="dialog_diy">
  2370. <el-form>
  2371. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  2372. </el-form>
  2373. <span slot="footer" class="dialog-footer">
  2374. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  2375. </span>
  2376. </el-dialog>
  2377. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  2378. class="dialog_diy1">
  2379. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2380. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2381. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2382. </div>
  2383. <div slot="footer">
  2384. <el-button style="background: #409efe; color: #fff" @click="(videoVisible = false), (videoDetail = {})">
  2385. 关 闭</el-button>
  2386. </div>
  2387. </el-dialog>
  2388. <el-dialog title="创建投票" :visible.sync="dialogVisibleVote" :append-to-body="true" width="800px"
  2389. :before-close="handleClose" class="dialog_diy">
  2390. <div>
  2391. <div class="a_add_title" style="
  2392. display: flex;
  2393. flex-direction: row;
  2394. align-items: center;
  2395. justify-content: center;
  2396. ">
  2397. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2398. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2399. </div>
  2400. <div class="a_addBox">
  2401. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  2402. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2403. <div class="a_add_head">
  2404. <div>
  2405. {{ index1 + 1 + "、" }}
  2406. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入内容...">
  2407. </el-input>
  2408. </div>
  2409. <div class="a_add_head_div">
  2410. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2411. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2412. </el-button>
  2413. </div>
  2414. </div>
  2415. <div class="a_add_body">
  2416. <div class="a_add_input">
  2417. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2418. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入投票选项..."
  2419. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2420. </div>
  2421. <div class="a_add_body_div">
  2422. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2423. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2424. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2425. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2426. </el-button>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <span slot="footer" class="dialog-footer">
  2433. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  2434. <el-button type="primary" @click="addAsk">确 定</el-button>
  2435. </span>
  2436. </el-dialog>
  2437. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote2" :append-to-body="true" width="1000px"
  2438. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2439. <div>
  2440. <div class="a_add_title" style="
  2441. display: flex;
  2442. flex-direction: row;
  2443. align-items: center;
  2444. justify-content: center;
  2445. ">
  2446. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2447. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2448. </div>
  2449. <div class="a_addBox">
  2450. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2451. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2452. <div class="a_add_head">
  2453. <div style="display: flex">
  2454. {{ index1 + 1 + "、" }}
  2455. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2456. </div>
  2457. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2458. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2459. </div>
  2460. <div class="a_add_body">
  2461. <div class="a_add_input">
  2462. <el-radio-group v-model="radio[index1]">
  2463. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2464. .checkList" :key="checkIndex" :label="checkIndex" class="redioStyle"><span
  2465. v-html="item2"></span></el-radio>
  2466. </el-radio-group>
  2467. </div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. </div>
  2472. <span slot="footer" class="dialog-footer">
  2473. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  2474. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  2475. </span>
  2476. </el-dialog>
  2477. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote3" :append-to-body="true" width="1000px"
  2478. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2479. <div>
  2480. <div class="a_add_title" style="
  2481. display: flex;
  2482. flex-direction: row;
  2483. align-items: center;
  2484. justify-content: center;
  2485. ">
  2486. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2487. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2488. </div>
  2489. <div class="a_addBox">
  2490. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2491. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2492. <div class="a_add_head">
  2493. <div style="display: flex">
  2494. {{ index1 + 1 + "、" }}
  2495. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2496. </div>
  2497. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2498. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2499. </div>
  2500. <div class="a_add_body">
  2501. <div class="a_add_input">
  2502. <el-radio-group v-model="radio[index1]">
  2503. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2504. .checkList" :key="checkIndex" :label="checkIndex" disabled class="redioStyle"><span
  2505. v-html="item2"></span></el-radio>
  2506. </el-radio-group>
  2507. </div>
  2508. </div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. <span slot="footer" class="dialog-footer">
  2513. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  2514. </span>
  2515. </el-dialog>
  2516. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource2" :append-to-body="true" width="100%"
  2517. :before-close="handleClose" class="dialog_diy source_diy">
  2518. <div>
  2519. <sourceDialog :sourceData.sync="sourceData"></sourceDialog>
  2520. </div>
  2521. <span slot="footer" class="dialog-footer">
  2522. <el-button @click="dialogVisibleSource2 = false">取 消</el-button>
  2523. <el-button type="primary" @click="addSource">确定</el-button>
  2524. </span>
  2525. </el-dialog>
  2526. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2527. class="dialog_diy" center>
  2528. <div style="
  2529. text-align: center;
  2530. display: flex;
  2531. align-items: center;
  2532. justify-content: center;
  2533. ">
  2534. <span class="tian1">名称</span>
  2535. <el-input style="width: 240px;margin-left: 10px;" v-model="updateWorkJson.name" placeholder="请输入名称"></el-input>
  2536. </div>
  2537. <span slot="footer" class="dialog-footer">
  2538. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2539. <el-button type="primary" @click="updateName">确 定</el-button>
  2540. </span>
  2541. </el-dialog>
  2542. </div>
  2543. </template>
  2544. <script>
  2545. import "../../../common/aws-sdk-2.235.1.min.js";
  2546. import $ from "jquery";
  2547. import EditorBar from "../../../components/tools/wangEnduit";
  2548. import EditorBar2 from "../../../components/tools/wangEnduit";
  2549. import Table from "../../../components/tools/table";
  2550. import voteStatic from "../components/voteStatic.vue";
  2551. import TextT from "../../../components/tools/text";
  2552. import Mind from "../../tools/jsmind2";
  2553. import Sunburst from "../../tools/sunburst";
  2554. import SeeBoard from "../../tools/seeBoard";
  2555. import proMan from "../components/proMan.vue";
  2556. import ganChart from "../components/ganChart.vue";
  2557. import graph from "../components/graph.vue";
  2558. import pdf from "../components/vpdf";
  2559. import * as imageConversion from "image-conversion";
  2560. import courseDetailVue from "../courseDetail.vue";
  2561. import sourceDialog from "../teacherSource/dialog.vue";
  2562. export default {
  2563. components: {
  2564. EditorBar,
  2565. EditorBar2,
  2566. sourceDialog,
  2567. Mind,
  2568. Sunburst,
  2569. SeeBoard,
  2570. Table,
  2571. proMan,
  2572. ganChart,
  2573. graph,
  2574. pdf,
  2575. TextT,
  2576. voteStatic,
  2577. },
  2578. data() {
  2579. return {
  2580. checkAll: false,
  2581. chooseType: 1,
  2582. checkedCities: [],
  2583. isIndeterminate: true,
  2584. isSysPic: false,
  2585. steps: 1,
  2586. nbOrder: 0,
  2587. courseId: "",
  2588. chapToolsType: 0,
  2589. chapTools: [
  2590. {
  2591. tools: [],
  2592. toolDetail: "",
  2593. },
  2594. ],
  2595. line: "",
  2596. lineTitle: "",
  2597. sysPic: [],
  2598. sentenceList: [
  2599. {
  2600. sentenceTitle: "",
  2601. addSentence: [],
  2602. rightAnswer: [],
  2603. },
  2604. ],
  2605. isPushTitleList: [],
  2606. lineCount: 0,
  2607. lineType: 0,
  2608. chapCount: 0,
  2609. courseName: "",
  2610. isTeacherSee: false,
  2611. courseText: "",
  2612. formLabelWidth: "100px",
  2613. choosePicVisible: false,
  2614. sysPicVisible: false,
  2615. uploadLoading1: false,
  2616. noneBtnImg: false,
  2617. updateBoolean2: false,
  2618. unitIndex: 0,
  2619. taskCount: 0,
  2620. dialogVisible: false,
  2621. dialogVisible1: false,
  2622. dialogVisible2: false,
  2623. dialogVisible3: false,
  2624. dialogVisible4: false,
  2625. dialogVisible5: false,
  2626. dialogVisible6: false,
  2627. dialogVisible7: false,
  2628. dialogVisible8: false,
  2629. dialogVisible9: false,
  2630. dialogVisibleClass: false,
  2631. dialogVisibleMember: false,
  2632. dialogVisibleTcMember: false,
  2633. dialogVisibleMp3: false,
  2634. dialogVisibleSelect: false,
  2635. dialogVisibleSentence: false,
  2636. dialogVisibleRate: false,
  2637. dialogVisibleChoice: false,
  2638. dialogVisibleTool: false,
  2639. dialogVisibleSource: false,
  2640. dialogVisibleSource2: false,
  2641. answerDialogVisible: false,
  2642. dialogVisibleFile: false,
  2643. dialogVisibleText: false,
  2644. dialogVisibleText2: false,
  2645. dialogVisibleText3: false,
  2646. dialogVisibleVote: false,
  2647. dialogVisibleVote2: false,
  2648. dialogVisibleVote3: false,
  2649. dialogVisibleSname: false,
  2650. videoVisible: false,
  2651. videoDetail: {},
  2652. showPDF: "",
  2653. pptImgUrl: "",
  2654. full: false,
  2655. isClickColor: 0,
  2656. publicTool: 0,
  2657. searchPeople: "",
  2658. searchTN: "",
  2659. tcMember: "",
  2660. userid: this.$route.query.userid,
  2661. oid: this.$route.query.oid,
  2662. org: this.$route.query.org,
  2663. role: this.$route.query.role,
  2664. type: this.$route.query.type,
  2665. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2666. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  2667. oidArray: [],
  2668. dialogVisibleTable: false,
  2669. dialogVisibleTable1: false,
  2670. dialogVisibleTable2: false,
  2671. tableJson: {
  2672. text: "",
  2673. },
  2674. cover: [], //项目封面
  2675. myWord: [],
  2676. evaJuri: [],
  2677. evalua: "",
  2678. targetArray: [],
  2679. eTitle: "",
  2680. eJson: {},
  2681. fid: "", //一级
  2682. sid: "", //二级
  2683. tid: "", //二级
  2684. typeMode: 1,
  2685. eJSONNum: 0,
  2686. data: {
  2687. meta: {
  2688. name: "example",
  2689. author: "dd@163.com",
  2690. version: "0.2",
  2691. },
  2692. format: "node_array",
  2693. data: [
  2694. {
  2695. id: "root",
  2696. isroot: true,
  2697. topic: "",
  2698. },
  2699. ],
  2700. },
  2701. askJson: {
  2702. askCount: 1,
  2703. askTitle: "",
  2704. askJson: [
  2705. {
  2706. askstitle: "",
  2707. askItem: 1,
  2708. checkList: [],
  2709. },
  2710. ],
  2711. },
  2712. testJson: {},
  2713. selectJson: {},
  2714. rateJson: [],
  2715. unitJson2: [],
  2716. unitJson: [
  2717. {
  2718. dyName: "", //单元标题
  2719. chapterInfo: [
  2720. {
  2721. isread: false,
  2722. chapterid: this.guid(),
  2723. title: "",
  2724. courseName: "",
  2725. taskJson: [
  2726. {
  2727. task: "",
  2728. people: "",
  2729. time: "",
  2730. taskDetail: "",
  2731. chapterData: [],
  2732. toolText: "",
  2733. toolChoose: [
  2734. {
  2735. tool: [],
  2736. toolDetail: "",
  2737. toolType: 0,
  2738. askCount: 1,
  2739. askTitle: "",
  2740. askJson: [
  2741. {
  2742. askstitle: "",
  2743. askItem: 1,
  2744. checkList: [],
  2745. },
  2746. ],
  2747. },
  2748. ],
  2749. toolArray: [],
  2750. isShowTools: false,
  2751. askCount: 1,
  2752. isFold: 0,
  2753. askTitle: "",
  2754. askJson: [
  2755. {
  2756. askstitle: "",
  2757. askItem: 1,
  2758. checkList: [],
  2759. },
  2760. ],
  2761. checkJson: [
  2762. {
  2763. checkCount: [],
  2764. checkPerent: [],
  2765. },
  2766. ],
  2767. homeworkList: [],
  2768. },
  2769. ],
  2770. itemCount: 1,
  2771. fileList1: [],
  2772. video: [],
  2773. testData: [],
  2774. pData: [],
  2775. templateArray: [],
  2776. },
  2777. ],
  2778. },
  2779. ],
  2780. studentJuri: [],
  2781. teacherJuri: [],
  2782. teacherJuri2: [],
  2783. checkboxList: [],
  2784. checkboxList2: [],
  2785. checkboxList3: [],
  2786. checkboxListPeople: [],
  2787. number: "",
  2788. tTitle: "",
  2789. tdetail: "",
  2790. templateC: {},
  2791. AttText: {},
  2792. AttTextType: 0,
  2793. AttTextIndex: 0,
  2794. cTemplate: "",
  2795. CourseType: [],
  2796. CourseTypeJson: {},
  2797. courseTypeId: [],
  2798. courseTypeSon: [],
  2799. clearArray: [],
  2800. loading: false,
  2801. toolType: 0,
  2802. inputShow: true,
  2803. toolIndex: 0,
  2804. cidType: 0,
  2805. cidttt: 1,
  2806. answerQ: "",
  2807. questionAnswer: "",
  2808. grade: [],
  2809. courseUserid: "",
  2810. timer: null,
  2811. checkId: "",
  2812. isDelete: 1,
  2813. addindex: 0,
  2814. selectSteps: 1,
  2815. groupJson: {},
  2816. dialogVisibleGroup: false,
  2817. fpath: "",
  2818. ManAarray: [],
  2819. ManAarray2: [],
  2820. proVisible: false,
  2821. progress: 0,
  2822. isFinishSize: 0,
  2823. isAllsize: 0,
  2824. playerOptions: {
  2825. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2826. autoplay: false, //如果true,浏览器准备好时开始回放。
  2827. muted: false, // 默认情况下将会消除任何音频。
  2828. loop: false, // 导致视频一结束就重新开始。
  2829. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2830. language: "zh-CN",
  2831. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2832. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2833. sources: [
  2834. {
  2835. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2836. src: "", //url地址require("../../assets/media/aaa.mp4")
  2837. },
  2838. ],
  2839. // poster: require("../../assets/tu31.png"), //你的封面地址
  2840. // poster: dataRes.imgUrl, //你的封面地址
  2841. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2842. controlBar: {
  2843. timeDivider: true, //当前时间和持续时间的分隔符
  2844. durationDisplay: true, //显示持续时间
  2845. remainingTimeDisplay: false, //是否显示剩余时间功能
  2846. fullscreenToggle: true, //全屏按钮
  2847. },
  2848. },
  2849. sourcesData: [],
  2850. fullDialogVisible: false,
  2851. fulltype: "",
  2852. fullUrl: "",
  2853. editSourceType: 1,
  2854. radio: [],
  2855. checkJson: [],
  2856. graphJson: {},
  2857. rightBoxHeight: 0,
  2858. checkBoolean: false,
  2859. pageSize: 20,
  2860. total: 0,
  2861. page: 0,
  2862. sourceData: {},
  2863. updateWorkJson: {},
  2864. downLoading: ''
  2865. };
  2866. },
  2867. computed: {
  2868. offsetLetfPx: function () {
  2869. //addnum可以直接在模板语法里面用,相当于data内的值
  2870. return (
  2871. $(".cru_select")[this.unitIndex] &&
  2872. $(".cru_select")[this.unitIndex].offsetLeft
  2873. );
  2874. },
  2875. getVideo() {
  2876. //此处不需要携带参数
  2877. return function (url) {
  2878. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2879. d.sources[0].src = url;
  2880. return d;
  2881. };
  2882. },
  2883. getMan() {
  2884. return function (people) {
  2885. let _people = "";
  2886. if (this.ManAarray.length) {
  2887. for (var i = 0; i < this.ManAarray.length; i++) {
  2888. if (this.ManAarray[i].userid == people) {
  2889. _people = this.ManAarray[i].name;
  2890. break;
  2891. }
  2892. }
  2893. }
  2894. return _people ? _people : "";
  2895. };
  2896. },
  2897. getMan2() {
  2898. return function (people) {
  2899. let _people = people;
  2900. let _people2 = "";
  2901. if (this.ManAarray.length) {
  2902. for (var i = 0; i < this.ManAarray.length; i++) {
  2903. if (this.ManAarray[i].userid == people) {
  2904. _people2 = this.ManAarray[i].name;
  2905. break;
  2906. }
  2907. }
  2908. }
  2909. if (people == this.courseUserid) {
  2910. return "";
  2911. }
  2912. return this.ManAarray.length ? _people2 : "";
  2913. };
  2914. },
  2915. getMen() {
  2916. return function (people) {
  2917. let _people = people;
  2918. let kp = [];
  2919. if (this.ManAarray.length) {
  2920. for (var k = 0; k < _people.length; k++) {
  2921. let person = _people[k];
  2922. for (var i = 0; i < this.ManAarray.length; i++) {
  2923. if (this.ManAarray[i].userid == person) {
  2924. // _people = this.ManAarray[i].name;
  2925. kp.push(this.ManAarray[i].name);
  2926. break;
  2927. }
  2928. }
  2929. }
  2930. }
  2931. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  2932. };
  2933. },
  2934. setTime() {
  2935. return function (timeA) {
  2936. var time = new Date(timeA);
  2937. time.setTime(time.getTime());
  2938. var s2 =
  2939. time.getFullYear() +
  2940. "." +
  2941. (time.getMonth() + 1 < 10
  2942. ? "0" + (time.getMonth() + 1)
  2943. : time.getMonth() + 1) +
  2944. "." +
  2945. (time.getDate() < 10 ? "0" + time.getDate() : time.getDate());
  2946. return s2;
  2947. };
  2948. }
  2949. },
  2950. watch: {
  2951. steps(newValue, oldValue) {
  2952. if ( newValue == 4 ) {
  2953. let chapters = this.unitJson;
  2954. let gjson = {
  2955. rootId: "pid",
  2956. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  2957. lines: [],
  2958. };
  2959. gjson.nodes[0].text = this.courseName;
  2960. for (var i = 0; i < chapters.length; i++) {
  2961. let _chapter = chapters[i];
  2962. gjson.nodes.push({
  2963. id: "chap" + i,
  2964. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  2965. borderWidth: -1,
  2966. color: "#0672e1",
  2967. });
  2968. gjson.lines.push({ from: "pid", to: "chap" + i });
  2969. let tasks = _chapter.chapterInfo[0].taskJson;
  2970. for (var j = 0; j < tasks.length; j++) {
  2971. let _task = tasks[j];
  2972. gjson.nodes.push({
  2973. id: "task" + i + "-" + j,
  2974. text: "任务" + (j + 1) + "-" + _task.task,
  2975. borderWidth: -1,
  2976. color: "#3c59da",
  2977. });
  2978. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  2979. if (_task.people) {
  2980. let _people = "负责人-" + this.getGMan(_task.people);
  2981. gjson.nodes.push({
  2982. id: "people" + i + "-" + j,
  2983. text: _people,
  2984. borderWidth: -1,
  2985. color: "#004d9b",
  2986. });
  2987. gjson.lines.push({
  2988. from: "task" + i + "-" + j,
  2989. to: "people" + i + "-" + j,
  2990. });
  2991. if (_task.tcMember && _task.tcMember.length) {
  2992. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  2993. let _tc = this.getGMan(_task.tcMember[tc]);
  2994. if (_tc) {
  2995. gjson.nodes.push({
  2996. id: "tc" + i + "-" + j + "-" + tc,
  2997. text: _tc,
  2998. borderWidth: -1,
  2999. color: "#53c5fb",
  3000. });
  3001. gjson.lines.push({
  3002. from: "people" + i + "-" + j,
  3003. to: "tc" + i + "-" + j + "-" + tc,
  3004. });
  3005. }
  3006. }
  3007. }
  3008. }
  3009. }
  3010. }
  3011. this.graphJson = gjson;
  3012. } else if (newValue == 5) {
  3013. this.goTo(
  3014. this.fpath +
  3015. "?userid=" +
  3016. this.userid +
  3017. "&oid=" +
  3018. this.oid +
  3019. "&org=" +
  3020. this.org + '&role=' + this.role
  3021. );
  3022. }
  3023. },
  3024. unitIndex(newValue, oldValue) {
  3025. if (this.isDelete == 2) {
  3026. this.isDelete = 1;
  3027. return;
  3028. }
  3029. if (this.cid != "") {
  3030. let _unitIndex = oldValue;
  3031. if (
  3032. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3033. JSON.stringify(this.unitJson[_unitIndex])
  3034. ) {
  3035. this.$refs.rightboxR.scrollTop = 0;
  3036. return;
  3037. }
  3038. let cPan = 1;
  3039. for (
  3040. var j = 0;
  3041. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3042. j++
  3043. ) {
  3044. // if (
  3045. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  3046. // ) {
  3047. // this.$message.error("请填写任务名称");
  3048. // cPan = 2
  3049. // break;
  3050. // }
  3051. // if (
  3052. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  3053. // ) {
  3054. // this.$message.error("请填写负责人");
  3055. // cPan = 2
  3056. // break;
  3057. // }
  3058. // if (
  3059. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  3060. // ) {
  3061. // this.$message.error("请填写任务起止时间");
  3062. // cPan = 2
  3063. // break;
  3064. // }
  3065. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3066. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3067. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3068. (ele) => {
  3069. return ele.value != "";
  3070. }
  3071. );
  3072. }
  3073. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  3074. for (var _tool = 0; _tool < _task.length; _tool++) {
  3075. delete _task[_tool].proVisible
  3076. }
  3077. }
  3078. if (cPan == 2) {
  3079. this.unitIndex = oldValue;
  3080. this.isDelete = 2;
  3081. return;
  3082. }
  3083. for (var i = 0; i < this.unitJson.length; i++) {
  3084. if (this.addindex != i) {
  3085. delete this.unitJson[i].isUpdate;
  3086. }
  3087. }
  3088. this.$refs.rightboxR.scrollTop = 0;
  3089. this.addindex = -1;
  3090. let params = [
  3091. {
  3092. cid: this.cid,
  3093. chapters: JSON.stringify(this.unitJson),
  3094. uid: this.userid,
  3095. unitIndex: _unitIndex,
  3096. },
  3097. ];
  3098. this.ajax
  3099. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  3100. .then((res) => {
  3101. // this.$message({
  3102. // message: "修改成功",
  3103. // type: "success",
  3104. // });
  3105. // this.courseId = this.cid;
  3106. })
  3107. .catch((err) => {
  3108. this.$message.error("网络不佳");
  3109. console.error(err);
  3110. });
  3111. }
  3112. },
  3113. },
  3114. methods: {
  3115. handleCurrentChange(val) {
  3116. // console.log(`当前页: ${val}`);
  3117. this.page = val;
  3118. this.getTeacher();
  3119. },
  3120. handleCheckAllChange(val) {
  3121. this.checkedCities = val ? cityOptions : [];
  3122. this.isIndeterminate = false;
  3123. },
  3124. handleCheckedCitiesChange(value) {
  3125. let checkedCount = value.length;
  3126. this.checkAll = checkedCount === this.cities.length;
  3127. this.isIndeterminate =
  3128. checkedCount > 0 && checkedCount < this.cities.length;
  3129. },
  3130. addHw(e) {
  3131. var el = e.currentTarget;
  3132. el.getElementsByTagName("input")[0].click();
  3133. },
  3134. change(val) {
  3135. console.log(val);
  3136. this.$forceUpdate();
  3137. },
  3138. change2(val) {
  3139. console.log(val);
  3140. this.$forceUpdate();
  3141. },
  3142. handleClose(done) {
  3143. this.videoDetail = {};
  3144. done();
  3145. },
  3146. imgChange1(file, fileList, type, itemTaskIndex) {
  3147. if (type == 1) {
  3148. var _tmp = this.cover;
  3149. } else if (
  3150. type == 2 ||
  3151. type == 3 ||
  3152. type == 6 ||
  3153. type == 7 ||
  3154. type == 8
  3155. ) {
  3156. var _tmp =
  3157. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3158. .chapterData;
  3159. } else if (type == 4) {
  3160. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3161. } else {
  3162. var _tmp =
  3163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3164. .homeworkList;
  3165. }
  3166. this.noneBtnImg = _tmp.length >= 1;
  3167. },
  3168. goTo(path) {
  3169. this.$router.push(path);
  3170. },
  3171. guid() {
  3172. var _num,
  3173. i,
  3174. _guid = "";
  3175. for (i = 0; i < 32; i++) {
  3176. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3177. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3178. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3179. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3180. _guid += "-";
  3181. }
  3182. }
  3183. return _guid;
  3184. },
  3185. lastSteps() {
  3186. if (this.steps == 5) {
  3187. this.goTo(
  3188. this.fpath +
  3189. "?userid=" +
  3190. this.userid +
  3191. "&oid=" +
  3192. this.oid +
  3193. "&org=" +
  3194. this.org + '&role=' + this.role
  3195. );
  3196. } else {
  3197. if (this.cidttt == 0) {
  3198. this.steps--;
  3199. if (this.steps == 1) {
  3200. setTimeout(() => {
  3201. this.checkEva(this.checkId);
  3202. }, 0);
  3203. }
  3204. } else {
  3205. if (this.steps == 3) {
  3206. this.steps = 1;
  3207. setTimeout(() => {
  3208. this.checkEva(this.checkId);
  3209. }, 0);
  3210. }
  3211. if (this.steps == 4) {
  3212. this.steps--;
  3213. setTimeout(() => {
  3214. this.checkEva(this.checkId);
  3215. }, 0);
  3216. }
  3217. }
  3218. }
  3219. },
  3220. navSteps(s) {
  3221. let typeT = 1;
  3222. if (this.courseTypeId.length) {
  3223. let array = Object.keys(this.CourseTypeJson);
  3224. for (var t = 0; t < array.length; t++) {
  3225. var tp = array[t];
  3226. var tAarray = [];
  3227. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3228. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3229. }
  3230. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3231. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3232. typeT++;
  3233. }
  3234. }
  3235. }
  3236. }
  3237. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3238. typeT++;
  3239. }
  3240. if (this.CourseType.length == 0) {
  3241. typeT = 3
  3242. }
  3243. if (this.courseName == "" || typeT != 3) {
  3244. if (typeT != 3) {
  3245. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  3246. } else {
  3247. this.$message.error("请将信息填写完整");
  3248. }
  3249. return;
  3250. }
  3251. if (this.cidttt == 0) {
  3252. if (this.steps == 1) {
  3253. if (this.cid == "" || this.cid == undefined) {
  3254. this.addWork();
  3255. } else {
  3256. if (this.userid != this.courseUserid) {
  3257. if (
  3258. this.checkboxListPeople.join(",") !=
  3259. this.checkboxList3.join(",")
  3260. ) {
  3261. this.updateWork();
  3262. } else {
  3263. this.updateWork2();
  3264. }
  3265. } else {
  3266. this.updateWork();
  3267. }
  3268. }
  3269. this.setMan();
  3270. }
  3271. if (s == 1) {
  3272. this.steps = 1;
  3273. setTimeout(() => {
  3274. this.checkEva(this.checkId);
  3275. }, 0);
  3276. }
  3277. if (s == 2) {
  3278. this.steps = 2;
  3279. }
  3280. if (s == 3) {
  3281. this.cTemplate = this.templateC.content;
  3282. this.dialogVisible2 = false;
  3283. this.steps = 3;
  3284. setTimeout(() => {
  3285. this.checkEva(this.checkId);
  3286. }, 1000);
  3287. }
  3288. if (s == 4 && this.cidType == 0) {
  3289. this.$message.error("请将信息填写完整");
  3290. return;
  3291. } else if (s == 4) {
  3292. let cPan = 1;
  3293. for (var i = 0; i < this.unitJson.length; i++) {
  3294. for (
  3295. var j = 0;
  3296. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3297. j++
  3298. ) {
  3299. // if (
  3300. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3301. // ) {
  3302. // this.$message.error("请填写任务名称");
  3303. // cPan = 2
  3304. // break;
  3305. // }
  3306. // if (
  3307. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3308. // ) {
  3309. // this.$message.error("请填写负责人");
  3310. // cPan = 2
  3311. // break;
  3312. // }
  3313. // if (
  3314. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3315. // ) {
  3316. // this.$message.error("请填写任务起止时间");
  3317. // cPan = 2
  3318. // break;
  3319. // }
  3320. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3321. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3322. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3323. (ele) => {
  3324. return ele.value != "";
  3325. }
  3326. );
  3327. }
  3328. }
  3329. }
  3330. if (cPan == 2) {
  3331. return;
  3332. }
  3333. if (this.userid != this.courseUserid) {
  3334. if (
  3335. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3336. ) {
  3337. this.updateWork();
  3338. } else {
  3339. this.updateWork2();
  3340. }
  3341. } else {
  3342. this.updateWork();
  3343. }
  3344. this.steps = 4;
  3345. }
  3346. } else {
  3347. if (this.steps == 1) {
  3348. if (this.cid == "" || this.cid == undefined) {
  3349. this.addWork();
  3350. } else {
  3351. if (this.userid != this.courseUserid) {
  3352. if (
  3353. this.checkboxListPeople.join(",") !=
  3354. this.checkboxList3.join(",")
  3355. ) {
  3356. this.updateWork();
  3357. } else {
  3358. this.updateWork2();
  3359. }
  3360. } else {
  3361. this.updateWork();
  3362. }
  3363. }
  3364. this.setMan();
  3365. }
  3366. if (s == 1) {
  3367. this.steps = 1;
  3368. setTimeout(() => {
  3369. this.checkEva(this.checkId);
  3370. }, 0);
  3371. }
  3372. if (s == 3) {
  3373. this.cTemplate = this.templateC.content;
  3374. this.dialogVisible2 = false;
  3375. this.steps = 3;
  3376. setTimeout(() => {
  3377. this.checkEva(this.checkId);
  3378. }, 1000);
  3379. }
  3380. if (s == 4 && this.cidType == 0) {
  3381. this.$message.error("请将信息填写完整");
  3382. return;
  3383. } else if (s == 4) {
  3384. let cPan = 1;
  3385. for (var i = 0; i < this.unitJson.length; i++) {
  3386. for (
  3387. var j = 0;
  3388. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3389. j++
  3390. ) {
  3391. // if (
  3392. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3393. // ) {
  3394. // this.$message.error("请填写任务名称");
  3395. // cPan = 2
  3396. // break;
  3397. // }
  3398. // if (
  3399. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3400. // ) {
  3401. // this.$message.error("请填写负责人");
  3402. // cPan = 2
  3403. // break;
  3404. // }
  3405. // if (
  3406. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3407. // ) {
  3408. // this.$message.error("请填写任务起止时间");
  3409. // cPan = 2
  3410. // break;
  3411. // }
  3412. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3413. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3414. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3415. (ele) => {
  3416. return ele.value != "";
  3417. }
  3418. );
  3419. }
  3420. }
  3421. }
  3422. if (cPan == 2) {
  3423. return;
  3424. }
  3425. if (this.userid != this.courseUserid) {
  3426. if (
  3427. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3428. ) {
  3429. this.updateWork();
  3430. } else {
  3431. this.updateWork2();
  3432. }
  3433. } else {
  3434. this.updateWork();
  3435. }
  3436. this.steps = 4;
  3437. }
  3438. }
  3439. this.$refs.stepBox.scrollTop = 0;
  3440. this.setVHeight();
  3441. },
  3442. nextSteps() {
  3443. let typeT = 1;
  3444. if (this.courseTypeId.length) {
  3445. let array = Object.keys(this.CourseTypeJson);
  3446. for (var t = 0; t < array.length; t++) {
  3447. var tp = array[t];
  3448. var tAarray = [];
  3449. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3450. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3451. }
  3452. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3453. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3454. typeT++;
  3455. }
  3456. }
  3457. }
  3458. }
  3459. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3460. typeT++;
  3461. }
  3462. if (this.CourseType.length == 0) {
  3463. typeT = 3
  3464. }
  3465. if (this.cidttt == 1) {
  3466. if (this.steps == 1) {
  3467. if (this.courseName != "" && typeT == 3) {
  3468. this.steps = 3;
  3469. setTimeout(() => {
  3470. this.checkEva(this.checkId);
  3471. }, 1000);
  3472. if (this.cid == "" || this.cid == undefined) {
  3473. this.addWork();
  3474. } else {
  3475. if (this.userid != this.courseUserid) {
  3476. if (
  3477. this.checkboxListPeople.join(",") !=
  3478. this.checkboxList3.join(",")
  3479. ) {
  3480. this.updateWork();
  3481. } else {
  3482. this.updateWork2();
  3483. }
  3484. } else {
  3485. this.updateWork();
  3486. }
  3487. }
  3488. } else {
  3489. if (typeT != 3) {
  3490. this.$message.error(
  3491. "分类为必选项目,请将信息补充完整后进行下一步"
  3492. );
  3493. } else {
  3494. this.$message.error("请将信息填写完整");
  3495. }
  3496. return;
  3497. }
  3498. this.setMan();
  3499. } else if (this.steps == 3) {
  3500. if (this.cid == "" || this.cid == undefined) {
  3501. if (this.courseName == "" || typeT != 3) {
  3502. if (typeT != 3) {
  3503. this.$message.error(
  3504. "分类为必选项目,请将信息补充完整后进行下一步"
  3505. );
  3506. } else {
  3507. this.$message.error("请将信息填写完整");
  3508. }
  3509. return;
  3510. } else {
  3511. this.addWork();
  3512. if (this.type != 2) {
  3513. this.steps = 5;
  3514. } else {
  3515. this.steps++;
  3516. }
  3517. }
  3518. } else {
  3519. if (this.courseName == "" || typeT != 3) {
  3520. if (typeT != 3) {
  3521. this.$message.error(
  3522. "分类为必选项目,请将信息补充完整后进行下一步"
  3523. );
  3524. } else {
  3525. this.$message.error("请将信息填写完整");
  3526. }
  3527. return;
  3528. } else {
  3529. if (this.type != 2) {
  3530. this.steps = 5;
  3531. } else {
  3532. this.steps++;
  3533. }
  3534. if (this.userid != this.courseUserid) {
  3535. if (
  3536. this.checkboxListPeople.join(",") !=
  3537. this.checkboxList3.join(",")
  3538. ) {
  3539. this.updateWork();
  3540. } else {
  3541. this.updateWork2();
  3542. }
  3543. } else {
  3544. this.updateWork();
  3545. }
  3546. }
  3547. }
  3548. } else if (this.steps == 4) {
  3549. if (this.userid != this.courseUserid) {
  3550. this.updateWork2();
  3551. // this.updateWork();
  3552. } else {
  3553. this.updateWork();
  3554. }
  3555. this.steps++;
  3556. }
  3557. } else {
  3558. if (this.steps == 1) {
  3559. if (this.courseName != "" && typeT == 3) {
  3560. if (this.cid == "" || this.cid == undefined) {
  3561. this.addWork();
  3562. } else {
  3563. if (this.userid != this.courseUserid) {
  3564. if (
  3565. this.checkboxListPeople.join(",") !=
  3566. this.checkboxList3.join(",")
  3567. ) {
  3568. this.updateWork();
  3569. } else {
  3570. this.updateWork2();
  3571. }
  3572. } else {
  3573. this.updateWork();
  3574. }
  3575. }
  3576. this.steps++;
  3577. } else {
  3578. if (typeT != 3) {
  3579. this.$message.error(
  3580. "分类为必选项目,请将信息补充完整后进行下一步"
  3581. );
  3582. } else {
  3583. this.$message.error("请将信息填写完整");
  3584. }
  3585. return;
  3586. }
  3587. this.setMan();
  3588. } else if (this.steps == 2) {
  3589. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3590. this.cTemplate = this.templateC.content;
  3591. }
  3592. this.dialogVisible2 = false;
  3593. this.steps++;
  3594. setTimeout(() => {
  3595. this.checkEva(this.checkId);
  3596. }, 1000);
  3597. } else if (this.steps == 3) {
  3598. if (this.cid == "" || this.cid == undefined) {
  3599. if (this.courseName == "" || typeT != 3) {
  3600. if (typeT != 3) {
  3601. this.$message.error(
  3602. "分类为必选项目,请将信息补充完整后进行下一步"
  3603. );
  3604. } else {
  3605. this.$message.error("请将信息填写完整");
  3606. }
  3607. return;
  3608. } else {
  3609. this.addWork();
  3610. if (this.type != 2) {
  3611. this.steps = 5;
  3612. } else {
  3613. this.steps++;
  3614. }
  3615. }
  3616. } else {
  3617. if (this.courseName == "" || typeT != 3) {
  3618. if (typeT != 3) {
  3619. this.$message.error(
  3620. "分类为必选项目,请将信息补充完整后进行下一步"
  3621. );
  3622. } else {
  3623. this.$message.error("请将信息填写完整");
  3624. }
  3625. return;
  3626. } else {
  3627. if (this.type != 2) {
  3628. this.steps = 5;
  3629. } else {
  3630. this.steps++;
  3631. }
  3632. if (this.userid != this.courseUserid) {
  3633. if (
  3634. this.checkboxListPeople.join(",") !=
  3635. this.checkboxList3.join(",")
  3636. ) {
  3637. this.updateWork();
  3638. } else {
  3639. this.updateWork2();
  3640. }
  3641. } else {
  3642. this.updateWork();
  3643. }
  3644. }
  3645. }
  3646. } else if (this.steps == 4) {
  3647. if (this.userid != this.courseUserid) {
  3648. if (
  3649. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3650. ) {
  3651. this.updateWork();
  3652. } else {
  3653. this.updateWork2();
  3654. }
  3655. } else {
  3656. this.updateWork();
  3657. }
  3658. this.steps++;
  3659. }
  3660. }
  3661. this.$refs.stepBox.scrollTop = 0;
  3662. this.setVHeight();
  3663. },
  3664. unitSet(i) {
  3665. this.unitIndex = i;
  3666. // this.$refs.rightboxR.scrollTop = 0;
  3667. this.setVHeight();
  3668. },
  3669. time() {
  3670. if (!this.now) {
  3671. this.now = new Date().getTime();
  3672. return true;
  3673. } else {
  3674. let time = new Date().getTime();
  3675. if (time - this.now > 3000) {
  3676. this.now = time;
  3677. return true;
  3678. } else {
  3679. return false;
  3680. }
  3681. }
  3682. },
  3683. deleteUnit(i) {
  3684. var _this = this;
  3685. if (_this.time()) {
  3686. _this
  3687. .$confirm("确定删除此单元吗?", "提示", {
  3688. confirmButtonText: "确定",
  3689. cancelButtonText: "取消",
  3690. type: "warning",
  3691. })
  3692. .then(() => {
  3693. _this.isDelete = 2;
  3694. // _this.unitIndex = _this.unitIndex - 1;
  3695. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3696. // _this.$message.success("删除成功");
  3697. })
  3698. .catch(() => {
  3699. return;
  3700. });
  3701. }
  3702. },
  3703. deleteWork(chapid) {
  3704. let params = [
  3705. {
  3706. cid: this.cid,
  3707. chapters: JSON.stringify(this.unitJson),
  3708. uid: this.userid,
  3709. chapid: chapid,
  3710. },
  3711. ];
  3712. this.ajax
  3713. .post(this.$store.state.api + "deleteStudentWork", params)
  3714. .then((res) => {
  3715. this.$message({
  3716. message: "删除成功",
  3717. type: "success",
  3718. });
  3719. this.unitJson.splice(this.unitIndex, 1);
  3720. this.deleteStudentToolS(this.unitIndex);
  3721. this.unitIndex = this.unitIndex - 1;
  3722. })
  3723. .catch((err) => {
  3724. this.$message.error("网络不佳");
  3725. console.error(err);
  3726. });
  3727. },
  3728. deleteTool(itemTaskIndex, i) {
  3729. // var _this = this;
  3730. // if (_this.time()) {
  3731. // _this
  3732. // .$confirm("确定删除此工具吗?", "提示", {
  3733. // confirmButtonText: "确定",
  3734. // cancelButtonText: "取消",
  3735. // type: "warning",
  3736. // })
  3737. // .then(() => {
  3738. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3739. // itemTaskIndex
  3740. // ].toolChoose.splice(i, 1);
  3741. // _this.$message.success("删除成功");
  3742. // })
  3743. // .catch(() => {
  3744. // return;
  3745. // });
  3746. // }
  3747. var _this = this;
  3748. _this
  3749. .$confirm("确定删除此步骤吗?", "提示", {
  3750. confirmButtonText: "确定",
  3751. cancelButtonText: "取消",
  3752. type: "warning",
  3753. })
  3754. .then(() => {
  3755. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3756. itemTaskIndex
  3757. ].toolArray.splice(i, 1);
  3758. this.deleteStudentToolSTT(itemTaskIndex, i);
  3759. _this.$message.success("删除成功");
  3760. })
  3761. .catch(() => {
  3762. return;
  3763. });
  3764. },
  3765. deleteStudentToolSTT(task, tool) {
  3766. let params = [
  3767. {
  3768. cid: this.cid,
  3769. stage: this.unitIndex,
  3770. task: task,
  3771. tool: tool,
  3772. },
  3773. ];
  3774. this.ajax
  3775. .post(this.$store.state.api + "deleteStudentToolSTT", params)
  3776. .then((res) => { })
  3777. .catch((err) => {
  3778. console.error(err);
  3779. });
  3780. },
  3781. deleteStudentToolST(task) {
  3782. let params = [
  3783. {
  3784. cid: this.cid,
  3785. stage: this.unitIndex,
  3786. task: task,
  3787. },
  3788. ];
  3789. this.ajax
  3790. .post(this.$store.state.api + "deleteStudentToolST", params)
  3791. .then((res) => { })
  3792. .catch((err) => {
  3793. console.error(err);
  3794. });
  3795. },
  3796. deleteStudentToolS() {
  3797. let params = [
  3798. {
  3799. cid: this.cid,
  3800. stage: this.unitIndex,
  3801. },
  3802. ];
  3803. this.ajax
  3804. .post(this.$store.state.api + "deleteStudentToolS", params)
  3805. .then((res) => { })
  3806. .catch((err) => {
  3807. console.error(err);
  3808. });
  3809. },
  3810. deleteSentence(i) {
  3811. var _this = this;
  3812. if (_this.time()) {
  3813. _this
  3814. .$confirm("确定删除此题目吗?", "提示", {
  3815. confirmButtonText: "确定",
  3816. cancelButtonText: "取消",
  3817. type: "warning",
  3818. })
  3819. .then(() => {
  3820. _this.sentenceList.splice(i, 1);
  3821. _this.$message.success("删除成功");
  3822. })
  3823. .catch(() => {
  3824. return;
  3825. });
  3826. }
  3827. },
  3828. deleteS(s, i, j) {
  3829. this.sentenceList[i].addSentence.splice(j, 1);
  3830. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3831. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3832. this.sentenceList[i].rightAnswer.splice(a, 1);
  3833. }
  3834. },
  3835. openT() {
  3836. window.parent.postMessage(
  3837. {
  3838. tools: "25",
  3839. },
  3840. "*"
  3841. );
  3842. },
  3843. deleteTask(i) {
  3844. var _this = this;
  3845. if (_this.time()) {
  3846. _this
  3847. .$confirm("确定删除此任务吗?", "提示", {
  3848. confirmButtonText: "确定",
  3849. cancelButtonText: "取消",
  3850. type: "warning",
  3851. })
  3852. .then(() => {
  3853. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3854. i,
  3855. 1
  3856. );
  3857. this.deleteStudentToolST(i);
  3858. _this.$message.success("删除成功");
  3859. })
  3860. .catch(() => {
  3861. return;
  3862. });
  3863. }
  3864. },
  3865. handlePictureCardPreview(file) {
  3866. this.dialogImageUrl = file.url;
  3867. },
  3868. openUpdateName(work) {
  3869. this.updateWorkJson = JSON.parse(JSON.stringify(work));
  3870. this.updateWorkJson.name = this.updateWorkJson.name ? this.updateWorkJson.name : this.setTime(this.updateWorkJson.create_at)
  3871. this.dialogVisibleSname = true;
  3872. },
  3873. updateName() {
  3874. if (!this.updateWorkJson.name) {
  3875. this.$message.error("请填写名称")
  3876. return
  3877. }
  3878. let params = [{
  3879. id: this.updateWorkJson.id,
  3880. name: this.updateWorkJson.name.replace(/%/g, "%25"),
  3881. }]
  3882. this.ajax
  3883. .post(this.$store.state.api + "updateSCourseName", params)
  3884. .then((res) => {
  3885. this.$message({
  3886. message: "修改成功",
  3887. type: "success",
  3888. });
  3889. this.updateWorkJson = {};
  3890. this.dialogVisibleSname = false;
  3891. this.seleteCourseUpdate();
  3892. })
  3893. .catch((err) => {
  3894. console.error(err);
  3895. });
  3896. },
  3897. clean(i, c) {
  3898. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3899. },
  3900. handle_remove1(file, fileList, type) {
  3901. var _tmp = this.cover;
  3902. for (var i = 0, len = _tmp.length; i < len; i++) {
  3903. if (_tmp[i].uid == file.uid) {
  3904. _tmp.splice(i, 1);
  3905. break;
  3906. }
  3907. this.cover = _tmp;
  3908. }
  3909. this.noneBtnImg = _tmp.length >= 1;
  3910. this.isSysPic = false;
  3911. },
  3912. addImg(e) {
  3913. var el = e.currentTarget || e;
  3914. el.getElementsByTagName("input")[0].click();
  3915. e.target.value = "";
  3916. },
  3917. addChaptersTools(i) {
  3918. this.chapTools = [
  3919. {
  3920. tools: [],
  3921. toolDetail: "",
  3922. },
  3923. ];
  3924. this.chapCount = i;
  3925. this.dialogVisible4 = true;
  3926. },
  3927. isNoFinsh() {
  3928. this.$message.warning("功能正在开发中");
  3929. },
  3930. addAttText(i) {
  3931. this.AttText = {
  3932. title: "",
  3933. text: "",
  3934. };
  3935. // this.taskCount = i;
  3936. this.AttTextType = 0;
  3937. this.$forceUpdate();
  3938. this.dialogVisible6 = true;
  3939. },
  3940. openSource(i) {
  3941. this.lineCount = i;
  3942. this.sourceData = {};
  3943. this.dialogVisibleSource2 = true;
  3944. },
  3945. addSource() {
  3946. if (!Object.keys(this.sourceData).length) {
  3947. this.$message.error("请选择要上传的资源");
  3948. return;
  3949. }
  3950. let keys = Object.keys(this.sourceData);
  3951. for (var i = 0; i < keys.length; i++) {
  3952. this.sourcesData.push({
  3953. name: "链接",
  3954. title: this.sourceData[keys[i]].name,
  3955. src: this.sourceData[keys[i]].url,
  3956. type: 8,
  3957. });
  3958. }
  3959. this.$forceUpdate();
  3960. this.dialogVisibleSource2 = false;
  3961. },
  3962. downloadFile2(f,toolIndex) {
  3963. var credentials = {
  3964. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3965. secretAccessKey: "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",
  3966. }; //秘钥形式的登录上传
  3967. window.AWS.config.update(credentials);
  3968. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3969. let url2 = f.url;
  3970. let _url2 = "";
  3971. if (
  3972. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3973. ) {
  3974. _url2 = url2.split(
  3975. "https://view.officeapps.live.com/op/view.aspx?src="
  3976. )[1];
  3977. } else {
  3978. _url2 = url2;
  3979. }
  3980. let _this = this;
  3981. _this.downLoading = 'down'+toolIndex
  3982. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  3983. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  3984. var params = {
  3985. Bucket: "ccrb",
  3986. Key: name
  3987. };
  3988. s3.getObject(params, function (err, data) {
  3989. _this.downLoading = ''
  3990. if (err) console.log(err, err.stack); // an error occurred
  3991. else {
  3992. let url = window.URL.createObjectURL(new Blob([data.Body]));
  3993. let a = document.createElement("a");
  3994. a.name = f.name;
  3995. a.href = url;
  3996. a.download = f.name;
  3997. a.click();
  3998. console.log(data);
  3999. } // sxuccessful response
  4000. });
  4001. return;
  4002. // const loading = this.$loading.service({
  4003. // background: "rgba(255, 255, 255, 0.7)",
  4004. // target: document.body,
  4005. // text: "文件加载中...",
  4006. // });
  4007. // let url2 = f.url;
  4008. // let _url2 = "";
  4009. // if (
  4010. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  4011. // ) {
  4012. // _url2 = url2.split(
  4013. // "https://view.officeapps.live.com/op/view.aspx?src="
  4014. // )[1];
  4015. // } else {
  4016. // _url2 = url2;
  4017. // }
  4018. // let params = {
  4019. // url: _url2,
  4020. // name: f.name,
  4021. // };
  4022. // this.ajax
  4023. // .get(this.$store.state.api + "download", params)
  4024. // .then((res) => {
  4025. // loading.close();
  4026. // let content = res.data.data.data;
  4027. // let ab = new ArrayBuffer(content.length);
  4028. // let view = new Uint8Array(ab);
  4029. // for (var i = 0; i < content.length; ++i) {
  4030. // view[i] = content[i];
  4031. // }
  4032. // let elink = document.createElement("a");
  4033. // elink.download = f.name;
  4034. // elink.style.display = "none";
  4035. // let blob = new Blob([ab], {
  4036. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  4037. // });
  4038. // elink.href = URL.createObjectURL(blob);
  4039. // document.body.appendChild(elink);
  4040. // elink.click();
  4041. // document.body.removeChild(elink);
  4042. // })
  4043. // .catch((err) => {
  4044. // loading.close();
  4045. // console.error(err);
  4046. // });
  4047. },
  4048. pasteLine(i) {
  4049. navigator.clipboard
  4050. .readText()
  4051. .then((v) => {
  4052. console.log("获取剪贴板成功:", v);
  4053. const html = v;
  4054. const regex = /src="(.*?)"/g;
  4055. const match = regex.exec(html);
  4056. if (match && match[1]) {
  4057. console.log(match[1]);
  4058. this.$message.success("粘贴成功");
  4059. this.sourcesData.push({
  4060. name: "链接",
  4061. title: "嵌入代码",
  4062. src: match[1],
  4063. type: 8,
  4064. });
  4065. } else {
  4066. // console.log("未找到包含 src 属性的 iframe");
  4067. this.$message.error("没有找到粘贴的链接");
  4068. }
  4069. })
  4070. .catch((v) => {
  4071. console.log("获取剪贴板失败: ", v);
  4072. });
  4073. },
  4074. openLine(i) {
  4075. this.line = "";
  4076. this.lineTitle = "";
  4077. // this.lineCount = i;
  4078. this.lineType = 0;
  4079. this.$forceUpdate();
  4080. this.dialogVisible7 = true;
  4081. },
  4082. beforeUpload1(event, type) {
  4083. const loading = this.openLoading();
  4084. var file = event.target.files[0];
  4085. var credentials = {
  4086. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4087. secretAccessKey: "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",
  4088. }; //秘钥形式的登录上传
  4089. window.AWS.config.update(credentials);
  4090. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4091. var bucket = new window.AWS.S3({
  4092. params: {
  4093. Bucket: "ccrb",
  4094. },
  4095. }); //选择桶
  4096. var _this = this;
  4097. if (file) {
  4098. var params = {
  4099. Key:
  4100. file.name.split(".")[0] +
  4101. new Date().getTime() +
  4102. "." +
  4103. file.name.split(".")[file.name.split(".").length - 1],
  4104. ContentType: file.type,
  4105. Body: file,
  4106. "Access-Control-Allow-Credentials": "*",
  4107. ACL: "public-read",
  4108. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4109. var options = {
  4110. partSize: 2048 * 1024 * 1024,
  4111. queueSize: 2,
  4112. leavePartsOnError: true,
  4113. };
  4114. bucket
  4115. .upload(params, options)
  4116. .on("httpUploadProgress", function (evt) {
  4117. //这里可以写进度条
  4118. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4119. })
  4120. .send(function (err, data) {
  4121. loading.close();
  4122. if (err) {
  4123. _this.$message.error("上传失败");
  4124. } else {
  4125. _this.cover.push({
  4126. name: file.name,
  4127. url: data.Location,
  4128. uid: file.uid,
  4129. });
  4130. _this.imgChange1(null, null, 1, null);
  4131. _this.choosePicVisible = false;
  4132. console.log(data.Location);
  4133. }
  4134. });
  4135. }
  4136. },
  4137. beforeUploadSelect(event, type) {
  4138. const loading = this.openLoading();
  4139. var file = event.target.files[0];
  4140. var credentials = {
  4141. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4142. secretAccessKey: "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",
  4143. }; //秘钥形式的登录上传
  4144. window.AWS.config.update(credentials);
  4145. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4146. var bucket = new window.AWS.S3({
  4147. params: {
  4148. Bucket: "ccrb",
  4149. },
  4150. }); //选择桶
  4151. var _this = this;
  4152. if (file) {
  4153. var params = {
  4154. Key:
  4155. file.name.split(".")[0] +
  4156. new Date().getTime() +
  4157. "." +
  4158. file.name.split(".")[file.name.split(".").length - 1],
  4159. ContentType: file.type,
  4160. Body: file,
  4161. "Access-Control-Allow-Credentials": "*",
  4162. ACL: "public-read",
  4163. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4164. var options = {
  4165. partSize: 2048 * 1024 * 1024,
  4166. queueSize: 2,
  4167. leavePartsOnError: true,
  4168. };
  4169. bucket
  4170. .upload(params, options)
  4171. .on("httpUploadProgress", function (evt) {
  4172. //这里可以写进度条
  4173. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4174. })
  4175. .send(function (err, data) {
  4176. loading.close();
  4177. if (err) {
  4178. _this.$message.error("上传失败");
  4179. } else {
  4180. _this.selectJson.url = data.Location;
  4181. console.log(data.Location);
  4182. }
  4183. });
  4184. }
  4185. },
  4186. chooseSysPic(p) {
  4187. this.cover.push({
  4188. name: "系统图片.png",
  4189. url: p,
  4190. });
  4191. this.imgChange1(null, null, 1, null);
  4192. this.isSysPic = true;
  4193. this.sysPicVisible = false;
  4194. },
  4195. beforeUpload(data) {
  4196. this.uploadLoading1 = true;
  4197. var file = data.file;
  4198. var credentials = {
  4199. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4200. secretAccessKey: "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",
  4201. }; //秘钥形式的登录上传
  4202. window.AWS.config.update(credentials);
  4203. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4204. var bucket = new window.AWS.S3({
  4205. params: {
  4206. Bucket: "ccrb",
  4207. },
  4208. }); //选择桶
  4209. var _this = this;
  4210. if (file) {
  4211. var params = {
  4212. Key:
  4213. file.name.split(".")[0] +
  4214. new Date().getTime() +
  4215. "." +
  4216. file.name.split(".")[file.name.split(".").length - 1],
  4217. ContentType: file.type,
  4218. Body: file,
  4219. "Access-Control-Allow-Credentials": "*",
  4220. ACL: "public-read",
  4221. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4222. var options = {
  4223. partSize: 2048 * 1024 * 1024,
  4224. queueSize: 2,
  4225. leavePartsOnError: true,
  4226. };
  4227. bucket
  4228. .upload(params, options)
  4229. .on("httpUploadProgress", function (evt) {
  4230. //这里可以写进度条
  4231. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4232. })
  4233. .send(function (err, data) {
  4234. _this.uploadLoading1 = false;
  4235. if (err) {
  4236. _this.$message.error("上传失败");
  4237. } else {
  4238. //上传成功处理
  4239. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4240. name: file.name,
  4241. url: data.Location,
  4242. uid: file.uid,
  4243. });
  4244. _this.imgChange();
  4245. console.log(data.Location);
  4246. }
  4247. });
  4248. }
  4249. },
  4250. onExceed() {
  4251. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  4252. },
  4253. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4254. // const loading = this.openLoading();
  4255. var file = event.target.files[0];
  4256. var credentials = {
  4257. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4258. secretAccessKey: "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",
  4259. }; //秘钥形式的登录上传
  4260. window.AWS.config.update(credentials);
  4261. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4262. var bucket = new window.AWS.S3({
  4263. params: {
  4264. Bucket: "ccrb",
  4265. },
  4266. }); //选择桶
  4267. var _this = this;
  4268. if (type == 3) {
  4269. var b = [
  4270. "DOC",
  4271. "DOCX",
  4272. "DOCM",
  4273. "DOTM",
  4274. "DOTX",
  4275. "PPTX",
  4276. "PPSX",
  4277. "PPT",
  4278. "PPS",
  4279. "PPTM",
  4280. "POTM",
  4281. "PPAM",
  4282. "POTX",
  4283. "PPSM",
  4284. ];
  4285. if (
  4286. b.indexOf(
  4287. file.name
  4288. .split(".")
  4289. [file.name.split(".").length - 1].toLocaleUpperCase()
  4290. ) != -1
  4291. ) {
  4292. if (file.size / 1024 / 1024 > 80) {
  4293. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4294. this.inputShow = true;
  4295. // loading.close();
  4296. return;
  4297. }
  4298. } else if (
  4299. file.name
  4300. .split(".")
  4301. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4302. ) {
  4303. if (file.size / 1024 / 1024 > 80) {
  4304. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4305. this.inputShow = true;
  4306. // loading.close();
  4307. return;
  4308. }
  4309. }
  4310. }
  4311. this.inputShow = false;
  4312. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4313. itemTaskIndex
  4314. ].progress = 0;
  4315. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4316. itemTaskIndex
  4317. ].proVisible = true;
  4318. if (file) {
  4319. var params = {
  4320. Key:
  4321. file.name.split(".")[0] +
  4322. new Date().getTime() +
  4323. "." +
  4324. file.name.split(".")[file.name.split(".").length - 1],
  4325. ContentType: file.type,
  4326. Body: file,
  4327. "Access-Control-Allow-Credentials": "*",
  4328. ACL: "public-read",
  4329. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4330. var options = {
  4331. partSize: 2048 * 1024 * 1024,
  4332. queueSize: 2,
  4333. leavePartsOnError: true,
  4334. };
  4335. bucket
  4336. .upload(params, options)
  4337. .on("httpUploadProgress", function (evt) {
  4338. //这里可以写进度条
  4339. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4340. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4341. itemTaskIndex
  4342. ].progress = parseInt((evt.loaded * 80) / evt.total);
  4343. })
  4344. .send(function (err, data) {
  4345. // loading.close();
  4346. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4347. itemTaskIndex
  4348. ].progress = 100;
  4349. setTimeout(() => {
  4350. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4351. itemTaskIndex
  4352. ].proVisible = false;
  4353. _this.$forceUpdate();
  4354. }, 1000);
  4355. _this.inputShow = true;
  4356. if (err) {
  4357. _this.$message.error("上传失败");
  4358. } else {
  4359. if (type == 2 || type == 3) {
  4360. if (
  4361. data.Location.split(".")[
  4362. data.Location.split(".").length - 1
  4363. ].toLocaleUpperCase() == "PDF"
  4364. ) {
  4365. type = 9;
  4366. }
  4367. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4368. itemTaskIndex
  4369. ].chapterData.push({
  4370. name: file.name,
  4371. url: data.Location,
  4372. uid: file.uid,
  4373. type: type,
  4374. });
  4375. _this.imgChange1(null, null, type, itemTaskIndex);
  4376. } else if (type == 4) {
  4377. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4378. itemTaskIndex
  4379. ].fileList1.push({
  4380. name: file.name,
  4381. url: data.Location,
  4382. uid: file.uid,
  4383. });
  4384. _this.imgChange1(null, null, type, itemTaskIndex);
  4385. } else if (type == 5) {
  4386. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4387. itemTaskIndex
  4388. ].homeworkList.push({
  4389. name: file.name,
  4390. url: data.Location,
  4391. uid: file.uid,
  4392. });
  4393. _this.imgChange1(null, null, type, itemTaskIndex);
  4394. }
  4395. console.log(data.Location);
  4396. }
  4397. });
  4398. }
  4399. },
  4400. getVideo2(url) {
  4401. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4402. d.sources[0].src = url;
  4403. return d;
  4404. },
  4405. beforeUpload3(event, type) {
  4406. // const loading = this.openLoading();
  4407. var file = event.target.files[0];
  4408. var credentials = {
  4409. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4410. secretAccessKey: "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",
  4411. }; //秘钥形式的登录上传
  4412. window.AWS.config.update(credentials);
  4413. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4414. var bucket = new window.AWS.S3({
  4415. params: {
  4416. Bucket: "ccrb",
  4417. },
  4418. }); //选择桶
  4419. var _this = this;
  4420. if (type == 3) {
  4421. var b = [
  4422. "DOC",
  4423. "DOCX",
  4424. "DOCM",
  4425. "DOTM",
  4426. "DOTX",
  4427. "PPTX",
  4428. "PPSX",
  4429. "PPT",
  4430. "PPS",
  4431. "PPTM",
  4432. "POTM",
  4433. "PPAM",
  4434. "POTX",
  4435. "PPSM",
  4436. ];
  4437. if (
  4438. b.indexOf(
  4439. file.name
  4440. .split(".")
  4441. [file.name.split(".").length - 1].toLocaleUpperCase()
  4442. ) != -1
  4443. ) {
  4444. if (file.size / 1024 / 1024 > 80) {
  4445. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4446. this.inputShow = true;
  4447. // loading.close();
  4448. return;
  4449. }
  4450. } else if (
  4451. file.name
  4452. .split(".")
  4453. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4454. ) {
  4455. if (file.size / 1024 / 1024 > 80) {
  4456. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4457. this.inputShow = true;
  4458. // loading.close();
  4459. return;
  4460. }
  4461. }
  4462. }
  4463. _this.inputShow = false;
  4464. _this.progress = 0;
  4465. _this.proVisible = true;
  4466. _this.isFinishSize = 0;
  4467. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4468. if (file) {
  4469. var params = {
  4470. Key:
  4471. file.name.split(".")[0] +
  4472. new Date().getTime() +
  4473. "." +
  4474. file.name.split(".")[file.name.split(".").length - 1],
  4475. ContentType: file.type,
  4476. Body: file,
  4477. "Access-Control-Allow-Credentials": "*",
  4478. ACL: "public-read",
  4479. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4480. var options = {
  4481. partSize: 2048 * 1024 * 1024,
  4482. queueSize: 2,
  4483. leavePartsOnError: true,
  4484. };
  4485. bucket
  4486. .upload(params, options)
  4487. .on("httpUploadProgress", function (evt) {
  4488. //这里可以写进度条
  4489. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4490. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4491. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4492. })
  4493. .send(function (err, data) {
  4494. // loading.close();
  4495. _this.progress = 100;
  4496. _this.isFinishSize = _this.isAllSize;
  4497. setTimeout(() => {
  4498. _this.proVisible = false;
  4499. // _this.dialogVisibleSource = false;
  4500. _this.$forceUpdate();
  4501. }, 1000);
  4502. _this.inputShow = true;
  4503. if (err) {
  4504. _this.$message.error("上传失败");
  4505. } else {
  4506. if (type == 13) {
  4507. let _type = 2;
  4508. let src = "";
  4509. var imgA = [
  4510. "png",
  4511. "jpg",
  4512. "jpeg",
  4513. "bmp",
  4514. "gif",
  4515. "webp",
  4516. "psd",
  4517. "svg",
  4518. "tiff",
  4519. ];
  4520. var fileA = [
  4521. "DOC",
  4522. "DOCX",
  4523. "DOCM",
  4524. "DOTM",
  4525. "DOTX",
  4526. "PPTX",
  4527. "PPSX",
  4528. "PPT",
  4529. "PPS",
  4530. "PPTM",
  4531. "POTM",
  4532. "PPAM",
  4533. "POTX",
  4534. "PPSM",
  4535. "XLSX",
  4536. "XLS",
  4537. ];
  4538. var videoA = [
  4539. "AVI",
  4540. "NAVI",
  4541. "MPEG",
  4542. "ASF",
  4543. "MOV",
  4544. "WMV",
  4545. "3GP",
  4546. "RM",
  4547. "RMVB",
  4548. "FLV",
  4549. "F4V",
  4550. "H.264",
  4551. "H.265",
  4552. "REAL VIDEO",
  4553. "MKV",
  4554. "WebM",
  4555. "HDDVD",
  4556. "MP4",
  4557. "MPG",
  4558. "M4V",
  4559. "MGV",
  4560. "OGV",
  4561. "QTM",
  4562. "STR",
  4563. "AMC",
  4564. "DVX",
  4565. "EVO",
  4566. "DAT",
  4567. "OGG",
  4568. "OGM",
  4569. ];
  4570. if (
  4571. fileA.indexOf(
  4572. data.Location.split(".")[
  4573. data.Location.split(".").length - 1
  4574. ].toLocaleUpperCase()
  4575. ) != -1
  4576. ) {
  4577. _type = 3;
  4578. src =
  4579. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4580. encodeURIComponent(data.Location);
  4581. } else if (
  4582. videoA.indexOf(
  4583. data.Location.split(".")[
  4584. data.Location.split(".").length - 1
  4585. ].toLocaleUpperCase()
  4586. ) != -1
  4587. ) {
  4588. _type = 2;
  4589. src = _this.getVideo2(data.Location);
  4590. } else if (
  4591. imgA.indexOf(
  4592. data.Location.split(".")[
  4593. data.Location.split(".").length - 1
  4594. ].toLocaleLowerCase()
  4595. ) != -1
  4596. ) {
  4597. _type = 13;
  4598. } else if (
  4599. data.Location.split(".")[
  4600. data.Location.split(".").length - 1
  4601. ].toLocaleUpperCase() == "PDF"
  4602. ) {
  4603. _type = 9;
  4604. } else {
  4605. _type = 12;
  4606. }
  4607. _this.sourcesData.push({
  4608. name: file.name,
  4609. url: data.Location,
  4610. uid: file.uid,
  4611. type: _type,
  4612. src: src,
  4613. });
  4614. } if (type == 2 || type == 3) {
  4615. var src = "";
  4616. if (
  4617. data.Location.split(".")[
  4618. data.Location.split(".").length - 1
  4619. ].toLocaleUpperCase() == "PDF"
  4620. ) {
  4621. type = 9;
  4622. }
  4623. if (type == 2) {
  4624. src = _this.getVideo2(data.Location);
  4625. } else if (type == 3) {
  4626. src =
  4627. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4628. encodeURIComponent(data.Location);
  4629. } else {
  4630. src = data.Location;
  4631. }
  4632. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  4633. // tool: 51,
  4634. // toolDetail: "",
  4635. // toolPhoto: "",
  4636. // toolEdit: false,
  4637. // toolId: _this.guid(),
  4638. // toolData: {
  4639. // name: file.name,
  4640. // url: data.Location,
  4641. // uid: file.uid,
  4642. // type: type,
  4643. // src: src,
  4644. // }
  4645. // });
  4646. _this.sourcesData.push({
  4647. name: file.name,
  4648. url: data.Location,
  4649. uid: file.uid,
  4650. type: type,
  4651. src: src,
  4652. });
  4653. }
  4654. console.log(data.Location);
  4655. }
  4656. });
  4657. }
  4658. },
  4659. async beforeUploadCC(event, type, task, toolindex, tool) {
  4660. // this.$message.success('进入上传')
  4661. var file = "";
  4662. file = event.target.files[0];
  4663. var credentials = {
  4664. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4665. secretAccessKey: "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",
  4666. }; //秘钥形式的登录上传
  4667. window.AWS.config.update(credentials);
  4668. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4669. var bucket = new window.AWS.S3({
  4670. params: {
  4671. Bucket: "ccrb",
  4672. },
  4673. }); //选择桶
  4674. var _this = this;
  4675. if (type == 3 && (file.size / 1024 / 1024) > 100) {
  4676. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  4677. return;
  4678. }
  4679. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  4680. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4681. toolindex
  4682. ].proVisible = true;
  4683. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4684. toolindex
  4685. ].isFinishSize = 0;
  4686. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4687. toolindex
  4688. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4689. _this.$forceUpdate();
  4690. var b = [
  4691. "DOC",
  4692. "DOCX",
  4693. "DOCM",
  4694. "DOTM",
  4695. "DOTX",
  4696. "PPTX",
  4697. "PPSX",
  4698. "PPT",
  4699. "PPS",
  4700. "PPTM",
  4701. "POTM",
  4702. "PPAM",
  4703. "POTX",
  4704. "PPSM",
  4705. ];
  4706. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4707. var photoA = [
  4708. "BMP",
  4709. "GIF",
  4710. "PNG",
  4711. "JPGE",
  4712. "JPG",
  4713. "TIF",
  4714. "PCX",
  4715. "TGA",
  4716. "EXIF",
  4717. "FPX",
  4718. "SVG",
  4719. "APNG",
  4720. ];
  4721. if (
  4722. photoA.indexOf(
  4723. file.name
  4724. .split(".")
  4725. [file.name.split(".").length - 1].toLocaleUpperCase()
  4726. ) != -1 &&
  4727. type != 4
  4728. ) {
  4729. // const blob = await imageConversion.compress(file, 0.8)
  4730. file = await this.pngToWhiteBg(file);
  4731. const blob = await imageConversion.compressAccurately(file, 256);
  4732. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4733. file = new File([blob], file.name, {
  4734. type: file.type,
  4735. });
  4736. }
  4737. if (file) {
  4738. var params = {
  4739. Key:
  4740. file.name.split(".")[0] +
  4741. new Date().getTime() +
  4742. "." +
  4743. file.name.split(".")[file.name.split(".").length - 1],
  4744. ContentType: file.type,
  4745. Body: file,
  4746. "Access-Control-Allow-Credentials": "*",
  4747. ACL: "public-read",
  4748. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4749. var options = {
  4750. // partSize: 2048 * 1024 * 1024,
  4751. partSize: 1024 * 1024 * 1024,
  4752. queueSize: 2,
  4753. leavePartsOnError: true,
  4754. };
  4755. bucket
  4756. .upload(params, options)
  4757. .on("httpUploadProgress", function (evt) {
  4758. //这里可以写进度条
  4759. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4760. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  4761. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4762. task
  4763. ].toolArray[toolindex].isFinishSize = (
  4764. evt.loaded /
  4765. 1024 /
  4766. 1024
  4767. ).toFixed(2);
  4768. _this.$forceUpdate();
  4769. })
  4770. .send(function (err, data) {
  4771. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  4772. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4773. task
  4774. ].toolArray[toolindex].isFinishSize =
  4775. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4776. task
  4777. ].toolArray[toolindex].isAllSize;
  4778. _this.$forceUpdate();
  4779. setTimeout(() => {
  4780. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4781. task
  4782. ].toolArray[toolindex].proVisible = false;
  4783. }, 1000);
  4784. if (err) {
  4785. // var a = _this.$refs.upload1.uploadFiles;
  4786. // a.splice(a.length - 1, a.length);
  4787. _this.$message.error("上传失败");
  4788. } else {
  4789. // _this.$message.success('上传成功')
  4790. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4791. var c = [
  4792. "AVI",
  4793. "NAVI",
  4794. "MPEG",
  4795. "ASF",
  4796. "MOV",
  4797. "WMV",
  4798. "3GP",
  4799. "RM",
  4800. "RMVB",
  4801. "FLV",
  4802. "F4V",
  4803. "H.264",
  4804. "H.265",
  4805. "REAL VIDEO",
  4806. "MKV",
  4807. "WebM",
  4808. "HDDVD",
  4809. "MP4",
  4810. "MPG",
  4811. "M4V",
  4812. "MGV",
  4813. "OGV",
  4814. "QTM",
  4815. "STR",
  4816. "AMC",
  4817. "DVX",
  4818. "EVO",
  4819. "DAT",
  4820. "OGG",
  4821. "OGM",
  4822. ];
  4823. if (type == 1) {
  4824. if (
  4825. ["ZIP"].indexOf(
  4826. data.Location.split(".")[
  4827. data.Location.split(".").length - 1
  4828. ].toLocaleUpperCase()
  4829. ) != -1
  4830. ) {
  4831. _this.addCourseWorksS(
  4832. tool,
  4833. 13,
  4834. data.Location,
  4835. task,
  4836. toolindex
  4837. );
  4838. } else {
  4839. _this.addCourseWorksS(
  4840. tool,
  4841. 4,
  4842. data.Location,
  4843. task,
  4844. toolindex
  4845. );
  4846. }
  4847. } else if (type == 2) {
  4848. if (
  4849. c.indexOf(
  4850. data.Location.split(".")[
  4851. data.Location.split(".").length - 1
  4852. ].toLocaleUpperCase()
  4853. ) != -1
  4854. ) {
  4855. _this.addCourseWorksS(
  4856. tool,
  4857. 5,
  4858. data.Location,
  4859. task,
  4860. toolindex
  4861. );
  4862. } else {
  4863. _this.addCourseWorksS(
  4864. tool,
  4865. 1,
  4866. data.Location,
  4867. task,
  4868. toolindex
  4869. );
  4870. }
  4871. } else if (type == 3) {
  4872. let _type = 13
  4873. var imgA = [
  4874. "png",
  4875. "jpg",
  4876. "jpeg",
  4877. "bmp",
  4878. "gif",
  4879. "webp",
  4880. "psd",
  4881. "svg",
  4882. "tiff",
  4883. ];
  4884. var fileA = [
  4885. "PDF",
  4886. "DOC",
  4887. "DOCX",
  4888. "DOCM",
  4889. "DOTM",
  4890. "DOTX",
  4891. "PPTX",
  4892. "PPSX",
  4893. "PPT",
  4894. "PPS",
  4895. "PPTM",
  4896. "POTM",
  4897. "PPAM",
  4898. "POTX",
  4899. "PPSM",
  4900. "XLSX",
  4901. "XLS",
  4902. ];
  4903. var videoA = [
  4904. "AVI",
  4905. "NAVI",
  4906. "MPEG",
  4907. "ASF",
  4908. "MOV",
  4909. "WMV",
  4910. "3GP",
  4911. "RM",
  4912. "RMVB",
  4913. "FLV",
  4914. "F4V",
  4915. "H.264",
  4916. "H.265",
  4917. "REAL VIDEO",
  4918. "MKV",
  4919. "WebM",
  4920. "HDDVD",
  4921. "MP4",
  4922. "MPG",
  4923. "M4V",
  4924. "MGV",
  4925. "OGV",
  4926. "QTM",
  4927. "STR",
  4928. "AMC",
  4929. "DVX",
  4930. "EVO",
  4931. "DAT",
  4932. "OGG",
  4933. "OGM",
  4934. ];
  4935. if (
  4936. fileA.indexOf(
  4937. data.Location.split(".")[
  4938. data.Location.split(".").length - 1
  4939. ].toLocaleUpperCase()
  4940. ) != -1
  4941. ) {
  4942. _type = 4;
  4943. } else if (
  4944. videoA.indexOf(
  4945. data.Location.split(".")[
  4946. data.Location.split(".").length - 1
  4947. ].toLocaleUpperCase()
  4948. ) != -1
  4949. ) {
  4950. _type = 5;
  4951. } else if (
  4952. imgA.indexOf(
  4953. data.Location.split(".")[
  4954. data.Location.split(".").length - 1
  4955. ].toLocaleLowerCase()
  4956. ) != -1
  4957. ) {
  4958. _type = 1;
  4959. } else {
  4960. _type = 13;
  4961. }
  4962. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  4963. }
  4964. console.log(data.Location);
  4965. // _this.$message.success('上传成功'+data.Location)
  4966. }
  4967. });
  4968. }
  4969. },
  4970. pngToWhiteBg(file) {
  4971. const _file = file;
  4972. let read = new FileReader();
  4973. read.readAsDataURL(file); // 文件转base64
  4974. return new Promise((resolve, reject) => {
  4975. read.onload = (e) => {
  4976. let img = new Image();
  4977. img.src = e.target.result;
  4978. img.onload = async () => {
  4979. // 生成canvas
  4980. let canvas = document.createElement("canvas");
  4981. let context = canvas.getContext("2d");
  4982. // 绘制图片到canvas上
  4983. canvas.width = img.width;
  4984. canvas.height = img.height;
  4985. // 在canvas绘制前填充白色背景
  4986. context.fillStyle = "#fff";
  4987. context.fillRect(0, 0, canvas.width, canvas.height);
  4988. context.drawImage(img, 0, 0);
  4989. let base64 = canvas.toDataURL(file["type"], 1);
  4990. let newFile = this.dataUrlToFile(base64, _file);
  4991. resolve(newFile);
  4992. };
  4993. };
  4994. });
  4995. },
  4996. dataUrlToFile(dataurl, file) {
  4997. let arr = dataurl.split(","),
  4998. mime = arr[0].match(/:(.*?);/)[1],
  4999. bstr = atob(arr[1]),
  5000. n = bstr.length,
  5001. u8arr = new Uint8Array(n);
  5002. while (n--) {
  5003. u8arr[n] = bstr.charCodeAt(n);
  5004. }
  5005. // return new Blob([u8arr], { type: mime });
  5006. return new File(
  5007. [
  5008. new Blob([u8arr], {
  5009. type: mime,
  5010. }),
  5011. ],
  5012. file.name,
  5013. {
  5014. type: mime,
  5015. }
  5016. );
  5017. },
  5018. addunit() {
  5019. if (this.cid != "") {
  5020. let _unitIndex = this.unitIndex;
  5021. let cPan = 1;
  5022. for (
  5023. var j = 0;
  5024. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5025. j++
  5026. ) {
  5027. // if (
  5028. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  5029. // ) {
  5030. // this.$message.error("请填写任务名称");
  5031. // cPan = 2
  5032. // break;
  5033. // }
  5034. // if (
  5035. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  5036. // ) {
  5037. // this.$message.error("请填写负责人");
  5038. // cPan = 2
  5039. // break;
  5040. // }
  5041. // if (
  5042. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  5043. // ) {
  5044. // this.$message.error("请填写任务起止时间");
  5045. // cPan = 2
  5046. // break;
  5047. // }
  5048. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5049. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5050. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5051. (ele) => {
  5052. return ele.value != "";
  5053. }
  5054. );
  5055. }
  5056. }
  5057. if (cPan == 2) {
  5058. return;
  5059. }
  5060. }
  5061. this.unitJson.push({
  5062. dyName: "", //单元标题
  5063. isUpdate: 1,
  5064. chapterInfo: [
  5065. {
  5066. isread: false,
  5067. chapterid: this.guid(),
  5068. title: "",
  5069. courseName: "",
  5070. taskJson: [
  5071. {
  5072. task: "",
  5073. people: "",
  5074. time: "",
  5075. taskDetail: "",
  5076. chapterData: [],
  5077. toolText: "",
  5078. toolChoose: [
  5079. {
  5080. tool: [],
  5081. toolDetail: "",
  5082. toolType: 0,
  5083. askCount: 1,
  5084. askTitle: "",
  5085. askJson: [
  5086. {
  5087. askstitle: "",
  5088. askItem: 1,
  5089. checkList: [],
  5090. },
  5091. ],
  5092. },
  5093. ],
  5094. toolArray: [],
  5095. isShowTools: false,
  5096. askCount: 1,
  5097. isFold: 0,
  5098. askTitle: "",
  5099. askJson: [
  5100. {
  5101. askstitle: "",
  5102. askItem: 1,
  5103. checkList: [],
  5104. },
  5105. ],
  5106. checkJson: [
  5107. {
  5108. checkCount: [],
  5109. checkPerent: [],
  5110. },
  5111. ],
  5112. homeworkList: [],
  5113. },
  5114. ],
  5115. itemCount: 1,
  5116. fileList1: [],
  5117. video: [],
  5118. testData: [],
  5119. pData: [],
  5120. templateArray: [],
  5121. },
  5122. ],
  5123. });
  5124. this.addindex = this.unitJson.length - 1;
  5125. setTimeout(() => {
  5126. this.unitIndex = this.unitJson.length - 1;
  5127. this.unitSet(this.unitIndex);
  5128. }, 0);
  5129. },
  5130. addToolFun(tool) {
  5131. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5132. // itemTaskIndex
  5133. // ].toolChoose.push({
  5134. // tool: [],
  5135. // toolDetail: "",
  5136. // toolType: 0,
  5137. // askCount: 1,
  5138. // askTitle: "",
  5139. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5140. // });
  5141. if (tool == 15) {
  5142. this.tableJson.text = "";
  5143. this.dialogVisible8 = true;
  5144. } else if (tool == 48) {
  5145. this.tableJson.text = "";
  5146. this.dialogVisibleTable1 = true;
  5147. } else if (tool == 52) {
  5148. this.tableJson.text = "";
  5149. this.dialogVisibleText = true;
  5150. } else if (tool == 51) {
  5151. this.addSourceFunD(this.taskCount);
  5152. } else if (tool == 56) {
  5153. this.askJson = {
  5154. askCount: 1,
  5155. askTitle: "",
  5156. askJson: [
  5157. {
  5158. askstitle: "",
  5159. askItem: 1,
  5160. checkList: [],
  5161. },
  5162. ],
  5163. };
  5164. this.dialogVisibleVote = true;
  5165. } else {
  5166. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5167. this.taskCount
  5168. ].toolArray.push({
  5169. tool: tool,
  5170. toolDetail: "",
  5171. toolPhoto: "",
  5172. toolEdit: false,
  5173. toolId: this.guid(),
  5174. });
  5175. this.$forceUpdate();
  5176. this.dialogVisibleTool = false;
  5177. if (tool == 1 || tool == 3 || tool == 6) {
  5178. setTimeout(() => {
  5179. this.openToolFun(
  5180. tool,
  5181. this.taskCount,
  5182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5183. this.taskCount
  5184. ].toolArray.length - 1
  5185. );
  5186. }, 500);
  5187. } else if (tool == 53 || tool == 54 || tool == 55) {
  5188. setTimeout(() => {
  5189. this.addImg(
  5190. document.getElementById(
  5191. this.taskCount.toString() +
  5192. "-" +
  5193. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5194. this.taskCount
  5195. ].toolArray.length -
  5196. 1)
  5197. )
  5198. );
  5199. }, 500);
  5200. }
  5201. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5202. }
  5203. },
  5204. addToolFunD(itemTaskIndex) {
  5205. this.taskCount = itemTaskIndex;
  5206. this.dialogVisibleTool = true;
  5207. },
  5208. addSourceFunD(itemTaskIndex) {
  5209. this.sourcesData = [];
  5210. this.proVisible = false;
  5211. this.progress = 0;
  5212. this.inputShow = true;
  5213. this.taskCount = itemTaskIndex;
  5214. this.dialogVisibleSource = true;
  5215. },
  5216. setChapterIndex(itemTool, index, toolIndex) {
  5217. if (itemTool.toolData[index].type == 12) {
  5218. this.downloadFile2(itemTool.toolData[index], toolIndex)
  5219. return;
  5220. }
  5221. itemTool.sourceIndex = index;
  5222. this.setVHeight();
  5223. this.$forceUpdate();
  5224. },
  5225. setVHeight() {
  5226. this.$nextTick(function () {
  5227. setTimeout(() => {
  5228. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  5229. for (var j = 0; j < task.length; j++) {
  5230. let tool = task[j].toolArray;
  5231. for (var z = 0; z < tool.length; z++) {
  5232. let _tool = tool[z];
  5233. if (_tool.tool == 51) {
  5234. let ci = 0
  5235. for (var li = 0; li < _tool.toolData.length; li++) {
  5236. if (_tool.toolData[li].type != 12) {
  5237. ci++
  5238. }
  5239. }
  5240. if (ci == 0) {
  5241. _tool.isNoFile = true;
  5242. document.getElementsByClassName(
  5243. "vedioList" + j + z
  5244. )[0].style.height = 650 + "px";
  5245. document.getElementsByClassName(
  5246. "vedioList" + j + z
  5247. )[0].style.width = "100%";
  5248. } else {
  5249. _tool.isNoFile = false;
  5250. var a = document.getElementsByClassName("box_course" + j + z)[0] ? document.getElementsByClassName("box_course" + j + z)[0]
  5251. .offsetHeight : 650;
  5252. document.getElementsByClassName(
  5253. "vedioList" + j + z
  5254. )[0].style.height = a + "px";
  5255. document.getElementsByClassName(
  5256. "vedioList" + j + z
  5257. )[0].style.width = "calc(100% - 83%)";
  5258. }
  5259. this.$forceUpdate();
  5260. }
  5261. }
  5262. }
  5263. }, 0);
  5264. });
  5265. },
  5266. addSourceData() {
  5267. if (!this.sourcesData.length) {
  5268. this.$message.error("请上传资源");
  5269. return;
  5270. }
  5271. let ic = 0
  5272. for (let i = 0; i < this.sourcesData.length; i++) {
  5273. if (this.sourcesData[i].type != 12) {
  5274. ic = i
  5275. break;
  5276. }
  5277. }
  5278. if (this.editSourceType == 1) {
  5279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5280. this.taskCount
  5281. ].toolArray.push({
  5282. tool: 51,
  5283. toolDetail: "",
  5284. toolPhoto: "",
  5285. toolEdit: false,
  5286. toolId: this.guid(),
  5287. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  5288. sourceIndex: ic,
  5289. });
  5290. } else {
  5291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5292. this.taskCount
  5293. ].toolArray[this.toolIndex].toolData = JSON.parse(
  5294. JSON.stringify(this.sourcesData)
  5295. );
  5296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5297. this.taskCount
  5298. ].toolArray[this.toolIndex].sourceIndex = ic;
  5299. }
  5300. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5301. this.editSourceType = 1;
  5302. this.sourcesData = [];
  5303. this.dialogVisibleSource = false;
  5304. this.dialogVisibleTool = false;
  5305. this.$forceUpdate();
  5306. this.setVHeight();
  5307. },
  5308. openToolFun(tool, taskCount, i) {
  5309. this.taskCount = taskCount;
  5310. this.toolIndex = i;
  5311. if (tool == 48) {
  5312. const array =
  5313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5314. .toolArray[i].toolPhoto;
  5315. let txt = "";
  5316. if (array.length) {
  5317. txt = JSON.parse(JSON.stringify(array[0].content));
  5318. }
  5319. // for (var l = 0; l < array.length; l++) {
  5320. // let _uid = array[l].userid
  5321. // if (_uid == this.userid) {
  5322. // txt = JSON.parse(JSON.stringify(array[l].content))
  5323. // break;
  5324. // }
  5325. // }
  5326. this.tableJson.text = txt
  5327. ? JSON.parse(txt)
  5328. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5329. .toolArray[i].table
  5330. ? JSON.parse(
  5331. JSON.stringify(
  5332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5333. .toolArray[i].table
  5334. )
  5335. )
  5336. : "";
  5337. // this.tableJson.text = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table ? JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount].toolArray[i].table)) : ''
  5338. this.dialogVisibleTable = true;
  5339. } else if (tool == 15) {
  5340. this.answerQ = JSON.parse(
  5341. JSON.stringify(
  5342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5343. .toolArray[i].answerQ
  5344. )
  5345. );
  5346. this.answerDialogVisible = true;
  5347. } else if (tool == 52) {
  5348. const array =
  5349. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5350. .toolArray[i].toolPhoto;
  5351. let txt = "";
  5352. if (array.length) {
  5353. txt = JSON.parse(JSON.stringify(array[0].content));
  5354. }
  5355. // for (var l = 0; l < array.length; l++) {
  5356. // let _uid = array[l].userid
  5357. // if (_uid == this.userid) {
  5358. // txt = JSON.parse(JSON.stringify(array[l].content))
  5359. // break;
  5360. // }
  5361. // }
  5362. this.tableJson.text = txt
  5363. ? JSON.parse(txt)
  5364. : JSON.parse(
  5365. JSON.stringify(
  5366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5367. .toolArray[i].text
  5368. )
  5369. );
  5370. this.dialogVisibleText3 = true;
  5371. } else if (tool == 56) {
  5372. const array =
  5373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5374. .toolArray[i].toolPhoto;
  5375. let txt = JSON.stringify([]);
  5376. for (var l = 0; l < array.length; l++) {
  5377. let _uid = array[l].userid;
  5378. if (_uid == this.userid) {
  5379. txt = JSON.parse(JSON.stringify(array[l].content));
  5380. break;
  5381. }
  5382. }
  5383. this.radio = JSON.parse(txt);
  5384. this.askJson = JSON.parse(
  5385. JSON.stringify(
  5386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5387. .toolArray[i].askJson
  5388. )
  5389. );
  5390. this.dialogVisibleVote2 = true;
  5391. } else {
  5392. window.parent.postMessage(
  5393. {
  5394. tools: tool + "s",
  5395. cid: this.cid,
  5396. stage: this.unitIndex,
  5397. task: taskCount,
  5398. tool: i,
  5399. },
  5400. "*"
  5401. );
  5402. if (tool == 1 || tool == 3 || tool == 6) {
  5403. this.setPeople(this.unitIndex, taskCount, this.userid);
  5404. }
  5405. }
  5406. },
  5407. previewImg(url) {
  5408. this.$hevueImgPreview(url);
  5409. },
  5410. scrollChange() {
  5411. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5412. },
  5413. openTable(content) {
  5414. this.tableJson.text = JSON.parse(content);
  5415. this.dialogVisibleTable2 = true;
  5416. },
  5417. addTaskBorder() {
  5418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5419. task: "",
  5420. people: "",
  5421. time: "",
  5422. taskDetail: "",
  5423. chapterData: [],
  5424. toolText: "",
  5425. toolChoose: [
  5426. {
  5427. tool: [],
  5428. toolDetail: "",
  5429. toolType: 0,
  5430. askCount: 1,
  5431. askTitle: "",
  5432. askJson: [
  5433. {
  5434. askstitle: "",
  5435. askItem: 1,
  5436. checkList: [],
  5437. },
  5438. ],
  5439. },
  5440. ],
  5441. toolArray: [],
  5442. isShowTools: false,
  5443. askCount: 1,
  5444. isFold: 0,
  5445. askTitle: "",
  5446. askJson: [
  5447. {
  5448. askstitle: "",
  5449. askItem: 1,
  5450. checkList: [],
  5451. },
  5452. ],
  5453. checkJson: [
  5454. {
  5455. checkCount: [],
  5456. checkPerent: [],
  5457. },
  5458. ],
  5459. homeworkList: [],
  5460. });
  5461. },
  5462. add(e, i) {
  5463. var el = e.currentTarget;
  5464. el.getElementsByTagName("input")[0].click();
  5465. },
  5466. fold(i, e, type) {
  5467. var a = e.currentTarget.parentElement.parentElement;
  5468. var b = e.currentTarget.parentElement;
  5469. if (type == 1) {
  5470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5471. a.className += " smallTaskBorder";
  5472. b.className += " funBlockTop";
  5473. } else {
  5474. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5475. a.className = "taskBorder";
  5476. b.className = "funBlock";
  5477. }
  5478. console.log(e);
  5479. },
  5480. deleteHomeworkBox(unitIndex, index, i) {
  5481. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5482. this.taskCount
  5483. ].homeworkList.splice(i, 1);
  5484. },
  5485. getStudent() {
  5486. let params = {
  5487. oid: this.oid,
  5488. cu: "",
  5489. cn: this.searchPeople,
  5490. };
  5491. this.ajax
  5492. .get(this.$store.state.api + "selectStudentAdd", params)
  5493. .then((res) => {
  5494. this.studentJuri = res.data[0];
  5495. })
  5496. .catch((err) => {
  5497. this.isLoading = false;
  5498. console.error(err);
  5499. });
  5500. },
  5501. onPlayerPlay() { },
  5502. getTeacher() {
  5503. let params = {
  5504. org:
  5505. this.org && this.org != "undefined" && this.org != "null"
  5506. ? this.org
  5507. : "",
  5508. oid: this.oid,
  5509. cu: "",
  5510. cn: this.searchTN,
  5511. page: this.page,
  5512. pageSize: this.pageSize,
  5513. };
  5514. this.ajax
  5515. .get(
  5516. this.$store.state.api +
  5517. (this.org && this.org != "undefined" && this.org != "null"
  5518. ? "selectUserByOidS2"
  5519. : "selectUserByOidS2"),
  5520. params
  5521. )
  5522. .then((res) => {
  5523. let teacherJuri = res.data[0];
  5524. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  5525. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  5526. for (var i = 0; i < teacherJuri.length; i++) {
  5527. if (teacherJuri[i].userid == this.userid) {
  5528. teacherJuri.splice(i, 1);
  5529. break;
  5530. }
  5531. }
  5532. this.teacherJuri = teacherJuri;
  5533. })
  5534. .catch((err) => {
  5535. console.error(err);
  5536. });
  5537. },
  5538. setMan() {
  5539. let _unitJosn = this.unitJson;
  5540. // let teacherJuri = this.teacherJuri2;
  5541. this.ManAarray = [];
  5542. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  5543. this.checkboxList3.splice(
  5544. this.checkboxList3.indexOf(this.courseUserid),
  5545. 1
  5546. );
  5547. }
  5548. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  5549. if (array.indexOf(this.userid) == -1) {
  5550. array.push(this.userid);
  5551. }
  5552. if (array.indexOf(this.courseUserid) == -1) {
  5553. array.push(this.courseUserid);
  5554. }
  5555. for (var i = 0; i < _unitJosn.length; i++) {
  5556. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  5557. for (var j = 0; j < _chapter.length; j++) {
  5558. let _task = _chapter[j];
  5559. if (array.indexOf(_task.people) == -1) {
  5560. _task.people = "";
  5561. }
  5562. if (_task.tcMember && _task.tcMember.length) {
  5563. let _tc = _task.tcMember;
  5564. let _tc2 = [];
  5565. for (var k = 0; k < _tc.length; k++) {
  5566. if (array.indexOf(_tc[k]) != -1) {
  5567. _tc2.push(_tc[k]);
  5568. }
  5569. }
  5570. _task.tcMember = _tc2;
  5571. }
  5572. }
  5573. }
  5574. let params = {
  5575. uid: array.join(","),
  5576. };
  5577. this.ajax
  5578. .get(this.$store.state.api + "getAllUserById", params)
  5579. .then((res) => {
  5580. let teacherJuri = res.data[0];
  5581. this.ManAarray = teacherJuri;
  5582. })
  5583. .catch((err) => {
  5584. console.error(err);
  5585. });
  5586. },
  5587. searchStudent() {
  5588. this.getStudent();
  5589. },
  5590. //获取班级列表
  5591. getClass() {
  5592. let params = {
  5593. oid: this.oid,
  5594. };
  5595. this.ajax
  5596. .get(this.$store.state.api + "selectClassBySchool", params)
  5597. .then((res) => {
  5598. this.grade = res.data[0];
  5599. })
  5600. .catch((err) => {
  5601. this.isLoading = false;
  5602. console.error(err);
  5603. });
  5604. },
  5605. getChapterData(e, i, j, ic, type) {
  5606. e.stopPropagation();
  5607. this.updataC = true;
  5608. this.icc = ic;
  5609. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5610. console.log("还不能下载图片喔");
  5611. }
  5612. },
  5613. getChapterData2(e, ic, type) {
  5614. e.stopPropagation();
  5615. this.updataC = true;
  5616. this.icc = ic;
  5617. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5618. console.log("还不能下载图片喔");
  5619. }
  5620. },
  5621. deleteChapterData(e, i, j, ic, taskI) {
  5622. e.stopPropagation();
  5623. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5624. },
  5625. deleteChapterData2(e, ic) {
  5626. e.stopPropagation();
  5627. this.sourcesData.splice(ic, 1);
  5628. },
  5629. updataVideoT(e, i, j, ic) {
  5630. e.stopPropagation();
  5631. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5632. ic
  5633. ].name = e.target.value;
  5634. },
  5635. updataVideoT2(e, ic) {
  5636. e.stopPropagation();
  5637. this.sourcesData[ic].name = e.target.value;
  5638. },
  5639. upCd(e, i, j, ic) {
  5640. e.stopPropagation();
  5641. if (ic == 0) {
  5642. return;
  5643. }
  5644. var a =
  5645. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5646. ic - 1
  5647. ];
  5648. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5649. ic - 1
  5650. ] =
  5651. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5652. ic
  5653. ];
  5654. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5655. a;
  5656. },
  5657. downCd(e, i, j, ic) {
  5658. e.stopPropagation();
  5659. if (
  5660. ic ==
  5661. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  5662. .length -
  5663. 1
  5664. ) {
  5665. return;
  5666. }
  5667. var a =
  5668. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5669. ic + 1
  5670. ];
  5671. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5672. ic + 1
  5673. ] =
  5674. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5675. ic
  5676. ];
  5677. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5678. a;
  5679. },
  5680. upCd2(e, ic) {
  5681. e.stopPropagation();
  5682. if (ic == 0) {
  5683. return;
  5684. }
  5685. var a = this.sourcesData[ic - 1];
  5686. this.sourcesData[ic - 1] = this.sourcesData[ic];
  5687. this.sourcesData[ic] = a;
  5688. this.$forceUpdate();
  5689. },
  5690. downCd2(e, ic) {
  5691. e.stopPropagation();
  5692. if (ic == this.sourcesData.length - 1) {
  5693. return;
  5694. }
  5695. var a = this.sourcesData[ic + 1];
  5696. this.sourcesData[ic + 1] = this.sourcesData[ic];
  5697. this.sourcesData[ic] = a;
  5698. this.$forceUpdate();
  5699. },
  5700. addWork() {
  5701. let cPan = 1;
  5702. for (var i = 0; i < this.unitJson.length; i++) {
  5703. for (
  5704. var j = 0;
  5705. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5706. j++
  5707. ) {
  5708. if (
  5709. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5710. ) {
  5711. for (
  5712. var z = 0;
  5713. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5714. z++
  5715. ) {
  5716. if (
  5717. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5718. .length
  5719. ) {
  5720. this.$message.error("请把工具添加完整");
  5721. cPan = 2;
  5722. break;
  5723. }
  5724. }
  5725. }
  5726. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5727. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5728. i
  5729. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5730. return ele.value != "";
  5731. });
  5732. }
  5733. }
  5734. }
  5735. if (cPan == 2) {
  5736. if (this.steps != 3) {
  5737. this.steps--;
  5738. }
  5739. return;
  5740. }
  5741. for (var i = 0; i < this.unitJson.length; i++) {
  5742. delete this.unitJson[i].isUpdate;
  5743. }
  5744. let params = [
  5745. {
  5746. uid: this.userid,
  5747. title: this.courseName.replace(/%/g, "%25"),
  5748. brief: this.courseText.replace(/%/g, "%25"),
  5749. cover:
  5750. this.cover.length > 0
  5751. ? JSON.stringify(this.cover)
  5752. : JSON.stringify([
  5753. {
  5754. name: "noBanner.jpg",
  5755. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5756. uid: 1656409780264,
  5757. status: "success",
  5758. },
  5759. ]),
  5760. evaId: this.evalua,
  5761. astudent:
  5762. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5763. see: this.isTeacherSee == true ? 1 : 0,
  5764. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5765. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5766. courseType: JSON.stringify(this.courseTypeId),
  5767. ateacher:
  5768. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5769. },
  5770. ];
  5771. this.ajax
  5772. .post(this.$store.state.api + "addCourseWorkNew22", params)
  5773. .then((res) => {
  5774. console.log(this.steps);
  5775. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5776. this.$message({
  5777. message: "新增成功",
  5778. type: "success",
  5779. });
  5780. }
  5781. this.number = res.data.ordernumber;
  5782. this.courseId = res.data.courseId;
  5783. this.cid = res.data.courseId;
  5784. this.courseUserid = this.userid;
  5785. this.islogin = true;
  5786. this.selectCourseDetail();
  5787. })
  5788. .catch((err) => {
  5789. this.$message.error("网络不佳");
  5790. console.error(err);
  5791. });
  5792. },
  5793. goCourse() {
  5794. window.parent.postMessage(
  5795. {
  5796. cid: this.courseId,
  5797. type: "1",
  5798. },
  5799. "*"
  5800. );
  5801. },
  5802. updateWork2() {
  5803. let _unitIndex = this.unitIndex;
  5804. let cPan = 1;
  5805. for (
  5806. var j = 0;
  5807. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5808. j++
  5809. ) {
  5810. // if (
  5811. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  5812. // ) {
  5813. // this.$message.error("请填写任务名称");
  5814. // cPan = 2
  5815. // break;
  5816. // }
  5817. // if (
  5818. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  5819. // ) {
  5820. // this.$message.error("请填写负责人");
  5821. // cPan = 2
  5822. // break;
  5823. // }
  5824. // if (
  5825. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  5826. // ) {
  5827. // this.$message.error("请填写任务起止时间");
  5828. // cPan = 2
  5829. // break;
  5830. // }
  5831. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5832. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5833. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5834. (ele) => {
  5835. return ele.value != "";
  5836. }
  5837. );
  5838. }
  5839. }
  5840. if (cPan == 2) {
  5841. if (this.steps != 3) {
  5842. if (this.type == 2 && this.steps == 5) {
  5843. this.steps == 3;
  5844. } else {
  5845. this.steps--;
  5846. }
  5847. }
  5848. return;
  5849. }
  5850. let params = [
  5851. {
  5852. cid: this.cid,
  5853. chapters: JSON.stringify(this.unitJson),
  5854. uid: this.userid,
  5855. unitIndex: _unitIndex,
  5856. },
  5857. ];
  5858. this.ajax
  5859. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5860. .then((res) => {
  5861. if (
  5862. this.steps != 1 &&
  5863. this.steps != 2 &&
  5864. this.steps != 3 &&
  5865. this.steps != 4
  5866. ) {
  5867. this.$message({
  5868. message: "修改成功",
  5869. type: "success",
  5870. });
  5871. }
  5872. this.courseId = this.cid;
  5873. })
  5874. .catch((err) => {
  5875. this.$message.error("网络不佳");
  5876. console.error(err);
  5877. });
  5878. },
  5879. updateWork() {
  5880. let cPan = 1;
  5881. for (var i = 0; i < this.unitJson.length; i++) {
  5882. for (
  5883. var j = 0;
  5884. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5885. j++
  5886. ) {
  5887. // if (
  5888. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  5889. // ) {
  5890. // this.$message.error("请填写任务名称");
  5891. // cPan = 2
  5892. // break;
  5893. // }
  5894. // if (
  5895. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  5896. // ) {
  5897. // this.$message.error("请填写负责人");
  5898. // cPan = 2
  5899. // break;
  5900. // }
  5901. // if (
  5902. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  5903. // ) {
  5904. // this.$message.error("请填写任务起止时间");
  5905. // cPan = 2
  5906. // break;
  5907. // }
  5908. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5909. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5910. i
  5911. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5912. return ele.value != "";
  5913. });
  5914. }
  5915. }
  5916. }
  5917. if (cPan == 2) {
  5918. if (this.steps != 3) {
  5919. this.steps--;
  5920. }
  5921. return;
  5922. }
  5923. for (var i = 0; i < this.unitJson.length; i++) {
  5924. delete this.unitJson[i].isUpdate;
  5925. }
  5926. let params = [
  5927. {
  5928. cid: this.cid,
  5929. title: this.courseName.replace(/%/g, "%25"),
  5930. brief: this.courseText.replace(/%/g, "%25"),
  5931. cover:
  5932. this.cover.length > 0
  5933. ? JSON.stringify(this.cover)
  5934. : JSON.stringify([
  5935. {
  5936. name: "noBanner.jpg",
  5937. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5938. uid: 1656409780264,
  5939. status: "success",
  5940. },
  5941. ]),
  5942. evaId: this.evalua,
  5943. astudent:
  5944. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5945. see: this.isTeacherSee == true ? 1 : 0,
  5946. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5947. template: this.myWord != "undefined" ? this.myWord : [],
  5948. uid: this.userid,
  5949. courseType: JSON.stringify(this.courseTypeId),
  5950. ateacher:
  5951. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5952. },
  5953. ];
  5954. this.ajax
  5955. .post(this.$store.state.api + "updateStudentWorkNew22", params)
  5956. .then((res) => {
  5957. if (
  5958. this.steps != 1 &&
  5959. this.steps != 2 &&
  5960. this.steps != 3 &&
  5961. this.steps != 4
  5962. ) {
  5963. if (this.cidttt == 1) {
  5964. this.$message({
  5965. message: "修改成功",
  5966. type: "success",
  5967. });
  5968. } else {
  5969. this.$message({
  5970. message: "新增成功",
  5971. type: "success",
  5972. });
  5973. }
  5974. }
  5975. this.checkboxListPeople = JSON.parse(
  5976. JSON.stringify(this.checkboxList3)
  5977. );
  5978. this.number = this.nbOrder;
  5979. this.courseId = this.cid;
  5980. })
  5981. .catch((err) => {
  5982. this.$message.error("网络不佳");
  5983. console.error(err);
  5984. });
  5985. },
  5986. guid() {
  5987. var _num,
  5988. i,
  5989. _guid = "";
  5990. for (i = 0; i < 32; i++) {
  5991. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5992. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5993. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5994. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5995. _guid += "-";
  5996. }
  5997. }
  5998. return _guid;
  5999. },
  6000. insertWord() {
  6001. this.dialogVisible1 = true;
  6002. this.updateBoolean2 = false;
  6003. this.tTitle = "";
  6004. this.tdetail = "";
  6005. },
  6006. addWord() {
  6007. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6008. name: this.tTitle,
  6009. content: this.tdetail,
  6010. uid: this.guid(),
  6011. });
  6012. this.dialogVisible1 = false;
  6013. },
  6014. upWord() { },
  6015. selectWord(uid, i, c) {
  6016. this.dialogVisible1 = true;
  6017. this.updateBoolean2 = true;
  6018. if (
  6019. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6020. ) {
  6021. this.tTitle =
  6022. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6023. this.tdetail =
  6024. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6025. }
  6026. },
  6027. isAddPP() {
  6028. if (this.checkboxList.length > 0) {
  6029. this.$message({
  6030. message: "添加成功",
  6031. type: "success",
  6032. });
  6033. this.dialogVisible3 = false;
  6034. } else {
  6035. this.$message({
  6036. message: "请添加项目成员",
  6037. type: "error",
  6038. });
  6039. }
  6040. },
  6041. isAddClass() {
  6042. this.dialogVisibleClass = false;
  6043. },
  6044. isAddPPTeacher() {
  6045. this.dialogVisibleMember = false;
  6046. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  6047. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  6048. // array.push(this.courseUserid || this.userid)
  6049. // }
  6050. this.setMan();
  6051. },
  6052. isAddPPTcTeacher() {
  6053. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6054. this.taskCount
  6055. ].tcMember = this.tcMember;
  6056. this.dialogVisibleTcMember = false;
  6057. },
  6058. addTcMember(index) {
  6059. this.taskCount = index;
  6060. // this.searchTN = ""
  6061. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6062. index
  6063. ].tcMember
  6064. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6065. : [];
  6066. const people =
  6067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  6068. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  6069. for (var i = 0; i < ManAarray.length; i++) {
  6070. if (ManAarray[i].userid === people) {
  6071. ManAarray.splice(i, 1);
  6072. }
  6073. }
  6074. this.tcMember = tcMember;
  6075. this.ManAarray2 = ManAarray;
  6076. // this.getTeacher();
  6077. this.dialogVisibleTcMember = true;
  6078. },
  6079. peopleChange(people, index) {
  6080. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6081. index
  6082. ].tcMember
  6083. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6084. : [];
  6085. if (tcMember.indexOf(people) != -1) {
  6086. tcMember.splice(tcMember.indexOf(people), 1);
  6087. }
  6088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  6089. tcMember;
  6090. },
  6091. getTemplate() {
  6092. let params = {
  6093. oid: this.oid,
  6094. };
  6095. this.ajax
  6096. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6097. .then((res) => {
  6098. this.templateArray = res.data[0];
  6099. this.getTemplateOrg();
  6100. this.$forceUpdate();
  6101. })
  6102. .catch((err) => { });
  6103. },
  6104. getTemplateOrg() {
  6105. let params = {
  6106. oid: this.org,
  6107. };
  6108. this.ajax
  6109. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6110. .then((res) => {
  6111. if (res.data[0].length) {
  6112. let ta = res.data[0].filter(el => {
  6113. return el.oid
  6114. });
  6115. this.templateArray = [...ta, ...this.templateArray];
  6116. this.templateArray = this.templateArray.sort(function (a, b) {
  6117. return b.create_at < a.create_at ? -1 : 1
  6118. })
  6119. }
  6120. this.$forceUpdate();
  6121. })
  6122. .catch((err) => { });
  6123. },
  6124. clearChoose() {
  6125. this.clearArray.splice(this.templateC.id, 1);
  6126. this.dialogVisible2 = false;
  6127. },
  6128. clearAttText() {
  6129. this.AttText = {
  6130. title: "",
  6131. text: "",
  6132. };
  6133. this.dialogVisible6 = false;
  6134. },
  6135. clearLine() {
  6136. this.line = "";
  6137. this.dialogVisible7 = false;
  6138. },
  6139. checkTemplate(res) {
  6140. let _this = this;
  6141. _this
  6142. .$confirm("确定选择此模板吗?", "提示", {
  6143. confirmButtonText: "确定",
  6144. cancelButtonText: "取消",
  6145. type: "warning",
  6146. })
  6147. .then(() => {
  6148. _this.unitJson = JSON.parse(res.chapters);
  6149. _this.steps++;
  6150. setTimeout(() => {
  6151. this.checkEva(this.checkId);
  6152. }, 1000);
  6153. })
  6154. .catch(() => {
  6155. return;
  6156. });
  6157. },
  6158. checkTemplate1(w) {
  6159. this.steps++;
  6160. },
  6161. checkTemplate2() {
  6162. let _this = this;
  6163. _this
  6164. .$confirm("确定选择空模板吗?", "提示", {
  6165. confirmButtonText: "确定",
  6166. cancelButtonText: "取消",
  6167. type: "warning",
  6168. })
  6169. .then(() => {
  6170. _this.unitJson = [
  6171. {
  6172. dyName: "", //单元标题
  6173. chapterInfo: [
  6174. {
  6175. isread: false,
  6176. chapterid: this.guid(),
  6177. title: "",
  6178. courseName: "",
  6179. taskJson: [
  6180. {
  6181. task: "",
  6182. people: "",
  6183. time: "",
  6184. taskDetail: "",
  6185. chapterData: [],
  6186. toolText: "",
  6187. toolChoose: [
  6188. {
  6189. tool: [],
  6190. toolDetail: "",
  6191. toolType: 0,
  6192. askCount: 1,
  6193. askTitle: "",
  6194. askJson: [
  6195. {
  6196. askstitle: "",
  6197. askItem: 1,
  6198. checkList: [],
  6199. },
  6200. ],
  6201. },
  6202. ],
  6203. toolArray: [],
  6204. isShowTools: false,
  6205. askCount: 1,
  6206. isFold: 0,
  6207. askTitle: "",
  6208. askJson: [
  6209. {
  6210. askstitle: "",
  6211. askItem: 1,
  6212. checkList: [],
  6213. },
  6214. ],
  6215. checkJson: [
  6216. {
  6217. checkCount: [],
  6218. checkPerent: [],
  6219. },
  6220. ],
  6221. homeworkList: [],
  6222. },
  6223. ],
  6224. itemCount: 1,
  6225. fileList1: [],
  6226. video: [],
  6227. testData: [],
  6228. pData: [],
  6229. templateArray: [],
  6230. },
  6231. ],
  6232. },
  6233. ];
  6234. this.steps++;
  6235. })
  6236. .catch(() => {
  6237. return;
  6238. });
  6239. },
  6240. wordNext() {
  6241. this.dialogVisible2 = false;
  6242. },
  6243. isAddOrUpdateAttText() {
  6244. if (this.AttTextType == 0) {
  6245. this.addAttTextMessage();
  6246. } else {
  6247. this.updateAttText();
  6248. }
  6249. },
  6250. isAddOrUpdateLine() {
  6251. if (!this.lineTitle) {
  6252. this.$message.error("请填写链接标题");
  6253. return;
  6254. }
  6255. if (this.lineType == 0) {
  6256. this.addLine();
  6257. } else {
  6258. this.updateLine();
  6259. }
  6260. },
  6261. addAttTextMessage() {
  6262. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6263. // this.taskCount
  6264. // ].chapterData.push({
  6265. // name: this.AttText.title,
  6266. // url: this.AttText.text,
  6267. // type: 6,
  6268. // });
  6269. // this.imgChange1(null, null, 6, this.taskCount);
  6270. // this.dialogVisible6 = false;
  6271. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6272. // tool: 51,
  6273. // toolDetail: "",
  6274. // toolPhoto: "",
  6275. // toolEdit: false,
  6276. // toolId: this.guid(),
  6277. // toolData: {
  6278. // name: this.AttText.title,
  6279. // url: this.AttText.text,
  6280. // type: 6,
  6281. // }
  6282. // });
  6283. this.sourcesData.push({
  6284. name: this.AttText.title,
  6285. url: this.AttText.text,
  6286. type: 6,
  6287. });
  6288. this.dialogVisible6 = false;
  6289. // this.dialogVisibleSource = false;
  6290. },
  6291. selectAttText(itemTaskIndex, i) {
  6292. this.AttText.title =
  6293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6294. itemTaskIndex
  6295. ].chapterData[i].name;
  6296. this.AttText.text =
  6297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6298. itemTaskIndex
  6299. ].chapterData[i].url;
  6300. this.taskCount = itemTaskIndex;
  6301. this.AttTextIndex = i;
  6302. this.AttTextType = 1;
  6303. this.dialogVisible6 = true;
  6304. },
  6305. selectAttText2(i) {
  6306. this.AttText.title = this.sourcesData[i].name;
  6307. this.AttText.text = this.sourcesData[i].url;
  6308. this.AttTextIndex = i;
  6309. this.AttTextType = 1;
  6310. this.dialogVisible6 = true;
  6311. },
  6312. updateAttText() {
  6313. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6314. // this.taskCount
  6315. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6316. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6317. // this.taskCount
  6318. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6319. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  6320. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  6321. this.dialogVisible6 = false;
  6322. },
  6323. addLine() {
  6324. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6325. // this.lineCount
  6326. // ].chapterData.push({
  6327. // name: "链接",
  6328. // title: this.lineTitle,
  6329. // url: this.line,
  6330. // type: 8,
  6331. // });
  6332. // this.imgChange1(null, null, 8, this.lineCount);
  6333. // this.dialogVisible7 = false;
  6334. let src = "";
  6335. if (
  6336. this.line.indexOf("https://") == -1 &&
  6337. this.line.indexOf("http://") == -1
  6338. ) {
  6339. src = "https://" + this.line;
  6340. } else {
  6341. src = this.line;
  6342. }
  6343. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6344. // tool: 51,
  6345. // toolDetail: "",
  6346. // toolPhoto: "",
  6347. // toolEdit: false,
  6348. // toolId: this.guid(),
  6349. // toolData: {
  6350. // name: "链接",
  6351. // // title: this.lineTitle,
  6352. // url: this.line,
  6353. // src: src,
  6354. // type: 8,
  6355. // }
  6356. // });
  6357. this.sourcesData.push({
  6358. name: "链接",
  6359. title: this.lineTitle,
  6360. url: this.line,
  6361. src: src,
  6362. type: 8,
  6363. });
  6364. this.dialogVisible7 = false;
  6365. // this.dialogVisibleSource = false;
  6366. },
  6367. selectLine(itemTaskIndex, i) {
  6368. this.line =
  6369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6370. itemTaskIndex
  6371. ].chapterData[i].url;
  6372. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6373. itemTaskIndex
  6374. ].chapterData[i].title
  6375. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6376. .chapterData[i].title
  6377. : "";
  6378. this.taskCount = itemTaskIndex;
  6379. this.lineCount = i;
  6380. this.lineType = 1;
  6381. this.dialogVisible7 = true;
  6382. },
  6383. selectLine2(i) {
  6384. this.line = this.sourcesData[i].url;
  6385. this.lineTitle = this.sourcesData[i].title
  6386. ? this.sourcesData[i].title
  6387. : "";
  6388. this.lineCount = i;
  6389. this.lineType = 1;
  6390. this.dialogVisible7 = true;
  6391. },
  6392. updateLine() {
  6393. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6394. // this.taskCount
  6395. // ].chapterData[this.lineCount].url = this.line;
  6396. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6397. // this.taskCount
  6398. // ].chapterData[this.lineCount].title = this.lineTitle;
  6399. if (!this.lineTitle) {
  6400. this.$message.error("请填写链接标题");
  6401. return;
  6402. }
  6403. this.sourcesData[this.lineCount].url = this.line;
  6404. this.sourcesData[this.lineCount].title = this.lineTitle;
  6405. this.dialogVisible7 = false;
  6406. },
  6407. addPP() {
  6408. this.dialogVisible3 = true;
  6409. },
  6410. goTo(path) {
  6411. this.$router.push(path);
  6412. },
  6413. openTools(itemTaskIndex, i, toolIndex) {
  6414. this.toolIndex = toolIndex;
  6415. this.taskCount = itemTaskIndex;
  6416. if (i == 4) {
  6417. if (toolIndex == null) {
  6418. var a =
  6419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6420. .chapterData;
  6421. for (var i = 0; i < a.length; i++) {
  6422. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6423. this.askJson =
  6424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6425. itemTaskIndex
  6426. ].chapterData[i].askJson;
  6427. }
  6428. }
  6429. } else {
  6430. this.askJson = JSON.parse(
  6431. JSON.stringify(
  6432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6433. itemTaskIndex
  6434. ].toolChoose[toolIndex]
  6435. )
  6436. );
  6437. }
  6438. this.dialogVisible5 = true;
  6439. } else if (i == 45) {
  6440. if (
  6441. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6442. .toolChoose[toolIndex].testJson
  6443. ) {
  6444. this.testJson = JSON.parse(
  6445. JSON.stringify(
  6446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6447. itemTaskIndex
  6448. ].toolChoose[toolIndex].testJson
  6449. )
  6450. );
  6451. } else {
  6452. var testJson = {
  6453. testCount: 1,
  6454. testTitle: "",
  6455. testJson: [
  6456. {
  6457. teststitle: "",
  6458. testItem: 1,
  6459. checkList: [],
  6460. answer: [],
  6461. type: "1",
  6462. },
  6463. ],
  6464. };
  6465. this.testJson = testJson;
  6466. }
  6467. this.dialogVisibleChoice = true;
  6468. } else if (i == 47) {
  6469. if (
  6470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6471. .toolChoose[toolIndex].sentenceList
  6472. ) {
  6473. this.sentenceList = JSON.parse(
  6474. JSON.stringify(
  6475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6476. itemTaskIndex
  6477. ].toolChoose[toolIndex].sentenceList
  6478. )
  6479. );
  6480. } else {
  6481. var sentenceList = [
  6482. {
  6483. sentenceTitle: "",
  6484. addSentence: [],
  6485. rightAnswer: [],
  6486. },
  6487. ];
  6488. this.sentenceList = sentenceList;
  6489. }
  6490. this.dialogVisibleSentence = true;
  6491. } else if (i == 48) {
  6492. if (
  6493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6494. .toolChoose[toolIndex].tableJson
  6495. ) {
  6496. this.tableJson = JSON.parse(
  6497. JSON.stringify(
  6498. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6499. itemTaskIndex
  6500. ].toolChoose[toolIndex].tableJson
  6501. )
  6502. );
  6503. } else {
  6504. var tableJson = {
  6505. text: "",
  6506. };
  6507. this.tableJson = tableJson;
  6508. }
  6509. this.dialogVisibleTable = true;
  6510. } else if (i == 49) {
  6511. if (
  6512. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6513. .toolChoose[toolIndex].groupJson
  6514. ) {
  6515. this.groupJson = JSON.parse(
  6516. JSON.stringify(
  6517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6518. itemTaskIndex
  6519. ].toolChoose[toolIndex].groupJson
  6520. )
  6521. );
  6522. } else {
  6523. var groupJson = {
  6524. group: [
  6525. {
  6526. name: "第1组",
  6527. },
  6528. ],
  6529. number: undefined,
  6530. islock: 1,
  6531. };
  6532. this.groupJson = groupJson;
  6533. }
  6534. this.dialogVisibleGroup = true;
  6535. } else if (i == 15) {
  6536. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6537. itemTaskIndex
  6538. ].toolChoose[toolIndex].answerQ
  6539. ? JSON.parse(
  6540. JSON.stringify(
  6541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6542. itemTaskIndex
  6543. ].toolChoose[toolIndex].answerQ
  6544. )
  6545. )
  6546. : "";
  6547. this.dialogVisible8 = true;
  6548. } else if (i == 40) {
  6549. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6550. itemTaskIndex
  6551. ].toolChoose[toolIndex].rateJson
  6552. ? JSON.parse(
  6553. JSON.stringify(
  6554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6555. itemTaskIndex
  6556. ].toolChoose[toolIndex].rateJson
  6557. )
  6558. )
  6559. : [
  6560. {
  6561. detail: "",
  6562. score: 5,
  6563. value: "",
  6564. },
  6565. ]; //{detail:"",score:5,value:""}
  6566. this.selectSteps = 1;
  6567. this.dialogVisibleRate = true;
  6568. } else if (i == 42) {
  6569. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6570. itemTaskIndex
  6571. ].toolChoose[toolIndex].answerQ
  6572. ? JSON.parse(
  6573. JSON.stringify(
  6574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6575. itemTaskIndex
  6576. ].toolChoose[toolIndex].answerQ
  6577. )
  6578. )
  6579. : "";
  6580. this.dialogVisibleMp3 = true;
  6581. } else if (i == 41) {
  6582. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6583. itemTaskIndex
  6584. ].toolChoose[toolIndex].selectJson
  6585. ? JSON.parse(
  6586. JSON.stringify(
  6587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6588. itemTaskIndex
  6589. ].toolChoose[toolIndex].selectJson
  6590. )
  6591. )
  6592. : {
  6593. url: "",
  6594. select: [],
  6595. answer: [],
  6596. };
  6597. this.selectSteps = 1;
  6598. this.dialogVisibleSelect = true;
  6599. }
  6600. },
  6601. chapAddTools(i) {
  6602. if (this.chapTools[0].tools.length == 0) {
  6603. this.chapTools[0].tools.push(i);
  6604. } else {
  6605. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6606. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6607. } else {
  6608. this.chapTools[0].tools.push(i);
  6609. }
  6610. }
  6611. this.$forceUpdate();
  6612. },
  6613. addChaptersDataTools() {
  6614. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6615. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6616. this.chapCount
  6617. ].chapterData.push({
  6618. name: this.chapTools[0].toolDetail,
  6619. url: this.chapTools[0].tools,
  6620. type: 7,
  6621. askJson: this.askJson,
  6622. });
  6623. } else {
  6624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6625. this.chapCount
  6626. ].chapterData.push({
  6627. name: this.chapTools[0].toolDetail,
  6628. url: this.chapTools[0].tools,
  6629. type: 7,
  6630. });
  6631. }
  6632. this.imgChange1(null, null, 7, this.chapCount);
  6633. this.dialogVisible4 = false;
  6634. },
  6635. addTools(i, itemTaskIndex, toolIndex) {
  6636. // if (
  6637. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6638. // .toolChoose[toolIndex].tool.length == 0
  6639. // ) {
  6640. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6641. // itemTaskIndex
  6642. // ].toolChoose[toolIndex].tool.push(i);
  6643. // } else {
  6644. // if (
  6645. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6646. // itemTaskIndex
  6647. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6648. // ) {
  6649. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6650. // itemTaskIndex
  6651. // ].toolChoose[toolIndex].tool.splice(
  6652. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6653. // itemTaskIndex
  6654. // ].toolChoose[toolIndex].tool.indexOf(i),
  6655. // 1
  6656. // );
  6657. // } else {
  6658. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6659. // itemTaskIndex
  6660. // ].toolChoose[toolIndex].tool.push(i);
  6661. // }
  6662. // console.log(
  6663. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6664. // .toolChoose[toolIndex].tool
  6665. // );
  6666. // }
  6667. if (i == 4) {
  6668. if (
  6669. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6670. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6672. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6673. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6674. .toolChoose[toolIndex].askJson[0].checkList < 2
  6675. ) {
  6676. this.openTools(itemTaskIndex, 4, toolIndex);
  6677. // this.$message({
  6678. // message: "请填写完整问卷内容",
  6679. // type: "error",
  6680. // });
  6681. return;
  6682. }
  6683. }
  6684. if (i == 45) {
  6685. if (
  6686. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6687. .toolChoose[toolIndex].testJson ||
  6688. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6689. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6691. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6692. ) {
  6693. this.openTools(itemTaskIndex, 45, toolIndex);
  6694. // this.$message({
  6695. // message: "请填写完整问卷内容",
  6696. // type: "error",
  6697. // });
  6698. return;
  6699. }
  6700. }
  6701. if (i == 47) {
  6702. if (
  6703. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6704. .toolChoose[toolIndex].sentenceList ||
  6705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6706. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6707. ) {
  6708. this.openTools(itemTaskIndex, 47, toolIndex);
  6709. return;
  6710. }
  6711. }
  6712. if (i == 48) {
  6713. if (
  6714. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6715. .toolChoose[toolIndex].tableJson
  6716. ) {
  6717. this.openTools(itemTaskIndex, 48, toolIndex);
  6718. return;
  6719. }
  6720. }
  6721. if (i == 49) {
  6722. if (
  6723. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6724. .toolChoose[toolIndex].groupJson
  6725. ) {
  6726. this.openTools(itemTaskIndex, 49, toolIndex);
  6727. return;
  6728. }
  6729. }
  6730. if (i == 15) {
  6731. if (
  6732. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6733. .toolChoose[toolIndex].answerQ ||
  6734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6735. .toolChoose[toolIndex].answerQ == ""
  6736. ) {
  6737. this.openTools(itemTaskIndex, 15, toolIndex);
  6738. // this.$message({
  6739. // message: "请填写问答内容",
  6740. // type: "error",
  6741. // });
  6742. return;
  6743. }
  6744. }
  6745. if (i == 40) {
  6746. if (
  6747. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6748. .toolChoose[toolIndex].rateJson ||
  6749. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6750. .toolChoose[toolIndex].rateJson.length
  6751. ) {
  6752. this.openTools(itemTaskIndex, 40, toolIndex);
  6753. return;
  6754. }
  6755. }
  6756. if (i == 41) {
  6757. if (
  6758. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6759. .toolChoose[toolIndex].selectJson ||
  6760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6761. .toolChoose[toolIndex].selectJson.url == "" ||
  6762. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6763. .toolChoose[toolIndex].selectJson.select.length ||
  6764. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6765. .toolChoose[toolIndex].selectJson.answer.length
  6766. ) {
  6767. this.openTools(itemTaskIndex, 41, toolIndex);
  6768. return;
  6769. }
  6770. }
  6771. if (i == 42) {
  6772. if (
  6773. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6774. .toolChoose[toolIndex].answerQ ||
  6775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6776. .toolChoose[toolIndex].answerQ == ""
  6777. ) {
  6778. this.openTools(itemTaskIndex, 42, toolIndex);
  6779. return;
  6780. }
  6781. }
  6782. if (
  6783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6784. .toolChoose[toolIndex].tool.length > 0
  6785. ) {
  6786. if (
  6787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6788. itemTaskIndex
  6789. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6790. ) {
  6791. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6792. itemTaskIndex
  6793. ].toolChoose[toolIndex].tool.splice(
  6794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6795. itemTaskIndex
  6796. ].toolChoose[toolIndex].tool.indexOf(i),
  6797. 1
  6798. );
  6799. } else {
  6800. // this.$message({
  6801. // message: "每个工具只能添加一个",
  6802. // type: "error",
  6803. // });
  6804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6805. itemTaskIndex
  6806. ].toolChoose[toolIndex].tool = [];
  6807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6808. itemTaskIndex
  6809. ].toolChoose[toolIndex].tool.push(i);
  6810. }
  6811. } else {
  6812. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6813. itemTaskIndex
  6814. ].toolChoose[toolIndex].tool.push(i);
  6815. }
  6816. this.$forceUpdate();
  6817. },
  6818. addAskList() {
  6819. this.askJson.askJson.push({
  6820. askstitle: "",
  6821. askItem: 1,
  6822. checkList: [],
  6823. });
  6824. this.askJson.askCount++;
  6825. },
  6826. addTestList() {
  6827. this.testJson.testJson.push({
  6828. teststitle: "",
  6829. testItem: 1,
  6830. checkList: [],
  6831. answer: [],
  6832. type: "1",
  6833. });
  6834. this.testJson.testCount++;
  6835. },
  6836. deleteAskList(index) {
  6837. this.askJson.askJson.splice(index, 1);
  6838. this.askJson.askCount--;
  6839. },
  6840. deleteTestList(index) {
  6841. this.testJson.testJson.splice(index, 1);
  6842. this.testJson.testCount--;
  6843. },
  6844. addcheckList(json) {
  6845. json.checkList.length++;
  6846. json.askItem++;
  6847. },
  6848. deletecheckList(json) {
  6849. json.checkList.length--;
  6850. json.askItem--;
  6851. },
  6852. addTcheckList(json) {
  6853. json.checkList.length++;
  6854. json.testItem++;
  6855. },
  6856. deleteTcheckList(json) {
  6857. json.checkList.length--;
  6858. json.testItem--;
  6859. },
  6860. checkTestType(type, json) {
  6861. json.type = type;
  6862. json.answer = [];
  6863. },
  6864. addSelectList(json) {
  6865. json.select.push("");
  6866. json.answer.push("");
  6867. },
  6868. deleteSelectList(json) {
  6869. // json.select.length--;
  6870. // json.answer.length--;
  6871. json.select.splice(json.select.length - 1, 1);
  6872. json.answer.splice(json.answer.length - 1, 1);
  6873. },
  6874. addAsk() {
  6875. if (this.askJson.askTitle === "") {
  6876. this.$message.error("标题不能为空!");
  6877. return;
  6878. }
  6879. var aj = this.askJson.askJson;
  6880. var b = 1;
  6881. for (var i = 0; i < aj.length; i++) {
  6882. if (aj[i].askstitle === "") {
  6883. var a = 1;
  6884. for (let index = 0; index < aj[i].askItem; index++) {
  6885. const element = aj[i].checkList[index]
  6886. ? aj[i].checkList[index]
  6887. : "";
  6888. if (element != "") {
  6889. b++;
  6890. this.$message.error(`请将题目${i + 1}填写完整。`);
  6891. return;
  6892. } else {
  6893. a++;
  6894. }
  6895. }
  6896. if (b == 1) {
  6897. this.$message.error("至少填写一个问题");
  6898. return;
  6899. }
  6900. } else if (aj[i].askstitle != "") {
  6901. for (let index = 0; index < aj[i].askItem; index++) {
  6902. const element = aj[i].checkList[index]
  6903. ? aj[i].checkList[index]
  6904. : "";
  6905. var index = 0;
  6906. for (var z = 0; z < aj[i].checkList.length; z++) {
  6907. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6908. if (checkC != "") {
  6909. index++;
  6910. } else {
  6911. this.$message.error(`题目${i + 1}选项不能为空!`);
  6912. return;
  6913. }
  6914. }
  6915. b++;
  6916. if (index < 2) {
  6917. this.$message.error("填写了的题目,选项至少要有两项!");
  6918. return;
  6919. }
  6920. }
  6921. }
  6922. }
  6923. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6924. var elc = el.checkList.filter((element) => {
  6925. return element != "";
  6926. });
  6927. return el.askstitle != "" && elc.length != 0;
  6928. });
  6929. this.dialogVisibleTool = false;
  6930. this.dialogVisibleVote = false;
  6931. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6932. this.taskCount
  6933. ].toolArray.push({
  6934. tool: 56,
  6935. toolDetail: "",
  6936. toolPhoto: "",
  6937. toolEdit: false,
  6938. toolId: this.guid(),
  6939. askJson: JSON.parse(JSON.stringify(this.askJson)),
  6940. });
  6941. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  6942. },
  6943. addTest() {
  6944. // if (this.testJson.testTitle === "") {
  6945. // this.$message.error("标题不能为空!");
  6946. // return;
  6947. // }
  6948. var aj = this.testJson.testJson;
  6949. var b = 1;
  6950. for (var i = 0; i < aj.length; i++) {
  6951. if (aj[i].teststitle === "") {
  6952. var a = 1;
  6953. for (let index = 0; index < aj[i].testItem; index++) {
  6954. const element = aj[i].checkList[index]
  6955. ? aj[i].checkList[index]
  6956. : "";
  6957. if (element != "") {
  6958. b++;
  6959. this.$message.error(`请将题目${i + 1}填写完整。`);
  6960. return;
  6961. } else {
  6962. a++;
  6963. }
  6964. }
  6965. if (b == 1) {
  6966. this.$message.error("至少填写一个问题");
  6967. return;
  6968. }
  6969. } else if (aj[i].teststitle != "") {
  6970. for (let index = 0; index < aj[i].testItem; index++) {
  6971. const element = aj[i].checkList[index]
  6972. ? aj[i].checkList[index]
  6973. : "";
  6974. var index = 0;
  6975. for (var z = 0; z < aj[i].checkList.length; z++) {
  6976. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6977. if (checkC != "") {
  6978. index++;
  6979. } else {
  6980. this.$message.error(`题目${i + 1}选项不能为空!`);
  6981. return;
  6982. }
  6983. }
  6984. b++;
  6985. if (index < 2) {
  6986. this.$message.error("填写了的题目,选项至少要有两项!");
  6987. return;
  6988. }
  6989. if (
  6990. (aj[i].type == "2" && !aj[i].answer.length) ||
  6991. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6992. ) {
  6993. this.$message.error("有题目未选择答案请选择答案");
  6994. return;
  6995. }
  6996. }
  6997. }
  6998. }
  6999. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  7000. var elc = el.checkList.filter((element) => {
  7001. return element != "";
  7002. });
  7003. return el.teststitle != "" && elc.length != 0;
  7004. });
  7005. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7006. this.taskCount
  7007. ].toolChoose[this.toolIndex].testJson = this.testJson;
  7008. this.dialogVisibleChoice = false;
  7009. if (
  7010. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7011. .toolChoose[this.toolIndex].tool != 45
  7012. ) {
  7013. this.addTools(45, this.taskCount, this.toolIndex);
  7014. }
  7015. },
  7016. addAnswer() {
  7017. if (this.answerQ == "") {
  7018. this.$message.error("请输入您想要问的问题");
  7019. return;
  7020. }
  7021. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7022. // this.taskCount
  7023. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7025. this.taskCount
  7026. ].toolArray.push({
  7027. tool: 15,
  7028. toolDetail: "",
  7029. toolPhoto: "",
  7030. toolEdit: false,
  7031. toolId: this.guid(),
  7032. answerQ: this.answerQ,
  7033. });
  7034. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7035. this.$forceUpdate();
  7036. this.dialogVisibleTool = false;
  7037. this.dialogVisible8 = false;
  7038. // if (
  7039. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7040. // .toolChoose[this.toolIndex].tool != 15
  7041. // ) {
  7042. // this.addTools(15, this.taskCount, this.toolIndex);
  7043. // }
  7044. },
  7045. addText() {
  7046. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7047. this.$message.error("请填写信息!");
  7048. return;
  7049. }
  7050. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7051. this.taskCount
  7052. ].toolArray.push({
  7053. tool: 52,
  7054. toolDetail: "",
  7055. toolPhoto: "",
  7056. toolEdit: false,
  7057. toolId: this.guid(),
  7058. text: this.tableJson.text,
  7059. });
  7060. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7061. this.$forceUpdate();
  7062. this.dialogVisibleTool = false;
  7063. this.dialogVisibleText = false;
  7064. setTimeout(() => {
  7065. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7066. // this.taskCount
  7067. // ].toolArray.length-1)
  7068. this.toolIndex =
  7069. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7070. .toolArray.length - 1;
  7071. this.addTextJson();
  7072. }, 500);
  7073. // if (
  7074. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7075. // .toolChoose[this.toolIndex].tool != 15
  7076. // ) {
  7077. // this.addTools(15, this.taskCount, this.toolIndex);
  7078. // }
  7079. },
  7080. addTable() {
  7081. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7082. this.$message.error("请填写信息!");
  7083. return;
  7084. }
  7085. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7086. this.taskCount
  7087. ].toolArray.push({
  7088. tool: 48,
  7089. toolDetail: "",
  7090. toolPhoto: "",
  7091. toolEdit: false,
  7092. toolId: this.guid(),
  7093. table: this.tableJson.text,
  7094. });
  7095. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7096. this.$forceUpdate();
  7097. this.dialogVisibleTool = false;
  7098. this.dialogVisibleTable1 = false;
  7099. setTimeout(() => {
  7100. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7101. // this.taskCount
  7102. // ].toolArray.length-1)
  7103. this.toolIndex =
  7104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7105. .toolArray.length - 1;
  7106. this.addTableJson();
  7107. }, 500);
  7108. // if (
  7109. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7110. // .toolChoose[this.toolIndex].tool != 15
  7111. // ) {
  7112. // this.addTools(15, this.taskCount, this.toolIndex);
  7113. // }
  7114. },
  7115. addMp3Answer() {
  7116. if (this.answerQ == "") {
  7117. this.$message.error("请输入您想要回答的问题");
  7118. return;
  7119. }
  7120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7121. this.taskCount
  7122. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7123. this.dialogVisibleMp3 = false;
  7124. },
  7125. addRateAnswer() {
  7126. var a = 1;
  7127. for (var i = 0; i < this.rateJson.length; i++) {
  7128. if (this.rateJson[i].value == "") {
  7129. a = 2;
  7130. break;
  7131. }
  7132. }
  7133. if (a == 2) {
  7134. this.$message.error("请把评价信息填写完整");
  7135. return;
  7136. }
  7137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7138. this.taskCount
  7139. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7140. this.dialogVisibleRate = false;
  7141. if (
  7142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7143. .toolChoose[this.toolIndex].tool != 40
  7144. ) {
  7145. this.addTools(40, this.taskCount, this.toolIndex);
  7146. }
  7147. },
  7148. addSelectAnswer() {
  7149. if (this.selectJson.url == "") {
  7150. this.$message.error("请上传题目");
  7151. return;
  7152. }
  7153. if (!this.selectJson.select.length) {
  7154. this.$message.error("请添加选项");
  7155. return;
  7156. }
  7157. if (!this.selectJson.answer.length) {
  7158. this.$message.error("请设置答案");
  7159. return;
  7160. }
  7161. var a = 1;
  7162. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7163. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7164. a = 2;
  7165. }
  7166. }
  7167. if (a == 2) {
  7168. this.$message.error("请设置答案");
  7169. return;
  7170. }
  7171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7172. this.taskCount
  7173. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7174. this.dialogVisibleSelect = false;
  7175. if (
  7176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7177. .toolChoose[this.toolIndex].tool != 41
  7178. ) {
  7179. this.addTools(41, this.taskCount, this.toolIndex);
  7180. }
  7181. },
  7182. nextSelectSteps() {
  7183. if (this.selectJson.url == "") {
  7184. this.$message.error("请上传题目");
  7185. return;
  7186. }
  7187. if (!this.selectJson.select.length) {
  7188. this.$message.error("请添加选项");
  7189. return;
  7190. }
  7191. var a = 1;
  7192. for (var i = 0; i < this.selectJson.select.length; i++) {
  7193. if (!this.selectJson.select[i]) {
  7194. a = 2;
  7195. }
  7196. }
  7197. if (a == 2) {
  7198. this.$message.error("添加的选项不能为空");
  7199. return;
  7200. }
  7201. this.selectSteps++;
  7202. },
  7203. selectCourseDetail() {
  7204. if (this.cid == "" || this.cid == undefined) {
  7205. console.log("这是新增项目");
  7206. this.selectAllType();
  7207. this.cidttt = 0;
  7208. } else {
  7209. this.cidType = 1;
  7210. let params = {
  7211. cid: this.cid,
  7212. };
  7213. this.ajax
  7214. .get(this.$store.state.api + "select_student_course_detail2", params)
  7215. .then((res) => {
  7216. this.loading = true;
  7217. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7218. for (var j in this.unitJson) {
  7219. for (var i in this.unitJson[j].chapterInfo) {
  7220. this.unitJson[j].chapterInfo[i].taskJson[
  7221. this.taskCount
  7222. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  7223. this.taskCount
  7224. ].toolChoose
  7225. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  7226. .toolChoose
  7227. : [];
  7228. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  7229. let _chapterData = [];
  7230. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  7231. .chapterData) {
  7232. if (
  7233. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  7234. ) {
  7235. _chapterData.push(
  7236. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  7237. c
  7238. ]
  7239. );
  7240. }
  7241. }
  7242. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  7243. _chapterData;
  7244. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  7245. for (var _tool = 0; _tool < _task.length; _tool++) {
  7246. delete _task[_tool].proVisible
  7247. }
  7248. }
  7249. }
  7250. }
  7251. this.courseName = res.data[0][0].title;
  7252. this.courseText = res.data[0][0].brief;
  7253. this.evalua = res.data[0][0].evaId;
  7254. this.cover = JSON.parse(res.data[0][0].cover);
  7255. this.noneBtnImg = this.cover.length >= 1;
  7256. // this.checkboxList =
  7257. // res.data[0][0].course_student.length > 0
  7258. // ? JSON.parse(res.data[0][0].course_student)
  7259. // : [];
  7260. this.checkboxList2 = res.data[0][0].juri
  7261. ? res.data[0][0].juri.split(",")
  7262. : [];
  7263. this.checkboxList3 = res.data[0][0].course_teacher
  7264. ? res.data[0][0].course_teacher.split(",")
  7265. : [];
  7266. this.checkboxListPeople = res.data[0][0].course_teacher
  7267. ? res.data[0][0].course_teacher.split(",")
  7268. : [];
  7269. // this.isTeacherSee =
  7270. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7271. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7272. this.myWord = res.data[0][0].template;
  7273. this.templateC.id = "123";
  7274. this.courseUserid = res.data[0][0].userid;
  7275. this.nbOrder = res.data[0][0].ordernumber;
  7276. if (res.data[1].length) {
  7277. this.courseTypeId = [];
  7278. for (var i = 0; i < res.data[1].length; i++) {
  7279. this.courseTypeId.push(res.data[1][i].typeid);
  7280. }
  7281. }
  7282. console.log(this.courseTypeId);
  7283. // if (this.timer) clearInterval(this.timer);
  7284. if (this.timer) clearTimeout(this.timer);
  7285. this.timer = null;
  7286. // this.timer = setInterval(() => {
  7287. this.seleteCourseUpdate();
  7288. this.setMan();
  7289. this.selectAllType();
  7290. // }, 5000);
  7291. this.$forceUpdate();
  7292. setTimeout(() => {
  7293. this.checkEva(this.evalua);
  7294. }, 0);
  7295. })
  7296. .catch((err) => {
  7297. console.error(err);
  7298. });
  7299. }
  7300. },
  7301. seleteCourseUpdate() {
  7302. let params = {
  7303. cid: this.cid,
  7304. };
  7305. this.ajax
  7306. .get(this.$store.state.api + "select_student_course_detail", params)
  7307. .then((res) => {
  7308. console.log(res.data[2]);
  7309. let unitJson = this.unitJson;
  7310. let works = res.data[2];
  7311. for (var i = 0; i < unitJson.length; i++) {
  7312. let task = unitJson[i].chapterInfo[0].taskJson;
  7313. for (var j = 0; j < task.length; j++) {
  7314. var tool = task[j].toolArray;
  7315. for (var z = 0; z < tool.length; z++) {
  7316. let _tool = tool[z];
  7317. _tool.toolPhoto = [];
  7318. _tool.people = [];
  7319. this.checkJson[z] = [];
  7320. let checkPeople = 0;
  7321. for (var k = 0; k < works.length; k++) {
  7322. let _work = works[k];
  7323. if (
  7324. _work.stage == i &&
  7325. _work.task == j &&
  7326. _work.tool == z &&
  7327. _work.atool == _tool.tool
  7328. ) {
  7329. if (_tool.tool == 48 || _tool.tool == 52) {
  7330. _tool.toolPhoto[0] = _work;
  7331. if (_tool.people.indexOf(_work.username) == -1) {
  7332. _tool.people.push(_work.username);
  7333. }
  7334. } else {
  7335. _tool.toolPhoto.push(_work);
  7336. }
  7337. if (_tool.tool == 56) {
  7338. checkPeople++;
  7339. var checkL = JSON.parse(_work.content);
  7340. for (var kz = 0; kz < checkL.length; kz++) {
  7341. if (!this.checkJson[z][kz]) {
  7342. this.checkJson[z].push({
  7343. checkCount: [],
  7344. checkPerson: [],
  7345. rightPerson: [],
  7346. });
  7347. }
  7348. if (!this.checkJson[z][kz].checkCount.length) {
  7349. this.checkJson[z][kz].checkCount = [];
  7350. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  7351. for (var aic = 0; aic < _askItemCount; aic++) {
  7352. this.checkJson[z][kz].checkCount.push(0);
  7353. }
  7354. }
  7355. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  7356. ? this.checkJson[z][kz].checkPerson[
  7357. parseInt(checkL[kz])
  7358. ].push(_work.username)
  7359. : (this.checkJson[z][kz].checkPerson[
  7360. parseInt(checkL[kz])
  7361. ] = [_work.username]);
  7362. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  7363. ? this.checkJson[z][kz].checkCount[
  7364. parseInt(checkL[kz])
  7365. ]++
  7366. : (this.checkJson[z][kz].checkCount[
  7367. parseInt(checkL[kz])
  7368. ] = 1);
  7369. }
  7370. }
  7371. }
  7372. }
  7373. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  7374. this.checkJson[z][kz].checkPerent = [];
  7375. let aaaa = this.checkJson[z][kz];
  7376. console.log(aaaa);
  7377. for (
  7378. var kc = 0;
  7379. kc < this.checkJson[z][kz].checkCount.length;
  7380. kc++
  7381. ) {
  7382. this.checkJson[z][kz].checkPerent.push(
  7383. Math.round(
  7384. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  7385. 100
  7386. )
  7387. );
  7388. }
  7389. }
  7390. }
  7391. }
  7392. }
  7393. this.$forceUpdate();
  7394. if (this.cidttt === 1) {
  7395. let unitJson2 = JSON.parse(res.data[0][0].chapters);
  7396. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7397. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7398. let _unitJson = [];
  7399. let _chapAarry = [];
  7400. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7401. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7402. let index = 1;
  7403. let chapindex;
  7404. if (_unitJson2.length > unitJson2.length) {
  7405. for (let c = 0; c < _unitJson2.length; c++) {
  7406. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7407. }
  7408. for (let j = 0; j < unitJson2.length; j++) {
  7409. let count = 0;
  7410. for (let k = 0; k < _unitJson2.length; k++) {
  7411. if (
  7412. unitJson2[j].chapterInfo[0].chapterid ==
  7413. _unitJson2[k].chapterInfo[0].chapterid
  7414. ) {
  7415. count++;
  7416. _chapAarry.splice(
  7417. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7418. 1
  7419. );
  7420. _unitJson.push(unitJson2[j]);
  7421. break;
  7422. }
  7423. }
  7424. }
  7425. for (let k = 0; k < _unitJson2.length; k++) {
  7426. if (_unitJson2[k].isUpdate == 1) {
  7427. _chapAarry.splice(
  7428. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7429. 1
  7430. );
  7431. _unitJson.push(_unitJson2[k]);
  7432. }
  7433. }
  7434. console.log(_chapAarry);
  7435. for (let d = 0; d < _unitJson2.length; d++) {
  7436. if (
  7437. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7438. ) {
  7439. if (_unitIndex == d) {
  7440. index = 2;
  7441. }
  7442. chapindex = d;
  7443. }
  7444. }
  7445. } else {
  7446. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7447. }
  7448. for (let i = 0; i < unitJson2.length; i++) {
  7449. if (
  7450. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7451. _unitJson[i].chapterInfo[0].chapterid !=
  7452. unitJson2[i].chapterInfo[0].chapterid
  7453. ) {
  7454. if (i == _unitJson.length - 1) {
  7455. _unitIndex2++;
  7456. }
  7457. _unitJson.splice(i, 0, unitJson2[i]);
  7458. } else if (i > _unitJson.length - 1) {
  7459. _unitJson.push(unitJson2[i]);
  7460. } else if (
  7461. _unitJson[i].chapterInfo[0].chapterid ==
  7462. unitJson2[i].chapterInfo[0].chapterid
  7463. ) {
  7464. _unitJson[i] = unitJson2[i];
  7465. }
  7466. }
  7467. if (_chapAarry.length && index != 2) {
  7468. if (chapindex < _unitIndex) {
  7469. this.isDelete = 2;
  7470. _unitIndex2--;
  7471. } else if (
  7472. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7473. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7474. ) {
  7475. this.isDelete = 2;
  7476. for (let n = 0; n < _unitJson.length; n++) {
  7477. if (
  7478. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7479. _unitJson[n].chapterInfo[0].chapterid
  7480. ) {
  7481. _unitIndex2 = n;
  7482. _unitJson[n] = _unitJson2[_unitIndex];
  7483. break;
  7484. }
  7485. }
  7486. }
  7487. } else if (index != 2) {
  7488. _unitJson2[_unitIndex];
  7489. for (
  7490. var ci = 0;
  7491. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7492. ci++
  7493. ) {
  7494. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7495. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7496. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7497. .toolChoose
  7498. : [];
  7499. let _chapterData = [];
  7500. for (
  7501. var c = 0;
  7502. c <
  7503. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7504. .length;
  7505. c++
  7506. ) {
  7507. if (
  7508. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7509. .chapterData[c]
  7510. ) {
  7511. _chapterData.push(
  7512. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7513. .chapterData[c]
  7514. );
  7515. }
  7516. }
  7517. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7518. _chapterData;
  7519. }
  7520. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7521. }
  7522. if (index == 1) {
  7523. if (this.unitJson.length == _unitJson.length) {
  7524. for (var ui = 0; ui < _unitJson.length; ui++) {
  7525. let keys = Object.keys(this.unitJson[ui].chapterInfo[0])
  7526. for (let ki = 0; ki < keys.length; ki++) {
  7527. if (keys[ki] != "taskJson") {
  7528. this.unitJson[ui].chapterInfo[0][keys[ki]] = _unitJson[ui].chapterInfo[0][keys[ki]]
  7529. }
  7530. }
  7531. let _taskJson2 = _unitJson[ui].chapterInfo[0].taskJson
  7532. if (this.unitJson[ui].chapterInfo[0].taskJson.length == _taskJson2.length) {
  7533. for (let ti = 0; ti < _taskJson2.length; ti++) {
  7534. let tkeys = Object.keys(_taskJson2[ti])
  7535. for (let ki = 0; ki < tkeys.length; ki++) {
  7536. if (tkeys[ki] != "toolArray") {
  7537. this.unitJson[ui].chapterInfo[0].taskJson[ti][keys[ki]] = _unitJson[ui].chapterInfo[0].taskJson[ti][tkeys[ki]]
  7538. }
  7539. }
  7540. let _toolArray2 = _taskJson2[ti].toolArray
  7541. if (this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray.length == _toolArray2.length) {
  7542. for (let tooli = 0; tooli < _toolArray2.length; tooli++) {
  7543. let toolkeys = Object.keys(_toolArray2[tooli])
  7544. for (let kooli = 0; kooli < toolkeys.length; kooli++) {
  7545. if (toolkeys[kooli] != "toolPhoto" && toolkeys[kooli] != "toolData") {
  7546. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]] = _unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]]
  7547. }
  7548. }
  7549. }
  7550. } else {
  7551. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray = _toolArray2
  7552. }
  7553. }
  7554. } else {
  7555. this.unitJson[ui].chapterInfo[0].taskJson = _taskJson2
  7556. }
  7557. }
  7558. } else {
  7559. this.unitJson = _unitJson
  7560. }
  7561. this.$forceUpdate();
  7562. setTimeout(() => {
  7563. if (this.unitIndex != _unitIndex2) {
  7564. this.isDelete = 2;
  7565. this.unitIndex = _unitIndex2;
  7566. }
  7567. }, 0);
  7568. this.timer = setTimeout(() => {
  7569. this.seleteCourseUpdate();
  7570. }, 1000);
  7571. } else if (index == 2) {
  7572. let _this = this;
  7573. _this
  7574. .$confirm(
  7575. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7576. "提示",
  7577. {
  7578. confirmButtonText: "需要",
  7579. cancelButtonText: "取消",
  7580. type: "warning",
  7581. }
  7582. )
  7583. .then(() => {
  7584. if (_this.time()) {
  7585. _this.restoreWork(
  7586. _chapAarry[0],
  7587. _unitJson,
  7588. chapindex,
  7589. _unitJson2,
  7590. _unitIndex2
  7591. );
  7592. }
  7593. })
  7594. .catch(() => {
  7595. _this.unitJson = _unitJson;
  7596. _this.$forceUpdate();
  7597. setTimeout(() => {
  7598. if (this.unitIndex != _unitIndex2) {
  7599. this.isDelete = 2;
  7600. this.unitIndex = _unitIndex2;
  7601. }
  7602. }, 0);
  7603. _this.timer = setTimeout(() => {
  7604. _this.seleteCourseUpdate();
  7605. }, 1000);
  7606. });
  7607. }
  7608. } else {
  7609. this.$forceUpdate();
  7610. if (this.timer) {
  7611. clearTimeout(this.timer);
  7612. this.timer = null;
  7613. }
  7614. this.timer = setTimeout(() => {
  7615. this.seleteCourseUpdate();
  7616. }, 1000);
  7617. }
  7618. })
  7619. .catch((err) => {
  7620. console.error(err);
  7621. });
  7622. },
  7623. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7624. let params = [
  7625. {
  7626. cid: this.cid,
  7627. chapters: JSON.stringify(this.unitJson),
  7628. uid: this.userid,
  7629. chapid: chapid,
  7630. },
  7631. ];
  7632. this.ajax
  7633. .post(this.$store.state.api + "restoreStudentWork", params)
  7634. .then((res) => {
  7635. this.$message({
  7636. message: "恢复成功",
  7637. type: "success",
  7638. });
  7639. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7640. this.unitJson = unitJson;
  7641. this.$forceUpdate();
  7642. setTimeout(() => {
  7643. if (this.unitIndex != unitIndex2) {
  7644. this.isDelete = 2;
  7645. this.unitIndex = unitIndex2;
  7646. }
  7647. }, 0);
  7648. this.timer = setTimeout(() => {
  7649. this.seleteCourseUpdate();
  7650. }, 1000);
  7651. })
  7652. .catch((err) => {
  7653. this.$message.error("网络不佳");
  7654. console.error(err);
  7655. });
  7656. },
  7657. getTypeName() {
  7658. console.log(this.courseTypeId);
  7659. this.$forceUpdate();
  7660. },
  7661. selectAllType() {
  7662. let params = {
  7663. org: this.org && this.org != "" ? this.org : "",
  7664. oid: this.oid && this.oid != "" ? this.oid : "",
  7665. };
  7666. this.ajax
  7667. .get(this.$store.state.api + "selectAllTypeS", params)
  7668. .then((res) => {
  7669. this.CourseType = res.data;
  7670. let _courseTypeId = [];
  7671. for (var i = 0; i < res.data[0].length; i++) {
  7672. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7673. res.data[0][i].name = "赛道";
  7674. } else if (res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5") {
  7675. res.data[0][i].name = "主题";
  7676. }
  7677. if (!this.cid) {
  7678. this.courseTypeId[res.data[0][i].id] = "";
  7679. }
  7680. this.CourseTypeJson[res.data[0][i].id] = [];
  7681. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  7682. if (res.data[0][i].name == "赛道") {
  7683. this.CourseType[0][i].name = "项目类型";
  7684. }
  7685. }
  7686. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7687. if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7688. for (var j = 0; j < res.data[1].length; j++) {
  7689. if (
  7690. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7691. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7692. ) {
  7693. _courseTypeId.push(res.data[1][j].id);
  7694. }
  7695. if (res.data[0][i].id == res.data[1][j].pid) {
  7696. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7697. }
  7698. }
  7699. } else {
  7700. this.CourseType = []
  7701. }
  7702. } else {
  7703. if (res.data[2].length > 0) {
  7704. for (var j = 0; j < res.data[2].length; j++) {
  7705. if (
  7706. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7707. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7708. ) {
  7709. _courseTypeId.push(res.data[2][j].id);
  7710. }
  7711. if (res.data[0][i].id == res.data[2][j].pid) {
  7712. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7713. }
  7714. }
  7715. }
  7716. if (res.data[3].length > 0) {
  7717. for (var j = 0; j < res.data[3].length; j++) {
  7718. if (
  7719. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7720. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7721. ) {
  7722. _courseTypeId.push(res.data[3][j].id);
  7723. }
  7724. if (res.data[0][i].id == res.data[3][j].pid) {
  7725. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7726. }
  7727. }
  7728. }
  7729. }
  7730. }
  7731. this.courseTypeId = _courseTypeId;
  7732. })
  7733. .catch((err) => {
  7734. console.error(err);
  7735. });
  7736. },
  7737. selectType() {
  7738. this.ajax
  7739. .get(this.$store.state.api + "selectStudentType")
  7740. .then((res) => {
  7741. this.CourseType = res.data;
  7742. for (var i = 0; i < res.data[0].length; i++) {
  7743. if (!this.cid) {
  7744. this.courseTypeId[res.data[0][i].id] = "";
  7745. }
  7746. for (var j = 0; j < res.data[1].length; j++) {
  7747. if (res.data[0][i].id == res.data[1][j].pid) {
  7748. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7749. this.CourseTypeJson[res.data[0][i].id] = [];
  7750. }
  7751. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7752. }
  7753. }
  7754. }
  7755. this.selectTypeByOid();
  7756. this.selectTypeByOrg();
  7757. })
  7758. .catch((err) => {
  7759. console.error(err);
  7760. });
  7761. },
  7762. selectTypeByOid() {
  7763. let params = {
  7764. oid: this.oid,
  7765. };
  7766. this.ajax
  7767. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7768. .then((res) => {
  7769. for (var i = 0; i < res.data[0].length; i++) {
  7770. for (var j = 0; j < res.data[1].length; j++) {
  7771. if (res.data[0][i].id == res.data[1][j].pid) {
  7772. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7773. this.CourseTypeJson[res.data[0][i].id] = [];
  7774. }
  7775. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7776. }
  7777. }
  7778. }
  7779. })
  7780. .catch((err) => {
  7781. console.error(err);
  7782. });
  7783. },
  7784. selectTypeByOrg() {
  7785. let params = {
  7786. oid: this.org,
  7787. };
  7788. this.ajax
  7789. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7790. .then((res) => {
  7791. for (var i = 0; i < res.data[0].length; i++) {
  7792. for (var j = 0; j < res.data[1].length; j++) {
  7793. if (res.data[0][i].id == res.data[1][j].pid) {
  7794. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7795. this.CourseTypeJson[res.data[0][i].id] = [];
  7796. }
  7797. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  7798. }
  7799. }
  7800. }
  7801. this.$forceUpdate();
  7802. })
  7803. .catch((err) => {
  7804. console.error(err);
  7805. });
  7806. },
  7807. OtherMb(type) {
  7808. this.typeMode = type;
  7809. setTimeout(() => {
  7810. this.checkEva(this.checkId);
  7811. }, 0);
  7812. },
  7813. checkEva(id) {
  7814. this.selectEva();
  7815. this.evalua = id;
  7816. this.checkId = id;
  7817. if (this.evalua != "") {
  7818. for (var i = 0; i < this.evaJuri.length; i++) {
  7819. if (this.evalua == this.evaJuri[i].id) {
  7820. this.eTitle = this.evaJuri[i].title;
  7821. this.eJson = JSON.parse(this.evaJuri[i].content);
  7822. }
  7823. }
  7824. this.data.data = [];
  7825. this.$forceUpdate();
  7826. setTimeout(() => {
  7827. this.setMindData();
  7828. }, 500);
  7829. }
  7830. },
  7831. selectEva() {
  7832. let params = {
  7833. oid: this.oid,
  7834. };
  7835. this.ajax
  7836. .get(this.$store.state.api + "selectAllEvaluation", params)
  7837. .then((res) => {
  7838. this.evaJuri = res.data[0];
  7839. })
  7840. .catch((err) => {
  7841. console.error(err);
  7842. });
  7843. },
  7844. setMindData() {
  7845. let targetArray = [];
  7846. this.data.data = [];
  7847. this.data.data.push({
  7848. id: "root",
  7849. isroot: true,
  7850. topic: this.eTitle,
  7851. });
  7852. let _eJson = Object.keys(this.eJson);
  7853. let _e = this.eJson;
  7854. for (let i = 0; i < _eJson.length; i++) {
  7855. let element = _e[_eJson[i]];
  7856. this.data.data.push({
  7857. id: element.id,
  7858. parentid: "root",
  7859. topic: element.name,
  7860. });
  7861. // targetArray.push({
  7862. // id: element.id,
  7863. // parentid: "root",
  7864. // name: element.name,
  7865. // });
  7866. targetArray.push({
  7867. value: element.name,
  7868. label: element.name,
  7869. children: [],
  7870. });
  7871. let _eJsonc = Object.keys(element.child);
  7872. let _e2 = element.child;
  7873. for (let j = 0; j < _eJsonc.length; j++) {
  7874. let _ec = _e2[_eJsonc[j]];
  7875. this.data.data.push({
  7876. id: _ec.id,
  7877. parentid: element.id,
  7878. topic: _ec.name,
  7879. });
  7880. // targetArray.push({
  7881. // id: _ec.id,
  7882. // parentid: element.id,
  7883. // name: _ec.name,
  7884. // });
  7885. targetArray[i].children.push({
  7886. value: _ec.name,
  7887. label: _ec.name,
  7888. children: [],
  7889. });
  7890. let _eJsonz = Object.keys(_ec.child);
  7891. let _e3 = _ec.child;
  7892. for (let z = 0; z < _eJsonz.length; z++) {
  7893. let _ez = _e3[_eJsonz[z]];
  7894. this.data.data.push({
  7895. id: _ez.id,
  7896. parentid: _ec.id,
  7897. topic: _ez.name,
  7898. });
  7899. // targetArray.push({
  7900. // id: _ez.id,
  7901. // parentid: _ec.id,
  7902. // name: _ez.name,
  7903. // });
  7904. targetArray[i].children[j].children.push({
  7905. value: _ez.name,
  7906. label: _ez.name,
  7907. });
  7908. }
  7909. }
  7910. }
  7911. this.targetArray = targetArray;
  7912. this.$forceUpdate();
  7913. },
  7914. /*添加评价 */
  7915. addEList(index, tIndex) {
  7916. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7917. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7918. value: "",
  7919. detail: "",
  7920. score: 5,
  7921. })
  7922. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7923. {
  7924. value: "",
  7925. detail: "",
  7926. score: 5,
  7927. },
  7928. ]);
  7929. this.$forceUpdate();
  7930. },
  7931. forceUpdate() {
  7932. this.$forceUpdate();
  7933. },
  7934. deletEList(index, tIndex, eIndex) {
  7935. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7936. eIndex,
  7937. 1
  7938. );
  7939. this.$forceUpdate();
  7940. },
  7941. getChoosePic(t) {
  7942. this.chooseType = t;
  7943. this.getAllBanner();
  7944. },
  7945. getAllBanner() {
  7946. this.sysPicVisible = true;
  7947. let params = {
  7948. t: this.chooseType,
  7949. };
  7950. this.ajax
  7951. .get(this.$store.state.api + "selectAllBanner", params)
  7952. .then((res) => {
  7953. this.sysPic = res.data[0];
  7954. })
  7955. .catch((err) => {
  7956. console.error(err);
  7957. });
  7958. },
  7959. deleteSysPic() {
  7960. this.cover = [];
  7961. this.isSysPic = false;
  7962. },
  7963. deleteSelectPic() {
  7964. this.selectJson.url = "";
  7965. },
  7966. setEListStar() {
  7967. this.$forceUpdate();
  7968. },
  7969. deletRateList(i) {
  7970. this.rateJson.splice(i, 1);
  7971. },
  7972. addRateList() {
  7973. this.rateJson.push({
  7974. detail: "",
  7975. score: 5,
  7976. value: "",
  7977. });
  7978. },
  7979. addSt() {
  7980. this.sentenceList.push({
  7981. sentenceTitle: "",
  7982. addSentence: [],
  7983. rightAnswer: [],
  7984. });
  7985. },
  7986. addSen(i) {
  7987. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7988. // this.isPushTitleList.push(this.sentenceTitle);
  7989. this.sentenceList[i].sentenceTitle = "";
  7990. },
  7991. setRightAnswer(s, i, j) {
  7992. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7993. this.sentenceList[i].rightAnswer.push(s);
  7994. }
  7995. },
  7996. returnCard(r, i, j) {
  7997. this.sentenceList[i].rightAnswer.splice(j, 1);
  7998. },
  7999. addSentenceTool() {
  8000. for (var i = 0; i < this.sentenceList.length; i++) {
  8001. if (this.sentenceList[i].rightAnswer.length == 0) {
  8002. this.$message.error("请将信息填写完整!");
  8003. return;
  8004. }
  8005. if (
  8006. this.sentenceList[i].addSentence.length !=
  8007. this.sentenceList[i].rightAnswer.length
  8008. ) {
  8009. this.$message.error("请将信息填写完整!");
  8010. return;
  8011. }
  8012. }
  8013. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8014. this.taskCount
  8015. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8016. this.sentenceList = [
  8017. {
  8018. sentenceTitle: "",
  8019. addSentence: [],
  8020. rightAnswer: [],
  8021. },
  8022. ];
  8023. this.dialogVisibleSentence = false;
  8024. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8025. // itemTaskIndex
  8026. // ].toolChoose[toolIndex].tool = [];
  8027. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8028. // itemTaskIndex
  8029. // ].toolChoose[toolIndex].tool.push(i);
  8030. if (
  8031. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8032. .toolChoose[this.toolIndex].tool != 47
  8033. ) {
  8034. this.addTools(47, this.taskCount, this.toolIndex);
  8035. }
  8036. },
  8037. addTableJson() {
  8038. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8039. this.$message.error("请填写信息!");
  8040. return;
  8041. }
  8042. let params = [
  8043. {
  8044. uid: this.userid,
  8045. cid: this.courseId,
  8046. stage: this.unitIndex,
  8047. task: this.taskCount,
  8048. tool: this.toolIndex,
  8049. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  8050. type: 10,
  8051. atool: 48,
  8052. },
  8053. ];
  8054. this.ajax
  8055. .post(this.$store.state.api + "addCourseWorksS", params)
  8056. .then((res) => {
  8057. this.$message({
  8058. message: "提交成功",
  8059. type: "success",
  8060. });
  8061. this.seleteCourseUpdate();
  8062. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8063. this.dialogVisibleTable = false;
  8064. })
  8065. .catch((err) => {
  8066. this.$message.error("提交失败");
  8067. console.error(err);
  8068. });
  8069. },
  8070. addStudentAsk() {
  8071. if (!this.radio.length) {
  8072. this.$message.error("请选择选项");
  8073. return;
  8074. }
  8075. for (var i = 0; i < this.askJson.askCount; i++) {
  8076. if (this.radio[i] !== 0 && !this.radio[i]) {
  8077. this.$message.error("请选择选项");
  8078. return;
  8079. }
  8080. }
  8081. let params = [
  8082. {
  8083. uid: this.userid,
  8084. cid: this.courseId,
  8085. stage: this.unitIndex,
  8086. task: this.taskCount,
  8087. tool: this.toolIndex,
  8088. content: JSON.stringify(this.radio),
  8089. type: 14,
  8090. atool: 56,
  8091. },
  8092. ];
  8093. this.ajax
  8094. .post(this.$store.state.api + "addCourseWorksS", params)
  8095. .then((res) => {
  8096. this.$message({
  8097. message: "提交成功",
  8098. type: "success",
  8099. });
  8100. this.radio = [];
  8101. this.seleteCourseUpdate();
  8102. this.dialogVisibleVote2 = false;
  8103. })
  8104. .catch((err) => {
  8105. this.$message.error("提交失败");
  8106. console.error(err);
  8107. });
  8108. },
  8109. addTextJson() {
  8110. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8111. this.$message.error("请填写信息!");
  8112. return;
  8113. }
  8114. let params = [
  8115. {
  8116. uid: this.userid,
  8117. cid: this.courseId,
  8118. stage: this.unitIndex,
  8119. task: this.taskCount,
  8120. tool: this.toolIndex,
  8121. content: JSON.stringify(this.tableJson.text).replaceAll(/%/g, "%25"),
  8122. type: 12,
  8123. atool: 52,
  8124. },
  8125. ];
  8126. this.ajax
  8127. .post(this.$store.state.api + "addCourseWorksS", params)
  8128. .then((res) => {
  8129. this.$message({
  8130. message: "提交成功",
  8131. type: "success",
  8132. });
  8133. this.tableJson.text = "";
  8134. this.seleteCourseUpdate();
  8135. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8136. this.dialogVisibleText3 = false;
  8137. })
  8138. .catch((err) => {
  8139. this.$message.error("提交失败");
  8140. console.error(err);
  8141. });
  8142. },
  8143. setPeople(i, task, uid) {
  8144. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  8145. this.checkboxList3.push(uid);
  8146. this.setMan();
  8147. }
  8148. // debugger
  8149. if (
  8150. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  8151. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  8152. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  8153. uid
  8154. ) == -1)
  8155. ) {
  8156. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  8157. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  8158. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  8159. }
  8160. this.$forceUpdate();
  8161. },
  8162. goToTask(i) {
  8163. document.getElementsByClassName("rightBox")[0].scrollTop =
  8164. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8165. this.isClickColor = i + 1;
  8166. },
  8167. taskMove(type, index) {
  8168. if (type == 1) {
  8169. if (index > 0) {
  8170. let a = JSON.parse(
  8171. JSON.stringify(
  8172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8173. )
  8174. );
  8175. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8178. }
  8179. } else {
  8180. if (
  8181. index <
  8182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8183. ) {
  8184. let a = JSON.parse(
  8185. JSON.stringify(
  8186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8187. )
  8188. );
  8189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8192. }
  8193. }
  8194. this.$forceUpdate();
  8195. },
  8196. addGroup(i) {
  8197. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8198. this.groupJson.group.push({
  8199. name: "第" + (this.groupJson.group.length + 1) + "组",
  8200. });
  8201. },
  8202. deleteGroup(i) {
  8203. this.groupJson.group.splice(i, 1);
  8204. },
  8205. addGroupJson() {
  8206. for (var i = 0; i < this.groupJson.group.length; i++) {
  8207. if (!this.groupJson.group[i].name) {
  8208. this.$message.error("请将信息填写完整!");
  8209. return;
  8210. }
  8211. }
  8212. if (!this.groupJson.number) {
  8213. this.$message.error("请将信息填写完整!");
  8214. return;
  8215. }
  8216. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8217. this.taskCount
  8218. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8219. JSON.stringify(this.groupJson)
  8220. );
  8221. this.dialogVisibleGroup = false;
  8222. this.groupJson = {};
  8223. if (
  8224. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8225. .toolChoose[this.toolIndex].tool != 49
  8226. ) {
  8227. this.addTools(49, this.taskCount, this.toolIndex);
  8228. }
  8229. },
  8230. deleteWorks(id) {
  8231. this.$confirm("确定删除此作业吗?", "提示", {
  8232. confirmButtonText: "确定",
  8233. cancelButtonText: "取消",
  8234. type: "warning",
  8235. })
  8236. .then(() => {
  8237. let params = [
  8238. {
  8239. id: id,
  8240. },
  8241. ];
  8242. this.ajax
  8243. .post(this.$store.state.api + "deleteCourseWorkS", params)
  8244. .then((res) => {
  8245. this.$message({
  8246. message: "删除成功",
  8247. type: "success",
  8248. });
  8249. this.seleteCourseUpdate();
  8250. })
  8251. .catch((err) => {
  8252. this.$message.error("网络异常");
  8253. console.error(err);
  8254. });
  8255. })
  8256. .catch(() => { });
  8257. },
  8258. openLineS(url) {
  8259. window.open(url);
  8260. },
  8261. checkFileFull(type, url) {
  8262. this.fullDialogVisible = true;
  8263. this.fulltype = type;
  8264. this.fullUrl = url;
  8265. },
  8266. downloadFile(url, toolIndex) {
  8267. var credentials = {
  8268. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8269. secretAccessKey: "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",
  8270. }; //秘钥形式的登录上传
  8271. window.AWS.config.update(credentials);
  8272. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8273. let url2 = url;
  8274. let _url2 = "";
  8275. if (
  8276. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8277. ) {
  8278. _url2 = url2.split(
  8279. "https://view.officeapps.live.com/op/view.aspx?src="
  8280. )[1];
  8281. } else {
  8282. _url2 = url2;
  8283. }
  8284. let _this = this;
  8285. _this.downLoading = 'down'+toolIndex
  8286. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  8287. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  8288. var params = {
  8289. Bucket: "ccrb",
  8290. Key: name
  8291. };
  8292. s3.getObject(params, function (err, data) {
  8293. _this.downLoading = ''
  8294. if (err) console.log(err, err.stack); // an error occurred
  8295. else {
  8296. let url = window.URL.createObjectURL(new Blob([data.Body]));
  8297. let a = document.createElement("a");
  8298. a.name = name;
  8299. a.href = url;
  8300. a.download = name;
  8301. a.click();
  8302. console.log(data);
  8303. } // sxuccessful response
  8304. });
  8305. return;
  8306. // let _this = this;
  8307. // let _url = "";
  8308. // if (
  8309. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8310. // ) {
  8311. // _url = url.split(
  8312. // "https://view.officeapps.live.com/op/view.aspx?src="
  8313. // )[1];
  8314. // } else {
  8315. // _url = url;
  8316. // }
  8317. // const x = new XMLHttpRequest();
  8318. // x.open("GET", _url, true);
  8319. // x.responseType = "blob";
  8320. // const loading = _this.$loading.service({
  8321. // background: "rgba(255, 255, 255, 0.7)",
  8322. // target: document.body,
  8323. // text: '文件加载中...'
  8324. // });
  8325. // // _this.$message.success("文件下载中...");
  8326. // x.onload = function (e) {
  8327. // loading.close();
  8328. // // const url = window.URL.createObjectURL(x.response);
  8329. // // const a = document.createElement("a");
  8330. // // a.href = url;
  8331. // // a.target = "_blank";
  8332. // // a.download = url;
  8333. // // a.click();
  8334. // // a.remove();
  8335. // let content = x.response;
  8336. // let elink = document.createElement("a");
  8337. // elink.download = decodeURI(
  8338. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  8339. // );
  8340. // elink.style.display = "none";
  8341. // let blob = new Blob([content]);
  8342. // elink.href = URL.createObjectURL(blob);
  8343. // document.body.appendChild(elink);
  8344. // elink.click();
  8345. // document.body.removeChild(elink);
  8346. // };
  8347. // x.send();
  8348. },
  8349. editSourceUpadte(taskCount, index) {
  8350. this.taskCount = taskCount;
  8351. this.toolIndex = index;
  8352. this.editSourceType = 2;
  8353. this.sourcesData = JSON.parse(
  8354. JSON.stringify(
  8355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8356. .toolArray[index].toolData
  8357. )
  8358. );
  8359. this.proVisible = false;
  8360. this.progress = 0;
  8361. this.inputShow = true;
  8362. this.dialogVisibleSource = true;
  8363. },
  8364. addQuestion() {
  8365. let params = [
  8366. {
  8367. uid: this.userid,
  8368. cid: this.courseId,
  8369. stage: this.unitIndex,
  8370. task: this.taskCount,
  8371. tool: this.toolIndex,
  8372. content: this.questionAnswer.replaceAll(/%/g, "%25"),
  8373. type: 3,
  8374. atool: 15,
  8375. },
  8376. ];
  8377. this.ajax
  8378. .post(this.$store.state.api + "addCourseWorksS", params)
  8379. .then((res) => {
  8380. this.$message({
  8381. message: "提交成功",
  8382. type: "success",
  8383. });
  8384. this.questionAnswer = "";
  8385. this.answerDialogVisible = false;
  8386. this.seleteCourseUpdate();
  8387. })
  8388. .catch((err) => {
  8389. this.$message.error("提交失败");
  8390. console.error(err);
  8391. });
  8392. },
  8393. addCourseWorksS(tool, type, content, task, toolindex) {
  8394. let params = [
  8395. {
  8396. uid: this.userid,
  8397. cid: this.courseId,
  8398. stage: this.unitIndex,
  8399. task: task,
  8400. tool: toolindex,
  8401. content: content,
  8402. type: type,
  8403. atool: tool,
  8404. },
  8405. ];
  8406. this.ajax
  8407. .post(this.$store.state.api + "addCourseWorksS", params)
  8408. .then((res) => {
  8409. this.$message({
  8410. message: "提交成功",
  8411. type: "success",
  8412. });
  8413. this.setPeople(this.unitIndex, task, this.userid);
  8414. this.seleteCourseUpdate();
  8415. })
  8416. .catch((err) => {
  8417. this.$message.error("提交失败");
  8418. console.error(err);
  8419. });
  8420. },
  8421. openFile(f) {
  8422. this.pptImgUrl = "";
  8423. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8424. if (
  8425. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8426. -1
  8427. ) {
  8428. this.pptImgUrl =
  8429. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  8430. this.showPDF = false;
  8431. this.dialogVisibleFile = true;
  8432. } else if (
  8433. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8434. ) {
  8435. this.pptImgUrl = f;
  8436. this.showPDF = true;
  8437. this.dialogVisibleFile = true;
  8438. }
  8439. },
  8440. openText(f) {
  8441. this.tableJson.text = JSON.parse(f);
  8442. this.dialogVisibleText2 = true;
  8443. },
  8444. openAsk(f, taskCount, i) {
  8445. this.askJson = JSON.parse(
  8446. JSON.stringify(
  8447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8448. .toolArray[i].askJson
  8449. )
  8450. );
  8451. this.radio = JSON.parse(f);
  8452. this.dialogVisibleVote3 = true;
  8453. },
  8454. openMember() {
  8455. this.searchTN = "";
  8456. this.page = 1
  8457. this.getTeacher();
  8458. this.dialogVisibleMember = true;
  8459. },
  8460. updateType(sid) {
  8461. var a = this.courseTypeId;
  8462. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  8463. var c = [];
  8464. var b = sid.pid;
  8465. var d = [];
  8466. // for (var i = 0; i < this.CourseType[1].length; i++) {
  8467. // if (this.CourseType[1][i].id == sid) {
  8468. // b = this.CourseType[1][i].pid;
  8469. // }
  8470. // }
  8471. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  8472. d.push(this.CourseTypeJson[b][j].id);
  8473. }
  8474. for (var i = 0; i < a.length; i++) {
  8475. if (d.indexOf(a[i]) == -1) {
  8476. c.push(a[i]);
  8477. }
  8478. }
  8479. c.push(sid.id);
  8480. this.courseTypeId = c;
  8481. },
  8482. openVideo(w) {
  8483. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  8484. this.videoDetail.sources[0].src = w;
  8485. this.videoVisible = true;
  8486. },
  8487. getGMan(people) {
  8488. let _people = "";
  8489. if (this.ManAarray.length) {
  8490. for (var i = 0; i < this.ManAarray.length; i++) {
  8491. if (this.ManAarray[i].userid == people) {
  8492. _people = this.ManAarray[i].name;
  8493. break;
  8494. }
  8495. }
  8496. }
  8497. return _people ? _people : "无";
  8498. },
  8499. },
  8500. beforeDestroy() {
  8501. clearTimeout(this.timer);
  8502. this.timer = null;
  8503. },
  8504. beforeRouteLeave(to, from, next) {
  8505. clearTimeout(this.timer);
  8506. this.timer = null;
  8507. next();
  8508. },
  8509. beforeRouteEnter(to, from, next) {
  8510. next((vm) => {
  8511. vm.fpath = from.path;
  8512. });
  8513. },
  8514. created() {
  8515. this.getStudent();
  8516. this.getTeacher();
  8517. this.getClass();
  8518. this.getTemplate();
  8519. // this.selectEva();
  8520. this.loading = false;
  8521. setTimeout(() => {
  8522. this.selectCourseDetail();
  8523. // this.selectEva();
  8524. }, 500);
  8525. },
  8526. };
  8527. </script>
  8528. <style scoped>
  8529. @media screen and (max-width: 1280px) {
  8530. .mbCss {
  8531. flex-direction: column !important;
  8532. }
  8533. .pjCss {
  8534. width: 100% !important;
  8535. }
  8536. .evaCss {
  8537. width: 100% !important;
  8538. }
  8539. }
  8540. .dialog_diy>>>.el-dialog__header {
  8541. background: #3c3c3c !important;
  8542. padding: 15px 20px;
  8543. }
  8544. .dialog_diy>>>.el-dialog__title {
  8545. color: #fff;
  8546. }
  8547. .dialog_diy>>>.el-dialog__headerbtn {
  8548. top: 19px;
  8549. }
  8550. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8551. color: #fff;
  8552. }
  8553. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8554. color: #fff;
  8555. }
  8556. .dialog_diy>>>.el-dialog__body,
  8557. .dialog_diy>>>.el-dialog__footer {
  8558. background: #fafafa;
  8559. }
  8560. .dialog_diy3>>>.el-dialog__body,
  8561. .dialog_diy3>>>.el-dialog__footer {
  8562. background: #eee !important;
  8563. }
  8564. .dialog_diy3>>>.el-dialog__body {
  8565. padding: 20px 20px;
  8566. }
  8567. .source_diy>>>.el-dialog {
  8568. height: 100% !important;
  8569. margin: 0 auto !important;
  8570. }
  8571. .source_diy>>>.el-dialog__body {
  8572. height: calc(100% - 185px);
  8573. overflow: auto;
  8574. background: #e6eaf0;
  8575. }
  8576. .source_diy>>>.el-dialog__footer {
  8577. background: #e6eaf0 !important;
  8578. }
  8579. .left {
  8580. border-right: 1px solid rgb(60, 94, 143);
  8581. display: flex;
  8582. flex-direction: column;
  8583. align-items: center;
  8584. min-height: 600px;
  8585. width: 385px;
  8586. height: 80%;
  8587. }
  8588. .tips {
  8589. color: rgb(128, 128, 128);
  8590. font-size: 12px;
  8591. width: 270px;
  8592. margin: 40px;
  8593. }
  8594. .pb_content {
  8595. height: 100% !important;
  8596. /* margin: 0 20px 0 20px; */
  8597. }
  8598. .pb_content_body {
  8599. width: 100% !important;
  8600. height: 100%;
  8601. }
  8602. .info_solid {
  8603. width: 270px;
  8604. height: 30px;
  8605. border-left: 1px solid #bdbdbd;
  8606. margin: 10px 0px 10px 30px;
  8607. }
  8608. .info_steps {
  8609. width: 270px;
  8610. font-size: 0.875rem;
  8611. display: flex;
  8612. align-items: center;
  8613. }
  8614. .info_steps span:nth-child(1) {
  8615. width: 30px;
  8616. height: 30px;
  8617. background: rgba(0, 0, 0, 0.38);
  8618. display: block;
  8619. color: #fff;
  8620. border-radius: 40px;
  8621. text-align: center;
  8622. line-height: 30px;
  8623. }
  8624. .steps_active {
  8625. background: #3d67bc !important;
  8626. }
  8627. .info_steps span:nth-child(2) {
  8628. margin-left: 5px;
  8629. }
  8630. .right {
  8631. height: 100%;
  8632. width: 100%;
  8633. display: flex;
  8634. overflow: hidden;
  8635. }
  8636. .basic_box {
  8637. margin: 0 auto;
  8638. position: relative;
  8639. padding: 0 20px 0 20px;
  8640. }
  8641. .basic_box_success {
  8642. width: 100%;
  8643. min-height: 455px;
  8644. padding: 50px 0;
  8645. position: relative;
  8646. text-align: center;
  8647. border-bottom: 1px solid #bfbfbf;
  8648. box-sizing: border-box;
  8649. display: flex;
  8650. align-items: center;
  8651. flex-direction: column;
  8652. justify-content: center;
  8653. }
  8654. .info_title {
  8655. font-size: 1.5em;
  8656. margin-right: 25px;
  8657. /* margin: 20px 30px 20px 30px; */
  8658. }
  8659. .bInfo_title {
  8660. text-align: left;
  8661. margin: 10px 0;
  8662. }
  8663. .small_title {
  8664. font-size: 14px;
  8665. line-height: 40px;
  8666. }
  8667. .chapter_beizhu {
  8668. font-size: 12px;
  8669. font-weight: bold;
  8670. float: right;
  8671. color: rgb(128, 128, 128);
  8672. margin-top: 5px;
  8673. }
  8674. .chapter_uploadBox1 {
  8675. text-align: left;
  8676. background-color: rgb(242, 242, 242);
  8677. width: 100%;
  8678. height: 67px;
  8679. padding: 0px 15px;
  8680. border-radius: 8px;
  8681. overflow: hidden;
  8682. font-size: 16px;
  8683. box-sizing: border-box;
  8684. position: relative;
  8685. }
  8686. .chapter_add {
  8687. width: 100%;
  8688. height: 32px;
  8689. margin-top: 15px;
  8690. cursor: pointer;
  8691. }
  8692. .chapter_add_l {
  8693. margin-left: 5px;
  8694. width: 30px;
  8695. height: 30px;
  8696. float: left;
  8697. border: 1px solid #aaa;
  8698. color: #aaa;
  8699. border-radius: 50%;
  8700. font-size: 25px;
  8701. text-align: center;
  8702. }
  8703. .chapter_add_r {
  8704. font-size: 18px;
  8705. height: 40px;
  8706. line-height: 30px;
  8707. text-indent: 10px;
  8708. color: #aaa;
  8709. }
  8710. .chapter_add_r span {
  8711. font-size: 12px;
  8712. color: rgb(204, 204, 204);
  8713. }
  8714. .chapter_add_input {
  8715. display: none;
  8716. }
  8717. .line {
  8718. width: 85%;
  8719. margin: 0 auto;
  8720. border-top: 1px solid #e5e5e5;
  8721. margin-top: 20px;
  8722. }
  8723. .info_btnBox {
  8724. width: 100%;
  8725. display: flex;
  8726. justify-content: space-evenly;
  8727. margin: 10px 0 10px 0;
  8728. }
  8729. .info_btn,
  8730. .teacherWord {
  8731. color: #fff;
  8732. background-color: #0f7eff;
  8733. padding: 8px 24px;
  8734. font-size: 0.9375rem;
  8735. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8736. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8737. min-width: 64px;
  8738. font-weight: 500;
  8739. border-radius: 4px;
  8740. box-sizing: border-box;
  8741. border: none;
  8742. cursor: pointer;
  8743. }
  8744. .teacherWord {
  8745. width: 105px !important;
  8746. text-align: center !important;
  8747. line-height: 36px !important;
  8748. padding: 0 !important;
  8749. font-size: 14px !important;
  8750. margin: 10px 0 !important;
  8751. }
  8752. .wordTeacher {
  8753. display: flex;
  8754. flex-direction: column;
  8755. width: 145px;
  8756. text-align: center;
  8757. font-size: 14px;
  8758. margin: 30px 0 0 10px;
  8759. background: #fff;
  8760. position: relative;
  8761. border-radius: 5px;
  8762. padding: 25px 0px;
  8763. }
  8764. .wordPic {
  8765. margin: 0 auto;
  8766. width: 60px;
  8767. height: 60px;
  8768. cursor: pointer;
  8769. }
  8770. .deleteWord {
  8771. width: 22px;
  8772. height: 22px;
  8773. position: absolute;
  8774. right: 5px;
  8775. top: -15px;
  8776. cursor: pointer;
  8777. display: none;
  8778. z-index: 999;
  8779. }
  8780. .wordPic>img,
  8781. .deleteWord>img,
  8782. .addToolImg>img {
  8783. width: 100%;
  8784. height: 100%;
  8785. }
  8786. .info_btn:hover {
  8787. background-color: #4f7cd5 !important;
  8788. }
  8789. .cru_selectBox {
  8790. display: flex;
  8791. margin: 24px 0 10px;
  8792. flex-wrap: nowrap;
  8793. white-space: nowrap;
  8794. overflow: auto;
  8795. position: relative;
  8796. height: 47px;
  8797. }
  8798. .cru_selectBox::-webkit-scrollbar {
  8799. /*滚动条整体样式*/
  8800. width: 6px;
  8801. /*高宽分别对应横竖滚动条的尺寸*/
  8802. height: 6px;
  8803. }
  8804. /*定义滚动条轨道 内阴影+圆角*/
  8805. .cru_selectBox::-webkit-scrollbar-track {
  8806. border-radius: 10px;
  8807. background-color: #eee;
  8808. }
  8809. /*定义滑块 内阴影+圆角*/
  8810. .cru_selectBox::-webkit-scrollbar-thumb {
  8811. border-radius: 10px;
  8812. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8813. background-color: rgba(0, 0, 0, 0.1);
  8814. }
  8815. .cru_line {
  8816. position: absolute;
  8817. bottom: 8px;
  8818. -webkit-transition: all 0.5s;
  8819. transition: all 0.5s;
  8820. left: 0px;
  8821. width: 60px;
  8822. margin-left: 6px;
  8823. background: #0061FF;
  8824. height: 4px;
  8825. border-radius: 5px;
  8826. }
  8827. .cru_select {
  8828. font-size: 21px;
  8829. margin-right: 37px;
  8830. margin-left: 5px;
  8831. cursor: pointer;
  8832. color: #a6a6a6;
  8833. }
  8834. .cru_selected {
  8835. color: #0061FF !important;
  8836. }
  8837. .chapter_contentbox {
  8838. display: flex;
  8839. align-items: center;
  8840. margin-top: 15px;
  8841. }
  8842. .chapter_contentbox>div:nth-child(1) {
  8843. /* width: 150px; */
  8844. margin: 0px;
  8845. /* font-size: 2em; */
  8846. color: black;
  8847. display: block;
  8848. white-space: nowrap;
  8849. overflow: hidden;
  8850. text-overflow: ellipsis;
  8851. /* font-weight: 600; */
  8852. margin-right: 20px;
  8853. font-size: 18px;
  8854. }
  8855. .chapter_contentbox>div:nth-child(2) {
  8856. width: 380px;
  8857. }
  8858. .chapter_contentbox>div:nth-child(3),
  8859. .remove {
  8860. background-image: url("../../../assets/remove.png");
  8861. cursor: pointer;
  8862. opacity: 0.5;
  8863. width: 40px !important;
  8864. height: 50px;
  8865. background-repeat: no-repeat;
  8866. background-position: 5px 10px;
  8867. }
  8868. .remove1 {
  8869. background-image: url("../../../assets/remove1.png");
  8870. background-repeat: no-repeat;
  8871. background-position: 5px 10px;
  8872. width: 40px;
  8873. height: 50px;
  8874. cursor: pointer;
  8875. }
  8876. .binfo_input {
  8877. font: inherit;
  8878. color: currentColor;
  8879. width: 100%;
  8880. margin: 0;
  8881. /* padding: 15px 14px; */
  8882. padding: 8px 14px;
  8883. display: block;
  8884. min-width: 0;
  8885. outline: none;
  8886. box-sizing: content-box;
  8887. background: none;
  8888. border: 1px solid rgba(0, 0, 0, 0.23);
  8889. border-radius: 4px;
  8890. box-sizing: border-box;
  8891. background: #fff;
  8892. font-size: 18px;
  8893. }
  8894. .binfo_input:focus-visible {
  8895. border: 1px solid rgba(61, 103, 188);
  8896. }
  8897. .time {
  8898. display: flex;
  8899. margin: 35px 0 80px 0;
  8900. }
  8901. .chapter_btnbox {
  8902. width: 160px;
  8903. border-radius: 5px;
  8904. border: 2px dashed gray;
  8905. display: flex;
  8906. padding: 8px 50px;
  8907. align-items: center;
  8908. justify-content: center;
  8909. margin: 30px auto 0;
  8910. cursor: pointer;
  8911. }
  8912. .icon_add {
  8913. position: relative;
  8914. width: 24px;
  8915. padding-top: 20px;
  8916. border-radius: 100%;
  8917. border-width: 2px;
  8918. border-style: solid;
  8919. border-color: gray;
  8920. }
  8921. .icon_add i:nth-child(1) {
  8922. position: absolute;
  8923. left: 50%;
  8924. top: 50%;
  8925. height: 60%;
  8926. transform: translate(-50%, -50%);
  8927. border-width: 1px;
  8928. border-style: solid;
  8929. border-color: inherit;
  8930. }
  8931. .icon_add i:nth-child(2) {
  8932. position: absolute;
  8933. top: 50%;
  8934. left: 50%;
  8935. width: 60%;
  8936. transform: translate(-50%, -50%);
  8937. border-width: 1px;
  8938. border-style: solid;
  8939. border-color: inherit;
  8940. }
  8941. .chapter_btn_w {
  8942. font-size: 0.9375rem;
  8943. font-weight: bold;
  8944. color: gray;
  8945. margin-left: 20px;
  8946. }
  8947. .disUoloadSty>>>.el-icon-plus {
  8948. display: none !important;
  8949. /* 上传按钮隐藏 */
  8950. }
  8951. .imgLeft {
  8952. margin: 15px 0;
  8953. }
  8954. .add_info_box {
  8955. margin: 20px 0;
  8956. }
  8957. .add_info_box button {
  8958. margin: 0 10px 10px 0;
  8959. }
  8960. .add_chapters_box {
  8961. text-align: left;
  8962. background-color: rgb(232 234 237);
  8963. width: 100%;
  8964. padding: 0px 15px;
  8965. border-radius: 15px;
  8966. font-size: 16px;
  8967. box-sizing: border-box;
  8968. position: relative;
  8969. padding: 0 10px 5px 10px;
  8970. height: 185px;
  8971. overflow-y: auto;
  8972. overflow-x: hidden;
  8973. }
  8974. .homework_box {
  8975. display: flex;
  8976. align-items: flex-start;
  8977. flex-wrap: wrap;
  8978. margin: 15px 0 0 0;
  8979. flex-direction: column;
  8980. align-content: flex-start;
  8981. }
  8982. .course_homework {
  8983. display: flex;
  8984. justify-content: center;
  8985. flex-direction: row;
  8986. align-items: center;
  8987. margin: 0 10px 0 0;
  8988. }
  8989. .course_homework>>>.el-input__inner {
  8990. width: 140px;
  8991. margin-left: 15px;
  8992. }
  8993. .chapter_upload_move {
  8994. position: relative;
  8995. background-color: #fff;
  8996. position: absolute;
  8997. width: 100%;
  8998. top: 0px;
  8999. left: 0px;
  9000. border: 1px solid #eee;
  9001. border-radius: 5px;
  9002. transition: width 2s;
  9003. -moz-transition: width 2s;
  9004. -webkit-transition: width 2s;
  9005. -o-transition: width 2s;
  9006. }
  9007. .chapter_upload_l_i {
  9008. background-image: url("../../../assets/icon.png");
  9009. background-position: 3px -165px;
  9010. width: 30px;
  9011. height: 30px;
  9012. margin: 10px auto 0 auto;
  9013. }
  9014. .left_first {
  9015. display: flex;
  9016. flex-direction: column;
  9017. flex-wrap: nowrap;
  9018. }
  9019. .right_first {
  9020. width: 100%;
  9021. height: 100%;
  9022. margin-top: 15px;
  9023. }
  9024. .right_title {
  9025. height: 30px;
  9026. padding: 15px 0 15px 20px;
  9027. border-bottom: 1px solid #f2f2f2;
  9028. font-size: 1.5em;
  9029. font-weight: bold;
  9030. color: #0f7eff;
  9031. margin: 0 auto;
  9032. }
  9033. .addNewPP>>>.el-dialog {
  9034. margin-top: 5vh !important;
  9035. }
  9036. .people {
  9037. border: 1px solid rgb(229 229 229);
  9038. height: 350px;
  9039. border-radius: 5px;
  9040. width: 100%;
  9041. overflow: auto;
  9042. }
  9043. .people_top {
  9044. display: flex;
  9045. width: 100%;
  9046. /* justify-content: space-between; */
  9047. /* align-items: center; */
  9048. flex-direction: column;
  9049. padding: 10px 25px 0;
  9050. box-sizing: border-box;
  9051. }
  9052. .people_nav,
  9053. .people_top_right {
  9054. /* padding: 20px 0 0 20px; */
  9055. }
  9056. .people_top_right {
  9057. height: 40px;
  9058. margin-bottom: 10px;
  9059. }
  9060. .people_search {
  9061. display: flex;
  9062. position: relative;
  9063. }
  9064. .people_search>>>.el-input__inner {
  9065. /* height: 25px; */
  9066. width: 95%;
  9067. }
  9068. .search_img {
  9069. width: 20px;
  9070. height: 20px;
  9071. position: absolute;
  9072. right: 30px;
  9073. top: 50%;
  9074. transform: translateY(-50%);
  9075. }
  9076. .search_img>img {
  9077. width: 100%;
  9078. height: 100%;
  9079. }
  9080. .people_name {
  9081. display: flex;
  9082. justify-content: flex-start;
  9083. padding: 10px 0 0 25px;
  9084. flex-direction: column;
  9085. flex-wrap: nowrap;
  9086. height: calc(100% - 140px);
  9087. overflow-y: auto;
  9088. overflow-x: hidden;
  9089. flex-direction: column;
  9090. }
  9091. .people_name>>>.el-checkbox {
  9092. width: 100%;
  9093. display: flex;
  9094. align-items: center;
  9095. margin-bottom: 10px;
  9096. }
  9097. .people_name>>>.el-checkbox__label {
  9098. text-overflow: ellipsis;
  9099. overflow: hidden;
  9100. width: 100%;
  9101. }
  9102. .right_img {
  9103. width: 150px;
  9104. height: 150px;
  9105. margin: 0 auto;
  9106. }
  9107. .right_img>img {
  9108. width: 100%;
  9109. height: 100%;
  9110. }
  9111. .number {
  9112. margin-top: 20px;
  9113. color: #4aa6ff;
  9114. text-decoration: underline;
  9115. }
  9116. .success_button {
  9117. display: flex;
  9118. text-align: center;
  9119. margin: 5% 0 auto;
  9120. flex-direction: row;
  9121. justify-content: center;
  9122. }
  9123. .look_course {
  9124. margin-right: 40px;
  9125. background: #3d67bc;
  9126. width: 200px;
  9127. height: 35px;
  9128. line-height: 35px;
  9129. color: #fff;
  9130. text-align: center;
  9131. font-size: 14px;
  9132. border-radius: 5px;
  9133. cursor: pointer;
  9134. }
  9135. .attend_others {
  9136. width: 250px;
  9137. background: #4fb13c;
  9138. height: 35px;
  9139. line-height: 35px;
  9140. color: #fff;
  9141. text-align: center;
  9142. font-size: 14px;
  9143. border-radius: 5px;
  9144. cursor: pointer;
  9145. }
  9146. .dialog_diy2>>>.el-dialog__body {
  9147. text-align: center;
  9148. }
  9149. .write_togother {
  9150. position: absolute;
  9151. right: 45px;
  9152. display: flex;
  9153. top: 5%;
  9154. }
  9155. .write_people {
  9156. font-size: 14px;
  9157. line-height: 50px;
  9158. padding-right: 10px;
  9159. }
  9160. .end_write {
  9161. background: #3d67bc;
  9162. color: #fff;
  9163. width: 100px;
  9164. height: 35px;
  9165. line-height: 35px;
  9166. text-align: center;
  9167. font-size: 14px;
  9168. border-radius: 5px;
  9169. cursor: pointer;
  9170. }
  9171. .chapter_upload {
  9172. height: 50px;
  9173. margin-top: 12px;
  9174. position: relative;
  9175. display: flex;
  9176. align-items: center;
  9177. width: 100%;
  9178. min-height: 50px;
  9179. }
  9180. .chapter_upload_t {
  9181. background-color: #fff;
  9182. position: absolute;
  9183. height: 100%;
  9184. top: 0px;
  9185. left: 0px;
  9186. border-radius: 40px;
  9187. box-sizing: border-box;
  9188. box-shadow: 0 0 3px 3px #dfdfdf;
  9189. }
  9190. .chapter_upload_o {
  9191. width: 100%;
  9192. height: 100%;
  9193. position: relative;
  9194. z-index: 1;
  9195. }
  9196. .chapter_upload_ic {
  9197. height: 30px;
  9198. float: right;
  9199. }
  9200. .chapter_upload_ic_l {
  9201. width: 50px;
  9202. height: 50px;
  9203. float: left;
  9204. }
  9205. .chapter_upload_ic_l div {
  9206. width: 30px;
  9207. height: 35px;
  9208. background: url("../../../assets/icon/icon.png");
  9209. }
  9210. .chapter_upload_ic_r {
  9211. width: 50px;
  9212. height: 50px;
  9213. float: left;
  9214. margin-left: 0px;
  9215. display: flex;
  9216. align-items: center;
  9217. }
  9218. .chapter_upload_ic_r div {
  9219. width: 25px;
  9220. height: 25px;
  9221. background-image: url("../../../assets/delete.png");
  9222. background-size: 100% 100%;
  9223. }
  9224. .chapter_upload_n {
  9225. display: flex;
  9226. text-indent: 10px;
  9227. text-decoration: none;
  9228. text-overflow: ellipsis;
  9229. white-space: nowrap;
  9230. overflow: hidden;
  9231. width: 55%;
  9232. margin-left: 10px;
  9233. cursor: pointer;
  9234. margin-top: 2px;
  9235. }
  9236. .chapter_upload_l_i1 {
  9237. background-image: url("../../../assets/icon/video.png");
  9238. width: 28px;
  9239. height: 28px;
  9240. background-size: 100% 100%;
  9241. }
  9242. .chapter_upload_l_i5 {
  9243. background-image: url("../../../assets/icon/word.png");
  9244. width: 24px;
  9245. height: 24px;
  9246. background-size: 100% 100%;
  9247. }
  9248. .chapter_upload_l_i8 {
  9249. background-image: url("../../../assets/icon/line.png");
  9250. width: 24px;
  9251. height: 24px;
  9252. background-size: 100% 100%;
  9253. }
  9254. .chapter_upload_ud {
  9255. display: flex;
  9256. flex-direction: column;
  9257. margin-left: 5px;
  9258. justify-content: center;
  9259. }
  9260. .chapter_upload_up {
  9261. background-image: url("../../../assets/icon/up.png");
  9262. width: 17px;
  9263. height: 15px;
  9264. background-size: 100% 100%;
  9265. cursor: pointer;
  9266. }
  9267. .chapter_upload_down {
  9268. background-image: url("../../../assets/icon/down.png");
  9269. width: 17px;
  9270. height: 15px;
  9271. margin: 2px auto 0 auto;
  9272. background-size: 100% 100%;
  9273. cursor: pointer;
  9274. }
  9275. .addWordStyle {
  9276. display: flex;
  9277. flex-direction: row;
  9278. justify-content: flex-start;
  9279. overflow-x: auto;
  9280. white-space: nowrap;
  9281. flex-wrap: wrap;
  9282. }
  9283. /* table 样式 */
  9284. .cont>>>table {
  9285. border-top: 1px solid #ccc;
  9286. border-left: 1px solid #ccc;
  9287. }
  9288. .cont>>>table td,
  9289. .cont>>>table th {
  9290. border-bottom: 1px solid #ccc;
  9291. border-right: 1px solid #ccc;
  9292. /* padding: 20px 5px; */
  9293. padding: 5px 10px;
  9294. max-width: 0px;
  9295. height: 30px;
  9296. vertical-align: baseline;
  9297. }
  9298. .cont>>>table th {
  9299. border-bottom: 2px solid #ccc;
  9300. text-align: center;
  9301. }
  9302. /* blockquote 样式 */
  9303. .cont>>>blockquote {
  9304. display: block;
  9305. border-left: 8px solid #d0e5f2;
  9306. padding: 5px 10px;
  9307. margin: 10px 0;
  9308. line-height: 1.4;
  9309. font-size: 100%;
  9310. background-color: #f1f1f1;
  9311. }
  9312. /* code 样式 */
  9313. .cont>>>code {
  9314. display: inline-block;
  9315. *display: inline;
  9316. *zoom: 1;
  9317. background-color: #f1f1f1;
  9318. border-radius: 3px;
  9319. padding: 3px 5px;
  9320. margin: 0 3px;
  9321. }
  9322. .cont>>>pre code {
  9323. display: block;
  9324. }
  9325. /* ul ol 样式 */
  9326. .cont>>>ul,
  9327. ol {
  9328. margin: 10px 0 10px 20px;
  9329. }
  9330. .wordbox {
  9331. display: flex;
  9332. flex-wrap: wrap;
  9333. cursor: pointer;
  9334. width: 100%;
  9335. }
  9336. .checkword {
  9337. width: 22px;
  9338. height: 22px;
  9339. margin: 10px auto 0;
  9340. cursor: pointer;
  9341. }
  9342. .checkword img {
  9343. width: 100%;
  9344. }
  9345. .stepBg {
  9346. display: flex;
  9347. flex-direction: column;
  9348. justify-content: space-between;
  9349. align-items: center;
  9350. background: #fff;
  9351. width: 300px;
  9352. margin: 0 25px 0 0;
  9353. }
  9354. .stepTop {
  9355. min-width: 300px;
  9356. width: 300px;
  9357. /* border-radius: 10px; */
  9358. display: flex;
  9359. flex-direction: column;
  9360. justify-content: flex-start;
  9361. align-items: center;
  9362. flex-wrap: nowrap;
  9363. background: #fff;
  9364. /* top: 18%; */
  9365. }
  9366. .stepTop>div {
  9367. height: 65px;
  9368. width: 85%;
  9369. cursor: pointer;
  9370. margin: 10px 0;
  9371. border-radius: 10px;
  9372. }
  9373. .first,
  9374. .second,
  9375. .third,
  9376. .four {
  9377. background: #0061FF;
  9378. height: 90px;
  9379. color: #fff;
  9380. display: flex;
  9381. flex-direction: row;
  9382. align-items: center;
  9383. justify-content: center;
  9384. }
  9385. .cfirst{
  9386. display: flex;
  9387. align-items: center;
  9388. justify-content: flex-start;
  9389. width: 150px;
  9390. }
  9391. .cfirst img{
  9392. width:100%;
  9393. }
  9394. .cfirst > div:nth-child(1){
  9395. margin-right: 5px;
  9396. width: 28px;
  9397. display: flex;
  9398. align-items: center;
  9399. }
  9400. /* .first>div>div:nth-child(1),
  9401. .second>div>div:nth-child(1),
  9402. .third>div>div:nth-child(1),
  9403. .four>div>div:nth-child(1) {
  9404. margin: 0 10px 0 0;
  9405. width: 2rem;
  9406. } */
  9407. .firstNo,
  9408. .secondNo,
  9409. .thirdNo,
  9410. .fourNo {
  9411. background: #e7e7e7;
  9412. color: #adadad;
  9413. display: flex;
  9414. flex-direction: row;
  9415. align-items: center;
  9416. justify-content: center;
  9417. }
  9418. /* .firstNo>div>div:nth-child(1),
  9419. .secondNo>div>div:nth-child(1),
  9420. .thirdNo>div>div:nth-child(1),
  9421. .fourNo>div>div:nth-child(1) {
  9422. margin: 0 10px 0 0;
  9423. width: 2rem;
  9424. } */
  9425. .uploadWidth>>>.el-upload {
  9426. width: 60px;
  9427. height: 60px;
  9428. position: relative;
  9429. }
  9430. .addPeople {
  9431. background: #fa6060;
  9432. width: 150px;
  9433. height: 40px;
  9434. color: #fff;
  9435. border-radius: 5px;
  9436. text-align: center;
  9437. line-height: 40px;
  9438. font-size: 14px;
  9439. cursor: pointer;
  9440. margin-top: 20px;
  9441. }
  9442. .kcImg {
  9443. width: 60px;
  9444. margin-left: 10px;
  9445. }
  9446. .zyImg {
  9447. width: 55px;
  9448. margin: 0 10px;
  9449. }
  9450. .deleteZy {
  9451. width: 20px;
  9452. position: absolute;
  9453. top: 5px;
  9454. right: 5px;
  9455. cursor: pointer;
  9456. }
  9457. .kcImg>img,
  9458. .zyImg>img,
  9459. .deleteZy>img {
  9460. width: 100%;
  9461. height: 100%;
  9462. }
  9463. .zyBox {
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. background: #67d37d;
  9468. color: #fff;
  9469. width: 210px;
  9470. margin: 20px 20px 0 0;
  9471. border-radius: 10px;
  9472. height: 70px;
  9473. position: relative;
  9474. }
  9475. .upCss {
  9476. display: flex;
  9477. flex-direction: row;
  9478. justify-content: flex-start;
  9479. }
  9480. .upCss>>>.el-icon-plus {
  9481. position: none !important;
  9482. width: 200px;
  9483. height: 100px;
  9484. display: flex;
  9485. flex-wrap: nowrap;
  9486. flex-direction: column;
  9487. align-items: center;
  9488. justify-content: center;
  9489. border: 1px dashed #ccc;
  9490. min-width: 78px;
  9491. min-height: 100px;
  9492. z-index: 999;
  9493. }
  9494. .upCss>>>.el-upload-list__item-name {
  9495. width: 100px;
  9496. white-space: nowrap;
  9497. overflow: hidden;
  9498. text-overflow: ellipsis;
  9499. }
  9500. .upCss>>>.el-upload-list__item .el-icon-close {
  9501. font-size: 20px;
  9502. z-index: 9999;
  9503. }
  9504. .addStageImg {
  9505. min-width: 25px;
  9506. min-height: 25px;
  9507. width: 25px;
  9508. height: 25px;
  9509. cursor: pointer;
  9510. }
  9511. .addHW {
  9512. width: 28px;
  9513. height: 28px;
  9514. cursor: pointer;
  9515. }
  9516. .addStageImg>img,
  9517. .addHW>img {
  9518. width: 100%;
  9519. height: 100%;
  9520. }
  9521. .addNewPP>>>.el-dialog__body {
  9522. padding: 5px 20px;
  9523. }
  9524. .isHeight {
  9525. height: 680px;
  9526. }
  9527. .toolChoose {
  9528. display: flex;
  9529. /* width: 100%; */
  9530. flex-direction: row;
  9531. flex-wrap: wrap;
  9532. }
  9533. .tool {
  9534. display: flex;
  9535. flex-direction: column;
  9536. flex-wrap: nowrap;
  9537. width: fit-content;
  9538. margin: 10px 0 10px 0;
  9539. align-items: center;
  9540. }
  9541. .tool+.tool {
  9542. margin-right: 45px;
  9543. }
  9544. .whiteBIcon {
  9545. width: 80px;
  9546. cursor: pointer;
  9547. display: flex;
  9548. flex-direction: column;
  9549. flex-wrap: nowrap;
  9550. align-items: center;
  9551. }
  9552. .whiteBIcon>img,
  9553. .toolIcon>img,
  9554. .arrow>img {
  9555. width: 100%;
  9556. height: 100%;
  9557. }
  9558. .check img {
  9559. width: 20px;
  9560. height: 20px;
  9561. }
  9562. .whiteBIcon>img {
  9563. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9564. border-radius: 15px;
  9565. }
  9566. .check {
  9567. /* width: 20px;
  9568. height: 20px; */
  9569. cursor: pointer;
  9570. margin: 10px 0;
  9571. }
  9572. .checkDiv {
  9573. display: flex;
  9574. align-items: center;
  9575. }
  9576. .checkDiv span {
  9577. margin-left: 5px;
  9578. color: #858585;
  9579. }
  9580. .customWidth>>>.el-dialog {
  9581. min-width: 500px !important;
  9582. }
  9583. .a_addBox {
  9584. margin: 10px 0;
  9585. background: #fff;
  9586. padding: 15px;
  9587. max-height: 600px;
  9588. overflow: auto;
  9589. }
  9590. .a_add_box {
  9591. border-bottom: 2px solid #eee;
  9592. padding-bottom: 10px;
  9593. }
  9594. .a_add_head {
  9595. display: flex;
  9596. align-items: center;
  9597. justify-content: space-between;
  9598. margin: 10px 0;
  9599. font-size: 18px;
  9600. }
  9601. .a_add_checkType {
  9602. margin-top: 10px;
  9603. display: flex;
  9604. font-size: 16px;
  9605. }
  9606. .a_add_checkType span {
  9607. box-sizing: border-box;
  9608. padding: 0 0 5px 0;
  9609. cursor: pointer;
  9610. }
  9611. .a_add_checkType span+span {
  9612. margin-left: 10px;
  9613. }
  9614. .a_add_checkType .active {
  9615. border-bottom: 2px solid #409eff;
  9616. color: #409eff;
  9617. }
  9618. .a_add_head .a_add_head_input {
  9619. width: 300px;
  9620. }
  9621. .a_add_head .a_add_head_div {
  9622. display: flex;
  9623. align-items: center;
  9624. justify-content: space-between;
  9625. }
  9626. .a_add_body {
  9627. display: flex;
  9628. /* align-items: center; */
  9629. align-items: flex-end;
  9630. }
  9631. .a_add_input {
  9632. display: flex;
  9633. align-items: center;
  9634. flex-wrap: wrap;
  9635. }
  9636. .a_add_input_choice {
  9637. flex-direction: column;
  9638. margin-right: 10px;
  9639. }
  9640. .a_add_input_choice>>>.el-radio {
  9641. display: flex;
  9642. align-items: center;
  9643. flex-direction: row-reverse;
  9644. margin: 10px 0 0 0;
  9645. }
  9646. .a_add_input_choice>>>.el-checkbox {
  9647. display: flex;
  9648. align-items: center;
  9649. flex-direction: row-reverse;
  9650. margin: 10px 0 0 0;
  9651. }
  9652. .width100 {
  9653. width: 100%;
  9654. }
  9655. .a_add_input .a_add_persent {
  9656. width: 100%;
  9657. }
  9658. .a_add_persent_div {
  9659. width: 100%;
  9660. display: flex;
  9661. align-items: center;
  9662. }
  9663. .a_add_persent_div span {
  9664. margin: 5px 0;
  9665. }
  9666. .a_add_persent_div span:nth-child(1) {
  9667. width: 30%;
  9668. }
  9669. .a_add_persent_div span:nth-child(2) {
  9670. width: 7%;
  9671. }
  9672. .a_add_persent_div span:nth-child(3) {
  9673. width: 40%;
  9674. }
  9675. .a_add_body_div {
  9676. display: flex;
  9677. align-items: center;
  9678. justify-content: center;
  9679. /* flex-direction: column; */
  9680. }
  9681. .all_choose {
  9682. display: flex;
  9683. flex-direction: row;
  9684. align-items: flex-start;
  9685. width: 100%;
  9686. }
  9687. .all_choose>span {
  9688. min-width: 80px;
  9689. width: 80px;
  9690. display: block;
  9691. white-space: nowrap;
  9692. overflow: hidden;
  9693. text-overflow: ellipsis;
  9694. text-align-last: justify;
  9695. margin-right: 10px;
  9696. }
  9697. .all_choose>>>.el-checkbox-group {
  9698. display: flex;
  9699. flex-direction: row;
  9700. width: 100%;
  9701. flex-wrap: wrap;
  9702. align-content: center;
  9703. justify-content: flex-start;
  9704. align-items: center;
  9705. margin-top: 3px;
  9706. }
  9707. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9708. margin-bottom: 10px;
  9709. display: flex;
  9710. flex-direction: row;
  9711. align-items: center;
  9712. }
  9713. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9714. min-width: 80px;
  9715. overflow: hidden;
  9716. width: 80px;
  9717. text-overflow: ellipsis;
  9718. white-space: nowrap;
  9719. }
  9720. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9721. width: auto;
  9722. }
  9723. .choose>div:nth-child(3)>span {
  9724. /* letter-spacing: 0 !important; */
  9725. }
  9726. .choose {
  9727. display: flex;
  9728. flex-direction: column;
  9729. flex-wrap: nowrap;
  9730. height: 100%;
  9731. justify-content: space-evenly;
  9732. align-items: flex-start;
  9733. }
  9734. .both {
  9735. display: flex;
  9736. flex-direction: row;
  9737. flex-wrap: wrap;
  9738. width: 100%;
  9739. align-items: center;
  9740. justify-content: flex-start;
  9741. margin: 30px 0;
  9742. }
  9743. .subjectBox {
  9744. display: flex;
  9745. flex-wrap: wrap;
  9746. width: 100%;
  9747. align-items: center;
  9748. }
  9749. .subjectList {}
  9750. .subjectBtn {
  9751. margin-left: 10px;
  9752. border-radius: 5px;
  9753. border: 1px dashed #bfbfbf;
  9754. padding: 2px 5px;
  9755. cursor: pointer;
  9756. font-size: 14px;
  9757. color: #545454;
  9758. }
  9759. .notice>>>.el-dialog {
  9760. width: 500px !important;
  9761. text-align: center;
  9762. }
  9763. .notice>>>.el-button {
  9764. margin-top: 20px;
  9765. }
  9766. .whiteBg {
  9767. background: #fff;
  9768. border-radius: 10px;
  9769. }
  9770. .chooseWho {
  9771. display: flex;
  9772. width: 380px;
  9773. flex-direction: row;
  9774. flex-wrap: nowrap;
  9775. justify-content: space-between;
  9776. padding-bottom: 10px;
  9777. }
  9778. .chooseWho>div {
  9779. cursor: pointer;
  9780. padding-bottom: 10px;
  9781. font-weight: bold;
  9782. }
  9783. .isChooseActive {
  9784. color: #3e88f4;
  9785. border-bottom: 2px solid #2f80f3;
  9786. }
  9787. .toolSort {
  9788. display: flex;
  9789. flex-direction: row;
  9790. flex-wrap: wrap;
  9791. justify-content: flex-start;
  9792. align-items: flex-start;
  9793. }
  9794. .toolSort>div {
  9795. margin-right: 45px;
  9796. }
  9797. .tools {
  9798. width: 100%;
  9799. display: flex;
  9800. flex-direction: column;
  9801. flex-wrap: nowrap;
  9802. align-items: flex-start;
  9803. }
  9804. .leftTools,
  9805. .rightTools {
  9806. width: 50%;
  9807. }
  9808. .rightTools {
  9809. display: flex;
  9810. flex-direction: row;
  9811. flex-wrap: nowrap;
  9812. justify-content: space-around;
  9813. }
  9814. .firstToolList {
  9815. display: flex;
  9816. flex-direction: column;
  9817. flex-wrap: nowrap;
  9818. align-items: center;
  9819. }
  9820. .iconList {
  9821. display: flex;
  9822. flex-direction: row;
  9823. flex-wrap: wrap;
  9824. justify-content: flex-start;
  9825. align-items: center;
  9826. margin: 20px 0 5px 0;
  9827. width: 240px;
  9828. min-width: 240px;
  9829. }
  9830. .iconTool {
  9831. display: flex;
  9832. flex-direction: column;
  9833. flex-wrap: nowrap;
  9834. align-items: center;
  9835. justify-content: flex-start;
  9836. margin: 15px 10px;
  9837. }
  9838. .toolIcon {
  9839. width: 50px;
  9840. }
  9841. .taskBorder {
  9842. border: 1px solid #e1e1e1;
  9843. border-radius: 10px;
  9844. margin-top: 20px;
  9845. min-height: 690px;
  9846. position: relative;
  9847. background: #fbfbfb;
  9848. }
  9849. .smallTaskBorder {
  9850. height: 170px;
  9851. min-height: 170px !important;
  9852. overflow: hidden;
  9853. }
  9854. .taskBorder>div {
  9855. padding: 30px 0 10px 30px;
  9856. }
  9857. .addTaskBorder {
  9858. border: 2px solid #e1e1e1;
  9859. border-radius: 10px;
  9860. margin-top: 25px;
  9861. cursor: pointer;
  9862. }
  9863. .addTaskBorder>div {
  9864. margin: 0 auto;
  9865. display: flex;
  9866. align-items: center;
  9867. justify-content: center;
  9868. }
  9869. .addTaskBorder>div>img {
  9870. width: 100px;
  9871. }
  9872. .addTaskBorder>div>span {
  9873. font-size: 23px;
  9874. color: #dbdbdb;
  9875. }
  9876. .task_add_title {
  9877. margin: 50px 0px 10px;
  9878. font-size: 1.5em;
  9879. font-weight: 700;
  9880. color: #0f7eff;
  9881. }
  9882. .task_add_title::after {
  9883. content: "提示:建议不要多账户同时编辑同一个任务";
  9884. font-size: 14px;
  9885. margin-left: 5px;
  9886. font-weight: 400;
  9887. color: #ff3a3a;
  9888. }
  9889. .funBlock {
  9890. display: flex;
  9891. padding: 15px 0;
  9892. flex-direction: row;
  9893. justify-content: flex-end;
  9894. align-items: center;
  9895. position: absolute;
  9896. right: 15px;
  9897. bottom: 35px;
  9898. }
  9899. .fold {
  9900. display: flex;
  9901. margin: 0 10px;
  9902. flex-direction: row;
  9903. align-items: center;
  9904. cursor: pointer;
  9905. }
  9906. .arrow {
  9907. width: 15px;
  9908. height: 15px;
  9909. margin-left: 10px;
  9910. }
  9911. .addToolFunBox {
  9912. display: flex;
  9913. width: 100%;
  9914. align-items: center;
  9915. justify-content: center;
  9916. margin-bottom: 35px;
  9917. }
  9918. .addToolFun+.addToolFun {
  9919. margin-left: 10px;
  9920. }
  9921. .addToolFun {
  9922. display: flex;
  9923. width: 150px;
  9924. flex-direction: row;
  9925. align-items: center;
  9926. justify-content: center;
  9927. border: 1px dashed;
  9928. border-radius: 5px;
  9929. height: 50px;
  9930. /* margin: 35px auto 0; */
  9931. cursor: pointer;
  9932. }
  9933. .addToolImg {
  9934. width: 30px;
  9935. height: 30px;
  9936. margin-right: 20px;
  9937. }
  9938. .addToolsDia>>>.el-dialog__body {
  9939. padding: 20px;
  9940. }
  9941. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9942. padding: 0;
  9943. }
  9944. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9945. padding: 0;
  9946. border-bottom: none;
  9947. margin-bottom: 0;
  9948. }
  9949. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9950. width: 100%;
  9951. }
  9952. .lineCss>>>.el-form-item__label {
  9953. width: auto !important;
  9954. }
  9955. .lineCss>>>.el-form-item__content {
  9956. margin-left: 50px !important;
  9957. }
  9958. .newSteps {
  9959. display: flex;
  9960. width: 100% !important;
  9961. height: 80px;
  9962. cursor: pointer;
  9963. margin: 10px 0;
  9964. border-radius: 10px;
  9965. flex-direction: row;
  9966. align-content: center;
  9967. justify-content: center;
  9968. align-items: center;
  9969. margin: 0 !important;
  9970. }
  9971. /* 评价样式 */
  9972. .elist_css {
  9973. padding-bottom: 60px !important;
  9974. }
  9975. .elist_title {
  9976. margin-bottom: 10px;
  9977. }
  9978. .elist_input {}
  9979. .elist_input_box {
  9980. display: flex;
  9981. align-items: center;
  9982. flex-wrap: wrap;
  9983. }
  9984. .elist_input_box+.elist_input_box {
  9985. margin-top: 30px;
  9986. }
  9987. .elist_input .elist_input_box input {
  9988. font: inherit;
  9989. color: currentColor;
  9990. /* width: 200px; */
  9991. max-width: 200px;
  9992. padding: 8px 14px;
  9993. display: block;
  9994. min-width: 0;
  9995. outline: none;
  9996. border: 1px solid rgba(0, 0, 0, 0.23);
  9997. border-radius: 4px;
  9998. box-sizing: border-box;
  9999. background: #fff;
  10000. margin: 0 20px 0 0;
  10001. }
  10002. .elist_input .elist_input_box span {
  10003. height: 36px;
  10004. line-height: 36px;
  10005. color: rgb(82, 82, 82);
  10006. min-width: 80px;
  10007. }
  10008. .elist_input .elist_input_box .remove {
  10009. height: 20px;
  10010. width: 20px;
  10011. background-size: 100% 100%;
  10012. background-position: unset;
  10013. margin-left: 5px;
  10014. }
  10015. .elist_input_box>>>.el-rate {
  10016. display: flex;
  10017. height: 36px;
  10018. align-items: center;
  10019. }
  10020. .elist_input_box .elist_inptu_text {
  10021. width: 100%;
  10022. display: flex;
  10023. align-items: center;
  10024. margin-top: 10px;
  10025. }
  10026. .elist_input_box .elist_inptu_text input {
  10027. /* width: 500px; */
  10028. width: 100%;
  10029. max-width: unset;
  10030. }
  10031. .elist_input_box>>>.el-rate__icon {
  10032. font-size: 24px;
  10033. }
  10034. .elist_btn {
  10035. margin-top: 10px;
  10036. }
  10037. .lineTitle {
  10038. margin-top: 15px;
  10039. width: 110px;
  10040. }
  10041. .courseTop {
  10042. display: flex;
  10043. flex-direction: row;
  10044. justify-content: flex-start;
  10045. align-items: center;
  10046. /* width: 100%; */
  10047. width: calc(100% - 20px);
  10048. /* background: rgb(255, 255, 255); */
  10049. /* border-radius: 10px; */
  10050. padding: 20px 0;
  10051. }
  10052. .stepsNav {
  10053. display: flex;
  10054. flex-direction: row;
  10055. justify-content: flex-start;
  10056. align-items: center;
  10057. }
  10058. .stepsWord {
  10059. font-size: 18px;
  10060. color: #fff;
  10061. font-weight: bold;
  10062. margin-left: auto;
  10063. background: rgb(15, 126, 255);
  10064. border-radius: 5px;
  10065. padding: 3px 25px;
  10066. box-sizing: border-box;
  10067. }
  10068. .rightBox {
  10069. width: calc(100% - 20px);
  10070. background: rgb(255, 255, 255);
  10071. border-radius: 10px;
  10072. overflow: auto;
  10073. height: calc(100% - 130px);
  10074. position: relative;
  10075. }
  10076. .e_add_top {
  10077. display: flex;
  10078. justify-content: space-between;
  10079. padding: 20px 20px 0 20px;
  10080. border-radius: 3px;
  10081. background: #fff;
  10082. }
  10083. .e_add_title2 {
  10084. display: flex;
  10085. align-items: center;
  10086. }
  10087. .e_add_title2 span {
  10088. width: 40px;
  10089. }
  10090. .e_add_title {
  10091. display: flex;
  10092. align-items: center;
  10093. color: #b8b8b8;
  10094. font-size: 18px;
  10095. position: relative;
  10096. height: 40px;
  10097. }
  10098. .e_add_title span {
  10099. margin-right: 10px;
  10100. }
  10101. .e_add_title .el_input {
  10102. width: 300px;
  10103. }
  10104. .e_add_title>>>.el-input__inner {
  10105. width: 400px;
  10106. }
  10107. .e_add_btn {}
  10108. .e_add_content {
  10109. display: flex;
  10110. width: 100%;
  10111. }
  10112. .e_add_list {
  10113. background: #fff;
  10114. height: 500px;
  10115. width: 210px;
  10116. position: relative;
  10117. margin: 15px 5px 0 0;
  10118. flex-shrink: 0;
  10119. display: flex;
  10120. flex-direction: column;
  10121. }
  10122. .e_add_list_title {
  10123. font-size: 20px;
  10124. width: 100%;
  10125. box-sizing: border-box;
  10126. padding: 15px 40px;
  10127. text-align: center;
  10128. border-bottom: 1px solid #eaeaea;
  10129. position: relative;
  10130. display: flex;
  10131. align-items: center;
  10132. justify-content: center;
  10133. height: 57px;
  10134. background: #f6f6f6;
  10135. }
  10136. .e_add_list_title span {
  10137. overflow: hidden;
  10138. white-space: nowrap;
  10139. text-overflow: ellipsis;
  10140. }
  10141. .e_add_list_title img {
  10142. position: absolute;
  10143. right: 15px;
  10144. width: 25px;
  10145. cursor: pointer;
  10146. top: 50%;
  10147. transform: translateY(-50%);
  10148. }
  10149. .e_add_list_body {
  10150. height: calc(100% - 187px);
  10151. overflow: auto;
  10152. }
  10153. .e_add_list_child {
  10154. width: 100%;
  10155. display: flex;
  10156. align-items: center;
  10157. justify-content: center;
  10158. position: relative;
  10159. box-sizing: border-box;
  10160. padding: 15px 40px;
  10161. text-align: center;
  10162. }
  10163. .e_add_list_child span {
  10164. overflow: hidden;
  10165. white-space: nowrap;
  10166. text-overflow: ellipsis;
  10167. cursor: pointer;
  10168. }
  10169. .e_add_list_child img {
  10170. position: absolute;
  10171. right: 10px;
  10172. width: 21px;
  10173. cursor: pointer;
  10174. top: 50%;
  10175. transform: translateY(-50%);
  10176. }
  10177. .e_add_list_child+.e_add_list_child {
  10178. border-top: 1px solid #eaeaea;
  10179. }
  10180. .e_add_list_child .active {
  10181. color: #409eff;
  10182. }
  10183. .e_add_list_btn {
  10184. position: absolute;
  10185. bottom: 0;
  10186. height: 50px;
  10187. background: rgb(120, 120, 254);
  10188. width: 100%;
  10189. color: #fff;
  10190. font-size: 16px;
  10191. text-align: center;
  10192. line-height: 50px;
  10193. cursor: pointer;
  10194. }
  10195. .e_add_list_detail {
  10196. position: absolute;
  10197. bottom: 0;
  10198. height: 130px;
  10199. background: rgb(120, 120, 254);
  10200. width: 100%;
  10201. color: #fff;
  10202. font-size: 16px;
  10203. display: flex;
  10204. align-items: center;
  10205. justify-content: center;
  10206. }
  10207. .e_add_list_detail textarea {
  10208. height: 90%;
  10209. width: 95%;
  10210. border: none;
  10211. resize: none;
  10212. outline: none;
  10213. padding: 5px;
  10214. box-sizing: border-box;
  10215. }
  10216. .e_add_list_pbox {
  10217. width: 100%;
  10218. }
  10219. .e_add_list_pbox_title {
  10220. height: 50px;
  10221. background: #fff;
  10222. display: flex;
  10223. align-items: center;
  10224. width: 100%;
  10225. box-sizing: border-box;
  10226. padding: 0 20px;
  10227. flex-direction: row;
  10228. flex-wrap: wrap;
  10229. }
  10230. .type_title {
  10231. font-size: 18px;
  10232. font-weight: 700;
  10233. }
  10234. .type_content {
  10235. font-size: 16px;
  10236. margin-left: 30px;
  10237. }
  10238. .type_content span+span {
  10239. margin-left: 20px;
  10240. }
  10241. .type_content span {
  10242. cursor: pointer;
  10243. padding-bottom: 5px;
  10244. box-sizing: border-box;
  10245. }
  10246. .type_content .active {
  10247. color: #409eff;
  10248. border-bottom: 2px solid #409eff;
  10249. }
  10250. .e_add_list_pbox_content {
  10251. height: calc(100% - 50px);
  10252. display: flex;
  10253. align-items: center;
  10254. width: 100%;
  10255. background: #fff;
  10256. }
  10257. .mbCss {
  10258. width: 100%;
  10259. display: flex;
  10260. flex-direction: row;
  10261. flex-wrap: nowrap;
  10262. align-content: center;
  10263. align-items: flex-start;
  10264. justify-content: flex-start;
  10265. }
  10266. .pjCss {
  10267. /* width: 42%; */
  10268. width: calc(100% - 55%);
  10269. display: flex;
  10270. flex-direction: column;
  10271. flex-wrap: nowrap;
  10272. align-items: flex-start;
  10273. margin-top: 1.5%;
  10274. }
  10275. .e_box {
  10276. display: flex;
  10277. flex-wrap: wrap;
  10278. max-height: 500px;
  10279. align-items: flex-start;
  10280. overflow: auto;
  10281. }
  10282. .e_card {
  10283. border: 1px solid #ccc;
  10284. background: #fff;
  10285. margin-right: 20px;
  10286. width: 270px;
  10287. display: flex;
  10288. flex-direction: column;
  10289. align-items: center;
  10290. border-radius: 5px;
  10291. margin-top: 10px;
  10292. text-align: center;
  10293. }
  10294. .e_card_picture {
  10295. margin: 10px 0;
  10296. }
  10297. .e_card_picture>img {
  10298. width: 50px;
  10299. }
  10300. .e_card_name {
  10301. width: 100%;
  10302. padding: 0 10px;
  10303. box-sizing: border-box;
  10304. margin-bottom: 10px;
  10305. overflow: hidden;
  10306. text-overflow: ellipsis;
  10307. white-space: nowrap;
  10308. }
  10309. .e_card_time {
  10310. width: 100%;
  10311. padding: 0 10px;
  10312. box-sizing: border-box;
  10313. font-size: 15px;
  10314. color: #c3c3c3;
  10315. margin-bottom: 10px;
  10316. }
  10317. .e_card_btn {
  10318. height: 40px;
  10319. display: flex;
  10320. align-items: center;
  10321. width: 100%;
  10322. background: rgb(244, 244, 244);
  10323. }
  10324. .e_card_btn:hover {
  10325. background: rgb(221 221 221);
  10326. }
  10327. .e_card_btn span {
  10328. flex: 1 1 auto;
  10329. text-align: center;
  10330. cursor: pointer;
  10331. }
  10332. .addEva {
  10333. border: 1px solid #ccc;
  10334. background: #fff;
  10335. margin-right: 20px;
  10336. width: 270px;
  10337. height: 149px;
  10338. display: flex;
  10339. flex-direction: column;
  10340. align-items: center;
  10341. border-radius: 5px;
  10342. margin-top: 10px;
  10343. text-align: center;
  10344. cursor: pointer;
  10345. justify-content: center;
  10346. }
  10347. .addEva>img {
  10348. width: 50px;
  10349. object-fit: cover;
  10350. }
  10351. .uploadFm {
  10352. border: 1px dashed #ccc;
  10353. width: 202px;
  10354. height: 102px;
  10355. position: relative;
  10356. cursor: pointer;
  10357. }
  10358. .uploadFm>img {
  10359. position: absolute;
  10360. top: 25px;
  10361. left: 35%;
  10362. width: 50px;
  10363. }
  10364. .fileCss {
  10365. width: 100%;
  10366. display: flex;
  10367. flex-direction: row;
  10368. flex-wrap: nowrap;
  10369. justify-content: space-around;
  10370. align-items: center;
  10371. padding-top: 15px;
  10372. }
  10373. .sysPicBox {
  10374. display: flex;
  10375. flex-direction: row;
  10376. flex-wrap: wrap;
  10377. align-content: flex-start;
  10378. height: 435px;
  10379. overflow: auto;
  10380. }
  10381. .sysPic {
  10382. width: 200px;
  10383. height: 115px;
  10384. margin: 0 20px 20px 0;
  10385. cursor: pointer;
  10386. }
  10387. .sysPic>img,
  10388. .isSysPic>img,
  10389. .deletePic>img {
  10390. width: 100%;
  10391. height: 100%;
  10392. object-fit: cover;
  10393. }
  10394. .isSysPic {
  10395. width: 200px;
  10396. height: 115px;
  10397. position: relative;
  10398. }
  10399. .deletePic {
  10400. width: 20px;
  10401. height: 20px;
  10402. position: absolute;
  10403. top: 0;
  10404. right: 0;
  10405. cursor: pointer;
  10406. }
  10407. .select_box1 {}
  10408. .select_box1_img {
  10409. background: #fff;
  10410. border-radius: 5px;
  10411. padding: 15px;
  10412. box-sizing: border-box;
  10413. margin-bottom: 20px;
  10414. }
  10415. .select_box1_title {
  10416. padding: 0 0 15px 0;
  10417. border-bottom: 1px solid #eee;
  10418. margin-bottom: 15px;
  10419. }
  10420. .select_box1_title span:nth-child(1) {
  10421. font-size: 16px;
  10422. margin-right: 20px;
  10423. color: #000;
  10424. }
  10425. .select_box1_title span:nth-child(2) {
  10426. font-size: 14px;
  10427. color: rgb(112, 112, 112);
  10428. }
  10429. .select_box1_add_img {}
  10430. .select_box1_select {
  10431. background: #fff;
  10432. border-radius: 5px;
  10433. padding: 15px;
  10434. box-sizing: border-box;
  10435. }
  10436. .select_box2 {}
  10437. .select_box2_title {
  10438. background: #fff;
  10439. border-radius: 5px;
  10440. padding: 5px 10px;
  10441. box-sizing: border-box;
  10442. margin-bottom: 10px;
  10443. }
  10444. .select_box2_box {
  10445. display: flex;
  10446. height: 500px;
  10447. }
  10448. .select_box2_img {
  10449. width: calc(100% - 310px);
  10450. height: 100%;
  10451. overflow: auto;
  10452. background: #fff;
  10453. border-radius: 5px;
  10454. }
  10455. .select_box2_img img {
  10456. width: 100%;
  10457. }
  10458. .select_box2_answer {
  10459. background: #fff;
  10460. margin-left: 10px;
  10461. border-radius: 5px;
  10462. width: 300px;
  10463. overflow: auto;
  10464. height: 100%;
  10465. display: flex;
  10466. flex-direction: column;
  10467. align-items: center;
  10468. padding-top: 10px;
  10469. box-sizing: border-box;
  10470. }
  10471. .select_box2_answer_box {
  10472. margin: 0 0 10px 0;
  10473. width: 85%;
  10474. }
  10475. .rate_textarea {
  10476. font: inherit;
  10477. color: currentColor;
  10478. width: 100%;
  10479. padding: 8px 14px;
  10480. display: block;
  10481. min-width: 0;
  10482. outline: none;
  10483. border: 1px solid rgba(0, 0, 0, 0.23);
  10484. border-radius: 4px;
  10485. box-sizing: border-box;
  10486. background: #fff;
  10487. margin: 0 20px 0 0;
  10488. resize: none;
  10489. }
  10490. .select_answer_title {
  10491. text-align: left;
  10492. width: 85%;
  10493. margin-bottom: 10px;
  10494. font-size: 18px;
  10495. color: #8e8e8e;
  10496. }
  10497. .mask {
  10498. background-color: rgb(0 0 0 / 30%);
  10499. /* position: fixed; */
  10500. position: absolute;
  10501. top: 0;
  10502. left: 0;
  10503. width: 100%;
  10504. height: 100%;
  10505. z-index: 90;
  10506. display: flex;
  10507. align-items: center;
  10508. justify-content: center;
  10509. }
  10510. .mask2 {
  10511. position: fixed !important;
  10512. z-index: 999999;
  10513. }
  10514. .progressBox {
  10515. width: 300px;
  10516. height: 150px;
  10517. background: #fff;
  10518. border-radius: 10px;
  10519. box-shadow: 0 0 6px 1px #bfbfbf;
  10520. display: flex;
  10521. align-items: center;
  10522. justify-content: center;
  10523. flex-direction: column;
  10524. position: relative;
  10525. color: #6c6c6c;
  10526. }
  10527. .progressBox .lbox {
  10528. height: 80px;
  10529. font-size: 16px;
  10530. display: flex;
  10531. align-items: center;
  10532. }
  10533. .progressBox .lbox img {
  10534. width: 40px;
  10535. margin-right: 20px;
  10536. }
  10537. .progressBox>>>.el-progress-bar__outer {
  10538. background-color: #d1dfff !important;
  10539. }
  10540. .mask .lbox2 {
  10541. height: 100%;
  10542. width: 100%;
  10543. font-size: 19px;
  10544. display: flex;
  10545. align-items: center;
  10546. justify-content: center;
  10547. }
  10548. .mask .lbox2 img {
  10549. width: 40px;
  10550. }
  10551. .updateTips::after {
  10552. content: "他人课程暂不支持修改基本信息,只支持修改阶段内容。";
  10553. font-size: 14px;
  10554. margin-left: 20px;
  10555. font-weight: 400;
  10556. color: #ff3a3a;
  10557. }
  10558. .updateMask {
  10559. width: 100%;
  10560. z-index: 3;
  10561. top: 0;
  10562. position: absolute;
  10563. }
  10564. .t_j_box {
  10565. display: flex;
  10566. }
  10567. .t_j_box span:nth-child(1) {
  10568. width: 15%;
  10569. overflow: hidden;
  10570. margin-right: 10px;
  10571. text-overflow: ellipsis;
  10572. white-space: nowrap;
  10573. }
  10574. .t_j_box span:nth-child(2) {
  10575. min-width: 30px;
  10576. margin-right: 10px;
  10577. }
  10578. .t_j_box span:nth-child(3) {
  10579. width: 38%;
  10580. overflow: hidden;
  10581. text-overflow: ellipsis;
  10582. margin-right: 10px;
  10583. }
  10584. .t_j_box span:nth-child(4) {
  10585. max-width: calc(45% - 60px);
  10586. overflow: hidden;
  10587. text-overflow: ellipsis;
  10588. }
  10589. .sentenBox {
  10590. background: #fff;
  10591. height: 600px;
  10592. overflow: auto;
  10593. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10594. background-position: 102%;
  10595. background-repeat: no-repeat;
  10596. background-size: 60%;
  10597. }
  10598. .addSen {
  10599. background: #409efe;
  10600. width: 90px;
  10601. color: #fff;
  10602. height: 35px;
  10603. text-align: center;
  10604. line-height: 35px;
  10605. border-radius: 5px;
  10606. float: right;
  10607. margin: 10px 20px 0 0;
  10608. cursor: pointer;
  10609. }
  10610. .sentenTop {
  10611. display: flex;
  10612. flex-direction: row;
  10613. flex-wrap: nowrap;
  10614. align-items: center;
  10615. }
  10616. .sentenTop>div:nth-child(2) {
  10617. width: 300px;
  10618. margin: 0 15px;
  10619. }
  10620. .sentenTop>div:nth-child(3) {
  10621. background: #409efe;
  10622. color: #fff;
  10623. width: 65px;
  10624. height: 35px;
  10625. text-align: center;
  10626. line-height: 35px;
  10627. border-radius: 5px;
  10628. cursor: pointer;
  10629. }
  10630. .cardList {
  10631. padding: 30px 0 20px 0;
  10632. display: flex;
  10633. flex-direction: row;
  10634. flex-wrap: wrap;
  10635. align-items: center;
  10636. box-sizing: border-box;
  10637. border-bottom: 1px solid #f4f4f4;
  10638. width: 98%;
  10639. margin: 0 auto;
  10640. }
  10641. .cardBox {
  10642. display: flex;
  10643. flex-direction: row;
  10644. flex-wrap: wrap;
  10645. align-items: center;
  10646. align-content: center;
  10647. }
  10648. .isCard,
  10649. .isCard1 {
  10650. width: 140px;
  10651. height: 65px;
  10652. text-align: center;
  10653. line-height: 65px;
  10654. font-size: 20px;
  10655. cursor: pointer;
  10656. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10657. background-size: cover;
  10658. position: relative;
  10659. z-index: 99;
  10660. }
  10661. .isCard1 {
  10662. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10663. }
  10664. .isCard:hover .deleteWord {
  10665. display: block;
  10666. }
  10667. .isCard>div:nth-child(1),
  10668. .isCard1>div:nth-child(1) {
  10669. white-space: nowrap;
  10670. overflow: hidden;
  10671. text-overflow: ellipsis;
  10672. width: 80%;
  10673. margin: 0 auto;
  10674. }
  10675. .card {
  10676. width: 140px;
  10677. height: 65px;
  10678. }
  10679. .card>img {
  10680. width: 100%;
  10681. height: 100%;
  10682. }
  10683. .rightCardBox {
  10684. margin: 10px 0 0 10px;
  10685. }
  10686. .rightCardBox>div:nth-child(1) {
  10687. margin-bottom: 10px;
  10688. }
  10689. .cardCss {
  10690. display: flex;
  10691. flex-direction: column;
  10692. flex-wrap: nowrap;
  10693. align-items: center;
  10694. border-bottom: 3px solid #b4c3d3;
  10695. padding: 0 0 5px 0;
  10696. margin-right: 10px;
  10697. }
  10698. .cardCss>div:nth-child(2) {
  10699. background: #5b7b9d;
  10700. color: #fff;
  10701. width: 20px;
  10702. height: 20px;
  10703. border-radius: 50%;
  10704. text-align: center;
  10705. line-height: 20px;
  10706. }
  10707. .sentenTopBox {
  10708. display: flex;
  10709. flex-direction: row;
  10710. flex-wrap: nowrap;
  10711. align-items: center;
  10712. justify-content: space-between;
  10713. padding: 55px 0 0 20px;
  10714. box-sizing: border-box;
  10715. width: 85%;
  10716. }
  10717. .stepsBottom {
  10718. width: 85%;
  10719. margin-bottom: 20px;
  10720. box-shadow: 0 0 10px 10px #f7f7f7;
  10721. background: #f7f7f7;
  10722. border-radius: 10px;
  10723. overflow: hidden;
  10724. }
  10725. .navTop {
  10726. background: #53749b;
  10727. color: #fff;
  10728. height: 40px;
  10729. line-height: 40px;
  10730. padding-left: 15px;
  10731. font-size: 18px;
  10732. }
  10733. .navBottom {
  10734. background: #6b91b7;
  10735. height: 180px;
  10736. overflow: auto;
  10737. }
  10738. .navTask {
  10739. display: flex;
  10740. flex-direction: row;
  10741. flex-wrap: nowrap;
  10742. align-items: center;
  10743. padding: 5px 5px 5px 0;
  10744. cursor: pointer;
  10745. background: #ffffff;
  10746. width: 95%;
  10747. margin: 10px auto;
  10748. box-sizing: border-box;
  10749. border-radius: 5px;
  10750. }
  10751. .isNavTask {
  10752. /* background: #7e9ebd; */
  10753. }
  10754. .navTask>div:nth-child(1) {
  10755. background: #468fe4;
  10756. color: #fff;
  10757. width: 65px;
  10758. height: 25px;
  10759. line-height: 25px;
  10760. text-align: center;
  10761. border-radius: 5px;
  10762. margin: 0 10px 0 5px;
  10763. font-size: 14px;
  10764. }
  10765. .navTask>div:nth-child(2) {
  10766. /* color: #fff; */
  10767. /* max-width: 130px; */
  10768. width: 130px;
  10769. white-space: nowrap;
  10770. overflow: hidden;
  10771. text-overflow: ellipsis;
  10772. font-size: 15px;
  10773. }
  10774. .groupBox {}
  10775. .groupContent+.groupContent {
  10776. margin-top: 30px;
  10777. }
  10778. .groupTitle {
  10779. font-size: 24px;
  10780. color: rgb(80, 80, 80);
  10781. margin-bottom: 20px;
  10782. }
  10783. .groupName {
  10784. display: flex;
  10785. align-items: center;
  10786. }
  10787. .groupn {
  10788. font-size: 15px;
  10789. margin-right: 10px;
  10790. }
  10791. .groupName+.groupName {
  10792. margin-top: 15px;
  10793. }
  10794. .groupBtn {
  10795. margin-left: 10px;
  10796. }
  10797. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10798. text-align: left;
  10799. }
  10800. .toolimg {
  10801. width: 200px;
  10802. border-radius: 10px;
  10803. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  10804. cursor: pointer;
  10805. overflow: hidden;
  10806. position: relative;
  10807. }
  10808. .toolimg>img {
  10809. width: 100%;
  10810. height: 105px;
  10811. object-fit: contain;
  10812. }
  10813. .proMan {
  10814. width: 95%;
  10815. margin: 0 auto;
  10816. padding: 0 0 20px;
  10817. margin-top: 20px;
  10818. }
  10819. .proMan .title {
  10820. margin-bottom: 10px;
  10821. display: flex;
  10822. align-items: center;
  10823. }
  10824. .proMan .title img {
  10825. margin-right: 5px;
  10826. height: 17px;
  10827. width: 17px;
  10828. }
  10829. .ed_s>>>.text {
  10830. height: calc(100% - 42px);
  10831. }
  10832. .toolimg_box {
  10833. display: flex;
  10834. flex-wrap: wrap;
  10835. }
  10836. .toolimg {
  10837. margin: 0 20px 20px 0;
  10838. }
  10839. .comment {
  10840. background: #f5f5f5;
  10841. /* border-radius: 0 0 15px 15px; */
  10842. display: flex;
  10843. flex-direction: row;
  10844. flex-wrap: nowrap;
  10845. align-items: center;
  10846. justify-content: flex-end;
  10847. height: 35px;
  10848. }
  10849. .worksName {
  10850. display: flex;
  10851. width: 92%;
  10852. flex-direction: row;
  10853. flex-wrap: nowrap;
  10854. justify-content: space-between;
  10855. align-items: center;
  10856. margin: 0 10px;
  10857. }
  10858. .worksName>div:nth-child(1) {
  10859. width: 60px;
  10860. white-space: nowrap;
  10861. overflow: hidden;
  10862. text-overflow: ellipsis;
  10863. }
  10864. .worksName>div:nth-child(2) {
  10865. max-width: calc(100% - 70px);
  10866. position: relative;
  10867. display: flex;
  10868. align-items: center;
  10869. }
  10870. .worksName>div:nth-child(2)>span {
  10871. width: 100%;
  10872. white-space: nowrap;
  10873. overflow: hidden;
  10874. text-overflow: ellipsis;
  10875. color: #4e91c4;
  10876. }
  10877. .worksName>div:nth-child(2)>img {
  10878. max-width: 16px;
  10879. width: 16px;
  10880. height: 15px;
  10881. }
  10882. .deleteImg {
  10883. width: 25px !important;
  10884. height: 25px !important;
  10885. cursor: pointer;
  10886. position: absolute;
  10887. top: 10px;
  10888. right: 10px;
  10889. }
  10890. .texttitle {
  10891. background: #1e5cc9;
  10892. /* width: 98%; */
  10893. height: 45px;
  10894. color: #fff;
  10895. line-height: 45px;
  10896. padding-left: 20px;
  10897. box-sizing: border-box;
  10898. }
  10899. .textBox {
  10900. font-size: 20px;
  10901. width: 90%;
  10902. display: flex;
  10903. flex-direction: column;
  10904. align-items: center;
  10905. margin: 20px auto 0;
  10906. }
  10907. .textContent {
  10908. font-size: 18px;
  10909. height: 450px;
  10910. width: 95%;
  10911. overflow: auto;
  10912. line-height: 30px;
  10913. }
  10914. .vedioTaskBox {
  10915. width: 100%;
  10916. display: flex;
  10917. flex-direction: row;
  10918. flex-wrap: nowrap;
  10919. align-items: center;
  10920. }
  10921. .box_course {
  10922. /* width: 60%; */
  10923. width: 81%;
  10924. }
  10925. .wheel {
  10926. width: 100%;
  10927. height: 100%;
  10928. }
  10929. .vedioList {
  10930. /* background: #f2f2f2; */
  10931. background: #fff;
  10932. border: 1px solid #ececec;
  10933. /* width: 38.8%; */
  10934. width: calc(100% - 83%);
  10935. height: 650px;
  10936. border-radius: 10px;
  10937. overflow: hidden;
  10938. }
  10939. .navTitile {
  10940. padding: 0 0px 0 15px;
  10941. background: #1e5cc9;
  10942. color: #fff;
  10943. height: 40px;
  10944. line-height: 40px;
  10945. border-top-left-radius: 10px;
  10946. border-top-right-radius: 10px;
  10947. }
  10948. .navBox {
  10949. background: rgb(255, 255, 255);
  10950. height: calc(100% - 40px);
  10951. padding: 5px 1px 0 1px;
  10952. overflow: auto;
  10953. }
  10954. .vedioTimeBox {
  10955. display: flex;
  10956. flex-direction: row;
  10957. align-items: center;
  10958. flex-wrap: nowrap;
  10959. position: relative;
  10960. }
  10961. .vedioName {
  10962. cursor: pointer;
  10963. margin: 0px 0px 10px 5px;
  10964. white-space: nowrap;
  10965. overflow: hidden;
  10966. text-overflow: ellipsis;
  10967. width: 100%;
  10968. }
  10969. .isClickNav {
  10970. color: #499eef;
  10971. }
  10972. .full_diy>>>.el-dialog {
  10973. margin: 0 !important;
  10974. height: 100%;
  10975. padding: 4px;
  10976. }
  10977. .full_diy>>>.el-dialog__body {
  10978. height: calc(100% - 100px);
  10979. }
  10980. .full_diy2>>>.el-dialog__body {
  10981. height: calc(100% - 50px);
  10982. padding: 0;
  10983. }
  10984. .queTop {
  10985. display: flex;
  10986. padding: 20px 0 20px 30px;
  10987. width: 100%;
  10988. flex-direction: row;
  10989. justify-content: flex-start;
  10990. align-items: center;
  10991. border-bottom: 1px solid #eeeeee;
  10992. box-sizing: border-box;
  10993. }
  10994. .question {
  10995. width: 40px;
  10996. margin-right: 10px;
  10997. margin-top: 7px;
  10998. }
  10999. .queTitle {
  11000. margin-left: 5px;
  11001. font-size: 25px;
  11002. display: flex;
  11003. align-items: center;
  11004. }
  11005. .addEditor {
  11006. width: 100px;
  11007. height: 30px;
  11008. background: #42cda6;
  11009. color: #fff;
  11010. border-radius: 5px;
  11011. text-align: center;
  11012. line-height: 30px;
  11013. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11014. cursor: pointer;
  11015. }
  11016. .answerWidth {
  11017. width: 250px !important;
  11018. }
  11019. .answerBg {
  11020. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  11021. background-size: cover;
  11022. width: 100%;
  11023. height: 120px;
  11024. padding: 0 10px;
  11025. box-sizing: border-box;
  11026. color: #fff;
  11027. text-align: center;
  11028. display: flex;
  11029. flex-direction: column;
  11030. flex-wrap: nowrap;
  11031. align-items: center;
  11032. position: relative;
  11033. justify-content: center;
  11034. }
  11035. .answerContent {
  11036. /* width: 215px; */
  11037. max-height: 60px;
  11038. word-break: break-all;
  11039. text-align: center;
  11040. /* white-space: nowrap; */
  11041. overflow: hidden;
  11042. text-overflow: ellipsis;
  11043. /* padding: 23px 0 0; */
  11044. -webkit-line-clamp: 3;
  11045. -webkit-box-orient: vertical;
  11046. display: -webkit-box;
  11047. font-size: 15px;
  11048. }
  11049. .fullStyle>>>.el-dialog__body {
  11050. height: 100% !important;
  11051. }
  11052. .fullStyle>>>.el-dialog,
  11053. .fullStyle {
  11054. width: 100% !important;
  11055. max-width: 100% !important;
  11056. height: 100% !important;
  11057. margin: 0 !important;
  11058. }
  11059. .tcMember+.tcMember::before {
  11060. content: "、";
  11061. }
  11062. .tcMember_box {
  11063. margin-left: 10px;
  11064. border: 1px solid #c0c4cc;
  11065. padding: 10px 14px;
  11066. border-radius: 4px;
  11067. background: #fff;
  11068. cursor: pointer;
  11069. color: #606266;
  11070. font-size: 14px;
  11071. width: 225px;
  11072. overflow: hidden;
  11073. text-overflow: ellipsis;
  11074. white-space: nowrap;
  11075. }
  11076. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11077. height: auto;
  11078. }
  11079. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11080. width: 200px;
  11081. height: 100px;
  11082. object-fit: contain;
  11083. background: unset;
  11084. }
  11085. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11086. display: none;
  11087. }
  11088. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  11089. color: rgb(0 123 255) !important;
  11090. }
  11091. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  11092. color: rgb(0 123 255) !important;
  11093. }
  11094. .closeCss {
  11095. position: absolute;
  11096. top: 8px;
  11097. right: 8px;
  11098. cursor: pointer;
  11099. width: 20px;
  11100. height: 20px;
  11101. }
  11102. .closeCss>img {
  11103. width: 100%;
  11104. height: 100%;
  11105. }
  11106. .f_size_box {
  11107. display: flex;
  11108. margin: 5px 0px;
  11109. align-items: center;
  11110. color: #6c6c6c;
  11111. }
  11112. .f_size_box img {
  11113. height: 20px;
  11114. }
  11115. .f_size_box>div {
  11116. margin: 0 8px;
  11117. }
  11118. .moveBtn {
  11119. display: flex;
  11120. flex-direction: column;
  11121. align-items: flex-end;
  11122. width: 40px;
  11123. }
  11124. </style>