12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953 |
- webpackJsonp([3,15],{
- /***/ 290:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(699)
- __webpack_require__(701)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(703)
- /* template */
- var __vue_template__ = __webpack_require__(752)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-7ed63c05"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/pages/todo.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-7ed63c05", Component.options)
- } else {
- hotAPI.reload("data-v-7ed63c05", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 307:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(308)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(310)
- /* template */
- var __vue_template__ = __webpack_require__(311)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-35be3d57"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/WContent.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-35be3d57", Component.options)
- } else {
- hotAPI.reload("data-v-35be3d57", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 308:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(309);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("5ee96958", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 309:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 310:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'WContent',
- data: function data() {
- return {
- bgid: -1
- };
- },
- mounted: function mounted() {
- this.bgid = $A.runNum(this.usrInfo.bgid);
- },
- watch: {
- usrInfo: {
- handler: function handler(info) {
- this.bgid = $A.runNum(info.bgid);
- },
- deep: true
- }
- },
- methods: {
- getBgUrl: function getBgUrl(id, thumb) {
- if (id < 0) {
- return 'none';
- }
- id = Math.max(1, parseInt(id));
- return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
- }
- }
- });
- /***/ }),
- /***/ 311:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- {
- staticClass: "w-content",
- style: "background-image:" + _vm.getBgUrl(_vm.bgid)
- },
- [_vm._t("default")],
- 2
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
- }
- }
- /***/ }),
- /***/ 332:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(333)
- __webpack_require__(335)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(337)
- /* template */
- var __vue_template__ = __webpack_require__(338)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-c6b4dc88"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/TEditor.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-c6b4dc88", Component.options)
- } else {
- hotAPI.reload("data-v-c6b4dc88", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 333:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(334);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("b8965312", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 334:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 335:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(336);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("4b0c3b6f", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 336:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 337:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ImgUpload__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ImgUpload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__ImgUpload__);
- 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; };
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TEditor',
- components: { ImgUpload: __WEBPACK_IMPORTED_MODULE_1__ImgUpload___default.a },
- props: {
- id: {
- type: String,
- default: function _default() {
- return "tinymce_" + Math.round(Math.random() * 10000);
- }
- },
- value: {
- default: ''
- },
- height: {
- default: 360
- },
- htmlClass: {
- default: '',
- type: String
- },
- plugins: {
- type: Array,
- default: function _default() {
- 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'];
- }
- },
- toolbar: {
- type: String,
- 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'
- },
- other_options: {
- type: Object,
- default: function _default() {
- return {};
- }
- },
- readonly: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- content: '',
- editor: null,
- editorT: null,
- cTinyMce: null,
- checkerTimeout: null,
- isTyping: false,
- spinShow: true,
- transfer: false,
- uploadIng: 0,
- 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'],
- actionUrl: $A.apiUrl('system/fileupload'),
- params: { token: $A.getToken() },
- maxSize: 204800
- };
- },
- mounted: function mounted() {
- this.content = this.value;
- this.init();
- },
- activated: function activated() {
- this.content = this.value;
- this.init();
- },
- deactivated: function deactivated() {
- if (this.editor !== null) {
- this.editor.destroy();
- }
- this.spinShow = true;
- $A(this.$refs.myTextarea).show();
- },
- watch: {
- value: function value(newValue) {
- if (newValue == null) {
- newValue = "";
- }
- if (!this.isTyping) {
- if (this.getEditor() !== null) {
- this.getEditor().setContent(newValue);
- } else {
- this.content = newValue;
- }
- }
- },
- readonly: function readonly(value) {
- if (this.editor !== null) {
- if (value) {
- this.editor.setMode('readonly');
- } else {
- this.editor.setMode('design');
- }
- }
- }
- },
- methods: {
- init: function init() {
- var _this = this;
- this.$nextTick(function () {
- __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default.a.init(_this.concatAssciativeArrays(_this.options(false), _this.other_options));
- });
- },
- initTransfer: function initTransfer() {
- var _this2 = this;
- this.$nextTick(function () {
- __WEBPACK_IMPORTED_MODULE_0_tinymce_tinymce___default.a.init(_this2.concatAssciativeArrays(_this2.options(true), _this2.other_options));
- });
- },
- options: function options(isFull) {
- var _this3 = this;
- return {
- selector: (isFull ? '#T_' : '#') + this.id,
- base_url: $A.serverUrl('js/build'),
- language: "zh_CN",
- toolbar: this.toolbar,
- plugins: this.plugins,
- save_onsavecallback: function save_onsavecallback(e) {
- _this3.$emit('editorSave', e);
- },
- paste_data_images: true,
- menu: {
- view: {
- title: 'View',
- items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen screenload | showcomments'
- },
- insert: {
- title: "Insert",
- items: "image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime | uploadImages browseImages | uploadFiles"
- }
- },
- 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" }],
- height: isFull ? '100%' : $A.rightExists(this.height, '%') ? this.height : $A.runNum(this.height) || 360,
- resize: !isFull,
- convert_urls: false,
- toolbar_mode: 'sliding',
- toolbar_drawer: 'floating',
- setup: function setup(editor) {
- editor.ui.registry.addMenuButton('uploadImages', {
- text: _this3.$L('图片'),
- tooltip: _this3.$L('上传/浏览 图片'),
- fetch: function fetch(callback) {
- var items = [{
- type: 'menuitem',
- text: _this3.$L('上传图片'),
- onAction: function onAction() {
- _this3.$refs.myUpload.handleClick();
- }
- }, {
- type: 'menuitem',
- text: _this3.$L('浏览图片'),
- onAction: function onAction() {
- _this3.$refs.myUpload.browsePicture();
- }
- }];
- callback(items);
- }
- });
- editor.ui.registry.addMenuItem('uploadImages', {
- text: _this3.$L('上传图片'),
- onAction: function onAction() {
- _this3.$refs.myUpload.handleClick();
- }
- });
- editor.ui.registry.addMenuItem('browseImages', {
- text: _this3.$L('浏览图片'),
- onAction: function onAction() {
- _this3.$refs.myUpload.browsePicture();
- }
- });
- editor.ui.registry.addButton('uploadFiles', {
- text: _this3.$L('文件'),
- tooltip: _this3.$L('上传文件'),
- onAction: function onAction() {
- if (_this3.handleBeforeUpload()) {
- _this3.$refs.fileUpload.handleClick();
- }
- }
- });
- editor.ui.registry.addMenuItem('uploadFiles', {
- text: _this3.$L('上传文件'),
- onAction: function onAction() {
- if (_this3.handleBeforeUpload()) {
- _this3.$refs.fileUpload.handleClick();
- }
- }
- });
- if (isFull) {
- editor.ui.registry.addButton('screenload', {
- icon: 'fullscreen',
- tooltip: _this3.$L('退出全屏'),
- onAction: function onAction() {
- _this3.closeFull();
- }
- });
- editor.ui.registry.addMenuItem('screenload', {
- text: _this3.$L('退出全屏'),
- onAction: function onAction() {
- _this3.closeFull();
- }
- });
- editor.on('Init', function (e) {
- _this3.editorT = editor;
- _this3.editorT.setContent(_this3.content);
- if (_this3.readonly) {
- _this3.editorT.setMode('readonly');
- } else {
- _this3.editorT.setMode('design');
- }
- });
- } else {
- editor.ui.registry.addButton('screenload', {
- icon: 'fullscreen',
- tooltip: _this3.$L('全屏'),
- onAction: function onAction() {
- _this3.content = editor.getContent();
- _this3.transfer = true;
- _this3.initTransfer();
- }
- });
- editor.ui.registry.addMenuItem('screenload', {
- text: _this3.$L('全屏'),
- onAction: function onAction() {
- _this3.content = editor.getContent();
- _this3.transfer = true;
- _this3.initTransfer();
- }
- });
- editor.on('Init', function (e) {
- _this3.spinShow = false;
- _this3.editor = editor;
- _this3.editor.setContent(_this3.content);
- if (_this3.readonly) {
- _this3.editor.setMode('readonly');
- } else {
- _this3.editor.setMode('design');
- }
- _this3.$emit('editorInit', _this3.editor);
- });
- editor.on('KeyUp', function (e) {
- if (_this3.editor !== null) {
- _this3.submitNewContent();
- }
- });
- editor.on('Change', function (e) {
- if (_this3.editor !== null) {
- if (_this3.getContent() !== _this3.value) {
- _this3.submitNewContent();
- }
- _this3.$emit('editorChange', e);
- }
- });
- }
- }
- };
- },
- closeFull: function closeFull() {
- this.content = this.getContent();
- this.$emit('input', this.content);
- this.transfer = false;
- if (this.editorT != null) {
- this.editorT.destroy();
- this.editorT = null;
- }
- },
- transferChange: function transferChange(visible) {
- if (!visible && this.editorT != null) {
- this.content = this.editorT.getContent();
- this.$emit('input', this.content);
- this.editorT.destroy();
- this.editorT = null;
- }
- },
- getEditor: function getEditor() {
- return this.transfer ? this.editorT : this.editor;
- },
- concatAssciativeArrays: function concatAssciativeArrays(array1, array2) {
- if (array2.length === 0) return array1;
- if (array1.length === 0) return array2;
- var dest = [];
- for (var key in array1) {
- if (array1.hasOwnProperty(key)) {
- dest[key] = array1[key];
- }
- }
- for (var _key in array2) {
- if (array2.hasOwnProperty(_key)) {
- dest[_key] = array2[_key];
- }
- }
- return dest;
- },
- submitNewContent: function submitNewContent() {
- var _this4 = this;
- this.isTyping = true;
- if (this.checkerTimeout !== null) {
- clearTimeout(this.checkerTimeout);
- }
- this.checkerTimeout = setTimeout(function () {
- _this4.isTyping = false;
- }, 300);
- this.$emit('input', this.getContent());
- },
- insertContent: function insertContent(content) {
- if (this.getEditor() !== null) {
- this.getEditor().insertContent(content);
- } else {
- this.content += content;
- }
- },
- getContent: function getContent() {
- if (this.getEditor() === null) {
- return "";
- }
- return this.getEditor().getContent();
- },
- insertImage: function insertImage(src) {
- this.insertContent('<img src="' + src + '">');
- },
- editorImage: function editorImage(lists) {
- for (var i = 0; i < lists.length; i++) {
- var item = lists[i];
- if ((typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && typeof item.url === "string") {
- this.insertImage(item.url);
- }
- }
- },
- /********************文件上传部分************************/
- handleProgress: function handleProgress() {
- //开始上传
- this.uploadIng++;
- },
- handleSuccess: function handleSuccess(res, file) {
- //上传完成
- this.uploadIng--;
- if (res.ret === 1) {
- this.insertContent('<a href="' + res.data.url + '" target="_blank">' + res.data.name + ' (' + $A.bytesToSize(res.data.size * 1024) + ')</a>');
- } else {
- this.$Modal.warning({
- title: this.$L('上传失败'),
- content: this.$L('文件 % 上传失败,%', file.name, res.msg)
- });
- }
- },
- handleError: function handleError() {
- //上传错误
- this.uploadIng--;
- },
- handleFormatError: function handleFormatError(file) {
- //上传类型错误
- this.$Modal.warning({
- title: this.$L('文件格式不正确'),
- content: this.$L('文件 % 格式不正确,仅支持上传:%', file.name, this.uploadFormat.join(','))
- });
- },
- handleMaxSize: function handleMaxSize(file) {
- //上传大小错误
- this.$Modal.warning({
- title: this.$L('超出文件大小限制'),
- content: this.$L('文件 % 太大,不能超过%。', file.name, $A.bytesToSize(this.maxSize * 1024))
- });
- },
- handleBeforeUpload: function handleBeforeUpload() {
- //上传前判断
- this.params = {
- token: $A.getToken()
- };
- return true;
- }
- }
- });
- /***/ }),
- /***/ 338:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- [
- _c(
- "div",
- {
- staticClass: "teditor-box",
- class: [_vm.spinShow ? "teditor-loadstyle" : "teditor-loadedstyle"]
- },
- [
- _c("textarea", { ref: "myTextarea", attrs: { id: _vm.id } }, [
- _vm._v(_vm._s(_vm.content))
- ]),
- _vm._v(" "),
- _vm.spinShow
- ? _c(
- "Spin",
- { attrs: { fix: "" } },
- [
- _c("Icon", {
- staticClass: "upload-control-spin-icon-load",
- attrs: { type: "ios-loading", size: "18" }
- }),
- _vm._v(" "),
- _c("div", [_vm._v(_vm._s(_vm.$L("加载组件中...")))])
- ],
- 1
- )
- : _vm._e(),
- _vm._v(" "),
- _c("ImgUpload", {
- ref: "myUpload",
- staticClass: "upload-control",
- attrs: { type: "callback", uploadIng: _vm.uploadIng, num: "50" },
- on: {
- "update:uploadIng": function($event) {
- _vm.uploadIng = $event
- },
- "update:upload-ing": function($event) {
- _vm.uploadIng = $event
- },
- "on-callback": _vm.editorImage
- }
- }),
- _vm._v(" "),
- _c("Upload", {
- ref: "fileUpload",
- staticClass: "upload-control",
- attrs: {
- name: "files",
- action: _vm.actionUrl,
- data: _vm.params,
- multiple: "",
- format: _vm.uploadFormat,
- "show-upload-list": false,
- "max-size": _vm.maxSize,
- "on-progress": _vm.handleProgress,
- "on-success": _vm.handleSuccess,
- "on-error": _vm.handleError,
- "on-format-error": _vm.handleFormatError,
- "on-exceeded-size": _vm.handleMaxSize,
- "before-upload": _vm.handleBeforeUpload
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _vm.uploadIng > 0
- ? _c(
- "Spin",
- { attrs: { fix: "" } },
- [
- _c("Icon", {
- staticClass: "upload-control-spin-icon-load",
- attrs: { type: "ios-loading" }
- }),
- _vm._v(" "),
- _c("div", [_vm._v(_vm._s(_vm.$L("正在上传文件...")))])
- ],
- 1
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "Modal",
- {
- staticClass: "teditor-transfer",
- attrs: { "footer-hide": "", fullscreen: "", transfer: "" },
- on: { "on-visible-change": _vm.transferChange },
- model: {
- value: _vm.transfer,
- callback: function($$v) {
- _vm.transfer = $$v
- },
- expression: "transfer"
- }
- },
- [
- _c(
- "div",
- { attrs: { slot: "close" }, slot: "close" },
- [
- _c("Button", { attrs: { type: "primary", size: "small" } }, [
- _vm._v(_vm._s(_vm.$L("完成")))
- ])
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "teditor-transfer-body" }, [
- _c("textarea", { attrs: { id: "T_" + _vm.id } }, [
- _vm._v(_vm._s(_vm.content))
- ])
- ]),
- _vm._v(" "),
- _vm.uploadIng > 0
- ? _c(
- "Spin",
- { attrs: { fix: "" } },
- [
- _c("Icon", {
- staticClass: "upload-control-spin-icon-load",
- attrs: { type: "ios-loading" }
- }),
- _vm._v(" "),
- _c("div", [_vm._v(_vm._s(_vm.$L("正在上传文件...")))])
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-c6b4dc88", module.exports)
- }
- }
- /***/ }),
- /***/ 435:
- /***/ (function(module, exports) {
- var shortMonth = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
- var defMonthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- var dateFunc = {
- getDuration: function getDuration(date) {
- // how many days of this month
- var dt = new Date(date);
- var month = dt.getMonth();
- dt.setMonth(dt.getMonth() + 1);
- dt.setDate(0);
- return dt.getDate();
- },
- changeDay: function changeDay(date, num) {
- var dt = new Date(date);
- return new Date(dt.setDate(dt.getDate() + num));
- },
- getStartDate: function getStartDate(date) {
- // return first day of this month
- // console.log(new Date(date.getFullYear(), date.getMonth(), 1,0,0))
- return new Date(date.getFullYear(), date.getMonth(), 1);
- },
- getEndDate: function getEndDate(date) {
- // get last day of this month
- var dt = new Date(date.getFullYear(), date.getMonth() + 1, 1, 0, 0); // 1st day of next month
- return new Date(dt.setDate(dt.getDate() - 1)); // last day of this month
- },
- // 获取当前周日期数组
- getDates: function getDates(date) {
- var new_Date = date;
- var timesStamp = new Date(new_Date.getFullYear(), new_Date.getMonth(), new_Date.getDate(), 0, 0, 0).getTime();
- // let timesStamp = new_Date.getTime();
- var currenDay = new_Date.getDay();
- var dates = [];
- for (var i = 0; i < 7; i++) {
- dates.push(new Date(timesStamp + 24 * 60 * 60 * 1000 * (i - (currenDay + 6) % 7)));
- }
- return dates;
- },
- format: function format(date, _format, monthNames) {
- monthNames = monthNames || defMonthNames;
- if (typeof date === 'string') {
- date = new Date(date.replace(/-/g, '/'));
- } else {
- date = new Date(date);
- }
- var map = {
- 'M': date.getMonth() + 1,
- 'd': date.getDate(),
- 'h': date.getHours(),
- 'm': date.getMinutes(),
- 's': date.getSeconds(),
- 'q': Math.floor((date.getMonth() + 3) / 3),
- 'S': date.getMilliseconds()
- };
- _format = _format.replace(/([yMdhmsqS])+/g, function (all, t) {
- var v = map[t];
- if (v !== undefined) {
- if (all === 'MMMM') {
- return monthNames[v - 1];
- }
- if (all === 'MMM') {
- return shortMonth[v - 1];
- }
- if (all.length > 1) {
- v = '0' + v;
- v = v.substr(v.length - 2);
- }
- return v;
- } else if (t === 'y') {
- return String(date.getFullYear()).substr(4 - all.length);
- }
- return all;
- });
- return _format;
- }
- };
- module.exports = dateFunc;
- /***/ }),
- /***/ 436:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
- /* harmony default export */ __webpack_exports__["a"] = (new __WEBPACK_IMPORTED_MODULE_0_vue___default.a());
- /***/ }),
- /***/ 699:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(700);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("44211f78", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 700:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.todo-input-enter .ivu-input {\n border: 0;\n background-color: rgba(255, 255, 255, 0.9);\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 701:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(702);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("31a3f57c", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 702:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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 .task-title-time[data-v-7ed63c05] {\n display: inline-block;\n float: right;\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", ""]);
- // exports
- /***/ }),
- /***/ 703:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(51);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent__ = __webpack_require__(307);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_WContent__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar__ = __webpack_require__(704);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_project_todo_calendar__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete__ = __webpack_require__(725);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_todo_complete__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention__ = __webpack_require__(730);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_todo_attention__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mixins_task__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_report_my__ = __webpack_require__(735);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_report_my___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_report_my__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_report_receive__ = __webpack_require__(747);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_report_receive___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_report_receive__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer__ = __webpack_require__(49);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- components: {
- WDrawer: __WEBPACK_IMPORTED_MODULE_8__components_iview_WDrawer___default.a,
- ReportReceive: __WEBPACK_IMPORTED_MODULE_7__components_report_receive___default.a,
- 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 },
- mixins: [__WEBPACK_IMPORTED_MODULE_5__mixins_task__["a" /* default */]],
- data: function data() {
- return {
- loadIng: 0,
- taskDatas: {
- "1": { lists: [], hasMorePages: false },
- "2": { lists: [], hasMorePages: false },
- "3": { lists: [], hasMorePages: false },
- "4": { lists: [], hasMorePages: false }
- },
- taskSortData: '',
- taskSortDisabled: false,
- todoDrawerShow: false,
- todoDrawerTab: 'calendar',
- todoReportDrawerShow: false,
- todoReportDrawerTab: 'my'
- };
- },
- mounted: function mounted() {
- var _this = this;
- if ($A.getToken() === false) {
- window.location.replace($A.webUrl());
- return;
- }
- this.refreshTask();
- //
- $A.setOnTaskInfoListener('pages/todo', function (act, detail) {
- if (detail.username != _this.usrName) {
- var _loop = function _loop(level) {
- _this.taskDatas[level].lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.taskDatas[level].lists.splice(i, 1);
- _this.taskSortData = _this.getTaskSort();
- return true;
- }
- });
- };
- for (var level in _this.taskDatas) {
- _loop(level);
- }
- return;
- }
- //特殊事件(非操作任务的)
- switch (act) {
- case 'deleteproject': // 删除项目
- case 'deletelabel':
- // 删除分类
- _this.refreshTask();
- return;
- case 'addlabel': // 添加分类
- case "labelsort": // 调整分类排序
- case "tasksort":
- // 调整任务排序
- return;
- }
- //
- var _loop2 = function _loop2(level) {
- _this.taskDatas[level].lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.taskDatas[level].lists.splice(i, 1, detail);
- return true;
- }
- });
- };
- for (var level in _this.taskDatas) {
- _loop2(level);
- }
- //
- var addOrDelete = function addOrDelete(isAdd) {
- if (isAdd) {
- for (var level in _this.taskDatas) {
- if (level == detail.level) {
- var index = _this.taskDatas[level].lists.length;
- _this.taskDatas[level].lists.some(function (task, i) {
- if (detail.userorder > task.userorder || detail.userorder == task.userorder && detail.id > task.id) {
- index = i;
- return true;
- }
- });
- _this.taskDatas[level].lists.splice(index, 0, detail);
- }
- }
- } else {
- var _loop3 = function _loop3(_level) {
- _this.taskDatas[_level].lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.taskDatas[_level].lists.splice(i, 1);
- return true;
- }
- });
- };
- for (var _level in _this.taskDatas) {
- _loop3(_level);
- }
- }
- _this.taskSortData = _this.getTaskSort();
- };
- //
- switch (act) {
- case "title": // 标题
- case "desc": // 描述
- case "plannedtime": // 设置计划时间
- case "unplannedtime": // 取消计划时间
- case "complete": // 标记完成
- case "unfinished": // 标记未完成
- case "comment":
- // 评论
- // 这些都不用处理
- break;
- case "level":
- var _loop4 = function _loop4(level) {
- _this.taskDatas[level].lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.taskDatas[level].lists.splice(i, 1);
- return true;
- }
- });
- if (level == detail.level) {
- var index = _this.taskDatas[level].lists.length;
- _this.taskDatas[level].lists.some(function (task, i) {
- if (detail.userorder > task.userorder || detail.userorder == task.userorder && detail.id > task.id) {
- index = i;
- return true;
- }
- });
- _this.taskDatas[level].lists.splice(index, 0, detail);
- }
- };
- // 优先级
- for (var level in _this.taskDatas) {
- _loop4(level);
- }
- _this.taskSortData = _this.getTaskSort();
- break;
- case "create": // 创建任务
- case "username":
- // 负责人
- addOrDelete(detail.username == _this.usrName);
- break;
- case "delete": // 删除任务
- case "archived":
- // 归档
- addOrDelete(false);
- break;
- case "unarchived":
- // 取消归档
- addOrDelete(true);
- break;
- }
- }, true);
- },
- deactivated: function deactivated() {
- this.todoDrawerShow = false;
- this.todoReportDrawerShow = false;
- },
- computed: {},
- watch: {
- usrName: function usrName() {
- this.usrLogin && this.refreshTask();
- }
- },
- methods: {
- pTitle: function pTitle(p) {
- switch (p) {
- case "1":
- return this.$L("重要且紧急");
- case "2":
- return this.$L("重要不紧急");
- case "3":
- return this.$L("紧急不重要");
- case "4":
- return this.$L("不重要不紧急");
- }
- },
- refreshTask: function refreshTask() {
- this.taskDatas = {
- "1": { lists: [], hasMorePages: false },
- "2": { lists: [], hasMorePages: false },
- "3": { lists: [], hasMorePages: false },
- "4": { lists: [], hasMorePages: false }
- };
- for (var i = 1; i <= 4; i++) {
- this.getTaskLists(i.toString());
- }
- },
- getTaskLists: function getTaskLists(index, isNext) {
- var _this2 = this;
- var withNextNum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
- var taskData = this.taskDatas[index];
- var currentPage = 1;
- var pagesize = 20;
- var withNextPage = false;
- //
- if (isNext === true) {
- if (taskData.hasMorePages !== true) {
- return;
- }
- currentPage = Math.max(1, $A.runNum(taskData['currentPage']));
- var tempLists = this.taskDatas[index].lists;
- if (tempLists.length >= currentPage * pagesize) {
- currentPage++;
- } else {
- withNextPage = true;
- }
- withNextNum = $A.runNum(withNextNum);
- }
- this.$set(taskData, 'hasMorePages', false);
- this.$set(taskData, 'loadIng', $A.runNum(taskData.loadIng) + 1);
- this.taskSortDisabled = true;
- this.loadIng++;
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- level: index,
- sorts: { key: 'userorder', order: 'desc' },
- page: currentPage,
- pagesize: pagesize
- },
- complete: function complete() {
- _this2.loadIng--;
- _this2.taskSortDisabled = false;
- _this2.$set(taskData, 'loadIng', $A.runNum(taskData.loadIng) - 1);
- },
- success: function success(res) {
- if (res.ret === 1) {
- var inLists = void 0;
- res.data.lists.forEach(function (data) {
- inLists = false;
- taskData.lists.some(function (item, i) {
- if (item.id == data.id) {
- taskData.lists.splice(i, 1, data);
- return inLists = true;
- }
- });
- if (!inLists) {
- taskData.lists.push(data);
- }
- });
- _this2.taskSortData = _this2.getTaskSort();
- _this2.$set(taskData, 'currentPage', res.data.currentPage);
- _this2.$set(taskData, 'hasMorePages', res.data.hasMorePages);
- if (res.data.currentPage && withNextPage && withNextNum < 5) {
- _this2.getTaskLists(index, true, withNextNum + 1);
- }
- } else {
- _this2.$set(taskData, 'lists', []);
- _this2.$set(taskData, 'hasMorePages', false);
- }
- }
- });
- },
- addTask: function addTask(index) {
- var _this3 = this;
- var taskData = this.taskDatas[index];
- var title = $A.trim(taskData.title);
- if ($A.count(title) == 0) {
- return;
- }
- this.$set(taskData, 'focus', false);
- this.$set(taskData, 'title', '');
- //
- var tempId = $A.randomString(16);
- taskData.lists.unshift({
- id: tempId,
- title: title,
- loadIng: true
- });
- this.taskSortDisabled = true;
- $A.apiAjax({
- url: 'project/task/add',
- data: {
- title: title,
- level: index
- },
- complete: function complete() {
- _this3.taskSortDisabled = false;
- },
- error: function error() {
- taskData.lists.some(function (item, i) {
- if (item.id == tempId) {
- taskData.lists.splice(i, 1);
- return true;
- }
- });
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.$Message.success(res.msg);
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- taskData.lists.some(function (item, i) {
- if (item.id == tempId) {
- if (res.ret === 1) {
- taskData.lists.splice(i, 1, res.data);
- } else {
- taskData.lists.splice(i, 1);
- }
- return true;
- }
- });
- _this3.taskSortData = _this3.getTaskSort();
- }
- });
- },
- getTaskSort: function getTaskSort() {
- var sortData = "",
- taskData = "";
- for (var level in this.taskDatas) {
- taskData = "";
- this.taskDatas[level].lists.forEach(function (task) {
- if (taskData) taskData += "-";
- taskData += task.id;
- });
- if (sortData) sortData += ";";
- sortData += level + ":" + taskData;
- }
- return sortData;
- },
- handleTodo: function handleTodo(event) {
- switch (event) {
- case 'calendar':
- case 'complete':
- case 'attention':
- {
- this.todoDrawerShow = true;
- this.todoDrawerTab = event;
- break;
- }
- case 'report':
- {
- this.todoReportDrawerShow = true;
- break;
- }
- }
- },
- taskSortUpdate: function taskSortUpdate() {
- var _this4 = this;
- var oldSort = this.taskSortData;
- var newSort = this.getTaskSort();
- if (oldSort == newSort) {
- return;
- }
- this.taskSortData = newSort;
- this.taskSortDisabled = true;
- $A.apiAjax({
- url: 'project/sort/todo',
- data: {
- oldsort: oldSort,
- newsort: newSort
- },
- complete: function complete() {
- _this4.taskSortDisabled = false;
- },
- error: function error() {
- _this4.refreshTask();
- alert(_this4.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this4.$Message.success(res.msg);
- } else {
- _this4.refreshTask();
- _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- subtaskProgress: function subtaskProgress(task) {
- var subtask = task.subtask,
- complete = task.complete;
- if (!subtask || subtask.length === 0) {
- return complete ? 100 : 0;
- }
- var completeLists = subtask.filter(function (item) {
- return item.status == 'complete';
- });
- return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
- },
- openTaskModal: function openTaskModal(taskDetail) {
- this.taskDetail(taskDetail);
- }
- }
- });
- /***/ }),
- /***/ 704:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(705)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(707)
- /* template */
- var __vue_template__ = __webpack_require__(724)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-0963e7e8"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/todo/calendar.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-0963e7e8", Component.options)
- } else {
- hotAPI.reload("data-v-0963e7e8", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 705:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(706);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("5bf3193e", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 706:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "", ""]);
- // exports
- /***/ }),
- /***/ 707:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar__ = __webpack_require__(708);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 待办日程
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TodoCalendar',
- components: { FullCalendar: __WEBPACK_IMPORTED_MODULE_1__FullCalendar_FullCalendar___default.a, DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {},
- data: function data() {
- return {
- loadIng: 0,
- lang: 'en',
- lists: [],
- startdate: '',
- enddate: ''
- };
- },
- created: function created() {
- this.lang = this.getLanguage() || 'en';
- },
- mounted: function mounted() {
- var _this = this;
- $A.setOnTaskInfoListener('components/project/todo/calendar', function (act, detail) {
- if (detail.username != _this.usrName) {
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- return;
- }
- //
- detail = _this.formatTaskData(detail);
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
- //
- switch (act) {
- case "username": // 负责人
- case "delete": // 删除任务
- case "archived":
- // 归档
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- break;
- case "unarchived":
- // 取消归档
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- }
- });
- },
- methods: {
- clickEvent: function clickEvent(event) {
- this.taskDetail(event.id);
- },
- changeDateRange: function changeDateRange(startdate, enddate) {
- this.startdate = startdate;
- this.enddate = enddate;
- this.getLists(1);
- },
- getLists: function getLists(page) {
- var _this2 = this;
- this.lists = [];
- this.loadIng++;
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- startdate: this.startdate,
- enddate: this.enddate,
- page: page,
- pagesize: 100
- },
- complete: function complete() {
- _this2.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- var inLists = void 0,
- data = void 0;
- res.data.lists.forEach(function (temp) {
- data = _this2.formatTaskData(temp);
- inLists = false;
- _this2.lists.some(function (item, i) {
- if (item.id == data.id) {
- _this2.lists.splice(i, 1, data);
- return inLists = true;
- }
- });
- if (!inLists) {
- _this2.lists.push(data);
- }
- });
- if (res.data.hasMorePages === true) {
- _this2.getLists(res.data.currentPage + 1);
- }
- }
- }
- });
- },
- formatTaskData: function formatTaskData(taskData) {
- var title = taskData.title;
- var startdate = taskData.startdate || taskData.indate;
- var enddate = taskData.enddate || taskData.indate;
- if (startdate != enddate) {
- var ymd1 = $A.formatDate('Y-m-d', startdate);
- var ymd2 = $A.formatDate('Y-m-d', enddate);
- var time = ymd1 + "~" + ymd2;
- if (ymd1 == ymd2) {
- time = $A.formatDate('H:i', startdate) + "~" + $A.formatDate('H:i', enddate);
- } else if (ymd1.substring(0, 4) == ymd2.substring(0, 4)) {
- time = $A.formatDate('m-d', startdate) + "~" + $A.formatDate('m-d', enddate);
- }
- title = time + " " + title;
- } else {
- title = $A.formatDate('H:i', startdate) + " " + title;
- }
- //
- if (taskData.complete) {
- title = '<span style="text-decoration:line-through">' + title + '</span>';
- }
- var color = '#ffffff';
- var backgroundColor = '#2d8cf0';
- if (taskData.level === 1) {
- backgroundColor = '#ed4014';
- } else if (taskData.level === 2) {
- backgroundColor = '#f90';
- } else if (taskData.level === 3) {
- backgroundColor = '#2db7f5';
- } else if (taskData.level === 4) {
- backgroundColor = '#19be6b';
- }
- var data = {
- "id": taskData.id,
- "start": $A.formatDate('Y-m-d H:i:s', startdate),
- "end": $A.formatDate('Y-m-d H:i:s', enddate),
- "title": title,
- "color": color,
- "backgroundColor": backgroundColor,
- "selectedColor": backgroundColor,
- "name": taskData.nickname || taskData.username
- };
- if (this.isShowImg(taskData.userimg)) {
- data.avatar = taskData.userimg;
- }
- return data;
- },
- isShowImg: function isShowImg(url) {
- return !!(url && !$A.rightExists(url, 'images/other/avatar.png'));
- }
- }
- });
- /***/ }),
- /***/ 708:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(709)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(711)
- /* template */
- var __vue_template__ = __webpack_require__(723)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = null
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/FullCalendar/FullCalendar.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-2e96a02c", Component.options)
- } else {
- hotAPI.reload("data-v-2e96a02c", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 709:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(710);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("43d9d870", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 710:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 711:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__ = __webpack_require__(712);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_body__ = __webpack_require__(713);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_body___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_body__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_header__ = __webpack_require__(718);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_header___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_header__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: "FullCalendar",
- components: {
- 'fc-body': __WEBPACK_IMPORTED_MODULE_1__components_body___default.a,
- 'fc-header': __WEBPACK_IMPORTED_MODULE_2__components_header___default.a
- },
- props: {
- events: {
- type: Array,
- default: []
- },
- lang: {
- type: String,
- default: 'en'
- },
- firstDay: {
- type: Number | String,
- validator: function validator(val) {
- var res = parseInt(val);
- return res >= 0 && res <= 6;
- },
- default: 0
- },
- titleFormat: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].titleFormat;
- }
- },
- monthNames: {
- type: Array,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].monthNames;
- }
- },
- weekNames: {
- type: Array,
- default: function _default() {
- var arr = __WEBPACK_IMPORTED_MODULE_0__dataMap_langSets__["a" /* default */][this.lang].weekNames;
- return arr.slice(this.firstDay).concat(arr.slice(0, this.firstDay));
- }
- },
- loading: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- tableType: 'week',
- weekDays: [],
- currentDate: new Date()
- };
- },
- methods: {
- changeDateRange: function changeDateRange(start, end, currentStart, current, weekDays) {
- this.currentDate = current;
- this.weekDays = weekDays;
- this.$emit('change', start, end, currentStart, weekDays);
- },
- emitEventClick: function emitEventClick(event, jsEvent) {
- this.$emit('eventClick', event, jsEvent);
- },
- emitDayClick: function emitDayClick(day, jsEvent) {
- this.$emit('dayClick', day, jsEvent);
- },
- emitMoreClick: function emitMoreClick(day, events, jsEvent) {
- this.$emit('moreClick', day, event, jsEvent);
- },
- changeType: function changeType(type) {
- this.tableType = type;
- this.$emit('changeType', type);
- }
- }
- });
- /***/ }),
- /***/ 712:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony default export */ __webpack_exports__["a"] = ({
- en: {
- weekNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
- titleFormat: 'MMMM yyyy'
- },
- zh: {
- weekNames: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
- monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- titleFormat: 'yyyy年MM月'
- },
- fr: {
- weekNames: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
- monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
- titleFormat: 'MMMM yyyy'
- }
- });
- /***/ }),
- /***/ 713:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(714)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(716)
- /* template */
- var __vue_template__ = __webpack_require__(717)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = null
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/FullCalendar/components/body.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-1651db2e", Component.options)
- } else {
- hotAPI.reload("data-v-1651db2e", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 714:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(715);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("7c888f54", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 715:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 716:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc__ = __webpack_require__(435);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__dateFunc__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bus__ = __webpack_require__(436);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- props: {
- currentDate: {},
- events: {
- type: Array
- },
- weekNames: {
- type: Array,
- default: []
- },
- monthNames: {},
- firstDay: {},
- tableType: '',
- weekDays: {
- type: Array,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getDates(new Date());
- }
- },
- isLimit: {
- type: Boolean,
- default: false
- },
- loading: {
- type: Boolean,
- default: true
- }
- },
- created: function created() {
- var _this = this;
- document.addEventListener('click', function (e) {
- _this.showCard = -1;
- });
- // 监听header组件事件
- __WEBPACK_IMPORTED_MODULE_1__bus__["a" /* default */].$on('changeWeekDays', function (res) {});
- //
- this.initLanguage();
- },
- data: function data() {
- return {
- // weekNames : DAY_NAMES,
- weekMask: [1, 2, 3, 4, 5, 6, 7],
- // events : [],
- eventLimit: 18,
- showMore: false,
- morePos: {
- top: 0,
- left: 0
- },
- selectDay: {},
- timeDivide: [],
- showCard: -1,
- cardLeft: 0,
- cardRight: 0
- };
- },
- watch: {
- // events(val){
- // this.getCalendar()
- // },
- currentDate: function currentDate() {
- this.getCalendar();
- }
- },
- computed: {
- currentDates: function currentDates() {
- return this.getCalendar();
- },
- weekDate: function weekDate() {
- return this.getWeekDate();
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- this.timeDivide = [{
- start: 0,
- end: 12,
- label: this.$L('上午')
- }, {
- start: 12,
- end: 18,
- label: this.$L('下午')
- }, {
- start: 18,
- end: 23,
- label: this.$L('晚上')
- }];
- },
- isBegin: function isBegin(event, date, index) {
- var st = new Date(event.start);
- if (index == 0 || st.toDateString() == date.toDateString()) {
- return event.title;
- }
- return ' ';
- },
- moreTitle: function moreTitle(date) {
- var dt = new Date(date);
- return this.weekNames[dt.getDay()] + ', ' + this.monthNames[dt.getMonth()] + dt.getDate();
- },
- classNames: function classNames(cssClass) {
- if (!cssClass) return '';
- // string
- if (typeof cssClass == 'string') return cssClass;
- // Array
- if (Array.isArray(cssClass)) return cssClass.join(' ');
- // else
- return '';
- },
- getCalendar: function getCalendar() {
- // calculate 2d-array of each month
- // first day of this month
- var now = new Date(); // today
- var current = new Date(this.currentDate);
- var startDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(current); // 1st day of this month
- var curWeekDay = startDate.getDay();
- // begin date of this table may be some day of last month
- var diff = parseInt(this.firstDay) - curWeekDay + 1;
- diff = diff > 0 ? diff - 7 : diff;
- startDate.setDate(startDate.getDate() + diff);
- var calendar = [];
- for (var perWeek = 0; perWeek < 6; perWeek++) {
- var week = [];
- for (var perDay = 0; perDay < 7; perDay++) {
- // console.log(startDate)
- week.push({
- monthDay: startDate.getDate(),
- isToday: now.toDateString() == startDate.toDateString(),
- isCurMonth: startDate.getMonth() == current.getMonth(),
- weekDay: perDay,
- date: new Date(startDate),
- events: this.slotEvents(new Date(startDate))
- });
- startDate.setDate(startDate.getDate() + 1);
- }
- calendar.push(week);
- }
- return calendar;
- },
- slotEvents: function slotEvents(date) {
- // console.log(date)
- var thisDayEvents = [];
- this.events.filter(function (event) {
- var day = new Date(event.start);
- if (date.toLocaleDateString() === day.toLocaleDateString()) {
- thisDayEvents.push(event);
- }
- });
- this.judgeTime(thisDayEvents);
- return thisDayEvents;
- },
- // 获取周视图的天元素格式化
- getWeekDate: function getWeekDate() {
- var _this2 = this;
- var newWeekDays = this.weekDays;
- newWeekDays.forEach(function (e, index) {
- e.showDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(e, 'MM-dd');
- e.date = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(e, 'yyyy-MM-dd');
- e.isToday = new Date().toDateString() == e.toDateString();
- e.events = _this2.slotTimeEvents(e); // 整理事件集合 (拿事件去比较时间,分发事件到时间插槽内)
- });
- return newWeekDays;
- },
- // 发现该时间段所有的事件
- slotTimeEvents: function slotTimeEvents(date) {
- var thisDayEvents = this.events;
- thisDayEvents.filter(function (event) {
- var day = new Date(event.start);
- return date.toLocaleDateString() == day.toLocaleDateString();
- });
- this.judgeTime(thisDayEvents);
- return thisDayEvents;
- },
- judgeTime: function judgeTime(arr) {
- var _this3 = this;
- arr.forEach(function (event) {
- var day = new Date(event.start);
- // 加上时间戳后判断时间段
- var hour = day.getHours();
- var week = day.getDay();
- week == 0 ? week = 7 : '';
- if (_this3.timeDivide[0].start < hour < _this3.timeDivide[0].end) {
- event.time = 0;
- } else if (_this3.timeDivide[1].start < hour < _this3.timeDivide[1].end) {
- event.time = 1;
- } else if (_this3.timeDivide[2].start < hour < _this3.timeDivide[2].end) {
- event.time = 2;
- }
- event.weekDay = _this3.weekNames[Number(week) - 1];
- event.weekDayIndex = week;
- });
- },
- isTheday: function isTheday(day1, day2) {
- return new Date(day1).toDateString() === new Date(day2).toDateString();
- },
- isStart: function isStart(eventDate, date) {
- var st = new Date(eventDate);
- return st.toDateString() == date.toDateString();
- },
- isEnd: function isEnd(eventDate, date) {
- var ed = new Date(eventDate);
- return ed.toDateString() == date.toDateString();
- },
- isInTime: function isInTime(time, date) {
- var hour = new Date(date).getHours();
- return time.start <= hour && hour < time.end;
- },
- selectThisDay: function selectThisDay(day, jsEvent) {
- this.selectDay = day;
- this.showMore = true;
- this.morePos = this.computePos(event.target);
- this.morePos.top -= 100;
- var events = day.events.filter(function (item) {
- return item.isShow == true;
- });
- this.$emit('moreclick', day.date, events, jsEvent);
- },
- computePos: function computePos(target) {
- var eventRect = target.getBoundingClientRect();
- var pageRect = this.$refs.dates.getBoundingClientRect();
- return {
- left: eventRect.left - pageRect.left,
- top: eventRect.top + eventRect.height - pageRect.top
- };
- },
- dayClick: function dayClick(day, jsEvent) {
- // console.log('dayClick')
- // this.$emit('dayclick', day, jsEvent)
- },
- eventClick: function eventClick(event, jsEvent) {
- // console.log(event,jsEvent, 'evenvet')
- this.showCard = event.id;
- jsEvent.stopPropagation();
- // let pos = this.computePos(jsEvent.target)
- this.$emit('eventclick', event, jsEvent);
- var x = jsEvent.x;
- var y = jsEvent.y;
- // console.log(jsEvent)
- // 判断出左右中三边界的取值范围进而分配class
- if (x > 400 && x < window.innerWidth - 200) {
- this.cardClass = "center-card";
- } else if (x <= 400) {
- this.cardClass = "left-card";
- } else {
- this.cardClass = "right-card";
- }
- if (y > window.innerHeight - 300) {
- this.cardClass += ' ' + 'bottom-card';
- }
- },
- isEmojiPrefix: function isEmojiPrefix(text) {
- return (/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(text)
- );
- },
- iconStyle: function iconStyle(name) {
- var style = {
- backgroundColor: '#A0D7F1'
- };
- if (name) {
- var bgColor = '';
- for (var i = 0; i < name.length; i++) {
- bgColor += parseInt(name[i].charCodeAt(0), 10).toString(16);
- }
- style.backgroundColor = '#' + bgColor.slice(1, 4);
- }
- return style;
- }
- }
- });
- /***/ }),
- /***/ 717:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "full-calendar-body" }, [
- _c("div", { staticClass: "right-body" }, [
- _c(
- "div",
- { staticClass: "weeks" },
- [
- _vm.tableType == "week"
- ? _c("div", {
- staticClass: "blank",
- staticStyle: { width: "60px" }
- })
- : _vm._e(),
- _vm._v(" "),
- _vm._l(_vm.weekNames, function(week, index) {
- return _c("strong", { staticClass: "week" }, [
- _vm._v(
- "\n " + _vm._s(week) + "\n "
- ),
- _vm.tableType == "week" && _vm.weekDate.length
- ? _c("span", [
- _vm._v("(" + _vm._s(_vm.weekDate[index].showDate) + ")")
- ])
- : _vm._e()
- ])
- })
- ],
- 2
- ),
- _vm._v(" "),
- _vm.tableType == "month"
- ? _c(
- "div",
- { ref: "dates", staticClass: "dates" },
- [
- _vm.loading ? _c("Spin", { attrs: { fix: "" } }) : _vm._e(),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "dates-events" },
- _vm._l(_vm.currentDates, function(week) {
- return week[0].isCurMonth || week[week.length - 1].isCurMonth
- ? _c(
- "div",
- { staticClass: "events-week" },
- _vm._l(week, function(day) {
- return _c(
- "div",
- {
- staticClass: "events-day",
- class: {
- today: day.isToday,
- "not-cur-month": !day.isCurMonth
- },
- attrs: { "track-by": "$index" }
- },
- [
- _c("p", { staticClass: "day-number" }, [
- _vm._v(_vm._s(day.monthDay))
- ]),
- _vm._v(" "),
- day.events.length
- ? _c(
- "div",
- { staticClass: "event-box" },
- _vm._l(day.events, function(event) {
- return _c(
- "div",
- {
- staticClass: "event-item",
- class: {
- selected: _vm.showCard == event.id
- },
- style: {
- color: event.color || "#333333",
- "background-color":
- _vm.showCard == event.id
- ? event.selectedColor ||
- "#C7E6FD"
- : event.backgroundColor ||
- "#C7E6FD"
- },
- on: {
- click: function($event) {
- return _vm.eventClick(
- event,
- $event
- )
- }
- }
- },
- [
- event.avatar
- ? _c("img", {
- staticClass: "avatar",
- attrs: { src: event.avatar },
- on: {
- error: function($event) {
- _vm.$set(
- event,
- "avatar",
- null
- )
- }
- }
- })
- : _c(
- "span",
- {
- staticClass: "icon",
- style: _vm.iconStyle(
- event.name
- )
- },
- [_vm._v(_vm._s(event.name))]
- ),
- _vm._v(" "),
- _c("p", {
- staticClass: "info",
- domProps: {
- innerHTML: _vm._s(
- _vm.isBegin(
- event,
- day.date,
- day.weekDay
- )
- )
- }
- }),
- _vm._v(" "),
- _vm.$slots["body-card"] &&
- event &&
- _vm.showCard == event.id
- ? _c(
- "div",
- {
- class: _vm.cardClass,
- attrs: { id: "card" },
- on: {
- click: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [_vm._t("body-card")],
- 2
- )
- : _vm._e()
- ]
- )
- }),
- 0
- )
- : _vm._e()
- ]
- )
- }),
- 0
- )
- : _vm._e()
- }),
- 0
- )
- ],
- 1
- )
- : _vm.tableType == "week"
- ? _c(
- "div",
- { ref: "time", staticClass: "time" },
- [
- _vm.loading ? _c("Spin", { attrs: { fix: "" } }) : _vm._e(),
- _vm._v(" "),
- _vm._l(_vm.timeDivide, function(time, index) {
- return _c(
- "div",
- { staticClass: "row" },
- [
- _vm.tableType == "week"
- ? _c("div", { staticClass: "left-info" }, [
- index == 0
- ? _c("div", { staticClass: "time-info first" }, [
- _c("span", { staticClass: "center" }, [
- _vm._v(_vm._s(_vm.$L("上午")))
- ])
- ])
- : _vm._e(),
- _vm._v(" "),
- index == 1
- ? _c("div", { staticClass: "time-info" }, [
- _c("span", { staticClass: "top" }, [
- _vm._v("12:00")
- ]),
- _vm._v(" "),
- _c("span", { staticClass: "center" }, [
- _vm._v(_vm._s(_vm.$L("下午")))
- ])
- ])
- : _vm._e(),
- _vm._v(" "),
- index == 2
- ? _c("div", { staticClass: "time-info" }, [
- _c("span", { staticClass: "top" }, [
- _vm._v("18:00")
- ]),
- _vm._v(" "),
- _c("span", { staticClass: "center" }, [
- _vm._v(_vm._s(_vm.$L("晚上")))
- ])
- ])
- : _vm._e()
- ])
- : _vm._e(),
- _vm._v(" "),
- _vm._l(_vm.weekDate, function(item) {
- return _vm.weekDate.length
- ? _c(
- "div",
- {
- staticClass: "events-day",
- class: { today: item.isToday }
- },
- [
- item.events.length
- ? _c(
- "div",
- { staticClass: "event-box" },
- _vm._l(item.events, function(event) {
- return _vm.isTheday(
- item.date,
- event.start
- ) && _vm.isInTime(time, event.start)
- ? _c(
- "div",
- {
- staticClass: "event-item",
- class: {
- selected:
- _vm.showCard == event.id
- },
- style: {
- color: event.color || "#333333",
- "background-color":
- _vm.showCard == event.id
- ? event.selectedColor ||
- "#C7E6FD"
- : event.backgroundColor ||
- "#C7E6FD"
- },
- on: {
- click: function($event) {
- return _vm.eventClick(
- event,
- $event
- )
- }
- }
- },
- [
- event.avatar
- ? _c("img", {
- staticClass: "avatar",
- attrs: {
- src: event.avatar
- },
- on: {
- error: function($event) {
- _vm.$set(
- event,
- "avatar",
- null
- )
- }
- }
- })
- : _c(
- "span",
- {
- staticClass: "icon",
- style: _vm.iconStyle(
- event.name
- )
- },
- [_vm._v(_vm._s(event.name))]
- ),
- _vm._v(" "),
- _c("p", {
- staticClass: "info",
- domProps: {
- innerHTML: _vm._s(event.title)
- }
- }),
- _vm._v(" "),
- _vm.$slots["body-card"] &&
- event &&
- _vm.showCard == event.id
- ? _c(
- "div",
- {
- class: _vm.cardClass,
- attrs: { id: "card" },
- on: {
- click: function(
- $event
- ) {
- $event.stopPropagation()
- }
- }
- },
- [_vm._t("body-card")],
- 2
- )
- : _vm._e()
- ]
- )
- : _vm._e()
- }),
- 0
- )
- : _vm._e()
- ]
- )
- : _vm._e()
- })
- ],
- 2
- )
- })
- ],
- 2
- )
- : _vm._e()
- ])
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-1651db2e", module.exports)
- }
- }
- /***/ }),
- /***/ 718:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(719)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(721)
- /* template */
- var __vue_template__ = __webpack_require__(722)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = null
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/FullCalendar/components/header.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-f1602cce", Component.options)
- } else {
- hotAPI.reload("data-v-f1602cce", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 719:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(720);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("63a73c1c", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 720:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 721:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc__ = __webpack_require__(435);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dateFunc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__dateFunc__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bus__ = __webpack_require__(436);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- created: function created() {
- this.dispatchEvent(this.tableType);
- },
- props: {
- currentDate: {},
- titleFormat: {},
- firstDay: {},
- monthNames: {},
- tableType: ''
- },
- data: function data() {
- return {
- title: '',
- leftArrow: '<',
- rightArrow: '>',
- headDate: new Date()
- };
- },
- watch: {
- currentDate: function currentDate(val) {
- if (!val) return;
- this.headDate = val;
- },
- tableType: function tableType(val) {
- this.dispatchEvent(this.tableType);
- }
- },
- methods: {
- goPrev: function goPrev() {
- this.headDate = this.changeDateRange(this.headDate, -1);
- this.dispatchEvent(this.tableType);
- },
- goNext: function goNext() {
- this.headDate = this.changeDateRange(this.headDate, 1);
- this.dispatchEvent(this.tableType);
- },
- changeDateRange: function changeDateRange(date, num) {
- var dt = new Date(date);
- if (this.tableType == 'month') {
- return new Date(dt.setMonth(dt.getMonth() + num));
- } else {
- return new Date(dt.valueOf() + num * 7 * 24 * 60 * 60 * 1000);
- }
- },
- dispatchEvent: function dispatchEvent(type) {
- if (type == 'month') {
- this.title = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.format(this.headDate, this.titleFormat, this.monthNames);
- var startDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(this.headDate);
- var curWeekDay = startDate.getDay();
- // 1st day of this monthView
- var diff = parseInt(this.firstDay) - curWeekDay;
- if (diff) diff -= 7;
- startDate.setDate(startDate.getDate() + diff);
- // the month view is 6*7
- var endDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.changeDay(startDate, 41);
- // 1st day of current month
- var currentDate = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getStartDate(this.headDate);
- 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);
- } else if (type == 'week') {
- var weekDays = __WEBPACK_IMPORTED_MODULE_0__dateFunc___default.a.getDates(this.headDate);
- 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');
- 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);
- __WEBPACK_IMPORTED_MODULE_1__bus__["a" /* default */].$emit('changeWeekDays', weekDays);
- }
- }
- }
- });
- /***/ }),
- /***/ 722:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("div", { staticClass: "full-calendar-header" }, [
- _c("div", { staticClass: "header-left" }, [_vm._t("header-left")], 2),
- _vm._v(" "),
- _c("div", { staticClass: "header-center" }, [
- _c(
- "span",
- {
- staticClass: "prev-month",
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.goPrev.apply(null, arguments)
- }
- }
- },
- [_vm._v(_vm._s(_vm.leftArrow))]
- ),
- _vm._v(" "),
- _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.title))]),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "next-month",
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.goNext.apply(null, arguments)
- }
- }
- },
- [_vm._v(_vm._s(_vm.rightArrow))]
- )
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "header-right" }, [_vm._t("header-right")], 2)
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-f1602cce", module.exports)
- }
- }
- /***/ }),
- /***/ 723:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "comp-full-calendar" },
- [
- _c(
- "fc-header",
- {
- attrs: {
- "current-date": _vm.currentDate,
- "title-format": _vm.titleFormat,
- "first-day": _vm.firstDay,
- "month-names": _vm.monthNames,
- tableType: _vm.tableType
- },
- on: { change: _vm.changeDateRange }
- },
- [
- _c(
- "div",
- { attrs: { slot: "header-left" }, slot: "header-left" },
- [_vm._t("fc-header-left")],
- 2
- ),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "btn-group",
- attrs: { slot: "header-right" },
- slot: "header-right"
- },
- [
- _c("div", [
- _c(
- "button",
- {
- class: {
- cancel: _vm.tableType == "month",
- primary: _vm.tableType == "week"
- },
- on: {
- click: function($event) {
- return _vm.changeType("week")
- }
- }
- },
- [_vm._v("周")]
- ),
- _vm._v(" "),
- _c(
- "button",
- {
- class: {
- cancel: _vm.tableType == "week",
- primary: _vm.tableType == "month"
- },
- on: {
- click: function($event) {
- return _vm.changeType("month")
- }
- }
- },
- [_vm._v("月")]
- )
- ])
- ]
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "fc-body",
- {
- ref: "fcbody",
- attrs: {
- "current-date": _vm.currentDate,
- events: _vm.events,
- "month-names": _vm.monthNames,
- tableType: _vm.tableType,
- loading: _vm.loading,
- "week-names": _vm.weekNames,
- "first-day": _vm.firstDay,
- weekDays: _vm.weekDays
- },
- on: {
- eventclick: _vm.emitEventClick,
- dayclick: _vm.emitDayClick,
- moreclick: _vm.emitMoreClick
- }
- },
- [_c("template", { slot: "body-card" }, [_vm._t("fc-body-card")], 2)],
- 2
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-2e96a02c", module.exports)
- }
- }
- /***/ }),
- /***/ 724:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "todo-calendar" },
- [
- _c("FullCalendar", {
- attrs: {
- events: _vm.lists,
- loading: _vm.loadIng > 0,
- lang: _vm.lang
- },
- on: { eventClick: _vm.clickEvent, change: _vm.changeDateRange }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-0963e7e8", module.exports)
- }
- }
- /***/ }),
- /***/ 725:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(726)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(728)
- /* template */
- var __vue_template__ = __webpack_require__(729)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-103a66f2"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/todo/complete.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-103a66f2", Component.options)
- } else {
- hotAPI.reload("data-v-103a66f2", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 726:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(727);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("025824fc", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 727:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.project-todo-complete .tableFill[data-v-103a66f2] {\n margin: 12px 12px 20px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 728:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 已完成的任务
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TodoComplete',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- canload: {
- type: Boolean,
- default: true
- }
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- $A.setOnTaskInfoListener('components/project/todo/complete', function (act, detail) {
- if (detail.username != _this.usrName) {
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- return;
- }
- //
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
- //
- switch (act) {
- case "username": // 负责人
- case "delete": // 删除任务
- case "archived":
- // 归档
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- break;
- case "unarchived":
- // 取消归档
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- }
- });
- },
- watch: {
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this2 = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("任务名称"),
- "key": 'title',
- "minWidth": 120,
- render: function render(h, params) {
- return _this2.renderTaskTitle(h, params);
- }
- }, {
- "title": this.$L("创建人"),
- "key": 'createuser',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.createuser
- }
- });
- }
- }, {
- "title": this.$L("负责人"),
- "key": 'username',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("完成时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.completedate));
- }
- }];
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this3 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- type: '已完成',
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10)
- },
- complete: function complete() {
- _this3.loadIng--;
- },
- error: function error() {
- _this3.noDataText = _this3.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.lists = res.data.lists;
- _this3.listTotal = res.data.total;
- _this3.noDataText = _this3.$L("没有相关的数据");
- } else {
- _this3.lists = [];
- _this3.listTotal = 0;
- _this3.noDataText = res.msg;
- }
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 729:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-todo-complete" },
- [
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-103a66f2", module.exports)
- }
- }
- /***/ }),
- /***/ 730:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(731)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(733)
- /* template */
- var __vue_template__ = __webpack_require__(734)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-2364e380"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/project/todo/attention.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-2364e380", Component.options)
- } else {
- hotAPI.reload("data-v-2364e380", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 731:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(732);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("9962019c", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 732:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.project-todo-attention .tableFill[data-v-2364e380] {\n margin: 12px 12px 20px;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 733:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 我关注的任务
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'TodoAttention',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- canload: {
- type: Boolean,
- default: true
- }
- },
- mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- var _this = this;
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- $A.setOnTaskInfoListener('components/project/todo/attention', function (act, detail) {
- if (detail.follower.indexOf(_this.usrName) === -1) {
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- return;
- }
- //
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1, detail);
- return true;
- }
- });
- //
- switch (act) {
- case "unattention": // 取消关注
- case "delete":
- // 删除任务
- _this.lists.some(function (task, i) {
- if (task.id == detail.id) {
- _this.lists.splice(i, 1);
- return true;
- }
- });
- break;
- case "attention":
- // 添加关注
- var username = _this.usrName;
- if (detail.follower.filter(function (uname) {
- return uname == username;
- }).length == 0) {
- return;
- }
- var has = false;
- _this.lists.some(function (task) {
- if (task.id == detail.id) {
- return has = true;
- }
- });
- if (!has) {
- _this.lists.unshift(detail);
- }
- break;
- }
- });
- },
- watch: {
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this2 = this;
- this.noDataText = this.$L("数据加载中.....");
- this.columns = [{
- "title": this.$L("任务名称"),
- "key": 'title',
- "minWidth": 120,
- render: function render(h, params) {
- return _this2.renderTaskTitle(h, params);
- }
- }, {
- "title": this.$L("创建人"),
- "key": 'createuser',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.createuser
- }
- });
- }
- }, {
- "title": this.$L("负责人"),
- "key": 'username',
- "minWidth": 80,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("完成"),
- "minWidth": 70,
- "align": "center",
- render: function render(h, params) {
- return h('span', params.row.complete ? '√' : '-');
- }
- }, {
- "title": this.$L("归档"),
- "minWidth": 70,
- "align": "center",
- render: function render(h, params) {
- return h('span', params.row.archived ? '√' : '-');
- }
- }, {
- "title": this.$L("关注时间"),
- "width": 160,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.attentiondate));
- }
- }];
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this3 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'project/task/lists',
- data: {
- attention: 1,
- archived: '全部',
- page: Math.max(this.listPage, 1),
- pagesize: Math.max($A.runNum(this.listPageSize), 10)
- },
- complete: function complete() {
- _this3.loadIng--;
- },
- error: function error() {
- _this3.noDataText = _this3.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.lists = res.data.lists;
- _this3.listTotal = res.data.total;
- _this3.noDataText = _this3.$L("没有相关的数据");
- } else {
- _this3.lists = [];
- _this3.listTotal = 0;
- _this3.noDataText = res.msg;
- }
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 734:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "project-todo-attention" },
- [
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-2364e380", module.exports)
- }
- }
- /***/ }),
- /***/ 735:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(736)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(738)
- /* template */
- var __vue_template__ = __webpack_require__(746)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-19afa782"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/report/my.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-19afa782", Component.options)
- } else {
- hotAPI.reload("data-v-19afa782", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 736:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(737);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("7b860e96", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 737:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 738:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__add__ = __webpack_require__(739);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__add___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__add__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__iview_WDrawer__ = __webpack_require__(49);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__iview_WDrawer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 我的汇报
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ReportMy',
- 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 },
- props: {
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- keys: {},
- sorts: { key: '', order: '' },
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: "",
- addDrawerId: 0,
- addDrawerShow: false
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- },
- watch: {
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this = this;
- this.noDataText = this.$L("数据加载中.....");
- this.contentText = this.$L("内容加载中.....");
- this.columns = [{
- "title": this.$L("标题"),
- "key": 'title',
- "minWidth": 120
- }, {
- "title": this.$L("类型"),
- "key": 'type',
- "minWidth": 80,
- "maxWidth": 120,
- "align": 'center'
- }, {
- "title": this.$L("状态"),
- "key": 'status',
- "minWidth": 80,
- "maxWidth": 120,
- "align": 'center'
- }, {
- "title": this.$L("创建日期"),
- "minWidth": 160,
- "maxWidth": 200,
- "align": 'center',
- "sortable": true,
- render: function render(h, params) {
- return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
- }
- }, {
- "title": " ",
- "key": 'action',
- "align": 'right',
- "width": 120,
- render: function render(h, params) {
- if (!params.row.id) {
- return null;
- }
- var arr = [h('Tooltip', {
- props: { content: _this.$L('查看'), transfer: true, delay: 600 },
- style: { position: 'relative' }
- }, [h('Icon', {
- props: { type: 'md-eye', size: 16 },
- style: { margin: '0 3px', cursor: 'pointer' },
- on: {
- click: function click() {
- _this.reportDetail(params.row.id, params.row.title);
- }
- }
- })]), h('Tooltip', {
- props: { content: _this.$L('编辑'), transfer: true, delay: 600 }
- }, [h('Icon', {
- props: { type: 'md-create', size: 16 },
- style: { margin: '0 3px', cursor: 'pointer' },
- on: {
- click: function click() {
- _this.addDrawerId = params.row.id;
- _this.addDrawerShow = true;
- }
- }
- })])];
- if (params.row.status !== '已发送') {
- arr.push(h('Tooltip', {
- props: { content: _this.$L('发送'), transfer: true, delay: 600 }
- }, [h('Icon', {
- props: { type: 'md-send', size: 16 },
- style: { margin: '0 3px', cursor: 'pointer' },
- on: {
- click: function click() {
- _this.sendReport(params.row);
- }
- }
- })]));
- arr.push(h('Tooltip', {
- props: { content: _this.$L('删除'), transfer: true, delay: 600 }
- }, [h('Icon', {
- props: { type: 'md-trash', size: 16 },
- style: { margin: '0 3px', cursor: 'pointer' },
- on: {
- click: function click() {
- _this.deleteReport(params.row);
- }
- }
- })]));
- }
- return h('div', arr);
- }
- }];
- },
- sreachTab: function sreachTab(clear) {
- if (clear === true) {
- this.keys = {};
- }
- this.getLists(true);
- },
- sortChange: function sortChange(info) {
- this.sorts = { key: info.key, order: info.order };
- this.getLists(true);
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this2 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- var whereData = $A.date2string($A.cloneData(this.keys));
- whereData.page = Math.max(this.listPage, 1);
- whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
- whereData.sorts = $A.cloneData(this.sorts);
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'report/my',
- data: whereData,
- complete: function complete() {
- _this2.loadIng--;
- },
- error: function error() {
- _this2.noDataText = _this2.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this2.lists = res.data.lists;
- _this2.listTotal = res.data.total;
- _this2.noDataText = _this2.$L("没有相关的数据");
- } else {
- _this2.lists = [];
- _this2.listTotal = 0;
- _this2.noDataText = res.msg;
- }
- }
- });
- },
- addDrawerSuccess: function addDrawerSuccess() {
- this.addDrawerShow = false;
- this.getLists(true);
- },
- sendReport: function sendReport(row) {
- var _this3 = this;
- this.$Modal.confirm({
- title: this.$L('发送汇报'),
- content: this.$L('你确定要发送汇报吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'report/template',
- method: 'post',
- data: {
- act: 'send',
- id: row.id,
- type: row.type
- },
- error: function error() {
- _this3.$Modal.remove();
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this3.$Modal.remove();
- _this3.$set(row, 'status', '已发送');
- setTimeout(function () {
- if (res.ret === 1) {
- _this3.$Message.success(res.msg);
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- //
- var msgData = {
- type: 'report',
- username: _this3.usrInfo.username,
- userimg: _this3.usrInfo.userimg,
- indate: Math.round(new Date().getTime() / 1000),
- text: res.data.ccuserAgain ? _this3.$L('修改了工作报告') : _this3.$L('发送了工作报告'),
- other: {
- id: res.data.id,
- type: res.data.type,
- title: res.data.title
- }
- };
- res.data.ccuserArray.forEach(function (username) {
- if (username != msgData.username) {
- $A.WSOB.sendTo('user', username, msgData, 'special');
- }
- });
- }
- });
- }
- });
- },
- deleteReport: function deleteReport(row) {
- var _this4 = this;
- this.$Modal.confirm({
- title: this.$L('删除汇报'),
- content: this.$L('你确定要删除汇报吗?'),
- loading: true,
- onOk: function onOk() {
- $A.apiAjax({
- url: 'report/template',
- method: 'post',
- data: {
- act: 'delete',
- id: row.id,
- type: row.type
- },
- error: function error() {
- _this4.$Modal.remove();
- alert(_this4.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- _this4.$Modal.remove();
- _this4.lists.some(function (item, index) {
- if (item.id == row.id) {
- _this4.lists.splice(index, 1);
- return true;
- }
- });
- setTimeout(function () {
- if (res.ret === 1) {
- _this4.$Message.success(res.msg);
- } else {
- _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
- }
- }, 350);
- }
- });
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 739:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(740)
- __webpack_require__(742)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(744)
- /* template */
- var __vue_template__ = __webpack_require__(745)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-ff06058a"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/report/add.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-ff06058a", Component.options)
- } else {
- hotAPI.reload("data-v-ff06058a", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 740:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(741);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("1ea88f97", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 741:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- exports.push([module.i, "\n.report-add .add-edit .teditor-loadedstyle {\n height: 100%;\n}\n", ""]);
- // exports
- /***/ }),
- /***/ 742:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(743);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("69de7e7f", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 743:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 744:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TEditor__ = __webpack_require__(332);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TEditor___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__TEditor__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 新建汇报
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ReportAdd',
- components: { TEditor: __WEBPACK_IMPORTED_MODULE_1__TEditor___default.a, DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- id: {
- default: 0
- },
- canload: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- loadYet: false,
- loadIng: 0,
- dataDetail: {
- title: '',
- content: '',
- ccuser: '',
- status: ''
- },
- type: '日报'
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getData();
- }
- },
- watch: {
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getData();
- }
- },
- type: function type() {
- if (this.loadYet) {
- this.getData();
- }
- },
- id: function id() {
- if (this.loadYet) {
- this.dataDetail = {};
- this.getData();
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- this.dataDetail.content = this.$L('数据加载中.....');
- },
- getData: function getData() {
- var _this = this;
- this.loadIng++;
- $A.apiAjax({
- url: 'report/template',
- method: 'post',
- data: {
- id: this.id,
- type: this.type
- },
- complete: function complete() {
- _this.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this.dataDetail = res.data;
- }
- }
- });
- },
- getPrevCc: function getPrevCc() {
- var _this2 = this;
- this.loadIng++;
- $A.apiAjax({
- url: 'report/prevcc',
- complete: function complete() {
- _this2.loadIng--;
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this2.dataDetail.ccuser = res.data.lists.join(',');
- } else {
- _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
- }
- }
- });
- },
- handleSubmit: function handleSubmit() {
- var _this3 = this;
- var send = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
- this.loadIng++;
- $A.apiAjax({
- url: 'report/template',
- method: 'post',
- data: Object.assign(this.dataDetail, {
- act: 'submit',
- id: this.id,
- type: this.type,
- send: send === true ? 1 : 0
- }),
- complete: function complete() {
- _this3.loadIng--;
- },
- error: function error() {
- alert(_this3.$L('网络繁忙,请稍后再试!'));
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this3.dataDetail = res.data;
- _this3.$Message.success(res.msg);
- _this3.$emit("on-success", res.data);
- //
- if (_this3.dataDetail.status === '已发送') {
- var msgData = {
- type: 'report',
- username: _this3.usrInfo.username,
- userimg: _this3.usrInfo.userimg,
- indate: Math.round(new Date().getTime() / 1000),
- text: _this3.dataDetail.ccuserAgain ? _this3.$L('修改了工作报告') : _this3.$L('发送了工作报告'),
- other: {
- id: _this3.dataDetail.id,
- type: _this3.dataDetail.type,
- title: _this3.dataDetail.title
- }
- };
- _this3.dataDetail.ccuserArray.forEach(function (username) {
- if (username != msgData.username) {
- $A.WSOB.sendTo('user', username, msgData, 'special');
- }
- });
- }
- } else {
- _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
- }
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 745:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "report-add" },
- [
- _c(
- "div",
- { staticClass: "add-header" },
- [
- _c(
- "div",
- { staticClass: "add-title" },
- [
- _c("Input", {
- attrs: { placeholder: _vm.$L("汇报标题") },
- model: {
- value: _vm.dataDetail.title,
- callback: function($$v) {
- _vm.$set(_vm.dataDetail, "title", $$v)
- },
- expression: "dataDetail.title"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "ButtonGroup",
- [
- _c(
- "Button",
- {
- attrs: {
- disabled: _vm.id > 0,
- type: "" + (_vm.type == "日报" ? "primary" : "default")
- },
- on: {
- click: function($event) {
- _vm.type = "日报"
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("日报")))]
- ),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- disabled: _vm.id > 0,
- type: "" + (_vm.type == "周报" ? "primary" : "default")
- },
- on: {
- click: function($event) {
- _vm.type = "周报"
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("周报")))]
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("t-editor", {
- staticClass: "add-edit",
- attrs: { height: "100%" },
- model: {
- value: _vm.dataDetail.content,
- callback: function($$v) {
- _vm.$set(_vm.dataDetail, "content", $$v)
- },
- expression: "dataDetail.content"
- }
- }),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "add-input" },
- [
- _c(
- "UserInput",
- {
- attrs: {
- nousername: _vm.usrName,
- placeholder: _vm.$L("输入关键词搜索"),
- multiple: ""
- },
- model: {
- value: _vm.dataDetail.ccuser,
- callback: function($$v) {
- _vm.$set(_vm.dataDetail, "ccuser", $$v)
- },
- expression: "dataDetail.ccuser"
- }
- },
- [
- _c("span", { attrs: { slot: "prepend" }, slot: "prepend" }, [
- _vm._v(_vm._s(_vm.$L("抄送人")))
- ])
- ]
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "add-prev-btn", on: { click: _vm.getPrevCc } },
- [_vm._v(_vm._s(_vm.$L("使用我上次抄送的人")))]
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "add-footer" },
- [
- _c(
- "Button",
- {
- staticStyle: { "margin-right": "6px" },
- attrs: { loading: _vm.loadIng > 0, type: "primary" },
- on: { click: _vm.handleSubmit }
- },
- [_vm._v(_vm._s(_vm.$L("保存")))]
- ),
- _vm._v(" "),
- _vm.dataDetail.status == "已发送"
- ? _c(
- "Button",
- {
- attrs: {
- loading: _vm.loadIng > 0,
- type: "success",
- icon: "md-checkmark-circle-outline",
- ghost: ""
- },
- on: {
- click: function($event) {
- return _vm.handleSubmit(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("已发送")))]
- )
- : _c(
- "Button",
- {
- attrs: { loading: _vm.loadIng > 0 },
- on: {
- click: function($event) {
- return _vm.handleSubmit(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("保存并发送")))]
- )
- ],
- 1
- )
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-ff06058a", module.exports)
- }
- }
- /***/ }),
- /***/ 746:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "drawer-tabs-container",
- [
- _c(
- "div",
- { staticClass: "report-my" },
- [
- _c("Row", { staticClass: "sreachBox" }, [
- _c("div", { staticClass: "item" }, [
- _c(
- "div",
- { staticClass: "item-2" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
- _vm._v(_vm._s(_vm.$L("类型")))
- ]),
- _vm._v(" "),
- _c(
- "Select",
- {
- attrs: { placeholder: _vm.$L("全部") },
- model: {
- value: _vm.keys.type,
- callback: function($$v) {
- _vm.$set(_vm.keys, "type", $$v)
- },
- expression: "keys.type"
- }
- },
- [
- _c("Option", { attrs: { value: "" } }, [
- _vm._v(_vm._s(_vm.$L("全部")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "日报" } }, [
- _vm._v(_vm._s(_vm.$L("日报")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "周报" } }, [
- _vm._v(_vm._s(_vm.$L("周报")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-2" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.indate } }, [
- _vm._v(_vm._s(_vm.$L("日期")))
- ]),
- _vm._v(" "),
- _c("Date-picker", {
- attrs: {
- type: "daterange",
- placement: "bottom",
- placeholder: _vm.$L("日期范围")
- },
- model: {
- value: _vm.keys.indate,
- callback: function($$v) {
- _vm.$set(_vm.keys, "indate", $$v)
- },
- expression: "keys.indate"
- }
- })
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item item-button" },
- [
- _vm.$A.objImplode(_vm.keys) != ""
- ? _c(
- "Button",
- {
- attrs: { type: "text" },
- on: {
- click: function($event) {
- return _vm.sreachTab(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消筛选")))]
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- type: "primary",
- icon: "md-search",
- loading: _vm.loadIng > 0
- },
- on: { click: _vm.sreachTab }
- },
- [_vm._v(_vm._s(_vm.$L("搜索")))]
- )
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c(
- "Row",
- {
- staticClass: "butBox",
- staticStyle: { float: "left", "margin-top": "-32px" }
- },
- [
- _c(
- "Button",
- {
- attrs: {
- loading: _vm.loadIng > 0,
- type: "primary",
- icon: "md-add"
- },
- on: {
- click: function($event) {
- ;[(_vm.addDrawerId = 0), (_vm.addDrawerShow = true)]
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("新建汇报")))]
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "900" },
- model: {
- value: _vm.addDrawerShow,
- callback: function($$v) {
- _vm.addDrawerShow = $$v
- },
- expression: "addDrawerShow"
- }
- },
- [
- _c("report-add", {
- attrs: { canload: _vm.addDrawerShow, id: _vm.addDrawerId },
- on: { "on-success": _vm.addDrawerSuccess }
- })
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-19afa782", module.exports)
- }
- }
- /***/ }),
- /***/ 747:
- /***/ (function(module, exports, __webpack_require__) {
- var disposed = false
- function injectStyle (ssrContext) {
- if (disposed) return
- __webpack_require__(748)
- }
- var normalizeComponent = __webpack_require__(2)
- /* script */
- var __vue_script__ = __webpack_require__(750)
- /* template */
- var __vue_template__ = __webpack_require__(751)
- /* template functional */
- var __vue_template_functional__ = false
- /* styles */
- var __vue_styles__ = injectStyle
- /* scopeId */
- var __vue_scopeId__ = "data-v-8cb41506"
- /* moduleIdentifier (server only) */
- var __vue_module_identifier__ = null
- var Component = normalizeComponent(
- __vue_script__,
- __vue_template__,
- __vue_template_functional__,
- __vue_styles__,
- __vue_scopeId__,
- __vue_module_identifier__
- )
- Component.options.__file = "resources/assets/js/main/components/report/receive.vue"
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-8cb41506", Component.options)
- } else {
- hotAPI.reload("data-v-8cb41506", Component.options)
- }
- module.hot.dispose(function (data) {
- disposed = true
- })
- })()}
- module.exports = Component.exports
- /***/ }),
- /***/ 748:
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(749);
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var update = __webpack_require__(1)("8a65b1da", content, false, {});
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- 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() {
- 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");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
- /***/ }),
- /***/ 749:
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__(0)(false);
- // imports
- // module
- 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", ""]);
- // exports
- /***/ }),
- /***/ 750:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /**
- * 收到的汇报
- */
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'ReportReceive',
- components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
- props: {
- canload: {
- type: Boolean,
- default: true
- },
- labelLists: {
- type: Array
- }
- },
- data: function data() {
- return {
- keys: {},
- sorts: { key: '', order: '' },
- loadYet: false,
- loadIng: 0,
- columns: [],
- lists: [],
- listPage: 1,
- listTotal: 0,
- noDataText: ""
- };
- },
- mounted: function mounted() {
- if (this.canload) {
- this.loadYet = true;
- this.getLists(true);
- }
- },
- watch: {
- canload: function canload(val) {
- if (val && !this.loadYet) {
- this.loadYet = true;
- this.getLists(true);
- }
- }
- },
- methods: {
- initLanguage: function initLanguage() {
- var _this = this;
- this.noDataText = this.$L("数据加载中.....");
- this.contentText = this.$L("内容加载中.....");
- this.columns = [{
- "title": this.$L("标题"),
- "key": 'title',
- "sortable": true,
- "minWidth": 120
- }, {
- "title": this.$L("发送人"),
- "key": 'username',
- "sortable": true,
- "minWidth": 80,
- "maxWidth": 130,
- render: function render(h, params) {
- return h('UserView', {
- props: {
- username: params.row.username
- }
- });
- }
- }, {
- "title": this.$L("类型"),
- "key": 'type',
- "minWidth": 80,
- "maxWidth": 120,
- "align": 'center'
- }, {
- "title": this.$L("发送日期"),
- "minWidth": 160,
- "maxWidth": 200,
- "align": 'center',
- "sortable": true,
- render: function render(h, params) {
- return h('span', params.row.senddate ? $A.formatDate("Y-m-d H:i:s", params.row.senddate) : '-');
- }
- }, {
- "title": " ",
- "key": 'action',
- "width": 70,
- "align": 'center',
- render: function render(h, params) {
- return h('div', [h('Tooltip', {
- props: { content: _this.$L('查看'), transfer: true, delay: 600 },
- style: { position: 'relative' }
- }, [h('Icon', {
- props: { type: 'md-eye', size: 16 },
- style: { margin: '0 3px', cursor: 'pointer' },
- on: {
- click: function click() {
- _this.reportDetail(params.row.id, params.row.title);
- }
- }
- })])]);
- }
- }];
- },
- sreachTab: function sreachTab(clear) {
- if (clear === true) {
- this.keys = {};
- }
- this.getLists(true);
- },
- sortChange: function sortChange(info) {
- this.sorts = { key: info.key, order: info.order };
- this.getLists(true);
- },
- setPage: function setPage(page) {
- this.listPage = page;
- this.getLists();
- },
- setPageSize: function setPageSize(size) {
- if (Math.max($A.runNum(this.listPageSize), 10) != size) {
- this.listPageSize = size;
- this.getLists();
- }
- },
- getLists: function getLists(resetLoad) {
- var _this2 = this;
- if (resetLoad === true) {
- this.listPage = 1;
- }
- var whereData = $A.date2string($A.cloneData(this.keys));
- whereData.page = Math.max(this.listPage, 1);
- whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
- whereData.sorts = $A.cloneData(this.sorts);
- this.loadIng++;
- this.noDataText = this.$L("数据加载中.....");
- $A.apiAjax({
- url: 'report/receive',
- data: whereData,
- complete: function complete() {
- _this2.loadIng--;
- },
- error: function error() {
- _this2.noDataText = _this2.$L("数据加载失败!");
- },
- success: function success(res) {
- if (res.ret === 1) {
- _this2.lists = res.data.lists;
- _this2.listTotal = res.data.total;
- _this2.noDataText = _this2.$L("没有相关的数据");
- } else {
- _this2.lists = [];
- _this2.listTotal = 0;
- _this2.noDataText = res.msg;
- }
- }
- });
- }
- }
- });
- /***/ }),
- /***/ 751:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("drawer-tabs-container", [
- _c(
- "div",
- { staticClass: "report-receive" },
- [
- _c("Row", { staticClass: "sreachBox" }, [
- _c("div", { staticClass: "item" }, [
- _c(
- "div",
- { staticClass: "item-3" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
- _vm._v(_vm._s(_vm.$L("发送人")))
- ]),
- _vm._v(" "),
- _c("Input", {
- attrs: { placeholder: _vm.$L("用户名") },
- model: {
- value: _vm.keys.username,
- callback: function($$v) {
- _vm.$set(_vm.keys, "username", $$v)
- },
- expression: "keys.username"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-3" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
- _vm._v(_vm._s(_vm.$L("类型")))
- ]),
- _vm._v(" "),
- _c(
- "Select",
- {
- attrs: { placeholder: _vm.$L("全部") },
- model: {
- value: _vm.keys.type,
- callback: function($$v) {
- _vm.$set(_vm.keys, "type", $$v)
- },
- expression: "keys.type"
- }
- },
- [
- _c("Option", { attrs: { value: "" } }, [
- _vm._v(_vm._s(_vm.$L("全部")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "日报" } }, [
- _vm._v(_vm._s(_vm.$L("日报")))
- ]),
- _vm._v(" "),
- _c("Option", { attrs: { value: "周报" } }, [
- _vm._v(_vm._s(_vm.$L("周报")))
- ])
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item-3" },
- [
- _c("sreachTitle", { attrs: { val: _vm.keys.indate } }, [
- _vm._v(_vm._s(_vm.$L("日期")))
- ]),
- _vm._v(" "),
- _c("Date-picker", {
- attrs: {
- type: "daterange",
- placement: "bottom",
- placeholder: _vm.$L("日期范围")
- },
- model: {
- value: _vm.keys.indate,
- callback: function($$v) {
- _vm.$set(_vm.keys, "indate", $$v)
- },
- expression: "keys.indate"
- }
- })
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "item item-button" },
- [
- _vm.$A.objImplode(_vm.keys) != ""
- ? _c(
- "Button",
- {
- attrs: { type: "text" },
- on: {
- click: function($event) {
- return _vm.sreachTab(true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("取消筛选")))]
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "Button",
- {
- attrs: {
- type: "primary",
- icon: "md-search",
- loading: _vm.loadIng > 0
- },
- on: { click: _vm.sreachTab }
- },
- [_vm._v(_vm._s(_vm.$L("搜索")))]
- )
- ],
- 1
- )
- ]),
- _vm._v(" "),
- _c("Table", {
- ref: "tableRef",
- staticClass: "tableFill",
- attrs: {
- columns: _vm.columns,
- data: _vm.lists,
- loading: _vm.loadIng > 0,
- "no-data-text": _vm.noDataText,
- stripe: ""
- },
- on: { "on-sort-change": _vm.sortChange }
- }),
- _vm._v(" "),
- _c("Page", {
- staticClass: "pageBox",
- attrs: {
- total: _vm.listTotal,
- current: _vm.listPage,
- disabled: _vm.loadIng > 0,
- "page-size-opts": [10, 20, 30, 50, 100],
- placement: "top",
- "show-elevator": "",
- "show-sizer": "",
- "show-total": "",
- transfer: "",
- simple: _vm.windowMax768
- },
- on: {
- "on-change": _vm.setPage,
- "on-page-size-change": _vm.setPageSize
- }
- })
- ],
- 1
- )
- ])
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-8cb41506", module.exports)
- }
- }
- /***/ }),
- /***/ 752:
- /***/ (function(module, exports, __webpack_require__) {
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "w-main todo" },
- [
- _c("v-title", [_vm._v(_vm._s(_vm.$L("待办")))]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav" }, [
- _c("div", { staticClass: "nav-row" }, [
- _c("div", { staticClass: "w-nav-left" }, [
- _c("div", { staticClass: "page-nav-left" }, [
- _c("span", [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("我的待办")))
- ]),
- _vm._v(" "),
- _vm.loadIng > 0
- ? _c(
- "div",
- { staticClass: "page-nav-loading" },
- [_c("w-loading")],
- 1
- )
- : _c("div", { staticClass: "page-nav-refresh" }, [
- _c("em", { on: { click: _vm.refreshTask } }, [
- _vm._v(_vm._s(_vm.$L("刷新")))
- ])
- ])
- ])
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-flex" }),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "w-nav-right m768-show" },
- [
- _c(
- "Dropdown",
- {
- attrs: { trigger: "click", transfer: "" },
- on: { "on-click": _vm.handleTodo }
- },
- [
- _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
- _vm._v(" "),
- _c(
- "DropdownMenu",
- { attrs: { slot: "list" }, slot: "list" },
- [
- _c("DropdownItem", { attrs: { name: "calendar" } }, [
- _vm._v(_vm._s(_vm.$L("待办日程")))
- ]),
- _vm._v(" "),
- _c("DropdownItem", { attrs: { name: "complete" } }, [
- _vm._v(_vm._s(_vm.$L("已完成的任务")))
- ]),
- _vm._v(" "),
- _c("DropdownItem", { attrs: { name: "attention" } }, [
- _vm._v(_vm._s(_vm.$L("我关注的任务")))
- ]),
- _vm._v(" "),
- _c("DropdownItem", { attrs: { name: "report" } }, [
- _vm._v(_vm._s(_vm.$L("周报/日报")))
- ])
- ],
- 1
- )
- ],
- 1
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "w-nav-right m768-hide" }, [
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.handleTodo("calendar")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("待办日程")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.handleTodo("complete")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("已完成的任务")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.handleTodo("attention")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("我关注的任务")))
- ]
- ),
- _vm._v(" "),
- _c(
- "span",
- {
- staticClass: "ft hover",
- on: {
- click: function($event) {
- return _vm.handleTodo("report")
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
- _vm._v(" " + _vm._s(_vm.$L("周报/日报")))
- ]
- )
- ])
- ])
- ]),
- _vm._v(" "),
- _c("w-content", [
- _c(
- "div",
- { staticClass: "todo-main" },
- _vm._l(
- [
- ["1", "2"],
- ["3", "4"]
- ],
- function(subs) {
- return _c(
- "div",
- { staticClass: "todo-ul" },
- _vm._l(subs, function(index) {
- return _c("div", { staticClass: "todo-li" }, [
- _c("div", { staticClass: "todo-card" }, [
- _c(
- "div",
- { staticClass: "todo-card-head", class: ["p" + index] },
- [
- _c("i", { staticClass: "ft icon flag" }, [
- _vm._v("")
- ]),
- _vm._v(" "),
- _c("div", { staticClass: "todo-card-title" }, [
- _vm._v(_vm._s(_vm.pTitle(index)))
- ]),
- _vm._v(" "),
- _c(
- "label",
- {
- staticClass: "todo-input-box",
- class: { active: !!_vm.taskDatas[index].focus },
- on: {
- click: function() {
- _vm.$set(_vm.taskDatas[index], "focus", true)
- }
- }
- },
- [
- _c(
- "div",
- {
- staticClass: "todo-input-ibox",
- on: {
- click: function($event) {
- $event.stopPropagation()
- }
- }
- },
- [
- _c("Input", {
- staticClass: "todo-input-enter",
- attrs: {
- placeholder: _vm.$L(
- "在这里输入事项,回车即可保存"
- )
- },
- on: {
- "on-enter": function($event) {
- return _vm.addTask(index)
- }
- },
- model: {
- value: _vm.taskDatas[index].title,
- callback: function($$v) {
- _vm.$set(
- _vm.taskDatas[index],
- "title",
- $$v
- )
- },
- expression: "taskDatas[index].title"
- }
- }),
- _vm._v(" "),
- _c(
- "div",
- {
- staticClass: "todo-input-close",
- on: {
- click: function() {
- _vm.$set(
- _vm.taskDatas[index],
- "focus",
- false
- )
- }
- }
- },
- [
- _c("i", { staticClass: "ft icon" }, [
- _vm._v("")
- ])
- ]
- )
- ],
- 1
- ),
- _vm._v(" "),
- _c("div", { staticClass: "todo-input-pbox" }, [
- _c(
- "div",
- { staticClass: "todo-input-placeholder" },
- [
- _vm._v(
- _vm._s(
- _vm.$L("点击可快速添加需要处理的事项")
- )
- )
- ]
- ),
- _vm._v(" "),
- _c("div", { staticClass: "todo-input-close" }, [
- _c("i", { staticClass: "ft icon" }, [
- _vm._v("")
- ])
- ])
- ])
- ]
- )
- ]
- ),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "todo-card-content" },
- [
- _c(
- "draggable",
- {
- staticClass: "content-ul",
- attrs: {
- group: "task",
- draggable: ".task-draggable",
- animation: 150,
- disabled:
- _vm.taskSortDisabled || _vm.windowMax768
- },
- on: {
- sort: _vm.taskSortUpdate,
- remove: _vm.taskSortUpdate
- },
- model: {
- value: _vm.taskDatas[index].lists,
- callback: function($$v) {
- _vm.$set(_vm.taskDatas[index], "lists", $$v)
- },
- expression: "taskDatas[index].lists"
- }
- },
- [
- _vm._l(_vm.taskDatas[index].lists, function(
- task
- ) {
- return _c(
- "div",
- {
- key: task.id,
- staticClass: "content-li task-draggable",
- class: { complete: task.complete },
- on: {
- click: function($event) {
- return _vm.openTaskModal(task)
- }
- }
- },
- [
- _c(
- "div",
- { staticClass: "subtask-progress" },
- [
- _c("em", {
- style: {
- width:
- _vm.subtaskProgress(task) + "%"
- }
- })
- ]
- ),
- _vm._v(" "),
- task.complete
- ? _c("Icon", {
- staticClass: "task-check",
- attrs: {
- type: "md-checkbox-outline"
- },
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.taskComplete(
- task,
- false
- )
- }
- }
- })
- : _c("Icon", {
- staticClass: "task-check",
- attrs: { type: "md-square-outline" },
- on: {
- click: function($event) {
- $event.stopPropagation()
- return _vm.taskComplete(
- task,
- true
- )
- }
- }
- }),
- _vm._v(" "),
- !!task.loadIng
- ? _c(
- "div",
- { staticClass: "task-loading" },
- [_c("w-loading")],
- 1
- )
- : _vm._e(),
- _vm._v(" "),
- task.overdue
- ? _c(
- "div",
- { staticClass: "task-overdue" },
- [
- _vm._v(
- "[" + _vm._s(_vm.$L("超期")) + "]"
- )
- ]
- )
- : _vm._e(),
- _vm._v(" "),
- _c(
- "div",
- { staticClass: "task-title" },
- [
- _vm._v(_vm._s(task.title)),
- task.desc
- ? _c("Icon", {
- attrs: {
- type: "ios-list-box-outline"
- }
- })
- : _vm._e(),
- _c(
- "span",
- { staticClass: "task-title-time" },
- [_vm._v(_vm._s(task.plantime))]
- )
- ],
- 1
- )
- ],
- 1
- )
- }),
- _vm._v(" "),
- _vm.taskDatas[index].hasMorePages === true
- ? _c(
- "div",
- {
- staticClass: "content-li more",
- on: {
- click: function($event) {
- return _vm.getTaskLists(index, true)
- }
- }
- },
- [_vm._v(_vm._s(_vm.$L("加载更多")))]
- )
- : _vm._e()
- ],
- 2
- ),
- _vm._v(" "),
- _vm.taskDatas[index].lists.length === 0 &&
- _vm.taskDatas[index].loadIng == 0
- ? _c("div", { staticClass: "content-empty" }, [
- _vm._v(
- _vm._s(_vm.$L("恭喜你!已完成了所有待办"))
- )
- ])
- : _vm._e(),
- _vm._v(" "),
- _vm.taskDatas[index].loadIng > 0
- ? _c(
- "div",
- { staticClass: "content-loading" },
- [_c("w-loading")],
- 1
- )
- : _vm._e()
- ],
- 1
- )
- ])
- ])
- }),
- 0
- )
- }
- ),
- 0
- )
- ]),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "1000" },
- model: {
- value: _vm.todoDrawerShow,
- callback: function($$v) {
- _vm.todoDrawerShow = $$v
- },
- expression: "todoDrawerShow"
- }
- },
- [
- _vm.todoDrawerShow
- ? _c(
- "Tabs",
- {
- model: {
- value: _vm.todoDrawerTab,
- callback: function($$v) {
- _vm.todoDrawerTab = $$v
- },
- expression: "todoDrawerTab"
- }
- },
- [
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("待办日程"), name: "calendar" } },
- [
- _c("todo-calendar", {
- attrs: {
- canload:
- _vm.todoDrawerShow &&
- _vm.todoDrawerTab == "calendar"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- {
- attrs: { label: _vm.$L("已完成的任务"), name: "complete" }
- },
- [
- _c("todo-complete", {
- attrs: {
- canload:
- _vm.todoDrawerShow &&
- _vm.todoDrawerTab == "complete"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- {
- attrs: {
- label: _vm.$L("我关注的任务"),
- name: "attention"
- }
- },
- [
- _c("todo-attention", {
- attrs: {
- canload:
- _vm.todoDrawerShow &&
- _vm.todoDrawerTab == "attention"
- }
- })
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "WDrawer",
- {
- attrs: { maxWidth: "1000" },
- model: {
- value: _vm.todoReportDrawerShow,
- callback: function($$v) {
- _vm.todoReportDrawerShow = $$v
- },
- expression: "todoReportDrawerShow"
- }
- },
- [
- _vm.todoReportDrawerShow
- ? _c(
- "Tabs",
- {
- model: {
- value: _vm.todoReportDrawerTab,
- callback: function($$v) {
- _vm.todoReportDrawerTab = $$v
- },
- expression: "todoReportDrawerTab"
- }
- },
- [
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("我的汇报"), name: "my" } },
- [
- _c("report-my", {
- attrs: {
- canload:
- _vm.todoReportDrawerShow &&
- _vm.todoReportDrawerTab == "my"
- }
- })
- ],
- 1
- ),
- _vm._v(" "),
- _c(
- "TabPane",
- { attrs: { label: _vm.$L("收到的汇报"), name: "receive" } },
- [
- _c("report-receive", {
- attrs: {
- canload:
- _vm.todoReportDrawerShow &&
- _vm.todoReportDrawerTab == "receive"
- }
- })
- ],
- 1
- )
- ],
- 1
- )
- : _vm._e()
- ],
- 1
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- module.exports = { render: render, staticRenderFns: staticRenderFns }
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-hot-reload-api") .rerender("data-v-7ed63c05", module.exports)
- }
- }
- /***/ })
- });
|