2.js 313 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558
  1. webpackJsonp([2],{
  2. /***/ 291:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(772)
  8. __webpack_require__(774)
  9. }
  10. var normalizeComponent = __webpack_require__(2)
  11. /* script */
  12. var __vue_script__ = __webpack_require__(776)
  13. /* template */
  14. var __vue_template__ = __webpack_require__(842)
  15. /* template functional */
  16. var __vue_template_functional__ = false
  17. /* styles */
  18. var __vue_styles__ = injectStyle
  19. /* scopeId */
  20. var __vue_scopeId__ = "data-v-4bac3242"
  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/project/panel.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-4bac3242", Component.options)
  40. } else {
  41. hotAPI.reload("data-v-4bac3242", 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. /***/ 325:
  210. /***/ (function(module, exports, __webpack_require__) {
  211. var baseGetTag = __webpack_require__(10),
  212. isObjectLike = __webpack_require__(8);
  213. /** `Object#toString` result references. */
  214. var symbolTag = '[object Symbol]';
  215. /**
  216. * Checks if `value` is classified as a `Symbol` primitive or object.
  217. *
  218. * @static
  219. * @memberOf _
  220. * @since 4.0.0
  221. * @category Lang
  222. * @param {*} value The value to check.
  223. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  224. * @example
  225. *
  226. * _.isSymbol(Symbol.iterator);
  227. * // => true
  228. *
  229. * _.isSymbol('abc');
  230. * // => false
  231. */
  232. function isSymbol(value) {
  233. return typeof value == 'symbol' ||
  234. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  235. }
  236. module.exports = isSymbol;
  237. /***/ }),
  238. /***/ 326:
  239. /***/ (function(module, exports, __webpack_require__) {
  240. var isSymbol = __webpack_require__(325);
  241. /** Used as references for various `Number` constants. */
  242. var INFINITY = 1 / 0;
  243. /**
  244. * Converts `value` to a string key if it's not a string or symbol.
  245. *
  246. * @private
  247. * @param {*} value The value to inspect.
  248. * @returns {string|symbol} Returns the key.
  249. */
  250. function toKey(value) {
  251. if (typeof value == 'string' || isSymbol(value)) {
  252. return value;
  253. }
  254. var result = (value + '');
  255. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  256. }
  257. module.exports = toKey;
  258. /***/ }),
  259. /***/ 344:
  260. /***/ (function(module, exports, __webpack_require__) {
  261. var disposed = false
  262. function injectStyle (ssrContext) {
  263. if (disposed) return
  264. __webpack_require__(345)
  265. }
  266. var normalizeComponent = __webpack_require__(2)
  267. /* script */
  268. var __vue_script__ = __webpack_require__(347)
  269. /* template */
  270. var __vue_template__ = __webpack_require__(348)
  271. /* template functional */
  272. var __vue_template_functional__ = false
  273. /* styles */
  274. var __vue_styles__ = injectStyle
  275. /* scopeId */
  276. var __vue_scopeId__ = "data-v-1b3dd966"
  277. /* moduleIdentifier (server only) */
  278. var __vue_module_identifier__ = null
  279. var Component = normalizeComponent(
  280. __vue_script__,
  281. __vue_template__,
  282. __vue_template_functional__,
  283. __vue_styles__,
  284. __vue_scopeId__,
  285. __vue_module_identifier__
  286. )
  287. Component.options.__file = "resources/assets/js/main/components/project/archived.vue"
  288. /* hot reload */
  289. if (false) {(function () {
  290. var hotAPI = require("vue-hot-reload-api")
  291. hotAPI.install(require("vue"), false)
  292. if (!hotAPI.compatible) return
  293. module.hot.accept()
  294. if (!module.hot.data) {
  295. hotAPI.createRecord("data-v-1b3dd966", Component.options)
  296. } else {
  297. hotAPI.reload("data-v-1b3dd966", Component.options)
  298. }
  299. module.hot.dispose(function (data) {
  300. disposed = true
  301. })
  302. })()}
  303. module.exports = Component.exports
  304. /***/ }),
  305. /***/ 345:
  306. /***/ (function(module, exports, __webpack_require__) {
  307. // style-loader: Adds some css to the DOM by adding a <style> tag
  308. // load the styles
  309. var content = __webpack_require__(346);
  310. if(typeof content === 'string') content = [[module.i, content, '']];
  311. if(content.locals) module.exports = content.locals;
  312. // add the styles to the DOM
  313. var update = __webpack_require__(1)("3653cc78", content, false, {});
  314. // Hot Module Replacement
  315. if(false) {
  316. // When the styles change, update the <style> tags
  317. if(!content.locals) {
  318. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1b3dd966\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./archived.vue", function() {
  319. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-1b3dd966\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./archived.vue");
  320. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  321. update(newContent);
  322. });
  323. }
  324. // When the module is disposed, remove the <style> tags
  325. module.hot.dispose(function() { update(); });
  326. }
  327. /***/ }),
  328. /***/ 346:
  329. /***/ (function(module, exports, __webpack_require__) {
  330. exports = module.exports = __webpack_require__(0)(false);
  331. // imports
  332. // module
  333. exports.push([module.i, "\n.project-archived .tableFill[data-v-1b3dd966] {\n margin: 12px 12px 20px;\n}\n", ""]);
  334. // exports
  335. /***/ }),
  336. /***/ 347:
  337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  338. "use strict";
  339. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  340. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  341. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  342. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  343. //
  344. //
  345. //
  346. //
  347. //
  348. //
  349. //
  350. //
  351. //
  352. //
  353. //
  354. //
  355. //
  356. //
  357. //
  358. //
  359. //
  360. //
  361. /**
  362. * 项目已归档任务
  363. */
  364. /* harmony default export */ __webpack_exports__["default"] = ({
  365. name: 'ProjectArchived',
  366. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  367. props: {
  368. projectid: {
  369. default: 0
  370. },
  371. canload: {
  372. type: Boolean,
  373. default: true
  374. }
  375. },
  376. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  377. data: function data() {
  378. return {
  379. loadYet: false,
  380. loadIng: 0,
  381. columns: [],
  382. lists: [],
  383. listPage: 1,
  384. listTotal: 0,
  385. noDataText: ""
  386. };
  387. },
  388. mounted: function mounted() {
  389. var _this = this;
  390. if (this.canload) {
  391. this.loadYet = true;
  392. this.getLists(true);
  393. }
  394. $A.setOnTaskInfoListener('components/project/archived', function (act, detail) {
  395. if (detail.projectid != _this.projectid) {
  396. return;
  397. }
  398. //
  399. _this.lists.some(function (task, i) {
  400. if (task.id == detail.id) {
  401. _this.lists.splice(i, 1, detail);
  402. return true;
  403. }
  404. });
  405. //
  406. switch (act) {
  407. case "delete": // 删除任务
  408. case "unarchived":
  409. // 取消归档
  410. _this.lists.some(function (task, i) {
  411. if (task.id == detail.id) {
  412. _this.lists.splice(i, 1);
  413. return true;
  414. }
  415. });
  416. break;
  417. case "archived":
  418. // 归档
  419. var has = false;
  420. _this.lists.some(function (task) {
  421. if (task.id == detail.id) {
  422. return has = true;
  423. }
  424. });
  425. if (!has) {
  426. _this.lists.unshift(detail);
  427. }
  428. break;
  429. }
  430. });
  431. },
  432. watch: {
  433. projectid: function projectid() {
  434. if (this.loadYet) {
  435. this.getLists(true);
  436. }
  437. },
  438. canload: function canload(val) {
  439. if (val && !this.loadYet) {
  440. this.loadYet = true;
  441. this.getLists(true);
  442. }
  443. }
  444. },
  445. methods: {
  446. initLanguage: function initLanguage() {
  447. var _this2 = this;
  448. this.noDataText = this.$L("数据加载中.....");
  449. this.columns = [{
  450. "title": this.$L("任务名称"),
  451. "key": 'title',
  452. "minWidth": 120,
  453. render: function render(h, params) {
  454. return _this2.renderTaskTitle(h, params);
  455. }
  456. }, {
  457. "title": this.$L("创建人"),
  458. "key": 'createuser',
  459. "minWidth": 80,
  460. render: function render(h, params) {
  461. return h('UserView', {
  462. props: {
  463. username: params.row.createuser
  464. }
  465. });
  466. }
  467. }, {
  468. "title": this.$L("负责人"),
  469. "key": 'username',
  470. "minWidth": 80,
  471. render: function render(h, params) {
  472. return h('UserView', {
  473. props: {
  474. username: params.row.username
  475. }
  476. });
  477. }
  478. }, {
  479. "title": this.$L("完成"),
  480. "minWidth": 70,
  481. "align": "center",
  482. render: function render(h, params) {
  483. return h('span', params.row.complete ? '√' : '-');
  484. }
  485. }, {
  486. "title": this.$L("归档时间"),
  487. "width": 160,
  488. render: function render(h, params) {
  489. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.archiveddate));
  490. }
  491. }, {
  492. "title": this.$L("操作"),
  493. "key": 'action',
  494. "width": 100,
  495. "align": 'center',
  496. render: function render(h, params) {
  497. return h('Button', {
  498. props: {
  499. type: 'primary',
  500. size: 'small'
  501. },
  502. style: {
  503. fontSize: '12px'
  504. },
  505. on: {
  506. click: function click() {
  507. _this2.$Modal.confirm({
  508. title: _this2.$L('取消归档'),
  509. content: _this2.$L('你确定要取消归档吗?'),
  510. loading: true,
  511. onOk: function onOk() {
  512. $A.apiAjax({
  513. url: 'project/task/edit',
  514. method: 'post',
  515. data: {
  516. act: 'unarchived',
  517. taskid: params.row.id
  518. },
  519. error: function error() {
  520. _this2.$Modal.remove();
  521. alert(_this2.$L('网络繁忙,请稍后再试!'));
  522. },
  523. success: function success(res) {
  524. _this2.$Modal.remove();
  525. _this2.getLists();
  526. setTimeout(function () {
  527. if (res.ret === 1) {
  528. _this2.$Message.success(res.msg);
  529. $A.triggerTaskInfoListener('unarchived', res.data);
  530. $A.triggerTaskInfoChange(params.row.id);
  531. } else {
  532. _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
  533. }
  534. }, 350);
  535. }
  536. });
  537. }
  538. });
  539. }
  540. }
  541. }, _this2.$L('取消归档'));
  542. }
  543. }];
  544. },
  545. setPage: function setPage(page) {
  546. this.listPage = page;
  547. this.getLists();
  548. },
  549. setPageSize: function setPageSize(size) {
  550. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  551. this.listPageSize = size;
  552. this.getLists();
  553. }
  554. },
  555. getLists: function getLists(resetLoad) {
  556. var _this3 = this;
  557. if (resetLoad === true) {
  558. this.listPage = 1;
  559. }
  560. if (this.projectid == 0) {
  561. this.lists = [];
  562. this.listTotal = 0;
  563. this.noDataText = this.$L("没有相关的数据");
  564. return;
  565. }
  566. this.loadIng++;
  567. this.noDataText = this.$L("数据加载中.....");
  568. $A.apiAjax({
  569. url: 'project/task/lists',
  570. data: {
  571. page: Math.max(this.listPage, 1),
  572. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  573. projectid: this.projectid,
  574. archived: '已归档'
  575. },
  576. complete: function complete() {
  577. _this3.loadIng--;
  578. },
  579. error: function error() {
  580. _this3.noDataText = _this3.$L("数据加载失败!");
  581. },
  582. success: function success(res) {
  583. if (res.ret === 1) {
  584. _this3.lists = res.data.lists;
  585. _this3.listTotal = res.data.total;
  586. _this3.noDataText = _this3.$L("没有相关的数据");
  587. } else {
  588. _this3.lists = [];
  589. _this3.listTotal = 0;
  590. _this3.noDataText = res.msg;
  591. }
  592. }
  593. });
  594. }
  595. }
  596. });
  597. /***/ }),
  598. /***/ 348:
  599. /***/ (function(module, exports, __webpack_require__) {
  600. var render = function() {
  601. var _vm = this
  602. var _h = _vm.$createElement
  603. var _c = _vm._self._c || _h
  604. return _c("drawer-tabs-container", [
  605. _c(
  606. "div",
  607. { staticClass: "project-archived" },
  608. [
  609. _c("Table", {
  610. ref: "tableRef",
  611. staticClass: "tableFill",
  612. attrs: {
  613. columns: _vm.columns,
  614. data: _vm.lists,
  615. loading: _vm.loadIng > 0,
  616. "no-data-text": _vm.noDataText,
  617. stripe: ""
  618. }
  619. }),
  620. _vm._v(" "),
  621. _c("Page", {
  622. staticClass: "pageBox",
  623. attrs: {
  624. total: _vm.listTotal,
  625. current: _vm.listPage,
  626. disabled: _vm.loadIng > 0,
  627. "page-size-opts": [10, 20, 30, 50, 100],
  628. placement: "top",
  629. "show-elevator": "",
  630. "show-sizer": "",
  631. "show-total": "",
  632. transfer: "",
  633. simple: _vm.windowMax768
  634. },
  635. on: {
  636. "on-change": _vm.setPage,
  637. "on-page-size-change": _vm.setPageSize
  638. }
  639. })
  640. ],
  641. 1
  642. )
  643. ])
  644. }
  645. var staticRenderFns = []
  646. render._withStripped = true
  647. module.exports = { render: render, staticRenderFns: staticRenderFns }
  648. if (false) {
  649. module.hot.accept()
  650. if (module.hot.data) {
  651. require("vue-hot-reload-api") .rerender("data-v-1b3dd966", module.exports)
  652. }
  653. }
  654. /***/ }),
  655. /***/ 349:
  656. /***/ (function(module, exports, __webpack_require__) {
  657. var disposed = false
  658. function injectStyle (ssrContext) {
  659. if (disposed) return
  660. __webpack_require__(350)
  661. }
  662. var normalizeComponent = __webpack_require__(2)
  663. /* script */
  664. var __vue_script__ = __webpack_require__(352)
  665. /* template */
  666. var __vue_template__ = __webpack_require__(353)
  667. /* template functional */
  668. var __vue_template_functional__ = false
  669. /* styles */
  670. var __vue_styles__ = injectStyle
  671. /* scopeId */
  672. var __vue_scopeId__ = "data-v-720a9bad"
  673. /* moduleIdentifier (server only) */
  674. var __vue_module_identifier__ = null
  675. var Component = normalizeComponent(
  676. __vue_script__,
  677. __vue_template__,
  678. __vue_template_functional__,
  679. __vue_styles__,
  680. __vue_scopeId__,
  681. __vue_module_identifier__
  682. )
  683. Component.options.__file = "resources/assets/js/main/components/project/users.vue"
  684. /* hot reload */
  685. if (false) {(function () {
  686. var hotAPI = require("vue-hot-reload-api")
  687. hotAPI.install(require("vue"), false)
  688. if (!hotAPI.compatible) return
  689. module.hot.accept()
  690. if (!module.hot.data) {
  691. hotAPI.createRecord("data-v-720a9bad", Component.options)
  692. } else {
  693. hotAPI.reload("data-v-720a9bad", Component.options)
  694. }
  695. module.hot.dispose(function (data) {
  696. disposed = true
  697. })
  698. })()}
  699. module.exports = Component.exports
  700. /***/ }),
  701. /***/ 350:
  702. /***/ (function(module, exports, __webpack_require__) {
  703. // style-loader: Adds some css to the DOM by adding a <style> tag
  704. // load the styles
  705. var content = __webpack_require__(351);
  706. if(typeof content === 'string') content = [[module.i, content, '']];
  707. if(content.locals) module.exports = content.locals;
  708. // add the styles to the DOM
  709. var update = __webpack_require__(1)("6db19cd1", content, false, {});
  710. // Hot Module Replacement
  711. if(false) {
  712. // When the styles change, update the <style> tags
  713. if(!content.locals) {
  714. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-720a9bad\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue", function() {
  715. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-720a9bad\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./users.vue");
  716. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  717. update(newContent);
  718. });
  719. }
  720. // When the module is disposed, remove the <style> tags
  721. module.hot.dispose(function() { update(); });
  722. }
  723. /***/ }),
  724. /***/ 351:
  725. /***/ (function(module, exports, __webpack_require__) {
  726. exports = module.exports = __webpack_require__(0)(false);
  727. // imports
  728. // module
  729. exports.push([module.i, "\n.project-users[data-v-720a9bad] {\n padding: 0 12px;\n}\n.project-users .tableFill[data-v-720a9bad] {\n margin: 12px 0 20px;\n}\n", ""]);
  730. // exports
  731. /***/ }),
  732. /***/ 352:
  733. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  734. "use strict";
  735. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  736. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  737. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  738. //
  739. //
  740. //
  741. //
  742. //
  743. //
  744. //
  745. //
  746. //
  747. //
  748. //
  749. //
  750. //
  751. //
  752. //
  753. //
  754. //
  755. //
  756. //
  757. //
  758. //
  759. /* harmony default export */ __webpack_exports__["default"] = ({
  760. name: 'ProjectUsers',
  761. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  762. props: {
  763. projectid: {
  764. default: 0
  765. },
  766. canload: {
  767. type: Boolean,
  768. default: true
  769. }
  770. },
  771. data: function data() {
  772. return {
  773. loadYet: false,
  774. loadIng: 0,
  775. columns: [],
  776. lists: [],
  777. listPage: 1,
  778. listTotal: 0,
  779. noDataText: ""
  780. };
  781. },
  782. mounted: function mounted() {
  783. if (this.canload) {
  784. this.loadYet = true;
  785. this.getLists(true);
  786. }
  787. },
  788. watch: {
  789. projectid: function projectid() {
  790. if (this.loadYet) {
  791. this.getLists(true);
  792. }
  793. },
  794. canload: function canload(val) {
  795. if (val && !this.loadYet) {
  796. this.loadYet = true;
  797. this.getLists(true);
  798. }
  799. }
  800. },
  801. methods: {
  802. initLanguage: function initLanguage() {
  803. var _this = this;
  804. this.noDataText = this.$L("数据加载中.....");
  805. this.columns = [{
  806. "title": this.$L("头像"),
  807. "minWidth": 60,
  808. "maxWidth": 100,
  809. render: function render(h, params) {
  810. return h('UserImg', {
  811. props: {
  812. info: params.row
  813. },
  814. style: {
  815. width: "30px",
  816. height: "30px",
  817. fontSize: "16px",
  818. lineHeight: "30px",
  819. borderRadius: "15px",
  820. verticalAlign: "middle"
  821. }
  822. });
  823. }
  824. }, {
  825. "title": this.$L("用户名"),
  826. "key": 'username',
  827. "minWidth": 80,
  828. "ellipsis": true
  829. }, {
  830. "title": this.$L("昵称"),
  831. "minWidth": 80,
  832. "ellipsis": true,
  833. render: function render(h, params) {
  834. return h('span', params.row.nickname || '-');
  835. }
  836. }, {
  837. "title": this.$L("职位/职称"),
  838. "minWidth": 100,
  839. "ellipsis": true,
  840. render: function render(h, params) {
  841. return h('span', params.row.profession || '-');
  842. }
  843. }, {
  844. "title": this.$L("成员角色"),
  845. "minWidth": 100,
  846. render: function render(h, params) {
  847. return h('span', params.row.isowner ? _this.$L('项目负责人') : _this.$L('成员'));
  848. }
  849. }, {
  850. "title": this.$L("加入时间"),
  851. "width": 160,
  852. render: function render(h, params) {
  853. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  854. }
  855. }, {
  856. "title": this.$L("操作"),
  857. "key": 'action',
  858. "width": 80,
  859. "align": 'center',
  860. render: function render(h, params) {
  861. return h('Button', {
  862. props: {
  863. type: 'primary',
  864. size: 'small'
  865. },
  866. style: {
  867. fontSize: '12px'
  868. },
  869. on: {
  870. click: function click() {
  871. _this.$Modal.confirm({
  872. title: _this.$L('移出成员'),
  873. content: _this.$L('你确定要将此成员移出项目吗?'),
  874. loading: true,
  875. onOk: function onOk() {
  876. $A.apiAjax({
  877. url: 'project/users/join',
  878. data: {
  879. act: 'delete',
  880. projectid: params.row.projectid,
  881. username: params.row.username
  882. },
  883. error: function error() {
  884. _this.$Modal.remove();
  885. alert(_this.$L('网络繁忙,请稍后再试!'));
  886. },
  887. success: function success(res) {
  888. _this.$Modal.remove();
  889. _this.getLists();
  890. setTimeout(function () {
  891. if (res.ret === 1) {
  892. _this.$Message.success(res.msg);
  893. } else {
  894. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  895. }
  896. }, 350);
  897. }
  898. });
  899. }
  900. });
  901. }
  902. }
  903. }, _this.$L('删除'));
  904. }
  905. }];
  906. },
  907. setPage: function setPage(page) {
  908. this.listPage = page;
  909. this.getLists();
  910. },
  911. setPageSize: function setPageSize(size) {
  912. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  913. this.listPageSize = size;
  914. this.getLists();
  915. }
  916. },
  917. getLists: function getLists(resetLoad) {
  918. var _this2 = this;
  919. if (resetLoad === true) {
  920. this.listPage = 1;
  921. }
  922. if (this.projectid == 0) {
  923. this.lists = [];
  924. this.listTotal = 0;
  925. this.noDataText = this.$L("没有相关的数据");
  926. return;
  927. }
  928. this.loadIng++;
  929. this.noDataText = this.$L("数据加载中.....");
  930. $A.apiAjax({
  931. url: 'project/users/lists',
  932. data: {
  933. page: Math.max(this.listPage, 1),
  934. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  935. projectid: this.projectid
  936. },
  937. complete: function complete() {
  938. _this2.loadIng--;
  939. },
  940. error: function error() {
  941. _this2.noDataText = _this2.$L("数据加载失败!");
  942. },
  943. success: function success(res) {
  944. if (res.ret === 1) {
  945. _this2.lists = res.data.lists;
  946. _this2.listTotal = res.data.total;
  947. _this2.noDataText = _this2.$L("没有相关的数据");
  948. } else {
  949. _this2.lists = [];
  950. _this2.listTotal = 0;
  951. _this2.noDataText = res.msg;
  952. }
  953. }
  954. });
  955. },
  956. addUser: function addUser() {
  957. var _this3 = this;
  958. this.userValue = "";
  959. this.$Modal.confirm({
  960. render: function render(h) {
  961. return h('div', [h('div', {
  962. style: {
  963. fontSize: '16px',
  964. fontWeight: '500',
  965. marginBottom: '20px'
  966. }
  967. }, _this3.$L('添加成员')), h('UserInput', {
  968. props: {
  969. value: _this3.userValue,
  970. multiple: true,
  971. noprojectid: _this3.projectid,
  972. placeholder: _this3.$L('请输入昵称/用户名搜索')
  973. },
  974. on: {
  975. input: function input(val) {
  976. _this3.userValue = val;
  977. }
  978. }
  979. })]);
  980. },
  981. loading: true,
  982. onOk: function onOk() {
  983. if (_this3.userValue) {
  984. var username = _this3.userValue;
  985. $A.apiAjax({
  986. url: 'project/users/join',
  987. data: {
  988. act: 'join',
  989. projectid: _this3.projectid,
  990. username: username
  991. },
  992. error: function error() {
  993. _this3.$Modal.remove();
  994. alert(_this3.$L('网络繁忙,请稍后再试!'));
  995. },
  996. success: function success(res) {
  997. _this3.$Modal.remove();
  998. _this3.getLists();
  999. setTimeout(function () {
  1000. if (res.ret === 1) {
  1001. _this3.$Message.success(res.msg);
  1002. } else {
  1003. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  1004. }
  1005. }, 350);
  1006. }
  1007. });
  1008. } else {
  1009. _this3.$Modal.remove();
  1010. }
  1011. }
  1012. });
  1013. }
  1014. }
  1015. });
  1016. /***/ }),
  1017. /***/ 353:
  1018. /***/ (function(module, exports, __webpack_require__) {
  1019. var render = function() {
  1020. var _vm = this
  1021. var _h = _vm.$createElement
  1022. var _c = _vm._self._c || _h
  1023. return _c("drawer-tabs-container", [
  1024. _c(
  1025. "div",
  1026. { staticClass: "project-users" },
  1027. [
  1028. _c(
  1029. "Button",
  1030. {
  1031. attrs: {
  1032. loading: _vm.loadIng > 0,
  1033. type: "primary",
  1034. icon: "md-add"
  1035. },
  1036. on: { click: _vm.addUser }
  1037. },
  1038. [_vm._v(_vm._s(_vm.$L("添加成员")))]
  1039. ),
  1040. _vm._v(" "),
  1041. _c("Table", {
  1042. ref: "tableRef",
  1043. staticClass: "tableFill",
  1044. attrs: {
  1045. columns: _vm.columns,
  1046. data: _vm.lists,
  1047. loading: _vm.loadIng > 0,
  1048. "no-data-text": _vm.noDataText,
  1049. stripe: ""
  1050. }
  1051. }),
  1052. _vm._v(" "),
  1053. _c("Page", {
  1054. staticClass: "pageBox",
  1055. attrs: {
  1056. total: _vm.listTotal,
  1057. current: _vm.listPage,
  1058. disabled: _vm.loadIng > 0,
  1059. "page-size-opts": [10, 20, 30, 50, 100],
  1060. placement: "top",
  1061. "show-elevator": "",
  1062. "show-sizer": "",
  1063. "show-total": "",
  1064. transfer: "",
  1065. simple: _vm.windowMax768
  1066. },
  1067. on: {
  1068. "on-change": _vm.setPage,
  1069. "on-page-size-change": _vm.setPageSize
  1070. }
  1071. })
  1072. ],
  1073. 1
  1074. )
  1075. ])
  1076. }
  1077. var staticRenderFns = []
  1078. render._withStripped = true
  1079. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1080. if (false) {
  1081. module.hot.accept()
  1082. if (module.hot.data) {
  1083. require("vue-hot-reload-api") .rerender("data-v-720a9bad", module.exports)
  1084. }
  1085. }
  1086. /***/ }),
  1087. /***/ 354:
  1088. /***/ (function(module, exports, __webpack_require__) {
  1089. var disposed = false
  1090. function injectStyle (ssrContext) {
  1091. if (disposed) return
  1092. __webpack_require__(355)
  1093. }
  1094. var normalizeComponent = __webpack_require__(2)
  1095. /* script */
  1096. var __vue_script__ = __webpack_require__(357)
  1097. /* template */
  1098. var __vue_template__ = __webpack_require__(358)
  1099. /* template functional */
  1100. var __vue_template_functional__ = false
  1101. /* styles */
  1102. var __vue_styles__ = injectStyle
  1103. /* scopeId */
  1104. var __vue_scopeId__ = "data-v-4466db4e"
  1105. /* moduleIdentifier (server only) */
  1106. var __vue_module_identifier__ = null
  1107. var Component = normalizeComponent(
  1108. __vue_script__,
  1109. __vue_template__,
  1110. __vue_template_functional__,
  1111. __vue_styles__,
  1112. __vue_scopeId__,
  1113. __vue_module_identifier__
  1114. )
  1115. Component.options.__file = "resources/assets/js/main/components/project/statistics.vue"
  1116. /* hot reload */
  1117. if (false) {(function () {
  1118. var hotAPI = require("vue-hot-reload-api")
  1119. hotAPI.install(require("vue"), false)
  1120. if (!hotAPI.compatible) return
  1121. module.hot.accept()
  1122. if (!module.hot.data) {
  1123. hotAPI.createRecord("data-v-4466db4e", Component.options)
  1124. } else {
  1125. hotAPI.reload("data-v-4466db4e", Component.options)
  1126. }
  1127. module.hot.dispose(function (data) {
  1128. disposed = true
  1129. })
  1130. })()}
  1131. module.exports = Component.exports
  1132. /***/ }),
  1133. /***/ 355:
  1134. /***/ (function(module, exports, __webpack_require__) {
  1135. // style-loader: Adds some css to the DOM by adding a <style> tag
  1136. // load the styles
  1137. var content = __webpack_require__(356);
  1138. if(typeof content === 'string') content = [[module.i, content, '']];
  1139. if(content.locals) module.exports = content.locals;
  1140. // add the styles to the DOM
  1141. var update = __webpack_require__(1)("ffb4ffa8", content, false, {});
  1142. // Hot Module Replacement
  1143. if(false) {
  1144. // When the styles change, update the <style> tags
  1145. if(!content.locals) {
  1146. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4466db4e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./statistics.vue", function() {
  1147. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4466db4e\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./statistics.vue");
  1148. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1149. update(newContent);
  1150. });
  1151. }
  1152. // When the module is disposed, remove the <style> tags
  1153. module.hot.dispose(function() { update(); });
  1154. }
  1155. /***/ }),
  1156. /***/ 356:
  1157. /***/ (function(module, exports, __webpack_require__) {
  1158. exports = module.exports = __webpack_require__(0)(false);
  1159. // imports
  1160. // module
  1161. exports.push([module.i, "\n.project-statistics .tableFill[data-v-4466db4e] {\n margin: 12px 12px 20px;\n}\n.project-statistics ul.state-overview[data-v-4466db4e] {\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.project-statistics ul.state-overview > li[data-v-4466db4e] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n cursor: pointer;\n margin: 0 10px 5px;\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e] {\n position: relative;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n border-radius: 6px;\n color: #ffffff;\n height: 110px;\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-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.project-statistics ul.state-overview > li > div.terques[data-v-4466db4e] {\n background: #17BE6B;\n}\n.project-statistics ul.state-overview > li > div.purple[data-v-4466db4e] {\n background: #A218A5;\n}\n.project-statistics ul.state-overview > li > div.red[data-v-4466db4e] {\n background: #ED3F14;\n}\n.project-statistics ul.state-overview > li > div.yellow[data-v-4466db4e] {\n background: #FF9900;\n}\n.project-statistics ul.state-overview > li > div.blue[data-v-4466db4e] {\n background: #2D8CF0;\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e]:hover {\n -webkit-box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.38);\n box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.38);\n}\n.project-statistics ul.state-overview > li > div[data-v-4466db4e]:after {\n position: absolute;\n content: \"\";\n left: 50%;\n bottom: 3px;\n width: 0;\n height: 2px;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n background-color: #FFFFFF;\n border-radius: 2px;\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n opacity: 0;\n}\n.project-statistics ul.state-overview > li > div > h1[data-v-4466db4e] {\n font-size: 36px;\n margin: -2px 0 0;\n padding: 0;\n font-weight: 500;\n}\n.project-statistics ul.state-overview > li > div > p[data-v-4466db4e] {\n font-size: 18px;\n margin: 0;\n padding: 0;\n}\n.project-statistics ul.state-overview > li.active > div[data-v-4466db4e]:after {\n width: 90%;\n opacity: 1;\n}\n", ""]);
  1162. // exports
  1163. /***/ }),
  1164. /***/ 357:
  1165. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1166. "use strict";
  1167. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1168. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  1169. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  1170. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  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. /* harmony default export */ __webpack_exports__["default"] = ({
  1298. name: 'ProjectStatistics',
  1299. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  1300. props: {
  1301. projectid: {
  1302. default: 0
  1303. },
  1304. canload: {
  1305. type: Boolean,
  1306. default: true
  1307. }
  1308. },
  1309. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  1310. data: function data() {
  1311. return {
  1312. loadYet: false,
  1313. loadIng: 0,
  1314. columns: [],
  1315. taskType: '未完成',
  1316. lists: [],
  1317. listPage: 1,
  1318. listTotal: 0,
  1319. noDataText: "",
  1320. statistics_unfinished: 0,
  1321. statistics_overdue: 0,
  1322. statistics_complete: 0
  1323. };
  1324. },
  1325. mounted: function mounted() {
  1326. var _this = this;
  1327. if (this.canload) {
  1328. this.loadYet = true;
  1329. this.getLists(true);
  1330. }
  1331. $A.setOnTaskInfoListener('components/project/statistics', function (act, detail) {
  1332. if (detail.projectid != _this.projectid) {
  1333. return;
  1334. }
  1335. //
  1336. _this.lists.some(function (task, i) {
  1337. if (task.id == detail.id) {
  1338. _this.lists.splice(i, 1, detail);
  1339. return true;
  1340. }
  1341. });
  1342. //
  1343. switch (act) {
  1344. case "delete": // 删除任务
  1345. case "archived":
  1346. // 归档
  1347. _this.lists.some(function (task, i) {
  1348. if (task.id == detail.id) {
  1349. _this.lists.splice(i, 1);
  1350. if (task.complete) {
  1351. _this.statistics_complete--;
  1352. } else {
  1353. _this.statistics_unfinished++;
  1354. }
  1355. return true;
  1356. }
  1357. });
  1358. break;
  1359. case "unarchived":
  1360. // 取消归档
  1361. var has = false;
  1362. _this.lists.some(function (task) {
  1363. if (task.id == detail.id) {
  1364. if (task.complete) {
  1365. _this.statistics_complete++;
  1366. } else {
  1367. _this.statistics_unfinished--;
  1368. }
  1369. return has = true;
  1370. }
  1371. });
  1372. if (!has) {
  1373. _this.lists.unshift(detail);
  1374. }
  1375. break;
  1376. case "complete":
  1377. // 标记完成
  1378. _this.statistics_complete++;
  1379. _this.statistics_unfinished--;
  1380. break;
  1381. case "unfinished":
  1382. // 标记未完成
  1383. _this.statistics_complete--;
  1384. _this.statistics_unfinished++;
  1385. break;
  1386. }
  1387. });
  1388. },
  1389. watch: {
  1390. projectid: function projectid() {
  1391. if (this.loadYet) {
  1392. this.getLists(true);
  1393. }
  1394. },
  1395. canload: function canload(val) {
  1396. if (val && !this.loadYet) {
  1397. this.loadYet = true;
  1398. this.getLists(true);
  1399. }
  1400. },
  1401. taskType: function taskType() {
  1402. if (this.loadYet) {
  1403. this.getLists(true);
  1404. }
  1405. }
  1406. },
  1407. methods: {
  1408. initLanguage: function initLanguage() {
  1409. var _this2 = this;
  1410. this.noDataText = this.$L("数据加载中.....");
  1411. this.columns = [{
  1412. "title": this.$L("任务名称"),
  1413. "key": 'title',
  1414. "minWidth": 120,
  1415. render: function render(h, params) {
  1416. return _this2.renderTaskTitle(h, params);
  1417. }
  1418. }, {
  1419. "title": this.$L("创建人"),
  1420. "key": 'createuser',
  1421. "minWidth": 80,
  1422. render: function render(h, params) {
  1423. return h('UserView', {
  1424. props: {
  1425. username: params.row.createuser
  1426. }
  1427. });
  1428. }
  1429. }, {
  1430. "title": this.$L("负责人"),
  1431. "key": 'username',
  1432. "minWidth": 80,
  1433. render: function render(h, params) {
  1434. return h('UserView', {
  1435. props: {
  1436. username: params.row.username
  1437. }
  1438. });
  1439. }
  1440. }, {
  1441. "title": this.$L("完成"),
  1442. "minWidth": 70,
  1443. "align": "center",
  1444. render: function render(h, params) {
  1445. return h('span', params.row.complete ? '√' : '-');
  1446. }
  1447. }, {
  1448. "title": this.$L("创建时间"),
  1449. "width": 160,
  1450. render: function render(h, params) {
  1451. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  1452. }
  1453. }];
  1454. },
  1455. setTaskType: function setTaskType(type) {
  1456. this.taskType = type;
  1457. },
  1458. setPage: function setPage(page) {
  1459. this.listPage = page;
  1460. this.getLists();
  1461. },
  1462. setPageSize: function setPageSize(size) {
  1463. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1464. this.listPageSize = size;
  1465. this.getLists();
  1466. }
  1467. },
  1468. getLists: function getLists(resetLoad) {
  1469. var _this3 = this;
  1470. if (resetLoad === true) {
  1471. this.listPage = 1;
  1472. }
  1473. if (this.projectid == 0) {
  1474. this.lists = [];
  1475. this.listTotal = 0;
  1476. this.noDataText = this.$L("没有相关的数据");
  1477. return;
  1478. }
  1479. this.loadIng++;
  1480. var tempType = this.taskType;
  1481. this.noDataText = this.$L("数据加载中.....");
  1482. $A.apiAjax({
  1483. url: 'project/task/lists',
  1484. data: {
  1485. page: Math.max(this.listPage, 1),
  1486. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  1487. projectid: this.projectid,
  1488. type: this.taskType,
  1489. statistics: 1
  1490. },
  1491. complete: function complete() {
  1492. _this3.loadIng--;
  1493. },
  1494. error: function error() {
  1495. _this3.noDataText = _this3.$L("数据加载失败!");
  1496. },
  1497. success: function success(res) {
  1498. if (tempType != _this3.taskType) {
  1499. return;
  1500. }
  1501. if (res.ret === 1) {
  1502. _this3.lists = res.data.lists;
  1503. _this3.listTotal = res.data.total;
  1504. _this3.noDataText = _this3.$L("没有相关的数据");
  1505. } else {
  1506. _this3.lists = [];
  1507. _this3.listTotal = 0;
  1508. _this3.noDataText = res.msg;
  1509. }
  1510. _this3.statistics_unfinished = res.data.statistics_unfinished || 0;
  1511. _this3.statistics_overdue = res.data.statistics_overdue || 0;
  1512. _this3.statistics_complete = res.data.statistics_complete || 0;
  1513. }
  1514. });
  1515. }
  1516. }
  1517. });
  1518. /***/ }),
  1519. /***/ 358:
  1520. /***/ (function(module, exports, __webpack_require__) {
  1521. var render = function() {
  1522. var _vm = this
  1523. var _h = _vm.$createElement
  1524. var _c = _vm._self._c || _h
  1525. return _c("drawer-tabs-container", [
  1526. _c(
  1527. "div",
  1528. { staticClass: "project-statistics" },
  1529. [
  1530. _c("ul", { staticClass: "state-overview" }, [
  1531. _c(
  1532. "li",
  1533. {
  1534. class: [_vm.taskType === "未完成" ? "active" : ""],
  1535. on: {
  1536. click: function($event) {
  1537. _vm.taskType = "未完成"
  1538. }
  1539. }
  1540. },
  1541. [
  1542. _c("div", { staticClass: "yellow" }, [
  1543. _c("h1", { staticClass: "count" }, [
  1544. _vm._v(_vm._s(_vm.statistics_unfinished))
  1545. ]),
  1546. _vm._v(" "),
  1547. _c("p", [_vm._v(_vm._s(_vm.$L("未完成任务")))])
  1548. ])
  1549. ]
  1550. ),
  1551. _vm._v(" "),
  1552. _c(
  1553. "li",
  1554. {
  1555. class: [_vm.taskType === "已超期" ? "active" : ""],
  1556. on: {
  1557. click: function($event) {
  1558. _vm.taskType = "已超期"
  1559. }
  1560. }
  1561. },
  1562. [
  1563. _c("div", { staticClass: "red" }, [
  1564. _c("h1", { staticClass: "count" }, [
  1565. _vm._v(_vm._s(_vm.statistics_overdue))
  1566. ]),
  1567. _vm._v(" "),
  1568. _c("p", [_vm._v(_vm._s(_vm.$L("超期任务")))])
  1569. ])
  1570. ]
  1571. ),
  1572. _vm._v(" "),
  1573. _c(
  1574. "li",
  1575. {
  1576. class: [_vm.taskType === "已完成" ? "active" : ""],
  1577. on: {
  1578. click: function($event) {
  1579. _vm.taskType = "已完成"
  1580. }
  1581. }
  1582. },
  1583. [
  1584. _c("div", { staticClass: "terques" }, [
  1585. _c("h1", { staticClass: "count" }, [
  1586. _vm._v(_vm._s(_vm.statistics_complete))
  1587. ]),
  1588. _vm._v(" "),
  1589. _c("p", [_vm._v(_vm._s(_vm.$L("已完成任务")))])
  1590. ])
  1591. ]
  1592. )
  1593. ]),
  1594. _vm._v(" "),
  1595. _c("Table", {
  1596. ref: "tableRef",
  1597. staticClass: "tableFill",
  1598. attrs: {
  1599. columns: _vm.columns,
  1600. data: _vm.lists,
  1601. loading: _vm.loadIng > 0,
  1602. "no-data-text": _vm.noDataText,
  1603. stripe: ""
  1604. }
  1605. }),
  1606. _vm._v(" "),
  1607. _c("Page", {
  1608. staticClass: "pageBox",
  1609. attrs: {
  1610. total: _vm.listTotal,
  1611. current: _vm.listPage,
  1612. disabled: _vm.loadIng > 0,
  1613. "page-size-opts": [10, 20, 30, 50, 100],
  1614. placement: "top",
  1615. "show-elevator": "",
  1616. "show-sizer": "",
  1617. "show-total": "",
  1618. transfer: "",
  1619. simple: _vm.windowMax768
  1620. },
  1621. on: {
  1622. "on-change": _vm.setPage,
  1623. "on-page-size-change": _vm.setPageSize
  1624. }
  1625. })
  1626. ],
  1627. 1
  1628. )
  1629. ])
  1630. }
  1631. var staticRenderFns = []
  1632. render._withStripped = true
  1633. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1634. if (false) {
  1635. module.hot.accept()
  1636. if (module.hot.data) {
  1637. require("vue-hot-reload-api") .rerender("data-v-4466db4e", module.exports)
  1638. }
  1639. }
  1640. /***/ }),
  1641. /***/ 359:
  1642. /***/ (function(module, exports, __webpack_require__) {
  1643. var castPath = __webpack_require__(438),
  1644. toKey = __webpack_require__(326);
  1645. /**
  1646. * The base implementation of `_.get` without support for default values.
  1647. *
  1648. * @private
  1649. * @param {Object} object The object to query.
  1650. * @param {Array|string} path The path of the property to get.
  1651. * @returns {*} Returns the resolved value.
  1652. */
  1653. function baseGet(object, path) {
  1654. path = castPath(path, object);
  1655. var index = 0,
  1656. length = path.length;
  1657. while (object != null && index < length) {
  1658. object = object[toKey(path[index++])];
  1659. }
  1660. return (index && index == length) ? object : undefined;
  1661. }
  1662. module.exports = baseGet;
  1663. /***/ }),
  1664. /***/ 360:
  1665. /***/ (function(module, exports, __webpack_require__) {
  1666. var isArray = __webpack_require__(16),
  1667. isSymbol = __webpack_require__(325);
  1668. /** Used to match property names within property paths. */
  1669. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  1670. reIsPlainProp = /^\w*$/;
  1671. /**
  1672. * Checks if `value` is a property name and not a property path.
  1673. *
  1674. * @private
  1675. * @param {*} value The value to check.
  1676. * @param {Object} [object] The object to query keys on.
  1677. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  1678. */
  1679. function isKey(value, object) {
  1680. if (isArray(value)) {
  1681. return false;
  1682. }
  1683. var type = typeof value;
  1684. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  1685. value == null || isSymbol(value)) {
  1686. return true;
  1687. }
  1688. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  1689. (object != null && value in Object(object));
  1690. }
  1691. module.exports = isKey;
  1692. /***/ }),
  1693. /***/ 437:
  1694. /***/ (function(module, exports) {
  1695. /**
  1696. * A specialized version of `_.map` for arrays without support for iteratee
  1697. * shorthands.
  1698. *
  1699. * @private
  1700. * @param {Array} [array] The array to iterate over.
  1701. * @param {Function} iteratee The function invoked per iteration.
  1702. * @returns {Array} Returns the new mapped array.
  1703. */
  1704. function arrayMap(array, iteratee) {
  1705. var index = -1,
  1706. length = array == null ? 0 : array.length,
  1707. result = Array(length);
  1708. while (++index < length) {
  1709. result[index] = iteratee(array[index], index, array);
  1710. }
  1711. return result;
  1712. }
  1713. module.exports = arrayMap;
  1714. /***/ }),
  1715. /***/ 438:
  1716. /***/ (function(module, exports, __webpack_require__) {
  1717. var isArray = __webpack_require__(16),
  1718. isKey = __webpack_require__(360),
  1719. stringToPath = __webpack_require__(806),
  1720. toString = __webpack_require__(809);
  1721. /**
  1722. * Casts `value` to a path array if it's not one.
  1723. *
  1724. * @private
  1725. * @param {*} value The value to inspect.
  1726. * @param {Object} [object] The object to query keys on.
  1727. * @returns {Array} Returns the cast property path array.
  1728. */
  1729. function castPath(value, object) {
  1730. if (isArray(value)) {
  1731. return value;
  1732. }
  1733. return isKey(value, object) ? [value] : stringToPath(toString(value));
  1734. }
  1735. module.exports = castPath;
  1736. /***/ }),
  1737. /***/ 439:
  1738. /***/ (function(module, exports, __webpack_require__) {
  1739. var baseIsEqualDeep = __webpack_require__(814),
  1740. isObjectLike = __webpack_require__(8);
  1741. /**
  1742. * The base implementation of `_.isEqual` which supports partial comparisons
  1743. * and tracks traversed objects.
  1744. *
  1745. * @private
  1746. * @param {*} value The value to compare.
  1747. * @param {*} other The other value to compare.
  1748. * @param {boolean} bitmask The bitmask flags.
  1749. * 1 - Unordered comparison
  1750. * 2 - Partial comparison
  1751. * @param {Function} [customizer] The function to customize comparisons.
  1752. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  1753. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  1754. */
  1755. function baseIsEqual(value, other, bitmask, customizer, stack) {
  1756. if (value === other) {
  1757. return true;
  1758. }
  1759. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  1760. return value !== value && other !== other;
  1761. }
  1762. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  1763. }
  1764. module.exports = baseIsEqual;
  1765. /***/ }),
  1766. /***/ 440:
  1767. /***/ (function(module, exports, __webpack_require__) {
  1768. var SetCache = __webpack_require__(815),
  1769. arraySome = __webpack_require__(818),
  1770. cacheHas = __webpack_require__(819);
  1771. /** Used to compose bitmasks for value comparisons. */
  1772. var COMPARE_PARTIAL_FLAG = 1,
  1773. COMPARE_UNORDERED_FLAG = 2;
  1774. /**
  1775. * A specialized version of `baseIsEqualDeep` for arrays with support for
  1776. * partial deep comparisons.
  1777. *
  1778. * @private
  1779. * @param {Array} array The array to compare.
  1780. * @param {Array} other The other array to compare.
  1781. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  1782. * @param {Function} customizer The function to customize comparisons.
  1783. * @param {Function} equalFunc The function to determine equivalents of values.
  1784. * @param {Object} stack Tracks traversed `array` and `other` objects.
  1785. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  1786. */
  1787. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  1788. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  1789. arrLength = array.length,
  1790. othLength = other.length;
  1791. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  1792. return false;
  1793. }
  1794. // Check that cyclic values are equal.
  1795. var arrStacked = stack.get(array);
  1796. var othStacked = stack.get(other);
  1797. if (arrStacked && othStacked) {
  1798. return arrStacked == other && othStacked == array;
  1799. }
  1800. var index = -1,
  1801. result = true,
  1802. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  1803. stack.set(array, other);
  1804. stack.set(other, array);
  1805. // Ignore non-index properties.
  1806. while (++index < arrLength) {
  1807. var arrValue = array[index],
  1808. othValue = other[index];
  1809. if (customizer) {
  1810. var compared = isPartial
  1811. ? customizer(othValue, arrValue, index, other, array, stack)
  1812. : customizer(arrValue, othValue, index, array, other, stack);
  1813. }
  1814. if (compared !== undefined) {
  1815. if (compared) {
  1816. continue;
  1817. }
  1818. result = false;
  1819. break;
  1820. }
  1821. // Recursively compare arrays (susceptible to call stack limits).
  1822. if (seen) {
  1823. if (!arraySome(other, function(othValue, othIndex) {
  1824. if (!cacheHas(seen, othIndex) &&
  1825. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  1826. return seen.push(othIndex);
  1827. }
  1828. })) {
  1829. result = false;
  1830. break;
  1831. }
  1832. } else if (!(
  1833. arrValue === othValue ||
  1834. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  1835. )) {
  1836. result = false;
  1837. break;
  1838. }
  1839. }
  1840. stack['delete'](array);
  1841. stack['delete'](other);
  1842. return result;
  1843. }
  1844. module.exports = equalArrays;
  1845. /***/ }),
  1846. /***/ 441:
  1847. /***/ (function(module, exports, __webpack_require__) {
  1848. var isObject = __webpack_require__(9);
  1849. /**
  1850. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  1851. *
  1852. * @private
  1853. * @param {*} value The value to check.
  1854. * @returns {boolean} Returns `true` if `value` if suitable for strict
  1855. * equality comparisons, else `false`.
  1856. */
  1857. function isStrictComparable(value) {
  1858. return value === value && !isObject(value);
  1859. }
  1860. module.exports = isStrictComparable;
  1861. /***/ }),
  1862. /***/ 442:
  1863. /***/ (function(module, exports) {
  1864. /**
  1865. * A specialized version of `matchesProperty` for source values suitable
  1866. * for strict equality comparisons, i.e. `===`.
  1867. *
  1868. * @private
  1869. * @param {string} key The key of the property to get.
  1870. * @param {*} srcValue The value to match.
  1871. * @returns {Function} Returns the new spec function.
  1872. */
  1873. function matchesStrictComparable(key, srcValue) {
  1874. return function(object) {
  1875. if (object == null) {
  1876. return false;
  1877. }
  1878. return object[key] === srcValue &&
  1879. (srcValue !== undefined || (key in Object(object)));
  1880. };
  1881. }
  1882. module.exports = matchesStrictComparable;
  1883. /***/ }),
  1884. /***/ 443:
  1885. /***/ (function(module, exports) {
  1886. /**
  1887. * This method returns the first argument it receives.
  1888. *
  1889. * @static
  1890. * @since 0.1.0
  1891. * @memberOf _
  1892. * @category Util
  1893. * @param {*} value Any value.
  1894. * @returns {*} Returns `value`.
  1895. * @example
  1896. *
  1897. * var object = { 'a': 1 };
  1898. *
  1899. * console.log(_.identity(object) === object);
  1900. * // => true
  1901. */
  1902. function identity(value) {
  1903. return value;
  1904. }
  1905. module.exports = identity;
  1906. /***/ }),
  1907. /***/ 772:
  1908. /***/ (function(module, exports, __webpack_require__) {
  1909. // style-loader: Adds some css to the DOM by adding a <style> tag
  1910. // load the styles
  1911. var content = __webpack_require__(773);
  1912. if(typeof content === 'string') content = [[module.i, content, '']];
  1913. if(content.locals) module.exports = content.locals;
  1914. // add the styles to the DOM
  1915. var update = __webpack_require__(1)("0f52eb25", content, false, {});
  1916. // Hot Module Replacement
  1917. if(false) {
  1918. // When the styles change, update the <style> tags
  1919. if(!content.locals) {
  1920. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./panel.vue", function() {
  1921. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./panel.vue");
  1922. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1923. update(newContent);
  1924. });
  1925. }
  1926. // When the module is disposed, remove the <style> tags
  1927. module.hot.dispose(function() { update(); });
  1928. }
  1929. /***/ }),
  1930. /***/ 773:
  1931. /***/ (function(module, exports, __webpack_require__) {
  1932. exports = module.exports = __webpack_require__(0)(false);
  1933. // imports
  1934. // module
  1935. exports.push([module.i, "\n#project-panel-enter-textarea {\n background: transparent;\n background: none;\n outline: none;\n border: 0;\n resize: none;\n padding: 0;\n margin: 8px 0;\n line-height: 22px;\n border-radius: 0;\n color: rgba(0, 0, 0, 0.85);\n}\n#project-panel-enter-textarea:focus {\n border-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n", ""]);
  1936. // exports
  1937. /***/ }),
  1938. /***/ 774:
  1939. /***/ (function(module, exports, __webpack_require__) {
  1940. // style-loader: Adds some css to the DOM by adding a <style> tag
  1941. // load the styles
  1942. var content = __webpack_require__(775);
  1943. if(typeof content === 'string') content = [[module.i, content, '']];
  1944. if(content.locals) module.exports = content.locals;
  1945. // add the styles to the DOM
  1946. var update = __webpack_require__(1)("109952df", content, false, {});
  1947. // Hot Module Replacement
  1948. if(false) {
  1949. // When the styles change, update the <style> tags
  1950. if(!content.locals) {
  1951. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./panel.vue", function() {
  1952. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-4bac3242\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./panel.vue");
  1953. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1954. update(newContent);
  1955. });
  1956. }
  1957. // When the module is disposed, remove the <style> tags
  1958. module.hot.dispose(function() { update(); });
  1959. }
  1960. /***/ }),
  1961. /***/ 775:
  1962. /***/ (function(module, exports, __webpack_require__) {
  1963. exports = module.exports = __webpack_require__(0)(false);
  1964. // imports
  1965. // module
  1966. exports.push([module.i, "\n.project-panel .label-box[data-v-4bac3242] {\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 -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n width: 100%;\n height: 100%;\n padding: 15px;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.project-panel .label-box .label-item[data-v-4bac3242] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -ms-flex-preferred-size: auto;\n flex-basis: auto;\n position: relative;\n overflow: hidden;\n height: 100%;\n padding-right: 15px;\n}\n.project-panel .label-box .label-item.label-create[data-v-4bac3242] {\n cursor: pointer;\n}\n.project-panel .label-box .label-item.label-create:hover .trigger-box[data-v-4bac3242] {\n -webkit-transform: translate(0, -50%) scale(1.1);\n transform: translate(0, -50%) scale(1.1);\n}\n.project-panel .label-box .label-item.label-scroll:hover .label-bottom[data-v-4bac3242] {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.project-panel .label-box .label-item .label-body[data-v-4bac3242] {\n width: 300px;\n height: 100%;\n border-radius: 0.15rem;\n background-color: #ebecf0;\n overflow: hidden;\n position: relative;\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.project-panel .label-box .label-item .label-body .title-box[data-v-4bac3242] {\n padding: 0 12px;\n font-weight: bold;\n color: #666666;\n position: relative;\n cursor: move;\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 width: 100%;\n height: 42px;\n}\n.project-panel .label-box .label-item .label-body .title-box .title-loading[data-v-4bac3242] {\n width: 16px;\n height: 16px;\n margin-right: 6px;\n}\n.project-panel .label-box .label-item .label-body .title-box h2[data-v-4bac3242] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.project-panel .label-box .label-item .label-body .title-box i[data-v-4bac3242] {\n font-weight: 500;\n font-size: 18px;\n height: 100%;\n line-height: 42px;\n width: 42px;\n text-align: right;\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-body .task-box[data-v-4bac3242] {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 100%;\n padding: 0 12px 2px;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main[data-v-4bac3242] {\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.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-persons .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-persons .task-item.persons-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-follower .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-follower .task-item.follower-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-create .task-item[data-v-4bac3242] {\n display: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-main.filtr-create .task-item.create-item[data-v-4bac3242] {\n display: block;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item[data-v-4bac3242] {\n width: 100%;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item.task-draggable .task-shadow[data-v-4bac3242] {\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item.task-draggable .task-shadow[data-v-4bac3242]:hover {\n -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.38);\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.38);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow[data-v-4bac3242] {\n margin: 5px 0 4px;\n padding: 8px 10px 8px 8px;\n background-color: #ffffff;\n border-left: 2px solid #BF9F03;\n border-right: 0;\n color: #091e42;\n border-radius: 3px;\n -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p1[data-v-4bac3242] {\n border-left-color: #ff0000;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p2[data-v-4bac3242] {\n border-left-color: #BB9F35;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p3[data-v-4bac3242] {\n border-left-color: #449EDD;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.p4[data-v-4bac3242] {\n border-left-color: #84A83B;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete[data-v-4bac3242] {\n border-left-color: #c1c1c1;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete .task-title[data-v-4bac3242] {\n color: #666666;\n text-decoration: line-through;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.complete .task-more .task-status[data-v-4bac3242] {\n color: #666666;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.overdue .task-title[data-v-4bac3242] {\n font-weight: bold;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.overdue .task-more .task-status[data-v-4bac3242] {\n color: #ff0000;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow.newtask[data-v-4bac3242] {\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-title[data-v-4bac3242] {\n font-size: 12px;\n color: #091e42;\n word-break: break-all;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-title .ivu-icon[data-v-4bac3242] {\n font-size: 14px;\n color: #afafaf;\n vertical-align: top;\n padding: 2px 4px;\n -webkit-transform: scale(0.94);\n transform: scale(0.94);\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more[data-v-4bac3242] {\n min-height: 30px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-status[data-v-4bac3242] {\n color: #19be6b;\n font-size: 12px;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons[data-v-4bac3242] {\n max-width: 150px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more[data-v-4bac3242] {\n text-align: right;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more .task-userimg[data-v-4bac3242] {\n width: 20px;\n height: 20px;\n margin-left: 4px;\n margin-top: 4px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons.persons-more .task-userimg .avatar[data-v-4bac3242] {\n width: 20px;\n height: 20px;\n font-size: 12px;\n line-height: 20px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons .task-userimg[data-v-4bac3242] {\n width: 26px;\n height: 26px;\n vertical-align: bottom;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .task-more .task-persons .task-userimg .avatar[data-v-4bac3242] {\n width: 26px;\n height: 26px;\n font-size: 14px;\n line-height: 26px;\n border-radius: 13px;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .subtask-progress[data-v-4bac3242] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: -1;\n border-radius: 0 3px 3px 0;\n overflow: hidden;\n pointer-events: none;\n}\n.project-panel .label-box .label-item .label-body .task-box .task-item .task-shadow .subtask-progress em[data-v-4bac3242] {\n display: block;\n height: 100%;\n background-color: rgba(3, 150, 242, 0.07);\n}\n.project-panel .label-box .label-item .label-body .trigger-box[data-v-4bac3242] {\n text-align: center;\n font-size: 16px;\n color: #666;\n width: 100%;\n position: absolute;\n top: 50%;\n -webkit-transform: translate(0, -50%) scale(1);\n transform: translate(0, -50%) scale(1);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.project-panel .label-box .label-item .label-bottom[data-v-4bac3242] {\n position: absolute;\n left: 50%;\n bottom: 14px;\n z-index: 1;\n width: 36px;\n height: 36px;\n border-radius: 50%;\n background-color: #2db7f5;\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 -webkit-transition: -webkit-transform 0.2s;\n transition: -webkit-transform 0.2s;\n transition: transform 0.2s;\n transition: transform 0.2s, -webkit-transform 0.2s;\n -webkit-transform: translate(-50%, 200%);\n transform: translate(-50%, 200%);\n cursor: pointer;\n}\n.project-panel .label-box .label-item .label-bottom .label-bottom-icon[data-v-4bac3242] {\n color: #ffffff;\n font-size: 36px;\n}\n", ""]);
  1967. // exports
  1968. /***/ }),
  1969. /***/ 776:
  1970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1971. "use strict";
  1972. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1973. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable__ = __webpack_require__(51);
  1974. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vuedraggable__);
  1975. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent__ = __webpack_require__(307);
  1976. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_WContent__);
  1977. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add__ = __webpack_require__(777);
  1978. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_project_task_add___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_project_task_add__);
  1979. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__ = __webpack_require__(784);
  1980. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_task_lists__);
  1981. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files__ = __webpack_require__(58);
  1982. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_task_files___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_task_files__);
  1983. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__ = __webpack_require__(59);
  1984. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__components_project_task_logs__);
  1985. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_archived__ = __webpack_require__(344);
  1986. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_project_archived__);
  1987. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_users__ = __webpack_require__(349);
  1988. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_users___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_project_users__);
  1989. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics__ = __webpack_require__(354);
  1990. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_project_statistics__);
  1991. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__ = __webpack_require__(49);
  1992. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer__);
  1993. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__ = __webpack_require__(789);
  1994. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index__);
  1995. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_project_setting__ = __webpack_require__(799);
  1996. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__components_project_setting__);
  1997. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__ = __webpack_require__(56);
  1998. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__components_ScrollerY__);
  1999. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__ = __webpack_require__(804);
  2000. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_lodash_orderBy__);
  2001. 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; };
  2002. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  2003. //
  2004. //
  2005. //
  2006. //
  2007. //
  2008. //
  2009. //
  2010. //
  2011. //
  2012. //
  2013. //
  2014. //
  2015. //
  2016. //
  2017. //
  2018. //
  2019. //
  2020. //
  2021. //
  2022. //
  2023. //
  2024. //
  2025. //
  2026. //
  2027. //
  2028. //
  2029. //
  2030. //
  2031. //
  2032. //
  2033. //
  2034. //
  2035. //
  2036. //
  2037. //
  2038. //
  2039. //
  2040. //
  2041. //
  2042. //
  2043. //
  2044. //
  2045. //
  2046. //
  2047. //
  2048. //
  2049. //
  2050. //
  2051. //
  2052. //
  2053. //
  2054. //
  2055. //
  2056. //
  2057. //
  2058. //
  2059. //
  2060. //
  2061. //
  2062. //
  2063. //
  2064. //
  2065. //
  2066. //
  2067. //
  2068. //
  2069. //
  2070. //
  2071. //
  2072. //
  2073. //
  2074. //
  2075. //
  2076. //
  2077. //
  2078. //
  2079. //
  2080. //
  2081. //
  2082. //
  2083. //
  2084. //
  2085. //
  2086. //
  2087. //
  2088. //
  2089. //
  2090. //
  2091. //
  2092. //
  2093. //
  2094. //
  2095. //
  2096. //
  2097. //
  2098. //
  2099. //
  2100. //
  2101. //
  2102. //
  2103. //
  2104. //
  2105. //
  2106. //
  2107. //
  2108. //
  2109. //
  2110. //
  2111. //
  2112. //
  2113. //
  2114. //
  2115. //
  2116. //
  2117. //
  2118. //
  2119. //
  2120. //
  2121. //
  2122. //
  2123. //
  2124. //
  2125. //
  2126. //
  2127. //
  2128. //
  2129. //
  2130. //
  2131. //
  2132. //
  2133. //
  2134. //
  2135. //
  2136. //
  2137. //
  2138. //
  2139. //
  2140. //
  2141. //
  2142. //
  2143. //
  2144. //
  2145. //
  2146. //
  2147. //
  2148. //
  2149. //
  2150. //
  2151. //
  2152. //
  2153. //
  2154. //
  2155. //
  2156. //
  2157. //
  2158. //
  2159. //
  2160. //
  2161. //
  2162. //
  2163. //
  2164. //
  2165. //
  2166. //
  2167. //
  2168. //
  2169. //
  2170. //
  2171. //
  2172. //
  2173. //
  2174. //
  2175. //
  2176. //
  2177. //
  2178. //
  2179. //
  2180. //
  2181. //
  2182. //
  2183. //
  2184. //
  2185. //
  2186. //
  2187. //
  2188. //
  2189. //
  2190. //
  2191. //
  2192. //
  2193. //
  2194. //
  2195. //
  2196. //
  2197. //
  2198. //
  2199. //
  2200. //
  2201. //
  2202. //
  2203. //
  2204. //
  2205. //
  2206. //
  2207. //
  2208. //
  2209. //
  2210. //
  2211. //
  2212. //
  2213. //
  2214. //
  2215. //
  2216. //
  2217. //
  2218. //
  2219. //
  2220. //
  2221. //
  2222. //
  2223. //
  2224. //
  2225. //
  2226. //
  2227. //
  2228. //
  2229. //
  2230. //
  2231. //
  2232. //
  2233. //
  2234. //
  2235. //
  2236. //
  2237. //
  2238. //
  2239. //
  2240. //
  2241. //
  2242. //
  2243. //
  2244. //
  2245. //
  2246. //
  2247. //
  2248. //
  2249. //
  2250. //
  2251. //
  2252. //
  2253. //
  2254. //
  2255. //
  2256. //
  2257. //
  2258. //
  2259. //
  2260. //
  2261. //
  2262. //
  2263. //
  2264. //
  2265. //
  2266. //
  2267. //
  2268. //
  2269. //
  2270. //
  2271. //
  2272. //
  2273. //
  2274. //
  2275. //
  2276. //
  2277. //
  2278. //
  2279. //
  2280. //
  2281. //
  2282. //
  2283. //
  2284. //
  2285. //
  2286. //
  2287. //
  2288. //
  2289. //
  2290. //
  2291. //
  2292. //
  2293. //
  2294. //
  2295. //
  2296. //
  2297. //
  2298. //
  2299. //
  2300. //
  2301. //
  2302. //
  2303. //
  2304. //
  2305. //
  2306. //
  2307. //
  2308. //
  2309. //
  2310. //
  2311. //
  2312. //
  2313. //
  2314. //
  2315. //
  2316. //
  2317. //
  2318. //
  2319. //
  2320. //
  2321. //
  2322. //
  2323. //
  2324. //
  2325. //
  2326. //
  2327. //
  2328. //
  2329. //
  2330. //
  2331. //
  2332. //
  2333. //
  2334. //
  2335. //
  2336. //
  2337. //
  2338. //
  2339. //
  2340. //
  2341. //
  2342. //
  2343. //
  2344. //
  2345. //
  2346. //
  2347. //
  2348. //
  2349. //
  2350. //
  2351. //
  2352. //
  2353. //
  2354. //
  2355. //
  2356. //
  2357. //
  2358. //
  2359. //
  2360. //
  2361. //
  2362. //
  2363. //
  2364. //
  2365. //
  2366. //
  2367. //
  2368. //
  2369. //
  2370. //
  2371. //
  2372. //
  2373. //
  2374. //
  2375. //
  2376. //
  2377. //
  2378. //
  2379. //
  2380. //
  2381. //
  2382. //
  2383. //
  2384. //
  2385. //
  2386. //
  2387. //
  2388. //
  2389. //
  2390. //
  2391. //
  2392. //
  2393. //
  2394. //
  2395. //
  2396. //
  2397. //
  2398. //
  2399. //
  2400. //
  2401. //
  2402. //
  2403. //
  2404. //
  2405. //
  2406. //
  2407. //
  2408. //
  2409. //
  2410. //
  2411. //
  2412. //
  2413. //
  2414. //
  2415. //
  2416. //
  2417. //
  2418. //
  2419. //
  2420. //
  2421. //
  2422. //
  2423. //
  2424. //
  2425. //
  2426. //
  2427. //
  2428. //
  2429. //
  2430. //
  2431. //
  2432. //
  2433. //
  2434. //
  2435. //
  2436. //
  2437. //
  2438. //
  2439. //
  2440. //
  2441. //
  2442. //
  2443. //
  2444. //
  2445. //
  2446. //
  2447. //
  2448. //
  2449. //
  2450. //
  2451. //
  2452. //
  2453. //
  2454. //
  2455. //
  2456. //
  2457. //
  2458. //
  2459. //
  2460. //
  2461. //
  2462. //
  2463. //
  2464. //
  2465. //
  2466. //
  2467. //
  2468. //
  2469. //
  2470. //
  2471. //
  2472. //
  2473. //
  2474. //
  2475. //
  2476. //
  2477. //
  2478. //
  2479. //
  2480. //
  2481. //
  2482. /* harmony default export */ __webpack_exports__["default"] = ({
  2483. components: {
  2484. ScrollerY: __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default.a,
  2485. ProjectSetting: __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default.a,
  2486. ProjectGantt: __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default.a,
  2487. WDrawer: __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default.a,
  2488. ProjectStatistics: __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default.a,
  2489. ProjectUsers: __WEBPACK_IMPORTED_MODULE_7__components_project_users___default.a,
  2490. ProjectArchived: __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default.a,
  2491. ProjectTaskLogs: __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default.a,
  2492. ProjectTaskFiles: __WEBPACK_IMPORTED_MODULE_4__components_project_task_files___default.a, ProjectTaskLists: __WEBPACK_IMPORTED_MODULE_3__components_project_task_lists___default.a, ProjectAddTask: __WEBPACK_IMPORTED_MODULE_2__components_project_task_add___default.a, draggable: __WEBPACK_IMPORTED_MODULE_0_vuedraggable___default.a, WContent: __WEBPACK_IMPORTED_MODULE_1__components_WContent___default.a },
  2493. data: function data() {
  2494. return {
  2495. loadIng: 0,
  2496. loadDetailed: false,
  2497. projectid: 0,
  2498. projectDetail: {},
  2499. projectLabel: [],
  2500. projectSimpleLabel: [],
  2501. projectSortData: '',
  2502. projectSortDisabled: false,
  2503. projectDrawerShow: false,
  2504. projectDrawerTab: 'lists',
  2505. projectSettingDrawerShow: false,
  2506. projectSettingDrawerTab: 'setting',
  2507. projectGanttShow: false,
  2508. filtrTask: '',
  2509. routeName: ''
  2510. };
  2511. },
  2512. mounted: function mounted() {
  2513. var _this = this;
  2514. this.routeName = this.$route.name;
  2515. $A.setOnTaskInfoListener('pages/project-panel', function (act, detail) {
  2516. if (detail.projectid != _this.projectid) {
  2517. return;
  2518. }
  2519. //
  2520. switch (act) {
  2521. case 'addlabel':
  2522. // 添加分类
  2523. var tempLists = _this.projectLabel.filter(function (res) {
  2524. return res.id == detail.labelid;
  2525. });
  2526. if (tempLists.length == 0) {
  2527. _this.projectLabel.push(Object.assign(detail, { id: detail.labelid }));
  2528. _this.projectSortData = _this.getProjectSort();
  2529. }
  2530. return;
  2531. case 'deletelabel':
  2532. // 删除分类
  2533. _this.projectLabel.some(function (label, index) {
  2534. if (label.id == detail.labelid) {
  2535. _this.projectLabel.splice(index, 1);
  2536. _this.projectSortData = _this.getProjectSort();
  2537. return true;
  2538. }
  2539. });
  2540. return;
  2541. case 'deleteproject':
  2542. // 删除项目
  2543. return;
  2544. case "labelsort": // 调整分类排序
  2545. case "tasksort":
  2546. // 调整任务排序
  2547. if (detail.__modifyUsername != _this.usrName) {
  2548. if (_this.routeName == _this.$route.name) {
  2549. _this.$Modal.confirm({
  2550. title: _this.$L("更新提示"),
  2551. content: _this.$L('团队成员(%)调整了%,<br/>更新时间:%。<br/><br/>点击【确定】加载最新数据。', detail.nickname, _this.$L(act == 'labelsort' ? '分类排序' : '任务排序'), $A.formatDate("Y-m-d H:i:s", detail.time)),
  2552. onOk: function onOk() {
  2553. _this.getDetail(true);
  2554. }
  2555. });
  2556. } else {
  2557. _this.getDetail(true);
  2558. }
  2559. }
  2560. return;
  2561. }
  2562. //
  2563. _this.projectLabel.forEach(function (label) {
  2564. label.taskLists.some(function (task, i) {
  2565. if (task.id == detail.id) {
  2566. label.taskLists.splice(i, 1, detail);
  2567. return true;
  2568. }
  2569. });
  2570. });
  2571. //
  2572. switch (act) {
  2573. case "delete": // 删除任务
  2574. case "archived":
  2575. // 归档
  2576. _this.projectLabel.forEach(function (label) {
  2577. label.taskLists.some(function (task, i) {
  2578. if (task.id == detail.id) {
  2579. label.taskLists.splice(i, 1);
  2580. return true;
  2581. }
  2582. });
  2583. });
  2584. _this.projectSortData = _this.getProjectSort();
  2585. break;
  2586. case "create":
  2587. // 创建任务
  2588. _this.projectLabel.some(function (label) {
  2589. if (label.id == detail.labelid) {
  2590. var _tempLists = label.taskLists.filter(function (res) {
  2591. return res.id == detail.id;
  2592. });
  2593. if (_tempLists.length == 0) {
  2594. detail.isNewtask = true;
  2595. if (detail.insertbottom) {
  2596. label.taskLists.push(detail);
  2597. } else {
  2598. label.taskLists.unshift(detail);
  2599. }
  2600. _this.$nextTick(function () {
  2601. _this.$set(detail, 'isNewtask', false);
  2602. });
  2603. }
  2604. return true;
  2605. }
  2606. });
  2607. break;
  2608. case "unarchived":
  2609. // 取消归档
  2610. _this.projectLabel.forEach(function (label) {
  2611. if (label.id == detail.labelid) {
  2612. var index = label.taskLists.length;
  2613. label.taskLists.some(function (task, i) {
  2614. if (detail.inorder > task.inorder || detail.inorder == task.inorder && detail.id > task.id) {
  2615. index = i;
  2616. return true;
  2617. }
  2618. });
  2619. label.taskLists.splice(index, 0, detail);
  2620. }
  2621. });
  2622. _this.projectSortData = _this.getProjectSort();
  2623. break;
  2624. case "complete": // 标记完成
  2625. case "unfinished":
  2626. // 标记未完成
  2627. _this.taskNewSort();
  2628. break;
  2629. }
  2630. }, true);
  2631. },
  2632. activated: function activated() {
  2633. var _this2 = this;
  2634. this.projectid = this.$route.params.projectid;
  2635. if (_typeof(this.$route.params.other) === "object") {
  2636. this.$set(this.projectDetail, 'title', $A.getObject(this.$route.params.other, 'title'));
  2637. }
  2638. if (this.$route.params.statistics === '已完成') {
  2639. this.projectSettingDrawerTab = 'statistics';
  2640. this.projectSettingDrawerShow = true;
  2641. this.$nextTick(function () {
  2642. _this2.$refs.statistics.setTaskType('已完成');
  2643. });
  2644. }
  2645. },
  2646. deactivated: function deactivated() {
  2647. if ($A.getToken() === false) {
  2648. this.projectid = 0;
  2649. }
  2650. this.projectGanttShow = false;
  2651. this.projectDrawerShow = false;
  2652. this.projectSettingDrawerShow = false;
  2653. },
  2654. watch: {
  2655. projectid: function projectid(val) {
  2656. if ($A.runNum(val) <= 0) {
  2657. return;
  2658. }
  2659. this.projectDetail = {};
  2660. this.projectLabel = [];
  2661. this.projectSimpleLabel = [];
  2662. this.getDetail();
  2663. },
  2664. '$route': function $route(To) {
  2665. if (To.name == 'project-panel') {
  2666. this.projectid = To.params.projectid;
  2667. }
  2668. }
  2669. },
  2670. methods: {
  2671. getDetail: function getDetail(successTip) {
  2672. var _this3 = this;
  2673. this.loadIng++;
  2674. $A.apiAjax({
  2675. url: 'project/detail',
  2676. data: {
  2677. projectid: this.projectid
  2678. },
  2679. complete: function complete() {
  2680. _this3.loadIng--;
  2681. _this3.loadDetailed = true;
  2682. },
  2683. error: function error() {
  2684. _this3.goBack({ name: 'project' });
  2685. alert(_this3.$L('网络繁忙,请稍后再试!'));
  2686. },
  2687. success: function success(res) {
  2688. if (res.ret === 1) {
  2689. _this3.projectLabel = res.data.label;
  2690. _this3.taskNewSort();
  2691. _this3.projectDetail = res.data.project;
  2692. _this3.projectSimpleLabel = res.data.simpleLabel;
  2693. _this3.projectSortData = _this3.getProjectSort();
  2694. if (successTip === true) {
  2695. _this3.$Message.success(_this3.$L('刷新成功!'));
  2696. }
  2697. } else {
  2698. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  2699. }
  2700. }
  2701. });
  2702. },
  2703. getProjectSort: function getProjectSort() {
  2704. var sortData = "",
  2705. taskData = "";
  2706. this.projectLabel.forEach(function (label) {
  2707. taskData = "";
  2708. label.taskLists.forEach(function (task) {
  2709. if (taskData) taskData += "-";
  2710. taskData += task.id;
  2711. });
  2712. if (sortData) sortData += ";";
  2713. sortData += label.id + ":" + taskData;
  2714. });
  2715. return sortData;
  2716. },
  2717. getLabelSort: function getLabelSort() {},
  2718. handleLabel: function handleLabel(event, labelDetail) {
  2719. switch (event) {
  2720. case 'refresh':
  2721. {
  2722. this.refreshLabel(labelDetail);
  2723. break;
  2724. }
  2725. case 'rename':
  2726. {
  2727. this.renameLabel(labelDetail);
  2728. break;
  2729. }
  2730. case 'delete':
  2731. {
  2732. this.deleteLabel(labelDetail);
  2733. break;
  2734. }
  2735. }
  2736. },
  2737. refreshLabel: function refreshLabel(item) {
  2738. var _this4 = this;
  2739. this.$set(item, 'loadIng', true);
  2740. $A.apiAjax({
  2741. url: 'project/task/lists',
  2742. data: {
  2743. projectid: this.projectid,
  2744. labelid: item.id
  2745. },
  2746. complete: function complete() {
  2747. _this4.$set(item, 'loadIng', false);
  2748. },
  2749. error: function error() {
  2750. window.location.reload();
  2751. },
  2752. success: function success(res) {
  2753. if (res.ret === 1) {
  2754. _this4.$set(item, 'taskLists', res.data.lists);
  2755. } else {
  2756. window.location.reload();
  2757. }
  2758. }
  2759. });
  2760. },
  2761. renameLabel: function renameLabel(item) {
  2762. var _this5 = this;
  2763. this.renameValue = "";
  2764. this.$Modal.confirm({
  2765. render: function render(h) {
  2766. return h('div', [h('div', {
  2767. style: {
  2768. fontSize: '16px',
  2769. fontWeight: '500',
  2770. marginBottom: '20px'
  2771. }
  2772. }, _this5.$L('重命名列表')), h('Input', {
  2773. props: {
  2774. value: _this5.renameValue,
  2775. autofocus: true,
  2776. placeholder: _this5.$L('请输入新的列表名称')
  2777. },
  2778. on: {
  2779. input: function input(val) {
  2780. _this5.renameValue = val;
  2781. }
  2782. }
  2783. })]);
  2784. },
  2785. loading: true,
  2786. onOk: function onOk() {
  2787. if (_this5.renameValue) {
  2788. _this5.$set(item, 'loadIng', true);
  2789. var title = _this5.renameValue;
  2790. $A.apiAjax({
  2791. url: 'project/label/rename',
  2792. data: {
  2793. projectid: _this5.projectid,
  2794. labelid: item.id,
  2795. title: title
  2796. },
  2797. complete: function complete() {
  2798. _this5.$set(item, 'loadIng', false);
  2799. },
  2800. error: function error() {
  2801. _this5.$Modal.remove();
  2802. alert(_this5.$L('网络繁忙,请稍后再试!'));
  2803. },
  2804. success: function success(res) {
  2805. _this5.$Modal.remove();
  2806. _this5.$set(item, 'title', title);
  2807. setTimeout(function () {
  2808. if (res.ret === 1) {
  2809. _this5.$Message.success(res.msg);
  2810. } else {
  2811. _this5.$Modal.error({ title: _this5.$L('温馨提示'), content: res.msg });
  2812. }
  2813. }, 350);
  2814. }
  2815. });
  2816. } else {
  2817. _this5.$Modal.remove();
  2818. }
  2819. }
  2820. });
  2821. },
  2822. deleteLabel: function deleteLabel(item) {
  2823. var _this6 = this;
  2824. var redTip = item.taskLists.length > 0 ? '<div style="color:red;font-weight:500">' + this.$L('注:将同时删除列表下所有任务') + '</div>' : '';
  2825. this.$Modal.confirm({
  2826. title: this.$L('删除列表'),
  2827. content: '<div>' + this.$L('你确定要删除此列表吗?') + '</div>' + redTip,
  2828. loading: true,
  2829. onOk: function onOk() {
  2830. $A.apiAjax({
  2831. url: 'project/label/delete',
  2832. data: {
  2833. projectid: _this6.projectid,
  2834. labelid: item.id
  2835. },
  2836. error: function error() {
  2837. _this6.$Modal.remove();
  2838. alert(_this6.$L('网络繁忙,请稍后再试!'));
  2839. },
  2840. success: function success(res) {
  2841. _this6.$Modal.remove();
  2842. _this6.projectLabel.some(function (label, index) {
  2843. if (label.id == item.id) {
  2844. _this6.projectLabel.splice(index, 1);
  2845. _this6.projectSortData = _this6.getProjectSort();
  2846. return true;
  2847. }
  2848. });
  2849. setTimeout(function () {
  2850. if (res.ret === 1) {
  2851. _this6.$Message.success(res.msg);
  2852. $A.triggerTaskInfoListener('deletelabel', { labelid: item.id, projectid: item.projectid });
  2853. } else {
  2854. _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
  2855. }
  2856. }, 350);
  2857. }
  2858. });
  2859. }
  2860. });
  2861. },
  2862. addLabel: function addLabel() {
  2863. var _this7 = this;
  2864. this.labelValue = "";
  2865. this.$Modal.confirm({
  2866. render: function render(h) {
  2867. return h('div', [h('div', {
  2868. style: {
  2869. fontSize: '16px',
  2870. fontWeight: '500',
  2871. marginBottom: '20px'
  2872. }
  2873. }, _this7.$L('添加列表')), h('Input', {
  2874. props: {
  2875. value: _this7.labelValue,
  2876. autofocus: true,
  2877. placeholder: _this7.$L('请输入列表名称')
  2878. },
  2879. on: {
  2880. input: function input(val) {
  2881. _this7.labelValue = val;
  2882. }
  2883. }
  2884. })]);
  2885. },
  2886. loading: true,
  2887. onOk: function onOk() {
  2888. if (_this7.labelValue) {
  2889. var data = {
  2890. projectid: _this7.projectid,
  2891. title: _this7.labelValue
  2892. };
  2893. $A.apiAjax({
  2894. url: 'project/label/add',
  2895. data: data,
  2896. error: function error() {
  2897. _this7.$Modal.remove();
  2898. alert(_this7.$L('网络繁忙,请稍后再试!'));
  2899. },
  2900. success: function success(res) {
  2901. _this7.$Modal.remove();
  2902. _this7.projectLabel.push(res.data);
  2903. _this7.projectSortData = _this7.getProjectSort();
  2904. $A.triggerTaskInfoListener('addlabel', Object.assign(data, { labelid: res.data.id }));
  2905. setTimeout(function () {
  2906. if (res.ret === 1) {
  2907. _this7.$Message.success(res.msg);
  2908. } else {
  2909. _this7.$Modal.error({ title: _this7.$L('温馨提示'), content: res.msg });
  2910. }
  2911. }, 350);
  2912. }
  2913. });
  2914. } else {
  2915. _this7.$Modal.remove();
  2916. }
  2917. }
  2918. });
  2919. },
  2920. addTaskSuccess: function addTaskSuccess(taskDetail, label) {
  2921. var _this8 = this;
  2922. if (label.taskLists instanceof Array) {
  2923. taskDetail.isNewtask = true;
  2924. if (taskDetail.insertbottom) {
  2925. label.taskLists.push(taskDetail);
  2926. } else {
  2927. label.taskLists.unshift(taskDetail);
  2928. }
  2929. this.$nextTick(function () {
  2930. _this8.$set(taskDetail, 'isNewtask', false);
  2931. });
  2932. } else {
  2933. this.refreshLabel(label);
  2934. }
  2935. },
  2936. openProjectDrawer: function openProjectDrawer(tab) {
  2937. if (tab == 'projectGanttShow') {
  2938. this.projectGanttShow = !this.projectGanttShow;
  2939. return;
  2940. } else if (tab == 'openProjectSettingDrawer') {
  2941. this.openProjectSettingDrawer('setting');
  2942. return;
  2943. }
  2944. this.projectDrawerTab = tab;
  2945. this.projectDrawerShow = true;
  2946. },
  2947. openProjectSettingDrawer: function openProjectSettingDrawer(tab) {
  2948. this.projectSettingDrawerTab = tab;
  2949. this.projectSettingDrawerShow = true;
  2950. },
  2951. projectSortUpdate: function projectSortUpdate(isLabel) {
  2952. var _this9 = this;
  2953. var oldSort = this.projectSortData;
  2954. var newSort = this.getProjectSort();
  2955. console.log(oldSort, newSort);
  2956. if (oldSort == newSort) {
  2957. return;
  2958. }
  2959. this.projectSortData = newSort;
  2960. this.projectSortDisabled = true;
  2961. this.loadIng++;
  2962. $A.apiAjax({
  2963. url: 'project/sort',
  2964. data: {
  2965. projectid: this.projectid,
  2966. oldsort: oldSort,
  2967. newsort: newSort,
  2968. label: isLabel === true ? 1 : 0
  2969. },
  2970. complete: function complete() {
  2971. _this9.projectSortDisabled = false;
  2972. _this9.loadIng--;
  2973. },
  2974. error: function error() {
  2975. _this9.getDetail();
  2976. alert(_this9.$L('网络繁忙,请稍后再试!'));
  2977. },
  2978. success: function success(res) {
  2979. if (res.ret === 1) {
  2980. _this9.projectLabel.forEach(function (label) {
  2981. var length = label.taskLists.length;
  2982. label.taskLists.forEach(function (task, index) {
  2983. task.inorder = length - index;
  2984. });
  2985. });
  2986. _this9.taskNewSort();
  2987. //
  2988. _this9.$Message.success(res.msg);
  2989. $A.triggerTaskInfoListener(isLabel ? 'labelsort' : 'tasksort', { projectid: _this9.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
  2990. } else {
  2991. _this9.getDetail();
  2992. _this9.$Modal.error({ title: _this9.$L('温馨提示'), content: res.msg });
  2993. }
  2994. }
  2995. });
  2996. },
  2997. projectSort: function projectSort(e) {
  2998. var _this10 = this;
  2999. var newIndex = e.newIndex;
  3000. var oldIndex = e.oldIndex;
  3001. var id = e.item.dataset.id;
  3002. this.projectSortDisabled = true;
  3003. this.loadIng++;
  3004. $A.apiAjax({
  3005. url: 'project/labelsort',
  3006. data: {
  3007. projectid: this.projectid,
  3008. newIndex: newIndex,
  3009. oldIndex: oldIndex,
  3010. id: id
  3011. },
  3012. complete: function complete() {
  3013. _this10.projectSortDisabled = false;
  3014. _this10.loadIng--;
  3015. },
  3016. error: function error() {
  3017. _this10.getDetail();
  3018. alert(_this10.$L('网络繁忙,请稍后再试!'));
  3019. },
  3020. success: function success(res) {
  3021. if (res.ret === 1) {
  3022. _this10.$Message.success(res.msg);
  3023. $A.triggerTaskInfoListener('labelsort', { projectid: _this10.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
  3024. } else {
  3025. _this10.getDetail();
  3026. _this10.$Modal.error({ title: _this10.$L('温馨提示'), content: res.msg });
  3027. }
  3028. }
  3029. });
  3030. },
  3031. taskSort: function taskSort(e) {
  3032. var _this11 = this;
  3033. console.log(e);
  3034. var oldSort = this.projectSortData;
  3035. var newSort = this.getProjectSort();
  3036. var newIndex = e.newIndex;
  3037. var oldIndex = e.oldIndex;
  3038. var fromid = e.from.dataset.id;
  3039. var toid = e.to.dataset.id;
  3040. var id = e.item.dataset.id;
  3041. if (oldSort == newSort) {
  3042. return;
  3043. }
  3044. this.projectSortData = newSort;
  3045. this.projectSortDisabled = true;
  3046. this.loadIng++;
  3047. $A.apiAjax({
  3048. url: 'project/tasksort',
  3049. data: {
  3050. projectid: this.projectid,
  3051. newIndex: newIndex,
  3052. oldIndex: oldIndex,
  3053. fromid: fromid,
  3054. toid: toid,
  3055. id: id
  3056. },
  3057. complete: function complete() {
  3058. _this11.projectSortDisabled = false;
  3059. _this11.loadIng--;
  3060. },
  3061. error: function error() {
  3062. _this11.getDetail();
  3063. alert(_this11.$L('网络繁忙,请稍后再试!'));
  3064. },
  3065. success: function success(res) {
  3066. if (res.ret === 1) {
  3067. _this11.projectLabel.forEach(function (label) {
  3068. if (label.id == res.data.fromid) {
  3069. label.taskLists.forEach(function (task, index) {
  3070. task.inorder = res.data.from_res[task.id].inorder;
  3071. });
  3072. }
  3073. if (label.id == res.data.toid) {
  3074. label.taskLists.forEach(function (task, index) {
  3075. task.inorder = res.data.to_res[task.id].inorder;
  3076. });
  3077. }
  3078. });
  3079. _this11.taskNewSort();
  3080. _this11.$Message.success(res.msg);
  3081. $A.triggerTaskInfoListener('tasksort', { projectid: _this11.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
  3082. } else {
  3083. _this11.getDetail();
  3084. _this11.$Modal.error({ title: _this11.$L('温馨提示'), content: res.msg });
  3085. }
  3086. }
  3087. });
  3088. },
  3089. projectMouse: function projectMouse(label) {
  3090. var hasScroll = false;
  3091. var el = this.$refs['box_' + label.id];
  3092. if (el && el.length > 0) {
  3093. el = el[0].$el;
  3094. hasScroll = el.scrollHeight > el.offsetHeight;
  3095. }
  3096. this.$set(label, 'hasScroll', hasScroll);
  3097. },
  3098. projectBoxScroll: function projectBoxScroll(e, label) {
  3099. this.$set(label, 'endScroll', e.scrollE < 50);
  3100. },
  3101. projectFocus: function projectFocus(label) {
  3102. var el = this.$refs['add_' + label.id];
  3103. if (el && el.length > 0) {
  3104. el[0].setFocus();
  3105. }
  3106. el = this.$refs['box_' + label.id];
  3107. if (el && el.length > 0) {
  3108. el[0].scrollToBottom(false);
  3109. }
  3110. },
  3111. subtaskProgress: function subtaskProgress(task) {
  3112. var subtask = task.subtask,
  3113. complete = task.complete;
  3114. if (!subtask || subtask.length === 0) {
  3115. return complete ? 100 : 0;
  3116. }
  3117. var completeLists = subtask.filter(function (item) {
  3118. return item.status == 'complete';
  3119. });
  3120. return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
  3121. },
  3122. openTaskModal: function openTaskModal(taskDetail) {
  3123. this.taskDetail(taskDetail);
  3124. },
  3125. taskNewSort: function taskNewSort() {
  3126. var _this12 = this;
  3127. this.$nextTick(function () {
  3128. _this12.projectLabel.forEach(function (item) {
  3129. item.taskLists = _this12.taskReturnNewSort(item.taskLists);
  3130. });
  3131. });
  3132. },
  3133. taskReturnNewSort: function taskReturnNewSort(lists) {
  3134. var tmpLists = __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default()(lists, ['complete', 'inorder'], ['asc', 'desc']);
  3135. var array = [];
  3136. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref) {
  3137. var complete = _ref.complete;
  3138. return complete;
  3139. })));
  3140. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref2) {
  3141. var complete = _ref2.complete;
  3142. return !complete;
  3143. })));
  3144. return array;
  3145. },
  3146. isPersonsTask: function isPersonsTask(task) {
  3147. var _this13 = this;
  3148. return task.persons && !!task.persons.find(function (_ref3) {
  3149. var username = _ref3.username;
  3150. return username == _this13.usrInfo.username;
  3151. });
  3152. },
  3153. isFollowerTask: function isFollowerTask(task) {
  3154. return task.follower && task.follower.indexOf(this.usrInfo.username) !== -1;
  3155. },
  3156. isCreateTask: function isCreateTask(task) {
  3157. return task.createuser == this.usrInfo.username;
  3158. }
  3159. }
  3160. });
  3161. /***/ }),
  3162. /***/ 777:
  3163. /***/ (function(module, exports, __webpack_require__) {
  3164. var disposed = false
  3165. function injectStyle (ssrContext) {
  3166. if (disposed) return
  3167. __webpack_require__(778)
  3168. __webpack_require__(780)
  3169. }
  3170. var normalizeComponent = __webpack_require__(2)
  3171. /* script */
  3172. var __vue_script__ = __webpack_require__(782)
  3173. /* template */
  3174. var __vue_template__ = __webpack_require__(783)
  3175. /* template functional */
  3176. var __vue_template_functional__ = false
  3177. /* styles */
  3178. var __vue_styles__ = injectStyle
  3179. /* scopeId */
  3180. var __vue_scopeId__ = "data-v-7dae0bfc"
  3181. /* moduleIdentifier (server only) */
  3182. var __vue_module_identifier__ = null
  3183. var Component = normalizeComponent(
  3184. __vue_script__,
  3185. __vue_template__,
  3186. __vue_template_functional__,
  3187. __vue_styles__,
  3188. __vue_scopeId__,
  3189. __vue_module_identifier__
  3190. )
  3191. Component.options.__file = "resources/assets/js/main/components/project/task/add.vue"
  3192. /* hot reload */
  3193. if (false) {(function () {
  3194. var hotAPI = require("vue-hot-reload-api")
  3195. hotAPI.install(require("vue"), false)
  3196. if (!hotAPI.compatible) return
  3197. module.hot.accept()
  3198. if (!module.hot.data) {
  3199. hotAPI.createRecord("data-v-7dae0bfc", Component.options)
  3200. } else {
  3201. hotAPI.reload("data-v-7dae0bfc", Component.options)
  3202. }
  3203. module.hot.dispose(function (data) {
  3204. disposed = true
  3205. })
  3206. })()}
  3207. module.exports = Component.exports
  3208. /***/ }),
  3209. /***/ 778:
  3210. /***/ (function(module, exports, __webpack_require__) {
  3211. // style-loader: Adds some css to the DOM by adding a <style> tag
  3212. // load the styles
  3213. var content = __webpack_require__(779);
  3214. if(typeof content === 'string') content = [[module.i, content, '']];
  3215. if(content.locals) module.exports = content.locals;
  3216. // add the styles to the DOM
  3217. var update = __webpack_require__(1)("1187e5ab", content, false, {});
  3218. // Hot Module Replacement
  3219. if(false) {
  3220. // When the styles change, update the <style> tags
  3221. if(!content.locals) {
  3222. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"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() {
  3223. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./add.vue");
  3224. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3225. update(newContent);
  3226. });
  3227. }
  3228. // When the module is disposed, remove the <style> tags
  3229. module.hot.dispose(function() { update(); });
  3230. }
  3231. /***/ }),
  3232. /***/ 779:
  3233. /***/ (function(module, exports, __webpack_require__) {
  3234. exports = module.exports = __webpack_require__(0)(false);
  3235. // imports
  3236. // module
  3237. exports.push([module.i, "\n.enter-module-btn-drop-list .ivu-dropdown-item {\n padding: 5px 16px;\n font-size: 12px !important;\n}\n", ""]);
  3238. // exports
  3239. /***/ }),
  3240. /***/ 780:
  3241. /***/ (function(module, exports, __webpack_require__) {
  3242. // style-loader: Adds some css to the DOM by adding a <style> tag
  3243. // load the styles
  3244. var content = __webpack_require__(781);
  3245. if(typeof content === 'string') content = [[module.i, content, '']];
  3246. if(content.locals) module.exports = content.locals;
  3247. // add the styles to the DOM
  3248. var update = __webpack_require__(1)("42fdf46b", content, false, {});
  3249. // Hot Module Replacement
  3250. if(false) {
  3251. // When the styles change, update the <style> tags
  3252. if(!content.locals) {
  3253. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"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() {
  3254. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-7dae0bfc\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./add.vue");
  3255. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3256. update(newContent);
  3257. });
  3258. }
  3259. // When the module is disposed, remove the <style> tags
  3260. module.hot.dispose(function() { update(); });
  3261. }
  3262. /***/ }),
  3263. /***/ 781:
  3264. /***/ (function(module, exports, __webpack_require__) {
  3265. exports = module.exports = __webpack_require__(0)(false);
  3266. // imports
  3267. // module
  3268. exports.push([module.i, "\n.task-input-box[data-v-7dae0bfc] {\n position: relative;\n margin-top: 5px;\n margin-bottom: 20px;\n min-height: 70px;\n}\n.task-input-box .input-placeholder[data-v-7dae0bfc],\n .task-input-box .input-enter[data-v-7dae0bfc] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n width: 100%;\n}\n.task-input-box .input-placeholder[data-v-7dae0bfc] {\n z-index: 1;\n height: 40px;\n line-height: 40px;\n color: rgba(0, 0, 0, 0.36);\n padding-left: 12px;\n padding-right: 12px;\n}\n.task-input-box .input-enter[data-v-7dae0bfc] {\n z-index: 2;\n position: relative;\n background-color: transparent;\n}\n.task-input-box .input-enter .input-enter-textarea[data-v-7dae0bfc] {\n border-radius: 4px;\n padding-left: 12px;\n padding-right: 12px;\n color: rgba(0, 0, 0, 0.85);\n}\n.task-input-box .input-enter .input-enter-textarea.bright[data-v-7dae0bfc] {\n background-color: rgba(46, 73, 136, 0.08);\n}\n.task-input-box .input-enter .input-enter-textarea.highlight[data-v-7dae0bfc] {\n background-color: #ffffff;\n}\n.task-input-box .input-enter .input-enter-module[data-v-7dae0bfc] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n margin-top: 8px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon[data-v-7dae0bfc] {\n display: inline-block;\n width: 16px;\n height: 16px;\n margin-right: 5px;\n border-radius: 4px;\n vertical-align: middle;\n cursor: pointer;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p1[data-v-7dae0bfc] {\n background-color: #ff0000;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p2[data-v-7dae0bfc] {\n background-color: #BB9F35;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p3[data-v-7dae0bfc] {\n background-color: #449EDD;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.p4[data-v-7dae0bfc] {\n background-color: #84A83B;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n margin-left: 10px;\n margin-right: 10px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user .avatar[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n font-size: 14px;\n line-height: 24px;\n border-radius: 12px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon.user i[data-v-7dae0bfc] {\n line-height: 24px;\n font-size: 16px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-icon i[data-v-7dae0bfc] {\n width: 100%;\n height: 100%;\n color: #ffffff;\n line-height: 16px;\n font-size: 14px;\n -webkit-transform: scale(0.85);\n transform: scale(0.85);\n vertical-align: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-flex[data-v-7dae0bfc] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn button[data-v-7dae0bfc] {\n font-size: 12px;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-1[data-v-7dae0bfc] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-2[data-v-7dae0bfc] {\n padding: 0 2px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.task-input-box .input-enter .input-enter-module .enter-module-btn .enter-module-btn-drop[data-v-7dae0bfc] {\n margin-left: -4px;\n border-left: 1px solid #c0daff;\n}\n.task-input-box .load-box[data-v-7dae0bfc] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 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 -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 9;\n}\n.task-input-box .load-box .load-box-main[data-v-7dae0bfc] {\n width: 24px;\n height: 24px;\n}\n", ""]);
  3269. // exports
  3270. /***/ }),
  3271. /***/ 782:
  3272. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3273. "use strict";
  3274. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3275. //
  3276. //
  3277. //
  3278. //
  3279. //
  3280. //
  3281. //
  3282. //
  3283. //
  3284. //
  3285. //
  3286. //
  3287. //
  3288. //
  3289. //
  3290. //
  3291. //
  3292. //
  3293. //
  3294. //
  3295. //
  3296. //
  3297. //
  3298. //
  3299. //
  3300. //
  3301. //
  3302. //
  3303. //
  3304. //
  3305. //
  3306. //
  3307. //
  3308. //
  3309. //
  3310. //
  3311. //
  3312. //
  3313. //
  3314. //
  3315. //
  3316. //
  3317. //
  3318. //
  3319. //
  3320. //
  3321. //
  3322. //
  3323. //
  3324. //
  3325. //
  3326. //
  3327. //
  3328. //
  3329. //
  3330. //
  3331. //
  3332. //
  3333. //
  3334. //
  3335. //
  3336. //
  3337. //
  3338. //
  3339. //
  3340. //
  3341. //
  3342. //
  3343. //
  3344. //
  3345. //
  3346. //
  3347. //
  3348. //
  3349. //
  3350. //
  3351. //
  3352. //
  3353. //
  3354. //
  3355. //
  3356. //
  3357. //
  3358. //
  3359. //
  3360. //
  3361. //
  3362. //
  3363. //
  3364. //
  3365. //
  3366. //
  3367. //
  3368. //
  3369. //
  3370. //
  3371. //
  3372. //
  3373. //
  3374. //
  3375. //
  3376. //
  3377. //
  3378. //
  3379. //
  3380. //
  3381. //
  3382. //
  3383. //
  3384. //
  3385. //
  3386. //
  3387. //
  3388. //
  3389. //
  3390. //
  3391. //
  3392. //
  3393. //
  3394. //
  3395. //
  3396. //
  3397. //
  3398. //
  3399. //
  3400. //
  3401. //
  3402. //
  3403. //
  3404. //
  3405. //
  3406. //
  3407. //
  3408. //
  3409. //
  3410. //
  3411. //
  3412. //
  3413. //
  3414. //
  3415. //
  3416. //
  3417. //
  3418. //
  3419. //
  3420. //
  3421. //
  3422. //
  3423. //
  3424. //
  3425. //
  3426. //
  3427. //
  3428. //
  3429. //
  3430. //
  3431. //
  3432. //
  3433. //
  3434. //
  3435. //
  3436. //
  3437. //
  3438. //
  3439. //
  3440. //
  3441. //
  3442. //
  3443. //
  3444. //
  3445. //
  3446. //
  3447. //
  3448. //
  3449. //
  3450. //
  3451. //
  3452. //
  3453. //
  3454. //
  3455. //
  3456. //
  3457. //
  3458. //
  3459. //
  3460. //
  3461. //
  3462. //
  3463. //
  3464. //
  3465. //
  3466. //
  3467. //
  3468. //
  3469. //
  3470. /* harmony default export */ __webpack_exports__["default"] = ({
  3471. name: 'ProjectAddTask',
  3472. props: {
  3473. placeholder: {
  3474. type: String,
  3475. default: ''
  3476. },
  3477. projectid: {
  3478. type: Number,
  3479. default: 0
  3480. },
  3481. labelid: {
  3482. type: Number,
  3483. default: 0
  3484. }
  3485. },
  3486. data: function data() {
  3487. return {
  3488. loadIng: 0,
  3489. addText: '',
  3490. addLevel: 2,
  3491. addUserInfo: {},
  3492. addFocus: false,
  3493. nameTipDisabled: false
  3494. };
  3495. },
  3496. mounted: function mounted() {
  3497. this.addUserInfo = $A.cloneData(this.usrInfo);
  3498. },
  3499. methods: {
  3500. changeUser: function changeUser(user) {
  3501. if (typeof user.username === "undefined") {
  3502. this.addUserInfo = $A.cloneData(this.usrInfo);
  3503. } else {
  3504. this.addUserInfo = user;
  3505. }
  3506. },
  3507. dropAdd: function dropAdd(name) {
  3508. if (name == 'insertbottom') {
  3509. this.clickAdd(true);
  3510. }
  3511. },
  3512. clickAdd: function clickAdd() {
  3513. var _this = this;
  3514. var insertbottom = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  3515. var addText = this.addText.trim();
  3516. if ($A.count(addText) == 0 || this.loadIng > 0) {
  3517. return;
  3518. }
  3519. this.loadIng++;
  3520. $A.apiAjax({
  3521. url: 'project/task/add',
  3522. data: {
  3523. projectid: this.projectid,
  3524. labelid: this.labelid,
  3525. title: addText,
  3526. level: this.addLevel,
  3527. username: this.addUserInfo.username,
  3528. insertbottom: insertbottom ? 1 : 0
  3529. },
  3530. complete: function complete() {
  3531. _this.loadIng--;
  3532. },
  3533. error: function error() {
  3534. alert(_this.$L('网络繁忙,请稍后再试!'));
  3535. },
  3536. success: function success(res) {
  3537. if (res.ret === 1) {
  3538. _this.addText = '';
  3539. _this.addFocus = false;
  3540. _this.$Message.success(res.msg);
  3541. res.data.insertbottom = insertbottom;
  3542. _this.$emit('on-add-success', res.data);
  3543. $A.triggerTaskInfoListener('create', res.data);
  3544. $A.triggerTaskInfoChange(res.data.id);
  3545. } else {
  3546. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  3547. }
  3548. }
  3549. });
  3550. },
  3551. addKeydown: function addKeydown(e) {
  3552. if (e.keyCode == 13) {
  3553. if (e.shiftKey) {
  3554. return;
  3555. }
  3556. this.clickAdd(false);
  3557. e.preventDefault();
  3558. }
  3559. },
  3560. setFocus: function setFocus() {
  3561. this.$refs.addInput.focus();
  3562. },
  3563. onFocus: function onFocus(focus) {
  3564. this.addFocus = focus;
  3565. this.$emit('on-focus', focus);
  3566. }
  3567. }
  3568. });
  3569. /***/ }),
  3570. /***/ 783:
  3571. /***/ (function(module, exports, __webpack_require__) {
  3572. var render = function() {
  3573. var _vm = this
  3574. var _h = _vm.$createElement
  3575. var _c = _vm._self._c || _h
  3576. return _c("div", { staticClass: "task-input-box" }, [
  3577. !_vm.addText
  3578. ? _c(
  3579. "div",
  3580. { staticClass: "input-placeholder" },
  3581. [
  3582. _c("Icon", { attrs: { type: "md-create", size: "18" } }),
  3583. _vm._v(
  3584. " " +
  3585. _vm._s(
  3586. _vm.addFocus
  3587. ? "" + _vm.$L("输入任务,回车即可保存")
  3588. : _vm.placeholder
  3589. ) +
  3590. "\n "
  3591. )
  3592. ],
  3593. 1
  3594. )
  3595. : _vm._e(),
  3596. _vm._v(" "),
  3597. _c(
  3598. "div",
  3599. { staticClass: "input-enter" },
  3600. [
  3601. _c("Input", {
  3602. ref: "addInput",
  3603. staticClass: "input-enter-textarea",
  3604. class: { bright: _vm.addFocus === true, highlight: !!_vm.addText },
  3605. attrs: {
  3606. type: "textarea",
  3607. "element-id": "project-panel-enter-textarea",
  3608. autosize: { minRows: 1, maxRows: 6 },
  3609. maxlength: 255
  3610. },
  3611. on: {
  3612. "on-focus": function($event) {
  3613. return _vm.onFocus(true)
  3614. },
  3615. "on-blur": function($event) {
  3616. return _vm.onFocus(false)
  3617. },
  3618. "on-keydown": _vm.addKeydown
  3619. },
  3620. model: {
  3621. value: _vm.addText,
  3622. callback: function($$v) {
  3623. _vm.addText = $$v
  3624. },
  3625. expression: "addText"
  3626. }
  3627. }),
  3628. _vm._v(" "),
  3629. !!_vm.addText
  3630. ? _c(
  3631. "div",
  3632. { staticClass: "input-enter-module" },
  3633. [
  3634. _c(
  3635. "Tooltip",
  3636. {
  3637. attrs: {
  3638. content: _vm.$L("重要且紧急"),
  3639. placement: "bottom",
  3640. transfer: ""
  3641. }
  3642. },
  3643. [
  3644. _c(
  3645. "div",
  3646. {
  3647. staticClass: "enter-module-icon p1",
  3648. on: {
  3649. click: function($event) {
  3650. _vm.addLevel = 1
  3651. }
  3652. }
  3653. },
  3654. [
  3655. _vm.addLevel == "1"
  3656. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3657. : _vm._e()
  3658. ],
  3659. 1
  3660. )
  3661. ]
  3662. ),
  3663. _vm._v(" "),
  3664. _c(
  3665. "Tooltip",
  3666. {
  3667. attrs: {
  3668. content: _vm.$L("重要不紧急"),
  3669. placement: "bottom",
  3670. transfer: ""
  3671. }
  3672. },
  3673. [
  3674. _c(
  3675. "div",
  3676. {
  3677. staticClass: "enter-module-icon p2",
  3678. on: {
  3679. click: function($event) {
  3680. _vm.addLevel = 2
  3681. }
  3682. }
  3683. },
  3684. [
  3685. _vm.addLevel == "2"
  3686. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3687. : _vm._e()
  3688. ],
  3689. 1
  3690. )
  3691. ]
  3692. ),
  3693. _vm._v(" "),
  3694. _c(
  3695. "Tooltip",
  3696. {
  3697. attrs: {
  3698. content: _vm.$L("紧急不重要"),
  3699. placement: "bottom",
  3700. transfer: ""
  3701. }
  3702. },
  3703. [
  3704. _c(
  3705. "div",
  3706. {
  3707. staticClass: "enter-module-icon p3",
  3708. on: {
  3709. click: function($event) {
  3710. _vm.addLevel = 3
  3711. }
  3712. }
  3713. },
  3714. [
  3715. _vm.addLevel == "3"
  3716. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3717. : _vm._e()
  3718. ],
  3719. 1
  3720. )
  3721. ]
  3722. ),
  3723. _vm._v(" "),
  3724. _c(
  3725. "Tooltip",
  3726. {
  3727. attrs: {
  3728. content: _vm.$L("不重要不紧急"),
  3729. placement: "bottom",
  3730. transfer: ""
  3731. }
  3732. },
  3733. [
  3734. _c(
  3735. "div",
  3736. {
  3737. staticClass: "enter-module-icon p4",
  3738. on: {
  3739. click: function($event) {
  3740. _vm.addLevel = 4
  3741. }
  3742. }
  3743. },
  3744. [
  3745. _vm.addLevel == "4"
  3746. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3747. : _vm._e()
  3748. ],
  3749. 1
  3750. )
  3751. ]
  3752. ),
  3753. _vm._v(" "),
  3754. _c("div", { staticClass: "enter-module-flex" }),
  3755. _vm._v(" "),
  3756. _c(
  3757. "Poptip",
  3758. {
  3759. attrs: { placement: "bottom", transfer: "" },
  3760. on: {
  3761. "on-popper-show": function($event) {
  3762. _vm.nameTipDisabled = true
  3763. },
  3764. "on-popper-hide": function($event) {
  3765. _vm.nameTipDisabled = false
  3766. }
  3767. }
  3768. },
  3769. [
  3770. _c(
  3771. "Tooltip",
  3772. {
  3773. attrs: {
  3774. placement: "bottom",
  3775. disabled: _vm.nameTipDisabled
  3776. }
  3777. },
  3778. [
  3779. _c(
  3780. "div",
  3781. { staticClass: "enter-module-icon user" },
  3782. [
  3783. _c("UserImg", {
  3784. staticClass: "avatar",
  3785. attrs: { info: _vm.addUserInfo }
  3786. })
  3787. ],
  3788. 1
  3789. ),
  3790. _vm._v(" "),
  3791. _c(
  3792. "div",
  3793. { attrs: { slot: "content" }, slot: "content" },
  3794. [
  3795. _vm._v(
  3796. "\n " +
  3797. _vm._s(_vm.$L("负责人")) +
  3798. ": "
  3799. ),
  3800. _c("UserView", {
  3801. attrs: { username: _vm.addUserInfo.username }
  3802. })
  3803. ],
  3804. 1
  3805. )
  3806. ]
  3807. ),
  3808. _vm._v(" "),
  3809. _c("div", { attrs: { slot: "content" }, slot: "content" }, [
  3810. _c(
  3811. "div",
  3812. { staticStyle: { width: "240px" } },
  3813. [
  3814. _vm._v(
  3815. "\n " +
  3816. _vm._s(_vm.$L("选择负责人")) +
  3817. "\n "
  3818. ),
  3819. _c("UserInput", {
  3820. staticStyle: { margin: "5px 0 3px" },
  3821. attrs: {
  3822. projectid: _vm.projectid,
  3823. placeholder: _vm.$L("留空默认: 自己")
  3824. },
  3825. on: { change: _vm.changeUser },
  3826. model: {
  3827. value: _vm.addUserInfo.username,
  3828. callback: function($$v) {
  3829. _vm.$set(_vm.addUserInfo, "username", $$v)
  3830. },
  3831. expression: "addUserInfo.username"
  3832. }
  3833. })
  3834. ],
  3835. 1
  3836. )
  3837. ])
  3838. ],
  3839. 1
  3840. ),
  3841. _vm._v(" "),
  3842. _c(
  3843. "div",
  3844. { staticClass: "enter-module-btn" },
  3845. [
  3846. _c(
  3847. "Button",
  3848. {
  3849. staticClass: "enter-module-btn-1",
  3850. attrs: { type: "info", size: "small" },
  3851. on: {
  3852. click: function($event) {
  3853. return _vm.clickAdd(false)
  3854. }
  3855. }
  3856. },
  3857. [_vm._v(_vm._s(_vm.$L("添加任务")))]
  3858. ),
  3859. _vm._v(" "),
  3860. _c(
  3861. "Dropdown",
  3862. {
  3863. staticClass: "enter-module-btn-drop",
  3864. attrs: { placement: "bottom-end", transfer: "" },
  3865. on: { "on-click": _vm.dropAdd }
  3866. },
  3867. [
  3868. _c(
  3869. "Button",
  3870. {
  3871. staticClass: "enter-module-btn-2",
  3872. attrs: { type: "info", size: "small" }
  3873. },
  3874. [_c("Icon", { attrs: { type: "ios-arrow-down" } })],
  3875. 1
  3876. ),
  3877. _vm._v(" "),
  3878. _c(
  3879. "DropdownMenu",
  3880. {
  3881. staticClass: "enter-module-btn-drop-list",
  3882. attrs: { slot: "list" },
  3883. slot: "list"
  3884. },
  3885. [
  3886. _c(
  3887. "DropdownItem",
  3888. { attrs: { name: "insertbottom" } },
  3889. [_vm._v(_vm._s(_vm.$L("添加至列表结尾")))]
  3890. )
  3891. ],
  3892. 1
  3893. )
  3894. ],
  3895. 1
  3896. )
  3897. ],
  3898. 1
  3899. )
  3900. ],
  3901. 1
  3902. )
  3903. : _vm._e()
  3904. ],
  3905. 1
  3906. ),
  3907. _vm._v(" "),
  3908. _vm.loadIng > 0
  3909. ? _c(
  3910. "div",
  3911. {
  3912. staticClass: "load-box",
  3913. on: {
  3914. click: function($event) {
  3915. $event.stopPropagation()
  3916. }
  3917. }
  3918. },
  3919. [_c("div", { staticClass: "load-box-main" }, [_c("w-loading")], 1)]
  3920. )
  3921. : _vm._e()
  3922. ])
  3923. }
  3924. var staticRenderFns = []
  3925. render._withStripped = true
  3926. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3927. if (false) {
  3928. module.hot.accept()
  3929. if (module.hot.data) {
  3930. require("vue-hot-reload-api") .rerender("data-v-7dae0bfc", module.exports)
  3931. }
  3932. }
  3933. /***/ }),
  3934. /***/ 784:
  3935. /***/ (function(module, exports, __webpack_require__) {
  3936. var disposed = false
  3937. function injectStyle (ssrContext) {
  3938. if (disposed) return
  3939. __webpack_require__(785)
  3940. }
  3941. var normalizeComponent = __webpack_require__(2)
  3942. /* script */
  3943. var __vue_script__ = __webpack_require__(787)
  3944. /* template */
  3945. var __vue_template__ = __webpack_require__(788)
  3946. /* template functional */
  3947. var __vue_template_functional__ = false
  3948. /* styles */
  3949. var __vue_styles__ = injectStyle
  3950. /* scopeId */
  3951. var __vue_scopeId__ = "data-v-11cf9cb6"
  3952. /* moduleIdentifier (server only) */
  3953. var __vue_module_identifier__ = null
  3954. var Component = normalizeComponent(
  3955. __vue_script__,
  3956. __vue_template__,
  3957. __vue_template_functional__,
  3958. __vue_styles__,
  3959. __vue_scopeId__,
  3960. __vue_module_identifier__
  3961. )
  3962. Component.options.__file = "resources/assets/js/main/components/project/task/lists.vue"
  3963. /* hot reload */
  3964. if (false) {(function () {
  3965. var hotAPI = require("vue-hot-reload-api")
  3966. hotAPI.install(require("vue"), false)
  3967. if (!hotAPI.compatible) return
  3968. module.hot.accept()
  3969. if (!module.hot.data) {
  3970. hotAPI.createRecord("data-v-11cf9cb6", Component.options)
  3971. } else {
  3972. hotAPI.reload("data-v-11cf9cb6", Component.options)
  3973. }
  3974. module.hot.dispose(function (data) {
  3975. disposed = true
  3976. })
  3977. })()}
  3978. module.exports = Component.exports
  3979. /***/ }),
  3980. /***/ 785:
  3981. /***/ (function(module, exports, __webpack_require__) {
  3982. // style-loader: Adds some css to the DOM by adding a <style> tag
  3983. // load the styles
  3984. var content = __webpack_require__(786);
  3985. if(typeof content === 'string') content = [[module.i, content, '']];
  3986. if(content.locals) module.exports = content.locals;
  3987. // add the styles to the DOM
  3988. var update = __webpack_require__(1)("82725c66", content, false, {});
  3989. // Hot Module Replacement
  3990. if(false) {
  3991. // When the styles change, update the <style> tags
  3992. if(!content.locals) {
  3993. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11cf9cb6\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./lists.vue", function() {
  3994. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-11cf9cb6\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./lists.vue");
  3995. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3996. update(newContent);
  3997. });
  3998. }
  3999. // When the module is disposed, remove the <style> tags
  4000. module.hot.dispose(function() { update(); });
  4001. }
  4002. /***/ }),
  4003. /***/ 786:
  4004. /***/ (function(module, exports, __webpack_require__) {
  4005. exports = module.exports = __webpack_require__(0)(false);
  4006. // imports
  4007. // module
  4008. exports.push([module.i, "\n.project-task-lists[data-v-11cf9cb6] {\n margin: 0 12px;\n}\n.project-task-lists .tableFill[data-v-11cf9cb6] {\n margin: 12px 0 20px;\n}\n", ""]);
  4009. // exports
  4010. /***/ }),
  4011. /***/ 787:
  4012. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4013. "use strict";
  4014. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4015. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  4016. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  4017. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  4018. //
  4019. //
  4020. //
  4021. //
  4022. //
  4023. //
  4024. //
  4025. //
  4026. //
  4027. //
  4028. //
  4029. //
  4030. //
  4031. //
  4032. //
  4033. //
  4034. //
  4035. //
  4036. //
  4037. //
  4038. //
  4039. //
  4040. //
  4041. //
  4042. //
  4043. //
  4044. //
  4045. //
  4046. //
  4047. //
  4048. //
  4049. //
  4050. //
  4051. //
  4052. //
  4053. //
  4054. //
  4055. //
  4056. //
  4057. //
  4058. //
  4059. //
  4060. //
  4061. //
  4062. //
  4063. //
  4064. //
  4065. //
  4066. //
  4067. //
  4068. //
  4069. //
  4070. //
  4071. //
  4072. //
  4073. //
  4074. //
  4075. //
  4076. //
  4077. //
  4078. //
  4079. //
  4080. //
  4081. //
  4082. //
  4083. //
  4084. /**
  4085. * 项目任务列表
  4086. */
  4087. /* harmony default export */ __webpack_exports__["default"] = ({
  4088. name: 'ProjectTaskLists',
  4089. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  4090. props: {
  4091. projectid: {
  4092. default: 0
  4093. },
  4094. canload: {
  4095. type: Boolean,
  4096. default: true
  4097. },
  4098. labelLists: {
  4099. type: Array
  4100. }
  4101. },
  4102. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  4103. data: function data() {
  4104. return {
  4105. keys: {},
  4106. sorts: { key: '', order: '' },
  4107. loadYet: false,
  4108. loadIng: 0,
  4109. exportLoad: 0,
  4110. columns: [],
  4111. lists: [],
  4112. listPage: 1,
  4113. listTotal: 0,
  4114. noDataText: ""
  4115. };
  4116. },
  4117. mounted: function mounted() {
  4118. var _this = this;
  4119. if (this.canload) {
  4120. this.loadYet = true;
  4121. this.getLists(true);
  4122. }
  4123. $A.setOnTaskInfoListener('components/project/task/lists', function (act, detail) {
  4124. if (detail.projectid != _this.projectid) {
  4125. return;
  4126. }
  4127. //
  4128. _this.lists.some(function (task, i) {
  4129. if (task.id == detail.id) {
  4130. _this.lists.splice(i, 1, detail);
  4131. return true;
  4132. }
  4133. });
  4134. //
  4135. switch (act) {
  4136. case "username": // 负责人
  4137. case "delete": // 删除任务
  4138. case "archived":
  4139. // 归档
  4140. _this.lists.some(function (task, i) {
  4141. if (task.id == detail.id) {
  4142. _this.lists.splice(i, 1);
  4143. return true;
  4144. }
  4145. });
  4146. break;
  4147. case "unarchived":
  4148. // 取消归档
  4149. var has = false;
  4150. _this.lists.some(function (task) {
  4151. if (task.id == detail.id) {
  4152. return has = true;
  4153. }
  4154. });
  4155. if (!has) {
  4156. _this.lists.unshift(detail);
  4157. }
  4158. break;
  4159. }
  4160. });
  4161. },
  4162. watch: {
  4163. projectid: function projectid() {
  4164. if (this.loadYet) {
  4165. this.getLists(true);
  4166. }
  4167. },
  4168. canload: function canload(val) {
  4169. if (val && !this.loadYet) {
  4170. this.loadYet = true;
  4171. this.getLists(true);
  4172. }
  4173. }
  4174. },
  4175. methods: {
  4176. initLanguage: function initLanguage() {
  4177. var _this2 = this;
  4178. this.noDataText = this.$L("数据加载中.....");
  4179. this.columns = [{
  4180. "title": this.$L("任务名称"),
  4181. "key": 'title',
  4182. "minWidth": 120,
  4183. render: function render(h, params) {
  4184. return _this2.renderTaskTitle(h, params);
  4185. }
  4186. }, {
  4187. "title": this.$L("阶段"),
  4188. "key": 'labelid',
  4189. "minWidth": 80,
  4190. "sortable": true,
  4191. render: function render(h, params) {
  4192. var labelid = params.row.labelid;
  4193. var labelDetail = _this2.labelLists.find(function (item) {
  4194. return item.id === labelid;
  4195. });
  4196. return h('span', labelDetail ? labelDetail.title : labelid);
  4197. }
  4198. }, {
  4199. "title": this.$L("计划时间"),
  4200. "key": 'enddate',
  4201. "width": 160,
  4202. "align": "center",
  4203. "sortable": true,
  4204. render: function render(h, params) {
  4205. if (!params.row.startdate && !params.row.enddate) {
  4206. return h('span', '-');
  4207. }
  4208. return h('div', {
  4209. style: {
  4210. fontSize: '12px',
  4211. lineHeight: '14px'
  4212. }
  4213. }, [h('div', params.row.startdate ? $A.formatDate("Y-m-d H:i:s", params.row.startdate) : '-'), h('div', params.row.enddate ? $A.formatDate("Y-m-d H:i:s", params.row.enddate) : '-')]);
  4214. }
  4215. }, {
  4216. "title": this.$L("负责人"),
  4217. "key": 'username',
  4218. "minWidth": 90,
  4219. "sortable": true,
  4220. render: function render(h, params) {
  4221. return h('UserView', {
  4222. props: {
  4223. username: params.row.username
  4224. }
  4225. });
  4226. }
  4227. }, {
  4228. "title": this.$L("优先级"),
  4229. "key": 'level',
  4230. "align": "center",
  4231. "minWidth": 90,
  4232. "maxWidth": 100,
  4233. "sortable": true,
  4234. render: function render(h, params) {
  4235. var level = params.row.level;
  4236. var color = void 0;
  4237. switch (level) {
  4238. case 1:
  4239. color = "#ff0000";
  4240. break;
  4241. case 2:
  4242. color = "#BB9F35";
  4243. break;
  4244. case 3:
  4245. color = "#449EDD";
  4246. break;
  4247. case 4:
  4248. color = "#84A83B";
  4249. break;
  4250. }
  4251. return h('span', {
  4252. style: {
  4253. color: color
  4254. }
  4255. }, "P" + level);
  4256. }
  4257. }, {
  4258. "title": this.$L("状态"),
  4259. "key": 'type',
  4260. "align": "center",
  4261. "minWidth": 80,
  4262. "maxWidth": 100,
  4263. "sortable": true,
  4264. render: function render(h, params) {
  4265. var color = void 0;
  4266. var status = void 0;
  4267. if (params.row.overdue) {
  4268. color = "#ff0000";
  4269. status = _this2.$L("已超期");
  4270. } else if (params.row.complete) {
  4271. color = "";
  4272. status = _this2.$L("已完成");
  4273. } else {
  4274. color = "#19be6b";
  4275. status = _this2.$L("未完成");
  4276. }
  4277. return h('span', {
  4278. style: {
  4279. color: color
  4280. }
  4281. }, status);
  4282. }
  4283. }, {
  4284. "title": this.$L("创建时间"),
  4285. "key": 'indate',
  4286. "width": 160,
  4287. "sortable": true,
  4288. render: function render(h, params) {
  4289. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  4290. }
  4291. }, {
  4292. "title": this.$L("最近更新时间"),
  4293. "key": 'update',
  4294. "width": 160,
  4295. "sortable": true,
  4296. render: function render(h, params) {
  4297. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.update));
  4298. }
  4299. }];
  4300. },
  4301. exportTab: function exportTab() {
  4302. var _this3 = this;
  4303. var whereData = $A.cloneData(this.keys);
  4304. whereData.page = Math.max(this.listPage, 1);
  4305. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4306. whereData.projectid = this.projectid;
  4307. whereData.sorts = $A.cloneData(this.sorts);
  4308. whereData.export = 1;
  4309. this.exportLoad++;
  4310. $A.apiAjax({
  4311. url: 'project/task/lists',
  4312. data: whereData,
  4313. complete: function complete() {
  4314. _this3.exportLoad--;
  4315. },
  4316. error: function error() {
  4317. alert(_this3.$L('网络繁忙,请稍后再试!'));
  4318. },
  4319. success: function success(res) {
  4320. if (res.ret === 1) {
  4321. _this3.$Modal.info({
  4322. okText: _this3.$L('关闭'),
  4323. render: function render(h) {
  4324. return h('div', [h('div', {
  4325. style: {
  4326. fontSize: '16px',
  4327. fontWeight: '500',
  4328. marginBottom: '20px'
  4329. }
  4330. }, _this3.$L('导出结果')), h('a', {
  4331. attrs: { href: res.data.url, target: '_blank' }
  4332. }, _this3.$L('点击下载 (%)', res.data.size + " KB"))]);
  4333. }
  4334. });
  4335. } else {
  4336. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  4337. }
  4338. }
  4339. });
  4340. },
  4341. sreachTab: function sreachTab(clear) {
  4342. if (clear === true) {
  4343. this.keys = {};
  4344. }
  4345. this.getLists(true);
  4346. },
  4347. sortChange: function sortChange(info) {
  4348. this.sorts = { key: info.key, order: info.order };
  4349. this.getLists(true);
  4350. },
  4351. setPage: function setPage(page) {
  4352. this.listPage = page;
  4353. this.getLists();
  4354. },
  4355. setPageSize: function setPageSize(size) {
  4356. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  4357. this.listPageSize = size;
  4358. this.getLists();
  4359. }
  4360. },
  4361. getLists: function getLists(resetLoad) {
  4362. var _this4 = this;
  4363. if (resetLoad === true) {
  4364. this.listPage = 1;
  4365. }
  4366. if (this.projectid == 0) {
  4367. this.lists = [];
  4368. this.listTotal = 0;
  4369. this.noDataText = this.$L("没有相关的数据");
  4370. return;
  4371. }
  4372. this.loadIng++;
  4373. var whereData = $A.cloneData(this.keys);
  4374. whereData.page = Math.max(this.listPage, 1);
  4375. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4376. whereData.projectid = this.projectid;
  4377. whereData.sorts = $A.cloneData(this.sorts);
  4378. this.noDataText = this.$L("数据加载中.....");
  4379. $A.apiAjax({
  4380. url: 'project/task/lists',
  4381. data: whereData,
  4382. complete: function complete() {
  4383. _this4.loadIng--;
  4384. },
  4385. error: function error() {
  4386. _this4.noDataText = _this4.$L("数据加载失败!");
  4387. },
  4388. success: function success(res) {
  4389. if (res.ret === 1) {
  4390. _this4.lists = res.data.lists;
  4391. _this4.listTotal = res.data.total;
  4392. _this4.noDataText = _this4.$L("没有相关的数据");
  4393. } else {
  4394. _this4.lists = [];
  4395. _this4.listTotal = 0;
  4396. _this4.noDataText = res.msg;
  4397. }
  4398. }
  4399. });
  4400. }
  4401. }
  4402. });
  4403. /***/ }),
  4404. /***/ 788:
  4405. /***/ (function(module, exports, __webpack_require__) {
  4406. var render = function() {
  4407. var _vm = this
  4408. var _h = _vm.$createElement
  4409. var _c = _vm._self._c || _h
  4410. return _c("drawer-tabs-container", [
  4411. _c(
  4412. "div",
  4413. { staticClass: "project-task-lists" },
  4414. [
  4415. _c("Row", { staticClass: "sreachBox" }, [
  4416. _c("div", { staticClass: "item" }, [
  4417. _c(
  4418. "div",
  4419. { staticClass: "item-4" },
  4420. [
  4421. _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
  4422. _vm._v(_vm._s(_vm.$L("状态")))
  4423. ]),
  4424. _vm._v(" "),
  4425. _c(
  4426. "Select",
  4427. {
  4428. attrs: { placeholder: _vm.$L("全部") },
  4429. model: {
  4430. value: _vm.keys.type,
  4431. callback: function($$v) {
  4432. _vm.$set(_vm.keys, "type", $$v)
  4433. },
  4434. expression: "keys.type"
  4435. }
  4436. },
  4437. [
  4438. _c("Option", { attrs: { value: "" } }, [
  4439. _vm._v(_vm._s(_vm.$L("全部")))
  4440. ]),
  4441. _vm._v(" "),
  4442. _c("Option", { attrs: { value: "未完成" } }, [
  4443. _vm._v(_vm._s(_vm.$L("未完成")))
  4444. ]),
  4445. _vm._v(" "),
  4446. _c("Option", { attrs: { value: "已超期" } }, [
  4447. _vm._v(_vm._s(_vm.$L("已超期")))
  4448. ]),
  4449. _vm._v(" "),
  4450. _c("Option", { attrs: { value: "已完成" } }, [
  4451. _vm._v(_vm._s(_vm.$L("已完成")))
  4452. ])
  4453. ],
  4454. 1
  4455. )
  4456. ],
  4457. 1
  4458. ),
  4459. _vm._v(" "),
  4460. _c(
  4461. "div",
  4462. { staticClass: "item-4" },
  4463. [
  4464. _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
  4465. _vm._v(_vm._s(_vm.$L("负责人")))
  4466. ]),
  4467. _vm._v(" "),
  4468. _c("Input", {
  4469. attrs: { placeholder: _vm.$L("用户名") },
  4470. model: {
  4471. value: _vm.keys.username,
  4472. callback: function($$v) {
  4473. _vm.$set(_vm.keys, "username", $$v)
  4474. },
  4475. expression: "keys.username"
  4476. }
  4477. })
  4478. ],
  4479. 1
  4480. ),
  4481. _vm._v(" "),
  4482. _c(
  4483. "div",
  4484. { staticClass: "item-4" },
  4485. [
  4486. _c("sreachTitle", { attrs: { val: _vm.keys.level } }, [
  4487. _vm._v(_vm._s(_vm.$L("级别")))
  4488. ]),
  4489. _vm._v(" "),
  4490. _c(
  4491. "Select",
  4492. {
  4493. attrs: { placeholder: _vm.$L("全部") },
  4494. model: {
  4495. value: _vm.keys.level,
  4496. callback: function($$v) {
  4497. _vm.$set(_vm.keys, "level", $$v)
  4498. },
  4499. expression: "keys.level"
  4500. }
  4501. },
  4502. [
  4503. _c("Option", { attrs: { value: "" } }, [
  4504. _vm._v(_vm._s(_vm.$L("全部")))
  4505. ]),
  4506. _vm._v(" "),
  4507. _c("Option", { attrs: { value: "1" } }, [_vm._v("P1")]),
  4508. _vm._v(" "),
  4509. _c("Option", { attrs: { value: "2" } }, [_vm._v("P2")]),
  4510. _vm._v(" "),
  4511. _c("Option", { attrs: { value: "3" } }, [_vm._v("P3")]),
  4512. _vm._v(" "),
  4513. _c("Option", { attrs: { value: "4" } }, [_vm._v("P4")])
  4514. ],
  4515. 1
  4516. )
  4517. ],
  4518. 1
  4519. ),
  4520. _vm._v(" "),
  4521. _c(
  4522. "div",
  4523. { staticClass: "item-4" },
  4524. [
  4525. _c("sreachTitle", { attrs: { val: _vm.keys.labelid } }, [
  4526. _vm._v(_vm._s(_vm.$L("阶段")))
  4527. ]),
  4528. _vm._v(" "),
  4529. _c(
  4530. "Select",
  4531. {
  4532. attrs: { placeholder: _vm.$L("全部") },
  4533. model: {
  4534. value: _vm.keys.labelid,
  4535. callback: function($$v) {
  4536. _vm.$set(_vm.keys, "labelid", $$v)
  4537. },
  4538. expression: "keys.labelid"
  4539. }
  4540. },
  4541. [
  4542. _c("Option", { attrs: { value: "" } }, [
  4543. _vm._v(_vm._s(_vm.$L("全部")))
  4544. ]),
  4545. _vm._v(" "),
  4546. _vm._l(_vm.labelLists, function(item) {
  4547. return _c(
  4548. "Option",
  4549. { key: item.id, attrs: { value: item.id } },
  4550. [_vm._v(_vm._s(item.title))]
  4551. )
  4552. })
  4553. ],
  4554. 2
  4555. )
  4556. ],
  4557. 1
  4558. )
  4559. ]),
  4560. _vm._v(" "),
  4561. _c(
  4562. "div",
  4563. { staticClass: "item item-button" },
  4564. [
  4565. _c(
  4566. "Button",
  4567. {
  4568. staticClass: "left-btn",
  4569. attrs: {
  4570. type: "info",
  4571. icon: "md-swap",
  4572. loading: _vm.exportLoad > 0
  4573. },
  4574. on: { click: _vm.exportTab }
  4575. },
  4576. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  4577. ),
  4578. _vm._v(" "),
  4579. _vm.$A.objImplode(_vm.keys) != ""
  4580. ? _c(
  4581. "Button",
  4582. {
  4583. attrs: { type: "text" },
  4584. on: {
  4585. click: function($event) {
  4586. return _vm.sreachTab(true)
  4587. }
  4588. }
  4589. },
  4590. [_vm._v(_vm._s(_vm.$L("取消筛选")))]
  4591. )
  4592. : _vm._e(),
  4593. _vm._v(" "),
  4594. _c(
  4595. "Button",
  4596. {
  4597. attrs: {
  4598. type: "primary",
  4599. icon: "md-search",
  4600. loading: _vm.loadIng > 0
  4601. },
  4602. on: { click: _vm.sreachTab }
  4603. },
  4604. [_vm._v(_vm._s(_vm.$L("搜索")))]
  4605. )
  4606. ],
  4607. 1
  4608. )
  4609. ]),
  4610. _vm._v(" "),
  4611. _c("Table", {
  4612. ref: "tableRef",
  4613. staticClass: "tableFill",
  4614. attrs: {
  4615. columns: _vm.columns,
  4616. data: _vm.lists,
  4617. loading: _vm.loadIng > 0,
  4618. "no-data-text": _vm.noDataText,
  4619. stripe: ""
  4620. },
  4621. on: { "on-sort-change": _vm.sortChange }
  4622. }),
  4623. _vm._v(" "),
  4624. _c("Page", {
  4625. staticClass: "pageBox",
  4626. attrs: {
  4627. total: _vm.listTotal,
  4628. current: _vm.listPage,
  4629. disabled: _vm.loadIng > 0,
  4630. "page-size-opts": [10, 20, 30, 50, 100],
  4631. placement: "top",
  4632. "show-elevator": "",
  4633. "show-sizer": "",
  4634. "show-total": "",
  4635. transfer: "",
  4636. simple: _vm.windowMax768
  4637. },
  4638. on: {
  4639. "on-change": _vm.setPage,
  4640. "on-page-size-change": _vm.setPageSize
  4641. }
  4642. })
  4643. ],
  4644. 1
  4645. )
  4646. ])
  4647. }
  4648. var staticRenderFns = []
  4649. render._withStripped = true
  4650. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4651. if (false) {
  4652. module.hot.accept()
  4653. if (module.hot.data) {
  4654. require("vue-hot-reload-api") .rerender("data-v-11cf9cb6", module.exports)
  4655. }
  4656. }
  4657. /***/ }),
  4658. /***/ 789:
  4659. /***/ (function(module, exports, __webpack_require__) {
  4660. var disposed = false
  4661. function injectStyle (ssrContext) {
  4662. if (disposed) return
  4663. __webpack_require__(790)
  4664. }
  4665. var normalizeComponent = __webpack_require__(2)
  4666. /* script */
  4667. var __vue_script__ = __webpack_require__(792)
  4668. /* template */
  4669. var __vue_template__ = __webpack_require__(798)
  4670. /* template functional */
  4671. var __vue_template_functional__ = false
  4672. /* styles */
  4673. var __vue_styles__ = injectStyle
  4674. /* scopeId */
  4675. var __vue_scopeId__ = null
  4676. /* moduleIdentifier (server only) */
  4677. var __vue_module_identifier__ = null
  4678. var Component = normalizeComponent(
  4679. __vue_script__,
  4680. __vue_template__,
  4681. __vue_template_functional__,
  4682. __vue_styles__,
  4683. __vue_scopeId__,
  4684. __vue_module_identifier__
  4685. )
  4686. Component.options.__file = "resources/assets/js/main/components/project/gantt/index.vue"
  4687. /* hot reload */
  4688. if (false) {(function () {
  4689. var hotAPI = require("vue-hot-reload-api")
  4690. hotAPI.install(require("vue"), false)
  4691. if (!hotAPI.compatible) return
  4692. module.hot.accept()
  4693. if (!module.hot.data) {
  4694. hotAPI.createRecord("data-v-91cfb088", Component.options)
  4695. } else {
  4696. hotAPI.reload("data-v-91cfb088", Component.options)
  4697. }
  4698. module.hot.dispose(function (data) {
  4699. disposed = true
  4700. })
  4701. })()}
  4702. module.exports = Component.exports
  4703. /***/ }),
  4704. /***/ 790:
  4705. /***/ (function(module, exports, __webpack_require__) {
  4706. // style-loader: Adds some css to the DOM by adding a <style> tag
  4707. // load the styles
  4708. var content = __webpack_require__(791);
  4709. if(typeof content === 'string') content = [[module.i, content, '']];
  4710. if(content.locals) module.exports = content.locals;
  4711. // add the styles to the DOM
  4712. var update = __webpack_require__(1)("87129f5a", content, false, {});
  4713. // Hot Module Replacement
  4714. if(false) {
  4715. // When the styles change, update the <style> tags
  4716. if(!content.locals) {
  4717. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-91cfb088\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
  4718. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-91cfb088\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
  4719. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4720. update(newContent);
  4721. });
  4722. }
  4723. // When the module is disposed, remove the <style> tags
  4724. module.hot.dispose(function() { update(); });
  4725. }
  4726. /***/ }),
  4727. /***/ 791:
  4728. /***/ (function(module, exports, __webpack_require__) {
  4729. exports = module.exports = __webpack_require__(0)(false);
  4730. // imports
  4731. // module
  4732. exports.push([module.i, "\n.project-gstc-gantt {\n position: absolute;\n top: 15px;\n left: 15px;\n right: 15px;\n bottom: 15px;\n z-index: 1;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n background-color: #fdfdfd;\n border-radius: 3px;\n overflow: hidden;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr {\n position: absolute;\n top: 38px;\n left: 222px;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon {\n cursor: pointer;\n color: #999;\n font-size: 20px;\n}\n.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr {\n color: #058ce4;\n}\n.project-gstc-gantt .project-gstc-close {\n position: absolute;\n top: 8px;\n left: 12px;\n cursor: pointer;\n}\n.project-gstc-gantt .project-gstc-close:hover i {\n -webkit-transform: scale(1) rotate(45deg);\n transform: scale(1) rotate(45deg);\n}\n.project-gstc-gantt .project-gstc-close i {\n color: #666666;\n font-size: 28px;\n -webkit-transform: scale(0.92);\n transform: scale(0.92);\n -webkit-transition: all .2s;\n transition: all .2s;\n}\n.project-gstc-gantt .project-gstc-edit {\n position: absolute;\n bottom: 6px;\n right: 6px;\n background: #ffffff;\n border-radius: 4px;\n opacity: 0;\n -webkit-transform: translate(120%, 0);\n transform: translate(120%, 0);\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.project-gstc-gantt .project-gstc-edit.visible {\n opacity: 1;\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info {\n display: block;\n}\n.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small {\n display: none;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info {\n display: none;\n border: 1px solid #e4e4e4;\n background: #ffffff;\n padding: 6px;\n border-radius: 4px;\n width: 500px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns {\n margin: 12px 6px 4px;\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: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn {\n margin-right: 8px;\n font-size: 13px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom {\n font-size: 20px;\n color: #444444;\n cursor: pointer;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover {\n color: #57a3f3;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small {\n border: 1px solid #e4e4e4;\n background: #ffffff;\n padding: 6px 12px;\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.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text {\n cursor: pointer;\n text-decoration: underline;\n color: #444444;\n margin-right: 8px;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover {\n color: #57a3f3;\n}\n.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn {\n margin-left: 4px;\n font-size: 13px;\n}\n", ""]);
  4733. // exports
  4734. /***/ }),
  4735. /***/ 792:
  4736. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4737. "use strict";
  4738. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4739. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index__ = __webpack_require__(793);
  4740. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__gantt_index__);
  4741. //
  4742. //
  4743. //
  4744. //
  4745. //
  4746. //
  4747. //
  4748. //
  4749. //
  4750. //
  4751. //
  4752. //
  4753. //
  4754. //
  4755. //
  4756. //
  4757. //
  4758. //
  4759. //
  4760. //
  4761. //
  4762. //
  4763. //
  4764. //
  4765. //
  4766. //
  4767. //
  4768. //
  4769. //
  4770. //
  4771. //
  4772. //
  4773. //
  4774. //
  4775. //
  4776. //
  4777. //
  4778. //
  4779. //
  4780. //
  4781. //
  4782. //
  4783. //
  4784. //
  4785. //
  4786. //
  4787. //
  4788. //
  4789. //
  4790. //
  4791. //
  4792. //
  4793. //
  4794. //
  4795. //
  4796. //
  4797. //
  4798. //
  4799. //
  4800. //
  4801. //
  4802. //
  4803. //
  4804. //
  4805. //
  4806. //
  4807. //
  4808. //
  4809. //
  4810. //
  4811. //
  4812. //
  4813. //
  4814. //
  4815. //
  4816. //
  4817. //
  4818. //
  4819. //
  4820. //
  4821. //
  4822. //
  4823. //
  4824. //
  4825. //
  4826. //
  4827. //
  4828. //
  4829. //
  4830. //
  4831. //
  4832. //
  4833. //
  4834. //
  4835. //
  4836. //
  4837. //
  4838. //
  4839. //
  4840. //
  4841. //
  4842. //
  4843. //
  4844. //
  4845. //
  4846. //
  4847. //
  4848. //
  4849. //
  4850. //
  4851. //
  4852. //
  4853. //
  4854. //
  4855. //
  4856. //
  4857. //
  4858. //
  4859. //
  4860. //
  4861. //
  4862. //
  4863. //
  4864. //
  4865. //
  4866. //
  4867. //
  4868. //
  4869. //
  4870. //
  4871. //
  4872. //
  4873. //
  4874. //
  4875. //
  4876. //
  4877. //
  4878. //
  4879. //
  4880. //
  4881. //
  4882. /**
  4883. * 甘特图
  4884. */
  4885. /* harmony default export */ __webpack_exports__["default"] = ({
  4886. name: 'ProjectGantt',
  4887. components: { GanttView: __WEBPACK_IMPORTED_MODULE_0__gantt_index___default.a },
  4888. props: {
  4889. projectLabel: {
  4890. default: []
  4891. }
  4892. },
  4893. data: function data() {
  4894. return {
  4895. loadFinish: false,
  4896. lists: [],
  4897. editColumns: [],
  4898. editData: [],
  4899. editShowInfo: false,
  4900. editLoad: 0,
  4901. filtrProjectId: 0
  4902. };
  4903. },
  4904. mounted: function mounted() {
  4905. this.editColumns = [{
  4906. title: this.$L('任务名称'),
  4907. key: 'label',
  4908. minWidth: 150,
  4909. ellipsis: true
  4910. }, {
  4911. title: this.$L('原计划时间'),
  4912. minWidth: 135,
  4913. align: 'center',
  4914. render: function render(h, params) {
  4915. if (params.row.notime === true) {
  4916. return h('span', '-');
  4917. }
  4918. return h('div', {
  4919. style: {}
  4920. }, [h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.backTime.start / 1000))), h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.backTime.end / 1000)))]);
  4921. }
  4922. }, {
  4923. title: this.$L('新计划时间'),
  4924. minWidth: 135,
  4925. align: 'center',
  4926. render: function render(h, params) {
  4927. return h('div', {
  4928. style: {}
  4929. }, [h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.newTime.start / 1000))), h('div', $A.formatDate('Y-m-d H:i', Math.round(params.row.newTime.end / 1000)))]);
  4930. }
  4931. }];
  4932. //
  4933. this.initData();
  4934. this.loadFinish = true;
  4935. },
  4936. watch: {
  4937. projectLabel: {
  4938. handler: function handler() {
  4939. this.initData();
  4940. },
  4941. deep: true
  4942. }
  4943. },
  4944. methods: {
  4945. initData: function initData() {
  4946. var _this = this;
  4947. this.lists = [];
  4948. this.projectLabel.forEach(function (item) {
  4949. if (_this.filtrProjectId > 0) {
  4950. if (item.id != _this.filtrProjectId) {
  4951. return;
  4952. }
  4953. }
  4954. item.taskLists.forEach(function (taskData) {
  4955. var notime = taskData.startdate == 0 || taskData.enddate == 0;
  4956. var times = _this.getTimeObj(taskData);
  4957. var start = times.start;
  4958. var end = times.end;
  4959. //
  4960. var color = '#058ce4';
  4961. if (taskData.complete) {
  4962. color = '#c1c1c1';
  4963. } else {
  4964. if (taskData.level === 1) {
  4965. color = '#ff0000';
  4966. } else if (taskData.level === 2) {
  4967. color = '#BB9F35';
  4968. } else if (taskData.level === 3) {
  4969. color = '#449EDD';
  4970. } else if (taskData.level === 4) {
  4971. color = '#84A83B';
  4972. }
  4973. }
  4974. //
  4975. var tempTime = { start: start, end: end };
  4976. var findData = _this.editData.find(function (t) {
  4977. return t.id == taskData.id;
  4978. });
  4979. if (findData) {
  4980. findData.backTime = $A.cloneData(tempTime);
  4981. tempTime = $A.cloneData(findData.newTime);
  4982. }
  4983. //
  4984. _this.lists.push({
  4985. id: taskData.id,
  4986. label: taskData.title,
  4987. time: tempTime,
  4988. notime: notime,
  4989. style: { background: color }
  4990. });
  4991. });
  4992. });
  4993. //
  4994. if (this.lists.length == 0 && this.filtrProjectId == 0) {
  4995. this.$Modal.warning({
  4996. title: this.$L("温馨提示"),
  4997. content: this.$L('任务列表为空,请先添加任务。'),
  4998. onOk: function onOk() {
  4999. _this.$emit('on-close');
  5000. }
  5001. });
  5002. }
  5003. },
  5004. updateTime: function updateTime(item) {
  5005. var original = this.getRawTime(item.id);
  5006. if (Math.abs(original.end - item.time.end) > 1000 || Math.abs(original.start - item.time.start) > 1000) {
  5007. //修改时间(变化超过1秒钟)
  5008. var backTime = $A.cloneData(original);
  5009. var newTime = $A.cloneData(item.time);
  5010. var findData = this.editData.find(function (_ref) {
  5011. var id = _ref.id;
  5012. return id == item.id;
  5013. });
  5014. if (findData) {
  5015. findData.newTime = newTime;
  5016. } else {
  5017. this.editData.push({
  5018. id: item.id,
  5019. label: item.label,
  5020. notime: item.notime,
  5021. backTime: backTime,
  5022. newTime: newTime
  5023. });
  5024. }
  5025. }
  5026. },
  5027. clickItem: function clickItem(item) {
  5028. this.taskDetail(item.id);
  5029. },
  5030. editSubmit: function editSubmit(save) {
  5031. var _this2 = this;
  5032. var triggerTask = [];
  5033. this.editData.forEach(function (item) {
  5034. if (save) {
  5035. _this2.editLoad++;
  5036. var timeStart = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.start / 1000));
  5037. var timeEnd = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.end / 1000));
  5038. var ajaxData = {
  5039. act: 'plannedtime',
  5040. taskid: item.id,
  5041. content: timeStart + "," + timeEnd
  5042. };
  5043. $A.apiAjax({
  5044. url: 'project/task/edit',
  5045. method: 'post',
  5046. data: ajaxData,
  5047. error: function error() {
  5048. _this2.lists.some(function (task) {
  5049. if (task.id == item.id) {
  5050. _this2.$set(task, 'time', item.backTime);
  5051. return true;
  5052. }
  5053. });
  5054. },
  5055. success: function success(res) {
  5056. if (res.ret === 1) {
  5057. triggerTask.push({
  5058. status: 'await',
  5059. act: ajaxData.act,
  5060. taskid: ajaxData.taskid,
  5061. data: res.data
  5062. });
  5063. } else {
  5064. _this2.lists.some(function (task) {
  5065. if (task.id == item.id) {
  5066. _this2.$set(task, 'time', item.backTime);
  5067. return true;
  5068. }
  5069. });
  5070. }
  5071. },
  5072. afterComplete: function afterComplete() {
  5073. _this2.editLoad--;
  5074. if (_this2.editLoad <= 0) {
  5075. triggerTask.forEach(function (info) {
  5076. if (info.status == 'await') {
  5077. info.status = 'trigger';
  5078. $A.triggerTaskInfoListener(info.act, info.data);
  5079. $A.triggerTaskInfoChange(info.taskid);
  5080. }
  5081. });
  5082. }
  5083. }
  5084. });
  5085. } else {
  5086. _this2.lists.some(function (task) {
  5087. if (task.id == item.id) {
  5088. _this2.$set(task, 'time', item.backTime);
  5089. return true;
  5090. }
  5091. });
  5092. }
  5093. });
  5094. this.editData = [];
  5095. },
  5096. getRawTime: function getRawTime(taskId) {
  5097. var _this3 = this;
  5098. var times = null;
  5099. this.projectLabel.some(function (item) {
  5100. item.taskLists.some(function (taskData) {
  5101. if (taskData.id == taskId) {
  5102. times = _this3.getTimeObj(taskData);
  5103. return true;
  5104. }
  5105. });
  5106. if (times) {
  5107. return true;
  5108. }
  5109. });
  5110. return times;
  5111. },
  5112. getTimeObj: function getTimeObj(taskData) {
  5113. var start = taskData.startdate || taskData.indate;
  5114. var end = taskData.enddate || taskData.indate + 86400;
  5115. if (end == start) {
  5116. end = Math.round(new Date($A.formatDate('Y-m-d 23:59:59', end)).getTime() / 1000);
  5117. }
  5118. end = Math.max(end, start + 60);
  5119. start *= 1000;
  5120. end *= 1000;
  5121. return { start: start, end: end };
  5122. },
  5123. tapProject: function tapProject(e) {
  5124. this.filtrProjectId = $A.runNum(e);
  5125. this.initData();
  5126. }
  5127. }
  5128. });
  5129. /***/ }),
  5130. /***/ 793:
  5131. /***/ (function(module, exports, __webpack_require__) {
  5132. var disposed = false
  5133. function injectStyle (ssrContext) {
  5134. if (disposed) return
  5135. __webpack_require__(794)
  5136. }
  5137. var normalizeComponent = __webpack_require__(2)
  5138. /* script */
  5139. var __vue_script__ = __webpack_require__(796)
  5140. /* template */
  5141. var __vue_template__ = __webpack_require__(797)
  5142. /* template functional */
  5143. var __vue_template_functional__ = false
  5144. /* styles */
  5145. var __vue_styles__ = injectStyle
  5146. /* scopeId */
  5147. var __vue_scopeId__ = "data-v-ab75349c"
  5148. /* moduleIdentifier (server only) */
  5149. var __vue_module_identifier__ = null
  5150. var Component = normalizeComponent(
  5151. __vue_script__,
  5152. __vue_template__,
  5153. __vue_template_functional__,
  5154. __vue_styles__,
  5155. __vue_scopeId__,
  5156. __vue_module_identifier__
  5157. )
  5158. Component.options.__file = "resources/assets/js/main/components/gantt/index.vue"
  5159. /* hot reload */
  5160. if (false) {(function () {
  5161. var hotAPI = require("vue-hot-reload-api")
  5162. hotAPI.install(require("vue"), false)
  5163. if (!hotAPI.compatible) return
  5164. module.hot.accept()
  5165. if (!module.hot.data) {
  5166. hotAPI.createRecord("data-v-ab75349c", Component.options)
  5167. } else {
  5168. hotAPI.reload("data-v-ab75349c", Component.options)
  5169. }
  5170. module.hot.dispose(function (data) {
  5171. disposed = true
  5172. })
  5173. })()}
  5174. module.exports = Component.exports
  5175. /***/ }),
  5176. /***/ 794:
  5177. /***/ (function(module, exports, __webpack_require__) {
  5178. // style-loader: Adds some css to the DOM by adding a <style> tag
  5179. // load the styles
  5180. var content = __webpack_require__(795);
  5181. if(typeof content === 'string') content = [[module.i, content, '']];
  5182. if(content.locals) module.exports = content.locals;
  5183. // add the styles to the DOM
  5184. var update = __webpack_require__(1)("1f2ff96e", content, false, {});
  5185. // Hot Module Replacement
  5186. if(false) {
  5187. // When the styles change, update the <style> tags
  5188. if(!content.locals) {
  5189. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ab75349c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
  5190. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ab75349c\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
  5191. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5192. update(newContent);
  5193. });
  5194. }
  5195. // When the module is disposed, remove the <style> tags
  5196. module.hot.dispose(function() { update(); });
  5197. }
  5198. /***/ }),
  5199. /***/ 795:
  5200. /***/ (function(module, exports, __webpack_require__) {
  5201. exports = module.exports = __webpack_require__(0)(false);
  5202. // imports
  5203. // module
  5204. exports.push([module.i, "\n.wook-gantt[data-v-ab75349c] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\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: self-start;\n -ms-flex-align: self-start;\n align-items: self-start;\n color: #747a81;\n}\n.wook-gantt *[data-v-ab75349c] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.wook-gantt .gantt-left[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n background-color: #ffffff;\n position: relative;\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.wook-gantt .gantt-left[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-left .gantt-title[data-v-ab75349c] {\n height: 76px;\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n background-color: #F9FAFB;\n padding-left: 12px;\n overflow: hidden;\n}\n.wook-gantt .gantt-left .gantt-title .gantt-title-text[data-v-ab75349c] {\n line-height: 100px;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 600;\n}\n.wook-gantt .gantt-left .gantt-item[data-v-ab75349c] {\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none;\n}\n.wook-gantt .gantt-left .gantt-item[data-v-ab75349c]::-webkit-scrollbar {\n display: none;\n}\n.wook-gantt .gantt-left .gantt-item > li[data-v-ab75349c] {\n height: 40px;\n border-bottom: 1px solid rgba(237, 241, 242, 0.75);\n position: relative;\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.wook-gantt .gantt-left .gantt-item > li:hover .item-icon[data-v-ab75349c] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.wook-gantt .gantt-left .gantt-item > li .item-title[data-v-ab75349c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding: 0 12px;\n cursor: default;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.wook-gantt .gantt-left .gantt-item > li .item-icon[data-v-ab75349c] {\n display: none;\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: 32px;\n margin-right: 2px;\n font-size: 16px;\n color: #888888;\n}\n.wook-gantt .gantt-right[data-v-ab75349c] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n background-color: #ffffff;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart[data-v-ab75349c] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month[data-v-ab75349c] {\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 position: absolute;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 26px;\n line-height: 20px;\n font-size: 14px;\n background-color: #F9FAFB;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width: 1px;\n height: 100%;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-month > li .month-format[data-v-ab75349c] {\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 6px 0;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date[data-v-ab75349c] {\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 position: absolute;\n top: 26px;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n cursor: move;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date[data-v-ab75349c]:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 50px;\n background-color: #F9FAFB;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li[data-v-ab75349c] {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li[data-v-ab75349c]:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n width: 1px;\n height: 100%;\n background-color: rgba(237, 241, 242, 0.75);\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format[data-v-ab75349c] {\n overflow: hidden;\n white-space: nowrap;\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 height: 44px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format .format-day[data-v-ab75349c] {\n line-height: 28px;\n font-size: 18px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-date > li .date-format .format-wook[data-v-ab75349c] {\n line-height: 16px;\n font-weight: 300;\n font-size: 13px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline[data-v-ab75349c] {\n position: absolute;\n top: 76px;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 3;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li[data-v-ab75349c] {\n cursor: default;\n height: 40px;\n border-bottom: 1px solid rgba(237, 241, 242, 0.75);\n position: relative;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item[data-v-ab75349c] {\n position: absolute;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n pointer-events: auto;\n padding: 4px;\n margin-top: 4px;\n background: #e74c3c;\n border-radius: 18px;\n color: #fff;\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 will-change: contents;\n height: 32px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item .timeline-title[data-v-ab75349c] {\n -ms-touch-action: none;\n touch-action: none;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-left: 4px;\n margin-right: 10px;\n}\n.wook-gantt .gantt-right .gantt-chart .gantt-timeline > li .timeline-item .timeline-resizer[data-v-ab75349c] {\n height: 22px;\n -ms-touch-action: none;\n touch-action: none;\n width: 8px;\n background: rgba(255, 255, 255, 0.1);\n cursor: ew-resize;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n will-change: visibility;\n position: absolute;\n top: 5px;\n right: 5px;\n}\n", ""]);
  5205. // exports
  5206. /***/ }),
  5207. /***/ 796:
  5208. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5209. "use strict";
  5210. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5211. 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; };
  5212. //
  5213. //
  5214. //
  5215. //
  5216. //
  5217. //
  5218. //
  5219. //
  5220. //
  5221. //
  5222. //
  5223. //
  5224. //
  5225. //
  5226. //
  5227. //
  5228. //
  5229. //
  5230. //
  5231. //
  5232. //
  5233. //
  5234. //
  5235. //
  5236. //
  5237. //
  5238. //
  5239. //
  5240. //
  5241. //
  5242. //
  5243. //
  5244. //
  5245. //
  5246. //
  5247. //
  5248. //
  5249. //
  5250. //
  5251. //
  5252. //
  5253. //
  5254. //
  5255. //
  5256. //
  5257. //
  5258. //
  5259. //
  5260. //
  5261. //
  5262. /* harmony default export */ __webpack_exports__["default"] = ({
  5263. name: 'GanttView',
  5264. props: {
  5265. lists: {
  5266. type: Array
  5267. },
  5268. menuWidth: {
  5269. type: Number,
  5270. default: 300
  5271. },
  5272. itemWidth: {
  5273. type: Number,
  5274. default: 100
  5275. }
  5276. },
  5277. data: function data() {
  5278. return {
  5279. mouseType: '',
  5280. mouseWidth: 0,
  5281. mouseScaleWidth: 0,
  5282. dateWidth: 100,
  5283. ganttWidth: 0,
  5284. mouseItem: null,
  5285. mouseBak: {},
  5286. dateMove: null
  5287. };
  5288. },
  5289. mounted: function mounted() {
  5290. this.dateWidth = this.itemWidth;
  5291. this.$refs.ganttRight.addEventListener('mousewheel', this.handleScroll, false);
  5292. document.addEventListener('mousemove', this.itemMouseMove);
  5293. document.addEventListener('mouseup', this.itemMouseUp);
  5294. window.addEventListener("resize", this.handleResize, false);
  5295. this.handleResize();
  5296. },
  5297. beforeDestroy: function beforeDestroy() {
  5298. this.$refs.ganttRight.removeEventListener('mousewheel', this.handleScroll, false);
  5299. document.removeEventListener('mousemove', this.itemMouseMove);
  5300. document.removeEventListener('mouseup', this.itemMouseUp);
  5301. window.removeEventListener("resize", this.handleResize, false);
  5302. },
  5303. watch: {
  5304. itemWidth: function itemWidth(val) {
  5305. this.dateWidth = val;
  5306. }
  5307. },
  5308. computed: {
  5309. monthNum: function monthNum() {
  5310. var ganttWidth = this.ganttWidth,
  5311. dateWidth = this.dateWidth;
  5312. return Math.floor(ganttWidth / dateWidth / 30) + 2;
  5313. },
  5314. monthStyle: function monthStyle() {
  5315. var mouseWidth = this.mouseWidth,
  5316. dateWidth = this.dateWidth;
  5317. return function (index) {
  5318. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5319. var date = new Date();
  5320. //今天00:00:00
  5321. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5322. //当前时间
  5323. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5324. //当月最后一天
  5325. var lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1, 0, 23, 59, 59);
  5326. //相差天数
  5327. var diffDay = (lastDay - curDay) / 1000 / 60 / 60 / 24;
  5328. //
  5329. var width = dateWidth * diffDay;
  5330. if (index > 0) {
  5331. lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5332. width = lastDay.getDate() * dateWidth;
  5333. }
  5334. return {
  5335. width: width + 'px'
  5336. };
  5337. };
  5338. },
  5339. monthFormat: function monthFormat() {
  5340. var mouseWidth = this.mouseWidth,
  5341. dateWidth = this.dateWidth;
  5342. return function (index) {
  5343. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5344. var date = new Date();
  5345. //开始位置时间(今天00:00:00)
  5346. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5347. //当前时间
  5348. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5349. //
  5350. if (index > 0) {
  5351. curDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5352. }
  5353. return $A.formatDate("Y-m", curDay);
  5354. };
  5355. },
  5356. dateNum: function dateNum() {
  5357. var ganttWidth = this.ganttWidth,
  5358. dateWidth = this.dateWidth;
  5359. return Math.floor(ganttWidth / dateWidth) + 2;
  5360. },
  5361. dateStyle: function dateStyle() {
  5362. var mouseWidth = this.mouseWidth,
  5363. dateWidth = this.dateWidth;
  5364. return function (index) {
  5365. var style = {};
  5366. //
  5367. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5368. var mouseData = Math.floor(mouseDay) + index;
  5369. if (mouseDay == Math.floor(mouseDay)) {
  5370. mouseData--;
  5371. }
  5372. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5373. var date = new Date(new Date().getTime() + j * 86400000);
  5374. if ([0, 6].indexOf(date.getDay()) !== -1) {
  5375. style.backgroundColor = '#f9fafb';
  5376. }
  5377. //
  5378. var width = dateWidth;
  5379. if (index == 0) {
  5380. width = Math.abs((mouseWidth % width - width) % width);
  5381. }
  5382. style.width = width + 'px';
  5383. return style;
  5384. };
  5385. },
  5386. dateFormat: function dateFormat() {
  5387. var mouseWidth = this.mouseWidth,
  5388. dateWidth = this.dateWidth;
  5389. return function (index, type) {
  5390. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5391. var mouseData = Math.floor(mouseDay) + index;
  5392. if (mouseDay == Math.floor(mouseDay)) {
  5393. mouseData--;
  5394. }
  5395. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5396. var date = new Date(new Date().getTime() + j * 86400000);
  5397. if (type == 'day') {
  5398. return date.getDate();
  5399. } else if (type == 'wook') {
  5400. return this.$L('\u661F\u671F' + '日一二三四五六'.charAt(date.getDay()));
  5401. } else {
  5402. return date;
  5403. }
  5404. };
  5405. },
  5406. itemStyle: function itemStyle() {
  5407. var mouseWidth = this.mouseWidth,
  5408. dateWidth = this.dateWidth,
  5409. ganttWidth = this.ganttWidth;
  5410. return function (item) {
  5411. var _item$time = item.time,
  5412. start = _item$time.start,
  5413. end = _item$time.end;
  5414. var style = item.style,
  5415. moveX = item.moveX,
  5416. moveW = item.moveW;
  5417. var date = new Date();
  5418. //开始位置时间戳(今天00:00:00时间戳)
  5419. var nowTime = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0).getTime();
  5420. //距离开始位置多少天
  5421. var diffStartDay = (start - nowTime) / 1000 / 60 / 60 / 24;
  5422. var diffEndDay = (end - nowTime) / 1000 / 60 / 60 / 24;
  5423. //
  5424. var left = dateWidth * diffStartDay + mouseWidth * -1;
  5425. var width = dateWidth * (diffEndDay - diffStartDay);
  5426. if (typeof moveX === "number") {
  5427. left += moveX;
  5428. }
  5429. if (typeof moveW === "number") {
  5430. width += moveW;
  5431. }
  5432. //
  5433. var customStyle = {
  5434. left: Math.min(Math.max(left, width * -1.2), ganttWidth * 1.2).toFixed(2) + 'px',
  5435. width: width.toFixed(2) + 'px'
  5436. };
  5437. if (left < 0 && Math.abs(left) < width) {
  5438. customStyle.paddingLeft = Math.abs(left).toFixed(2) + 'px';
  5439. }
  5440. if (left + width > ganttWidth && left < ganttWidth) {
  5441. customStyle.paddingRight = Math.abs(left + width - ganttWidth).toFixed(2) + 'px';
  5442. }
  5443. if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) === "object") {
  5444. return Object.assign(customStyle, style);
  5445. }
  5446. return customStyle;
  5447. };
  5448. }
  5449. },
  5450. methods: {
  5451. itemScrollListener: function itemScrollListener(e) {
  5452. if (this.mouseType == 'timeline') {
  5453. return;
  5454. }
  5455. this.$refs.ganttTimeline.scrollTop = e.target.scrollTop;
  5456. },
  5457. timelineScrollListener: function timelineScrollListener(e) {
  5458. if (this.mouseType == 'item') {
  5459. return;
  5460. }
  5461. this.$refs.ganttItem.scrollTop = e.target.scrollTop;
  5462. },
  5463. handleScroll: function handleScroll(e) {
  5464. e.preventDefault();
  5465. if (e.ctrlKey) {
  5466. //缩放
  5467. this.dateWidth = Math.min(600, Math.max(24, this.dateWidth - Math.floor(e.deltaY)));
  5468. this.mouseWidth = this.ganttWidth / 2 * ((this.dateWidth - 100) / 100) + this.dateWidth / 100 * this.mouseScaleWidth;
  5469. return;
  5470. }
  5471. if (e.deltaY != 0) {
  5472. var ganttTimeline = this.$refs.ganttTimeline;
  5473. var newTop = ganttTimeline.scrollTop + e.deltaY;
  5474. if (newTop < 0) {
  5475. newTop = 0;
  5476. } else if (newTop > ganttTimeline.scrollHeight - ganttTimeline.clientHeight) {
  5477. newTop = ganttTimeline.scrollHeight - ganttTimeline.clientHeight;
  5478. }
  5479. if (ganttTimeline.scrollTop != newTop) {
  5480. this.mouseType = 'timeline';
  5481. ganttTimeline.scrollTop = newTop;
  5482. }
  5483. }
  5484. if (e.deltaX != 0) {
  5485. this.mouseWidth += e.deltaX;
  5486. this.mouseScaleWidth += e.deltaX * (100 / this.dateWidth);
  5487. }
  5488. },
  5489. handleResize: function handleResize() {
  5490. this.ganttWidth = this.$refs.ganttTimeline.clientWidth;
  5491. },
  5492. dateMouseDown: function dateMouseDown(e) {
  5493. e.preventDefault();
  5494. this.mouseItem = null;
  5495. this.dateMove = {
  5496. clientX: e.clientX
  5497. };
  5498. },
  5499. itemMouseDown: function itemMouseDown(e, item) {
  5500. e.preventDefault();
  5501. var type = 'moveX';
  5502. if (e.target.className == 'timeline-resizer') {
  5503. type = 'moveW';
  5504. }
  5505. if (typeof item[type] !== "number") {
  5506. this.$set(item, type, 0);
  5507. }
  5508. this.mouseBak = {
  5509. type: type,
  5510. clientX: e.clientX,
  5511. value: item[type]
  5512. };
  5513. this.mouseItem = item;
  5514. this.dateMove = null;
  5515. },
  5516. itemMouseMove: function itemMouseMove(e) {
  5517. if (this.mouseItem != null) {
  5518. e.preventDefault();
  5519. var diff = e.clientX - this.mouseBak.clientX;
  5520. this.$set(this.mouseItem, this.mouseBak.type, this.mouseBak.value + diff);
  5521. } else if (this.dateMove != null) {
  5522. e.preventDefault();
  5523. var moveX = (this.dateMove.clientX - e.clientX) * 5;
  5524. this.dateMove.clientX = e.clientX;
  5525. this.mouseWidth += moveX;
  5526. this.mouseScaleWidth += moveX * (100 / this.dateWidth);
  5527. }
  5528. },
  5529. itemMouseUp: function itemMouseUp(e) {
  5530. if (this.mouseItem != null) {
  5531. var _mouseItem$time = this.mouseItem.time,
  5532. start = _mouseItem$time.start,
  5533. end = _mouseItem$time.end;
  5534. var isM = false;
  5535. //一个宽度的时间
  5536. var oneWidthTime = 86400000 / this.dateWidth;
  5537. //修改起止时间
  5538. if (typeof this.mouseItem.moveX === "number" && this.mouseItem.moveX != 0) {
  5539. var moveTime = this.mouseItem.moveX * oneWidthTime;
  5540. this.$set(this.mouseItem.time, 'start', start + moveTime);
  5541. this.$set(this.mouseItem.time, 'end', end + moveTime);
  5542. this.$set(this.mouseItem, 'moveX', 0);
  5543. isM = true;
  5544. }
  5545. //修改结束时间
  5546. if (typeof this.mouseItem.moveW === "number" && this.mouseItem.moveW != 0) {
  5547. var _moveTime = this.mouseItem.moveW * oneWidthTime;
  5548. this.$set(this.mouseItem.time, 'end', end + _moveTime);
  5549. this.$set(this.mouseItem, 'moveW', 0);
  5550. isM = true;
  5551. }
  5552. //
  5553. if (isM) {
  5554. this.$emit("on-change", this.mouseItem);
  5555. } else if (e.target.className == 'timeline-title') {
  5556. this.clickItem(this.mouseItem);
  5557. }
  5558. this.mouseItem = null;
  5559. } else if (this.dateMove != null) {
  5560. this.dateMove = null;
  5561. }
  5562. },
  5563. scrollPosition: function scrollPosition(pos) {
  5564. var date = new Date();
  5565. //今天00:00:00
  5566. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5567. //一个宽度的时间
  5568. var oneWidthTime = 86400000 / this.dateWidth;
  5569. //
  5570. var moveWidth = (this.lists[pos].time.start - nowDay) / oneWidthTime - this.dateWidth - this.mouseWidth;
  5571. this.mouseWidth += moveWidth;
  5572. this.mouseScaleWidth += moveWidth * (100 / this.dateWidth);
  5573. },
  5574. clickItem: function clickItem(item) {
  5575. this.$emit("on-click", item);
  5576. }
  5577. }
  5578. });
  5579. /***/ }),
  5580. /***/ 797:
  5581. /***/ (function(module, exports, __webpack_require__) {
  5582. var render = function() {
  5583. var _vm = this
  5584. var _h = _vm.$createElement
  5585. var _c = _vm._self._c || _h
  5586. return _c("div", { staticClass: "wook-gantt" }, [
  5587. _c(
  5588. "div",
  5589. { staticClass: "gantt-left", style: { width: _vm.menuWidth + "px" } },
  5590. [
  5591. _c("div", { staticClass: "gantt-title" }, [
  5592. _c("div", { staticClass: "gantt-title-text" }, [
  5593. _vm._v(_vm._s(_vm.$L("任务名称")))
  5594. ])
  5595. ]),
  5596. _vm._v(" "),
  5597. _c(
  5598. "ul",
  5599. {
  5600. ref: "ganttItem",
  5601. staticClass: "gantt-item",
  5602. on: {
  5603. scroll: _vm.itemScrollListener,
  5604. mouseenter: function($event) {
  5605. _vm.mouseType = "item"
  5606. }
  5607. }
  5608. },
  5609. _vm._l(_vm.lists, function(item, key) {
  5610. return _c(
  5611. "li",
  5612. { key: key },
  5613. [
  5614. _c(
  5615. "div",
  5616. {
  5617. staticClass: "item-title",
  5618. on: {
  5619. click: function($event) {
  5620. return _vm.clickItem(item)
  5621. }
  5622. }
  5623. },
  5624. [_vm._v(_vm._s(item.label))]
  5625. ),
  5626. _vm._v(" "),
  5627. _c("Icon", {
  5628. staticClass: "item-icon",
  5629. attrs: { type: "ios-locate-outline" },
  5630. on: {
  5631. click: function($event) {
  5632. return _vm.scrollPosition(key)
  5633. }
  5634. }
  5635. })
  5636. ],
  5637. 1
  5638. )
  5639. }),
  5640. 0
  5641. )
  5642. ]
  5643. ),
  5644. _vm._v(" "),
  5645. _c("div", { ref: "ganttRight", staticClass: "gantt-right" }, [
  5646. _c("div", { staticClass: "gantt-chart" }, [
  5647. _c(
  5648. "ul",
  5649. { staticClass: "gantt-month" },
  5650. _vm._l(_vm.monthNum, function(item, key) {
  5651. return _c("li", { key: key, style: _vm.monthStyle(key) }, [
  5652. _c("div", { staticClass: "month-format" }, [
  5653. _vm._v(_vm._s(_vm.monthFormat(key)))
  5654. ])
  5655. ])
  5656. }),
  5657. 0
  5658. ),
  5659. _vm._v(" "),
  5660. _c(
  5661. "ul",
  5662. { staticClass: "gantt-date", on: { mousedown: _vm.dateMouseDown } },
  5663. _vm._l(_vm.dateNum, function(item, key) {
  5664. return _c("li", { key: key, style: _vm.dateStyle(key) }, [
  5665. _c("div", { staticClass: "date-format" }, [
  5666. _c("div", { staticClass: "format-day" }, [
  5667. _vm._v(_vm._s(_vm.dateFormat(key, "day")))
  5668. ]),
  5669. _vm._v(" "),
  5670. _vm.dateWidth > 46
  5671. ? _c("div", { staticClass: "format-wook" }, [
  5672. _vm._v(_vm._s(_vm.dateFormat(key, "wook")))
  5673. ])
  5674. : _vm._e()
  5675. ])
  5676. ])
  5677. }),
  5678. 0
  5679. ),
  5680. _vm._v(" "),
  5681. _c(
  5682. "ul",
  5683. {
  5684. ref: "ganttTimeline",
  5685. staticClass: "gantt-timeline",
  5686. on: {
  5687. scroll: _vm.timelineScrollListener,
  5688. mouseenter: function($event) {
  5689. _vm.mouseType = "timeline"
  5690. }
  5691. }
  5692. },
  5693. _vm._l(_vm.lists, function(item, key) {
  5694. return _c("li", { key: key }, [
  5695. _c(
  5696. "div",
  5697. {
  5698. staticClass: "timeline-item",
  5699. style: _vm.itemStyle(item),
  5700. on: {
  5701. mousedown: function($event) {
  5702. return _vm.itemMouseDown($event, item)
  5703. }
  5704. }
  5705. },
  5706. [
  5707. _c("div", { staticClass: "timeline-title" }, [
  5708. _vm._v(_vm._s(item.label))
  5709. ]),
  5710. _vm._v(" "),
  5711. _c("div", { staticClass: "timeline-resizer" })
  5712. ]
  5713. )
  5714. ])
  5715. }),
  5716. 0
  5717. )
  5718. ])
  5719. ])
  5720. ])
  5721. }
  5722. var staticRenderFns = []
  5723. render._withStripped = true
  5724. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5725. if (false) {
  5726. module.hot.accept()
  5727. if (module.hot.data) {
  5728. require("vue-hot-reload-api") .rerender("data-v-ab75349c", module.exports)
  5729. }
  5730. }
  5731. /***/ }),
  5732. /***/ 798:
  5733. /***/ (function(module, exports, __webpack_require__) {
  5734. var render = function() {
  5735. var _vm = this
  5736. var _h = _vm.$createElement
  5737. var _c = _vm._self._c || _h
  5738. return _c(
  5739. "div",
  5740. { staticClass: "project-gstc-gantt" },
  5741. [
  5742. _c("GanttView", {
  5743. attrs: {
  5744. lists: _vm.lists,
  5745. menuWidth: _vm.windowMax768 ? 180 : 260,
  5746. itemWidth: 80
  5747. },
  5748. on: { "on-change": _vm.updateTime, "on-click": _vm.clickItem }
  5749. }),
  5750. _vm._v(" "),
  5751. _c(
  5752. "Dropdown",
  5753. {
  5754. staticClass: "project-gstc-dropdown-filtr",
  5755. style: _vm.windowMax768 ? { left: "142px" } : {},
  5756. on: { "on-click": _vm.tapProject }
  5757. },
  5758. [
  5759. _c("Icon", {
  5760. staticClass: "project-gstc-dropdown-icon",
  5761. class: { filtr: _vm.filtrProjectId > 0 },
  5762. attrs: { type: "md-funnel" }
  5763. }),
  5764. _vm._v(" "),
  5765. _c(
  5766. "DropdownMenu",
  5767. { attrs: { slot: "list" }, slot: "list" },
  5768. [
  5769. _c(
  5770. "DropdownItem",
  5771. {
  5772. class: { "dropdown-active": _vm.filtrProjectId == 0 },
  5773. attrs: { name: 0 }
  5774. },
  5775. [_vm._v(_vm._s(_vm.$L("全部")))]
  5776. ),
  5777. _vm._v(" "),
  5778. _vm._l(_vm.projectLabel, function(item, index) {
  5779. return _c(
  5780. "DropdownItem",
  5781. {
  5782. key: index,
  5783. class: { "dropdown-active": _vm.filtrProjectId == item.id },
  5784. attrs: { name: item.id }
  5785. },
  5786. [
  5787. _vm._v(
  5788. _vm._s(item.title) +
  5789. " (" +
  5790. _vm._s(item.taskLists.length) +
  5791. ")"
  5792. )
  5793. ]
  5794. )
  5795. })
  5796. ],
  5797. 2
  5798. )
  5799. ],
  5800. 1
  5801. ),
  5802. _vm._v(" "),
  5803. _c(
  5804. "div",
  5805. {
  5806. staticClass: "project-gstc-close",
  5807. on: {
  5808. click: function($event) {
  5809. return _vm.$emit("on-close")
  5810. }
  5811. }
  5812. },
  5813. [_c("Icon", { attrs: { type: "md-close" } })],
  5814. 1
  5815. ),
  5816. _vm._v(" "),
  5817. _c(
  5818. "div",
  5819. {
  5820. staticClass: "project-gstc-edit",
  5821. class: { info: _vm.editShowInfo, visible: _vm.editData.length > 0 }
  5822. },
  5823. [
  5824. _c(
  5825. "div",
  5826. { staticClass: "project-gstc-edit-info" },
  5827. [
  5828. _c("Table", {
  5829. staticClass: "tableFill",
  5830. attrs: {
  5831. size: "small",
  5832. "max-height": "600",
  5833. columns: _vm.editColumns,
  5834. data: _vm.editData
  5835. }
  5836. }),
  5837. _vm._v(" "),
  5838. _c(
  5839. "div",
  5840. { staticClass: "project-gstc-edit-btns" },
  5841. [
  5842. _c(
  5843. "Button",
  5844. {
  5845. attrs: {
  5846. loading: _vm.editLoad > 0,
  5847. size: "small",
  5848. type: "text"
  5849. },
  5850. on: {
  5851. click: function($event) {
  5852. return _vm.editSubmit(false)
  5853. }
  5854. }
  5855. },
  5856. [_vm._v(_vm._s(_vm.$L("取消")))]
  5857. ),
  5858. _vm._v(" "),
  5859. _c(
  5860. "Button",
  5861. {
  5862. attrs: {
  5863. loading: _vm.editLoad > 0,
  5864. size: "small",
  5865. type: "primary"
  5866. },
  5867. on: {
  5868. click: function($event) {
  5869. return _vm.editSubmit(true)
  5870. }
  5871. }
  5872. },
  5873. [_vm._v(_vm._s(_vm.$L("保存")))]
  5874. ),
  5875. _vm._v(" "),
  5876. _c("Icon", {
  5877. staticClass: "zoom",
  5878. attrs: { type: "md-arrow-dropright" },
  5879. on: {
  5880. click: function($event) {
  5881. _vm.editShowInfo = false
  5882. }
  5883. }
  5884. })
  5885. ],
  5886. 1
  5887. )
  5888. ],
  5889. 1
  5890. ),
  5891. _vm._v(" "),
  5892. _c(
  5893. "div",
  5894. { staticClass: "project-gstc-edit-small" },
  5895. [
  5896. _c(
  5897. "div",
  5898. {
  5899. staticClass: "project-gstc-edit-text",
  5900. on: {
  5901. click: function($event) {
  5902. _vm.editShowInfo = true
  5903. }
  5904. }
  5905. },
  5906. [
  5907. _vm._v(
  5908. _vm._s(_vm.$L("未保存计划时间")) +
  5909. ": " +
  5910. _vm._s(_vm.editData.length)
  5911. )
  5912. ]
  5913. ),
  5914. _vm._v(" "),
  5915. _c(
  5916. "Button",
  5917. {
  5918. attrs: {
  5919. loading: _vm.editLoad > 0,
  5920. size: "small",
  5921. type: "text"
  5922. },
  5923. on: {
  5924. click: function($event) {
  5925. return _vm.editSubmit(false)
  5926. }
  5927. }
  5928. },
  5929. [_vm._v(_vm._s(_vm.$L("取消")))]
  5930. ),
  5931. _vm._v(" "),
  5932. _c(
  5933. "Button",
  5934. {
  5935. attrs: {
  5936. loading: _vm.editLoad > 0,
  5937. size: "small",
  5938. type: "primary"
  5939. },
  5940. on: {
  5941. click: function($event) {
  5942. return _vm.editSubmit(true)
  5943. }
  5944. }
  5945. },
  5946. [_vm._v(_vm._s(_vm.$L("保存")))]
  5947. )
  5948. ],
  5949. 1
  5950. )
  5951. ]
  5952. )
  5953. ],
  5954. 1
  5955. )
  5956. }
  5957. var staticRenderFns = []
  5958. render._withStripped = true
  5959. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5960. if (false) {
  5961. module.hot.accept()
  5962. if (module.hot.data) {
  5963. require("vue-hot-reload-api") .rerender("data-v-91cfb088", module.exports)
  5964. }
  5965. }
  5966. /***/ }),
  5967. /***/ 799:
  5968. /***/ (function(module, exports, __webpack_require__) {
  5969. var disposed = false
  5970. function injectStyle (ssrContext) {
  5971. if (disposed) return
  5972. __webpack_require__(800)
  5973. }
  5974. var normalizeComponent = __webpack_require__(2)
  5975. /* script */
  5976. var __vue_script__ = __webpack_require__(802)
  5977. /* template */
  5978. var __vue_template__ = __webpack_require__(803)
  5979. /* template functional */
  5980. var __vue_template_functional__ = false
  5981. /* styles */
  5982. var __vue_styles__ = injectStyle
  5983. /* scopeId */
  5984. var __vue_scopeId__ = "data-v-6f0e28b5"
  5985. /* moduleIdentifier (server only) */
  5986. var __vue_module_identifier__ = null
  5987. var Component = normalizeComponent(
  5988. __vue_script__,
  5989. __vue_template__,
  5990. __vue_template_functional__,
  5991. __vue_styles__,
  5992. __vue_scopeId__,
  5993. __vue_module_identifier__
  5994. )
  5995. Component.options.__file = "resources/assets/js/main/components/project/setting.vue"
  5996. /* hot reload */
  5997. if (false) {(function () {
  5998. var hotAPI = require("vue-hot-reload-api")
  5999. hotAPI.install(require("vue"), false)
  6000. if (!hotAPI.compatible) return
  6001. module.hot.accept()
  6002. if (!module.hot.data) {
  6003. hotAPI.createRecord("data-v-6f0e28b5", Component.options)
  6004. } else {
  6005. hotAPI.reload("data-v-6f0e28b5", Component.options)
  6006. }
  6007. module.hot.dispose(function (data) {
  6008. disposed = true
  6009. })
  6010. })()}
  6011. module.exports = Component.exports
  6012. /***/ }),
  6013. /***/ 800:
  6014. /***/ (function(module, exports, __webpack_require__) {
  6015. // style-loader: Adds some css to the DOM by adding a <style> tag
  6016. // load the styles
  6017. var content = __webpack_require__(801);
  6018. if(typeof content === 'string') content = [[module.i, content, '']];
  6019. if(content.locals) module.exports = content.locals;
  6020. // add the styles to the DOM
  6021. var update = __webpack_require__(1)("6310644a", content, false, {});
  6022. // Hot Module Replacement
  6023. if(false) {
  6024. // When the styles change, update the <style> tags
  6025. if(!content.locals) {
  6026. module.hot.accept("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6f0e28b5\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue", function() {
  6027. var newContent = require("!!../../../../../../node_modules/css-loader/index.js!../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6f0e28b5\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./setting.vue");
  6028. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  6029. update(newContent);
  6030. });
  6031. }
  6032. // When the module is disposed, remove the <style> tags
  6033. module.hot.dispose(function() { update(); });
  6034. }
  6035. /***/ }),
  6036. /***/ 801:
  6037. /***/ (function(module, exports, __webpack_require__) {
  6038. exports = module.exports = __webpack_require__(0)(false);
  6039. // imports
  6040. // module
  6041. exports.push([module.i, "\n.project-setting[data-v-6f0e28b5] {\n padding: 0 12px;\n}\n.project-setting .project-setting-title[data-v-6f0e28b5] {\n padding: 12px;\n font-size: 14px;\n font-weight: 600;\n}\n.project-setting .project-setting-group[data-v-6f0e28b5] {\n display: inline-block;\n}\n.project-setting .form-placeholder[data-v-6f0e28b5] {\n font-size: 12px;\n color: #999999;\n}\n.project-setting .form-placeholder[data-v-6f0e28b5]:hover {\n color: #000000;\n}\n", ""]);
  6042. // exports
  6043. /***/ }),
  6044. /***/ 802:
  6045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6046. "use strict";
  6047. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6048. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  6049. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  6050. //
  6051. //
  6052. //
  6053. //
  6054. //
  6055. //
  6056. //
  6057. //
  6058. //
  6059. //
  6060. //
  6061. //
  6062. //
  6063. //
  6064. //
  6065. //
  6066. //
  6067. //
  6068. //
  6069. //
  6070. //
  6071. //
  6072. //
  6073. //
  6074. //
  6075. //
  6076. //
  6077. //
  6078. //
  6079. //
  6080. //
  6081. //
  6082. //
  6083. //
  6084. //
  6085. //
  6086. //
  6087. //
  6088. //
  6089. //
  6090. //
  6091. //
  6092. //
  6093. //
  6094. //
  6095. //
  6096. //
  6097. //
  6098. //
  6099. //
  6100. //
  6101. //
  6102. //
  6103. //
  6104. //
  6105. //
  6106. //
  6107. //
  6108. //
  6109. //
  6110. //
  6111. //
  6112. //
  6113. //
  6114. //
  6115. //
  6116. //
  6117. //
  6118. //
  6119. //
  6120. //
  6121. //
  6122. //
  6123. //
  6124. //
  6125. //
  6126. //
  6127. //
  6128. //
  6129. //
  6130. //
  6131. //
  6132. //
  6133. //
  6134. //
  6135. //
  6136. //
  6137. //
  6138. //
  6139. //
  6140. //
  6141. //
  6142. //
  6143. //
  6144. //
  6145. //
  6146. //
  6147. //
  6148. //
  6149. //
  6150. /* harmony default export */ __webpack_exports__["default"] = ({
  6151. name: 'ProjectSetting',
  6152. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  6153. props: {
  6154. projectid: {
  6155. default: 0
  6156. },
  6157. canload: {
  6158. type: Boolean,
  6159. default: true
  6160. }
  6161. },
  6162. data: function data() {
  6163. return {
  6164. loadYet: false,
  6165. loadIng: 0,
  6166. formSystem: {}
  6167. };
  6168. },
  6169. mounted: function mounted() {
  6170. if (this.canload) {
  6171. this.loadYet = true;
  6172. this.getSetting();
  6173. }
  6174. },
  6175. watch: {
  6176. projectid: function projectid() {
  6177. if (this.loadYet) {
  6178. this.getSetting();
  6179. }
  6180. },
  6181. canload: function canload(val) {
  6182. if (val && !this.loadYet) {
  6183. this.loadYet = true;
  6184. this.getSetting();
  6185. }
  6186. }
  6187. },
  6188. methods: {
  6189. getSetting: function getSetting(save) {
  6190. var _this = this;
  6191. this.loadIng++;
  6192. $A.apiAjax({
  6193. url: 'project/setting?act=' + (save ? 'save' : 'get'),
  6194. data: Object.assign(this.formSystem, {
  6195. projectid: this.projectid
  6196. }),
  6197. complete: function complete() {
  6198. _this.loadIng--;
  6199. },
  6200. success: function success(res) {
  6201. if (res.ret === 1) {
  6202. _this.formSystem = res.data;
  6203. _this.formSystem__reset = $A.cloneData(_this.formSystem);
  6204. if (save) {
  6205. _this.$Message.success(_this.$L('修改成功'));
  6206. _this.$emit('on-change', res.data);
  6207. }
  6208. } else {
  6209. if (save) {
  6210. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  6211. }
  6212. }
  6213. }
  6214. });
  6215. },
  6216. handleSubmit: function handleSubmit(name) {
  6217. var _this2 = this;
  6218. this.$refs[name].validate(function (valid) {
  6219. if (valid) {
  6220. switch (name) {
  6221. case "formSystem":
  6222. {
  6223. _this2.getSetting(true);
  6224. break;
  6225. }
  6226. }
  6227. }
  6228. });
  6229. },
  6230. handleReset: function handleReset(name) {
  6231. if (typeof this[name + '__reset'] !== "undefined") {
  6232. this[name] = $A.cloneData(this[name + '__reset']);
  6233. return;
  6234. }
  6235. this.$refs[name].resetFields();
  6236. }
  6237. }
  6238. });
  6239. /***/ }),
  6240. /***/ 803:
  6241. /***/ (function(module, exports, __webpack_require__) {
  6242. var render = function() {
  6243. var _vm = this
  6244. var _h = _vm.$createElement
  6245. var _c = _vm._self._c || _h
  6246. return _c("drawer-tabs-container", [
  6247. _c(
  6248. "div",
  6249. { staticClass: "project-setting" },
  6250. [
  6251. _c(
  6252. "Form",
  6253. {
  6254. ref: "formSystem",
  6255. attrs: { model: _vm.formSystem, "label-width": 110 },
  6256. nativeOn: {
  6257. submit: function($event) {
  6258. $event.preventDefault()
  6259. }
  6260. }
  6261. },
  6262. [
  6263. _c("div", { staticClass: "project-setting-title" }, [
  6264. _vm._v(_vm._s(_vm.$L("项目信息")) + ":")
  6265. ]),
  6266. _vm._v(" "),
  6267. _c(
  6268. "FormItem",
  6269. { attrs: { label: _vm.$L("项目简介") } },
  6270. [
  6271. _c("Input", {
  6272. staticStyle: { "max-width": "450px" },
  6273. attrs: {
  6274. type: "textarea",
  6275. autosize: { minRows: 3, maxRows: 20 }
  6276. },
  6277. model: {
  6278. value: _vm.formSystem.project_desc,
  6279. callback: function($$v) {
  6280. _vm.$set(_vm.formSystem, "project_desc", $$v)
  6281. },
  6282. expression: "formSystem.project_desc"
  6283. }
  6284. })
  6285. ],
  6286. 1
  6287. ),
  6288. _vm._v(" "),
  6289. _c("div", { staticClass: "project-setting-title" }, [
  6290. _vm._v(_vm._s(_vm.$L("项目权限")) + ":")
  6291. ]),
  6292. _vm._v(" "),
  6293. _c(
  6294. "FormItem",
  6295. { attrs: { prop: "project_role_export" } },
  6296. [
  6297. _c(
  6298. "div",
  6299. { attrs: { slot: "label" }, slot: "label" },
  6300. [
  6301. _c(
  6302. "Tooltip",
  6303. {
  6304. attrs: {
  6305. content: _vm.$L("任务列表导出Excel"),
  6306. transfer: ""
  6307. }
  6308. },
  6309. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  6310. )
  6311. ],
  6312. 1
  6313. ),
  6314. _vm._v(" "),
  6315. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6316. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6317. ]),
  6318. _vm._v(" "),
  6319. _c(
  6320. "CheckboxGroup",
  6321. {
  6322. staticClass: "project-setting-group",
  6323. model: {
  6324. value: _vm.formSystem.project_role_export,
  6325. callback: function($$v) {
  6326. _vm.$set(_vm.formSystem, "project_role_export", $$v)
  6327. },
  6328. expression: "formSystem.project_role_export"
  6329. }
  6330. },
  6331. [
  6332. _c("Checkbox", { attrs: { label: "member" } }, [
  6333. _vm._v(_vm._s(_vm.$L("项目成员")))
  6334. ])
  6335. ],
  6336. 1
  6337. )
  6338. ],
  6339. 1
  6340. ),
  6341. _vm._v(" "),
  6342. _c("div", { staticClass: "project-setting-title" }, [
  6343. _vm._v(_vm._s(_vm.$L("任务权限")) + ":")
  6344. ]),
  6345. _vm._v(" "),
  6346. _c(
  6347. "FormItem",
  6348. { attrs: { label: _vm.$L("添加任务") } },
  6349. [
  6350. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6351. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6352. ]),
  6353. _vm._v(" "),
  6354. _c(
  6355. "CheckboxGroup",
  6356. {
  6357. staticClass: "project-setting-group",
  6358. model: {
  6359. value: _vm.formSystem.add_role,
  6360. callback: function($$v) {
  6361. _vm.$set(_vm.formSystem, "add_role", $$v)
  6362. },
  6363. expression: "formSystem.add_role"
  6364. }
  6365. },
  6366. [
  6367. _c("Checkbox", { attrs: { label: "member" } }, [
  6368. _vm._v(_vm._s(_vm.$L("项目成员")))
  6369. ])
  6370. ],
  6371. 1
  6372. )
  6373. ],
  6374. 1
  6375. ),
  6376. _vm._v(" "),
  6377. _c(
  6378. "FormItem",
  6379. { attrs: { label: _vm.$L("修改任务") } },
  6380. [
  6381. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6382. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6383. ]),
  6384. _vm._v(" "),
  6385. _c(
  6386. "CheckboxGroup",
  6387. {
  6388. staticClass: "project-setting-group",
  6389. model: {
  6390. value: _vm.formSystem.edit_role,
  6391. callback: function($$v) {
  6392. _vm.$set(_vm.formSystem, "edit_role", $$v)
  6393. },
  6394. expression: "formSystem.edit_role"
  6395. }
  6396. },
  6397. [
  6398. _c("Checkbox", { attrs: { label: "owner" } }, [
  6399. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6400. ]),
  6401. _vm._v(" "),
  6402. _c("Checkbox", { attrs: { label: "member" } }, [
  6403. _vm._v(_vm._s(_vm.$L("项目成员")))
  6404. ])
  6405. ],
  6406. 1
  6407. )
  6408. ],
  6409. 1
  6410. ),
  6411. _vm._v(" "),
  6412. _c(
  6413. "FormItem",
  6414. { attrs: { label: _vm.$L("标记完成") } },
  6415. [
  6416. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6417. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6418. ]),
  6419. _vm._v(" "),
  6420. _c(
  6421. "CheckboxGroup",
  6422. {
  6423. staticClass: "project-setting-group",
  6424. model: {
  6425. value: _vm.formSystem.complete_role,
  6426. callback: function($$v) {
  6427. _vm.$set(_vm.formSystem, "complete_role", $$v)
  6428. },
  6429. expression: "formSystem.complete_role"
  6430. }
  6431. },
  6432. [
  6433. _c("Checkbox", { attrs: { label: "owner" } }, [
  6434. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6435. ]),
  6436. _vm._v(" "),
  6437. _c("Checkbox", { attrs: { label: "member" } }, [
  6438. _vm._v(_vm._s(_vm.$L("项目成员")))
  6439. ])
  6440. ],
  6441. 1
  6442. )
  6443. ],
  6444. 1
  6445. ),
  6446. _vm._v(" "),
  6447. _c(
  6448. "FormItem",
  6449. { attrs: { label: _vm.$L("归档任务") } },
  6450. [
  6451. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6452. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6453. ]),
  6454. _vm._v(" "),
  6455. _c(
  6456. "CheckboxGroup",
  6457. {
  6458. staticClass: "project-setting-group",
  6459. model: {
  6460. value: _vm.formSystem.archived_role,
  6461. callback: function($$v) {
  6462. _vm.$set(_vm.formSystem, "archived_role", $$v)
  6463. },
  6464. expression: "formSystem.archived_role"
  6465. }
  6466. },
  6467. [
  6468. _c("Checkbox", { attrs: { label: "owner" } }, [
  6469. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6470. ]),
  6471. _vm._v(" "),
  6472. _c("Checkbox", { attrs: { label: "member" } }, [
  6473. _vm._v(_vm._s(_vm.$L("项目成员")))
  6474. ])
  6475. ],
  6476. 1
  6477. )
  6478. ],
  6479. 1
  6480. ),
  6481. _vm._v(" "),
  6482. _c(
  6483. "FormItem",
  6484. { attrs: { label: _vm.$L("删除任务") } },
  6485. [
  6486. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6487. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6488. ]),
  6489. _vm._v(" "),
  6490. _c(
  6491. "CheckboxGroup",
  6492. {
  6493. staticClass: "project-setting-group",
  6494. model: {
  6495. value: _vm.formSystem.del_role,
  6496. callback: function($$v) {
  6497. _vm.$set(_vm.formSystem, "del_role", $$v)
  6498. },
  6499. expression: "formSystem.del_role"
  6500. }
  6501. },
  6502. [
  6503. _c("Checkbox", { attrs: { label: "owner" } }, [
  6504. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6505. ]),
  6506. _vm._v(" "),
  6507. _c("Checkbox", { attrs: { label: "member" } }, [
  6508. _vm._v(_vm._s(_vm.$L("项目成员")))
  6509. ])
  6510. ],
  6511. 1
  6512. )
  6513. ],
  6514. 1
  6515. ),
  6516. _vm._v(" "),
  6517. _c("div", { staticClass: "project-setting-title" }, [
  6518. _vm._v(_vm._s(_vm.$L("面板显示")) + ":")
  6519. ]),
  6520. _vm._v(" "),
  6521. _c("FormItem", { attrs: { label: _vm.$L("显示已完成") } }, [
  6522. _c(
  6523. "div",
  6524. [
  6525. _c(
  6526. "RadioGroup",
  6527. {
  6528. model: {
  6529. value: _vm.formSystem.complete_show,
  6530. callback: function($$v) {
  6531. _vm.$set(_vm.formSystem, "complete_show", $$v)
  6532. },
  6533. expression: "formSystem.complete_show"
  6534. }
  6535. },
  6536. [
  6537. _c("Radio", { attrs: { label: "show" } }, [
  6538. _vm._v(_vm._s(_vm.$L("显示")))
  6539. ]),
  6540. _vm._v(" "),
  6541. _c("Radio", { attrs: { label: "hide" } }, [
  6542. _vm._v(_vm._s(_vm.$L("隐藏")))
  6543. ])
  6544. ],
  6545. 1
  6546. )
  6547. ],
  6548. 1
  6549. ),
  6550. _vm._v(" "),
  6551. _vm.formSystem.complete_show == "show"
  6552. ? _c("div", { staticClass: "form-placeholder" }, [
  6553. _vm._v(
  6554. "\n " +
  6555. _vm._s(_vm.$L("项目面板显示已完成的任务。")) +
  6556. "\n "
  6557. )
  6558. ])
  6559. : _c("div", { staticClass: "form-placeholder" }, [
  6560. _vm._v(
  6561. "\n " +
  6562. _vm._s(_vm.$L("项目面板隐藏已完成的任务。")) +
  6563. "\n "
  6564. )
  6565. ])
  6566. ]),
  6567. _vm._v(" "),
  6568. _c(
  6569. "FormItem",
  6570. [
  6571. _c(
  6572. "Button",
  6573. {
  6574. attrs: { loading: _vm.loadIng > 0, type: "primary" },
  6575. on: {
  6576. click: function($event) {
  6577. return _vm.handleSubmit("formSystem")
  6578. }
  6579. }
  6580. },
  6581. [_vm._v(_vm._s(_vm.$L("提交")))]
  6582. ),
  6583. _vm._v(" "),
  6584. _c(
  6585. "Button",
  6586. {
  6587. staticStyle: { "margin-left": "8px" },
  6588. attrs: { loading: _vm.loadIng > 0 },
  6589. on: {
  6590. click: function($event) {
  6591. return _vm.handleReset("formSystem")
  6592. }
  6593. }
  6594. },
  6595. [_vm._v(_vm._s(_vm.$L("重置")))]
  6596. )
  6597. ],
  6598. 1
  6599. )
  6600. ],
  6601. 1
  6602. )
  6603. ],
  6604. 1
  6605. )
  6606. ])
  6607. }
  6608. var staticRenderFns = []
  6609. render._withStripped = true
  6610. module.exports = { render: render, staticRenderFns: staticRenderFns }
  6611. if (false) {
  6612. module.hot.accept()
  6613. if (module.hot.data) {
  6614. require("vue-hot-reload-api") .rerender("data-v-6f0e28b5", module.exports)
  6615. }
  6616. }
  6617. /***/ }),
  6618. /***/ 804:
  6619. /***/ (function(module, exports, __webpack_require__) {
  6620. var baseOrderBy = __webpack_require__(805),
  6621. isArray = __webpack_require__(16);
  6622. /**
  6623. * This method is like `_.sortBy` except that it allows specifying the sort
  6624. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  6625. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  6626. * descending or "asc" for ascending sort order of corresponding values.
  6627. *
  6628. * @static
  6629. * @memberOf _
  6630. * @since 4.0.0
  6631. * @category Collection
  6632. * @param {Array|Object} collection The collection to iterate over.
  6633. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  6634. * The iteratees to sort by.
  6635. * @param {string[]} [orders] The sort orders of `iteratees`.
  6636. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  6637. * @returns {Array} Returns the new sorted array.
  6638. * @example
  6639. *
  6640. * var users = [
  6641. * { 'user': 'fred', 'age': 48 },
  6642. * { 'user': 'barney', 'age': 34 },
  6643. * { 'user': 'fred', 'age': 40 },
  6644. * { 'user': 'barney', 'age': 36 }
  6645. * ];
  6646. *
  6647. * // Sort by `user` in ascending order and by `age` in descending order.
  6648. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  6649. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  6650. */
  6651. function orderBy(collection, iteratees, orders, guard) {
  6652. if (collection == null) {
  6653. return [];
  6654. }
  6655. if (!isArray(iteratees)) {
  6656. iteratees = iteratees == null ? [] : [iteratees];
  6657. }
  6658. orders = guard ? undefined : orders;
  6659. if (!isArray(orders)) {
  6660. orders = orders == null ? [] : [orders];
  6661. }
  6662. return baseOrderBy(collection, iteratees, orders);
  6663. }
  6664. module.exports = orderBy;
  6665. /***/ }),
  6666. /***/ 805:
  6667. /***/ (function(module, exports, __webpack_require__) {
  6668. var arrayMap = __webpack_require__(437),
  6669. baseGet = __webpack_require__(359),
  6670. baseIteratee = __webpack_require__(811),
  6671. baseMap = __webpack_require__(833),
  6672. baseSortBy = __webpack_require__(839),
  6673. baseUnary = __webpack_require__(20),
  6674. compareMultiple = __webpack_require__(840),
  6675. identity = __webpack_require__(443),
  6676. isArray = __webpack_require__(16);
  6677. /**
  6678. * The base implementation of `_.orderBy` without param guards.
  6679. *
  6680. * @private
  6681. * @param {Array|Object} collection The collection to iterate over.
  6682. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  6683. * @param {string[]} orders The sort orders of `iteratees`.
  6684. * @returns {Array} Returns the new sorted array.
  6685. */
  6686. function baseOrderBy(collection, iteratees, orders) {
  6687. if (iteratees.length) {
  6688. iteratees = arrayMap(iteratees, function(iteratee) {
  6689. if (isArray(iteratee)) {
  6690. return function(value) {
  6691. return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
  6692. }
  6693. }
  6694. return iteratee;
  6695. });
  6696. } else {
  6697. iteratees = [identity];
  6698. }
  6699. var index = -1;
  6700. iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
  6701. var result = baseMap(collection, function(value, key, collection) {
  6702. var criteria = arrayMap(iteratees, function(iteratee) {
  6703. return iteratee(value);
  6704. });
  6705. return { 'criteria': criteria, 'index': ++index, 'value': value };
  6706. });
  6707. return baseSortBy(result, function(object, other) {
  6708. return compareMultiple(object, other, orders);
  6709. });
  6710. }
  6711. module.exports = baseOrderBy;
  6712. /***/ }),
  6713. /***/ 806:
  6714. /***/ (function(module, exports, __webpack_require__) {
  6715. var memoizeCapped = __webpack_require__(807);
  6716. /** Used to match property names within property paths. */
  6717. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  6718. /** Used to match backslashes in property paths. */
  6719. var reEscapeChar = /\\(\\)?/g;
  6720. /**
  6721. * Converts `string` to a property path array.
  6722. *
  6723. * @private
  6724. * @param {string} string The string to convert.
  6725. * @returns {Array} Returns the property path array.
  6726. */
  6727. var stringToPath = memoizeCapped(function(string) {
  6728. var result = [];
  6729. if (string.charCodeAt(0) === 46 /* . */) {
  6730. result.push('');
  6731. }
  6732. string.replace(rePropName, function(match, number, quote, subString) {
  6733. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  6734. });
  6735. return result;
  6736. });
  6737. module.exports = stringToPath;
  6738. /***/ }),
  6739. /***/ 807:
  6740. /***/ (function(module, exports, __webpack_require__) {
  6741. var memoize = __webpack_require__(808);
  6742. /** Used as the maximum memoize cache size. */
  6743. var MAX_MEMOIZE_SIZE = 500;
  6744. /**
  6745. * A specialized version of `_.memoize` which clears the memoized function's
  6746. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  6747. *
  6748. * @private
  6749. * @param {Function} func The function to have its output memoized.
  6750. * @returns {Function} Returns the new memoized function.
  6751. */
  6752. function memoizeCapped(func) {
  6753. var result = memoize(func, function(key) {
  6754. if (cache.size === MAX_MEMOIZE_SIZE) {
  6755. cache.clear();
  6756. }
  6757. return key;
  6758. });
  6759. var cache = result.cache;
  6760. return result;
  6761. }
  6762. module.exports = memoizeCapped;
  6763. /***/ }),
  6764. /***/ 808:
  6765. /***/ (function(module, exports, __webpack_require__) {
  6766. var MapCache = __webpack_require__(54);
  6767. /** Error message constants. */
  6768. var FUNC_ERROR_TEXT = 'Expected a function';
  6769. /**
  6770. * Creates a function that memoizes the result of `func`. If `resolver` is
  6771. * provided, it determines the cache key for storing the result based on the
  6772. * arguments provided to the memoized function. By default, the first argument
  6773. * provided to the memoized function is used as the map cache key. The `func`
  6774. * is invoked with the `this` binding of the memoized function.
  6775. *
  6776. * **Note:** The cache is exposed as the `cache` property on the memoized
  6777. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  6778. * constructor with one whose instances implement the
  6779. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  6780. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  6781. *
  6782. * @static
  6783. * @memberOf _
  6784. * @since 0.1.0
  6785. * @category Function
  6786. * @param {Function} func The function to have its output memoized.
  6787. * @param {Function} [resolver] The function to resolve the cache key.
  6788. * @returns {Function} Returns the new memoized function.
  6789. * @example
  6790. *
  6791. * var object = { 'a': 1, 'b': 2 };
  6792. * var other = { 'c': 3, 'd': 4 };
  6793. *
  6794. * var values = _.memoize(_.values);
  6795. * values(object);
  6796. * // => [1, 2]
  6797. *
  6798. * values(other);
  6799. * // => [3, 4]
  6800. *
  6801. * object.a = 2;
  6802. * values(object);
  6803. * // => [1, 2]
  6804. *
  6805. * // Modify the result cache.
  6806. * values.cache.set(object, ['a', 'b']);
  6807. * values(object);
  6808. * // => ['a', 'b']
  6809. *
  6810. * // Replace `_.memoize.Cache`.
  6811. * _.memoize.Cache = WeakMap;
  6812. */
  6813. function memoize(func, resolver) {
  6814. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  6815. throw new TypeError(FUNC_ERROR_TEXT);
  6816. }
  6817. var memoized = function() {
  6818. var args = arguments,
  6819. key = resolver ? resolver.apply(this, args) : args[0],
  6820. cache = memoized.cache;
  6821. if (cache.has(key)) {
  6822. return cache.get(key);
  6823. }
  6824. var result = func.apply(this, args);
  6825. memoized.cache = cache.set(key, result) || cache;
  6826. return result;
  6827. };
  6828. memoized.cache = new (memoize.Cache || MapCache);
  6829. return memoized;
  6830. }
  6831. // Expose `MapCache`.
  6832. memoize.Cache = MapCache;
  6833. module.exports = memoize;
  6834. /***/ }),
  6835. /***/ 809:
  6836. /***/ (function(module, exports, __webpack_require__) {
  6837. var baseToString = __webpack_require__(810);
  6838. /**
  6839. * Converts `value` to a string. An empty string is returned for `null`
  6840. * and `undefined` values. The sign of `-0` is preserved.
  6841. *
  6842. * @static
  6843. * @memberOf _
  6844. * @since 4.0.0
  6845. * @category Lang
  6846. * @param {*} value The value to convert.
  6847. * @returns {string} Returns the converted string.
  6848. * @example
  6849. *
  6850. * _.toString(null);
  6851. * // => ''
  6852. *
  6853. * _.toString(-0);
  6854. * // => '-0'
  6855. *
  6856. * _.toString([1, 2, 3]);
  6857. * // => '1,2,3'
  6858. */
  6859. function toString(value) {
  6860. return value == null ? '' : baseToString(value);
  6861. }
  6862. module.exports = toString;
  6863. /***/ }),
  6864. /***/ 810:
  6865. /***/ (function(module, exports, __webpack_require__) {
  6866. var Symbol = __webpack_require__(18),
  6867. arrayMap = __webpack_require__(437),
  6868. isArray = __webpack_require__(16),
  6869. isSymbol = __webpack_require__(325);
  6870. /** Used as references for various `Number` constants. */
  6871. var INFINITY = 1 / 0;
  6872. /** Used to convert symbols to primitives and strings. */
  6873. var symbolProto = Symbol ? Symbol.prototype : undefined,
  6874. symbolToString = symbolProto ? symbolProto.toString : undefined;
  6875. /**
  6876. * The base implementation of `_.toString` which doesn't convert nullish
  6877. * values to empty strings.
  6878. *
  6879. * @private
  6880. * @param {*} value The value to process.
  6881. * @returns {string} Returns the string.
  6882. */
  6883. function baseToString(value) {
  6884. // Exit early for strings to avoid a performance hit in some environments.
  6885. if (typeof value == 'string') {
  6886. return value;
  6887. }
  6888. if (isArray(value)) {
  6889. // Recursively convert values (susceptible to call stack limits).
  6890. return arrayMap(value, baseToString) + '';
  6891. }
  6892. if (isSymbol(value)) {
  6893. return symbolToString ? symbolToString.call(value) : '';
  6894. }
  6895. var result = (value + '');
  6896. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  6897. }
  6898. module.exports = baseToString;
  6899. /***/ }),
  6900. /***/ 811:
  6901. /***/ (function(module, exports, __webpack_require__) {
  6902. var baseMatches = __webpack_require__(812),
  6903. baseMatchesProperty = __webpack_require__(825),
  6904. identity = __webpack_require__(443),
  6905. isArray = __webpack_require__(16),
  6906. property = __webpack_require__(830);
  6907. /**
  6908. * The base implementation of `_.iteratee`.
  6909. *
  6910. * @private
  6911. * @param {*} [value=_.identity] The value to convert to an iteratee.
  6912. * @returns {Function} Returns the iteratee.
  6913. */
  6914. function baseIteratee(value) {
  6915. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  6916. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  6917. if (typeof value == 'function') {
  6918. return value;
  6919. }
  6920. if (value == null) {
  6921. return identity;
  6922. }
  6923. if (typeof value == 'object') {
  6924. return isArray(value)
  6925. ? baseMatchesProperty(value[0], value[1])
  6926. : baseMatches(value);
  6927. }
  6928. return property(value);
  6929. }
  6930. module.exports = baseIteratee;
  6931. /***/ }),
  6932. /***/ 812:
  6933. /***/ (function(module, exports, __webpack_require__) {
  6934. var baseIsMatch = __webpack_require__(813),
  6935. getMatchData = __webpack_require__(824),
  6936. matchesStrictComparable = __webpack_require__(442);
  6937. /**
  6938. * The base implementation of `_.matches` which doesn't clone `source`.
  6939. *
  6940. * @private
  6941. * @param {Object} source The object of property values to match.
  6942. * @returns {Function} Returns the new spec function.
  6943. */
  6944. function baseMatches(source) {
  6945. var matchData = getMatchData(source);
  6946. if (matchData.length == 1 && matchData[0][2]) {
  6947. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  6948. }
  6949. return function(object) {
  6950. return object === source || baseIsMatch(object, source, matchData);
  6951. };
  6952. }
  6953. module.exports = baseMatches;
  6954. /***/ }),
  6955. /***/ 813:
  6956. /***/ (function(module, exports, __webpack_require__) {
  6957. var Stack = __webpack_require__(55),
  6958. baseIsEqual = __webpack_require__(439);
  6959. /** Used to compose bitmasks for value comparisons. */
  6960. var COMPARE_PARTIAL_FLAG = 1,
  6961. COMPARE_UNORDERED_FLAG = 2;
  6962. /**
  6963. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  6964. *
  6965. * @private
  6966. * @param {Object} object The object to inspect.
  6967. * @param {Object} source The object of property values to match.
  6968. * @param {Array} matchData The property names, values, and compare flags to match.
  6969. * @param {Function} [customizer] The function to customize comparisons.
  6970. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  6971. */
  6972. function baseIsMatch(object, source, matchData, customizer) {
  6973. var index = matchData.length,
  6974. length = index,
  6975. noCustomizer = !customizer;
  6976. if (object == null) {
  6977. return !length;
  6978. }
  6979. object = Object(object);
  6980. while (index--) {
  6981. var data = matchData[index];
  6982. if ((noCustomizer && data[2])
  6983. ? data[1] !== object[data[0]]
  6984. : !(data[0] in object)
  6985. ) {
  6986. return false;
  6987. }
  6988. }
  6989. while (++index < length) {
  6990. data = matchData[index];
  6991. var key = data[0],
  6992. objValue = object[key],
  6993. srcValue = data[1];
  6994. if (noCustomizer && data[2]) {
  6995. if (objValue === undefined && !(key in object)) {
  6996. return false;
  6997. }
  6998. } else {
  6999. var stack = new Stack;
  7000. if (customizer) {
  7001. var result = customizer(objValue, srcValue, key, object, source, stack);
  7002. }
  7003. if (!(result === undefined
  7004. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  7005. : result
  7006. )) {
  7007. return false;
  7008. }
  7009. }
  7010. }
  7011. return true;
  7012. }
  7013. module.exports = baseIsMatch;
  7014. /***/ }),
  7015. /***/ 814:
  7016. /***/ (function(module, exports, __webpack_require__) {
  7017. var Stack = __webpack_require__(55),
  7018. equalArrays = __webpack_require__(440),
  7019. equalByTag = __webpack_require__(820),
  7020. equalObjects = __webpack_require__(823),
  7021. getTag = __webpack_require__(21),
  7022. isArray = __webpack_require__(16),
  7023. isBuffer = __webpack_require__(34),
  7024. isTypedArray = __webpack_require__(64);
  7025. /** Used to compose bitmasks for value comparisons. */
  7026. var COMPARE_PARTIAL_FLAG = 1;
  7027. /** `Object#toString` result references. */
  7028. var argsTag = '[object Arguments]',
  7029. arrayTag = '[object Array]',
  7030. objectTag = '[object Object]';
  7031. /** Used for built-in method references. */
  7032. var objectProto = Object.prototype;
  7033. /** Used to check objects for own properties. */
  7034. var hasOwnProperty = objectProto.hasOwnProperty;
  7035. /**
  7036. * A specialized version of `baseIsEqual` for arrays and objects which performs
  7037. * deep comparisons and tracks traversed objects enabling objects with circular
  7038. * references to be compared.
  7039. *
  7040. * @private
  7041. * @param {Object} object The object to compare.
  7042. * @param {Object} other The other object to compare.
  7043. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7044. * @param {Function} customizer The function to customize comparisons.
  7045. * @param {Function} equalFunc The function to determine equivalents of values.
  7046. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  7047. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7048. */
  7049. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  7050. var objIsArr = isArray(object),
  7051. othIsArr = isArray(other),
  7052. objTag = objIsArr ? arrayTag : getTag(object),
  7053. othTag = othIsArr ? arrayTag : getTag(other);
  7054. objTag = objTag == argsTag ? objectTag : objTag;
  7055. othTag = othTag == argsTag ? objectTag : othTag;
  7056. var objIsObj = objTag == objectTag,
  7057. othIsObj = othTag == objectTag,
  7058. isSameTag = objTag == othTag;
  7059. if (isSameTag && isBuffer(object)) {
  7060. if (!isBuffer(other)) {
  7061. return false;
  7062. }
  7063. objIsArr = true;
  7064. objIsObj = false;
  7065. }
  7066. if (isSameTag && !objIsObj) {
  7067. stack || (stack = new Stack);
  7068. return (objIsArr || isTypedArray(object))
  7069. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  7070. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  7071. }
  7072. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  7073. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  7074. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  7075. if (objIsWrapped || othIsWrapped) {
  7076. var objUnwrapped = objIsWrapped ? object.value() : object,
  7077. othUnwrapped = othIsWrapped ? other.value() : other;
  7078. stack || (stack = new Stack);
  7079. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  7080. }
  7081. }
  7082. if (!isSameTag) {
  7083. return false;
  7084. }
  7085. stack || (stack = new Stack);
  7086. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  7087. }
  7088. module.exports = baseIsEqualDeep;
  7089. /***/ }),
  7090. /***/ 815:
  7091. /***/ (function(module, exports, __webpack_require__) {
  7092. var MapCache = __webpack_require__(54),
  7093. setCacheAdd = __webpack_require__(816),
  7094. setCacheHas = __webpack_require__(817);
  7095. /**
  7096. *
  7097. * Creates an array cache object to store unique values.
  7098. *
  7099. * @private
  7100. * @constructor
  7101. * @param {Array} [values] The values to cache.
  7102. */
  7103. function SetCache(values) {
  7104. var index = -1,
  7105. length = values == null ? 0 : values.length;
  7106. this.__data__ = new MapCache;
  7107. while (++index < length) {
  7108. this.add(values[index]);
  7109. }
  7110. }
  7111. // Add methods to `SetCache`.
  7112. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  7113. SetCache.prototype.has = setCacheHas;
  7114. module.exports = SetCache;
  7115. /***/ }),
  7116. /***/ 816:
  7117. /***/ (function(module, exports) {
  7118. /** Used to stand-in for `undefined` hash values. */
  7119. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  7120. /**
  7121. * Adds `value` to the array cache.
  7122. *
  7123. * @private
  7124. * @name add
  7125. * @memberOf SetCache
  7126. * @alias push
  7127. * @param {*} value The value to cache.
  7128. * @returns {Object} Returns the cache instance.
  7129. */
  7130. function setCacheAdd(value) {
  7131. this.__data__.set(value, HASH_UNDEFINED);
  7132. return this;
  7133. }
  7134. module.exports = setCacheAdd;
  7135. /***/ }),
  7136. /***/ 817:
  7137. /***/ (function(module, exports) {
  7138. /**
  7139. * Checks if `value` is in the array cache.
  7140. *
  7141. * @private
  7142. * @name has
  7143. * @memberOf SetCache
  7144. * @param {*} value The value to search for.
  7145. * @returns {number} Returns `true` if `value` is found, else `false`.
  7146. */
  7147. function setCacheHas(value) {
  7148. return this.__data__.has(value);
  7149. }
  7150. module.exports = setCacheHas;
  7151. /***/ }),
  7152. /***/ 818:
  7153. /***/ (function(module, exports) {
  7154. /**
  7155. * A specialized version of `_.some` for arrays without support for iteratee
  7156. * shorthands.
  7157. *
  7158. * @private
  7159. * @param {Array} [array] The array to iterate over.
  7160. * @param {Function} predicate The function invoked per iteration.
  7161. * @returns {boolean} Returns `true` if any element passes the predicate check,
  7162. * else `false`.
  7163. */
  7164. function arraySome(array, predicate) {
  7165. var index = -1,
  7166. length = array == null ? 0 : array.length;
  7167. while (++index < length) {
  7168. if (predicate(array[index], index, array)) {
  7169. return true;
  7170. }
  7171. }
  7172. return false;
  7173. }
  7174. module.exports = arraySome;
  7175. /***/ }),
  7176. /***/ 819:
  7177. /***/ (function(module, exports) {
  7178. /**
  7179. * Checks if a `cache` value for `key` exists.
  7180. *
  7181. * @private
  7182. * @param {Object} cache The cache to query.
  7183. * @param {string} key The key of the entry to check.
  7184. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  7185. */
  7186. function cacheHas(cache, key) {
  7187. return cache.has(key);
  7188. }
  7189. module.exports = cacheHas;
  7190. /***/ }),
  7191. /***/ 820:
  7192. /***/ (function(module, exports, __webpack_require__) {
  7193. var Symbol = __webpack_require__(18),
  7194. Uint8Array = __webpack_require__(60),
  7195. eq = __webpack_require__(33),
  7196. equalArrays = __webpack_require__(440),
  7197. mapToArray = __webpack_require__(821),
  7198. setToArray = __webpack_require__(822);
  7199. /** Used to compose bitmasks for value comparisons. */
  7200. var COMPARE_PARTIAL_FLAG = 1,
  7201. COMPARE_UNORDERED_FLAG = 2;
  7202. /** `Object#toString` result references. */
  7203. var boolTag = '[object Boolean]',
  7204. dateTag = '[object Date]',
  7205. errorTag = '[object Error]',
  7206. mapTag = '[object Map]',
  7207. numberTag = '[object Number]',
  7208. regexpTag = '[object RegExp]',
  7209. setTag = '[object Set]',
  7210. stringTag = '[object String]',
  7211. symbolTag = '[object Symbol]';
  7212. var arrayBufferTag = '[object ArrayBuffer]',
  7213. dataViewTag = '[object DataView]';
  7214. /** Used to convert symbols to primitives and strings. */
  7215. var symbolProto = Symbol ? Symbol.prototype : undefined,
  7216. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  7217. /**
  7218. * A specialized version of `baseIsEqualDeep` for comparing objects of
  7219. * the same `toStringTag`.
  7220. *
  7221. * **Note:** This function only supports comparing values with tags of
  7222. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  7223. *
  7224. * @private
  7225. * @param {Object} object The object to compare.
  7226. * @param {Object} other The other object to compare.
  7227. * @param {string} tag The `toStringTag` of the objects to compare.
  7228. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7229. * @param {Function} customizer The function to customize comparisons.
  7230. * @param {Function} equalFunc The function to determine equivalents of values.
  7231. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7232. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7233. */
  7234. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  7235. switch (tag) {
  7236. case dataViewTag:
  7237. if ((object.byteLength != other.byteLength) ||
  7238. (object.byteOffset != other.byteOffset)) {
  7239. return false;
  7240. }
  7241. object = object.buffer;
  7242. other = other.buffer;
  7243. case arrayBufferTag:
  7244. if ((object.byteLength != other.byteLength) ||
  7245. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  7246. return false;
  7247. }
  7248. return true;
  7249. case boolTag:
  7250. case dateTag:
  7251. case numberTag:
  7252. // Coerce booleans to `1` or `0` and dates to milliseconds.
  7253. // Invalid dates are coerced to `NaN`.
  7254. return eq(+object, +other);
  7255. case errorTag:
  7256. return object.name == other.name && object.message == other.message;
  7257. case regexpTag:
  7258. case stringTag:
  7259. // Coerce regexes to strings and treat strings, primitives and objects,
  7260. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  7261. // for more details.
  7262. return object == (other + '');
  7263. case mapTag:
  7264. var convert = mapToArray;
  7265. case setTag:
  7266. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  7267. convert || (convert = setToArray);
  7268. if (object.size != other.size && !isPartial) {
  7269. return false;
  7270. }
  7271. // Assume cyclic values are equal.
  7272. var stacked = stack.get(object);
  7273. if (stacked) {
  7274. return stacked == other;
  7275. }
  7276. bitmask |= COMPARE_UNORDERED_FLAG;
  7277. // Recursively compare objects (susceptible to call stack limits).
  7278. stack.set(object, other);
  7279. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  7280. stack['delete'](object);
  7281. return result;
  7282. case symbolTag:
  7283. if (symbolValueOf) {
  7284. return symbolValueOf.call(object) == symbolValueOf.call(other);
  7285. }
  7286. }
  7287. return false;
  7288. }
  7289. module.exports = equalByTag;
  7290. /***/ }),
  7291. /***/ 821:
  7292. /***/ (function(module, exports) {
  7293. /**
  7294. * Converts `map` to its key-value pairs.
  7295. *
  7296. * @private
  7297. * @param {Object} map The map to convert.
  7298. * @returns {Array} Returns the key-value pairs.
  7299. */
  7300. function mapToArray(map) {
  7301. var index = -1,
  7302. result = Array(map.size);
  7303. map.forEach(function(value, key) {
  7304. result[++index] = [key, value];
  7305. });
  7306. return result;
  7307. }
  7308. module.exports = mapToArray;
  7309. /***/ }),
  7310. /***/ 822:
  7311. /***/ (function(module, exports) {
  7312. /**
  7313. * Converts `set` to an array of its values.
  7314. *
  7315. * @private
  7316. * @param {Object} set The set to convert.
  7317. * @returns {Array} Returns the values.
  7318. */
  7319. function setToArray(set) {
  7320. var index = -1,
  7321. result = Array(set.size);
  7322. set.forEach(function(value) {
  7323. result[++index] = value;
  7324. });
  7325. return result;
  7326. }
  7327. module.exports = setToArray;
  7328. /***/ }),
  7329. /***/ 823:
  7330. /***/ (function(module, exports, __webpack_require__) {
  7331. var getAllKeys = __webpack_require__(61);
  7332. /** Used to compose bitmasks for value comparisons. */
  7333. var COMPARE_PARTIAL_FLAG = 1;
  7334. /** Used for built-in method references. */
  7335. var objectProto = Object.prototype;
  7336. /** Used to check objects for own properties. */
  7337. var hasOwnProperty = objectProto.hasOwnProperty;
  7338. /**
  7339. * A specialized version of `baseIsEqualDeep` for objects with support for
  7340. * partial deep comparisons.
  7341. *
  7342. * @private
  7343. * @param {Object} object The object to compare.
  7344. * @param {Object} other The other object to compare.
  7345. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7346. * @param {Function} customizer The function to customize comparisons.
  7347. * @param {Function} equalFunc The function to determine equivalents of values.
  7348. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7349. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7350. */
  7351. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  7352. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  7353. objProps = getAllKeys(object),
  7354. objLength = objProps.length,
  7355. othProps = getAllKeys(other),
  7356. othLength = othProps.length;
  7357. if (objLength != othLength && !isPartial) {
  7358. return false;
  7359. }
  7360. var index = objLength;
  7361. while (index--) {
  7362. var key = objProps[index];
  7363. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  7364. return false;
  7365. }
  7366. }
  7367. // Check that cyclic values are equal.
  7368. var objStacked = stack.get(object);
  7369. var othStacked = stack.get(other);
  7370. if (objStacked && othStacked) {
  7371. return objStacked == other && othStacked == object;
  7372. }
  7373. var result = true;
  7374. stack.set(object, other);
  7375. stack.set(other, object);
  7376. var skipCtor = isPartial;
  7377. while (++index < objLength) {
  7378. key = objProps[index];
  7379. var objValue = object[key],
  7380. othValue = other[key];
  7381. if (customizer) {
  7382. var compared = isPartial
  7383. ? customizer(othValue, objValue, key, other, object, stack)
  7384. : customizer(objValue, othValue, key, object, other, stack);
  7385. }
  7386. // Recursively compare objects (susceptible to call stack limits).
  7387. if (!(compared === undefined
  7388. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  7389. : compared
  7390. )) {
  7391. result = false;
  7392. break;
  7393. }
  7394. skipCtor || (skipCtor = key == 'constructor');
  7395. }
  7396. if (result && !skipCtor) {
  7397. var objCtor = object.constructor,
  7398. othCtor = other.constructor;
  7399. // Non `Object` object instances with different constructors are not equal.
  7400. if (objCtor != othCtor &&
  7401. ('constructor' in object && 'constructor' in other) &&
  7402. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  7403. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  7404. result = false;
  7405. }
  7406. }
  7407. stack['delete'](object);
  7408. stack['delete'](other);
  7409. return result;
  7410. }
  7411. module.exports = equalObjects;
  7412. /***/ }),
  7413. /***/ 824:
  7414. /***/ (function(module, exports, __webpack_require__) {
  7415. var isStrictComparable = __webpack_require__(441),
  7416. keys = __webpack_require__(19);
  7417. /**
  7418. * Gets the property names, values, and compare flags of `object`.
  7419. *
  7420. * @private
  7421. * @param {Object} object The object to query.
  7422. * @returns {Array} Returns the match data of `object`.
  7423. */
  7424. function getMatchData(object) {
  7425. var result = keys(object),
  7426. length = result.length;
  7427. while (length--) {
  7428. var key = result[length],
  7429. value = object[key];
  7430. result[length] = [key, value, isStrictComparable(value)];
  7431. }
  7432. return result;
  7433. }
  7434. module.exports = getMatchData;
  7435. /***/ }),
  7436. /***/ 825:
  7437. /***/ (function(module, exports, __webpack_require__) {
  7438. var baseIsEqual = __webpack_require__(439),
  7439. get = __webpack_require__(826),
  7440. hasIn = __webpack_require__(827),
  7441. isKey = __webpack_require__(360),
  7442. isStrictComparable = __webpack_require__(441),
  7443. matchesStrictComparable = __webpack_require__(442),
  7444. toKey = __webpack_require__(326);
  7445. /** Used to compose bitmasks for value comparisons. */
  7446. var COMPARE_PARTIAL_FLAG = 1,
  7447. COMPARE_UNORDERED_FLAG = 2;
  7448. /**
  7449. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  7450. *
  7451. * @private
  7452. * @param {string} path The path of the property to get.
  7453. * @param {*} srcValue The value to match.
  7454. * @returns {Function} Returns the new spec function.
  7455. */
  7456. function baseMatchesProperty(path, srcValue) {
  7457. if (isKey(path) && isStrictComparable(srcValue)) {
  7458. return matchesStrictComparable(toKey(path), srcValue);
  7459. }
  7460. return function(object) {
  7461. var objValue = get(object, path);
  7462. return (objValue === undefined && objValue === srcValue)
  7463. ? hasIn(object, path)
  7464. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  7465. };
  7466. }
  7467. module.exports = baseMatchesProperty;
  7468. /***/ }),
  7469. /***/ 826:
  7470. /***/ (function(module, exports, __webpack_require__) {
  7471. var baseGet = __webpack_require__(359);
  7472. /**
  7473. * Gets the value at `path` of `object`. If the resolved value is
  7474. * `undefined`, the `defaultValue` is returned in its place.
  7475. *
  7476. * @static
  7477. * @memberOf _
  7478. * @since 3.7.0
  7479. * @category Object
  7480. * @param {Object} object The object to query.
  7481. * @param {Array|string} path The path of the property to get.
  7482. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  7483. * @returns {*} Returns the resolved value.
  7484. * @example
  7485. *
  7486. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  7487. *
  7488. * _.get(object, 'a[0].b.c');
  7489. * // => 3
  7490. *
  7491. * _.get(object, ['a', '0', 'b', 'c']);
  7492. * // => 3
  7493. *
  7494. * _.get(object, 'a.b.c', 'default');
  7495. * // => 'default'
  7496. */
  7497. function get(object, path, defaultValue) {
  7498. var result = object == null ? undefined : baseGet(object, path);
  7499. return result === undefined ? defaultValue : result;
  7500. }
  7501. module.exports = get;
  7502. /***/ }),
  7503. /***/ 827:
  7504. /***/ (function(module, exports, __webpack_require__) {
  7505. var baseHasIn = __webpack_require__(828),
  7506. hasPath = __webpack_require__(829);
  7507. /**
  7508. * Checks if `path` is a direct or inherited property of `object`.
  7509. *
  7510. * @static
  7511. * @memberOf _
  7512. * @since 4.0.0
  7513. * @category Object
  7514. * @param {Object} object The object to query.
  7515. * @param {Array|string} path The path to check.
  7516. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7517. * @example
  7518. *
  7519. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  7520. *
  7521. * _.hasIn(object, 'a');
  7522. * // => true
  7523. *
  7524. * _.hasIn(object, 'a.b');
  7525. * // => true
  7526. *
  7527. * _.hasIn(object, ['a', 'b']);
  7528. * // => true
  7529. *
  7530. * _.hasIn(object, 'b');
  7531. * // => false
  7532. */
  7533. function hasIn(object, path) {
  7534. return object != null && hasPath(object, path, baseHasIn);
  7535. }
  7536. module.exports = hasIn;
  7537. /***/ }),
  7538. /***/ 828:
  7539. /***/ (function(module, exports) {
  7540. /**
  7541. * The base implementation of `_.hasIn` without support for deep paths.
  7542. *
  7543. * @private
  7544. * @param {Object} [object] The object to query.
  7545. * @param {Array|string} key The key to check.
  7546. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7547. */
  7548. function baseHasIn(object, key) {
  7549. return object != null && key in Object(object);
  7550. }
  7551. module.exports = baseHasIn;
  7552. /***/ }),
  7553. /***/ 829:
  7554. /***/ (function(module, exports, __webpack_require__) {
  7555. var castPath = __webpack_require__(438),
  7556. isArguments = __webpack_require__(62),
  7557. isArray = __webpack_require__(16),
  7558. isIndex = __webpack_require__(63),
  7559. isLength = __webpack_require__(35),
  7560. toKey = __webpack_require__(326);
  7561. /**
  7562. * Checks if `path` exists on `object`.
  7563. *
  7564. * @private
  7565. * @param {Object} object The object to query.
  7566. * @param {Array|string} path The path to check.
  7567. * @param {Function} hasFunc The function to check properties.
  7568. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7569. */
  7570. function hasPath(object, path, hasFunc) {
  7571. path = castPath(path, object);
  7572. var index = -1,
  7573. length = path.length,
  7574. result = false;
  7575. while (++index < length) {
  7576. var key = toKey(path[index]);
  7577. if (!(result = object != null && hasFunc(object, key))) {
  7578. break;
  7579. }
  7580. object = object[key];
  7581. }
  7582. if (result || ++index != length) {
  7583. return result;
  7584. }
  7585. length = object == null ? 0 : object.length;
  7586. return !!length && isLength(length) && isIndex(key, length) &&
  7587. (isArray(object) || isArguments(object));
  7588. }
  7589. module.exports = hasPath;
  7590. /***/ }),
  7591. /***/ 830:
  7592. /***/ (function(module, exports, __webpack_require__) {
  7593. var baseProperty = __webpack_require__(831),
  7594. basePropertyDeep = __webpack_require__(832),
  7595. isKey = __webpack_require__(360),
  7596. toKey = __webpack_require__(326);
  7597. /**
  7598. * Creates a function that returns the value at `path` of a given object.
  7599. *
  7600. * @static
  7601. * @memberOf _
  7602. * @since 2.4.0
  7603. * @category Util
  7604. * @param {Array|string} path The path of the property to get.
  7605. * @returns {Function} Returns the new accessor function.
  7606. * @example
  7607. *
  7608. * var objects = [
  7609. * { 'a': { 'b': 2 } },
  7610. * { 'a': { 'b': 1 } }
  7611. * ];
  7612. *
  7613. * _.map(objects, _.property('a.b'));
  7614. * // => [2, 1]
  7615. *
  7616. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  7617. * // => [1, 2]
  7618. */
  7619. function property(path) {
  7620. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  7621. }
  7622. module.exports = property;
  7623. /***/ }),
  7624. /***/ 831:
  7625. /***/ (function(module, exports) {
  7626. /**
  7627. * The base implementation of `_.property` without support for deep paths.
  7628. *
  7629. * @private
  7630. * @param {string} key The key of the property to get.
  7631. * @returns {Function} Returns the new accessor function.
  7632. */
  7633. function baseProperty(key) {
  7634. return function(object) {
  7635. return object == null ? undefined : object[key];
  7636. };
  7637. }
  7638. module.exports = baseProperty;
  7639. /***/ }),
  7640. /***/ 832:
  7641. /***/ (function(module, exports, __webpack_require__) {
  7642. var baseGet = __webpack_require__(359);
  7643. /**
  7644. * A specialized version of `baseProperty` which supports deep paths.
  7645. *
  7646. * @private
  7647. * @param {Array|string} path The path of the property to get.
  7648. * @returns {Function} Returns the new accessor function.
  7649. */
  7650. function basePropertyDeep(path) {
  7651. return function(object) {
  7652. return baseGet(object, path);
  7653. };
  7654. }
  7655. module.exports = basePropertyDeep;
  7656. /***/ }),
  7657. /***/ 833:
  7658. /***/ (function(module, exports, __webpack_require__) {
  7659. var baseEach = __webpack_require__(834),
  7660. isArrayLike = __webpack_require__(32);
  7661. /**
  7662. * The base implementation of `_.map` without support for iteratee shorthands.
  7663. *
  7664. * @private
  7665. * @param {Array|Object} collection The collection to iterate over.
  7666. * @param {Function} iteratee The function invoked per iteration.
  7667. * @returns {Array} Returns the new mapped array.
  7668. */
  7669. function baseMap(collection, iteratee) {
  7670. var index = -1,
  7671. result = isArrayLike(collection) ? Array(collection.length) : [];
  7672. baseEach(collection, function(value, key, collection) {
  7673. result[++index] = iteratee(value, key, collection);
  7674. });
  7675. return result;
  7676. }
  7677. module.exports = baseMap;
  7678. /***/ }),
  7679. /***/ 834:
  7680. /***/ (function(module, exports, __webpack_require__) {
  7681. var baseForOwn = __webpack_require__(835),
  7682. createBaseEach = __webpack_require__(838);
  7683. /**
  7684. * The base implementation of `_.forEach` without support for iteratee shorthands.
  7685. *
  7686. * @private
  7687. * @param {Array|Object} collection The collection to iterate over.
  7688. * @param {Function} iteratee The function invoked per iteration.
  7689. * @returns {Array|Object} Returns `collection`.
  7690. */
  7691. var baseEach = createBaseEach(baseForOwn);
  7692. module.exports = baseEach;
  7693. /***/ }),
  7694. /***/ 835:
  7695. /***/ (function(module, exports, __webpack_require__) {
  7696. var baseFor = __webpack_require__(836),
  7697. keys = __webpack_require__(19);
  7698. /**
  7699. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  7700. *
  7701. * @private
  7702. * @param {Object} object The object to iterate over.
  7703. * @param {Function} iteratee The function invoked per iteration.
  7704. * @returns {Object} Returns `object`.
  7705. */
  7706. function baseForOwn(object, iteratee) {
  7707. return object && baseFor(object, iteratee, keys);
  7708. }
  7709. module.exports = baseForOwn;
  7710. /***/ }),
  7711. /***/ 836:
  7712. /***/ (function(module, exports, __webpack_require__) {
  7713. var createBaseFor = __webpack_require__(837);
  7714. /**
  7715. * The base implementation of `baseForOwn` which iterates over `object`
  7716. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  7717. * Iteratee functions may exit iteration early by explicitly returning `false`.
  7718. *
  7719. * @private
  7720. * @param {Object} object The object to iterate over.
  7721. * @param {Function} iteratee The function invoked per iteration.
  7722. * @param {Function} keysFunc The function to get the keys of `object`.
  7723. * @returns {Object} Returns `object`.
  7724. */
  7725. var baseFor = createBaseFor();
  7726. module.exports = baseFor;
  7727. /***/ }),
  7728. /***/ 837:
  7729. /***/ (function(module, exports) {
  7730. /**
  7731. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  7732. *
  7733. * @private
  7734. * @param {boolean} [fromRight] Specify iterating from right to left.
  7735. * @returns {Function} Returns the new base function.
  7736. */
  7737. function createBaseFor(fromRight) {
  7738. return function(object, iteratee, keysFunc) {
  7739. var index = -1,
  7740. iterable = Object(object),
  7741. props = keysFunc(object),
  7742. length = props.length;
  7743. while (length--) {
  7744. var key = props[fromRight ? length : ++index];
  7745. if (iteratee(iterable[key], key, iterable) === false) {
  7746. break;
  7747. }
  7748. }
  7749. return object;
  7750. };
  7751. }
  7752. module.exports = createBaseFor;
  7753. /***/ }),
  7754. /***/ 838:
  7755. /***/ (function(module, exports, __webpack_require__) {
  7756. var isArrayLike = __webpack_require__(32);
  7757. /**
  7758. * Creates a `baseEach` or `baseEachRight` function.
  7759. *
  7760. * @private
  7761. * @param {Function} eachFunc The function to iterate over a collection.
  7762. * @param {boolean} [fromRight] Specify iterating from right to left.
  7763. * @returns {Function} Returns the new base function.
  7764. */
  7765. function createBaseEach(eachFunc, fromRight) {
  7766. return function(collection, iteratee) {
  7767. if (collection == null) {
  7768. return collection;
  7769. }
  7770. if (!isArrayLike(collection)) {
  7771. return eachFunc(collection, iteratee);
  7772. }
  7773. var length = collection.length,
  7774. index = fromRight ? length : -1,
  7775. iterable = Object(collection);
  7776. while ((fromRight ? index-- : ++index < length)) {
  7777. if (iteratee(iterable[index], index, iterable) === false) {
  7778. break;
  7779. }
  7780. }
  7781. return collection;
  7782. };
  7783. }
  7784. module.exports = createBaseEach;
  7785. /***/ }),
  7786. /***/ 839:
  7787. /***/ (function(module, exports) {
  7788. /**
  7789. * The base implementation of `_.sortBy` which uses `comparer` to define the
  7790. * sort order of `array` and replaces criteria objects with their corresponding
  7791. * values.
  7792. *
  7793. * @private
  7794. * @param {Array} array The array to sort.
  7795. * @param {Function} comparer The function to define sort order.
  7796. * @returns {Array} Returns `array`.
  7797. */
  7798. function baseSortBy(array, comparer) {
  7799. var length = array.length;
  7800. array.sort(comparer);
  7801. while (length--) {
  7802. array[length] = array[length].value;
  7803. }
  7804. return array;
  7805. }
  7806. module.exports = baseSortBy;
  7807. /***/ }),
  7808. /***/ 840:
  7809. /***/ (function(module, exports, __webpack_require__) {
  7810. var compareAscending = __webpack_require__(841);
  7811. /**
  7812. * Used by `_.orderBy` to compare multiple properties of a value to another
  7813. * and stable sort them.
  7814. *
  7815. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  7816. * specify an order of "desc" for descending or "asc" for ascending sort order
  7817. * of corresponding values.
  7818. *
  7819. * @private
  7820. * @param {Object} object The object to compare.
  7821. * @param {Object} other The other object to compare.
  7822. * @param {boolean[]|string[]} orders The order to sort by for each property.
  7823. * @returns {number} Returns the sort order indicator for `object`.
  7824. */
  7825. function compareMultiple(object, other, orders) {
  7826. var index = -1,
  7827. objCriteria = object.criteria,
  7828. othCriteria = other.criteria,
  7829. length = objCriteria.length,
  7830. ordersLength = orders.length;
  7831. while (++index < length) {
  7832. var result = compareAscending(objCriteria[index], othCriteria[index]);
  7833. if (result) {
  7834. if (index >= ordersLength) {
  7835. return result;
  7836. }
  7837. var order = orders[index];
  7838. return result * (order == 'desc' ? -1 : 1);
  7839. }
  7840. }
  7841. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  7842. // that causes it, under certain circumstances, to provide the same value for
  7843. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  7844. // for more details.
  7845. //
  7846. // This also ensures a stable sort in V8 and other engines.
  7847. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  7848. return object.index - other.index;
  7849. }
  7850. module.exports = compareMultiple;
  7851. /***/ }),
  7852. /***/ 841:
  7853. /***/ (function(module, exports, __webpack_require__) {
  7854. var isSymbol = __webpack_require__(325);
  7855. /**
  7856. * Compares values to sort them in ascending order.
  7857. *
  7858. * @private
  7859. * @param {*} value The value to compare.
  7860. * @param {*} other The other value to compare.
  7861. * @returns {number} Returns the sort order indicator for `value`.
  7862. */
  7863. function compareAscending(value, other) {
  7864. if (value !== other) {
  7865. var valIsDefined = value !== undefined,
  7866. valIsNull = value === null,
  7867. valIsReflexive = value === value,
  7868. valIsSymbol = isSymbol(value);
  7869. var othIsDefined = other !== undefined,
  7870. othIsNull = other === null,
  7871. othIsReflexive = other === other,
  7872. othIsSymbol = isSymbol(other);
  7873. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  7874. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  7875. (valIsNull && othIsDefined && othIsReflexive) ||
  7876. (!valIsDefined && othIsReflexive) ||
  7877. !valIsReflexive) {
  7878. return 1;
  7879. }
  7880. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  7881. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  7882. (othIsNull && valIsDefined && valIsReflexive) ||
  7883. (!othIsDefined && valIsReflexive) ||
  7884. !othIsReflexive) {
  7885. return -1;
  7886. }
  7887. }
  7888. return 0;
  7889. }
  7890. module.exports = compareAscending;
  7891. /***/ }),
  7892. /***/ 842:
  7893. /***/ (function(module, exports, __webpack_require__) {
  7894. var render = function() {
  7895. var _vm = this
  7896. var _h = _vm.$createElement
  7897. var _c = _vm._self._c || _h
  7898. return _c(
  7899. "div",
  7900. { staticClass: "w-main project-panel" },
  7901. [
  7902. _c("v-title", [_vm._v(_vm._s(_vm.$L("项目面板")))]),
  7903. _vm._v(" "),
  7904. _c("div", { staticClass: "w-nav" }, [
  7905. _c("div", { staticClass: "nav-row" }, [
  7906. _c("div", { staticClass: "w-nav-left" }, [
  7907. _c("div", { staticClass: "page-nav-left" }, [
  7908. _c("span", { staticClass: "bold" }, [
  7909. _vm._v(_vm._s(_vm.projectDetail.title))
  7910. ]),
  7911. _vm._v(" "),
  7912. _vm.loadIng > 0
  7913. ? _c(
  7914. "div",
  7915. { staticClass: "page-nav-loading" },
  7916. [_c("w-loading")],
  7917. 1
  7918. )
  7919. : _c("div", { staticClass: "page-nav-refresh" }, [
  7920. _c(
  7921. "em",
  7922. {
  7923. on: {
  7924. click: function($event) {
  7925. return _vm.getDetail(true)
  7926. }
  7927. }
  7928. },
  7929. [_vm._v(_vm._s(_vm.$L("刷新")))]
  7930. )
  7931. ])
  7932. ])
  7933. ]),
  7934. _vm._v(" "),
  7935. _c("div", { staticClass: "w-nav-flex" }),
  7936. _vm._v(" "),
  7937. _c("div", { staticClass: "w-nav-right" }, [
  7938. _c(
  7939. "span",
  7940. {
  7941. staticClass: "ft hover",
  7942. class: { active: _vm.filtrTask != "" }
  7943. },
  7944. [
  7945. _c(
  7946. "Dropdown",
  7947. {
  7948. attrs: { transfer: "" },
  7949. on: {
  7950. "on-click": function(res) {
  7951. _vm.filtrTask = res
  7952. }
  7953. }
  7954. },
  7955. [
  7956. _c("Icon", {
  7957. staticClass: "icon",
  7958. attrs: { type: "md-funnel" }
  7959. }),
  7960. _vm._v(
  7961. " " +
  7962. _vm._s(_vm.$L("筛选")) +
  7963. "\n "
  7964. ),
  7965. _c(
  7966. "DropdownMenu",
  7967. { attrs: { slot: "list" }, slot: "list" },
  7968. [
  7969. _c(
  7970. "DropdownItem",
  7971. {
  7972. class: { "dropdown-active": _vm.filtrTask == "" },
  7973. attrs: { name: "" }
  7974. },
  7975. [_vm._v(_vm._s(_vm.$L("全部任务")))]
  7976. ),
  7977. _vm._v(" "),
  7978. _c(
  7979. "DropdownItem",
  7980. {
  7981. class: {
  7982. "dropdown-active": _vm.filtrTask == "persons"
  7983. },
  7984. attrs: { name: "persons" }
  7985. },
  7986. [_vm._v(_vm._s(_vm.$L("我负责的任务")))]
  7987. ),
  7988. _vm._v(" "),
  7989. _c(
  7990. "DropdownItem",
  7991. {
  7992. class: {
  7993. "dropdown-active": _vm.filtrTask == "follower"
  7994. },
  7995. attrs: { name: "follower" }
  7996. },
  7997. [_vm._v(_vm._s(_vm.$L("我关注的任务")))]
  7998. ),
  7999. _vm._v(" "),
  8000. _c(
  8001. "DropdownItem",
  8002. {
  8003. class: {
  8004. "dropdown-active": _vm.filtrTask == "create"
  8005. },
  8006. attrs: { name: "create" }
  8007. },
  8008. [_vm._v(_vm._s(_vm.$L("我创建的任务")))]
  8009. )
  8010. ],
  8011. 1
  8012. )
  8013. ],
  8014. 1
  8015. )
  8016. ],
  8017. 1
  8018. ),
  8019. _vm._v(" "),
  8020. _c(
  8021. "span",
  8022. { staticClass: "m768-show-i" },
  8023. [
  8024. _c(
  8025. "Dropdown",
  8026. {
  8027. attrs: { trigger: "click", transfer: "" },
  8028. on: { "on-click": _vm.openProjectDrawer }
  8029. },
  8030. [
  8031. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  8032. _vm._v(" "),
  8033. _c(
  8034. "DropdownMenu",
  8035. { attrs: { slot: "list" }, slot: "list" },
  8036. [
  8037. _c("DropdownItem", { attrs: { name: "lists" } }, [
  8038. _vm._v(_vm._s(_vm.$L("列表")))
  8039. ]),
  8040. _vm._v(" "),
  8041. _c(
  8042. "DropdownItem",
  8043. { attrs: { name: "projectGanttShow" } },
  8044. [_vm._v(_vm._s(_vm.$L("甘特图")))]
  8045. ),
  8046. _vm._v(" "),
  8047. _c("DropdownItem", { attrs: { name: "files" } }, [
  8048. _vm._v(_vm._s(_vm.$L("文件")))
  8049. ]),
  8050. _vm._v(" "),
  8051. _c("DropdownItem", { attrs: { name: "logs" } }, [
  8052. _vm._v(_vm._s(_vm.$L("动态")))
  8053. ]),
  8054. _vm._v(" "),
  8055. _c(
  8056. "DropdownItem",
  8057. { attrs: { name: "openProjectSettingDrawer" } },
  8058. [_vm._v(_vm._s(_vm.$L("设置")))]
  8059. )
  8060. ],
  8061. 1
  8062. )
  8063. ],
  8064. 1
  8065. )
  8066. ],
  8067. 1
  8068. ),
  8069. _vm._v(" "),
  8070. _c("span", { staticClass: "m768-hide-i" }, [
  8071. _c(
  8072. "span",
  8073. {
  8074. staticClass: "ft hover",
  8075. on: {
  8076. click: function($event) {
  8077. return _vm.openProjectDrawer("lists")
  8078. }
  8079. }
  8080. },
  8081. [
  8082. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8083. _vm._v(" " + _vm._s(_vm.$L("列表")))
  8084. ]
  8085. ),
  8086. _vm._v(" "),
  8087. _c(
  8088. "span",
  8089. {
  8090. staticClass: "ft hover",
  8091. class: { active: _vm.projectGanttShow },
  8092. on: {
  8093. click: function($event) {
  8094. _vm.projectGanttShow = !_vm.projectGanttShow
  8095. }
  8096. }
  8097. },
  8098. [
  8099. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8100. _vm._v(" " + _vm._s(_vm.$L("甘特图")))
  8101. ]
  8102. ),
  8103. _vm._v(" "),
  8104. _c(
  8105. "span",
  8106. {
  8107. staticClass: "ft hover",
  8108. on: {
  8109. click: function($event) {
  8110. return _vm.openProjectDrawer("files")
  8111. }
  8112. }
  8113. },
  8114. [
  8115. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8116. _vm._v(" " + _vm._s(_vm.$L("文件")))
  8117. ]
  8118. ),
  8119. _vm._v(" "),
  8120. _c(
  8121. "span",
  8122. {
  8123. staticClass: "ft hover",
  8124. on: {
  8125. click: function($event) {
  8126. return _vm.openProjectDrawer("logs")
  8127. }
  8128. }
  8129. },
  8130. [
  8131. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8132. _vm._v(" " + _vm._s(_vm.$L("动态")))
  8133. ]
  8134. ),
  8135. _vm._v(" "),
  8136. _c(
  8137. "span",
  8138. {
  8139. staticClass: "ft hover",
  8140. on: {
  8141. click: function($event) {
  8142. return _vm.openProjectSettingDrawer("setting")
  8143. }
  8144. }
  8145. },
  8146. [
  8147. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8148. _vm._v(" " + _vm._s(_vm.$L("设置")))
  8149. ]
  8150. )
  8151. ])
  8152. ])
  8153. ])
  8154. ]),
  8155. _vm._v(" "),
  8156. _c(
  8157. "w-content",
  8158. [
  8159. _c(
  8160. "draggable",
  8161. {
  8162. staticClass: "label-box",
  8163. style: {
  8164. visibility: _vm.projectGanttShow ? "hidden" : "visible"
  8165. },
  8166. attrs: {
  8167. draggable: ".label-draggable",
  8168. animation: 150,
  8169. disabled: _vm.projectSortDisabled || _vm.windowMax768
  8170. },
  8171. on: { sort: _vm.projectSort },
  8172. model: {
  8173. value: _vm.projectLabel,
  8174. callback: function($$v) {
  8175. _vm.projectLabel = $$v
  8176. },
  8177. expression: "projectLabel"
  8178. }
  8179. },
  8180. [
  8181. _vm._l(_vm.projectLabel, function(label) {
  8182. return _vm.projectLabel.length > 0
  8183. ? _c(
  8184. "div",
  8185. {
  8186. key: label.id,
  8187. staticClass: "label-item label-draggable",
  8188. class: {
  8189. "label-scroll":
  8190. label.hasScroll === true && label.endScroll !== true
  8191. },
  8192. attrs: { "data-id": label.id },
  8193. on: {
  8194. mouseenter: function($event) {
  8195. return _vm.projectMouse(label)
  8196. }
  8197. }
  8198. },
  8199. [
  8200. _c(
  8201. "div",
  8202. { staticClass: "label-body" },
  8203. [
  8204. _c(
  8205. "div",
  8206. { staticClass: "title-box" },
  8207. [
  8208. label.loadIng === true
  8209. ? _c(
  8210. "div",
  8211. { staticClass: "title-loading" },
  8212. [_c("w-loading")],
  8213. 1
  8214. )
  8215. : _vm._e(),
  8216. _vm._v(" "),
  8217. _c("h2", [_vm._v(_vm._s(label.title))]),
  8218. _vm._v(" "),
  8219. _c(
  8220. "Dropdown",
  8221. {
  8222. attrs: { trigger: "click", transfer: "" },
  8223. on: {
  8224. "on-click": function($event) {
  8225. return _vm.handleLabel($event, label)
  8226. }
  8227. }
  8228. },
  8229. [
  8230. _c("Icon", { attrs: { type: "ios-more" } }),
  8231. _vm._v(" "),
  8232. _c(
  8233. "DropdownMenu",
  8234. { attrs: { slot: "list" }, slot: "list" },
  8235. [
  8236. _c(
  8237. "Dropdown-item",
  8238. { attrs: { name: "refresh" } },
  8239. [_vm._v(_vm._s(_vm.$L("刷新列表")))]
  8240. ),
  8241. _vm._v(" "),
  8242. _c(
  8243. "Dropdown-item",
  8244. { attrs: { name: "rename" } },
  8245. [_vm._v(_vm._s(_vm.$L("重命名")))]
  8246. ),
  8247. _vm._v(" "),
  8248. _c(
  8249. "Dropdown-item",
  8250. { attrs: { name: "delete" } },
  8251. [_vm._v(_vm._s(_vm.$L("删除")))]
  8252. )
  8253. ],
  8254. 1
  8255. )
  8256. ],
  8257. 1
  8258. )
  8259. ],
  8260. 1
  8261. ),
  8262. _vm._v(" "),
  8263. _c(
  8264. "ScrollerY",
  8265. {
  8266. ref: "box_" + label.id,
  8267. refInFor: true,
  8268. staticClass: "task-box",
  8269. on: {
  8270. "on-scroll": function($event) {
  8271. return _vm.projectBoxScroll($event, label)
  8272. }
  8273. }
  8274. },
  8275. [
  8276. _c(
  8277. "draggable",
  8278. {
  8279. staticClass: "task-main",
  8280. class: [
  8281. _vm.filtrTask
  8282. ? "filtr-" + _vm.filtrTask
  8283. : ""
  8284. ],
  8285. attrs: {
  8286. group: "task",
  8287. draggable: ".task-draggable",
  8288. animation: 150,
  8289. disabled:
  8290. _vm.projectSortDisabled ||
  8291. _vm.windowMax768,
  8292. "data-id": label.id
  8293. },
  8294. on: { sort: _vm.taskSort },
  8295. model: {
  8296. value: label.taskLists,
  8297. callback: function($$v) {
  8298. _vm.$set(label, "taskLists", $$v)
  8299. },
  8300. expression: "label.taskLists"
  8301. }
  8302. },
  8303. [
  8304. _vm._l(label.taskLists, function(task) {
  8305. return _c(
  8306. "div",
  8307. {
  8308. key: task.id,
  8309. staticClass:
  8310. "task-item task-draggable",
  8311. class: {
  8312. "persons-item": _vm.isPersonsTask(
  8313. task
  8314. ),
  8315. "follower-item": _vm.isFollowerTask(
  8316. task
  8317. ),
  8318. "create-item": _vm.isCreateTask(
  8319. task
  8320. )
  8321. },
  8322. attrs: { "data-id": task.id }
  8323. },
  8324. [
  8325. _c(
  8326. "div",
  8327. {
  8328. staticClass: "task-shadow",
  8329. class: [
  8330. "p" + task.level,
  8331. task.complete ? "complete" : "",
  8332. task.overdue ? "overdue" : "",
  8333. task.isNewtask === true
  8334. ? "newtask"
  8335. : ""
  8336. ],
  8337. on: {
  8338. click: function($event) {
  8339. return _vm.openTaskModal(task)
  8340. }
  8341. }
  8342. },
  8343. [
  8344. _c(
  8345. "div",
  8346. {
  8347. staticClass:
  8348. "subtask-progress"
  8349. },
  8350. [
  8351. _c("em", {
  8352. style: {
  8353. width:
  8354. _vm.subtaskProgress(
  8355. task
  8356. ) + "%"
  8357. }
  8358. })
  8359. ]
  8360. ),
  8361. _vm._v(" "),
  8362. _c(
  8363. "div",
  8364. { staticClass: "task-title" },
  8365. [
  8366. _vm._v(_vm._s(task.title)),
  8367. task.desc
  8368. ? _c("Icon", {
  8369. attrs: {
  8370. type:
  8371. "ios-list-box-outline"
  8372. }
  8373. })
  8374. : _vm._e()
  8375. ],
  8376. 1
  8377. ),
  8378. _vm._v(" "),
  8379. _c(
  8380. "div",
  8381. {
  8382. staticClass: "task-plantime"
  8383. },
  8384. [
  8385. _c(
  8386. "span",
  8387. {
  8388. staticClass:
  8389. "task-title-time"
  8390. },
  8391. [
  8392. _vm._v(
  8393. _vm._s(task.plantime)
  8394. )
  8395. ]
  8396. )
  8397. ]
  8398. ),
  8399. _vm._v(" "),
  8400. _c(
  8401. "div",
  8402. { staticClass: "task-more" },
  8403. [
  8404. task.overdue
  8405. ? _c(
  8406. "div",
  8407. {
  8408. staticClass:
  8409. "task-status"
  8410. },
  8411. [
  8412. _vm._v(
  8413. _vm._s(
  8414. _vm.$L("已超期")
  8415. )
  8416. )
  8417. ]
  8418. )
  8419. : task.complete
  8420. ? _c(
  8421. "div",
  8422. {
  8423. staticClass:
  8424. "task-status"
  8425. },
  8426. [
  8427. _vm._v(
  8428. _vm._s(
  8429. _vm.$L("已完成")
  8430. )
  8431. )
  8432. ]
  8433. )
  8434. : _c(
  8435. "div",
  8436. {
  8437. staticClass:
  8438. "task-status"
  8439. },
  8440. [
  8441. _vm._v(
  8442. _vm._s(
  8443. _vm.$L("未完成")
  8444. )
  8445. )
  8446. ]
  8447. ),
  8448. _vm._v(" "),
  8449. _c(
  8450. "div",
  8451. {
  8452. staticClass:
  8453. "task-persons",
  8454. class: {
  8455. "persons-more":
  8456. task.persons.length >
  8457. 1
  8458. }
  8459. },
  8460. _vm._l(
  8461. task.persons,
  8462. function(person, iper) {
  8463. return _c(
  8464. "Tooltip",
  8465. {
  8466. key: iper,
  8467. staticClass:
  8468. "task-userimg",
  8469. attrs: {
  8470. content:
  8471. person.nickname ||
  8472. person.username,
  8473. transfer: ""
  8474. }
  8475. },
  8476. [
  8477. _c("UserImg", {
  8478. staticClass:
  8479. "avatar",
  8480. attrs: {
  8481. info: person
  8482. }
  8483. })
  8484. ],
  8485. 1
  8486. )
  8487. }
  8488. ),
  8489. 1
  8490. )
  8491. ]
  8492. )
  8493. ]
  8494. )
  8495. ]
  8496. )
  8497. }),
  8498. _vm._v(" "),
  8499. _c(
  8500. "div",
  8501. {
  8502. attrs: { slot: "footer" },
  8503. slot: "footer"
  8504. },
  8505. [
  8506. _c("project-add-task", {
  8507. ref: "add_" + label.id,
  8508. refInFor: true,
  8509. attrs: {
  8510. placeholder:
  8511. _vm.$L("添加任务至") +
  8512. '"' +
  8513. label.title +
  8514. '"',
  8515. projectid: label.projectid,
  8516. labelid: label.id
  8517. },
  8518. on: {
  8519. "on-add-success": function($event) {
  8520. return _vm.addTaskSuccess(
  8521. $event,
  8522. label
  8523. )
  8524. }
  8525. }
  8526. })
  8527. ],
  8528. 1
  8529. )
  8530. ],
  8531. 2
  8532. )
  8533. ],
  8534. 1
  8535. )
  8536. ],
  8537. 1
  8538. ),
  8539. _vm._v(" "),
  8540. _c(
  8541. "div",
  8542. {
  8543. staticClass: "label-bottom",
  8544. on: {
  8545. click: function($event) {
  8546. return _vm.projectFocus(label)
  8547. }
  8548. }
  8549. },
  8550. [
  8551. _c("Icon", {
  8552. staticClass: "label-bottom-icon",
  8553. attrs: { type: "ios-add" }
  8554. })
  8555. ],
  8556. 1
  8557. )
  8558. ]
  8559. )
  8560. : _vm._e()
  8561. }),
  8562. _vm._v(" "),
  8563. _vm.loadDetailed
  8564. ? _c(
  8565. "div",
  8566. {
  8567. staticClass: "label-item label-create",
  8568. attrs: { slot: "footer" },
  8569. on: { click: _vm.addLabel },
  8570. slot: "footer"
  8571. },
  8572. [
  8573. _c("div", { staticClass: "label-body" }, [
  8574. _c("div", { staticClass: "trigger-box ft hover" }, [
  8575. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8576. _vm._v(_vm._s(_vm.$L("添加一个新列表")))
  8577. ])
  8578. ])
  8579. ]
  8580. )
  8581. : _vm._e()
  8582. ],
  8583. 2
  8584. ),
  8585. _vm._v(" "),
  8586. _vm.projectGanttShow
  8587. ? _c("project-gantt", {
  8588. attrs: { projectLabel: _vm.projectLabel },
  8589. on: {
  8590. "on-close": function($event) {
  8591. _vm.projectGanttShow = false
  8592. }
  8593. }
  8594. })
  8595. : _vm._e()
  8596. ],
  8597. 1
  8598. ),
  8599. _vm._v(" "),
  8600. _c(
  8601. "WDrawer",
  8602. {
  8603. attrs: { maxWidth: "1080" },
  8604. model: {
  8605. value: _vm.projectDrawerShow,
  8606. callback: function($$v) {
  8607. _vm.projectDrawerShow = $$v
  8608. },
  8609. expression: "projectDrawerShow"
  8610. }
  8611. },
  8612. [
  8613. _vm.projectDrawerShow
  8614. ? _c(
  8615. "Tabs",
  8616. {
  8617. model: {
  8618. value: _vm.projectDrawerTab,
  8619. callback: function($$v) {
  8620. _vm.projectDrawerTab = $$v
  8621. },
  8622. expression: "projectDrawerTab"
  8623. }
  8624. },
  8625. [
  8626. _c(
  8627. "TabPane",
  8628. { attrs: { label: _vm.$L("任务列表"), name: "lists" } },
  8629. [
  8630. _c("project-task-lists", {
  8631. attrs: {
  8632. canload:
  8633. _vm.projectDrawerShow &&
  8634. _vm.projectDrawerTab == "lists",
  8635. projectid: _vm.projectid,
  8636. labelLists: _vm.projectSimpleLabel
  8637. }
  8638. })
  8639. ],
  8640. 1
  8641. ),
  8642. _vm._v(" "),
  8643. _c(
  8644. "TabPane",
  8645. { attrs: { label: _vm.$L("文件列表"), name: "files" } },
  8646. [
  8647. _c("project-task-files", {
  8648. attrs: {
  8649. canload:
  8650. _vm.projectDrawerShow &&
  8651. _vm.projectDrawerTab == "files",
  8652. projectid: _vm.projectid
  8653. }
  8654. })
  8655. ],
  8656. 1
  8657. ),
  8658. _vm._v(" "),
  8659. _c(
  8660. "TabPane",
  8661. { attrs: { label: _vm.$L("项目动态"), name: "logs" } },
  8662. [
  8663. _c("project-task-logs", {
  8664. attrs: {
  8665. canload:
  8666. _vm.projectDrawerShow &&
  8667. _vm.projectDrawerTab == "logs",
  8668. projectid: _vm.projectid
  8669. }
  8670. })
  8671. ],
  8672. 1
  8673. )
  8674. ],
  8675. 1
  8676. )
  8677. : _vm._e()
  8678. ],
  8679. 1
  8680. ),
  8681. _vm._v(" "),
  8682. _c(
  8683. "WDrawer",
  8684. {
  8685. attrs: { maxWidth: "1000" },
  8686. model: {
  8687. value: _vm.projectSettingDrawerShow,
  8688. callback: function($$v) {
  8689. _vm.projectSettingDrawerShow = $$v
  8690. },
  8691. expression: "projectSettingDrawerShow"
  8692. }
  8693. },
  8694. [
  8695. _vm.projectSettingDrawerShow
  8696. ? _c(
  8697. "Tabs",
  8698. {
  8699. model: {
  8700. value: _vm.projectSettingDrawerTab,
  8701. callback: function($$v) {
  8702. _vm.projectSettingDrawerTab = $$v
  8703. },
  8704. expression: "projectSettingDrawerTab"
  8705. }
  8706. },
  8707. [
  8708. _c(
  8709. "TabPane",
  8710. { attrs: { label: _vm.$L("项目设置"), name: "setting" } },
  8711. [
  8712. _c("project-setting", {
  8713. attrs: {
  8714. canload:
  8715. _vm.projectSettingDrawerShow &&
  8716. _vm.projectSettingDrawerTab == "setting",
  8717. projectid: _vm.projectid
  8718. },
  8719. on: { "on-change": _vm.getDetail }
  8720. })
  8721. ],
  8722. 1
  8723. ),
  8724. _vm._v(" "),
  8725. _c(
  8726. "TabPane",
  8727. {
  8728. attrs: { label: _vm.$L("已归档任务"), name: "archived" }
  8729. },
  8730. [
  8731. _c("project-archived", {
  8732. attrs: {
  8733. canload:
  8734. _vm.projectSettingDrawerShow &&
  8735. _vm.projectSettingDrawerTab == "archived",
  8736. projectid: _vm.projectid
  8737. }
  8738. })
  8739. ],
  8740. 1
  8741. ),
  8742. _vm._v(" "),
  8743. _c(
  8744. "TabPane",
  8745. {
  8746. attrs: { label: _vm.$L("项目统计"), name: "statistics" }
  8747. },
  8748. [
  8749. _c("project-statistics", {
  8750. ref: "statistics",
  8751. attrs: {
  8752. canload:
  8753. _vm.projectSettingDrawerShow &&
  8754. _vm.projectSettingDrawerTab == "statistics",
  8755. projectid: _vm.projectid
  8756. }
  8757. })
  8758. ],
  8759. 1
  8760. ),
  8761. _vm._v(" "),
  8762. _c(
  8763. "TabPane",
  8764. { attrs: { label: _vm.$L("成员管理"), name: "member" } },
  8765. [
  8766. _c("project-users", {
  8767. attrs: {
  8768. canload:
  8769. _vm.projectSettingDrawerShow &&
  8770. _vm.projectSettingDrawerTab == "member",
  8771. projectid: _vm.projectid
  8772. }
  8773. })
  8774. ],
  8775. 1
  8776. )
  8777. ],
  8778. 1
  8779. )
  8780. : _vm._e()
  8781. ],
  8782. 1
  8783. )
  8784. ],
  8785. 1
  8786. )
  8787. }
  8788. var staticRenderFns = []
  8789. render._withStripped = true
  8790. module.exports = { render: render, staticRenderFns: staticRenderFns }
  8791. if (false) {
  8792. module.hot.accept()
  8793. if (module.hot.data) {
  8794. require("vue-hot-reload-api") .rerender("data-v-4bac3242", module.exports)
  8795. }
  8796. }
  8797. /***/ })
  8798. });