addCourse.vue 329 KB

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