addCourse.vue 385 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <!-- /studentCourse -->
  9. <el-breadcrumb-item :to="{
  10. path:
  11. fpath +
  12. '?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org + '&role=' + role,
  18. }">{{
  19. orgArray.indexOf(org) != -1 || oidArray.indexOf(oid) != -1
  20. ? "师生项目"
  21. : "项目管理"
  22. }}
  23. </el-breadcrumb-item>
  24. <el-breadcrumb-item>
  25. <span style="color: rgb(15, 126, 255)">添加项目</span>
  26. </el-breadcrumb-item>
  27. </el-breadcrumb>
  28. </div>
  29. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  30. </div>
  31. <div ref="stepBox" class="stepBox">
  32. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  33. <div class="updateMask" :style="{
  34. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  35. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  36. <div class="whiteBg" style="background:unset;padding: 0;">
  37. <div>
  38. <div class="basic_box" style="padding: 0;">
  39. <div class="big_box">
  40. <div class="left_first">
  41. <div :class="{
  42. updateTips: cid && userid != courseUserid && role != '1',
  43. }">
  44. <div style="width: 100%;">
  45. <div class="course_input_box">
  46. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  47. <input type="text" placeholder="请输入项目名称" class="binfo_input" v-model="courseName"
  48. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  49. <el-switch v-model="isTeacherSee" active-text="是否公开此项目"
  50. style="justify-content: center;width: 200px;"></el-switch>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="both">
  55. <div class="choose">
  56. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  57. <span v-if="CourseTypeJson[item.id].length > 0">{{
  58. item.name
  59. }}:</span>
  60. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0">
  61. <el-checkbox @change="updateType(item1)" v-for="item1 in CourseTypeJson[item.id]"
  62. :key="item1.id" :label="item1.id">{{ item1.name }}
  63. </el-checkbox>
  64. </el-checkbox-group>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="right_first">
  70. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  71. <div style="width: 100%;">
  72. <div class="uploadFm" @click="choosePicVisible = true" :class="{ uploadFm2: cover.length }">
  73. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0" />
  74. <img :src="cover[0].url" alt="" class="cover_p" v-else />
  75. <div v-if="cover.length == 0">点击添加封面</div>
  76. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span
  77. style="margin-top:5px;">修改封面</span></div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="whiteBg" style="background:#fff;margin: 10px 0;min-height: calc(100% - 300px);">
  86. <div class="whiteBg" style="border-radius: 0">
  87. <div class="c_info_title">项目权限设置</div>
  88. <div class="wb_j_box">
  89. <div class="wb_j_box_content">
  90. <div class="wb_j_box_btn" @click="openMember">
  91. <div class="wb_j_box_title">协同人员</div>
  92. <div class="wb_j_box_btn_c">
  93. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  94. v-if="checkboxList3.length" popper-class="text_tooltip2">
  95. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  96. </el-tooltip>
  97. <div v-else class="wb_j_box_span">请选择协同人员</div>
  98. <div class="wb_j_box_arrow"></div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="whiteBg" style="border-radius: 0; margin-top: 15px;padding-bottom: 20px;">
  105. <div class="c_info_title">项目简要描述</div>
  106. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  107. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  108. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
  109. :placeholder="'1、项目内容说明' +
  110. '\n' +
  111. '2、项目学习知识目标' +
  112. '\n' +
  113. '3、项目学习技能目标'
  114. "></textarea>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="info_btnBox3">
  120. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  121. goTo(
  122. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  123. )
  124. ">
  125. 返回项目
  126. </button>
  127. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  128. {{ steps == 5 ? "返回首页" : "上一步" }}
  129. </button>
  130. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  131. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  132. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  133. ? "确认上传"
  134. : "下一步" }}
  135. </button>
  136. </div>
  137. </div>
  138. <div class="rightBox" v-if="this.steps == 2">
  139. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  140. <!-- <div
  141. style="
  142. color: #b8b8b8;
  143. background: #fff;
  144. width: 26%;
  145. height: 40px;
  146. border-radius: 15px;
  147. padding-left: 20px;
  148. line-height: 40px;
  149. font-size: 17px;
  150. box-shadow: 0px 1px 2px 2px #e0e0e0;
  151. "
  152. >-->
  153. <div class="right_title" style="border: none; margin: 0; padding: 0">
  154. 请选择合适的项目模板
  155. </div>
  156. <div class="wordbox">
  157. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  158. <div class="wordPic">
  159. <img src="../../../assets/icon/wordMub.png" alt />
  160. </div>
  161. <div style="
  162. margin-top: 10px;
  163. line-height: 19px;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. padding: 0 20px;
  168. ">
  169. {{ aa.title }}
  170. </div>
  171. </div>
  172. <div class="wordTeacher" @click="checkTemplate2()">
  173. <div class="wordPic">
  174. <img src="../../../assets/icon/wordMub.png" alt />
  175. </div>
  176. <div style="
  177. margin-top: 10px;
  178. line-height: 19px;
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. white-space: nowrap;
  182. padding: 0 20px;
  183. ">
  184. 新建项目
  185. </div>
  186. </div>
  187. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  188. <div class="wordPic">
  189. <img src="../../../assets/icon/wordMub.png" alt />
  190. </div>
  191. <div style="
  192. margin-top: 10px;
  193. line-height: 19px;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. white-space: nowrap;
  197. padding: 0 20px;
  198. ">
  199. 我的项目
  200. </div>
  201. </div> -->
  202. </div>
  203. </div>
  204. <div class="info_btnBox3">
  205. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  206. goTo(
  207. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  208. )
  209. ">
  210. 返回项目
  211. </button>
  212. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  213. {{ steps == 5 ? "返回首页" : "上一步" }}
  214. </button>
  215. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  216. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  217. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  218. ? "确认上传"
  219. : "下一步" }}
  220. </button>
  221. </div>
  222. </div>
  223. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  224. <div class="rb_c_box">
  225. <div class="rb_c_box_left">
  226. <div class="stepsBottom">
  227. <div class="navBottom">
  228. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  229. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-' + stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  230. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-' + stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  231. }">
  232. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  233. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-' + stageIndex" @click="unitSet2(stageIndex)"
  234. class="navStage" :class="{
  235. isNavStage: stageIndex == unitIndex,
  236. isNavStageOpen: stage.toolOpen
  237. }">
  238. <div @mousedown="isdrag = 'unit-' + stageIndex" @mouseup="isdrag = ''"
  239. @touchstart="isdrag = 'unit-' + stageIndex" @touchend="isdrag = ''" style="left: 8px;"
  240. class="chapter_upload_drag"></div>
  241. <div class="nt_taskBox">
  242. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  243. <div class="nt_taskName">
  244. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  245. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  246. </el-tooltip>
  247. </div>
  248. </div>
  249. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  250. </div>
  251. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  252. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  253. dragOverTop: newIndex === tIndex && typeIndex == 'task-' + tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  254. dragOverBottom: newIndex === tIndex && typeIndex == 'task-' + tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  255. }" :style="{ display: stage.toolOpen ? 'block' : 'none' }">
  256. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  257. @dragover.prevent="dragTaskOver(tIndex, stageIndex)" @dragend="dragTaskEnd()"
  258. :draggable="isdrag == 'task-' + stageIndex + '-' + tIndex" @click="goToTask2(tIndex, stageIndex)"
  259. class="navTask" style="padding-left: 12px;" :class="{
  260. isNavTask:
  261. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  262. isNavOpen: t.toolOpen
  263. }">
  264. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  265. <div @mousedown="isdrag = 'task-' + stageIndex + '-' + tIndex" @mouseup="isdrag = ''"
  266. @touchstart="isdrag = 'task-' + stageIndex + '-' + tIndex" @touchend="isdrag = ''"
  267. style="left: 20px;" class="chapter_upload_drag"></div>
  268. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  269. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  270. <div class="nt_taskName">
  271. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  272. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  273. </el-tooltip>
  274. </div>
  275. </div>
  276. </div>
  277. <div class="gjBox" v-if="t.toolArray.length && t.toolOpen">
  278. <div v-for="(tool, toolIndex2) in t.toolArray" :key="toolIndex2"
  279. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  280. <div class="gjCss"
  281. :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  282. <div>步骤{{ toolIndex2 + 1 }}:</div>
  283. <div>{{ toolsData[tool.tool] && toolsData[tool.tool].name }}</div>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="rb_c_box_right">
  293. <div class="basic_box" ref="unitBox">
  294. <div style="
  295. display: flex;
  296. flex-direction: row;
  297. align-items: center;
  298. position: sticky;
  299. top: 0;
  300. z-index: 99;
  301. width: 100%;
  302. padding: 0 20px 0 20px;
  303. box-sizing: border-box;
  304. background: #fff;
  305. border-radius: 8px;
  306. ">
  307. <div class="cru_selectBox">
  308. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  309. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  310. 第{{ index + 1 }}阶段
  311. </div>
  312. <div class="cru_line" :style="{
  313. left: offsetLetfPx + 'px',
  314. }"></div>
  315. </div>
  316. <div class="addStageImg" @click="addunit()">
  317. <img src="../../../assets/icon/new/addStage.png" alt />
  318. </div>
  319. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  320. :style="{ margin: '0 0 0 auto' }" style="padding:0 12px">选择项目模板</button>
  321. </div>
  322. <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  323. :key="index">
  324. <div class="chapter_box">
  325. <div class="chapter_contentbox">
  326. <div class="cc_input">
  327. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  328. v-model="unitJson[unitIndex].dyName" />
  329. </div>
  330. <div class="remove" v-if="unitJson.length > 1" @click="deleteUnit(unitIndex)"></div>
  331. </div>
  332. </div>
  333. <!-- <div class="task_add_title">添加任务</div> -->
  334. <div class="taskBorder" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex"
  335. :class="{ smallTaskBorder: itemTask.isFold === 1 }">
  336. <div style="background: #fff;border-radius: 5px;">
  337. <div class="taskTitle" :id="'task' + itemTaskIndex">
  338. 任务{{ itemTaskIndex + 1 }}
  339. </div>
  340. <div>
  341. <div style="
  342. display: flex;
  343. margin: 0px 0 20px;
  344. flex-direction: row;
  345. justify-content: flex-start;
  346. align-items: center;
  347. ">
  348. <div class="lineTitle">任务概述</div>
  349. </div>
  350. <div class="chapter_contentbox" style="
  351. flex-direction: row;
  352. justify-content: flex-start;
  353. align-items: center;
  354. margin:0px 0 20px;
  355. ">
  356. <div class="cc_input">
  357. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  358. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  359. itemTaskIndex
  360. ].task
  361. " />
  362. </div>
  363. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  364. </div>
  365. </div>
  366. <div style="
  367. flex-direction: row;
  368. justify-content: flex-start;
  369. align-items: center;
  370. display: flex;
  371. margin-bottom: 20px;
  372. ">
  373. <div style="
  374. height: 20px;
  375. padding: 0 10px 0 0px;
  376. line-height: 22px;
  377. ">
  378. 负责人
  379. </div>
  380. <div style="width: auto">
  381. <el-select v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  382. itemTaskIndex
  383. ].people
  384. " placeholder="请选择负责人" clearable filterable @change="
  385. peopleChange(
  386. unitJson[unitIndex].chapterInfo[0].taskJson[
  387. itemTaskIndex
  388. ].people,
  389. itemTaskIndex
  390. )
  391. ">
  392. <el-option v-for="item in ManAarray" :key="item.userid" :label="item.name +
  393. (item.type == 1 ? '(老师)' : '(学生)')
  394. " :value="item.userid">
  395. </el-option>
  396. </el-select>
  397. </div>
  398. </div>
  399. <div style="
  400. flex-direction: row;
  401. justify-content: flex-start;
  402. align-items: center;
  403. display: flex;
  404. margin: 0 0 20px;
  405. ">
  406. <div style="
  407. height: 20px;
  408. padding-left: 0;
  409. line-height: 22px;
  410. ">
  411. 协同人员
  412. </div>
  413. <el-tooltip :content="getMen(
  414. unitJson[unitIndex].chapterInfo[0].taskJson[
  415. itemTaskIndex
  416. ].tcMember
  417. )
  418. " placement="top" effect="dark" v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  419. itemTaskIndex
  420. ].tcMember &&
  421. unitJson[unitIndex].chapterInfo[0].taskJson[
  422. itemTaskIndex
  423. ].tcMember.length
  424. ">
  425. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)">
  426. <span :class="{ tcMember: getMan(tc) }" v-for="(tc, tcIndex) in unitJson[unitIndex]
  427. .chapterInfo[0].taskJson[itemTaskIndex]
  428. .tcMember" :key="tcIndex">{{ getMan(tc) }}</span>
  429. </div>
  430. </el-tooltip>
  431. <div class="tcMember_box" @click="addTcMember(itemTaskIndex)" v-else>
  432. <span>点击添加协同成员</span>
  433. </div>
  434. </div>
  435. <div style="
  436. flex-direction: row;
  437. justify-content: flex-start;
  438. align-items: center;
  439. display: flex;
  440. margin-bottom: 20px;
  441. ">
  442. <div style="
  443. height: 20px;
  444. line-height: 22px;
  445. ">
  446. 任务起止时间
  447. </div>
  448. <div style="margin-left: 20px">
  449. <el-date-picker v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  450. itemTaskIndex
  451. ].time
  452. " type="datetimerange" range-separator="至" start-placeholder="开始日期"
  453. end-placeholder="结束日期">
  454. </el-date-picker>
  455. </div>
  456. </div>
  457. <div>
  458. <editor-bar class="ed_s" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  459. itemTaskIndex
  460. ].taskDetail
  461. " @change="change"></editor-bar>
  462. </div>
  463. </div>
  464. <div class="basic_box" v-if="false" style="
  465. margin: 0;
  466. min-height: 0;
  467. width: 90% !important;
  468. paddint-top: 10px !important;
  469. ">
  470. <div style="
  471. display: flex;
  472. margin: 0 0 20px 0;
  473. flex-direction: row;
  474. justify-content: flex-start;
  475. align-items: center;
  476. ">
  477. <div class="lineTitle">资源库</div>
  478. <div class="line"></div>
  479. </div>
  480. <div>
  481. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  482. itemTask.chapterData.length == 0
  483. " style="height: 185px"></div>
  484. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  485. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  486. @click="
  487. getChapterData(
  488. $event,
  489. unitIndex,
  490. index,
  491. index1,
  492. item1.type
  493. )
  494. ">
  495. <div class="chapter_upload_t" style="width: 100%"></div>
  496. <div class="chapter_upload_o" style="
  497. position: relative;
  498. display: flex;
  499. align-items: center;
  500. ">
  501. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  502. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  503. <div v-if="item1.type == 3 ||
  504. item1.type == 9 ||
  505. item1.type == 6 ||
  506. item1.type == 7
  507. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  508. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  509. </div>
  510. <div class="chapter_upload_ic" style="
  511. cursor: pointer;
  512. position: absolute;
  513. width: 45px;
  514. right: 0;
  515. top: 0;
  516. ">
  517. <div class="chapter_upload_ic_l"></div>
  518. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  519. deleteChapterData(
  520. $event,
  521. unitIndex,
  522. index,
  523. index1,
  524. itemTaskIndex
  525. )
  526. ">
  527. <div></div>
  528. </div>
  529. </div>
  530. <div class="chapter_upload_n">
  531. <input v-if="item1.type == 2 ||
  532. item1.type == 3 ||
  533. item1.type == 9 ||
  534. item1.type == 7
  535. " :placeholder="item1.name" @change="
  536. updataVideoT(
  537. $event,
  538. unitIndex,
  539. chapterIndex,
  540. index1
  541. )
  542. " style="
  543. border: none;
  544. outline: none;
  545. width: 80%;
  546. minwidth: 215px;
  547. z-index: 99;
  548. font-size: 14px;
  549. white-space: nowrap;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. " />
  553. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  554. border: none;
  555. outline: none;
  556. width: 80%;
  557. white-space: nowrap;
  558. overflow: hidden;
  559. text-overflow: ellipsis;
  560. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  561. <input :placeholder="item1.title ? item1.title : '链接'
  562. " v-if="item1.type == 8" style="
  563. border: none;
  564. outline: none;
  565. width: 80%;
  566. white-space: nowrap;
  567. overflow: hidden;
  568. text-overflow: ellipsis;
  569. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  570. <div class="chapter_upload_ud" style="z-index: 99">
  571. <div class="chapter_upload_up" @click="
  572. upCd($event, unitIndex, index, index1)
  573. "></div>
  574. <div class="chapter_upload_down" @click="
  575. downCd($event, unitIndex, index, index1)
  576. "></div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. <div class="add_info_box">
  584. <button class="info_btn" @click="addImg($event)">
  585. 添加视频
  586. <!-- capture="camera" -->
  587. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  588. v-if="inputShow" @change="
  589. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  590. " />
  591. </button>
  592. <button class="info_btn" @click="addImg($event)">
  593. 添加附件
  594. <input type="file"
  595. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  596. style="display: none" v-if="inputShow" @change="
  597. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  598. " />
  599. </button>
  600. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  601. 添加图文
  602. </button>
  603. <button class="info_btn" @click="openLine(itemTaskIndex)">
  604. 添加链接
  605. </button>
  606. </div>
  607. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  608. itemTaskIndex
  609. ].proVisible
  610. " class="mask">
  611. <div class="progressBox">
  612. <div class="lbox">
  613. <img src="../../../assets/loading.gif" />上传中,请稍后
  614. </div>
  615. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  616. itemTaskIndex
  617. ].progress
  618. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  619. itemTaskIndex
  620. ].progress
  621. : 0
  622. " style="width: 80%"></el-progress>
  623. </div>
  624. </div>
  625. </div>
  626. <div class="toolChoose" style="padding: 0 0 30px 0">
  627. <div class="tools" style="margin-top: 20px">
  628. <div class="leftTools" style="
  629. width: 100%;
  630. border-bottom: 1px solid #efefef;
  631. margin-bottom: 15px;
  632. " v-for="(itemTool, toolIndex) in itemTask.toolArray" :key="toolIndex"
  633. v-loading="downLoading == 'down' + toolIndex">
  634. <div style="
  635. display: flex;
  636. flex-direction: row;
  637. align-items: center;
  638. flex-wrap: nowrap;
  639. justify-content: flex-start;
  640. position: relative;
  641. line-height: 18px;
  642. ">
  643. <div style="font-weight: bold"
  644. :id="'gj' + itemTaskIndex + '' + toolIndex">
  645. 步骤 {{ toolIndex + 1 }} :
  646. </div>
  647. <div class="chooseWho" style="padding-bottom: 0">
  648. <span v-if="itemTool.tool == 1"> 电子白板 </span>
  649. <span v-if="itemTool.tool == 3"> 思维导图 </span>
  650. <span v-if="itemTool.tool == 6"> 协同文档 </span>
  651. <span v-if="itemTool.tool == 15"> 问答 </span>
  652. <span v-if="itemTool.tool == 48"> 表格 </span>
  653. <span v-if="itemTool.tool == 51"> 资源库 </span>
  654. <span v-if="itemTool.tool == 52"> 文档 </span>
  655. <span v-if="itemTool.tool == 53"> 文件上传 </span>
  656. <span v-if="itemTool.tool == 54"> 拍照 </span>
  657. <span v-if="itemTool.tool == 55"> 文件 </span>
  658. <span v-if="itemTool.tool == 56"> 投票 </span>
  659. <span v-if="itemTool.tool == 57"> CocoPi </span>
  660. </div>
  661. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  662. v-if="itemTask.toolArray.length > 0" style="position: absolute; right: 0"></div>
  663. </div>
  664. <div style="margin: 10px 0 20px;align-items: center;"
  665. :style="{ display: (itemTool.tool == 57 || itemTool.tool == 51) ? 'block' : 'flex' }">
  666. <div>
  667. <div class="tool" v-if="itemTool.tool == 1">
  668. <div class="whiteBIcon" @click="openToolFun(1, itemTaskIndex, toolIndex)">
  669. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  670. <div style="margin: 5px 0">电子白板</div>
  671. </div>
  672. </div>
  673. <div class="tool" v-if="itemTool.tool == 3">
  674. <div class="whiteBIcon" @click="openToolFun(3, itemTaskIndex, toolIndex)">
  675. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  676. <div style="margin: 5px 0">思维导图</div>
  677. </div>
  678. </div>
  679. <div class="tool" v-if="itemTool.tool == 6">
  680. <div class="whiteBIcon" @click="openToolFun(6, itemTaskIndex, toolIndex)">
  681. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  682. <div style="margin: 5px 0">协同文档</div>
  683. </div>
  684. </div>
  685. <div class="tool" v-if="itemTool.tool == 15">
  686. <div class="whiteBIcon" @click="openToolFun(15, itemTaskIndex, toolIndex)">
  687. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  688. <div style="margin: 5px 0">问答</div>
  689. </div>
  690. </div>
  691. <div class="tool" v-if="itemTool.tool == 48 && !itemTool.toolPhoto.length
  692. ">
  693. <div class="whiteBIcon" @click="openToolFun(48, itemTaskIndex, toolIndex)">
  694. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  695. <div style="margin: 5px 0">表格</div>
  696. </div>
  697. </div>
  698. <div class="tool" v-if="itemTool.tool == 52 && !itemTool.toolPhoto.length
  699. " style="position: relative">
  700. <div class="whiteBIcon" @click="openToolFun(52, itemTaskIndex, toolIndex)">
  701. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  702. <div style="margin: 5px 0">文档</div>
  703. </div>
  704. </div>
  705. <div class="tool" v-if="itemTool.tool == 53" style="position: relative">
  706. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)">
  707. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  708. <div style="margin: 5px 0">文件上传</div>
  709. <input type="file"
  710. accept="application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/zip"
  711. style="display: none" @change="
  712. beforeUploadCC(
  713. $event,
  714. 1,
  715. itemTaskIndex,
  716. toolIndex,
  717. 53
  718. )
  719. " />
  720. <div v-if="itemTool.proVisible" class="mask">
  721. <div class="lbox2">
  722. <img src="../../../assets/loading.gif" />
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. <div class="tool" v-if="itemTool.tool == 54" style="
  728. display: flex;
  729. flex-direction: row;
  730. align-items: flex-end;
  731. ">
  732. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  733. style="position: relative">
  734. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  735. <div style="margin: 5px 0">拍照</div>
  736. <!-- capture="camera" -->
  737. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo,image/*"
  738. style="display: none" @change="
  739. beforeUploadCC(
  740. $event,
  741. 2,
  742. itemTaskIndex,
  743. toolIndex,
  744. 54
  745. )
  746. " />
  747. <div v-if="itemTool.proVisible" class="mask" style="background: unset"
  748. @click.stop="1">
  749. <div class="lbox2"></div>
  750. </div>
  751. </div>
  752. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  753. <img src="../../../assets/loading.gif" />
  754. <div>
  755. <span>{{ itemTool.isFinishSize }}M</span> /
  756. <span>{{ itemTool.isAllSize }}M</span>
  757. </div>
  758. <!-- <el-button type="text">取消</el-button> -->
  759. </div>
  760. </div>
  761. <div class="tool" v-if="itemTool.tool == 55" style="
  762. display: flex;
  763. flex-direction: row;
  764. align-items: flex-end;
  765. ">
  766. <div class="whiteBIcon" :id="itemTaskIndex + '-' + toolIndex" @click="addImg($event)"
  767. style="position: relative">
  768. <img src="../../../assets/icon/fourthToolList/zip.png" alt />
  769. <div style="margin: 5px 0">文件</div>
  770. <input type="file" accept="*" style="display: none" @change="
  771. beforeUploadCC(
  772. $event,
  773. 3,
  774. itemTaskIndex,
  775. toolIndex,
  776. 55
  777. )
  778. " />
  779. <div v-if="itemTool.proVisible" class="mask" style="background: unset"
  780. @click.stop="1">
  781. <div class="lbox2"></div>
  782. </div>
  783. </div>
  784. <div v-if="itemTool.proVisible" style="margin: 5px 0" class="f_size_box">
  785. <img src="../../../assets/loading.gif" />
  786. <div>
  787. <span>{{ itemTool.isFinishSize }}M</span> /
  788. <span>{{ itemTool.isAllSize }}M</span>
  789. </div>
  790. <!-- <el-button type="text">取消</el-button> -->
  791. </div>
  792. </div>
  793. <div class="tool" v-if="itemTool.tool == 56">
  794. <div class="whiteBIcon" @click="openToolFun(56, itemTaskIndex, toolIndex)">
  795. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  796. <div style="margin: 5px 0">投票</div>
  797. </div>
  798. </div>
  799. <div v-if="itemTool.tool == 57">
  800. <div>
  801. <iframe src="https://v.cocorobo.cn" frameborder="0" width="100%"
  802. height="650"></iframe>
  803. </div>
  804. </div>
  805. <div v-if="itemTool.tool == 51">
  806. <div class="vedioTaskBox">
  807. <div class="box_course" :class="'box_course' + itemTaskIndex + toolIndex
  808. " v-if="itemTool.toolData.length > 0 && !itemTool.isNoFile">
  809. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  810. .type == 2
  811. ">
  812. <div class="workd_media" style="height: 100%">
  813. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="itemTool.toolData[itemTool.sourceIndex]
  814. .src
  815. " @play="onPlayerPlay($event)"
  816. style="width: 99%; height: 100%"></video-player>
  817. </div>
  818. </div>
  819. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  820. .type == 6
  821. " style="
  822. box-shadow: 0 0 6px 1px #f2f2f2;
  823. width: 99%;
  824. background: #f1f1f1;
  825. height: 650px;
  826. ">
  827. <div class="texttitle">查看文档</div>
  828. <el-form class="textBox">
  829. <el-form-item class="textTitle">
  830. <div style="
  831. font-size: 22px;
  832. max-height: 100px;
  833. overflow: auto;
  834. ">
  835. {{
  836. itemTool.toolData[
  837. itemTool.sourceIndex
  838. ].name
  839. }}
  840. </div>
  841. </el-form-item>
  842. <div v-html="itemTool.toolData[itemTool.sourceIndex]
  843. .url
  844. " class="textContent"></div>
  845. </el-form>
  846. </div>
  847. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  848. .type == 3
  849. " style="height: 650px; width: 99%">
  850. <iframe style="
  851. width: 100%;
  852. height: 100%;
  853. border: none;
  854. " :src="itemTool.toolData[itemTool.sourceIndex]
  855. .src
  856. "></iframe>
  857. </div>
  858. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  859. .type == 8
  860. " style="height: 650px; width: 99%">
  861. <iframe style="
  862. width: 100%;
  863. height: 100%;
  864. border: none;
  865. " :src="itemTool.toolData[itemTool.sourceIndex]
  866. .src
  867. " security="restricted"
  868. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>
  869. </div>
  870. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  871. .type == 13
  872. " style="height: 650px; width: 99%">
  873. <el-image :src="itemTool.toolData[itemTool.sourceIndex].url" fit="contain"
  874. style="width: 100%; height: 100%; cursor: pointer"
  875. @click="previewImg(itemTool.toolData[itemTool.sourceIndex].url)"></el-image>
  876. </div>
  877. <div class="wheel" v-if="itemTool.toolData[itemTool.sourceIndex]
  878. .type == 9
  879. " style="height: 650px; width: 99%">
  880. <pdf :pdfUrl="cUrl(itemTool.toolData, itemTool.sourceIndex)" style="
  881. width: 100%;
  882. height: 100%;
  883. overflow: auto;
  884. ">
  885. </pdf>
  886. </div>
  887. </div>
  888. <div class="vedioList" :class="'vedioList' + itemTaskIndex + toolIndex"
  889. v-if="itemTool.toolData.length > 0">
  890. <div class="navTitile">内容列表:</div>
  891. <div class="navBox">
  892. <div>
  893. <div class="vedioTimeBox" v-for="(
  894. chapter, cIndex
  895. ) in itemTool.toolData" :key="cIndex + '1'"
  896. @click="setChapterIndex(itemTool, cIndex, toolIndex)">
  897. <div class="vedioName" :class="{
  898. isClickNav:
  899. itemTool.sourceIndex == cIndex,
  900. }">
  901. {{
  902. chapter.type == 8
  903. ? chapter.title
  904. : chapter.name
  905. }}
  906. </div>
  907. </div>
  908. </div>
  909. </div>
  910. </div>
  911. </div>
  912. <div style="padding: 10px 0 0" v-if="itemTool.toolData[itemTool.sourceIndex]">
  913. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  914. .type == 3 ||
  915. itemTool.toolData[itemTool.sourceIndex]
  916. .type == 9
  917. " type="primary" @click="
  918. checkFileFull(
  919. itemTool.toolData[itemTool.sourceIndex]
  920. .type,
  921. itemTool.toolData[itemTool.sourceIndex].src
  922. )
  923. ">全屏查看</el-button>
  924. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  925. .type == 3 ||
  926. itemTool.toolData[itemTool.sourceIndex]
  927. .type == 9
  928. " type="primary" @click="
  929. downloadFile(
  930. itemTool.toolData[itemTool.sourceIndex].src, toolIndex
  931. )
  932. ">文件下载</el-button>
  933. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  934. .type == 8
  935. " type="primary" @click="
  936. openLineS(
  937. itemTool.toolData[itemTool.sourceIndex].src
  938. )
  939. ">打开链接
  940. </el-button>
  941. <el-button v-if="itemTool.toolData[itemTool.sourceIndex]
  942. .type == 6
  943. " type="primary" @click="
  944. checkFileFull(
  945. itemTool.toolData[itemTool.sourceIndex]
  946. .type,
  947. itemTool.toolData[itemTool.sourceIndex]
  948. )
  949. ">全屏查看</el-button>
  950. <el-button type="primary" @click="
  951. editSourceUpadte(itemTaskIndex, toolIndex)
  952. ">添加资源</el-button>
  953. </div>
  954. </div>
  955. </div>
  956. <div v-if="itemTool.tool != 51" style="width: 71.5%;"
  957. :style="{ marginLeft: ((itemTool.tool == 52 || itemTool.tool == 48) && itemTool.toolPhoto.length) ? '0' : '10px' }">
  958. <!-- <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  959. resize: none;
  960. width: 100% !important;
  961. " v-model="itemTool.toolDetail"></textarea> -->
  962. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  963. style="margin: 0 0 0 0; width: 100% !important"
  964. v-model="itemTool.toolDetail"></textarea>
  965. </div>
  966. </div>
  967. <div v-if="itemTool.toolPhoto.length" style="margin-top: 0" class="toolimg_box">
  968. <div class="toolimg" v-for="(photo, pIndex) in itemTool.toolPhoto" :key="pIndex"
  969. :class="{ answerWidth: photo.type == 3 }">
  970. <img v-if="photo.type == 1" :src="photo.content" alt=""
  971. @click="previewImg(photo.content)" />
  972. <div class="answerBg" v-if="photo.type == 3">
  973. <!-- <div>{{ w.sName }}</div> -->
  974. <el-tooltip class="item" effect="light" :content="photo.content" placement="top">
  975. <div class="answerContent">
  976. {{ photo.content }}
  977. </div>
  978. </el-tooltip>
  979. </div>
  980. <img v-if="photo.type == 10" src="../../../assets/icon/word2.png" alt=""
  981. @click="openToolFun(48, itemTaskIndex, toolIndex)" />
  982. <img v-if="photo.type == 4" src="../../../assets/icon/word2.png" alt=""
  983. @click="openFile(photo.content)" />
  984. <img v-if="photo.type == 12" src="../../../assets/icon/word2.png" alt=""
  985. @click="openToolFun(52, itemTaskIndex, toolIndex)" />
  986. <img v-if="photo.type == 14" src="../../../assets/icon/word2.png" alt="" @click="
  987. openAsk(photo.content, itemTaskIndex, toolIndex)
  988. " />
  989. <img v-if="photo.type == 13" src="../../../assets/icon/zip.png" alt=""
  990. @click="downloadFile(photo.content, toolIndex)" />
  991. <img v-if="photo.type == 5" src="../../../assets/icon/isVideo.png" alt=""
  992. @click="openVideo(photo.content)" />
  993. <img class="deleteImg" src="../../../assets/deleteworks.png" v-if="photo.userid == userid &&
  994. itemTool.tool != 52 &&
  995. itemTool.tool != 48
  996. " @click.stop="deleteWorks(photo.id)" alt />
  997. <div class="comment">
  998. <div class="worksName">
  999. <div v-if="itemTool.tool == 52 || itemTool.tool == 48
  1000. ">
  1001. <el-tooltip v-if="itemTool.people.length > 1" :content="itemTool.people.join('、')"
  1002. placement="top" effect="dark">
  1003. <span>{{
  1004. itemTool.people.join("、")
  1005. }}</span>
  1006. </el-tooltip>
  1007. <span v-else>{{
  1008. itemTool.people.join("、")
  1009. }}</span>
  1010. </div>
  1011. <div v-else>{{ photo.username }}</div>
  1012. <div @click="openUpdateName(photo)">
  1013. <el-tooltip :content="photo.name ? photo.name : setTime(photo.create_at)"
  1014. placement="top" effect="dark">
  1015. <span>{{
  1016. photo.name ? photo.name : setTime(photo.create_at)
  1017. }}</span>
  1018. </el-tooltip>
  1019. <img src="../../../assets/icon/edit-icon.png" />
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div v-if="itemTool.toolPhoto.length && itemTool.tool == 56
  1026. ">
  1027. <voteStatic :askJSON="itemTool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
  1028. </div>
  1029. </div>
  1030. <!-- <div class="addToolFunBox">
  1031. <div class="addToolFun" @click="addToolFunD(itemTaskIndex)">
  1032. <div class="addToolImg">
  1033. <img src="../../../assets/icon/add.png" alt />
  1034. </div>
  1035. <div>添加工具</div>
  1036. </div>
  1037. </div> -->
  1038. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFunD(itemTaskIndex)" style="margin: 0 auto 10px;padding: 0 30px;height: 45px;">
  1039. 添加工具
  1040. </button>
  1041. </div>
  1042. </div>
  1043. <div class="funBlock" style="padding: 0">
  1044. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1045. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  1046. </div>
  1047. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. <div class="addTaskBorder" >
  1052. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1053. 添加任务
  1054. </button>
  1055. </div>
  1056. </div>
  1057. <div class="info_btnBox3">
  1058. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  1059. goTo(
  1060. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1061. )
  1062. ">
  1063. 返回项目
  1064. </button>
  1065. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6"
  1066. @click="lastSteps">
  1067. {{ steps == 5 ? "返回首页" : "上一步" }}
  1068. </button>
  1069. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  1070. :class="{ pub_btn_next_img: !((steps == 4 && type == 2) || (steps == 3 && type != 2)), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  1071. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1072. ? "确认上传"
  1073. : "下一步" }}
  1074. </button>
  1075. </div>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <div class="rightBox" v-if="steps == 4" style="background: #fff;">
  1081. <div class="proMan">
  1082. <div class="title">
  1083. <img src="../../../assets/icon/task.png" alt />任务进展甘特图
  1084. </div>
  1085. <ganChart :Json="unitJson" v-if="steps == 4"></ganChart>
  1086. </div>
  1087. <div class="proMan">
  1088. <div class="title">
  1089. <img src="../../../assets/icon/tupu.png" alt />图谱
  1090. </div>
  1091. <graph :Json="graphJson"></graph>
  1092. </div>
  1093. <div class="proMan">
  1094. <div class="title">
  1095. <img src="../../../assets/icon/proMan.png" alt />负责人看板
  1096. </div>
  1097. <proMan :Json="unitJson" :ManAarray="ManAarray"></proMan>
  1098. </div>
  1099. <div class="info_btnBox3">
  1100. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  1101. goTo(
  1102. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1103. )
  1104. ">
  1105. 返回项目
  1106. </button>
  1107. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1108. {{ steps == 5 ? "返回首页" : "上一步" }}
  1109. </button>
  1110. <button class="c_pub_button_confirm" v-if="steps < 5" @click="nextSteps"
  1111. :class="{ pub_btn_next_img: (steps != 4 && type == 2) || (steps != 3 && type != 2), pub_btn_finish_img: (steps == 4 && type == 2) || (steps == 3 && type != 2) }">
  1112. {{ (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1113. ? "确认上传"
  1114. : "下一步" }}
  1115. </button>
  1116. </div>
  1117. </div>
  1118. <div style="
  1119. width: calc(100% - 20px);
  1120. background: rgb(255, 255, 255);
  1121. border-radius: 10px;
  1122. " v-if="steps == 5">
  1123. <div class="basic_box_success">
  1124. <div class="right_img">
  1125. <img src="../../../assets/icon/qr_code.jpg" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'" alt />
  1126. <img src="../../../assets/icon/right.png" v-else alt />
  1127. </div>
  1128. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1129. 请参加双师科创成长营活动的成员</div>
  1130. <div style="font-weight: bold;margin:10px 0" v-if="org == '150e3120-9195-11ed-b13d-005056b86db5'">
  1131. 前往腾讯未来教室小程序活动作品展示栏提交您的作品</div>
  1132. <div style="font-weight: bold">创建成功</div>
  1133. <!-- <div>您的项目编号</div>
  1134. <div class="number">{{ number }}</div>-->
  1135. <!-- <div class="success_button">
  1136. <div class="look_course" @click="isNoFinsh">
  1137. 邀请老师协同编辑
  1138. </div>
  1139. <div class="attend_others" @click="goCourse">预览项目</div>
  1140. </div> -->
  1141. </div>
  1142. </div>
  1143. <div class="info_btnBox" v-if="false">
  1144. <button class="info_btn" v-if="steps == 1" @click="
  1145. goTo(
  1146. fpath + '?userid=' + userid + '&oid=' + oid + '&org=' + org + '&role=' + role
  1147. )
  1148. ">
  1149. 返回项目
  1150. </button>
  1151. <button class="info_btn" v-if="steps > 1 && steps != 6" @click="lastSteps">
  1152. {{ steps == 5 ? "返回首页" : "上一步" }}
  1153. </button>
  1154. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1155. {{
  1156. (steps == 4 && type == 2) || (steps == 3 && type != 2)
  1157. ? "确认上传"
  1158. : "下一步"
  1159. }}
  1160. </button>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  1166. class="dialog_diy2 customWidth">
  1167. <div>请复制该链接邀请协同编辑</div>
  1168. <div>http://www.boomyon.com/index-zhang.com</div>
  1169. <span slot="footer" class="dialog-footer">
  1170. <el-button type="primary">复制链接分享</el-button>
  1171. <el-button @click="dialogVisible = false">取消</el-button>
  1172. </span>
  1173. </el-dialog>
  1174. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1175. :before-close="handleClose" class="dialog_diy2 customWidth">
  1176. <el-form>
  1177. <el-form-item label="文档标题">
  1178. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1179. </el-form-item>
  1180. <div>文档简介</div>
  1181. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1182. </el-form>
  1183. <span slot="footer" class="dialog-footer">
  1184. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1185. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1186. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1187. </span>
  1188. </el-dialog>
  1189. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1190. :before-close="handleClose" class="dialog_diy">
  1191. <el-form>
  1192. <el-form-item label="文档标题">
  1193. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1194. </el-form-item>
  1195. <div>文档内容</div>
  1196. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1197. </el-form>
  1198. <span slot="footer" class="dialog-footer">
  1199. <el-button @click="clearChoose">取 消</el-button>
  1200. <el-button type="primary" @click="wordNext()">确定</el-button>
  1201. </span>
  1202. </el-dialog>
  1203. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1204. :before-close="handleClose" class="dialog_diy">
  1205. <el-form>
  1206. <el-form-item label="文本标题">
  1207. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1208. </el-form-item>
  1209. <div>富文本内容</div>
  1210. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1211. </el-form>
  1212. <span slot="footer" class="dialog-footer">
  1213. <el-button @click="clearAttText">取 消</el-button>
  1214. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1215. </span>
  1216. </el-dialog>
  1217. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1218. :before-close="handleClose" class="dialog_diy lineCss">
  1219. <el-form>
  1220. <el-form-item label="标题" :label-width="formLabelWidth">
  1221. <span>
  1222. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1223. </span>
  1224. </el-form-item>
  1225. <el-form-item label="链接" :label-width="formLabelWidth">
  1226. <span>
  1227. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1228. </span>
  1229. </el-form-item>
  1230. </el-form>
  1231. <span slot="footer" class="dialog-footer">
  1232. <el-button @click="clearLine">取 消</el-button>
  1233. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1234. </span>
  1235. </el-dialog>
  1236. <el-dialog title="添加项目成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1237. :before-close="handleClose" class="addNewPP customWidth">
  1238. <div class="people">
  1239. <div class="people_top">
  1240. <div class="people_nav">选择成员</div>
  1241. <div class="people_top_right">
  1242. <div class="people_search">
  1243. <el-input style="height: 100%" placeholder="搜索成员账号" v-model="searchPeople"></el-input>
  1244. <div class="search_img" @click="searchStudent">
  1245. <img src="../../../assets/icon/search.png" alt />
  1246. </div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <el-checkbox-group v-model="checkboxList" class="people_name">
  1251. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1252. "暂无学生可选" }}
  1253. </el-checkbox>
  1254. </el-checkbox-group>
  1255. </div>
  1256. <span slot="footer" class="dialog-footer">
  1257. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1258. <el-button type="primary" @click="isAddPP">确定</el-button>
  1259. </span>
  1260. </el-dialog>
  1261. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1262. :before-close="handleClose" class="addNewPP">
  1263. <div class="people" style="height: 300px">
  1264. <div class="people_top">
  1265. <div class="people_nav">选择班级</div>
  1266. </div>
  1267. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1268. <div v-for="(item, index) in grade" :key="item.id">
  1269. <el-checkbox :label="item.id">
  1270. {{ item.name ? item.name : "暂无班级可选" }}
  1271. </el-checkbox>
  1272. <div>
  1273. <span>{{ index }}</span>
  1274. </div>
  1275. </div>
  1276. </el-checkbox-group>
  1277. </div>
  1278. <span slot="footer" class="dialog-footer">
  1279. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1280. <el-button type="primary" @click="isAddClass">确定</el-button>
  1281. </span>
  1282. </el-dialog>
  1283. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1284. :before-close="handleClose" class="addNewPP customWidth">
  1285. <div class="people">
  1286. <div class="people_top">
  1287. <div class="people_top_right">
  1288. <div class="people_search">
  1289. <el-input placeholder="搜索完整的姓名/账号(不含邮箱后缀)" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1290. <div class="search_img" @click="getTeacher">
  1291. <img src="../../../assets/icon/search.png" alt />
  1292. </div>
  1293. </div>
  1294. </div>
  1295. <div class="people_nav">选择成员</div>
  1296. </div>
  1297. <div class="t_j_box" style="
  1298. padding: 20px 0 0 25px;
  1299. width: calc(100% - 55px);
  1300. margin-left: 25px;
  1301. ">
  1302. <span>姓名</span>
  1303. <span>身份</span>
  1304. <span>账号</span>
  1305. <span>学校</span>
  1306. </div>
  1307. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1308. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1309. <div class="t_j_box">
  1310. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1311. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1312. </el-tooltip>
  1313. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1314. <el-tooltip placement="top" :content="item.username">
  1315. <span>{{ item.username }}</span>
  1316. </el-tooltip>
  1317. <el-tooltip placement="top" :content="item.school">
  1318. <span>{{ item.school }}</span>
  1319. </el-tooltip>
  1320. </div>
  1321. </el-checkbox>
  1322. </el-checkbox-group>
  1323. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1324. </div>
  1325. <div style="margin-top: 10px;">
  1326. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1327. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1328. @current-change="handleCurrentChange"></el-pagination>
  1329. </div>
  1330. <span slot="footer" class="dialog-footer">
  1331. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1332. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1333. </span>
  1334. </el-dialog>
  1335. <el-dialog title="添加协同者" :visible.sync="dialogVisibleTcMember" :append-to-body="true" width="25%" height="80%"
  1336. :before-close="handleClose" class="addNewPP customWidth">
  1337. <div class="people">
  1338. <div class="people_top">
  1339. <!-- <div class="people_top_right">
  1340. <div class="people_search">
  1341. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1342. <div class="search_img" @click="getTeacher">
  1343. <img src="../../../assets/icon/search.png" alt />
  1344. </div>
  1345. </div>
  1346. </div> -->
  1347. <div class="people_nav">选择成员</div>
  1348. </div>
  1349. <div class="t_j_box" style="
  1350. padding: 20px 0 0 25px;
  1351. width: calc(100% - 55px);
  1352. margin-left: 25px;
  1353. ">
  1354. <span>姓名</span>
  1355. <span>身份</span>
  1356. <span>账号</span>
  1357. <span>学校</span>
  1358. </div>
  1359. <el-checkbox-group v-model="tcMember" class="people_name" v-if="ManAarray2.length">
  1360. <el-checkbox v-for="item in ManAarray2" :key="item.userid" :label="item.userid">
  1361. <div class="t_j_box">
  1362. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1363. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1364. </el-tooltip>
  1365. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1366. <el-tooltip placement="top" :content="item.username">
  1367. <span>{{ item.username }}</span>
  1368. </el-tooltip>
  1369. <el-tooltip placement="top" :content="item.school">
  1370. <span>{{ item.school }}</span>
  1371. </el-tooltip>
  1372. </div>
  1373. </el-checkbox>
  1374. </el-checkbox-group>
  1375. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1376. </div>
  1377. <span slot="footer" class="dialog-footer">
  1378. <el-button @click="dialogVisibleTcMember = false">取 消</el-button>
  1379. <el-button type="primary" @click="isAddPPTcTeacher">确定</el-button>
  1380. </span>
  1381. </el-dialog>
  1382. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1383. :before-close="handleClose" class="dialog_diy">
  1384. <div>
  1385. <div class="a_add_title" style="
  1386. display: flex;
  1387. flex-direction: row;
  1388. align-items: center;
  1389. justify-content: center;
  1390. ">
  1391. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1392. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1393. </div>
  1394. <div class="a_addBox">
  1395. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1396. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1397. <div class="a_add_head">
  1398. <div>
  1399. {{ index1 + 1 + "、" }}
  1400. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  1401. </el-input>
  1402. </div>
  1403. <div class="a_add_head_div">
  1404. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  1405. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1406. </el-button>
  1407. </div>
  1408. </div>
  1409. <div class="a_add_body">
  1410. <div class="a_add_input">
  1411. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1412. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1413. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1414. </div>
  1415. <div class="a_add_body_div">
  1416. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1417. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1418. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1419. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1420. </el-button>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. <span slot="footer" class="dialog-footer">
  1427. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1428. <el-button type="primary" @click="addAsk">确 定</el-button>
  1429. </span>
  1430. </el-dialog>
  1431. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1432. :before-close="handleClose" class="dialog_diy">
  1433. <div>
  1434. <!-- <div class="a_add_title" style="
  1435. display: flex;
  1436. flex-direction: row;
  1437. align-items: center;
  1438. justify-content: center;
  1439. ">
  1440. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1441. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1442. </div> -->
  1443. <div class="a_addBox">
  1444. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  1445. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1446. <div class="a_add_checkType">
  1447. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1448. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1449. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1450. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1451. </div>
  1452. <div class="a_add_head">
  1453. <div>
  1454. {{ index1 + 1 + "、" }}
  1455. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目...">
  1456. </el-input>
  1457. </div>
  1458. <div class="a_add_head_div">
  1459. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  1460. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1461. </el-button>
  1462. </div>
  1463. </div>
  1464. <div class="a_add_body">
  1465. <div class="a_add_input a_add_input_choice">
  1466. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  1467. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1468. .testItem" :key="checkIndex" :label="checkIndex">
  1469. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1470. style="width: 300px; margin-right: 10px"></el-input>
  1471. </el-radio>
  1472. </el-radio-group>
  1473. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  1474. v-if="testJson.testJson[index1].type == '2'">
  1475. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1476. .testItem" :key="checkIndex" :label="checkIndex">
  1477. <el-input v-model="testJson.testJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  1478. style="width: 300px; margin-right: 10px"></el-input>
  1479. </el-checkbox>
  1480. </el-checkbox-group>
  1481. </div>
  1482. <div class="a_add_body_div">
  1483. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  1484. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  1485. v-if="testJson.testJson[index1].testItem != 1">删除
  1486. </el-button>
  1487. </div>
  1488. </div>
  1489. </div>
  1490. </div>
  1491. </div>
  1492. <span slot="footer" class="dialog-footer">
  1493. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  1494. <el-button type="primary" @click="addTest">确 定</el-button>
  1495. </span>
  1496. </el-dialog>
  1497. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  1498. :before-close="handleClose" class="dialog_diy">
  1499. <div>
  1500. <div class="a_add_title" style="
  1501. display: flex;
  1502. flex-direction: column;
  1503. align-items: flex-start;
  1504. justify-content: center;
  1505. ">
  1506. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1507. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  1508. </div>
  1509. </div>
  1510. <span slot="footer" class="dialog-footer">
  1511. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1512. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1513. </span>
  1514. </el-dialog>
  1515. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  1516. :before-close="handleClose" class="dialog_diy">
  1517. <div>
  1518. <div class="a_add_title" style="
  1519. display: flex;
  1520. flex-direction: column;
  1521. align-items: flex-start;
  1522. justify-content: center;
  1523. ">
  1524. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1525. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  1526. </div>
  1527. </div>
  1528. <span slot="footer" class="dialog-footer">
  1529. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  1530. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  1531. </span>
  1532. </el-dialog>
  1533. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  1534. :before-close="handleClose" class="dialog_diy">
  1535. <div>
  1536. <div class="fileCss" style="padding-top: 20px">
  1537. <div>
  1538. <button class="info_btn" @click="addImg($event)">
  1539. 选择本地文件
  1540. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  1541. </button>
  1542. </div>
  1543. <div>
  1544. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  1545. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  1546. <img :src="cover[0].url" alt="" />
  1547. <div class="deletePic" @click="deleteSysPic">
  1548. <img src="../../../assets/icon/delete.png" alt="" />
  1549. </div>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. <div class="fileCss">
  1554. <div>选择本地文件</div>
  1555. <div>选择系统文件</div>
  1556. </div>
  1557. </div>
  1558. <span slot="footer" class="dialog-footer">
  1559. <el-button @click="choosePicVisible = false">取 消</el-button>
  1560. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  1561. </span>
  1562. </el-dialog>
  1563. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  1564. :before-close="handleClose" class="dialog_diy">
  1565. <div class="cru_selectBox" style="margin: 0">
  1566. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  1567. 绘画
  1568. </div>
  1569. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  1570. 科技
  1571. </div>
  1572. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  1573. 人文
  1574. </div>
  1575. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  1576. 艺术
  1577. </div>
  1578. </div>
  1579. <div class="sysPicBox">
  1580. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  1581. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  1582. </div>
  1583. </div>
  1584. <span slot="footer" class="dialog-footer">
  1585. <el-button @click="sysPicVisible = false">取 消</el-button>
  1586. <el-button type="primary">确 定</el-button>
  1587. </span>
  1588. </el-dialog>
  1589. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  1590. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1591. <div v-if="selectJson">
  1592. <div class="select_box1" v-if="selectSteps == 1">
  1593. <div class="select_box1_img">
  1594. <div class="select_box1_title">
  1595. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  1596. </div>
  1597. <div class="select_box1_add_img">
  1598. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  1599. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  1600. <img src="../../../assets/icon/addPoster.png" alt="" />
  1601. </div>
  1602. <div class="isSysPic" v-else>
  1603. <img :src="selectJson.url" alt="" />
  1604. <div class="deletePic" @click="deleteSelectPic">
  1605. <img src="../../../assets/icon/delete.png" alt="" />
  1606. </div>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. <div class="select_box1_select">
  1611. <div class="select_box1_title">
  1612. <span>添加选项</span><span>提示:请输入题目选项</span>
  1613. </div>
  1614. <div class="select_box1_select_box">
  1615. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  1616. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  1617. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  1618. <div class="select_box1_select_box_add">
  1619. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  1620. 添加</el-button>
  1621. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  1622. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  1623. </div>
  1624. </div>
  1625. </div>
  1626. </div>
  1627. <div v-if="selectSteps == 2">
  1628. <div class="select_box2">
  1629. <div class="select_box2_title">设置答案</div>
  1630. <div class="select_box2_box">
  1631. <div class="select_box2_img">
  1632. <img :src="selectJson.url" alt="" />
  1633. </div>
  1634. <div class="select_box2_answer">
  1635. <div class="select_answer_title">根据题目选择对应答案</div>
  1636. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1637. <span>{{ checkIndex + 1 }}、</span>
  1638. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  1639. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1640. </el-option>
  1641. </el-select>
  1642. </div>
  1643. </div>
  1644. </div>
  1645. </div>
  1646. </div>
  1647. </div>
  1648. <span slot="footer" class="dialog-footer">
  1649. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  1650. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  1651. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  1652. </span>
  1653. </el-dialog>
  1654. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  1655. :before-close="handleClose" class="dialog_diy">
  1656. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  1657. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  1658. <div class="pjCss" style="width: 100%">
  1659. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  1660. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  1661. <span style="min-width: 100px; text-align: right">学生评价指标:</span>
  1662. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  1663. <div class="remove" @click="deletRateList(eIndex)"></div>
  1664. <div style="width: 100%; display: flex">
  1665. <span style="min-width: 100px; text-align: right">评星等级:</span>
  1666. <el-rate v-model="eItem.score" disabled></el-rate>
  1667. </div>
  1668. <div class="elist_inptu_text" style="align-items: flex-start">
  1669. <span style="min-width: 100px; text-align: right">描述:</span>
  1670. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  1671. </div>
  1672. </div>
  1673. </div>
  1674. <div class="addToolFunBox">
  1675. <div class="addToolFun" @click="addRateList()">
  1676. <div class="addToolImg">
  1677. <img src="../../../assets/icon/add.png" alt />
  1678. </div>
  1679. <div>添加</div>
  1680. </div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <span slot="footer" class="dialog-footer">
  1685. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  1686. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  1687. </span>
  1688. </el-dialog>
  1689. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1690. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1691. <div>
  1692. <div class="sentenBox">
  1693. <div class="addSen" @click="addSt">添加题目</div>
  1694. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1695. <div class="sentenTopBox">
  1696. <div class="sentenTop">
  1697. <div>题目设置</div>
  1698. <div>
  1699. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  1700. </div>
  1701. <div @click="addSen(stIndex)">添加</div>
  1702. </div>
  1703. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  1704. </div>
  1705. <div class="cardList">
  1706. <div v-if="st.addSentence.length > 0" class="cardBox">
  1707. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  1708. @click="setRightAnswer(s, stIndex, sIndex)">
  1709. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1710. <div>{{ s }}</div>
  1711. </el-tooltip>
  1712. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  1713. <img src="../../../assets/icon/delete.png" alt="" />
  1714. </div>
  1715. </div>
  1716. </div>
  1717. <div class="card">
  1718. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  1719. </div>
  1720. </div>
  1721. <div class="rightCardBox">
  1722. <div>正确顺序</div>
  1723. <div class="rightCardList">
  1724. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  1725. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  1726. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  1727. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1728. <div>{{ r }}</div>
  1729. </el-tooltip>
  1730. </div>
  1731. <div>{{ rIndex + 1 }}</div>
  1732. </div>
  1733. </div>
  1734. <div class="card" v-if="st.rightAnswer.length == 0">
  1735. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  1736. </div>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. <span slot="footer" class="dialog-footer">
  1743. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1744. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  1745. </span>
  1746. </el-dialog>
  1747. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1748. :before-close="handleClose" class="dialog_diy">
  1749. <el-form>
  1750. <!-- <el-form-item label="文本标题">
  1751. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1752. </el-form-item> -->
  1753. <div>表格内容</div>
  1754. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1755. </el-form>
  1756. <span slot="footer" class="dialog-footer">
  1757. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1758. <el-button type="primary" @click="addTableJson">确定</el-button>
  1759. </span>
  1760. </el-dialog>
  1761. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable1" :append-to-body="true" width="95%"
  1762. :before-close="handleClose" class="dialog_diy">
  1763. <el-form>
  1764. <!-- <el-form-item label="文本标题">
  1765. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  1766. </el-form-item> -->
  1767. <div>表格内容</div>
  1768. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable1"></Table>
  1769. </el-form>
  1770. <span slot="footer" class="dialog-footer">
  1771. <el-button @click="dialogVisibleTable1 = false">取 消</el-button>
  1772. <el-button type="primary" @click="addTable">确定</el-button>
  1773. </span>
  1774. </el-dialog>
  1775. <el-dialog title="查看表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  1776. :before-close="handleClose" class="dialog_diy">
  1777. <el-form>
  1778. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  1779. </el-form>
  1780. <span slot="footer" class="dialog-footer">
  1781. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  1782. </span>
  1783. </el-dialog>
  1784. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  1785. :before-close="handleClose" class="dialog_diy">
  1786. <div class="groupBox">
  1787. <div v-if="groupJson.group" class="groupContent">
  1788. <div class="groupTitle">请设置小组数量</div>
  1789. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  1790. <span class="groupn">组{{ index + 1 }}名称:</span>
  1791. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  1792. <div class="groupBtn">
  1793. <el-button type="primary" size="small" @click="addGroup(index)">
  1794. 添加</el-button>
  1795. <el-button type="primary" size="small" @click="deleteGroup(index)"
  1796. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  1797. </div>
  1798. </div>
  1799. </div>
  1800. <div class="groupContent">
  1801. <div class="groupTitle">请设置每组人数数量</div>
  1802. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  1803. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  1804. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  1805. placeholder="2-10人以内"></el-input-number>
  1806. </div>
  1807. </div>
  1808. <span slot="footer" class="dialog-footer">
  1809. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  1810. <el-button type="primary" @click="addGroupJson">确定</el-button>
  1811. </span>
  1812. </el-dialog>
  1813. <el-dialog title="添加工具" :visible.sync="dialogVisibleTool" :append-to-body="true" width="600px"
  1814. :before-close="handleClose" class="dialog_diy addToolsDia">
  1815. <div class="toolChoose" style="padding: 0 0 30px 30px">
  1816. <div class="tools">
  1817. <div class="leftTools" style="
  1818. width: 95%;
  1819. padding: 0 0 15px 0;
  1820. border-bottom: 1px solid #efefef;
  1821. margin-bottom: 15px;
  1822. ">
  1823. <div style="min-height: 163px">
  1824. <div class="toolSort">
  1825. <div class="tool">
  1826. <div class="whiteBIcon" @click="addToolFun(1)">
  1827. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1828. <div style="margin: 5px 0">电子白板</div>
  1829. </div>
  1830. </div>
  1831. <div class="tool" v-if="false">
  1832. <div class="whiteBIcon" @click="addToolFun(6)">
  1833. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1834. <div style="margin: 5px 0">协同文档</div>
  1835. </div>
  1836. </div>
  1837. <div class="tool">
  1838. <div class="whiteBIcon" @click="addToolFun(3)">
  1839. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1840. <div style="margin: 5px 0">思维导图</div>
  1841. </div>
  1842. </div>
  1843. <div class="tool">
  1844. <div class="whiteBIcon" @click="addToolFun(48)">
  1845. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1846. <div style="margin: 5px 0">表格</div>
  1847. </div>
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addToolFun(15)">
  1851. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1852. <div style="margin: 5px 0">问答</div>
  1853. </div>
  1854. </div> -->
  1855. <div class="tool">
  1856. <div class="whiteBIcon" @click="addToolFun(52)">
  1857. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1858. <div style="margin: 5px 0">文档</div>
  1859. </div>
  1860. </div>
  1861. <div class="tool">
  1862. <div class="whiteBIcon" @click="addToolFun(51)">
  1863. <img src="../../../assets/icon/fourthToolList/upload.png" alt />
  1864. <div style="margin: 5px 0">资源库</div>
  1865. </div>
  1866. </div>
  1867. <!-- <div class="tool">
  1868. <div class="whiteBIcon" @click="addToolFun(53)">
  1869. <img src="../../../assets/icon/fourthToolList/file.png" alt />
  1870. <div style="margin: 5px 0">文件上传</div>
  1871. </div>
  1872. </div> -->
  1873. <div class="tool">
  1874. <div class="whiteBIcon" @click="addToolFun(54)">
  1875. <img src="../../../assets/icon/fourthToolList/photo.png" alt />
  1876. <div style="margin: 5px 0">拍照</div>
  1877. </div>
  1878. </div>
  1879. <!-- <div class="tool">
  1880. <div class="whiteBIcon" @click="addToolFun(55)">
  1881. <img
  1882. src="../../../assets/icon/fourthToolList/zip.png"
  1883. alt
  1884. />
  1885. <div style="margin: 5px 0">文件</div>
  1886. </div>
  1887. </div> -->
  1888. <div class="tool">
  1889. <div class="whiteBIcon" @click="addToolFun(56)">
  1890. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1891. <div style="margin: 5px 0">投票</div>
  1892. </div>
  1893. </div>
  1894. <div class="tool">
  1895. <div class="whiteBIcon" @click="addToolFun(57)">
  1896. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1897. <div style="margin: 5px 0">CocoPi</div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. </div>
  1904. </div>
  1905. <!-- <span slot="footer" class="dialog-footer">
  1906. <el-button @click="dialogVisible4 = false">取 消</el-button>
  1907. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  1908. </span> -->
  1909. </el-dialog>
  1910. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="700px"
  1911. :before-close="handleClose" class="dialog_diy addToolsDia">
  1912. <div class="toolChoose">
  1913. <div class="tools">
  1914. <div class="leftTools" style="width: 100%">
  1915. <div>
  1916. <div class="basic_box">
  1917. <div>
  1918. <div class="add_chapters_box" v-if="sourcesData.length == 0" style="height: 185px"></div>
  1919. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1920. <div class="chapter_upload" v-for="(item, index) in sourcesData" :key="index"
  1921. @click="getChapterData2($event, index, item.type)">
  1922. <div class="chapter_upload_t" style="width: 100%"></div>
  1923. <div class="chapter_upload_o" style="
  1924. position: relative;
  1925. display: flex;
  1926. align-items: center;
  1927. ">
  1928. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1929. <div v-if="item.type == 2" class="chapter_upload_l_i1"></div>
  1930. <div v-if="item.type == 3 ||
  1931. item.type == 9 ||
  1932. item.type == 6 ||
  1933. item.type == 12 ||
  1934. item.type == 13 ||
  1935. item.type == 7
  1936. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1937. <div v-if="item.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1938. </div>
  1939. <div class="chapter_upload_ic" style="
  1940. cursor: pointer;
  1941. position: absolute;
  1942. width: 45px;
  1943. right: 0;
  1944. top: 0;
  1945. ">
  1946. <div class="chapter_upload_ic_l"></div>
  1947. <div class="chapter_upload_ic_r" style="position: absolute"
  1948. @click.stop="deleteChapterData2($event, index)">
  1949. <div></div>
  1950. </div>
  1951. </div>
  1952. <div class="chapter_upload_n">
  1953. <input v-if="item.type == 2 ||
  1954. item.type == 3 ||
  1955. item.type == 9 ||
  1956. item.type == 12 ||
  1957. item.type == 13 ||
  1958. item.type == 7
  1959. " :placeholder="item.name" @change="updataVideoT2($event, index)" style="
  1960. border: none;
  1961. outline: none;
  1962. width: 80%;
  1963. minwidth: 215px;
  1964. z-index: 99;
  1965. font-size: 14px;
  1966. white-space: nowrap;
  1967. overflow: hidden;
  1968. text-overflow: ellipsis;
  1969. " />
  1970. <input :placeholder="item.name" v-if="item.type == 6" style="
  1971. border: none;
  1972. outline: none;
  1973. width: 80%;
  1974. white-space: nowrap;
  1975. overflow: hidden;
  1976. text-overflow: ellipsis;
  1977. " readonly="true" @click="selectAttText2(index)" />
  1978. <input :placeholder="item.title ? item.title : '链接'" v-if="item.type == 8" style="
  1979. border: none;
  1980. outline: none;
  1981. width: 80%;
  1982. white-space: nowrap;
  1983. overflow: hidden;
  1984. text-overflow: ellipsis;
  1985. " readonly="true" @click="selectLine2(index)" />
  1986. <div class="chapter_upload_ud" style="z-index: 99">
  1987. <div class="chapter_upload_up" @click="upCd2($event, index)"></div>
  1988. <div class="chapter_upload_down" @click="downCd2($event, index)"></div>
  1989. </div>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div class="add_info_box">
  1996. <button class="info_btn" @click="addImg($event)">
  1997. 添加文件
  1998. <input type="file" accept="*" style="display: none" v-if="inputShow"
  1999. @change="beforeUpload3($event, 13)" />
  2000. </button>
  2001. <!-- <button class="info_btn" @click="addImg($event)">
  2002. 添加视频
  2003. <input
  2004. type="file"
  2005. accept="video/mp4, video/quicktime, video/x-msvideo"
  2006. style="display: none"
  2007. v-if="inputShow"
  2008. @change="beforeUpload3($event, 2)"
  2009. />
  2010. </button>
  2011. <button class="info_btn" @click="addImg($event)">
  2012. 添加附件
  2013. <input
  2014. type="file"
  2015. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2016. style="display: none"
  2017. v-if="inputShow"
  2018. @change="beforeUpload3($event, 3)"
  2019. />
  2020. </button> -->
  2021. <button class="info_btn" @click="addAttText()">
  2022. 添加图文
  2023. </button>
  2024. <button class="info_btn" @click="openLine()">
  2025. 添加链接
  2026. </button>
  2027. <button class="info_btn" @click="pasteLine()">
  2028. 嵌入代码
  2029. </button>
  2030. <button class="info_btn" @click="openSource()">
  2031. 添加资源
  2032. </button>
  2033. </div>
  2034. <div v-if="proVisible" class="mask">
  2035. <div class="progressBox">
  2036. <!-- <div id="closePro" class="closeCss">
  2037. <img src="../../../assets/icon/close.png" alt />
  2038. </div> -->
  2039. <div class="lbox">
  2040. <img src="../../../assets/loading.gif" />上传中,请稍后
  2041. </div>
  2042. <div style="margin-bottom: 10px">
  2043. <span>{{ isFinishSize }}M</span> /
  2044. <span>{{ isAllSize }}M</span>
  2045. </div>
  2046. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress"
  2047. style="width: 80%"></el-progress>
  2048. </div>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <span slot="footer" class="dialog-footer">
  2056. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2057. <el-button type="primary" @click="addSourceData">确定</el-button>
  2058. </span>
  2059. </el-dialog>
  2060. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2061. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 9 }">
  2062. <div slot="title" class="header-title">
  2063. <div style="color: #fff">查看文档</div>
  2064. <div @click="fullDialogVisible = false" style="
  2065. cursor: pointer;
  2066. position: absolute;
  2067. top: 20px;
  2068. right: 20px;
  2069. color: #fff;
  2070. ">
  2071. 退出全屏
  2072. </div>
  2073. </div>
  2074. <div style="height: 100%">
  2075. <iframe v-if="fulltype == 3" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2076. <pdf v-else-if="fulltype == 9" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto">
  2077. </pdf>
  2078. <div class="wheel" v-if="fulltype == 6" style="
  2079. box-shadow: 0 0 6px 1px #f2f2f2;
  2080. width: 100%;
  2081. background: #f1f1f1;
  2082. ">
  2083. <div class="texttitle" style="width: 100%; box-sizing: border-box">
  2084. 查看文档
  2085. </div>
  2086. <el-form class="textBox" style="height: 90%">
  2087. <el-form-item class="textTitle">
  2088. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2089. {{ fullUrl.name }}
  2090. </div>
  2091. </el-form-item>
  2092. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2093. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2094. </el-form>
  2095. </div>
  2096. </div>
  2097. <!-- <div slot="footer">
  2098. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2099. </div> -->
  2100. </el-dialog>
  2101. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  2102. :before-close="handleClose" class="dialog_diy">
  2103. <div>
  2104. <div style="
  2105. display: flex;
  2106. flex-wrap: nowrap;
  2107. flex-direction: column;
  2108. position: relative;
  2109. ">
  2110. <div class="queTop" style="padding: 20px 0 20px 0">
  2111. <div class="question">
  2112. <img src="../../../assets/icon/question.png" alt />
  2113. </div>
  2114. <div class="queTitle">
  2115. <div style="width: 90px; min-width: 90px">提问:</div>
  2116. <div>{{ answerQ }}</div>
  2117. </div>
  2118. </div>
  2119. <div class="ediBottom">
  2120. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  2121. v-model="questionAnswer"></textarea>
  2122. </div>
  2123. </div>
  2124. </div>
  2125. <div slot="footer">
  2126. <el-button @click="answerDialogVisible = false">取 消</el-button>
  2127. <el-button type="primary" @click="addQuestion">提 交</el-button>
  2128. </div>
  2129. </el-dialog>
  2130. <el-dialog title="文件预览" :visible.sync="dialogVisibleFile" width="50%" :before-close="handleClose" class="dialog_diy"
  2131. :class="{ fullStyle: full }">
  2132. <div slot="title" class="header-title">
  2133. <div style="color: #fff">文件预览</div>
  2134. <div style="position: absolute; top: 19px; right: 50px">
  2135. <img src="../../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="full = !full" />
  2136. </div>
  2137. </div>
  2138. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  2139. :class="{ fullStyle: full }"></pdf>
  2140. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  2141. </el-dialog>
  2142. <el-dialog title="添加文档" :visible.sync="dialogVisibleText" :append-to-body="true" width="800px"
  2143. :before-close="handleClose" class="dialog_diy">
  2144. <el-form>
  2145. <div>文档内容</div>
  2146. <editor-bar v-model="tableJson.text" @change="change" v-if="dialogVisibleText"></editor-bar>
  2147. </el-form>
  2148. <span slot="footer" class="dialog-footer">
  2149. <el-button @click="dialogVisibleText = false">取 消</el-button>
  2150. <el-button type="primary" @click="addText">确定</el-button>
  2151. </span>
  2152. </el-dialog>
  2153. <el-dialog title="上传文档" :visible.sync="dialogVisibleText3" :append-to-body="true" width="800px"
  2154. :before-close="handleClose" class="dialog_diy">
  2155. <el-form>
  2156. <div>文档内容</div>
  2157. <EditorBar2 v-model="tableJson.text" @change="change" v-if="dialogVisibleText3"></EditorBar2>
  2158. </el-form>
  2159. <span slot="footer" class="dialog-footer">
  2160. <el-button @click="dialogVisibleText3 = false">取 消</el-button>
  2161. <el-button type="primary" @click="addTextJson">确定</el-button>
  2162. </span>
  2163. </el-dialog>
  2164. <el-dialog title="查看文档" :visible.sync="dialogVisibleText2" :append-to-body="true" width="800px"
  2165. :before-close="handleClose" class="dialog_diy">
  2166. <el-form>
  2167. <div class="cont" v-html="tableJson.text" style="line-height: 24px"></div>
  2168. </el-form>
  2169. <span slot="footer" class="dialog-footer">
  2170. <el-button @click="dialogVisibleText2 = false">关 闭</el-button>
  2171. </span>
  2172. </el-dialog>
  2173. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  2174. class="dialog_diy1">
  2175. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  2176. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  2177. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  2178. </div>
  2179. <div slot="footer">
  2180. <el-button style="background: #409efe; color: #fff" @click="(videoVisible = false), (videoDetail = {})">
  2181. 关 闭</el-button>
  2182. </div>
  2183. </el-dialog>
  2184. <el-dialog title="创建投票" :visible.sync="dialogVisibleVote" :append-to-body="true" width="800px"
  2185. :before-close="handleClose" class="dialog_diy">
  2186. <div>
  2187. <div class="a_add_title" style="
  2188. display: flex;
  2189. flex-direction: row;
  2190. align-items: center;
  2191. justify-content: center;
  2192. ">
  2193. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2194. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2195. </div>
  2196. <div class="a_addBox">
  2197. <div style="font-size: 16px; color: #c7c7c7">请输入投票内容</div>
  2198. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2199. <div class="a_add_head">
  2200. <div>
  2201. {{ index1 + 1 + "、" }}
  2202. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入内容...">
  2203. </el-input>
  2204. </div>
  2205. <div class="a_add_head_div">
  2206. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2207. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2208. </el-button>
  2209. </div>
  2210. </div>
  2211. <div class="a_add_body">
  2212. <div class="a_add_input">
  2213. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2214. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入投票选项..."
  2215. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2216. </div>
  2217. <div class="a_add_body_div">
  2218. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2219. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2220. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2221. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2222. </el-button>
  2223. </div>
  2224. </div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. <span slot="footer" class="dialog-footer">
  2229. <el-button @click="dialogVisibleVote = false">取 消</el-button>
  2230. <el-button type="primary" @click="addAsk">确 定</el-button>
  2231. </span>
  2232. </el-dialog>
  2233. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote2" :append-to-body="true" width="1000px"
  2234. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2235. <div>
  2236. <div class="a_add_title" style="
  2237. display: flex;
  2238. flex-direction: row;
  2239. align-items: center;
  2240. justify-content: center;
  2241. ">
  2242. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2243. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2244. </div>
  2245. <div class="a_addBox">
  2246. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2247. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2248. <div class="a_add_head">
  2249. <div style="display: flex">
  2250. {{ index1 + 1 + "、" }}
  2251. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2252. </div>
  2253. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2254. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2255. </div>
  2256. <div class="a_add_body">
  2257. <div class="a_add_input">
  2258. <el-radio-group v-model="radio[index1]">
  2259. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2260. .checkList" :key="checkIndex" :label="checkIndex" class="redioStyle"><span
  2261. v-html="item2"></span></el-radio>
  2262. </el-radio-group>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. </div>
  2267. </div>
  2268. <span slot="footer" class="dialog-footer">
  2269. <el-button @click="dialogVisibleVote2 = false">取 消</el-button>
  2270. <el-button type="primary" @click="addStudentAsk">确 定</el-button>
  2271. </span>
  2272. </el-dialog>
  2273. <el-dialog title="查看投票" :visible.sync="dialogVisibleVote3" :append-to-body="true" width="1000px"
  2274. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2275. <div>
  2276. <div class="a_add_title" style="
  2277. display: flex;
  2278. flex-direction: row;
  2279. align-items: center;
  2280. justify-content: center;
  2281. ">
  2282. <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
  2283. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  2284. </div>
  2285. <div class="a_addBox">
  2286. <div style="font-size: 16px; color: #c7c7c7">投票内容</div>
  2287. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2288. <div class="a_add_head">
  2289. <div style="display: flex">
  2290. {{ index1 + 1 + "、" }}
  2291. <div>{{ askJson.askJson[index1].askstitle }}</div>
  2292. </div>
  2293. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  2294. style="height: 300px; margin-top: 10px; max-width: 100%" />
  2295. </div>
  2296. <div class="a_add_body">
  2297. <div class="a_add_input">
  2298. <el-radio-group v-model="radio[index1]">
  2299. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  2300. .checkList" :key="checkIndex" :label="checkIndex" disabled class="redioStyle"><span
  2301. v-html="item2"></span></el-radio>
  2302. </el-radio-group>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. <span slot="footer" class="dialog-footer">
  2309. <el-button @click="dialogVisibleVote3 = false">关 闭</el-button>
  2310. </span>
  2311. </el-dialog>
  2312. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource2" :append-to-body="true" width="100%"
  2313. :before-close="handleClose" class="dialog_diy source_diy">
  2314. <div>
  2315. <sourceDialog :sourceData.sync="sourceData"></sourceDialog>
  2316. </div>
  2317. <span slot="footer" class="dialog-footer">
  2318. <el-button @click="dialogVisibleSource2 = false">取 消</el-button>
  2319. <el-button type="primary" @click="addSource">确定</el-button>
  2320. </span>
  2321. </el-dialog>
  2322. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2323. class="dialog_diy" center>
  2324. <div style="
  2325. text-align: center;
  2326. display: flex;
  2327. align-items: center;
  2328. justify-content: center;
  2329. ">
  2330. <span class="tian1">名称</span>
  2331. <el-input style="width: 240px;margin-left: 10px;" v-model="updateWorkJson.name" placeholder="请输入名称"></el-input>
  2332. </div>
  2333. <span slot="footer" class="dialog-footer">
  2334. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2335. <el-button type="primary" @click="updateName">确 定</el-button>
  2336. </span>
  2337. </el-dialog>
  2338. <el-dialog title="选择项目模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  2339. :before-close="handleClose" class="dialog_diy">
  2340. <div class="template_box">
  2341. <div v-if="templateArray && !templateArray.length" style="text-align: center;width: 100%;">暂无项目模板</div>
  2342. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)"
  2343. :class="{ wordTeacherA: ctJson.id == aa.id }">
  2344. <div class="wordPic">
  2345. <img src="../../../assets/icon/new/course_template.png" alt />
  2346. </div>
  2347. <el-tooltip effect="dark" :content="aa.title" placement="top">
  2348. <div style="
  2349. margin-top: 10px;
  2350. line-height: 19px;
  2351. overflow: hidden;
  2352. text-overflow: ellipsis;
  2353. white-space: nowrap;
  2354. padding: 0 10px;
  2355. box-sizing: border-box;
  2356. width: 100%;
  2357. ">
  2358. {{ aa.title }}
  2359. </div>
  2360. </el-tooltip>
  2361. </div>
  2362. </div>
  2363. <span slot="footer" class="dialog-footer">
  2364. <el-button @click="templateDialog = false">取 消</el-button>
  2365. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  2366. </span>
  2367. </el-dialog>
  2368. </div>
  2369. </template>
  2370. <script>
  2371. import "../../../common/aws-sdk-2.235.1.min.js";
  2372. import $ from "jquery";
  2373. import EditorBar from "../../../components/tools/wangEnduit";
  2374. import EditorBar2 from "../../../components/tools/wangEnduit";
  2375. import Table from "../../../components/tools/table";
  2376. import voteStatic from "../components/voteStatic.vue";
  2377. import TextT from "../../../components/tools/text";
  2378. import Mind from "../../tools/jsmind2";
  2379. import Sunburst from "../../tools/sunburst";
  2380. import SeeBoard from "../../tools/seeBoard";
  2381. import proMan from "../components/proMan.vue";
  2382. import ganChart from "../components/ganChart.vue";
  2383. import graph from "../components/graph.vue";
  2384. import pdf from "../components/vpdf";
  2385. import * as imageConversion from "image-conversion";
  2386. import courseDetailVue from "../courseDetail.vue";
  2387. import sourceDialog from "../teacherSource/dialog.vue";
  2388. import { tools as toolsData } from "../../../common/tools.js";
  2389. var OpenCC = require("opencc-js");
  2390. let converter = OpenCC.Converter({
  2391. from:'hk',
  2392. to:'cn'
  2393. })
  2394. export default {
  2395. components: {
  2396. EditorBar,
  2397. EditorBar2,
  2398. sourceDialog,
  2399. Mind,
  2400. Sunburst,
  2401. SeeBoard,
  2402. Table,
  2403. proMan,
  2404. ganChart,
  2405. graph,
  2406. pdf,
  2407. TextT,
  2408. voteStatic,
  2409. },
  2410. data() {
  2411. return {
  2412. checkAll: false,
  2413. chooseType: 1,
  2414. checkedCities: [],
  2415. isIndeterminate: true,
  2416. isSysPic: false,
  2417. steps: 1,
  2418. nbOrder: 0,
  2419. courseId: "",
  2420. chapToolsType: 0,
  2421. chapTools: [
  2422. {
  2423. tools: [],
  2424. toolDetail: "",
  2425. },
  2426. ],
  2427. line: "",
  2428. lineTitle: "",
  2429. sysPic: [],
  2430. sentenceList: [
  2431. {
  2432. sentenceTitle: "",
  2433. addSentence: [],
  2434. rightAnswer: [],
  2435. },
  2436. ],
  2437. isPushTitleList: [],
  2438. lineCount: 0,
  2439. lineType: 0,
  2440. chapCount: 0,
  2441. courseName: "",
  2442. isTeacherSee: false,
  2443. courseText: "",
  2444. formLabelWidth: "100px",
  2445. choosePicVisible: false,
  2446. sysPicVisible: false,
  2447. uploadLoading1: false,
  2448. noneBtnImg: false,
  2449. updateBoolean2: false,
  2450. unitIndex: 0,
  2451. taskCount: 0,
  2452. dialogVisible: false,
  2453. dialogVisible1: false,
  2454. dialogVisible2: false,
  2455. dialogVisible3: false,
  2456. dialogVisible4: false,
  2457. dialogVisible5: false,
  2458. dialogVisible6: false,
  2459. dialogVisible7: false,
  2460. dialogVisible8: false,
  2461. dialogVisible9: false,
  2462. dialogVisibleClass: false,
  2463. dialogVisibleMember: false,
  2464. dialogVisibleTcMember: false,
  2465. dialogVisibleMp3: false,
  2466. dialogVisibleSelect: false,
  2467. dialogVisibleSentence: false,
  2468. dialogVisibleRate: false,
  2469. dialogVisibleChoice: false,
  2470. dialogVisibleTool: false,
  2471. dialogVisibleSource: false,
  2472. dialogVisibleSource2: false,
  2473. answerDialogVisible: false,
  2474. dialogVisibleFile: false,
  2475. dialogVisibleText: false,
  2476. dialogVisibleText2: false,
  2477. dialogVisibleText3: false,
  2478. dialogVisibleVote: false,
  2479. dialogVisibleVote2: false,
  2480. dialogVisibleVote3: false,
  2481. dialogVisibleSname: false,
  2482. videoVisible: false,
  2483. videoDetail: {},
  2484. showPDF: "",
  2485. pptImgUrl: "",
  2486. full: false,
  2487. templateDialog: false,
  2488. ctJson: {},
  2489. isClickColor: 1,
  2490. toolIndexType: "",
  2491. publicTool: 0,
  2492. searchPeople: "",
  2493. searchTN: "",
  2494. tcMember: "",
  2495. userid: this.$route.query.userid,
  2496. oid: this.$route.query.oid,
  2497. org: this.$route.query.org,
  2498. role: this.$route.query.role,
  2499. type: this.$route.query.type,
  2500. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2501. orgArray: ["150e3120-9195-11ed-b13d-005056b86db5"],
  2502. oidArray: [],
  2503. dialogVisibleTable: false,
  2504. dialogVisibleTable1: false,
  2505. dialogVisibleTable2: false,
  2506. tableJson: {
  2507. text: "",
  2508. },
  2509. cover: [], //项目封面
  2510. myWord: [],
  2511. evaJuri: [],
  2512. evalua: "",
  2513. targetArray: [],
  2514. eTitle: "",
  2515. eJson: {},
  2516. fid: "", //一级
  2517. sid: "", //二级
  2518. tid: "", //二级
  2519. typeMode: 1,
  2520. eJSONNum: 0,
  2521. data: {
  2522. meta: {
  2523. name: "example",
  2524. author: "dd@163.com",
  2525. version: "0.2",
  2526. },
  2527. format: "node_array",
  2528. data: [
  2529. {
  2530. id: "root",
  2531. isroot: true,
  2532. topic: "",
  2533. },
  2534. ],
  2535. },
  2536. askJson: {
  2537. askCount: 1,
  2538. askTitle: "",
  2539. askJson: [
  2540. {
  2541. askstitle: "",
  2542. askItem: 1,
  2543. checkList: [],
  2544. },
  2545. ],
  2546. },
  2547. testJson: {},
  2548. selectJson: {},
  2549. rateJson: [],
  2550. unitJson2: [],
  2551. unitJson: [
  2552. {
  2553. dyName: "", //单元标题
  2554. chapterInfo: [
  2555. {
  2556. isread: false,
  2557. chapterid: this.guid(),
  2558. title: "",
  2559. courseName: "",
  2560. taskJson: [
  2561. {
  2562. task: "",
  2563. people: "",
  2564. time: "",
  2565. taskDetail: "",
  2566. chapterData: [],
  2567. toolText: "",
  2568. toolChoose: [
  2569. {
  2570. tool: [],
  2571. toolDetail: "",
  2572. toolType: 0,
  2573. askCount: 1,
  2574. askTitle: "",
  2575. askJson: [
  2576. {
  2577. askstitle: "",
  2578. askItem: 1,
  2579. checkList: [],
  2580. },
  2581. ],
  2582. },
  2583. ],
  2584. toolArray: [],
  2585. isShowTools: false,
  2586. askCount: 1,
  2587. isFold: 0,
  2588. askTitle: "",
  2589. askJson: [
  2590. {
  2591. askstitle: "",
  2592. askItem: 1,
  2593. checkList: [],
  2594. },
  2595. ],
  2596. checkJson: [
  2597. {
  2598. checkCount: [],
  2599. checkPerent: [],
  2600. },
  2601. ],
  2602. homeworkList: [],
  2603. },
  2604. ],
  2605. itemCount: 1,
  2606. fileList1: [],
  2607. video: [],
  2608. testData: [],
  2609. pData: [],
  2610. templateArray: [],
  2611. },
  2612. ],
  2613. },
  2614. ],
  2615. studentJuri: [],
  2616. teacherJuri: [],
  2617. teacherJuri2: [],
  2618. checkboxList: [],
  2619. checkboxList2: [],
  2620. checkboxList3: [],
  2621. checkboxListPeople: [],
  2622. number: "",
  2623. tTitle: "",
  2624. tdetail: "",
  2625. templateC: {},
  2626. AttText: {},
  2627. AttTextType: 0,
  2628. AttTextIndex: 0,
  2629. cTemplate: "",
  2630. CourseType: [],
  2631. CourseTypeJson: {},
  2632. courseTypeId: [],
  2633. courseTypeSon: [],
  2634. clearArray: [],
  2635. loading: false,
  2636. toolType: 0,
  2637. inputShow: true,
  2638. toolIndex: 0,
  2639. cidType: 0,
  2640. cidttt: 1,
  2641. answerQ: "",
  2642. questionAnswer: "",
  2643. grade: [],
  2644. courseUserid: "",
  2645. timer: null,
  2646. checkId: "",
  2647. isDelete: 1,
  2648. addindex: 0,
  2649. selectSteps: 1,
  2650. groupJson: {},
  2651. dialogVisibleGroup: false,
  2652. fpath: "",
  2653. ManAarray: [],
  2654. ManAarray2: [],
  2655. proVisible: false,
  2656. progress: 0,
  2657. isFinishSize: 0,
  2658. isAllsize: 0,
  2659. playerOptions: {
  2660. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2661. autoplay: false, //如果true,浏览器准备好时开始回放。
  2662. muted: false, // 默认情况下将会消除任何音频。
  2663. loop: false, // 导致视频一结束就重新开始。
  2664. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2665. language: "zh-CN",
  2666. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2667. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2668. sources: [
  2669. {
  2670. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2671. src: "", //url地址require("../../assets/media/aaa.mp4")
  2672. },
  2673. ],
  2674. // poster: require("../../assets/tu31.png"), //你的封面地址
  2675. // poster: dataRes.imgUrl, //你的封面地址
  2676. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2677. controlBar: {
  2678. timeDivider: true, //当前时间和持续时间的分隔符
  2679. durationDisplay: true, //显示持续时间
  2680. remainingTimeDisplay: false, //是否显示剩余时间功能
  2681. fullscreenToggle: true, //全屏按钮
  2682. },
  2683. },
  2684. sourcesData: [],
  2685. fullDialogVisible: false,
  2686. fulltype: "",
  2687. fullUrl: "",
  2688. editSourceType: 1,
  2689. radio: [],
  2690. checkJson: [],
  2691. graphJson: {},
  2692. rightBoxHeight: 0,
  2693. checkBoolean: false,
  2694. pageSize: 20,
  2695. total: 0,
  2696. page: 0,
  2697. sourceData: {},
  2698. updateWorkJson: {},
  2699. downLoading: '',
  2700. oldIndex: 0,
  2701. dragType: '',
  2702. oldUnitIndex: 0,
  2703. oldData: null,
  2704. newIndex: "",
  2705. checkUnitIndex: 0,
  2706. isdrag: '',
  2707. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  2708. };
  2709. },
  2710. directives: {
  2711. autoHeight: {
  2712. update(el, binding) {
  2713. const { value } = binding
  2714. if (value && typeof value === 'number') {
  2715. el.style.height = `${value}px`
  2716. } else {
  2717. el.style.height = 'auto'
  2718. }
  2719. },
  2720. componentUpdated(el) {
  2721. el.style.height = `${el.scrollHeight + 5}px`
  2722. },
  2723. },
  2724. },
  2725. computed: {
  2726. offsetLetfPx: function () {
  2727. //addnum可以直接在模板语法里面用,相当于data内的值
  2728. return (
  2729. $(".cru_select")[this.unitIndex] &&
  2730. $(".cru_select")[this.unitIndex].offsetLeft + 5
  2731. );
  2732. },
  2733. getVideo() {
  2734. //此处不需要携带参数
  2735. return function (url) {
  2736. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2737. d.sources[0].src = url;
  2738. return d;
  2739. };
  2740. },
  2741. cUrl() {
  2742. return function (data, index) {
  2743. return data ? data[index].url : '';
  2744. };
  2745. },
  2746. getMan() {
  2747. return function (people) {
  2748. let _people = "";
  2749. if (this.ManAarray.length) {
  2750. for (var i = 0; i < this.ManAarray.length; i++) {
  2751. if (this.ManAarray[i].userid == people) {
  2752. _people = this.ManAarray[i].name;
  2753. break;
  2754. }
  2755. }
  2756. }
  2757. return _people ? _people : "";
  2758. };
  2759. },
  2760. getMan2() {
  2761. return function (people) {
  2762. let _people = people;
  2763. let _people2 = "";
  2764. if (this.ManAarray.length) {
  2765. for (var i = 0; i < this.ManAarray.length; i++) {
  2766. if (this.ManAarray[i].userid == people) {
  2767. _people2 = this.ManAarray[i].name;
  2768. break;
  2769. }
  2770. }
  2771. }
  2772. if (people == this.courseUserid) {
  2773. return "";
  2774. }
  2775. return this.ManAarray.length ? _people2 : "";
  2776. };
  2777. },
  2778. getListMan2() {
  2779. return function (list) {
  2780. let _people2 = [];
  2781. if (this.ManAarray.length) {
  2782. for (var j = 0; j < list.length; j++) {
  2783. let people = list[j];
  2784. for (var i = 0; i < this.ManAarray.length; i++) {
  2785. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  2786. _people2.push(this.ManAarray[i].name);
  2787. break;
  2788. }
  2789. }
  2790. }
  2791. }
  2792. return this.ManAarray.length ? _people2.join("、") : "";
  2793. };
  2794. },
  2795. getMen() {
  2796. return function (people) {
  2797. let _people = people;
  2798. let kp = [];
  2799. if (this.ManAarray.length) {
  2800. for (var k = 0; k < _people.length; k++) {
  2801. let person = _people[k];
  2802. for (var i = 0; i < this.ManAarray.length; i++) {
  2803. if (this.ManAarray[i].userid == person) {
  2804. // _people = this.ManAarray[i].name;
  2805. kp.push(this.ManAarray[i].name);
  2806. break;
  2807. }
  2808. }
  2809. }
  2810. }
  2811. return this.ManAarray.length ? (kp.length ? kp.join("、") : "") : "";
  2812. };
  2813. },
  2814. setTime() {
  2815. return function (timeA) {
  2816. var time = new Date(timeA);
  2817. time.setTime(time.getTime());
  2818. var s2 =
  2819. time.getFullYear() +
  2820. "." +
  2821. (time.getMonth() + 1 < 10
  2822. ? "0" + (time.getMonth() + 1)
  2823. : time.getMonth() + 1) +
  2824. "." +
  2825. (time.getDate() < 10 ? "0" + time.getDate() : time.getDate());
  2826. return s2;
  2827. };
  2828. }
  2829. },
  2830. watch: {
  2831. steps(newValue, oldValue) {
  2832. if (newValue == 4) {
  2833. let chapters = this.unitJson;
  2834. let gjson = {
  2835. rootId: "pid",
  2836. nodes: [{ id: "pid", text: "", borderWidth: -1, color: "#128cff" }],
  2837. lines: [],
  2838. };
  2839. gjson.nodes[0].text = this.courseName;
  2840. for (var i = 0; i < chapters.length; i++) {
  2841. let _chapter = chapters[i];
  2842. gjson.nodes.push({
  2843. id: "chap" + i,
  2844. text: "阶段" + (i + 1) + "-" + _chapter.dyName,
  2845. borderWidth: -1,
  2846. color: "#0672e1",
  2847. });
  2848. gjson.lines.push({ from: "pid", to: "chap" + i });
  2849. let tasks = _chapter.chapterInfo[0].taskJson;
  2850. for (var j = 0; j < tasks.length; j++) {
  2851. let _task = tasks[j];
  2852. gjson.nodes.push({
  2853. id: "task" + i + "-" + j,
  2854. text: "任务" + (j + 1) + "-" + _task.task,
  2855. borderWidth: -1,
  2856. color: "#3c59da",
  2857. });
  2858. gjson.lines.push({ from: "chap" + i, to: "task" + i + "-" + j });
  2859. if (_task.people) {
  2860. let _people = "负责人-" + this.getGMan(_task.people);
  2861. gjson.nodes.push({
  2862. id: "people" + i + "-" + j,
  2863. text: _people,
  2864. borderWidth: -1,
  2865. color: "#004d9b",
  2866. });
  2867. gjson.lines.push({
  2868. from: "task" + i + "-" + j,
  2869. to: "people" + i + "-" + j,
  2870. });
  2871. if (_task.tcMember && _task.tcMember.length) {
  2872. for (var tc = 0; tc < _task.tcMember.length; tc++) {
  2873. let _tc = this.getGMan(_task.tcMember[tc]);
  2874. if (_tc) {
  2875. gjson.nodes.push({
  2876. id: "tc" + i + "-" + j + "-" + tc,
  2877. text: _tc,
  2878. borderWidth: -1,
  2879. color: "#53c5fb",
  2880. });
  2881. gjson.lines.push({
  2882. from: "people" + i + "-" + j,
  2883. to: "tc" + i + "-" + j + "-" + tc,
  2884. });
  2885. }
  2886. }
  2887. }
  2888. }
  2889. }
  2890. }
  2891. this.graphJson = gjson;
  2892. } else if (newValue == 5) {
  2893. this.goTo(
  2894. this.fpath +
  2895. "?userid=" +
  2896. this.userid +
  2897. "&oid=" +
  2898. this.oid +
  2899. "&org=" +
  2900. this.org + '&role=' + this.role
  2901. );
  2902. }
  2903. },
  2904. unitIndex(newValue, oldValue) {
  2905. if (this.isDelete == 2) {
  2906. this.isDelete = 1;
  2907. return;
  2908. }
  2909. if (this.cid != "") {
  2910. let _unitIndex = oldValue;
  2911. if (
  2912. JSON.stringify(this.unitJson2[_unitIndex]) ==
  2913. JSON.stringify(this.unitJson[_unitIndex])
  2914. ) {
  2915. this.$refs.rightboxR.scrollTop = 0;
  2916. return;
  2917. }
  2918. let cPan = 1;
  2919. for (
  2920. var j = 0;
  2921. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  2922. j++
  2923. ) {
  2924. // if (
  2925. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].task
  2926. // ) {
  2927. // this.$message.error("请填写任务名称");
  2928. // cPan = 2
  2929. // break;
  2930. // }
  2931. // if (
  2932. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].people
  2933. // ) {
  2934. // this.$message.error("请填写负责人");
  2935. // cPan = 2
  2936. // break;
  2937. // }
  2938. // if (
  2939. // !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].time
  2940. // ) {
  2941. // this.$message.error("请填写任务起止时间");
  2942. // cPan = 2
  2943. // break;
  2944. // }
  2945. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  2946. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  2947. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  2948. (ele) => {
  2949. return ele.value != "";
  2950. }
  2951. );
  2952. }
  2953. let _task = this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolArray
  2954. for (var _tool = 0; _tool < _task.length; _tool++) {
  2955. delete _task[_tool].proVisible
  2956. }
  2957. }
  2958. if (cPan == 2) {
  2959. this.unitIndex = oldValue;
  2960. this.isDelete = 2;
  2961. return;
  2962. }
  2963. for (var i = 0; i < this.unitJson.length; i++) {
  2964. if (this.addindex != i) {
  2965. delete this.unitJson[i].isUpdate;
  2966. }
  2967. }
  2968. this.$refs.rightboxR.scrollTop = 0;
  2969. this.addindex = -1;
  2970. let params = [
  2971. {
  2972. cid: this.cid,
  2973. chapters: JSON.stringify(this.unitJson),
  2974. uid: this.userid,
  2975. unitIndex: _unitIndex,
  2976. },
  2977. ];
  2978. this.ajax
  2979. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  2980. .then((res) => {
  2981. // this.$message({
  2982. // message: "修改成功",
  2983. // type: "success",
  2984. // });
  2985. // this.courseId = this.cid;
  2986. })
  2987. .catch((err) => {
  2988. this.$message.error("网络不佳");
  2989. console.error(err);
  2990. });
  2991. }
  2992. },
  2993. },
  2994. methods: {
  2995. handleCurrentChange(val) {
  2996. // console.log(`当前页: ${val}`);
  2997. this.page = val;
  2998. this.getTeacher();
  2999. },
  3000. handleCheckAllChange(val) {
  3001. this.checkedCities = val ? cityOptions : [];
  3002. this.isIndeterminate = false;
  3003. },
  3004. handleCheckedCitiesChange(value) {
  3005. let checkedCount = value.length;
  3006. this.checkAll = checkedCount === this.cities.length;
  3007. this.isIndeterminate =
  3008. checkedCount > 0 && checkedCount < this.cities.length;
  3009. },
  3010. addHw(e) {
  3011. var el = e.currentTarget;
  3012. el.getElementsByTagName("input")[0].click();
  3013. },
  3014. change(val) {
  3015. console.log(val);
  3016. this.$forceUpdate();
  3017. },
  3018. change2(val) {
  3019. console.log(val);
  3020. this.$forceUpdate();
  3021. },
  3022. handleClose(done) {
  3023. this.videoDetail = {};
  3024. done();
  3025. },
  3026. imgChange1(file, fileList, type, itemTaskIndex) {
  3027. if (type == 1) {
  3028. var _tmp = this.cover;
  3029. } else if (
  3030. type == 2 ||
  3031. type == 3 ||
  3032. type == 6 ||
  3033. type == 7 ||
  3034. type == 8
  3035. ) {
  3036. var _tmp =
  3037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3038. .chapterData;
  3039. } else if (type == 4) {
  3040. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3041. } else {
  3042. var _tmp =
  3043. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3044. .homeworkList;
  3045. }
  3046. this.noneBtnImg = _tmp.length >= 1;
  3047. },
  3048. goTo(path) {
  3049. this.$router.push(path);
  3050. },
  3051. lastSteps() {
  3052. if (this.steps == 5) {
  3053. this.goTo(
  3054. this.fpath +
  3055. "?userid=" +
  3056. this.userid +
  3057. "&oid=" +
  3058. this.oid +
  3059. "&org=" +
  3060. this.org + '&role=' + this.role
  3061. );
  3062. } else {
  3063. // if (this.cidttt == 0) {
  3064. // this.steps--;
  3065. // if (this.steps == 1) {
  3066. // setTimeout(() => {
  3067. // this.checkEva(this.checkId);
  3068. // }, 0);
  3069. // }
  3070. // } else {
  3071. if (this.steps == 3) {
  3072. this.steps = 1;
  3073. setTimeout(() => {
  3074. this.checkEva(this.checkId);
  3075. }, 0);
  3076. }
  3077. if (this.steps == 4) {
  3078. this.steps--;
  3079. setTimeout(() => {
  3080. this.checkEva(this.checkId);
  3081. }, 0);
  3082. }
  3083. // }
  3084. }
  3085. },
  3086. navSteps(s) {
  3087. let typeT = 1;
  3088. if (this.courseTypeId.length) {
  3089. let array = Object.keys(this.CourseTypeJson);
  3090. for (var t = 0; t < array.length; t++) {
  3091. var tp = array[t];
  3092. var tAarray = [];
  3093. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3094. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3095. }
  3096. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3097. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3098. typeT++;
  3099. }
  3100. }
  3101. }
  3102. }
  3103. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3104. typeT++;
  3105. }
  3106. // if (this.CourseType.length == 0) {
  3107. // typeT = 3
  3108. // }
  3109. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  3110. typeT = 3
  3111. }
  3112. if (this.courseName == "" || typeT != 3) {
  3113. if (typeT != 3) {
  3114. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  3115. } else {
  3116. this.$message.error("请将信息填写完整");
  3117. }
  3118. return;
  3119. }
  3120. if (this.cidttt == 0) {
  3121. if (this.steps == 1) {
  3122. if (this.cid == "" || this.cid == undefined) {
  3123. this.addWork();
  3124. } else {
  3125. if (this.userid != this.courseUserid) {
  3126. if (
  3127. this.checkboxListPeople.join(",") !=
  3128. this.checkboxList3.join(",")
  3129. ) {
  3130. this.updateWork();
  3131. } else {
  3132. this.updateWork2();
  3133. }
  3134. } else {
  3135. this.updateWork();
  3136. }
  3137. }
  3138. this.setMan();
  3139. }
  3140. if (s == 1) {
  3141. this.steps = 1;
  3142. setTimeout(() => {
  3143. this.checkEva(this.checkId);
  3144. }, 0);
  3145. }
  3146. if (s == 2) {
  3147. this.steps = 2;
  3148. }
  3149. if (s == 3) {
  3150. this.cTemplate = this.templateC.content;
  3151. this.dialogVisible2 = false;
  3152. this.steps = 3;
  3153. setTimeout(() => {
  3154. this.checkEva(this.checkId);
  3155. }, 1000);
  3156. }
  3157. if (s == 4 && this.cidType == 0) {
  3158. this.$message.error("请将信息填写完整");
  3159. return;
  3160. } else if (s == 4) {
  3161. let cPan = 1;
  3162. for (var i = 0; i < this.unitJson.length; i++) {
  3163. for (
  3164. var j = 0;
  3165. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3166. j++
  3167. ) {
  3168. // if (
  3169. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3170. // ) {
  3171. // this.$message.error("请填写任务名称");
  3172. // cPan = 2
  3173. // break;
  3174. // }
  3175. // if (
  3176. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3177. // ) {
  3178. // this.$message.error("请填写负责人");
  3179. // cPan = 2
  3180. // break;
  3181. // }
  3182. // if (
  3183. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3184. // ) {
  3185. // this.$message.error("请填写任务起止时间");
  3186. // cPan = 2
  3187. // break;
  3188. // }
  3189. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3190. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3191. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3192. (ele) => {
  3193. return ele.value != "";
  3194. }
  3195. );
  3196. }
  3197. }
  3198. }
  3199. if (cPan == 2) {
  3200. return;
  3201. }
  3202. if (this.userid != this.courseUserid) {
  3203. if (
  3204. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3205. ) {
  3206. this.updateWork();
  3207. } else {
  3208. this.updateWork2();
  3209. }
  3210. } else {
  3211. this.updateWork();
  3212. }
  3213. this.steps = 4;
  3214. }
  3215. } else {
  3216. if (this.steps == 1) {
  3217. if (this.cid == "" || this.cid == undefined) {
  3218. this.addWork();
  3219. } else {
  3220. if (this.userid != this.courseUserid) {
  3221. if (
  3222. this.checkboxListPeople.join(",") !=
  3223. this.checkboxList3.join(",")
  3224. ) {
  3225. this.updateWork();
  3226. } else {
  3227. this.updateWork2();
  3228. }
  3229. } else {
  3230. this.updateWork();
  3231. }
  3232. }
  3233. this.setMan();
  3234. }
  3235. if (s == 1) {
  3236. this.steps = 1;
  3237. setTimeout(() => {
  3238. this.checkEva(this.checkId);
  3239. }, 0);
  3240. }
  3241. if (s == 3) {
  3242. this.cTemplate = this.templateC.content;
  3243. this.dialogVisible2 = false;
  3244. this.steps = 3;
  3245. setTimeout(() => {
  3246. this.checkEva(this.checkId);
  3247. }, 1000);
  3248. }
  3249. if (s == 4 && this.cidType == 0) {
  3250. this.$message.error("请将信息填写完整");
  3251. return;
  3252. } else if (s == 4) {
  3253. let cPan = 1;
  3254. for (var i = 0; i < this.unitJson.length; i++) {
  3255. for (
  3256. var j = 0;
  3257. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  3258. j++
  3259. ) {
  3260. // if (
  3261. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  3262. // ) {
  3263. // this.$message.error("请填写任务名称");
  3264. // cPan = 2
  3265. // break;
  3266. // }
  3267. // if (
  3268. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  3269. // ) {
  3270. // this.$message.error("请填写负责人");
  3271. // cPan = 2
  3272. // break;
  3273. // }
  3274. // if (
  3275. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  3276. // ) {
  3277. // this.$message.error("请填写任务起止时间");
  3278. // cPan = 2
  3279. // break;
  3280. // }
  3281. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  3282. this.unitJson[i].chapterInfo[0].taskJson[j].eList =
  3283. this.unitJson[i].chapterInfo[0].taskJson[j].eList.filter(
  3284. (ele) => {
  3285. return ele.value != "";
  3286. }
  3287. );
  3288. }
  3289. }
  3290. }
  3291. if (cPan == 2) {
  3292. return;
  3293. }
  3294. if (this.userid != this.courseUserid) {
  3295. if (
  3296. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3297. ) {
  3298. this.updateWork();
  3299. } else {
  3300. this.updateWork2();
  3301. }
  3302. } else {
  3303. this.updateWork();
  3304. }
  3305. this.steps = 4;
  3306. }
  3307. }
  3308. this.$refs.stepBox.scrollTop = 0;
  3309. this.setVHeight();
  3310. },
  3311. nextSteps() {
  3312. let typeT = 1;
  3313. if (this.courseTypeId.length) {
  3314. let array = Object.keys(this.CourseTypeJson);
  3315. for (var t = 0; t < array.length; t++) {
  3316. var tp = array[t];
  3317. var tAarray = [];
  3318. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  3319. tAarray.push(this.CourseTypeJson[tp][tt].id);
  3320. }
  3321. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  3322. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  3323. typeT++;
  3324. }
  3325. }
  3326. }
  3327. }
  3328. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  3329. typeT++;
  3330. }
  3331. // if (this.CourseType.length == 0) {
  3332. // typeT = 3
  3333. // }
  3334. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  3335. typeT = 3
  3336. }
  3337. if (this.cidttt == 1) {
  3338. if (this.steps == 1) {
  3339. this.steps = 3;
  3340. if (this.courseName != "" && typeT == 3) {
  3341. setTimeout(() => {
  3342. this.checkEva(this.checkId);
  3343. }, 1000);
  3344. if (this.cid == "" || this.cid == undefined) {
  3345. this.addWork();
  3346. } else {
  3347. if (this.userid != this.courseUserid) {
  3348. if (
  3349. this.checkboxListPeople.join(",") !=
  3350. this.checkboxList3.join(",")
  3351. ) {
  3352. this.updateWork();
  3353. } else {
  3354. this.updateWork2();
  3355. }
  3356. } else {
  3357. this.updateWork();
  3358. }
  3359. }
  3360. } else {
  3361. if (typeT != 3) {
  3362. this.$message.error(
  3363. "分类为必选项目,请将信息补充完整后进行下一步"
  3364. );
  3365. } else {
  3366. this.$message.error("请将信息填写完整");
  3367. }
  3368. return;
  3369. }
  3370. this.setMan();
  3371. } else if (this.steps == 3) {
  3372. if (this.cid == "" || this.cid == undefined) {
  3373. if (this.courseName == "" || typeT != 3) {
  3374. if (typeT != 3) {
  3375. this.$message.error(
  3376. "分类为必选项目,请将信息补充完整后进行下一步"
  3377. );
  3378. } else {
  3379. this.$message.error("请将信息填写完整");
  3380. }
  3381. return;
  3382. } else {
  3383. this.addWork();
  3384. if (this.type != 2) {
  3385. this.steps = 5;
  3386. } else {
  3387. this.steps++;
  3388. }
  3389. }
  3390. } else {
  3391. if (this.courseName == "" || typeT != 3) {
  3392. if (typeT != 3) {
  3393. this.$message.error(
  3394. "分类为必选项目,请将信息补充完整后进行下一步"
  3395. );
  3396. } else {
  3397. this.$message.error("请将信息填写完整");
  3398. }
  3399. return;
  3400. } else {
  3401. if (this.type != 2) {
  3402. this.steps = 5;
  3403. } else {
  3404. this.steps++;
  3405. }
  3406. if (this.userid != this.courseUserid) {
  3407. if (
  3408. this.checkboxListPeople.join(",") !=
  3409. this.checkboxList3.join(",")
  3410. ) {
  3411. this.updateWork();
  3412. } else {
  3413. this.updateWork2();
  3414. }
  3415. } else {
  3416. this.updateWork();
  3417. }
  3418. }
  3419. }
  3420. } else if (this.steps == 4) {
  3421. if (this.userid != this.courseUserid) {
  3422. this.updateWork2();
  3423. // this.updateWork();
  3424. } else {
  3425. this.updateWork();
  3426. }
  3427. this.steps++;
  3428. }
  3429. } else {
  3430. if (this.steps == 1) {
  3431. if (this.courseName != "" && typeT == 3) {
  3432. if (this.cid == "" || this.cid == undefined) {
  3433. this.addWork();
  3434. } else {
  3435. if (this.userid != this.courseUserid) {
  3436. if (
  3437. this.checkboxListPeople.join(",") !=
  3438. this.checkboxList3.join(",")
  3439. ) {
  3440. this.updateWork();
  3441. } else {
  3442. this.updateWork2();
  3443. }
  3444. } else {
  3445. this.updateWork();
  3446. }
  3447. }
  3448. // this.steps++;
  3449. this.steps = 3;
  3450. } else {
  3451. if (typeT != 3) {
  3452. this.$message.error(
  3453. "分类为必选项目,请将信息补充完整后进行下一步"
  3454. );
  3455. } else {
  3456. this.$message.error("请将信息填写完整");
  3457. }
  3458. return;
  3459. }
  3460. this.setMan();
  3461. } else if (this.steps == 2) {
  3462. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3463. this.cTemplate = this.templateC.content;
  3464. }
  3465. this.dialogVisible2 = false;
  3466. this.steps++;
  3467. setTimeout(() => {
  3468. this.checkEva(this.checkId);
  3469. }, 1000);
  3470. } else if (this.steps == 3) {
  3471. if (this.cid == "" || this.cid == undefined) {
  3472. if (this.courseName == "" || typeT != 3) {
  3473. if (typeT != 3) {
  3474. this.$message.error(
  3475. "分类为必选项目,请将信息补充完整后进行下一步"
  3476. );
  3477. } else {
  3478. this.$message.error("请将信息填写完整");
  3479. }
  3480. return;
  3481. } else {
  3482. this.addWork();
  3483. if (this.type != 2) {
  3484. this.steps = 5;
  3485. } else {
  3486. this.steps++;
  3487. }
  3488. }
  3489. } else {
  3490. if (this.courseName == "" || typeT != 3) {
  3491. if (typeT != 3) {
  3492. this.$message.error(
  3493. "分类为必选项目,请将信息补充完整后进行下一步"
  3494. );
  3495. } else {
  3496. this.$message.error("请将信息填写完整");
  3497. }
  3498. return;
  3499. } else {
  3500. if (this.type != 2) {
  3501. this.steps = 5;
  3502. } else {
  3503. this.steps++;
  3504. }
  3505. if (this.userid != this.courseUserid) {
  3506. if (
  3507. this.checkboxListPeople.join(",") !=
  3508. this.checkboxList3.join(",")
  3509. ) {
  3510. this.updateWork();
  3511. } else {
  3512. this.updateWork2();
  3513. }
  3514. } else {
  3515. this.updateWork();
  3516. }
  3517. }
  3518. }
  3519. } else if (this.steps == 4) {
  3520. if (this.userid != this.courseUserid) {
  3521. if (
  3522. this.checkboxListPeople.join(",") != this.checkboxList3.join(",")
  3523. ) {
  3524. this.updateWork();
  3525. } else {
  3526. this.updateWork2();
  3527. }
  3528. } else {
  3529. this.updateWork();
  3530. }
  3531. this.steps++;
  3532. }
  3533. }
  3534. this.$refs.stepBox.scrollTop = 0;
  3535. this.setVHeight();
  3536. },
  3537. unitSet(i) {
  3538. this.unitIndex = i;
  3539. // this.$refs.rightboxR.scrollTop = 0;
  3540. this.setVHeight();
  3541. },
  3542. unitOpen(i) {
  3543. if (this.unitJson[i].toolOpen) {
  3544. this.unitJson[i].toolOpen = false
  3545. } else {
  3546. this.unitJson[i].toolOpen = true
  3547. }
  3548. this.updateWork()
  3549. this.$forceUpdate()
  3550. },
  3551. unitSet2(i) {
  3552. if (this.panUnitJson() == 2) {
  3553. return;
  3554. }
  3555. this.unitJson[i].toolOpen = true
  3556. this.$forceUpdate()
  3557. if (this.unitIndex == i) {
  3558. return;
  3559. }
  3560. this.unitIndex = i;
  3561. this.isClickColor = 1
  3562. this.$refs.unitBox.scrollTop = 0
  3563. },
  3564. panUnitJson() {
  3565. let _unitIndex = this.unitIndex;
  3566. let cPan = 1;
  3567. for (
  3568. var j = 0;
  3569. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3570. j++
  3571. ) {
  3572. if (
  3573. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose.length > 1
  3574. ) {
  3575. for (
  3576. var z = 0;
  3577. z < this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose.length;
  3578. z++
  3579. ) {
  3580. if (
  3581. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[z].tool
  3582. .length
  3583. ) {
  3584. this.$message.error("请把工具添加完整");
  3585. cPan = 2;
  3586. break;
  3587. }
  3588. }
  3589. }
  3590. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3591. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList = this.unitJson[
  3592. i
  3593. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  3594. return ele.value != "";
  3595. });
  3596. }
  3597. }
  3598. return cPan;
  3599. },
  3600. time() {
  3601. if (!this.now) {
  3602. this.now = new Date().getTime();
  3603. return true;
  3604. } else {
  3605. let time = new Date().getTime();
  3606. if (time - this.now > 3000) {
  3607. this.now = time;
  3608. return true;
  3609. } else {
  3610. return false;
  3611. }
  3612. }
  3613. },
  3614. deleteUnit(i) {
  3615. var _this = this;
  3616. if (_this.time()) {
  3617. _this
  3618. .$confirm("确定删除此单元吗?", "提示", {
  3619. confirmButtonText: "确定",
  3620. cancelButtonText: "取消",
  3621. type: "warning",
  3622. })
  3623. .then(() => {
  3624. _this.isDelete = 2;
  3625. // _this.unitIndex = _this.unitIndex - 1;
  3626. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3627. // _this.$message.success("删除成功");
  3628. })
  3629. .catch(() => {
  3630. return;
  3631. });
  3632. }
  3633. },
  3634. deleteWork(chapid) {
  3635. let params = [
  3636. {
  3637. cid: this.cid,
  3638. chapters: JSON.stringify(this.unitJson),
  3639. uid: this.userid,
  3640. chapid: chapid,
  3641. },
  3642. ];
  3643. this.ajax
  3644. .post(this.$store.state.api + "deleteStudentWork", params)
  3645. .then((res) => {
  3646. this.$message({
  3647. message: "删除成功",
  3648. type: "success",
  3649. });
  3650. this.unitJson.splice(this.unitIndex, 1);
  3651. this.deleteStudentToolS(this.unitIndex);
  3652. this.unitIndex = this.unitIndex - 1;
  3653. })
  3654. .catch((err) => {
  3655. this.$message.error("网络不佳");
  3656. console.error(err);
  3657. });
  3658. },
  3659. deleteTool(itemTaskIndex, i) {
  3660. // var _this = this;
  3661. // if (_this.time()) {
  3662. // _this
  3663. // .$confirm("确定删除此工具吗?", "提示", {
  3664. // confirmButtonText: "确定",
  3665. // cancelButtonText: "取消",
  3666. // type: "warning",
  3667. // })
  3668. // .then(() => {
  3669. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3670. // itemTaskIndex
  3671. // ].toolChoose.splice(i, 1);
  3672. // _this.$message.success("删除成功");
  3673. // })
  3674. // .catch(() => {
  3675. // return;
  3676. // });
  3677. // }
  3678. var _this = this;
  3679. _this
  3680. .$confirm("确定删除此步骤吗?", "提示", {
  3681. confirmButtonText: "确定",
  3682. cancelButtonText: "取消",
  3683. type: "warning",
  3684. })
  3685. .then(() => {
  3686. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3687. itemTaskIndex
  3688. ].toolArray.splice(i, 1);
  3689. this.deleteStudentToolSTT(itemTaskIndex, i);
  3690. _this.$message.success("删除成功");
  3691. })
  3692. .catch(() => {
  3693. return;
  3694. });
  3695. },
  3696. deleteStudentToolSTT(task, tool) {
  3697. let params = [
  3698. {
  3699. cid: this.cid,
  3700. stage: this.unitIndex,
  3701. task: task,
  3702. tool: tool,
  3703. },
  3704. ];
  3705. this.ajax
  3706. .post(this.$store.state.api + "deleteStudentToolSTT", params)
  3707. .then((res) => { })
  3708. .catch((err) => {
  3709. console.error(err);
  3710. });
  3711. },
  3712. deleteStudentToolST(task) {
  3713. let params = [
  3714. {
  3715. cid: this.cid,
  3716. stage: this.unitIndex,
  3717. task: task,
  3718. },
  3719. ];
  3720. this.ajax
  3721. .post(this.$store.state.api + "deleteStudentToolST", params)
  3722. .then((res) => { })
  3723. .catch((err) => {
  3724. console.error(err);
  3725. });
  3726. },
  3727. deleteStudentToolS() {
  3728. let params = [
  3729. {
  3730. cid: this.cid,
  3731. stage: this.unitIndex,
  3732. },
  3733. ];
  3734. this.ajax
  3735. .post(this.$store.state.api + "deleteStudentToolS", params)
  3736. .then((res) => { })
  3737. .catch((err) => {
  3738. console.error(err);
  3739. });
  3740. },
  3741. deleteSentence(i) {
  3742. var _this = this;
  3743. if (_this.time()) {
  3744. _this
  3745. .$confirm("确定删除此题目吗?", "提示", {
  3746. confirmButtonText: "确定",
  3747. cancelButtonText: "取消",
  3748. type: "warning",
  3749. })
  3750. .then(() => {
  3751. _this.sentenceList.splice(i, 1);
  3752. _this.$message.success("删除成功");
  3753. })
  3754. .catch(() => {
  3755. return;
  3756. });
  3757. }
  3758. },
  3759. deleteS(s, i, j) {
  3760. this.sentenceList[i].addSentence.splice(j, 1);
  3761. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3762. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3763. this.sentenceList[i].rightAnswer.splice(a, 1);
  3764. }
  3765. },
  3766. openT() {
  3767. window.parent.postMessage(
  3768. {
  3769. tools: "25",
  3770. },
  3771. "*"
  3772. );
  3773. },
  3774. deleteTask(i) {
  3775. var _this = this;
  3776. if (_this.time()) {
  3777. _this
  3778. .$confirm("确定删除此任务吗?", "提示", {
  3779. confirmButtonText: "确定",
  3780. cancelButtonText: "取消",
  3781. type: "warning",
  3782. })
  3783. .then(() => {
  3784. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3785. i,
  3786. 1
  3787. );
  3788. this.deleteStudentToolST(i);
  3789. _this.$message.success("删除成功");
  3790. })
  3791. .catch(() => {
  3792. return;
  3793. });
  3794. }
  3795. },
  3796. handlePictureCardPreview(file) {
  3797. this.dialogImageUrl = file.url;
  3798. },
  3799. openUpdateName(work) {
  3800. this.updateWorkJson = JSON.parse(JSON.stringify(work));
  3801. this.updateWorkJson.name = this.updateWorkJson.name ? this.updateWorkJson.name : this.setTime(this.updateWorkJson.create_at)
  3802. this.dialogVisibleSname = true;
  3803. },
  3804. updateName() {
  3805. if (!this.updateWorkJson.name) {
  3806. this.$message.error("请填写名称")
  3807. return
  3808. }
  3809. let params = [{
  3810. id: this.updateWorkJson.id,
  3811. name: this.updateWorkJson.name,
  3812. }]
  3813. this.ajax
  3814. .post(this.$store.state.api + "updateSCourseName", params)
  3815. .then((res) => {
  3816. this.$message({
  3817. message: "修改成功",
  3818. type: "success",
  3819. });
  3820. this.updateWorkJson = {};
  3821. this.dialogVisibleSname = false;
  3822. this.seleteCourseUpdate();
  3823. })
  3824. .catch((err) => {
  3825. console.error(err);
  3826. });
  3827. },
  3828. clean(i, c) {
  3829. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3830. },
  3831. handle_remove1(file, fileList, type) {
  3832. var _tmp = this.cover;
  3833. for (var i = 0, len = _tmp.length; i < len; i++) {
  3834. if (_tmp[i].uid == file.uid) {
  3835. _tmp.splice(i, 1);
  3836. break;
  3837. }
  3838. this.cover = _tmp;
  3839. }
  3840. this.noneBtnImg = _tmp.length >= 1;
  3841. this.isSysPic = false;
  3842. },
  3843. addImg(e) {
  3844. var el = e.currentTarget || e;
  3845. el.getElementsByTagName("input")[0].click();
  3846. e.target.value = "";
  3847. },
  3848. addChaptersTools(i) {
  3849. this.chapTools = [
  3850. {
  3851. tools: [],
  3852. toolDetail: "",
  3853. },
  3854. ];
  3855. this.chapCount = i;
  3856. this.dialogVisible4 = true;
  3857. },
  3858. isNoFinsh() {
  3859. this.$message.warning("功能正在开发中");
  3860. },
  3861. addAttText(i) {
  3862. this.AttText = {
  3863. title: "",
  3864. text: "",
  3865. };
  3866. // this.taskCount = i;
  3867. this.AttTextType = 0;
  3868. this.$forceUpdate();
  3869. this.dialogVisible6 = true;
  3870. },
  3871. openSource(i) {
  3872. this.lineCount = i;
  3873. this.sourceData = {};
  3874. this.dialogVisibleSource2 = true;
  3875. },
  3876. addSource() {
  3877. if (!Object.keys(this.sourceData).length) {
  3878. this.$message.error("请选择要上传的资源");
  3879. return;
  3880. }
  3881. let keys = Object.keys(this.sourceData);
  3882. for (var i = 0; i < keys.length; i++) {
  3883. this.sourcesData.push({
  3884. name: "链接",
  3885. title: this.sourceData[keys[i]].name,
  3886. src: this.sourceData[keys[i]].url,
  3887. type: 8,
  3888. });
  3889. }
  3890. this.$forceUpdate();
  3891. this.dialogVisibleSource2 = false;
  3892. },
  3893. downloadFile2(f, toolIndex) {
  3894. var credentials = {
  3895. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3896. secretAccessKey: "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",
  3897. }; //秘钥形式的登录上传
  3898. window.AWS.config.update(credentials);
  3899. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3900. let url2 = f.url;
  3901. let _url2 = "";
  3902. if (
  3903. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3904. ) {
  3905. _url2 = url2.split(
  3906. "https://view.officeapps.live.com/op/view.aspx?src="
  3907. )[1];
  3908. } else {
  3909. _url2 = url2;
  3910. }
  3911. let _this = this;
  3912. _this.downLoading = 'down' + toolIndex
  3913. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  3914. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  3915. var params = {
  3916. Bucket: "ccrb",
  3917. Key: name
  3918. };
  3919. s3.getObject(params, function (err, data) {
  3920. _this.downLoading = ''
  3921. if (err) console.log(err, err.stack); // an error occurred
  3922. else {
  3923. let url = window.URL.createObjectURL(new Blob([data.Body]));
  3924. let a = document.createElement("a");
  3925. a.name = f.name;
  3926. a.href = url;
  3927. a.download = f.name;
  3928. a.click();
  3929. console.log(data);
  3930. } // sxuccessful response
  3931. });
  3932. return;
  3933. // const loading = this.$loading.service({
  3934. // background: "rgba(255, 255, 255, 0.7)",
  3935. // target: document.body,
  3936. // text: "文件加载中...",
  3937. // });
  3938. // let url2 = f.url;
  3939. // let _url2 = "";
  3940. // if (
  3941. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  3942. // ) {
  3943. // _url2 = url2.split(
  3944. // "https://view.officeapps.live.com/op/view.aspx?src="
  3945. // )[1];
  3946. // } else {
  3947. // _url2 = url2;
  3948. // }
  3949. // let params = {
  3950. // url: _url2,
  3951. // name: f.name,
  3952. // };
  3953. // this.ajax
  3954. // .get(this.$store.state.api + "download", params)
  3955. // .then((res) => {
  3956. // loading.close();
  3957. // let content = res.data.data.data;
  3958. // let ab = new ArrayBuffer(content.length);
  3959. // let view = new Uint8Array(ab);
  3960. // for (var i = 0; i < content.length; ++i) {
  3961. // view[i] = content[i];
  3962. // }
  3963. // let elink = document.createElement("a");
  3964. // elink.download = f.name;
  3965. // elink.style.display = "none";
  3966. // let blob = new Blob([ab], {
  3967. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  3968. // });
  3969. // elink.href = URL.createObjectURL(blob);
  3970. // document.body.appendChild(elink);
  3971. // elink.click();
  3972. // document.body.removeChild(elink);
  3973. // })
  3974. // .catch((err) => {
  3975. // loading.close();
  3976. // console.error(err);
  3977. // });
  3978. },
  3979. pasteLine(i) {
  3980. navigator.clipboard
  3981. .readText()
  3982. .then((v) => {
  3983. console.log("获取剪贴板成功:", v);
  3984. const html = v;
  3985. const regex = /src="(.*?)"/g;
  3986. const match = regex.exec(html);
  3987. if (match && match[1]) {
  3988. console.log(match[1]);
  3989. this.$message.success("粘贴成功");
  3990. this.sourcesData.push({
  3991. name: "链接",
  3992. title: "嵌入代码",
  3993. src: match[1],
  3994. type: 8,
  3995. });
  3996. } else {
  3997. // console.log("未找到包含 src 属性的 iframe");
  3998. this.$message.error("没有找到粘贴的链接");
  3999. }
  4000. })
  4001. .catch((v) => {
  4002. console.log("获取剪贴板失败: ", v);
  4003. });
  4004. },
  4005. openLine(i) {
  4006. this.line = "";
  4007. this.lineTitle = "";
  4008. // this.lineCount = i;
  4009. this.lineType = 0;
  4010. this.$forceUpdate();
  4011. this.dialogVisible7 = true;
  4012. },
  4013. beforeUpload1(event, type) {
  4014. const loading = this.openLoading();
  4015. var file = event.target.files[0];
  4016. var credentials = {
  4017. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4018. secretAccessKey: "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",
  4019. }; //秘钥形式的登录上传
  4020. window.AWS.config.update(credentials);
  4021. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4022. var bucket = new window.AWS.S3({
  4023. params: {
  4024. Bucket: "ccrb",
  4025. },
  4026. }); //选择桶
  4027. var _this = this;
  4028. if (file) {
  4029. var params = {
  4030. Key:
  4031. file.name.split(".")[0] +
  4032. new Date().getTime() +
  4033. "." +
  4034. file.name.split(".")[file.name.split(".").length - 1],
  4035. ContentType: file.type,
  4036. Body: file,
  4037. "Access-Control-Allow-Credentials": "*",
  4038. ACL: "public-read",
  4039. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4040. var options = {
  4041. partSize: 2048 * 1024 * 1024,
  4042. queueSize: 2,
  4043. leavePartsOnError: true,
  4044. };
  4045. bucket
  4046. .upload(params, options)
  4047. .on("httpUploadProgress", function (evt) {
  4048. //这里可以写进度条
  4049. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4050. })
  4051. .send(function (err, data) {
  4052. loading.close();
  4053. if (err) {
  4054. _this.$message.error("上传失败");
  4055. } else {
  4056. _this.cover.push({
  4057. name: file.name,
  4058. url: data.Location,
  4059. uid: file.uid,
  4060. });
  4061. _this.imgChange1(null, null, 1, null);
  4062. _this.choosePicVisible = false;
  4063. console.log(data.Location);
  4064. }
  4065. });
  4066. }
  4067. },
  4068. beforeUploadSelect(event, type) {
  4069. const loading = this.openLoading();
  4070. var file = event.target.files[0];
  4071. var credentials = {
  4072. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4073. secretAccessKey: "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",
  4074. }; //秘钥形式的登录上传
  4075. window.AWS.config.update(credentials);
  4076. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4077. var bucket = new window.AWS.S3({
  4078. params: {
  4079. Bucket: "ccrb",
  4080. },
  4081. }); //选择桶
  4082. var _this = this;
  4083. if (file) {
  4084. var params = {
  4085. Key:
  4086. file.name.split(".")[0] +
  4087. new Date().getTime() +
  4088. "." +
  4089. file.name.split(".")[file.name.split(".").length - 1],
  4090. ContentType: file.type,
  4091. Body: file,
  4092. "Access-Control-Allow-Credentials": "*",
  4093. ACL: "public-read",
  4094. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4095. var options = {
  4096. partSize: 2048 * 1024 * 1024,
  4097. queueSize: 2,
  4098. leavePartsOnError: true,
  4099. };
  4100. bucket
  4101. .upload(params, options)
  4102. .on("httpUploadProgress", function (evt) {
  4103. //这里可以写进度条
  4104. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4105. })
  4106. .send(function (err, data) {
  4107. loading.close();
  4108. if (err) {
  4109. _this.$message.error("上传失败");
  4110. } else {
  4111. _this.selectJson.url = data.Location;
  4112. console.log(data.Location);
  4113. }
  4114. });
  4115. }
  4116. },
  4117. chooseSysPic(p) {
  4118. this.cover.push({
  4119. name: "系统图片.png",
  4120. url: p,
  4121. });
  4122. this.imgChange1(null, null, 1, null);
  4123. this.isSysPic = true;
  4124. this.sysPicVisible = false;
  4125. },
  4126. beforeUpload(data) {
  4127. this.uploadLoading1 = true;
  4128. var file = data.file;
  4129. var credentials = {
  4130. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4131. secretAccessKey: "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",
  4132. }; //秘钥形式的登录上传
  4133. window.AWS.config.update(credentials);
  4134. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4135. var bucket = new window.AWS.S3({
  4136. params: {
  4137. Bucket: "ccrb",
  4138. },
  4139. }); //选择桶
  4140. var _this = this;
  4141. if (file) {
  4142. var params = {
  4143. Key:
  4144. file.name.split(".")[0] +
  4145. new Date().getTime() +
  4146. "." +
  4147. file.name.split(".")[file.name.split(".").length - 1],
  4148. ContentType: file.type,
  4149. Body: file,
  4150. "Access-Control-Allow-Credentials": "*",
  4151. ACL: "public-read",
  4152. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4153. var options = {
  4154. partSize: 2048 * 1024 * 1024,
  4155. queueSize: 2,
  4156. leavePartsOnError: true,
  4157. };
  4158. bucket
  4159. .upload(params, options)
  4160. .on("httpUploadProgress", function (evt) {
  4161. //这里可以写进度条
  4162. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4163. })
  4164. .send(function (err, data) {
  4165. _this.uploadLoading1 = false;
  4166. if (err) {
  4167. _this.$message.error("上传失败");
  4168. } else {
  4169. //上传成功处理
  4170. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4171. name: file.name,
  4172. url: data.Location,
  4173. uid: file.uid,
  4174. });
  4175. _this.imgChange();
  4176. console.log(data.Location);
  4177. }
  4178. });
  4179. }
  4180. },
  4181. onExceed() {
  4182. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  4183. },
  4184. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4185. // const loading = this.openLoading();
  4186. var file = event.target.files[0];
  4187. var credentials = {
  4188. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4189. secretAccessKey: "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",
  4190. }; //秘钥形式的登录上传
  4191. window.AWS.config.update(credentials);
  4192. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4193. var bucket = new window.AWS.S3({
  4194. params: {
  4195. Bucket: "ccrb",
  4196. },
  4197. }); //选择桶
  4198. var _this = this;
  4199. if (type == 3) {
  4200. var b = [
  4201. "DOC",
  4202. "DOCX",
  4203. "DOCM",
  4204. "DOTM",
  4205. "DOTX",
  4206. "PPTX",
  4207. "PPSX",
  4208. "PPT",
  4209. "PPS",
  4210. "PPTM",
  4211. "POTM",
  4212. "PPAM",
  4213. "POTX",
  4214. "PPSM",
  4215. ];
  4216. if (
  4217. b.indexOf(
  4218. file.name
  4219. .split(".")
  4220. [file.name.split(".").length - 1].toLocaleUpperCase()
  4221. ) != -1
  4222. ) {
  4223. if (file.size / 1024 / 1024 > 80) {
  4224. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4225. this.inputShow = true;
  4226. // loading.close();
  4227. return;
  4228. }
  4229. } else if (
  4230. file.name
  4231. .split(".")
  4232. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4233. ) {
  4234. if (file.size / 1024 / 1024 > 80) {
  4235. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4236. this.inputShow = true;
  4237. // loading.close();
  4238. return;
  4239. }
  4240. }
  4241. }
  4242. this.inputShow = false;
  4243. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4244. itemTaskIndex
  4245. ].progress = 0;
  4246. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4247. itemTaskIndex
  4248. ].proVisible = true;
  4249. if (file) {
  4250. var params = {
  4251. Key:
  4252. file.name.split(".")[0] +
  4253. new Date().getTime() +
  4254. "." +
  4255. file.name.split(".")[file.name.split(".").length - 1],
  4256. ContentType: file.type,
  4257. Body: file,
  4258. "Access-Control-Allow-Credentials": "*",
  4259. ACL: "public-read",
  4260. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4261. var options = {
  4262. partSize: 2048 * 1024 * 1024,
  4263. queueSize: 2,
  4264. leavePartsOnError: true,
  4265. };
  4266. bucket
  4267. .upload(params, options)
  4268. .on("httpUploadProgress", function (evt) {
  4269. //这里可以写进度条
  4270. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4271. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4272. itemTaskIndex
  4273. ].progress = parseInt((evt.loaded * 80) / evt.total);
  4274. })
  4275. .send(function (err, data) {
  4276. // loading.close();
  4277. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4278. itemTaskIndex
  4279. ].progress = 100;
  4280. setTimeout(() => {
  4281. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4282. itemTaskIndex
  4283. ].proVisible = false;
  4284. _this.$forceUpdate();
  4285. }, 1000);
  4286. _this.inputShow = true;
  4287. if (err) {
  4288. _this.$message.error("上传失败");
  4289. } else {
  4290. if (type == 2 || type == 3) {
  4291. if (
  4292. data.Location.split(".")[
  4293. data.Location.split(".").length - 1
  4294. ].toLocaleUpperCase() == "PDF"
  4295. ) {
  4296. type = 9;
  4297. }
  4298. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4299. itemTaskIndex
  4300. ].chapterData.push({
  4301. name: file.name,
  4302. url: data.Location,
  4303. uid: file.uid,
  4304. type: type,
  4305. });
  4306. _this.imgChange1(null, null, type, itemTaskIndex);
  4307. } else if (type == 4) {
  4308. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4309. itemTaskIndex
  4310. ].fileList1.push({
  4311. name: file.name,
  4312. url: data.Location,
  4313. uid: file.uid,
  4314. });
  4315. _this.imgChange1(null, null, type, itemTaskIndex);
  4316. } else if (type == 5) {
  4317. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4318. itemTaskIndex
  4319. ].homeworkList.push({
  4320. name: file.name,
  4321. url: data.Location,
  4322. uid: file.uid,
  4323. });
  4324. _this.imgChange1(null, null, type, itemTaskIndex);
  4325. }
  4326. console.log(data.Location);
  4327. }
  4328. });
  4329. }
  4330. },
  4331. getVideo2(url) {
  4332. var d = JSON.parse(JSON.stringify(this.playerOptions));
  4333. d.sources[0].src = url;
  4334. return d;
  4335. },
  4336. beforeUpload3(event, type) {
  4337. // const loading = this.openLoading();
  4338. var file = event.target.files[0];
  4339. var credentials = {
  4340. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4341. secretAccessKey: "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",
  4342. }; //秘钥形式的登录上传
  4343. window.AWS.config.update(credentials);
  4344. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4345. var bucket = new window.AWS.S3({
  4346. params: {
  4347. Bucket: "ccrb",
  4348. },
  4349. }); //选择桶
  4350. var _this = this;
  4351. if (type == 3) {
  4352. var b = [
  4353. "DOC",
  4354. "DOCX",
  4355. "DOCM",
  4356. "DOTM",
  4357. "DOTX",
  4358. "PPTX",
  4359. "PPSX",
  4360. "PPT",
  4361. "PPS",
  4362. "PPTM",
  4363. "POTM",
  4364. "PPAM",
  4365. "POTX",
  4366. "PPSM",
  4367. ];
  4368. if (
  4369. b.indexOf(
  4370. file.name
  4371. .split(".")
  4372. [file.name.split(".").length - 1].toLocaleUpperCase()
  4373. ) != -1
  4374. ) {
  4375. if (file.size / 1024 / 1024 > 80) {
  4376. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4377. this.inputShow = true;
  4378. // loading.close();
  4379. return;
  4380. }
  4381. } else if (
  4382. file.name
  4383. .split(".")
  4384. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4385. ) {
  4386. if (file.size / 1024 / 1024 > 80) {
  4387. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4388. this.inputShow = true;
  4389. // loading.close();
  4390. return;
  4391. }
  4392. }
  4393. }
  4394. _this.inputShow = false;
  4395. _this.progress = 0;
  4396. _this.proVisible = true;
  4397. _this.isFinishSize = 0;
  4398. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4399. if (file) {
  4400. var params = {
  4401. Key:
  4402. file.name.split(".")[0] +
  4403. new Date().getTime() +
  4404. "." +
  4405. file.name.split(".")[file.name.split(".").length - 1],
  4406. ContentType: file.type,
  4407. Body: file,
  4408. "Access-Control-Allow-Credentials": "*",
  4409. ACL: "public-read",
  4410. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4411. var options = {
  4412. partSize: 2048 * 1024 * 1024,
  4413. queueSize: 2,
  4414. leavePartsOnError: true,
  4415. };
  4416. bucket
  4417. .upload(params, options)
  4418. .on("httpUploadProgress", function (evt) {
  4419. //这里可以写进度条
  4420. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4421. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4422. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4423. })
  4424. .send(function (err, data) {
  4425. // loading.close();
  4426. _this.progress = 100;
  4427. _this.isFinishSize = _this.isAllSize;
  4428. setTimeout(() => {
  4429. _this.proVisible = false;
  4430. // _this.dialogVisibleSource = false;
  4431. _this.$forceUpdate();
  4432. }, 1000);
  4433. _this.inputShow = true;
  4434. if (err) {
  4435. _this.$message.error("上传失败");
  4436. } else {
  4437. if (type == 13) {
  4438. let _type = 2;
  4439. let src = "";
  4440. var imgA = [
  4441. "png",
  4442. "jpg",
  4443. "jpeg",
  4444. "bmp",
  4445. "gif",
  4446. "webp",
  4447. "psd",
  4448. "svg",
  4449. "tiff",
  4450. ];
  4451. var fileA = [
  4452. "DOC",
  4453. "DOCX",
  4454. "DOCM",
  4455. "DOTM",
  4456. "DOTX",
  4457. "PPTX",
  4458. "PPSX",
  4459. "PPT",
  4460. "PPS",
  4461. "PPTM",
  4462. "POTM",
  4463. "PPAM",
  4464. "POTX",
  4465. "PPSM",
  4466. "XLSX",
  4467. "XLS",
  4468. ];
  4469. var videoA = [
  4470. "AVI",
  4471. "NAVI",
  4472. "MPEG",
  4473. "ASF",
  4474. "MOV",
  4475. "WMV",
  4476. "3GP",
  4477. "RM",
  4478. "RMVB",
  4479. "FLV",
  4480. "F4V",
  4481. "H.264",
  4482. "H.265",
  4483. "REAL VIDEO",
  4484. "MKV",
  4485. "WebM",
  4486. "HDDVD",
  4487. "MP4",
  4488. "MPG",
  4489. "M4V",
  4490. "MGV",
  4491. "OGV",
  4492. "QTM",
  4493. "STR",
  4494. "AMC",
  4495. "DVX",
  4496. "EVO",
  4497. "DAT",
  4498. "OGG",
  4499. "OGM",
  4500. ];
  4501. if (
  4502. fileA.indexOf(
  4503. data.Location.split(".")[
  4504. data.Location.split(".").length - 1
  4505. ].toLocaleUpperCase()
  4506. ) != -1
  4507. ) {
  4508. _type = 3;
  4509. src =
  4510. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4511. encodeURIComponent(data.Location);
  4512. } else if (
  4513. videoA.indexOf(
  4514. data.Location.split(".")[
  4515. data.Location.split(".").length - 1
  4516. ].toLocaleUpperCase()
  4517. ) != -1
  4518. ) {
  4519. _type = 2;
  4520. src = _this.getVideo2(data.Location);
  4521. } else if (
  4522. imgA.indexOf(
  4523. data.Location.split(".")[
  4524. data.Location.split(".").length - 1
  4525. ].toLocaleLowerCase()
  4526. ) != -1
  4527. ) {
  4528. _type = 13;
  4529. } else if (
  4530. data.Location.split(".")[
  4531. data.Location.split(".").length - 1
  4532. ].toLocaleUpperCase() == "PDF"
  4533. ) {
  4534. _type = 9;
  4535. } else {
  4536. _type = 12;
  4537. }
  4538. _this.sourcesData.push({
  4539. name: file.name,
  4540. url: data.Location,
  4541. uid: file.uid,
  4542. type: _type,
  4543. src: src,
  4544. });
  4545. } if (type == 2 || type == 3) {
  4546. var src = "";
  4547. if (
  4548. data.Location.split(".")[
  4549. data.Location.split(".").length - 1
  4550. ].toLocaleUpperCase() == "PDF"
  4551. ) {
  4552. type = 9;
  4553. }
  4554. if (type == 2) {
  4555. src = _this.getVideo2(data.Location);
  4556. } else if (type == 3) {
  4557. src =
  4558. "https://view.officeapps.live.com/op/view.aspx?src=" +
  4559. encodeURIComponent(data.Location);
  4560. } else {
  4561. src = data.Location;
  4562. }
  4563. // _this.unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolArray.push({
  4564. // tool: 51,
  4565. // toolDetail: "",
  4566. // toolPhoto: "",
  4567. // toolEdit: false,
  4568. // toolId: _this.guid(),
  4569. // toolData: {
  4570. // name: file.name,
  4571. // url: data.Location,
  4572. // uid: file.uid,
  4573. // type: type,
  4574. // src: src,
  4575. // }
  4576. // });
  4577. _this.sourcesData.push({
  4578. name: file.name,
  4579. url: data.Location,
  4580. uid: file.uid,
  4581. type: type,
  4582. src: src,
  4583. });
  4584. }
  4585. console.log(data.Location);
  4586. }
  4587. });
  4588. }
  4589. },
  4590. async beforeUploadCC(event, type, task, toolindex, tool) {
  4591. // this.$message.success('进入上传')
  4592. var file = "";
  4593. file = event.target.files[0];
  4594. var credentials = {
  4595. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4596. secretAccessKey: "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",
  4597. }; //秘钥形式的登录上传
  4598. window.AWS.config.update(credentials);
  4599. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4600. var bucket = new window.AWS.S3({
  4601. params: {
  4602. Bucket: "ccrb",
  4603. },
  4604. }); //选择桶
  4605. var _this = this;
  4606. if (type == 3 && (file.size / 1024 / 1024) > 100) {
  4607. _this.$message.error("上传文件大于100兆,请重新选择文件!");
  4608. return;
  4609. }
  4610. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 0;
  4611. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4612. toolindex
  4613. ].proVisible = true;
  4614. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4615. toolindex
  4616. ].isFinishSize = 0;
  4617. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[
  4618. toolindex
  4619. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4620. _this.$forceUpdate();
  4621. var b = [
  4622. "DOC",
  4623. "DOCX",
  4624. "DOCM",
  4625. "DOTM",
  4626. "DOTX",
  4627. "PPTX",
  4628. "PPSX",
  4629. "PPT",
  4630. "PPS",
  4631. "PPTM",
  4632. "POTM",
  4633. "PPAM",
  4634. "POTX",
  4635. "PPSM",
  4636. ];
  4637. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4638. var photoA = [
  4639. "BMP",
  4640. "GIF",
  4641. "PNG",
  4642. "JPEG",
  4643. "JPG",
  4644. "TIF",
  4645. "PCX",
  4646. "TGA",
  4647. "EXIF",
  4648. "FPX",
  4649. "SVG",
  4650. "APNG",
  4651. ];
  4652. if (
  4653. photoA.indexOf(
  4654. file.name
  4655. .split(".")
  4656. [file.name.split(".").length - 1].toLocaleUpperCase()
  4657. ) != -1 &&
  4658. type != 4
  4659. ) {
  4660. // const blob = await imageConversion.compress(file, 0.8)
  4661. file = await this.pngToWhiteBg(file);
  4662. const blob = await imageConversion.compressAccurately(file, 256);
  4663. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4664. file = new File([blob], file.name, {
  4665. type: file.type,
  4666. });
  4667. }
  4668. if (file) {
  4669. var params = {
  4670. Key:
  4671. file.name.split(".")[0] +
  4672. new Date().getTime() +
  4673. "." +
  4674. file.name.split(".")[file.name.split(".").length - 1],
  4675. ContentType: file.type,
  4676. Body: file,
  4677. "Access-Control-Allow-Credentials": "*",
  4678. ACL: "public-read",
  4679. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4680. var options = {
  4681. // partSize: 2048 * 1024 * 1024,
  4682. partSize: 1024 * 1024 * 1024,
  4683. queueSize: 2,
  4684. leavePartsOnError: true,
  4685. };
  4686. bucket
  4687. .upload(params, options)
  4688. .on("httpUploadProgress", function (evt) {
  4689. //这里可以写进度条
  4690. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4691. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = parseInt((evt.loaded * 80) / evt.total);
  4692. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4693. task
  4694. ].toolArray[toolindex].isFinishSize = (
  4695. evt.loaded /
  4696. 1024 /
  4697. 1024
  4698. ).toFixed(2);
  4699. _this.$forceUpdate();
  4700. })
  4701. .send(function (err, data) {
  4702. // _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[task].toolArray[toolindex].progress = 100;
  4703. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4704. task
  4705. ].toolArray[toolindex].isFinishSize =
  4706. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4707. task
  4708. ].toolArray[toolindex].isAllSize;
  4709. _this.$forceUpdate();
  4710. setTimeout(() => {
  4711. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4712. task
  4713. ].toolArray[toolindex].proVisible = false;
  4714. }, 1000);
  4715. if (err) {
  4716. // var a = _this.$refs.upload1.uploadFiles;
  4717. // a.splice(a.length - 1, a.length);
  4718. _this.$message.error("上传失败");
  4719. } else {
  4720. // _this.$message.success('上传成功')
  4721. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4722. var c = [
  4723. "AVI",
  4724. "NAVI",
  4725. "MPEG",
  4726. "ASF",
  4727. "MOV",
  4728. "WMV",
  4729. "3GP",
  4730. "RM",
  4731. "RMVB",
  4732. "FLV",
  4733. "F4V",
  4734. "H.264",
  4735. "H.265",
  4736. "REAL VIDEO",
  4737. "MKV",
  4738. "WebM",
  4739. "HDDVD",
  4740. "MP4",
  4741. "MPG",
  4742. "M4V",
  4743. "MGV",
  4744. "OGV",
  4745. "QTM",
  4746. "STR",
  4747. "AMC",
  4748. "DVX",
  4749. "EVO",
  4750. "DAT",
  4751. "OGG",
  4752. "OGM",
  4753. ];
  4754. if (type == 1) {
  4755. if (
  4756. ["ZIP"].indexOf(
  4757. data.Location.split(".")[
  4758. data.Location.split(".").length - 1
  4759. ].toLocaleUpperCase()
  4760. ) != -1
  4761. ) {
  4762. _this.addCourseWorksS(
  4763. tool,
  4764. 13,
  4765. data.Location,
  4766. task,
  4767. toolindex
  4768. );
  4769. } else {
  4770. _this.addCourseWorksS(
  4771. tool,
  4772. 4,
  4773. data.Location,
  4774. task,
  4775. toolindex
  4776. );
  4777. }
  4778. } else if (type == 2) {
  4779. if (
  4780. c.indexOf(
  4781. data.Location.split(".")[
  4782. data.Location.split(".").length - 1
  4783. ].toLocaleUpperCase()
  4784. ) != -1
  4785. ) {
  4786. _this.addCourseWorksS(
  4787. tool,
  4788. 5,
  4789. data.Location,
  4790. task,
  4791. toolindex
  4792. );
  4793. } else {
  4794. _this.addCourseWorksS(
  4795. tool,
  4796. 1,
  4797. data.Location,
  4798. task,
  4799. toolindex
  4800. );
  4801. }
  4802. } else if (type == 3) {
  4803. let _type = 13
  4804. var imgA = [
  4805. "png",
  4806. "jpg",
  4807. "jpeg",
  4808. "bmp",
  4809. "gif",
  4810. "webp",
  4811. "psd",
  4812. "svg",
  4813. "tiff",
  4814. ];
  4815. var fileA = [
  4816. "PDF",
  4817. "DOC",
  4818. "DOCX",
  4819. "DOCM",
  4820. "DOTM",
  4821. "DOTX",
  4822. "PPTX",
  4823. "PPSX",
  4824. "PPT",
  4825. "PPS",
  4826. "PPTM",
  4827. "POTM",
  4828. "PPAM",
  4829. "POTX",
  4830. "PPSM",
  4831. "XLSX",
  4832. "XLS",
  4833. ];
  4834. var videoA = [
  4835. "AVI",
  4836. "NAVI",
  4837. "MPEG",
  4838. "ASF",
  4839. "MOV",
  4840. "WMV",
  4841. "3GP",
  4842. "RM",
  4843. "RMVB",
  4844. "FLV",
  4845. "F4V",
  4846. "H.264",
  4847. "H.265",
  4848. "REAL VIDEO",
  4849. "MKV",
  4850. "WebM",
  4851. "HDDVD",
  4852. "MP4",
  4853. "MPG",
  4854. "M4V",
  4855. "MGV",
  4856. "OGV",
  4857. "QTM",
  4858. "STR",
  4859. "AMC",
  4860. "DVX",
  4861. "EVO",
  4862. "DAT",
  4863. "OGG",
  4864. "OGM",
  4865. ];
  4866. if (
  4867. fileA.indexOf(
  4868. data.Location.split(".")[
  4869. data.Location.split(".").length - 1
  4870. ].toLocaleUpperCase()
  4871. ) != -1
  4872. ) {
  4873. _type = 4;
  4874. } else if (
  4875. videoA.indexOf(
  4876. data.Location.split(".")[
  4877. data.Location.split(".").length - 1
  4878. ].toLocaleUpperCase()
  4879. ) != -1
  4880. ) {
  4881. _type = 5;
  4882. } else if (
  4883. imgA.indexOf(
  4884. data.Location.split(".")[
  4885. data.Location.split(".").length - 1
  4886. ].toLocaleLowerCase()
  4887. ) != -1
  4888. ) {
  4889. _type = 1;
  4890. } else {
  4891. _type = 13;
  4892. }
  4893. _this.addCourseWorksS(tool, _type, data.Location, task, toolindex);
  4894. }
  4895. console.log(data.Location);
  4896. // _this.$message.success('上传成功'+data.Location)
  4897. }
  4898. });
  4899. }
  4900. },
  4901. pngToWhiteBg(file) {
  4902. const _file = file;
  4903. let read = new FileReader();
  4904. read.readAsDataURL(file); // 文件转base64
  4905. return new Promise((resolve, reject) => {
  4906. read.onload = (e) => {
  4907. let img = new Image();
  4908. img.src = e.target.result;
  4909. img.onload = async () => {
  4910. // 生成canvas
  4911. let canvas = document.createElement("canvas");
  4912. let context = canvas.getContext("2d");
  4913. // 绘制图片到canvas上
  4914. canvas.width = img.width;
  4915. canvas.height = img.height;
  4916. // 在canvas绘制前填充白色背景
  4917. context.fillStyle = "#fff";
  4918. context.fillRect(0, 0, canvas.width, canvas.height);
  4919. context.drawImage(img, 0, 0);
  4920. let base64 = canvas.toDataURL(file["type"], 1);
  4921. let newFile = this.dataUrlToFile(base64, _file);
  4922. resolve(newFile);
  4923. };
  4924. };
  4925. });
  4926. },
  4927. dataUrlToFile(dataurl, file) {
  4928. let arr = dataurl.split(","),
  4929. mime = arr[0].match(/:(.*?);/)[1],
  4930. bstr = atob(arr[1]),
  4931. n = bstr.length,
  4932. u8arr = new Uint8Array(n);
  4933. while (n--) {
  4934. u8arr[n] = bstr.charCodeAt(n);
  4935. }
  4936. // return new Blob([u8arr], { type: mime });
  4937. return new File(
  4938. [
  4939. new Blob([u8arr], {
  4940. type: mime,
  4941. }),
  4942. ],
  4943. file.name,
  4944. {
  4945. type: mime,
  4946. }
  4947. );
  4948. },
  4949. addunit() {
  4950. if (this.cid != "") {
  4951. let _unitIndex = this.unitIndex;
  4952. let cPan = 1;
  4953. for (
  4954. var j = 0;
  4955. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4956. j++
  4957. ) {
  4958. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4959. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4960. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4961. (ele) => {
  4962. return ele.value != "";
  4963. }
  4964. );
  4965. }
  4966. }
  4967. if (cPan == 2) {
  4968. return;
  4969. }
  4970. }
  4971. this.unitJson.push({
  4972. dyName: "", //单元标题
  4973. isUpdate: 1,
  4974. chapterInfo: [
  4975. {
  4976. isread: false,
  4977. chapterid: this.guid(),
  4978. title: "",
  4979. courseName: "",
  4980. taskJson: [
  4981. {
  4982. task: "",
  4983. people: "",
  4984. time: "",
  4985. taskDetail: "",
  4986. chapterData: [],
  4987. toolText: "",
  4988. toolChoose: [
  4989. {
  4990. tool: [],
  4991. toolDetail: "",
  4992. toolType: 0,
  4993. askCount: 1,
  4994. askTitle: "",
  4995. askJson: [
  4996. {
  4997. askstitle: "",
  4998. askItem: 1,
  4999. checkList: [],
  5000. },
  5001. ],
  5002. },
  5003. ],
  5004. toolArray: [],
  5005. isShowTools: false,
  5006. askCount: 1,
  5007. isFold: 0,
  5008. askTitle: "",
  5009. askJson: [
  5010. {
  5011. askstitle: "",
  5012. askItem: 1,
  5013. checkList: [],
  5014. },
  5015. ],
  5016. checkJson: [
  5017. {
  5018. checkCount: [],
  5019. checkPerent: [],
  5020. },
  5021. ],
  5022. homeworkList: [],
  5023. },
  5024. ],
  5025. itemCount: 1,
  5026. fileList1: [],
  5027. video: [],
  5028. testData: [],
  5029. pData: [],
  5030. templateArray: [],
  5031. },
  5032. ],
  5033. });
  5034. // this.addindex = this.unitJson.length - 1;
  5035. // setTimeout(() => {
  5036. // this.unitIndex = this.unitJson.length - 1;
  5037. // this.unitSet(this.unitIndex);
  5038. // }, 0);
  5039. setTimeout(() => {
  5040. this.unitIndex = this.unitJson.length - 1;
  5041. setTimeout(() => {
  5042. console.log(this.$refs.dyInput)
  5043. this.$refs.dyInput[0].focus()
  5044. }, 100);
  5045. this.unitSet(this.unitIndex);
  5046. }, 0);
  5047. },
  5048. addToolFun(tool) {
  5049. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5050. // itemTaskIndex
  5051. // ].toolChoose.push({
  5052. // tool: [],
  5053. // toolDetail: "",
  5054. // toolType: 0,
  5055. // askCount: 1,
  5056. // askTitle: "",
  5057. // askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5058. // });
  5059. if (tool == 15) {
  5060. this.tableJson.text = "";
  5061. this.dialogVisible8 = true;
  5062. } else if (tool == 48) {
  5063. this.tableJson.text = "";
  5064. this.dialogVisibleTable1 = true;
  5065. } else if (tool == 52) {
  5066. this.tableJson.text = "";
  5067. this.dialogVisibleText = true;
  5068. } else if (tool == 51) {
  5069. this.addSourceFunD(this.taskCount);
  5070. } else if (tool == 56) {
  5071. this.askJson = {
  5072. askCount: 1,
  5073. askTitle: "",
  5074. askJson: [
  5075. {
  5076. askstitle: "",
  5077. askItem: 1,
  5078. checkList: [],
  5079. },
  5080. ],
  5081. };
  5082. this.dialogVisibleVote = true;
  5083. } else {
  5084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5085. this.taskCount
  5086. ].toolArray.push({
  5087. tool: tool,
  5088. toolDetail: "",
  5089. toolPhoto: "",
  5090. toolEdit: false,
  5091. toolId: this.guid(),
  5092. });
  5093. this.$forceUpdate();
  5094. this.dialogVisibleTool = false;
  5095. if (tool == 1 || tool == 3 || tool == 6) {
  5096. setTimeout(() => {
  5097. this.openToolFun(
  5098. tool,
  5099. this.taskCount,
  5100. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5101. this.taskCount
  5102. ].toolArray.length - 1
  5103. );
  5104. }, 500);
  5105. } else if (tool == 53 || tool == 54 || tool == 55) {
  5106. setTimeout(() => {
  5107. this.addImg(
  5108. document.getElementById(
  5109. this.taskCount.toString() +
  5110. "-" +
  5111. (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5112. this.taskCount
  5113. ].toolArray.length -
  5114. 1)
  5115. )
  5116. );
  5117. }, 500);
  5118. }
  5119. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5120. }
  5121. },
  5122. addToolFunD(itemTaskIndex) {
  5123. this.taskCount = itemTaskIndex;
  5124. this.dialogVisibleTool = true;
  5125. },
  5126. addSourceFunD(itemTaskIndex) {
  5127. this.sourcesData = [];
  5128. this.proVisible = false;
  5129. this.progress = 0;
  5130. this.inputShow = true;
  5131. this.taskCount = itemTaskIndex;
  5132. this.dialogVisibleSource = true;
  5133. },
  5134. setChapterIndex(itemTool, index, toolIndex) {
  5135. if (itemTool.toolData[index].type == 12) {
  5136. this.downloadFile2(itemTool.toolData[index], toolIndex)
  5137. return;
  5138. }
  5139. itemTool.sourceIndex = index;
  5140. this.setVHeight();
  5141. this.$forceUpdate();
  5142. },
  5143. setVHeight() {
  5144. this.$nextTick(function () {
  5145. setTimeout(() => {
  5146. let task = this.unitJson[this.unitIndex].chapterInfo[0].taskJson;
  5147. for (var j = 0; j < task.length; j++) {
  5148. let tool = task[j].toolArray;
  5149. for (var z = 0; z < tool.length; z++) {
  5150. let _tool = tool[z];
  5151. if (_tool.tool == 51) {
  5152. let ci = 0
  5153. for (var li = 0; li < _tool.toolData.length; li++) {
  5154. if (_tool.toolData[li].type != 12) {
  5155. ci++
  5156. }
  5157. }
  5158. if (ci == 0) {
  5159. _tool.isNoFile = true;
  5160. document.getElementsByClassName(
  5161. "vedioList" + j + z
  5162. )[0].style.height = 650 + "px";
  5163. document.getElementsByClassName(
  5164. "vedioList" + j + z
  5165. )[0].style.width = "100%";
  5166. } else {
  5167. _tool.isNoFile = false;
  5168. var a = document.getElementsByClassName("box_course" + j + z)[0] ? document.getElementsByClassName("box_course" + j + z)[0]
  5169. .offsetHeight : 650;
  5170. document.getElementsByClassName(
  5171. "vedioList" + j + z
  5172. )[0].style.height = a + "px";
  5173. document.getElementsByClassName(
  5174. "vedioList" + j + z
  5175. )[0].style.width = "calc(100% - 83%)";
  5176. }
  5177. this.$forceUpdate();
  5178. }
  5179. }
  5180. }
  5181. }, 0);
  5182. });
  5183. },
  5184. addSourceData() {
  5185. if (!this.sourcesData.length) {
  5186. this.$message.error("请上传资源");
  5187. return;
  5188. }
  5189. let ic = 0
  5190. for (let i = 0; i < this.sourcesData.length; i++) {
  5191. if (this.sourcesData[i].type != 12) {
  5192. ic = i
  5193. break;
  5194. }
  5195. }
  5196. if (this.editSourceType == 1) {
  5197. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5198. this.taskCount
  5199. ].toolArray.push({
  5200. tool: 51,
  5201. toolDetail: "",
  5202. toolPhoto: "",
  5203. toolEdit: false,
  5204. toolId: this.guid(),
  5205. toolData: JSON.parse(JSON.stringify(this.sourcesData)),
  5206. sourceIndex: ic,
  5207. });
  5208. } else {
  5209. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5210. this.taskCount
  5211. ].toolArray[this.toolIndex].toolData = JSON.parse(
  5212. JSON.stringify(this.sourcesData)
  5213. );
  5214. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5215. this.taskCount
  5216. ].toolArray[this.toolIndex].sourceIndex = ic;
  5217. }
  5218. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  5219. this.editSourceType = 1;
  5220. this.sourcesData = [];
  5221. this.dialogVisibleSource = false;
  5222. this.dialogVisibleTool = false;
  5223. this.$forceUpdate();
  5224. this.setVHeight();
  5225. },
  5226. openToolFun(tool, taskCount, i) {
  5227. this.taskCount = taskCount;
  5228. this.toolIndex = i;
  5229. if (tool == 48) {
  5230. const array =
  5231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5232. .toolArray[i].toolPhoto;
  5233. let txt = "";
  5234. if (array.length) {
  5235. txt = JSON.parse(JSON.stringify(array[0].content));
  5236. }
  5237. // for (var l = 0; l < array.length; l++) {
  5238. // let _uid = array[l].userid
  5239. // if (_uid == this.userid) {
  5240. // txt = JSON.parse(JSON.stringify(array[l].content))
  5241. // break;
  5242. // }
  5243. // }
  5244. this.tableJson.text = txt
  5245. ? JSON.parse(txt)
  5246. : this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5247. .toolArray[i].table
  5248. ? JSON.parse(
  5249. JSON.stringify(
  5250. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5251. .toolArray[i].table
  5252. )
  5253. )
  5254. : "";
  5255. // 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)) : ''
  5256. this.dialogVisibleTable = true;
  5257. } else if (tool == 15) {
  5258. this.answerQ = JSON.parse(
  5259. JSON.stringify(
  5260. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5261. .toolArray[i].answerQ
  5262. )
  5263. );
  5264. this.answerDialogVisible = true;
  5265. } else if (tool == 52) {
  5266. const array =
  5267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5268. .toolArray[i].toolPhoto;
  5269. let txt = "";
  5270. if (array.length) {
  5271. txt = JSON.parse(JSON.stringify(array[0].content));
  5272. }
  5273. // for (var l = 0; l < array.length; l++) {
  5274. // let _uid = array[l].userid
  5275. // if (_uid == this.userid) {
  5276. // txt = JSON.parse(JSON.stringify(array[l].content))
  5277. // break;
  5278. // }
  5279. // }
  5280. this.tableJson.text = txt
  5281. ? JSON.parse(txt)
  5282. : JSON.parse(
  5283. JSON.stringify(
  5284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5285. .toolArray[i].text
  5286. )
  5287. );
  5288. this.dialogVisibleText3 = true;
  5289. } else if (tool == 56) {
  5290. const array =
  5291. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5292. .toolArray[i].toolPhoto;
  5293. let txt = JSON.stringify([]);
  5294. for (var l = 0; l < array.length; l++) {
  5295. let _uid = array[l].userid;
  5296. if (_uid == this.userid) {
  5297. txt = JSON.parse(JSON.stringify(array[l].content));
  5298. break;
  5299. }
  5300. }
  5301. this.radio = JSON.parse(txt);
  5302. this.askJson = JSON.parse(
  5303. JSON.stringify(
  5304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  5305. .toolArray[i].askJson
  5306. )
  5307. );
  5308. this.dialogVisibleVote2 = true;
  5309. } else {
  5310. window.parent.postMessage(
  5311. {
  5312. tools: tool + "s",
  5313. cid: this.cid,
  5314. stage: this.unitIndex,
  5315. task: taskCount,
  5316. tool: i,
  5317. },
  5318. "*"
  5319. );
  5320. if (tool == 1 || tool == 3 || tool == 6) {
  5321. this.setPeople(this.unitIndex, taskCount, this.userid);
  5322. }
  5323. }
  5324. },
  5325. previewImg(url) {
  5326. this.$hevueImgPreview(url);
  5327. },
  5328. scrollChange() {
  5329. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  5330. },
  5331. openTable(content) {
  5332. this.tableJson.text = JSON.parse(content);
  5333. this.dialogVisibleTable2 = true;
  5334. },
  5335. addTaskBorder() {
  5336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5337. task: "",
  5338. people: "",
  5339. time: "",
  5340. taskDetail: "",
  5341. chapterData: [],
  5342. toolText: "",
  5343. toolChoose: [
  5344. {
  5345. tool: [],
  5346. toolDetail: "",
  5347. toolType: 0,
  5348. askCount: 1,
  5349. askTitle: "",
  5350. askJson: [
  5351. {
  5352. askstitle: "",
  5353. askItem: 1,
  5354. checkList: [],
  5355. },
  5356. ],
  5357. },
  5358. ],
  5359. toolArray: [],
  5360. isShowTools: false,
  5361. askCount: 1,
  5362. isFold: 0,
  5363. askTitle: "",
  5364. askJson: [
  5365. {
  5366. askstitle: "",
  5367. askItem: 1,
  5368. checkList: [],
  5369. },
  5370. ],
  5371. checkJson: [
  5372. {
  5373. checkCount: [],
  5374. checkPerent: [],
  5375. },
  5376. ],
  5377. homeworkList: [],
  5378. });
  5379. },
  5380. add(e, i) {
  5381. var el = e.currentTarget;
  5382. el.getElementsByTagName("input")[0].click();
  5383. },
  5384. fold(i, e) {
  5385. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  5386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5387. } else {
  5388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5389. }
  5390. console.log(e);
  5391. },
  5392. deleteHomeworkBox(unitIndex, index, i) {
  5393. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5394. this.taskCount
  5395. ].homeworkList.splice(i, 1);
  5396. },
  5397. getStudent() {
  5398. let params = {
  5399. oid: this.oid,
  5400. cu: "",
  5401. cn: this.searchPeople,
  5402. };
  5403. this.ajax
  5404. .get(this.$store.state.api + "selectStudentAdd", params)
  5405. .then((res) => {
  5406. this.studentJuri = res.data[0];
  5407. })
  5408. .catch((err) => {
  5409. this.isLoading = false;
  5410. console.error(err);
  5411. });
  5412. },
  5413. onPlayerPlay() { },
  5414. getTeacher() {
  5415. let params = {
  5416. org:
  5417. this.org && this.org != "undefined" && this.org != "null"
  5418. ? this.org
  5419. : "",
  5420. oid: this.oid,
  5421. cu: "",
  5422. cn: this.searchTN,
  5423. page: this.page,
  5424. pageSize: this.pageSize,
  5425. };
  5426. this.ajax
  5427. .get(
  5428. this.$store.state.api +
  5429. (this.org && this.org != "undefined" && this.org != "null"
  5430. ? "selectUserByOidS2"
  5431. : "selectUserByOidS2"),
  5432. params
  5433. )
  5434. .then((res) => {
  5435. let teacherJuri = res.data[0];
  5436. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  5437. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  5438. for (var i = 0; i < teacherJuri.length; i++) {
  5439. if (teacherJuri[i].userid == this.userid) {
  5440. teacherJuri.splice(i, 1);
  5441. break;
  5442. }
  5443. }
  5444. this.teacherJuri = teacherJuri;
  5445. })
  5446. .catch((err) => {
  5447. console.error(err);
  5448. });
  5449. },
  5450. setMan() {
  5451. let _unitJosn = this.unitJson;
  5452. // let teacherJuri = this.teacherJuri2;
  5453. this.ManAarray = [];
  5454. if (this.checkboxList3.indexOf(this.courseUserid) != -1) {
  5455. this.checkboxList3.splice(
  5456. this.checkboxList3.indexOf(this.courseUserid),
  5457. 1
  5458. );
  5459. }
  5460. let array = JSON.parse(JSON.stringify(this.checkboxList3));
  5461. if (array.indexOf(this.userid) == -1) {
  5462. array.push(this.userid);
  5463. }
  5464. if (array.indexOf(this.courseUserid) == -1) {
  5465. array.push(this.courseUserid);
  5466. }
  5467. for (var i = 0; i < _unitJosn.length; i++) {
  5468. let _chapter = _unitJosn[i].chapterInfo[0].taskJson;
  5469. for (var j = 0; j < _chapter.length; j++) {
  5470. let _task = _chapter[j];
  5471. if (array.indexOf(_task.people) == -1) {
  5472. _task.people = "";
  5473. }
  5474. if (_task.tcMember && _task.tcMember.length) {
  5475. let _tc = _task.tcMember;
  5476. let _tc2 = [];
  5477. for (var k = 0; k < _tc.length; k++) {
  5478. if (array.indexOf(_tc[k]) != -1) {
  5479. _tc2.push(_tc[k]);
  5480. }
  5481. }
  5482. _task.tcMember = _tc2;
  5483. }
  5484. }
  5485. }
  5486. let params = {
  5487. uid: array.join(","),
  5488. };
  5489. this.ajax
  5490. .get(this.$store.state.api + "getAllUserById", params)
  5491. .then((res) => {
  5492. let teacherJuri = res.data[0];
  5493. this.ManAarray = teacherJuri;
  5494. })
  5495. .catch((err) => {
  5496. console.error(err);
  5497. });
  5498. },
  5499. searchStudent() {
  5500. this.getStudent();
  5501. },
  5502. //获取班级列表
  5503. getClass() {
  5504. let params = {
  5505. oid: this.oid,
  5506. };
  5507. this.ajax
  5508. .get(this.$store.state.api + "selectClassBySchool", params)
  5509. .then((res) => {
  5510. this.grade = res.data[0];
  5511. })
  5512. .catch((err) => {
  5513. this.isLoading = false;
  5514. console.error(err);
  5515. });
  5516. },
  5517. getChapterData(e, i, j, ic, type) {
  5518. e.stopPropagation();
  5519. this.updataC = true;
  5520. this.icc = ic;
  5521. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5522. console.log("还不能下载图片喔");
  5523. }
  5524. },
  5525. getChapterData2(e, ic, type) {
  5526. e.stopPropagation();
  5527. this.updataC = true;
  5528. this.icc = ic;
  5529. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5530. console.log("还不能下载图片喔");
  5531. }
  5532. },
  5533. deleteChapterData(e, i, j, ic, taskI) {
  5534. e.stopPropagation();
  5535. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5536. },
  5537. deleteChapterData2(e, ic) {
  5538. e.stopPropagation();
  5539. this.sourcesData.splice(ic, 1);
  5540. },
  5541. updataVideoT(e, i, j, ic) {
  5542. e.stopPropagation();
  5543. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5544. ic
  5545. ].name = e.target.value;
  5546. },
  5547. updataVideoT2(e, ic) {
  5548. e.stopPropagation();
  5549. this.sourcesData[ic].name = e.target.value;
  5550. },
  5551. upCd(e, i, j, ic) {
  5552. e.stopPropagation();
  5553. if (ic == 0) {
  5554. return;
  5555. }
  5556. var a =
  5557. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5558. ic - 1
  5559. ];
  5560. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5561. ic - 1
  5562. ] =
  5563. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5564. ic
  5565. ];
  5566. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5567. a;
  5568. },
  5569. downCd(e, i, j, ic) {
  5570. e.stopPropagation();
  5571. if (
  5572. ic ==
  5573. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData
  5574. .length -
  5575. 1
  5576. ) {
  5577. return;
  5578. }
  5579. var a =
  5580. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5581. ic + 1
  5582. ];
  5583. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5584. ic + 1
  5585. ] =
  5586. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  5587. ic
  5588. ];
  5589. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  5590. a;
  5591. },
  5592. upCd2(e, ic) {
  5593. e.stopPropagation();
  5594. if (ic == 0) {
  5595. return;
  5596. }
  5597. var a = this.sourcesData[ic - 1];
  5598. this.sourcesData[ic - 1] = this.sourcesData[ic];
  5599. this.sourcesData[ic] = a;
  5600. this.$forceUpdate();
  5601. },
  5602. downCd2(e, ic) {
  5603. e.stopPropagation();
  5604. if (ic == this.sourcesData.length - 1) {
  5605. return;
  5606. }
  5607. var a = this.sourcesData[ic + 1];
  5608. this.sourcesData[ic + 1] = this.sourcesData[ic];
  5609. this.sourcesData[ic] = a;
  5610. this.$forceUpdate();
  5611. },
  5612. addWork() {
  5613. let cPan = 1;
  5614. for (var i = 0; i < this.unitJson.length; i++) {
  5615. for (
  5616. var j = 0;
  5617. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5618. j++
  5619. ) {
  5620. if (
  5621. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5622. ) {
  5623. for (
  5624. var z = 0;
  5625. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5626. z++
  5627. ) {
  5628. if (
  5629. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5630. .length
  5631. ) {
  5632. this.$message.error("请把工具添加完整");
  5633. cPan = 2;
  5634. break;
  5635. }
  5636. }
  5637. }
  5638. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5639. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5640. i
  5641. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5642. return ele.value != "";
  5643. });
  5644. }
  5645. }
  5646. }
  5647. if (cPan == 2) {
  5648. if (this.steps != 3) {
  5649. this.steps--;
  5650. }
  5651. return;
  5652. }
  5653. for (var i = 0; i < this.unitJson.length; i++) {
  5654. delete this.unitJson[i].isUpdate;
  5655. }
  5656. let params = [
  5657. {
  5658. uid: this.userid,
  5659. title: this.courseName,
  5660. brief: this.courseText,
  5661. cover:
  5662. this.cover.length > 0
  5663. ? JSON.stringify(this.cover)
  5664. : JSON.stringify([
  5665. {
  5666. name: "noBanner.jpg",
  5667. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5668. uid: 1656409780264,
  5669. status: "success",
  5670. },
  5671. ]),
  5672. evaId: this.evalua,
  5673. astudent:
  5674. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5675. see: this.isTeacherSee == true ? 1 : 0,
  5676. chapters: JSON.stringify(this.unitJson),
  5677. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5678. courseType: JSON.stringify(this.courseTypeId),
  5679. ateacher:
  5680. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5681. },
  5682. ];
  5683. this.ajax
  5684. .post(this.$store.state.api + "addCourseWorkNew22", params)
  5685. .then((res) => {
  5686. console.log(this.steps);
  5687. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5688. this.$message({
  5689. message: "新增成功",
  5690. type: "success",
  5691. });
  5692. }
  5693. this.number = res.data.ordernumber;
  5694. this.courseId = res.data.courseId;
  5695. this.cid = res.data.courseId;
  5696. this.courseUserid = this.userid;
  5697. this.islogin = true;
  5698. this.selectCourseDetail();
  5699. })
  5700. .catch((err) => {
  5701. this.$message.error("网络不佳");
  5702. console.error(err);
  5703. });
  5704. },
  5705. goCourse() {
  5706. window.parent.postMessage(
  5707. {
  5708. cid: this.courseId,
  5709. type: "1",
  5710. },
  5711. "*"
  5712. );
  5713. },
  5714. updateWork2() {
  5715. let _unitIndex = this.unitIndex;
  5716. let cPan = 1;
  5717. for (
  5718. var j = 0;
  5719. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5720. j++
  5721. ) {
  5722. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5723. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5724. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5725. (ele) => {
  5726. return ele.value != "";
  5727. }
  5728. );
  5729. }
  5730. }
  5731. if (cPan == 2) {
  5732. if (this.steps != 3) {
  5733. if (this.type == 2 && this.steps == 5) {
  5734. this.steps == 3;
  5735. } else {
  5736. this.steps--;
  5737. }
  5738. }
  5739. return;
  5740. }
  5741. let params = [
  5742. {
  5743. cid: this.cid,
  5744. chapters: JSON.stringify(this.unitJson),
  5745. uid: this.userid,
  5746. unitIndex: _unitIndex,
  5747. },
  5748. ];
  5749. this.ajax
  5750. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5751. .then((res) => {
  5752. if (
  5753. this.steps != 1 &&
  5754. this.steps != 2 &&
  5755. this.steps != 3 &&
  5756. this.steps != 4
  5757. ) {
  5758. this.$message({
  5759. message: "修改成功",
  5760. type: "success",
  5761. });
  5762. }
  5763. this.courseId = this.cid;
  5764. })
  5765. .catch((err) => {
  5766. this.$message.error("网络不佳");
  5767. console.error(err);
  5768. });
  5769. },
  5770. updateWork3() {
  5771. let _unitIndex = this.unitIndex;
  5772. let cPan = 1;
  5773. for (
  5774. var j = 0;
  5775. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5776. j++
  5777. ) {
  5778. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5779. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5780. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5781. (ele) => {
  5782. return ele.value != "";
  5783. }
  5784. );
  5785. }
  5786. }
  5787. if (cPan == 2) {
  5788. if (this.steps != 3) {
  5789. if (this.type == 2 && this.steps == 5) {
  5790. this.steps == 3;
  5791. } else {
  5792. this.steps--;
  5793. }
  5794. }
  5795. return;
  5796. }
  5797. let params = [
  5798. {
  5799. cid: this.cid,
  5800. chapters: JSON.stringify(this.unitJson),
  5801. uid: this.userid,
  5802. unitIndex: _unitIndex,
  5803. },
  5804. ];
  5805. this.ajax
  5806. .post(this.$store.state.api + "updateStudentWorkNew4", params)
  5807. .then((res) => {
  5808. // if (
  5809. // this.steps != 1 &&
  5810. // this.steps != 2 &&
  5811. // this.steps != 3 &&
  5812. // this.steps != 4
  5813. // ) {
  5814. // this.$message({
  5815. // message: "修改成功",
  5816. // type: "success",
  5817. // });
  5818. // }
  5819. this.courseId = this.cid;
  5820. })
  5821. .catch((err) => {
  5822. this.$message.error("网络不佳");
  5823. console.error(err);
  5824. });
  5825. },
  5826. updateWork() {
  5827. let cPan = 1;
  5828. for (var i = 0; i < this.unitJson.length; i++) {
  5829. for (
  5830. var j = 0;
  5831. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5832. j++
  5833. ) {
  5834. // if (
  5835. // !this.unitJson[i].chapterInfo[0].taskJson[j].task
  5836. // ) {
  5837. // this.$message.error("请填写任务名称");
  5838. // cPan = 2
  5839. // break;
  5840. // }
  5841. // if (
  5842. // !this.unitJson[i].chapterInfo[0].taskJson[j].people
  5843. // ) {
  5844. // this.$message.error("请填写负责人");
  5845. // cPan = 2
  5846. // break;
  5847. // }
  5848. // if (
  5849. // !this.unitJson[i].chapterInfo[0].taskJson[j].time
  5850. // ) {
  5851. // this.$message.error("请填写任务起止时间");
  5852. // cPan = 2
  5853. // break;
  5854. // }
  5855. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5856. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5857. i
  5858. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5859. return ele.value != "";
  5860. });
  5861. }
  5862. }
  5863. }
  5864. if (cPan == 2) {
  5865. if (this.steps != 3) {
  5866. this.steps--;
  5867. }
  5868. return;
  5869. }
  5870. for (var i = 0; i < this.unitJson.length; i++) {
  5871. delete this.unitJson[i].isUpdate;
  5872. }
  5873. let params = [
  5874. {
  5875. cid: this.cid,
  5876. title: this.courseName,
  5877. brief: this.courseText,
  5878. cover:
  5879. this.cover.length > 0
  5880. ? JSON.stringify(this.cover)
  5881. : JSON.stringify([
  5882. {
  5883. name: "noBanner.jpg",
  5884. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5885. uid: 1656409780264,
  5886. status: "success",
  5887. },
  5888. ]),
  5889. evaId: this.evalua,
  5890. astudent:
  5891. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5892. see: this.isTeacherSee == true ? 1 : 0,
  5893. chapters: JSON.stringify(this.unitJson),
  5894. template: this.myWord != "undefined" ? this.myWord : [],
  5895. uid: this.userid,
  5896. courseType: JSON.stringify(this.courseTypeId),
  5897. ateacher:
  5898. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5899. },
  5900. ];
  5901. this.ajax
  5902. .post(this.$store.state.api + "updateStudentWorkNew22", params)
  5903. .then((res) => {
  5904. if (
  5905. this.steps != 1 &&
  5906. this.steps != 2 &&
  5907. this.steps != 3 &&
  5908. this.steps != 4
  5909. ) {
  5910. if (this.cidttt == 1) {
  5911. this.$message({
  5912. message: "修改成功",
  5913. type: "success",
  5914. });
  5915. } else {
  5916. this.$message({
  5917. message: "新增成功",
  5918. type: "success",
  5919. });
  5920. }
  5921. }
  5922. this.checkboxListPeople = JSON.parse(
  5923. JSON.stringify(this.checkboxList3)
  5924. );
  5925. this.number = this.nbOrder;
  5926. this.courseId = this.cid;
  5927. })
  5928. .catch((err) => {
  5929. this.$message.error("网络不佳");
  5930. console.error(err);
  5931. });
  5932. },
  5933. guid() {
  5934. var _num,
  5935. i,
  5936. _guid = "";
  5937. for (i = 0; i < 32; i++) {
  5938. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5939. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5940. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5941. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5942. _guid += "-";
  5943. }
  5944. }
  5945. return _guid;
  5946. },
  5947. retrunCourse() {
  5948. this
  5949. .$confirm("是否保存已编辑内容?", "提示", {
  5950. confirmButtonText: "保存",
  5951. cancelButtonText: "不保存",
  5952. distinguishCancelAndClose: true,
  5953. type: "warning",
  5954. })
  5955. .then(() => {
  5956. let typeT = 1;
  5957. if (this.courseTypeId.length) {
  5958. let array = Object.keys(this.CourseTypeJson);
  5959. for (var t = 0; t < array.length; t++) {
  5960. var tp = array[t];
  5961. var tAarray = [];
  5962. for (var tt = 0; tt < this.CourseTypeJson[tp].length; tt++) {
  5963. tAarray.push(this.CourseTypeJson[tp][tt].id);
  5964. }
  5965. for (var tt = 0; tt < this.courseTypeId.length; tt++) {
  5966. if (tAarray.indexOf(this.courseTypeId[tt]) != -1) {
  5967. typeT++;
  5968. }
  5969. }
  5970. }
  5971. }
  5972. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  5973. typeT++;
  5974. }
  5975. // if (this.CourseType.length == 0) {
  5976. // typeT = 3
  5977. // }
  5978. if (!(this.org == '150e3120-9195-11ed-b13d-005056b86db5') && !(this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5")) {
  5979. typeT = 3
  5980. }
  5981. if (this.courseName == "" || typeT != 3) {
  5982. if (typeT != 3) {
  5983. this.$message.error("分类为必选项目,请将信息补充完整后进行下一步");
  5984. } else {
  5985. this.$message.error("请将信息填写完整");
  5986. }
  5987. return;
  5988. }
  5989. if (this.cid == "" || this.cid == undefined) {
  5990. if (this.courseName == "") {
  5991. this.$message.error("请将信息填写完整");
  5992. return;
  5993. } else {
  5994. this.addWork();
  5995. }
  5996. this.steps = 5
  5997. } else {
  5998. if (this.courseName == "") {
  5999. this.$message.error("请将信息填写完整");
  6000. return;
  6001. } else {
  6002. if (this.userid != this.courseUserid && this.role != "1") {
  6003. this.updateWork2();
  6004. } else {
  6005. this.updateWork();
  6006. }
  6007. this.steps = 5
  6008. }
  6009. }
  6010. })
  6011. .catch((v) => {
  6012. console.log(v)
  6013. if (v == "cancel") {
  6014. this.goTo(
  6015. this.fpath +
  6016. "?userid=" +
  6017. this.userid +
  6018. "&oid=" +
  6019. this.oid +
  6020. "&org=" +
  6021. this.org + '&role=' + this.role
  6022. );
  6023. }
  6024. });
  6025. },
  6026. insertWord() {
  6027. this.dialogVisible1 = true;
  6028. this.updateBoolean2 = false;
  6029. this.tTitle = "";
  6030. this.tdetail = "";
  6031. },
  6032. addWord() {
  6033. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6034. name: this.tTitle,
  6035. content: this.tdetail,
  6036. uid: this.guid(),
  6037. });
  6038. this.dialogVisible1 = false;
  6039. },
  6040. upWord() { },
  6041. selectWord(uid, i, c) {
  6042. this.dialogVisible1 = true;
  6043. this.updateBoolean2 = true;
  6044. if (
  6045. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6046. ) {
  6047. this.tTitle =
  6048. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6049. this.tdetail =
  6050. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6051. }
  6052. },
  6053. isAddPP() {
  6054. if (this.checkboxList.length > 0) {
  6055. this.$message({
  6056. message: "添加成功",
  6057. type: "success",
  6058. });
  6059. this.dialogVisible3 = false;
  6060. } else {
  6061. this.$message({
  6062. message: "请添加项目成员",
  6063. type: "error",
  6064. });
  6065. }
  6066. },
  6067. isAddClass() {
  6068. this.dialogVisibleClass = false;
  6069. },
  6070. isAddPPTeacher() {
  6071. this.dialogVisibleMember = false;
  6072. // let array = JSON.parse(JSON.stringify(this.checkboxList3))
  6073. // if (array.indexOf(this.courseUserid || this.userid) == -1) {
  6074. // array.push(this.courseUserid || this.userid)
  6075. // }
  6076. this.setMan();
  6077. },
  6078. isAddPPTcTeacher() {
  6079. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6080. this.taskCount
  6081. ].tcMember = this.tcMember;
  6082. this.dialogVisibleTcMember = false;
  6083. },
  6084. addTcMember(index) {
  6085. this.taskCount = index;
  6086. // this.searchTN = ""
  6087. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6088. index
  6089. ].tcMember
  6090. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6091. : [];
  6092. const people =
  6093. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].people;
  6094. let ManAarray = JSON.parse(JSON.stringify(this.ManAarray));
  6095. for (var i = 0; i < ManAarray.length; i++) {
  6096. if (ManAarray[i].userid === people) {
  6097. ManAarray.splice(i, 1);
  6098. }
  6099. }
  6100. this.tcMember = tcMember;
  6101. this.ManAarray2 = ManAarray;
  6102. // this.getTeacher();
  6103. this.dialogVisibleTcMember = true;
  6104. },
  6105. peopleChange(people, index) {
  6106. let tcMember = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6107. index
  6108. ].tcMember
  6109. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember
  6110. : [];
  6111. if (tcMember.indexOf(people) != -1) {
  6112. tcMember.splice(tcMember.indexOf(people), 1);
  6113. }
  6114. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index].tcMember =
  6115. tcMember;
  6116. },
  6117. getTemplate() {
  6118. let params = {
  6119. oid: this.oid,
  6120. };
  6121. this.ajax
  6122. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6123. .then((res) => {
  6124. this.templateArray = res.data[0];
  6125. this.getTemplateOrg();
  6126. this.$forceUpdate();
  6127. })
  6128. .catch((err) => { });
  6129. },
  6130. getTemplateOrg() {
  6131. let params = {
  6132. oid: this.org,
  6133. };
  6134. this.ajax
  6135. .get(this.$store.state.api + "getCourseTemplateTs", params)
  6136. .then((res) => {
  6137. if (res.data[0].length) {
  6138. let ta = res.data[0].filter(el => {
  6139. return el.oid
  6140. });
  6141. this.templateArray = [...ta, ...this.templateArray];
  6142. this.templateArray = this.templateArray.sort(function (a, b) {
  6143. return b.create_at < a.create_at ? -1 : 1
  6144. })
  6145. }
  6146. this.$forceUpdate();
  6147. })
  6148. .catch((err) => { });
  6149. },
  6150. clearChoose() {
  6151. this.clearArray.splice(this.templateC.id, 1);
  6152. this.dialogVisible2 = false;
  6153. },
  6154. clearAttText() {
  6155. this.AttText = {
  6156. title: "",
  6157. text: "",
  6158. };
  6159. this.dialogVisible6 = false;
  6160. },
  6161. clearLine() {
  6162. this.line = "";
  6163. this.dialogVisible7 = false;
  6164. },
  6165. openTemplate() {
  6166. this.ctJson = {}
  6167. this.templateDialog = true
  6168. },
  6169. checkctJson(json) {
  6170. if (this.ctJson.id == json.id) {
  6171. this.ctJson = {}
  6172. } else {
  6173. this.ctJson = json
  6174. }
  6175. },
  6176. addTemplate(res) {
  6177. let _this = this;
  6178. let _res = []
  6179. if (!Object.keys(res).length) {
  6180. this.$message.error("请选择模板")
  6181. retrun;
  6182. } else {
  6183. _res = JSON.parse(res.chapters)
  6184. }
  6185. _this
  6186. .$confirm("确定选择项目模板吗?此操作将删除所有已编辑项目内容。", "提示", {
  6187. confirmButtonText: "确定",
  6188. cancelButtonText: "取消",
  6189. type: "warning",
  6190. })
  6191. .then(() => {
  6192. _this.unitJson = _res;
  6193. _this.updateWork();
  6194. // _this.steps++;
  6195. _this.templateDialog = false
  6196. setTimeout(() => {
  6197. this.checkEva(this.checkId);
  6198. setTimeout(() => {
  6199. this.checkEva(this.checkId);
  6200. }, 100);
  6201. }, 1000);
  6202. })
  6203. .catch(() => {
  6204. return;
  6205. });
  6206. },
  6207. checkTemplate(res) {
  6208. let _this = this;
  6209. _this
  6210. .$confirm("确定选择此模板吗?", "提示", {
  6211. confirmButtonText: "确定",
  6212. cancelButtonText: "取消",
  6213. type: "warning",
  6214. })
  6215. .then(() => {
  6216. _this.unitJson = JSON.parse(res.chapters);
  6217. _this.steps++;
  6218. setTimeout(() => {
  6219. this.checkEva(this.checkId);
  6220. }, 1000);
  6221. })
  6222. .catch(() => {
  6223. return;
  6224. });
  6225. },
  6226. checkTemplate1(w) {
  6227. this.steps++;
  6228. },
  6229. checkTemplate2() {
  6230. let _this = this;
  6231. _this
  6232. .$confirm("确定选择空模板吗?", "提示", {
  6233. confirmButtonText: "确定",
  6234. cancelButtonText: "取消",
  6235. type: "warning",
  6236. })
  6237. .then(() => {
  6238. _this.unitJson = [
  6239. {
  6240. dyName: "", //单元标题
  6241. chapterInfo: [
  6242. {
  6243. isread: false,
  6244. chapterid: this.guid(),
  6245. title: "",
  6246. courseName: "",
  6247. taskJson: [
  6248. {
  6249. task: "",
  6250. people: "",
  6251. time: "",
  6252. taskDetail: "",
  6253. chapterData: [],
  6254. toolText: "",
  6255. toolChoose: [
  6256. {
  6257. tool: [],
  6258. toolDetail: "",
  6259. toolType: 0,
  6260. askCount: 1,
  6261. askTitle: "",
  6262. askJson: [
  6263. {
  6264. askstitle: "",
  6265. askItem: 1,
  6266. checkList: [],
  6267. },
  6268. ],
  6269. },
  6270. ],
  6271. toolArray: [],
  6272. isShowTools: false,
  6273. askCount: 1,
  6274. isFold: 0,
  6275. askTitle: "",
  6276. askJson: [
  6277. {
  6278. askstitle: "",
  6279. askItem: 1,
  6280. checkList: [],
  6281. },
  6282. ],
  6283. checkJson: [
  6284. {
  6285. checkCount: [],
  6286. checkPerent: [],
  6287. },
  6288. ],
  6289. homeworkList: [],
  6290. },
  6291. ],
  6292. itemCount: 1,
  6293. fileList1: [],
  6294. video: [],
  6295. testData: [],
  6296. pData: [],
  6297. templateArray: [],
  6298. },
  6299. ],
  6300. },
  6301. ];
  6302. this.steps++;
  6303. })
  6304. .catch(() => {
  6305. return;
  6306. });
  6307. },
  6308. wordNext() {
  6309. this.dialogVisible2 = false;
  6310. },
  6311. isAddOrUpdateAttText() {
  6312. if (this.AttTextType == 0) {
  6313. this.addAttTextMessage();
  6314. } else {
  6315. this.updateAttText();
  6316. }
  6317. },
  6318. isAddOrUpdateLine() {
  6319. if (!this.lineTitle) {
  6320. this.$message.error("请填写链接标题");
  6321. return;
  6322. }
  6323. if (this.lineType == 0) {
  6324. this.addLine();
  6325. } else {
  6326. this.updateLine();
  6327. }
  6328. },
  6329. addAttTextMessage() {
  6330. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6331. // this.taskCount
  6332. // ].chapterData.push({
  6333. // name: this.AttText.title,
  6334. // url: this.AttText.text,
  6335. // type: 6,
  6336. // });
  6337. // this.imgChange1(null, null, 6, this.taskCount);
  6338. // this.dialogVisible6 = false;
  6339. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6340. // tool: 51,
  6341. // toolDetail: "",
  6342. // toolPhoto: "",
  6343. // toolEdit: false,
  6344. // toolId: this.guid(),
  6345. // toolData: {
  6346. // name: this.AttText.title,
  6347. // url: this.AttText.text,
  6348. // type: 6,
  6349. // }
  6350. // });
  6351. this.sourcesData.push({
  6352. name: this.AttText.title,
  6353. url: this.AttText.text,
  6354. type: 6,
  6355. });
  6356. this.dialogVisible6 = false;
  6357. // this.dialogVisibleSource = false;
  6358. },
  6359. selectAttText(itemTaskIndex, i) {
  6360. this.AttText.title =
  6361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6362. itemTaskIndex
  6363. ].chapterData[i].name;
  6364. this.AttText.text =
  6365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6366. itemTaskIndex
  6367. ].chapterData[i].url;
  6368. this.taskCount = itemTaskIndex;
  6369. this.AttTextIndex = i;
  6370. this.AttTextType = 1;
  6371. this.dialogVisible6 = true;
  6372. },
  6373. selectAttText2(i) {
  6374. this.AttText.title = this.sourcesData[i].name;
  6375. this.AttText.text = this.sourcesData[i].url;
  6376. this.AttTextIndex = i;
  6377. this.AttTextType = 1;
  6378. this.dialogVisible6 = true;
  6379. },
  6380. updateAttText() {
  6381. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6382. // this.taskCount
  6383. // ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6384. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6385. // this.taskCount
  6386. // ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6387. this.sourcesData[this.AttTextIndex].name = this.AttText.title;
  6388. this.sourcesData[this.AttTextIndex].url = this.AttText.text;
  6389. this.dialogVisible6 = false;
  6390. },
  6391. addLine() {
  6392. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6393. // this.lineCount
  6394. // ].chapterData.push({
  6395. // name: "链接",
  6396. // title: this.lineTitle,
  6397. // url: this.line,
  6398. // type: 8,
  6399. // });
  6400. // this.imgChange1(null, null, 8, this.lineCount);
  6401. // this.dialogVisible7 = false;
  6402. let src = "";
  6403. if (
  6404. this.line.indexOf("https://") == -1 &&
  6405. this.line.indexOf("http://") == -1
  6406. ) {
  6407. src = "https://" + this.line;
  6408. } else {
  6409. src = this.line;
  6410. }
  6411. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolArray.push({
  6412. // tool: 51,
  6413. // toolDetail: "",
  6414. // toolPhoto: "",
  6415. // toolEdit: false,
  6416. // toolId: this.guid(),
  6417. // toolData: {
  6418. // name: "链接",
  6419. // // title: this.lineTitle,
  6420. // url: this.line,
  6421. // src: src,
  6422. // type: 8,
  6423. // }
  6424. // });
  6425. this.sourcesData.push({
  6426. name: "链接",
  6427. title: this.lineTitle,
  6428. url: this.line,
  6429. src: src,
  6430. type: 8,
  6431. });
  6432. this.dialogVisible7 = false;
  6433. // this.dialogVisibleSource = false;
  6434. },
  6435. selectLine(itemTaskIndex, i) {
  6436. this.line =
  6437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6438. itemTaskIndex
  6439. ].chapterData[i].url;
  6440. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6441. itemTaskIndex
  6442. ].chapterData[i].title
  6443. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6444. .chapterData[i].title
  6445. : "";
  6446. this.taskCount = itemTaskIndex;
  6447. this.lineCount = i;
  6448. this.lineType = 1;
  6449. this.dialogVisible7 = true;
  6450. },
  6451. selectLine2(i) {
  6452. this.line = this.sourcesData[i].url;
  6453. this.lineTitle = this.sourcesData[i].title
  6454. ? this.sourcesData[i].title
  6455. : "";
  6456. this.lineCount = i;
  6457. this.lineType = 1;
  6458. this.dialogVisible7 = true;
  6459. },
  6460. updateLine() {
  6461. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6462. // this.taskCount
  6463. // ].chapterData[this.lineCount].url = this.line;
  6464. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6465. // this.taskCount
  6466. // ].chapterData[this.lineCount].title = this.lineTitle;
  6467. if (!this.lineTitle) {
  6468. this.$message.error("请填写链接标题");
  6469. return;
  6470. }
  6471. this.sourcesData[this.lineCount].url = this.line;
  6472. this.sourcesData[this.lineCount].title = this.lineTitle;
  6473. this.dialogVisible7 = false;
  6474. },
  6475. addPP() {
  6476. this.dialogVisible3 = true;
  6477. },
  6478. goTo(path) {
  6479. this.$router.push(path);
  6480. },
  6481. openTools(itemTaskIndex, i, toolIndex) {
  6482. this.toolIndex = toolIndex;
  6483. this.taskCount = itemTaskIndex;
  6484. if (i == 4) {
  6485. if (toolIndex == null) {
  6486. var a =
  6487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6488. .chapterData;
  6489. for (var i = 0; i < a.length; i++) {
  6490. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6491. this.askJson =
  6492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6493. itemTaskIndex
  6494. ].chapterData[i].askJson;
  6495. }
  6496. }
  6497. } else {
  6498. this.askJson = JSON.parse(
  6499. JSON.stringify(
  6500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6501. itemTaskIndex
  6502. ].toolChoose[toolIndex]
  6503. )
  6504. );
  6505. }
  6506. this.dialogVisible5 = true;
  6507. } else if (i == 45) {
  6508. if (
  6509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6510. .toolChoose[toolIndex].testJson
  6511. ) {
  6512. this.testJson = JSON.parse(
  6513. JSON.stringify(
  6514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6515. itemTaskIndex
  6516. ].toolChoose[toolIndex].testJson
  6517. )
  6518. );
  6519. } else {
  6520. var testJson = {
  6521. testCount: 1,
  6522. testTitle: "",
  6523. testJson: [
  6524. {
  6525. teststitle: "",
  6526. testItem: 1,
  6527. checkList: [],
  6528. answer: [],
  6529. type: "1",
  6530. },
  6531. ],
  6532. };
  6533. this.testJson = testJson;
  6534. }
  6535. this.dialogVisibleChoice = true;
  6536. } else if (i == 47) {
  6537. if (
  6538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6539. .toolChoose[toolIndex].sentenceList
  6540. ) {
  6541. this.sentenceList = JSON.parse(
  6542. JSON.stringify(
  6543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6544. itemTaskIndex
  6545. ].toolChoose[toolIndex].sentenceList
  6546. )
  6547. );
  6548. } else {
  6549. var sentenceList = [
  6550. {
  6551. sentenceTitle: "",
  6552. addSentence: [],
  6553. rightAnswer: [],
  6554. },
  6555. ];
  6556. this.sentenceList = sentenceList;
  6557. }
  6558. this.dialogVisibleSentence = true;
  6559. } else if (i == 48) {
  6560. if (
  6561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6562. .toolChoose[toolIndex].tableJson
  6563. ) {
  6564. this.tableJson = JSON.parse(
  6565. JSON.stringify(
  6566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6567. itemTaskIndex
  6568. ].toolChoose[toolIndex].tableJson
  6569. )
  6570. );
  6571. } else {
  6572. var tableJson = {
  6573. text: "",
  6574. };
  6575. this.tableJson = tableJson;
  6576. }
  6577. this.dialogVisibleTable = true;
  6578. } else if (i == 49) {
  6579. if (
  6580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6581. .toolChoose[toolIndex].groupJson
  6582. ) {
  6583. this.groupJson = JSON.parse(
  6584. JSON.stringify(
  6585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6586. itemTaskIndex
  6587. ].toolChoose[toolIndex].groupJson
  6588. )
  6589. );
  6590. } else {
  6591. var groupJson = {
  6592. group: [
  6593. {
  6594. name: "第1组",
  6595. },
  6596. ],
  6597. number: undefined,
  6598. islock: 1,
  6599. };
  6600. this.groupJson = groupJson;
  6601. }
  6602. this.dialogVisibleGroup = true;
  6603. } else if (i == 15) {
  6604. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6605. itemTaskIndex
  6606. ].toolChoose[toolIndex].answerQ
  6607. ? JSON.parse(
  6608. JSON.stringify(
  6609. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6610. itemTaskIndex
  6611. ].toolChoose[toolIndex].answerQ
  6612. )
  6613. )
  6614. : "";
  6615. this.dialogVisible8 = true;
  6616. } else if (i == 40) {
  6617. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6618. itemTaskIndex
  6619. ].toolChoose[toolIndex].rateJson
  6620. ? JSON.parse(
  6621. JSON.stringify(
  6622. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6623. itemTaskIndex
  6624. ].toolChoose[toolIndex].rateJson
  6625. )
  6626. )
  6627. : [
  6628. {
  6629. detail: "",
  6630. score: 5,
  6631. value: "",
  6632. },
  6633. ]; //{detail:"",score:5,value:""}
  6634. this.selectSteps = 1;
  6635. this.dialogVisibleRate = true;
  6636. } else if (i == 42) {
  6637. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6638. itemTaskIndex
  6639. ].toolChoose[toolIndex].answerQ
  6640. ? JSON.parse(
  6641. JSON.stringify(
  6642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6643. itemTaskIndex
  6644. ].toolChoose[toolIndex].answerQ
  6645. )
  6646. )
  6647. : "";
  6648. this.dialogVisibleMp3 = true;
  6649. } else if (i == 41) {
  6650. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6651. itemTaskIndex
  6652. ].toolChoose[toolIndex].selectJson
  6653. ? JSON.parse(
  6654. JSON.stringify(
  6655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6656. itemTaskIndex
  6657. ].toolChoose[toolIndex].selectJson
  6658. )
  6659. )
  6660. : {
  6661. url: "",
  6662. select: [],
  6663. answer: [],
  6664. };
  6665. this.selectSteps = 1;
  6666. this.dialogVisibleSelect = true;
  6667. }
  6668. },
  6669. chapAddTools(i) {
  6670. if (this.chapTools[0].tools.length == 0) {
  6671. this.chapTools[0].tools.push(i);
  6672. } else {
  6673. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6674. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6675. } else {
  6676. this.chapTools[0].tools.push(i);
  6677. }
  6678. }
  6679. this.$forceUpdate();
  6680. },
  6681. addChaptersDataTools() {
  6682. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6684. this.chapCount
  6685. ].chapterData.push({
  6686. name: this.chapTools[0].toolDetail,
  6687. url: this.chapTools[0].tools,
  6688. type: 7,
  6689. askJson: this.askJson,
  6690. });
  6691. } else {
  6692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6693. this.chapCount
  6694. ].chapterData.push({
  6695. name: this.chapTools[0].toolDetail,
  6696. url: this.chapTools[0].tools,
  6697. type: 7,
  6698. });
  6699. }
  6700. this.imgChange1(null, null, 7, this.chapCount);
  6701. this.dialogVisible4 = false;
  6702. },
  6703. addTools(i, itemTaskIndex, toolIndex) {
  6704. // if (
  6705. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6706. // .toolChoose[toolIndex].tool.length == 0
  6707. // ) {
  6708. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6709. // itemTaskIndex
  6710. // ].toolChoose[toolIndex].tool.push(i);
  6711. // } else {
  6712. // if (
  6713. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6714. // itemTaskIndex
  6715. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6716. // ) {
  6717. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6718. // itemTaskIndex
  6719. // ].toolChoose[toolIndex].tool.splice(
  6720. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6721. // itemTaskIndex
  6722. // ].toolChoose[toolIndex].tool.indexOf(i),
  6723. // 1
  6724. // );
  6725. // } else {
  6726. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6727. // itemTaskIndex
  6728. // ].toolChoose[toolIndex].tool.push(i);
  6729. // }
  6730. // console.log(
  6731. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6732. // .toolChoose[toolIndex].tool
  6733. // );
  6734. // }
  6735. if (i == 4) {
  6736. if (
  6737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6738. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6740. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6741. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6742. .toolChoose[toolIndex].askJson[0].checkList < 2
  6743. ) {
  6744. this.openTools(itemTaskIndex, 4, toolIndex);
  6745. // this.$message({
  6746. // message: "请填写完整问卷内容",
  6747. // type: "error",
  6748. // });
  6749. return;
  6750. }
  6751. }
  6752. if (i == 45) {
  6753. if (
  6754. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6755. .toolChoose[toolIndex].testJson ||
  6756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6757. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6759. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6760. ) {
  6761. this.openTools(itemTaskIndex, 45, toolIndex);
  6762. // this.$message({
  6763. // message: "请填写完整问卷内容",
  6764. // type: "error",
  6765. // });
  6766. return;
  6767. }
  6768. }
  6769. if (i == 47) {
  6770. if (
  6771. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6772. .toolChoose[toolIndex].sentenceList ||
  6773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6774. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6775. ) {
  6776. this.openTools(itemTaskIndex, 47, toolIndex);
  6777. return;
  6778. }
  6779. }
  6780. if (i == 48) {
  6781. if (
  6782. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6783. .toolChoose[toolIndex].tableJson
  6784. ) {
  6785. this.openTools(itemTaskIndex, 48, toolIndex);
  6786. return;
  6787. }
  6788. }
  6789. if (i == 49) {
  6790. if (
  6791. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6792. .toolChoose[toolIndex].groupJson
  6793. ) {
  6794. this.openTools(itemTaskIndex, 49, toolIndex);
  6795. return;
  6796. }
  6797. }
  6798. if (i == 15) {
  6799. if (
  6800. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6801. .toolChoose[toolIndex].answerQ ||
  6802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6803. .toolChoose[toolIndex].answerQ == ""
  6804. ) {
  6805. this.openTools(itemTaskIndex, 15, toolIndex);
  6806. // this.$message({
  6807. // message: "请填写问答内容",
  6808. // type: "error",
  6809. // });
  6810. return;
  6811. }
  6812. }
  6813. if (i == 40) {
  6814. if (
  6815. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6816. .toolChoose[toolIndex].rateJson ||
  6817. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6818. .toolChoose[toolIndex].rateJson.length
  6819. ) {
  6820. this.openTools(itemTaskIndex, 40, toolIndex);
  6821. return;
  6822. }
  6823. }
  6824. if (i == 41) {
  6825. if (
  6826. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6827. .toolChoose[toolIndex].selectJson ||
  6828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6829. .toolChoose[toolIndex].selectJson.url == "" ||
  6830. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6831. .toolChoose[toolIndex].selectJson.select.length ||
  6832. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6833. .toolChoose[toolIndex].selectJson.answer.length
  6834. ) {
  6835. this.openTools(itemTaskIndex, 41, toolIndex);
  6836. return;
  6837. }
  6838. }
  6839. if (i == 42) {
  6840. if (
  6841. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6842. .toolChoose[toolIndex].answerQ ||
  6843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6844. .toolChoose[toolIndex].answerQ == ""
  6845. ) {
  6846. this.openTools(itemTaskIndex, 42, toolIndex);
  6847. return;
  6848. }
  6849. }
  6850. if (
  6851. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6852. .toolChoose[toolIndex].tool.length > 0
  6853. ) {
  6854. if (
  6855. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6856. itemTaskIndex
  6857. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6858. ) {
  6859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6860. itemTaskIndex
  6861. ].toolChoose[toolIndex].tool.splice(
  6862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6863. itemTaskIndex
  6864. ].toolChoose[toolIndex].tool.indexOf(i),
  6865. 1
  6866. );
  6867. } else {
  6868. // this.$message({
  6869. // message: "每个工具只能添加一个",
  6870. // type: "error",
  6871. // });
  6872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6873. itemTaskIndex
  6874. ].toolChoose[toolIndex].tool = [];
  6875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6876. itemTaskIndex
  6877. ].toolChoose[toolIndex].tool.push(i);
  6878. }
  6879. } else {
  6880. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6881. itemTaskIndex
  6882. ].toolChoose[toolIndex].tool.push(i);
  6883. }
  6884. this.$forceUpdate();
  6885. },
  6886. addAskList() {
  6887. this.askJson.askJson.push({
  6888. askstitle: "",
  6889. askItem: 1,
  6890. checkList: [],
  6891. });
  6892. this.askJson.askCount++;
  6893. },
  6894. addTestList() {
  6895. this.testJson.testJson.push({
  6896. teststitle: "",
  6897. testItem: 1,
  6898. checkList: [],
  6899. answer: [],
  6900. type: "1",
  6901. });
  6902. this.testJson.testCount++;
  6903. },
  6904. deleteAskList(index) {
  6905. this.askJson.askJson.splice(index, 1);
  6906. this.askJson.askCount--;
  6907. },
  6908. deleteTestList(index) {
  6909. this.testJson.testJson.splice(index, 1);
  6910. this.testJson.testCount--;
  6911. },
  6912. addcheckList(json) {
  6913. json.checkList.length++;
  6914. json.askItem++;
  6915. },
  6916. deletecheckList(json) {
  6917. json.checkList.length--;
  6918. json.askItem--;
  6919. },
  6920. addTcheckList(json) {
  6921. json.checkList.length++;
  6922. json.testItem++;
  6923. },
  6924. deleteTcheckList(json) {
  6925. json.checkList.length--;
  6926. json.testItem--;
  6927. },
  6928. checkTestType(type, json) {
  6929. json.type = type;
  6930. json.answer = [];
  6931. },
  6932. addSelectList(json) {
  6933. json.select.push("");
  6934. json.answer.push("");
  6935. },
  6936. deleteSelectList(json) {
  6937. // json.select.length--;
  6938. // json.answer.length--;
  6939. json.select.splice(json.select.length - 1, 1);
  6940. json.answer.splice(json.answer.length - 1, 1);
  6941. },
  6942. addAsk() {
  6943. if (this.askJson.askTitle === "") {
  6944. this.$message.error("标题不能为空!");
  6945. return;
  6946. }
  6947. var aj = this.askJson.askJson;
  6948. var b = 1;
  6949. for (var i = 0; i < aj.length; i++) {
  6950. if (aj[i].askstitle === "") {
  6951. var a = 1;
  6952. for (let index = 0; index < aj[i].askItem; index++) {
  6953. const element = aj[i].checkList[index]
  6954. ? aj[i].checkList[index]
  6955. : "";
  6956. if (element != "") {
  6957. b++;
  6958. this.$message.error(`请将题目${i + 1}填写完整。`);
  6959. return;
  6960. } else {
  6961. a++;
  6962. }
  6963. }
  6964. if (b == 1) {
  6965. this.$message.error("至少填写一个问题");
  6966. return;
  6967. }
  6968. } else if (aj[i].askstitle != "") {
  6969. for (let index = 0; index < aj[i].askItem; index++) {
  6970. const element = aj[i].checkList[index]
  6971. ? aj[i].checkList[index]
  6972. : "";
  6973. var index = 0;
  6974. for (var z = 0; z < aj[i].checkList.length; z++) {
  6975. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6976. if (checkC != "") {
  6977. index++;
  6978. } else {
  6979. this.$message.error(`题目${i + 1}选项不能为空!`);
  6980. return;
  6981. }
  6982. }
  6983. b++;
  6984. if (index < 2) {
  6985. this.$message.error("填写了的题目,选项至少要有两项!");
  6986. return;
  6987. }
  6988. }
  6989. }
  6990. }
  6991. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6992. var elc = el.checkList.filter((element) => {
  6993. return element != "";
  6994. });
  6995. return el.askstitle != "" && elc.length != 0;
  6996. });
  6997. this.dialogVisibleTool = false;
  6998. this.dialogVisibleVote = false;
  6999. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7000. this.taskCount
  7001. ].toolArray.push({
  7002. tool: 56,
  7003. toolDetail: "",
  7004. toolPhoto: "",
  7005. toolEdit: false,
  7006. toolId: this.guid(),
  7007. askJson: JSON.parse(JSON.stringify(this.askJson)),
  7008. });
  7009. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7010. },
  7011. addTest() {
  7012. // if (this.testJson.testTitle === "") {
  7013. // this.$message.error("标题不能为空!");
  7014. // return;
  7015. // }
  7016. var aj = this.testJson.testJson;
  7017. var b = 1;
  7018. for (var i = 0; i < aj.length; i++) {
  7019. if (aj[i].teststitle === "") {
  7020. var a = 1;
  7021. for (let index = 0; index < aj[i].testItem; index++) {
  7022. const element = aj[i].checkList[index]
  7023. ? aj[i].checkList[index]
  7024. : "";
  7025. if (element != "") {
  7026. b++;
  7027. this.$message.error(`请将题目${i + 1}填写完整。`);
  7028. return;
  7029. } else {
  7030. a++;
  7031. }
  7032. }
  7033. if (b == 1) {
  7034. this.$message.error("至少填写一个问题");
  7035. return;
  7036. }
  7037. } else if (aj[i].teststitle != "") {
  7038. for (let index = 0; index < aj[i].testItem; index++) {
  7039. const element = aj[i].checkList[index]
  7040. ? aj[i].checkList[index]
  7041. : "";
  7042. var index = 0;
  7043. for (var z = 0; z < aj[i].checkList.length; z++) {
  7044. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7045. if (checkC != "") {
  7046. index++;
  7047. } else {
  7048. this.$message.error(`题目${i + 1}选项不能为空!`);
  7049. return;
  7050. }
  7051. }
  7052. b++;
  7053. if (index < 2) {
  7054. this.$message.error("填写了的题目,选项至少要有两项!");
  7055. return;
  7056. }
  7057. if (
  7058. (aj[i].type == "2" && !aj[i].answer.length) ||
  7059. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  7060. ) {
  7061. this.$message.error("有题目未选择答案请选择答案");
  7062. return;
  7063. }
  7064. }
  7065. }
  7066. }
  7067. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  7068. var elc = el.checkList.filter((element) => {
  7069. return element != "";
  7070. });
  7071. return el.teststitle != "" && elc.length != 0;
  7072. });
  7073. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7074. this.taskCount
  7075. ].toolChoose[this.toolIndex].testJson = this.testJson;
  7076. this.dialogVisibleChoice = false;
  7077. if (
  7078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7079. .toolChoose[this.toolIndex].tool != 45
  7080. ) {
  7081. this.addTools(45, this.taskCount, this.toolIndex);
  7082. }
  7083. },
  7084. addAnswer() {
  7085. if (this.answerQ == "") {
  7086. this.$message.error("请输入您想要问的问题");
  7087. return;
  7088. }
  7089. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7090. // this.taskCount
  7091. // ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7093. this.taskCount
  7094. ].toolArray.push({
  7095. tool: 15,
  7096. toolDetail: "",
  7097. toolPhoto: "",
  7098. toolEdit: false,
  7099. toolId: this.guid(),
  7100. answerQ: this.answerQ,
  7101. });
  7102. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7103. this.$forceUpdate();
  7104. this.dialogVisibleTool = false;
  7105. this.dialogVisible8 = false;
  7106. // if (
  7107. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7108. // .toolChoose[this.toolIndex].tool != 15
  7109. // ) {
  7110. // this.addTools(15, this.taskCount, this.toolIndex);
  7111. // }
  7112. },
  7113. addText() {
  7114. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7115. this.$message.error("请填写信息!");
  7116. return;
  7117. }
  7118. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7119. this.taskCount
  7120. ].toolArray.push({
  7121. tool: 52,
  7122. toolDetail: "",
  7123. toolPhoto: "",
  7124. toolEdit: false,
  7125. toolId: this.guid(),
  7126. text: this.tableJson.text,
  7127. });
  7128. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7129. this.$forceUpdate();
  7130. this.dialogVisibleTool = false;
  7131. this.dialogVisibleText = false;
  7132. setTimeout(() => {
  7133. // this.openToolFun(52, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7134. // this.taskCount
  7135. // ].toolArray.length-1)
  7136. this.toolIndex =
  7137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7138. .toolArray.length - 1;
  7139. this.addTextJson();
  7140. }, 500);
  7141. // if (
  7142. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7143. // .toolChoose[this.toolIndex].tool != 15
  7144. // ) {
  7145. // this.addTools(15, this.taskCount, this.toolIndex);
  7146. // }
  7147. },
  7148. addTable() {
  7149. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7150. this.$message.error("请填写信息!");
  7151. return;
  7152. }
  7153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7154. this.taskCount
  7155. ].toolArray.push({
  7156. tool: 48,
  7157. toolDetail: "",
  7158. toolPhoto: "",
  7159. toolEdit: false,
  7160. toolId: this.guid(),
  7161. table: this.tableJson.text,
  7162. });
  7163. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  7164. this.$forceUpdate();
  7165. this.dialogVisibleTool = false;
  7166. this.dialogVisibleTable1 = false;
  7167. setTimeout(() => {
  7168. // this.openToolFun(48, this.taskCount, this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7169. // this.taskCount
  7170. // ].toolArray.length-1)
  7171. this.toolIndex =
  7172. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7173. .toolArray.length - 1;
  7174. this.addTableJson();
  7175. }, 500);
  7176. // if (
  7177. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7178. // .toolChoose[this.toolIndex].tool != 15
  7179. // ) {
  7180. // this.addTools(15, this.taskCount, this.toolIndex);
  7181. // }
  7182. },
  7183. addMp3Answer() {
  7184. if (this.answerQ == "") {
  7185. this.$message.error("请输入您想要回答的问题");
  7186. return;
  7187. }
  7188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7189. this.taskCount
  7190. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7191. this.dialogVisibleMp3 = false;
  7192. },
  7193. addRateAnswer() {
  7194. var a = 1;
  7195. for (var i = 0; i < this.rateJson.length; i++) {
  7196. if (this.rateJson[i].value == "") {
  7197. a = 2;
  7198. break;
  7199. }
  7200. }
  7201. if (a == 2) {
  7202. this.$message.error("请把评价信息填写完整");
  7203. return;
  7204. }
  7205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7206. this.taskCount
  7207. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7208. this.dialogVisibleRate = false;
  7209. if (
  7210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7211. .toolChoose[this.toolIndex].tool != 40
  7212. ) {
  7213. this.addTools(40, this.taskCount, this.toolIndex);
  7214. }
  7215. },
  7216. addSelectAnswer() {
  7217. if (this.selectJson.url == "") {
  7218. this.$message.error("请上传题目");
  7219. return;
  7220. }
  7221. if (!this.selectJson.select.length) {
  7222. this.$message.error("请添加选项");
  7223. return;
  7224. }
  7225. if (!this.selectJson.answer.length) {
  7226. this.$message.error("请设置答案");
  7227. return;
  7228. }
  7229. var a = 1;
  7230. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7231. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7232. a = 2;
  7233. }
  7234. }
  7235. if (a == 2) {
  7236. this.$message.error("请设置答案");
  7237. return;
  7238. }
  7239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7240. this.taskCount
  7241. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7242. this.dialogVisibleSelect = false;
  7243. if (
  7244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7245. .toolChoose[this.toolIndex].tool != 41
  7246. ) {
  7247. this.addTools(41, this.taskCount, this.toolIndex);
  7248. }
  7249. },
  7250. nextSelectSteps() {
  7251. if (this.selectJson.url == "") {
  7252. this.$message.error("请上传题目");
  7253. return;
  7254. }
  7255. if (!this.selectJson.select.length) {
  7256. this.$message.error("请添加选项");
  7257. return;
  7258. }
  7259. var a = 1;
  7260. for (var i = 0; i < this.selectJson.select.length; i++) {
  7261. if (!this.selectJson.select[i]) {
  7262. a = 2;
  7263. }
  7264. }
  7265. if (a == 2) {
  7266. this.$message.error("添加的选项不能为空");
  7267. return;
  7268. }
  7269. this.selectSteps++;
  7270. },
  7271. selectCourseDetail() {
  7272. if (this.cid == "" || this.cid == undefined) {
  7273. console.log("这是新增项目");
  7274. this.selectAllType();
  7275. this.cidttt = 0;
  7276. } else {
  7277. this.cidType = 1;
  7278. let params = {
  7279. cid: this.cid,
  7280. };
  7281. this.ajax
  7282. .get(this.$store.state.api + "select_student_course_detail2", params)
  7283. .then((res) => {
  7284. this.loading = true;
  7285. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7286. for (var j in this.unitJson) {
  7287. for (var i in this.unitJson[j].chapterInfo) {
  7288. this.unitJson[j].chapterInfo[i].taskJson[
  7289. this.taskCount
  7290. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  7291. this.taskCount
  7292. ].toolChoose
  7293. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  7294. .toolChoose
  7295. : [];
  7296. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  7297. let _chapterData = [];
  7298. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  7299. .chapterData) {
  7300. if (
  7301. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  7302. ) {
  7303. _chapterData.push(
  7304. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  7305. c
  7306. ]
  7307. );
  7308. }
  7309. }
  7310. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  7311. _chapterData;
  7312. let _task = this.unitJson[j].chapterInfo[i].taskJson[k].toolArray
  7313. for (var _tool = 0; _tool < _task.length; _tool++) {
  7314. delete _task[_tool].proVisible
  7315. }
  7316. }
  7317. }
  7318. }
  7319. this.courseName = res.data[0][0].title;
  7320. this.courseText = res.data[0][0].brief;
  7321. this.evalua = res.data[0][0].evaId;
  7322. this.cover = JSON.parse(res.data[0][0].cover);
  7323. this.noneBtnImg = this.cover.length >= 1;
  7324. // this.checkboxList =
  7325. // res.data[0][0].course_student.length > 0
  7326. // ? JSON.parse(res.data[0][0].course_student)
  7327. // : [];
  7328. this.checkboxList2 = res.data[0][0].juri
  7329. ? res.data[0][0].juri.split(",")
  7330. : [];
  7331. this.checkboxList3 = res.data[0][0].course_teacher
  7332. ? res.data[0][0].course_teacher.split(",")
  7333. : [];
  7334. this.checkboxListPeople = res.data[0][0].course_teacher
  7335. ? res.data[0][0].course_teacher.split(",")
  7336. : [];
  7337. // this.isTeacherSee =
  7338. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7339. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7340. this.myWord = res.data[0][0].template;
  7341. this.templateC.id = "123";
  7342. this.courseUserid = res.data[0][0].userid;
  7343. this.nbOrder = res.data[0][0].ordernumber;
  7344. if (res.data[1].length) {
  7345. this.courseTypeId = [];
  7346. for (var i = 0; i < res.data[1].length; i++) {
  7347. this.courseTypeId.push(res.data[1][i].typeid);
  7348. }
  7349. }
  7350. console.log(this.courseTypeId);
  7351. // if (this.timer) clearInterval(this.timer);
  7352. if (this.timer) clearTimeout(this.timer);
  7353. this.timer = null;
  7354. // this.timer = setInterval(() => {
  7355. this.seleteCourseUpdate();
  7356. this.setMan();
  7357. this.selectAllType();
  7358. // }, 5000);
  7359. this.$forceUpdate();
  7360. setTimeout(() => {
  7361. this.checkEva(this.evalua);
  7362. }, 0);
  7363. })
  7364. .catch((err) => {
  7365. console.error(err);
  7366. });
  7367. }
  7368. },
  7369. seleteCourseUpdate() {
  7370. let params = {
  7371. cid: this.cid,
  7372. };
  7373. this.ajax
  7374. .get(this.$store.state.api + "select_student_course_detail", params)
  7375. .then((res) => {
  7376. console.log(res.data[2]);
  7377. let unitJson = this.unitJson;
  7378. let works = res.data[2];
  7379. for (var i = 0; i < unitJson.length; i++) {
  7380. let task = unitJson[i].chapterInfo[0].taskJson;
  7381. for (var j = 0; j < task.length; j++) {
  7382. var tool = task[j].toolArray;
  7383. for (var z = 0; z < tool.length; z++) {
  7384. let _tool = tool[z];
  7385. _tool.toolPhoto = [];
  7386. _tool.people = [];
  7387. this.checkJson[z] = [];
  7388. let checkPeople = 0;
  7389. for (var k = 0; k < works.length; k++) {
  7390. let _work = works[k];
  7391. if (
  7392. _work.stage == i &&
  7393. _work.task == j &&
  7394. _work.tool == z &&
  7395. _work.atool == _tool.tool
  7396. ) {
  7397. if (_tool.tool == 48 || _tool.tool == 52) {
  7398. _tool.toolPhoto[0] = _work;
  7399. if (_tool.people.indexOf(_work.username) == -1) {
  7400. _tool.people.push(_work.username);
  7401. }
  7402. } else {
  7403. _tool.toolPhoto.push(_work);
  7404. }
  7405. if (_tool.tool == 56) {
  7406. checkPeople++;
  7407. var checkL = JSON.parse(_work.content);
  7408. for (var kz = 0; kz < checkL.length; kz++) {
  7409. if (!this.checkJson[z][kz]) {
  7410. this.checkJson[z].push({
  7411. checkCount: [],
  7412. checkPerson: [],
  7413. rightPerson: [],
  7414. });
  7415. }
  7416. if (!this.checkJson[z][kz].checkCount.length) {
  7417. this.checkJson[z][kz].checkCount = [];
  7418. let _askItemCount = _tool.askJson.askJson[kz].askItem;
  7419. for (var aic = 0; aic < _askItemCount; aic++) {
  7420. this.checkJson[z][kz].checkCount.push(0);
  7421. }
  7422. }
  7423. this.checkJson[z][kz].checkPerson[parseInt(checkL[kz])]
  7424. ? this.checkJson[z][kz].checkPerson[
  7425. parseInt(checkL[kz])
  7426. ].push(_work.username)
  7427. : (this.checkJson[z][kz].checkPerson[
  7428. parseInt(checkL[kz])
  7429. ] = [_work.username]);
  7430. this.checkJson[z][kz].checkCount[parseInt(checkL[kz])]
  7431. ? this.checkJson[z][kz].checkCount[
  7432. parseInt(checkL[kz])
  7433. ]++
  7434. : (this.checkJson[z][kz].checkCount[
  7435. parseInt(checkL[kz])
  7436. ] = 1);
  7437. }
  7438. }
  7439. }
  7440. }
  7441. for (var kz = 0; kz < this.checkJson[z].length; kz++) {
  7442. this.checkJson[z][kz].checkPerent = [];
  7443. let aaaa = this.checkJson[z][kz];
  7444. console.log(aaaa);
  7445. for (
  7446. var kc = 0;
  7447. kc < this.checkJson[z][kz].checkCount.length;
  7448. kc++
  7449. ) {
  7450. this.checkJson[z][kz].checkPerent.push(
  7451. Math.round(
  7452. (this.checkJson[z][kz].checkCount[kc] / checkPeople) *
  7453. 100
  7454. )
  7455. );
  7456. }
  7457. }
  7458. }
  7459. }
  7460. }
  7461. this.$forceUpdate();
  7462. if (this.cidttt === 1) {
  7463. let unitJson2 = JSON.parse(res.data[0][0].chapters);
  7464. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7465. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7466. let _unitJson = [];
  7467. let _chapAarry = [];
  7468. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7469. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7470. let index = 1;
  7471. let chapindex;
  7472. if (_unitJson2.length > unitJson2.length) {
  7473. for (let c = 0; c < _unitJson2.length; c++) {
  7474. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7475. }
  7476. for (let j = 0; j < unitJson2.length; j++) {
  7477. let count = 0;
  7478. for (let k = 0; k < _unitJson2.length; k++) {
  7479. if (
  7480. unitJson2[j].chapterInfo[0].chapterid ==
  7481. _unitJson2[k].chapterInfo[0].chapterid
  7482. ) {
  7483. count++;
  7484. _chapAarry.splice(
  7485. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7486. 1
  7487. );
  7488. _unitJson.push(unitJson2[j]);
  7489. break;
  7490. }
  7491. }
  7492. }
  7493. for (let k = 0; k < _unitJson2.length; k++) {
  7494. if (_unitJson2[k].isUpdate == 1) {
  7495. _chapAarry.splice(
  7496. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7497. 1
  7498. );
  7499. _unitJson.push(_unitJson2[k]);
  7500. }
  7501. }
  7502. console.log(_chapAarry);
  7503. for (let d = 0; d < _unitJson2.length; d++) {
  7504. if (
  7505. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7506. ) {
  7507. if (_unitIndex == d) {
  7508. index = 2;
  7509. }
  7510. chapindex = d;
  7511. }
  7512. }
  7513. } else {
  7514. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7515. }
  7516. for (let i = 0; i < unitJson2.length; i++) {
  7517. if (
  7518. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7519. _unitJson[i].chapterInfo[0].chapterid !=
  7520. unitJson2[i].chapterInfo[0].chapterid
  7521. ) {
  7522. if (i == _unitJson.length - 1) {
  7523. _unitIndex2++;
  7524. }
  7525. _unitJson.splice(i, 0, unitJson2[i]);
  7526. } else if (i > _unitJson.length - 1) {
  7527. _unitJson.push(unitJson2[i]);
  7528. } else if (
  7529. _unitJson[i].chapterInfo[0].chapterid ==
  7530. unitJson2[i].chapterInfo[0].chapterid
  7531. ) {
  7532. _unitJson[i] = unitJson2[i];
  7533. }
  7534. }
  7535. if (_chapAarry.length && index != 2) {
  7536. if (chapindex < _unitIndex) {
  7537. this.isDelete = 2;
  7538. _unitIndex2--;
  7539. } else if (
  7540. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7541. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7542. ) {
  7543. this.isDelete = 2;
  7544. for (let n = 0; n < _unitJson.length; n++) {
  7545. if (
  7546. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7547. _unitJson[n].chapterInfo[0].chapterid
  7548. ) {
  7549. _unitIndex2 = n;
  7550. _unitJson[n] = _unitJson2[_unitIndex];
  7551. break;
  7552. }
  7553. }
  7554. }
  7555. } else if (index != 2) {
  7556. _unitJson2[_unitIndex];
  7557. for (
  7558. var ci = 0;
  7559. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7560. ci++
  7561. ) {
  7562. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7563. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7564. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7565. .toolChoose
  7566. : [];
  7567. let _chapterData = [];
  7568. for (
  7569. var c = 0;
  7570. c <
  7571. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7572. .length;
  7573. c++
  7574. ) {
  7575. if (
  7576. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7577. .chapterData[c]
  7578. ) {
  7579. _chapterData.push(
  7580. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7581. .chapterData[c]
  7582. );
  7583. }
  7584. }
  7585. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7586. _chapterData;
  7587. }
  7588. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7589. }
  7590. if (index == 1) {
  7591. if (this.unitJson.length == _unitJson.length) {
  7592. for (var ui = 0; ui < _unitJson.length; ui++) {
  7593. let keys = Object.keys(this.unitJson[ui].chapterInfo[0])
  7594. for (let ki = 0; ki < keys.length; ki++) {
  7595. if (keys[ki] != "taskJson") {
  7596. this.unitJson[ui].chapterInfo[0][keys[ki]] = _unitJson[ui].chapterInfo[0][keys[ki]]
  7597. }
  7598. }
  7599. let _taskJson2 = _unitJson[ui].chapterInfo[0].taskJson
  7600. if (this.unitJson[ui].chapterInfo[0].taskJson.length == _taskJson2.length) {
  7601. for (let ti = 0; ti < _taskJson2.length; ti++) {
  7602. let tkeys = Object.keys(_taskJson2[ti])
  7603. for (let ki = 0; ki < tkeys.length; ki++) {
  7604. if (tkeys[ki] != "toolArray") {
  7605. this.unitJson[ui].chapterInfo[0].taskJson[ti][keys[ki]] = _unitJson[ui].chapterInfo[0].taskJson[ti][tkeys[ki]]
  7606. }
  7607. }
  7608. let _toolArray2 = _taskJson2[ti].toolArray
  7609. if (this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray.length == _toolArray2.length) {
  7610. for (let tooli = 0; tooli < _toolArray2.length; tooli++) {
  7611. let toolkeys = Object.keys(_toolArray2[tooli])
  7612. for (let kooli = 0; kooli < toolkeys.length; kooli++) {
  7613. if (toolkeys[kooli] != "toolPhoto" && toolkeys[kooli] != "toolData") {
  7614. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]] = _unitJson[ui].chapterInfo[0].taskJson[ti].toolArray[tooli][toolkeys[kooli]]
  7615. }
  7616. }
  7617. }
  7618. } else {
  7619. this.unitJson[ui].chapterInfo[0].taskJson[ti].toolArray = _toolArray2
  7620. }
  7621. }
  7622. } else {
  7623. this.unitJson[ui].chapterInfo[0].taskJson = _taskJson2
  7624. }
  7625. }
  7626. } else {
  7627. this.unitJson = _unitJson
  7628. }
  7629. this.$forceUpdate();
  7630. setTimeout(() => {
  7631. if (this.unitIndex != _unitIndex2) {
  7632. this.isDelete = 2;
  7633. this.unitIndex = _unitIndex2;
  7634. }
  7635. }, 0);
  7636. this.timer = setTimeout(() => {
  7637. this.seleteCourseUpdate();
  7638. }, 1000);
  7639. } else if (index == 2) {
  7640. let _this = this;
  7641. _this
  7642. .$confirm(
  7643. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7644. "提示",
  7645. {
  7646. confirmButtonText: "需要",
  7647. cancelButtonText: "取消",
  7648. type: "warning",
  7649. }
  7650. )
  7651. .then(() => {
  7652. if (_this.time()) {
  7653. _this.restoreWork(
  7654. _chapAarry[0],
  7655. _unitJson,
  7656. chapindex,
  7657. _unitJson2,
  7658. _unitIndex2
  7659. );
  7660. }
  7661. })
  7662. .catch(() => {
  7663. _this.unitJson = _unitJson;
  7664. _this.$forceUpdate();
  7665. setTimeout(() => {
  7666. if (this.unitIndex != _unitIndex2) {
  7667. this.isDelete = 2;
  7668. this.unitIndex = _unitIndex2;
  7669. }
  7670. }, 0);
  7671. _this.timer = setTimeout(() => {
  7672. _this.seleteCourseUpdate();
  7673. }, 1000);
  7674. });
  7675. }
  7676. } else {
  7677. this.$forceUpdate();
  7678. if (this.timer) {
  7679. clearTimeout(this.timer);
  7680. this.timer = null;
  7681. }
  7682. this.timer = setTimeout(() => {
  7683. this.seleteCourseUpdate();
  7684. }, 1000);
  7685. }
  7686. })
  7687. .catch((err) => {
  7688. console.error(err);
  7689. });
  7690. },
  7691. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7692. let params = [
  7693. {
  7694. cid: this.cid,
  7695. chapters: JSON.stringify(this.unitJson),
  7696. uid: this.userid,
  7697. chapid: chapid,
  7698. },
  7699. ];
  7700. this.ajax
  7701. .post(this.$store.state.api + "restoreStudentWork", params)
  7702. .then((res) => {
  7703. this.$message({
  7704. message: "恢复成功",
  7705. type: "success",
  7706. });
  7707. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7708. this.unitJson = unitJson;
  7709. this.$forceUpdate();
  7710. setTimeout(() => {
  7711. if (this.unitIndex != unitIndex2) {
  7712. this.isDelete = 2;
  7713. this.unitIndex = unitIndex2;
  7714. }
  7715. }, 0);
  7716. this.timer = setTimeout(() => {
  7717. this.seleteCourseUpdate();
  7718. }, 1000);
  7719. })
  7720. .catch((err) => {
  7721. this.$message.error("网络不佳");
  7722. console.error(err);
  7723. });
  7724. },
  7725. getTypeName() {
  7726. console.log(this.courseTypeId);
  7727. this.$forceUpdate();
  7728. },
  7729. selectAllType() {
  7730. let params = {
  7731. org: this.org && this.org != "" ? this.org : "",
  7732. oid: this.oid && this.oid != "" ? this.oid : "",
  7733. };
  7734. this.ajax
  7735. .get(this.$store.state.api + "selectAllTypeS", params)
  7736. .then((res) => {
  7737. this.CourseType = res.data;
  7738. let _courseTypeId = [];
  7739. for (var i = 0; i < res.data[0].length; i++) {
  7740. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7741. res.data[0][i].name = "赛道";
  7742. } else if (res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5") {
  7743. res.data[0][i].name = "主题";
  7744. } else if (res.data[0][i].id == "34628934-d02f-11ec-8c78-005056b86db5") {
  7745. res.data[0][i].name = "年级";
  7746. }
  7747. if (!this.cid) {
  7748. this.courseTypeId[res.data[0][i].id] = "";
  7749. }
  7750. this.CourseTypeJson[res.data[0][i].id] = [];
  7751. if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
  7752. if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
  7753. this.CourseType[0][i].name = "项目类型";
  7754. }
  7755. } else if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7756. } else {
  7757. if (res.data[0][i].name == "赛道") {
  7758. this.CourseType[0][i].name = "学科";
  7759. }
  7760. }
  7761. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7762. if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
  7763. for (var j = 0; j < res.data[1].length; j++) {
  7764. if (
  7765. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7766. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7767. ) {
  7768. _courseTypeId.push(res.data[1][j].id);
  7769. }
  7770. if (res.data[0][i].id == res.data[1][j].pid) {
  7771. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7772. }
  7773. }
  7774. } else {
  7775. // this.CourseType = []
  7776. for (var j = 0; j < res.data[1].length; j++) {
  7777. if (
  7778. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7779. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7780. ) {
  7781. _courseTypeId.push(res.data[1][j].id);
  7782. }
  7783. if (res.data[0][i].id == res.data[1][j].pid) {
  7784. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7785. }
  7786. }
  7787. }
  7788. } else {
  7789. if (res.data[2].length > 0) {
  7790. for (var j = 0; j < res.data[2].length; j++) {
  7791. if (
  7792. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7793. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7794. ) {
  7795. _courseTypeId.push(res.data[2][j].id);
  7796. }
  7797. if (res.data[0][i].id == res.data[2][j].pid) {
  7798. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7799. }
  7800. }
  7801. }
  7802. if (res.data[3].length > 0) {
  7803. for (var j = 0; j < res.data[3].length; j++) {
  7804. if (
  7805. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7806. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7807. ) {
  7808. _courseTypeId.push(res.data[3][j].id);
  7809. }
  7810. if (res.data[0][i].id == res.data[3][j].pid) {
  7811. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7812. }
  7813. }
  7814. }
  7815. }
  7816. }
  7817. this.courseTypeId = _courseTypeId;
  7818. })
  7819. .catch((err) => {
  7820. console.error(err);
  7821. });
  7822. },
  7823. selectType() {
  7824. this.ajax
  7825. .get(this.$store.state.api + "selectStudentType")
  7826. .then((res) => {
  7827. this.CourseType = res.data;
  7828. for (var i = 0; i < res.data[0].length; i++) {
  7829. if (!this.cid) {
  7830. this.courseTypeId[res.data[0][i].id] = "";
  7831. }
  7832. for (var j = 0; j < res.data[1].length; j++) {
  7833. if (res.data[0][i].id == res.data[1][j].pid) {
  7834. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7835. this.CourseTypeJson[res.data[0][i].id] = [];
  7836. }
  7837. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7838. }
  7839. }
  7840. }
  7841. this.selectTypeByOid();
  7842. this.selectTypeByOrg();
  7843. })
  7844. .catch((err) => {
  7845. console.error(err);
  7846. });
  7847. },
  7848. selectTypeByOid() {
  7849. let params = {
  7850. oid: this.oid,
  7851. };
  7852. this.ajax
  7853. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7854. .then((res) => {
  7855. for (var i = 0; i < res.data[0].length; i++) {
  7856. for (var j = 0; j < res.data[1].length; j++) {
  7857. if (res.data[0][i].id == res.data[1][j].pid) {
  7858. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7859. this.CourseTypeJson[res.data[0][i].id] = [];
  7860. }
  7861. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7862. }
  7863. }
  7864. }
  7865. })
  7866. .catch((err) => {
  7867. console.error(err);
  7868. });
  7869. },
  7870. selectTypeByOrg() {
  7871. let params = {
  7872. oid: this.org,
  7873. };
  7874. this.ajax
  7875. .get(this.$store.state.api + "selectStudentTypeByOid", params)
  7876. .then((res) => {
  7877. for (var i = 0; i < res.data[0].length; i++) {
  7878. for (var j = 0; j < res.data[1].length; j++) {
  7879. if (res.data[0][i].id == res.data[1][j].pid) {
  7880. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7881. this.CourseTypeJson[res.data[0][i].id] = [];
  7882. }
  7883. this.CourseTypeJson[res.data[0][i].id].unshift(res.data[1][j]);
  7884. }
  7885. }
  7886. }
  7887. this.$forceUpdate();
  7888. })
  7889. .catch((err) => {
  7890. console.error(err);
  7891. });
  7892. },
  7893. OtherMb(type) {
  7894. this.typeMode = type;
  7895. setTimeout(() => {
  7896. this.checkEva(this.checkId);
  7897. }, 0);
  7898. },
  7899. checkEva(id) {
  7900. this.selectEva();
  7901. this.evalua = id;
  7902. this.checkId = id;
  7903. if (this.evalua != "") {
  7904. for (var i = 0; i < this.evaJuri.length; i++) {
  7905. if (this.evalua == this.evaJuri[i].id) {
  7906. this.eTitle = this.evaJuri[i].title;
  7907. this.eJson = JSON.parse(this.evaJuri[i].content);
  7908. }
  7909. }
  7910. this.data.data = [];
  7911. this.$forceUpdate();
  7912. setTimeout(() => {
  7913. this.setMindData();
  7914. }, 500);
  7915. }
  7916. },
  7917. selectEva() {
  7918. let params = {
  7919. oid: this.oid,
  7920. };
  7921. this.ajax
  7922. .get(this.$store.state.api + "selectAllEvaluation", params)
  7923. .then((res) => {
  7924. this.evaJuri = res.data[0];
  7925. })
  7926. .catch((err) => {
  7927. console.error(err);
  7928. });
  7929. },
  7930. setMindData() {
  7931. let targetArray = [];
  7932. this.data.data = [];
  7933. this.data.data.push({
  7934. id: "root",
  7935. isroot: true,
  7936. topic: this.eTitle,
  7937. });
  7938. let _eJson = Object.keys(this.eJson);
  7939. let _e = this.eJson;
  7940. for (let i = 0; i < _eJson.length; i++) {
  7941. let element = _e[_eJson[i]];
  7942. this.data.data.push({
  7943. id: element.id,
  7944. parentid: "root",
  7945. topic: element.name,
  7946. });
  7947. // targetArray.push({
  7948. // id: element.id,
  7949. // parentid: "root",
  7950. // name: element.name,
  7951. // });
  7952. targetArray.push({
  7953. value: element.name,
  7954. label: element.name,
  7955. children: [],
  7956. });
  7957. let _eJsonc = Object.keys(element.child);
  7958. let _e2 = element.child;
  7959. for (let j = 0; j < _eJsonc.length; j++) {
  7960. let _ec = _e2[_eJsonc[j]];
  7961. this.data.data.push({
  7962. id: _ec.id,
  7963. parentid: element.id,
  7964. topic: _ec.name,
  7965. });
  7966. // targetArray.push({
  7967. // id: _ec.id,
  7968. // parentid: element.id,
  7969. // name: _ec.name,
  7970. // });
  7971. targetArray[i].children.push({
  7972. value: _ec.name,
  7973. label: _ec.name,
  7974. children: [],
  7975. });
  7976. let _eJsonz = Object.keys(_ec.child);
  7977. let _e3 = _ec.child;
  7978. for (let z = 0; z < _eJsonz.length; z++) {
  7979. let _ez = _e3[_eJsonz[z]];
  7980. this.data.data.push({
  7981. id: _ez.id,
  7982. parentid: _ec.id,
  7983. topic: _ez.name,
  7984. });
  7985. // targetArray.push({
  7986. // id: _ez.id,
  7987. // parentid: _ec.id,
  7988. // name: _ez.name,
  7989. // });
  7990. targetArray[i].children[j].children.push({
  7991. value: _ez.name,
  7992. label: _ez.name,
  7993. });
  7994. }
  7995. }
  7996. }
  7997. this.targetArray = targetArray;
  7998. this.$forceUpdate();
  7999. },
  8000. /*添加评价 */
  8001. addEList(index, tIndex) {
  8002. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8003. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8004. value: "",
  8005. detail: "",
  8006. score: 5,
  8007. })
  8008. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8009. {
  8010. value: "",
  8011. detail: "",
  8012. score: 5,
  8013. },
  8014. ]);
  8015. this.$forceUpdate();
  8016. },
  8017. forceUpdate() {
  8018. this.$forceUpdate();
  8019. },
  8020. deletEList(index, tIndex, eIndex) {
  8021. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8022. eIndex,
  8023. 1
  8024. );
  8025. this.$forceUpdate();
  8026. },
  8027. getChoosePic(t) {
  8028. this.chooseType = t;
  8029. this.getAllBanner();
  8030. },
  8031. getAllBanner() {
  8032. this.sysPicVisible = true;
  8033. let params = {
  8034. t: this.chooseType,
  8035. };
  8036. this.ajax
  8037. .get(this.$store.state.api + "selectAllBanner", params)
  8038. .then((res) => {
  8039. this.sysPic = res.data[0];
  8040. })
  8041. .catch((err) => {
  8042. console.error(err);
  8043. });
  8044. },
  8045. deleteSysPic() {
  8046. this.cover = [];
  8047. this.isSysPic = false;
  8048. },
  8049. deleteSelectPic() {
  8050. this.selectJson.url = "";
  8051. },
  8052. setEListStar() {
  8053. this.$forceUpdate();
  8054. },
  8055. deletRateList(i) {
  8056. this.rateJson.splice(i, 1);
  8057. },
  8058. addRateList() {
  8059. this.rateJson.push({
  8060. detail: "",
  8061. score: 5,
  8062. value: "",
  8063. });
  8064. },
  8065. addSt() {
  8066. this.sentenceList.push({
  8067. sentenceTitle: "",
  8068. addSentence: [],
  8069. rightAnswer: [],
  8070. });
  8071. },
  8072. addSen(i) {
  8073. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8074. // this.isPushTitleList.push(this.sentenceTitle);
  8075. this.sentenceList[i].sentenceTitle = "";
  8076. },
  8077. setRightAnswer(s, i, j) {
  8078. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8079. this.sentenceList[i].rightAnswer.push(s);
  8080. }
  8081. },
  8082. returnCard(r, i, j) {
  8083. this.sentenceList[i].rightAnswer.splice(j, 1);
  8084. },
  8085. addSentenceTool() {
  8086. for (var i = 0; i < this.sentenceList.length; i++) {
  8087. if (this.sentenceList[i].rightAnswer.length == 0) {
  8088. this.$message.error("请将信息填写完整!");
  8089. return;
  8090. }
  8091. if (
  8092. this.sentenceList[i].addSentence.length !=
  8093. this.sentenceList[i].rightAnswer.length
  8094. ) {
  8095. this.$message.error("请将信息填写完整!");
  8096. return;
  8097. }
  8098. }
  8099. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8100. this.taskCount
  8101. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8102. this.sentenceList = [
  8103. {
  8104. sentenceTitle: "",
  8105. addSentence: [],
  8106. rightAnswer: [],
  8107. },
  8108. ];
  8109. this.dialogVisibleSentence = false;
  8110. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8111. // itemTaskIndex
  8112. // ].toolChoose[toolIndex].tool = [];
  8113. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8114. // itemTaskIndex
  8115. // ].toolChoose[toolIndex].tool.push(i);
  8116. if (
  8117. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8118. .toolChoose[this.toolIndex].tool != 47
  8119. ) {
  8120. this.addTools(47, this.taskCount, this.toolIndex);
  8121. }
  8122. },
  8123. addTableJson() {
  8124. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8125. this.$message.error("请填写信息!");
  8126. return;
  8127. }
  8128. let params = [
  8129. {
  8130. uid: this.userid,
  8131. cid: this.courseId,
  8132. stage: this.unitIndex,
  8133. task: this.taskCount,
  8134. tool: this.toolIndex,
  8135. content: JSON.stringify(this.tableJson.text),
  8136. type: 10,
  8137. atool: 48,
  8138. },
  8139. ];
  8140. this.ajax
  8141. .post(this.$store.state.api + "addCourseWorksS", params)
  8142. .then((res) => {
  8143. this.$message({
  8144. message: "提交成功",
  8145. type: "success",
  8146. });
  8147. this.seleteCourseUpdate();
  8148. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8149. this.dialogVisibleTable = false;
  8150. })
  8151. .catch((err) => {
  8152. this.$message.error("提交失败");
  8153. console.error(err);
  8154. });
  8155. },
  8156. addStudentAsk() {
  8157. if (!this.radio.length) {
  8158. this.$message.error("请选择选项");
  8159. return;
  8160. }
  8161. for (var i = 0; i < this.askJson.askCount; i++) {
  8162. if (this.radio[i] !== 0 && !this.radio[i]) {
  8163. this.$message.error("请选择选项");
  8164. return;
  8165. }
  8166. }
  8167. let params = [
  8168. {
  8169. uid: this.userid,
  8170. cid: this.courseId,
  8171. stage: this.unitIndex,
  8172. task: this.taskCount,
  8173. tool: this.toolIndex,
  8174. content: JSON.stringify(this.radio),
  8175. type: 14,
  8176. atool: 56,
  8177. },
  8178. ];
  8179. this.ajax
  8180. .post(this.$store.state.api + "addCourseWorksS", params)
  8181. .then((res) => {
  8182. this.$message({
  8183. message: "提交成功",
  8184. type: "success",
  8185. });
  8186. this.radio = [];
  8187. this.seleteCourseUpdate();
  8188. this.dialogVisibleVote2 = false;
  8189. })
  8190. .catch((err) => {
  8191. this.$message.error("提交失败");
  8192. console.error(err);
  8193. });
  8194. },
  8195. addTextJson() {
  8196. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8197. this.$message.error("请填写信息!");
  8198. return;
  8199. }
  8200. let params = [
  8201. {
  8202. uid: this.userid,
  8203. cid: this.courseId,
  8204. stage: this.unitIndex,
  8205. task: this.taskCount,
  8206. tool: this.toolIndex,
  8207. content: JSON.stringify(this.tableJson.text),
  8208. type: 12,
  8209. atool: 52,
  8210. },
  8211. ];
  8212. this.ajax
  8213. .post(this.$store.state.api + "addCourseWorksS", params)
  8214. .then((res) => {
  8215. this.$message({
  8216. message: "提交成功",
  8217. type: "success",
  8218. });
  8219. this.tableJson.text = "";
  8220. this.seleteCourseUpdate();
  8221. this.setPeople(this.unitIndex, this.taskCount, this.userid);
  8222. this.dialogVisibleText3 = false;
  8223. })
  8224. .catch((err) => {
  8225. this.$message.error("提交失败");
  8226. console.error(err);
  8227. });
  8228. },
  8229. setPeople(i, task, uid) {
  8230. if (this.checkboxList3.indexOf(uid) == -1 && uid != this.courseUserid) {
  8231. this.checkboxList3.push(uid);
  8232. this.setMan();
  8233. }
  8234. // debugger
  8235. if (
  8236. this.unitJson[i].chapterInfo[0].taskJson[task].people != uid &&
  8237. (!this.unitJson[i].chapterInfo[0].taskJson[task].tcMember ||
  8238. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.indexOf(
  8239. uid
  8240. ) == -1)
  8241. ) {
  8242. this.unitJson[i].chapterInfo[0].taskJson[task].tcMember
  8243. ? this.unitJson[i].chapterInfo[0].taskJson[task].tcMember.push(uid)
  8244. : (this.unitJson[i].chapterInfo[0].taskJson[task].tcMember = [uid]);
  8245. }
  8246. this.$forceUpdate();
  8247. },
  8248. goToTask(i) {
  8249. document.getElementsByClassName("rightBox")[0].scrollTop =
  8250. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  8251. this.isClickColor = i + 1;
  8252. },
  8253. goToTask2(i, stage) {
  8254. this.toolIndexType = ''
  8255. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  8256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8257. this.$forceUpdate();
  8258. return;
  8259. }
  8260. if (this.unitIndex != stage) {
  8261. if (this.panUnitJson() == 2) {
  8262. return;
  8263. }
  8264. this.unitSet(stage)
  8265. }
  8266. document.querySelectorAll(".basic_box")[0].scrollTop =
  8267. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  8268. this.isClickColor = i + 1;
  8269. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8270. this.$forceUpdate();
  8271. },
  8272. taskOpen(i, stageIndex) {
  8273. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  8274. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  8275. } else {
  8276. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  8277. }
  8278. this.updateWork3(stageIndex)
  8279. this.$forceUpdate();
  8280. },
  8281. jumpGj2(i, j, k) {
  8282. if (this.unitIndex != k) {
  8283. if (this.panUnitJson() == 2) {
  8284. return;
  8285. }
  8286. this.unitSet(k)
  8287. }
  8288. setTimeout(() => {
  8289. if ((i + 1) != this.isClickColor) {
  8290. this.isClickColor = (i + 1)
  8291. }
  8292. var a = document.scrollingElement;
  8293. this.toolIndexType = `gj${i}${j}${k}`
  8294. let target = document.querySelector(`#gj${i}${j}`);
  8295. if (target) {
  8296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8297. setTimeout(() => {
  8298. target.scrollIntoView(true);
  8299. setTimeout(() => {
  8300. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  8301. }, 0);
  8302. }, 0);
  8303. }
  8304. }, 0);
  8305. },
  8306. taskMove(type, index) {
  8307. if (type == 1) {
  8308. if (index > 0) {
  8309. let a = JSON.parse(
  8310. JSON.stringify(
  8311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8312. )
  8313. );
  8314. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8317. }
  8318. } else {
  8319. if (
  8320. index <
  8321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8322. ) {
  8323. let a = JSON.parse(
  8324. JSON.stringify(
  8325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8326. )
  8327. );
  8328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8331. }
  8332. }
  8333. this.$forceUpdate();
  8334. },
  8335. addGroup(i) {
  8336. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8337. this.groupJson.group.push({
  8338. name: "第" + (this.groupJson.group.length + 1) + "组",
  8339. });
  8340. },
  8341. deleteGroup(i) {
  8342. this.groupJson.group.splice(i, 1);
  8343. },
  8344. addGroupJson() {
  8345. for (var i = 0; i < this.groupJson.group.length; i++) {
  8346. if (!this.groupJson.group[i].name) {
  8347. this.$message.error("请将信息填写完整!");
  8348. return;
  8349. }
  8350. }
  8351. if (!this.groupJson.number) {
  8352. this.$message.error("请将信息填写完整!");
  8353. return;
  8354. }
  8355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8356. this.taskCount
  8357. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8358. JSON.stringify(this.groupJson)
  8359. );
  8360. this.dialogVisibleGroup = false;
  8361. this.groupJson = {};
  8362. if (
  8363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8364. .toolChoose[this.toolIndex].tool != 49
  8365. ) {
  8366. this.addTools(49, this.taskCount, this.toolIndex);
  8367. }
  8368. },
  8369. deleteWorks(id) {
  8370. this.$confirm("确定删除此作业吗?", "提示", {
  8371. confirmButtonText: "确定",
  8372. cancelButtonText: "取消",
  8373. type: "warning",
  8374. })
  8375. .then(() => {
  8376. let params = [
  8377. {
  8378. id: id,
  8379. },
  8380. ];
  8381. this.ajax
  8382. .post(this.$store.state.api + "deleteCourseWorkS", params)
  8383. .then((res) => {
  8384. this.$message({
  8385. message: "删除成功",
  8386. type: "success",
  8387. });
  8388. this.seleteCourseUpdate();
  8389. })
  8390. .catch((err) => {
  8391. this.$message.error("网络异常");
  8392. console.error(err);
  8393. });
  8394. })
  8395. .catch(() => { });
  8396. },
  8397. openLineS(url) {
  8398. window.open(url);
  8399. },
  8400. checkFileFull(type, url) {
  8401. this.fullDialogVisible = true;
  8402. this.fulltype = type;
  8403. this.fullUrl = url;
  8404. },
  8405. downloadFile(url, toolIndex) {
  8406. var credentials = {
  8407. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8408. secretAccessKey: "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",
  8409. }; //秘钥形式的登录上传
  8410. window.AWS.config.update(credentials);
  8411. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8412. let url2 = url;
  8413. let _url2 = "";
  8414. if (
  8415. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8416. ) {
  8417. _url2 = url2.split(
  8418. "https://view.officeapps.live.com/op/view.aspx?src="
  8419. )[1];
  8420. } else {
  8421. _url2 = url2;
  8422. }
  8423. let _this = this;
  8424. _this.downLoading = 'down' + toolIndex
  8425. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  8426. let name = decodeURIComponent(decodeURIComponent(_url2).split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  8427. var params = {
  8428. Bucket: "ccrb",
  8429. Key: name
  8430. };
  8431. s3.getObject(params, function (err, data) {
  8432. _this.downLoading = ''
  8433. if (err) console.log(err, err.stack); // an error occurred
  8434. else {
  8435. let url = window.URL.createObjectURL(new Blob([data.Body]));
  8436. let a = document.createElement("a");
  8437. a.name = name;
  8438. a.href = url;
  8439. a.download = name;
  8440. a.click();
  8441. console.log(data);
  8442. } // sxuccessful response
  8443. });
  8444. return;
  8445. // let _this = this;
  8446. // let _url = "";
  8447. // if (
  8448. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  8449. // ) {
  8450. // _url = url.split(
  8451. // "https://view.officeapps.live.com/op/view.aspx?src="
  8452. // )[1];
  8453. // } else {
  8454. // _url = url;
  8455. // }
  8456. // const x = new XMLHttpRequest();
  8457. // x.open("GET", _url, true);
  8458. // x.responseType = "blob";
  8459. // const loading = _this.$loading.service({
  8460. // background: "rgba(255, 255, 255, 0.7)",
  8461. // target: document.body,
  8462. // text: '文件加载中...'
  8463. // });
  8464. // // _this.$message.success("文件下载中...");
  8465. // x.onload = function (e) {
  8466. // loading.close();
  8467. // // const url = window.URL.createObjectURL(x.response);
  8468. // // const a = document.createElement("a");
  8469. // // a.href = url;
  8470. // // a.target = "_blank";
  8471. // // a.download = url;
  8472. // // a.click();
  8473. // // a.remove();
  8474. // let content = x.response;
  8475. // let elink = document.createElement("a");
  8476. // elink.download = decodeURI(
  8477. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  8478. // );
  8479. // elink.style.display = "none";
  8480. // let blob = new Blob([content]);
  8481. // elink.href = URL.createObjectURL(blob);
  8482. // document.body.appendChild(elink);
  8483. // elink.click();
  8484. // document.body.removeChild(elink);
  8485. // };
  8486. // x.send();
  8487. },
  8488. editSourceUpadte(taskCount, index) {
  8489. this.taskCount = taskCount;
  8490. this.toolIndex = index;
  8491. this.editSourceType = 2;
  8492. this.sourcesData = JSON.parse(
  8493. JSON.stringify(
  8494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8495. .toolArray[index].toolData
  8496. )
  8497. );
  8498. this.proVisible = false;
  8499. this.progress = 0;
  8500. this.inputShow = true;
  8501. this.dialogVisibleSource = true;
  8502. },
  8503. addQuestion() {
  8504. let params = [
  8505. {
  8506. uid: this.userid,
  8507. cid: this.courseId,
  8508. stage: this.unitIndex,
  8509. task: this.taskCount,
  8510. tool: this.toolIndex,
  8511. content: this.questionAnswer,
  8512. type: 3,
  8513. atool: 15,
  8514. },
  8515. ];
  8516. this.ajax
  8517. .post(this.$store.state.api + "addCourseWorksS", params)
  8518. .then((res) => {
  8519. this.$message({
  8520. message: "提交成功",
  8521. type: "success",
  8522. });
  8523. this.questionAnswer = "";
  8524. this.answerDialogVisible = false;
  8525. this.seleteCourseUpdate();
  8526. })
  8527. .catch((err) => {
  8528. this.$message.error("提交失败");
  8529. console.error(err);
  8530. });
  8531. },
  8532. addCourseWorksS(tool, type, content, task, toolindex) {
  8533. let params = [
  8534. {
  8535. uid: this.userid,
  8536. cid: this.courseId,
  8537. stage: this.unitIndex,
  8538. task: task,
  8539. tool: toolindex,
  8540. content: content,
  8541. type: type,
  8542. atool: tool,
  8543. },
  8544. ];
  8545. this.ajax
  8546. .post(this.$store.state.api + "addCourseWorksS", params)
  8547. .then((res) => {
  8548. this.$message({
  8549. message: "提交成功",
  8550. type: "success",
  8551. });
  8552. this.setPeople(this.unitIndex, task, this.userid);
  8553. this.seleteCourseUpdate();
  8554. })
  8555. .catch((err) => {
  8556. this.$message.error("提交失败");
  8557. console.error(err);
  8558. });
  8559. },
  8560. openFile(f) {
  8561. this.pptImgUrl = "";
  8562. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8563. if (
  8564. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8565. -1
  8566. ) {
  8567. this.pptImgUrl =
  8568. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  8569. this.showPDF = false;
  8570. this.dialogVisibleFile = true;
  8571. } else if (
  8572. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8573. ) {
  8574. this.pptImgUrl = f;
  8575. this.showPDF = true;
  8576. this.dialogVisibleFile = true;
  8577. }
  8578. },
  8579. openText(f) {
  8580. this.tableJson.text = JSON.parse(f);
  8581. this.dialogVisibleText2 = true;
  8582. },
  8583. openAsk(f, taskCount, i) {
  8584. this.askJson = JSON.parse(
  8585. JSON.stringify(
  8586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[taskCount]
  8587. .toolArray[i].askJson
  8588. )
  8589. );
  8590. this.radio = JSON.parse(f);
  8591. this.dialogVisibleVote3 = true;
  8592. },
  8593. openMember() {
  8594. this.searchTN = "";
  8595. this.page = 1
  8596. this.getTeacher();
  8597. this.dialogVisibleMember = true;
  8598. },
  8599. updateType(sid) {
  8600. var a = this.courseTypeId;
  8601. var a1 = JSON.parse(JSON.stringify(this.courseTypeId));
  8602. var c = [];
  8603. var b = sid.pid;
  8604. var d = [];
  8605. // for (var i = 0; i < this.CourseType[1].length; i++) {
  8606. // if (this.CourseType[1][i].id == sid) {
  8607. // b = this.CourseType[1][i].pid;
  8608. // }
  8609. // }
  8610. for (var j = 0; j < this.CourseTypeJson[b].length; j++) {
  8611. d.push(this.CourseTypeJson[b][j].id);
  8612. }
  8613. for (var i = 0; i < a.length; i++) {
  8614. if (d.indexOf(a[i]) == -1) {
  8615. c.push(a[i]);
  8616. }
  8617. }
  8618. c.push(sid.id);
  8619. this.courseTypeId = c;
  8620. },
  8621. openVideo(w) {
  8622. this.videoDetail = JSON.parse(JSON.stringify(this.playerOptions));
  8623. this.videoDetail.sources[0].src = w;
  8624. this.videoVisible = true;
  8625. },
  8626. getGMan(people) {
  8627. let _people = "";
  8628. if (this.ManAarray.length) {
  8629. for (var i = 0; i < this.ManAarray.length; i++) {
  8630. if (this.ManAarray[i].userid == people) {
  8631. _people = this.ManAarray[i].name;
  8632. break;
  8633. }
  8634. }
  8635. }
  8636. return _people ? _people : "无";
  8637. },
  8638. dragTaskStart(val, i, j) {
  8639. this.dragType = 'task'
  8640. this.oldIndex = i;
  8641. this.oldData = val;
  8642. this.oldUnitIndex = j;
  8643. },
  8644. dragTaskOver(i, j) {
  8645. this.typeIndex = "task-" + i
  8646. this.newIndex = i;
  8647. this.checkUnitIndex = j;
  8648. },
  8649. async dragTaskEnd() {
  8650. if (this.dragType != 'task') {
  8651. this.newIndex = "";
  8652. this.dragType = "";
  8653. this.typeIndex = "";
  8654. this.checkUnitIndex = "";
  8655. this.isdrag = "";
  8656. return;
  8657. }
  8658. if ((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)) {
  8659. this.newIndex = "";
  8660. this.dragType = "";
  8661. this.typeIndex = "";
  8662. this.checkUnitIndex = "";
  8663. this.isdrag = "";
  8664. return;
  8665. }
  8666. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  8667. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  8668. if (count1 > 0 || count2 > 0) {
  8669. this.$confirm(
  8670. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8671. "提示",
  8672. {
  8673. confirmButtonText: "确定",
  8674. cancelButtonText: "取消",
  8675. type: "warning",
  8676. }
  8677. )
  8678. .then(() => {
  8679. if (this.oldUnitIndex != this.checkUnitIndex) {
  8680. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8681. // 删除老的节点
  8682. newItems.splice(this.oldIndex, 1);
  8683. // 在列表中目标位置增加新的节点
  8684. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  8685. newItems2.splice(this.newIndex, 0, this.oldData);
  8686. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8687. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  8688. } else {
  8689. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8690. // 删除老的节点
  8691. newItems.splice(this.oldIndex, 1);
  8692. // 在列表中目标位置增加新的节点
  8693. newItems.splice(this.newIndex, 0, this.oldData);
  8694. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8695. }
  8696. this.typeIndex = "";
  8697. this.newIndex = "";
  8698. this.dragType = "";
  8699. this.checkUnitIndex = "";
  8700. this.isdrag = "";
  8701. this.updateWork();
  8702. this.$forceUpdate()
  8703. })
  8704. .catch(() => {
  8705. this.newIndex = "";
  8706. this.dragType = "";
  8707. this.typeIndex = "";
  8708. this.checkUnitIndex = "";
  8709. this.isdrag = "";
  8710. return;
  8711. });
  8712. } else {
  8713. if (this.oldUnitIndex != this.checkUnitIndex) {
  8714. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8715. // 删除老的节点
  8716. newItems.splice(this.oldIndex, 1);
  8717. // 在列表中目标位置增加新的节点
  8718. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  8719. newItems2.splice(this.newIndex, 0, this.oldData);
  8720. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8721. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  8722. } else {
  8723. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  8724. // 删除老的节点
  8725. newItems.splice(this.oldIndex, 1);
  8726. // 在列表中目标位置增加新的节点
  8727. newItems.splice(this.newIndex, 0, this.oldData);
  8728. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  8729. }
  8730. this.typeIndex = "";
  8731. this.newIndex = "";
  8732. this.dragType = "";
  8733. this.checkUnitIndex = "";
  8734. this.isdrag = "";
  8735. this.updateWork();
  8736. this.$forceUpdate()
  8737. }
  8738. },
  8739. dragUnitStart(val, i) {
  8740. this.dragType = 'Unit'
  8741. this.oldIndex = i;
  8742. this.oldData = val;
  8743. },
  8744. dragUnitOver(i) {
  8745. this.typeIndex = "Unit-" + i
  8746. this.newIndex = i;
  8747. console.log(i, this.unitJson[i].toolOpen)
  8748. if (!this.unitJson[i].toolOpen && this.dragType == 'task') {
  8749. this.unitJson[i].toolOpen = true
  8750. this.updateWork()
  8751. this.$forceUpdate()
  8752. }
  8753. },
  8754. async dragUnitEnd() {
  8755. if (this.dragType != 'Unit') {
  8756. this.newIndex = "";
  8757. this.dragType = "";
  8758. this.typeIndex = "";
  8759. this.isdrag = "";
  8760. return;
  8761. }
  8762. if (this.newIndex == this.oldIndex) {
  8763. this.newIndex = "";
  8764. this.dragType = "";
  8765. this.typeIndex = "";
  8766. this.isdrag = "";
  8767. return;
  8768. }
  8769. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  8770. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  8771. console.log(count1, count2)
  8772. if (count1 > 0 || count2 > 0) {
  8773. this.$confirm(
  8774. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8775. "提示",
  8776. {
  8777. confirmButtonText: "确定",
  8778. cancelButtonText: "取消",
  8779. type: "warning",
  8780. }
  8781. )
  8782. .then(() => {
  8783. let newItems = [...this.unitJson];
  8784. // 删除老的节点
  8785. newItems.splice(this.oldIndex, 1);
  8786. // 在列表中目标位置增加新的节点
  8787. newItems.splice(this.newIndex, 0, this.oldData);
  8788. this.unitJson = [...newItems];
  8789. this.typeIndex = "";
  8790. this.newIndex = "";
  8791. this.dragType = "";
  8792. this.isdrag = "";
  8793. this.updateWork();
  8794. this.$forceUpdate()
  8795. })
  8796. .catch(() => {
  8797. this.newIndex = "";
  8798. this.dragType = "";
  8799. this.typeIndex = "";
  8800. this.isdrag = "";
  8801. return;
  8802. });
  8803. } else {
  8804. let newItems = [...this.unitJson];
  8805. // 删除老的节点
  8806. newItems.splice(this.oldIndex, 1);
  8807. // 在列表中目标位置增加新的节点
  8808. newItems.splice(this.newIndex, 0, this.oldData);
  8809. this.unitJson = [...newItems];
  8810. this.typeIndex = "";
  8811. this.newIndex = "";
  8812. this.dragType = "";
  8813. this.isdrag = "";
  8814. this.updateWork();
  8815. this.$forceUpdate()
  8816. }
  8817. },
  8818. getWorksCount(type, stage, task, tool) {
  8819. return new Promise((resolve, reject) => {
  8820. let params = [
  8821. {
  8822. cid: this.cid,
  8823. stage: stage,
  8824. task: task,
  8825. tool: tool,
  8826. type: type
  8827. },
  8828. ];
  8829. this.ajax
  8830. .post(this.$store.state.api + "getStudentCourseWorkCount", params)
  8831. .then((res) => {
  8832. let count = res.data[0][0].count
  8833. resolve(count)
  8834. })
  8835. .catch((err) => {
  8836. resolve(0)
  8837. this.$message.error("网络不佳");
  8838. console.error(err);
  8839. });
  8840. });
  8841. },
  8842. },
  8843. mounted(){
  8844. this.$nextTick(()=>{
  8845. this.scrollChange()
  8846. })
  8847. },
  8848. beforeDestroy() {
  8849. clearTimeout(this.timer);
  8850. this.timer = null;
  8851. },
  8852. beforeRouteLeave(to, from, next) {
  8853. clearTimeout(this.timer);
  8854. this.timer = null;
  8855. next();
  8856. },
  8857. beforeRouteEnter(to, from, next) {
  8858. next((vm) => {
  8859. vm.fpath = from.path;
  8860. });
  8861. },
  8862. created() {
  8863. this.getStudent();
  8864. this.getTeacher();
  8865. this.getClass();
  8866. this.getTemplate();
  8867. // this.selectEva();
  8868. this.loading = false;
  8869. setTimeout(() => {
  8870. this.selectCourseDetail();
  8871. // this.selectEva();
  8872. }, 500);
  8873. },
  8874. };
  8875. </script>
  8876. <style scoped>
  8877. @media screen and (max-width: 1280px) {
  8878. .mbCss {
  8879. flex-direction: column !important;
  8880. }
  8881. .pjCss {
  8882. width: 100% !important;
  8883. }
  8884. .evaCss {
  8885. width: 100% !important;
  8886. }
  8887. }
  8888. .dialog_diy>>>.el-dialog__header {
  8889. background: #3c3c3c !important;
  8890. padding: 15px 20px;
  8891. }
  8892. .dialog_diy>>>.el-dialog__title {
  8893. color: #fff;
  8894. }
  8895. .dialog_diy>>>.el-dialog__headerbtn {
  8896. top: 19px;
  8897. }
  8898. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8899. color: #fff;
  8900. }
  8901. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8902. color: #fff;
  8903. }
  8904. .dialog_diy>>>.el-dialog__body,
  8905. .dialog_diy>>>.el-dialog__footer {
  8906. background: #fafafa;
  8907. }
  8908. .dialog_diy3>>>.el-dialog__body,
  8909. .dialog_diy3>>>.el-dialog__footer {
  8910. background: #eee !important;
  8911. }
  8912. .dialog_diy3>>>.el-dialog__body {
  8913. padding: 20px 20px;
  8914. }
  8915. .source_diy>>>.el-dialog {
  8916. height: 100% !important;
  8917. margin: 0 auto !important;
  8918. }
  8919. .source_diy>>>.el-dialog__body {
  8920. height: calc(100% - 185px);
  8921. overflow: auto;
  8922. background: #e6eaf0;
  8923. }
  8924. .source_diy>>>.el-dialog__footer {
  8925. background: #e6eaf0 !important;
  8926. }
  8927. .left {
  8928. border-right: 1px solid rgb(60, 94, 143);
  8929. display: flex;
  8930. flex-direction: column;
  8931. align-items: center;
  8932. min-height: 600px;
  8933. width: 385px;
  8934. height: 80%;
  8935. }
  8936. .tips {
  8937. color: rgb(128, 128, 128);
  8938. font-size: 12px;
  8939. width: 270px;
  8940. margin: 40px;
  8941. }
  8942. .pb_content {
  8943. height: 100% !important;
  8944. /* margin: 0 20px 0 20px; */
  8945. }
  8946. .pb_content_body {
  8947. width: 100% !important;
  8948. height: 100%;
  8949. }
  8950. .info_solid {
  8951. width: 270px;
  8952. height: 30px;
  8953. border-left: 1px solid #bdbdbd;
  8954. margin: 10px 0px 10px 30px;
  8955. }
  8956. .info_steps {
  8957. width: 270px;
  8958. font-size: 0.875rem;
  8959. display: flex;
  8960. align-items: center;
  8961. }
  8962. .info_steps span:nth-child(1) {
  8963. width: 30px;
  8964. height: 30px;
  8965. background: rgba(0, 0, 0, 0.38);
  8966. display: block;
  8967. color: #fff;
  8968. border-radius: 40px;
  8969. text-align: center;
  8970. line-height: 30px;
  8971. }
  8972. .steps_active {
  8973. background: #3d67bc !important;
  8974. }
  8975. .info_steps span:nth-child(2) {
  8976. margin-left: 5px;
  8977. }
  8978. .right {
  8979. height: 100%;
  8980. width: 100%;
  8981. display: flex;
  8982. overflow: hidden;
  8983. flex-direction: column;
  8984. }
  8985. .basic_box {
  8986. margin: 0 auto;
  8987. position: relative;
  8988. padding: 0 20px 0 20px;
  8989. }
  8990. .basic_box_success {
  8991. width: 100%;
  8992. min-height: 455px;
  8993. padding: 50px 0;
  8994. position: relative;
  8995. text-align: center;
  8996. border-bottom: 1px solid #bfbfbf;
  8997. box-sizing: border-box;
  8998. display: flex;
  8999. align-items: center;
  9000. flex-direction: column;
  9001. justify-content: center;
  9002. }
  9003. .info_title {
  9004. font-size: 1.5em;
  9005. margin-right: 25px;
  9006. /* margin: 20px 30px 20px 30px; */
  9007. }
  9008. .bInfo_title {
  9009. text-align: left;
  9010. margin: 10px 0;
  9011. }
  9012. .small_title {
  9013. font-size: 14px;
  9014. line-height: 40px;
  9015. }
  9016. .chapter_beizhu {
  9017. font-size: 12px;
  9018. font-weight: bold;
  9019. float: right;
  9020. color: rgb(128, 128, 128);
  9021. margin-top: 5px;
  9022. }
  9023. .chapter_uploadBox1 {
  9024. text-align: left;
  9025. background-color: rgb(242, 242, 242);
  9026. width: 100%;
  9027. height: 67px;
  9028. padding: 0px 15px;
  9029. border-radius: 8px;
  9030. overflow: hidden;
  9031. font-size: 16px;
  9032. box-sizing: border-box;
  9033. position: relative;
  9034. }
  9035. .chapter_add {
  9036. width: 100%;
  9037. height: 32px;
  9038. margin-top: 15px;
  9039. cursor: pointer;
  9040. }
  9041. .chapter_add_l {
  9042. margin-left: 5px;
  9043. width: 30px;
  9044. height: 30px;
  9045. float: left;
  9046. border: 1px solid #aaa;
  9047. color: #aaa;
  9048. border-radius: 50%;
  9049. font-size: 25px;
  9050. text-align: center;
  9051. }
  9052. .chapter_add_r {
  9053. font-size: 18px;
  9054. height: 40px;
  9055. line-height: 30px;
  9056. text-indent: 10px;
  9057. color: #aaa;
  9058. }
  9059. .chapter_add_r span {
  9060. font-size: 12px;
  9061. color: rgb(204, 204, 204);
  9062. }
  9063. .chapter_add_input {
  9064. display: none;
  9065. }
  9066. .line {
  9067. width: 85%;
  9068. margin: 0 auto;
  9069. border-top: 1px solid #e5e5e5;
  9070. margin-top: 20px;
  9071. }
  9072. .info_btnBox {
  9073. width: 100%;
  9074. display: flex;
  9075. justify-content: space-evenly;
  9076. margin: 10px 0 10px 0;
  9077. }
  9078. .info_btnBox3 {
  9079. width: calc(100%);
  9080. display: flex;
  9081. justify-content: flex-end;
  9082. padding: 0 20px;
  9083. height: 60px;
  9084. align-items: center;
  9085. background: unset;
  9086. margin: 0 auto;
  9087. /* border-top: 1px solid rgb(228, 232, 237); */
  9088. box-sizing: border-box;
  9089. overflow: hidden;
  9090. cursor: pointer;
  9091. background: #fff;
  9092. border-radius: 10px;
  9093. }
  9094. .info_btn,
  9095. .teacherWord {
  9096. color: #fff;
  9097. background-color: #0f7eff;
  9098. padding: 8px 24px;
  9099. font-size: 0.9375rem;
  9100. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9101. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9102. min-width: 64px;
  9103. font-weight: 500;
  9104. border-radius: 4px;
  9105. box-sizing: border-box;
  9106. border: none;
  9107. cursor: pointer;
  9108. }
  9109. .teacherWord {
  9110. width: 105px !important;
  9111. text-align: center !important;
  9112. line-height: 36px !important;
  9113. padding: 0 !important;
  9114. font-size: 14px !important;
  9115. margin: 10px 0 !important;
  9116. }
  9117. .template_box {
  9118. display: flex;
  9119. flex-wrap: wrap;
  9120. }
  9121. .wordTeacher {
  9122. display: flex;
  9123. flex-direction: column;
  9124. width: 100px;
  9125. height: 100px;
  9126. text-align: center;
  9127. font-size: 13px;
  9128. margin: 0 20px 20px 0;
  9129. background: #F0F4FA;
  9130. ;
  9131. position: relative;
  9132. border-radius: 5px;
  9133. align-items: center;
  9134. justify-content: center;
  9135. border: 1px solid #CAD1DC;
  9136. color: #0E1E33;
  9137. /* padding: 25px 0px; */
  9138. cursor: pointer;
  9139. }
  9140. .wordTeacher::after {
  9141. content: '';
  9142. display: block;
  9143. position: absolute;
  9144. width: 15px;
  9145. height: 15px;
  9146. right: 10px;
  9147. top: 10px;
  9148. background-image: url(../../../assets/icon/new/choose_a.png);
  9149. background-size: 100% 100%;
  9150. }
  9151. .wordTeacherA::after {
  9152. background-image: url(../../../assets/icon/new/choose_b.png)
  9153. }
  9154. .wordTeacher:nth-child(5n) {
  9155. margin-right: 0px;
  9156. }
  9157. .wordPic {
  9158. margin: 0 auto;
  9159. width: 30px;
  9160. height: 30px;
  9161. cursor: pointer;
  9162. }
  9163. .deleteWord {
  9164. width: 22px;
  9165. height: 22px;
  9166. position: absolute;
  9167. right: 5px;
  9168. top: -15px;
  9169. cursor: pointer;
  9170. display: none;
  9171. z-index: 999;
  9172. }
  9173. .wordPic>img,
  9174. .deleteWord>img,
  9175. .addToolImg>img {
  9176. width: 100%;
  9177. height: 100%;
  9178. }
  9179. .info_btn:hover {
  9180. background-color: #4f7cd5 !important;
  9181. }
  9182. .cru_selectBox {
  9183. display: flex;
  9184. margin: 15px 0;
  9185. flex-wrap: nowrap;
  9186. white-space: nowrap;
  9187. overflow: auto;
  9188. position: relative;
  9189. height: 40px;
  9190. max-width: calc(100% - 175px);
  9191. }
  9192. .cru_selectBox::-webkit-scrollbar {
  9193. /*滚动条整体样式*/
  9194. width: 6px;
  9195. /*高宽分别对应横竖滚动条的尺寸*/
  9196. height: 6px;
  9197. }
  9198. /*定义滚动条轨道 内阴影+圆角*/
  9199. .cru_selectBox::-webkit-scrollbar-track {
  9200. border-radius: 10px;
  9201. background-color: #eee;
  9202. }
  9203. /*定义滑块 内阴影+圆角*/
  9204. .cru_selectBox::-webkit-scrollbar-thumb {
  9205. border-radius: 10px;
  9206. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9207. background-color: rgba(0, 0, 0, 0.1);
  9208. }
  9209. .cru_line {
  9210. position: absolute;
  9211. bottom: 0px;
  9212. transition: all 0.5s;
  9213. left: 0px;
  9214. width: 50px;
  9215. height: 4px;
  9216. left: 10px;
  9217. border-radius: 2px;
  9218. background: #3681FC;
  9219. }
  9220. .cru_select {
  9221. font-size: 18px;
  9222. margin-right: 20px;
  9223. margin-left: 5px;
  9224. cursor: pointer;
  9225. color: #0E1E33;
  9226. }
  9227. .cru_select:hover {
  9228. color: #3681FC !important;
  9229. }
  9230. .cru_selected {
  9231. color: #3681FC !important;
  9232. font-weight: bold;
  9233. }
  9234. .chapter_box {
  9235. margin-top: 10px;
  9236. width: 100%;
  9237. padding: 10px 20px;
  9238. background: #fff;
  9239. border-radius: 8px;
  9240. box-sizing: border-box;
  9241. }
  9242. .chapter_contentbox {
  9243. display: flex;
  9244. align-items: center;
  9245. /* margin-top: 15px; */
  9246. }
  9247. .chapter_contentbox .cc_title {
  9248. margin: 0px;
  9249. color: black;
  9250. display: block;
  9251. white-space: nowrap;
  9252. overflow: hidden;
  9253. text-overflow: ellipsis;
  9254. margin-right: 20px;
  9255. font-size: 18px;
  9256. height: 20px;
  9257. line-height: 22px;
  9258. min-width: fit-content;
  9259. display: flex;
  9260. }
  9261. .chapter_contentbox .cc_title::before {
  9262. content: '';
  9263. height: 100%;
  9264. width: 3px;
  9265. background: #3681FC;
  9266. border-radius: 3px;
  9267. opacity: 1;
  9268. display: block;
  9269. margin-right: 10px;
  9270. }
  9271. .chapter_contentbox .cc_input {
  9272. width: 100%;
  9273. display: flex;
  9274. }
  9275. .show_taskD {
  9276. min-width: fit-content;
  9277. margin-left: 10px;
  9278. display: flex;
  9279. align-items: center;
  9280. font-size: 14px;
  9281. cursor: pointer;
  9282. color: #717C8D;
  9283. }
  9284. .show_taskD>img {
  9285. width: 15px;
  9286. margin-right: 5px;
  9287. transition: .2s all;
  9288. transform: rotate(-90deg);
  9289. }
  9290. .show_taskD.show>img {
  9291. transform: rotate(0deg);
  9292. }
  9293. .show_toolD {
  9294. min-width: fit-content;
  9295. margin-left: 10px;
  9296. display: flex;
  9297. align-items: center;
  9298. font-size: 14px;
  9299. cursor: pointer;
  9300. color: #717C8D;
  9301. /* position: absolute;
  9302. right: 45px;
  9303. top: 5px; */
  9304. }
  9305. .show_toolD>img {
  9306. width: 15px;
  9307. margin-right: 5px;
  9308. transition: .2s all;
  9309. transform: rotate(-90deg);
  9310. }
  9311. .show_toolD.show>img {
  9312. transform: rotate(0deg);
  9313. }
  9314. .remove {
  9315. background-image: url("../../../assets/icon/new/delete_u.png");
  9316. cursor: pointer;
  9317. opacity: 0.5;
  9318. width: 30px;
  9319. min-width: 30px;
  9320. height: 30px;
  9321. background-size: 100% 100%;
  9322. background-repeat: no-repeat;
  9323. margin-left: 10px;
  9324. }
  9325. .remove1 {
  9326. background-image: url("../../../assets/remove1.png");
  9327. background-repeat: no-repeat;
  9328. background-position: 5px 10px;
  9329. width: 40px;
  9330. height: 50px;
  9331. cursor: pointer;
  9332. margin-left: 10px;
  9333. }
  9334. .binfo_input {
  9335. width: 100%;
  9336. margin: 0;
  9337. padding: 12px 14px;
  9338. display: block;
  9339. min-width: 0;
  9340. outline: none;
  9341. box-sizing: border-box;
  9342. background: none;
  9343. border: none;
  9344. border-radius: 4px;
  9345. background: #fff;
  9346. font-size: 16px;
  9347. resize: none;
  9348. font-family: 'Microsoft YaHei';
  9349. min-height: 48px;
  9350. /* border: 1px solid #3682fc00; */
  9351. border: 1.5px solid #CAD1DC;
  9352. }
  9353. .binfo_textarea {
  9354. border: 1.5px solid #CAD1DC;
  9355. font-size: 16px;
  9356. resize: none;
  9357. /* background: #f6f6f6; */
  9358. font-family: 'Microsoft YaHei';
  9359. }
  9360. .binfo_input:focus-visible {
  9361. border: 1.5px solid #3681FC !important;
  9362. }
  9363. .time {
  9364. display: flex;
  9365. margin: 35px 0 80px 0;
  9366. }
  9367. .chapter_btnbox {
  9368. width: 160px;
  9369. border-radius: 5px;
  9370. border: 2px dashed gray;
  9371. display: flex;
  9372. padding: 8px 50px;
  9373. align-items: center;
  9374. justify-content: center;
  9375. margin: 30px auto 0;
  9376. cursor: pointer;
  9377. }
  9378. .icon_add {
  9379. position: relative;
  9380. width: 24px;
  9381. padding-top: 20px;
  9382. border-radius: 100%;
  9383. border-width: 2px;
  9384. border-style: solid;
  9385. border-color: gray;
  9386. }
  9387. .icon_add i:nth-child(1) {
  9388. position: absolute;
  9389. left: 50%;
  9390. top: 50%;
  9391. height: 60%;
  9392. transform: translate(-50%, -50%);
  9393. border-width: 1px;
  9394. border-style: solid;
  9395. border-color: inherit;
  9396. }
  9397. .icon_add i:nth-child(2) {
  9398. position: absolute;
  9399. top: 50%;
  9400. left: 50%;
  9401. width: 60%;
  9402. transform: translate(-50%, -50%);
  9403. border-width: 1px;
  9404. border-style: solid;
  9405. border-color: inherit;
  9406. }
  9407. .chapter_btn_w {
  9408. font-size: 0.9375rem;
  9409. font-weight: bold;
  9410. color: gray;
  9411. margin-left: 20px;
  9412. }
  9413. .disUoloadSty>>>.el-icon-plus {
  9414. display: none !important;
  9415. /* 上传按钮隐藏 */
  9416. }
  9417. .imgLeft {
  9418. margin: 15px 0;
  9419. }
  9420. .add_info_box {
  9421. margin: 20px 0;
  9422. }
  9423. .add_info_box button {
  9424. margin: 0 10px 10px 0;
  9425. }
  9426. .add_chapters_box {
  9427. text-align: left;
  9428. background-color: rgb(232 234 237);
  9429. width: 100%;
  9430. padding: 0px 15px;
  9431. border-radius: 15px;
  9432. font-size: 16px;
  9433. box-sizing: border-box;
  9434. position: relative;
  9435. padding: 0 10px 5px 10px;
  9436. height: 185px;
  9437. overflow-y: auto;
  9438. overflow-x: hidden;
  9439. }
  9440. .homework_box {
  9441. display: flex;
  9442. align-items: flex-start;
  9443. flex-wrap: wrap;
  9444. margin: 15px 0 0 0;
  9445. flex-direction: column;
  9446. align-content: flex-start;
  9447. }
  9448. .course_homework {
  9449. display: flex;
  9450. justify-content: center;
  9451. flex-direction: row;
  9452. align-items: center;
  9453. margin: 0 10px 0 0;
  9454. }
  9455. .course_homework>>>.el-input__inner {
  9456. width: 140px;
  9457. margin-left: 15px;
  9458. }
  9459. .chapter_upload_move {
  9460. position: relative;
  9461. background-color: #fff;
  9462. position: absolute;
  9463. width: 100%;
  9464. top: 0px;
  9465. left: 0px;
  9466. border: 1px solid #eee;
  9467. border-radius: 5px;
  9468. transition: width 2s;
  9469. -moz-transition: width 2s;
  9470. -webkit-transition: width 2s;
  9471. -o-transition: width 2s;
  9472. }
  9473. .chapter_upload_l_i {
  9474. background-image: url("../../../assets/icon.png");
  9475. background-position: 3px -165px;
  9476. width: 30px;
  9477. height: 30px;
  9478. margin: 10px auto 0 auto;
  9479. }
  9480. .course_input_box {
  9481. display: flex;
  9482. margin-right: 20px;
  9483. width: 100%;
  9484. align-items: center;
  9485. position: relative;
  9486. }
  9487. .course_input_box>.binfo_input {
  9488. width: calc(100% - 0 - 200px - 20px);
  9489. margin: 0 10px;
  9490. }
  9491. .bb_courseIcon {
  9492. width: 57px;
  9493. height: 45px;
  9494. background: #F0F4FA;
  9495. border-radius: 5px 0px 0px 5px;
  9496. display: flex;
  9497. align-items: center;
  9498. justify-content: center;
  9499. border-right: 1.5px solid rgb(202, 209, 220);
  9500. box-sizing: border-box;
  9501. position: absolute;
  9502. left: 1.5px
  9503. }
  9504. .bb_courseIcon>img {
  9505. width: 25px;
  9506. height: auto
  9507. }
  9508. .big_box {
  9509. /* margin-top: 20px; */
  9510. display: flex;
  9511. justify-content: space-between;
  9512. /* border-bottom: 1px solid #E0E2ED; */
  9513. }
  9514. .left_first {
  9515. display: flex;
  9516. flex-direction: column;
  9517. flex-wrap: nowrap;
  9518. width: calc(100% - 310px);
  9519. padding: 20px;
  9520. box-sizing: border-box;
  9521. background: #fff;
  9522. border-radius: 5px;
  9523. }
  9524. .right_first {
  9525. width: 300px;
  9526. display: flex;
  9527. align-items: center;
  9528. justify-content: center;
  9529. /* border-left: 1px solid #E0E2ED; */
  9530. box-sizing: border-box;
  9531. padding: 20px;
  9532. flex-direction: column;
  9533. background: #fff;
  9534. border-radius: 5px;
  9535. }
  9536. .c_info_title {
  9537. padding: 15px 0 15px 0;
  9538. font-size: 16px;
  9539. font-weight: bold;
  9540. margin: 0 0 0 20px;
  9541. box-sizing: border-box;
  9542. display: flex;
  9543. align-items: center;
  9544. line-height: 20px;
  9545. }
  9546. .c_info_title::before {
  9547. content: '';
  9548. display: block;
  9549. width: 3px;
  9550. height: 20px;
  9551. background: #0061FF;
  9552. border-radius: 3px;
  9553. margin: 0 5px 0 0;
  9554. }
  9555. .right_title {
  9556. height: 30px;
  9557. padding: 15px 0 15px 20px;
  9558. border-bottom: 1px solid #f2f2f2;
  9559. font-size: 1.5em;
  9560. font-weight: bold;
  9561. color: #0f7eff;
  9562. margin: 0 auto;
  9563. }
  9564. .addNewPP>>>.el-dialog {
  9565. margin-top: 5vh !important;
  9566. }
  9567. .people {
  9568. border: 1px solid rgb(229 229 229);
  9569. height: 350px;
  9570. border-radius: 5px;
  9571. width: 100%;
  9572. overflow: auto;
  9573. }
  9574. .people_top {
  9575. display: flex;
  9576. width: 100%;
  9577. /* justify-content: space-between; */
  9578. /* align-items: center; */
  9579. flex-direction: column;
  9580. padding: 10px 25px 0;
  9581. box-sizing: border-box;
  9582. }
  9583. .people_nav,
  9584. .people_top_right {
  9585. /* padding: 20px 0 0 20px; */
  9586. }
  9587. .people_top_right {
  9588. height: 40px;
  9589. margin-bottom: 10px;
  9590. }
  9591. .people_search {
  9592. display: flex;
  9593. position: relative;
  9594. }
  9595. .people_search>>>.el-input__inner {
  9596. /* height: 25px; */
  9597. width: 95%;
  9598. }
  9599. .search_img {
  9600. width: 20px;
  9601. height: 20px;
  9602. position: absolute;
  9603. right: 30px;
  9604. top: 50%;
  9605. transform: translateY(-50%);
  9606. }
  9607. .search_img>img {
  9608. width: 100%;
  9609. height: 100%;
  9610. }
  9611. .people_name {
  9612. display: flex;
  9613. justify-content: flex-start;
  9614. padding: 10px 0 0 25px;
  9615. flex-direction: column;
  9616. flex-wrap: nowrap;
  9617. height: calc(100% - 140px);
  9618. overflow-y: auto;
  9619. overflow-x: hidden;
  9620. flex-direction: column;
  9621. }
  9622. .people_name>>>.el-checkbox {
  9623. width: 100%;
  9624. display: flex;
  9625. align-items: center;
  9626. margin-bottom: 10px;
  9627. }
  9628. .people_name>>>.el-checkbox__label {
  9629. text-overflow: ellipsis;
  9630. overflow: hidden;
  9631. width: 100%;
  9632. }
  9633. .right_img {
  9634. width: 150px;
  9635. height: 150px;
  9636. margin: 0 auto;
  9637. }
  9638. .right_img>img {
  9639. width: 100%;
  9640. height: 100%;
  9641. }
  9642. .number {
  9643. margin-top: 20px;
  9644. color: #4aa6ff;
  9645. text-decoration: underline;
  9646. }
  9647. .success_button {
  9648. display: flex;
  9649. text-align: center;
  9650. margin: 5% 0 auto;
  9651. flex-direction: row;
  9652. justify-content: center;
  9653. }
  9654. .look_course {
  9655. margin-right: 40px;
  9656. background: #3d67bc;
  9657. width: 200px;
  9658. height: 35px;
  9659. line-height: 35px;
  9660. color: #fff;
  9661. text-align: center;
  9662. font-size: 14px;
  9663. border-radius: 5px;
  9664. cursor: pointer;
  9665. }
  9666. .attend_others {
  9667. width: 250px;
  9668. background: #4fb13c;
  9669. height: 35px;
  9670. line-height: 35px;
  9671. color: #fff;
  9672. text-align: center;
  9673. font-size: 14px;
  9674. border-radius: 5px;
  9675. cursor: pointer;
  9676. }
  9677. .dialog_diy2>>>.el-dialog__body {
  9678. text-align: center;
  9679. }
  9680. .write_togother {
  9681. position: absolute;
  9682. right: 45px;
  9683. display: flex;
  9684. top: 5%;
  9685. }
  9686. .write_people {
  9687. font-size: 14px;
  9688. line-height: 50px;
  9689. padding-right: 10px;
  9690. }
  9691. .end_write {
  9692. background: #3d67bc;
  9693. color: #fff;
  9694. width: 100px;
  9695. height: 35px;
  9696. line-height: 35px;
  9697. text-align: center;
  9698. font-size: 14px;
  9699. border-radius: 5px;
  9700. cursor: pointer;
  9701. }
  9702. .chapter_upload {
  9703. height: 50px;
  9704. margin-top: 12px;
  9705. position: relative;
  9706. display: flex;
  9707. align-items: center;
  9708. width: 100%;
  9709. min-height: 50px;
  9710. }
  9711. .chapter_upload_drag {
  9712. position: absolute;
  9713. cursor: pointer;
  9714. width: 16px;
  9715. height: 16px;
  9716. left: -9px;
  9717. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  9718. background-size: 100% 100%;
  9719. z-index: 10;
  9720. display: none;
  9721. }
  9722. .isNavStage>.chapter_upload_drag {
  9723. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  9724. }
  9725. .chapter_upload_t {
  9726. background-color: #fff;
  9727. position: absolute;
  9728. height: 100%;
  9729. top: 0px;
  9730. left: 0px;
  9731. border-radius: 40px;
  9732. box-sizing: border-box;
  9733. box-shadow: 0 0 3px 3px #dfdfdf;
  9734. }
  9735. .chapter_upload_o {
  9736. width: 100%;
  9737. height: 100%;
  9738. position: relative;
  9739. z-index: 1;
  9740. }
  9741. .chapter_upload_ic {
  9742. height: 30px;
  9743. float: right;
  9744. }
  9745. .chapter_upload_ic_l {
  9746. width: 50px;
  9747. height: 50px;
  9748. float: left;
  9749. }
  9750. .chapter_upload_ic_l div {
  9751. width: 30px;
  9752. height: 35px;
  9753. background: url("../../../assets/icon/icon.png");
  9754. }
  9755. .chapter_upload_ic_r {
  9756. width: 50px;
  9757. height: 50px;
  9758. float: left;
  9759. margin-left: 0px;
  9760. display: flex;
  9761. align-items: center;
  9762. }
  9763. .chapter_upload_ic_r div {
  9764. width: 25px;
  9765. height: 25px;
  9766. background-image: url("../../../assets/delete.png");
  9767. background-size: 100% 100%;
  9768. }
  9769. .chapter_upload_n {
  9770. display: flex;
  9771. text-indent: 10px;
  9772. text-decoration: none;
  9773. text-overflow: ellipsis;
  9774. white-space: nowrap;
  9775. overflow: hidden;
  9776. width: 55%;
  9777. margin-left: 10px;
  9778. cursor: pointer;
  9779. margin-top: 2px;
  9780. }
  9781. .chapter_upload_l_i1 {
  9782. background-image: url("../../../assets/icon/video.png");
  9783. width: 28px;
  9784. height: 28px;
  9785. background-size: 100% 100%;
  9786. }
  9787. .chapter_upload_l_i5 {
  9788. background-image: url("../../../assets/icon/word.png");
  9789. width: 24px;
  9790. height: 24px;
  9791. background-size: 100% 100%;
  9792. }
  9793. .chapter_upload_l_i8 {
  9794. background-image: url("../../../assets/icon/line.png");
  9795. width: 24px;
  9796. height: 24px;
  9797. background-size: 100% 100%;
  9798. }
  9799. .chapter_upload_ud {
  9800. display: flex;
  9801. flex-direction: column;
  9802. margin-left: 5px;
  9803. justify-content: center;
  9804. }
  9805. .chapter_upload_up {
  9806. background-image: url("../../../assets/icon/up.png");
  9807. width: 17px;
  9808. height: 15px;
  9809. background-size: 100% 100%;
  9810. cursor: pointer;
  9811. }
  9812. .chapter_upload_down {
  9813. background-image: url("../../../assets/icon/down.png");
  9814. width: 17px;
  9815. height: 15px;
  9816. margin: 2px auto 0 auto;
  9817. background-size: 100% 100%;
  9818. cursor: pointer;
  9819. }
  9820. .addWordStyle {
  9821. display: flex;
  9822. flex-direction: row;
  9823. justify-content: flex-start;
  9824. overflow-x: auto;
  9825. white-space: nowrap;
  9826. flex-wrap: wrap;
  9827. }
  9828. /* table 样式 */
  9829. .cont>>>table {
  9830. border-top: 1px solid #ccc;
  9831. border-left: 1px solid #ccc;
  9832. }
  9833. .cont>>>table td,
  9834. .cont>>>table th {
  9835. border-bottom: 1px solid #ccc;
  9836. border-right: 1px solid #ccc;
  9837. /* padding: 20px 5px; */
  9838. padding: 5px 10px;
  9839. max-width: 0px;
  9840. height: 30px;
  9841. vertical-align: baseline;
  9842. }
  9843. .cont>>>table th {
  9844. border-bottom: 2px solid #ccc;
  9845. text-align: center;
  9846. }
  9847. /* blockquote 样式 */
  9848. .cont>>>blockquote {
  9849. display: block;
  9850. border-left: 8px solid #d0e5f2;
  9851. padding: 5px 10px;
  9852. margin: 10px 0;
  9853. line-height: 1.4;
  9854. font-size: 100%;
  9855. background-color: #f1f1f1;
  9856. }
  9857. /* code 样式 */
  9858. .cont>>>code {
  9859. display: inline-block;
  9860. *display: inline;
  9861. *zoom: 1;
  9862. background-color: #f1f1f1;
  9863. border-radius: 3px;
  9864. padding: 3px 5px;
  9865. margin: 0 3px;
  9866. }
  9867. .cont>>>pre code {
  9868. display: block;
  9869. }
  9870. /* ul ol 样式 */
  9871. .cont>>>ul,
  9872. ol {
  9873. margin: 10px 0 10px 20px;
  9874. }
  9875. .wordbox {
  9876. display: flex;
  9877. flex-wrap: wrap;
  9878. cursor: pointer;
  9879. width: 100%;
  9880. }
  9881. .checkword {
  9882. width: 22px;
  9883. height: 22px;
  9884. margin: 10px auto 0;
  9885. cursor: pointer;
  9886. }
  9887. .checkword img {
  9888. width: 100%;
  9889. }
  9890. .stepBg {
  9891. display: flex;
  9892. flex-direction: column;
  9893. justify-content: space-between;
  9894. align-items: center;
  9895. background: #fff;
  9896. width: 300px;
  9897. margin: 0 25px 0 0;
  9898. }
  9899. .stepTop {
  9900. min-width: 300px;
  9901. width: 300px;
  9902. /* border-radius: 10px; */
  9903. display: flex;
  9904. flex-direction: column;
  9905. justify-content: flex-start;
  9906. align-items: center;
  9907. flex-wrap: nowrap;
  9908. background: #fff;
  9909. /* top: 18%; */
  9910. }
  9911. .stepTop>div {
  9912. height: 65px;
  9913. width: 85%;
  9914. cursor: pointer;
  9915. margin: 10px 0;
  9916. border-radius: 10px;
  9917. }
  9918. .first,
  9919. .second,
  9920. .third,
  9921. .four {
  9922. background: #0061FF;
  9923. height: 90px;
  9924. color: #fff;
  9925. display: flex;
  9926. flex-direction: row;
  9927. align-items: center;
  9928. justify-content: center;
  9929. }
  9930. .cfirst {
  9931. display: flex;
  9932. align-items: center;
  9933. justify-content: flex-start;
  9934. width: 150px;
  9935. }
  9936. .cfirst img {
  9937. width: 100%;
  9938. }
  9939. .cfirst>div:nth-child(1) {
  9940. margin-right: 5px;
  9941. width: 28px;
  9942. display: flex;
  9943. align-items: center;
  9944. }
  9945. /* .first>div>div:nth-child(1),
  9946. .second>div>div:nth-child(1),
  9947. .third>div>div:nth-child(1),
  9948. .four>div>div:nth-child(1) {
  9949. margin: 0 10px 0 0;
  9950. width: 2rem;
  9951. } */
  9952. .firstNo,
  9953. .secondNo,
  9954. .thirdNo,
  9955. .fourNo {
  9956. background: #e7e7e7;
  9957. color: #adadad;
  9958. display: flex;
  9959. flex-direction: row;
  9960. align-items: center;
  9961. justify-content: center;
  9962. }
  9963. /* .firstNo>div>div:nth-child(1),
  9964. .secondNo>div>div:nth-child(1),
  9965. .thirdNo>div>div:nth-child(1),
  9966. .fourNo>div>div:nth-child(1) {
  9967. margin: 0 10px 0 0;
  9968. width: 2rem;
  9969. } */
  9970. .uploadWidth>>>.el-upload {
  9971. width: 60px;
  9972. height: 60px;
  9973. position: relative;
  9974. }
  9975. .addPeople {
  9976. background: #fa6060;
  9977. width: 150px;
  9978. height: 40px;
  9979. color: #fff;
  9980. border-radius: 5px;
  9981. text-align: center;
  9982. line-height: 40px;
  9983. font-size: 14px;
  9984. cursor: pointer;
  9985. margin-top: 20px;
  9986. }
  9987. .kcImg {
  9988. width: 60px;
  9989. margin-left: 10px;
  9990. }
  9991. .zyImg {
  9992. width: 55px;
  9993. margin: 0 10px;
  9994. }
  9995. .deleteZy {
  9996. width: 20px;
  9997. position: absolute;
  9998. top: 5px;
  9999. right: 5px;
  10000. cursor: pointer;
  10001. }
  10002. .kcImg>img,
  10003. .zyImg>img,
  10004. .deleteZy>img {
  10005. width: 100%;
  10006. height: 100%;
  10007. }
  10008. .zyBox {
  10009. display: flex;
  10010. flex-direction: row;
  10011. align-items: center;
  10012. background: #67d37d;
  10013. color: #fff;
  10014. width: 210px;
  10015. margin: 20px 20px 0 0;
  10016. border-radius: 10px;
  10017. height: 70px;
  10018. position: relative;
  10019. }
  10020. .upCss {
  10021. display: flex;
  10022. flex-direction: row;
  10023. justify-content: flex-start;
  10024. }
  10025. .upCss>>>.el-icon-plus {
  10026. position: none !important;
  10027. width: 200px;
  10028. height: 100px;
  10029. display: flex;
  10030. flex-wrap: nowrap;
  10031. flex-direction: column;
  10032. align-items: center;
  10033. justify-content: center;
  10034. border: 1px dashed #ccc;
  10035. min-width: 78px;
  10036. min-height: 100px;
  10037. z-index: 999;
  10038. }
  10039. .upCss>>>.el-upload-list__item-name {
  10040. width: 100px;
  10041. white-space: nowrap;
  10042. overflow: hidden;
  10043. text-overflow: ellipsis;
  10044. }
  10045. .upCss>>>.el-upload-list__item .el-icon-close {
  10046. font-size: 20px;
  10047. z-index: 9999;
  10048. }
  10049. .addStageImg {
  10050. min-width: 20px;
  10051. min-height: 20px;
  10052. width: 20px;
  10053. height: 20px;
  10054. cursor: pointer;
  10055. }
  10056. .addHW {
  10057. width: 28px;
  10058. height: 28px;
  10059. cursor: pointer;
  10060. }
  10061. .addStageImg>img,
  10062. .addHW>img {
  10063. width: 100%;
  10064. height: 100%;
  10065. }
  10066. .addNewPP>>>.el-dialog__body {
  10067. padding: 5px 20px;
  10068. }
  10069. .isHeight {
  10070. height: 680px;
  10071. }
  10072. .toolChoose {
  10073. display: flex;
  10074. /* width: 100%; */
  10075. flex-direction: row;
  10076. flex-wrap: wrap;
  10077. }
  10078. .tool {
  10079. display: flex;
  10080. flex-direction: column;
  10081. flex-wrap: nowrap;
  10082. width: fit-content;
  10083. margin: 10px 0 10px 0;
  10084. align-items: center;
  10085. }
  10086. .tool+.tool {
  10087. margin-right: 45px;
  10088. }
  10089. .whiteBIcon {
  10090. width: 80px;
  10091. cursor: pointer;
  10092. display: flex;
  10093. flex-direction: column;
  10094. flex-wrap: nowrap;
  10095. align-items: center;
  10096. }
  10097. .whiteBIcon>img,
  10098. .toolIcon>img,
  10099. .arrow>img {
  10100. width: 100%;
  10101. height: 100%;
  10102. }
  10103. .check img {
  10104. width: 20px;
  10105. height: 20px;
  10106. }
  10107. .whiteBIcon>img {
  10108. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10109. border-radius: 15px;
  10110. }
  10111. .check {
  10112. /* width: 20px;
  10113. height: 20px; */
  10114. cursor: pointer;
  10115. margin: 10px 0;
  10116. }
  10117. .checkDiv {
  10118. display: flex;
  10119. align-items: center;
  10120. }
  10121. .checkDiv span {
  10122. margin-left: 5px;
  10123. color: #858585;
  10124. }
  10125. .customWidth>>>.el-dialog {
  10126. min-width: 500px !important;
  10127. }
  10128. .a_addBox {
  10129. margin: 10px 0;
  10130. background: #fff;
  10131. padding: 15px;
  10132. max-height: 600px;
  10133. overflow: auto;
  10134. }
  10135. .a_add_box {
  10136. border-bottom: 2px solid #eee;
  10137. padding-bottom: 10px;
  10138. }
  10139. .a_add_head {
  10140. display: flex;
  10141. align-items: center;
  10142. justify-content: space-between;
  10143. margin: 10px 0;
  10144. font-size: 18px;
  10145. }
  10146. .a_add_checkType {
  10147. margin-top: 10px;
  10148. display: flex;
  10149. font-size: 16px;
  10150. }
  10151. .a_add_checkType span {
  10152. box-sizing: border-box;
  10153. padding: 0 0 5px 0;
  10154. cursor: pointer;
  10155. }
  10156. .a_add_checkType span+span {
  10157. margin-left: 10px;
  10158. }
  10159. .a_add_checkType .active {
  10160. border-bottom: 2px solid #409eff;
  10161. color: #409eff;
  10162. }
  10163. .a_add_head .a_add_head_input {
  10164. width: 300px;
  10165. }
  10166. .a_add_head .a_add_head_div {
  10167. display: flex;
  10168. align-items: center;
  10169. justify-content: space-between;
  10170. }
  10171. .a_add_body {
  10172. display: flex;
  10173. /* align-items: center; */
  10174. align-items: flex-end;
  10175. }
  10176. .a_add_input {
  10177. display: flex;
  10178. align-items: center;
  10179. flex-wrap: wrap;
  10180. }
  10181. .a_add_input_choice {
  10182. flex-direction: column;
  10183. margin-right: 10px;
  10184. }
  10185. .a_add_input_choice>>>.el-radio {
  10186. display: flex;
  10187. align-items: center;
  10188. flex-direction: row-reverse;
  10189. margin: 10px 0 0 0;
  10190. }
  10191. .a_add_input_choice>>>.el-checkbox {
  10192. display: flex;
  10193. align-items: center;
  10194. flex-direction: row-reverse;
  10195. margin: 10px 0 0 0;
  10196. }
  10197. .width100 {
  10198. width: 100%;
  10199. }
  10200. .a_add_input .a_add_persent {
  10201. width: 100%;
  10202. }
  10203. .a_add_persent_div {
  10204. width: 100%;
  10205. display: flex;
  10206. align-items: center;
  10207. }
  10208. .a_add_persent_div span {
  10209. margin: 5px 0;
  10210. }
  10211. .a_add_persent_div span:nth-child(1) {
  10212. width: 30%;
  10213. }
  10214. .a_add_persent_div span:nth-child(2) {
  10215. width: 7%;
  10216. }
  10217. .a_add_persent_div span:nth-child(3) {
  10218. width: 40%;
  10219. }
  10220. .a_add_body_div {
  10221. display: flex;
  10222. align-items: center;
  10223. justify-content: center;
  10224. /* flex-direction: column; */
  10225. }
  10226. .all_choose {
  10227. display: flex;
  10228. flex-direction: row;
  10229. align-items: flex-start;
  10230. width: 100%;
  10231. }
  10232. .all_choose+.all_choose {
  10233. /* margin-top: 10px */
  10234. }
  10235. .all_choose>span {
  10236. min-width: fit-content;
  10237. display: block;
  10238. white-space: nowrap;
  10239. overflow: hidden;
  10240. text-overflow: ellipsis;
  10241. margin-right: 20px;
  10242. font-weight: bold;
  10243. font-size: 14px;
  10244. }
  10245. .all_choose>>>.el-checkbox-group {
  10246. display: flex;
  10247. flex-direction: row;
  10248. width: 100%;
  10249. flex-wrap: wrap;
  10250. align-content: center;
  10251. justify-content: flex-start;
  10252. align-items: center;
  10253. margin-top: 3px;
  10254. }
  10255. .all_choose>.el-checkbox-group>>>.el-checkbox {
  10256. margin-bottom: 10px;
  10257. display: flex;
  10258. flex-direction: row;
  10259. align-items: center;
  10260. margin-right: 10px;
  10261. }
  10262. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  10263. min-width: 80px;
  10264. overflow: hidden;
  10265. width: 80px;
  10266. text-overflow: ellipsis;
  10267. white-space: nowrap;
  10268. }
  10269. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  10270. width: auto;
  10271. }
  10272. .choose>div:nth-child(3)>span {
  10273. /* letter-spacing: 0 !important; */
  10274. }
  10275. .choose {
  10276. display: flex;
  10277. flex-direction: column;
  10278. flex-wrap: nowrap;
  10279. height: 100%;
  10280. justify-content: space-evenly;
  10281. align-items: flex-start;
  10282. }
  10283. .both {
  10284. display: flex;
  10285. flex-direction: row;
  10286. flex-wrap: wrap;
  10287. width: 100%;
  10288. align-items: center;
  10289. justify-content: flex-start;
  10290. margin: 15px 0;
  10291. }
  10292. .subjectBox {
  10293. display: flex;
  10294. flex-wrap: wrap;
  10295. width: 100%;
  10296. align-items: center;
  10297. }
  10298. .subjectList {}
  10299. .subjectBtn {
  10300. margin-left: 10px;
  10301. border-radius: 5px;
  10302. border: 1px dashed #bfbfbf;
  10303. padding: 2px 5px;
  10304. cursor: pointer;
  10305. font-size: 14px;
  10306. color: #545454;
  10307. }
  10308. .notice>>>.el-dialog {
  10309. width: 500px !important;
  10310. text-align: center;
  10311. }
  10312. .notice>>>.el-button {
  10313. margin-top: 20px;
  10314. }
  10315. .whiteBg {
  10316. /* background: #fff; */
  10317. border-radius: 10px;
  10318. }
  10319. .wb_j_box {
  10320. display: flex;
  10321. width: 100%;
  10322. padding: 0 20px 0;
  10323. box-sizing: border-box;
  10324. }
  10325. .wb_j_box_content {
  10326. width: calc(100% - 55% - 100px);
  10327. display: flex;
  10328. align-items: center;
  10329. }
  10330. .wb_j_box_p_box {
  10331. max-width: calc(100% - 200px);
  10332. word-break: break-all;
  10333. overflow: hidden;
  10334. margin: 0 0 0 10px;
  10335. font-size: 14px;
  10336. color: #6e6e6e;
  10337. z-index: 999;
  10338. }
  10339. .chooseWho {
  10340. display: flex;
  10341. width: 380px;
  10342. flex-direction: row;
  10343. flex-wrap: nowrap;
  10344. justify-content: space-between;
  10345. padding-bottom: 10px;
  10346. }
  10347. .chooseWho>div {
  10348. cursor: pointer;
  10349. padding-bottom: 10px;
  10350. font-weight: bold;
  10351. }
  10352. .isChooseActive {
  10353. color: #3e88f4;
  10354. border-bottom: 2px solid #2f80f3;
  10355. }
  10356. .toolSort {
  10357. display: flex;
  10358. flex-direction: row;
  10359. flex-wrap: wrap;
  10360. justify-content: flex-start;
  10361. align-items: flex-start;
  10362. }
  10363. .toolSort>div {
  10364. margin-right: 45px;
  10365. }
  10366. .tools {
  10367. width: 100%;
  10368. display: flex;
  10369. flex-direction: column;
  10370. flex-wrap: nowrap;
  10371. align-items: flex-start;
  10372. }
  10373. .leftTools,
  10374. .rightTools {
  10375. width: 50%;
  10376. }
  10377. .rightTools {
  10378. display: flex;
  10379. flex-direction: row;
  10380. flex-wrap: nowrap;
  10381. justify-content: space-around;
  10382. }
  10383. .firstToolList {
  10384. display: flex;
  10385. flex-direction: column;
  10386. flex-wrap: nowrap;
  10387. align-items: center;
  10388. }
  10389. .iconList {
  10390. display: flex;
  10391. flex-direction: row;
  10392. flex-wrap: wrap;
  10393. justify-content: flex-start;
  10394. align-items: center;
  10395. margin: 20px 0 5px 0;
  10396. width: 240px;
  10397. min-width: 240px;
  10398. }
  10399. .iconTool {
  10400. display: flex;
  10401. flex-direction: column;
  10402. flex-wrap: nowrap;
  10403. align-items: center;
  10404. justify-content: flex-start;
  10405. margin: 15px 10px;
  10406. }
  10407. .toolIcon {
  10408. width: 50px;
  10409. }
  10410. .taskBorder {
  10411. /* border: 1px solid #CAD1DC; */
  10412. border-radius: 10px;
  10413. margin-top: 10px;
  10414. min-height: 670px;
  10415. position: relative;
  10416. background: #fff;
  10417. padding: 20px;
  10418. overflow: hidden;
  10419. box-sizing: border-box;
  10420. }
  10421. .smallTaskBorder {
  10422. height: 405px;
  10423. min-height: 405px !important;
  10424. overflow: hidden;
  10425. }
  10426. .addTaskBorder {
  10427. /* border: 2px solid #5E9AFC; */
  10428. border-radius: 8px;
  10429. margin-top: 10px;
  10430. cursor: pointer;
  10431. /* height: 50px;
  10432. line-height: 50px; */
  10433. background: #fff;
  10434. padding: 15px 0;
  10435. display: flex;
  10436. align-items: center;
  10437. justify-content: center;
  10438. }
  10439. .task_add_title {
  10440. margin: 50px 0px 10px;
  10441. font-size: 1.5em;
  10442. font-weight: 700;
  10443. color: #0f7eff;
  10444. }
  10445. .task_add_title::after {
  10446. content: "提示:建议不要多账户同时编辑同一个任务";
  10447. font-size: 14px;
  10448. margin-left: 5px;
  10449. font-weight: 400;
  10450. color: #ff3a3a;
  10451. }
  10452. .funBlock {
  10453. display: flex;
  10454. padding: 15px 0;
  10455. flex-direction: row;
  10456. justify-content: center;
  10457. align-items: center;
  10458. position: absolute;
  10459. right: 0;
  10460. bottom: 0;
  10461. background: #fff;
  10462. width: 100%;
  10463. height: 60px;
  10464. z-index: 9;
  10465. }
  10466. .fold {
  10467. display: flex;
  10468. margin: 0 20px;
  10469. flex-direction: row;
  10470. align-items: center;
  10471. cursor: pointer;
  10472. color: #2b7bff;
  10473. }
  10474. .arrow {
  10475. margin-right: 8px;
  10476. width: 16px;
  10477. height: 16px;
  10478. min-width: 16px;
  10479. min-height: 16px;
  10480. background-size: 100% 100%;
  10481. display: block;
  10482. background-image: url(../../../assets/icon/new/u_up.png);
  10483. /* border-left: 7px solid transparent;
  10484. border-bottom: 7px solid #717C8D;
  10485. border-top: 0px solid transparent;
  10486. border-right: 7px solid transparent; */
  10487. /* box-sizing: border-box; */
  10488. transition: all .3s;
  10489. }
  10490. .arrowZ {
  10491. transform: rotate(180deg);
  10492. }
  10493. .addToolFunBox {
  10494. display: flex;
  10495. width: 100%;
  10496. align-items: center;
  10497. justify-content: center;
  10498. margin-bottom: 35px;
  10499. }
  10500. .addToolFun+.addToolFun {
  10501. margin-left: 10px;
  10502. }
  10503. .addToolFun {
  10504. display: flex;
  10505. width: 150px;
  10506. flex-direction: row;
  10507. align-items: center;
  10508. justify-content: center;
  10509. border: 1px dashed;
  10510. border-radius: 5px;
  10511. height: 50px;
  10512. /* margin: 35px auto 0; */
  10513. cursor: pointer;
  10514. }
  10515. .addToolImg {
  10516. width: 30px;
  10517. height: 30px;
  10518. margin-right: 20px;
  10519. }
  10520. .addToolsDia>>>.el-dialog__body {
  10521. padding: 20px;
  10522. }
  10523. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10524. padding: 0;
  10525. }
  10526. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10527. padding: 0;
  10528. border-bottom: none;
  10529. margin-bottom: 0;
  10530. }
  10531. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10532. width: 100%;
  10533. }
  10534. .lineCss>>>.el-form-item__label {
  10535. width: auto !important;
  10536. }
  10537. .lineCss>>>.el-form-item__content {
  10538. margin-left: 50px !important;
  10539. }
  10540. .newSteps {
  10541. display: flex;
  10542. width: 100% !important;
  10543. height: 80px;
  10544. cursor: pointer;
  10545. margin: 10px 0;
  10546. border-radius: 10px;
  10547. flex-direction: row;
  10548. align-content: center;
  10549. justify-content: center;
  10550. align-items: center;
  10551. margin: 0 !important;
  10552. }
  10553. /* 评价样式 */
  10554. .elist_css {
  10555. padding-bottom: 60px !important;
  10556. }
  10557. .elist_title {
  10558. margin-bottom: 10px;
  10559. }
  10560. .elist_input {}
  10561. .elist_input_box {
  10562. display: flex;
  10563. align-items: center;
  10564. flex-wrap: wrap;
  10565. }
  10566. .elist_input_box+.elist_input_box {
  10567. margin-top: 30px;
  10568. }
  10569. .elist_input .elist_input_box input {
  10570. font: inherit;
  10571. color: currentColor;
  10572. /* width: 200px; */
  10573. max-width: 200px;
  10574. padding: 8px 14px;
  10575. display: block;
  10576. min-width: 0;
  10577. outline: none;
  10578. border: 1px solid rgba(0, 0, 0, 0.23);
  10579. border-radius: 4px;
  10580. box-sizing: border-box;
  10581. background: #fff;
  10582. margin: 0 20px 0 0;
  10583. }
  10584. .elist_input .elist_input_box span {
  10585. height: 36px;
  10586. line-height: 36px;
  10587. color: rgb(82, 82, 82);
  10588. min-width: 80px;
  10589. }
  10590. .elist_input .elist_input_box .remove {
  10591. height: 20px;
  10592. width: 20px;
  10593. background-size: 100% 100%;
  10594. background-position: unset;
  10595. margin-left: 5px;
  10596. }
  10597. .elist_input_box>>>.el-rate {
  10598. display: flex;
  10599. height: 36px;
  10600. align-items: center;
  10601. }
  10602. .elist_input_box .elist_inptu_text {
  10603. width: 100%;
  10604. display: flex;
  10605. align-items: center;
  10606. margin-top: 10px;
  10607. }
  10608. .elist_input_box .elist_inptu_text input {
  10609. /* width: 500px; */
  10610. width: 100%;
  10611. max-width: unset;
  10612. }
  10613. .elist_input_box>>>.el-rate__icon {
  10614. font-size: 24px;
  10615. }
  10616. .elist_btn {
  10617. margin-top: 10px;
  10618. }
  10619. .lineTitle {
  10620. /* margin-top: 15px; */
  10621. width: 110px;
  10622. font-size: 16px;
  10623. display: flex;
  10624. align-items: center;
  10625. line-height: 20px;
  10626. }
  10627. .lineTitle::before {
  10628. content: '';
  10629. display: block;
  10630. width: 3px;
  10631. height: 20px;
  10632. background: #0061FF;
  10633. border-radius: 3px;
  10634. margin: 0 5px 0 0;
  10635. }
  10636. .clineTitle::before {
  10637. content: '';
  10638. display: block;
  10639. min-width: 10px;
  10640. width: 10px;
  10641. height: 10px;
  10642. background: #0061ff;
  10643. border-radius: 50%;
  10644. margin: 0 5px 0 0;
  10645. }
  10646. .courseTop {
  10647. display: flex;
  10648. flex-direction: row;
  10649. justify-content: space-between;
  10650. align-items: center;
  10651. /* width: 100%; */
  10652. width: calc(100% - 40px);
  10653. /* background: rgb(255, 255, 255); */
  10654. /* border-radius: 10px; */
  10655. padding: 10px 0;
  10656. margin: 0 auto;
  10657. }
  10658. .stepsNav {
  10659. display: flex;
  10660. flex-direction: row;
  10661. justify-content: flex-start;
  10662. align-items: center;
  10663. }
  10664. .stepsWord {
  10665. font-size: 18px;
  10666. color: #fff;
  10667. font-weight: bold;
  10668. margin-left: auto;
  10669. background: rgb(15, 126, 255);
  10670. border-radius: 5px;
  10671. padding: 3px 25px;
  10672. box-sizing: border-box;
  10673. }
  10674. .stepBox {
  10675. width: calc(100% - 40px);
  10676. height: calc(100% - 50px);
  10677. overflow: hidden;
  10678. border-radius: 5px;
  10679. margin: 0 auto;
  10680. }
  10681. .rightBox {
  10682. width: calc(100%);
  10683. /* background: rgb(255, 255, 255); */
  10684. /* border-radius: 10px; */
  10685. overflow: auto;
  10686. height: calc(100% - 20px);
  10687. position: relative;
  10688. margin: 0 auto;
  10689. }
  10690. .e_add_top {
  10691. display: flex;
  10692. justify-content: space-between;
  10693. padding: 20px 20px 0 20px;
  10694. border-radius: 3px;
  10695. background: #fff;
  10696. }
  10697. .e_add_title2 {
  10698. display: flex;
  10699. align-items: center;
  10700. }
  10701. .e_add_title2 span {
  10702. width: 40px;
  10703. }
  10704. .e_add_title {
  10705. display: flex;
  10706. align-items: center;
  10707. color: #b8b8b8;
  10708. font-size: 18px;
  10709. position: relative;
  10710. height: 40px;
  10711. }
  10712. .e_add_title span {
  10713. margin-right: 10px;
  10714. }
  10715. .e_add_title .el_input {
  10716. width: 300px;
  10717. }
  10718. .e_add_title>>>.el-input__inner {
  10719. width: 400px;
  10720. }
  10721. .e_add_btn {}
  10722. .e_add_content {
  10723. display: flex;
  10724. width: 100%;
  10725. }
  10726. .e_add_list {
  10727. background: #fff;
  10728. height: 500px;
  10729. width: 210px;
  10730. position: relative;
  10731. margin: 15px 5px 0 0;
  10732. flex-shrink: 0;
  10733. display: flex;
  10734. flex-direction: column;
  10735. }
  10736. .e_add_list_title {
  10737. font-size: 20px;
  10738. width: 100%;
  10739. box-sizing: border-box;
  10740. padding: 15px 40px;
  10741. text-align: center;
  10742. border-bottom: 1px solid #eaeaea;
  10743. position: relative;
  10744. display: flex;
  10745. align-items: center;
  10746. justify-content: center;
  10747. height: 57px;
  10748. background: #f6f6f6;
  10749. }
  10750. .e_add_list_title span {
  10751. overflow: hidden;
  10752. white-space: nowrap;
  10753. text-overflow: ellipsis;
  10754. }
  10755. .e_add_list_title img {
  10756. position: absolute;
  10757. right: 15px;
  10758. width: 25px;
  10759. cursor: pointer;
  10760. top: 50%;
  10761. transform: translateY(-50%);
  10762. }
  10763. .e_add_list_body {
  10764. height: calc(100% - 187px);
  10765. overflow: auto;
  10766. }
  10767. .e_add_list_child {
  10768. width: 100%;
  10769. display: flex;
  10770. align-items: center;
  10771. justify-content: center;
  10772. position: relative;
  10773. box-sizing: border-box;
  10774. padding: 15px 40px;
  10775. text-align: center;
  10776. }
  10777. .e_add_list_child span {
  10778. overflow: hidden;
  10779. white-space: nowrap;
  10780. text-overflow: ellipsis;
  10781. cursor: pointer;
  10782. }
  10783. .e_add_list_child img {
  10784. position: absolute;
  10785. right: 10px;
  10786. width: 21px;
  10787. cursor: pointer;
  10788. top: 50%;
  10789. transform: translateY(-50%);
  10790. }
  10791. .e_add_list_child+.e_add_list_child {
  10792. border-top: 1px solid #eaeaea;
  10793. }
  10794. .e_add_list_child .active {
  10795. color: #409eff;
  10796. }
  10797. .e_add_list_btn {
  10798. position: absolute;
  10799. bottom: 0;
  10800. height: 50px;
  10801. background: rgb(120, 120, 254);
  10802. width: 100%;
  10803. color: #fff;
  10804. font-size: 16px;
  10805. text-align: center;
  10806. line-height: 50px;
  10807. cursor: pointer;
  10808. }
  10809. .e_add_list_detail {
  10810. position: absolute;
  10811. bottom: 0;
  10812. height: 130px;
  10813. background: rgb(120, 120, 254);
  10814. width: 100%;
  10815. color: #fff;
  10816. font-size: 16px;
  10817. display: flex;
  10818. align-items: center;
  10819. justify-content: center;
  10820. }
  10821. .e_add_list_detail textarea {
  10822. height: 90%;
  10823. width: 95%;
  10824. border: none;
  10825. resize: none;
  10826. outline: none;
  10827. padding: 5px;
  10828. box-sizing: border-box;
  10829. }
  10830. .e_add_list_pbox {
  10831. width: 100%;
  10832. }
  10833. .e_add_list_pbox_title {
  10834. height: 50px;
  10835. background: #fff;
  10836. display: flex;
  10837. align-items: center;
  10838. width: 100%;
  10839. box-sizing: border-box;
  10840. padding: 0 20px;
  10841. flex-direction: row;
  10842. flex-wrap: wrap;
  10843. }
  10844. .type_title {
  10845. font-size: 18px;
  10846. font-weight: 700;
  10847. }
  10848. .type_content {
  10849. font-size: 16px;
  10850. margin-left: 30px;
  10851. }
  10852. .type_content span+span {
  10853. margin-left: 20px;
  10854. }
  10855. .type_content span {
  10856. cursor: pointer;
  10857. padding-bottom: 5px;
  10858. box-sizing: border-box;
  10859. }
  10860. .type_content .active {
  10861. color: #409eff;
  10862. border-bottom: 2px solid #409eff;
  10863. }
  10864. .e_add_list_pbox_content {
  10865. height: calc(100% - 50px);
  10866. display: flex;
  10867. align-items: center;
  10868. width: 100%;
  10869. background: #fff;
  10870. }
  10871. .mbCss {
  10872. width: 100%;
  10873. display: flex;
  10874. flex-direction: row;
  10875. flex-wrap: nowrap;
  10876. align-content: center;
  10877. align-items: flex-start;
  10878. justify-content: flex-start;
  10879. }
  10880. .pjCss {
  10881. /* width: 42%; */
  10882. width: calc(100% - 55%);
  10883. display: flex;
  10884. flex-direction: column;
  10885. flex-wrap: nowrap;
  10886. align-items: flex-start;
  10887. margin-top: 1.5%;
  10888. }
  10889. .e_box {
  10890. display: flex;
  10891. flex-wrap: wrap;
  10892. max-height: 500px;
  10893. align-items: flex-start;
  10894. overflow: auto;
  10895. }
  10896. .e_card {
  10897. border: 1px solid #ccc;
  10898. background: #fff;
  10899. margin-right: 20px;
  10900. width: 270px;
  10901. display: flex;
  10902. flex-direction: column;
  10903. align-items: center;
  10904. border-radius: 5px;
  10905. margin-top: 10px;
  10906. text-align: center;
  10907. }
  10908. .e_card_picture {
  10909. margin: 10px 0;
  10910. }
  10911. .e_card_picture>img {
  10912. width: 50px;
  10913. }
  10914. .e_card_name {
  10915. width: 100%;
  10916. padding: 0 10px;
  10917. box-sizing: border-box;
  10918. margin-bottom: 10px;
  10919. overflow: hidden;
  10920. text-overflow: ellipsis;
  10921. white-space: nowrap;
  10922. }
  10923. .e_card_time {
  10924. width: 100%;
  10925. padding: 0 10px;
  10926. box-sizing: border-box;
  10927. font-size: 15px;
  10928. color: #c3c3c3;
  10929. margin-bottom: 10px;
  10930. }
  10931. .e_card_btn {
  10932. height: 40px;
  10933. display: flex;
  10934. align-items: center;
  10935. width: 100%;
  10936. background: rgb(244, 244, 244);
  10937. }
  10938. .e_card_btn:hover {
  10939. background: rgb(221 221 221);
  10940. }
  10941. .e_card_btn span {
  10942. flex: 1 1 auto;
  10943. text-align: center;
  10944. cursor: pointer;
  10945. }
  10946. .addEva {
  10947. border: 1px solid #ccc;
  10948. background: #fff;
  10949. margin-right: 20px;
  10950. width: 270px;
  10951. height: 149px;
  10952. display: flex;
  10953. flex-direction: column;
  10954. align-items: center;
  10955. border-radius: 5px;
  10956. margin-top: 10px;
  10957. text-align: center;
  10958. cursor: pointer;
  10959. justify-content: center;
  10960. }
  10961. .addEva>img {
  10962. width: 50px;
  10963. object-fit: cover;
  10964. }
  10965. .uploadFm {
  10966. border: 1px dashed #ccc;
  10967. width: 100%;
  10968. height: 140px;
  10969. position: relative;
  10970. cursor: pointer;
  10971. display: flex;
  10972. flex-direction: column;
  10973. justify-content: center;
  10974. align-items: center;
  10975. font-size: 14px;
  10976. color: #6e6e6e;
  10977. position: relative;
  10978. }
  10979. .cover_p {
  10980. width: 100% !important;
  10981. height: 100%;
  10982. object-fit: cover;
  10983. }
  10984. .uploadFm2:hover .cover_mask {
  10985. display: flex !important;
  10986. }
  10987. .cover_mask {
  10988. display: none;
  10989. width: 100%;
  10990. height: 100%;
  10991. position: absolute;
  10992. background: #00000054;
  10993. align-items: center;
  10994. justify-content: center;
  10995. flex-direction: column;
  10996. }
  10997. .cover_mask>img {
  10998. width: 30px;
  10999. }
  11000. .cover_mask>span {
  11001. color: #fff;
  11002. font-size: 12px;
  11003. }
  11004. .uploadFm>img {
  11005. width: 50px;
  11006. }
  11007. .fileCss {
  11008. width: 100%;
  11009. display: flex;
  11010. flex-direction: row;
  11011. flex-wrap: nowrap;
  11012. justify-content: space-around;
  11013. align-items: center;
  11014. padding-top: 15px;
  11015. }
  11016. .sysPicBox {
  11017. display: flex;
  11018. flex-direction: row;
  11019. flex-wrap: wrap;
  11020. align-content: flex-start;
  11021. height: 435px;
  11022. overflow: auto;
  11023. }
  11024. .sysPic {
  11025. width: 200px;
  11026. height: 115px;
  11027. margin: 0 20px 20px 0;
  11028. cursor: pointer;
  11029. }
  11030. .sysPic>img,
  11031. .isSysPic>img,
  11032. .deletePic>img {
  11033. width: 100%;
  11034. height: 100%;
  11035. object-fit: cover;
  11036. }
  11037. .isSysPic {
  11038. width: 200px;
  11039. height: 115px;
  11040. position: relative;
  11041. }
  11042. .deletePic {
  11043. width: 20px;
  11044. height: 20px;
  11045. position: absolute;
  11046. top: 0;
  11047. right: 0;
  11048. cursor: pointer;
  11049. }
  11050. .select_box1 {}
  11051. .select_box1_img {
  11052. background: #fff;
  11053. border-radius: 5px;
  11054. padding: 15px;
  11055. box-sizing: border-box;
  11056. margin-bottom: 20px;
  11057. }
  11058. .select_box1_title {
  11059. padding: 0 0 15px 0;
  11060. border-bottom: 1px solid #eee;
  11061. margin-bottom: 15px;
  11062. }
  11063. .select_box1_title span:nth-child(1) {
  11064. font-size: 16px;
  11065. margin-right: 20px;
  11066. color: #000;
  11067. }
  11068. .select_box1_title span:nth-child(2) {
  11069. font-size: 14px;
  11070. color: rgb(112, 112, 112);
  11071. }
  11072. .select_box1_add_img {}
  11073. .select_box1_select {
  11074. background: #fff;
  11075. border-radius: 5px;
  11076. padding: 15px;
  11077. box-sizing: border-box;
  11078. }
  11079. .select_box2 {}
  11080. .select_box2_title {
  11081. background: #fff;
  11082. border-radius: 5px;
  11083. padding: 5px 10px;
  11084. box-sizing: border-box;
  11085. margin-bottom: 10px;
  11086. }
  11087. .select_box2_box {
  11088. display: flex;
  11089. height: 500px;
  11090. }
  11091. .select_box2_img {
  11092. width: calc(100% - 310px);
  11093. height: 100%;
  11094. overflow: auto;
  11095. background: #fff;
  11096. border-radius: 5px;
  11097. }
  11098. .select_box2_img img {
  11099. width: 100%;
  11100. }
  11101. .select_box2_answer {
  11102. background: #fff;
  11103. margin-left: 10px;
  11104. border-radius: 5px;
  11105. width: 300px;
  11106. overflow: auto;
  11107. height: 100%;
  11108. display: flex;
  11109. flex-direction: column;
  11110. align-items: center;
  11111. padding-top: 10px;
  11112. box-sizing: border-box;
  11113. }
  11114. .select_box2_answer_box {
  11115. margin: 0 0 10px 0;
  11116. width: 85%;
  11117. }
  11118. .rate_textarea {
  11119. font: inherit;
  11120. color: currentColor;
  11121. width: 100%;
  11122. padding: 8px 14px;
  11123. display: block;
  11124. min-width: 0;
  11125. outline: none;
  11126. border: 1px solid rgba(0, 0, 0, 0.23);
  11127. border-radius: 4px;
  11128. box-sizing: border-box;
  11129. background: #fff;
  11130. margin: 0 20px 0 0;
  11131. resize: none;
  11132. }
  11133. .select_answer_title {
  11134. text-align: left;
  11135. width: 85%;
  11136. margin-bottom: 10px;
  11137. font-size: 18px;
  11138. color: #8e8e8e;
  11139. }
  11140. .mask {
  11141. background-color: rgb(0 0 0 / 30%);
  11142. /* position: fixed; */
  11143. position: absolute;
  11144. top: 0;
  11145. left: 0;
  11146. width: 100%;
  11147. height: 100%;
  11148. z-index: 90;
  11149. display: flex;
  11150. align-items: center;
  11151. justify-content: center;
  11152. }
  11153. .mask2 {
  11154. position: fixed !important;
  11155. z-index: 999999;
  11156. }
  11157. .progressBox {
  11158. width: 300px;
  11159. height: 150px;
  11160. background: #fff;
  11161. border-radius: 10px;
  11162. box-shadow: 0 0 6px 1px #bfbfbf;
  11163. display: flex;
  11164. align-items: center;
  11165. justify-content: center;
  11166. flex-direction: column;
  11167. position: relative;
  11168. color: #6c6c6c;
  11169. }
  11170. .progressBox .lbox {
  11171. height: 80px;
  11172. font-size: 16px;
  11173. display: flex;
  11174. align-items: center;
  11175. }
  11176. .progressBox .lbox img {
  11177. width: 40px;
  11178. margin-right: 20px;
  11179. }
  11180. .progressBox>>>.el-progress-bar__outer {
  11181. background-color: #d1dfff !important;
  11182. }
  11183. .mask .lbox2 {
  11184. height: 100%;
  11185. width: 100%;
  11186. font-size: 19px;
  11187. display: flex;
  11188. align-items: center;
  11189. justify-content: center;
  11190. }
  11191. .mask .lbox2 img {
  11192. width: 40px;
  11193. }
  11194. .updateTips::after {
  11195. content: "他人项目暂不支持修改基本信息,只支持修改阶段内容。";
  11196. font-size: 14px;
  11197. margin-left: 20px;
  11198. font-weight: 400;
  11199. color: #ff3a3a;
  11200. }
  11201. .updateMask {
  11202. width: 100%;
  11203. z-index: 3;
  11204. top: 0;
  11205. position: absolute;
  11206. }
  11207. .t_j_box {
  11208. display: flex;
  11209. }
  11210. .t_j_box span:nth-child(1) {
  11211. width: 15%;
  11212. overflow: hidden;
  11213. margin-right: 10px;
  11214. text-overflow: ellipsis;
  11215. white-space: nowrap;
  11216. }
  11217. .t_j_box span:nth-child(2) {
  11218. min-width: 30px;
  11219. margin-right: 10px;
  11220. }
  11221. .t_j_box span:nth-child(3) {
  11222. width: 38%;
  11223. overflow: hidden;
  11224. text-overflow: ellipsis;
  11225. margin-right: 10px;
  11226. }
  11227. .t_j_box span:nth-child(4) {
  11228. max-width: calc(45% - 60px);
  11229. overflow: hidden;
  11230. text-overflow: ellipsis;
  11231. }
  11232. .sentenBox {
  11233. background: #fff;
  11234. height: 600px;
  11235. overflow: auto;
  11236. background-image: url("../../../assets/icon/conSentences/csBg.png");
  11237. background-position: 102%;
  11238. background-repeat: no-repeat;
  11239. background-size: 60%;
  11240. }
  11241. .addSen {
  11242. background: #409efe;
  11243. width: 90px;
  11244. color: #fff;
  11245. height: 35px;
  11246. text-align: center;
  11247. line-height: 35px;
  11248. border-radius: 5px;
  11249. float: right;
  11250. margin: 10px 20px 0 0;
  11251. cursor: pointer;
  11252. }
  11253. .sentenTop {
  11254. display: flex;
  11255. flex-direction: row;
  11256. flex-wrap: nowrap;
  11257. align-items: center;
  11258. }
  11259. .sentenTop>div:nth-child(2) {
  11260. width: 300px;
  11261. margin: 0 15px;
  11262. }
  11263. .sentenTop>div:nth-child(3) {
  11264. background: #409efe;
  11265. color: #fff;
  11266. width: 65px;
  11267. height: 35px;
  11268. text-align: center;
  11269. line-height: 35px;
  11270. border-radius: 5px;
  11271. cursor: pointer;
  11272. }
  11273. .cardList {
  11274. padding: 30px 0 20px 0;
  11275. display: flex;
  11276. flex-direction: row;
  11277. flex-wrap: wrap;
  11278. align-items: center;
  11279. box-sizing: border-box;
  11280. border-bottom: 1px solid #f4f4f4;
  11281. width: 98%;
  11282. margin: 0 auto;
  11283. }
  11284. .cardBox {
  11285. display: flex;
  11286. flex-direction: row;
  11287. flex-wrap: wrap;
  11288. align-items: center;
  11289. align-content: center;
  11290. }
  11291. .isCard,
  11292. .isCard1 {
  11293. width: 140px;
  11294. height: 65px;
  11295. text-align: center;
  11296. line-height: 65px;
  11297. font-size: 20px;
  11298. cursor: pointer;
  11299. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  11300. background-size: cover;
  11301. position: relative;
  11302. z-index: 99;
  11303. }
  11304. .isCard1 {
  11305. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  11306. }
  11307. .isCard:hover .deleteWord {
  11308. display: block;
  11309. }
  11310. .isCard>div:nth-child(1),
  11311. .isCard1>div:nth-child(1) {
  11312. white-space: nowrap;
  11313. overflow: hidden;
  11314. text-overflow: ellipsis;
  11315. width: 80%;
  11316. margin: 0 auto;
  11317. }
  11318. .card {
  11319. width: 140px;
  11320. height: 65px;
  11321. }
  11322. .card>img {
  11323. width: 100%;
  11324. height: 100%;
  11325. }
  11326. .rightCardBox {
  11327. margin: 10px 0 0 10px;
  11328. }
  11329. .rightCardBox>div:nth-child(1) {
  11330. margin-bottom: 10px;
  11331. }
  11332. .cardCss {
  11333. display: flex;
  11334. flex-direction: column;
  11335. flex-wrap: nowrap;
  11336. align-items: center;
  11337. border-bottom: 3px solid #b4c3d3;
  11338. padding: 0 0 5px 0;
  11339. margin-right: 10px;
  11340. }
  11341. .cardCss>div:nth-child(2) {
  11342. background: #5b7b9d;
  11343. color: #fff;
  11344. width: 20px;
  11345. height: 20px;
  11346. border-radius: 50%;
  11347. text-align: center;
  11348. line-height: 20px;
  11349. }
  11350. .sentenTopBox {
  11351. display: flex;
  11352. flex-direction: row;
  11353. flex-wrap: nowrap;
  11354. align-items: center;
  11355. justify-content: space-between;
  11356. padding: 55px 0 0 20px;
  11357. box-sizing: border-box;
  11358. width: 85%;
  11359. }
  11360. .stepsBottom {
  11361. width: 100%;
  11362. box-shadow: 0 0 10px 10px #f7f7f7;
  11363. /* background: #f7f7f7; */
  11364. border-radius: 10px;
  11365. overflow: hidden;
  11366. height: 100%
  11367. }
  11368. .navTop {
  11369. background: #53749b;
  11370. color: #fff;
  11371. height: 40px;
  11372. line-height: 40px;
  11373. padding-left: 15px;
  11374. font-size: 18px;
  11375. }
  11376. .navBottom {
  11377. /* background: #6b91b7; */
  11378. height: 100%;
  11379. overflow: auto;
  11380. padding: 10px 0;
  11381. }
  11382. .navStage {
  11383. display: flex;
  11384. flex-direction: row;
  11385. flex-wrap: nowrap;
  11386. align-items: center;
  11387. padding: 10px 10px 10px 0;
  11388. cursor: pointer;
  11389. background: #ffffff;
  11390. width: 95%;
  11391. margin: 5px auto 5px;
  11392. box-sizing: border-box;
  11393. border-radius: 5px;
  11394. flex-wrap: wrap;
  11395. position: relative;
  11396. }
  11397. .navStage:hover>.chapter_upload_drag {
  11398. display: block;
  11399. }
  11400. .navTask:hover>.chapter_upload_drag {
  11401. display: block;
  11402. }
  11403. .chapter_upload:hover>.chapter_upload_drag {
  11404. display: block;
  11405. }
  11406. .navStage::before {
  11407. content: '';
  11408. display: block;
  11409. width: 16px;
  11410. height: 16px;
  11411. background-image: url(../../../assets/icon/new/icon_stage.png);
  11412. background-size: 100%;
  11413. margin-left: 25px;
  11414. }
  11415. .navStage .chapter_unit_open {
  11416. content: '';
  11417. display: block;
  11418. width: 16px;
  11419. height: 16px;
  11420. background-image: url(../../../assets/icon/new/down.png);
  11421. transform: rotate(-90deg);
  11422. background-size: 100%;
  11423. margin-left: 10px;
  11424. transition: all .5s;
  11425. }
  11426. .isNavStageOpen .chapter_unit_open {
  11427. transform: rotate(0deg);
  11428. }
  11429. .isNavStage {
  11430. background: #0061FF;
  11431. }
  11432. .isNavStage::before {
  11433. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  11434. }
  11435. .isNavStage .chapter_unit_open {
  11436. background-image: url(../../../assets/icon/new/downC.png);
  11437. }
  11438. .isNavStage .nt_taskName {
  11439. font-weight: bold !important;
  11440. color: #FFFFFF !important;
  11441. }
  11442. .isNavStage .nt_taskTitle {
  11443. font-weight: bold !important;
  11444. color: #fff !important;
  11445. }
  11446. .navStage .nt_taskBox {
  11447. width: calc(100% - 68px);
  11448. padding: 0 0 0 5px;
  11449. box-sizing: border-box;
  11450. box-sizing: border-box;
  11451. display: flex;
  11452. flex-direction: row;
  11453. flex-wrap: nowrap;
  11454. align-items: baseline;
  11455. }
  11456. .navStage .nt_taskTitle {
  11457. color: #060E17;
  11458. line-height: 25px;
  11459. font-size: 16px;
  11460. }
  11461. .navStage .nt_taskName {
  11462. max-width: calc(100% - 82px);
  11463. white-space: nowrap;
  11464. overflow: hidden;
  11465. text-overflow: ellipsis;
  11466. font-size: 16px;
  11467. color: #060E17;
  11468. }
  11469. .navTask {
  11470. display: flex;
  11471. flex-direction: row;
  11472. flex-wrap: nowrap;
  11473. align-items: center;
  11474. padding: 10px 10px 10px 0;
  11475. cursor: pointer;
  11476. background: #ffffff;
  11477. width: 95%;
  11478. margin: 5px auto 5px;
  11479. box-sizing: border-box;
  11480. border-radius: 5px;
  11481. flex-wrap: wrap;
  11482. position: relative;
  11483. }
  11484. .navTask .chapter_upload_open {
  11485. content: '';
  11486. display: block;
  11487. width: 16px;
  11488. height: 16px;
  11489. background-image: url(../../../assets/icon/new/icon_arrow.png);
  11490. background-size: 100%;
  11491. margin-left: 23px;
  11492. }
  11493. .noImage .chapter_upload_open {
  11494. display: none;
  11495. background-image: unset !important;
  11496. }
  11497. .isNavOpen .chapter_upload_open {
  11498. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  11499. transform: rotate(90deg);
  11500. }
  11501. .isNavTask .chapter_upload_open {
  11502. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  11503. transform: rotate(-90deg);
  11504. }
  11505. .isNavTask.isNavOpen .chapter_upload_open {
  11506. transform: rotate(0deg);
  11507. }
  11508. .dragOverTop {
  11509. border-top: 2px solid #0061FF !important;
  11510. border-radius: 0 !important;
  11511. margin-top: 10px;
  11512. }
  11513. .dragOverBottom {
  11514. border-bottom: 2px solid #0061FF !important;
  11515. border-radius: 0 !important;
  11516. margin-top: 10px;
  11517. }
  11518. .dragOverTop2 {
  11519. border-top: 2px solid #0061FF !important;
  11520. border-radius: 0 !important;
  11521. }
  11522. .dragOverBottom2 {
  11523. border-bottom: 2px solid #0061FF !important;
  11524. border-radius: 0 !important;
  11525. }
  11526. .isNavTask {
  11527. /* background: #3681FC; */
  11528. background: #EEF3FB;
  11529. }
  11530. .isNavTask>.chapter_upload_drag {
  11531. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  11532. }
  11533. .isNavTask .nt_taskName {
  11534. /* color: #fff !important; */
  11535. font-weight: bold !important;
  11536. color: #0061FF !important;
  11537. }
  11538. .isNavTask .nt_taskTitle {
  11539. /* color: #AECCFE !important; */
  11540. font-weight: bold !important;
  11541. color: #0061FF !important;
  11542. }
  11543. .navTask .nt_taskBox {
  11544. width: calc(100% - 40px);
  11545. padding: 0 0 0 5px;
  11546. box-sizing: border-box;
  11547. box-sizing: border-box;
  11548. display: flex;
  11549. flex-direction: row;
  11550. flex-wrap: nowrap;
  11551. align-items: baseline;
  11552. }
  11553. .navTask .nt_taskTitle {
  11554. /* color: #717C8D; */
  11555. color: #060E17;
  11556. line-height: 25px;
  11557. font-size: 16px;
  11558. /* min-width: 66px; */
  11559. }
  11560. .navTask .nt_taskName {
  11561. /* color: #fff; */
  11562. /* max-width: 130px; */
  11563. /* width: 100%; */
  11564. max-width: calc(100% - 66px);
  11565. font-size: 16px;
  11566. color: #060E17;
  11567. /* color: #0E1E33; */
  11568. }
  11569. .navTask .nt_taskName span {
  11570. width: 100%;
  11571. white-space: nowrap;
  11572. overflow: hidden;
  11573. text-overflow: ellipsis;
  11574. display: block;
  11575. }
  11576. .gjBox {
  11577. width: calc(100% - 25px);
  11578. padding: 0 0 0 0;
  11579. box-sizing: border-box;
  11580. border-left: 1px solid #CAD1DC;
  11581. margin-left: 25px;
  11582. }
  11583. .gjBox>div {
  11584. display: flex;
  11585. align-items: center;
  11586. }
  11587. .gjBox>div::before {
  11588. content: '';
  11589. height: 1px;
  11590. width: 10px;
  11591. background: #CAD1DC;
  11592. display: block;
  11593. margin-right: 5px;
  11594. }
  11595. .gjCss {
  11596. display: flex;
  11597. flex-direction: row;
  11598. flex-wrap: nowrap;
  11599. align-items: center;
  11600. padding: 15px 0;
  11601. box-sizing: border-box;
  11602. font-size: 14px;
  11603. cursor: pointer;
  11604. }
  11605. .isGjCss {
  11606. color: #0061ff;
  11607. }
  11608. .groupBox {}
  11609. .groupContent+.groupContent {
  11610. margin-top: 30px;
  11611. }
  11612. .groupTitle {
  11613. font-size: 24px;
  11614. color: rgb(80, 80, 80);
  11615. margin-bottom: 20px;
  11616. }
  11617. .groupName {
  11618. display: flex;
  11619. align-items: center;
  11620. }
  11621. .groupn {
  11622. font-size: 15px;
  11623. margin-right: 10px;
  11624. }
  11625. .groupName+.groupName {
  11626. margin-top: 15px;
  11627. }
  11628. .groupBtn {
  11629. margin-left: 10px;
  11630. }
  11631. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11632. text-align: left;
  11633. }
  11634. .toolimg {
  11635. width: 200px;
  11636. border-radius: 10px;
  11637. box-shadow: rgb(223 218 218) 0px 0px 6px 1px;
  11638. cursor: pointer;
  11639. overflow: hidden;
  11640. position: relative;
  11641. }
  11642. .toolimg>img {
  11643. width: 100%;
  11644. height: 105px;
  11645. object-fit: contain;
  11646. }
  11647. .proMan {
  11648. width: 95%;
  11649. margin: 0 auto;
  11650. padding: 0 0 20px;
  11651. margin-top: 20px;
  11652. }
  11653. .proMan .title {
  11654. margin-bottom: 10px;
  11655. display: flex;
  11656. align-items: center;
  11657. }
  11658. .proMan .title img {
  11659. margin-right: 5px;
  11660. height: 17px;
  11661. width: 17px;
  11662. }
  11663. .ed_s>>>.text {
  11664. height: auto;
  11665. min-height: 100px;
  11666. }
  11667. .ed_s>>>.w-e-text-container {
  11668. min-height: 100px;
  11669. }
  11670. .toolimg_box {
  11671. display: flex;
  11672. flex-wrap: wrap;
  11673. }
  11674. .toolimg {
  11675. margin: 0 20px 20px 0;
  11676. }
  11677. .comment {
  11678. background: #f5f5f5;
  11679. /* border-radius: 0 0 15px 15px; */
  11680. display: flex;
  11681. flex-direction: row;
  11682. flex-wrap: nowrap;
  11683. align-items: center;
  11684. justify-content: flex-end;
  11685. height: 35px;
  11686. }
  11687. .worksName {
  11688. display: flex;
  11689. width: 92%;
  11690. flex-direction: row;
  11691. flex-wrap: nowrap;
  11692. justify-content: space-between;
  11693. align-items: center;
  11694. margin: 0 10px;
  11695. }
  11696. .worksName>div:nth-child(1) {
  11697. width: 60px;
  11698. white-space: nowrap;
  11699. overflow: hidden;
  11700. text-overflow: ellipsis;
  11701. }
  11702. .worksName>div:nth-child(2) {
  11703. max-width: calc(100% - 70px);
  11704. position: relative;
  11705. display: flex;
  11706. align-items: center;
  11707. }
  11708. .worksName>div:nth-child(2)>span {
  11709. width: 100%;
  11710. white-space: nowrap;
  11711. overflow: hidden;
  11712. text-overflow: ellipsis;
  11713. color: #4e91c4;
  11714. }
  11715. .worksName>div:nth-child(2)>img {
  11716. max-width: 16px;
  11717. width: 16px;
  11718. height: 15px;
  11719. }
  11720. .deleteImg {
  11721. width: 25px !important;
  11722. height: 25px !important;
  11723. cursor: pointer;
  11724. position: absolute;
  11725. top: 10px;
  11726. right: 10px;
  11727. }
  11728. .texttitle {
  11729. background: #1e5cc9;
  11730. /* width: 98%; */
  11731. height: 45px;
  11732. color: #fff;
  11733. line-height: 45px;
  11734. padding-left: 20px;
  11735. box-sizing: border-box;
  11736. }
  11737. .textBox {
  11738. font-size: 20px;
  11739. width: 90%;
  11740. display: flex;
  11741. flex-direction: column;
  11742. align-items: center;
  11743. margin: 20px auto 0;
  11744. }
  11745. .textContent {
  11746. font-size: 18px;
  11747. height: 450px;
  11748. width: 95%;
  11749. overflow: auto;
  11750. line-height: 30px;
  11751. }
  11752. .vedioTaskBox {
  11753. width: 100%;
  11754. display: flex;
  11755. flex-direction: row;
  11756. flex-wrap: nowrap;
  11757. align-items: center;
  11758. }
  11759. .box_course {
  11760. /* width: 60%; */
  11761. width: 81%;
  11762. }
  11763. .wheel {
  11764. width: 100%;
  11765. height: 100%;
  11766. }
  11767. .vedioList {
  11768. /* background: #f2f2f2; */
  11769. background: #fff;
  11770. border: 1px solid #ececec;
  11771. /* width: 38.8%; */
  11772. width: calc(100% - 83%);
  11773. height: 650px;
  11774. border-radius: 10px;
  11775. overflow: hidden;
  11776. }
  11777. .navTitile {
  11778. padding: 0 0px 0 15px;
  11779. background: #1e5cc9;
  11780. color: #fff;
  11781. height: 40px;
  11782. line-height: 40px;
  11783. border-top-left-radius: 10px;
  11784. border-top-right-radius: 10px;
  11785. }
  11786. .navBox {
  11787. background: rgb(255, 255, 255);
  11788. height: calc(100% - 40px);
  11789. padding: 5px 1px 0 1px;
  11790. overflow: auto;
  11791. }
  11792. .vedioTimeBox {
  11793. display: flex;
  11794. flex-direction: row;
  11795. align-items: center;
  11796. flex-wrap: nowrap;
  11797. position: relative;
  11798. }
  11799. .vedioName {
  11800. cursor: pointer;
  11801. margin: 0px 0px 10px 5px;
  11802. white-space: nowrap;
  11803. overflow: hidden;
  11804. text-overflow: ellipsis;
  11805. width: 100%;
  11806. }
  11807. .isClickNav {
  11808. color: #499eef;
  11809. }
  11810. .full_diy>>>.el-dialog {
  11811. margin: 0 !important;
  11812. height: 100%;
  11813. padding: 4px;
  11814. }
  11815. .full_diy>>>.el-dialog__body {
  11816. height: calc(100% - 100px);
  11817. }
  11818. .full_diy2>>>.el-dialog__body {
  11819. height: calc(100% - 50px);
  11820. padding: 0;
  11821. }
  11822. .queTop {
  11823. display: flex;
  11824. padding: 20px 0 20px 30px;
  11825. width: 100%;
  11826. flex-direction: row;
  11827. justify-content: flex-start;
  11828. align-items: center;
  11829. border-bottom: 1px solid #eeeeee;
  11830. box-sizing: border-box;
  11831. }
  11832. .question {
  11833. width: 40px;
  11834. margin-right: 10px;
  11835. margin-top: 7px;
  11836. }
  11837. .queTitle {
  11838. margin-left: 5px;
  11839. font-size: 25px;
  11840. display: flex;
  11841. align-items: center;
  11842. }
  11843. .addEditor {
  11844. width: 100px;
  11845. height: 30px;
  11846. background: #42cda6;
  11847. color: #fff;
  11848. border-radius: 5px;
  11849. text-align: center;
  11850. line-height: 30px;
  11851. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11852. cursor: pointer;
  11853. }
  11854. .answerWidth {
  11855. width: 250px !important;
  11856. }
  11857. .answerBg {
  11858. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  11859. background-size: cover;
  11860. width: 100%;
  11861. height: 120px;
  11862. padding: 0 10px;
  11863. box-sizing: border-box;
  11864. color: #fff;
  11865. text-align: center;
  11866. display: flex;
  11867. flex-direction: column;
  11868. flex-wrap: nowrap;
  11869. align-items: center;
  11870. position: relative;
  11871. justify-content: center;
  11872. }
  11873. .answerContent {
  11874. /* width: 215px; */
  11875. max-height: 60px;
  11876. word-break: break-all;
  11877. text-align: center;
  11878. /* white-space: nowrap; */
  11879. overflow: hidden;
  11880. text-overflow: ellipsis;
  11881. /* padding: 23px 0 0; */
  11882. -webkit-line-clamp: 3;
  11883. -webkit-box-orient: vertical;
  11884. display: -webkit-box;
  11885. font-size: 15px;
  11886. }
  11887. .fullStyle>>>.el-dialog__body {
  11888. height: 100% !important;
  11889. }
  11890. .fullStyle>>>.el-dialog,
  11891. .fullStyle {
  11892. width: 100% !important;
  11893. max-width: 100% !important;
  11894. height: 100% !important;
  11895. margin: 0 !important;
  11896. }
  11897. .wb_j_box_btn {
  11898. width: calc(100% - 30px);
  11899. display: flex;
  11900. height: 40px;
  11901. border: 1.5px solid #CAD1DC;
  11902. border-radius: 4px;
  11903. box-sizing: border-box;
  11904. align-items: center;
  11905. font-size: 14px;
  11906. cursor: pointer;
  11907. overflow: hidden;
  11908. }
  11909. .wb_j_box_btn:hover {
  11910. border: 1.5px solid #0061FF;
  11911. }
  11912. .wb_j_box_title {
  11913. background: #F0F4FA;
  11914. height: 100%;
  11915. line-height: 40px;
  11916. width: 90px;
  11917. text-align: center;
  11918. color: #060E17;
  11919. border-right: 1.5px solid #CAD1DC;
  11920. box-sizing: border-box;
  11921. }
  11922. .wb_j_box_btn_c {
  11923. width: calc(100% - 90px);
  11924. padding: 0 35px 0 10px;
  11925. box-sizing: border-box;
  11926. position: relative;
  11927. }
  11928. .wb_j_box_span {
  11929. width: 100%;
  11930. overflow: hidden;
  11931. white-space: nowrap;
  11932. text-overflow: ellipsis;
  11933. word-wrap: break-word;
  11934. color: #717C8D;
  11935. }
  11936. .wb_j_box_arrow {
  11937. content: '';
  11938. width: 14px;
  11939. height: 14px;
  11940. background: url(../../../assets/icon/new/u_arrow.png);
  11941. background-size: 100% 100%;
  11942. position: absolute;
  11943. right: 12px;
  11944. top: 50%;
  11945. transform: translateY(-50%);
  11946. }
  11947. .tcMember+.tcMember::before {
  11948. content: "、";
  11949. }
  11950. .tcMember_box {
  11951. margin-left: 10px;
  11952. border: 1px solid #c0c4cc;
  11953. padding: 10px 14px;
  11954. border-radius: 4px;
  11955. background: #fff;
  11956. cursor: pointer;
  11957. color: #606266;
  11958. font-size: 14px;
  11959. width: 225px;
  11960. overflow: hidden;
  11961. text-overflow: ellipsis;
  11962. white-space: nowrap;
  11963. }
  11964. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11965. height: auto;
  11966. }
  11967. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11968. width: 200px;
  11969. height: 100px;
  11970. object-fit: contain;
  11971. background: unset;
  11972. }
  11973. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11974. display: none;
  11975. }
  11976. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  11977. color: rgb(0 123 255) !important;
  11978. }
  11979. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  11980. color: rgb(0 123 255) !important;
  11981. }
  11982. .closeCss {
  11983. position: absolute;
  11984. top: 8px;
  11985. right: 8px;
  11986. cursor: pointer;
  11987. width: 20px;
  11988. height: 20px;
  11989. }
  11990. .closeCss>img {
  11991. width: 100%;
  11992. height: 100%;
  11993. }
  11994. .f_size_box {
  11995. display: flex;
  11996. margin: 5px 0px;
  11997. align-items: center;
  11998. color: #6c6c6c;
  11999. }
  12000. .f_size_box img {
  12001. height: 20px;
  12002. }
  12003. .f_size_box>div {
  12004. margin: 0 8px;
  12005. }
  12006. .moveBtn {
  12007. display: flex;
  12008. flex-direction: column;
  12009. align-items: flex-end;
  12010. width: 40px;
  12011. }
  12012. .rb_c_box {
  12013. width: 100%;
  12014. height: 100%;
  12015. display: flex;
  12016. /* padding: 20px; */
  12017. box-sizing: border-box;
  12018. justify-content: space-between;
  12019. }
  12020. .rb_c_box_left {
  12021. height: 100%;
  12022. background: #fff;
  12023. width: 270px;
  12024. min-width: 270px;
  12025. border-radius: 8px;
  12026. margin-right: 10px;
  12027. }
  12028. .rb_c_box_right {
  12029. height: 100%;
  12030. width: calc(100%);
  12031. overflow: hidden;
  12032. }
  12033. .rb_c_box_btn {
  12034. display: flex;
  12035. justify-content: flex-start;
  12036. height: 50px;
  12037. align-items: center;
  12038. }
  12039. .rb_c_box_right>.basic_box {
  12040. /* background: #fff; */
  12041. border-radius: 0;
  12042. height: calc(100% - 0px);
  12043. overflow: auto;
  12044. padding: 0;
  12045. }
  12046. .taskTitle {
  12047. font-size: 20px;
  12048. font-weight: bold;
  12049. margin-bottom: 35px;
  12050. }
  12051. .taskTitle:after {
  12052. content: '';
  12053. width: 100%;
  12054. display: block;
  12055. height: 1px;
  12056. background: #CAD1DC;
  12057. position: absolute;
  12058. left: 0;
  12059. margin: 15px 0 0;
  12060. }</style>