3.js 246 KB

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