18.js 246 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948
  1. webpackJsonp([18,15],{
  2. /***/ 533:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(704)
  8. __webpack_require__(706)
  9. }
  10. var normalizeComponent = __webpack_require__(4)
  11. /* script */
  12. var __vue_script__ = __webpack_require__(708)
  13. /* template */
  14. var __vue_template__ = __webpack_require__(757)
  15. /* template functional */
  16. var __vue_template_functional__ = false
  17. /* styles */
  18. var __vue_styles__ = injectStyle
  19. /* scopeId */
  20. var __vue_scopeId__ = "data-v-7ed63c05"
  21. /* moduleIdentifier (server only) */
  22. var __vue_module_identifier__ = null
  23. var Component = normalizeComponent(
  24. __vue_script__,
  25. __vue_template__,
  26. __vue_template_functional__,
  27. __vue_styles__,
  28. __vue_scopeId__,
  29. __vue_module_identifier__
  30. )
  31. Component.options.__file = "resources/assets/js/main/pages/todo.vue"
  32. /* hot reload */
  33. if (false) {(function () {
  34. var hotAPI = require("vue-hot-reload-api")
  35. hotAPI.install(require("vue"), false)
  36. if (!hotAPI.compatible) return
  37. module.hot.accept()
  38. if (!module.hot.data) {
  39. hotAPI.createRecord("data-v-7ed63c05", Component.options)
  40. } else {
  41. hotAPI.reload("data-v-7ed63c05", Component.options)
  42. }
  43. module.hot.dispose(function (data) {
  44. disposed = true
  45. })
  46. })()}
  47. module.exports = Component.exports
  48. /***/ }),
  49. /***/ 550:
  50. /***/ (function(module, exports, __webpack_require__) {
  51. var disposed = false
  52. function injectStyle (ssrContext) {
  53. if (disposed) return
  54. __webpack_require__(551)
  55. }
  56. var normalizeComponent = __webpack_require__(4)
  57. /* script */
  58. var __vue_script__ = __webpack_require__(553)
  59. /* template */
  60. var __vue_template__ = __webpack_require__(554)
  61. /* template functional */
  62. var __vue_template_functional__ = false
  63. /* styles */
  64. var __vue_styles__ = injectStyle
  65. /* scopeId */
  66. var __vue_scopeId__ = "data-v-35be3d57"
  67. /* moduleIdentifier (server only) */
  68. var __vue_module_identifier__ = null
  69. var Component = normalizeComponent(
  70. __vue_script__,
  71. __vue_template__,
  72. __vue_template_functional__,
  73. __vue_styles__,
  74. __vue_scopeId__,
  75. __vue_module_identifier__
  76. )
  77. Component.options.__file = "resources/assets/js/main/components/WContent.vue"
  78. /* hot reload */
  79. if (false) {(function () {
  80. var hotAPI = require("vue-hot-reload-api")
  81. hotAPI.install(require("vue"), false)
  82. if (!hotAPI.compatible) return
  83. module.hot.accept()
  84. if (!module.hot.data) {
  85. hotAPI.createRecord("data-v-35be3d57", Component.options)
  86. } else {
  87. hotAPI.reload("data-v-35be3d57", Component.options)
  88. }
  89. module.hot.dispose(function (data) {
  90. disposed = true
  91. })
  92. })()}
  93. module.exports = Component.exports
  94. /***/ }),
  95. /***/ 551:
  96. /***/ (function(module, exports, __webpack_require__) {
  97. // style-loader: Adds some css to the DOM by adding a <style> tag
  98. // load the styles
  99. var content = __webpack_require__(552);
  100. if(typeof content === 'string') content = [[module.i, content, '']];
  101. if(content.locals) module.exports = content.locals;
  102. // add the styles to the DOM
  103. var update = __webpack_require__(3)("5ee96958", content, false, {});
  104. // Hot Module Replacement
  105. if(false) {
  106. // When the styles change, update the <style> tags
  107. if(!content.locals) {
  108. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue", function() {
  109. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-35be3d57\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./WContent.vue");
  110. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  111. update(newContent);
  112. });
  113. }
  114. // When the module is disposed, remove the <style> tags
  115. module.hot.dispose(function() { update(); });
  116. }
  117. /***/ }),
  118. /***/ 552:
  119. /***/ (function(module, exports, __webpack_require__) {
  120. exports = module.exports = __webpack_require__(2)(false);
  121. // imports
  122. // module
  123. exports.push([module.i, "\n.w-content[data-v-35be3d57] {\n position: absolute;\n top: 72px;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: auto;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #EEEEEE;\n background-size: cover;\n}\n.w-content .w-container[data-v-35be3d57] {\n min-height: 500px;\n}\n", ""]);
  124. // exports
  125. /***/ }),
  126. /***/ 553:
  127. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  128. "use strict";
  129. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. /* harmony default export */ __webpack_exports__["default"] = ({
  155. name: 'WContent',
  156. data: function data() {
  157. return {
  158. bgid: -1
  159. };
  160. },
  161. mounted: function mounted() {
  162. this.bgid = $A.runNum(this.usrInfo.bgid);
  163. },
  164. watch: {
  165. usrInfo: {
  166. handler: function handler(info) {
  167. this.bgid = $A.runNum(info.bgid);
  168. },
  169. deep: true
  170. }
  171. },
  172. methods: {
  173. getBgUrl: function getBgUrl(id, thumb) {
  174. if (id < 0) {
  175. return 'none';
  176. }
  177. id = Math.max(1, parseInt(id));
  178. return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
  179. }
  180. }
  181. });
  182. /***/ }),
  183. /***/ 554:
  184. /***/ (function(module, exports, __webpack_require__) {
  185. var render = function() {
  186. var _vm = this
  187. var _h = _vm.$createElement
  188. var _c = _vm._self._c || _h
  189. return _c(
  190. "div",
  191. {
  192. staticClass: "w-content",
  193. style: "background-image:" + _vm.getBgUrl(_vm.bgid)
  194. },
  195. [_vm._t("default")],
  196. 2
  197. )
  198. }
  199. var staticRenderFns = []
  200. render._withStripped = true
  201. module.exports = { render: render, staticRenderFns: staticRenderFns }
  202. if (false) {
  203. module.hot.accept()
  204. if (module.hot.data) {
  205. require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
  206. }
  207. }
  208. /***/ }),
  209. /***/ 571:
  210. /***/ (function(module, exports, __webpack_require__) {
  211. var disposed = false
  212. function injectStyle (ssrContext) {
  213. if (disposed) return
  214. __webpack_require__(572)
  215. __webpack_require__(574)
  216. }
  217. var normalizeComponent = __webpack_require__(4)
  218. /* script */
  219. var __vue_script__ = __webpack_require__(576)
  220. /* template */
  221. var __vue_template__ = __webpack_require__(577)
  222. /* template functional */
  223. var __vue_template_functional__ = false
  224. /* styles */
  225. var __vue_styles__ = injectStyle
  226. /* scopeId */
  227. var __vue_scopeId__ = "data-v-c6b4dc88"
  228. /* moduleIdentifier (server only) */
  229. var __vue_module_identifier__ = null
  230. var Component = normalizeComponent(
  231. __vue_script__,
  232. __vue_template__,
  233. __vue_template_functional__,
  234. __vue_styles__,
  235. __vue_scopeId__,
  236. __vue_module_identifier__
  237. )
  238. Component.options.__file = "resources/assets/js/main/components/TEditor.vue"
  239. /* hot reload */
  240. if (false) {(function () {
  241. var hotAPI = require("vue-hot-reload-api")
  242. hotAPI.install(require("vue"), false)
  243. if (!hotAPI.compatible) return
  244. module.hot.accept()
  245. if (!module.hot.data) {
  246. hotAPI.createRecord("data-v-c6b4dc88", Component.options)
  247. } else {
  248. hotAPI.reload("data-v-c6b4dc88", Component.options)
  249. }
  250. module.hot.dispose(function (data) {
  251. disposed = true
  252. })
  253. })()}
  254. module.exports = Component.exports
  255. /***/ }),
  256. /***/ 572:
  257. /***/ (function(module, exports, __webpack_require__) {
  258. // style-loader: Adds some css to the DOM by adding a <style> tag
  259. // load the styles
  260. var content = __webpack_require__(573);
  261. if(typeof content === 'string') content = [[module.i, content, '']];
  262. if(content.locals) module.exports = content.locals;
  263. // add the styles to the DOM
  264. var update = __webpack_require__(3)("b8965312", content, false, {});
  265. // Hot Module Replacement
  266. if(false) {
  267. // When the styles change, update the <style> tags
  268. if(!content.locals) {
  269. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-c6b4dc88\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TEditor.vue", function() {
  270. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-c6b4dc88\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TEditor.vue");
  271. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  272. update(newContent);
  273. });
  274. }
  275. // When the module is disposed, remove the <style> tags
  276. module.hot.dispose(function() { update(); });
  277. }
  278. /***/ }),
  279. /***/ 573:
  280. /***/ (function(module, exports, __webpack_require__) {
  281. exports = module.exports = __webpack_require__(2)(false);
  282. // imports
  283. // module
  284. exports.push([module.i, "\n.teditor-box textarea {\n opacity: 0;\n}\n.teditor-box .tox-tinymce {\n -webkit-box-shadow: none;\n box-shadow: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n border-color: #dddee1;\n border-radius: 4px;\n overflow: hidden;\n}\n.teditor-box .tox-tinymce .tox-statusbar span.tox-statusbar__branding a {\n display: none;\n}\n.teditor-transfer {\n background-color: #ffffff;\n}\n.teditor-transfer .tox-toolbar > div:last-child > button:last-child {\n margin-right: 64px;\n}\n.teditor-transfer .ivu-modal-header {\n display: none;\n}\n.teditor-transfer .ivu-modal-close {\n top: 7px;\n z-index: 2;\n}\n.teditor-transfer .teditor-transfer-body {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n.teditor-transfer .teditor-transfer-body textarea {\n opacity: 0;\n}\n.teditor-transfer .teditor-transfer-body .tox-tinymce {\n border: 0;\n}\n.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-statusbar span.tox-statusbar__branding a {\n display: none;\n}\n.tox.tox-silver-sink {\n z-index: 13000;\n}\n", ""]);
  285. // exports
  286. /***/ }),
  287. /***/ 574:
  288. /***/ (function(module, exports, __webpack_require__) {
  289. // style-loader: Adds some css to the DOM by adding a <style> tag
  290. // load the styles
  291. var content = __webpack_require__(575);
  292. if(typeof content === 'string') content = [[module.i, content, '']];
  293. if(content.locals) module.exports = content.locals;
  294. // add the styles to the DOM
  295. var update = __webpack_require__(3)("4b0c3b6f", content, false, {});
  296. // Hot Module Replacement
  297. if(false) {
  298. // When the styles change, update the <style> tags
  299. if(!content.locals) {
  300. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-c6b4dc88\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./TEditor.vue", function() {
  301. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-c6b4dc88\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./TEditor.vue");
  302. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  303. update(newContent);
  304. });
  305. }
  306. // When the module is disposed, remove the <style> tags
  307. module.hot.dispose(function() { update(); });
  308. }
  309. /***/ }),
  310. /***/ 575:
  311. /***/ (function(module, exports, __webpack_require__) {
  312. exports = module.exports = __webpack_require__(2)(false);
  313. // imports
  314. // module
  315. exports.push([module.i, "\n.teditor-loadstyle[data-v-c6b4dc88] {\n width: 100%;\n height: 180px;\n overflow: hidden;\n position: relative;\n}\n.teditor-loadedstyle[data-v-c6b4dc88] {\n width: 100%;\n max-height: inherit;\n overflow: inherit;\n position: relative;\n}\n.upload-control[data-v-c6b4dc88] {\n display: none;\n width: 0;\n height: 0;\n overflow: hidden;\n}\n", ""]);
  316. // exports
  317. /***/ }),
  318. /***/ 576:
  319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  320. "use strict";
  321. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  322. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce__ = __webpack_require__(64);
  323. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce__);
  324. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ImgUpload__ = __webpack_require__(22);
  325. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ImgUpload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__ImgUpload__);
  326. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  327. //
  328. //
  329. //
  330. //
  331. //
  332. //
  333. //
  334. //
  335. //
  336. //
  337. //
  338. //
  339. //
  340. //
  341. //
  342. //
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. //
  362. //
  363. //
  364. //
  365. //
  366. //
  367. //
  368. //
  369. //
  370. //
  371. //
  372. //
  373. //
  374. //
  375. //
  376. //
  377. //
  378. //
  379. //
  380. //
  381. //
  382. //
  383. //
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. /* harmony default export */ __webpack_exports__["default"] = ({
  465. name: 'TEditor',
  466. components: { ImgUpload: __WEBPACK_IMPORTED_MODULE_1__ImgUpload___default.a },
  467. props: {
  468. id: {
  469. type: String,
  470. default: function _default() {
  471. return "tinymce_" + Math.round(Math.random() * 10000);
  472. }
  473. },
  474. value: {
  475. default: ''
  476. },
  477. height: {
  478. default: 360
  479. },
  480. htmlClass: {
  481. default: '',
  482. type: String
  483. },
  484. plugins: {
  485. type: Array,
  486. default: function _default() {
  487. return ['advlist autolink lists link image charmap print preview hr anchor pagebreak imagetools', 'searchreplace visualblocks visualchars code', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons paste textcolor colorpicker imagetools codesample'];
  488. }
  489. },
  490. toolbar: {
  491. type: String,
  492. default: ' undo redo | styleselect | uploadImages | uploadFiles | bold italic underline forecolor backcolor | alignleft aligncenter alignright | bullist numlist outdent indent | link image emoticons media codesample | preview screenload'
  493. },
  494. other_options: {
  495. type: Object,
  496. default: function _default() {
  497. return {};
  498. }
  499. },
  500. readonly: {
  501. type: Boolean,
  502. default: false
  503. }
  504. },
  505. data: function data() {
  506. return {
  507. content: '',
  508. editor: null,
  509. editorT: null,
  510. cTinyMce: null,
  511. checkerTimeout: null,
  512. isTyping: false,
  513. spinShow: true,
  514. transfer: false,
  515. uploadIng: 0,
  516. uploadFormat: ['jpg', 'jpeg', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'esp', 'pdf', 'rar', 'zip', 'gz', 'ai', 'avi', 'bmp', 'cdr', 'eps', 'mov', 'mp3', 'mp4', 'pr', 'psd', 'svg', 'tif'],
  517. actionUrl: $A.apiUrl('system/fileupload'),
  518. params: { token: $A.getToken() },
  519. maxSize: 204800
  520. };
  521. },
  522. mounted: function mounted() {
  523. this.content = this.value;
  524. this.init();
  525. },
  526. activated: function activated() {
  527. this.content = this.value;
  528. this.init();
  529. },
  530. deactivated: function deactivated() {
  531. if (this.editor !== null) {
  532. this.editor.destroy();
  533. }
  534. this.spinShow = true;
  535. $A(this.$refs.myTextarea).show();
  536. },
  537. watch: {
  538. value: function value(newValue) {
  539. if (newValue == null) {
  540. newValue = "";
  541. }
  542. if (!this.isTyping) {
  543. if (this.getEditor() !== null) {
  544. this.getEditor().setContent(newValue);
  545. } else {
  546. this.content = newValue;
  547. }
  548. }
  549. },
  550. readonly: function readonly(value) {
  551. if (this.editor !== null) {
  552. if (value) {
  553. this.editor.setMode('readonly');
  554. } else {
  555. this.editor.setMode('design');
  556. }
  557. }
  558. }
  559. },
  560. methods: {
  561. init: function init() {
  562. var _this = this;
  563. this.$nextTick(function () {
  564. __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default.a.init(_this.concatAssciativeArrays(_this.options(false), _this.other_options));
  565. });
  566. },
  567. initTransfer: function initTransfer() {
  568. var _this2 = this;
  569. this.$nextTick(function () {
  570. __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default.a.init(_this2.concatAssciativeArrays(_this2.options(true), _this2.other_options));
  571. });
  572. },
  573. options: function options(isFull) {
  574. var _this3 = this;
  575. return {
  576. selector: (isFull ? '#T_' : '#') + this.id,
  577. base_url: $A.serverUrl('js/build'),
  578. language: "zh_CN",
  579. toolbar: this.toolbar,
  580. plugins: this.plugins,
  581. save_onsavecallback: function save_onsavecallback(e) {
  582. _this3.$emit('editorSave', e);
  583. },
  584. paste_data_images: true,
  585. menu: {
  586. view: {
  587. title: 'View',
  588. items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen screenload | showcomments'
  589. },
  590. insert: {
  591. title: "Insert",
  592. items: "image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime | uploadImages browseImages | uploadFiles"
  593. }
  594. },
  595. codesample_languages: [{ text: "HTML/VUE/XML", value: "markup" }, { text: "JavaScript", value: "javascript" }, { text: "CSS", value: "css" }, { text: "PHP", value: "php" }, { text: "Ruby", value: "ruby" }, { text: "Python", value: "python" }, { text: "Java", value: "java" }, { text: "C", value: "c" }, { text: "C#", value: "csharp" }, { text: "C++", value: "cpp" }],
  596. height: isFull ? '100%' : $A.rightExists(this.height, '%') ? this.height : $A.runNum(this.height) || 360,
  597. resize: !isFull,
  598. convert_urls: false,
  599. toolbar_mode: 'sliding',
  600. toolbar_drawer: 'floating',
  601. setup: function setup(editor) {
  602. editor.ui.registry.addMenuButton('uploadImages', {
  603. text: _this3.$L('图片'),
  604. tooltip: _this3.$L('上传/浏览 图片'),
  605. fetch: function fetch(callback) {
  606. var items = [{
  607. type: 'menuitem',
  608. text: _this3.$L('上传图片'),
  609. onAction: function onAction() {
  610. _this3.$refs.myUpload.handleClick();
  611. }
  612. }, {
  613. type: 'menuitem',
  614. text: _this3.$L('浏览图片'),
  615. onAction: function onAction() {
  616. _this3.$refs.myUpload.browsePicture();
  617. }
  618. }];
  619. callback(items);
  620. }
  621. });
  622. editor.ui.registry.addMenuItem('uploadImages', {
  623. text: _this3.$L('上传图片'),
  624. onAction: function onAction() {
  625. _this3.$refs.myUpload.handleClick();
  626. }
  627. });
  628. editor.ui.registry.addMenuItem('browseImages', {
  629. text: _this3.$L('浏览图片'),
  630. onAction: function onAction() {
  631. _this3.$refs.myUpload.browsePicture();
  632. }
  633. });
  634. editor.ui.registry.addButton('uploadFiles', {
  635. text: _this3.$L('文件'),
  636. tooltip: _this3.$L('上传文件'),
  637. onAction: function onAction() {
  638. if (_this3.handleBeforeUpload()) {
  639. _this3.$refs.fileUpload.handleClick();
  640. }
  641. }
  642. });
  643. editor.ui.registry.addMenuItem('uploadFiles', {
  644. text: _this3.$L('上传文件'),
  645. onAction: function onAction() {
  646. if (_this3.handleBeforeUpload()) {
  647. _this3.$refs.fileUpload.handleClick();
  648. }
  649. }
  650. });
  651. if (isFull) {
  652. editor.ui.registry.addButton('screenload', {
  653. icon: 'fullscreen',
  654. tooltip: _this3.$L('退出全屏'),
  655. onAction: function onAction() {
  656. _this3.closeFull();
  657. }
  658. });
  659. editor.ui.registry.addMenuItem('screenload', {
  660. text: _this3.$L('退出全屏'),
  661. onAction: function onAction() {
  662. _this3.closeFull();
  663. }
  664. });
  665. editor.on('Init', function (e) {
  666. _this3.editorT = editor;
  667. _this3.editorT.setContent(_this3.content);
  668. if (_this3.readonly) {
  669. _this3.editorT.setMode('readonly');
  670. } else {
  671. _this3.editorT.setMode('design');
  672. }
  673. });
  674. } else {
  675. editor.ui.registry.addButton('screenload', {
  676. icon: 'fullscreen',
  677. tooltip: _this3.$L('全屏'),
  678. onAction: function onAction() {
  679. _this3.content = editor.getContent();
  680. _this3.transfer = true;
  681. _this3.initTransfer();
  682. }
  683. });
  684. editor.ui.registry.addMenuItem('screenload', {
  685. text: _this3.$L('全屏'),
  686. onAction: function onAction() {
  687. _this3.content = editor.getContent();
  688. _this3.transfer = true;
  689. _this3.initTransfer();
  690. }
  691. });
  692. editor.on('Init', function (e) {
  693. _this3.spinShow = false;
  694. _this3.editor = editor;
  695. _this3.editor.setContent(_this3.content);
  696. if (_this3.readonly) {
  697. _this3.editor.setMode('readonly');
  698. } else {
  699. _this3.editor.setMode('design');
  700. }
  701. _this3.$emit('editorInit', _this3.editor);
  702. });
  703. editor.on('KeyUp', function (e) {
  704. if (_this3.editor !== null) {
  705. _this3.submitNewContent();
  706. }
  707. });
  708. editor.on('Change', function (e) {
  709. if (_this3.editor !== null) {
  710. if (_this3.getContent() !== _this3.value) {
  711. _this3.submitNewContent();
  712. }
  713. _this3.$emit('editorChange', e);
  714. }
  715. });
  716. }
  717. }
  718. };
  719. },
  720. closeFull: function closeFull() {
  721. this.content = this.getContent();
  722. this.$emit('input', this.content);
  723. this.transfer = false;
  724. if (this.editorT != null) {
  725. this.editorT.destroy();
  726. this.editorT = null;
  727. }
  728. },
  729. transferChange: function transferChange(visible) {
  730. if (!visible && this.editorT != null) {
  731. this.content = this.editorT.getContent();
  732. this.$emit('input', this.content);
  733. this.editorT.destroy();
  734. this.editorT = null;
  735. }
  736. },
  737. getEditor: function getEditor() {
  738. return this.transfer ? this.editorT : this.editor;
  739. },
  740. concatAssciativeArrays: function concatAssciativeArrays(array1, array2) {
  741. if (array2.length === 0) return array1;
  742. if (array1.length === 0) return array2;
  743. var dest = [];
  744. for (var key in array1) {
  745. if (array1.hasOwnProperty(key)) {
  746. dest[key] = array1[key];
  747. }
  748. }
  749. for (var _key in array2) {
  750. if (array2.hasOwnProperty(_key)) {
  751. dest[_key] = array2[_key];
  752. }
  753. }
  754. return dest;
  755. },
  756. submitNewContent: function submitNewContent() {
  757. var _this4 = this;
  758. this.isTyping = true;
  759. if (this.checkerTimeout !== null) {
  760. clearTimeout(this.checkerTimeout);
  761. }
  762. this.checkerTimeout = setTimeout(function () {
  763. _this4.isTyping = false;
  764. }, 300);
  765. this.$emit('input', this.getContent());
  766. },
  767. insertContent: function insertContent(content) {
  768. if (this.getEditor() !== null) {
  769. this.getEditor().insertContent(content);
  770. } else {
  771. this.content += content;
  772. }
  773. },
  774. getContent: function getContent() {
  775. if (this.getEditor() === null) {
  776. return "";
  777. }
  778. return this.getEditor().getContent();
  779. },
  780. insertImage: function insertImage(src) {
  781. this.insertContent('<img src="' + src + '">');
  782. },
  783. editorImage: function editorImage(lists) {
  784. for (var i = 0; i < lists.length; i++) {
  785. var item = lists[i];
  786. if ((typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && typeof item.url === "string") {
  787. this.insertImage(item.url);
  788. }
  789. }
  790. },
  791. /********************文件上传部分************************/
  792. handleProgress: function handleProgress() {
  793. //开始上传
  794. this.uploadIng++;
  795. },
  796. handleSuccess: function handleSuccess(res, file) {
  797. //上传完成
  798. this.uploadIng--;
  799. if (res.ret === 1) {
  800. this.insertContent('<a href="' + res.data.url + '" target="_blank">' + res.data.name + ' (' + $A.bytesToSize(res.data.size * 1024) + ')</a>');
  801. } else {
  802. this.$Modal.warning({
  803. title: this.$L('上传失败'),
  804. content: this.$L('文件 % 上传失败,%', file.name, res.msg)
  805. });
  806. }
  807. },
  808. handleError: function handleError() {
  809. //上传错误
  810. this.uploadIng--;
  811. },
  812. handleFormatError: function handleFormatError(file) {
  813. //上传类型错误
  814. this.$Modal.warning({
  815. title: this.$L('文件格式不正确'),
  816. content: this.$L('文件 % 格式不正确,仅支持上传:%', file.name, this.uploadFormat.join(','))
  817. });
  818. },
  819. handleMaxSize: function handleMaxSize(file) {
  820. //上传大小错误
  821. this.$Modal.warning({
  822. title: this.$L('超出文件大小限制'),
  823. content: this.$L('文件 % 太大,不能超过%。', file.name, $A.bytesToSize(this.maxSize * 1024))
  824. });
  825. },
  826. handleBeforeUpload: function handleBeforeUpload() {
  827. //上传前判断
  828. this.params = {
  829. token: $A.getToken()
  830. };
  831. return true;
  832. }
  833. }
  834. });
  835. /***/ }),
  836. /***/ 577:
  837. /***/ (function(module, exports, __webpack_require__) {
  838. var render = function() {
  839. var _vm = this
  840. var _h = _vm.$createElement
  841. var _c = _vm._self._c || _h
  842. return _c(
  843. "div",
  844. [
  845. _c(
  846. "div",
  847. {
  848. staticClass: "teditor-box",
  849. class: [_vm.spinShow ? "teditor-loadstyle" : "teditor-loadedstyle"]
  850. },
  851. [
  852. _c("textarea", { ref: "myTextarea", attrs: { id: _vm.id } }, [
  853. _vm._v(_vm._s(_vm.content))
  854. ]),
  855. _vm._v(" "),
  856. _vm.spinShow
  857. ? _c(
  858. "Spin",
  859. { attrs: { fix: "" } },
  860. [
  861. _c("Icon", {
  862. staticClass: "upload-control-spin-icon-load",
  863. attrs: { type: "ios-loading", size: "18" }
  864. }),
  865. _vm._v(" "),
  866. _c("div", [_vm._v(_vm._s(_vm.$L("加载组件中...")))])
  867. ],
  868. 1
  869. )
  870. : _vm._e(),
  871. _vm._v(" "),
  872. _c("ImgUpload", {
  873. ref: "myUpload",
  874. staticClass: "upload-control",
  875. attrs: { type: "callback", uploadIng: _vm.uploadIng, num: "50" },
  876. on: {
  877. "update:uploadIng": function($event) {
  878. _vm.uploadIng = $event
  879. },
  880. "update:upload-ing": function($event) {
  881. _vm.uploadIng = $event
  882. },
  883. "on-callback": _vm.editorImage
  884. }
  885. }),
  886. _vm._v(" "),
  887. _c("Upload", {
  888. ref: "fileUpload",
  889. staticClass: "upload-control",
  890. attrs: {
  891. name: "files",
  892. action: _vm.actionUrl,
  893. data: _vm.params,
  894. multiple: "",
  895. format: _vm.uploadFormat,
  896. "show-upload-list": false,
  897. "max-size": _vm.maxSize,
  898. "on-progress": _vm.handleProgress,
  899. "on-success": _vm.handleSuccess,
  900. "on-error": _vm.handleError,
  901. "on-format-error": _vm.handleFormatError,
  902. "on-exceeded-size": _vm.handleMaxSize,
  903. "before-upload": _vm.handleBeforeUpload
  904. }
  905. })
  906. ],
  907. 1
  908. ),
  909. _vm._v(" "),
  910. _vm.uploadIng > 0
  911. ? _c(
  912. "Spin",
  913. { attrs: { fix: "" } },
  914. [
  915. _c("Icon", {
  916. staticClass: "upload-control-spin-icon-load",
  917. attrs: { type: "ios-loading" }
  918. }),
  919. _vm._v(" "),
  920. _c("div", [_vm._v(_vm._s(_vm.$L("正在上传文件...")))])
  921. ],
  922. 1
  923. )
  924. : _vm._e(),
  925. _vm._v(" "),
  926. _c(
  927. "Modal",
  928. {
  929. staticClass: "teditor-transfer",
  930. attrs: { "footer-hide": "", fullscreen: "", transfer: "" },
  931. on: { "on-visible-change": _vm.transferChange },
  932. model: {
  933. value: _vm.transfer,
  934. callback: function($$v) {
  935. _vm.transfer = $$v
  936. },
  937. expression: "transfer"
  938. }
  939. },
  940. [
  941. _c(
  942. "div",
  943. { attrs: { slot: "close" }, slot: "close" },
  944. [
  945. _c("Button", { attrs: { type: "primary", size: "small" } }, [
  946. _vm._v(_vm._s(_vm.$L("完成")))
  947. ])
  948. ],
  949. 1
  950. ),
  951. _vm._v(" "),
  952. _c("div", { staticClass: "teditor-transfer-body" }, [
  953. _c("textarea", { attrs: { id: "T_" + _vm.id } }, [
  954. _vm._v(_vm._s(_vm.content))
  955. ])
  956. ]),
  957. _vm._v(" "),
  958. _vm.uploadIng > 0
  959. ? _c(
  960. "Spin",
  961. { attrs: { fix: "" } },
  962. [
  963. _c("Icon", {
  964. staticClass: "upload-control-spin-icon-load",
  965. attrs: { type: "ios-loading" }
  966. }),
  967. _vm._v(" "),
  968. _c("div", [_vm._v(_vm._s(_vm.$L("正在上传文件...")))])
  969. ],
  970. 1
  971. )
  972. : _vm._e()
  973. ],
  974. 1
  975. )
  976. ],
  977. 1
  978. )
  979. }
  980. var staticRenderFns = []
  981. render._withStripped = true
  982. module.exports = { render: render, staticRenderFns: staticRenderFns }
  983. if (false) {
  984. module.hot.accept()
  985. if (module.hot.data) {
  986. require("vue-hot-reload-api") .rerender("data-v-c6b4dc88", module.exports)
  987. }
  988. }
  989. /***/ }),
  990. /***/ 670:
  991. /***/ (function(module, exports) {
  992. var shortMonth = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
  993. var defMonthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  994. var dateFunc = {
  995. getDuration: function getDuration(date) {
  996. // how many days of this month
  997. var dt = new Date(date);
  998. var month = dt.getMonth();
  999. dt.setMonth(dt.getMonth() + 1);
  1000. dt.setDate(0);
  1001. return dt.getDate();
  1002. },
  1003. changeDay: function changeDay(date, num) {
  1004. var dt = new Date(date);
  1005. return new Date(dt.setDate(dt.getDate() + num));
  1006. },
  1007. getStartDate: function getStartDate(date) {
  1008. // return first day of this month
  1009. // console.log(new Date(date.getFullYear(), date.getMonth(), 1,0,0))
  1010. return new Date(date.getFullYear(), date.getMonth(), 1);
  1011. },
  1012. getEndDate: function getEndDate(date) {
  1013. // get last day of this month
  1014. var dt = new Date(date.getFullYear(), date.getMonth() + 1, 1, 0, 0); // 1st day of next month
  1015. return new Date(dt.setDate(dt.getDate() - 1)); // last day of this month
  1016. },
  1017. // 获取当前周日期数组
  1018. getDates: function getDates(date) {
  1019. var new_Date = date;
  1020. var timesStamp = new Date(new_Date.getFullYear(), new_Date.getMonth(), new_Date.getDate(), 0, 0, 0).getTime();
  1021. // let timesStamp = new_Date.getTime();
  1022. var currenDay = new_Date.getDay();
  1023. var dates = [];
  1024. for (var i = 0; i < 7; i++) {
  1025. dates.push(new Date(timesStamp + 24 * 60 * 60 * 1000 * (i - (currenDay + 6) % 7)));
  1026. }
  1027. return dates;
  1028. },
  1029. format: function format(date, _format, monthNames) {
  1030. monthNames = monthNames || defMonthNames;
  1031. if (typeof date === 'string') {
  1032. date = new Date(date.replace(/-/g, '/'));
  1033. } else {
  1034. date = new Date(date);
  1035. }
  1036. var map = {
  1037. 'M': date.getMonth() + 1,
  1038. 'd': date.getDate(),
  1039. 'h': date.getHours(),
  1040. 'm': date.getMinutes(),
  1041. 's': date.getSeconds(),
  1042. 'q': Math.floor((date.getMonth() + 3) / 3),
  1043. 'S': date.getMilliseconds()
  1044. };
  1045. _format = _format.replace(/([yMdhmsqS])+/g, function (all, t) {
  1046. var v = map[t];
  1047. if (v !== undefined) {
  1048. if (all === 'MMMM') {
  1049. return monthNames[v - 1];
  1050. }
  1051. if (all === 'MMM') {
  1052. return shortMonth[v - 1];
  1053. }
  1054. if (all.length > 1) {
  1055. v = '0' + v;
  1056. v = v.substr(v.length - 2);
  1057. }
  1058. return v;
  1059. } else if (t === 'y') {
  1060. return String(date.getFullYear()).substr(4 - all.length);
  1061. }
  1062. return all;
  1063. });
  1064. return _format;
  1065. }
  1066. };
  1067. module.exports = dateFunc;
  1068. /***/ }),
  1069. /***/ 671:
  1070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1071. "use strict";
  1072. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(6);
  1073. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
  1074. /* harmony default export */ __webpack_exports__["a"] = (new __WEBPACK_IMPORTED_MODULE_0_vue___default.a());
  1075. /***/ }),
  1076. /***/ 704:
  1077. /***/ (function(module, exports, __webpack_require__) {
  1078. // style-loader: Adds some css to the DOM by adding a <style> tag
  1079. // load the styles
  1080. var content = __webpack_require__(705);
  1081. if(typeof content === 'string') content = [[module.i, content, '']];
  1082. if(content.locals) module.exports = content.locals;
  1083. // add the styles to the DOM
  1084. var update = __webpack_require__(3)("44211f78", content, false, {});
  1085. // Hot Module Replacement
  1086. if(false) {
  1087. // When the styles change, update the <style> tags
  1088. if(!content.locals) {
  1089. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7ed63c05\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./todo.vue", function() {
  1090. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7ed63c05\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./todo.vue");
  1091. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1092. update(newContent);
  1093. });
  1094. }
  1095. // When the module is disposed, remove the <style> tags
  1096. module.hot.dispose(function() { update(); });
  1097. }
  1098. /***/ }),
  1099. /***/ 705:
  1100. /***/ (function(module, exports, __webpack_require__) {
  1101. exports = module.exports = __webpack_require__(2)(false);
  1102. // imports
  1103. // module
  1104. exports.push([module.i, "\n.todo-input-enter .ivu-input {\n border: 0;\n background-color: rgba(255, 255, 255, 0.9);\n}\n", ""]);
  1105. // exports
  1106. /***/ }),
  1107. /***/ 706:
  1108. /***/ (function(module, exports, __webpack_require__) {
  1109. // style-loader: Adds some css to the DOM by adding a <style> tag
  1110. // load the styles
  1111. var content = __webpack_require__(707);
  1112. if(typeof content === 'string') content = [[module.i, content, '']];
  1113. if(content.locals) module.exports = content.locals;
  1114. // add the styles to the DOM
  1115. var update = __webpack_require__(3)("31a3f57c", content, false, {});
  1116. // Hot Module Replacement
  1117. if(false) {
  1118. // When the styles change, update the <style> tags
  1119. if(!content.locals) {
  1120. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7ed63c05\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./todo.vue", function() {
  1121. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7ed63c05\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./todo.vue");
  1122. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1123. update(newContent);
  1124. });
  1125. }
  1126. // When the module is disposed, remove the <style> tags
  1127. module.hot.dispose(function() { update(); });
  1128. }
  1129. /***/ }),
  1130. /***/ 707:
  1131. /***/ (function(module, exports, __webpack_require__) {
  1132. exports = module.exports = __webpack_require__(2)(false);
  1133. // imports
  1134. // module
  1135. exports.push([module.i, "\n.todo .todo-main[data-v-7ed63c05] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n min-height: 500px;\n padding: 5px;\n}\n.todo .todo-main .todo-ul[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n}\n.todo .todo-main .todo-ul .todo-li[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n position: relative;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card[data-v-7ed63c05] {\n position: absolute;\n top: 10px;\n left: 10px;\n right: 10px;\n bottom: 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head[data-v-7ed63c05] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 10px;\n height: 38px;\n border-radius: 4px 4px 0 0;\n color: #ffffff;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .ft.icon[data-v-7ed63c05] {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .flag[data-v-7ed63c05] {\n font-weight: bold;\n font-size: 14px;\n margin-right: 5px;\n min-width: 16px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-card-title[data-v-7ed63c05] {\n font-weight: bold;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n height: 100%;\n cursor: pointer;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box:hover .todo-input-placeholder[data-v-7ed63c05] {\n opacity: 1;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box.active .todo-input-pbox[data-v-7ed63c05] {\n display: none;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box.active .todo-input-ibox[data-v-7ed63c05] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-placeholder[data-v-7ed63c05] {\n color: rgba(255, 255, 255, 0.6);\n padding-right: 6px;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n opacity: 0;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-pbox[data-v-7ed63c05],\n .todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-ibox[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n padding-left: 14px;\n height: 100%;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-ibox[data-v-7ed63c05] {\n display: none;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-close[data-v-7ed63c05] {\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding-left: 8px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head .todo-input-box .todo-input-close i[data-v-7ed63c05] {\n font-size: 18px;\n font-weight: normal;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head.p1[data-v-7ed63c05] {\n background: rgba(248, 14, 21, 0.6);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head.p2[data-v-7ed63c05] {\n background: rgba(236, 196, 2, 0.5);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head.p3[data-v-7ed63c05] {\n background: rgba(0, 159, 227, 0.7);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-head.p4[data-v-7ed63c05] {\n background: rgba(121, 170, 28, 0.7);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n background-color: #f5f6f7;\n border-radius: 0 0 4px 4px;\n overflow: auto;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul[data-v-7ed63c05] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n min-height: 20px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li[data-v-7ed63c05] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 100%;\n padding: 8px;\n color: #444444;\n border-bottom: dotted 1px rgba(153, 153, 153, 0.25);\n position: relative;\n cursor: pointer;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li.complete[data-v-7ed63c05] {\n color: #999999;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li.complete .task-title[data-v-7ed63c05] {\n text-decoration: line-through;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li.more[data-v-7ed63c05] {\n color: #666;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-check[data-v-7ed63c05] {\n font-size: 16px;\n padding-right: 6px;\n padding-top: 3px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-loading[data-v-7ed63c05] {\n width: 15px;\n height: 15px;\n margin-right: 6px;\n margin-top: 3px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-overdue[data-v-7ed63c05] {\n color: #ff0000;\n padding-right: 2px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-title[data-v-7ed63c05] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n word-break: break-all;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-title[data-v-7ed63c05]:hover {\n color: #000000;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .task-title .ivu-icon[data-v-7ed63c05] {\n font-size: 16px;\n color: #afafaf;\n vertical-align: top;\n padding: 2px 6px;\n -webkit-transform: scale(0.98);\n transform: scale(0.98);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .subtask-progress[data-v-7ed63c05] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: -1;\n overflow: hidden;\n pointer-events: none;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-ul .content-li .subtask-progress em[data-v-7ed63c05] {\n display: block;\n height: 100%;\n background-color: rgba(3, 150, 242, 0.07);\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-loading[data-v-7ed63c05] {\n width: 100%;\n height: 22px;\n text-align: center;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card .todo-card-content .content-empty[data-v-7ed63c05] {\n margin: 6px auto;\n text-align: center;\n color: #666;\n}\n@media (max-width: 768px) {\n.todo .todo-main[data-v-7ed63c05] {\n height: auto;\n}\n.todo .todo-main .todo-ul[data-v-7ed63c05] {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.todo .todo-main .todo-ul .todo-li[data-v-7ed63c05] {\n width: 100%;\n}\n.todo .todo-main .todo-ul .todo-li .todo-card[data-v-7ed63c05] {\n position: static;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n margin: 6px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n min-height: 320px;\n max-height: 520px;\n}\n}\n", ""]);
  1136. // exports
  1137. /***/ }),
  1138. /***/ 708:
  1139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1140. "use strict";
  1141. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1142. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(62);
  1143. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
  1144. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent__ = __webpack_require__(550);
  1145. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_WContent__);
  1146. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar__ = __webpack_require__(709);
  1147. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar__);
  1148. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete__ = __webpack_require__(730);
  1149. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete__);
  1150. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention__ = __webpack_require__(735);
  1151. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention__);
  1152. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mixins_task__ = __webpack_require__(38);
  1153. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_report_my__ = __webpack_require__(740);
  1154. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_report_my___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_report_my__);
  1155. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_report_receive__ = __webpack_require__(752);
  1156. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_report_receive___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_report_receive__);
  1157. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer__ = __webpack_require__(60);
  1158. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer__);
  1159. //
  1160. //
  1161. //
  1162. //
  1163. //
  1164. //
  1165. //
  1166. //
  1167. //
  1168. //
  1169. //
  1170. //
  1171. //
  1172. //
  1173. //
  1174. //
  1175. //
  1176. //
  1177. //
  1178. //
  1179. //
  1180. //
  1181. //
  1182. //
  1183. //
  1184. //
  1185. //
  1186. //
  1187. //
  1188. //
  1189. //
  1190. //
  1191. //
  1192. //
  1193. //
  1194. //
  1195. //
  1196. //
  1197. //
  1198. //
  1199. //
  1200. //
  1201. //
  1202. //
  1203. //
  1204. //
  1205. //
  1206. //
  1207. //
  1208. //
  1209. //
  1210. //
  1211. //
  1212. //
  1213. //
  1214. //
  1215. //
  1216. //
  1217. //
  1218. //
  1219. //
  1220. //
  1221. //
  1222. //
  1223. //
  1224. //
  1225. //
  1226. //
  1227. //
  1228. //
  1229. //
  1230. //
  1231. //
  1232. //
  1233. //
  1234. //
  1235. //
  1236. //
  1237. //
  1238. //
  1239. //
  1240. //
  1241. //
  1242. //
  1243. //
  1244. //
  1245. //
  1246. //
  1247. //
  1248. //
  1249. //
  1250. //
  1251. //
  1252. //
  1253. //
  1254. //
  1255. //
  1256. //
  1257. //
  1258. //
  1259. //
  1260. //
  1261. //
  1262. //
  1263. //
  1264. //
  1265. //
  1266. //
  1267. //
  1268. //
  1269. //
  1270. //
  1271. //
  1272. //
  1273. //
  1274. //
  1275. //
  1276. //
  1277. //
  1278. //
  1279. //
  1280. //
  1281. //
  1282. //
  1283. //
  1284. //
  1285. //
  1286. //
  1287. //
  1288. //
  1289. //
  1290. //
  1291. //
  1292. //
  1293. //
  1294. //
  1295. //
  1296. //
  1297. //
  1298. //
  1299. //
  1300. //
  1301. //
  1302. //
  1303. //
  1304. //
  1305. //
  1306. //
  1307. //
  1308. //
  1309. //
  1310. //
  1311. //
  1312. //
  1313. //
  1314. //
  1315. //
  1316. //
  1317. //
  1318. //
  1319. //
  1320. //
  1321. //
  1322. //
  1323. //
  1324. //
  1325. //
  1326. //
  1327. //
  1328. //
  1329. //
  1330. //
  1331. //
  1332. //
  1333. //
  1334. //
  1335. //
  1336. //
  1337. //
  1338. //
  1339. //
  1340. //
  1341. //
  1342. //
  1343. //
  1344. //
  1345. //
  1346. //
  1347. //
  1348. //
  1349. //
  1350. //
  1351. //
  1352. //
  1353. //
  1354. //
  1355. //
  1356. //
  1357. //
  1358. //
  1359. //
  1360. //
  1361. //
  1362. //
  1363. //
  1364. //
  1365. //
  1366. //
  1367. //
  1368. //
  1369. //
  1370. //
  1371. //
  1372. //
  1373. //
  1374. //
  1375. //
  1376. //
  1377. //
  1378. //
  1379. //
  1380. //
  1381. //
  1382. //
  1383. //
  1384. //
  1385. //
  1386. //
  1387. //
  1388. //
  1389. //
  1390. //
  1391. //
  1392. //
  1393. //
  1394. //
  1395. //
  1396. //
  1397. //
  1398. //
  1399. //
  1400. //
  1401. //
  1402. //
  1403. //
  1404. //
  1405. //
  1406. //
  1407. //
  1408. //
  1409. //
  1410. //
  1411. //
  1412. //
  1413. //
  1414. //
  1415. //
  1416. //
  1417. //
  1418. //
  1419. //
  1420. //
  1421. //
  1422. //
  1423. //
  1424. //
  1425. //
  1426. //
  1427. //
  1428. //
  1429. //
  1430. //
  1431. //
  1432. //
  1433. //
  1434. //
  1435. //
  1436. //
  1437. //
  1438. //
  1439. //
  1440. //
  1441. //
  1442. //
  1443. //
  1444. //
  1445. //
  1446. //
  1447. //
  1448. //
  1449. //
  1450. //
  1451. //
  1452. //
  1453. //
  1454. //
  1455. //
  1456. //
  1457. //
  1458. //
  1459. //
  1460. //
  1461. //
  1462. //
  1463. //
  1464. //
  1465. //
  1466. //
  1467. //
  1468. //
  1469. //
  1470. //
  1471. //
  1472. //
  1473. //
  1474. //
  1475. //
  1476. //
  1477. //
  1478. //
  1479. //
  1480. //
  1481. //
  1482. //
  1483. //
  1484. //
  1485. //
  1486. //
  1487. //
  1488. //
  1489. //
  1490. //
  1491. //
  1492. //
  1493. //
  1494. //
  1495. //
  1496. //
  1497. //
  1498. //
  1499. //
  1500. //
  1501. //
  1502. //
  1503. //
  1504. //
  1505. //
  1506. //
  1507. //
  1508. //
  1509. //
  1510. /* harmony default export */ __webpack_exports__["default"] = ({
  1511. components: {
  1512. WDrawer: __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer___default.a,
  1513. ReportReceive: __WEBPACK_IMPORTED_MODULE_7__components_report_receive___default.a,
  1514. ReportMy: __WEBPACK_IMPORTED_MODULE_6__components_report_my___default.a, draggable: __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default.a, TodoAttention: __WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention___default.a, TodoComplete: __WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete___default.a, TodoCalendar: __WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar___default.a, WContent: __WEBPACK_IMPORTED_MODULE_1__components_WContent___default.a },
  1515. mixins: [__WEBPACK_IMPORTED_MODULE_5__mixins_task__["a" /* default */]],
  1516. data: function data() {
  1517. return {
  1518. loadIng: 0,
  1519. taskDatas: {
  1520. "1": { lists: [], hasMorePages: false },
  1521. "2": { lists: [], hasMorePages: false },
  1522. "3": { lists: [], hasMorePages: false },
  1523. "4": { lists: [], hasMorePages: false }
  1524. },
  1525. taskSortData: '',
  1526. taskSortDisabled: false,
  1527. todoDrawerShow: false,
  1528. todoDrawerTab: 'calendar',
  1529. todoReportDrawerShow: false,
  1530. todoReportDrawerTab: 'my'
  1531. };
  1532. },
  1533. mounted: function mounted() {
  1534. var _this = this;
  1535. if ($A.getToken() === false) {
  1536. window.location.replace($A.webUrl());
  1537. return;
  1538. }
  1539. this.refreshTask();
  1540. //
  1541. $A.setOnTaskInfoListener('pages/todo', function (act, detail) {
  1542. if (detail.username != _this.usrName) {
  1543. var _loop = function _loop(level) {
  1544. _this.taskDatas[level].lists.some(function (task, i) {
  1545. if (task.id == detail.id) {
  1546. _this.taskDatas[level].lists.splice(i, 1);
  1547. _this.taskSortData = _this.getTaskSort();
  1548. return true;
  1549. }
  1550. });
  1551. };
  1552. for (var level in _this.taskDatas) {
  1553. _loop(level);
  1554. }
  1555. return;
  1556. }
  1557. //特殊事件(非操作任务的)
  1558. switch (act) {
  1559. case 'deleteproject': // 删除项目
  1560. case 'deletelabel':
  1561. // 删除分类
  1562. _this.refreshTask();
  1563. return;
  1564. case 'addlabel': // 添加分类
  1565. case "labelsort": // 调整分类排序
  1566. case "tasksort":
  1567. // 调整任务排序
  1568. return;
  1569. }
  1570. //
  1571. var _loop2 = function _loop2(level) {
  1572. _this.taskDatas[level].lists.some(function (task, i) {
  1573. if (task.id == detail.id) {
  1574. _this.taskDatas[level].lists.splice(i, 1, detail);
  1575. return true;
  1576. }
  1577. });
  1578. };
  1579. for (var level in _this.taskDatas) {
  1580. _loop2(level);
  1581. }
  1582. //
  1583. var addOrDelete = function addOrDelete(isAdd) {
  1584. if (isAdd) {
  1585. for (var level in _this.taskDatas) {
  1586. if (level == detail.level) {
  1587. var index = _this.taskDatas[level].lists.length;
  1588. _this.taskDatas[level].lists.some(function (task, i) {
  1589. if (detail.userorder > task.userorder || detail.userorder == task.userorder && detail.id > task.id) {
  1590. index = i;
  1591. return true;
  1592. }
  1593. });
  1594. _this.taskDatas[level].lists.splice(index, 0, detail);
  1595. }
  1596. }
  1597. } else {
  1598. var _loop3 = function _loop3(_level) {
  1599. _this.taskDatas[_level].lists.some(function (task, i) {
  1600. if (task.id == detail.id) {
  1601. _this.taskDatas[_level].lists.splice(i, 1);
  1602. return true;
  1603. }
  1604. });
  1605. };
  1606. for (var _level in _this.taskDatas) {
  1607. _loop3(_level);
  1608. }
  1609. }
  1610. _this.taskSortData = _this.getTaskSort();
  1611. };
  1612. //
  1613. switch (act) {
  1614. case "title": // 标题
  1615. case "desc": // 描述
  1616. case "plannedtime": // 设置计划时间
  1617. case "unplannedtime": // 取消计划时间
  1618. case "complete": // 标记完成
  1619. case "unfinished": // 标记未完成
  1620. case "comment":
  1621. // 评论
  1622. // 这些都不用处理
  1623. break;
  1624. case "level":
  1625. var _loop4 = function _loop4(level) {
  1626. _this.taskDatas[level].lists.some(function (task, i) {
  1627. if (task.id == detail.id) {
  1628. _this.taskDatas[level].lists.splice(i, 1);
  1629. return true;
  1630. }
  1631. });
  1632. if (level == detail.level) {
  1633. var index = _this.taskDatas[level].lists.length;
  1634. _this.taskDatas[level].lists.some(function (task, i) {
  1635. if (detail.userorder > task.userorder || detail.userorder == task.userorder && detail.id > task.id) {
  1636. index = i;
  1637. return true;
  1638. }
  1639. });
  1640. _this.taskDatas[level].lists.splice(index, 0, detail);
  1641. }
  1642. };
  1643. // 优先级
  1644. for (var level in _this.taskDatas) {
  1645. _loop4(level);
  1646. }
  1647. _this.taskSortData = _this.getTaskSort();
  1648. break;
  1649. case "create": // 创建任务
  1650. case "username":
  1651. // 负责人
  1652. addOrDelete(detail.username == _this.usrName);
  1653. break;
  1654. case "delete": // 删除任务
  1655. case "archived":
  1656. // 归档
  1657. addOrDelete(false);
  1658. break;
  1659. case "unarchived":
  1660. // 取消归档
  1661. addOrDelete(true);
  1662. break;
  1663. }
  1664. }, true);
  1665. },
  1666. deactivated: function deactivated() {
  1667. this.todoDrawerShow = false;
  1668. this.todoReportDrawerShow = false;
  1669. },
  1670. computed: {},
  1671. watch: {
  1672. usrName: function usrName() {
  1673. this.usrLogin && this.refreshTask();
  1674. }
  1675. },
  1676. methods: {
  1677. pTitle: function pTitle(p) {
  1678. switch (p) {
  1679. case "1":
  1680. return this.$L("重要且紧急");
  1681. case "2":
  1682. return this.$L("重要不紧急");
  1683. case "3":
  1684. return this.$L("紧急不重要");
  1685. case "4":
  1686. return this.$L("不重要不紧急");
  1687. }
  1688. },
  1689. refreshTask: function refreshTask() {
  1690. this.taskDatas = {
  1691. "1": { lists: [], hasMorePages: false },
  1692. "2": { lists: [], hasMorePages: false },
  1693. "3": { lists: [], hasMorePages: false },
  1694. "4": { lists: [], hasMorePages: false }
  1695. };
  1696. for (var i = 1; i <= 4; i++) {
  1697. this.getTaskLists(i.toString());
  1698. }
  1699. },
  1700. getTaskLists: function getTaskLists(index, isNext) {
  1701. var _this2 = this;
  1702. var withNextNum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  1703. var taskData = this.taskDatas[index];
  1704. var currentPage = 1;
  1705. var pagesize = 20;
  1706. var withNextPage = false;
  1707. //
  1708. if (isNext === true) {
  1709. if (taskData.hasMorePages !== true) {
  1710. return;
  1711. }
  1712. currentPage = Math.max(1, $A.runNum(taskData['currentPage']));
  1713. var tempLists = this.taskDatas[index].lists;
  1714. if (tempLists.length >= currentPage * pagesize) {
  1715. currentPage++;
  1716. } else {
  1717. withNextPage = true;
  1718. }
  1719. withNextNum = $A.runNum(withNextNum);
  1720. }
  1721. this.$set(taskData, 'hasMorePages', false);
  1722. this.$set(taskData, 'loadIng', $A.runNum(taskData.loadIng) + 1);
  1723. this.taskSortDisabled = true;
  1724. this.loadIng++;
  1725. $A.apiAjax({
  1726. url: 'project/task/lists',
  1727. data: {
  1728. level: index,
  1729. sorts: { key: 'userorder', order: 'desc' },
  1730. page: currentPage,
  1731. pagesize: pagesize
  1732. },
  1733. complete: function complete() {
  1734. _this2.loadIng--;
  1735. _this2.taskSortDisabled = false;
  1736. _this2.$set(taskData, 'loadIng', $A.runNum(taskData.loadIng) - 1);
  1737. },
  1738. success: function success(res) {
  1739. if (res.ret === 1) {
  1740. var inLists = void 0;
  1741. res.data.lists.forEach(function (data) {
  1742. inLists = false;
  1743. taskData.lists.some(function (item, i) {
  1744. if (item.id == data.id) {
  1745. taskData.lists.splice(i, 1, data);
  1746. return inLists = true;
  1747. }
  1748. });
  1749. if (!inLists) {
  1750. taskData.lists.push(data);
  1751. }
  1752. });
  1753. _this2.taskSortData = _this2.getTaskSort();
  1754. _this2.$set(taskData, 'currentPage', res.data.currentPage);
  1755. _this2.$set(taskData, 'hasMorePages', res.data.hasMorePages);
  1756. if (res.data.currentPage && withNextPage && withNextNum < 5) {
  1757. _this2.getTaskLists(index, true, withNextNum + 1);
  1758. }
  1759. } else {
  1760. _this2.$set(taskData, 'lists', []);
  1761. _this2.$set(taskData, 'hasMorePages', false);
  1762. }
  1763. }
  1764. });
  1765. },
  1766. addTask: function addTask(index) {
  1767. var _this3 = this;
  1768. var taskData = this.taskDatas[index];
  1769. var title = $A.trim(taskData.title);
  1770. if ($A.count(title) == 0) {
  1771. return;
  1772. }
  1773. this.$set(taskData, 'focus', false);
  1774. this.$set(taskData, 'title', '');
  1775. //
  1776. var tempId = $A.randomString(16);
  1777. taskData.lists.unshift({
  1778. id: tempId,
  1779. title: title,
  1780. loadIng: true
  1781. });
  1782. this.taskSortDisabled = true;
  1783. $A.apiAjax({
  1784. url: 'project/task/add',
  1785. data: {
  1786. title: title,
  1787. level: index
  1788. },
  1789. complete: function complete() {
  1790. _this3.taskSortDisabled = false;
  1791. },
  1792. error: function error() {
  1793. taskData.lists.some(function (item, i) {
  1794. if (item.id == tempId) {
  1795. taskData.lists.splice(i, 1);
  1796. return true;
  1797. }
  1798. });
  1799. alert(_this3.$L('网络繁忙,请稍后再试!'));
  1800. },
  1801. success: function success(res) {
  1802. if (res.ret === 1) {
  1803. _this3.$Message.success(res.msg);
  1804. } else {
  1805. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  1806. }
  1807. taskData.lists.some(function (item, i) {
  1808. if (item.id == tempId) {
  1809. if (res.ret === 1) {
  1810. taskData.lists.splice(i, 1, res.data);
  1811. } else {
  1812. taskData.lists.splice(i, 1);
  1813. }
  1814. return true;
  1815. }
  1816. });
  1817. _this3.taskSortData = _this3.getTaskSort();
  1818. }
  1819. });
  1820. },
  1821. getTaskSort: function getTaskSort() {
  1822. var sortData = "",
  1823. taskData = "";
  1824. for (var level in this.taskDatas) {
  1825. taskData = "";
  1826. this.taskDatas[level].lists.forEach(function (task) {
  1827. if (taskData) taskData += "-";
  1828. taskData += task.id;
  1829. });
  1830. if (sortData) sortData += ";";
  1831. sortData += level + ":" + taskData;
  1832. }
  1833. return sortData;
  1834. },
  1835. handleTodo: function handleTodo(event) {
  1836. switch (event) {
  1837. case 'calendar':
  1838. case 'complete':
  1839. case 'attention':
  1840. {
  1841. this.todoDrawerShow = true;
  1842. this.todoDrawerTab = event;
  1843. break;
  1844. }
  1845. case 'report':
  1846. {
  1847. this.todoReportDrawerShow = true;
  1848. break;
  1849. }
  1850. }
  1851. },
  1852. taskSortUpdate: function taskSortUpdate() {
  1853. var _this4 = this;
  1854. var oldSort = this.taskSortData;
  1855. var newSort = this.getTaskSort();
  1856. if (oldSort == newSort) {
  1857. return;
  1858. }
  1859. this.taskSortData = newSort;
  1860. this.taskSortDisabled = true;
  1861. $A.apiAjax({
  1862. url: 'project/sort/todo',
  1863. data: {
  1864. oldsort: oldSort,
  1865. newsort: newSort
  1866. },
  1867. complete: function complete() {
  1868. _this4.taskSortDisabled = false;
  1869. },
  1870. error: function error() {
  1871. _this4.refreshTask();
  1872. alert(_this4.$L('网络繁忙,请稍后再试!'));
  1873. },
  1874. success: function success(res) {
  1875. if (res.ret === 1) {
  1876. _this4.$Message.success(res.msg);
  1877. } else {
  1878. _this4.refreshTask();
  1879. _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
  1880. }
  1881. }
  1882. });
  1883. },
  1884. subtaskProgress: function subtaskProgress(task) {
  1885. var subtask = task.subtask,
  1886. complete = task.complete;
  1887. if (!subtask || subtask.length === 0) {
  1888. return complete ? 100 : 0;
  1889. }
  1890. var completeLists = subtask.filter(function (item) {
  1891. return item.status == 'complete';
  1892. });
  1893. return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
  1894. },
  1895. openTaskModal: function openTaskModal(taskDetail) {
  1896. this.taskDetail(taskDetail);
  1897. }
  1898. }
  1899. });
  1900. /***/ }),
  1901. /***/ 709:
  1902. /***/ (function(module, exports, __webpack_require__) {
  1903. var disposed = false
  1904. function injectStyle (ssrContext) {
  1905. if (disposed) return
  1906. __webpack_require__(710)
  1907. }
  1908. var normalizeComponent = __webpack_require__(4)
  1909. /* script */
  1910. var __vue_script__ = __webpack_require__(712)
  1911. /* template */
  1912. var __vue_template__ = __webpack_require__(729)
  1913. /* template functional */
  1914. var __vue_template_functional__ = false
  1915. /* styles */
  1916. var __vue_styles__ = injectStyle
  1917. /* scopeId */
  1918. var __vue_scopeId__ = "data-v-0963e7e8"
  1919. /* moduleIdentifier (server only) */
  1920. var __vue_module_identifier__ = null
  1921. var Component = normalizeComponent(
  1922. __vue_script__,
  1923. __vue_template__,
  1924. __vue_template_functional__,
  1925. __vue_styles__,
  1926. __vue_scopeId__,
  1927. __vue_module_identifier__
  1928. )
  1929. Component.options.__file = "resources/assets/js/main/components/project/todo/calendar.vue"
  1930. /* hot reload */
  1931. if (false) {(function () {
  1932. var hotAPI = require("vue-hot-reload-api")
  1933. hotAPI.install(require("vue"), false)
  1934. if (!hotAPI.compatible) return
  1935. module.hot.accept()
  1936. if (!module.hot.data) {
  1937. hotAPI.createRecord("data-v-0963e7e8", Component.options)
  1938. } else {
  1939. hotAPI.reload("data-v-0963e7e8", Component.options)
  1940. }
  1941. module.hot.dispose(function (data) {
  1942. disposed = true
  1943. })
  1944. })()}
  1945. module.exports = Component.exports
  1946. /***/ }),
  1947. /***/ 710:
  1948. /***/ (function(module, exports, __webpack_require__) {
  1949. // style-loader: Adds some css to the DOM by adding a <style> tag
  1950. // load the styles
  1951. var content = __webpack_require__(711);
  1952. if(typeof content === 'string') content = [[module.i, content, '']];
  1953. if(content.locals) module.exports = content.locals;
  1954. // add the styles to the DOM
  1955. var update = __webpack_require__(3)("5bf3193e", content, false, {});
  1956. // Hot Module Replacement
  1957. if(false) {
  1958. // When the styles change, update the <style> tags
  1959. if(!content.locals) {
  1960. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-0963e7e8\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./calendar.vue", function() {
  1961. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-0963e7e8\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./calendar.vue");
  1962. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1963. update(newContent);
  1964. });
  1965. }
  1966. // When the module is disposed, remove the <style> tags
  1967. module.hot.dispose(function() { update(); });
  1968. }
  1969. /***/ }),
  1970. /***/ 711:
  1971. /***/ (function(module, exports, __webpack_require__) {
  1972. exports = module.exports = __webpack_require__(2)(false);
  1973. // imports
  1974. // module
  1975. exports.push([module.i, "", ""]);
  1976. // exports
  1977. /***/ }),
  1978. /***/ 712:
  1979. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1980. "use strict";
  1981. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1982. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  1983. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  1984. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar__ = __webpack_require__(713);
  1985. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar__);
  1986. //
  1987. //
  1988. //
  1989. //
  1990. //
  1991. //
  1992. //
  1993. //
  1994. //
  1995. //
  1996. //
  1997. //
  1998. /**
  1999. * 待办日程
  2000. */
  2001. /* harmony default export */ __webpack_exports__["default"] = ({
  2002. name: 'TodoCalendar',
  2003. components: { FullCalendar: __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar___default.a, DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  2004. props: {},
  2005. data: function data() {
  2006. return {
  2007. loadIng: 0,
  2008. lang: 'en',
  2009. lists: [],
  2010. startdate: '',
  2011. enddate: ''
  2012. };
  2013. },
  2014. created: function created() {
  2015. this.lang = this.getLanguage() || 'en';
  2016. },
  2017. mounted: function mounted() {
  2018. var _this = this;
  2019. $A.setOnTaskInfoListener('components/project/todo/calendar', function (act, detail) {
  2020. if (detail.username != _this.usrName) {
  2021. _this.lists.some(function (task, i) {
  2022. if (task.id == detail.id) {
  2023. _this.lists.splice(i, 1);
  2024. return true;
  2025. }
  2026. });
  2027. return;
  2028. }
  2029. //
  2030. detail = _this.formatTaskData(detail);
  2031. _this.lists.some(function (task, i) {
  2032. if (task.id == detail.id) {
  2033. _this.lists.splice(i, 1, detail);
  2034. return true;
  2035. }
  2036. });
  2037. //
  2038. switch (act) {
  2039. case "username": // 负责人
  2040. case "delete": // 删除任务
  2041. case "archived":
  2042. // 归档
  2043. _this.lists.some(function (task, i) {
  2044. if (task.id == detail.id) {
  2045. _this.lists.splice(i, 1);
  2046. return true;
  2047. }
  2048. });
  2049. break;
  2050. case "unarchived":
  2051. // 取消归档
  2052. var has = false;
  2053. _this.lists.some(function (task) {
  2054. if (task.id == detail.id) {
  2055. return has = true;
  2056. }
  2057. });
  2058. if (!has) {
  2059. _this.lists.unshift(detail);
  2060. }
  2061. break;
  2062. }
  2063. });
  2064. },
  2065. methods: {
  2066. clickEvent: function clickEvent(event) {
  2067. this.taskDetail(event.id);
  2068. },
  2069. changeDateRange: function changeDateRange(startdate, enddate) {
  2070. this.startdate = startdate;
  2071. this.enddate = enddate;
  2072. this.getLists(1);
  2073. },
  2074. getLists: function getLists(page) {
  2075. var _this2 = this;
  2076. this.lists = [];
  2077. this.loadIng++;
  2078. $A.apiAjax({
  2079. url: 'project/task/lists',
  2080. data: {
  2081. startdate: this.startdate,
  2082. enddate: this.enddate,
  2083. page: page,
  2084. pagesize: 100
  2085. },
  2086. complete: function complete() {
  2087. _this2.loadIng--;
  2088. },
  2089. success: function success(res) {
  2090. if (res.ret === 1) {
  2091. var inLists = void 0,
  2092. data = void 0;
  2093. res.data.lists.forEach(function (temp) {
  2094. data = _this2.formatTaskData(temp);
  2095. inLists = false;
  2096. _this2.lists.some(function (item, i) {
  2097. if (item.id == data.id) {
  2098. _this2.lists.splice(i, 1, data);
  2099. return inLists = true;
  2100. }
  2101. });
  2102. if (!inLists) {
  2103. _this2.lists.push(data);
  2104. }
  2105. });
  2106. if (res.data.hasMorePages === true) {
  2107. _this2.getLists(res.data.currentPage + 1);
  2108. }
  2109. }
  2110. }
  2111. });
  2112. },
  2113. formatTaskData: function formatTaskData(taskData) {
  2114. var title = taskData.title;
  2115. var startdate = taskData.startdate || taskData.indate;
  2116. var enddate = taskData.enddate || taskData.indate;
  2117. if (startdate != enddate) {
  2118. var ymd1 = $A.formatDate('Y-m-d', startdate);
  2119. var ymd2 = $A.formatDate('Y-m-d', enddate);
  2120. var time = ymd1 + "~" + ymd2;
  2121. if (ymd1 == ymd2) {
  2122. time = $A.formatDate('H:i', startdate) + "~" + $A.formatDate('H:i', enddate);
  2123. } else if (ymd1.substring(0, 4) == ymd2.substring(0, 4)) {
  2124. time = $A.formatDate('m-d', startdate) + "~" + $A.formatDate('m-d', enddate);
  2125. }
  2126. title = time + " " + title;
  2127. } else {
  2128. title = $A.formatDate('H:i', startdate) + " " + title;
  2129. }
  2130. //
  2131. if (taskData.complete) {
  2132. title = '<span style="text-decoration:line-through">' + title + '</span>';
  2133. }
  2134. var color = '#ffffff';
  2135. var backgroundColor = '#2d8cf0';
  2136. if (taskData.level === 1) {
  2137. backgroundColor = '#ed4014';
  2138. } else if (taskData.level === 2) {
  2139. backgroundColor = '#f90';
  2140. } else if (taskData.level === 3) {
  2141. backgroundColor = '#2db7f5';
  2142. } else if (taskData.level === 4) {
  2143. backgroundColor = '#19be6b';
  2144. }
  2145. var data = {
  2146. "id": taskData.id,
  2147. "start": $A.formatDate('Y-m-d H:i:s', startdate),
  2148. "end": $A.formatDate('Y-m-d H:i:s', enddate),
  2149. "title": title,
  2150. "color": color,
  2151. "backgroundColor": backgroundColor,
  2152. "selectedColor": backgroundColor,
  2153. "name": taskData.nickname || taskData.username
  2154. };
  2155. if (this.isShowImg(taskData.userimg)) {
  2156. data.avatar = taskData.userimg;
  2157. }
  2158. return data;
  2159. },
  2160. isShowImg: function isShowImg(url) {
  2161. return !!(url && !$A.rightExists(url, 'images/other/avatar.png'));
  2162. }
  2163. }
  2164. });
  2165. /***/ }),
  2166. /***/ 713:
  2167. /***/ (function(module, exports, __webpack_require__) {
  2168. var disposed = false
  2169. function injectStyle (ssrContext) {
  2170. if (disposed) return
  2171. __webpack_require__(714)
  2172. }
  2173. var normalizeComponent = __webpack_require__(4)
  2174. /* script */
  2175. var __vue_script__ = __webpack_require__(716)
  2176. /* template */
  2177. var __vue_template__ = __webpack_require__(728)
  2178. /* template functional */
  2179. var __vue_template_functional__ = false
  2180. /* styles */
  2181. var __vue_styles__ = injectStyle
  2182. /* scopeId */
  2183. var __vue_scopeId__ = null
  2184. /* moduleIdentifier (server only) */
  2185. var __vue_module_identifier__ = null
  2186. var Component = normalizeComponent(
  2187. __vue_script__,
  2188. __vue_template__,
  2189. __vue_template_functional__,
  2190. __vue_styles__,
  2191. __vue_scopeId__,
  2192. __vue_module_identifier__
  2193. )
  2194. Component.options.__file = "resources/assets/js/main/components/FullCalendar/FullCalendar.vue"
  2195. /* hot reload */
  2196. if (false) {(function () {
  2197. var hotAPI = require("vue-hot-reload-api")
  2198. hotAPI.install(require("vue"), false)
  2199. if (!hotAPI.compatible) return
  2200. module.hot.accept()
  2201. if (!module.hot.data) {
  2202. hotAPI.createRecord("data-v-2e96a02c", Component.options)
  2203. } else {
  2204. hotAPI.reload("data-v-2e96a02c", Component.options)
  2205. }
  2206. module.hot.dispose(function (data) {
  2207. disposed = true
  2208. })
  2209. })()}
  2210. module.exports = Component.exports
  2211. /***/ }),
  2212. /***/ 714:
  2213. /***/ (function(module, exports, __webpack_require__) {
  2214. // style-loader: Adds some css to the DOM by adding a <style> tag
  2215. // load the styles
  2216. var content = __webpack_require__(715);
  2217. if(typeof content === 'string') content = [[module.i, content, '']];
  2218. if(content.locals) module.exports = content.locals;
  2219. // add the styles to the DOM
  2220. var update = __webpack_require__(3)("43d9d870", content, false, {});
  2221. // Hot Module Replacement
  2222. if(false) {
  2223. // When the styles change, update the <style> tags
  2224. if(!content.locals) {
  2225. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-2e96a02c\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FullCalendar.vue", function() {
  2226. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-2e96a02c\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FullCalendar.vue");
  2227. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  2228. update(newContent);
  2229. });
  2230. }
  2231. // When the module is disposed, remove the <style> tags
  2232. module.hot.dispose(function() { update(); });
  2233. }
  2234. /***/ }),
  2235. /***/ 715:
  2236. /***/ (function(module, exports, __webpack_require__) {
  2237. exports = module.exports = __webpack_require__(2)(false);
  2238. // imports
  2239. // module
  2240. exports.push([module.i, "\n.comp-full-calendar {\n min-width: 960px;\n margin: 0 auto;\n}\n.comp-full-calendar ul, .comp-full-calendar p {\n margin: 0;\n padding: 0;\n font-size: 14px;\n}\n.comp-full-calendar .cancel {\n border: 0;\n outline: none;\n -webkit-box-shadow: unset;\n box-shadow: unset;\n background-color: #ECECED;\n color: #8B8F94;\n}\n.comp-full-calendar .cancel:hover {\n color: #3E444C;\n z-index: 0;\n}\n.comp-full-calendar .primary {\n border: 0;\n outline: none;\n -webkit-box-shadow: unset;\n box-shadow: unset;\n background-color: #2d8cf0;\n color: #fff;\n}\n.comp-full-calendar .primary:hover {\n z-index: 0;\n}\n.comp-full-calendar .btn-group {\n width: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.comp-full-calendar .btn-group > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 6px;\n overflow: hidden;\n}\n.comp-full-calendar .btn-group button {\n min-width: 48px;\n cursor: pointer;\n height: 28px;\n padding: 0 12px;\n}\n", ""]);
  2241. // exports
  2242. /***/ }),
  2243. /***/ 716:
  2244. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2245. "use strict";
  2246. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  2247. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__ = __webpack_require__(717);
  2248. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_body__ = __webpack_require__(718);
  2249. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_body___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_body__);
  2250. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_header__ = __webpack_require__(723);
  2251. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_header___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_header__);
  2252. //
  2253. //
  2254. //
  2255. //
  2256. //
  2257. //
  2258. //
  2259. //
  2260. //
  2261. //
  2262. //
  2263. //
  2264. //
  2265. //
  2266. //
  2267. //
  2268. //
  2269. //
  2270. //
  2271. //
  2272. //
  2273. //
  2274. //
  2275. //
  2276. //
  2277. //
  2278. //
  2279. //
  2280. //
  2281. //
  2282. //
  2283. //
  2284. //
  2285. //
  2286. //
  2287. //
  2288. //
  2289. /* harmony default export */ __webpack_exports__["default"] = ({
  2290. name: "FullCalendar",
  2291. components: {
  2292. 'fc-body': __WEBPACK_IMPORTED_MODULE_1__components_body___default.a,
  2293. 'fc-header': __WEBPACK_IMPORTED_MODULE_2__components_header___default.a
  2294. },
  2295. props: {
  2296. events: {
  2297. type: Array,
  2298. default: []
  2299. },
  2300. lang: {
  2301. type: String,
  2302. default: 'en'
  2303. },
  2304. firstDay: {
  2305. type: Number | String,
  2306. validator: function validator(val) {
  2307. var res = parseInt(val);
  2308. return res >= 0 && res <= 6;
  2309. },
  2310. default: 0
  2311. },
  2312. titleFormat: {
  2313. type: String,
  2314. default: function _default() {
  2315. return __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].titleFormat;
  2316. }
  2317. },
  2318. monthNames: {
  2319. type: Array,
  2320. default: function _default() {
  2321. return __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].monthNames;
  2322. }
  2323. },
  2324. weekNames: {
  2325. type: Array,
  2326. default: function _default() {
  2327. var arr = __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].weekNames;
  2328. return arr.slice(this.firstDay).concat(arr.slice(0, this.firstDay));
  2329. }
  2330. },
  2331. loading: {
  2332. type: Boolean,
  2333. default: false
  2334. }
  2335. },
  2336. data: function data() {
  2337. return {
  2338. tableType: 'week',
  2339. weekDays: [],
  2340. currentDate: new Date()
  2341. };
  2342. },
  2343. methods: {
  2344. changeDateRange: function changeDateRange(start, end, currentStart, current, weekDays) {
  2345. this.currentDate = current;
  2346. this.weekDays = weekDays;
  2347. this.$emit('change', start, end, currentStart, weekDays);
  2348. },
  2349. emitEventClick: function emitEventClick(event, jsEvent) {
  2350. this.$emit('eventClick', event, jsEvent);
  2351. },
  2352. emitDayClick: function emitDayClick(day, jsEvent) {
  2353. this.$emit('dayClick', day, jsEvent);
  2354. },
  2355. emitMoreClick: function emitMoreClick(day, events, jsEvent) {
  2356. this.$emit('moreClick', day, event, jsEvent);
  2357. },
  2358. changeType: function changeType(type) {
  2359. this.tableType = type;
  2360. this.$emit('changeType', type);
  2361. }
  2362. }
  2363. });
  2364. /***/ }),
  2365. /***/ 717:
  2366. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2367. "use strict";
  2368. /* harmony default export */ __webpack_exports__["a"] = ({
  2369. en: {
  2370. weekNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  2371. monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
  2372. titleFormat: 'MMMM yyyy'
  2373. },
  2374. zh: {
  2375. weekNames: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
  2376. monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  2377. titleFormat: 'yyyy年MM月'
  2378. },
  2379. fr: {
  2380. weekNames: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
  2381. monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
  2382. titleFormat: 'MMMM yyyy'
  2383. }
  2384. });
  2385. /***/ }),
  2386. /***/ 718:
  2387. /***/ (function(module, exports, __webpack_require__) {
  2388. var disposed = false
  2389. function injectStyle (ssrContext) {
  2390. if (disposed) return
  2391. __webpack_require__(719)
  2392. }
  2393. var normalizeComponent = __webpack_require__(4)
  2394. /* script */
  2395. var __vue_script__ = __webpack_require__(721)
  2396. /* template */
  2397. var __vue_template__ = __webpack_require__(722)
  2398. /* template functional */
  2399. var __vue_template_functional__ = false
  2400. /* styles */
  2401. var __vue_styles__ = injectStyle
  2402. /* scopeId */
  2403. var __vue_scopeId__ = null
  2404. /* moduleIdentifier (server only) */
  2405. var __vue_module_identifier__ = null
  2406. var Component = normalizeComponent(
  2407. __vue_script__,
  2408. __vue_template__,
  2409. __vue_template_functional__,
  2410. __vue_styles__,
  2411. __vue_scopeId__,
  2412. __vue_module_identifier__
  2413. )
  2414. Component.options.__file = "resources/assets/js/main/components/FullCalendar/components/body.vue"
  2415. /* hot reload */
  2416. if (false) {(function () {
  2417. var hotAPI = require("vue-hot-reload-api")
  2418. hotAPI.install(require("vue"), false)
  2419. if (!hotAPI.compatible) return
  2420. module.hot.accept()
  2421. if (!module.hot.data) {
  2422. hotAPI.createRecord("data-v-1651db2e", Component.options)
  2423. } else {
  2424. hotAPI.reload("data-v-1651db2e", Component.options)
  2425. }
  2426. module.hot.dispose(function (data) {
  2427. disposed = true
  2428. })
  2429. })()}
  2430. module.exports = Component.exports
  2431. /***/ }),
  2432. /***/ 719:
  2433. /***/ (function(module, exports, __webpack_require__) {
  2434. // style-loader: Adds some css to the DOM by adding a <style> tag
  2435. // load the styles
  2436. var content = __webpack_require__(720);
  2437. if(typeof content === 'string') content = [[module.i, content, '']];
  2438. if(content.locals) module.exports = content.locals;
  2439. // add the styles to the DOM
  2440. var update = __webpack_require__(3)("7c888f54", content, false, {});
  2441. // Hot Module Replacement
  2442. if(false) {
  2443. // When the styles change, update the <style> tags
  2444. if(!content.locals) {
  2445. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1651db2e\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./body.vue", function() {
  2446. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1651db2e\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./body.vue");
  2447. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  2448. update(newContent);
  2449. });
  2450. }
  2451. // When the module is disposed, remove the <style> tags
  2452. module.hot.dispose(function() { update(); });
  2453. }
  2454. /***/ }),
  2455. /***/ 720:
  2456. /***/ (function(module, exports, __webpack_require__) {
  2457. exports = module.exports = __webpack_require__(2)(false);
  2458. // imports
  2459. // module
  2460. exports.push([module.i, "\n.full-calendar-body {\n background-color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-top: 12px;\n border-radius: 4px;\n border: 1px solid #EEEEEE;\n}\n.full-calendar-body .left-info {\n width: 60px;\n}\n.full-calendar-body .left-info .time-info {\n height: 100%;\n position: relative;\n}\n.full-calendar-body .left-info .time-info:nth-child(2) {\n border-top: 1px solid #EFF2FF;\n border-bottom: 1px solid #EFF2FF;\n}\n.full-calendar-body .left-info .time-info .center {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 14px;\n font-size: 14px;\n word-wrap: break-word;\n letter-spacing: 10px;\n}\n.full-calendar-body .left-info .time-info .top {\n position: absolute;\n top: -8px;\n width: 100%;\n text-align: center;\n}\n.full-calendar-body .right-body {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 100%;\n position: relative;\n}\n.full-calendar-body .right-body .weeks {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n border-bottom: 1px solid #EEEEEE;\n}\n.full-calendar-body .right-body .weeks .week {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n text-align: center;\n height: 40px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-weight: normal;\n}\n.full-calendar-body .right-body .dates {\n position: relative;\n}\n.full-calendar-body .right-body .dates .dates-events {\n z-index: 1;\n width: 100%;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n min-height: 180px;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day {\n text-overflow: ellipsis;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 0;\n height: auto;\n padding: 4px;\n border-right: 1px solid #EFF2FF;\n border-bottom: 1px solid #EFF2FF;\n background-color: #fff;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .day-number {\n text-align: left;\n padding: 4px 5px 4px 4px;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day.not-cur-month .day-number {\n color: #ECECED;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day.today {\n background-color: #F9FAFB;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day:last-child {\n border-right: 0;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box {\n max-height: 280px;\n overflow: auto;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item {\n cursor: pointer;\n font-size: 12px;\n background-color: #C7E6FD;\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.87);\n padding: 6px 0 6px 4px;\n height: auto;\n line-height: 30px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n position: relative;\n border-radius: 4px;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item.is-end {\n display: none;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item.is-start {\n display: block;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item.is-opacity {\n display: none;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item .avatar {\n width: 18px;\n height: 18px;\n border: 0;\n border-radius: 50%;\n overflow: hidden;\n display: inline-block;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item .icon {\n width: 18px;\n height: 18px;\n line-height: 18px;\n border-radius: 10px;\n text-align: center;\n color: #fff;\n display: inline-block;\n overflow: hidden;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item .info {\n width: calc(100% - 30px);\n display: inline-block;\n margin-left: 5px;\n line-height: 18px;\n word-break: break-all;\n word-wrap: break-word;\n font-size: 12px;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item #card {\n cursor: initial;\n position: absolute;\n z-index: 999;\n min-width: 250px;\n height: auto;\n left: 50%;\n top: calc(100% + 10px);\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n min-height: 100px;\n background: #fff;\n -webkit-box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n overflow: hidden;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item #card.left-card {\n left: 0;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item #card.right-card {\n right: 0;\n left: auto;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item #card.bottom-card {\n top: auto;\n bottom: calc(100% + 10px);\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .event-item.selected {\n /*.info {\n color: #fff;\n font-weight: normal;\n }\n\n .icon {\n background-color: transparent !important;\n }*/\n}\n.full-calendar-body .right-body .dates .dates-events .events-week .events-day .event-box .more-link {\n cursor: pointer;\n padding-left: 8px;\n padding-right: 2px;\n color: rgba(0, 0, 0, 0.38);\n font-size: 12px;\n}\n.full-calendar-body .right-body .dates .dates-events .events-week:last-child .events-day {\n border-bottom: 0;\n}\n.full-calendar-body .right-body .dates .more-events {\n position: absolute;\n width: 150px;\n z-index: 2;\n border: 1px solid #eee;\n -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);\n}\n.full-calendar-body .right-body .dates .more-events .more-header {\n background-color: #eee;\n padding: 5px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-size: 14px;\n}\n.full-calendar-body .right-body .dates .more-events .more-header .title {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.full-calendar-body .right-body .dates .more-events .more-header .close {\n margin-right: 2px;\n cursor: pointer;\n font-size: 16px;\n}\n.full-calendar-body .right-body .dates .more-events .more-body {\n height: 125px;\n overflow: hidden;\n background: #fff;\n}\n.full-calendar-body .right-body .dates .more-events .more-body .body-list {\n height: 120px;\n padding: 5px;\n overflow: auto;\n background-color: #fff;\n}\n.full-calendar-body .right-body .dates .more-events .more-body .body-list .body-item {\n cursor: pointer;\n font-size: 12px;\n background-color: #C7E6FD;\n margin-bottom: 2px;\n color: rgba(0, 0, 0, 0.87);\n padding: 0 0 0 4px;\n height: 18px;\n line-height: 18px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.full-calendar-body .right-body .time {\n position: relative;\n}\n.full-calendar-body .right-body .time .row {\n width: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n min-height: 180px;\n}\n.full-calendar-body .right-body .time .row .events-day {\n border-bottom: 1px solid #EFF2FF;\n border-left: 1px solid #EFF2FF;\n background-color: #fff;\n height: auto;\n text-overflow: ellipsis;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 0;\n padding: 4px;\n}\n.full-calendar-body .right-body .time .row .events-day .event-box {\n max-height: 280px;\n overflow: auto;\n}\n.full-calendar-body .right-body .time .row .events-day.today {\n background-color: #F9FAFB;\n}\n.full-calendar-body .right-body .time .row .event-item {\n cursor: pointer;\n font-size: 12px;\n background-color: #C7E6FD;\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.87);\n padding: 6px 0 6px 4px;\n height: auto;\n line-height: 30px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n position: relative;\n border-radius: 4px;\n}\n.full-calendar-body .right-body .time .row .event-item .avatar {\n width: 18px;\n height: 18px;\n border: 0;\n border-radius: 50%;\n overflow: hidden;\n display: inline-block;\n}\n.full-calendar-body .right-body .time .row .event-item .icon {\n width: 18px;\n height: 18px;\n line-height: 18px;\n border-radius: 10px;\n text-align: center;\n color: #fff;\n display: inline-block;\n padding: 0 2px;\n overflow: hidden;\n}\n.full-calendar-body .right-body .time .row .event-item .info {\n width: calc(100% - 30px);\n display: inline-block;\n margin-left: 5px;\n line-height: 18px;\n word-break: break-all;\n word-wrap: break-word;\n font-size: 12px;\n}\n.full-calendar-body .right-body .time .row .event-item #card {\n cursor: initial;\n position: absolute;\n z-index: 999;\n min-width: 250px;\n height: auto;\n left: 50%;\n top: calc(100% + 10px);\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n min-height: 100px;\n background: #fff;\n -webkit-box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n overflow: hidden;\n}\n.full-calendar-body .right-body .time .row .event-item #card.left-card {\n left: 0;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.full-calendar-body .right-body .time .row .event-item #card.right-card {\n right: 0;\n left: auto;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.full-calendar-body .right-body .time .row .event-item #card.bottom-card {\n top: auto;\n bottom: calc(100% + 10px);\n}\n.full-calendar-body .right-body .time .row .event-item.selected {\n /*.info {\n color: #fff;\n font-weight: normal;\n }\n\n // background-color: #5272FF !important;\n .icon {\n background-color: transparent !important;\n }*/\n}\n.full-calendar-body .right-body .time .row:last-child .events-day {\n border-bottom: 0;\n}\n.full-calendar-body .right-body .time .row:last-child .single {\n border-bottom: 0;\n}\n", ""]);
  2461. // exports
  2462. /***/ }),
  2463. /***/ 721:
  2464. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2465. "use strict";
  2466. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  2467. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc__ = __webpack_require__(670);
  2468. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__dateFunc__);
  2469. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bus__ = __webpack_require__(671);
  2470. //
  2471. //
  2472. //
  2473. //
  2474. //
  2475. //
  2476. //
  2477. //
  2478. //
  2479. //
  2480. //
  2481. //
  2482. //
  2483. //
  2484. //
  2485. //
  2486. //
  2487. //
  2488. //
  2489. //
  2490. //
  2491. //
  2492. //
  2493. //
  2494. //
  2495. //
  2496. //
  2497. //
  2498. //
  2499. //
  2500. //
  2501. //
  2502. //
  2503. //
  2504. //
  2505. //
  2506. //
  2507. //
  2508. //
  2509. //
  2510. //
  2511. //
  2512. //
  2513. //
  2514. //
  2515. //
  2516. //
  2517. //
  2518. //
  2519. //
  2520. //
  2521. //
  2522. //
  2523. //
  2524. //
  2525. //
  2526. //
  2527. //
  2528. //
  2529. //
  2530. //
  2531. //
  2532. //
  2533. //
  2534. //
  2535. //
  2536. //
  2537. //
  2538. //
  2539. //
  2540. //
  2541. //
  2542. //
  2543. //
  2544. //
  2545. //
  2546. //
  2547. //
  2548. //
  2549. //
  2550. //
  2551. //
  2552. //
  2553. //
  2554. //
  2555. //
  2556. /* harmony default export */ __webpack_exports__["default"] = ({
  2557. props: {
  2558. currentDate: {},
  2559. events: {
  2560. type: Array
  2561. },
  2562. weekNames: {
  2563. type: Array,
  2564. default: []
  2565. },
  2566. monthNames: {},
  2567. firstDay: {},
  2568. tableType: '',
  2569. weekDays: {
  2570. type: Array,
  2571. default: function _default() {
  2572. return __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getDates(new Date());
  2573. }
  2574. },
  2575. isLimit: {
  2576. type: Boolean,
  2577. default: false
  2578. },
  2579. loading: {
  2580. type: Boolean,
  2581. default: true
  2582. }
  2583. },
  2584. created: function created() {
  2585. var _this = this;
  2586. document.addEventListener('click', function (e) {
  2587. _this.showCard = -1;
  2588. });
  2589. // 监听header组件事件
  2590. __WEBPACK_IMPORTED_MODULE_1__bus__["a" /* default */].$on('changeWeekDays', function (res) {});
  2591. //
  2592. this.initLanguage();
  2593. },
  2594. data: function data() {
  2595. return {
  2596. // weekNames : DAY_NAMES,
  2597. weekMask: [1, 2, 3, 4, 5, 6, 7],
  2598. // events : [],
  2599. eventLimit: 18,
  2600. showMore: false,
  2601. morePos: {
  2602. top: 0,
  2603. left: 0
  2604. },
  2605. selectDay: {},
  2606. timeDivide: [],
  2607. showCard: -1,
  2608. cardLeft: 0,
  2609. cardRight: 0
  2610. };
  2611. },
  2612. watch: {
  2613. // events(val){
  2614. // this.getCalendar()
  2615. // },
  2616. currentDate: function currentDate() {
  2617. this.getCalendar();
  2618. }
  2619. },
  2620. computed: {
  2621. currentDates: function currentDates() {
  2622. return this.getCalendar();
  2623. },
  2624. weekDate: function weekDate() {
  2625. return this.getWeekDate();
  2626. }
  2627. },
  2628. methods: {
  2629. initLanguage: function initLanguage() {
  2630. this.timeDivide = [{
  2631. start: 0,
  2632. end: 12,
  2633. label: this.$L('上午')
  2634. }, {
  2635. start: 12,
  2636. end: 18,
  2637. label: this.$L('下午')
  2638. }, {
  2639. start: 18,
  2640. end: 23,
  2641. label: this.$L('晚上')
  2642. }];
  2643. },
  2644. isBegin: function isBegin(event, date, index) {
  2645. var st = new Date(event.start);
  2646. if (index == 0 || st.toDateString() == date.toDateString()) {
  2647. return event.title;
  2648. }
  2649. return ' ';
  2650. },
  2651. moreTitle: function moreTitle(date) {
  2652. var dt = new Date(date);
  2653. return this.weekNames[dt.getDay()] + ', ' + this.monthNames[dt.getMonth()] + dt.getDate();
  2654. },
  2655. classNames: function classNames(cssClass) {
  2656. if (!cssClass) return '';
  2657. // string
  2658. if (typeof cssClass == 'string') return cssClass;
  2659. // Array
  2660. if (Array.isArray(cssClass)) return cssClass.join(' ');
  2661. // else
  2662. return '';
  2663. },
  2664. getCalendar: function getCalendar() {
  2665. // calculate 2d-array of each month
  2666. // first day of this month
  2667. var now = new Date(); // today
  2668. var current = new Date(this.currentDate);
  2669. var startDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(current); // 1st day of this month
  2670. var curWeekDay = startDate.getDay();
  2671. // begin date of this table may be some day of last month
  2672. var diff = parseInt(this.firstDay) - curWeekDay + 1;
  2673. diff = diff > 0 ? diff - 7 : diff;
  2674. startDate.setDate(startDate.getDate() + diff);
  2675. var calendar = [];
  2676. for (var perWeek = 0; perWeek < 6; perWeek++) {
  2677. var week = [];
  2678. for (var perDay = 0; perDay < 7; perDay++) {
  2679. // console.log(startDate)
  2680. week.push({
  2681. monthDay: startDate.getDate(),
  2682. isToday: now.toDateString() == startDate.toDateString(),
  2683. isCurMonth: startDate.getMonth() == current.getMonth(),
  2684. weekDay: perDay,
  2685. date: new Date(startDate),
  2686. events: this.slotEvents(new Date(startDate))
  2687. });
  2688. startDate.setDate(startDate.getDate() + 1);
  2689. }
  2690. calendar.push(week);
  2691. }
  2692. return calendar;
  2693. },
  2694. slotEvents: function slotEvents(date) {
  2695. // console.log(date)
  2696. var thisDayEvents = [];
  2697. this.events.filter(function (event) {
  2698. var day = new Date(event.start);
  2699. if (date.toLocaleDateString() === day.toLocaleDateString()) {
  2700. thisDayEvents.push(event);
  2701. }
  2702. });
  2703. this.judgeTime(thisDayEvents);
  2704. return thisDayEvents;
  2705. },
  2706. // 获取周视图的天元素格式化
  2707. getWeekDate: function getWeekDate() {
  2708. var _this2 = this;
  2709. var newWeekDays = this.weekDays;
  2710. newWeekDays.forEach(function (e, index) {
  2711. e.showDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(e, 'MM-dd');
  2712. e.date = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(e, 'yyyy-MM-dd');
  2713. e.isToday = new Date().toDateString() == e.toDateString();
  2714. e.events = _this2.slotTimeEvents(e); // 整理事件集合 (拿事件去比较时间,分发事件到时间插槽内)
  2715. });
  2716. return newWeekDays;
  2717. },
  2718. // 发现该时间段所有的事件
  2719. slotTimeEvents: function slotTimeEvents(date) {
  2720. var thisDayEvents = this.events;
  2721. thisDayEvents.filter(function (event) {
  2722. var day = new Date(event.start);
  2723. return date.toLocaleDateString() == day.toLocaleDateString();
  2724. });
  2725. this.judgeTime(thisDayEvents);
  2726. return thisDayEvents;
  2727. },
  2728. judgeTime: function judgeTime(arr) {
  2729. var _this3 = this;
  2730. arr.forEach(function (event) {
  2731. var day = new Date(event.start);
  2732. // 加上时间戳后判断时间段
  2733. var hour = day.getHours();
  2734. var week = day.getDay();
  2735. week == 0 ? week = 7 : '';
  2736. if (_this3.timeDivide[0].start < hour < _this3.timeDivide[0].end) {
  2737. event.time = 0;
  2738. } else if (_this3.timeDivide[1].start < hour < _this3.timeDivide[1].end) {
  2739. event.time = 1;
  2740. } else if (_this3.timeDivide[2].start < hour < _this3.timeDivide[2].end) {
  2741. event.time = 2;
  2742. }
  2743. event.weekDay = _this3.weekNames[Number(week) - 1];
  2744. event.weekDayIndex = week;
  2745. });
  2746. },
  2747. isTheday: function isTheday(day1, day2) {
  2748. return new Date(day1).toDateString() === new Date(day2).toDateString();
  2749. },
  2750. isStart: function isStart(eventDate, date) {
  2751. var st = new Date(eventDate);
  2752. return st.toDateString() == date.toDateString();
  2753. },
  2754. isEnd: function isEnd(eventDate, date) {
  2755. var ed = new Date(eventDate);
  2756. return ed.toDateString() == date.toDateString();
  2757. },
  2758. isInTime: function isInTime(time, date) {
  2759. var hour = new Date(date).getHours();
  2760. return time.start <= hour && hour < time.end;
  2761. },
  2762. selectThisDay: function selectThisDay(day, jsEvent) {
  2763. this.selectDay = day;
  2764. this.showMore = true;
  2765. this.morePos = this.computePos(event.target);
  2766. this.morePos.top -= 100;
  2767. var events = day.events.filter(function (item) {
  2768. return item.isShow == true;
  2769. });
  2770. this.$emit('moreclick', day.date, events, jsEvent);
  2771. },
  2772. computePos: function computePos(target) {
  2773. var eventRect = target.getBoundingClientRect();
  2774. var pageRect = this.$refs.dates.getBoundingClientRect();
  2775. return {
  2776. left: eventRect.left - pageRect.left,
  2777. top: eventRect.top + eventRect.height - pageRect.top
  2778. };
  2779. },
  2780. dayClick: function dayClick(day, jsEvent) {
  2781. // console.log('dayClick')
  2782. // this.$emit('dayclick', day, jsEvent)
  2783. },
  2784. eventClick: function eventClick(event, jsEvent) {
  2785. // console.log(event,jsEvent, 'evenvet')
  2786. this.showCard = event.id;
  2787. jsEvent.stopPropagation();
  2788. // let pos = this.computePos(jsEvent.target)
  2789. this.$emit('eventclick', event, jsEvent);
  2790. var x = jsEvent.x;
  2791. var y = jsEvent.y;
  2792. // console.log(jsEvent)
  2793. // 判断出左右中三边界的取值范围进而分配class
  2794. if (x > 400 && x < window.innerWidth - 200) {
  2795. this.cardClass = "center-card";
  2796. } else if (x <= 400) {
  2797. this.cardClass = "left-card";
  2798. } else {
  2799. this.cardClass = "right-card";
  2800. }
  2801. if (y > window.innerHeight - 300) {
  2802. this.cardClass += ' ' + 'bottom-card';
  2803. }
  2804. },
  2805. isEmojiPrefix: function isEmojiPrefix(text) {
  2806. return (/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(text)
  2807. );
  2808. },
  2809. iconStyle: function iconStyle(name) {
  2810. var style = {
  2811. backgroundColor: '#A0D7F1'
  2812. };
  2813. if (name) {
  2814. var bgColor = '';
  2815. for (var i = 0; i < name.length; i++) {
  2816. bgColor += parseInt(name[i].charCodeAt(0), 10).toString(16);
  2817. }
  2818. style.backgroundColor = '#' + bgColor.slice(1, 4);
  2819. }
  2820. return style;
  2821. }
  2822. }
  2823. });
  2824. /***/ }),
  2825. /***/ 722:
  2826. /***/ (function(module, exports, __webpack_require__) {
  2827. var render = function() {
  2828. var _vm = this
  2829. var _h = _vm.$createElement
  2830. var _c = _vm._self._c || _h
  2831. return _c("div", { staticClass: "full-calendar-body" }, [
  2832. _c("div", { staticClass: "right-body" }, [
  2833. _c(
  2834. "div",
  2835. { staticClass: "weeks" },
  2836. [
  2837. _vm.tableType == "week"
  2838. ? _c("div", {
  2839. staticClass: "blank",
  2840. staticStyle: { width: "60px" }
  2841. })
  2842. : _vm._e(),
  2843. _vm._v(" "),
  2844. _vm._l(_vm.weekNames, function(week, index) {
  2845. return _c("strong", { staticClass: "week" }, [
  2846. _vm._v(
  2847. "\n " + _vm._s(week) + "\n "
  2848. ),
  2849. _vm.tableType == "week" && _vm.weekDate.length
  2850. ? _c("span", [
  2851. _vm._v("(" + _vm._s(_vm.weekDate[index].showDate) + ")")
  2852. ])
  2853. : _vm._e()
  2854. ])
  2855. })
  2856. ],
  2857. 2
  2858. ),
  2859. _vm._v(" "),
  2860. _vm.tableType == "month"
  2861. ? _c(
  2862. "div",
  2863. { ref: "dates", staticClass: "dates" },
  2864. [
  2865. _vm.loading ? _c("Spin", { attrs: { fix: "" } }) : _vm._e(),
  2866. _vm._v(" "),
  2867. _c(
  2868. "div",
  2869. { staticClass: "dates-events" },
  2870. _vm._l(_vm.currentDates, function(week) {
  2871. return week[0].isCurMonth || week[week.length - 1].isCurMonth
  2872. ? _c(
  2873. "div",
  2874. { staticClass: "events-week" },
  2875. _vm._l(week, function(day) {
  2876. return _c(
  2877. "div",
  2878. {
  2879. staticClass: "events-day",
  2880. class: {
  2881. today: day.isToday,
  2882. "not-cur-month": !day.isCurMonth
  2883. },
  2884. attrs: { "track-by": "$index" }
  2885. },
  2886. [
  2887. _c("p", { staticClass: "day-number" }, [
  2888. _vm._v(_vm._s(day.monthDay))
  2889. ]),
  2890. _vm._v(" "),
  2891. day.events.length
  2892. ? _c(
  2893. "div",
  2894. { staticClass: "event-box" },
  2895. _vm._l(day.events, function(event) {
  2896. return _c(
  2897. "div",
  2898. {
  2899. staticClass: "event-item",
  2900. class: {
  2901. selected: _vm.showCard == event.id
  2902. },
  2903. style: {
  2904. color: event.color || "#333333",
  2905. "background-color":
  2906. _vm.showCard == event.id
  2907. ? event.selectedColor ||
  2908. "#C7E6FD"
  2909. : event.backgroundColor ||
  2910. "#C7E6FD"
  2911. },
  2912. on: {
  2913. click: function($event) {
  2914. return _vm.eventClick(
  2915. event,
  2916. $event
  2917. )
  2918. }
  2919. }
  2920. },
  2921. [
  2922. event.avatar
  2923. ? _c("img", {
  2924. staticClass: "avatar",
  2925. attrs: { src: event.avatar },
  2926. on: {
  2927. error: function($event) {
  2928. _vm.$set(
  2929. event,
  2930. "avatar",
  2931. null
  2932. )
  2933. }
  2934. }
  2935. })
  2936. : _c(
  2937. "span",
  2938. {
  2939. staticClass: "icon",
  2940. style: _vm.iconStyle(
  2941. event.name
  2942. )
  2943. },
  2944. [_vm._v(_vm._s(event.name))]
  2945. ),
  2946. _vm._v(" "),
  2947. _c("p", {
  2948. staticClass: "info",
  2949. domProps: {
  2950. innerHTML: _vm._s(
  2951. _vm.isBegin(
  2952. event,
  2953. day.date,
  2954. day.weekDay
  2955. )
  2956. )
  2957. }
  2958. }),
  2959. _vm._v(" "),
  2960. _vm.$slots["body-card"] &&
  2961. event &&
  2962. _vm.showCard == event.id
  2963. ? _c(
  2964. "div",
  2965. {
  2966. class: _vm.cardClass,
  2967. attrs: { id: "card" },
  2968. on: {
  2969. click: function($event) {
  2970. $event.stopPropagation()
  2971. }
  2972. }
  2973. },
  2974. [_vm._t("body-card")],
  2975. 2
  2976. )
  2977. : _vm._e()
  2978. ]
  2979. )
  2980. }),
  2981. 0
  2982. )
  2983. : _vm._e()
  2984. ]
  2985. )
  2986. }),
  2987. 0
  2988. )
  2989. : _vm._e()
  2990. }),
  2991. 0
  2992. )
  2993. ],
  2994. 1
  2995. )
  2996. : _vm.tableType == "week"
  2997. ? _c(
  2998. "div",
  2999. { ref: "time", staticClass: "time" },
  3000. [
  3001. _vm.loading ? _c("Spin", { attrs: { fix: "" } }) : _vm._e(),
  3002. _vm._v(" "),
  3003. _vm._l(_vm.timeDivide, function(time, index) {
  3004. return _c(
  3005. "div",
  3006. { staticClass: "row" },
  3007. [
  3008. _vm.tableType == "week"
  3009. ? _c("div", { staticClass: "left-info" }, [
  3010. index == 0
  3011. ? _c("div", { staticClass: "time-info first" }, [
  3012. _c("span", { staticClass: "center" }, [
  3013. _vm._v(_vm._s(_vm.$L("上午")))
  3014. ])
  3015. ])
  3016. : _vm._e(),
  3017. _vm._v(" "),
  3018. index == 1
  3019. ? _c("div", { staticClass: "time-info" }, [
  3020. _c("span", { staticClass: "top" }, [
  3021. _vm._v("12:00")
  3022. ]),
  3023. _vm._v(" "),
  3024. _c("span", { staticClass: "center" }, [
  3025. _vm._v(_vm._s(_vm.$L("下午")))
  3026. ])
  3027. ])
  3028. : _vm._e(),
  3029. _vm._v(" "),
  3030. index == 2
  3031. ? _c("div", { staticClass: "time-info" }, [
  3032. _c("span", { staticClass: "top" }, [
  3033. _vm._v("18:00")
  3034. ]),
  3035. _vm._v(" "),
  3036. _c("span", { staticClass: "center" }, [
  3037. _vm._v(_vm._s(_vm.$L("晚上")))
  3038. ])
  3039. ])
  3040. : _vm._e()
  3041. ])
  3042. : _vm._e(),
  3043. _vm._v(" "),
  3044. _vm._l(_vm.weekDate, function(item) {
  3045. return _vm.weekDate.length
  3046. ? _c(
  3047. "div",
  3048. {
  3049. staticClass: "events-day",
  3050. class: { today: item.isToday }
  3051. },
  3052. [
  3053. item.events.length
  3054. ? _c(
  3055. "div",
  3056. { staticClass: "event-box" },
  3057. _vm._l(item.events, function(event) {
  3058. return _vm.isTheday(
  3059. item.date,
  3060. event.start
  3061. ) && _vm.isInTime(time, event.start)
  3062. ? _c(
  3063. "div",
  3064. {
  3065. staticClass: "event-item",
  3066. class: {
  3067. selected:
  3068. _vm.showCard == event.id
  3069. },
  3070. style: {
  3071. color: event.color || "#333333",
  3072. "background-color":
  3073. _vm.showCard == event.id
  3074. ? event.selectedColor ||
  3075. "#C7E6FD"
  3076. : event.backgroundColor ||
  3077. "#C7E6FD"
  3078. },
  3079. on: {
  3080. click: function($event) {
  3081. return _vm.eventClick(
  3082. event,
  3083. $event
  3084. )
  3085. }
  3086. }
  3087. },
  3088. [
  3089. event.avatar
  3090. ? _c("img", {
  3091. staticClass: "avatar",
  3092. attrs: {
  3093. src: event.avatar
  3094. },
  3095. on: {
  3096. error: function($event) {
  3097. _vm.$set(
  3098. event,
  3099. "avatar",
  3100. null
  3101. )
  3102. }
  3103. }
  3104. })
  3105. : _c(
  3106. "span",
  3107. {
  3108. staticClass: "icon",
  3109. style: _vm.iconStyle(
  3110. event.name
  3111. )
  3112. },
  3113. [_vm._v(_vm._s(event.name))]
  3114. ),
  3115. _vm._v(" "),
  3116. _c("p", {
  3117. staticClass: "info",
  3118. domProps: {
  3119. innerHTML: _vm._s(event.title)
  3120. }
  3121. }),
  3122. _vm._v(" "),
  3123. _vm.$slots["body-card"] &&
  3124. event &&
  3125. _vm.showCard == event.id
  3126. ? _c(
  3127. "div",
  3128. {
  3129. class: _vm.cardClass,
  3130. attrs: { id: "card" },
  3131. on: {
  3132. click: function(
  3133. $event
  3134. ) {
  3135. $event.stopPropagation()
  3136. }
  3137. }
  3138. },
  3139. [_vm._t("body-card")],
  3140. 2
  3141. )
  3142. : _vm._e()
  3143. ]
  3144. )
  3145. : _vm._e()
  3146. }),
  3147. 0
  3148. )
  3149. : _vm._e()
  3150. ]
  3151. )
  3152. : _vm._e()
  3153. })
  3154. ],
  3155. 2
  3156. )
  3157. })
  3158. ],
  3159. 2
  3160. )
  3161. : _vm._e()
  3162. ])
  3163. ])
  3164. }
  3165. var staticRenderFns = []
  3166. render._withStripped = true
  3167. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3168. if (false) {
  3169. module.hot.accept()
  3170. if (module.hot.data) {
  3171. require("vue-hot-reload-api") .rerender("data-v-1651db2e", module.exports)
  3172. }
  3173. }
  3174. /***/ }),
  3175. /***/ 723:
  3176. /***/ (function(module, exports, __webpack_require__) {
  3177. var disposed = false
  3178. function injectStyle (ssrContext) {
  3179. if (disposed) return
  3180. __webpack_require__(724)
  3181. }
  3182. var normalizeComponent = __webpack_require__(4)
  3183. /* script */
  3184. var __vue_script__ = __webpack_require__(726)
  3185. /* template */
  3186. var __vue_template__ = __webpack_require__(727)
  3187. /* template functional */
  3188. var __vue_template_functional__ = false
  3189. /* styles */
  3190. var __vue_styles__ = injectStyle
  3191. /* scopeId */
  3192. var __vue_scopeId__ = null
  3193. /* moduleIdentifier (server only) */
  3194. var __vue_module_identifier__ = null
  3195. var Component = normalizeComponent(
  3196. __vue_script__,
  3197. __vue_template__,
  3198. __vue_template_functional__,
  3199. __vue_styles__,
  3200. __vue_scopeId__,
  3201. __vue_module_identifier__
  3202. )
  3203. Component.options.__file = "resources/assets/js/main/components/FullCalendar/components/header.vue"
  3204. /* hot reload */
  3205. if (false) {(function () {
  3206. var hotAPI = require("vue-hot-reload-api")
  3207. hotAPI.install(require("vue"), false)
  3208. if (!hotAPI.compatible) return
  3209. module.hot.accept()
  3210. if (!module.hot.data) {
  3211. hotAPI.createRecord("data-v-f1602cce", Component.options)
  3212. } else {
  3213. hotAPI.reload("data-v-f1602cce", Component.options)
  3214. }
  3215. module.hot.dispose(function (data) {
  3216. disposed = true
  3217. })
  3218. })()}
  3219. module.exports = Component.exports
  3220. /***/ }),
  3221. /***/ 724:
  3222. /***/ (function(module, exports, __webpack_require__) {
  3223. // style-loader: Adds some css to the DOM by adding a <style> tag
  3224. // load the styles
  3225. var content = __webpack_require__(725);
  3226. if(typeof content === 'string') content = [[module.i, content, '']];
  3227. if(content.locals) module.exports = content.locals;
  3228. // add the styles to the DOM
  3229. var update = __webpack_require__(3)("63a73c1c", content, false, {});
  3230. // Hot Module Replacement
  3231. if(false) {
  3232. // When the styles change, update the <style> tags
  3233. if(!content.locals) {
  3234. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-f1602cce\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./header.vue", function() {
  3235. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-f1602cce\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./header.vue");
  3236. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3237. update(newContent);
  3238. });
  3239. }
  3240. // When the module is disposed, remove the <style> tags
  3241. module.hot.dispose(function() { update(); });
  3242. }
  3243. /***/ }),
  3244. /***/ 725:
  3245. /***/ (function(module, exports, __webpack_require__) {
  3246. exports = module.exports = __webpack_require__(2)(false);
  3247. // imports
  3248. // module
  3249. exports.push([module.i, "\n.full-calendar-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.full-calendar-header .header-left, .full-calendar-header .header-right {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.full-calendar-header .header-center {\n -webkit-box-flex: 3;\n -ms-flex: 3;\n flex: 3;\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n font-weight: bold;\n}\n.full-calendar-header .header-center .title {\n margin: 0 5px;\n width: 150px;\n}\n.full-calendar-header .header-center .prev-month, .full-calendar-header .header-center .next-month {\n cursor: pointer;\n padding: 10px 15px;\n}\n", ""]);
  3250. // exports
  3251. /***/ }),
  3252. /***/ 726:
  3253. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3254. "use strict";
  3255. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3256. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc__ = __webpack_require__(670);
  3257. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__dateFunc__);
  3258. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bus__ = __webpack_require__(671);
  3259. //
  3260. //
  3261. //
  3262. //
  3263. //
  3264. //
  3265. //
  3266. //
  3267. //
  3268. //
  3269. //
  3270. //
  3271. //
  3272. //
  3273. //
  3274. /* harmony default export */ __webpack_exports__["default"] = ({
  3275. created: function created() {
  3276. this.dispatchEvent(this.tableType);
  3277. },
  3278. props: {
  3279. currentDate: {},
  3280. titleFormat: {},
  3281. firstDay: {},
  3282. monthNames: {},
  3283. tableType: ''
  3284. },
  3285. data: function data() {
  3286. return {
  3287. title: '',
  3288. leftArrow: '<',
  3289. rightArrow: '>',
  3290. headDate: new Date()
  3291. };
  3292. },
  3293. watch: {
  3294. currentDate: function currentDate(val) {
  3295. if (!val) return;
  3296. this.headDate = val;
  3297. },
  3298. tableType: function tableType(val) {
  3299. this.dispatchEvent(this.tableType);
  3300. }
  3301. },
  3302. methods: {
  3303. goPrev: function goPrev() {
  3304. this.headDate = this.changeDateRange(this.headDate, -1);
  3305. this.dispatchEvent(this.tableType);
  3306. },
  3307. goNext: function goNext() {
  3308. this.headDate = this.changeDateRange(this.headDate, 1);
  3309. this.dispatchEvent(this.tableType);
  3310. },
  3311. changeDateRange: function changeDateRange(date, num) {
  3312. var dt = new Date(date);
  3313. if (this.tableType == 'month') {
  3314. return new Date(dt.setMonth(dt.getMonth() + num));
  3315. } else {
  3316. return new Date(dt.valueOf() + num * 7 * 24 * 60 * 60 * 1000);
  3317. }
  3318. },
  3319. dispatchEvent: function dispatchEvent(type) {
  3320. if (type == 'month') {
  3321. this.title = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(this.headDate, this.titleFormat, this.monthNames);
  3322. var startDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(this.headDate);
  3323. var curWeekDay = startDate.getDay();
  3324. // 1st day of this monthView
  3325. var diff = parseInt(this.firstDay) - curWeekDay;
  3326. if (diff) diff -= 7;
  3327. startDate.setDate(startDate.getDate() + diff);
  3328. // the month view is 6*7
  3329. var endDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.changeDay(startDate, 41);
  3330. // 1st day of current month
  3331. var currentDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(this.headDate);
  3332. this.$emit('change', __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(startDate, 'yyyy-MM-dd'), __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(endDate, 'yyyy-MM-dd'), __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(currentDate, 'yyyy-MM-dd'), this.headDate);
  3333. } else if (type == 'week') {
  3334. var weekDays = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getDates(this.headDate);
  3335. this.title = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(weekDays[0], 'MM-dd') + ' \u81F3 ' + __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(weekDays[6], 'MM-dd');
  3336. this.$emit('change', __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(weekDays[0], 'yyyy-MM-dd'), __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(weekDays[6], 'yyyy-MM-dd'), __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(weekDays[0], 'yyyy-MM-dd'), this.headDate, weekDays);
  3337. __WEBPACK_IMPORTED_MODULE_1__bus__["a" /* default */].$emit('changeWeekDays', weekDays);
  3338. }
  3339. }
  3340. }
  3341. });
  3342. /***/ }),
  3343. /***/ 727:
  3344. /***/ (function(module, exports, __webpack_require__) {
  3345. var render = function() {
  3346. var _vm = this
  3347. var _h = _vm.$createElement
  3348. var _c = _vm._self._c || _h
  3349. return _c("div", { staticClass: "full-calendar-header" }, [
  3350. _c("div", { staticClass: "header-left" }, [_vm._t("header-left")], 2),
  3351. _vm._v(" "),
  3352. _c("div", { staticClass: "header-center" }, [
  3353. _c(
  3354. "span",
  3355. {
  3356. staticClass: "prev-month",
  3357. on: {
  3358. click: function($event) {
  3359. $event.stopPropagation()
  3360. return _vm.goPrev.apply(null, arguments)
  3361. }
  3362. }
  3363. },
  3364. [_vm._v(_vm._s(_vm.leftArrow))]
  3365. ),
  3366. _vm._v(" "),
  3367. _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.title))]),
  3368. _vm._v(" "),
  3369. _c(
  3370. "span",
  3371. {
  3372. staticClass: "next-month",
  3373. on: {
  3374. click: function($event) {
  3375. $event.stopPropagation()
  3376. return _vm.goNext.apply(null, arguments)
  3377. }
  3378. }
  3379. },
  3380. [_vm._v(_vm._s(_vm.rightArrow))]
  3381. )
  3382. ]),
  3383. _vm._v(" "),
  3384. _c("div", { staticClass: "header-right" }, [_vm._t("header-right")], 2)
  3385. ])
  3386. }
  3387. var staticRenderFns = []
  3388. render._withStripped = true
  3389. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3390. if (false) {
  3391. module.hot.accept()
  3392. if (module.hot.data) {
  3393. require("vue-hot-reload-api") .rerender("data-v-f1602cce", module.exports)
  3394. }
  3395. }
  3396. /***/ }),
  3397. /***/ 728:
  3398. /***/ (function(module, exports, __webpack_require__) {
  3399. var render = function() {
  3400. var _vm = this
  3401. var _h = _vm.$createElement
  3402. var _c = _vm._self._c || _h
  3403. return _c(
  3404. "div",
  3405. { staticClass: "comp-full-calendar" },
  3406. [
  3407. _c(
  3408. "fc-header",
  3409. {
  3410. attrs: {
  3411. "current-date": _vm.currentDate,
  3412. "title-format": _vm.titleFormat,
  3413. "first-day": _vm.firstDay,
  3414. "month-names": _vm.monthNames,
  3415. tableType: _vm.tableType
  3416. },
  3417. on: { change: _vm.changeDateRange }
  3418. },
  3419. [
  3420. _c(
  3421. "div",
  3422. { attrs: { slot: "header-left" }, slot: "header-left" },
  3423. [_vm._t("fc-header-left")],
  3424. 2
  3425. ),
  3426. _vm._v(" "),
  3427. _c(
  3428. "div",
  3429. {
  3430. staticClass: "btn-group",
  3431. attrs: { slot: "header-right" },
  3432. slot: "header-right"
  3433. },
  3434. [
  3435. _c("div", [
  3436. _c(
  3437. "button",
  3438. {
  3439. class: {
  3440. cancel: _vm.tableType == "month",
  3441. primary: _vm.tableType == "week"
  3442. },
  3443. on: {
  3444. click: function($event) {
  3445. return _vm.changeType("week")
  3446. }
  3447. }
  3448. },
  3449. [_vm._v("周")]
  3450. ),
  3451. _vm._v(" "),
  3452. _c(
  3453. "button",
  3454. {
  3455. class: {
  3456. cancel: _vm.tableType == "week",
  3457. primary: _vm.tableType == "month"
  3458. },
  3459. on: {
  3460. click: function($event) {
  3461. return _vm.changeType("month")
  3462. }
  3463. }
  3464. },
  3465. [_vm._v("月")]
  3466. )
  3467. ])
  3468. ]
  3469. )
  3470. ]
  3471. ),
  3472. _vm._v(" "),
  3473. _c(
  3474. "fc-body",
  3475. {
  3476. ref: "fcbody",
  3477. attrs: {
  3478. "current-date": _vm.currentDate,
  3479. events: _vm.events,
  3480. "month-names": _vm.monthNames,
  3481. tableType: _vm.tableType,
  3482. loading: _vm.loading,
  3483. "week-names": _vm.weekNames,
  3484. "first-day": _vm.firstDay,
  3485. weekDays: _vm.weekDays
  3486. },
  3487. on: {
  3488. eventclick: _vm.emitEventClick,
  3489. dayclick: _vm.emitDayClick,
  3490. moreclick: _vm.emitMoreClick
  3491. }
  3492. },
  3493. [_c("template", { slot: "body-card" }, [_vm._t("fc-body-card")], 2)],
  3494. 2
  3495. )
  3496. ],
  3497. 1
  3498. )
  3499. }
  3500. var staticRenderFns = []
  3501. render._withStripped = true
  3502. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3503. if (false) {
  3504. module.hot.accept()
  3505. if (module.hot.data) {
  3506. require("vue-hot-reload-api") .rerender("data-v-2e96a02c", module.exports)
  3507. }
  3508. }
  3509. /***/ }),
  3510. /***/ 729:
  3511. /***/ (function(module, exports, __webpack_require__) {
  3512. var render = function() {
  3513. var _vm = this
  3514. var _h = _vm.$createElement
  3515. var _c = _vm._self._c || _h
  3516. return _c("drawer-tabs-container", [
  3517. _c(
  3518. "div",
  3519. { staticClass: "todo-calendar" },
  3520. [
  3521. _c("FullCalendar", {
  3522. attrs: {
  3523. events: _vm.lists,
  3524. loading: _vm.loadIng > 0,
  3525. lang: _vm.lang
  3526. },
  3527. on: { eventClick: _vm.clickEvent, change: _vm.changeDateRange }
  3528. })
  3529. ],
  3530. 1
  3531. )
  3532. ])
  3533. }
  3534. var staticRenderFns = []
  3535. render._withStripped = true
  3536. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3537. if (false) {
  3538. module.hot.accept()
  3539. if (module.hot.data) {
  3540. require("vue-hot-reload-api") .rerender("data-v-0963e7e8", module.exports)
  3541. }
  3542. }
  3543. /***/ }),
  3544. /***/ 730:
  3545. /***/ (function(module, exports, __webpack_require__) {
  3546. var disposed = false
  3547. function injectStyle (ssrContext) {
  3548. if (disposed) return
  3549. __webpack_require__(731)
  3550. }
  3551. var normalizeComponent = __webpack_require__(4)
  3552. /* script */
  3553. var __vue_script__ = __webpack_require__(733)
  3554. /* template */
  3555. var __vue_template__ = __webpack_require__(734)
  3556. /* template functional */
  3557. var __vue_template_functional__ = false
  3558. /* styles */
  3559. var __vue_styles__ = injectStyle
  3560. /* scopeId */
  3561. var __vue_scopeId__ = "data-v-103a66f2"
  3562. /* moduleIdentifier (server only) */
  3563. var __vue_module_identifier__ = null
  3564. var Component = normalizeComponent(
  3565. __vue_script__,
  3566. __vue_template__,
  3567. __vue_template_functional__,
  3568. __vue_styles__,
  3569. __vue_scopeId__,
  3570. __vue_module_identifier__
  3571. )
  3572. Component.options.__file = "resources/assets/js/main/components/project/todo/complete.vue"
  3573. /* hot reload */
  3574. if (false) {(function () {
  3575. var hotAPI = require("vue-hot-reload-api")
  3576. hotAPI.install(require("vue"), false)
  3577. if (!hotAPI.compatible) return
  3578. module.hot.accept()
  3579. if (!module.hot.data) {
  3580. hotAPI.createRecord("data-v-103a66f2", Component.options)
  3581. } else {
  3582. hotAPI.reload("data-v-103a66f2", Component.options)
  3583. }
  3584. module.hot.dispose(function (data) {
  3585. disposed = true
  3586. })
  3587. })()}
  3588. module.exports = Component.exports
  3589. /***/ }),
  3590. /***/ 731:
  3591. /***/ (function(module, exports, __webpack_require__) {
  3592. // style-loader: Adds some css to the DOM by adding a <style> tag
  3593. // load the styles
  3594. var content = __webpack_require__(732);
  3595. if(typeof content === 'string') content = [[module.i, content, '']];
  3596. if(content.locals) module.exports = content.locals;
  3597. // add the styles to the DOM
  3598. var update = __webpack_require__(3)("025824fc", content, false, {});
  3599. // Hot Module Replacement
  3600. if(false) {
  3601. // When the styles change, update the <style> tags
  3602. if(!content.locals) {
  3603. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-103a66f2\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./complete.vue", function() {
  3604. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-103a66f2\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./complete.vue");
  3605. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3606. update(newContent);
  3607. });
  3608. }
  3609. // When the module is disposed, remove the <style> tags
  3610. module.hot.dispose(function() { update(); });
  3611. }
  3612. /***/ }),
  3613. /***/ 732:
  3614. /***/ (function(module, exports, __webpack_require__) {
  3615. exports = module.exports = __webpack_require__(2)(false);
  3616. // imports
  3617. // module
  3618. exports.push([module.i, "\n.project-todo-complete .tableFill[data-v-103a66f2] {\n margin: 12px 12px 20px;\n}\n", ""]);
  3619. // exports
  3620. /***/ }),
  3621. /***/ 733:
  3622. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3623. "use strict";
  3624. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3625. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  3626. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  3627. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(38);
  3628. //
  3629. //
  3630. //
  3631. //
  3632. //
  3633. //
  3634. //
  3635. //
  3636. //
  3637. //
  3638. //
  3639. //
  3640. //
  3641. //
  3642. //
  3643. //
  3644. //
  3645. //
  3646. /**
  3647. * 已完成的任务
  3648. */
  3649. /* harmony default export */ __webpack_exports__["default"] = ({
  3650. name: 'TodoComplete',
  3651. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  3652. props: {
  3653. canload: {
  3654. type: Boolean,
  3655. default: true
  3656. }
  3657. },
  3658. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  3659. data: function data() {
  3660. return {
  3661. loadYet: false,
  3662. loadIng: 0,
  3663. columns: [],
  3664. lists: [],
  3665. listPage: 1,
  3666. listTotal: 0,
  3667. noDataText: ""
  3668. };
  3669. },
  3670. mounted: function mounted() {
  3671. var _this = this;
  3672. if (this.canload) {
  3673. this.loadYet = true;
  3674. this.getLists(true);
  3675. }
  3676. $A.setOnTaskInfoListener('components/project/todo/complete', function (act, detail) {
  3677. if (detail.username != _this.usrName) {
  3678. _this.lists.some(function (task, i) {
  3679. if (task.id == detail.id) {
  3680. _this.lists.splice(i, 1);
  3681. return true;
  3682. }
  3683. });
  3684. return;
  3685. }
  3686. //
  3687. _this.lists.some(function (task, i) {
  3688. if (task.id == detail.id) {
  3689. _this.lists.splice(i, 1, detail);
  3690. return true;
  3691. }
  3692. });
  3693. //
  3694. switch (act) {
  3695. case "username": // 负责人
  3696. case "delete": // 删除任务
  3697. case "archived":
  3698. // 归档
  3699. _this.lists.some(function (task, i) {
  3700. if (task.id == detail.id) {
  3701. _this.lists.splice(i, 1);
  3702. return true;
  3703. }
  3704. });
  3705. break;
  3706. case "unarchived":
  3707. // 取消归档
  3708. var has = false;
  3709. _this.lists.some(function (task) {
  3710. if (task.id == detail.id) {
  3711. return has = true;
  3712. }
  3713. });
  3714. if (!has) {
  3715. _this.lists.unshift(detail);
  3716. }
  3717. break;
  3718. }
  3719. });
  3720. },
  3721. watch: {
  3722. canload: function canload(val) {
  3723. if (val && !this.loadYet) {
  3724. this.loadYet = true;
  3725. this.getLists(true);
  3726. }
  3727. }
  3728. },
  3729. methods: {
  3730. initLanguage: function initLanguage() {
  3731. var _this2 = this;
  3732. this.noDataText = this.$L("数据加载中.....");
  3733. this.columns = [{
  3734. "title": this.$L("任务名称"),
  3735. "key": 'title',
  3736. "minWidth": 120,
  3737. render: function render(h, params) {
  3738. return _this2.renderTaskTitle(h, params);
  3739. }
  3740. }, {
  3741. "title": this.$L("创建人"),
  3742. "key": 'createuser',
  3743. "minWidth": 80,
  3744. render: function render(h, params) {
  3745. return h('UserView', {
  3746. props: {
  3747. username: params.row.createuser
  3748. }
  3749. });
  3750. }
  3751. }, {
  3752. "title": this.$L("负责人"),
  3753. "key": 'username',
  3754. "minWidth": 80,
  3755. render: function render(h, params) {
  3756. return h('UserView', {
  3757. props: {
  3758. username: params.row.username
  3759. }
  3760. });
  3761. }
  3762. }, {
  3763. "title": this.$L("完成时间"),
  3764. "width": 160,
  3765. render: function render(h, params) {
  3766. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.completedate));
  3767. }
  3768. }];
  3769. },
  3770. setPage: function setPage(page) {
  3771. this.listPage = page;
  3772. this.getLists();
  3773. },
  3774. setPageSize: function setPageSize(size) {
  3775. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  3776. this.listPageSize = size;
  3777. this.getLists();
  3778. }
  3779. },
  3780. getLists: function getLists(resetLoad) {
  3781. var _this3 = this;
  3782. if (resetLoad === true) {
  3783. this.listPage = 1;
  3784. }
  3785. this.loadIng++;
  3786. this.noDataText = this.$L("数据加载中.....");
  3787. $A.apiAjax({
  3788. url: 'project/task/lists',
  3789. data: {
  3790. type: '已完成',
  3791. page: Math.max(this.listPage, 1),
  3792. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  3793. },
  3794. complete: function complete() {
  3795. _this3.loadIng--;
  3796. },
  3797. error: function error() {
  3798. _this3.noDataText = _this3.$L("数据加载失败!");
  3799. },
  3800. success: function success(res) {
  3801. if (res.ret === 1) {
  3802. _this3.lists = res.data.lists;
  3803. _this3.listTotal = res.data.total;
  3804. _this3.noDataText = _this3.$L("没有相关的数据");
  3805. } else {
  3806. _this3.lists = [];
  3807. _this3.listTotal = 0;
  3808. _this3.noDataText = res.msg;
  3809. }
  3810. }
  3811. });
  3812. }
  3813. }
  3814. });
  3815. /***/ }),
  3816. /***/ 734:
  3817. /***/ (function(module, exports, __webpack_require__) {
  3818. var render = function() {
  3819. var _vm = this
  3820. var _h = _vm.$createElement
  3821. var _c = _vm._self._c || _h
  3822. return _c("drawer-tabs-container", [
  3823. _c(
  3824. "div",
  3825. { staticClass: "project-todo-complete" },
  3826. [
  3827. _c("Table", {
  3828. ref: "tableRef",
  3829. staticClass: "tableFill",
  3830. attrs: {
  3831. columns: _vm.columns,
  3832. data: _vm.lists,
  3833. loading: _vm.loadIng > 0,
  3834. "no-data-text": _vm.noDataText,
  3835. stripe: ""
  3836. }
  3837. }),
  3838. _vm._v(" "),
  3839. _c("Page", {
  3840. staticClass: "pageBox",
  3841. attrs: {
  3842. total: _vm.listTotal,
  3843. current: _vm.listPage,
  3844. disabled: _vm.loadIng > 0,
  3845. "page-size-opts": [10, 20, 30, 50, 100],
  3846. placement: "top",
  3847. "show-elevator": "",
  3848. "show-sizer": "",
  3849. "show-total": "",
  3850. transfer: "",
  3851. simple: _vm.windowMax768
  3852. },
  3853. on: {
  3854. "on-change": _vm.setPage,
  3855. "on-page-size-change": _vm.setPageSize
  3856. }
  3857. })
  3858. ],
  3859. 1
  3860. )
  3861. ])
  3862. }
  3863. var staticRenderFns = []
  3864. render._withStripped = true
  3865. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3866. if (false) {
  3867. module.hot.accept()
  3868. if (module.hot.data) {
  3869. require("vue-hot-reload-api") .rerender("data-v-103a66f2", module.exports)
  3870. }
  3871. }
  3872. /***/ }),
  3873. /***/ 735:
  3874. /***/ (function(module, exports, __webpack_require__) {
  3875. var disposed = false
  3876. function injectStyle (ssrContext) {
  3877. if (disposed) return
  3878. __webpack_require__(736)
  3879. }
  3880. var normalizeComponent = __webpack_require__(4)
  3881. /* script */
  3882. var __vue_script__ = __webpack_require__(738)
  3883. /* template */
  3884. var __vue_template__ = __webpack_require__(739)
  3885. /* template functional */
  3886. var __vue_template_functional__ = false
  3887. /* styles */
  3888. var __vue_styles__ = injectStyle
  3889. /* scopeId */
  3890. var __vue_scopeId__ = "data-v-2364e380"
  3891. /* moduleIdentifier (server only) */
  3892. var __vue_module_identifier__ = null
  3893. var Component = normalizeComponent(
  3894. __vue_script__,
  3895. __vue_template__,
  3896. __vue_template_functional__,
  3897. __vue_styles__,
  3898. __vue_scopeId__,
  3899. __vue_module_identifier__
  3900. )
  3901. Component.options.__file = "resources/assets/js/main/components/project/todo/attention.vue"
  3902. /* hot reload */
  3903. if (false) {(function () {
  3904. var hotAPI = require("vue-hot-reload-api")
  3905. hotAPI.install(require("vue"), false)
  3906. if (!hotAPI.compatible) return
  3907. module.hot.accept()
  3908. if (!module.hot.data) {
  3909. hotAPI.createRecord("data-v-2364e380", Component.options)
  3910. } else {
  3911. hotAPI.reload("data-v-2364e380", Component.options)
  3912. }
  3913. module.hot.dispose(function (data) {
  3914. disposed = true
  3915. })
  3916. })()}
  3917. module.exports = Component.exports
  3918. /***/ }),
  3919. /***/ 736:
  3920. /***/ (function(module, exports, __webpack_require__) {
  3921. // style-loader: Adds some css to the DOM by adding a <style> tag
  3922. // load the styles
  3923. var content = __webpack_require__(737);
  3924. if(typeof content === 'string') content = [[module.i, content, '']];
  3925. if(content.locals) module.exports = content.locals;
  3926. // add the styles to the DOM
  3927. var update = __webpack_require__(3)("9962019c", content, false, {});
  3928. // Hot Module Replacement
  3929. if(false) {
  3930. // When the styles change, update the <style> tags
  3931. if(!content.locals) {
  3932. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-2364e380\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./attention.vue", function() {
  3933. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-2364e380\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./attention.vue");
  3934. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3935. update(newContent);
  3936. });
  3937. }
  3938. // When the module is disposed, remove the <style> tags
  3939. module.hot.dispose(function() { update(); });
  3940. }
  3941. /***/ }),
  3942. /***/ 737:
  3943. /***/ (function(module, exports, __webpack_require__) {
  3944. exports = module.exports = __webpack_require__(2)(false);
  3945. // imports
  3946. // module
  3947. exports.push([module.i, "\n.project-todo-attention .tableFill[data-v-2364e380] {\n margin: 12px 12px 20px;\n}\n", ""]);
  3948. // exports
  3949. /***/ }),
  3950. /***/ 738:
  3951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3952. "use strict";
  3953. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3954. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  3955. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  3956. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(38);
  3957. //
  3958. //
  3959. //
  3960. //
  3961. //
  3962. //
  3963. //
  3964. //
  3965. //
  3966. //
  3967. //
  3968. //
  3969. //
  3970. //
  3971. //
  3972. //
  3973. //
  3974. //
  3975. /**
  3976. * 我关注的任务
  3977. */
  3978. /* harmony default export */ __webpack_exports__["default"] = ({
  3979. name: 'TodoAttention',
  3980. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  3981. props: {
  3982. canload: {
  3983. type: Boolean,
  3984. default: true
  3985. }
  3986. },
  3987. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  3988. data: function data() {
  3989. return {
  3990. loadYet: false,
  3991. loadIng: 0,
  3992. columns: [],
  3993. lists: [],
  3994. listPage: 1,
  3995. listTotal: 0,
  3996. noDataText: ""
  3997. };
  3998. },
  3999. mounted: function mounted() {
  4000. var _this = this;
  4001. if (this.canload) {
  4002. this.loadYet = true;
  4003. this.getLists(true);
  4004. }
  4005. $A.setOnTaskInfoListener('components/project/todo/attention', function (act, detail) {
  4006. if (detail.follower.indexOf(_this.usrName) === -1) {
  4007. _this.lists.some(function (task, i) {
  4008. if (task.id == detail.id) {
  4009. _this.lists.splice(i, 1);
  4010. return true;
  4011. }
  4012. });
  4013. return;
  4014. }
  4015. //
  4016. _this.lists.some(function (task, i) {
  4017. if (task.id == detail.id) {
  4018. _this.lists.splice(i, 1, detail);
  4019. return true;
  4020. }
  4021. });
  4022. //
  4023. switch (act) {
  4024. case "unattention": // 取消关注
  4025. case "delete":
  4026. // 删除任务
  4027. _this.lists.some(function (task, i) {
  4028. if (task.id == detail.id) {
  4029. _this.lists.splice(i, 1);
  4030. return true;
  4031. }
  4032. });
  4033. break;
  4034. case "attention":
  4035. // 添加关注
  4036. var username = _this.usrName;
  4037. if (detail.follower.filter(function (uname) {
  4038. return uname == username;
  4039. }).length == 0) {
  4040. return;
  4041. }
  4042. var has = false;
  4043. _this.lists.some(function (task) {
  4044. if (task.id == detail.id) {
  4045. return has = true;
  4046. }
  4047. });
  4048. if (!has) {
  4049. _this.lists.unshift(detail);
  4050. }
  4051. break;
  4052. }
  4053. });
  4054. },
  4055. watch: {
  4056. canload: function canload(val) {
  4057. if (val && !this.loadYet) {
  4058. this.loadYet = true;
  4059. this.getLists(true);
  4060. }
  4061. }
  4062. },
  4063. methods: {
  4064. initLanguage: function initLanguage() {
  4065. var _this2 = this;
  4066. this.noDataText = this.$L("数据加载中.....");
  4067. this.columns = [{
  4068. "title": this.$L("任务名称"),
  4069. "key": 'title',
  4070. "minWidth": 120,
  4071. render: function render(h, params) {
  4072. return _this2.renderTaskTitle(h, params);
  4073. }
  4074. }, {
  4075. "title": this.$L("创建人"),
  4076. "key": 'createuser',
  4077. "minWidth": 80,
  4078. render: function render(h, params) {
  4079. return h('UserView', {
  4080. props: {
  4081. username: params.row.createuser
  4082. }
  4083. });
  4084. }
  4085. }, {
  4086. "title": this.$L("负责人"),
  4087. "key": 'username',
  4088. "minWidth": 80,
  4089. render: function render(h, params) {
  4090. return h('UserView', {
  4091. props: {
  4092. username: params.row.username
  4093. }
  4094. });
  4095. }
  4096. }, {
  4097. "title": this.$L("完成"),
  4098. "minWidth": 70,
  4099. "align": "center",
  4100. render: function render(h, params) {
  4101. return h('span', params.row.complete ? '√' : '-');
  4102. }
  4103. }, {
  4104. "title": this.$L("归档"),
  4105. "minWidth": 70,
  4106. "align": "center",
  4107. render: function render(h, params) {
  4108. return h('span', params.row.archived ? '√' : '-');
  4109. }
  4110. }, {
  4111. "title": this.$L("关注时间"),
  4112. "width": 160,
  4113. render: function render(h, params) {
  4114. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.attentiondate));
  4115. }
  4116. }];
  4117. },
  4118. setPage: function setPage(page) {
  4119. this.listPage = page;
  4120. this.getLists();
  4121. },
  4122. setPageSize: function setPageSize(size) {
  4123. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  4124. this.listPageSize = size;
  4125. this.getLists();
  4126. }
  4127. },
  4128. getLists: function getLists(resetLoad) {
  4129. var _this3 = this;
  4130. if (resetLoad === true) {
  4131. this.listPage = 1;
  4132. }
  4133. this.loadIng++;
  4134. this.noDataText = this.$L("数据加载中.....");
  4135. $A.apiAjax({
  4136. url: 'project/task/lists',
  4137. data: {
  4138. attention: 1,
  4139. archived: '全部',
  4140. page: Math.max(this.listPage, 1),
  4141. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  4142. },
  4143. complete: function complete() {
  4144. _this3.loadIng--;
  4145. },
  4146. error: function error() {
  4147. _this3.noDataText = _this3.$L("数据加载失败!");
  4148. },
  4149. success: function success(res) {
  4150. if (res.ret === 1) {
  4151. _this3.lists = res.data.lists;
  4152. _this3.listTotal = res.data.total;
  4153. _this3.noDataText = _this3.$L("没有相关的数据");
  4154. } else {
  4155. _this3.lists = [];
  4156. _this3.listTotal = 0;
  4157. _this3.noDataText = res.msg;
  4158. }
  4159. }
  4160. });
  4161. }
  4162. }
  4163. });
  4164. /***/ }),
  4165. /***/ 739:
  4166. /***/ (function(module, exports, __webpack_require__) {
  4167. var render = function() {
  4168. var _vm = this
  4169. var _h = _vm.$createElement
  4170. var _c = _vm._self._c || _h
  4171. return _c("drawer-tabs-container", [
  4172. _c(
  4173. "div",
  4174. { staticClass: "project-todo-attention" },
  4175. [
  4176. _c("Table", {
  4177. ref: "tableRef",
  4178. staticClass: "tableFill",
  4179. attrs: {
  4180. columns: _vm.columns,
  4181. data: _vm.lists,
  4182. loading: _vm.loadIng > 0,
  4183. "no-data-text": _vm.noDataText,
  4184. stripe: ""
  4185. }
  4186. }),
  4187. _vm._v(" "),
  4188. _c("Page", {
  4189. staticClass: "pageBox",
  4190. attrs: {
  4191. total: _vm.listTotal,
  4192. current: _vm.listPage,
  4193. disabled: _vm.loadIng > 0,
  4194. "page-size-opts": [10, 20, 30, 50, 100],
  4195. placement: "top",
  4196. "show-elevator": "",
  4197. "show-sizer": "",
  4198. "show-total": "",
  4199. transfer: "",
  4200. simple: _vm.windowMax768
  4201. },
  4202. on: {
  4203. "on-change": _vm.setPage,
  4204. "on-page-size-change": _vm.setPageSize
  4205. }
  4206. })
  4207. ],
  4208. 1
  4209. )
  4210. ])
  4211. }
  4212. var staticRenderFns = []
  4213. render._withStripped = true
  4214. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4215. if (false) {
  4216. module.hot.accept()
  4217. if (module.hot.data) {
  4218. require("vue-hot-reload-api") .rerender("data-v-2364e380", module.exports)
  4219. }
  4220. }
  4221. /***/ }),
  4222. /***/ 740:
  4223. /***/ (function(module, exports, __webpack_require__) {
  4224. var disposed = false
  4225. function injectStyle (ssrContext) {
  4226. if (disposed) return
  4227. __webpack_require__(741)
  4228. }
  4229. var normalizeComponent = __webpack_require__(4)
  4230. /* script */
  4231. var __vue_script__ = __webpack_require__(743)
  4232. /* template */
  4233. var __vue_template__ = __webpack_require__(751)
  4234. /* template functional */
  4235. var __vue_template_functional__ = false
  4236. /* styles */
  4237. var __vue_styles__ = injectStyle
  4238. /* scopeId */
  4239. var __vue_scopeId__ = "data-v-19afa782"
  4240. /* moduleIdentifier (server only) */
  4241. var __vue_module_identifier__ = null
  4242. var Component = normalizeComponent(
  4243. __vue_script__,
  4244. __vue_template__,
  4245. __vue_template_functional__,
  4246. __vue_styles__,
  4247. __vue_scopeId__,
  4248. __vue_module_identifier__
  4249. )
  4250. Component.options.__file = "resources/assets/js/main/components/report/my.vue"
  4251. /* hot reload */
  4252. if (false) {(function () {
  4253. var hotAPI = require("vue-hot-reload-api")
  4254. hotAPI.install(require("vue"), false)
  4255. if (!hotAPI.compatible) return
  4256. module.hot.accept()
  4257. if (!module.hot.data) {
  4258. hotAPI.createRecord("data-v-19afa782", Component.options)
  4259. } else {
  4260. hotAPI.reload("data-v-19afa782", Component.options)
  4261. }
  4262. module.hot.dispose(function (data) {
  4263. disposed = true
  4264. })
  4265. })()}
  4266. module.exports = Component.exports
  4267. /***/ }),
  4268. /***/ 741:
  4269. /***/ (function(module, exports, __webpack_require__) {
  4270. // style-loader: Adds some css to the DOM by adding a <style> tag
  4271. // load the styles
  4272. var content = __webpack_require__(742);
  4273. if(typeof content === 'string') content = [[module.i, content, '']];
  4274. if(content.locals) module.exports = content.locals;
  4275. // add the styles to the DOM
  4276. var update = __webpack_require__(3)("7b860e96", content, false, {});
  4277. // Hot Module Replacement
  4278. if(false) {
  4279. // When the styles change, update the <style> tags
  4280. if(!content.locals) {
  4281. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-19afa782\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./my.vue", function() {
  4282. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-19afa782\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./my.vue");
  4283. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4284. update(newContent);
  4285. });
  4286. }
  4287. // When the module is disposed, remove the <style> tags
  4288. module.hot.dispose(function() { update(); });
  4289. }
  4290. /***/ }),
  4291. /***/ 742:
  4292. /***/ (function(module, exports, __webpack_require__) {
  4293. exports = module.exports = __webpack_require__(2)(false);
  4294. // imports
  4295. // module
  4296. exports.push([module.i, "\n.report-my[data-v-19afa782] {\n padding: 0 12px;\n}\n.report-my .tableFill[data-v-19afa782] {\n margin: 12px 0 20px;\n}\n", ""]);
  4297. // exports
  4298. /***/ }),
  4299. /***/ 743:
  4300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4301. "use strict";
  4302. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4303. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  4304. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  4305. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__add__ = __webpack_require__(744);
  4306. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__add___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__add__);
  4307. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__iview_WDrawer__ = __webpack_require__(60);
  4308. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__iview_WDrawer__);
  4309. //
  4310. //
  4311. //
  4312. //
  4313. //
  4314. //
  4315. //
  4316. //
  4317. //
  4318. //
  4319. //
  4320. //
  4321. //
  4322. //
  4323. //
  4324. //
  4325. //
  4326. //
  4327. //
  4328. //
  4329. //
  4330. //
  4331. //
  4332. //
  4333. //
  4334. //
  4335. //
  4336. //
  4337. //
  4338. //
  4339. //
  4340. //
  4341. //
  4342. //
  4343. //
  4344. //
  4345. //
  4346. //
  4347. //
  4348. //
  4349. //
  4350. //
  4351. //
  4352. //
  4353. //
  4354. //
  4355. //
  4356. /**
  4357. * 我的汇报
  4358. */
  4359. /* harmony default export */ __webpack_exports__["default"] = ({
  4360. name: 'ReportMy',
  4361. components: { WDrawer: __WEBPACK_IMPORTED_MODULE_2__iview_WDrawer___default.a, ReportAdd: __WEBPACK_IMPORTED_MODULE_1__add___default.a, DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  4362. props: {
  4363. canload: {
  4364. type: Boolean,
  4365. default: true
  4366. }
  4367. },
  4368. data: function data() {
  4369. return {
  4370. keys: {},
  4371. sorts: { key: '', order: '' },
  4372. loadYet: false,
  4373. loadIng: 0,
  4374. columns: [],
  4375. lists: [],
  4376. listPage: 1,
  4377. listTotal: 0,
  4378. noDataText: "",
  4379. addDrawerId: 0,
  4380. addDrawerShow: false
  4381. };
  4382. },
  4383. mounted: function mounted() {
  4384. if (this.canload) {
  4385. this.loadYet = true;
  4386. this.getLists(true);
  4387. }
  4388. },
  4389. watch: {
  4390. canload: function canload(val) {
  4391. if (val && !this.loadYet) {
  4392. this.loadYet = true;
  4393. this.getLists(true);
  4394. }
  4395. }
  4396. },
  4397. methods: {
  4398. initLanguage: function initLanguage() {
  4399. var _this = this;
  4400. this.noDataText = this.$L("数据加载中.....");
  4401. this.contentText = this.$L("内容加载中.....");
  4402. this.columns = [{
  4403. "title": this.$L("标题"),
  4404. "key": 'title',
  4405. "minWidth": 120
  4406. }, {
  4407. "title": this.$L("类型"),
  4408. "key": 'type',
  4409. "minWidth": 80,
  4410. "maxWidth": 120,
  4411. "align": 'center'
  4412. }, {
  4413. "title": this.$L("状态"),
  4414. "key": 'status',
  4415. "minWidth": 80,
  4416. "maxWidth": 120,
  4417. "align": 'center'
  4418. }, {
  4419. "title": this.$L("创建日期"),
  4420. "minWidth": 160,
  4421. "maxWidth": 200,
  4422. "align": 'center',
  4423. "sortable": true,
  4424. render: function render(h, params) {
  4425. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  4426. }
  4427. }, {
  4428. "title": " ",
  4429. "key": 'action',
  4430. "align": 'right',
  4431. "width": 120,
  4432. render: function render(h, params) {
  4433. if (!params.row.id) {
  4434. return null;
  4435. }
  4436. var arr = [h('Tooltip', {
  4437. props: { content: _this.$L('查看'), transfer: true, delay: 600 },
  4438. style: { position: 'relative' }
  4439. }, [h('Icon', {
  4440. props: { type: 'md-eye', size: 16 },
  4441. style: { margin: '0 3px', cursor: 'pointer' },
  4442. on: {
  4443. click: function click() {
  4444. _this.reportDetail(params.row.id, params.row.title);
  4445. }
  4446. }
  4447. })]), h('Tooltip', {
  4448. props: { content: _this.$L('编辑'), transfer: true, delay: 600 }
  4449. }, [h('Icon', {
  4450. props: { type: 'md-create', size: 16 },
  4451. style: { margin: '0 3px', cursor: 'pointer' },
  4452. on: {
  4453. click: function click() {
  4454. _this.addDrawerId = params.row.id;
  4455. _this.addDrawerShow = true;
  4456. }
  4457. }
  4458. })])];
  4459. if (params.row.status !== '已发送') {
  4460. arr.push(h('Tooltip', {
  4461. props: { content: _this.$L('发送'), transfer: true, delay: 600 }
  4462. }, [h('Icon', {
  4463. props: { type: 'md-send', size: 16 },
  4464. style: { margin: '0 3px', cursor: 'pointer' },
  4465. on: {
  4466. click: function click() {
  4467. _this.sendReport(params.row);
  4468. }
  4469. }
  4470. })]));
  4471. arr.push(h('Tooltip', {
  4472. props: { content: _this.$L('删除'), transfer: true, delay: 600 }
  4473. }, [h('Icon', {
  4474. props: { type: 'md-trash', size: 16 },
  4475. style: { margin: '0 3px', cursor: 'pointer' },
  4476. on: {
  4477. click: function click() {
  4478. _this.deleteReport(params.row);
  4479. }
  4480. }
  4481. })]));
  4482. }
  4483. return h('div', arr);
  4484. }
  4485. }];
  4486. },
  4487. sreachTab: function sreachTab(clear) {
  4488. if (clear === true) {
  4489. this.keys = {};
  4490. }
  4491. this.getLists(true);
  4492. },
  4493. sortChange: function sortChange(info) {
  4494. this.sorts = { key: info.key, order: info.order };
  4495. this.getLists(true);
  4496. },
  4497. setPage: function setPage(page) {
  4498. this.listPage = page;
  4499. this.getLists();
  4500. },
  4501. setPageSize: function setPageSize(size) {
  4502. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  4503. this.listPageSize = size;
  4504. this.getLists();
  4505. }
  4506. },
  4507. getLists: function getLists(resetLoad) {
  4508. var _this2 = this;
  4509. if (resetLoad === true) {
  4510. this.listPage = 1;
  4511. }
  4512. var whereData = $A.date2string($A.cloneData(this.keys));
  4513. whereData.page = Math.max(this.listPage, 1);
  4514. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4515. whereData.sorts = $A.cloneData(this.sorts);
  4516. this.loadIng++;
  4517. this.noDataText = this.$L("数据加载中.....");
  4518. $A.apiAjax({
  4519. url: 'report/my',
  4520. data: whereData,
  4521. complete: function complete() {
  4522. _this2.loadIng--;
  4523. },
  4524. error: function error() {
  4525. _this2.noDataText = _this2.$L("数据加载失败!");
  4526. },
  4527. success: function success(res) {
  4528. if (res.ret === 1) {
  4529. _this2.lists = res.data.lists;
  4530. _this2.listTotal = res.data.total;
  4531. _this2.noDataText = _this2.$L("没有相关的数据");
  4532. } else {
  4533. _this2.lists = [];
  4534. _this2.listTotal = 0;
  4535. _this2.noDataText = res.msg;
  4536. }
  4537. }
  4538. });
  4539. },
  4540. addDrawerSuccess: function addDrawerSuccess() {
  4541. this.addDrawerShow = false;
  4542. this.getLists(true);
  4543. },
  4544. sendReport: function sendReport(row) {
  4545. var _this3 = this;
  4546. this.$Modal.confirm({
  4547. title: this.$L('发送汇报'),
  4548. content: this.$L('你确定要发送汇报吗?'),
  4549. loading: true,
  4550. onOk: function onOk() {
  4551. $A.apiAjax({
  4552. url: 'report/template',
  4553. method: 'post',
  4554. data: {
  4555. act: 'send',
  4556. id: row.id,
  4557. type: row.type
  4558. },
  4559. error: function error() {
  4560. _this3.$Modal.remove();
  4561. alert(_this3.$L('网络繁忙,请稍后再试!'));
  4562. },
  4563. success: function success(res) {
  4564. _this3.$Modal.remove();
  4565. _this3.$set(row, 'status', '已发送');
  4566. setTimeout(function () {
  4567. if (res.ret === 1) {
  4568. _this3.$Message.success(res.msg);
  4569. } else {
  4570. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  4571. }
  4572. }, 350);
  4573. //
  4574. var msgData = {
  4575. type: 'report',
  4576. username: _this3.usrInfo.username,
  4577. userimg: _this3.usrInfo.userimg,
  4578. indate: Math.round(new Date().getTime() / 1000),
  4579. text: res.data.ccuserAgain ? _this3.$L('修改了工作报告') : _this3.$L('发送了工作报告'),
  4580. other: {
  4581. id: res.data.id,
  4582. type: res.data.type,
  4583. title: res.data.title
  4584. }
  4585. };
  4586. res.data.ccuserArray.forEach(function (username) {
  4587. if (username != msgData.username) {
  4588. $A.WSOB.sendTo('user', username, msgData, 'special');
  4589. }
  4590. });
  4591. }
  4592. });
  4593. }
  4594. });
  4595. },
  4596. deleteReport: function deleteReport(row) {
  4597. var _this4 = this;
  4598. this.$Modal.confirm({
  4599. title: this.$L('删除汇报'),
  4600. content: this.$L('你确定要删除汇报吗?'),
  4601. loading: true,
  4602. onOk: function onOk() {
  4603. $A.apiAjax({
  4604. url: 'report/template',
  4605. method: 'post',
  4606. data: {
  4607. act: 'delete',
  4608. id: row.id,
  4609. type: row.type
  4610. },
  4611. error: function error() {
  4612. _this4.$Modal.remove();
  4613. alert(_this4.$L('网络繁忙,请稍后再试!'));
  4614. },
  4615. success: function success(res) {
  4616. _this4.$Modal.remove();
  4617. _this4.lists.some(function (item, index) {
  4618. if (item.id == row.id) {
  4619. _this4.lists.splice(index, 1);
  4620. return true;
  4621. }
  4622. });
  4623. setTimeout(function () {
  4624. if (res.ret === 1) {
  4625. _this4.$Message.success(res.msg);
  4626. } else {
  4627. _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
  4628. }
  4629. }, 350);
  4630. }
  4631. });
  4632. }
  4633. });
  4634. }
  4635. }
  4636. });
  4637. /***/ }),
  4638. /***/ 744:
  4639. /***/ (function(module, exports, __webpack_require__) {
  4640. var disposed = false
  4641. function injectStyle (ssrContext) {
  4642. if (disposed) return
  4643. __webpack_require__(745)
  4644. __webpack_require__(747)
  4645. }
  4646. var normalizeComponent = __webpack_require__(4)
  4647. /* script */
  4648. var __vue_script__ = __webpack_require__(749)
  4649. /* template */
  4650. var __vue_template__ = __webpack_require__(750)
  4651. /* template functional */
  4652. var __vue_template_functional__ = false
  4653. /* styles */
  4654. var __vue_styles__ = injectStyle
  4655. /* scopeId */
  4656. var __vue_scopeId__ = "data-v-ff06058a"
  4657. /* moduleIdentifier (server only) */
  4658. var __vue_module_identifier__ = null
  4659. var Component = normalizeComponent(
  4660. __vue_script__,
  4661. __vue_template__,
  4662. __vue_template_functional__,
  4663. __vue_styles__,
  4664. __vue_scopeId__,
  4665. __vue_module_identifier__
  4666. )
  4667. Component.options.__file = "resources/assets/js/main/components/report/add.vue"
  4668. /* hot reload */
  4669. if (false) {(function () {
  4670. var hotAPI = require("vue-hot-reload-api")
  4671. hotAPI.install(require("vue"), false)
  4672. if (!hotAPI.compatible) return
  4673. module.hot.accept()
  4674. if (!module.hot.data) {
  4675. hotAPI.createRecord("data-v-ff06058a", Component.options)
  4676. } else {
  4677. hotAPI.reload("data-v-ff06058a", Component.options)
  4678. }
  4679. module.hot.dispose(function (data) {
  4680. disposed = true
  4681. })
  4682. })()}
  4683. module.exports = Component.exports
  4684. /***/ }),
  4685. /***/ 745:
  4686. /***/ (function(module, exports, __webpack_require__) {
  4687. // style-loader: Adds some css to the DOM by adding a <style> tag
  4688. // load the styles
  4689. var content = __webpack_require__(746);
  4690. if(typeof content === 'string') content = [[module.i, content, '']];
  4691. if(content.locals) module.exports = content.locals;
  4692. // add the styles to the DOM
  4693. var update = __webpack_require__(3)("1ea88f97", content, false, {});
  4694. // Hot Module Replacement
  4695. if(false) {
  4696. // When the styles change, update the <style> tags
  4697. if(!content.locals) {
  4698. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ff06058a\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./add.vue", function() {
  4699. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ff06058a\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./add.vue");
  4700. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4701. update(newContent);
  4702. });
  4703. }
  4704. // When the module is disposed, remove the <style> tags
  4705. module.hot.dispose(function() { update(); });
  4706. }
  4707. /***/ }),
  4708. /***/ 746:
  4709. /***/ (function(module, exports, __webpack_require__) {
  4710. exports = module.exports = __webpack_require__(2)(false);
  4711. // imports
  4712. // module
  4713. exports.push([module.i, "\n.report-add .add-edit .teditor-loadedstyle {\n height: 100%;\n}\n", ""]);
  4714. // exports
  4715. /***/ }),
  4716. /***/ 747:
  4717. /***/ (function(module, exports, __webpack_require__) {
  4718. // style-loader: Adds some css to the DOM by adding a <style> tag
  4719. // load the styles
  4720. var content = __webpack_require__(748);
  4721. if(typeof content === 'string') content = [[module.i, content, '']];
  4722. if(content.locals) module.exports = content.locals;
  4723. // add the styles to the DOM
  4724. var update = __webpack_require__(3)("69de7e7f", content, false, {});
  4725. // Hot Module Replacement
  4726. if(false) {
  4727. // When the styles change, update the <style> tags
  4728. if(!content.locals) {
  4729. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ff06058a\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./add.vue", function() {
  4730. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ff06058a\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./add.vue");
  4731. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4732. update(newContent);
  4733. });
  4734. }
  4735. // When the module is disposed, remove the <style> tags
  4736. module.hot.dispose(function() { update(); });
  4737. }
  4738. /***/ }),
  4739. /***/ 748:
  4740. /***/ (function(module, exports, __webpack_require__) {
  4741. exports = module.exports = __webpack_require__(2)(false);
  4742. // imports
  4743. // module
  4744. exports.push([module.i, "\n.report-add[data-v-ff06058a] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n padding: 0 24px;\n}\n.report-add .add-header[data-v-ff06058a] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-top: 22px;\n margin-bottom: 14px;\n}\n.report-add .add-header .add-title[data-v-ff06058a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding-right: 36px;\n}\n.report-add .add-edit[data-v-ff06058a] {\n width: 100%;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.report-add .add-input[data-v-ff06058a],\n .report-add .add-footer[data-v-ff06058a] {\n margin-top: 14px;\n}\n.report-add .add-prev-btn[data-v-ff06058a] {\n cursor: pointer;\n opacity: 0.9;\n margin-top: 8px;\n text-decoration: underline;\n}\n.report-add .add-prev-btn[data-v-ff06058a]:hover {\n opacity: 1;\n color: #2d8cf0;\n}\n", ""]);
  4745. // exports
  4746. /***/ }),
  4747. /***/ 749:
  4748. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4749. "use strict";
  4750. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4751. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  4752. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  4753. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TEditor__ = __webpack_require__(571);
  4754. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TEditor___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__TEditor__);
  4755. //
  4756. //
  4757. //
  4758. //
  4759. //
  4760. //
  4761. //
  4762. //
  4763. //
  4764. //
  4765. //
  4766. //
  4767. //
  4768. //
  4769. //
  4770. //
  4771. //
  4772. //
  4773. //
  4774. //
  4775. //
  4776. //
  4777. //
  4778. //
  4779. //
  4780. //
  4781. //
  4782. //
  4783. //
  4784. //
  4785. //
  4786. //
  4787. //
  4788. //
  4789. //
  4790. //
  4791. //
  4792. //
  4793. //
  4794. //
  4795. //
  4796. //
  4797. //
  4798. //
  4799. //
  4800. //
  4801. //
  4802. //
  4803. //
  4804. //
  4805. //
  4806. //
  4807. //
  4808. //
  4809. //
  4810. //
  4811. //
  4812. //
  4813. //
  4814. //
  4815. //
  4816. //
  4817. //
  4818. //
  4819. //
  4820. //
  4821. //
  4822. //
  4823. //
  4824. //
  4825. //
  4826. /**
  4827. * 新建汇报
  4828. */
  4829. /* harmony default export */ __webpack_exports__["default"] = ({
  4830. name: 'ReportAdd',
  4831. components: { TEditor: __WEBPACK_IMPORTED_MODULE_1__TEditor___default.a, DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  4832. props: {
  4833. id: {
  4834. default: 0
  4835. },
  4836. canload: {
  4837. type: Boolean,
  4838. default: true
  4839. }
  4840. },
  4841. data: function data() {
  4842. return {
  4843. loadYet: false,
  4844. loadIng: 0,
  4845. dataDetail: {
  4846. title: '',
  4847. content: '',
  4848. ccuser: '',
  4849. status: ''
  4850. },
  4851. type: '日报'
  4852. };
  4853. },
  4854. mounted: function mounted() {
  4855. if (this.canload) {
  4856. this.loadYet = true;
  4857. this.getData();
  4858. }
  4859. },
  4860. watch: {
  4861. canload: function canload(val) {
  4862. if (val && !this.loadYet) {
  4863. this.loadYet = true;
  4864. this.getData();
  4865. }
  4866. },
  4867. type: function type() {
  4868. if (this.loadYet) {
  4869. this.getData();
  4870. }
  4871. },
  4872. id: function id() {
  4873. if (this.loadYet) {
  4874. this.dataDetail = {};
  4875. this.getData();
  4876. }
  4877. }
  4878. },
  4879. methods: {
  4880. initLanguage: function initLanguage() {
  4881. this.dataDetail.content = this.$L('数据加载中.....');
  4882. },
  4883. getData: function getData() {
  4884. var _this = this;
  4885. this.loadIng++;
  4886. $A.apiAjax({
  4887. url: 'report/template',
  4888. method: 'post',
  4889. data: {
  4890. id: this.id,
  4891. type: this.type
  4892. },
  4893. complete: function complete() {
  4894. _this.loadIng--;
  4895. },
  4896. success: function success(res) {
  4897. if (res.ret === 1) {
  4898. _this.dataDetail = res.data;
  4899. }
  4900. }
  4901. });
  4902. },
  4903. getPrevCc: function getPrevCc() {
  4904. var _this2 = this;
  4905. this.loadIng++;
  4906. $A.apiAjax({
  4907. url: 'report/prevcc',
  4908. complete: function complete() {
  4909. _this2.loadIng--;
  4910. },
  4911. success: function success(res) {
  4912. if (res.ret === 1) {
  4913. _this2.dataDetail.ccuser = res.data.lists.join(',');
  4914. } else {
  4915. _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
  4916. }
  4917. }
  4918. });
  4919. },
  4920. handleSubmit: function handleSubmit() {
  4921. var _this3 = this;
  4922. var send = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  4923. this.loadIng++;
  4924. $A.apiAjax({
  4925. url: 'report/template',
  4926. method: 'post',
  4927. data: Object.assign(this.dataDetail, {
  4928. act: 'submit',
  4929. id: this.id,
  4930. type: this.type,
  4931. send: send === true ? 1 : 0
  4932. }),
  4933. complete: function complete() {
  4934. _this3.loadIng--;
  4935. },
  4936. error: function error() {
  4937. alert(_this3.$L('网络繁忙,请稍后再试!'));
  4938. },
  4939. success: function success(res) {
  4940. if (res.ret === 1) {
  4941. _this3.dataDetail = res.data;
  4942. _this3.$Message.success(res.msg);
  4943. _this3.$emit("on-success", res.data);
  4944. //
  4945. if (_this3.dataDetail.status === '已发送') {
  4946. var msgData = {
  4947. type: 'report',
  4948. username: _this3.usrInfo.username,
  4949. userimg: _this3.usrInfo.userimg,
  4950. indate: Math.round(new Date().getTime() / 1000),
  4951. text: _this3.dataDetail.ccuserAgain ? _this3.$L('修改了工作报告') : _this3.$L('发送了工作报告'),
  4952. other: {
  4953. id: _this3.dataDetail.id,
  4954. type: _this3.dataDetail.type,
  4955. title: _this3.dataDetail.title
  4956. }
  4957. };
  4958. _this3.dataDetail.ccuserArray.forEach(function (username) {
  4959. if (username != msgData.username) {
  4960. $A.WSOB.sendTo('user', username, msgData, 'special');
  4961. }
  4962. });
  4963. }
  4964. } else {
  4965. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  4966. }
  4967. }
  4968. });
  4969. }
  4970. }
  4971. });
  4972. /***/ }),
  4973. /***/ 750:
  4974. /***/ (function(module, exports, __webpack_require__) {
  4975. var render = function() {
  4976. var _vm = this
  4977. var _h = _vm.$createElement
  4978. var _c = _vm._self._c || _h
  4979. return _c("drawer-tabs-container", [
  4980. _c(
  4981. "div",
  4982. { staticClass: "report-add" },
  4983. [
  4984. _c(
  4985. "div",
  4986. { staticClass: "add-header" },
  4987. [
  4988. _c(
  4989. "div",
  4990. { staticClass: "add-title" },
  4991. [
  4992. _c("Input", {
  4993. attrs: { placeholder: _vm.$L("汇报标题") },
  4994. model: {
  4995. value: _vm.dataDetail.title,
  4996. callback: function($$v) {
  4997. _vm.$set(_vm.dataDetail, "title", $$v)
  4998. },
  4999. expression: "dataDetail.title"
  5000. }
  5001. })
  5002. ],
  5003. 1
  5004. ),
  5005. _vm._v(" "),
  5006. _c(
  5007. "ButtonGroup",
  5008. [
  5009. _c(
  5010. "Button",
  5011. {
  5012. attrs: {
  5013. disabled: _vm.id > 0,
  5014. type: "" + (_vm.type == "日报" ? "primary" : "default")
  5015. },
  5016. on: {
  5017. click: function($event) {
  5018. _vm.type = "日报"
  5019. }
  5020. }
  5021. },
  5022. [_vm._v(_vm._s(_vm.$L("日报")))]
  5023. ),
  5024. _vm._v(" "),
  5025. _c(
  5026. "Button",
  5027. {
  5028. attrs: {
  5029. disabled: _vm.id > 0,
  5030. type: "" + (_vm.type == "周报" ? "primary" : "default")
  5031. },
  5032. on: {
  5033. click: function($event) {
  5034. _vm.type = "周报"
  5035. }
  5036. }
  5037. },
  5038. [_vm._v(_vm._s(_vm.$L("周报")))]
  5039. )
  5040. ],
  5041. 1
  5042. )
  5043. ],
  5044. 1
  5045. ),
  5046. _vm._v(" "),
  5047. _c("t-editor", {
  5048. staticClass: "add-edit",
  5049. attrs: { height: "100%" },
  5050. model: {
  5051. value: _vm.dataDetail.content,
  5052. callback: function($$v) {
  5053. _vm.$set(_vm.dataDetail, "content", $$v)
  5054. },
  5055. expression: "dataDetail.content"
  5056. }
  5057. }),
  5058. _vm._v(" "),
  5059. _c(
  5060. "div",
  5061. { staticClass: "add-input" },
  5062. [
  5063. _c(
  5064. "UserInput",
  5065. {
  5066. attrs: {
  5067. nousername: _vm.usrName,
  5068. placeholder: _vm.$L("输入关键词搜索"),
  5069. multiple: ""
  5070. },
  5071. model: {
  5072. value: _vm.dataDetail.ccuser,
  5073. callback: function($$v) {
  5074. _vm.$set(_vm.dataDetail, "ccuser", $$v)
  5075. },
  5076. expression: "dataDetail.ccuser"
  5077. }
  5078. },
  5079. [
  5080. _c("span", { attrs: { slot: "prepend" }, slot: "prepend" }, [
  5081. _vm._v(_vm._s(_vm.$L("抄送人")))
  5082. ])
  5083. ]
  5084. ),
  5085. _vm._v(" "),
  5086. _c(
  5087. "div",
  5088. { staticClass: "add-prev-btn", on: { click: _vm.getPrevCc } },
  5089. [_vm._v(_vm._s(_vm.$L("使用我上次抄送的人")))]
  5090. )
  5091. ],
  5092. 1
  5093. ),
  5094. _vm._v(" "),
  5095. _c(
  5096. "div",
  5097. { staticClass: "add-footer" },
  5098. [
  5099. _c(
  5100. "Button",
  5101. {
  5102. staticStyle: { "margin-right": "6px" },
  5103. attrs: { loading: _vm.loadIng > 0, type: "primary" },
  5104. on: { click: _vm.handleSubmit }
  5105. },
  5106. [_vm._v(_vm._s(_vm.$L("保存")))]
  5107. ),
  5108. _vm._v(" "),
  5109. _vm.dataDetail.status == "已发送"
  5110. ? _c(
  5111. "Button",
  5112. {
  5113. attrs: {
  5114. loading: _vm.loadIng > 0,
  5115. type: "success",
  5116. icon: "md-checkmark-circle-outline",
  5117. ghost: ""
  5118. },
  5119. on: {
  5120. click: function($event) {
  5121. return _vm.handleSubmit(true)
  5122. }
  5123. }
  5124. },
  5125. [_vm._v(_vm._s(_vm.$L("已发送")))]
  5126. )
  5127. : _c(
  5128. "Button",
  5129. {
  5130. attrs: { loading: _vm.loadIng > 0 },
  5131. on: {
  5132. click: function($event) {
  5133. return _vm.handleSubmit(true)
  5134. }
  5135. }
  5136. },
  5137. [_vm._v(_vm._s(_vm.$L("保存并发送")))]
  5138. )
  5139. ],
  5140. 1
  5141. )
  5142. ],
  5143. 1
  5144. )
  5145. ])
  5146. }
  5147. var staticRenderFns = []
  5148. render._withStripped = true
  5149. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5150. if (false) {
  5151. module.hot.accept()
  5152. if (module.hot.data) {
  5153. require("vue-hot-reload-api") .rerender("data-v-ff06058a", module.exports)
  5154. }
  5155. }
  5156. /***/ }),
  5157. /***/ 751:
  5158. /***/ (function(module, exports, __webpack_require__) {
  5159. var render = function() {
  5160. var _vm = this
  5161. var _h = _vm.$createElement
  5162. var _c = _vm._self._c || _h
  5163. return _c(
  5164. "drawer-tabs-container",
  5165. [
  5166. _c(
  5167. "div",
  5168. { staticClass: "report-my" },
  5169. [
  5170. _c("Row", { staticClass: "sreachBox" }, [
  5171. _c("div", { staticClass: "item" }, [
  5172. _c(
  5173. "div",
  5174. { staticClass: "item-2" },
  5175. [
  5176. _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
  5177. _vm._v(_vm._s(_vm.$L("类型")))
  5178. ]),
  5179. _vm._v(" "),
  5180. _c(
  5181. "Select",
  5182. {
  5183. attrs: { placeholder: _vm.$L("全部") },
  5184. model: {
  5185. value: _vm.keys.type,
  5186. callback: function($$v) {
  5187. _vm.$set(_vm.keys, "type", $$v)
  5188. },
  5189. expression: "keys.type"
  5190. }
  5191. },
  5192. [
  5193. _c("Option", { attrs: { value: "" } }, [
  5194. _vm._v(_vm._s(_vm.$L("全部")))
  5195. ]),
  5196. _vm._v(" "),
  5197. _c("Option", { attrs: { value: "日报" } }, [
  5198. _vm._v(_vm._s(_vm.$L("日报")))
  5199. ]),
  5200. _vm._v(" "),
  5201. _c("Option", { attrs: { value: "周报" } }, [
  5202. _vm._v(_vm._s(_vm.$L("周报")))
  5203. ])
  5204. ],
  5205. 1
  5206. )
  5207. ],
  5208. 1
  5209. ),
  5210. _vm._v(" "),
  5211. _c(
  5212. "div",
  5213. { staticClass: "item-2" },
  5214. [
  5215. _c("sreachTitle", { attrs: { val: _vm.keys.indate } }, [
  5216. _vm._v(_vm._s(_vm.$L("日期")))
  5217. ]),
  5218. _vm._v(" "),
  5219. _c("Date-picker", {
  5220. attrs: {
  5221. type: "daterange",
  5222. placement: "bottom",
  5223. placeholder: _vm.$L("日期范围")
  5224. },
  5225. model: {
  5226. value: _vm.keys.indate,
  5227. callback: function($$v) {
  5228. _vm.$set(_vm.keys, "indate", $$v)
  5229. },
  5230. expression: "keys.indate"
  5231. }
  5232. })
  5233. ],
  5234. 1
  5235. )
  5236. ]),
  5237. _vm._v(" "),
  5238. _c(
  5239. "div",
  5240. { staticClass: "item item-button" },
  5241. [
  5242. _vm.$A.objImplode(_vm.keys) != ""
  5243. ? _c(
  5244. "Button",
  5245. {
  5246. attrs: { type: "text" },
  5247. on: {
  5248. click: function($event) {
  5249. return _vm.sreachTab(true)
  5250. }
  5251. }
  5252. },
  5253. [_vm._v(_vm._s(_vm.$L("取消筛选")))]
  5254. )
  5255. : _vm._e(),
  5256. _vm._v(" "),
  5257. _c(
  5258. "Button",
  5259. {
  5260. attrs: {
  5261. type: "primary",
  5262. icon: "md-search",
  5263. loading: _vm.loadIng > 0
  5264. },
  5265. on: { click: _vm.sreachTab }
  5266. },
  5267. [_vm._v(_vm._s(_vm.$L("搜索")))]
  5268. )
  5269. ],
  5270. 1
  5271. )
  5272. ]),
  5273. _vm._v(" "),
  5274. _c(
  5275. "Row",
  5276. {
  5277. staticClass: "butBox",
  5278. staticStyle: { float: "left", "margin-top": "-32px" }
  5279. },
  5280. [
  5281. _c(
  5282. "Button",
  5283. {
  5284. attrs: {
  5285. loading: _vm.loadIng > 0,
  5286. type: "primary",
  5287. icon: "md-add"
  5288. },
  5289. on: {
  5290. click: function($event) {
  5291. ;[(_vm.addDrawerId = 0), (_vm.addDrawerShow = true)]
  5292. }
  5293. }
  5294. },
  5295. [_vm._v(_vm._s(_vm.$L("新建汇报")))]
  5296. )
  5297. ],
  5298. 1
  5299. ),
  5300. _vm._v(" "),
  5301. _c("Table", {
  5302. ref: "tableRef",
  5303. staticClass: "tableFill",
  5304. attrs: {
  5305. columns: _vm.columns,
  5306. data: _vm.lists,
  5307. loading: _vm.loadIng > 0,
  5308. "no-data-text": _vm.noDataText,
  5309. stripe: ""
  5310. }
  5311. }),
  5312. _vm._v(" "),
  5313. _c("Page", {
  5314. staticClass: "pageBox",
  5315. attrs: {
  5316. total: _vm.listTotal,
  5317. current: _vm.listPage,
  5318. disabled: _vm.loadIng > 0,
  5319. "page-size-opts": [10, 20, 30, 50, 100],
  5320. placement: "top",
  5321. "show-elevator": "",
  5322. "show-sizer": "",
  5323. "show-total": "",
  5324. transfer: "",
  5325. simple: _vm.windowMax768
  5326. },
  5327. on: {
  5328. "on-change": _vm.setPage,
  5329. "on-page-size-change": _vm.setPageSize
  5330. }
  5331. })
  5332. ],
  5333. 1
  5334. ),
  5335. _vm._v(" "),
  5336. _c(
  5337. "WDrawer",
  5338. {
  5339. attrs: { maxWidth: "900" },
  5340. model: {
  5341. value: _vm.addDrawerShow,
  5342. callback: function($$v) {
  5343. _vm.addDrawerShow = $$v
  5344. },
  5345. expression: "addDrawerShow"
  5346. }
  5347. },
  5348. [
  5349. _c("report-add", {
  5350. attrs: { canload: _vm.addDrawerShow, id: _vm.addDrawerId },
  5351. on: { "on-success": _vm.addDrawerSuccess }
  5352. })
  5353. ],
  5354. 1
  5355. )
  5356. ],
  5357. 1
  5358. )
  5359. }
  5360. var staticRenderFns = []
  5361. render._withStripped = true
  5362. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5363. if (false) {
  5364. module.hot.accept()
  5365. if (module.hot.data) {
  5366. require("vue-hot-reload-api") .rerender("data-v-19afa782", module.exports)
  5367. }
  5368. }
  5369. /***/ }),
  5370. /***/ 752:
  5371. /***/ (function(module, exports, __webpack_require__) {
  5372. var disposed = false
  5373. function injectStyle (ssrContext) {
  5374. if (disposed) return
  5375. __webpack_require__(753)
  5376. }
  5377. var normalizeComponent = __webpack_require__(4)
  5378. /* script */
  5379. var __vue_script__ = __webpack_require__(755)
  5380. /* template */
  5381. var __vue_template__ = __webpack_require__(756)
  5382. /* template functional */
  5383. var __vue_template_functional__ = false
  5384. /* styles */
  5385. var __vue_styles__ = injectStyle
  5386. /* scopeId */
  5387. var __vue_scopeId__ = "data-v-8cb41506"
  5388. /* moduleIdentifier (server only) */
  5389. var __vue_module_identifier__ = null
  5390. var Component = normalizeComponent(
  5391. __vue_script__,
  5392. __vue_template__,
  5393. __vue_template_functional__,
  5394. __vue_styles__,
  5395. __vue_scopeId__,
  5396. __vue_module_identifier__
  5397. )
  5398. Component.options.__file = "resources/assets/js/main/components/report/receive.vue"
  5399. /* hot reload */
  5400. if (false) {(function () {
  5401. var hotAPI = require("vue-hot-reload-api")
  5402. hotAPI.install(require("vue"), false)
  5403. if (!hotAPI.compatible) return
  5404. module.hot.accept()
  5405. if (!module.hot.data) {
  5406. hotAPI.createRecord("data-v-8cb41506", Component.options)
  5407. } else {
  5408. hotAPI.reload("data-v-8cb41506", Component.options)
  5409. }
  5410. module.hot.dispose(function (data) {
  5411. disposed = true
  5412. })
  5413. })()}
  5414. module.exports = Component.exports
  5415. /***/ }),
  5416. /***/ 753:
  5417. /***/ (function(module, exports, __webpack_require__) {
  5418. // style-loader: Adds some css to the DOM by adding a <style> tag
  5419. // load the styles
  5420. var content = __webpack_require__(754);
  5421. if(typeof content === 'string') content = [[module.i, content, '']];
  5422. if(content.locals) module.exports = content.locals;
  5423. // add the styles to the DOM
  5424. var update = __webpack_require__(3)("8a65b1da", content, false, {});
  5425. // Hot Module Replacement
  5426. if(false) {
  5427. // When the styles change, update the <style> tags
  5428. if(!content.locals) {
  5429. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-8cb41506\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./receive.vue", function() {
  5430. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-8cb41506\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./receive.vue");
  5431. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5432. update(newContent);
  5433. });
  5434. }
  5435. // When the module is disposed, remove the <style> tags
  5436. module.hot.dispose(function() { update(); });
  5437. }
  5438. /***/ }),
  5439. /***/ 754:
  5440. /***/ (function(module, exports, __webpack_require__) {
  5441. exports = module.exports = __webpack_require__(2)(false);
  5442. // imports
  5443. // module
  5444. exports.push([module.i, "\n.report-receive[data-v-8cb41506] {\n margin: 0 12px;\n}\n.report-receive .tableFill[data-v-8cb41506] {\n margin: 12px 0 20px;\n}\n", ""]);
  5445. // exports
  5446. /***/ }),
  5447. /***/ 755:
  5448. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5449. "use strict";
  5450. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5451. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(11);
  5452. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  5453. //
  5454. //
  5455. //
  5456. //
  5457. //
  5458. //
  5459. //
  5460. //
  5461. //
  5462. //
  5463. //
  5464. //
  5465. //
  5466. //
  5467. //
  5468. //
  5469. //
  5470. //
  5471. //
  5472. //
  5473. //
  5474. //
  5475. //
  5476. //
  5477. //
  5478. //
  5479. //
  5480. //
  5481. //
  5482. //
  5483. //
  5484. //
  5485. //
  5486. //
  5487. //
  5488. //
  5489. //
  5490. //
  5491. //
  5492. //
  5493. //
  5494. //
  5495. //
  5496. //
  5497. //
  5498. //
  5499. /**
  5500. * 收到的汇报
  5501. */
  5502. /* harmony default export */ __webpack_exports__["default"] = ({
  5503. name: 'ReportReceive',
  5504. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  5505. props: {
  5506. canload: {
  5507. type: Boolean,
  5508. default: true
  5509. },
  5510. labelLists: {
  5511. type: Array
  5512. }
  5513. },
  5514. data: function data() {
  5515. return {
  5516. keys: {},
  5517. sorts: { key: '', order: '' },
  5518. loadYet: false,
  5519. loadIng: 0,
  5520. columns: [],
  5521. lists: [],
  5522. listPage: 1,
  5523. listTotal: 0,
  5524. noDataText: ""
  5525. };
  5526. },
  5527. mounted: function mounted() {
  5528. if (this.canload) {
  5529. this.loadYet = true;
  5530. this.getLists(true);
  5531. }
  5532. },
  5533. watch: {
  5534. canload: function canload(val) {
  5535. if (val && !this.loadYet) {
  5536. this.loadYet = true;
  5537. this.getLists(true);
  5538. }
  5539. }
  5540. },
  5541. methods: {
  5542. initLanguage: function initLanguage() {
  5543. var _this = this;
  5544. this.noDataText = this.$L("数据加载中.....");
  5545. this.contentText = this.$L("内容加载中.....");
  5546. this.columns = [{
  5547. "title": this.$L("标题"),
  5548. "key": 'title',
  5549. "sortable": true,
  5550. "minWidth": 120
  5551. }, {
  5552. "title": this.$L("发送人"),
  5553. "key": 'username',
  5554. "sortable": true,
  5555. "minWidth": 80,
  5556. "maxWidth": 130,
  5557. render: function render(h, params) {
  5558. return h('UserView', {
  5559. props: {
  5560. username: params.row.username
  5561. }
  5562. });
  5563. }
  5564. }, {
  5565. "title": this.$L("类型"),
  5566. "key": 'type',
  5567. "minWidth": 80,
  5568. "maxWidth": 120,
  5569. "align": 'center'
  5570. }, {
  5571. "title": this.$L("发送日期"),
  5572. "minWidth": 160,
  5573. "maxWidth": 200,
  5574. "align": 'center',
  5575. "sortable": true,
  5576. render: function render(h, params) {
  5577. return h('span', params.row.senddate ? $A.formatDate("Y-m-d H:i:s", params.row.senddate) : '-');
  5578. }
  5579. }, {
  5580. "title": " ",
  5581. "key": 'action',
  5582. "width": 70,
  5583. "align": 'center',
  5584. render: function render(h, params) {
  5585. return h('div', [h('Tooltip', {
  5586. props: { content: _this.$L('查看'), transfer: true, delay: 600 },
  5587. style: { position: 'relative' }
  5588. }, [h('Icon', {
  5589. props: { type: 'md-eye', size: 16 },
  5590. style: { margin: '0 3px', cursor: 'pointer' },
  5591. on: {
  5592. click: function click() {
  5593. _this.reportDetail(params.row.id, params.row.title);
  5594. }
  5595. }
  5596. })])]);
  5597. }
  5598. }];
  5599. },
  5600. sreachTab: function sreachTab(clear) {
  5601. if (clear === true) {
  5602. this.keys = {};
  5603. }
  5604. this.getLists(true);
  5605. },
  5606. sortChange: function sortChange(info) {
  5607. this.sorts = { key: info.key, order: info.order };
  5608. this.getLists(true);
  5609. },
  5610. setPage: function setPage(page) {
  5611. this.listPage = page;
  5612. this.getLists();
  5613. },
  5614. setPageSize: function setPageSize(size) {
  5615. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  5616. this.listPageSize = size;
  5617. this.getLists();
  5618. }
  5619. },
  5620. getLists: function getLists(resetLoad) {
  5621. var _this2 = this;
  5622. if (resetLoad === true) {
  5623. this.listPage = 1;
  5624. }
  5625. var whereData = $A.date2string($A.cloneData(this.keys));
  5626. whereData.page = Math.max(this.listPage, 1);
  5627. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  5628. whereData.sorts = $A.cloneData(this.sorts);
  5629. this.loadIng++;
  5630. this.noDataText = this.$L("数据加载中.....");
  5631. $A.apiAjax({
  5632. url: 'report/receive',
  5633. data: whereData,
  5634. complete: function complete() {
  5635. _this2.loadIng--;
  5636. },
  5637. error: function error() {
  5638. _this2.noDataText = _this2.$L("数据加载失败!");
  5639. },
  5640. success: function success(res) {
  5641. if (res.ret === 1) {
  5642. _this2.lists = res.data.lists;
  5643. _this2.listTotal = res.data.total;
  5644. _this2.noDataText = _this2.$L("没有相关的数据");
  5645. } else {
  5646. _this2.lists = [];
  5647. _this2.listTotal = 0;
  5648. _this2.noDataText = res.msg;
  5649. }
  5650. }
  5651. });
  5652. }
  5653. }
  5654. });
  5655. /***/ }),
  5656. /***/ 756:
  5657. /***/ (function(module, exports, __webpack_require__) {
  5658. var render = function() {
  5659. var _vm = this
  5660. var _h = _vm.$createElement
  5661. var _c = _vm._self._c || _h
  5662. return _c("drawer-tabs-container", [
  5663. _c(
  5664. "div",
  5665. { staticClass: "report-receive" },
  5666. [
  5667. _c("Row", { staticClass: "sreachBox" }, [
  5668. _c("div", { staticClass: "item" }, [
  5669. _c(
  5670. "div",
  5671. { staticClass: "item-3" },
  5672. [
  5673. _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
  5674. _vm._v(_vm._s(_vm.$L("发送人")))
  5675. ]),
  5676. _vm._v(" "),
  5677. _c("Input", {
  5678. attrs: { placeholder: _vm.$L("用户名") },
  5679. model: {
  5680. value: _vm.keys.username,
  5681. callback: function($$v) {
  5682. _vm.$set(_vm.keys, "username", $$v)
  5683. },
  5684. expression: "keys.username"
  5685. }
  5686. })
  5687. ],
  5688. 1
  5689. ),
  5690. _vm._v(" "),
  5691. _c(
  5692. "div",
  5693. { staticClass: "item-3" },
  5694. [
  5695. _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
  5696. _vm._v(_vm._s(_vm.$L("类型")))
  5697. ]),
  5698. _vm._v(" "),
  5699. _c(
  5700. "Select",
  5701. {
  5702. attrs: { placeholder: _vm.$L("全部") },
  5703. model: {
  5704. value: _vm.keys.type,
  5705. callback: function($$v) {
  5706. _vm.$set(_vm.keys, "type", $$v)
  5707. },
  5708. expression: "keys.type"
  5709. }
  5710. },
  5711. [
  5712. _c("Option", { attrs: { value: "" } }, [
  5713. _vm._v(_vm._s(_vm.$L("全部")))
  5714. ]),
  5715. _vm._v(" "),
  5716. _c("Option", { attrs: { value: "日报" } }, [
  5717. _vm._v(_vm._s(_vm.$L("日报")))
  5718. ]),
  5719. _vm._v(" "),
  5720. _c("Option", { attrs: { value: "周报" } }, [
  5721. _vm._v(_vm._s(_vm.$L("周报")))
  5722. ])
  5723. ],
  5724. 1
  5725. )
  5726. ],
  5727. 1
  5728. ),
  5729. _vm._v(" "),
  5730. _c(
  5731. "div",
  5732. { staticClass: "item-3" },
  5733. [
  5734. _c("sreachTitle", { attrs: { val: _vm.keys.indate } }, [
  5735. _vm._v(_vm._s(_vm.$L("日期")))
  5736. ]),
  5737. _vm._v(" "),
  5738. _c("Date-picker", {
  5739. attrs: {
  5740. type: "daterange",
  5741. placement: "bottom",
  5742. placeholder: _vm.$L("日期范围")
  5743. },
  5744. model: {
  5745. value: _vm.keys.indate,
  5746. callback: function($$v) {
  5747. _vm.$set(_vm.keys, "indate", $$v)
  5748. },
  5749. expression: "keys.indate"
  5750. }
  5751. })
  5752. ],
  5753. 1
  5754. )
  5755. ]),
  5756. _vm._v(" "),
  5757. _c(
  5758. "div",
  5759. { staticClass: "item item-button" },
  5760. [
  5761. _vm.$A.objImplode(_vm.keys) != ""
  5762. ? _c(
  5763. "Button",
  5764. {
  5765. attrs: { type: "text" },
  5766. on: {
  5767. click: function($event) {
  5768. return _vm.sreachTab(true)
  5769. }
  5770. }
  5771. },
  5772. [_vm._v(_vm._s(_vm.$L("取消筛选")))]
  5773. )
  5774. : _vm._e(),
  5775. _vm._v(" "),
  5776. _c(
  5777. "Button",
  5778. {
  5779. attrs: {
  5780. type: "primary",
  5781. icon: "md-search",
  5782. loading: _vm.loadIng > 0
  5783. },
  5784. on: { click: _vm.sreachTab }
  5785. },
  5786. [_vm._v(_vm._s(_vm.$L("搜索")))]
  5787. )
  5788. ],
  5789. 1
  5790. )
  5791. ]),
  5792. _vm._v(" "),
  5793. _c("Table", {
  5794. ref: "tableRef",
  5795. staticClass: "tableFill",
  5796. attrs: {
  5797. columns: _vm.columns,
  5798. data: _vm.lists,
  5799. loading: _vm.loadIng > 0,
  5800. "no-data-text": _vm.noDataText,
  5801. stripe: ""
  5802. },
  5803. on: { "on-sort-change": _vm.sortChange }
  5804. }),
  5805. _vm._v(" "),
  5806. _c("Page", {
  5807. staticClass: "pageBox",
  5808. attrs: {
  5809. total: _vm.listTotal,
  5810. current: _vm.listPage,
  5811. disabled: _vm.loadIng > 0,
  5812. "page-size-opts": [10, 20, 30, 50, 100],
  5813. placement: "top",
  5814. "show-elevator": "",
  5815. "show-sizer": "",
  5816. "show-total": "",
  5817. transfer: "",
  5818. simple: _vm.windowMax768
  5819. },
  5820. on: {
  5821. "on-change": _vm.setPage,
  5822. "on-page-size-change": _vm.setPageSize
  5823. }
  5824. })
  5825. ],
  5826. 1
  5827. )
  5828. ])
  5829. }
  5830. var staticRenderFns = []
  5831. render._withStripped = true
  5832. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5833. if (false) {
  5834. module.hot.accept()
  5835. if (module.hot.data) {
  5836. require("vue-hot-reload-api") .rerender("data-v-8cb41506", module.exports)
  5837. }
  5838. }
  5839. /***/ }),
  5840. /***/ 757:
  5841. /***/ (function(module, exports, __webpack_require__) {
  5842. var render = function() {
  5843. var _vm = this
  5844. var _h = _vm.$createElement
  5845. var _c = _vm._self._c || _h
  5846. return _c(
  5847. "div",
  5848. { staticClass: "w-main todo" },
  5849. [
  5850. _c("v-title", [
  5851. _vm._v(
  5852. _vm._s(_vm.$L("待办")) + "-" + _vm._s(_vm.$L("轻量级的团队在线协作"))
  5853. )
  5854. ]),
  5855. _vm._v(" "),
  5856. _c("div", { staticClass: "w-nav" }, [
  5857. _c("div", { staticClass: "nav-row" }, [
  5858. _c("div", { staticClass: "w-nav-left" }, [
  5859. _c("div", { staticClass: "page-nav-left" }, [
  5860. _c("span", [
  5861. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  5862. _vm._v(" " + _vm._s(_vm.$L("我的待办")))
  5863. ]),
  5864. _vm._v(" "),
  5865. _vm.loadIng > 0
  5866. ? _c(
  5867. "div",
  5868. { staticClass: "page-nav-loading" },
  5869. [_c("w-loading")],
  5870. 1
  5871. )
  5872. : _c("div", { staticClass: "page-nav-refresh" }, [
  5873. _c("em", { on: { click: _vm.refreshTask } }, [
  5874. _vm._v(_vm._s(_vm.$L("刷新")))
  5875. ])
  5876. ])
  5877. ])
  5878. ]),
  5879. _vm._v(" "),
  5880. _c("div", { staticClass: "w-nav-flex" }),
  5881. _vm._v(" "),
  5882. _c(
  5883. "div",
  5884. { staticClass: "w-nav-right m768-show" },
  5885. [
  5886. _c(
  5887. "Dropdown",
  5888. {
  5889. attrs: { trigger: "click", transfer: "" },
  5890. on: { "on-click": _vm.handleTodo }
  5891. },
  5892. [
  5893. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  5894. _vm._v(" "),
  5895. _c(
  5896. "DropdownMenu",
  5897. { attrs: { slot: "list" }, slot: "list" },
  5898. [
  5899. _c("DropdownItem", { attrs: { name: "calendar" } }, [
  5900. _vm._v(_vm._s(_vm.$L("待办日程")))
  5901. ]),
  5902. _vm._v(" "),
  5903. _c("DropdownItem", { attrs: { name: "complete" } }, [
  5904. _vm._v(_vm._s(_vm.$L("已完成的任务")))
  5905. ]),
  5906. _vm._v(" "),
  5907. _c("DropdownItem", { attrs: { name: "attention" } }, [
  5908. _vm._v(_vm._s(_vm.$L("我关注的任务")))
  5909. ]),
  5910. _vm._v(" "),
  5911. _c("DropdownItem", { attrs: { name: "report" } }, [
  5912. _vm._v(_vm._s(_vm.$L("周报/日报")))
  5913. ])
  5914. ],
  5915. 1
  5916. )
  5917. ],
  5918. 1
  5919. )
  5920. ],
  5921. 1
  5922. ),
  5923. _vm._v(" "),
  5924. _c("div", { staticClass: "w-nav-right m768-hide" }, [
  5925. _c(
  5926. "span",
  5927. {
  5928. staticClass: "ft hover",
  5929. on: {
  5930. click: function($event) {
  5931. return _vm.handleTodo("calendar")
  5932. }
  5933. }
  5934. },
  5935. [
  5936. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  5937. _vm._v(" " + _vm._s(_vm.$L("待办日程")))
  5938. ]
  5939. ),
  5940. _vm._v(" "),
  5941. _c(
  5942. "span",
  5943. {
  5944. staticClass: "ft hover",
  5945. on: {
  5946. click: function($event) {
  5947. return _vm.handleTodo("complete")
  5948. }
  5949. }
  5950. },
  5951. [
  5952. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  5953. _vm._v(" " + _vm._s(_vm.$L("已完成的任务")))
  5954. ]
  5955. ),
  5956. _vm._v(" "),
  5957. _c(
  5958. "span",
  5959. {
  5960. staticClass: "ft hover",
  5961. on: {
  5962. click: function($event) {
  5963. return _vm.handleTodo("attention")
  5964. }
  5965. }
  5966. },
  5967. [
  5968. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  5969. _vm._v(" " + _vm._s(_vm.$L("我关注的任务")))
  5970. ]
  5971. ),
  5972. _vm._v(" "),
  5973. _c(
  5974. "span",
  5975. {
  5976. staticClass: "ft hover",
  5977. on: {
  5978. click: function($event) {
  5979. return _vm.handleTodo("report")
  5980. }
  5981. }
  5982. },
  5983. [
  5984. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  5985. _vm._v(" " + _vm._s(_vm.$L("周报/日报")))
  5986. ]
  5987. )
  5988. ])
  5989. ])
  5990. ]),
  5991. _vm._v(" "),
  5992. _c("w-content", [
  5993. _c(
  5994. "div",
  5995. { staticClass: "todo-main" },
  5996. _vm._l(
  5997. [
  5998. ["1", "2"],
  5999. ["3", "4"]
  6000. ],
  6001. function(subs) {
  6002. return _c(
  6003. "div",
  6004. { staticClass: "todo-ul" },
  6005. _vm._l(subs, function(index) {
  6006. return _c("div", { staticClass: "todo-li" }, [
  6007. _c("div", { staticClass: "todo-card" }, [
  6008. _c(
  6009. "div",
  6010. { staticClass: "todo-card-head", class: ["p" + index] },
  6011. [
  6012. _c("i", { staticClass: "ft icon flag" }, [
  6013. _vm._v("")
  6014. ]),
  6015. _vm._v(" "),
  6016. _c("div", { staticClass: "todo-card-title" }, [
  6017. _vm._v(_vm._s(_vm.pTitle(index)))
  6018. ]),
  6019. _vm._v(" "),
  6020. _c(
  6021. "label",
  6022. {
  6023. staticClass: "todo-input-box",
  6024. class: { active: !!_vm.taskDatas[index].focus },
  6025. on: {
  6026. click: function() {
  6027. _vm.$set(_vm.taskDatas[index], "focus", true)
  6028. }
  6029. }
  6030. },
  6031. [
  6032. _c(
  6033. "div",
  6034. {
  6035. staticClass: "todo-input-ibox",
  6036. on: {
  6037. click: function($event) {
  6038. $event.stopPropagation()
  6039. }
  6040. }
  6041. },
  6042. [
  6043. _c("Input", {
  6044. staticClass: "todo-input-enter",
  6045. attrs: {
  6046. placeholder: _vm.$L(
  6047. "在这里输入事项,回车即可保存"
  6048. )
  6049. },
  6050. on: {
  6051. "on-enter": function($event) {
  6052. return _vm.addTask(index)
  6053. }
  6054. },
  6055. model: {
  6056. value: _vm.taskDatas[index].title,
  6057. callback: function($$v) {
  6058. _vm.$set(
  6059. _vm.taskDatas[index],
  6060. "title",
  6061. $$v
  6062. )
  6063. },
  6064. expression: "taskDatas[index].title"
  6065. }
  6066. }),
  6067. _vm._v(" "),
  6068. _c(
  6069. "div",
  6070. {
  6071. staticClass: "todo-input-close",
  6072. on: {
  6073. click: function() {
  6074. _vm.$set(
  6075. _vm.taskDatas[index],
  6076. "focus",
  6077. false
  6078. )
  6079. }
  6080. }
  6081. },
  6082. [
  6083. _c("i", { staticClass: "ft icon" }, [
  6084. _vm._v("")
  6085. ])
  6086. ]
  6087. )
  6088. ],
  6089. 1
  6090. ),
  6091. _vm._v(" "),
  6092. _c("div", { staticClass: "todo-input-pbox" }, [
  6093. _c(
  6094. "div",
  6095. { staticClass: "todo-input-placeholder" },
  6096. [
  6097. _vm._v(
  6098. _vm._s(
  6099. _vm.$L("点击可快速添加需要处理的事项")
  6100. )
  6101. )
  6102. ]
  6103. ),
  6104. _vm._v(" "),
  6105. _c("div", { staticClass: "todo-input-close" }, [
  6106. _c("i", { staticClass: "ft icon" }, [
  6107. _vm._v("")
  6108. ])
  6109. ])
  6110. ])
  6111. ]
  6112. )
  6113. ]
  6114. ),
  6115. _vm._v(" "),
  6116. _c(
  6117. "div",
  6118. { staticClass: "todo-card-content" },
  6119. [
  6120. _c(
  6121. "draggable",
  6122. {
  6123. staticClass: "content-ul",
  6124. attrs: {
  6125. group: "task",
  6126. draggable: ".task-draggable",
  6127. animation: 150,
  6128. disabled:
  6129. _vm.taskSortDisabled || _vm.windowMax768
  6130. },
  6131. on: {
  6132. sort: _vm.taskSortUpdate,
  6133. remove: _vm.taskSortUpdate
  6134. },
  6135. model: {
  6136. value: _vm.taskDatas[index].lists,
  6137. callback: function($$v) {
  6138. _vm.$set(_vm.taskDatas[index], "lists", $$v)
  6139. },
  6140. expression: "taskDatas[index].lists"
  6141. }
  6142. },
  6143. [
  6144. _vm._l(_vm.taskDatas[index].lists, function(
  6145. task
  6146. ) {
  6147. return _c(
  6148. "div",
  6149. {
  6150. key: task.id,
  6151. staticClass: "content-li task-draggable",
  6152. class: { complete: task.complete },
  6153. on: {
  6154. click: function($event) {
  6155. return _vm.openTaskModal(task)
  6156. }
  6157. }
  6158. },
  6159. [
  6160. _c(
  6161. "div",
  6162. { staticClass: "subtask-progress" },
  6163. [
  6164. _c("em", {
  6165. style: {
  6166. width:
  6167. _vm.subtaskProgress(task) + "%"
  6168. }
  6169. })
  6170. ]
  6171. ),
  6172. _vm._v(" "),
  6173. task.complete
  6174. ? _c("Icon", {
  6175. staticClass: "task-check",
  6176. attrs: {
  6177. type: "md-checkbox-outline"
  6178. },
  6179. on: {
  6180. click: function($event) {
  6181. $event.stopPropagation()
  6182. return _vm.taskComplete(
  6183. task,
  6184. false
  6185. )
  6186. }
  6187. }
  6188. })
  6189. : _c("Icon", {
  6190. staticClass: "task-check",
  6191. attrs: { type: "md-square-outline" },
  6192. on: {
  6193. click: function($event) {
  6194. $event.stopPropagation()
  6195. return _vm.taskComplete(
  6196. task,
  6197. true
  6198. )
  6199. }
  6200. }
  6201. }),
  6202. _vm._v(" "),
  6203. !!task.loadIng
  6204. ? _c(
  6205. "div",
  6206. { staticClass: "task-loading" },
  6207. [_c("w-loading")],
  6208. 1
  6209. )
  6210. : _vm._e(),
  6211. _vm._v(" "),
  6212. task.overdue
  6213. ? _c(
  6214. "div",
  6215. { staticClass: "task-overdue" },
  6216. [
  6217. _vm._v(
  6218. "[" + _vm._s(_vm.$L("超期")) + "]"
  6219. )
  6220. ]
  6221. )
  6222. : _vm._e(),
  6223. _vm._v(" "),
  6224. _c(
  6225. "div",
  6226. { staticClass: "task-title" },
  6227. [
  6228. _vm._v(_vm._s(task.title)),
  6229. task.desc
  6230. ? _c("Icon", {
  6231. attrs: {
  6232. type: "ios-list-box-outline"
  6233. }
  6234. })
  6235. : _vm._e()
  6236. ],
  6237. 1
  6238. )
  6239. ],
  6240. 1
  6241. )
  6242. }),
  6243. _vm._v(" "),
  6244. _vm.taskDatas[index].hasMorePages === true
  6245. ? _c(
  6246. "div",
  6247. {
  6248. staticClass: "content-li more",
  6249. on: {
  6250. click: function($event) {
  6251. return _vm.getTaskLists(index, true)
  6252. }
  6253. }
  6254. },
  6255. [_vm._v(_vm._s(_vm.$L("加载更多")))]
  6256. )
  6257. : _vm._e()
  6258. ],
  6259. 2
  6260. ),
  6261. _vm._v(" "),
  6262. _vm.taskDatas[index].lists.length === 0 &&
  6263. _vm.taskDatas[index].loadIng == 0
  6264. ? _c("div", { staticClass: "content-empty" }, [
  6265. _vm._v(
  6266. _vm._s(_vm.$L("恭喜你!已完成了所有待办"))
  6267. )
  6268. ])
  6269. : _vm._e(),
  6270. _vm._v(" "),
  6271. _vm.taskDatas[index].loadIng > 0
  6272. ? _c(
  6273. "div",
  6274. { staticClass: "content-loading" },
  6275. [_c("w-loading")],
  6276. 1
  6277. )
  6278. : _vm._e()
  6279. ],
  6280. 1
  6281. )
  6282. ])
  6283. ])
  6284. }),
  6285. 0
  6286. )
  6287. }
  6288. ),
  6289. 0
  6290. )
  6291. ]),
  6292. _vm._v(" "),
  6293. _c(
  6294. "WDrawer",
  6295. {
  6296. attrs: { maxWidth: "1000" },
  6297. model: {
  6298. value: _vm.todoDrawerShow,
  6299. callback: function($$v) {
  6300. _vm.todoDrawerShow = $$v
  6301. },
  6302. expression: "todoDrawerShow"
  6303. }
  6304. },
  6305. [
  6306. _vm.todoDrawerShow
  6307. ? _c(
  6308. "Tabs",
  6309. {
  6310. model: {
  6311. value: _vm.todoDrawerTab,
  6312. callback: function($$v) {
  6313. _vm.todoDrawerTab = $$v
  6314. },
  6315. expression: "todoDrawerTab"
  6316. }
  6317. },
  6318. [
  6319. _c(
  6320. "TabPane",
  6321. { attrs: { label: _vm.$L("待办日程"), name: "calendar" } },
  6322. [
  6323. _c("todo-calendar", {
  6324. attrs: {
  6325. canload:
  6326. _vm.todoDrawerShow &&
  6327. _vm.todoDrawerTab == "calendar"
  6328. }
  6329. })
  6330. ],
  6331. 1
  6332. ),
  6333. _vm._v(" "),
  6334. _c(
  6335. "TabPane",
  6336. {
  6337. attrs: { label: _vm.$L("已完成的任务"), name: "complete" }
  6338. },
  6339. [
  6340. _c("todo-complete", {
  6341. attrs: {
  6342. canload:
  6343. _vm.todoDrawerShow &&
  6344. _vm.todoDrawerTab == "complete"
  6345. }
  6346. })
  6347. ],
  6348. 1
  6349. ),
  6350. _vm._v(" "),
  6351. _c(
  6352. "TabPane",
  6353. {
  6354. attrs: {
  6355. label: _vm.$L("我关注的任务"),
  6356. name: "attention"
  6357. }
  6358. },
  6359. [
  6360. _c("todo-attention", {
  6361. attrs: {
  6362. canload:
  6363. _vm.todoDrawerShow &&
  6364. _vm.todoDrawerTab == "attention"
  6365. }
  6366. })
  6367. ],
  6368. 1
  6369. )
  6370. ],
  6371. 1
  6372. )
  6373. : _vm._e()
  6374. ],
  6375. 1
  6376. ),
  6377. _vm._v(" "),
  6378. _c(
  6379. "WDrawer",
  6380. {
  6381. attrs: { maxWidth: "1000" },
  6382. model: {
  6383. value: _vm.todoReportDrawerShow,
  6384. callback: function($$v) {
  6385. _vm.todoReportDrawerShow = $$v
  6386. },
  6387. expression: "todoReportDrawerShow"
  6388. }
  6389. },
  6390. [
  6391. _vm.todoReportDrawerShow
  6392. ? _c(
  6393. "Tabs",
  6394. {
  6395. model: {
  6396. value: _vm.todoReportDrawerTab,
  6397. callback: function($$v) {
  6398. _vm.todoReportDrawerTab = $$v
  6399. },
  6400. expression: "todoReportDrawerTab"
  6401. }
  6402. },
  6403. [
  6404. _c(
  6405. "TabPane",
  6406. { attrs: { label: _vm.$L("我的汇报"), name: "my" } },
  6407. [
  6408. _c("report-my", {
  6409. attrs: {
  6410. canload:
  6411. _vm.todoReportDrawerShow &&
  6412. _vm.todoReportDrawerTab == "my"
  6413. }
  6414. })
  6415. ],
  6416. 1
  6417. ),
  6418. _vm._v(" "),
  6419. _c(
  6420. "TabPane",
  6421. { attrs: { label: _vm.$L("收到的汇报"), name: "receive" } },
  6422. [
  6423. _c("report-receive", {
  6424. attrs: {
  6425. canload:
  6426. _vm.todoReportDrawerShow &&
  6427. _vm.todoReportDrawerTab == "receive"
  6428. }
  6429. })
  6430. ],
  6431. 1
  6432. )
  6433. ],
  6434. 1
  6435. )
  6436. : _vm._e()
  6437. ],
  6438. 1
  6439. )
  6440. ],
  6441. 1
  6442. )
  6443. }
  6444. var staticRenderFns = []
  6445. render._withStripped = true
  6446. module.exports = { render: render, staticRenderFns: staticRenderFns }
  6447. if (false) {
  6448. module.hot.accept()
  6449. if (module.hot.data) {
  6450. require("vue-hot-reload-api") .rerender("data-v-7ed63c05", module.exports)
  6451. }
  6452. }
  6453. /***/ })
  6454. });