addCourse.vue 269 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div class="stepTop">
  7. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  8. <div>
  9. <img src="../../assets/icon/first.png" alt />
  10. </div>
  11. <div>填写基本信息</div>
  12. </div>
  13. <div v-else class="firstNo" @click="navSteps(1)">
  14. <div>
  15. <img src="../../assets/icon/firstNo.png" alt />
  16. </div>
  17. <div>填写基本信息</div>
  18. </div>
  19. <div v-show="cidType === 0" class="secondNo">
  20. <div
  21. v-if="steps == 2"
  22. class="newSteps second"
  23. @click="navSteps(2)"
  24. >
  25. <div style="margin: 5px 10px 0 0; width: 2rem">
  26. <img src="../../assets/icon/second.png" alt />
  27. </div>
  28. <div>选择项目框架</div>
  29. </div>
  30. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  31. <div>
  32. <img src="../../assets/icon/secondNo.png" alt />
  33. </div>
  34. <div>选择项目框架</div>
  35. </div>
  36. </div>
  37. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  38. <div>
  39. <img src="../../assets/icon/third.png" alt />
  40. </div>
  41. <div>上传项目内容</div>
  42. </div>
  43. <div v-else class="thirdNo" @click="navSteps(3)">
  44. <div>
  45. <img src="../../assets/icon/thirdNo.png" alt />
  46. </div>
  47. <div>上传项目内容</div>
  48. </div>
  49. <div v-if="steps == 4" class="four">
  50. <div>
  51. <img src="../../assets/icon/four.png" alt />
  52. </div>
  53. <div>上传完成</div>
  54. </div>
  55. <div v-else class="fourNo">
  56. <div>
  57. <img src="../../assets/icon/fourNo.png" alt />
  58. </div>
  59. <div>上传完成</div>
  60. </div>
  61. </div>
  62. <div class="stepsBottom" v-if="steps == 3">
  63. <div class="navTop">辅助导航</div>
  64. <div class="navBottom">
  65. <div
  66. class="navTask"
  67. :class="{
  68. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  69. }"
  70. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  71. .taskJson"
  72. :key="tIndex"
  73. @click="goToTask(tIndex)"
  74. >
  75. <div>任务{{ tIndex + 1 }}</div>
  76. <el-tooltip effect="light" :content="t.task" placement="top">
  77. <div>{{ t.task }}</div>
  78. </el-tooltip>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  84. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  85. <div class="courseTop">
  86. <div class="stepsNav">
  87. <h3 class="info_title" v-if="steps == 1">项目内容填写</h3>
  88. <h3 class="info_title" v-if="steps == 2">请选择项目框架</h3>
  89. <h3 class="info_title" v-if="steps == 3">项目内容填写</h3>
  90. <h3 class="info_title" v-if="steps == 4">上传项目</h3>
  91. <el-breadcrumb
  92. separator-class="el-icon-arrow-right"
  93. style="margin-top: 15px"
  94. >
  95. <el-breadcrumb-item
  96. :to="{
  97. path:
  98. '/course?userid=' +
  99. userid +
  100. '&oid=' +
  101. oid +
  102. '&org=' +
  103. org,
  104. }"
  105. >项目管理</el-breadcrumb-item
  106. >
  107. <el-breadcrumb-item>
  108. <span style="color: rgb(15, 126, 255)">添加项目</span>
  109. </el-breadcrumb-item>
  110. </el-breadcrumb>
  111. </div>
  112. <div
  113. v-if="steps == 1 || steps == 2 || steps == 3"
  114. class="stepsWord"
  115. >
  116. {{
  117. steps == 1
  118. ? "第一步"
  119. : steps == 2
  120. ? "第二步"
  121. : steps == 3
  122. ? "第三步"
  123. : ""
  124. }}
  125. </div>
  126. </div>
  127. <div class="rightBox" v-if="this.steps == 1">
  128. <div
  129. class="updateMask"
  130. :style="{ height: rightBoxHeight + 'px' }"
  131. v-if="cid && userid != courseUserid"
  132. ></div>
  133. <div class="whiteBg">
  134. <div
  135. class="right_title"
  136. :class="{ updateTips: cid && userid != courseUserid }"
  137. >
  138. 项目基本信息
  139. </div>
  140. <div class="basic_box">
  141. <div class="big_box">
  142. <div class="left_first">
  143. <div>
  144. <div>
  145. <div class="bInfo_title" style="margin-bottom: 15px">
  146. <!-- <span style="color: red">*</span> -->
  147. 项目名称
  148. </div>
  149. <div style="display: flex; margin-right: 20px">
  150. <img
  151. src="../../assets/icon/projectName.png"
  152. alt
  153. style="margin-right: 8px"
  154. />
  155. <input
  156. type="text"
  157. placeholder="请输入项目名称"
  158. class="binfo_input"
  159. v-model="courseName"
  160. />
  161. </div>
  162. </div>
  163. <div class="both">
  164. <div class="choose">
  165. <div
  166. class="all_choose"
  167. v-for="(item, index) in CourseType[0]"
  168. :key="index"
  169. >
  170. <span>{{ item.name }}</span>
  171. <el-checkbox-group
  172. v-model="courseTypeId"
  173. v-if="CourseTypeJson[item.id].length > 0"
  174. >
  175. <el-checkbox
  176. v-for="item1 in CourseTypeJson[item.id]"
  177. :key="item1.id"
  178. :label="item1.id"
  179. >{{ item1.name }}</el-checkbox
  180. >
  181. </el-checkbox-group>
  182. <div
  183. v-else
  184. style="font-size: 14px; margin-left: -8px"
  185. >
  186. 暂无
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="whiteBg" style="border-radius: 0">
  197. <div class="right_first">
  198. <div class="right_title">上传封面与成员</div>
  199. <div
  200. style="
  201. padding: 0 0 50px 20px;
  202. display: flex;
  203. align-items: baseline;
  204. justify-content: flex-start;
  205. margin: 0 auto;
  206. "
  207. >
  208. <div>
  209. <div class="bInfo_title" style="margin-top: 0 !important">
  210. 项目封面
  211. </div>
  212. <div
  213. class="uploadFm"
  214. @click="choosePicVisible = true"
  215. v-if="cover.length == 0"
  216. >
  217. <img src="../../assets/icon/addPoster.png" alt="" />
  218. </div>
  219. <el-upload
  220. :class="{ disUoloadSty: noneBtnImg }"
  221. class="upCss"
  222. action="#"
  223. list-type="picture"
  224. v-loading="uploadLoading1"
  225. :http-request="beforeUpload1"
  226. ref="upload1"
  227. :on-preview="handlePictureCardPreview"
  228. :on-remove="handle_remove1"
  229. :show-file-list="true"
  230. :file-list="cover"
  231. accept="image/*"
  232. :limit="1"
  233. :on-exceed="onExceed"
  234. v-else
  235. >
  236. <i class="el-icon-plus"></i>
  237. </el-upload>
  238. </div>
  239. <div
  240. style="
  241. display: flex;
  242. flex-flow: row nowrap;
  243. flex-direction: row;
  244. flex-wrap: wrap;
  245. align-items: baseline;
  246. margin: 0 30px;
  247. "
  248. >
  249. <!-- <div style="margin: 0 80px">
  250. <div class="bInfo_title">
  251. 选择项目成员
  252. </div>
  253. <div
  254. class="addPeople"
  255. @click="addPP"
  256. v-if="this.checkboxList.length == 0"
  257. >添加成员</div>
  258. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  259. </div>-->
  260. <div style="margin: 0 30px 0 0">
  261. <div class="bInfo_title">添加班级</div>
  262. <div class="addPeople" @click="dialogVisibleClass = true">
  263. 添加班级
  264. </div>
  265. </div>
  266. <div
  267. style="flex: 0.5 1 0%; margin: 0"
  268. v-if="courseUserid != '' ? courseUserid == userid : true"
  269. >
  270. <div class="bInfo_title">协同编辑</div>
  271. <div
  272. class="addPeople"
  273. @click="dialogVisibleMember = true"
  274. style="background: #6b92c9"
  275. >
  276. 添加协同成员
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  284. <div class="right_title">项目简要描述</div>
  285. <div style="width: 95%; margin: 15px auto">
  286. <div style="width: 55%">
  287. <textarea
  288. rows="8"
  289. class="binfo_input"
  290. cols
  291. v-model="courseText"
  292. ></textarea>
  293. </div>
  294. </div>
  295. <!-- <div style="width: 95%; margin: 15px auto">
  296. <el-switch
  297. v-model="isTeacherSee"
  298. active-text="允许给其他老师查看"
  299. style="padding-bottom: 30px"
  300. ></el-switch>
  301. </div>-->
  302. <div style="width: 95%; margin: 15px auto">
  303. <el-switch
  304. v-model="isTeacherSee"
  305. active-text="是否公开此项目"
  306. style="padding-bottom: 30px"
  307. ></el-switch>
  308. </div>
  309. </div>
  310. <div
  311. class="whiteBg"
  312. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  313. >
  314. <div class="right_title">目标管理</div>
  315. <div style="margin: 15px auto; padding: 0 0 0 20px">
  316. <div
  317. style="
  318. width: 100%%;
  319. display: flex;
  320. flex-direction: row;
  321. flex-wrap: nowrap;
  322. align-content: center;
  323. align-items: center;
  324. justify-content: space-between;
  325. "
  326. >
  327. <div
  328. style="
  329. display: flex;
  330. flex-flow: row nowrap;
  331. align-items: flex-start;
  332. width: 100%;
  333. flex-direction: column;
  334. flex-wrap: nowrap;
  335. position: relative;
  336. "
  337. >
  338. <!-- <div style="margin-right: 15px; min-width: 120px">
  339. 请选择评价指标
  340. </div>
  341. <div>
  342. <el-select
  343. v-model="evalua"
  344. placeholder="请选择体系"
  345. @change="checkEva"
  346. >
  347. <el-option
  348. v-for="(e, eIndex) in evaJuri"
  349. :key="eIndex"
  350. :label="e.title"
  351. :value="e.id"
  352. ></el-option>
  353. </el-select>
  354. </div> -->
  355. <!-- <div
  356. @click="openT"
  357. class="addPeople"
  358. style="
  359. background: #6b92c9;
  360. margin: 0 0 0 15px;
  361. position: absolute;
  362. right: 23%;
  363. "
  364. >
  365. 前往设置目标管理
  366. </div> -->
  367. <div class="e_box">
  368. <div
  369. class="e_card"
  370. v-for="(item, index) in evaJuri"
  371. :key="index"
  372. >
  373. <div class="e_card_picture">
  374. <img src="../../assets/e_picture.png" />
  375. </div>
  376. <div class="e_card_name">
  377. <span>{{ item.title }}</span>
  378. </div>
  379. <!-- <div class="e_card_time">
  380. <span>{{ item.time }}</span>
  381. </div> -->
  382. <div class="e_card_btn">
  383. <span @click="checkEva(item.id)">导入</span>
  384. <!-- <span @click="openT">前往设置</span> -->
  385. </div>
  386. </div>
  387. <div class="addEva" @click="openT">
  388. <img src="../../assets/icon/addEva.png" alt="" />
  389. </div>
  390. <div
  391. v-if="evaJuri.length === 0"
  392. style="margin: 0 auto; color: #6e6e6e"
  393. >
  394. 暂无数据
  395. </div>
  396. </div>
  397. </div>
  398. </div>
  399. <div
  400. v-if="evalua"
  401. style="
  402. border: 1px solid #e5e5e5;
  403. width: 95%;
  404. margin-top: 30px;
  405. box-shadow: 3px 1px 15px 3px #e0e0e0;
  406. "
  407. >
  408. <div class="e_add_top">
  409. <div class="e_add_title">
  410. <span>当前使用目标管理</span>
  411. <span>{{ eTitle }}</span>
  412. <img
  413. src="../../assets/line.png"
  414. class="cru_line"
  415. style="
  416. width: 125px;
  417. height: 20px;
  418. bottom: -10px;
  419. left: 155px;
  420. "
  421. />
  422. <!-- <el-input
  423. v-model="eTitle"
  424. placeholder="请输入名称"
  425. @change="setMindData"
  426. ></el-input>-->
  427. </div>
  428. </div>
  429. <div class="e_add_content">
  430. <div class="e_add_list_pbox">
  431. <div class="e_add_list_pbox_title">
  432. <span class="type_title">切换模式</span>
  433. <div class="type_content">
  434. <span
  435. :class="{ active: typeMode == 1 }"
  436. @click="OtherMb(1)"
  437. >目标树</span
  438. >
  439. <span
  440. :class="{ active: typeMode == 2 }"
  441. @click="OtherMb(2)"
  442. >目标罗盘</span
  443. >
  444. <span
  445. :class="{ active: typeMode == 3 }"
  446. @click="OtherMb(3)"
  447. >目标看板</span
  448. >
  449. </div>
  450. </div>
  451. <div class="e_add_list_pbox_content">
  452. <Mind
  453. :showBar="false"
  454. :mindData="data"
  455. v-show="typeMode == 1"
  456. ></Mind>
  457. <Sunburst
  458. :Josn="eJson"
  459. :num="eJSONNum"
  460. style="width: 100%"
  461. v-if="typeMode == 2"
  462. ></Sunburst>
  463. <SeeBoard
  464. :Josn="eJson"
  465. :num="eJSONNum"
  466. :ename="eTitle"
  467. style="width: 100%"
  468. v-if="typeMode == 3"
  469. ></SeeBoard>
  470. </div>
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. <div class="rightBox" v-if="this.steps == 2">
  478. <div
  479. class="basic_box"
  480. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  481. >
  482. <!-- <div
  483. style="
  484. color: #b8b8b8;
  485. background: #fff;
  486. width: 26%;
  487. height: 40px;
  488. border-radius: 15px;
  489. padding-left: 20px;
  490. line-height: 40px;
  491. font-size: 17px;
  492. box-shadow: 0px 1px 2px 2px #e0e0e0;
  493. "
  494. >-->
  495. <div
  496. class="right_title"
  497. style="border: none; margin: 0; padding: 0"
  498. >
  499. 请选择合适的项目模板
  500. </div>
  501. <div class="wordbox">
  502. <div
  503. class="wordTeacher"
  504. v-for="(aa, indexF) in templateArray"
  505. :key="indexF"
  506. @click="checkTemplate(aa)"
  507. >
  508. <div class="wordPic">
  509. <img src="../../assets/icon/wordMub.png" alt />
  510. </div>
  511. <div
  512. style="
  513. margin-top: 10px;
  514. line-height: 19px;
  515. overflow: hidden;
  516. text-overflow: ellipsis;
  517. white-space: nowrap;
  518. padding: 0 20px;
  519. "
  520. >
  521. {{ aa.title }}
  522. </div>
  523. </div>
  524. <div class="wordTeacher" @click="checkTemplate2()">
  525. <div class="wordPic">
  526. <img src="../../assets/icon/wordMub.png" alt />
  527. </div>
  528. <div
  529. style="
  530. margin-top: 10px;
  531. line-height: 19px;
  532. overflow: hidden;
  533. text-overflow: ellipsis;
  534. white-space: nowrap;
  535. padding: 0 20px;
  536. "
  537. >
  538. 新建项目
  539. </div>
  540. </div>
  541. <div class="wordTeacher" @click="checkTemplate1()">
  542. <div class="wordPic">
  543. <img src="../../assets/icon/wordMub.png" alt />
  544. </div>
  545. <div
  546. style="
  547. margin-top: 10px;
  548. line-height: 19px;
  549. overflow: hidden;
  550. text-overflow: ellipsis;
  551. white-space: nowrap;
  552. padding: 0 20px;
  553. "
  554. >
  555. 我的项目
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  562. <div class="basic_box">
  563. <div
  564. style="
  565. display: flex;
  566. flex-direction: row;
  567. align-items: center;
  568. position: sticky;
  569. top: 0;
  570. background: #fff;
  571. z-index: 99;
  572. width: 100%;
  573. padding: 0 20px 0 20px;
  574. box-sizing: border-box;
  575. "
  576. >
  577. <div class="cru_selectBox">
  578. <div
  579. v-for="(item, index) in unitJson"
  580. :key="index"
  581. class="cru_select"
  582. :class="unitIndex == index ? 'cru_selected' : ''"
  583. @click="unitSet(index)"
  584. >
  585. 第{{ index + 1 }}阶段
  586. </div>
  587. <img
  588. src="../../assets/line.png"
  589. class="cru_line"
  590. :style="{
  591. left: offsetLetfPx + 'px',
  592. }"
  593. />
  594. </div>
  595. <div class="addStageImg" @click="addunit()">
  596. <img src="../../assets/icon/add.png" alt />
  597. </div>
  598. </div>
  599. <div
  600. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  601. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  602. :key="index"
  603. >
  604. <div>
  605. <div class="chapter_contentbox">
  606. <div>第{{ unitIndex + 1 }}阶段</div>
  607. <div>
  608. <input
  609. type="text"
  610. placeholder="阶段标题"
  611. class="binfo_input"
  612. v-model="unitJson[unitIndex].dyName"
  613. />
  614. </div>
  615. <div
  616. v-if="unitJson.length > 1"
  617. @click="deleteUnit(unitIndex)"
  618. ></div>
  619. </div>
  620. </div>
  621. <div
  622. style="
  623. margin: 50px 0px 10px;
  624. font-size: 1.5em;
  625. font-weight: 700;
  626. color: #0f7eff;
  627. "
  628. >
  629. 添加任务
  630. </div>
  631. <div
  632. class="taskBorder"
  633. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  634. :key="itemTaskIndex"
  635. >
  636. <div>
  637. <div>
  638. <div
  639. style="font-size: 22px; color: #8e8e8e"
  640. :id="'task' + itemTaskIndex"
  641. >
  642. 任务{{ itemTaskIndex + 1 }}
  643. </div>
  644. <div
  645. class="chapter_contentbox"
  646. style="
  647. flex-direction: row;
  648. justify-content: flex-start;
  649. align-items: center;
  650. "
  651. >
  652. <div
  653. style="
  654. border-left: 6px solid #5699e8;
  655. height: 20px;
  656. padding-left: 10px;
  657. line-height: 22px;
  658. "
  659. >
  660. 任务名称
  661. </div>
  662. <div>
  663. <input
  664. type="text"
  665. placeholder="输入任务名称"
  666. class="binfo_input"
  667. style="border-radius: 4px"
  668. v-model="
  669. unitJson[unitIndex].chapterInfo[0].taskJson[
  670. itemTaskIndex
  671. ].task
  672. "
  673. />
  674. </div>
  675. <div
  676. class="remove"
  677. v-if="item.taskJson.length > 1"
  678. @click="deleteTask(itemTaskIndex)"
  679. style="position: absolute; right: 55px"
  680. ></div>
  681. </div>
  682. <div
  683. style="
  684. display: flex;
  685. margin: 0 0 20px 0;
  686. flex-direction: row;
  687. justify-content: flex-start;
  688. align-items: center;
  689. width: 70.5% !important;
  690. padding-top: 30px;
  691. "
  692. >
  693. <div class="lineTitle">任务描述</div>
  694. <div class="line"></div>
  695. </div>
  696. <div>
  697. <editor-bar
  698. style="width: 90% !important; margin: 0"
  699. placeholder="请输入任务描述"
  700. v-model="
  701. unitJson[unitIndex].chapterInfo[0].taskJson[
  702. itemTaskIndex
  703. ].taskDetail
  704. "
  705. @change="change"
  706. ></editor-bar>
  707. <!-- <textarea
  708. rows="6"
  709. class="binfo_input"
  710. placeholder="请输入任务描述"
  711. cols
  712. style="width: 70.5% !important; height: 120px"
  713. v-model="
  714. unitJson[unitIndex].chapterInfo[0].taskJson[
  715. itemTaskIndex
  716. ].taskDetail
  717. "
  718. ></textarea>-->
  719. </div>
  720. </div>
  721. </div>
  722. <div
  723. class="basic_box"
  724. style="
  725. margin: 0;
  726. min-height: 0;
  727. width: 90% !important;
  728. paddint-top: 10px !important;
  729. "
  730. >
  731. <div
  732. style="
  733. display: flex;
  734. margin: 0 0 20px 0;
  735. flex-direction: row;
  736. justify-content: flex-start;
  737. align-items: center;
  738. "
  739. >
  740. <div class="lineTitle">学习内容</div>
  741. <div class="line"></div>
  742. </div>
  743. <div>
  744. <div
  745. class="add_chapters_box"
  746. v-if="
  747. itemTask.chapterData &&
  748. itemTask.chapterData.length == 0
  749. "
  750. style="height: 185px"
  751. ></div>
  752. <div
  753. v-else
  754. class="add_chapters_box"
  755. style="display: flex; flex-direction: column"
  756. >
  757. <div
  758. class="chapter_upload"
  759. v-for="(item1, index1) in itemTask.chapterData"
  760. :key="item1.id"
  761. @click="
  762. getChapterData(
  763. $event,
  764. unitIndex,
  765. index,
  766. index1,
  767. item1.type
  768. )
  769. "
  770. >
  771. <div
  772. class="chapter_upload_t"
  773. style="width: 100%"
  774. ></div>
  775. <div
  776. class="chapter_upload_o"
  777. style="
  778. position: relative;
  779. display: flex;
  780. align-items: center;
  781. "
  782. >
  783. <div
  784. class="chapter_upload_l"
  785. style="padding: 1px 0 0 10px"
  786. >
  787. <div
  788. v-if="item1.type == 2"
  789. class="chapter_upload_l_i1"
  790. ></div>
  791. <div
  792. v-if="
  793. item1.type == 3 ||
  794. item1.type == 6 ||
  795. item1.type == 7
  796. "
  797. class="chapter_upload_l_i5"
  798. style="margin-left: 1px"
  799. ></div>
  800. <div
  801. v-if="item1.type == 8"
  802. class="chapter_upload_l_i8"
  803. style="margin-left: 1px"
  804. ></div>
  805. </div>
  806. <div
  807. class="chapter_upload_ic"
  808. style="
  809. cursor: pointer;
  810. position: absolute;
  811. width: 45px;
  812. right: 0;
  813. top: 0;
  814. "
  815. >
  816. <div class="chapter_upload_ic_l"></div>
  817. <div
  818. class="chapter_upload_ic_r"
  819. style="position: absolute"
  820. @click.stop="
  821. deleteChapterData(
  822. $event,
  823. unitIndex,
  824. index,
  825. index1,
  826. itemTaskIndex
  827. )
  828. "
  829. >
  830. <div></div>
  831. </div>
  832. </div>
  833. <div class="chapter_upload_n">
  834. <input
  835. v-if="
  836. item1.type == 2 ||
  837. item1.type == 3 ||
  838. item1.type == 7
  839. "
  840. :placeholder="item1.name"
  841. @change="
  842. updataVideoT(
  843. $event,
  844. unitIndex,
  845. chapterIndex,
  846. index1
  847. )
  848. "
  849. style="
  850. border: none;
  851. outline: none;
  852. width: 80%;
  853. minwidth: 215px;
  854. z-index: 99;
  855. font-size: 14px;
  856. white-space: nowrap;
  857. overflow: hidden;
  858. text-overflow: ellipsis;
  859. "
  860. />
  861. <input
  862. :placeholder="item1.name"
  863. v-if="item1.type == 6"
  864. style="
  865. border: none;
  866. outline: none;
  867. width: 80%;
  868. white-space: nowrap;
  869. overflow: hidden;
  870. text-overflow: ellipsis;
  871. "
  872. readonly="true"
  873. @click="selectAttText(itemTaskIndex, index1)"
  874. />
  875. <input
  876. :placeholder="
  877. item1.title ? item1.title : '链接'
  878. "
  879. v-if="item1.type == 8"
  880. style="
  881. border: none;
  882. outline: none;
  883. width: 80%;
  884. white-space: nowrap;
  885. overflow: hidden;
  886. text-overflow: ellipsis;
  887. "
  888. readonly="true"
  889. @click="selectLine(itemTaskIndex, index1)"
  890. />
  891. <div
  892. class="chapter_upload_ud"
  893. style="z-index: 99"
  894. >
  895. <div
  896. class="chapter_upload_up"
  897. @click="
  898. upCd($event, unitIndex, index, index1)
  899. "
  900. ></div>
  901. <div
  902. class="chapter_upload_down"
  903. @click="
  904. downCd($event, unitIndex, index, index1)
  905. "
  906. ></div>
  907. </div>
  908. </div>
  909. </div>
  910. </div>
  911. </div>
  912. </div>
  913. <div class="add_info_box">
  914. <button class="info_btn" @click="addImg($event)">
  915. 添加教学视频
  916. <input
  917. type="file"
  918. accept="video/mp4, video/quicktime, video/x-msvideo"
  919. style="display: none"
  920. capture="camera"
  921. v-if="inputShow"
  922. @change="
  923. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  924. "
  925. />
  926. </button>
  927. <button class="info_btn" @click="addImg($event)">
  928. 添加教学附件
  929. <input
  930. type="file"
  931. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  932. style="display: none"
  933. v-if="inputShow"
  934. @change="
  935. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  936. "
  937. />
  938. </button>
  939. <button
  940. class="info_btn"
  941. @click="addAttText(itemTaskIndex)"
  942. >
  943. 添加图文
  944. </button>
  945. <button class="info_btn" @click="openLine(itemTaskIndex)">
  946. 添加链接
  947. </button>
  948. </div>
  949. <div
  950. v-if="
  951. unitJson[unitIndex].chapterInfo[0].taskJson[
  952. itemTaskIndex
  953. ].proVisible
  954. "
  955. class="mask"
  956. >
  957. <div class="progressBox">
  958. <div class="lbox">
  959. <img src="../../assets/loading.gif" />上传中,请稍后
  960. </div>
  961. <el-progress
  962. :text-inside="true"
  963. :stroke-width="20"
  964. :percentage="
  965. unitJson[unitIndex].chapterInfo[0].taskJson[
  966. itemTaskIndex
  967. ].progress
  968. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  969. itemTaskIndex
  970. ].progress
  971. : 0
  972. "
  973. style="width: 80%"
  974. ></el-progress>
  975. </div>
  976. </div>
  977. </div>
  978. <div
  979. style="
  980. flex-direction: row;
  981. justify-content: flex-start;
  982. align-items: center;
  983. padding: 0 0 0 30px;
  984. paddint-top: 10px !important;
  985. "
  986. >
  987. <div
  988. style="
  989. display: flex;
  990. flex-direction: row;
  991. align-items: center;
  992. margin-bottom: 20px;
  993. "
  994. >
  995. <div class="lineTitle">练习内容</div>
  996. <div class="line" style="width: 90%"></div>
  997. </div>
  998. </div>
  999. <div class="toolChoose" style="padding: 0 0 0 30px">
  1000. <div class="tools">
  1001. <div
  1002. class="leftTools"
  1003. style="
  1004. width: 95%;
  1005. padding: 0 0 15px 0;
  1006. border-bottom: 1px solid #efefef;
  1007. margin-bottom: 15px;
  1008. "
  1009. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1010. :key="toolIndex"
  1011. >
  1012. <div>
  1013. <textarea
  1014. rows="3"
  1015. type="text"
  1016. placeholder="添加工具描述"
  1017. class="binfo_input"
  1018. style="margin: 0 0 20px 0; width: 71.5% !important"
  1019. v-model="itemTool.toolDetail"
  1020. ></textarea>
  1021. </div>
  1022. <div
  1023. style="
  1024. display: flex;
  1025. flex-direction: row;
  1026. align-items: baseline;
  1027. flex-wrap: nowrap;
  1028. justify-content: flex-start;
  1029. position: relative;
  1030. "
  1031. >
  1032. <div style="margin-right: 20px; font-weight: bold">
  1033. 工具 {{ toolIndex + 1 }} :
  1034. </div>
  1035. <div class="chooseWho">
  1036. <div
  1037. :class="
  1038. itemTool.toolType == 0 ? 'isChooseActive' : ''
  1039. "
  1040. @click="(itemTool.toolType = 0), $forceUpdate()"
  1041. >
  1042. 互动类
  1043. </div>
  1044. <div
  1045. :class="
  1046. itemTool.toolType == 1 ? 'isChooseActive' : ''
  1047. "
  1048. @click="(itemTool.toolType = 1), $forceUpdate()"
  1049. >
  1050. 思维类
  1051. </div>
  1052. <div
  1053. :class="
  1054. itemTool.toolType == 2 ? 'isChooseActive' : ''
  1055. "
  1056. @click="(itemTool.toolType = 2), $forceUpdate()"
  1057. >
  1058. 评价类
  1059. </div>
  1060. <div
  1061. :class="
  1062. itemTool.toolType == 3 ? 'isChooseActive' : ''
  1063. "
  1064. @click="(itemTool.toolType = 3), $forceUpdate()"
  1065. >
  1066. 编程类
  1067. </div>
  1068. <div
  1069. :class="
  1070. itemTool.toolType == 5 ? 'isChooseActive' : ''
  1071. "
  1072. @click="(itemTool.toolType = 5), $forceUpdate()"
  1073. >
  1074. 学科类
  1075. </div>
  1076. <div
  1077. :class="
  1078. itemTool.toolType == 4 ? 'isChooseActive' : ''
  1079. "
  1080. @click="(itemTool.toolType = 4), $forceUpdate()"
  1081. >
  1082. 其他
  1083. </div>
  1084. </div>
  1085. <div
  1086. class="remove"
  1087. @click="deleteTool(itemTaskIndex, toolIndex)"
  1088. v-if="itemTask.toolChoose.length > 1"
  1089. style="position: absolute; right: 55px"
  1090. ></div>
  1091. </div>
  1092. <div style="min-height: 163px">
  1093. <div class="toolSort" v-if="itemTool.toolType == 0">
  1094. <!-- <div class="tool">
  1095. <div
  1096. class="whiteBIcon"
  1097. @click="addTools(8, itemTaskIndex, toolIndex)"
  1098. >
  1099. <img src="../../assets/icon/secondToolList/library.png" alt />
  1100. <div style="margin: 5px 0">素材库</div>
  1101. </div>
  1102. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1103. <img
  1104. src="../../assets/icon/checkNo.png"
  1105. alt
  1106. v-if="itemTool.tool.indexOf(8) == -1"
  1107. />
  1108. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1109. alt /><span>已选择</span></div>
  1110. </div>
  1111. </div>-->
  1112. <!-- <div class="tool">
  1113. <div
  1114. class="whiteBIcon"
  1115. @click="addTools(17, itemTaskIndex, toolIndex)"
  1116. >
  1117. <img
  1118. src="../../assets/icon/secondToolList/library.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">学习资料</div>
  1122. </div>
  1123. <div
  1124. class="check"
  1125. @click="addTools(17, itemTaskIndex, toolIndex)"
  1126. >
  1127. <img
  1128. src="../../assets/icon/checkNo.png"
  1129. alt
  1130. v-if="itemTool.tool.indexOf(17) == -1"
  1131. />
  1132. <img
  1133. src="../../assets/icon/checkedIs.png"
  1134. alt
  1135. v-else
  1136. />
  1137. </div>
  1138. </div> -->
  1139. <div class="tool">
  1140. <div
  1141. class="whiteBIcon"
  1142. @click="addTools(10, itemTaskIndex, toolIndex)"
  1143. >
  1144. <img
  1145. src="../../assets/icon/thirdToolList/time.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">倒计时</div>
  1149. </div>
  1150. <div
  1151. class="check"
  1152. @click="addTools(10, itemTaskIndex, toolIndex)"
  1153. >
  1154. <img
  1155. src="../../assets/icon/checkNo.png"
  1156. alt
  1157. v-if="itemTool.tool.indexOf(10) == -1"
  1158. />
  1159. <div class="checkDiv" v-else>
  1160. <img
  1161. src="../../assets/icon/checkedIs.png"
  1162. alt
  1163. /><span>已选择</span>
  1164. </div>
  1165. </div>
  1166. </div>
  1167. </div>
  1168. <div class="toolSort" v-if="itemTool.toolType == 1">
  1169. <div class="tool">
  1170. <div
  1171. class="whiteBIcon"
  1172. @click="addTools(7, itemTaskIndex, toolIndex)"
  1173. >
  1174. <img
  1175. src="../../assets/icon/secondToolList/mindNetwork.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">思维网格</div>
  1179. </div>
  1180. <div
  1181. class="check"
  1182. @click="addTools(7, itemTaskIndex, toolIndex)"
  1183. >
  1184. <img
  1185. src="../../assets/icon/checkNo.png"
  1186. alt
  1187. v-if="itemTool.tool.indexOf(7) == -1"
  1188. />
  1189. <div class="checkDiv" v-else>
  1190. <img
  1191. src="../../assets/icon/checkedIs.png"
  1192. alt
  1193. /><span>已选择</span>
  1194. </div>
  1195. </div>
  1196. </div>
  1197. <div class="tool">
  1198. <div
  1199. class="whiteBIcon"
  1200. @click="addTools(1, itemTaskIndex, toolIndex)"
  1201. >
  1202. <img
  1203. src="../../assets/icon/secondToolList/whiteBoard.png"
  1204. alt
  1205. />
  1206. <div style="margin: 5px 0">电子白板</div>
  1207. </div>
  1208. <div
  1209. class="check"
  1210. @click="addTools(1, itemTaskIndex, toolIndex)"
  1211. >
  1212. <img
  1213. src="../../assets/icon/checkNo.png"
  1214. alt
  1215. v-if="itemTool.tool.indexOf(1) == -1"
  1216. />
  1217. <div class="checkDiv" v-else>
  1218. <img
  1219. src="../../assets/icon/checkedIs.png"
  1220. alt
  1221. /><span>已选择</span>
  1222. </div>
  1223. </div>
  1224. </div>
  1225. <div class="tool">
  1226. <div
  1227. class="whiteBIcon"
  1228. @click="addTools(2, itemTaskIndex, toolIndex)"
  1229. >
  1230. <img
  1231. src="../../assets/icon/secondToolList/note.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">便签</div>
  1235. </div>
  1236. <div
  1237. class="check"
  1238. @click="addTools(2, itemTaskIndex, toolIndex)"
  1239. >
  1240. <img
  1241. src="../../assets/icon/checkNo.png"
  1242. alt
  1243. v-if="itemTool.tool.indexOf(2) == -1"
  1244. />
  1245. <div class="checkDiv" v-else>
  1246. <img
  1247. src="../../assets/icon/checkedIs.png"
  1248. alt
  1249. /><span>已选择</span>
  1250. </div>
  1251. </div>
  1252. </div>
  1253. <div class="tool">
  1254. <div
  1255. class="whiteBIcon"
  1256. @click="addTools(6, itemTaskIndex, toolIndex)"
  1257. >
  1258. <img
  1259. src="../../assets/icon/secondToolList/doc.png"
  1260. alt
  1261. />
  1262. <div style="margin: 5px 0">协同文档</div>
  1263. </div>
  1264. <div
  1265. class="check"
  1266. @click="addTools(6, itemTaskIndex, toolIndex)"
  1267. >
  1268. <img
  1269. src="../../assets/icon/checkNo.png"
  1270. alt
  1271. v-if="itemTool.tool.indexOf(6) == -1"
  1272. />
  1273. <div class="checkDiv" v-else>
  1274. <img
  1275. src="../../assets/icon/checkedIs.png"
  1276. alt
  1277. /><span>已选择</span>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. <div class="tool">
  1282. <div
  1283. class="whiteBIcon"
  1284. @click="addTools(3, itemTaskIndex, toolIndex)"
  1285. >
  1286. <img
  1287. src="../../assets/icon/secondToolList/mindMapping.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">思维导图</div>
  1291. </div>
  1292. <div
  1293. class="check"
  1294. @click="addTools(3, itemTaskIndex, toolIndex)"
  1295. >
  1296. <img
  1297. src="../../assets/icon/checkNo.png"
  1298. alt
  1299. v-if="itemTool.tool.indexOf(3) == -1"
  1300. />
  1301. <div class="checkDiv" v-else>
  1302. <img
  1303. src="../../assets/icon/checkedIs.png"
  1304. alt
  1305. /><span>已选择</span>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div class="toolSort" v-if="itemTool.toolType == 2">
  1311. <!-- <div class="tool">
  1312. <div
  1313. class="whiteBIcon"
  1314. @click="addTools(5, itemTaskIndex, toolIndex)"
  1315. >
  1316. <img
  1317. src="../../assets/icon/thirdToolList/score.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">量规评分</div>
  1321. </div>
  1322. <div
  1323. class="check"
  1324. @click="addTools(5, itemTaskIndex, toolIndex)"
  1325. >
  1326. <img
  1327. src="../../assets/icon/checkNo.png"
  1328. alt
  1329. v-if="itemTool.tool.indexOf(5) == -1"
  1330. />
  1331. <img
  1332. src="../../assets/icon/checkedIs.png"
  1333. alt
  1334. v-else
  1335. />
  1336. </div>
  1337. </div>-->
  1338. <div class="tool">
  1339. <div
  1340. class="whiteBIcon"
  1341. @click="openTools(itemTaskIndex, 4, toolIndex)"
  1342. >
  1343. <img
  1344. src="../../assets/icon/thirdToolList/ask.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">问卷调查</div>
  1348. </div>
  1349. <div
  1350. class="check"
  1351. @click="addTools(4, itemTaskIndex, toolIndex)"
  1352. >
  1353. <img
  1354. src="../../assets/icon/checkNo.png"
  1355. alt
  1356. v-if="itemTool.tool.indexOf(4) == -1"
  1357. />
  1358. <div class="checkDiv" v-else>
  1359. <img
  1360. src="../../assets/icon/checkedIs.png"
  1361. alt
  1362. /><span>已选择</span>
  1363. </div>
  1364. </div>
  1365. </div>
  1366. <div class="tool">
  1367. <div
  1368. class="whiteBIcon"
  1369. @click="openTools(itemTaskIndex, 45, toolIndex)"
  1370. >
  1371. <img
  1372. src="../../assets/icon/thirdToolList/choose.png"
  1373. alt
  1374. />
  1375. <div style="margin: 5px 0">选择题</div>
  1376. </div>
  1377. <div
  1378. class="check"
  1379. @click="addTools(45, itemTaskIndex, toolIndex)"
  1380. >
  1381. <img
  1382. src="../../assets/icon/checkNo.png"
  1383. alt
  1384. v-if="itemTool.tool.indexOf(45) == -1"
  1385. />
  1386. <div class="checkDiv" v-else>
  1387. <img
  1388. src="../../assets/icon/checkedIs.png"
  1389. alt
  1390. /><span>已选择</span>
  1391. </div>
  1392. </div>
  1393. </div>
  1394. <div class="tool">
  1395. <div
  1396. class="whiteBIcon"
  1397. @click="openTools(itemTaskIndex, 15, toolIndex)"
  1398. >
  1399. <img
  1400. src="../../assets/icon/thirdToolList/answer.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">问答工具</div>
  1404. </div>
  1405. <div
  1406. class="check"
  1407. @click="addTools(15, itemTaskIndex, toolIndex)"
  1408. >
  1409. <img
  1410. src="../../assets/icon/checkNo.png"
  1411. alt
  1412. v-if="itemTool.tool.indexOf(15) == -1"
  1413. />
  1414. <div class="checkDiv" v-else>
  1415. <img
  1416. src="../../assets/icon/checkedIs.png"
  1417. alt
  1418. /><span>已选择</span>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. <div class="tool">
  1423. <div
  1424. class="whiteBIcon"
  1425. @click="addTools(16, itemTaskIndex, toolIndex)"
  1426. >
  1427. <img
  1428. src="../../assets/icon/thirdToolList/work.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">作业提交</div>
  1432. </div>
  1433. <div
  1434. class="check"
  1435. @click="addTools(16, itemTaskIndex, toolIndex)"
  1436. >
  1437. <img
  1438. src="../../assets/icon/checkNo.png"
  1439. alt
  1440. v-if="itemTool.tool.indexOf(16) == -1"
  1441. />
  1442. <div class="checkDiv" v-else>
  1443. <img
  1444. src="../../assets/icon/checkedIs.png"
  1445. alt
  1446. /><span>已选择</span>
  1447. </div>
  1448. </div>
  1449. </div>
  1450. <div class="tool">
  1451. <div
  1452. class="whiteBIcon"
  1453. @click="openTools(itemTaskIndex, 40, toolIndex)"
  1454. >
  1455. <img
  1456. src="../../assets/icon/thirdToolList/eval.png"
  1457. alt
  1458. />
  1459. <div style="margin: 5px 0">学生互评</div>
  1460. </div>
  1461. <div
  1462. class="check"
  1463. @click="addTools(40, itemTaskIndex, toolIndex)"
  1464. >
  1465. <img
  1466. src="../../assets/icon/checkNo.png"
  1467. alt
  1468. v-if="itemTool.tool.indexOf(40) == -1"
  1469. />
  1470. <div class="checkDiv" v-else>
  1471. <img
  1472. src="../../assets/icon/checkedIs.png"
  1473. alt
  1474. /><span>已选择</span>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="tool">
  1479. <div
  1480. class="whiteBIcon"
  1481. @click="openTools(itemTaskIndex, 41, toolIndex)"
  1482. >
  1483. <img
  1484. src="../../assets/icon/thirdToolList/select.png"
  1485. alt
  1486. />
  1487. <div style="margin: 5px 0">选择填空</div>
  1488. </div>
  1489. <div
  1490. class="check"
  1491. @click="addTools(41, itemTaskIndex, toolIndex)"
  1492. >
  1493. <img
  1494. src="../../assets/icon/checkNo.png"
  1495. alt
  1496. v-if="itemTool.tool.indexOf(41) == -1"
  1497. />
  1498. <div class="checkDiv" v-else>
  1499. <img
  1500. src="../../assets/icon/checkedIs.png"
  1501. alt
  1502. /><span>已选择</span>
  1503. </div>
  1504. </div>
  1505. </div>
  1506. <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="openTools(itemTaskIndex, 47, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../assets/icon/fourthToolList/conSentences.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">连词成句</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(47, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(47) == -1"
  1525. />
  1526. <div class="checkDiv" v-else>
  1527. <img
  1528. src="../../assets/icon/checkedIs.png"
  1529. alt
  1530. /><span>已选择</span>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. <div class="tool">
  1535. <div
  1536. class="whiteBIcon"
  1537. @click="openTools(itemTaskIndex, 48, toolIndex)"
  1538. >
  1539. <img
  1540. src="../../assets/icon/fourthToolList/table.png"
  1541. alt
  1542. />
  1543. <div style="margin: 5px 0">表格</div>
  1544. </div>
  1545. <div
  1546. class="check"
  1547. @click="addTools(48, itemTaskIndex, toolIndex)"
  1548. >
  1549. <img
  1550. src="../../assets/icon/checkNo.png"
  1551. alt
  1552. v-if="itemTool.tool.indexOf(48) == -1"
  1553. />
  1554. <div class="checkDiv" v-else>
  1555. <img
  1556. src="../../assets/icon/checkedIs.png"
  1557. alt
  1558. /><span>已选择</span>
  1559. </div>
  1560. </div>
  1561. </div>
  1562. <!-- <div class="tool">
  1563. <div
  1564. class="whiteBIcon"
  1565. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1566. >
  1567. <img
  1568. src="../../assets/icon/thirdToolList/mp3.png"
  1569. alt
  1570. />
  1571. <div style="margin: 5px 0">上传音频</div>
  1572. </div>
  1573. <div
  1574. class="check"
  1575. @click="addTools(42, itemTaskIndex, toolIndex)"
  1576. >
  1577. <img
  1578. src="../../assets/icon/checkNo.png"
  1579. alt
  1580. v-if="itemTool.tool.indexOf(42) == -1"
  1581. />
  1582. <img
  1583. src="../../assets/icon/checkedIs.png"
  1584. alt
  1585. v-else
  1586. />
  1587. </div>
  1588. </div> -->
  1589. </div>
  1590. <div class="toolSort" v-if="itemTool.toolType == 3">
  1591. <div class="tool">
  1592. <div
  1593. class="whiteBIcon"
  1594. @click="addTools(18, itemTaskIndex, toolIndex)"
  1595. >
  1596. <img
  1597. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1598. alt
  1599. />
  1600. <div style="margin: 5px 0">训练平台</div>
  1601. </div>
  1602. <div
  1603. class="check"
  1604. @click="addTools(18, itemTaskIndex, toolIndex)"
  1605. >
  1606. <img
  1607. src="../../assets/icon/checkNo.png"
  1608. alt
  1609. v-if="itemTool.tool.indexOf(18) == -1"
  1610. />
  1611. <div class="checkDiv" v-else>
  1612. <img
  1613. src="../../assets/icon/checkedIs.png"
  1614. alt
  1615. /><span>已选择</span>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. <div class="tool">
  1620. <div
  1621. class="whiteBIcon"
  1622. @click="addTools(21, itemTaskIndex, toolIndex)"
  1623. >
  1624. <img
  1625. src="../../assets/icon/fourthToolList/program.png"
  1626. alt
  1627. />
  1628. <div style="margin: 5px 0">编程平台</div>
  1629. </div>
  1630. <div
  1631. class="check"
  1632. @click="addTools(21, itemTaskIndex, toolIndex)"
  1633. >
  1634. <img
  1635. src="../../assets/icon/checkNo.png"
  1636. alt
  1637. v-if="itemTool.tool.indexOf(21) == -1"
  1638. />
  1639. <div class="checkDiv" v-else>
  1640. <img
  1641. src="../../assets/icon/checkedIs.png"
  1642. alt
  1643. /><span>已选择</span>
  1644. </div>
  1645. </div>
  1646. </div>
  1647. <div class="tool">
  1648. <div
  1649. class="whiteBIcon"
  1650. @click="addTools(22, itemTaskIndex, toolIndex)"
  1651. >
  1652. <img
  1653. src="../../assets/icon/fourthToolList/AIprogram2.png"
  1654. alt
  1655. />
  1656. <div style="margin: 5px 0">AI体验</div>
  1657. </div>
  1658. <div
  1659. class="check"
  1660. @click="addTools(22, itemTaskIndex, toolIndex)"
  1661. >
  1662. <img
  1663. src="../../assets/icon/checkNo.png"
  1664. alt
  1665. v-if="itemTool.tool.indexOf(22) == -1"
  1666. />
  1667. <div class="checkDiv" v-else>
  1668. <img
  1669. src="../../assets/icon/checkedIs.png"
  1670. alt
  1671. /><span>已选择</span>
  1672. </div>
  1673. </div>
  1674. </div>
  1675. <div class="tool">
  1676. <div
  1677. class="whiteBIcon"
  1678. @click="addTools(23, itemTaskIndex, toolIndex)"
  1679. >
  1680. <img
  1681. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1682. alt
  1683. />
  1684. <div style="margin: 5px 0">Python</div>
  1685. </div>
  1686. <div
  1687. class="check"
  1688. @click="addTools(23, itemTaskIndex, toolIndex)"
  1689. >
  1690. <img
  1691. src="../../assets/icon/checkNo.png"
  1692. alt
  1693. v-if="itemTool.tool.indexOf(23) == -1"
  1694. />
  1695. <div class="checkDiv" v-else>
  1696. <img
  1697. src="../../assets/icon/checkedIs.png"
  1698. alt
  1699. /><span>已选择</span>
  1700. </div>
  1701. </div>
  1702. </div>
  1703. <div class="tool">
  1704. <div
  1705. class="whiteBIcon"
  1706. @click="addTools(24, itemTaskIndex, toolIndex)"
  1707. >
  1708. <img
  1709. src="../../assets/icon/fourthToolList/AIprogram.png"
  1710. alt
  1711. />
  1712. <div style="margin: 5px 0">AI平台</div>
  1713. </div>
  1714. <div
  1715. class="check"
  1716. @click="addTools(24, itemTaskIndex, toolIndex)"
  1717. >
  1718. <img
  1719. src="../../assets/icon/checkNo.png"
  1720. alt
  1721. v-if="itemTool.tool.indexOf(24) == -1"
  1722. />
  1723. <div class="checkDiv" v-else>
  1724. <img
  1725. src="../../assets/icon/checkedIs.png"
  1726. alt
  1727. /><span>已选择</span>
  1728. </div>
  1729. </div>
  1730. </div>
  1731. <div class="tool">
  1732. <div
  1733. class="whiteBIcon"
  1734. @click="addTools(32, itemTaskIndex, toolIndex)"
  1735. >
  1736. <img
  1737. src="../../assets/icon/thirdToolList/code.png"
  1738. alt
  1739. />
  1740. <div style="margin: 5px 0">源码编辑</div>
  1741. </div>
  1742. <div
  1743. class="check"
  1744. @click="addTools(32, itemTaskIndex, toolIndex)"
  1745. >
  1746. <img
  1747. src="../../assets/icon/checkNo.png"
  1748. alt
  1749. v-if="itemTool.tool.indexOf(32) == -1"
  1750. />
  1751. <div class="checkDiv" v-else>
  1752. <img
  1753. src="../../assets/icon/checkedIs.png"
  1754. alt
  1755. /><span>已选择</span>
  1756. </div>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. <div class="toolSort" v-if="itemTool.toolType == 5">
  1761. <div class="tool">
  1762. <div
  1763. class="whiteBIcon"
  1764. @click="addTools(28, itemTaskIndex, toolIndex)"
  1765. >
  1766. <img
  1767. src="../../assets/icon/secondToolList/translation.png"
  1768. alt
  1769. />
  1770. <div style="margin: 5px 0">翻译</div>
  1771. </div>
  1772. <div
  1773. class="check"
  1774. @click="addTools(28, itemTaskIndex, toolIndex)"
  1775. >
  1776. <img
  1777. src="../../assets/icon/checkNo.png"
  1778. alt
  1779. v-if="itemTool.tool.indexOf(28) == -1"
  1780. />
  1781. <div class="checkDiv" v-else>
  1782. <img
  1783. src="../../assets/icon/checkedIs.png"
  1784. alt
  1785. /><span>已选择</span>
  1786. </div>
  1787. </div>
  1788. </div>
  1789. <div class="tool">
  1790. <div
  1791. class="whiteBIcon"
  1792. @click="addTools(37, itemTaskIndex, toolIndex)"
  1793. >
  1794. <img
  1795. src="../../assets/icon/secondToolList/mohe.png"
  1796. alt
  1797. />
  1798. <div style="margin: 5px 0">魔盒识字</div>
  1799. </div>
  1800. <div
  1801. class="check"
  1802. @click="addTools(37, itemTaskIndex, toolIndex)"
  1803. >
  1804. <img
  1805. src="../../assets/icon/checkNo.png"
  1806. alt
  1807. v-if="itemTool.tool.indexOf(37) == -1"
  1808. />
  1809. <div class="checkDiv" v-else>
  1810. <img
  1811. src="../../assets/icon/checkedIs.png"
  1812. alt
  1813. /><span>已选择</span>
  1814. </div>
  1815. </div>
  1816. </div>
  1817. <div class="tool">
  1818. <div
  1819. class="whiteBIcon"
  1820. @click="addTools(38, itemTaskIndex, toolIndex)"
  1821. >
  1822. <img
  1823. src="../../assets/icon/secondToolList/24game.png"
  1824. alt
  1825. />
  1826. <div style="margin: 5px 0">24点</div>
  1827. </div>
  1828. <div
  1829. class="check"
  1830. @click="addTools(38, itemTaskIndex, toolIndex)"
  1831. >
  1832. <img
  1833. src="../../assets/icon/checkNo.png"
  1834. alt
  1835. v-if="itemTool.tool.indexOf(38) == -1"
  1836. />
  1837. <div class="checkDiv" v-else>
  1838. <img
  1839. src="../../assets/icon/checkedIs.png"
  1840. alt
  1841. /><span>已选择</span>
  1842. </div>
  1843. </div>
  1844. </div>
  1845. <div class="tool">
  1846. <div
  1847. class="whiteBIcon"
  1848. @click="addTools(31, itemTaskIndex, toolIndex)"
  1849. >
  1850. <img
  1851. src="../../assets/icon/secondToolList/networkPanel.png"
  1852. alt
  1853. />
  1854. <div style="margin: 5px 0">数学画板</div>
  1855. </div>
  1856. <div
  1857. class="check"
  1858. @click="addTools(31, itemTaskIndex, toolIndex)"
  1859. >
  1860. <img
  1861. src="../../assets/icon/checkNo.png"
  1862. alt
  1863. v-if="itemTool.tool.indexOf(31) == -1"
  1864. />
  1865. <div class="checkDiv" v-else>
  1866. <img
  1867. src="../../assets/icon/checkedIs.png"
  1868. alt
  1869. /><span>已选择</span>
  1870. </div>
  1871. </div>
  1872. </div>
  1873. <div class="tool">
  1874. <div
  1875. class="whiteBIcon"
  1876. @click="addTools(39, itemTaskIndex, toolIndex)"
  1877. >
  1878. <img
  1879. src="../../assets/icon/secondToolList/GeoGebra.png"
  1880. alt
  1881. />
  1882. <div style="margin: 5px 0">GeoGebra</div>
  1883. </div>
  1884. <div
  1885. class="check"
  1886. @click="addTools(39, itemTaskIndex, toolIndex)"
  1887. >
  1888. <img
  1889. src="../../assets/icon/checkNo.png"
  1890. alt
  1891. v-if="itemTool.tool.indexOf(39) == -1"
  1892. />
  1893. <div class="checkDiv" v-else>
  1894. <img
  1895. src="../../assets/icon/checkedIs.png"
  1896. alt
  1897. /><span>已选择</span>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. <div class="toolSort" v-if="itemTool.toolType == 4">
  1903. <div class="tool">
  1904. <div
  1905. class="whiteBIcon"
  1906. @click="addTools(26, itemTaskIndex, toolIndex)"
  1907. >
  1908. <img
  1909. src="../../assets/icon/thirdToolList/courseDesign.png"
  1910. alt
  1911. />
  1912. <div style="margin: 5px 0">项目设计</div>
  1913. </div>
  1914. <div
  1915. class="check"
  1916. @click="addTools(26, itemTaskIndex, toolIndex)"
  1917. >
  1918. <img
  1919. src="../../assets/icon/checkNo.png"
  1920. alt
  1921. v-if="itemTool.tool.indexOf(26) == -1"
  1922. />
  1923. <div class="checkDiv" v-else>
  1924. <img
  1925. src="../../assets/icon/checkedIs.png"
  1926. alt
  1927. /><span>已选择</span>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div class="tool">
  1932. <div
  1933. class="whiteBIcon"
  1934. @click="addTools(25, itemTaskIndex, toolIndex)"
  1935. >
  1936. <img
  1937. src="../../assets/icon/thirdToolList/evalua.png"
  1938. alt
  1939. />
  1940. <div style="margin: 5px 0">目标管理</div>
  1941. </div>
  1942. <div
  1943. class="check"
  1944. @click="addTools(25, itemTaskIndex, toolIndex)"
  1945. >
  1946. <img
  1947. src="../../assets/icon/checkNo.png"
  1948. alt
  1949. v-if="itemTool.tool.indexOf(25) == -1"
  1950. />
  1951. <div class="checkDiv" v-else>
  1952. <img
  1953. src="../../assets/icon/checkedIs.png"
  1954. alt
  1955. /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div class="tool">
  1960. <div
  1961. class="whiteBIcon"
  1962. @click="addTools(44, itemTaskIndex, toolIndex)"
  1963. >
  1964. <img
  1965. src="../../assets/icon/thirdToolList/hanClass.png"
  1966. alt
  1967. />
  1968. <div style="margin: 5px 0">汉字宫</div>
  1969. </div>
  1970. <div
  1971. class="check"
  1972. @click="addTools(44, itemTaskIndex, toolIndex)"
  1973. >
  1974. <img
  1975. src="../../assets/icon/checkNo.png"
  1976. alt
  1977. v-if="itemTool.tool.indexOf(44) == -1"
  1978. />
  1979. <div class="checkDiv" v-else>
  1980. <img
  1981. src="../../assets/icon/checkedIs.png"
  1982. alt
  1983. /><span>已选择</span>
  1984. </div>
  1985. </div>
  1986. </div>
  1987. </div>
  1988. </div>
  1989. </div>
  1990. <div
  1991. class="addToolFun"
  1992. @click="addToolFun(itemTaskIndex)"
  1993. >
  1994. <div class="addToolImg">
  1995. <img src="../../assets/icon/add.png" alt />
  1996. </div>
  1997. <div>添加工具</div>
  1998. </div>
  1999. </div>
  2000. </div>
  2001. <div class="elist_css">
  2002. <div class="elist_title">
  2003. <div
  2004. style="
  2005. display: flex;
  2006. flex-direction: row;
  2007. align-items: center;
  2008. margin-bottom: 20px;
  2009. "
  2010. >
  2011. <div class="lineTitle">评价设置</div>
  2012. <div class="line" style="width: 90%"></div>
  2013. </div>
  2014. </div>
  2015. <div class="mbCss">
  2016. <div class="pjCss">
  2017. <div
  2018. v-if="itemTask.eList && itemTask.eList.length"
  2019. class="elist_input"
  2020. >
  2021. <div
  2022. v-for="(eItem, eIndex) in itemTask.eList"
  2023. :key="eIndex"
  2024. class="elist_input_box"
  2025. >
  2026. <span>评价名称:</span>
  2027. <input
  2028. type="input"
  2029. v-model="itemTask.eList[eIndex].value"
  2030. placeholder="填写评价名称"
  2031. />
  2032. <span>评星等级:</span>
  2033. <el-rate
  2034. v-model="itemTask.eList[eIndex].score"
  2035. @change="setEListStar()"
  2036. disabled
  2037. ></el-rate>
  2038. <div
  2039. class="remove"
  2040. @click="
  2041. deletEList(unitIndex, itemTaskIndex, eIndex)
  2042. "
  2043. ></div>
  2044. <div class="elist_inptu_text">
  2045. <span>评价描述:</span>
  2046. <input
  2047. type="input"
  2048. v-model="itemTask.eList[eIndex].detail"
  2049. placeholder="填写评价描述"
  2050. />
  2051. </div>
  2052. <div class="elist_inptu_text" v-if="evalua">
  2053. <span>目标:</span>
  2054. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2055. <el-select
  2056. v-model="itemTask.eList[eIndex].target"
  2057. placeholder="请选择目标"
  2058. @change="forceUpdate()"
  2059. >
  2060. <el-option
  2061. v-for="(e, eIndex) in targetArray"
  2062. :key="eIndex"
  2063. :label="e.name"
  2064. :value="e.name"
  2065. >
  2066. </el-option>
  2067. </el-select>
  2068. </div>
  2069. </div>
  2070. </div>
  2071. <div
  2072. class="addToolFun"
  2073. @click="addEList(unitIndex, itemTaskIndex)"
  2074. style="margin: 35px 35px 0 0"
  2075. >
  2076. <div class="addToolImg">
  2077. <img src="../../assets/icon/add.png" alt />
  2078. </div>
  2079. <div>添加</div>
  2080. </div>
  2081. </div>
  2082. <div
  2083. v-if="evalua"
  2084. style="
  2085. border: 1px solid #e5e5e5;
  2086. width: 55%;
  2087. margin-top: 20px;
  2088. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2089. "
  2090. class="evaCss"
  2091. >
  2092. <div class="e_add_top">
  2093. <div class="e_add_title">
  2094. <span>当前使用目标管理</span>
  2095. <span>{{ eTitle }}</span>
  2096. <img
  2097. src="../../assets/line.png"
  2098. class="cru_line"
  2099. style="
  2100. width: 125px;
  2101. height: 20px;
  2102. bottom: -10px;
  2103. left: 155px;
  2104. "
  2105. />
  2106. <!-- <el-input
  2107. v-model="eTitle"
  2108. placeholder="请输入名称"
  2109. @change="setMindData"
  2110. ></el-input>-->
  2111. </div>
  2112. </div>
  2113. <div class="e_add_content" style="width: 100%">
  2114. <div class="e_add_list_pbox" style="width: 100%">
  2115. <div class="e_add_list_pbox_title">
  2116. <span class="type_title">切换模式</span>
  2117. <div class="type_content">
  2118. <span
  2119. :class="{ active: typeMode == 1 }"
  2120. @click="OtherMb(1)"
  2121. >目标树</span
  2122. >
  2123. <span
  2124. :class="{ active: typeMode == 2 }"
  2125. @click="OtherMb(2)"
  2126. >目标罗盘</span
  2127. >
  2128. <span
  2129. :class="{ active: typeMode == 3 }"
  2130. @click="OtherMb(3)"
  2131. >目标看板</span
  2132. >
  2133. </div>
  2134. </div>
  2135. <div class="e_add_list_pbox_content">
  2136. <Mind
  2137. :showBar="false"
  2138. :mindData="data"
  2139. style="width: 100%"
  2140. :jsmindId="
  2141. unitIndex + '-' + itemTaskIndex + 'mind'
  2142. "
  2143. v-if="typeMode == 1"
  2144. ></Mind>
  2145. <Sunburst
  2146. :Josn="eJson"
  2147. :num="eJSONNum"
  2148. style="width: 100%"
  2149. v-if="typeMode == 2"
  2150. >
  2151. </Sunburst>
  2152. <SeeBoard
  2153. :Josn="eJson"
  2154. :num="eJSONNum"
  2155. :ename="eTitle"
  2156. style="width: 100%"
  2157. v-if="typeMode == 3"
  2158. ></SeeBoard>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. </div>
  2164. </div>
  2165. <div class="funBlock" style="padding: 0">
  2166. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2167. <div>折叠</div>
  2168. <div class="arrow">
  2169. <img src="../../assets/icon/fold.png" alt />
  2170. </div>
  2171. </div>
  2172. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2173. <div>展开</div>
  2174. <div class="arrow">
  2175. <img src="../../assets/icon/expand.png" alt />
  2176. </div>
  2177. </div>
  2178. </div>
  2179. </div>
  2180. <div class="addTaskBorder" @click="addTaskBorder">
  2181. <div>
  2182. <img src="../../assets/icon/addHw.png" alt />
  2183. <span>添加任务</span>
  2184. </div>
  2185. </div>
  2186. </div>
  2187. </div>
  2188. </div>
  2189. <div
  2190. style="
  2191. width: calc(100% - 20px);
  2192. background: rgb(255, 255, 255);
  2193. border-radius: 10px;
  2194. "
  2195. v-if="this.steps == 4"
  2196. >
  2197. <div class="basic_box_success">
  2198. <div class="right_img">
  2199. <img src="../../assets/icon/right.png" alt />
  2200. </div>
  2201. <div style="font-weight: bold">成功</div>
  2202. <!-- <div>您的项目编号</div>
  2203. <div class="number">{{ number }}</div>-->
  2204. <!-- <div class="success_button">
  2205. <div class="look_course" @click="isNoFinsh">
  2206. 邀请老师协同编辑
  2207. </div>
  2208. <div class="attend_others" @click="goCourse">预览项目</div>
  2209. </div> -->
  2210. </div>
  2211. </div>
  2212. <div class="info_btnBox">
  2213. <button
  2214. class="info_btn"
  2215. v-if="steps == 1"
  2216. @click="
  2217. goTo('/course?userid=' + userid + '&oid=' + oid + '&org=' + org)
  2218. "
  2219. >
  2220. 返回项目
  2221. </button>
  2222. <button
  2223. class="info_btn"
  2224. v-if="steps > 1 && steps != 5"
  2225. @click="lastSteps"
  2226. >
  2227. {{ steps == 4 ? "返回首页" : "上一步" }}
  2228. </button>
  2229. <button class="info_btn" v-if="steps < 4" @click="nextSteps">
  2230. {{ steps == 3 ? "确认上传" : "下一步" }}
  2231. </button>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. <el-dialog
  2237. title="提示"
  2238. :visible.sync="dialogVisible"
  2239. :append-to-body="true"
  2240. width="25%"
  2241. :before-close="handleClose"
  2242. class="dialog_diy2 customWidth"
  2243. >
  2244. <div>请复制该链接邀请协同编辑</div>
  2245. <div>http://www.boomyon.com/index-zhang.com</div>
  2246. <span slot="footer" class="dialog-footer">
  2247. <el-button type="primary">复制链接分享</el-button>
  2248. <el-button @click="dialogVisible = false">取消</el-button>
  2249. </span>
  2250. </el-dialog>
  2251. <el-dialog
  2252. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  2253. :visible.sync="dialogVisible1"
  2254. :append-to-body="true"
  2255. width="25%"
  2256. :before-close="handleClose"
  2257. class="dialog_diy2 customWidth"
  2258. >
  2259. <el-form>
  2260. <el-form-item label="文档标题">
  2261. <el-input
  2262. v-model="tTitle"
  2263. auto-complete="off"
  2264. placeholder="请输入文档标题名..."
  2265. ></el-input>
  2266. </el-form-item>
  2267. <div>文档简介</div>
  2268. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2269. </el-form>
  2270. <span slot="footer" class="dialog-footer">
  2271. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2272. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  2273. >添加</el-button
  2274. >
  2275. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2276. </span>
  2277. </el-dialog>
  2278. <el-dialog
  2279. title="添加文档"
  2280. :visible.sync="dialogVisible2"
  2281. :append-to-body="true"
  2282. width="500px"
  2283. :before-close="handleClose"
  2284. class="dialog_diy"
  2285. >
  2286. <el-form>
  2287. <el-form-item label="文档标题">
  2288. <el-input
  2289. v-model="templateC.title"
  2290. auto-complete="off"
  2291. placeholder="请输入文档标题名..."
  2292. ></el-input>
  2293. </el-form-item>
  2294. <div>文档内容</div>
  2295. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2296. </el-form>
  2297. <span slot="footer" class="dialog-footer">
  2298. <el-button @click="clearChoose">取 消</el-button>
  2299. <el-button type="primary" @click="wordNext()">确定</el-button>
  2300. </span>
  2301. </el-dialog>
  2302. <el-dialog
  2303. title="添加富文本"
  2304. :visible.sync="dialogVisible6"
  2305. :append-to-body="true"
  2306. width="500px"
  2307. :before-close="handleClose"
  2308. class="dialog_diy"
  2309. >
  2310. <el-form>
  2311. <el-form-item label="文本标题">
  2312. <el-input
  2313. v-model="AttText.title"
  2314. auto-complete="off"
  2315. @input="change2"
  2316. placeholder="请输入文本标题..."
  2317. ></el-input>
  2318. </el-form-item>
  2319. <div>富文本内容</div>
  2320. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  2321. </el-form>
  2322. <span slot="footer" class="dialog-footer">
  2323. <el-button @click="clearAttText">取 消</el-button>
  2324. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2325. </span>
  2326. </el-dialog>
  2327. <el-dialog
  2328. title="添加链接"
  2329. :visible.sync="dialogVisible7"
  2330. :append-to-body="true"
  2331. width="500px"
  2332. :before-close="handleClose"
  2333. class="dialog_diy lineCss"
  2334. >
  2335. <el-form>
  2336. <el-form-item label="标题" :label-width="formLabelWidth">
  2337. <span>
  2338. <el-input
  2339. placeholder="请输入链接标题"
  2340. clearable
  2341. v-model="lineTitle"
  2342. class="add_input"
  2343. ></el-input>
  2344. </span>
  2345. </el-form-item>
  2346. <el-form-item label="链接" :label-width="formLabelWidth">
  2347. <span>
  2348. <el-input
  2349. placeholder="请输入链接"
  2350. clearable
  2351. v-model="line"
  2352. class="add_input"
  2353. ></el-input>
  2354. </span>
  2355. </el-form-item>
  2356. </el-form>
  2357. <span slot="footer" class="dialog-footer">
  2358. <el-button @click="clearLine">取 消</el-button>
  2359. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2360. </span>
  2361. </el-dialog>
  2362. <el-dialog
  2363. title="添加项目成员"
  2364. :visible.sync="dialogVisible3"
  2365. :append-to-body="true"
  2366. width="25%"
  2367. height="80%"
  2368. :before-close="handleClose"
  2369. class="addNewPP customWidth"
  2370. >
  2371. <div class="people">
  2372. <div class="people_top">
  2373. <div class="people_nav">选择成员</div>
  2374. <div class="people_top_right">
  2375. <div class="people_search">
  2376. <el-input
  2377. style="height: 100%"
  2378. placeholder="搜索成员名称"
  2379. v-model="searchPeople"
  2380. ></el-input>
  2381. <div class="search_img" @click="searchStudent">
  2382. <img src="../../assets/icon/search.png" alt />
  2383. </div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. <el-checkbox-group v-model="checkboxList" class="people_name">
  2388. <el-checkbox
  2389. v-for="item in studentJuri"
  2390. :key="item.userid"
  2391. :label="item.userid"
  2392. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  2393. >
  2394. </el-checkbox-group>
  2395. </div>
  2396. <span slot="footer" class="dialog-footer">
  2397. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2398. <el-button type="primary" @click="isAddPP">确定</el-button>
  2399. </span>
  2400. </el-dialog>
  2401. <el-dialog
  2402. title="添加班级"
  2403. :visible.sync="dialogVisibleClass"
  2404. :append-to-body="true"
  2405. width="400px"
  2406. height="80%"
  2407. :before-close="handleClose"
  2408. class="addNewPP"
  2409. >
  2410. <div class="people" style="height: 300px">
  2411. <div class="people_top">
  2412. <div class="people_nav">选择班级</div>
  2413. </div>
  2414. <el-checkbox-group v-model="checkboxList2" class="people_name">
  2415. <div v-for="(item, index) in grade" :key="item.id">
  2416. <el-checkbox :label="item.id">
  2417. {{ item.name ? item.name : "暂无班级可选" }}
  2418. </el-checkbox>
  2419. <div>
  2420. <span>{{ index }}</span>
  2421. </div>
  2422. </div>
  2423. </el-checkbox-group>
  2424. </div>
  2425. <span slot="footer" class="dialog-footer">
  2426. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2427. <el-button type="primary" @click="isAddClass">确定</el-button>
  2428. </span>
  2429. </el-dialog>
  2430. <el-dialog
  2431. title="添加协同成员"
  2432. :visible.sync="dialogVisibleMember"
  2433. :append-to-body="true"
  2434. width="25%"
  2435. height="80%"
  2436. :before-close="handleClose"
  2437. class="addNewPP customWidth"
  2438. >
  2439. <div class="people">
  2440. <div class="people_top">
  2441. <div class="people_top_right">
  2442. <div class="people_search">
  2443. <el-input
  2444. placeholder="搜索成员名称"
  2445. v-model="searchTN"
  2446. @keyup.enter.native="getTeacher"
  2447. ></el-input>
  2448. <div class="search_img" @click="getTeacher">
  2449. <img src="../../assets/icon/search.png" alt />
  2450. </div>
  2451. </div>
  2452. </div>
  2453. <div class="people_nav">选择成员</div>
  2454. </div>
  2455. <el-checkbox-group
  2456. v-model="checkboxList3"
  2457. class="people_name"
  2458. v-if="teacherJuri.length"
  2459. >
  2460. <el-checkbox
  2461. v-for="item in teacherJuri"
  2462. :key="item.userid"
  2463. :label="item.userid"
  2464. >
  2465. <div class="t_j_box">
  2466. <el-tooltip
  2467. placement="top"
  2468. :content="item.name ? item.name : '暂无姓名'"
  2469. >
  2470. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2471. </el-tooltip>
  2472. <el-tooltip placement="top" :content="item.username">
  2473. <span>{{ item.username }}</span>
  2474. </el-tooltip>
  2475. <el-tooltip placement="top" :content="item.school">
  2476. <span>{{ item.school }}</span>
  2477. </el-tooltip>
  2478. </div>
  2479. </el-checkbox>
  2480. </el-checkbox-group>
  2481. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2482. </div>
  2483. <span slot="footer" class="dialog-footer">
  2484. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2485. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2486. </span>
  2487. </el-dialog>
  2488. <el-dialog
  2489. title="创建问卷"
  2490. :visible.sync="dialogVisible5"
  2491. :append-to-body="true"
  2492. width="800px"
  2493. :before-close="handleClose"
  2494. class="dialog_diy"
  2495. >
  2496. <div>
  2497. <div
  2498. class="a_add_title"
  2499. style="
  2500. display: flex;
  2501. flex-direction: row;
  2502. align-items: center;
  2503. justify-content: center;
  2504. "
  2505. >
  2506. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2507. <el-input
  2508. v-model="askJson.askTitle"
  2509. placeholder="请输入标题"
  2510. style="width: 400px"
  2511. ></el-input>
  2512. </div>
  2513. <div class="a_addBox">
  2514. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2515. <div
  2516. class="a_add_box"
  2517. v-for="(item1, index1) in askJson.askCount"
  2518. :key="index1"
  2519. >
  2520. <div class="a_add_head">
  2521. <div>
  2522. {{ index1 + 1 + "、" }}
  2523. <el-input
  2524. class="a_add_head_input"
  2525. v-model="askJson.askJson[index1].askstitle"
  2526. placeholder="请输入题目..."
  2527. >
  2528. </el-input>
  2529. </div>
  2530. <div class="a_add_head_div">
  2531. <el-button type="primary" size="small" @click="addAskList()"
  2532. >添加</el-button
  2533. >
  2534. <el-button
  2535. type="primary"
  2536. size="small"
  2537. @click="deleteAskList(index1)"
  2538. v-if="askJson.askCount != 1"
  2539. >删除
  2540. </el-button>
  2541. </div>
  2542. </div>
  2543. <div class="a_add_body">
  2544. <div class="a_add_input">
  2545. <el-input
  2546. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  2547. :key="checkIndex"
  2548. v-model="askJson.askJson[index1].checkList[checkIndex]"
  2549. placeholder="请输入选项..."
  2550. style="width: 150px; margin: 10px 10px 0 0"
  2551. ></el-input>
  2552. </div>
  2553. <div class="a_add_body_div">
  2554. <el-button
  2555. style="margin: 10px 0px 0 0"
  2556. type="primary"
  2557. size="small"
  2558. @click="addcheckList(askJson.askJson[index1])"
  2559. >添加</el-button
  2560. >
  2561. <el-button
  2562. type="primary"
  2563. size="small"
  2564. style="margin: 10px 0 0 10px"
  2565. @click="deletecheckList(askJson.askJson[index1])"
  2566. v-if="askJson.askJson[index1].askItem != 1"
  2567. >删除
  2568. </el-button>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <span slot="footer" class="dialog-footer">
  2575. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2576. <el-button type="primary" @click="addAsk">确 定</el-button>
  2577. </span>
  2578. </el-dialog>
  2579. <el-dialog
  2580. title="创建选择题"
  2581. :visible.sync="dialogVisibleChoice"
  2582. :append-to-body="true"
  2583. width="800px"
  2584. :before-close="handleClose"
  2585. class="dialog_diy"
  2586. >
  2587. <div>
  2588. <!-- <div class="a_add_title" style="
  2589. display: flex;
  2590. flex-direction: row;
  2591. align-items: center;
  2592. justify-content: center;
  2593. ">
  2594. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2595. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2596. </div> -->
  2597. <div class="a_addBox">
  2598. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2599. <div
  2600. class="a_add_box"
  2601. v-for="(item1, index1) in testJson.testCount"
  2602. :key="index1"
  2603. >
  2604. <div class="a_add_checkType">
  2605. <span
  2606. :class="{ active: testJson.testJson[index1].type == '1' }"
  2607. @click="checkTestType('1', testJson.testJson[index1])"
  2608. >单选题</span
  2609. >
  2610. <span
  2611. :class="{ active: testJson.testJson[index1].type == '2' }"
  2612. @click="checkTestType('2', testJson.testJson[index1])"
  2613. >多选题</span
  2614. >
  2615. </div>
  2616. <div class="a_add_head">
  2617. <div>
  2618. {{ index1 + 1 + "、" }}
  2619. <el-input
  2620. class="a_add_head_input"
  2621. v-model="testJson.testJson[index1].teststitle"
  2622. placeholder="请输入题目..."
  2623. >
  2624. </el-input>
  2625. </div>
  2626. <div class="a_add_head_div">
  2627. <el-button type="primary" size="small" @click="addTestList()"
  2628. >添加</el-button
  2629. >
  2630. <el-button
  2631. type="primary"
  2632. size="small"
  2633. @click="deleteTestList(index1)"
  2634. v-if="testJson.testCount != 1"
  2635. >删除
  2636. </el-button>
  2637. </div>
  2638. </div>
  2639. <div class="a_add_body">
  2640. <div class="a_add_input a_add_input_choice">
  2641. <el-radio-group
  2642. v-model="testJson.testJson[index1].answer"
  2643. v-if="testJson.testJson[index1].type == 1"
  2644. >
  2645. <el-radio
  2646. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2647. .testItem"
  2648. :key="checkIndex"
  2649. :label="checkIndex"
  2650. >
  2651. <el-input
  2652. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2653. placeholder="请输入选项..."
  2654. style="width: 300px; margin-right: 10px"
  2655. ></el-input>
  2656. </el-radio>
  2657. </el-radio-group>
  2658. <el-checkbox-group
  2659. v-model="testJson.testJson[index1].answer"
  2660. v-if="testJson.testJson[index1].type == '2'"
  2661. >
  2662. <el-checkbox
  2663. v-for="(item2, checkIndex) in testJson.testJson[index1]
  2664. .testItem"
  2665. :key="checkIndex"
  2666. :label="checkIndex"
  2667. >
  2668. <el-input
  2669. v-model="testJson.testJson[index1].checkList[checkIndex]"
  2670. placeholder="请输入选项..."
  2671. style="width: 300px; margin-right: 10px"
  2672. ></el-input>
  2673. </el-checkbox>
  2674. </el-checkbox-group>
  2675. </div>
  2676. <div class="a_add_body_div">
  2677. <el-button
  2678. type="primary"
  2679. size="small"
  2680. @click="addTcheckList(testJson.testJson[index1])"
  2681. >添加</el-button
  2682. >
  2683. <el-button
  2684. type="primary"
  2685. size="small"
  2686. @click="deleteTcheckList(testJson.testJson[index1])"
  2687. v-if="testJson.testJson[index1].testItem != 1"
  2688. >删除
  2689. </el-button>
  2690. </div>
  2691. </div>
  2692. </div>
  2693. </div>
  2694. </div>
  2695. <span slot="footer" class="dialog-footer">
  2696. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2697. <el-button type="primary" @click="addTest">确 定</el-button>
  2698. </span>
  2699. </el-dialog>
  2700. <el-dialog
  2701. title="添加工具"
  2702. :visible.sync="dialogVisible4"
  2703. :append-to-body="true"
  2704. width="600px"
  2705. :before-close="handleClose"
  2706. class="dialog_diy addToolsDia"
  2707. >
  2708. <div class="toolChoose" style="padding: 0 0 0 30px">
  2709. <div class="tools">
  2710. <div
  2711. class="leftTools"
  2712. style="
  2713. width: 95%;
  2714. padding: 0 0 15px 0;
  2715. border-bottom: 1px solid #efefef;
  2716. margin-bottom: 15px;
  2717. "
  2718. v-for="(itemTools, itemToolsIndex) in chapTools"
  2719. :key="itemToolsIndex"
  2720. >
  2721. <div
  2722. style="
  2723. display: flex;
  2724. flex-direction: row;
  2725. align-items: baseline;
  2726. flex-wrap: nowrap;
  2727. justify-content: flex-start;
  2728. position: relative;
  2729. "
  2730. >
  2731. <div class="chooseWho">
  2732. <div
  2733. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  2734. @click="chapToolsType = 0"
  2735. >
  2736. 互动类
  2737. </div>
  2738. <div
  2739. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  2740. @click="chapToolsType = 1"
  2741. >
  2742. 思维类
  2743. </div>
  2744. <div
  2745. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  2746. @click="chapToolsType = 2"
  2747. >
  2748. 评价类
  2749. </div>
  2750. <div
  2751. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  2752. @click="chapToolsType = 2"
  2753. >
  2754. 其他
  2755. </div>
  2756. </div>
  2757. </div>
  2758. <div style="min-height: 163px">
  2759. <div class="toolSort" v-if="chapToolsType == 0">
  2760. <div class="tool">
  2761. <div class="whiteBIcon" @click="chapAddTools(8)">
  2762. <img
  2763. src="../../assets/icon/secondToolList/library.png"
  2764. alt
  2765. />
  2766. <div style="margin: 5px 0">素材库</div>
  2767. </div>
  2768. <div class="check" @click="chapAddTools(8)">
  2769. <img
  2770. src="../../assets/icon/checkNo.png"
  2771. alt
  2772. v-if="itemTools.tools.indexOf(8) == -1"
  2773. />
  2774. <div class="checkDiv" v-else>
  2775. <img src="../../assets/icon/checkedIs.png" alt /><span
  2776. >已选择</span
  2777. >
  2778. </div>
  2779. </div>
  2780. </div>
  2781. </div>
  2782. <div class="toolSort" v-if="chapToolsType == 1">
  2783. <div class="tool">
  2784. <div class="whiteBIcon" @click="chapAddTools(7)">
  2785. <img
  2786. src="../../assets/icon/secondToolList/mindNetwork.png"
  2787. alt
  2788. />
  2789. <div style="margin: 5px 0">思维网格</div>
  2790. </div>
  2791. <div class="check" @click="chapAddTools(7)">
  2792. <img
  2793. src="../../assets/icon/checkNo.png"
  2794. alt
  2795. v-if="itemTools.tools.indexOf(7) == -1"
  2796. />
  2797. <div class="checkDiv" v-else>
  2798. <img src="../../assets/icon/checkedIs.png" alt /><span
  2799. >已选择</span
  2800. >
  2801. </div>
  2802. </div>
  2803. </div>
  2804. <div class="tool">
  2805. <div class="whiteBIcon" @click="chapAddTools(1)">
  2806. <img
  2807. src="../../assets/icon/secondToolList/whiteBoard.png"
  2808. alt
  2809. />
  2810. <div style="margin: 5px 0">电子白板</div>
  2811. </div>
  2812. <div class="check" @click="chapAddTools(1)">
  2813. <img
  2814. src="../../assets/icon/checkNo.png"
  2815. alt
  2816. v-if="itemTools.tools.indexOf(1) == -1"
  2817. />
  2818. <div class="checkDiv" v-else>
  2819. <img src="../../assets/icon/checkedIs.png" alt /><span
  2820. >已选择</span
  2821. >
  2822. </div>
  2823. </div>
  2824. </div>
  2825. <div class="tool">
  2826. <div class="whiteBIcon" @click="chapAddTools(2)">
  2827. <img src="../../assets/icon/secondToolList/note.png" alt />
  2828. <div style="margin: 5px 0">便签</div>
  2829. </div>
  2830. <div class="check" @click="chapAddTools(2)">
  2831. <img
  2832. src="../../assets/icon/checkNo.png"
  2833. alt
  2834. v-if="itemTools.tools.indexOf(2) == -1"
  2835. />
  2836. <div class="checkDiv" v-else>
  2837. <img src="../../assets/icon/checkedIs.png" alt /><span
  2838. >已选择</span
  2839. >
  2840. </div>
  2841. </div>
  2842. </div>
  2843. <div class="tool">
  2844. <div class="whiteBIcon" @click="chapAddTools(6)">
  2845. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2846. <div style="margin: 5px 0">协同文档</div>
  2847. </div>
  2848. <div class="check" @click="chapAddTools(6)">
  2849. <img
  2850. src="../../assets/icon/checkNo.png"
  2851. alt
  2852. v-if="itemTools.tools.indexOf(6) == -1"
  2853. />
  2854. <div class="checkDiv" v-else>
  2855. <img src="../../assets/icon/checkedIs.png" alt /><span
  2856. >已选择</span
  2857. >
  2858. </div>
  2859. </div>
  2860. </div>
  2861. <div class="tool">
  2862. <div class="whiteBIcon" @click="chapAddTools(3)">
  2863. <img
  2864. src="../../assets/icon/secondToolList/mindMapping.png"
  2865. alt
  2866. />
  2867. <div style="margin: 5px 0">思维导图</div>
  2868. </div>
  2869. <div class="check" @click="chapAddTools(3)">
  2870. <img
  2871. src="../../assets/icon/checkNo.png"
  2872. alt
  2873. v-if="itemTools.tools.indexOf(3) == -1"
  2874. />
  2875. <div class="checkDiv" v-else>
  2876. <img src="../../assets/icon/checkedIs.png" alt /><span
  2877. >已选择</span
  2878. >
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div class="tool">
  2883. <div class="whiteBIcon" @click="chapAddTools(31)">
  2884. <img
  2885. src="../../assets/icon/secondToolList/networkPanel.png"
  2886. alt
  2887. />
  2888. <div style="margin: 5px 0">数学画板</div>
  2889. </div>
  2890. <div class="check" @click="chapAddTools(31)">
  2891. <img
  2892. src="../../assets/icon/checkNo.png"
  2893. alt
  2894. v-if="itemTools.tools.indexOf(31) == -1"
  2895. />
  2896. <div class="checkDiv" v-else>
  2897. <img src="../../assets/icon/checkedIs.png" alt /><span
  2898. >已选择</span
  2899. >
  2900. </div>
  2901. </div>
  2902. </div>
  2903. </div>
  2904. <div class="toolSort" v-if="chapToolsType == 2">
  2905. <div class="tool">
  2906. <div class="whiteBIcon" @click="chapAddTools(5)">
  2907. <img src="../../assets/icon/thirdToolList/score.png" alt />
  2908. <div style="margin: 5px 0">量规评分</div>
  2909. </div>
  2910. <div class="check" @click="chapAddTools(5)">
  2911. <img
  2912. src="../../assets/icon/checkNo.png"
  2913. alt
  2914. v-if="itemTools.tools.indexOf(5) == -1"
  2915. />
  2916. <div class="checkDiv" v-else>
  2917. <img src="../../assets/icon/checkedIs.png" alt /><span
  2918. >已选择</span
  2919. >
  2920. </div>
  2921. </div>
  2922. </div>
  2923. <div class="tool">
  2924. <div
  2925. class="whiteBIcon"
  2926. @click="openTools(chapCount, 4, null)"
  2927. >
  2928. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2929. <div style="margin: 5px 0">问卷调查</div>
  2930. </div>
  2931. <div class="check" @click="chapAddTools(4)">
  2932. <img
  2933. src="../../assets/icon/checkNo.png"
  2934. alt
  2935. v-if="itemTools.tools.indexOf(4) == -1"
  2936. />
  2937. <div class="checkDiv" v-else>
  2938. <img src="../../assets/icon/checkedIs.png" alt /><span
  2939. >已选择</span
  2940. >
  2941. </div>
  2942. </div>
  2943. </div>
  2944. </div>
  2945. </div>
  2946. <div>
  2947. <input
  2948. type="text"
  2949. placeholder="添加工具描述"
  2950. class="binfo_input"
  2951. style="margin: 20px 0; width: 71.5% !important"
  2952. v-model="itemTools.toolDetail"
  2953. />
  2954. </div>
  2955. </div>
  2956. </div>
  2957. </div>
  2958. <span slot="footer" class="dialog-footer">
  2959. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2960. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2961. </span>
  2962. </el-dialog>
  2963. <el-dialog
  2964. title="添加问答"
  2965. :visible.sync="dialogVisible8"
  2966. :append-to-body="true"
  2967. width="500px"
  2968. :before-close="handleClose"
  2969. class="dialog_diy"
  2970. >
  2971. <div>
  2972. <div
  2973. class="a_add_title"
  2974. style="
  2975. display: flex;
  2976. flex-direction: column;
  2977. align-items: flex-start;
  2978. justify-content: center;
  2979. "
  2980. >
  2981. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2982. <el-input
  2983. v-model="answerQ"
  2984. placeholder="请输入您要问的问题"
  2985. ></el-input>
  2986. </div>
  2987. </div>
  2988. <span slot="footer" class="dialog-footer">
  2989. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2990. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2991. </span>
  2992. </el-dialog>
  2993. <el-dialog
  2994. title="添加问题"
  2995. :visible.sync="dialogVisibleMp3"
  2996. :append-to-body="true"
  2997. width="500px"
  2998. :before-close="handleClose"
  2999. class="dialog_diy"
  3000. >
  3001. <div>
  3002. <div
  3003. class="a_add_title"
  3004. style="
  3005. display: flex;
  3006. flex-direction: column;
  3007. align-items: flex-start;
  3008. justify-content: center;
  3009. "
  3010. >
  3011. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3012. <el-input
  3013. v-model="answerQ"
  3014. placeholder="请输入您想要回答的问题"
  3015. ></el-input>
  3016. </div>
  3017. </div>
  3018. <span slot="footer" class="dialog-footer">
  3019. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3020. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3021. </span>
  3022. </el-dialog>
  3023. <el-dialog
  3024. title="上传图片"
  3025. :visible.sync="choosePicVisible"
  3026. :append-to-body="true"
  3027. width="500px"
  3028. :before-close="handleClose"
  3029. class="dialog_diy"
  3030. >
  3031. <div>
  3032. <div class="fileCss" style="padding-top: 20px">
  3033. <div>
  3034. <button class="info_btn" @click="addImg($event)">
  3035. 选择本地文件
  3036. <input
  3037. type="file"
  3038. accept="image/*"
  3039. style="display: none"
  3040. @change="beforeUpload1"
  3041. />
  3042. </button>
  3043. </div>
  3044. <div>
  3045. <el-button
  3046. @click="getAllBanner"
  3047. v-if="isSysPic == false && cover.length == 0"
  3048. >选择系统文件</el-button
  3049. >
  3050. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3051. <img :src="cover[0].url" alt="" />
  3052. <div class="deletePic" @click="deleteSysPic">
  3053. <img src="../../assets/icon/delete.png" alt="" />
  3054. </div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. <div class="fileCss">
  3059. <div>选择本地文件</div>
  3060. <div>选择系统文件</div>
  3061. </div>
  3062. </div>
  3063. <span slot="footer" class="dialog-footer">
  3064. <el-button @click="choosePicVisible = false">取 消</el-button>
  3065. <el-button type="primary" @click="choosePicVisible = false"
  3066. >确 定</el-button
  3067. >
  3068. </span>
  3069. </el-dialog>
  3070. <el-dialog
  3071. title="选择系统文件"
  3072. :visible.sync="sysPicVisible"
  3073. :append-to-body="true"
  3074. width="700px"
  3075. :before-close="handleClose"
  3076. class="dialog_diy"
  3077. >
  3078. <div class="cru_selectBox" style="margin: 0">
  3079. <div
  3080. @click="getChoosePic(1)"
  3081. class="cru_select"
  3082. :class="chooseType == 1 ? 'cru_selected' : ''"
  3083. >
  3084. 绘画
  3085. </div>
  3086. <div
  3087. @click="getChoosePic(2)"
  3088. class="cru_select"
  3089. :class="chooseType == 2 ? 'cru_selected' : ''"
  3090. >
  3091. 科技
  3092. </div>
  3093. <div
  3094. @click="getChoosePic(3)"
  3095. class="cru_select"
  3096. :class="chooseType == 3 ? 'cru_selected' : ''"
  3097. >
  3098. 人文
  3099. </div>
  3100. <div
  3101. @click="getChoosePic(4)"
  3102. class="cru_select"
  3103. :class="chooseType == 4 ? 'cru_selected' : ''"
  3104. >
  3105. 艺术
  3106. </div>
  3107. </div>
  3108. <div class="sysPicBox">
  3109. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3110. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3111. </div>
  3112. </div>
  3113. <span slot="footer" class="dialog-footer">
  3114. <el-button @click="sysPicVisible = false">取 消</el-button>
  3115. <el-button type="primary">确 定</el-button>
  3116. </span>
  3117. </el-dialog>
  3118. <el-dialog
  3119. title="选择填空"
  3120. :visible.sync="dialogVisibleSelect"
  3121. :append-to-body="true"
  3122. width="800px"
  3123. :before-close="handleClose"
  3124. class="dialog_diy dialog_diy3"
  3125. >
  3126. <div v-if="selectJson">
  3127. <div class="select_box1" v-if="selectSteps == 1">
  3128. <div class="select_box1_img">
  3129. <div class="select_box1_title">
  3130. <span>上传题目图片</span
  3131. ><span>提示:请将题目以图片的方式上传</span>
  3132. </div>
  3133. <div class="select_box1_add_img">
  3134. <div
  3135. class="uploadFm"
  3136. @click="addImg($event)"
  3137. v-if="!selectJson.url"
  3138. >
  3139. <input
  3140. type="file"
  3141. accept="image/*"
  3142. style="display: none"
  3143. @change="beforeUploadSelect"
  3144. />
  3145. <img src="../../assets/icon/addPoster.png" alt="" />
  3146. </div>
  3147. <div class="isSysPic" v-else>
  3148. <img :src="selectJson.url" alt="" />
  3149. <div class="deletePic" @click="deleteSelectPic">
  3150. <img src="../../assets/icon/delete.png" alt="" />
  3151. </div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. <div class="select_box1_select">
  3156. <div class="select_box1_title">
  3157. <span>添加选项</span><span>提示:请输入题目选项</span>
  3158. </div>
  3159. <div class="select_box1_select_box">
  3160. <el-input
  3161. v-for="(item2, checkIndex) in selectJson.select"
  3162. :key="checkIndex"
  3163. v-model="selectJson.select[checkIndex]"
  3164. placeholder="请输入选项..."
  3165. style="width: 150px; margin: 10px 10px 0 0"
  3166. ></el-input>
  3167. <div class="select_box1_select_box_add">
  3168. <el-button
  3169. style="margin: 10px 0px 0 0"
  3170. type="primary"
  3171. size="small"
  3172. @click="addSelectList(selectJson)"
  3173. >
  3174. 添加</el-button
  3175. >
  3176. <el-button
  3177. type="primary"
  3178. size="small"
  3179. style="margin: 10px 0 0 0"
  3180. @click="deleteSelectList(selectJson)"
  3181. v-if="selectJson.select && selectJson.select.length > 0"
  3182. >删除</el-button
  3183. >
  3184. </div>
  3185. </div>
  3186. </div>
  3187. </div>
  3188. <div v-if="selectSteps == 2">
  3189. <div class="select_box2">
  3190. <div class="select_box2_title">设置答案</div>
  3191. <div class="select_box2_box">
  3192. <div class="select_box2_img">
  3193. <img :src="selectJson.url" alt="" />
  3194. </div>
  3195. <div class="select_box2_answer">
  3196. <div class="select_answer_title">根据题目选择对应答案</div>
  3197. <div
  3198. class="select_box2_answer_box"
  3199. v-for="(item2, checkIndex) in selectJson.select"
  3200. :key="checkIndex"
  3201. >
  3202. <span>{{ checkIndex + 1 }}、</span>
  3203. <el-select
  3204. v-model="selectJson.answer[checkIndex]"
  3205. placeholder="请选择正确答案"
  3206. >
  3207. <el-option
  3208. v-for="(e, eIndex) in selectJson.select"
  3209. :key="eIndex"
  3210. :label="e"
  3211. :value="eIndex"
  3212. >
  3213. </el-option>
  3214. </el-select>
  3215. </div>
  3216. </div>
  3217. </div>
  3218. </div>
  3219. </div>
  3220. </div>
  3221. <span slot="footer" class="dialog-footer">
  3222. <el-button
  3223. type="primary"
  3224. @click="nextSelectSteps()"
  3225. v-if="selectSteps == 1"
  3226. >下一步</el-button
  3227. >
  3228. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  3229. >上一步</el-button
  3230. >
  3231. <el-button
  3232. type="primary"
  3233. @click="addSelectAnswer"
  3234. v-if="selectSteps == 2"
  3235. >确 定</el-button
  3236. >
  3237. </span>
  3238. </el-dialog>
  3239. <el-dialog
  3240. title="添加评价"
  3241. :visible.sync="dialogVisibleRate"
  3242. :append-to-body="true"
  3243. width="650px"
  3244. :before-close="handleClose"
  3245. class="dialog_diy"
  3246. >
  3247. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3248. <div style="font-size: 18px; color: #a9a9a9">请输入学生评价指标:</div>
  3249. <div class="pjCss" style="width: 100%">
  3250. <div
  3251. v-if="rateJson.length"
  3252. class="elist_input"
  3253. style="height: 360px; overflow: auto"
  3254. >
  3255. <div
  3256. v-for="(eItem, eIndex) in rateJson"
  3257. :key="eIndex"
  3258. class="elist_input_box"
  3259. >
  3260. <span style="min-width: 100px; text-align: right"
  3261. >学生评价指标:</span
  3262. >
  3263. <input
  3264. type="input"
  3265. v-model="eItem.value"
  3266. placeholder="填写评价名称"
  3267. />
  3268. <div class="remove" @click="deletRateList(eIndex)"></div>
  3269. <div style="width: 100%; display: flex">
  3270. <span style="min-width: 100px; text-align: right"
  3271. >评星等级:</span
  3272. >
  3273. <el-rate v-model="eItem.score" disabled></el-rate>
  3274. </div>
  3275. <div class="elist_inptu_text" style="align-items: flex-start">
  3276. <span style="min-width: 100px; text-align: right">描述:</span>
  3277. <textarea
  3278. class="rate_textarea"
  3279. :rows="3"
  3280. v-model="eItem.detail"
  3281. placeholder="填写评价描述"
  3282. ></textarea>
  3283. </div>
  3284. </div>
  3285. </div>
  3286. <div class="addToolFun" @click="addRateList()">
  3287. <div class="addToolImg">
  3288. <img src="../../assets/icon/add.png" alt />
  3289. </div>
  3290. <div>添加</div>
  3291. </div>
  3292. </div>
  3293. </div>
  3294. <span slot="footer" class="dialog-footer">
  3295. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3296. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3297. </span>
  3298. </el-dialog>
  3299. <el-dialog
  3300. title="连词成句设置"
  3301. :visible.sync="dialogVisibleSentence"
  3302. :append-to-body="true"
  3303. width="1000px"
  3304. :before-close="handleClose"
  3305. class="dialog_diy dialog_diy3"
  3306. >
  3307. <div>
  3308. <div class="sentenBox">
  3309. <div class="addSen" @click="addSt">添加题目</div>
  3310. <div
  3311. v-for="(st, stIndex) in sentenceList"
  3312. :key="stIndex"
  3313. style="padding-bottom: 20px"
  3314. >
  3315. <div class="sentenTopBox">
  3316. <div class="sentenTop">
  3317. <div>题目设置</div>
  3318. <div>
  3319. <el-input
  3320. placeholder="请输入卡片内容"
  3321. v-model="st.sentenceTitle"
  3322. ></el-input>
  3323. </div>
  3324. <div @click="addSen(stIndex)">添加</div>
  3325. </div>
  3326. <div
  3327. class="remove1"
  3328. v-if="sentenceList.length > 1"
  3329. @click="deleteSentence(stIndex)"
  3330. ></div>
  3331. </div>
  3332. <div class="cardList">
  3333. <div v-if="st.addSentence.length > 0" class="cardBox">
  3334. <div
  3335. class="isCard"
  3336. v-for="(s, sIndex) in st.addSentence"
  3337. :key="sIndex"
  3338. @click="setRightAnswer(s, stIndex, sIndex)"
  3339. >
  3340. <el-tooltip
  3341. class="item"
  3342. effect="light"
  3343. :content="s"
  3344. placement="top"
  3345. >
  3346. <div>{{ s }}</div>
  3347. </el-tooltip>
  3348. <div
  3349. class="deleteWord"
  3350. @click.stop="deleteS(s, stIndex, sIndex)"
  3351. >
  3352. <img src="../../assets/icon/delete.png" alt="" />
  3353. </div>
  3354. </div>
  3355. </div>
  3356. <div class="card">
  3357. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3358. </div>
  3359. </div>
  3360. <div class="rightCardBox">
  3361. <div>正确顺序</div>
  3362. <div class="rightCardList">
  3363. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3364. <div
  3365. v-for="(r, rIndex) in st.rightAnswer"
  3366. :key="rIndex"
  3367. class="cardCss"
  3368. >
  3369. <div
  3370. class="isCard1"
  3371. @click="returnCard(r, stIndex, rIndex)"
  3372. >
  3373. <el-tooltip
  3374. class="item"
  3375. effect="light"
  3376. :content="r"
  3377. placement="top"
  3378. >
  3379. <div>{{ r }}</div>
  3380. </el-tooltip>
  3381. </div>
  3382. <div>{{ rIndex + 1 }}</div>
  3383. </div>
  3384. </div>
  3385. <div class="card" v-if="st.rightAnswer.length == 0">
  3386. <img
  3387. src="../../assets/icon/conSentences/noAnswer.png"
  3388. alt=""
  3389. />
  3390. </div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. </div>
  3396. <span slot="footer" class="dialog-footer">
  3397. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3398. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3399. </span>
  3400. </el-dialog>
  3401. <el-dialog
  3402. title="添加表格"
  3403. :visible.sync="dialogVisibleTable"
  3404. :append-to-body="true"
  3405. width="95%"
  3406. :before-close="handleClose"
  3407. class="dialog_diy"
  3408. >
  3409. <el-form>
  3410. <!-- <el-form-item label="文本标题">
  3411. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3412. </el-form-item> -->
  3413. <div>表格内容</div>
  3414. <Table v-model="tableJson.text" @change="change"></Table>
  3415. </el-form>
  3416. <span slot="footer" class="dialog-footer">
  3417. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3418. <el-button type="primary" @click="addTableJson">确定</el-button>
  3419. </span>
  3420. </el-dialog>
  3421. </div>
  3422. </template>
  3423. <script>
  3424. import "../../common/aws-sdk-2.235.1.min.js";
  3425. import $ from "jquery";
  3426. import EditorBar from "../../components/tools/wangEnduit";
  3427. import Table from "../../components/tools/table";
  3428. import Mind from "../tools/jsmind2";
  3429. import Sunburst from "../tools/sunburst";
  3430. import SeeBoard from "../tools/seeBoard";
  3431. export default {
  3432. components: { EditorBar, Mind, Sunburst, SeeBoard, Table },
  3433. data() {
  3434. return {
  3435. checkAll: false,
  3436. chooseType: 1,
  3437. checkedCities: [],
  3438. isIndeterminate: true,
  3439. isSysPic: false,
  3440. steps: 1,
  3441. nbOrder: 0,
  3442. courseId: "",
  3443. chapToolsType: 0,
  3444. chapTools: [
  3445. {
  3446. tools: [],
  3447. toolDetail: "",
  3448. },
  3449. ],
  3450. line: "",
  3451. lineTitle: "",
  3452. sysPic: [],
  3453. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3454. isPushTitleList: [],
  3455. lineCount: 0,
  3456. lineType: 0,
  3457. chapCount: 0,
  3458. courseName: "",
  3459. isTeacherSee: true,
  3460. courseText: "",
  3461. formLabelWidth: "100px",
  3462. choosePicVisible: false,
  3463. sysPicVisible: false,
  3464. uploadLoading1: false,
  3465. noneBtnImg: false,
  3466. updateBoolean2: false,
  3467. unitIndex: 0,
  3468. taskCount: 0,
  3469. dialogVisible: false,
  3470. dialogVisible1: false,
  3471. dialogVisible2: false,
  3472. dialogVisible3: false,
  3473. dialogVisible4: false,
  3474. dialogVisible5: false,
  3475. dialogVisible6: false,
  3476. dialogVisible7: false,
  3477. dialogVisible8: false,
  3478. dialogVisible9: false,
  3479. dialogVisibleClass: false,
  3480. dialogVisibleMember: false,
  3481. dialogVisibleMp3: false,
  3482. dialogVisibleSelect: false,
  3483. dialogVisibleSentence: false,
  3484. dialogVisibleRate: false,
  3485. dialogVisibleChoice: false,
  3486. isClickColor: 0,
  3487. publicTool: 0,
  3488. searchPeople: "",
  3489. searchTN: "",
  3490. userid: this.$route.query.userid,
  3491. oid: this.$route.query.oid,
  3492. org: this.$route.query.org,
  3493. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3494. dialogVisibleTable: false,
  3495. tableJson: { text: "" },
  3496. cover: [], //项目封面
  3497. myWord: [],
  3498. evaJuri: [],
  3499. evalua: "",
  3500. targetArray: [],
  3501. eTitle: "",
  3502. eJson: {},
  3503. fid: "", //一级
  3504. sid: "", //二级
  3505. tid: "", //二级
  3506. typeMode: 1,
  3507. eJSONNum: 0,
  3508. data: {
  3509. meta: {
  3510. name: "example",
  3511. author: "dd@163.com",
  3512. version: "0.2",
  3513. },
  3514. format: "node_array",
  3515. data: [{ id: "root", isroot: true, topic: "" }],
  3516. },
  3517. askJson: {
  3518. askCount: 1,
  3519. askTitle: "",
  3520. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3521. },
  3522. testJson: {},
  3523. selectJson: {},
  3524. rateJson: [],
  3525. unitJson2: [],
  3526. unitJson: [
  3527. {
  3528. dyName: "", //单元标题
  3529. chapterInfo: [
  3530. {
  3531. isread: false,
  3532. chapterid: this.guid(),
  3533. title: "",
  3534. courseName: "",
  3535. taskJson: [
  3536. {
  3537. task: "",
  3538. taskDetail: "",
  3539. chapterData: [],
  3540. toolText: "",
  3541. toolChoose: [
  3542. {
  3543. tool: [],
  3544. toolDetail: "",
  3545. toolType: 0,
  3546. askCount: 1,
  3547. askTitle: "",
  3548. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3549. },
  3550. ],
  3551. isShowTools: false,
  3552. askCount: 1,
  3553. isFold: 0,
  3554. askTitle: "",
  3555. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3556. checkJson: [{ checkCount: [], checkPerent: [] }],
  3557. homeworkList: [],
  3558. },
  3559. ],
  3560. itemCount: 1,
  3561. fileList1: [],
  3562. video: [],
  3563. testData: [],
  3564. pData: [],
  3565. templateArray: [],
  3566. },
  3567. ],
  3568. },
  3569. ],
  3570. studentJuri: [],
  3571. teacherJuri: [],
  3572. checkboxList: [],
  3573. checkboxList2: [],
  3574. checkboxList3: [],
  3575. number: "",
  3576. tTitle: "",
  3577. tdetail: "",
  3578. templateC: {},
  3579. AttText: {},
  3580. AttTextType: 0,
  3581. AttTextIndex: 0,
  3582. cTemplate: "",
  3583. CourseType: [],
  3584. CourseTypeJson: {},
  3585. courseTypeId: [],
  3586. courseTypeSon: [],
  3587. clearArray: [],
  3588. loading: false,
  3589. toolType: 0,
  3590. inputShow: true,
  3591. toolIndex: 0,
  3592. cidType: 0,
  3593. answerQ: "",
  3594. grade: [],
  3595. courseUserid: "",
  3596. timer: null,
  3597. checkId: "",
  3598. isDelete: 1,
  3599. addindex: 0,
  3600. selectSteps: 1,
  3601. };
  3602. },
  3603. computed: {
  3604. rightBoxHeight: function () {
  3605. return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 100;
  3606. },
  3607. offsetLetfPx: function () {
  3608. //addnum可以直接在模板语法里面用,相当于data内的值
  3609. return (
  3610. $(".cru_select")[this.unitIndex] &&
  3611. $(".cru_select")[this.unitIndex].offsetLeft
  3612. );
  3613. },
  3614. },
  3615. watch: {
  3616. unitIndex(newValue, oldValue) {
  3617. if (this.isDelete == 2) {
  3618. this.isDelete = 1;
  3619. return;
  3620. }
  3621. if (this.cid != "") {
  3622. let _unitIndex = oldValue;
  3623. if (
  3624. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3625. JSON.stringify(this.unitJson[_unitIndex])
  3626. ) {
  3627. this.$refs.rightboxR.scrollTop = 0;
  3628. return;
  3629. }
  3630. let cPan = 1;
  3631. for (
  3632. var j = 0;
  3633. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3634. j++
  3635. ) {
  3636. if (
  3637. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3638. .length > 1
  3639. ) {
  3640. for (
  3641. var z = 0;
  3642. z <
  3643. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3644. .length;
  3645. z++
  3646. ) {
  3647. if (
  3648. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3649. .toolChoose[z].tool.length
  3650. ) {
  3651. this.$message.error("请把工具添加完整");
  3652. cPan = 2;
  3653. break;
  3654. }
  3655. }
  3656. }
  3657. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3658. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3659. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3660. (ele) => {
  3661. return ele.value != "";
  3662. }
  3663. );
  3664. }
  3665. }
  3666. if (cPan == 2) {
  3667. this.unitIndex = oldValue;
  3668. return;
  3669. }
  3670. for (var i = 0; i < this.unitJson.length; i++) {
  3671. if (this.addindex != i) {
  3672. delete this.unitJson[i].isUpdate;
  3673. }
  3674. }
  3675. this.$refs.rightboxR.scrollTop = 0;
  3676. this.addindex = -1;
  3677. let params = [
  3678. {
  3679. cid: this.cid,
  3680. chapters: JSON.stringify(this.unitJson),
  3681. uid: this.userid,
  3682. unitIndex: _unitIndex,
  3683. },
  3684. ];
  3685. this.ajax
  3686. .post(this.$store.state.api + "updateWorkNew4", params)
  3687. .then((res) => {
  3688. // this.$message({
  3689. // message: "修改成功",
  3690. // type: "success",
  3691. // });
  3692. // this.courseId = this.cid;
  3693. })
  3694. .catch((err) => {
  3695. this.$message.error("网络不佳");
  3696. console.error(err);
  3697. });
  3698. }
  3699. },
  3700. },
  3701. methods: {
  3702. handleCheckAllChange(val) {
  3703. this.checkedCities = val ? cityOptions : [];
  3704. this.isIndeterminate = false;
  3705. },
  3706. handleCheckedCitiesChange(value) {
  3707. let checkedCount = value.length;
  3708. this.checkAll = checkedCount === this.cities.length;
  3709. this.isIndeterminate =
  3710. checkedCount > 0 && checkedCount < this.cities.length;
  3711. },
  3712. addHw(e) {
  3713. var el = e.currentTarget;
  3714. el.getElementsByTagName("input")[0].click();
  3715. },
  3716. change(val) {
  3717. console.log(val);
  3718. },
  3719. change2(val) {
  3720. console.log(val);
  3721. this.$forceUpdate();
  3722. },
  3723. handleClose(done) {
  3724. done();
  3725. },
  3726. imgChange1(file, fileList, type, itemTaskIndex) {
  3727. if (type == 1) {
  3728. var _tmp = this.cover;
  3729. } else if (
  3730. type == 2 ||
  3731. type == 3 ||
  3732. type == 6 ||
  3733. type == 7 ||
  3734. type == 8
  3735. ) {
  3736. var _tmp =
  3737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3738. .chapterData;
  3739. } else if (type == 4) {
  3740. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3741. } else {
  3742. var _tmp =
  3743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3744. .homeworkList;
  3745. }
  3746. this.noneBtnImg = _tmp.length >= 1;
  3747. },
  3748. goTo(path) {
  3749. this.$router.push(path);
  3750. },
  3751. guid() {
  3752. var _num,
  3753. i,
  3754. _guid = "";
  3755. for (i = 0; i < 32; i++) {
  3756. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3757. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3758. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3759. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3760. _guid += "-";
  3761. }
  3762. }
  3763. return _guid;
  3764. },
  3765. lastSteps() {
  3766. if (this.steps == 4) {
  3767. this.goTo(
  3768. "/course?userid=" +
  3769. this.userid +
  3770. "&oid=" +
  3771. this.oid +
  3772. "&org=" +
  3773. this.org
  3774. );
  3775. } else {
  3776. if (this.cidType == 0) {
  3777. this.steps--;
  3778. if (this.steps == 1) {
  3779. setTimeout(() => {
  3780. this.checkEva(this.checkId);
  3781. }, 0);
  3782. }
  3783. } else {
  3784. if (this.steps == 3) {
  3785. this.steps = 1;
  3786. setTimeout(() => {
  3787. this.checkEva(this.checkId);
  3788. }, 0);
  3789. }
  3790. }
  3791. }
  3792. },
  3793. navSteps(s) {
  3794. if (this.courseName == "") {
  3795. this.$message.error("请将信息填写完整");
  3796. return;
  3797. }
  3798. if (this.cidType == 0) {
  3799. if (this.steps == 1) {
  3800. if (this.cid == "" || this.cid == undefined) {
  3801. this.addWork();
  3802. } else {
  3803. if (this.userid != this.courseUserid) {
  3804. // this.updateWork2();
  3805. } else {
  3806. this.updateWork();
  3807. }
  3808. }
  3809. }
  3810. if (s == 1) {
  3811. this.steps = 1;
  3812. setTimeout(() => {
  3813. this.checkEva(this.checkId);
  3814. }, 0);
  3815. }
  3816. if (s == 2) {
  3817. this.steps = 2;
  3818. }
  3819. if (s == 3) {
  3820. this.cTemplate = this.templateC.content;
  3821. this.dialogVisible2 = false;
  3822. this.steps = 3;
  3823. setTimeout(() => {
  3824. this.checkEva(this.checkId);
  3825. }, 1000);
  3826. }
  3827. } else {
  3828. if (this.steps == 1) {
  3829. if (this.cid == "" || this.cid == undefined) {
  3830. this.addWork();
  3831. } else {
  3832. if (this.userid != this.courseUserid) {
  3833. // this.updateWork2();
  3834. } else {
  3835. this.updateWork();
  3836. }
  3837. }
  3838. }
  3839. if (s == 1) {
  3840. this.steps = 1;
  3841. setTimeout(() => {
  3842. this.checkEva(this.checkId);
  3843. }, 0);
  3844. }
  3845. if (s == 3) {
  3846. this.cTemplate = this.templateC.content;
  3847. this.dialogVisible2 = false;
  3848. this.steps = 3;
  3849. setTimeout(() => {
  3850. this.checkEva(this.checkId);
  3851. }, 1000);
  3852. }
  3853. }
  3854. this.$refs.stepBox.scrollTop = 0;
  3855. },
  3856. nextSteps() {
  3857. if (this.cidType == 1) {
  3858. if (this.steps == 1) {
  3859. if (this.courseName != "") {
  3860. this.steps = 3;
  3861. setTimeout(() => {
  3862. this.checkEva(this.checkId);
  3863. }, 1000);
  3864. if (this.cid == "" || this.cid == undefined) {
  3865. this.addWork();
  3866. } else {
  3867. if (this.userid != this.courseUserid) {
  3868. // this.updateWork2();
  3869. } else {
  3870. this.updateWork();
  3871. }
  3872. }
  3873. } else {
  3874. this.$message.error("请将信息填写完整");
  3875. return;
  3876. }
  3877. } else if (this.steps == 3) {
  3878. if (this.cid == "" || this.cid == undefined) {
  3879. if (this.courseName == "") {
  3880. this.$message.error("请将信息填写完整");
  3881. return;
  3882. } else {
  3883. this.addWork();
  3884. this.steps++;
  3885. }
  3886. } else {
  3887. if (this.courseName == "") {
  3888. this.$message.error("请将信息填写完整");
  3889. return;
  3890. } else {
  3891. if (this.userid != this.courseUserid) {
  3892. this.updateWork2();
  3893. } else {
  3894. this.updateWork();
  3895. }
  3896. this.steps++;
  3897. }
  3898. }
  3899. }
  3900. } else {
  3901. if (this.steps == 1) {
  3902. if (this.courseName != "") {
  3903. if (this.cid == "" || this.cid == undefined) {
  3904. this.addWork();
  3905. } else {
  3906. if (this.userid != this.courseUserid) {
  3907. // this.updateWork2();
  3908. } else {
  3909. this.updateWork();
  3910. }
  3911. }
  3912. this.steps++;
  3913. } else {
  3914. this.$message.error("请将信息填写完整");
  3915. return;
  3916. }
  3917. } else if (this.steps == 2) {
  3918. if (this.templateC.id != "" || this.templateC.id != undefined) {
  3919. this.cTemplate = this.templateC.content;
  3920. }
  3921. this.dialogVisible2 = false;
  3922. this.steps++;
  3923. setTimeout(() => {
  3924. this.checkEva(this.checkId);
  3925. }, 1000);
  3926. } else if (this.steps == 3) {
  3927. if (this.cid == "" || this.cid == undefined) {
  3928. if (this.courseName == "") {
  3929. this.$message.error("请将信息填写完整");
  3930. return;
  3931. } else {
  3932. this.addWork();
  3933. this.steps++;
  3934. }
  3935. } else {
  3936. if (this.courseName == "") {
  3937. this.$message.error("请将信息填写完整");
  3938. return;
  3939. } else {
  3940. if (this.userid != this.courseUserid) {
  3941. this.updateWork2();
  3942. } else {
  3943. this.updateWork();
  3944. }
  3945. this.steps++;
  3946. }
  3947. }
  3948. }
  3949. }
  3950. this.$refs.stepBox.scrollTop = 0;
  3951. },
  3952. unitSet(i) {
  3953. this.unitIndex = i;
  3954. // this.$refs.rightboxR.scrollTop = 0;
  3955. },
  3956. time() {
  3957. if (!this.now) {
  3958. this.now = new Date().getTime();
  3959. return true;
  3960. } else {
  3961. let time = new Date().getTime();
  3962. if (time - this.now > 3000) {
  3963. this.now = time;
  3964. return true;
  3965. } else {
  3966. return false;
  3967. }
  3968. }
  3969. },
  3970. deleteUnit(i) {
  3971. var _this = this;
  3972. if (_this.time()) {
  3973. _this
  3974. .$confirm("确定删除此单元吗?", "提示", {
  3975. confirmButtonText: "确定",
  3976. cancelButtonText: "取消",
  3977. type: "warning",
  3978. })
  3979. .then(() => {
  3980. _this.isDelete = 2;
  3981. // _this.unitIndex = _this.unitIndex - 1;
  3982. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3983. // _this.$message.success("删除成功");
  3984. })
  3985. .catch(() => {
  3986. return;
  3987. });
  3988. }
  3989. },
  3990. deleteWork(chapid) {
  3991. let params = [
  3992. {
  3993. cid: this.cid,
  3994. chapters: JSON.stringify(this.unitJson),
  3995. uid: this.userid,
  3996. chapid: chapid,
  3997. },
  3998. ];
  3999. this.ajax
  4000. .post(this.$store.state.api + "deleteWork", params)
  4001. .then((res) => {
  4002. this.$message({
  4003. message: "删除成功",
  4004. type: "success",
  4005. });
  4006. this.unitJson.splice(this.unitIndex, 1);
  4007. this.unitIndex = this.unitIndex - 1;
  4008. })
  4009. .catch((err) => {
  4010. this.$message.error("网络不佳");
  4011. console.error(err);
  4012. });
  4013. },
  4014. deleteTool(itemTaskIndex, i) {
  4015. var _this = this;
  4016. if (_this.time()) {
  4017. _this
  4018. .$confirm("确定删除此工具吗?", "提示", {
  4019. confirmButtonText: "确定",
  4020. cancelButtonText: "取消",
  4021. type: "warning",
  4022. })
  4023. .then(() => {
  4024. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4025. itemTaskIndex
  4026. ].toolChoose.splice(i, 1);
  4027. _this.$message.success("删除成功");
  4028. })
  4029. .catch(() => {
  4030. return;
  4031. });
  4032. }
  4033. },
  4034. deleteSentence(i) {
  4035. var _this = this;
  4036. if (_this.time()) {
  4037. _this
  4038. .$confirm("确定删除此题目吗?", "提示", {
  4039. confirmButtonText: "确定",
  4040. cancelButtonText: "取消",
  4041. type: "warning",
  4042. })
  4043. .then(() => {
  4044. _this.sentenceList.splice(i, 1);
  4045. _this.$message.success("删除成功");
  4046. })
  4047. .catch(() => {
  4048. return;
  4049. });
  4050. }
  4051. },
  4052. deleteS(s, i, j) {
  4053. this.sentenceList[i].addSentence.splice(j, 1);
  4054. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4055. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4056. this.sentenceList[i].rightAnswer.splice(a, 1);
  4057. }
  4058. },
  4059. openT() {
  4060. window.parent.postMessage({ tools: "25" }, "*");
  4061. },
  4062. deleteTask(i) {
  4063. var _this = this;
  4064. if (_this.time()) {
  4065. _this
  4066. .$confirm("确定删除此任务吗?", "提示", {
  4067. confirmButtonText: "确定",
  4068. cancelButtonText: "取消",
  4069. type: "warning",
  4070. })
  4071. .then(() => {
  4072. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  4073. i,
  4074. 1
  4075. );
  4076. _this.$message.success("删除成功");
  4077. })
  4078. .catch(() => {
  4079. return;
  4080. });
  4081. }
  4082. },
  4083. handlePictureCardPreview(file) {
  4084. this.dialogImageUrl = file.url;
  4085. },
  4086. clean(i, c) {
  4087. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4088. },
  4089. handle_remove1(file, fileList, type) {
  4090. var _tmp = this.cover;
  4091. for (var i = 0, len = _tmp.length; i < len; i++) {
  4092. if (_tmp[i].uid == file.uid) {
  4093. _tmp.splice(i, 1);
  4094. break;
  4095. }
  4096. this.cover = _tmp;
  4097. }
  4098. this.noneBtnImg = _tmp.length >= 1;
  4099. this.isSysPic = false;
  4100. },
  4101. addImg(e) {
  4102. var el = e.currentTarget;
  4103. el.getElementsByTagName("input")[0].click();
  4104. },
  4105. addChaptersTools(i) {
  4106. this.chapTools = [
  4107. {
  4108. tools: [],
  4109. toolDetail: "",
  4110. },
  4111. ];
  4112. this.chapCount = i;
  4113. this.dialogVisible4 = true;
  4114. },
  4115. isNoFinsh() {
  4116. this.$message.warning("功能正在开发中");
  4117. },
  4118. addAttText(i) {
  4119. this.AttText = {
  4120. title: "",
  4121. text: "",
  4122. };
  4123. this.taskCount = i;
  4124. this.AttTextType = 0;
  4125. this.$forceUpdate();
  4126. this.dialogVisible6 = true;
  4127. },
  4128. openLine(i) {
  4129. this.line = "";
  4130. this.lineCount = i;
  4131. this.lineType = 0;
  4132. this.$forceUpdate();
  4133. this.dialogVisible7 = true;
  4134. },
  4135. beforeUpload1(event, type) {
  4136. const loading = this.openLoading();
  4137. var file = event.target.files[0];
  4138. var credentials = {
  4139. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4140. secretAccessKey: "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",
  4141. }; //秘钥形式的登录上传
  4142. window.AWS.config.update(credentials);
  4143. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4144. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4145. var _this = this;
  4146. if (file) {
  4147. var params = {
  4148. Key:
  4149. file.name.split(".")[0] +
  4150. new Date().getTime() +
  4151. "." +
  4152. file.name.split(".")[file.name.split(".").length - 1],
  4153. ContentType: file.type,
  4154. Body: file,
  4155. "Access-Control-Allow-Credentials": "*",
  4156. ACL: "public-read",
  4157. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4158. var options = {
  4159. partSize: 2048 * 1024 * 1024,
  4160. queueSize: 2,
  4161. leavePartsOnError: true,
  4162. };
  4163. bucket
  4164. .upload(params, options)
  4165. .on("httpUploadProgress", function (evt) {
  4166. //这里可以写进度条
  4167. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4168. })
  4169. .send(function (err, data) {
  4170. loading.close();
  4171. if (err) {
  4172. var a = _this.$refs.upload1.uploadFiles;
  4173. a.splice(a.length - 1, a.length);
  4174. _this.$message.error("上传失败");
  4175. } else {
  4176. _this.cover.push({
  4177. name: file.name,
  4178. url: data.Location,
  4179. uid: file.uid,
  4180. });
  4181. _this.imgChange1(null, null, 1, null);
  4182. _this.choosePicVisible = false;
  4183. console.log(data.Location);
  4184. }
  4185. });
  4186. }
  4187. },
  4188. beforeUploadSelect(event, type) {
  4189. const loading = this.openLoading();
  4190. var file = event.target.files[0];
  4191. var credentials = {
  4192. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4193. secretAccessKey: "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",
  4194. }; //秘钥形式的登录上传
  4195. window.AWS.config.update(credentials);
  4196. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4197. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4198. var _this = this;
  4199. if (file) {
  4200. var params = {
  4201. Key:
  4202. file.name.split(".")[0] +
  4203. new Date().getTime() +
  4204. "." +
  4205. file.name.split(".")[file.name.split(".").length - 1],
  4206. ContentType: file.type,
  4207. Body: file,
  4208. "Access-Control-Allow-Credentials": "*",
  4209. ACL: "public-read",
  4210. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4211. var options = {
  4212. partSize: 2048 * 1024 * 1024,
  4213. queueSize: 2,
  4214. leavePartsOnError: true,
  4215. };
  4216. bucket
  4217. .upload(params, options)
  4218. .on("httpUploadProgress", function (evt) {
  4219. //这里可以写进度条
  4220. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4221. })
  4222. .send(function (err, data) {
  4223. loading.close();
  4224. if (err) {
  4225. _this.$message.error("上传失败");
  4226. } else {
  4227. _this.selectJson.url = data.Location;
  4228. console.log(data.Location);
  4229. }
  4230. });
  4231. }
  4232. },
  4233. chooseSysPic(p) {
  4234. this.cover.push({
  4235. name: "系统图片.png",
  4236. url: p,
  4237. });
  4238. this.imgChange1(null, null, 1, null);
  4239. this.isSysPic = true;
  4240. this.sysPicVisible = false;
  4241. },
  4242. beforeUpload(data) {
  4243. this.$refs.upload1.uploadFiles;
  4244. this.uploadLoading1 = true;
  4245. var file = data.file;
  4246. var credentials = {
  4247. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4248. secretAccessKey: "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",
  4249. }; //秘钥形式的登录上传
  4250. window.AWS.config.update(credentials);
  4251. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4252. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4253. var _this = this;
  4254. if (file) {
  4255. var params = {
  4256. Key:
  4257. file.name.split(".")[0] +
  4258. new Date().getTime() +
  4259. "." +
  4260. file.name.split(".")[file.name.split(".").length - 1],
  4261. ContentType: file.type,
  4262. Body: file,
  4263. "Access-Control-Allow-Credentials": "*",
  4264. ACL: "public-read",
  4265. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4266. var options = {
  4267. partSize: 2048 * 1024 * 1024,
  4268. queueSize: 2,
  4269. leavePartsOnError: true,
  4270. };
  4271. bucket
  4272. .upload(params, options)
  4273. .on("httpUploadProgress", function (evt) {
  4274. //这里可以写进度条
  4275. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4276. })
  4277. .send(function (err, data) {
  4278. _this.uploadLoading1 = false;
  4279. if (err) {
  4280. var a = _this.$refs.upload1.uploadFiles;
  4281. a.splice(a.length - 1, a.length);
  4282. _this.$message.error("上传失败");
  4283. } else {
  4284. //上传成功处理
  4285. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4286. name: file.name,
  4287. url: data.Location,
  4288. uid: file.uid,
  4289. });
  4290. _this.imgChange();
  4291. console.log(data.Location);
  4292. }
  4293. });
  4294. }
  4295. },
  4296. onExceed() {
  4297. this.$message.error("项目封面仅支持上传一张,请删除后再进行上传");
  4298. },
  4299. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4300. // const loading = this.openLoading();
  4301. var file = event.target.files[0];
  4302. this.inputShow = false;
  4303. var credentials = {
  4304. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4305. secretAccessKey: "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",
  4306. }; //秘钥形式的登录上传
  4307. window.AWS.config.update(credentials);
  4308. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4309. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4310. var _this = this;
  4311. if (type == 3) {
  4312. var b = [
  4313. "DOC",
  4314. "DOCX",
  4315. "DOCM",
  4316. "DOTM",
  4317. "DOTX",
  4318. "PPTX",
  4319. "PPSX",
  4320. "PPT",
  4321. "PPS",
  4322. "PPTM",
  4323. "POTM",
  4324. "PPAM",
  4325. "POTX",
  4326. "PPSM",
  4327. ];
  4328. if (
  4329. b.indexOf(
  4330. file.name
  4331. .split(".")
  4332. [file.name.split(".").length - 1].toLocaleUpperCase()
  4333. ) != -1
  4334. ) {
  4335. if (file.size / 1024 / 1024 > 10) {
  4336. this.$message.error("上传文件大于10兆,请重新选择文件!");
  4337. this.inputShow = true;
  4338. var a = _this.$refs.upload1.uploadFiles;
  4339. a.splice(a.length - 1, a.length);
  4340. // loading.close();
  4341. return;
  4342. }
  4343. } else if (
  4344. file.name
  4345. .split(".")
  4346. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4347. ) {
  4348. if (file.size / 1024 / 1024 > 5) {
  4349. this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  4350. this.inputShow = true;
  4351. var a = _this.$refs.upload1.uploadFiles;
  4352. a.splice(a.length - 1, a.length);
  4353. // loading.close();
  4354. return;
  4355. }
  4356. }
  4357. }
  4358. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4359. itemTaskIndex
  4360. ].progress = 0;
  4361. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4362. itemTaskIndex
  4363. ].proVisible = true;
  4364. if (file) {
  4365. var params = {
  4366. Key:
  4367. file.name.split(".")[0] +
  4368. new Date().getTime() +
  4369. "." +
  4370. file.name.split(".")[file.name.split(".").length - 1],
  4371. ContentType: file.type,
  4372. Body: file,
  4373. "Access-Control-Allow-Credentials": "*",
  4374. ACL: "public-read",
  4375. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4376. var options = {
  4377. partSize: 2048 * 1024 * 1024,
  4378. queueSize: 2,
  4379. leavePartsOnError: true,
  4380. };
  4381. bucket
  4382. .upload(params, options)
  4383. .on("httpUploadProgress", function (evt) {
  4384. //这里可以写进度条
  4385. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4386. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4387. itemTaskIndex
  4388. ].progress = parseInt((evt.loaded * 80) / evt.total);
  4389. })
  4390. .send(function (err, data) {
  4391. // loading.close();
  4392. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4393. itemTaskIndex
  4394. ].progress = 100;
  4395. setTimeout(() => {
  4396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4397. itemTaskIndex
  4398. ].proVisible = false;
  4399. _this.$forceUpdate();
  4400. }, 1000);
  4401. _this.inputShow = true;
  4402. if (err) {
  4403. var a = _this.$refs.upload1.uploadFiles;
  4404. a.splice(a.length - 1, a.length);
  4405. _this.$message.error("上传失败");
  4406. } else {
  4407. if (type == 2 || type == 3) {
  4408. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4409. itemTaskIndex
  4410. ].chapterData.push({
  4411. name: file.name,
  4412. url: data.Location,
  4413. uid: file.uid,
  4414. type: type,
  4415. });
  4416. _this.imgChange1(null, null, type, itemTaskIndex);
  4417. } else if (type == 4) {
  4418. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4419. itemTaskIndex
  4420. ].fileList1.push({
  4421. name: file.name,
  4422. url: data.Location,
  4423. uid: file.uid,
  4424. });
  4425. _this.imgChange1(null, null, type, itemTaskIndex);
  4426. } else if (type == 5) {
  4427. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4428. itemTaskIndex
  4429. ].homeworkList.push({
  4430. name: file.name,
  4431. url: data.Location,
  4432. uid: file.uid,
  4433. });
  4434. _this.imgChange1(null, null, type, itemTaskIndex);
  4435. }
  4436. console.log(data.Location);
  4437. }
  4438. });
  4439. }
  4440. },
  4441. addunit() {
  4442. this.unitJson.push({
  4443. dyName: "", //单元标题
  4444. isUpdate: 1,
  4445. chapterInfo: [
  4446. {
  4447. isread: false,
  4448. chapterid: this.guid(),
  4449. title: "",
  4450. courseName: "",
  4451. taskJson: [
  4452. {
  4453. task: "",
  4454. taskDetail: "",
  4455. chapterData: [],
  4456. toolText: "",
  4457. toolChoose: [
  4458. {
  4459. tool: [],
  4460. toolDetail: "",
  4461. toolType: 0,
  4462. askCount: 1,
  4463. askTitle: "",
  4464. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4465. },
  4466. ],
  4467. isShowTools: false,
  4468. askCount: 1,
  4469. isFold: 0,
  4470. askTitle: "",
  4471. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4472. checkJson: [{ checkCount: [], checkPerent: [] }],
  4473. homeworkList: [],
  4474. },
  4475. ],
  4476. itemCount: 1,
  4477. fileList1: [],
  4478. video: [],
  4479. testData: [],
  4480. pData: [],
  4481. templateArray: [],
  4482. },
  4483. ],
  4484. });
  4485. this.addindex = this.unitJson.length - 1;
  4486. setTimeout(() => {
  4487. this.unitIndex = this.unitJson.length - 1;
  4488. this.unitSet(this.unitIndex);
  4489. }, 0);
  4490. },
  4491. addToolFun(itemTaskIndex) {
  4492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4493. itemTaskIndex
  4494. ].toolChoose.push({
  4495. tool: [],
  4496. toolDetail: "",
  4497. toolType: 0,
  4498. askCount: 1,
  4499. askTitle: "",
  4500. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4501. });
  4502. },
  4503. addTaskBorder() {
  4504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4505. task: "",
  4506. taskDetail: "",
  4507. chapterData: [],
  4508. toolText: "",
  4509. toolChoose: [
  4510. {
  4511. tool: [],
  4512. toolDetail: "",
  4513. toolType: 0,
  4514. askCount: 1,
  4515. askTitle: "",
  4516. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4517. },
  4518. ],
  4519. isShowTools: false,
  4520. askCount: 1,
  4521. isFold: 0,
  4522. askTitle: "",
  4523. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4524. checkJson: [{ checkCount: [], checkPerent: [] }],
  4525. homeworkList: [],
  4526. });
  4527. },
  4528. add(e, i) {
  4529. var el = e.currentTarget;
  4530. el.getElementsByTagName("input")[0].click();
  4531. },
  4532. fold(i, e, type) {
  4533. var a = e.currentTarget.parentElement.parentElement;
  4534. var b = e.currentTarget.parentElement;
  4535. if (type == 1) {
  4536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4537. a.className += " smallTaskBorder";
  4538. b.className += " funBlockTop";
  4539. } else {
  4540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4541. a.className = "taskBorder";
  4542. b.className = "funBlock";
  4543. }
  4544. console.log(e);
  4545. },
  4546. deleteHomeworkBox(unitIndex, index, i) {
  4547. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4548. this.taskCount
  4549. ].homeworkList.splice(i, 1);
  4550. },
  4551. getStudent() {
  4552. let params = {
  4553. oid: this.oid,
  4554. cu: "",
  4555. cn: this.searchPeople,
  4556. };
  4557. this.ajax
  4558. .get(this.$store.state.api + "selectStudentAdd", params)
  4559. .then((res) => {
  4560. this.studentJuri = res.data[0];
  4561. })
  4562. .catch((err) => {
  4563. this.isLoading = false;
  4564. console.error(err);
  4565. });
  4566. },
  4567. getTeacher() {
  4568. let params = {
  4569. oid:
  4570. this.org && this.org != "undefined" && this.org != "null"
  4571. ? this.org
  4572. : this.oid,
  4573. cu: "",
  4574. cn: this.searchTN,
  4575. };
  4576. this.ajax
  4577. .get(
  4578. this.$store.state.api +
  4579. (this.org && this.org != "undefined" && this.org != "null"
  4580. ? "selectTeacherAddOrg"
  4581. : "selectTeacherAdd"),
  4582. params
  4583. )
  4584. .then((res) => {
  4585. let teacherJuri = res.data[0];
  4586. for (var i = 0; i < teacherJuri.length; i++) {
  4587. if (teacherJuri[i].userid == this.userid) {
  4588. teacherJuri.splice(i, 1);
  4589. break;
  4590. }
  4591. }
  4592. this.teacherJuri = teacherJuri;
  4593. })
  4594. .catch((err) => {
  4595. console.error(err);
  4596. });
  4597. },
  4598. searchStudent() {
  4599. this.getStudent();
  4600. },
  4601. //获取班级列表
  4602. getClass() {
  4603. let params = {
  4604. oid: this.oid,
  4605. };
  4606. this.ajax
  4607. .get(this.$store.state.api + "selectClassBySchool", params)
  4608. .then((res) => {
  4609. this.grade = res.data[0];
  4610. })
  4611. .catch((err) => {
  4612. this.isLoading = false;
  4613. console.error(err);
  4614. });
  4615. },
  4616. getChapterData(e, i, j, ic, type) {
  4617. e.stopPropagation();
  4618. this.updataC = true;
  4619. this.icc = ic;
  4620. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4621. console.log("还不能下载图片喔");
  4622. }
  4623. },
  4624. deleteChapterData(e, i, j, ic, taskI) {
  4625. e.stopPropagation();
  4626. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4627. },
  4628. updataVideoT(e, i, j, ic) {
  4629. e.stopPropagation();
  4630. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4631. ic
  4632. ].name = e.target.value;
  4633. },
  4634. upCd(e, i, j, ic) {
  4635. e.stopPropagation();
  4636. if (ic == 0) {
  4637. return;
  4638. }
  4639. var a =
  4640. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4641. ic - 1
  4642. ];
  4643. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4644. ic - 1
  4645. ] =
  4646. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4647. ic
  4648. ];
  4649. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  4650. a;
  4651. },
  4652. downCd(e, i, j, ic) {
  4653. e.stopPropagation();
  4654. if (ic == this.unitJson[i].chapterInfo[j].chapterData.length - 1) {
  4655. return;
  4656. }
  4657. var a =
  4658. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4659. ic + 1
  4660. ];
  4661. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4662. ic + 1
  4663. ] =
  4664. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4665. ic
  4666. ];
  4667. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  4668. a;
  4669. },
  4670. addWork() {
  4671. let cPan = 1;
  4672. for (var i = 0; i < this.unitJson.length; i++) {
  4673. for (
  4674. var j = 0;
  4675. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4676. j++
  4677. ) {
  4678. if (
  4679. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4680. ) {
  4681. for (
  4682. var z = 0;
  4683. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4684. z++
  4685. ) {
  4686. if (
  4687. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4688. .length
  4689. ) {
  4690. this.$message.error("请把工具添加完整");
  4691. cPan = 2;
  4692. break;
  4693. }
  4694. }
  4695. }
  4696. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4697. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4698. i
  4699. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4700. return ele.value != "";
  4701. });
  4702. }
  4703. }
  4704. }
  4705. if (cPan == 2) {
  4706. this.steps--;
  4707. return;
  4708. }
  4709. for (var i = 0; i < this.unitJson.length; i++) {
  4710. delete this.unitJson[i].isUpdate;
  4711. }
  4712. let params = [
  4713. {
  4714. uid: this.userid,
  4715. title: this.courseName.replace(/%/g, "%25"),
  4716. brief: this.courseText.replace(/%/g, "%25"),
  4717. cover:
  4718. this.cover.length > 0
  4719. ? JSON.stringify(this.cover)
  4720. : JSON.stringify([
  4721. {
  4722. name: "noBanner.jpg",
  4723. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  4724. uid: 1656409780264,
  4725. status: "success",
  4726. },
  4727. ]),
  4728. evaId: this.evalua,
  4729. astudent:
  4730. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4731. see: this.isTeacherSee == true ? 1 : 0,
  4732. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4733. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4734. courseType: JSON.stringify(this.courseTypeId),
  4735. ateacher:
  4736. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4737. },
  4738. ];
  4739. this.ajax
  4740. .post(this.$store.state.api + "addWorkNew2", params)
  4741. .then((res) => {
  4742. console.log(this.steps);
  4743. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4744. this.$message({
  4745. message: "新增成功",
  4746. type: "success",
  4747. });
  4748. }
  4749. this.number = res.data.ordernumber;
  4750. this.courseId = res.data.courseId;
  4751. this.cid = res.data.courseId;
  4752. this.courseUserid = this.userid;
  4753. this.islogin = true;
  4754. })
  4755. .catch((err) => {
  4756. this.$message.error("网络不佳");
  4757. console.error(err);
  4758. });
  4759. },
  4760. goCourse() {
  4761. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4762. },
  4763. updateWork2() {
  4764. let _unitIndex = this.unitIndex;
  4765. let cPan = 1;
  4766. for (
  4767. var j = 0;
  4768. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4769. j++
  4770. ) {
  4771. if (
  4772. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4773. .length > 1
  4774. ) {
  4775. for (
  4776. var z = 0;
  4777. z <
  4778. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4779. .length;
  4780. z++
  4781. ) {
  4782. if (
  4783. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  4784. z
  4785. ].tool.length
  4786. ) {
  4787. this.$message.error("请把工具添加完整");
  4788. cPan = 2;
  4789. break;
  4790. }
  4791. }
  4792. }
  4793. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4794. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4795. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4796. (ele) => {
  4797. return ele.value != "";
  4798. }
  4799. );
  4800. }
  4801. }
  4802. if (cPan == 2) {
  4803. this.steps--;
  4804. return;
  4805. }
  4806. let params = [
  4807. {
  4808. cid: this.cid,
  4809. chapters: JSON.stringify(this.unitJson),
  4810. uid: this.userid,
  4811. unitIndex: _unitIndex,
  4812. },
  4813. ];
  4814. this.ajax
  4815. .post(this.$store.state.api + "updateWorkNew4", params)
  4816. .then((res) => {
  4817. this.$message({
  4818. message: "修改成功",
  4819. type: "success",
  4820. });
  4821. this.courseId = this.cid;
  4822. })
  4823. .catch((err) => {
  4824. this.$message.error("网络不佳");
  4825. console.error(err);
  4826. });
  4827. },
  4828. updateWork() {
  4829. let cPan = 1;
  4830. for (var i = 0; i < this.unitJson.length; i++) {
  4831. for (
  4832. var j = 0;
  4833. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4834. j++
  4835. ) {
  4836. if (
  4837. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4838. ) {
  4839. for (
  4840. var z = 0;
  4841. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4842. z++
  4843. ) {
  4844. if (
  4845. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4846. .length
  4847. ) {
  4848. this.$message.error("请把工具添加完整");
  4849. cPan = 2;
  4850. break;
  4851. }
  4852. }
  4853. }
  4854. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4855. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4856. i
  4857. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4858. return ele.value != "";
  4859. });
  4860. }
  4861. }
  4862. }
  4863. if (cPan == 2) {
  4864. this.steps--;
  4865. return;
  4866. }
  4867. for (var i = 0; i < this.unitJson.length; i++) {
  4868. delete this.unitJson[i].isUpdate;
  4869. }
  4870. let params = [
  4871. {
  4872. cid: this.cid,
  4873. title: this.courseName.replace(/%/g, "%25"),
  4874. brief: this.courseText.replace(/%/g, "%25"),
  4875. cover:
  4876. this.cover.length > 0
  4877. ? JSON.stringify(this.cover)
  4878. : JSON.stringify([
  4879. {
  4880. name: "noBanner.jpg",
  4881. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  4882. uid: 1656409780264,
  4883. status: "success",
  4884. },
  4885. ]),
  4886. evaId: this.evalua,
  4887. astudent:
  4888. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4889. see: this.isTeacherSee == true ? 1 : 0,
  4890. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4891. template: this.myWord != "undefined" ? this.myWord : [],
  4892. uid: this.userid,
  4893. courseType: JSON.stringify(this.courseTypeId),
  4894. ateacher:
  4895. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4896. },
  4897. ];
  4898. this.ajax
  4899. .post(this.$store.state.api + "updateWorkNew2", params)
  4900. .then((res) => {
  4901. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4902. if (this.cidType == 1) {
  4903. this.$message({
  4904. message: "修改成功",
  4905. type: "success",
  4906. });
  4907. } else {
  4908. this.$message({
  4909. message: "新增成功",
  4910. type: "success",
  4911. });
  4912. }
  4913. }
  4914. this.number = this.nbOrder;
  4915. this.courseId = this.cid;
  4916. })
  4917. .catch((err) => {
  4918. this.$message.error("网络不佳");
  4919. console.error(err);
  4920. });
  4921. },
  4922. guid() {
  4923. var _num,
  4924. i,
  4925. _guid = "";
  4926. for (i = 0; i < 32; i++) {
  4927. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4928. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4929. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4930. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4931. _guid += "-";
  4932. }
  4933. }
  4934. return _guid;
  4935. },
  4936. insertWord() {
  4937. this.dialogVisible1 = true;
  4938. this.updateBoolean2 = false;
  4939. this.tTitle = "";
  4940. this.tdetail = "";
  4941. },
  4942. addWord() {
  4943. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  4944. name: this.tTitle,
  4945. content: this.tdetail,
  4946. uid: this.guid(),
  4947. });
  4948. this.dialogVisible1 = false;
  4949. },
  4950. upWord() {},
  4951. selectWord(uid, i, c) {
  4952. this.dialogVisible1 = true;
  4953. this.updateBoolean2 = true;
  4954. if (
  4955. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  4956. ) {
  4957. this.tTitle =
  4958. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  4959. this.tdetail =
  4960. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  4961. }
  4962. },
  4963. isAddPP() {
  4964. if (this.checkboxList.length > 0) {
  4965. this.$message({
  4966. message: "添加成功",
  4967. type: "success",
  4968. });
  4969. this.dialogVisible3 = false;
  4970. } else {
  4971. this.$message({
  4972. message: "请添加项目成员",
  4973. type: "error",
  4974. });
  4975. }
  4976. },
  4977. isAddClass() {
  4978. this.dialogVisibleClass = false;
  4979. },
  4980. isAddPPTeacher() {
  4981. this.dialogVisibleMember = false;
  4982. },
  4983. getTemplate() {
  4984. this.ajax
  4985. .get(this.$store.state.api + "getCourseTemplateT", "")
  4986. .then((res) => {
  4987. this.templateArray = res.data[0];
  4988. })
  4989. .catch((err) => {});
  4990. },
  4991. clearChoose() {
  4992. this.clearArray.splice(this.templateC.id, 1);
  4993. this.dialogVisible2 = false;
  4994. },
  4995. clearAttText() {
  4996. this.AttText = {
  4997. title: "",
  4998. text: "",
  4999. };
  5000. this.dialogVisible6 = false;
  5001. },
  5002. clearLine() {
  5003. this.line = "";
  5004. this.dialogVisible7 = false;
  5005. },
  5006. checkTemplate(res) {
  5007. let _this = this;
  5008. _this
  5009. .$confirm("确定选择此模板吗?", "提示", {
  5010. confirmButtonText: "确定",
  5011. cancelButtonText: "取消",
  5012. type: "warning",
  5013. })
  5014. .then(() => {
  5015. _this.unitJson = JSON.parse(res.chapters);
  5016. _this.steps++;
  5017. setTimeout(() => {
  5018. this.checkEva(this.checkId);
  5019. }, 1000);
  5020. })
  5021. .catch(() => {
  5022. return;
  5023. });
  5024. },
  5025. checkTemplate1(w) {
  5026. this.steps++;
  5027. },
  5028. checkTemplate2() {
  5029. let _this = this;
  5030. _this
  5031. .$confirm("确定选择空模板吗?", "提示", {
  5032. confirmButtonText: "确定",
  5033. cancelButtonText: "取消",
  5034. type: "warning",
  5035. })
  5036. .then(() => {
  5037. _this.unitJson = [
  5038. {
  5039. dyName: "", //单元标题
  5040. chapterInfo: [
  5041. {
  5042. isread: false,
  5043. chapterid: this.guid(),
  5044. title: "",
  5045. courseName: "",
  5046. taskJson: [
  5047. {
  5048. task: "",
  5049. taskDetail: "",
  5050. chapterData: [],
  5051. toolText: "",
  5052. toolChoose: [
  5053. {
  5054. tool: [],
  5055. toolDetail: "",
  5056. toolType: 0,
  5057. askCount: 1,
  5058. askTitle: "",
  5059. askJson: [
  5060. { askstitle: "", askItem: 1, checkList: [] },
  5061. ],
  5062. },
  5063. ],
  5064. isShowTools: false,
  5065. askCount: 1,
  5066. isFold: 0,
  5067. askTitle: "",
  5068. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5069. checkJson: [{ checkCount: [], checkPerent: [] }],
  5070. homeworkList: [],
  5071. },
  5072. ],
  5073. itemCount: 1,
  5074. fileList1: [],
  5075. video: [],
  5076. testData: [],
  5077. pData: [],
  5078. templateArray: [],
  5079. },
  5080. ],
  5081. },
  5082. ];
  5083. this.steps++;
  5084. })
  5085. .catch(() => {
  5086. return;
  5087. });
  5088. },
  5089. wordNext() {
  5090. this.dialogVisible2 = false;
  5091. },
  5092. isAddOrUpdateAttText() {
  5093. if (this.AttTextType == 0) {
  5094. this.addAttTextMessage();
  5095. } else {
  5096. this.updateAttText();
  5097. }
  5098. },
  5099. isAddOrUpdateLine() {
  5100. if (!this.lineTitle) {
  5101. this.$message.error("请填写链接标题");
  5102. return;
  5103. }
  5104. if (this.lineType == 0) {
  5105. this.addLine();
  5106. } else {
  5107. this.updateLine();
  5108. }
  5109. },
  5110. addAttTextMessage() {
  5111. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5112. this.taskCount
  5113. ].chapterData.push({
  5114. name: this.AttText.title,
  5115. url: this.AttText.text,
  5116. type: 6,
  5117. });
  5118. this.imgChange1(null, null, 6, this.taskCount);
  5119. this.dialogVisible6 = false;
  5120. },
  5121. selectAttText(itemTaskIndex, i) {
  5122. this.AttText.title =
  5123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5124. itemTaskIndex
  5125. ].chapterData[i].name;
  5126. this.AttText.text =
  5127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5128. itemTaskIndex
  5129. ].chapterData[i].url;
  5130. this.taskCount = itemTaskIndex;
  5131. this.AttTextIndex = i;
  5132. this.AttTextType = 1;
  5133. this.dialogVisible6 = true;
  5134. },
  5135. updateAttText() {
  5136. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5137. this.taskCount
  5138. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5140. this.taskCount
  5141. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5142. this.dialogVisible6 = false;
  5143. },
  5144. addLine() {
  5145. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5146. this.lineCount
  5147. ].chapterData.push({
  5148. name: "链接",
  5149. title: this.lineTitle,
  5150. url: this.line,
  5151. type: 8,
  5152. });
  5153. this.imgChange1(null, null, 8, this.lineCount);
  5154. this.dialogVisible7 = false;
  5155. },
  5156. selectLine(itemTaskIndex, i) {
  5157. this.line =
  5158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5159. itemTaskIndex
  5160. ].chapterData[i].url;
  5161. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5162. itemTaskIndex
  5163. ].chapterData[i].title
  5164. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5165. .chapterData[i].title
  5166. : "";
  5167. this.taskCount = itemTaskIndex;
  5168. this.lineCount = i;
  5169. this.lineType = 1;
  5170. this.dialogVisible7 = true;
  5171. },
  5172. updateLine() {
  5173. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5174. this.taskCount
  5175. ].chapterData[this.lineCount].url = this.line;
  5176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5177. this.taskCount
  5178. ].chapterData[this.lineCount].title = this.lineTitle;
  5179. this.dialogVisible7 = false;
  5180. },
  5181. addPP() {
  5182. this.dialogVisible3 = true;
  5183. },
  5184. goTo(path) {
  5185. this.$router.push(path);
  5186. },
  5187. openTools(itemTaskIndex, i, toolIndex) {
  5188. this.toolIndex = toolIndex;
  5189. this.taskCount = itemTaskIndex;
  5190. if (i == 4) {
  5191. if (toolIndex == null) {
  5192. var a =
  5193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5194. .chapterData;
  5195. for (var i = 0; i < a.length; i++) {
  5196. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5197. this.askJson =
  5198. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5199. itemTaskIndex
  5200. ].chapterData[i].askJson;
  5201. }
  5202. }
  5203. } else {
  5204. this.askJson = JSON.parse(
  5205. JSON.stringify(
  5206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5207. itemTaskIndex
  5208. ].toolChoose[toolIndex]
  5209. )
  5210. );
  5211. }
  5212. this.dialogVisible5 = true;
  5213. } else if (i == 45) {
  5214. if (
  5215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5216. .toolChoose[toolIndex].testJson
  5217. ) {
  5218. this.testJson = JSON.parse(
  5219. JSON.stringify(
  5220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5221. itemTaskIndex
  5222. ].toolChoose[toolIndex].testJson
  5223. )
  5224. );
  5225. } else {
  5226. var testJson = {
  5227. testCount: 1,
  5228. testTitle: "",
  5229. testJson: [
  5230. {
  5231. teststitle: "",
  5232. testItem: 1,
  5233. checkList: [],
  5234. answer: [],
  5235. type: "1",
  5236. },
  5237. ],
  5238. };
  5239. this.testJson = testJson;
  5240. }
  5241. this.dialogVisibleChoice = true;
  5242. } else if (i == 47) {
  5243. if (
  5244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5245. .toolChoose[toolIndex].sentenceList
  5246. ) {
  5247. this.sentenceList = JSON.parse(
  5248. JSON.stringify(
  5249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5250. itemTaskIndex
  5251. ].toolChoose[toolIndex].sentenceList
  5252. )
  5253. );
  5254. } else {
  5255. var sentenceList = [
  5256. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5257. ];
  5258. this.sentenceList = sentenceList;
  5259. }
  5260. this.dialogVisibleSentence = true;
  5261. } else if (i == 48) {
  5262. if (
  5263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5264. .toolChoose[toolIndex].tableJson
  5265. ) {
  5266. this.tableJson = JSON.parse(
  5267. JSON.stringify(
  5268. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5269. itemTaskIndex
  5270. ].toolChoose[toolIndex].tableJson
  5271. )
  5272. );
  5273. } else {
  5274. var tableJson = { text: "" };
  5275. this.tableJson = tableJson;
  5276. }
  5277. this.dialogVisibleTable = true;
  5278. } else if (i == 15) {
  5279. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5280. itemTaskIndex
  5281. ].toolChoose[toolIndex].answerQ
  5282. ? JSON.parse(
  5283. JSON.stringify(
  5284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5285. itemTaskIndex
  5286. ].toolChoose[toolIndex].answerQ
  5287. )
  5288. )
  5289. : "";
  5290. this.dialogVisible8 = true;
  5291. } else if (i == 40) {
  5292. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5293. itemTaskIndex
  5294. ].toolChoose[toolIndex].rateJson
  5295. ? JSON.parse(
  5296. JSON.stringify(
  5297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5298. itemTaskIndex
  5299. ].toolChoose[toolIndex].rateJson
  5300. )
  5301. )
  5302. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5303. this.selectSteps = 1;
  5304. this.dialogVisibleRate = true;
  5305. } else if (i == 42) {
  5306. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5307. itemTaskIndex
  5308. ].toolChoose[toolIndex].answerQ
  5309. ? JSON.parse(
  5310. JSON.stringify(
  5311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5312. itemTaskIndex
  5313. ].toolChoose[toolIndex].answerQ
  5314. )
  5315. )
  5316. : "";
  5317. this.dialogVisibleMp3 = true;
  5318. } else if (i == 41) {
  5319. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5320. itemTaskIndex
  5321. ].toolChoose[toolIndex].selectJson
  5322. ? JSON.parse(
  5323. JSON.stringify(
  5324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5325. itemTaskIndex
  5326. ].toolChoose[toolIndex].selectJson
  5327. )
  5328. )
  5329. : { url: "", select: [], answer: [] };
  5330. this.selectSteps = 1;
  5331. this.dialogVisibleSelect = true;
  5332. }
  5333. },
  5334. chapAddTools(i) {
  5335. if (this.chapTools[0].tools.length == 0) {
  5336. this.chapTools[0].tools.push(i);
  5337. } else {
  5338. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5339. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5340. } else {
  5341. this.chapTools[0].tools.push(i);
  5342. }
  5343. }
  5344. this.$forceUpdate();
  5345. },
  5346. addChaptersDataTools() {
  5347. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5349. this.chapCount
  5350. ].chapterData.push({
  5351. name: this.chapTools[0].toolDetail,
  5352. url: this.chapTools[0].tools,
  5353. type: 7,
  5354. askJson: this.askJson,
  5355. });
  5356. } else {
  5357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5358. this.chapCount
  5359. ].chapterData.push({
  5360. name: this.chapTools[0].toolDetail,
  5361. url: this.chapTools[0].tools,
  5362. type: 7,
  5363. });
  5364. }
  5365. this.imgChange1(null, null, 7, this.chapCount);
  5366. this.dialogVisible4 = false;
  5367. },
  5368. addTools(i, itemTaskIndex, toolIndex) {
  5369. // if (
  5370. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5371. // .toolChoose[toolIndex].tool.length == 0
  5372. // ) {
  5373. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5374. // itemTaskIndex
  5375. // ].toolChoose[toolIndex].tool.push(i);
  5376. // } else {
  5377. // if (
  5378. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5379. // itemTaskIndex
  5380. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5381. // ) {
  5382. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5383. // itemTaskIndex
  5384. // ].toolChoose[toolIndex].tool.splice(
  5385. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5386. // itemTaskIndex
  5387. // ].toolChoose[toolIndex].tool.indexOf(i),
  5388. // 1
  5389. // );
  5390. // } else {
  5391. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5392. // itemTaskIndex
  5393. // ].toolChoose[toolIndex].tool.push(i);
  5394. // }
  5395. // console.log(
  5396. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5397. // .toolChoose[toolIndex].tool
  5398. // );
  5399. // }
  5400. if (i == 4) {
  5401. if (
  5402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5403. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5404. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5405. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5407. .toolChoose[toolIndex].askJson[0].checkList < 2
  5408. ) {
  5409. this.openTools(itemTaskIndex, 4, toolIndex);
  5410. // this.$message({
  5411. // message: "请填写完整问卷内容",
  5412. // type: "error",
  5413. // });
  5414. return;
  5415. }
  5416. }
  5417. if (i == 45) {
  5418. if (
  5419. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5420. .toolChoose[toolIndex].testJson ||
  5421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5422. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5424. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5425. ) {
  5426. this.openTools(itemTaskIndex, 45, toolIndex);
  5427. // this.$message({
  5428. // message: "请填写完整问卷内容",
  5429. // type: "error",
  5430. // });
  5431. return;
  5432. }
  5433. }
  5434. if (i == 47) {
  5435. if (
  5436. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5437. .toolChoose[toolIndex].sentenceList ||
  5438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5439. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5440. ) {
  5441. this.openTools(itemTaskIndex, 47, toolIndex);
  5442. return;
  5443. }
  5444. }
  5445. if (i == 48) {
  5446. if (
  5447. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5448. .toolChoose[toolIndex].tableJson
  5449. ) {
  5450. this.openTools(itemTaskIndex, 48, toolIndex);
  5451. return;
  5452. }
  5453. }
  5454. if (i == 15) {
  5455. if (
  5456. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5457. .toolChoose[toolIndex].answerQ ||
  5458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5459. .toolChoose[toolIndex].answerQ == ""
  5460. ) {
  5461. this.openTools(itemTaskIndex, 15, toolIndex);
  5462. // this.$message({
  5463. // message: "请填写问答内容",
  5464. // type: "error",
  5465. // });
  5466. return;
  5467. }
  5468. }
  5469. if (i == 40) {
  5470. if (
  5471. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5472. .toolChoose[toolIndex].rateJson ||
  5473. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5474. .toolChoose[toolIndex].rateJson.length
  5475. ) {
  5476. this.openTools(itemTaskIndex, 40, toolIndex);
  5477. return;
  5478. }
  5479. }
  5480. if (i == 41) {
  5481. if (
  5482. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5483. .toolChoose[toolIndex].selectJson ||
  5484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5485. .toolChoose[toolIndex].selectJson.url == "" ||
  5486. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5487. .toolChoose[toolIndex].selectJson.select.length ||
  5488. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5489. .toolChoose[toolIndex].selectJson.answer.length
  5490. ) {
  5491. this.openTools(itemTaskIndex, 41, toolIndex);
  5492. return;
  5493. }
  5494. }
  5495. if (i == 42) {
  5496. if (
  5497. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5498. .toolChoose[toolIndex].answerQ ||
  5499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5500. .toolChoose[toolIndex].answerQ == ""
  5501. ) {
  5502. this.openTools(itemTaskIndex, 42, toolIndex);
  5503. return;
  5504. }
  5505. }
  5506. if (
  5507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5508. .toolChoose[toolIndex].tool.length > 0
  5509. ) {
  5510. if (
  5511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5512. itemTaskIndex
  5513. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5514. ) {
  5515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5516. itemTaskIndex
  5517. ].toolChoose[toolIndex].tool.splice(
  5518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5519. itemTaskIndex
  5520. ].toolChoose[toolIndex].tool.indexOf(i),
  5521. 1
  5522. );
  5523. } else {
  5524. // this.$message({
  5525. // message: "每个工具只能添加一个",
  5526. // type: "error",
  5527. // });
  5528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5529. itemTaskIndex
  5530. ].toolChoose[toolIndex].tool = [];
  5531. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5532. itemTaskIndex
  5533. ].toolChoose[toolIndex].tool.push(i);
  5534. }
  5535. } else {
  5536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5537. itemTaskIndex
  5538. ].toolChoose[toolIndex].tool.push(i);
  5539. }
  5540. this.$forceUpdate();
  5541. },
  5542. addAskList() {
  5543. this.askJson.askJson.push({
  5544. askstitle: "",
  5545. askItem: 1,
  5546. checkList: [],
  5547. });
  5548. this.askJson.askCount++;
  5549. },
  5550. addTestList() {
  5551. this.testJson.testJson.push({
  5552. teststitle: "",
  5553. testItem: 1,
  5554. checkList: [],
  5555. answer: [],
  5556. type: "1",
  5557. });
  5558. this.testJson.testCount++;
  5559. },
  5560. deleteAskList(index) {
  5561. this.askJson.askJson.splice(index, 1);
  5562. this.askJson.askCount--;
  5563. },
  5564. deleteTestList(index) {
  5565. this.testJson.testJson.splice(index, 1);
  5566. this.testJson.testCount--;
  5567. },
  5568. addcheckList(json) {
  5569. json.checkList.length++;
  5570. json.askItem++;
  5571. },
  5572. deletecheckList(json) {
  5573. json.checkList.length--;
  5574. json.askItem--;
  5575. },
  5576. addTcheckList(json) {
  5577. json.checkList.length++;
  5578. json.testItem++;
  5579. },
  5580. deleteTcheckList(json) {
  5581. json.checkList.length--;
  5582. json.testItem--;
  5583. },
  5584. checkTestType(type, json) {
  5585. json.type = type;
  5586. json.answer = [];
  5587. },
  5588. addSelectList(json) {
  5589. json.select.push("");
  5590. json.answer.push("");
  5591. },
  5592. deleteSelectList(json) {
  5593. // json.select.length--;
  5594. // json.answer.length--;
  5595. json.select.splice(json.select.length - 1, 1);
  5596. json.answer.splice(json.answer.length - 1, 1);
  5597. },
  5598. addAsk() {
  5599. if (this.askJson.askTitle === "") {
  5600. this.$message.error("标题不能为空!");
  5601. return;
  5602. }
  5603. var aj = this.askJson.askJson;
  5604. var b = 1;
  5605. for (var i = 0; i < aj.length; i++) {
  5606. if (aj[i].askstitle === "") {
  5607. var a = 1;
  5608. for (let index = 0; index < aj[i].askItem; index++) {
  5609. const element = aj[i].checkList[index]
  5610. ? aj[i].checkList[index]
  5611. : "";
  5612. if (element != "") {
  5613. b++;
  5614. this.$message.error("填写了选项,题目不能为空!");
  5615. return;
  5616. } else {
  5617. a++;
  5618. }
  5619. }
  5620. if (b == 1) {
  5621. this.$message.error("至少填写一个问题");
  5622. return;
  5623. }
  5624. } else if (aj[i].askstitle != "") {
  5625. for (let index = 0; index < aj[i].askItem; index++) {
  5626. const element = aj[i].checkList[index]
  5627. ? aj[i].checkList[index]
  5628. : "";
  5629. var index = 0;
  5630. for (var z = 0; z < aj[i].checkList.length; z++) {
  5631. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5632. if (checkC != "") {
  5633. index++;
  5634. } else {
  5635. this.$message.error("选项不能为空!");
  5636. return;
  5637. }
  5638. }
  5639. b++;
  5640. if (index < 2) {
  5641. this.$message.error("填写了的题目,选项至少要有两项!");
  5642. return;
  5643. }
  5644. }
  5645. }
  5646. }
  5647. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5648. var elc = el.checkList.filter((element) => {
  5649. return element != "";
  5650. });
  5651. return el.askstitle != "" && elc.length != 0;
  5652. });
  5653. if (!this.dialogVisible4) {
  5654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5655. this.taskCount
  5656. ].toolChoose[this.toolIndex] = this.askJson;
  5657. }
  5658. this.dialogVisible5 = false;
  5659. if (
  5660. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5661. .toolChoose[this.toolIndex].tool != 4
  5662. ) {
  5663. this.addTools(4, this.taskCount, this.toolIndex);
  5664. }
  5665. },
  5666. addTest() {
  5667. // if (this.testJson.testTitle === "") {
  5668. // this.$message.error("标题不能为空!");
  5669. // return;
  5670. // }
  5671. var aj = this.testJson.testJson;
  5672. var b = 1;
  5673. for (var i = 0; i < aj.length; i++) {
  5674. if (aj[i].teststitle === "") {
  5675. var a = 1;
  5676. for (let index = 0; index < aj[i].testItem; index++) {
  5677. const element = aj[i].checkList[index]
  5678. ? aj[i].checkList[index]
  5679. : "";
  5680. if (element != "") {
  5681. b++;
  5682. this.$message.error("填写了选项,题目不能为空!");
  5683. return;
  5684. } else {
  5685. a++;
  5686. }
  5687. }
  5688. if (b == 1) {
  5689. this.$message.error("至少填写一个问题");
  5690. return;
  5691. }
  5692. } else if (aj[i].teststitle != "") {
  5693. for (let index = 0; index < aj[i].testItem; index++) {
  5694. const element = aj[i].checkList[index]
  5695. ? aj[i].checkList[index]
  5696. : "";
  5697. var index = 0;
  5698. for (var z = 0; z < aj[i].checkList.length; z++) {
  5699. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5700. if (checkC != "") {
  5701. index++;
  5702. } else {
  5703. this.$message.error("选项不能为空!");
  5704. return;
  5705. }
  5706. }
  5707. b++;
  5708. if (index < 2) {
  5709. this.$message.error("填写了的题目,选项至少要有两项!");
  5710. return;
  5711. }
  5712. if (
  5713. (aj[i].type == "2" && !aj[i].answer.length) ||
  5714. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  5715. ) {
  5716. this.$message.error("有题目未选择答案请选择答案");
  5717. return;
  5718. }
  5719. }
  5720. }
  5721. }
  5722. this.testJson.testJson = this.testJson.testJson.filter((el) => {
  5723. var elc = el.checkList.filter((element) => {
  5724. return element != "";
  5725. });
  5726. return el.teststitle != "" && elc.length != 0;
  5727. });
  5728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5729. this.taskCount
  5730. ].toolChoose[this.toolIndex].testJson = this.testJson;
  5731. this.dialogVisibleChoice = false;
  5732. if (
  5733. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5734. .toolChoose[this.toolIndex].tool != 45
  5735. ) {
  5736. this.addTools(45, this.taskCount, this.toolIndex);
  5737. }
  5738. },
  5739. addAnswer() {
  5740. if (this.answerQ == "") {
  5741. this.$message.error("请输入您想要问的问题");
  5742. return;
  5743. }
  5744. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5745. this.taskCount
  5746. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  5747. this.dialogVisible8 = false;
  5748. if (
  5749. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5750. .toolChoose[this.toolIndex].tool != 15
  5751. ) {
  5752. this.addTools(15, this.taskCount, this.toolIndex);
  5753. }
  5754. },
  5755. addMp3Answer() {
  5756. if (this.answerQ == "") {
  5757. this.$message.error("请输入您想要回答的问题");
  5758. return;
  5759. }
  5760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5761. this.taskCount
  5762. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  5763. this.dialogVisibleMp3 = false;
  5764. },
  5765. addRateAnswer() {
  5766. var a = 1;
  5767. for (var i = 0; i < this.rateJson.length; i++) {
  5768. if (this.rateJson[i].value == "") {
  5769. a = 2;
  5770. break;
  5771. }
  5772. }
  5773. if (a == 2) {
  5774. this.$message.error("请把评价信息填写完整");
  5775. return;
  5776. }
  5777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5778. this.taskCount
  5779. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  5780. this.dialogVisibleRate = false;
  5781. if (
  5782. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5783. .toolChoose[this.toolIndex].tool != 40
  5784. ) {
  5785. this.addTools(40, this.taskCount, this.toolIndex);
  5786. }
  5787. },
  5788. addSelectAnswer() {
  5789. if (this.selectJson.url == "") {
  5790. this.$message.error("请上传题目");
  5791. return;
  5792. }
  5793. if (!this.selectJson.select.length) {
  5794. this.$message.error("请添加选项");
  5795. return;
  5796. }
  5797. if (!this.selectJson.answer.length) {
  5798. this.$message.error("请设置答案");
  5799. return;
  5800. }
  5801. var a = 1;
  5802. for (var i = 0; i < this.selectJson.answer.length; i++) {
  5803. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  5804. a = 2;
  5805. }
  5806. }
  5807. if (a == 2) {
  5808. this.$message.error("请设置答案");
  5809. return;
  5810. }
  5811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5812. this.taskCount
  5813. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  5814. this.dialogVisibleSelect = false;
  5815. if (
  5816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5817. .toolChoose[this.toolIndex].tool != 41
  5818. ) {
  5819. this.addTools(41, this.taskCount, this.toolIndex);
  5820. }
  5821. },
  5822. nextSelectSteps() {
  5823. if (this.selectJson.url == "") {
  5824. this.$message.error("请上传题目");
  5825. return;
  5826. }
  5827. if (!this.selectJson.select.length) {
  5828. this.$message.error("请添加选项");
  5829. return;
  5830. }
  5831. var a = 1;
  5832. for (var i = 0; i < this.selectJson.select.length; i++) {
  5833. if (!this.selectJson.select[i]) {
  5834. a = 2;
  5835. }
  5836. }
  5837. if (a == 2) {
  5838. this.$message.error("添加的选项不能为空");
  5839. return;
  5840. }
  5841. this.selectSteps++;
  5842. },
  5843. selectCourseDetail() {
  5844. if (this.cid == "" || this.cid == undefined) {
  5845. console.log("这是新增项目");
  5846. } else {
  5847. this.cidType = 1;
  5848. let params = {
  5849. cid: this.cid,
  5850. };
  5851. this.ajax
  5852. .get(this.$store.state.api + "select_course_detail", params)
  5853. .then((res) => {
  5854. this.loading = true;
  5855. this.unitJson = JSON.parse(res.data[0][0].chapters);
  5856. for (var j in this.unitJson) {
  5857. for (var i in this.unitJson[j].chapterInfo) {
  5858. this.unitJson[j].chapterInfo[i].taskJson[
  5859. this.taskCount
  5860. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  5861. this.taskCount
  5862. ].toolChoose
  5863. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  5864. .toolChoose
  5865. : [];
  5866. for (var k in this.unitJson[j].chapterInfo[i].taskJson) {
  5867. let _chapterData = [];
  5868. for (var c in this.unitJson[j].chapterInfo[i].taskJson[k]
  5869. .chapterData) {
  5870. if (
  5871. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[c]
  5872. ) {
  5873. _chapterData.push(
  5874. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData[
  5875. c
  5876. ]
  5877. );
  5878. }
  5879. }
  5880. this.unitJson[j].chapterInfo[i].taskJson[k].chapterData =
  5881. _chapterData;
  5882. }
  5883. }
  5884. }
  5885. this.courseName = res.data[0][0].title;
  5886. this.courseText = res.data[0][0].brief;
  5887. this.evalua = res.data[0][0].evaId;
  5888. this.cover = JSON.parse(res.data[0][0].cover);
  5889. this.noneBtnImg = this.cover.length >= 1;
  5890. // this.checkboxList =
  5891. // res.data[0][0].course_student.length > 0
  5892. // ? JSON.parse(res.data[0][0].course_student)
  5893. // : [];
  5894. this.checkboxList2 = res.data[0][0].juri
  5895. ? res.data[0][0].juri.split(",")
  5896. : [];
  5897. this.checkboxList3 = res.data[0][0].course_teacher
  5898. ? res.data[0][0].course_teacher.split(",")
  5899. : [];
  5900. // this.isTeacherSee =
  5901. // res.data[0][0].is_teacher_look == 0 ? true : false;
  5902. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  5903. this.myWord = res.data[0][0].template;
  5904. this.templateC.id = "123";
  5905. this.courseUserid = res.data[0][0].userid;
  5906. this.nbOrder = res.data[0][0].ordernumber;
  5907. for (var i = 0; i < res.data[1].length; i++) {
  5908. this.courseTypeId.push(res.data[1][i].typeid);
  5909. }
  5910. console.log(this.courseTypeId);
  5911. // if (this.timer) clearInterval(this.timer);
  5912. if (this.timer) clearTimeout(this.timer);
  5913. this.timer = null;
  5914. // this.timer = setInterval(() => {
  5915. this.seleteCourseUpdate();
  5916. // }, 5000);
  5917. this.$forceUpdate();
  5918. setTimeout(() => {
  5919. this.checkEva(this.evalua);
  5920. }, 0);
  5921. })
  5922. .catch((err) => {
  5923. console.error(err);
  5924. });
  5925. }
  5926. },
  5927. seleteCourseUpdate() {
  5928. let params = {
  5929. cid: this.cid,
  5930. };
  5931. this.ajax
  5932. .get(this.$store.state.api + "select_course_detail", params)
  5933. .then((res) => {
  5934. // console.log(this.unitJson);
  5935. let unitJson = JSON.parse(res.data[0][0].chapters);
  5936. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  5937. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  5938. let _unitJson = [];
  5939. let _chapAarry = [];
  5940. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  5941. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  5942. let index = 1;
  5943. let chapindex;
  5944. if (_unitJson2.length > unitJson.length) {
  5945. for (let c = 0; c < _unitJson2.length; c++) {
  5946. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  5947. }
  5948. for (let j = 0; j < unitJson.length; j++) {
  5949. let count = 0;
  5950. for (let k = 0; k < _unitJson2.length; k++) {
  5951. if (
  5952. unitJson[j].chapterInfo[0].chapterid ==
  5953. _unitJson2[k].chapterInfo[0].chapterid
  5954. ) {
  5955. count++;
  5956. _chapAarry.splice(
  5957. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  5958. 1
  5959. );
  5960. _unitJson.push(unitJson[j]);
  5961. break;
  5962. }
  5963. }
  5964. // if(count === 0){
  5965. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  5966. // }
  5967. }
  5968. for (let k = 0; k < _unitJson2.length; k++) {
  5969. if (_unitJson2[k].isUpdate == 1) {
  5970. _chapAarry.splice(
  5971. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  5972. 1
  5973. );
  5974. _unitJson.push(_unitJson2[k]);
  5975. }
  5976. }
  5977. console.log(_chapAarry);
  5978. for (let d = 0; d < _unitJson2.length; d++) {
  5979. if (
  5980. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  5981. ) {
  5982. if (_unitIndex == d) {
  5983. index = 2;
  5984. }
  5985. chapindex = d;
  5986. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  5987. }
  5988. }
  5989. } else {
  5990. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  5991. }
  5992. for (let i = 0; i < unitJson.length; i++) {
  5993. if (
  5994. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  5995. _unitJson[i].chapterInfo[0].chapterid !=
  5996. unitJson[i].chapterInfo[0].chapterid
  5997. ) {
  5998. if (i == _unitJson.length - 1) {
  5999. // this.unitIndex++
  6000. _unitIndex2++;
  6001. }
  6002. _unitJson.splice(i, 0, unitJson[i]);
  6003. } else if (i > _unitJson.length - 1) {
  6004. _unitJson.push(unitJson[i]);
  6005. } else if (
  6006. _unitJson[i].chapterInfo[0].chapterid ==
  6007. unitJson[i].chapterInfo[0].chapterid
  6008. ) {
  6009. _unitJson[i] = unitJson[i];
  6010. }
  6011. // if (i == _unitIndex) {
  6012. // continue;
  6013. // } else
  6014. }
  6015. if (_chapAarry.length && index != 2) {
  6016. if (chapindex < _unitIndex) {
  6017. this.isDelete = 2;
  6018. // this.unitIndex--;
  6019. _unitIndex2--;
  6020. } else if (
  6021. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6022. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6023. ) {
  6024. this.isDelete = 2;
  6025. for (let n = 0; n < _unitJson.length; n++) {
  6026. if (
  6027. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6028. _unitJson[n].chapterInfo[0].chapterid
  6029. ) {
  6030. // this.unitIndex = n;
  6031. _unitIndex2 = n;
  6032. _unitJson[n] = _unitJson2[_unitIndex];
  6033. break;
  6034. }
  6035. }
  6036. }
  6037. } else if (index != 2) {
  6038. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6039. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6040. }
  6041. if (index == 1) {
  6042. this.unitJson = _unitJson;
  6043. this.$forceUpdate();
  6044. setTimeout(() => {
  6045. if (this.unitIndex != _unitIndex2) {
  6046. this.isDelete = 2;
  6047. this.unitIndex = _unitIndex2;
  6048. }
  6049. }, 0);
  6050. this.timer = setTimeout(() => {
  6051. this.seleteCourseUpdate();
  6052. }, 1000);
  6053. } else if (index == 2) {
  6054. let _this = this;
  6055. _this
  6056. .$confirm(
  6057. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6058. "提示",
  6059. {
  6060. confirmButtonText: "需要",
  6061. cancelButtonText: "取消",
  6062. type: "warning",
  6063. }
  6064. )
  6065. .then(() => {
  6066. if (_this.time()) {
  6067. _this.restoreWork(
  6068. _chapAarry[0],
  6069. _unitJson,
  6070. chapindex,
  6071. _unitJson2,
  6072. _unitIndex2
  6073. );
  6074. }
  6075. })
  6076. .catch(() => {
  6077. _this.unitJson = _unitJson;
  6078. _this.$forceUpdate();
  6079. setTimeout(() => {
  6080. if (this.unitIndex != _unitIndex2) {
  6081. this.isDelete = 2;
  6082. this.unitIndex = _unitIndex2;
  6083. }
  6084. }, 0);
  6085. _this.timer = setTimeout(() => {
  6086. _this.seleteCourseUpdate();
  6087. }, 1000);
  6088. });
  6089. }
  6090. })
  6091. .catch((err) => {
  6092. console.error(err);
  6093. });
  6094. },
  6095. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6096. let params = [
  6097. {
  6098. cid: this.cid,
  6099. chapters: JSON.stringify(this.unitJson),
  6100. uid: this.userid,
  6101. chapid: chapid,
  6102. },
  6103. ];
  6104. this.ajax
  6105. .post(this.$store.state.api + "restoreWork", params)
  6106. .then((res) => {
  6107. this.$message({
  6108. message: "恢复成功",
  6109. type: "success",
  6110. });
  6111. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6112. this.unitJson = unitJson;
  6113. this.$forceUpdate();
  6114. setTimeout(() => {
  6115. if (this.unitIndex != unitIndex2) {
  6116. this.isDelete = 2;
  6117. this.unitIndex = unitIndex2;
  6118. }
  6119. }, 0);
  6120. this.timer = setTimeout(() => {
  6121. this.seleteCourseUpdate();
  6122. }, 1000);
  6123. })
  6124. .catch((err) => {
  6125. this.$message.error("网络不佳");
  6126. console.error(err);
  6127. });
  6128. },
  6129. getTypeName() {
  6130. console.log(this.courseTypeId);
  6131. this.$forceUpdate();
  6132. },
  6133. selectType() {
  6134. this.ajax
  6135. .get(this.$store.state.api + "selectType")
  6136. .then((res) => {
  6137. this.CourseType = res.data;
  6138. for (var i = 0; i < res.data[0].length; i++) {
  6139. if (!this.cid) {
  6140. this.courseTypeId[res.data[0][i].id] = "";
  6141. }
  6142. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6143. if (res.data[0][i].name == "栏目") {
  6144. this.CourseType[0][i].name = "主题";
  6145. }
  6146. }
  6147. for (var j = 0; j < res.data[1].length; j++) {
  6148. if (res.data[0][i].id == res.data[1][j].pid) {
  6149. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6150. this.CourseTypeJson[res.data[0][i].id] = [];
  6151. }
  6152. // this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6153. }
  6154. }
  6155. }
  6156. this.selectTypeByOid();
  6157. this.selectTypeByOrg();
  6158. })
  6159. .catch((err) => {
  6160. console.error(err);
  6161. });
  6162. },
  6163. selectTypeByOid() {
  6164. let params = {
  6165. oid: this.oid,
  6166. };
  6167. this.ajax
  6168. .get(this.$store.state.api + "selectTypeByOid", params)
  6169. .then((res) => {
  6170. for (var i = 0; i < res.data[0].length; i++) {
  6171. for (var j = 0; j < res.data[1].length; j++) {
  6172. if (res.data[0][i].id == res.data[1][j].pid) {
  6173. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6174. this.CourseTypeJson[res.data[0][i].id] = [];
  6175. }
  6176. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6177. }
  6178. }
  6179. }
  6180. })
  6181. .catch((err) => {
  6182. console.error(err);
  6183. });
  6184. },
  6185. selectTypeByOrg() {
  6186. let params = {
  6187. oid: this.org,
  6188. };
  6189. this.ajax
  6190. .get(this.$store.state.api + "selectTypeByOrg", params)
  6191. .then((res) => {
  6192. for (var i = 0; i < res.data[0].length; i++) {
  6193. for (var j = 0; j < res.data[1].length; j++) {
  6194. if (res.data[0][i].id == res.data[1][j].pid) {
  6195. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6196. this.CourseTypeJson[res.data[0][i].id] = [];
  6197. }
  6198. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6199. }
  6200. }
  6201. }
  6202. this.$forceUpdate();
  6203. })
  6204. .catch((err) => {
  6205. console.error(err);
  6206. });
  6207. },
  6208. OtherMb(type) {
  6209. this.typeMode = type;
  6210. setTimeout(() => {
  6211. this.checkEva(this.checkId);
  6212. }, 0);
  6213. },
  6214. checkEva(id) {
  6215. this.selectEva();
  6216. this.evalua = id;
  6217. this.checkId = id;
  6218. if (this.evalua != "") {
  6219. for (var i = 0; i < this.evaJuri.length; i++) {
  6220. if (this.evalua == this.evaJuri[i].id) {
  6221. this.eTitle = this.evaJuri[i].title;
  6222. this.eJson = JSON.parse(this.evaJuri[i].content);
  6223. }
  6224. }
  6225. this.data.data = [];
  6226. this.$forceUpdate();
  6227. setTimeout(() => {
  6228. this.setMindData();
  6229. }, 500);
  6230. }
  6231. },
  6232. selectEva() {
  6233. let params = {
  6234. oid: this.oid,
  6235. };
  6236. this.ajax
  6237. .get(this.$store.state.api + "selectAllEvaluation", params)
  6238. .then((res) => {
  6239. this.evaJuri = res.data[0];
  6240. })
  6241. .catch((err) => {
  6242. console.error(err);
  6243. });
  6244. },
  6245. setMindData() {
  6246. let targetArray = [];
  6247. this.data.data = [];
  6248. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6249. let _eJson = Object.keys(this.eJson);
  6250. let _e = this.eJson;
  6251. for (let i = 0; i < _eJson.length; i++) {
  6252. let element = _e[_eJson[i]];
  6253. this.data.data.push({
  6254. id: element.id,
  6255. parentid: "root",
  6256. topic: element.name,
  6257. });
  6258. targetArray.push({
  6259. id: element.id,
  6260. parentid: "root",
  6261. name: element.name,
  6262. });
  6263. let _eJsonc = Object.keys(element.child);
  6264. let _e2 = element.child;
  6265. for (let j = 0; j < _eJsonc.length; j++) {
  6266. let _ec = _e2[_eJsonc[j]];
  6267. this.data.data.push({
  6268. id: _ec.id,
  6269. parentid: element.id,
  6270. topic: _ec.name,
  6271. });
  6272. targetArray.push({
  6273. id: _ec.id,
  6274. parentid: element.id,
  6275. name: _ec.name,
  6276. });
  6277. let _eJsonz = Object.keys(_ec.child);
  6278. let _e3 = _ec.child;
  6279. for (let z = 0; z < _eJsonz.length; z++) {
  6280. let _ez = _e3[_eJsonz[z]];
  6281. this.data.data.push({
  6282. id: _ez.id,
  6283. parentid: _ec.id,
  6284. topic: _ez.name,
  6285. });
  6286. targetArray.push({
  6287. id: _ez.id,
  6288. parentid: _ec.id,
  6289. name: _ez.name,
  6290. });
  6291. }
  6292. }
  6293. }
  6294. this.targetArray = targetArray;
  6295. this.$forceUpdate();
  6296. },
  6297. /*添加评价 */
  6298. addEList(index, tIndex) {
  6299. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  6300. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  6301. value: "",
  6302. detail: "",
  6303. score: 5,
  6304. })
  6305. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  6306. { value: "", detail: "", score: 5 },
  6307. ]);
  6308. this.$forceUpdate();
  6309. },
  6310. forceUpdate() {
  6311. this.$forceUpdate();
  6312. },
  6313. deletEList(index, tIndex, eIndex) {
  6314. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  6315. eIndex,
  6316. 1
  6317. );
  6318. this.$forceUpdate();
  6319. },
  6320. getChoosePic(t) {
  6321. this.chooseType = t;
  6322. this.getAllBanner();
  6323. },
  6324. getAllBanner() {
  6325. this.sysPicVisible = true;
  6326. let params = {
  6327. t: this.chooseType,
  6328. };
  6329. this.ajax
  6330. .get(this.$store.state.api + "selectAllBanner", params)
  6331. .then((res) => {
  6332. this.sysPic = res.data[0];
  6333. })
  6334. .catch((err) => {
  6335. console.error(err);
  6336. });
  6337. },
  6338. deleteSysPic() {
  6339. this.cover = [];
  6340. this.isSysPic = false;
  6341. },
  6342. deleteSelectPic() {
  6343. this.selectJson.url = "";
  6344. },
  6345. setEListStar() {
  6346. this.$forceUpdate();
  6347. },
  6348. deletRateList(i) {
  6349. this.rateJson.splice(i, 1);
  6350. },
  6351. addRateList() {
  6352. this.rateJson.push({ detail: "", score: 5, value: "" });
  6353. },
  6354. addSt() {
  6355. this.sentenceList.push({
  6356. sentenceTitle: "",
  6357. addSentence: [],
  6358. rightAnswer: [],
  6359. });
  6360. },
  6361. addSen(i) {
  6362. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  6363. // this.isPushTitleList.push(this.sentenceTitle);
  6364. this.sentenceList[i].sentenceTitle = "";
  6365. },
  6366. setRightAnswer(s, i, j) {
  6367. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  6368. this.sentenceList[i].rightAnswer.push(s);
  6369. }
  6370. },
  6371. returnCard(r, i, j) {
  6372. this.sentenceList[i].rightAnswer.splice(j, 1);
  6373. },
  6374. addSentenceTool() {
  6375. for (var i = 0; i < this.sentenceList.length; i++) {
  6376. if (this.sentenceList[i].rightAnswer.length == 0) {
  6377. this.$message.error("请将信息填写完整!");
  6378. return;
  6379. }
  6380. if (
  6381. this.sentenceList[i].addSentence.length !=
  6382. this.sentenceList[i].rightAnswer.length
  6383. ) {
  6384. this.$message.error("请将信息填写完整!");
  6385. return;
  6386. }
  6387. }
  6388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6389. this.taskCount
  6390. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  6391. this.sentenceList = [
  6392. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6393. ];
  6394. this.dialogVisibleSentence = false;
  6395. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6396. // itemTaskIndex
  6397. // ].toolChoose[toolIndex].tool = [];
  6398. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6399. // itemTaskIndex
  6400. // ].toolChoose[toolIndex].tool.push(i);
  6401. if (
  6402. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6403. .toolChoose[this.toolIndex].tool != 47
  6404. ) {
  6405. this.addTools(47, this.taskCount, this.toolIndex);
  6406. }
  6407. },
  6408. addTableJson() {
  6409. if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  6410. this.$message.error("请将信息填写完整!");
  6411. return;
  6412. }
  6413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6414. this.taskCount
  6415. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  6416. this.tableJson = [{ text: "" }];
  6417. this.dialogVisibleTable = false;
  6418. if (
  6419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6420. .toolChoose[this.toolIndex].tool != 48
  6421. ) {
  6422. this.addTools(48, this.taskCount, this.toolIndex);
  6423. }
  6424. },
  6425. goToTask(i) {
  6426. document.getElementsByClassName("rightBox")[0].scrollTop =
  6427. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  6428. this.isClickColor = i + 1;
  6429. },
  6430. },
  6431. beforeDestroy() {
  6432. clearTimeout(this.timer);
  6433. this.timer = null;
  6434. },
  6435. beforeRouteLeave(to, from, next) {
  6436. clearTimeout(this.timer);
  6437. this.timer = null;
  6438. next();
  6439. },
  6440. created() {
  6441. this.getStudent();
  6442. this.getTeacher();
  6443. this.getClass();
  6444. this.getTemplate();
  6445. this.selectType();
  6446. this.selectEva();
  6447. this.loading = false;
  6448. setTimeout(() => {
  6449. this.selectCourseDetail();
  6450. this.selectEva();
  6451. }, 500);
  6452. },
  6453. };
  6454. </script>
  6455. <style scoped>
  6456. @media screen and (max-width: 1280px) {
  6457. .mbCss {
  6458. flex-direction: column !important;
  6459. }
  6460. .pjCss {
  6461. width: 100% !important;
  6462. }
  6463. .evaCss {
  6464. width: 100% !important;
  6465. }
  6466. }
  6467. .dialog_diy >>> .el-dialog__header {
  6468. background: #3c3c3c !important;
  6469. padding: 15px 20px;
  6470. }
  6471. .dialog_diy >>> .el-dialog__title {
  6472. color: #fff;
  6473. }
  6474. .dialog_diy >>> .el-dialog__headerbtn {
  6475. top: 19px;
  6476. }
  6477. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  6478. color: #fff;
  6479. }
  6480. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  6481. color: #fff;
  6482. }
  6483. .dialog_diy >>> .el-dialog__body,
  6484. .dialog_diy >>> .el-dialog__footer {
  6485. background: #fafafa;
  6486. }
  6487. .dialog_diy3 >>> .el-dialog__body,
  6488. .dialog_diy3 >>> .el-dialog__footer {
  6489. background: #eee !important;
  6490. }
  6491. .dialog_diy3 >>> .el-dialog__body {
  6492. padding: 20px 20px;
  6493. }
  6494. .left {
  6495. border-right: 1px solid rgb(60, 94, 143);
  6496. display: flex;
  6497. flex-direction: column;
  6498. align-items: center;
  6499. min-height: 600px;
  6500. width: 385px;
  6501. height: 80%;
  6502. }
  6503. .tips {
  6504. color: rgb(128, 128, 128);
  6505. font-size: 12px;
  6506. width: 270px;
  6507. margin: 40px;
  6508. }
  6509. .pb_content {
  6510. height: 100% !important;
  6511. /* margin: 0 20px 0 20px; */
  6512. }
  6513. .pb_content_body {
  6514. width: 100% !important;
  6515. height: 100%;
  6516. }
  6517. .info_solid {
  6518. width: 270px;
  6519. height: 30px;
  6520. border-left: 1px solid #bdbdbd;
  6521. margin: 10px 0px 10px 30px;
  6522. }
  6523. .info_steps {
  6524. width: 270px;
  6525. font-size: 0.875rem;
  6526. display: flex;
  6527. align-items: center;
  6528. }
  6529. .info_steps span:nth-child(1) {
  6530. width: 30px;
  6531. height: 30px;
  6532. background: rgba(0, 0, 0, 0.38);
  6533. display: block;
  6534. color: #fff;
  6535. border-radius: 40px;
  6536. text-align: center;
  6537. line-height: 30px;
  6538. }
  6539. .steps_active {
  6540. background: #3d67bc !important;
  6541. }
  6542. .info_steps span:nth-child(2) {
  6543. margin-left: 5px;
  6544. }
  6545. .right {
  6546. height: 100%;
  6547. width: 100%;
  6548. display: flex;
  6549. overflow: hidden;
  6550. }
  6551. .basic_box {
  6552. margin: 0 auto;
  6553. position: relative;
  6554. padding: 0 20px 0 20px;
  6555. }
  6556. .basic_box_success {
  6557. width: 100%;
  6558. min-height: 455px;
  6559. padding: 50px 0;
  6560. position: relative;
  6561. text-align: center;
  6562. border-bottom: 1px solid #bfbfbf;
  6563. box-sizing: border-box;
  6564. display: flex;
  6565. align-items: center;
  6566. flex-direction: column;
  6567. justify-content: center;
  6568. }
  6569. .info_title {
  6570. font-size: 1.5em;
  6571. margin-right: 25px;
  6572. /* margin: 20px 30px 20px 30px; */
  6573. }
  6574. .bInfo_title {
  6575. text-align: left;
  6576. margin: 10px 0;
  6577. }
  6578. .small_title {
  6579. font-size: 14px;
  6580. line-height: 40px;
  6581. }
  6582. .chapter_beizhu {
  6583. font-size: 12px;
  6584. font-weight: bold;
  6585. float: right;
  6586. color: rgb(128, 128, 128);
  6587. margin-top: 5px;
  6588. }
  6589. .chapter_uploadBox1 {
  6590. text-align: left;
  6591. background-color: rgb(242, 242, 242);
  6592. width: 100%;
  6593. height: 67px;
  6594. padding: 0px 15px;
  6595. border-radius: 8px;
  6596. overflow: hidden;
  6597. font-size: 16px;
  6598. box-sizing: border-box;
  6599. position: relative;
  6600. }
  6601. .chapter_add {
  6602. width: 100%;
  6603. height: 32px;
  6604. margin-top: 15px;
  6605. cursor: pointer;
  6606. }
  6607. .chapter_add_l {
  6608. margin-left: 5px;
  6609. width: 30px;
  6610. height: 30px;
  6611. float: left;
  6612. border: 1px solid #aaa;
  6613. color: #aaa;
  6614. border-radius: 50%;
  6615. font-size: 25px;
  6616. text-align: center;
  6617. }
  6618. .chapter_add_r {
  6619. font-size: 18px;
  6620. height: 40px;
  6621. line-height: 30px;
  6622. text-indent: 10px;
  6623. color: #aaa;
  6624. }
  6625. .chapter_add_r span {
  6626. font-size: 12px;
  6627. color: rgb(204, 204, 204);
  6628. }
  6629. .chapter_add_input {
  6630. display: none;
  6631. }
  6632. .line {
  6633. width: 85%;
  6634. margin: 0 auto;
  6635. border-top: 1px solid #e5e5e5;
  6636. margin-top: 20px;
  6637. }
  6638. .info_btnBox {
  6639. width: 100%;
  6640. display: flex;
  6641. justify-content: space-evenly;
  6642. margin: 10px 0 10px 0;
  6643. }
  6644. .info_btn,
  6645. .teacherWord {
  6646. color: #fff;
  6647. background-color: #0f7eff;
  6648. padding: 8px 24px;
  6649. font-size: 0.9375rem;
  6650. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  6651. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  6652. min-width: 64px;
  6653. font-weight: 500;
  6654. border-radius: 4px;
  6655. box-sizing: border-box;
  6656. border: none;
  6657. cursor: pointer;
  6658. }
  6659. .teacherWord {
  6660. width: 105px !important;
  6661. text-align: center !important;
  6662. line-height: 36px !important;
  6663. padding: 0 !important;
  6664. font-size: 14px !important;
  6665. margin: 10px 0 !important;
  6666. }
  6667. .wordTeacher {
  6668. display: flex;
  6669. flex-direction: column;
  6670. width: 20%;
  6671. text-align: center;
  6672. font-size: 14px;
  6673. margin: 30px 30px 0 10px;
  6674. background: #fff;
  6675. position: relative;
  6676. border-radius: 5px;
  6677. padding: 25px 0px;
  6678. }
  6679. .wordPic {
  6680. margin: 0 auto;
  6681. width: 60px;
  6682. height: 60px;
  6683. cursor: pointer;
  6684. }
  6685. .deleteWord {
  6686. width: 22px;
  6687. height: 22px;
  6688. position: absolute;
  6689. right: 5px;
  6690. top: -15px;
  6691. cursor: pointer;
  6692. display: none;
  6693. z-index: 999;
  6694. }
  6695. .wordPic > img,
  6696. .deleteWord > img,
  6697. .addToolImg > img {
  6698. width: 100%;
  6699. height: 100%;
  6700. }
  6701. .info_btn:hover {
  6702. background-color: #4f7cd5 !important;
  6703. }
  6704. .cru_selectBox {
  6705. display: flex;
  6706. margin: 24px 0 10px;
  6707. flex-wrap: nowrap;
  6708. white-space: nowrap;
  6709. overflow: auto;
  6710. position: relative;
  6711. height: 47px;
  6712. }
  6713. .cru_selectBox::-webkit-scrollbar {
  6714. /*滚动条整体样式*/
  6715. width: 6px;
  6716. /*高宽分别对应横竖滚动条的尺寸*/
  6717. height: 6px;
  6718. }
  6719. /*定义滚动条轨道 内阴影+圆角*/
  6720. .cru_selectBox::-webkit-scrollbar-track {
  6721. border-radius: 10px;
  6722. background-color: #eee;
  6723. }
  6724. /*定义滑块 内阴影+圆角*/
  6725. .cru_selectBox::-webkit-scrollbar-thumb {
  6726. border-radius: 10px;
  6727. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  6728. background-color: rgba(0, 0, 0, 0.1);
  6729. }
  6730. .cru_line {
  6731. position: absolute;
  6732. bottom: 0px;
  6733. transition: all 0.5s;
  6734. left: 0px;
  6735. width: 125px;
  6736. margin-left: -25px;
  6737. }
  6738. .cru_select {
  6739. font-size: 21px;
  6740. margin-right: 37px;
  6741. margin-left: 5px;
  6742. cursor: pointer;
  6743. color: #a6a6a6;
  6744. }
  6745. .cru_selected {
  6746. color: #0b7fc2 !important;
  6747. }
  6748. .chapter_contentbox {
  6749. display: flex;
  6750. align-items: center;
  6751. margin-top: 15px;
  6752. }
  6753. .chapter_contentbox div:nth-child(1) {
  6754. /* width: 150px; */
  6755. margin: 0px;
  6756. /* font-size: 2em; */
  6757. color: black;
  6758. display: block;
  6759. white-space: nowrap;
  6760. overflow: hidden;
  6761. text-overflow: ellipsis;
  6762. /* font-weight: 600; */
  6763. margin-right: 20px;
  6764. font-size: 18px;
  6765. }
  6766. .chapter_contentbox div:nth-child(2) {
  6767. width: 380px;
  6768. }
  6769. .chapter_contentbox div:nth-child(3),
  6770. .remove {
  6771. background-image: url("../../assets/remove.png");
  6772. cursor: pointer;
  6773. opacity: 0.5;
  6774. width: 40px;
  6775. height: 50px;
  6776. background-repeat: no-repeat;
  6777. background-position: 5px 10px;
  6778. }
  6779. .remove1 {
  6780. background-image: url("../../assets/remove1.png");
  6781. background-repeat: no-repeat;
  6782. background-position: 5px 10px;
  6783. width: 40px;
  6784. height: 50px;
  6785. cursor: pointer;
  6786. }
  6787. .binfo_input {
  6788. font: inherit;
  6789. color: currentColor;
  6790. width: 100%;
  6791. margin: 0;
  6792. /* padding: 15px 14px; */
  6793. padding: 8px 14px;
  6794. display: block;
  6795. min-width: 0;
  6796. outline: none;
  6797. box-sizing: content-box;
  6798. background: none;
  6799. border: 1px solid rgba(0, 0, 0, 0.23);
  6800. border-radius: 4px;
  6801. box-sizing: border-box;
  6802. background: #fff;
  6803. font-size: 18px;
  6804. }
  6805. .binfo_input:focus-visible {
  6806. border: 1px solid rgba(61, 103, 188);
  6807. }
  6808. .time {
  6809. display: flex;
  6810. margin: 35px 0 80px 0;
  6811. }
  6812. .chapter_btnbox {
  6813. width: 160px;
  6814. border-radius: 5px;
  6815. border: 2px dashed gray;
  6816. display: flex;
  6817. padding: 8px 50px;
  6818. align-items: center;
  6819. justify-content: center;
  6820. margin: 30px auto 0;
  6821. cursor: pointer;
  6822. }
  6823. .icon_add {
  6824. position: relative;
  6825. width: 24px;
  6826. padding-top: 20px;
  6827. border-radius: 100%;
  6828. border-width: 2px;
  6829. border-style: solid;
  6830. border-color: gray;
  6831. }
  6832. .icon_add i:nth-child(1) {
  6833. position: absolute;
  6834. left: 50%;
  6835. top: 50%;
  6836. height: 60%;
  6837. transform: translate(-50%, -50%);
  6838. border-width: 1px;
  6839. border-style: solid;
  6840. border-color: inherit;
  6841. }
  6842. .icon_add i:nth-child(2) {
  6843. position: absolute;
  6844. top: 50%;
  6845. left: 50%;
  6846. width: 60%;
  6847. transform: translate(-50%, -50%);
  6848. border-width: 1px;
  6849. border-style: solid;
  6850. border-color: inherit;
  6851. }
  6852. .chapter_btn_w {
  6853. font-size: 0.9375rem;
  6854. font-weight: bold;
  6855. color: gray;
  6856. margin-left: 20px;
  6857. }
  6858. .disUoloadSty >>> .el-icon-plus {
  6859. display: none !important;
  6860. /* 上传按钮隐藏 */
  6861. }
  6862. .imgLeft {
  6863. margin: 15px 0;
  6864. }
  6865. .add_info_box {
  6866. margin: 20px 0;
  6867. }
  6868. .add_info_box button {
  6869. margin: 0 10px 10px 0;
  6870. }
  6871. .add_chapters_box {
  6872. text-align: left;
  6873. background-color: rgb(232 234 237);
  6874. width: 100%;
  6875. padding: 0px 15px;
  6876. border-radius: 15px;
  6877. font-size: 16px;
  6878. box-sizing: border-box;
  6879. position: relative;
  6880. padding: 0 10px 5px 10px;
  6881. height: 185px;
  6882. overflow-y: auto;
  6883. overflow-x: hidden;
  6884. }
  6885. .homework_box {
  6886. display: flex;
  6887. align-items: flex-start;
  6888. flex-wrap: wrap;
  6889. margin: 15px 0 0 0;
  6890. flex-direction: column;
  6891. align-content: flex-start;
  6892. }
  6893. .course_homework {
  6894. display: flex;
  6895. justify-content: center;
  6896. flex-direction: row;
  6897. align-items: center;
  6898. margin: 0 10px 0 0;
  6899. }
  6900. .course_homework >>> .el-input__inner {
  6901. width: 140px;
  6902. margin-left: 15px;
  6903. }
  6904. .chapter_upload_move {
  6905. position: relative;
  6906. background-color: #fff;
  6907. position: absolute;
  6908. width: 100%;
  6909. top: 0px;
  6910. left: 0px;
  6911. border: 1px solid #eee;
  6912. border-radius: 5px;
  6913. transition: width 2s;
  6914. -moz-transition: width 2s;
  6915. -webkit-transition: width 2s;
  6916. -o-transition: width 2s;
  6917. }
  6918. .chapter_upload_l_i {
  6919. background-image: url("../../assets/icon.png");
  6920. background-position: 3px -165px;
  6921. width: 30px;
  6922. height: 30px;
  6923. margin: 10px auto 0 auto;
  6924. }
  6925. .left_first {
  6926. display: flex;
  6927. flex-direction: column;
  6928. flex-wrap: nowrap;
  6929. }
  6930. .right_first {
  6931. width: 100%;
  6932. height: 100%;
  6933. margin-top: 15px;
  6934. }
  6935. .right_title {
  6936. height: 30px;
  6937. padding: 15px 0 15px 20px;
  6938. border-bottom: 1px solid #f2f2f2;
  6939. font-size: 1.5em;
  6940. font-weight: bold;
  6941. color: #0f7eff;
  6942. margin: 0 auto;
  6943. }
  6944. .people {
  6945. border: 1px solid rgb(229 229 229);
  6946. height: 495px;
  6947. border-radius: 5px;
  6948. width: 100%;
  6949. overflow: auto;
  6950. }
  6951. .people_top {
  6952. display: flex;
  6953. width: 100%;
  6954. /* justify-content: space-between; */
  6955. /* align-items: center; */
  6956. flex-direction: column;
  6957. padding: 10px 25px 0;
  6958. box-sizing: border-box;
  6959. }
  6960. .people_nav,
  6961. .people_top_right {
  6962. /* padding: 20px 0 0 20px; */
  6963. }
  6964. .people_top_right {
  6965. height: 40px;
  6966. margin-bottom: 10px;
  6967. }
  6968. .people_search {
  6969. display: flex;
  6970. position: relative;
  6971. }
  6972. .people_search >>> .el-input__inner {
  6973. /* height: 25px; */
  6974. width: 95%;
  6975. }
  6976. .search_img {
  6977. width: 20px;
  6978. height: 20px;
  6979. position: absolute;
  6980. right: 30px;
  6981. top: 50%;
  6982. transform: translateY(-50%);
  6983. }
  6984. .search_img > img {
  6985. width: 100%;
  6986. height: 100%;
  6987. }
  6988. .people_name {
  6989. display: flex;
  6990. justify-content: flex-start;
  6991. padding: 20px 0 0 25px;
  6992. flex-direction: column;
  6993. flex-wrap: wrap;
  6994. }
  6995. .people_name >>> .el-checkbox {
  6996. width: 100%;
  6997. display: flex;
  6998. align-items: center;
  6999. margin-bottom: 10px;
  7000. }
  7001. .people_name >>> .el-checkbox__label {
  7002. text-overflow: ellipsis;
  7003. overflow: hidden;
  7004. width: 100%;
  7005. }
  7006. .right_img {
  7007. width: 150px;
  7008. height: 150px;
  7009. margin: 0 auto;
  7010. }
  7011. .right_img > img {
  7012. width: 100%;
  7013. height: 100%;
  7014. }
  7015. .number {
  7016. margin-top: 20px;
  7017. color: #4aa6ff;
  7018. text-decoration: underline;
  7019. }
  7020. .success_button {
  7021. display: flex;
  7022. text-align: center;
  7023. margin: 5% 0 auto;
  7024. flex-direction: row;
  7025. justify-content: center;
  7026. }
  7027. .look_course {
  7028. margin-right: 40px;
  7029. background: #3d67bc;
  7030. width: 200px;
  7031. height: 35px;
  7032. line-height: 35px;
  7033. color: #fff;
  7034. text-align: center;
  7035. font-size: 14px;
  7036. border-radius: 5px;
  7037. cursor: pointer;
  7038. }
  7039. .attend_others {
  7040. width: 250px;
  7041. background: #4fb13c;
  7042. height: 35px;
  7043. line-height: 35px;
  7044. color: #fff;
  7045. text-align: center;
  7046. font-size: 14px;
  7047. border-radius: 5px;
  7048. cursor: pointer;
  7049. }
  7050. .dialog_diy2 >>> .el-dialog__body {
  7051. text-align: center;
  7052. }
  7053. .write_togother {
  7054. position: absolute;
  7055. right: 45px;
  7056. display: flex;
  7057. top: 5%;
  7058. }
  7059. .write_people {
  7060. font-size: 14px;
  7061. line-height: 50px;
  7062. padding-right: 10px;
  7063. }
  7064. .end_write {
  7065. background: #3d67bc;
  7066. color: #fff;
  7067. width: 100px;
  7068. height: 35px;
  7069. line-height: 35px;
  7070. text-align: center;
  7071. font-size: 14px;
  7072. border-radius: 5px;
  7073. cursor: pointer;
  7074. }
  7075. .chapter_upload {
  7076. height: 50px;
  7077. margin-top: 12px;
  7078. position: relative;
  7079. display: flex;
  7080. align-items: center;
  7081. width: 100%;
  7082. min-height: 50px;
  7083. }
  7084. .chapter_upload_t {
  7085. background-color: #fff;
  7086. position: absolute;
  7087. height: 100%;
  7088. top: 0px;
  7089. left: 0px;
  7090. border-radius: 40px;
  7091. box-sizing: border-box;
  7092. box-shadow: 0 0 3px 3px #dfdfdf;
  7093. }
  7094. .chapter_upload_o {
  7095. width: 100%;
  7096. height: 100%;
  7097. position: relative;
  7098. z-index: 1;
  7099. }
  7100. .chapter_upload_ic {
  7101. height: 30px;
  7102. float: right;
  7103. }
  7104. .chapter_upload_ic_l {
  7105. width: 50px;
  7106. height: 50px;
  7107. float: left;
  7108. }
  7109. .chapter_upload_ic_l div {
  7110. width: 30px;
  7111. height: 35px;
  7112. background: url("../../assets/icon/icon.png");
  7113. }
  7114. .chapter_upload_ic_r {
  7115. width: 50px;
  7116. height: 50px;
  7117. float: left;
  7118. margin-left: 0px;
  7119. display: flex;
  7120. align-items: center;
  7121. }
  7122. .chapter_upload_ic_r div {
  7123. width: 25px;
  7124. height: 25px;
  7125. background-image: url("../../assets/delete.png");
  7126. background-size: 100% 100%;
  7127. }
  7128. .chapter_upload_n {
  7129. display: flex;
  7130. text-indent: 10px;
  7131. text-decoration: none;
  7132. text-overflow: ellipsis;
  7133. white-space: nowrap;
  7134. overflow: hidden;
  7135. width: 55%;
  7136. margin-left: 10px;
  7137. cursor: pointer;
  7138. margin-top: 2px;
  7139. }
  7140. .chapter_upload_l_i1 {
  7141. background-image: url("../../assets/icon/video.png");
  7142. width: 28px;
  7143. height: 28px;
  7144. background-size: 100% 100%;
  7145. }
  7146. .chapter_upload_l_i5 {
  7147. background-image: url("../../assets/icon/word.png");
  7148. width: 24px;
  7149. height: 24px;
  7150. background-size: 100% 100%;
  7151. }
  7152. .chapter_upload_l_i8 {
  7153. background-image: url("../../assets/icon/line.png");
  7154. width: 24px;
  7155. height: 24px;
  7156. background-size: 100% 100%;
  7157. }
  7158. .chapter_upload_ud {
  7159. display: flex;
  7160. flex-direction: column;
  7161. margin-left: 5px;
  7162. justify-content: center;
  7163. }
  7164. .chapter_upload_up {
  7165. background-image: url("../../assets/icon/up.png");
  7166. width: 17px;
  7167. height: 15px;
  7168. background-size: 100% 100%;
  7169. cursor: pointer;
  7170. }
  7171. .chapter_upload_down {
  7172. background-image: url("../../assets/icon/down.png");
  7173. width: 17px;
  7174. height: 15px;
  7175. margin: 2px auto 0 auto;
  7176. background-size: 100% 100%;
  7177. cursor: pointer;
  7178. }
  7179. .addWordStyle {
  7180. display: flex;
  7181. flex-direction: row;
  7182. justify-content: flex-start;
  7183. overflow-x: auto;
  7184. white-space: nowrap;
  7185. flex-wrap: wrap;
  7186. }
  7187. /* table 样式 */
  7188. .cont >>> table {
  7189. border-top: 1px solid #ccc;
  7190. border-left: 1px solid #ccc;
  7191. }
  7192. .cont >>> table td,
  7193. .cont >>> table th {
  7194. border-bottom: 1px solid #ccc;
  7195. border-right: 1px solid #ccc;
  7196. padding: 20px 5px;
  7197. }
  7198. .cont >>> table th {
  7199. border-bottom: 2px solid #ccc;
  7200. text-align: center;
  7201. }
  7202. /* blockquote 样式 */
  7203. .cont >>> blockquote {
  7204. display: block;
  7205. border-left: 8px solid #d0e5f2;
  7206. padding: 5px 10px;
  7207. margin: 10px 0;
  7208. line-height: 1.4;
  7209. font-size: 100%;
  7210. background-color: #f1f1f1;
  7211. }
  7212. /* code 样式 */
  7213. .cont >>> code {
  7214. display: inline-block;
  7215. *display: inline;
  7216. *zoom: 1;
  7217. background-color: #f1f1f1;
  7218. border-radius: 3px;
  7219. padding: 3px 5px;
  7220. margin: 0 3px;
  7221. }
  7222. .cont >>> pre code {
  7223. display: block;
  7224. }
  7225. /* ul ol 样式 */
  7226. .cont >>> ul,
  7227. ol {
  7228. margin: 10px 0 10px 20px;
  7229. }
  7230. .wordbox {
  7231. display: flex;
  7232. flex-wrap: wrap;
  7233. cursor: pointer;
  7234. width: 100%;
  7235. }
  7236. .checkword {
  7237. width: 22px;
  7238. height: 22px;
  7239. margin: 10px auto 0;
  7240. cursor: pointer;
  7241. }
  7242. .checkword img {
  7243. width: 100%;
  7244. }
  7245. .stepBg {
  7246. display: flex;
  7247. flex-direction: column;
  7248. justify-content: space-between;
  7249. align-items: center;
  7250. background: #fff;
  7251. width: 300px;
  7252. margin: 0 25px 0 0;
  7253. }
  7254. .stepTop {
  7255. min-width: 300px;
  7256. width: 300px;
  7257. /* border-radius: 10px; */
  7258. display: flex;
  7259. flex-direction: column;
  7260. justify-content: flex-start;
  7261. align-items: center;
  7262. flex-wrap: nowrap;
  7263. background: #fff;
  7264. /* top: 18%; */
  7265. }
  7266. .stepTop > div {
  7267. height: 80px;
  7268. width: 85%;
  7269. cursor: pointer;
  7270. margin: 10px 0;
  7271. border-radius: 10px;
  7272. }
  7273. .first,
  7274. .second,
  7275. .third,
  7276. .four {
  7277. background: #4a83d0;
  7278. height: 90px;
  7279. color: #fff;
  7280. display: flex;
  7281. flex-direction: row;
  7282. align-items: center;
  7283. justify-content: center;
  7284. }
  7285. .first > div:nth-child(1),
  7286. .second > div:nth-child(1),
  7287. .third > div:nth-child(1),
  7288. .four > div:nth-child(1) {
  7289. margin: 5px 10px 0 0;
  7290. width: 2rem;
  7291. }
  7292. .firstNo,
  7293. .secondNo,
  7294. .thirdNo,
  7295. .fourNo {
  7296. background: #e7e7e7;
  7297. color: #adadad;
  7298. display: flex;
  7299. flex-direction: row;
  7300. align-items: center;
  7301. justify-content: center;
  7302. }
  7303. .firstNo > div:nth-child(1),
  7304. .secondNo > div:nth-child(1),
  7305. .thirdNo > div:nth-child(1),
  7306. .fourNo > div:nth-child(1) {
  7307. margin: 5px 10px 0 0;
  7308. width: 2rem;
  7309. }
  7310. .uploadWidth >>> .el-upload {
  7311. width: 60px;
  7312. height: 60px;
  7313. position: relative;
  7314. }
  7315. .addPeople {
  7316. background: #fa6060;
  7317. width: 150px;
  7318. height: 40px;
  7319. color: #fff;
  7320. border-radius: 5px;
  7321. text-align: center;
  7322. line-height: 40px;
  7323. font-size: 14px;
  7324. cursor: pointer;
  7325. margin-top: 20px;
  7326. }
  7327. .kcImg {
  7328. width: 60px;
  7329. margin-left: 10px;
  7330. }
  7331. .zyImg {
  7332. width: 55px;
  7333. margin: 0 10px;
  7334. }
  7335. .deleteZy {
  7336. width: 20px;
  7337. position: absolute;
  7338. top: 5px;
  7339. right: 5px;
  7340. cursor: pointer;
  7341. }
  7342. .kcImg > img,
  7343. .zyImg > img,
  7344. .deleteZy > img {
  7345. width: 100%;
  7346. height: 100%;
  7347. }
  7348. .zyBox {
  7349. display: flex;
  7350. flex-direction: row;
  7351. align-items: center;
  7352. background: #67d37d;
  7353. color: #fff;
  7354. width: 210px;
  7355. margin: 20px 20px 0 0;
  7356. border-radius: 10px;
  7357. height: 70px;
  7358. position: relative;
  7359. }
  7360. .upCss {
  7361. display: flex;
  7362. flex-direction: row;
  7363. justify-content: flex-start;
  7364. }
  7365. .upCss >>> .el-icon-plus {
  7366. position: none !important;
  7367. width: 200px;
  7368. height: 100px;
  7369. display: flex;
  7370. flex-wrap: nowrap;
  7371. flex-direction: column;
  7372. align-items: center;
  7373. justify-content: center;
  7374. border: 1px dashed #ccc;
  7375. min-width: 78px;
  7376. min-height: 100px;
  7377. z-index: 999;
  7378. }
  7379. .upCss >>> .el-upload-list__item-name {
  7380. width: 100px;
  7381. white-space: nowrap;
  7382. overflow: hidden;
  7383. text-overflow: ellipsis;
  7384. }
  7385. .addStageImg {
  7386. min-width: 25px;
  7387. min-height: 25px;
  7388. width: 25px;
  7389. height: 25px;
  7390. cursor: pointer;
  7391. }
  7392. .addHW {
  7393. width: 28px;
  7394. height: 28px;
  7395. cursor: pointer;
  7396. }
  7397. .addStageImg > img,
  7398. .addHW > img {
  7399. width: 100%;
  7400. height: 100%;
  7401. }
  7402. .addNewPP >>> .el-dialog__body {
  7403. padding: 5px 20px;
  7404. }
  7405. .isHeight {
  7406. height: 680px;
  7407. }
  7408. .toolChoose {
  7409. display: flex;
  7410. /* width: 100%; */
  7411. flex-direction: row;
  7412. flex-wrap: wrap;
  7413. }
  7414. .tool {
  7415. display: flex;
  7416. flex-direction: column;
  7417. flex-wrap: nowrap;
  7418. width: fit-content;
  7419. margin: 10px 0 10px 0;
  7420. align-items: center;
  7421. }
  7422. .tool + .tool {
  7423. margin-right: 45px;
  7424. }
  7425. .whiteBIcon {
  7426. width: 80px;
  7427. cursor: pointer;
  7428. display: flex;
  7429. flex-direction: column;
  7430. flex-wrap: nowrap;
  7431. align-items: center;
  7432. }
  7433. .whiteBIcon > img,
  7434. .toolIcon > img,
  7435. .arrow > img {
  7436. width: 100%;
  7437. height: 100%;
  7438. }
  7439. .check img {
  7440. width: 20px;
  7441. height: 20px;
  7442. }
  7443. .whiteBIcon > img {
  7444. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  7445. border-radius: 15px;
  7446. }
  7447. .check {
  7448. /* width: 20px;
  7449. height: 20px; */
  7450. cursor: pointer;
  7451. margin: 10px 0;
  7452. }
  7453. .checkDiv {
  7454. display: flex;
  7455. align-items: center;
  7456. }
  7457. .checkDiv span {
  7458. margin-left: 5px;
  7459. color: #858585;
  7460. }
  7461. .customWidth >>> .el-dialog {
  7462. min-width: 500px !important;
  7463. }
  7464. .a_addBox {
  7465. margin: 10px 0;
  7466. background: #fff;
  7467. padding: 15px;
  7468. max-height: 600px;
  7469. overflow: auto;
  7470. }
  7471. .a_add_box {
  7472. border-bottom: 2px solid #eee;
  7473. padding-bottom: 10px;
  7474. }
  7475. .a_add_head {
  7476. display: flex;
  7477. align-items: center;
  7478. justify-content: space-between;
  7479. margin: 10px 0;
  7480. font-size: 18px;
  7481. }
  7482. .a_add_checkType {
  7483. margin-top: 10px;
  7484. display: flex;
  7485. font-size: 16px;
  7486. }
  7487. .a_add_checkType span {
  7488. box-sizing: border-box;
  7489. padding: 0 0 5px 0;
  7490. cursor: pointer;
  7491. }
  7492. .a_add_checkType span + span {
  7493. margin-left: 10px;
  7494. }
  7495. .a_add_checkType .active {
  7496. border-bottom: 2px solid #409eff;
  7497. color: #409eff;
  7498. }
  7499. .a_add_head .a_add_head_input {
  7500. width: 300px;
  7501. }
  7502. .a_add_head .a_add_head_div {
  7503. display: flex;
  7504. align-items: center;
  7505. justify-content: space-between;
  7506. }
  7507. .a_add_body {
  7508. display: flex;
  7509. /* align-items: center; */
  7510. align-items: flex-end;
  7511. }
  7512. .a_add_input {
  7513. display: flex;
  7514. align-items: center;
  7515. flex-wrap: wrap;
  7516. }
  7517. .a_add_input_choice {
  7518. flex-direction: column;
  7519. margin-right: 10px;
  7520. }
  7521. .a_add_input_choice >>> .el-radio {
  7522. display: flex;
  7523. align-items: center;
  7524. flex-direction: row-reverse;
  7525. margin: 10px 0 0 0;
  7526. }
  7527. .a_add_input_choice >>> .el-checkbox {
  7528. display: flex;
  7529. align-items: center;
  7530. flex-direction: row-reverse;
  7531. margin: 10px 0 0 0;
  7532. }
  7533. .width100 {
  7534. width: 100%;
  7535. }
  7536. .a_add_input .a_add_persent {
  7537. width: 100%;
  7538. }
  7539. .a_add_persent_div {
  7540. width: 100%;
  7541. display: flex;
  7542. align-items: center;
  7543. }
  7544. .a_add_persent_div span {
  7545. margin: 5px 0;
  7546. }
  7547. .a_add_persent_div span:nth-child(1) {
  7548. width: 30%;
  7549. }
  7550. .a_add_persent_div span:nth-child(2) {
  7551. width: 7%;
  7552. }
  7553. .a_add_persent_div span:nth-child(3) {
  7554. width: 40%;
  7555. }
  7556. .a_add_body_div {
  7557. display: flex;
  7558. align-items: center;
  7559. justify-content: center;
  7560. /* flex-direction: column; */
  7561. }
  7562. .all_choose {
  7563. display: flex;
  7564. flex-direction: row;
  7565. align-items: flex-start;
  7566. width: 100%;
  7567. }
  7568. .all_choose > span {
  7569. width: 100px;
  7570. display: block;
  7571. letter-spacing: 14px;
  7572. white-space: nowrap;
  7573. overflow: hidden;
  7574. text-overflow: ellipsis;
  7575. }
  7576. .all_choose >>> .el-checkbox-group {
  7577. display: flex;
  7578. flex-direction: row;
  7579. width: 100%;
  7580. flex-wrap: wrap;
  7581. align-content: center;
  7582. justify-content: flex-start;
  7583. align-items: center;
  7584. margin-top: 3px;
  7585. }
  7586. .all_choose > .el-checkbox-group >>> .el-checkbox {
  7587. margin-bottom: 10px;
  7588. display: flex;
  7589. flex-direction: row;
  7590. align-items: center;
  7591. }
  7592. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  7593. min-width: 80px;
  7594. overflow: hidden;
  7595. width: 80px;
  7596. text-overflow: ellipsis;
  7597. white-space: nowrap;
  7598. }
  7599. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  7600. width: auto;
  7601. }
  7602. .choose > div:nth-child(3) > span {
  7603. letter-spacing: 0 !important;
  7604. }
  7605. .choose {
  7606. display: flex;
  7607. flex-direction: column;
  7608. flex-wrap: nowrap;
  7609. height: 100%;
  7610. justify-content: space-evenly;
  7611. align-items: flex-start;
  7612. }
  7613. .both {
  7614. display: flex;
  7615. flex-direction: row;
  7616. flex-wrap: wrap;
  7617. width: 100%;
  7618. align-items: center;
  7619. justify-content: flex-start;
  7620. margin: 30px 0;
  7621. }
  7622. .notice >>> .el-dialog {
  7623. width: 500px !important;
  7624. text-align: center;
  7625. }
  7626. .notice >>> .el-button {
  7627. margin-top: 20px;
  7628. }
  7629. .whiteBg {
  7630. background: #fff;
  7631. border-radius: 10px;
  7632. }
  7633. .chooseWho {
  7634. display: flex;
  7635. width: 380px;
  7636. flex-direction: row;
  7637. flex-wrap: nowrap;
  7638. justify-content: space-between;
  7639. padding-bottom: 10px;
  7640. }
  7641. .chooseWho > div {
  7642. cursor: pointer;
  7643. padding-bottom: 10px;
  7644. font-weight: bold;
  7645. }
  7646. .isChooseActive {
  7647. color: #3e88f4;
  7648. border-bottom: 2px solid #2f80f3;
  7649. }
  7650. .toolSort {
  7651. display: flex;
  7652. flex-direction: row;
  7653. flex-wrap: wrap;
  7654. justify-content: flex-start;
  7655. align-items: flex-start;
  7656. }
  7657. .toolSort > div {
  7658. margin-right: 45px;
  7659. }
  7660. .tools {
  7661. width: 100%;
  7662. display: flex;
  7663. flex-direction: column;
  7664. flex-wrap: nowrap;
  7665. align-items: flex-start;
  7666. }
  7667. .leftTools,
  7668. .rightTools {
  7669. width: 50%;
  7670. }
  7671. .rightTools {
  7672. display: flex;
  7673. flex-direction: row;
  7674. flex-wrap: nowrap;
  7675. justify-content: space-around;
  7676. }
  7677. .firstToolList {
  7678. display: flex;
  7679. flex-direction: column;
  7680. flex-wrap: nowrap;
  7681. align-items: center;
  7682. }
  7683. .iconList {
  7684. display: flex;
  7685. flex-direction: row;
  7686. flex-wrap: wrap;
  7687. justify-content: flex-start;
  7688. align-items: center;
  7689. margin: 20px 0 5px 0;
  7690. width: 240px;
  7691. min-width: 240px;
  7692. }
  7693. .iconTool {
  7694. display: flex;
  7695. flex-direction: column;
  7696. flex-wrap: nowrap;
  7697. align-items: center;
  7698. justify-content: flex-start;
  7699. margin: 15px 10px;
  7700. }
  7701. .toolIcon {
  7702. width: 50px;
  7703. }
  7704. .taskBorder {
  7705. border: 1px solid #e1e1e1;
  7706. border-radius: 10px;
  7707. margin-top: 20px;
  7708. min-height: 1160px;
  7709. position: relative;
  7710. background: #fbfbfb;
  7711. }
  7712. .smallTaskBorder {
  7713. height: 170px;
  7714. min-height: 170px !important;
  7715. overflow: hidden;
  7716. }
  7717. .taskBorder > div {
  7718. padding: 30px 0 10px 30px;
  7719. }
  7720. .addTaskBorder {
  7721. border: 2px solid #e1e1e1;
  7722. border-radius: 10px;
  7723. margin-top: 25px;
  7724. cursor: pointer;
  7725. }
  7726. .addTaskBorder > div {
  7727. margin: 0 auto;
  7728. display: flex;
  7729. align-items: center;
  7730. justify-content: center;
  7731. }
  7732. .addTaskBorder > div > img {
  7733. width: 100px;
  7734. }
  7735. .addTaskBorder > div > span {
  7736. font-size: 23px;
  7737. color: #dbdbdb;
  7738. }
  7739. .funBlock {
  7740. display: flex;
  7741. padding: 15px 0;
  7742. flex-direction: row;
  7743. justify-content: flex-end;
  7744. align-items: center;
  7745. position: absolute;
  7746. right: 15px;
  7747. bottom: 35px;
  7748. }
  7749. .fold {
  7750. display: flex;
  7751. margin: 0 10px;
  7752. flex-direction: row;
  7753. align-items: center;
  7754. cursor: pointer;
  7755. }
  7756. .arrow {
  7757. width: 15px;
  7758. height: 15px;
  7759. margin-left: 10px;
  7760. }
  7761. .addToolFun {
  7762. display: flex;
  7763. width: 150px;
  7764. flex-direction: row;
  7765. align-items: center;
  7766. justify-content: center;
  7767. border: 1px dashed;
  7768. border-radius: 5px;
  7769. height: 50px;
  7770. margin: 35px auto 0;
  7771. cursor: pointer;
  7772. }
  7773. .addToolImg {
  7774. width: 30px;
  7775. height: 30px;
  7776. margin-right: 20px;
  7777. }
  7778. .addToolsDia >>> .el-dialog__body {
  7779. padding: 20px;
  7780. }
  7781. .addToolsDia >>> .el-dialog__body > .toolChoose {
  7782. padding: 0;
  7783. }
  7784. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  7785. padding: 0;
  7786. border-bottom: none;
  7787. margin-bottom: 0;
  7788. }
  7789. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  7790. width: 100%;
  7791. }
  7792. .lineCss >>> .el-form-item__label {
  7793. width: auto !important;
  7794. }
  7795. .lineCss >>> .el-form-item__content {
  7796. margin-left: 50px !important;
  7797. }
  7798. .newSteps {
  7799. display: flex;
  7800. width: 100% !important;
  7801. height: 80px;
  7802. cursor: pointer;
  7803. margin: 10px 0;
  7804. border-radius: 10px;
  7805. flex-direction: row;
  7806. align-content: center;
  7807. justify-content: center;
  7808. align-items: center;
  7809. margin: 0 !important;
  7810. }
  7811. /* 评价样式 */
  7812. .elist_css {
  7813. padding-bottom: 60px !important;
  7814. }
  7815. .elist_title {
  7816. margin-bottom: 10px;
  7817. }
  7818. .elist_input {
  7819. }
  7820. .elist_input_box {
  7821. display: flex;
  7822. align-items: center;
  7823. flex-wrap: wrap;
  7824. }
  7825. .elist_input_box + .elist_input_box {
  7826. margin-top: 30px;
  7827. }
  7828. .elist_input .elist_input_box input {
  7829. font: inherit;
  7830. color: currentColor;
  7831. /* width: 200px; */
  7832. max-width: 200px;
  7833. padding: 8px 14px;
  7834. display: block;
  7835. min-width: 0;
  7836. outline: none;
  7837. border: 1px solid rgba(0, 0, 0, 0.23);
  7838. border-radius: 4px;
  7839. box-sizing: border-box;
  7840. background: #fff;
  7841. margin: 0 20px 0 0;
  7842. }
  7843. .elist_input .elist_input_box span {
  7844. height: 36px;
  7845. line-height: 36px;
  7846. color: rgb(82, 82, 82);
  7847. min-width: 80px;
  7848. }
  7849. .elist_input .elist_input_box .remove {
  7850. height: 20px;
  7851. width: 20px;
  7852. background-size: 100% 100%;
  7853. background-position: unset;
  7854. margin-left: 5px;
  7855. }
  7856. .elist_input_box >>> .el-rate {
  7857. display: flex;
  7858. height: 36px;
  7859. align-items: center;
  7860. }
  7861. .elist_input_box .elist_inptu_text {
  7862. width: 100%;
  7863. display: flex;
  7864. align-items: center;
  7865. margin-top: 10px;
  7866. }
  7867. .elist_input_box .elist_inptu_text input {
  7868. /* width: 500px; */
  7869. width: 100%;
  7870. max-width: unset;
  7871. }
  7872. .elist_input_box >>> .el-rate__icon {
  7873. font-size: 24px;
  7874. }
  7875. .elist_btn {
  7876. margin-top: 10px;
  7877. }
  7878. .lineTitle {
  7879. margin-top: 15px;
  7880. width: 110px;
  7881. }
  7882. .courseTop {
  7883. display: flex;
  7884. flex-direction: row;
  7885. justify-content: flex-start;
  7886. align-items: center;
  7887. /* width: 100%; */
  7888. width: calc(100% - 20px);
  7889. /* background: rgb(255, 255, 255); */
  7890. /* border-radius: 10px; */
  7891. padding: 20px 0;
  7892. }
  7893. .stepsNav {
  7894. display: flex;
  7895. flex-direction: row;
  7896. justify-content: flex-start;
  7897. align-items: center;
  7898. }
  7899. .stepsWord {
  7900. font-size: 18px;
  7901. color: #fff;
  7902. font-weight: bold;
  7903. margin-left: auto;
  7904. background: rgb(15, 126, 255);
  7905. border-radius: 5px;
  7906. padding: 3px 25px;
  7907. box-sizing: border-box;
  7908. }
  7909. .rightBox {
  7910. width: calc(100% - 20px);
  7911. background: rgb(255, 255, 255);
  7912. border-radius: 10px;
  7913. overflow: auto;
  7914. height: calc(100% - 130px);
  7915. position: relative;
  7916. }
  7917. .e_add_top {
  7918. display: flex;
  7919. justify-content: space-between;
  7920. padding: 20px 20px 0 20px;
  7921. border-radius: 3px;
  7922. background: #fff;
  7923. }
  7924. .e_add_title2 {
  7925. display: flex;
  7926. align-items: center;
  7927. }
  7928. .e_add_title2 span {
  7929. width: 40px;
  7930. }
  7931. .e_add_title {
  7932. display: flex;
  7933. align-items: center;
  7934. color: #b8b8b8;
  7935. font-size: 18px;
  7936. position: relative;
  7937. height: 40px;
  7938. }
  7939. .e_add_title span {
  7940. margin-right: 10px;
  7941. }
  7942. .e_add_title .el_input {
  7943. width: 300px;
  7944. }
  7945. .e_add_title >>> .el-input__inner {
  7946. width: 400px;
  7947. }
  7948. .e_add_btn {
  7949. }
  7950. .e_add_content {
  7951. display: flex;
  7952. width: 100%;
  7953. }
  7954. .e_add_list {
  7955. background: #fff;
  7956. height: 500px;
  7957. width: 210px;
  7958. position: relative;
  7959. margin: 15px 5px 0 0;
  7960. flex-shrink: 0;
  7961. display: flex;
  7962. flex-direction: column;
  7963. }
  7964. .e_add_list_title {
  7965. font-size: 20px;
  7966. width: 100%;
  7967. box-sizing: border-box;
  7968. padding: 15px 40px;
  7969. text-align: center;
  7970. border-bottom: 1px solid #eaeaea;
  7971. position: relative;
  7972. display: flex;
  7973. align-items: center;
  7974. justify-content: center;
  7975. height: 57px;
  7976. background: #f6f6f6;
  7977. }
  7978. .e_add_list_title span {
  7979. overflow: hidden;
  7980. white-space: nowrap;
  7981. text-overflow: ellipsis;
  7982. }
  7983. .e_add_list_title img {
  7984. position: absolute;
  7985. right: 15px;
  7986. width: 25px;
  7987. cursor: pointer;
  7988. top: 50%;
  7989. transform: translateY(-50%);
  7990. }
  7991. .e_add_list_body {
  7992. height: calc(100% - 187px);
  7993. overflow: auto;
  7994. }
  7995. .e_add_list_child {
  7996. width: 100%;
  7997. display: flex;
  7998. align-items: center;
  7999. justify-content: center;
  8000. position: relative;
  8001. box-sizing: border-box;
  8002. padding: 15px 40px;
  8003. text-align: center;
  8004. }
  8005. .e_add_list_child span {
  8006. overflow: hidden;
  8007. white-space: nowrap;
  8008. text-overflow: ellipsis;
  8009. cursor: pointer;
  8010. }
  8011. .e_add_list_child img {
  8012. position: absolute;
  8013. right: 10px;
  8014. width: 21px;
  8015. cursor: pointer;
  8016. top: 50%;
  8017. transform: translateY(-50%);
  8018. }
  8019. .e_add_list_child + .e_add_list_child {
  8020. border-top: 1px solid #eaeaea;
  8021. }
  8022. .e_add_list_child .active {
  8023. color: #409eff;
  8024. }
  8025. .e_add_list_btn {
  8026. position: absolute;
  8027. bottom: 0;
  8028. height: 50px;
  8029. background: rgb(120, 120, 254);
  8030. width: 100%;
  8031. color: #fff;
  8032. font-size: 16px;
  8033. text-align: center;
  8034. line-height: 50px;
  8035. cursor: pointer;
  8036. }
  8037. .e_add_list_detail {
  8038. position: absolute;
  8039. bottom: 0;
  8040. height: 130px;
  8041. background: rgb(120, 120, 254);
  8042. width: 100%;
  8043. color: #fff;
  8044. font-size: 16px;
  8045. display: flex;
  8046. align-items: center;
  8047. justify-content: center;
  8048. }
  8049. .e_add_list_detail textarea {
  8050. height: 90%;
  8051. width: 95%;
  8052. border: none;
  8053. resize: none;
  8054. outline: none;
  8055. padding: 5px;
  8056. box-sizing: border-box;
  8057. }
  8058. .e_add_list_pbox {
  8059. width: 100%;
  8060. }
  8061. .e_add_list_pbox_title {
  8062. height: 50px;
  8063. background: #fff;
  8064. display: flex;
  8065. align-items: center;
  8066. width: 100%;
  8067. box-sizing: border-box;
  8068. padding: 0 20px;
  8069. flex-direction: row;
  8070. flex-wrap: wrap;
  8071. }
  8072. .type_title {
  8073. font-size: 18px;
  8074. font-weight: 700;
  8075. }
  8076. .type_content {
  8077. font-size: 16px;
  8078. margin-left: 30px;
  8079. }
  8080. .type_content span + span {
  8081. margin-left: 20px;
  8082. }
  8083. .type_content span {
  8084. cursor: pointer;
  8085. padding-bottom: 5px;
  8086. box-sizing: border-box;
  8087. }
  8088. .type_content .active {
  8089. color: #409eff;
  8090. border-bottom: 2px solid #409eff;
  8091. }
  8092. .e_add_list_pbox_content {
  8093. height: calc(100% - 50px);
  8094. display: flex;
  8095. align-items: center;
  8096. width: 100%;
  8097. background: #fff;
  8098. }
  8099. .mbCss {
  8100. width: 100%;
  8101. display: flex;
  8102. flex-direction: row;
  8103. flex-wrap: nowrap;
  8104. align-content: center;
  8105. align-items: flex-start;
  8106. justify-content: flex-start;
  8107. }
  8108. .pjCss {
  8109. /* width: 42%; */
  8110. width: calc(100% - 55%);
  8111. display: flex;
  8112. flex-direction: column;
  8113. flex-wrap: nowrap;
  8114. align-items: flex-start;
  8115. margin-top: 1.5%;
  8116. }
  8117. .e_box {
  8118. display: flex;
  8119. flex-wrap: wrap;
  8120. max-height: 500px;
  8121. align-items: flex-start;
  8122. overflow: auto;
  8123. }
  8124. .e_card {
  8125. border: 1px solid #ccc;
  8126. background: #fff;
  8127. margin-right: 20px;
  8128. width: 270px;
  8129. display: flex;
  8130. flex-direction: column;
  8131. align-items: center;
  8132. border-radius: 5px;
  8133. margin-top: 10px;
  8134. text-align: center;
  8135. }
  8136. .e_card_picture {
  8137. margin: 10px 0;
  8138. }
  8139. .e_card_picture > img {
  8140. width: 50px;
  8141. }
  8142. .e_card_name {
  8143. width: 100%;
  8144. padding: 0 10px;
  8145. box-sizing: border-box;
  8146. margin-bottom: 10px;
  8147. overflow: hidden;
  8148. text-overflow: ellipsis;
  8149. white-space: nowrap;
  8150. }
  8151. .e_card_time {
  8152. width: 100%;
  8153. padding: 0 10px;
  8154. box-sizing: border-box;
  8155. font-size: 15px;
  8156. color: #c3c3c3;
  8157. margin-bottom: 10px;
  8158. }
  8159. .e_card_btn {
  8160. height: 40px;
  8161. display: flex;
  8162. align-items: center;
  8163. width: 100%;
  8164. background: rgb(244, 244, 244);
  8165. }
  8166. .e_card_btn:hover {
  8167. background: rgb(221 221 221);
  8168. }
  8169. .e_card_btn span {
  8170. flex: 1 1 auto;
  8171. text-align: center;
  8172. cursor: pointer;
  8173. }
  8174. .addEva {
  8175. border: 1px solid #ccc;
  8176. background: #fff;
  8177. margin-right: 20px;
  8178. width: 270px;
  8179. height: 149px;
  8180. display: flex;
  8181. flex-direction: column;
  8182. align-items: center;
  8183. border-radius: 5px;
  8184. margin-top: 10px;
  8185. text-align: center;
  8186. cursor: pointer;
  8187. justify-content: center;
  8188. }
  8189. .addEva > img {
  8190. width: 50px;
  8191. object-fit: cover;
  8192. }
  8193. .uploadFm {
  8194. border: 1px dashed #ccc;
  8195. width: 202px;
  8196. height: 102px;
  8197. position: relative;
  8198. cursor: pointer;
  8199. }
  8200. .uploadFm > img {
  8201. position: absolute;
  8202. top: 25px;
  8203. left: 35%;
  8204. width: 50px;
  8205. }
  8206. .fileCss {
  8207. width: 100%;
  8208. display: flex;
  8209. flex-direction: row;
  8210. flex-wrap: nowrap;
  8211. justify-content: space-around;
  8212. align-items: center;
  8213. padding-top: 15px;
  8214. }
  8215. .sysPicBox {
  8216. display: flex;
  8217. flex-direction: row;
  8218. flex-wrap: wrap;
  8219. align-content: flex-start;
  8220. height: 435px;
  8221. overflow: auto;
  8222. }
  8223. .sysPic {
  8224. width: 200px;
  8225. height: 115px;
  8226. margin: 0 20px 20px 0;
  8227. cursor: pointer;
  8228. }
  8229. .sysPic > img,
  8230. .isSysPic > img,
  8231. .deletePic > img {
  8232. width: 100%;
  8233. height: 100%;
  8234. object-fit: cover;
  8235. }
  8236. .isSysPic {
  8237. width: 200px;
  8238. height: 115px;
  8239. position: relative;
  8240. }
  8241. .deletePic {
  8242. width: 20px;
  8243. height: 20px;
  8244. position: absolute;
  8245. top: 0;
  8246. right: 0;
  8247. cursor: pointer;
  8248. }
  8249. .select_box1 {
  8250. }
  8251. .select_box1_img {
  8252. background: #fff;
  8253. border-radius: 5px;
  8254. padding: 15px;
  8255. box-sizing: border-box;
  8256. margin-bottom: 20px;
  8257. }
  8258. .select_box1_title {
  8259. padding: 0 0 15px 0;
  8260. border-bottom: 1px solid #eee;
  8261. margin-bottom: 15px;
  8262. }
  8263. .select_box1_title span:nth-child(1) {
  8264. font-size: 16px;
  8265. margin-right: 20px;
  8266. color: #000;
  8267. }
  8268. .select_box1_title span:nth-child(2) {
  8269. font-size: 14px;
  8270. color: rgb(112, 112, 112);
  8271. }
  8272. .select_box1_add_img {
  8273. }
  8274. .select_box1_select {
  8275. background: #fff;
  8276. border-radius: 5px;
  8277. padding: 15px;
  8278. box-sizing: border-box;
  8279. }
  8280. .select_box2 {
  8281. }
  8282. .select_box2_title {
  8283. background: #fff;
  8284. border-radius: 5px;
  8285. padding: 5px 10px;
  8286. box-sizing: border-box;
  8287. margin-bottom: 10px;
  8288. }
  8289. .select_box2_box {
  8290. display: flex;
  8291. height: 500px;
  8292. }
  8293. .select_box2_img {
  8294. width: calc(100% - 310px);
  8295. height: 100%;
  8296. overflow: auto;
  8297. background: #fff;
  8298. border-radius: 5px;
  8299. }
  8300. .select_box2_img img {
  8301. width: 100%;
  8302. }
  8303. .select_box2_answer {
  8304. background: #fff;
  8305. margin-left: 10px;
  8306. border-radius: 5px;
  8307. width: 300px;
  8308. overflow: auto;
  8309. height: 100%;
  8310. display: flex;
  8311. flex-direction: column;
  8312. align-items: center;
  8313. padding-top: 10px;
  8314. box-sizing: border-box;
  8315. }
  8316. .select_box2_answer_box {
  8317. margin: 0 0 10px 0;
  8318. width: 85%;
  8319. }
  8320. .rate_textarea {
  8321. font: inherit;
  8322. color: currentColor;
  8323. width: 100%;
  8324. padding: 8px 14px;
  8325. display: block;
  8326. min-width: 0;
  8327. outline: none;
  8328. border: 1px solid rgba(0, 0, 0, 0.23);
  8329. border-radius: 4px;
  8330. box-sizing: border-box;
  8331. background: #fff;
  8332. margin: 0 20px 0 0;
  8333. resize: none;
  8334. }
  8335. .select_answer_title {
  8336. text-align: left;
  8337. width: 85%;
  8338. margin-bottom: 10px;
  8339. font-size: 18px;
  8340. color: #8e8e8e;
  8341. }
  8342. .mask {
  8343. background-color: rgb(0 0 0 / 30%);
  8344. /* position: fixed; */
  8345. position: absolute;
  8346. top: 0;
  8347. left: 0;
  8348. width: 100%;
  8349. height: 100%;
  8350. z-index: 90;
  8351. display: flex;
  8352. align-items: center;
  8353. justify-content: center;
  8354. }
  8355. .progressBox {
  8356. width: 300px;
  8357. height: 150px;
  8358. background: #fff;
  8359. border-radius: 10px;
  8360. box-shadow: 0 0 6px 1px #bfbfbf;
  8361. display: flex;
  8362. align-items: center;
  8363. justify-content: center;
  8364. flex-direction: column;
  8365. }
  8366. .progressBox .lbox {
  8367. height: 100px;
  8368. font-size: 16px;
  8369. display: flex;
  8370. align-items: center;
  8371. }
  8372. .progressBox .lbox img {
  8373. width: 40px;
  8374. margin-right: 20px;
  8375. }
  8376. .progressBox >>> .el-progress-bar__outer {
  8377. background-color: #d1dfff !important;
  8378. }
  8379. .progressBox .lbox {
  8380. height: 100px;
  8381. font-size: 19px;
  8382. display: flex;
  8383. align-items: center;
  8384. }
  8385. .progressBox .lbox img {
  8386. width: 40px;
  8387. margin-right: 20px;
  8388. }
  8389. .updateTips::after {
  8390. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  8391. font-size: 14px;
  8392. margin-left: 20px;
  8393. font-weight: 400;
  8394. color: #ff3a3a;
  8395. }
  8396. .updateMask {
  8397. width: 100%;
  8398. z-index: 3;
  8399. top: 0;
  8400. position: absolute;
  8401. }
  8402. .t_j_box {
  8403. display: flex;
  8404. }
  8405. .t_j_box span:nth-child(1) {
  8406. width: 15%;
  8407. overflow: hidden;
  8408. margin-right: 10px;
  8409. text-overflow: ellipsis;
  8410. white-space: nowrap;
  8411. }
  8412. .t_j_box span:nth-child(2) {
  8413. width: 30%;
  8414. overflow: hidden;
  8415. text-overflow: ellipsis;
  8416. margin-right: 10px;
  8417. }
  8418. .t_j_box span:nth-child(3) {
  8419. width: calc(55% - 20px);
  8420. overflow: hidden;
  8421. text-overflow: ellipsis;
  8422. }
  8423. .sentenBox {
  8424. background: #fff;
  8425. height: 600px;
  8426. overflow: auto;
  8427. background-image: url("../../assets/icon/conSentences/csBg.png");
  8428. background-position: 102%;
  8429. background-repeat: no-repeat;
  8430. background-size: 60%;
  8431. }
  8432. .addSen {
  8433. background: #409efe;
  8434. width: 90px;
  8435. color: #fff;
  8436. height: 35px;
  8437. text-align: center;
  8438. line-height: 35px;
  8439. border-radius: 5px;
  8440. float: right;
  8441. margin: 10px 20px 0 0;
  8442. cursor: pointer;
  8443. }
  8444. .sentenTop {
  8445. display: flex;
  8446. flex-direction: row;
  8447. flex-wrap: nowrap;
  8448. align-items: center;
  8449. }
  8450. .sentenTop > div:nth-child(2) {
  8451. width: 300px;
  8452. margin: 0 15px;
  8453. }
  8454. .sentenTop > div:nth-child(3) {
  8455. background: #409efe;
  8456. color: #fff;
  8457. width: 65px;
  8458. height: 35px;
  8459. text-align: center;
  8460. line-height: 35px;
  8461. border-radius: 5px;
  8462. cursor: pointer;
  8463. }
  8464. .cardList {
  8465. padding: 30px 0 20px 0;
  8466. display: flex;
  8467. flex-direction: row;
  8468. flex-wrap: wrap;
  8469. align-items: center;
  8470. box-sizing: border-box;
  8471. border-bottom: 1px solid #f4f4f4;
  8472. width: 98%;
  8473. margin: 0 auto;
  8474. }
  8475. .cardBox {
  8476. display: flex;
  8477. flex-direction: row;
  8478. flex-wrap: wrap;
  8479. align-items: center;
  8480. align-content: center;
  8481. }
  8482. .isCard,
  8483. .isCard1 {
  8484. width: 140px;
  8485. height: 65px;
  8486. text-align: center;
  8487. line-height: 65px;
  8488. font-size: 20px;
  8489. cursor: pointer;
  8490. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  8491. background-size: cover;
  8492. position: relative;
  8493. z-index: 99;
  8494. }
  8495. .isCard1 {
  8496. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  8497. }
  8498. .isCard:hover .deleteWord {
  8499. display: block;
  8500. }
  8501. .isCard > div:nth-child(1),
  8502. .isCard1 > div:nth-child(1) {
  8503. white-space: nowrap;
  8504. overflow: hidden;
  8505. text-overflow: ellipsis;
  8506. width: 80%;
  8507. margin: 0 auto;
  8508. }
  8509. .card {
  8510. width: 140px;
  8511. height: 65px;
  8512. }
  8513. .card > img {
  8514. width: 100%;
  8515. height: 100%;
  8516. }
  8517. .rightCardBox {
  8518. margin: 10px 0 0 10px;
  8519. }
  8520. .rightCardBox > div:nth-child(1) {
  8521. margin-bottom: 10px;
  8522. }
  8523. .cardCss {
  8524. display: flex;
  8525. flex-direction: column;
  8526. flex-wrap: nowrap;
  8527. align-items: center;
  8528. border-bottom: 3px solid #b4c3d3;
  8529. padding: 0 0 5px 0;
  8530. margin-right: 10px;
  8531. }
  8532. .cardCss > div:nth-child(2) {
  8533. background: #5b7b9d;
  8534. color: #fff;
  8535. width: 20px;
  8536. height: 20px;
  8537. border-radius: 50%;
  8538. text-align: center;
  8539. line-height: 20px;
  8540. }
  8541. .sentenTopBox {
  8542. display: flex;
  8543. flex-direction: row;
  8544. flex-wrap: nowrap;
  8545. align-items: center;
  8546. justify-content: space-between;
  8547. padding: 55px 0 0 20px;
  8548. box-sizing: border-box;
  8549. width: 85%;
  8550. }
  8551. .stepsBottom {
  8552. width: 270px;
  8553. margin-bottom: 20px;
  8554. box-shadow: 0 0 10px 10px #f7f7f7;
  8555. background: #f7f7f7;
  8556. }
  8557. .navTop {
  8558. background: #53749b;
  8559. color: #fff;
  8560. height: 40px;
  8561. border-top-left-radius: 15px;
  8562. border-top-right-radius: 15px;
  8563. line-height: 40px;
  8564. padding-left: 15px;
  8565. font-size: 18px;
  8566. }
  8567. .navBottom {
  8568. background: #6b91b7;
  8569. height: 180px;
  8570. overflow: auto;
  8571. border-bottom-left-radius: 15px;
  8572. border-bottom-right-radius: 15px;
  8573. }
  8574. .navTask {
  8575. display: flex;
  8576. flex-direction: row;
  8577. flex-wrap: nowrap;
  8578. align-items: center;
  8579. padding: 15px 0;
  8580. cursor: pointer;
  8581. }
  8582. .isNavTask {
  8583. background: #7e9ebd;
  8584. }
  8585. .navTask > div:nth-child(1) {
  8586. background: #468fe4;
  8587. color: #fff;
  8588. width: 65px;
  8589. height: 30px;
  8590. line-height: 30px;
  8591. text-align: center;
  8592. border-radius: 5px;
  8593. margin: 0 10px 0 15px;
  8594. }
  8595. .navTask > div:nth-child(2) {
  8596. color: #fff;
  8597. max-width: 130px;
  8598. white-space: nowrap;
  8599. overflow: hidden;
  8600. text-overflow: ellipsis;
  8601. }
  8602. </style>