1.js 310 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466
  1. webpackJsonp([1],{
  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__(57);
  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__(58);
  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. /* harmony default export */ __webpack_exports__["default"] = ({
  2481. components: {
  2482. ScrollerY: __WEBPACK_IMPORTED_MODULE_12__components_ScrollerY___default.a,
  2483. ProjectSetting: __WEBPACK_IMPORTED_MODULE_11__components_project_setting___default.a,
  2484. ProjectGantt: __WEBPACK_IMPORTED_MODULE_10__components_project_gantt_index___default.a,
  2485. WDrawer: __WEBPACK_IMPORTED_MODULE_9__components_iview_WDrawer___default.a,
  2486. ProjectStatistics: __WEBPACK_IMPORTED_MODULE_8__components_project_statistics___default.a,
  2487. ProjectUsers: __WEBPACK_IMPORTED_MODULE_7__components_project_users___default.a,
  2488. ProjectArchived: __WEBPACK_IMPORTED_MODULE_6__components_project_archived___default.a,
  2489. ProjectTaskLogs: __WEBPACK_IMPORTED_MODULE_5__components_project_task_logs___default.a,
  2490. 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 },
  2491. data: function data() {
  2492. return {
  2493. loadIng: 0,
  2494. loadDetailed: false,
  2495. projectid: 0,
  2496. projectDetail: {},
  2497. projectLabel: [],
  2498. projectSimpleLabel: [],
  2499. projectSortData: '',
  2500. projectSortDisabled: false,
  2501. projectDrawerShow: false,
  2502. projectDrawerTab: 'lists',
  2503. projectSettingDrawerShow: false,
  2504. projectSettingDrawerTab: 'setting',
  2505. projectGanttShow: false,
  2506. filtrTask: '',
  2507. routeName: ''
  2508. };
  2509. },
  2510. mounted: function mounted() {
  2511. var _this = this;
  2512. this.routeName = this.$route.name;
  2513. $A.setOnTaskInfoListener('pages/project-panel', function (act, detail) {
  2514. if (detail.projectid != _this.projectid) {
  2515. return;
  2516. }
  2517. //
  2518. switch (act) {
  2519. case 'addlabel':
  2520. // 添加分类
  2521. var tempLists = _this.projectLabel.filter(function (res) {
  2522. return res.id == detail.labelid;
  2523. });
  2524. if (tempLists.length == 0) {
  2525. _this.projectLabel.push(Object.assign(detail, { id: detail.labelid }));
  2526. _this.projectSortData = _this.getProjectSort();
  2527. }
  2528. return;
  2529. case 'deletelabel':
  2530. // 删除分类
  2531. _this.projectLabel.some(function (label, index) {
  2532. if (label.id == detail.labelid) {
  2533. _this.projectLabel.splice(index, 1);
  2534. _this.projectSortData = _this.getProjectSort();
  2535. return true;
  2536. }
  2537. });
  2538. return;
  2539. case 'deleteproject':
  2540. // 删除项目
  2541. return;
  2542. case "labelsort": // 调整分类排序
  2543. case "tasksort":
  2544. // 调整任务排序
  2545. if (detail.__modifyUsername != _this.usrName) {
  2546. if (_this.routeName == _this.$route.name) {
  2547. _this.$Modal.confirm({
  2548. title: _this.$L("更新提示"),
  2549. content: _this.$L('团队成员(%)调整了%,<br/>更新时间:%。<br/><br/>点击【确定】加载最新数据。', detail.nickname, _this.$L(act == 'labelsort' ? '分类排序' : '任务排序'), $A.formatDate("Y-m-d H:i:s", detail.time)),
  2550. onOk: function onOk() {
  2551. _this.getDetail(true);
  2552. }
  2553. });
  2554. } else {
  2555. _this.getDetail(true);
  2556. }
  2557. }
  2558. return;
  2559. }
  2560. //
  2561. _this.projectLabel.forEach(function (label) {
  2562. label.taskLists.some(function (task, i) {
  2563. if (task.id == detail.id) {
  2564. label.taskLists.splice(i, 1, detail);
  2565. return true;
  2566. }
  2567. });
  2568. });
  2569. //
  2570. switch (act) {
  2571. case "delete": // 删除任务
  2572. case "archived":
  2573. // 归档
  2574. _this.projectLabel.forEach(function (label) {
  2575. label.taskLists.some(function (task, i) {
  2576. if (task.id == detail.id) {
  2577. label.taskLists.splice(i, 1);
  2578. return true;
  2579. }
  2580. });
  2581. });
  2582. _this.projectSortData = _this.getProjectSort();
  2583. break;
  2584. case "create":
  2585. // 创建任务
  2586. _this.projectLabel.some(function (label) {
  2587. if (label.id == detail.labelid) {
  2588. var _tempLists = label.taskLists.filter(function (res) {
  2589. return res.id == detail.id;
  2590. });
  2591. if (_tempLists.length == 0) {
  2592. detail.isNewtask = true;
  2593. if (detail.insertbottom) {
  2594. label.taskLists.push(detail);
  2595. } else {
  2596. label.taskLists.unshift(detail);
  2597. }
  2598. _this.$nextTick(function () {
  2599. _this.$set(detail, 'isNewtask', false);
  2600. });
  2601. }
  2602. return true;
  2603. }
  2604. });
  2605. break;
  2606. case "unarchived":
  2607. // 取消归档
  2608. _this.projectLabel.forEach(function (label) {
  2609. if (label.id == detail.labelid) {
  2610. var index = label.taskLists.length;
  2611. label.taskLists.some(function (task, i) {
  2612. if (detail.inorder > task.inorder || detail.inorder == task.inorder && detail.id > task.id) {
  2613. index = i;
  2614. return true;
  2615. }
  2616. });
  2617. label.taskLists.splice(index, 0, detail);
  2618. }
  2619. });
  2620. _this.projectSortData = _this.getProjectSort();
  2621. break;
  2622. case "complete": // 标记完成
  2623. case "unfinished":
  2624. // 标记未完成
  2625. _this.taskNewSort();
  2626. break;
  2627. }
  2628. }, true);
  2629. },
  2630. activated: function activated() {
  2631. var _this2 = this;
  2632. this.projectid = this.$route.params.projectid;
  2633. if (_typeof(this.$route.params.other) === "object") {
  2634. this.$set(this.projectDetail, 'title', $A.getObject(this.$route.params.other, 'title'));
  2635. }
  2636. if (this.$route.params.statistics === '已完成') {
  2637. this.projectSettingDrawerTab = 'statistics';
  2638. this.projectSettingDrawerShow = true;
  2639. this.$nextTick(function () {
  2640. _this2.$refs.statistics.setTaskType('已完成');
  2641. });
  2642. }
  2643. },
  2644. deactivated: function deactivated() {
  2645. if ($A.getToken() === false) {
  2646. this.projectid = 0;
  2647. }
  2648. this.projectGanttShow = false;
  2649. this.projectDrawerShow = false;
  2650. this.projectSettingDrawerShow = false;
  2651. },
  2652. watch: {
  2653. projectid: function projectid(val) {
  2654. if ($A.runNum(val) <= 0) {
  2655. return;
  2656. }
  2657. this.projectDetail = {};
  2658. this.projectLabel = [];
  2659. this.projectSimpleLabel = [];
  2660. this.getDetail();
  2661. },
  2662. '$route': function $route(To) {
  2663. if (To.name == 'project-panel') {
  2664. this.projectid = To.params.projectid;
  2665. }
  2666. }
  2667. },
  2668. methods: {
  2669. getDetail: function getDetail(successTip) {
  2670. var _this3 = this;
  2671. this.loadIng++;
  2672. $A.apiAjax({
  2673. url: 'project/detail',
  2674. data: {
  2675. projectid: this.projectid
  2676. },
  2677. complete: function complete() {
  2678. _this3.loadIng--;
  2679. _this3.loadDetailed = true;
  2680. },
  2681. error: function error() {
  2682. _this3.goBack({ name: 'project' });
  2683. alert(_this3.$L('网络繁忙,请稍后再试!'));
  2684. },
  2685. success: function success(res) {
  2686. if (res.ret === 1) {
  2687. _this3.projectLabel = res.data.label;
  2688. _this3.taskNewSort();
  2689. _this3.projectDetail = res.data.project;
  2690. _this3.projectSimpleLabel = res.data.simpleLabel;
  2691. _this3.projectSortData = _this3.getProjectSort();
  2692. if (successTip === true) {
  2693. _this3.$Message.success(_this3.$L('刷新成功!'));
  2694. }
  2695. } else {
  2696. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  2697. }
  2698. }
  2699. });
  2700. },
  2701. getProjectSort: function getProjectSort() {
  2702. var sortData = "",
  2703. taskData = "";
  2704. this.projectLabel.forEach(function (label) {
  2705. taskData = "";
  2706. label.taskLists.forEach(function (task) {
  2707. if (taskData) taskData += "-";
  2708. taskData += task.id;
  2709. });
  2710. if (sortData) sortData += ";";
  2711. sortData += label.id + ":" + taskData;
  2712. });
  2713. return sortData;
  2714. },
  2715. handleLabel: function handleLabel(event, labelDetail) {
  2716. switch (event) {
  2717. case 'refresh':
  2718. {
  2719. this.refreshLabel(labelDetail);
  2720. break;
  2721. }
  2722. case 'rename':
  2723. {
  2724. this.renameLabel(labelDetail);
  2725. break;
  2726. }
  2727. case 'delete':
  2728. {
  2729. this.deleteLabel(labelDetail);
  2730. break;
  2731. }
  2732. }
  2733. },
  2734. refreshLabel: function refreshLabel(item) {
  2735. var _this4 = this;
  2736. this.$set(item, 'loadIng', true);
  2737. $A.apiAjax({
  2738. url: 'project/task/lists',
  2739. data: {
  2740. projectid: this.projectid,
  2741. labelid: item.id
  2742. },
  2743. complete: function complete() {
  2744. _this4.$set(item, 'loadIng', false);
  2745. },
  2746. error: function error() {
  2747. window.location.reload();
  2748. },
  2749. success: function success(res) {
  2750. if (res.ret === 1) {
  2751. _this4.$set(item, 'taskLists', res.data.lists);
  2752. } else {
  2753. window.location.reload();
  2754. }
  2755. }
  2756. });
  2757. },
  2758. renameLabel: function renameLabel(item) {
  2759. var _this5 = this;
  2760. this.renameValue = "";
  2761. this.$Modal.confirm({
  2762. render: function render(h) {
  2763. return h('div', [h('div', {
  2764. style: {
  2765. fontSize: '16px',
  2766. fontWeight: '500',
  2767. marginBottom: '20px'
  2768. }
  2769. }, _this5.$L('重命名列表')), h('Input', {
  2770. props: {
  2771. value: _this5.renameValue,
  2772. autofocus: true,
  2773. placeholder: _this5.$L('请输入新的列表名称')
  2774. },
  2775. on: {
  2776. input: function input(val) {
  2777. _this5.renameValue = val;
  2778. }
  2779. }
  2780. })]);
  2781. },
  2782. loading: true,
  2783. onOk: function onOk() {
  2784. if (_this5.renameValue) {
  2785. _this5.$set(item, 'loadIng', true);
  2786. var title = _this5.renameValue;
  2787. $A.apiAjax({
  2788. url: 'project/label/rename',
  2789. data: {
  2790. projectid: _this5.projectid,
  2791. labelid: item.id,
  2792. title: title
  2793. },
  2794. complete: function complete() {
  2795. _this5.$set(item, 'loadIng', false);
  2796. },
  2797. error: function error() {
  2798. _this5.$Modal.remove();
  2799. alert(_this5.$L('网络繁忙,请稍后再试!'));
  2800. },
  2801. success: function success(res) {
  2802. _this5.$Modal.remove();
  2803. _this5.$set(item, 'title', title);
  2804. setTimeout(function () {
  2805. if (res.ret === 1) {
  2806. _this5.$Message.success(res.msg);
  2807. } else {
  2808. _this5.$Modal.error({ title: _this5.$L('温馨提示'), content: res.msg });
  2809. }
  2810. }, 350);
  2811. }
  2812. });
  2813. } else {
  2814. _this5.$Modal.remove();
  2815. }
  2816. }
  2817. });
  2818. },
  2819. deleteLabel: function deleteLabel(item) {
  2820. var _this6 = this;
  2821. var redTip = item.taskLists.length > 0 ? '<div style="color:red;font-weight:500">' + this.$L('注:将同时删除列表下所有任务') + '</div>' : '';
  2822. this.$Modal.confirm({
  2823. title: this.$L('删除列表'),
  2824. content: '<div>' + this.$L('你确定要删除此列表吗?') + '</div>' + redTip,
  2825. loading: true,
  2826. onOk: function onOk() {
  2827. $A.apiAjax({
  2828. url: 'project/label/delete',
  2829. data: {
  2830. projectid: _this6.projectid,
  2831. labelid: item.id
  2832. },
  2833. error: function error() {
  2834. _this6.$Modal.remove();
  2835. alert(_this6.$L('网络繁忙,请稍后再试!'));
  2836. },
  2837. success: function success(res) {
  2838. _this6.$Modal.remove();
  2839. _this6.projectLabel.some(function (label, index) {
  2840. if (label.id == item.id) {
  2841. _this6.projectLabel.splice(index, 1);
  2842. _this6.projectSortData = _this6.getProjectSort();
  2843. return true;
  2844. }
  2845. });
  2846. setTimeout(function () {
  2847. if (res.ret === 1) {
  2848. _this6.$Message.success(res.msg);
  2849. $A.triggerTaskInfoListener('deletelabel', { labelid: item.id, projectid: item.projectid });
  2850. } else {
  2851. _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
  2852. }
  2853. }, 350);
  2854. }
  2855. });
  2856. }
  2857. });
  2858. },
  2859. addLabel: function addLabel() {
  2860. var _this7 = this;
  2861. this.labelValue = "";
  2862. this.$Modal.confirm({
  2863. render: function render(h) {
  2864. return h('div', [h('div', {
  2865. style: {
  2866. fontSize: '16px',
  2867. fontWeight: '500',
  2868. marginBottom: '20px'
  2869. }
  2870. }, _this7.$L('添加列表')), h('Input', {
  2871. props: {
  2872. value: _this7.labelValue,
  2873. autofocus: true,
  2874. placeholder: _this7.$L('请输入列表名称')
  2875. },
  2876. on: {
  2877. input: function input(val) {
  2878. _this7.labelValue = val;
  2879. }
  2880. }
  2881. })]);
  2882. },
  2883. loading: true,
  2884. onOk: function onOk() {
  2885. if (_this7.labelValue) {
  2886. var data = {
  2887. projectid: _this7.projectid,
  2888. title: _this7.labelValue
  2889. };
  2890. $A.apiAjax({
  2891. url: 'project/label/add',
  2892. data: data,
  2893. error: function error() {
  2894. _this7.$Modal.remove();
  2895. alert(_this7.$L('网络繁忙,请稍后再试!'));
  2896. },
  2897. success: function success(res) {
  2898. _this7.$Modal.remove();
  2899. _this7.projectLabel.push(res.data);
  2900. _this7.projectSortData = _this7.getProjectSort();
  2901. $A.triggerTaskInfoListener('addlabel', Object.assign(data, { labelid: res.data.id }));
  2902. setTimeout(function () {
  2903. if (res.ret === 1) {
  2904. _this7.$Message.success(res.msg);
  2905. } else {
  2906. _this7.$Modal.error({ title: _this7.$L('温馨提示'), content: res.msg });
  2907. }
  2908. }, 350);
  2909. }
  2910. });
  2911. } else {
  2912. _this7.$Modal.remove();
  2913. }
  2914. }
  2915. });
  2916. },
  2917. addTaskSuccess: function addTaskSuccess(taskDetail, label) {
  2918. var _this8 = this;
  2919. if (label.taskLists instanceof Array) {
  2920. taskDetail.isNewtask = true;
  2921. if (taskDetail.insertbottom) {
  2922. label.taskLists.push(taskDetail);
  2923. } else {
  2924. label.taskLists.unshift(taskDetail);
  2925. }
  2926. this.$nextTick(function () {
  2927. _this8.$set(taskDetail, 'isNewtask', false);
  2928. });
  2929. } else {
  2930. this.refreshLabel(label);
  2931. }
  2932. },
  2933. openProjectDrawer: function openProjectDrawer(tab) {
  2934. if (tab == 'projectGanttShow') {
  2935. this.projectGanttShow = !this.projectGanttShow;
  2936. return;
  2937. } else if (tab == 'openProjectSettingDrawer') {
  2938. this.openProjectSettingDrawer('setting');
  2939. return;
  2940. }
  2941. this.projectDrawerTab = tab;
  2942. this.projectDrawerShow = true;
  2943. },
  2944. openProjectSettingDrawer: function openProjectSettingDrawer(tab) {
  2945. this.projectSettingDrawerTab = tab;
  2946. this.projectSettingDrawerShow = true;
  2947. },
  2948. projectSortUpdate: function projectSortUpdate(isLabel) {
  2949. var _this9 = this;
  2950. var oldSort = this.projectSortData;
  2951. var newSort = this.getProjectSort();
  2952. if (oldSort == newSort) {
  2953. return;
  2954. }
  2955. this.projectSortData = newSort;
  2956. this.projectSortDisabled = true;
  2957. this.loadIng++;
  2958. $A.apiAjax({
  2959. url: 'project/sort',
  2960. data: {
  2961. projectid: this.projectid,
  2962. oldsort: oldSort,
  2963. newsort: newSort,
  2964. label: isLabel === true ? 1 : 0
  2965. },
  2966. complete: function complete() {
  2967. _this9.projectSortDisabled = false;
  2968. _this9.loadIng--;
  2969. },
  2970. error: function error() {
  2971. _this9.getDetail();
  2972. alert(_this9.$L('网络繁忙,请稍后再试!'));
  2973. },
  2974. success: function success(res) {
  2975. if (res.ret === 1) {
  2976. _this9.projectLabel.forEach(function (label) {
  2977. var length = label.taskLists.length;
  2978. label.taskLists.forEach(function (task, index) {
  2979. task.inorder = length - index;
  2980. });
  2981. });
  2982. _this9.taskNewSort();
  2983. //
  2984. _this9.$Message.success(res.msg);
  2985. $A.triggerTaskInfoListener(isLabel ? 'labelsort' : 'tasksort', { projectid: _this9.projectid, nickname: $A.getNickName(), time: Math.round(new Date().getTime() / 1000) });
  2986. } else {
  2987. _this9.getDetail();
  2988. _this9.$Modal.error({ title: _this9.$L('温馨提示'), content: res.msg });
  2989. }
  2990. }
  2991. });
  2992. },
  2993. projectMouse: function projectMouse(label) {
  2994. var hasScroll = false;
  2995. var el = this.$refs['box_' + label.id];
  2996. if (el && el.length > 0) {
  2997. el = el[0].$el;
  2998. hasScroll = el.scrollHeight > el.offsetHeight;
  2999. }
  3000. this.$set(label, 'hasScroll', hasScroll);
  3001. },
  3002. projectBoxScroll: function projectBoxScroll(e, label) {
  3003. this.$set(label, 'endScroll', e.scrollE < 50);
  3004. },
  3005. projectFocus: function projectFocus(label) {
  3006. var el = this.$refs['add_' + label.id];
  3007. if (el && el.length > 0) {
  3008. el[0].setFocus();
  3009. }
  3010. el = this.$refs['box_' + label.id];
  3011. if (el && el.length > 0) {
  3012. el[0].scrollToBottom(false);
  3013. }
  3014. },
  3015. subtaskProgress: function subtaskProgress(task) {
  3016. var subtask = task.subtask,
  3017. complete = task.complete;
  3018. if (!subtask || subtask.length === 0) {
  3019. return complete ? 100 : 0;
  3020. }
  3021. var completeLists = subtask.filter(function (item) {
  3022. return item.status == 'complete';
  3023. });
  3024. return parseFloat((completeLists.length / subtask.length * 100).toFixed(2));
  3025. },
  3026. openTaskModal: function openTaskModal(taskDetail) {
  3027. this.taskDetail(taskDetail);
  3028. },
  3029. taskNewSort: function taskNewSort() {
  3030. var _this10 = this;
  3031. this.$nextTick(function () {
  3032. _this10.projectLabel.forEach(function (item) {
  3033. item.taskLists = _this10.taskReturnNewSort(item.taskLists);
  3034. });
  3035. });
  3036. },
  3037. taskReturnNewSort: function taskReturnNewSort(lists) {
  3038. var tmpLists = __WEBPACK_IMPORTED_MODULE_13_lodash_orderBy___default()(lists, ['complete', 'inorder'], ['asc', 'desc']);
  3039. var array = [];
  3040. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref) {
  3041. var complete = _ref.complete;
  3042. return complete;
  3043. })));
  3044. array.unshift.apply(array, _toConsumableArray(tmpLists.filter(function (_ref2) {
  3045. var complete = _ref2.complete;
  3046. return !complete;
  3047. })));
  3048. return array;
  3049. },
  3050. isPersonsTask: function isPersonsTask(task) {
  3051. var _this11 = this;
  3052. return task.persons && !!task.persons.find(function (_ref3) {
  3053. var username = _ref3.username;
  3054. return username == _this11.usrInfo.username;
  3055. });
  3056. },
  3057. isFollowerTask: function isFollowerTask(task) {
  3058. return task.follower && task.follower.indexOf(this.usrInfo.username) !== -1;
  3059. },
  3060. isCreateTask: function isCreateTask(task) {
  3061. return task.createuser == this.usrInfo.username;
  3062. }
  3063. }
  3064. });
  3065. /***/ }),
  3066. /***/ 777:
  3067. /***/ (function(module, exports, __webpack_require__) {
  3068. var disposed = false
  3069. function injectStyle (ssrContext) {
  3070. if (disposed) return
  3071. __webpack_require__(778)
  3072. __webpack_require__(780)
  3073. }
  3074. var normalizeComponent = __webpack_require__(2)
  3075. /* script */
  3076. var __vue_script__ = __webpack_require__(782)
  3077. /* template */
  3078. var __vue_template__ = __webpack_require__(783)
  3079. /* template functional */
  3080. var __vue_template_functional__ = false
  3081. /* styles */
  3082. var __vue_styles__ = injectStyle
  3083. /* scopeId */
  3084. var __vue_scopeId__ = "data-v-7dae0bfc"
  3085. /* moduleIdentifier (server only) */
  3086. var __vue_module_identifier__ = null
  3087. var Component = normalizeComponent(
  3088. __vue_script__,
  3089. __vue_template__,
  3090. __vue_template_functional__,
  3091. __vue_styles__,
  3092. __vue_scopeId__,
  3093. __vue_module_identifier__
  3094. )
  3095. Component.options.__file = "resources/assets/js/main/components/project/task/add.vue"
  3096. /* hot reload */
  3097. if (false) {(function () {
  3098. var hotAPI = require("vue-hot-reload-api")
  3099. hotAPI.install(require("vue"), false)
  3100. if (!hotAPI.compatible) return
  3101. module.hot.accept()
  3102. if (!module.hot.data) {
  3103. hotAPI.createRecord("data-v-7dae0bfc", Component.options)
  3104. } else {
  3105. hotAPI.reload("data-v-7dae0bfc", Component.options)
  3106. }
  3107. module.hot.dispose(function (data) {
  3108. disposed = true
  3109. })
  3110. })()}
  3111. module.exports = Component.exports
  3112. /***/ }),
  3113. /***/ 778:
  3114. /***/ (function(module, exports, __webpack_require__) {
  3115. // style-loader: Adds some css to the DOM by adding a <style> tag
  3116. // load the styles
  3117. var content = __webpack_require__(779);
  3118. if(typeof content === 'string') content = [[module.i, content, '']];
  3119. if(content.locals) module.exports = content.locals;
  3120. // add the styles to the DOM
  3121. var update = __webpack_require__(1)("1187e5ab", content, false, {});
  3122. // Hot Module Replacement
  3123. if(false) {
  3124. // When the styles change, update the <style> tags
  3125. if(!content.locals) {
  3126. 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() {
  3127. 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");
  3128. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3129. update(newContent);
  3130. });
  3131. }
  3132. // When the module is disposed, remove the <style> tags
  3133. module.hot.dispose(function() { update(); });
  3134. }
  3135. /***/ }),
  3136. /***/ 779:
  3137. /***/ (function(module, exports, __webpack_require__) {
  3138. exports = module.exports = __webpack_require__(0)(false);
  3139. // imports
  3140. // module
  3141. exports.push([module.i, "\n.enter-module-btn-drop-list .ivu-dropdown-item {\n padding: 5px 16px;\n font-size: 12px !important;\n}\n", ""]);
  3142. // exports
  3143. /***/ }),
  3144. /***/ 780:
  3145. /***/ (function(module, exports, __webpack_require__) {
  3146. // style-loader: Adds some css to the DOM by adding a <style> tag
  3147. // load the styles
  3148. var content = __webpack_require__(781);
  3149. if(typeof content === 'string') content = [[module.i, content, '']];
  3150. if(content.locals) module.exports = content.locals;
  3151. // add the styles to the DOM
  3152. var update = __webpack_require__(1)("42fdf46b", content, false, {});
  3153. // Hot Module Replacement
  3154. if(false) {
  3155. // When the styles change, update the <style> tags
  3156. if(!content.locals) {
  3157. 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() {
  3158. 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");
  3159. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3160. update(newContent);
  3161. });
  3162. }
  3163. // When the module is disposed, remove the <style> tags
  3164. module.hot.dispose(function() { update(); });
  3165. }
  3166. /***/ }),
  3167. /***/ 781:
  3168. /***/ (function(module, exports, __webpack_require__) {
  3169. exports = module.exports = __webpack_require__(0)(false);
  3170. // imports
  3171. // module
  3172. 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", ""]);
  3173. // exports
  3174. /***/ }),
  3175. /***/ 782:
  3176. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3177. "use strict";
  3178. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3179. //
  3180. //
  3181. //
  3182. //
  3183. //
  3184. //
  3185. //
  3186. //
  3187. //
  3188. //
  3189. //
  3190. //
  3191. //
  3192. //
  3193. //
  3194. //
  3195. //
  3196. //
  3197. //
  3198. //
  3199. //
  3200. //
  3201. //
  3202. //
  3203. //
  3204. //
  3205. //
  3206. //
  3207. //
  3208. //
  3209. //
  3210. //
  3211. //
  3212. //
  3213. //
  3214. //
  3215. //
  3216. //
  3217. //
  3218. //
  3219. //
  3220. //
  3221. //
  3222. //
  3223. //
  3224. //
  3225. //
  3226. //
  3227. //
  3228. //
  3229. //
  3230. //
  3231. //
  3232. //
  3233. //
  3234. //
  3235. //
  3236. //
  3237. //
  3238. //
  3239. //
  3240. //
  3241. //
  3242. //
  3243. //
  3244. //
  3245. //
  3246. //
  3247. //
  3248. //
  3249. //
  3250. //
  3251. //
  3252. //
  3253. //
  3254. //
  3255. //
  3256. //
  3257. //
  3258. //
  3259. //
  3260. //
  3261. //
  3262. //
  3263. //
  3264. //
  3265. //
  3266. //
  3267. //
  3268. //
  3269. //
  3270. //
  3271. //
  3272. //
  3273. //
  3274. //
  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. /* harmony default export */ __webpack_exports__["default"] = ({
  3375. name: 'ProjectAddTask',
  3376. props: {
  3377. placeholder: {
  3378. type: String,
  3379. default: ''
  3380. },
  3381. projectid: {
  3382. type: Number,
  3383. default: 0
  3384. },
  3385. labelid: {
  3386. type: Number,
  3387. default: 0
  3388. }
  3389. },
  3390. data: function data() {
  3391. return {
  3392. loadIng: 0,
  3393. addText: '',
  3394. addLevel: 2,
  3395. addUserInfo: {},
  3396. addFocus: false,
  3397. nameTipDisabled: false
  3398. };
  3399. },
  3400. mounted: function mounted() {
  3401. this.addUserInfo = $A.cloneData(this.usrInfo);
  3402. },
  3403. methods: {
  3404. changeUser: function changeUser(user) {
  3405. if (typeof user.username === "undefined") {
  3406. this.addUserInfo = $A.cloneData(this.usrInfo);
  3407. } else {
  3408. this.addUserInfo = user;
  3409. }
  3410. },
  3411. dropAdd: function dropAdd(name) {
  3412. if (name == 'insertbottom') {
  3413. this.clickAdd(true);
  3414. }
  3415. },
  3416. clickAdd: function clickAdd() {
  3417. var _this = this;
  3418. var insertbottom = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  3419. var addText = this.addText.trim();
  3420. if ($A.count(addText) == 0 || this.loadIng > 0) {
  3421. return;
  3422. }
  3423. this.loadIng++;
  3424. $A.apiAjax({
  3425. url: 'project/task/add',
  3426. data: {
  3427. projectid: this.projectid,
  3428. labelid: this.labelid,
  3429. title: addText,
  3430. level: this.addLevel,
  3431. username: this.addUserInfo.username,
  3432. insertbottom: insertbottom ? 1 : 0
  3433. },
  3434. complete: function complete() {
  3435. _this.loadIng--;
  3436. },
  3437. error: function error() {
  3438. alert(_this.$L('网络繁忙,请稍后再试!'));
  3439. },
  3440. success: function success(res) {
  3441. if (res.ret === 1) {
  3442. _this.addText = '';
  3443. _this.addFocus = false;
  3444. _this.$Message.success(res.msg);
  3445. res.data.insertbottom = insertbottom;
  3446. _this.$emit('on-add-success', res.data);
  3447. $A.triggerTaskInfoListener('create', res.data);
  3448. $A.triggerTaskInfoChange(res.data.id);
  3449. } else {
  3450. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  3451. }
  3452. }
  3453. });
  3454. },
  3455. addKeydown: function addKeydown(e) {
  3456. if (e.keyCode == 13) {
  3457. if (e.shiftKey) {
  3458. return;
  3459. }
  3460. this.clickAdd(false);
  3461. e.preventDefault();
  3462. }
  3463. },
  3464. setFocus: function setFocus() {
  3465. this.$refs.addInput.focus();
  3466. },
  3467. onFocus: function onFocus(focus) {
  3468. this.addFocus = focus;
  3469. this.$emit('on-focus', focus);
  3470. }
  3471. }
  3472. });
  3473. /***/ }),
  3474. /***/ 783:
  3475. /***/ (function(module, exports, __webpack_require__) {
  3476. var render = function() {
  3477. var _vm = this
  3478. var _h = _vm.$createElement
  3479. var _c = _vm._self._c || _h
  3480. return _c("div", { staticClass: "task-input-box" }, [
  3481. !_vm.addText
  3482. ? _c(
  3483. "div",
  3484. { staticClass: "input-placeholder" },
  3485. [
  3486. _c("Icon", { attrs: { type: "md-create", size: "18" } }),
  3487. _vm._v(
  3488. " " +
  3489. _vm._s(
  3490. _vm.addFocus
  3491. ? "" + _vm.$L("输入任务,回车即可保存")
  3492. : _vm.placeholder
  3493. ) +
  3494. "\n "
  3495. )
  3496. ],
  3497. 1
  3498. )
  3499. : _vm._e(),
  3500. _vm._v(" "),
  3501. _c(
  3502. "div",
  3503. { staticClass: "input-enter" },
  3504. [
  3505. _c("Input", {
  3506. ref: "addInput",
  3507. staticClass: "input-enter-textarea",
  3508. class: { bright: _vm.addFocus === true, highlight: !!_vm.addText },
  3509. attrs: {
  3510. type: "textarea",
  3511. "element-id": "project-panel-enter-textarea",
  3512. autosize: { minRows: 1, maxRows: 6 },
  3513. maxlength: 255
  3514. },
  3515. on: {
  3516. "on-focus": function($event) {
  3517. return _vm.onFocus(true)
  3518. },
  3519. "on-blur": function($event) {
  3520. return _vm.onFocus(false)
  3521. },
  3522. "on-keydown": _vm.addKeydown
  3523. },
  3524. model: {
  3525. value: _vm.addText,
  3526. callback: function($$v) {
  3527. _vm.addText = $$v
  3528. },
  3529. expression: "addText"
  3530. }
  3531. }),
  3532. _vm._v(" "),
  3533. !!_vm.addText
  3534. ? _c(
  3535. "div",
  3536. { staticClass: "input-enter-module" },
  3537. [
  3538. _c(
  3539. "Tooltip",
  3540. {
  3541. attrs: {
  3542. content: _vm.$L("重要且紧急"),
  3543. placement: "bottom",
  3544. transfer: ""
  3545. }
  3546. },
  3547. [
  3548. _c(
  3549. "div",
  3550. {
  3551. staticClass: "enter-module-icon p1",
  3552. on: {
  3553. click: function($event) {
  3554. _vm.addLevel = 1
  3555. }
  3556. }
  3557. },
  3558. [
  3559. _vm.addLevel == "1"
  3560. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3561. : _vm._e()
  3562. ],
  3563. 1
  3564. )
  3565. ]
  3566. ),
  3567. _vm._v(" "),
  3568. _c(
  3569. "Tooltip",
  3570. {
  3571. attrs: {
  3572. content: _vm.$L("重要不紧急"),
  3573. placement: "bottom",
  3574. transfer: ""
  3575. }
  3576. },
  3577. [
  3578. _c(
  3579. "div",
  3580. {
  3581. staticClass: "enter-module-icon p2",
  3582. on: {
  3583. click: function($event) {
  3584. _vm.addLevel = 2
  3585. }
  3586. }
  3587. },
  3588. [
  3589. _vm.addLevel == "2"
  3590. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3591. : _vm._e()
  3592. ],
  3593. 1
  3594. )
  3595. ]
  3596. ),
  3597. _vm._v(" "),
  3598. _c(
  3599. "Tooltip",
  3600. {
  3601. attrs: {
  3602. content: _vm.$L("紧急不重要"),
  3603. placement: "bottom",
  3604. transfer: ""
  3605. }
  3606. },
  3607. [
  3608. _c(
  3609. "div",
  3610. {
  3611. staticClass: "enter-module-icon p3",
  3612. on: {
  3613. click: function($event) {
  3614. _vm.addLevel = 3
  3615. }
  3616. }
  3617. },
  3618. [
  3619. _vm.addLevel == "3"
  3620. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3621. : _vm._e()
  3622. ],
  3623. 1
  3624. )
  3625. ]
  3626. ),
  3627. _vm._v(" "),
  3628. _c(
  3629. "Tooltip",
  3630. {
  3631. attrs: {
  3632. content: _vm.$L("不重要不紧急"),
  3633. placement: "bottom",
  3634. transfer: ""
  3635. }
  3636. },
  3637. [
  3638. _c(
  3639. "div",
  3640. {
  3641. staticClass: "enter-module-icon p4",
  3642. on: {
  3643. click: function($event) {
  3644. _vm.addLevel = 4
  3645. }
  3646. }
  3647. },
  3648. [
  3649. _vm.addLevel == "4"
  3650. ? _c("Icon", { attrs: { type: "md-checkmark" } })
  3651. : _vm._e()
  3652. ],
  3653. 1
  3654. )
  3655. ]
  3656. ),
  3657. _vm._v(" "),
  3658. _c("div", { staticClass: "enter-module-flex" }),
  3659. _vm._v(" "),
  3660. _c(
  3661. "Poptip",
  3662. {
  3663. attrs: { placement: "bottom", transfer: "" },
  3664. on: {
  3665. "on-popper-show": function($event) {
  3666. _vm.nameTipDisabled = true
  3667. },
  3668. "on-popper-hide": function($event) {
  3669. _vm.nameTipDisabled = false
  3670. }
  3671. }
  3672. },
  3673. [
  3674. _c(
  3675. "Tooltip",
  3676. {
  3677. attrs: {
  3678. placement: "bottom",
  3679. disabled: _vm.nameTipDisabled
  3680. }
  3681. },
  3682. [
  3683. _c(
  3684. "div",
  3685. { staticClass: "enter-module-icon user" },
  3686. [
  3687. _c("UserImg", {
  3688. staticClass: "avatar",
  3689. attrs: { info: _vm.addUserInfo }
  3690. })
  3691. ],
  3692. 1
  3693. ),
  3694. _vm._v(" "),
  3695. _c(
  3696. "div",
  3697. { attrs: { slot: "content" }, slot: "content" },
  3698. [
  3699. _vm._v(
  3700. "\n " +
  3701. _vm._s(_vm.$L("负责人")) +
  3702. ": "
  3703. ),
  3704. _c("UserView", {
  3705. attrs: { username: _vm.addUserInfo.username }
  3706. })
  3707. ],
  3708. 1
  3709. )
  3710. ]
  3711. ),
  3712. _vm._v(" "),
  3713. _c("div", { attrs: { slot: "content" }, slot: "content" }, [
  3714. _c(
  3715. "div",
  3716. { staticStyle: { width: "240px" } },
  3717. [
  3718. _vm._v(
  3719. "\n " +
  3720. _vm._s(_vm.$L("选择负责人")) +
  3721. "\n "
  3722. ),
  3723. _c("UserInput", {
  3724. staticStyle: { margin: "5px 0 3px" },
  3725. attrs: {
  3726. projectid: _vm.projectid,
  3727. placeholder: _vm.$L("留空默认: 自己")
  3728. },
  3729. on: { change: _vm.changeUser },
  3730. model: {
  3731. value: _vm.addUserInfo.username,
  3732. callback: function($$v) {
  3733. _vm.$set(_vm.addUserInfo, "username", $$v)
  3734. },
  3735. expression: "addUserInfo.username"
  3736. }
  3737. })
  3738. ],
  3739. 1
  3740. )
  3741. ])
  3742. ],
  3743. 1
  3744. ),
  3745. _vm._v(" "),
  3746. _c(
  3747. "div",
  3748. { staticClass: "enter-module-btn" },
  3749. [
  3750. _c(
  3751. "Button",
  3752. {
  3753. staticClass: "enter-module-btn-1",
  3754. attrs: { type: "info", size: "small" },
  3755. on: {
  3756. click: function($event) {
  3757. return _vm.clickAdd(false)
  3758. }
  3759. }
  3760. },
  3761. [_vm._v(_vm._s(_vm.$L("添加任务")))]
  3762. ),
  3763. _vm._v(" "),
  3764. _c(
  3765. "Dropdown",
  3766. {
  3767. staticClass: "enter-module-btn-drop",
  3768. attrs: { placement: "bottom-end", transfer: "" },
  3769. on: { "on-click": _vm.dropAdd }
  3770. },
  3771. [
  3772. _c(
  3773. "Button",
  3774. {
  3775. staticClass: "enter-module-btn-2",
  3776. attrs: { type: "info", size: "small" }
  3777. },
  3778. [_c("Icon", { attrs: { type: "ios-arrow-down" } })],
  3779. 1
  3780. ),
  3781. _vm._v(" "),
  3782. _c(
  3783. "DropdownMenu",
  3784. {
  3785. staticClass: "enter-module-btn-drop-list",
  3786. attrs: { slot: "list" },
  3787. slot: "list"
  3788. },
  3789. [
  3790. _c(
  3791. "DropdownItem",
  3792. { attrs: { name: "insertbottom" } },
  3793. [_vm._v(_vm._s(_vm.$L("添加至列表结尾")))]
  3794. )
  3795. ],
  3796. 1
  3797. )
  3798. ],
  3799. 1
  3800. )
  3801. ],
  3802. 1
  3803. )
  3804. ],
  3805. 1
  3806. )
  3807. : _vm._e()
  3808. ],
  3809. 1
  3810. ),
  3811. _vm._v(" "),
  3812. _vm.loadIng > 0
  3813. ? _c(
  3814. "div",
  3815. {
  3816. staticClass: "load-box",
  3817. on: {
  3818. click: function($event) {
  3819. $event.stopPropagation()
  3820. }
  3821. }
  3822. },
  3823. [_c("div", { staticClass: "load-box-main" }, [_c("w-loading")], 1)]
  3824. )
  3825. : _vm._e()
  3826. ])
  3827. }
  3828. var staticRenderFns = []
  3829. render._withStripped = true
  3830. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3831. if (false) {
  3832. module.hot.accept()
  3833. if (module.hot.data) {
  3834. require("vue-hot-reload-api") .rerender("data-v-7dae0bfc", module.exports)
  3835. }
  3836. }
  3837. /***/ }),
  3838. /***/ 784:
  3839. /***/ (function(module, exports, __webpack_require__) {
  3840. var disposed = false
  3841. function injectStyle (ssrContext) {
  3842. if (disposed) return
  3843. __webpack_require__(785)
  3844. }
  3845. var normalizeComponent = __webpack_require__(2)
  3846. /* script */
  3847. var __vue_script__ = __webpack_require__(787)
  3848. /* template */
  3849. var __vue_template__ = __webpack_require__(788)
  3850. /* template functional */
  3851. var __vue_template_functional__ = false
  3852. /* styles */
  3853. var __vue_styles__ = injectStyle
  3854. /* scopeId */
  3855. var __vue_scopeId__ = "data-v-11cf9cb6"
  3856. /* moduleIdentifier (server only) */
  3857. var __vue_module_identifier__ = null
  3858. var Component = normalizeComponent(
  3859. __vue_script__,
  3860. __vue_template__,
  3861. __vue_template_functional__,
  3862. __vue_styles__,
  3863. __vue_scopeId__,
  3864. __vue_module_identifier__
  3865. )
  3866. Component.options.__file = "resources/assets/js/main/components/project/task/lists.vue"
  3867. /* hot reload */
  3868. if (false) {(function () {
  3869. var hotAPI = require("vue-hot-reload-api")
  3870. hotAPI.install(require("vue"), false)
  3871. if (!hotAPI.compatible) return
  3872. module.hot.accept()
  3873. if (!module.hot.data) {
  3874. hotAPI.createRecord("data-v-11cf9cb6", Component.options)
  3875. } else {
  3876. hotAPI.reload("data-v-11cf9cb6", Component.options)
  3877. }
  3878. module.hot.dispose(function (data) {
  3879. disposed = true
  3880. })
  3881. })()}
  3882. module.exports = Component.exports
  3883. /***/ }),
  3884. /***/ 785:
  3885. /***/ (function(module, exports, __webpack_require__) {
  3886. // style-loader: Adds some css to the DOM by adding a <style> tag
  3887. // load the styles
  3888. var content = __webpack_require__(786);
  3889. if(typeof content === 'string') content = [[module.i, content, '']];
  3890. if(content.locals) module.exports = content.locals;
  3891. // add the styles to the DOM
  3892. var update = __webpack_require__(1)("82725c66", content, false, {});
  3893. // Hot Module Replacement
  3894. if(false) {
  3895. // When the styles change, update the <style> tags
  3896. if(!content.locals) {
  3897. 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() {
  3898. 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");
  3899. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3900. update(newContent);
  3901. });
  3902. }
  3903. // When the module is disposed, remove the <style> tags
  3904. module.hot.dispose(function() { update(); });
  3905. }
  3906. /***/ }),
  3907. /***/ 786:
  3908. /***/ (function(module, exports, __webpack_require__) {
  3909. exports = module.exports = __webpack_require__(0)(false);
  3910. // imports
  3911. // module
  3912. 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", ""]);
  3913. // exports
  3914. /***/ }),
  3915. /***/ 787:
  3916. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3917. "use strict";
  3918. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3919. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  3920. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  3921. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  3922. //
  3923. //
  3924. //
  3925. //
  3926. //
  3927. //
  3928. //
  3929. //
  3930. //
  3931. //
  3932. //
  3933. //
  3934. //
  3935. //
  3936. //
  3937. //
  3938. //
  3939. //
  3940. //
  3941. //
  3942. //
  3943. //
  3944. //
  3945. //
  3946. //
  3947. //
  3948. //
  3949. //
  3950. //
  3951. //
  3952. //
  3953. //
  3954. //
  3955. //
  3956. //
  3957. //
  3958. //
  3959. //
  3960. //
  3961. //
  3962. //
  3963. //
  3964. //
  3965. //
  3966. //
  3967. //
  3968. //
  3969. //
  3970. //
  3971. //
  3972. //
  3973. //
  3974. //
  3975. //
  3976. //
  3977. //
  3978. //
  3979. //
  3980. //
  3981. //
  3982. //
  3983. //
  3984. //
  3985. //
  3986. //
  3987. //
  3988. /**
  3989. * 项目任务列表
  3990. */
  3991. /* harmony default export */ __webpack_exports__["default"] = ({
  3992. name: 'ProjectTaskLists',
  3993. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  3994. props: {
  3995. projectid: {
  3996. default: 0
  3997. },
  3998. canload: {
  3999. type: Boolean,
  4000. default: true
  4001. },
  4002. labelLists: {
  4003. type: Array
  4004. }
  4005. },
  4006. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  4007. data: function data() {
  4008. return {
  4009. keys: {},
  4010. sorts: { key: '', order: '' },
  4011. loadYet: false,
  4012. loadIng: 0,
  4013. exportLoad: 0,
  4014. columns: [],
  4015. lists: [],
  4016. listPage: 1,
  4017. listTotal: 0,
  4018. noDataText: ""
  4019. };
  4020. },
  4021. mounted: function mounted() {
  4022. var _this = this;
  4023. if (this.canload) {
  4024. this.loadYet = true;
  4025. this.getLists(true);
  4026. }
  4027. $A.setOnTaskInfoListener('components/project/task/lists', function (act, detail) {
  4028. if (detail.projectid != _this.projectid) {
  4029. return;
  4030. }
  4031. //
  4032. _this.lists.some(function (task, i) {
  4033. if (task.id == detail.id) {
  4034. _this.lists.splice(i, 1, detail);
  4035. return true;
  4036. }
  4037. });
  4038. //
  4039. switch (act) {
  4040. case "username": // 负责人
  4041. case "delete": // 删除任务
  4042. case "archived":
  4043. // 归档
  4044. _this.lists.some(function (task, i) {
  4045. if (task.id == detail.id) {
  4046. _this.lists.splice(i, 1);
  4047. return true;
  4048. }
  4049. });
  4050. break;
  4051. case "unarchived":
  4052. // 取消归档
  4053. var has = false;
  4054. _this.lists.some(function (task) {
  4055. if (task.id == detail.id) {
  4056. return has = true;
  4057. }
  4058. });
  4059. if (!has) {
  4060. _this.lists.unshift(detail);
  4061. }
  4062. break;
  4063. }
  4064. });
  4065. },
  4066. watch: {
  4067. projectid: function projectid() {
  4068. if (this.loadYet) {
  4069. this.getLists(true);
  4070. }
  4071. },
  4072. canload: function canload(val) {
  4073. if (val && !this.loadYet) {
  4074. this.loadYet = true;
  4075. this.getLists(true);
  4076. }
  4077. }
  4078. },
  4079. methods: {
  4080. initLanguage: function initLanguage() {
  4081. var _this2 = this;
  4082. this.noDataText = this.$L("数据加载中.....");
  4083. this.columns = [{
  4084. "title": this.$L("任务名称"),
  4085. "key": 'title',
  4086. "minWidth": 120,
  4087. render: function render(h, params) {
  4088. return _this2.renderTaskTitle(h, params);
  4089. }
  4090. }, {
  4091. "title": this.$L("阶段"),
  4092. "key": 'labelid',
  4093. "minWidth": 80,
  4094. "sortable": true,
  4095. render: function render(h, params) {
  4096. var labelid = params.row.labelid;
  4097. var labelDetail = _this2.labelLists.find(function (item) {
  4098. return item.id === labelid;
  4099. });
  4100. return h('span', labelDetail ? labelDetail.title : labelid);
  4101. }
  4102. }, {
  4103. "title": this.$L("计划时间"),
  4104. "key": 'enddate',
  4105. "width": 160,
  4106. "align": "center",
  4107. "sortable": true,
  4108. render: function render(h, params) {
  4109. if (!params.row.startdate && !params.row.enddate) {
  4110. return h('span', '-');
  4111. }
  4112. return h('div', {
  4113. style: {
  4114. fontSize: '12px',
  4115. lineHeight: '14px'
  4116. }
  4117. }, [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) : '-')]);
  4118. }
  4119. }, {
  4120. "title": this.$L("负责人"),
  4121. "key": 'username',
  4122. "minWidth": 90,
  4123. "sortable": true,
  4124. render: function render(h, params) {
  4125. return h('UserView', {
  4126. props: {
  4127. username: params.row.username
  4128. }
  4129. });
  4130. }
  4131. }, {
  4132. "title": this.$L("优先级"),
  4133. "key": 'level',
  4134. "align": "center",
  4135. "minWidth": 90,
  4136. "maxWidth": 100,
  4137. "sortable": true,
  4138. render: function render(h, params) {
  4139. var level = params.row.level;
  4140. var color = void 0;
  4141. switch (level) {
  4142. case 1:
  4143. color = "#ff0000";
  4144. break;
  4145. case 2:
  4146. color = "#BB9F35";
  4147. break;
  4148. case 3:
  4149. color = "#449EDD";
  4150. break;
  4151. case 4:
  4152. color = "#84A83B";
  4153. break;
  4154. }
  4155. return h('span', {
  4156. style: {
  4157. color: color
  4158. }
  4159. }, "P" + level);
  4160. }
  4161. }, {
  4162. "title": this.$L("状态"),
  4163. "key": 'type',
  4164. "align": "center",
  4165. "minWidth": 80,
  4166. "maxWidth": 100,
  4167. "sortable": true,
  4168. render: function render(h, params) {
  4169. var color = void 0;
  4170. var status = void 0;
  4171. if (params.row.overdue) {
  4172. color = "#ff0000";
  4173. status = _this2.$L("已超期");
  4174. } else if (params.row.complete) {
  4175. color = "";
  4176. status = _this2.$L("已完成");
  4177. } else {
  4178. color = "#19be6b";
  4179. status = _this2.$L("未完成");
  4180. }
  4181. return h('span', {
  4182. style: {
  4183. color: color
  4184. }
  4185. }, status);
  4186. }
  4187. }, {
  4188. "title": this.$L("创建时间"),
  4189. "key": 'indate',
  4190. "width": 160,
  4191. "sortable": true,
  4192. render: function render(h, params) {
  4193. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  4194. }
  4195. }, {
  4196. "title": this.$L("最近更新时间"),
  4197. "key": 'update',
  4198. "width": 160,
  4199. "sortable": true,
  4200. render: function render(h, params) {
  4201. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.update));
  4202. }
  4203. }];
  4204. },
  4205. exportTab: function exportTab() {
  4206. var _this3 = this;
  4207. var whereData = $A.cloneData(this.keys);
  4208. whereData.page = Math.max(this.listPage, 1);
  4209. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4210. whereData.projectid = this.projectid;
  4211. whereData.sorts = $A.cloneData(this.sorts);
  4212. whereData.export = 1;
  4213. this.exportLoad++;
  4214. $A.apiAjax({
  4215. url: 'project/task/lists',
  4216. data: whereData,
  4217. complete: function complete() {
  4218. _this3.exportLoad--;
  4219. },
  4220. error: function error() {
  4221. alert(_this3.$L('网络繁忙,请稍后再试!'));
  4222. },
  4223. success: function success(res) {
  4224. if (res.ret === 1) {
  4225. _this3.$Modal.info({
  4226. okText: _this3.$L('关闭'),
  4227. render: function render(h) {
  4228. return h('div', [h('div', {
  4229. style: {
  4230. fontSize: '16px',
  4231. fontWeight: '500',
  4232. marginBottom: '20px'
  4233. }
  4234. }, _this3.$L('导出结果')), h('a', {
  4235. attrs: { href: res.data.url, target: '_blank' }
  4236. }, _this3.$L('点击下载 (%)', res.data.size + " KB"))]);
  4237. }
  4238. });
  4239. } else {
  4240. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  4241. }
  4242. }
  4243. });
  4244. },
  4245. sreachTab: function sreachTab(clear) {
  4246. if (clear === true) {
  4247. this.keys = {};
  4248. }
  4249. this.getLists(true);
  4250. },
  4251. sortChange: function sortChange(info) {
  4252. this.sorts = { key: info.key, order: info.order };
  4253. this.getLists(true);
  4254. },
  4255. setPage: function setPage(page) {
  4256. this.listPage = page;
  4257. this.getLists();
  4258. },
  4259. setPageSize: function setPageSize(size) {
  4260. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  4261. this.listPageSize = size;
  4262. this.getLists();
  4263. }
  4264. },
  4265. getLists: function getLists(resetLoad) {
  4266. var _this4 = this;
  4267. if (resetLoad === true) {
  4268. this.listPage = 1;
  4269. }
  4270. if (this.projectid == 0) {
  4271. this.lists = [];
  4272. this.listTotal = 0;
  4273. this.noDataText = this.$L("没有相关的数据");
  4274. return;
  4275. }
  4276. this.loadIng++;
  4277. var whereData = $A.cloneData(this.keys);
  4278. whereData.page = Math.max(this.listPage, 1);
  4279. whereData.pagesize = Math.max($A.runNum(this.listPageSize), 10);
  4280. whereData.projectid = this.projectid;
  4281. whereData.sorts = $A.cloneData(this.sorts);
  4282. this.noDataText = this.$L("数据加载中.....");
  4283. $A.apiAjax({
  4284. url: 'project/task/lists',
  4285. data: whereData,
  4286. complete: function complete() {
  4287. _this4.loadIng--;
  4288. },
  4289. error: function error() {
  4290. _this4.noDataText = _this4.$L("数据加载失败!");
  4291. },
  4292. success: function success(res) {
  4293. if (res.ret === 1) {
  4294. _this4.lists = res.data.lists;
  4295. _this4.listTotal = res.data.total;
  4296. _this4.noDataText = _this4.$L("没有相关的数据");
  4297. } else {
  4298. _this4.lists = [];
  4299. _this4.listTotal = 0;
  4300. _this4.noDataText = res.msg;
  4301. }
  4302. }
  4303. });
  4304. }
  4305. }
  4306. });
  4307. /***/ }),
  4308. /***/ 788:
  4309. /***/ (function(module, exports, __webpack_require__) {
  4310. var render = function() {
  4311. var _vm = this
  4312. var _h = _vm.$createElement
  4313. var _c = _vm._self._c || _h
  4314. return _c("drawer-tabs-container", [
  4315. _c(
  4316. "div",
  4317. { staticClass: "project-task-lists" },
  4318. [
  4319. _c("Row", { staticClass: "sreachBox" }, [
  4320. _c("div", { staticClass: "item" }, [
  4321. _c(
  4322. "div",
  4323. { staticClass: "item-4" },
  4324. [
  4325. _c("sreachTitle", { attrs: { val: _vm.keys.type } }, [
  4326. _vm._v(_vm._s(_vm.$L("状态")))
  4327. ]),
  4328. _vm._v(" "),
  4329. _c(
  4330. "Select",
  4331. {
  4332. attrs: { placeholder: _vm.$L("全部") },
  4333. model: {
  4334. value: _vm.keys.type,
  4335. callback: function($$v) {
  4336. _vm.$set(_vm.keys, "type", $$v)
  4337. },
  4338. expression: "keys.type"
  4339. }
  4340. },
  4341. [
  4342. _c("Option", { attrs: { value: "" } }, [
  4343. _vm._v(_vm._s(_vm.$L("全部")))
  4344. ]),
  4345. _vm._v(" "),
  4346. _c("Option", { attrs: { value: "未完成" } }, [
  4347. _vm._v(_vm._s(_vm.$L("未完成")))
  4348. ]),
  4349. _vm._v(" "),
  4350. _c("Option", { attrs: { value: "已超期" } }, [
  4351. _vm._v(_vm._s(_vm.$L("已超期")))
  4352. ]),
  4353. _vm._v(" "),
  4354. _c("Option", { attrs: { value: "已完成" } }, [
  4355. _vm._v(_vm._s(_vm.$L("已完成")))
  4356. ])
  4357. ],
  4358. 1
  4359. )
  4360. ],
  4361. 1
  4362. ),
  4363. _vm._v(" "),
  4364. _c(
  4365. "div",
  4366. { staticClass: "item-4" },
  4367. [
  4368. _c("sreachTitle", { attrs: { val: _vm.keys.username } }, [
  4369. _vm._v(_vm._s(_vm.$L("负责人")))
  4370. ]),
  4371. _vm._v(" "),
  4372. _c("Input", {
  4373. attrs: { placeholder: _vm.$L("用户名") },
  4374. model: {
  4375. value: _vm.keys.username,
  4376. callback: function($$v) {
  4377. _vm.$set(_vm.keys, "username", $$v)
  4378. },
  4379. expression: "keys.username"
  4380. }
  4381. })
  4382. ],
  4383. 1
  4384. ),
  4385. _vm._v(" "),
  4386. _c(
  4387. "div",
  4388. { staticClass: "item-4" },
  4389. [
  4390. _c("sreachTitle", { attrs: { val: _vm.keys.level } }, [
  4391. _vm._v(_vm._s(_vm.$L("级别")))
  4392. ]),
  4393. _vm._v(" "),
  4394. _c(
  4395. "Select",
  4396. {
  4397. attrs: { placeholder: _vm.$L("全部") },
  4398. model: {
  4399. value: _vm.keys.level,
  4400. callback: function($$v) {
  4401. _vm.$set(_vm.keys, "level", $$v)
  4402. },
  4403. expression: "keys.level"
  4404. }
  4405. },
  4406. [
  4407. _c("Option", { attrs: { value: "" } }, [
  4408. _vm._v(_vm._s(_vm.$L("全部")))
  4409. ]),
  4410. _vm._v(" "),
  4411. _c("Option", { attrs: { value: "1" } }, [_vm._v("P1")]),
  4412. _vm._v(" "),
  4413. _c("Option", { attrs: { value: "2" } }, [_vm._v("P2")]),
  4414. _vm._v(" "),
  4415. _c("Option", { attrs: { value: "3" } }, [_vm._v("P3")]),
  4416. _vm._v(" "),
  4417. _c("Option", { attrs: { value: "4" } }, [_vm._v("P4")])
  4418. ],
  4419. 1
  4420. )
  4421. ],
  4422. 1
  4423. ),
  4424. _vm._v(" "),
  4425. _c(
  4426. "div",
  4427. { staticClass: "item-4" },
  4428. [
  4429. _c("sreachTitle", { attrs: { val: _vm.keys.labelid } }, [
  4430. _vm._v(_vm._s(_vm.$L("阶段")))
  4431. ]),
  4432. _vm._v(" "),
  4433. _c(
  4434. "Select",
  4435. {
  4436. attrs: { placeholder: _vm.$L("全部") },
  4437. model: {
  4438. value: _vm.keys.labelid,
  4439. callback: function($$v) {
  4440. _vm.$set(_vm.keys, "labelid", $$v)
  4441. },
  4442. expression: "keys.labelid"
  4443. }
  4444. },
  4445. [
  4446. _c("Option", { attrs: { value: "" } }, [
  4447. _vm._v(_vm._s(_vm.$L("全部")))
  4448. ]),
  4449. _vm._v(" "),
  4450. _vm._l(_vm.labelLists, function(item) {
  4451. return _c(
  4452. "Option",
  4453. { key: item.id, attrs: { value: item.id } },
  4454. [_vm._v(_vm._s(item.title))]
  4455. )
  4456. })
  4457. ],
  4458. 2
  4459. )
  4460. ],
  4461. 1
  4462. )
  4463. ]),
  4464. _vm._v(" "),
  4465. _c(
  4466. "div",
  4467. { staticClass: "item item-button" },
  4468. [
  4469. _c(
  4470. "Button",
  4471. {
  4472. staticClass: "left-btn",
  4473. attrs: {
  4474. type: "info",
  4475. icon: "md-swap",
  4476. loading: _vm.exportLoad > 0
  4477. },
  4478. on: { click: _vm.exportTab }
  4479. },
  4480. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  4481. ),
  4482. _vm._v(" "),
  4483. _vm.$A.objImplode(_vm.keys) != ""
  4484. ? _c(
  4485. "Button",
  4486. {
  4487. attrs: { type: "text" },
  4488. on: {
  4489. click: function($event) {
  4490. return _vm.sreachTab(true)
  4491. }
  4492. }
  4493. },
  4494. [_vm._v(_vm._s(_vm.$L("取消筛选")))]
  4495. )
  4496. : _vm._e(),
  4497. _vm._v(" "),
  4498. _c(
  4499. "Button",
  4500. {
  4501. attrs: {
  4502. type: "primary",
  4503. icon: "md-search",
  4504. loading: _vm.loadIng > 0
  4505. },
  4506. on: { click: _vm.sreachTab }
  4507. },
  4508. [_vm._v(_vm._s(_vm.$L("搜索")))]
  4509. )
  4510. ],
  4511. 1
  4512. )
  4513. ]),
  4514. _vm._v(" "),
  4515. _c("Table", {
  4516. ref: "tableRef",
  4517. staticClass: "tableFill",
  4518. attrs: {
  4519. columns: _vm.columns,
  4520. data: _vm.lists,
  4521. loading: _vm.loadIng > 0,
  4522. "no-data-text": _vm.noDataText,
  4523. stripe: ""
  4524. },
  4525. on: { "on-sort-change": _vm.sortChange }
  4526. }),
  4527. _vm._v(" "),
  4528. _c("Page", {
  4529. staticClass: "pageBox",
  4530. attrs: {
  4531. total: _vm.listTotal,
  4532. current: _vm.listPage,
  4533. disabled: _vm.loadIng > 0,
  4534. "page-size-opts": [10, 20, 30, 50, 100],
  4535. placement: "top",
  4536. "show-elevator": "",
  4537. "show-sizer": "",
  4538. "show-total": "",
  4539. transfer: "",
  4540. simple: _vm.windowMax768
  4541. },
  4542. on: {
  4543. "on-change": _vm.setPage,
  4544. "on-page-size-change": _vm.setPageSize
  4545. }
  4546. })
  4547. ],
  4548. 1
  4549. )
  4550. ])
  4551. }
  4552. var staticRenderFns = []
  4553. render._withStripped = true
  4554. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4555. if (false) {
  4556. module.hot.accept()
  4557. if (module.hot.data) {
  4558. require("vue-hot-reload-api") .rerender("data-v-11cf9cb6", module.exports)
  4559. }
  4560. }
  4561. /***/ }),
  4562. /***/ 789:
  4563. /***/ (function(module, exports, __webpack_require__) {
  4564. var disposed = false
  4565. function injectStyle (ssrContext) {
  4566. if (disposed) return
  4567. __webpack_require__(790)
  4568. }
  4569. var normalizeComponent = __webpack_require__(2)
  4570. /* script */
  4571. var __vue_script__ = __webpack_require__(792)
  4572. /* template */
  4573. var __vue_template__ = __webpack_require__(798)
  4574. /* template functional */
  4575. var __vue_template_functional__ = false
  4576. /* styles */
  4577. var __vue_styles__ = injectStyle
  4578. /* scopeId */
  4579. var __vue_scopeId__ = null
  4580. /* moduleIdentifier (server only) */
  4581. var __vue_module_identifier__ = null
  4582. var Component = normalizeComponent(
  4583. __vue_script__,
  4584. __vue_template__,
  4585. __vue_template_functional__,
  4586. __vue_styles__,
  4587. __vue_scopeId__,
  4588. __vue_module_identifier__
  4589. )
  4590. Component.options.__file = "resources/assets/js/main/components/project/gantt/index.vue"
  4591. /* hot reload */
  4592. if (false) {(function () {
  4593. var hotAPI = require("vue-hot-reload-api")
  4594. hotAPI.install(require("vue"), false)
  4595. if (!hotAPI.compatible) return
  4596. module.hot.accept()
  4597. if (!module.hot.data) {
  4598. hotAPI.createRecord("data-v-91cfb088", Component.options)
  4599. } else {
  4600. hotAPI.reload("data-v-91cfb088", Component.options)
  4601. }
  4602. module.hot.dispose(function (data) {
  4603. disposed = true
  4604. })
  4605. })()}
  4606. module.exports = Component.exports
  4607. /***/ }),
  4608. /***/ 790:
  4609. /***/ (function(module, exports, __webpack_require__) {
  4610. // style-loader: Adds some css to the DOM by adding a <style> tag
  4611. // load the styles
  4612. var content = __webpack_require__(791);
  4613. if(typeof content === 'string') content = [[module.i, content, '']];
  4614. if(content.locals) module.exports = content.locals;
  4615. // add the styles to the DOM
  4616. var update = __webpack_require__(1)("87129f5a", content, false, {});
  4617. // Hot Module Replacement
  4618. if(false) {
  4619. // When the styles change, update the <style> tags
  4620. if(!content.locals) {
  4621. 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() {
  4622. 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");
  4623. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  4624. update(newContent);
  4625. });
  4626. }
  4627. // When the module is disposed, remove the <style> tags
  4628. module.hot.dispose(function() { update(); });
  4629. }
  4630. /***/ }),
  4631. /***/ 791:
  4632. /***/ (function(module, exports, __webpack_require__) {
  4633. exports = module.exports = __webpack_require__(0)(false);
  4634. // imports
  4635. // module
  4636. 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", ""]);
  4637. // exports
  4638. /***/ }),
  4639. /***/ 792:
  4640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4641. "use strict";
  4642. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4643. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index__ = __webpack_require__(793);
  4644. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__gantt_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__gantt_index__);
  4645. //
  4646. //
  4647. //
  4648. //
  4649. //
  4650. //
  4651. //
  4652. //
  4653. //
  4654. //
  4655. //
  4656. //
  4657. //
  4658. //
  4659. //
  4660. //
  4661. //
  4662. //
  4663. //
  4664. //
  4665. //
  4666. //
  4667. //
  4668. //
  4669. //
  4670. //
  4671. //
  4672. //
  4673. //
  4674. //
  4675. //
  4676. //
  4677. //
  4678. //
  4679. //
  4680. //
  4681. //
  4682. //
  4683. //
  4684. //
  4685. //
  4686. //
  4687. //
  4688. //
  4689. //
  4690. //
  4691. //
  4692. //
  4693. //
  4694. //
  4695. //
  4696. //
  4697. //
  4698. //
  4699. //
  4700. //
  4701. //
  4702. //
  4703. //
  4704. //
  4705. //
  4706. //
  4707. //
  4708. //
  4709. //
  4710. //
  4711. //
  4712. //
  4713. //
  4714. //
  4715. //
  4716. //
  4717. //
  4718. //
  4719. //
  4720. //
  4721. //
  4722. //
  4723. //
  4724. //
  4725. //
  4726. //
  4727. //
  4728. //
  4729. //
  4730. //
  4731. //
  4732. //
  4733. //
  4734. //
  4735. //
  4736. //
  4737. //
  4738. //
  4739. //
  4740. //
  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. /* harmony default export */ __webpack_exports__["default"] = ({
  4790. name: 'ProjectGantt',
  4791. components: { GanttView: __WEBPACK_IMPORTED_MODULE_0__gantt_index___default.a },
  4792. props: {
  4793. projectLabel: {
  4794. default: []
  4795. }
  4796. },
  4797. data: function data() {
  4798. return {
  4799. loadFinish: false,
  4800. lists: [],
  4801. editColumns: [],
  4802. editData: [],
  4803. editShowInfo: false,
  4804. editLoad: 0,
  4805. filtrProjectId: 0
  4806. };
  4807. },
  4808. mounted: function mounted() {
  4809. this.editColumns = [{
  4810. title: this.$L('任务名称'),
  4811. key: 'label',
  4812. minWidth: 150,
  4813. ellipsis: true
  4814. }, {
  4815. title: this.$L('原计划时间'),
  4816. minWidth: 135,
  4817. align: 'center',
  4818. render: function render(h, params) {
  4819. if (params.row.notime === true) {
  4820. return h('span', '-');
  4821. }
  4822. return h('div', {
  4823. style: {}
  4824. }, [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)))]);
  4825. }
  4826. }, {
  4827. title: this.$L('新计划时间'),
  4828. minWidth: 135,
  4829. align: 'center',
  4830. render: function render(h, params) {
  4831. return h('div', {
  4832. style: {}
  4833. }, [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)))]);
  4834. }
  4835. }];
  4836. //
  4837. this.initData();
  4838. this.loadFinish = true;
  4839. },
  4840. watch: {
  4841. projectLabel: {
  4842. handler: function handler() {
  4843. this.initData();
  4844. },
  4845. deep: true
  4846. }
  4847. },
  4848. methods: {
  4849. initData: function initData() {
  4850. var _this = this;
  4851. this.lists = [];
  4852. this.projectLabel.forEach(function (item) {
  4853. if (_this.filtrProjectId > 0) {
  4854. if (item.id != _this.filtrProjectId) {
  4855. return;
  4856. }
  4857. }
  4858. item.taskLists.forEach(function (taskData) {
  4859. var notime = taskData.startdate == 0 || taskData.enddate == 0;
  4860. var times = _this.getTimeObj(taskData);
  4861. var start = times.start;
  4862. var end = times.end;
  4863. //
  4864. var color = '#058ce4';
  4865. if (taskData.complete) {
  4866. color = '#c1c1c1';
  4867. } else {
  4868. if (taskData.level === 1) {
  4869. color = '#ff0000';
  4870. } else if (taskData.level === 2) {
  4871. color = '#BB9F35';
  4872. } else if (taskData.level === 3) {
  4873. color = '#449EDD';
  4874. } else if (taskData.level === 4) {
  4875. color = '#84A83B';
  4876. }
  4877. }
  4878. //
  4879. var tempTime = { start: start, end: end };
  4880. var findData = _this.editData.find(function (t) {
  4881. return t.id == taskData.id;
  4882. });
  4883. if (findData) {
  4884. findData.backTime = $A.cloneData(tempTime);
  4885. tempTime = $A.cloneData(findData.newTime);
  4886. }
  4887. //
  4888. _this.lists.push({
  4889. id: taskData.id,
  4890. label: taskData.title,
  4891. time: tempTime,
  4892. notime: notime,
  4893. style: { background: color }
  4894. });
  4895. });
  4896. });
  4897. //
  4898. if (this.lists.length == 0 && this.filtrProjectId == 0) {
  4899. this.$Modal.warning({
  4900. title: this.$L("温馨提示"),
  4901. content: this.$L('任务列表为空,请先添加任务。'),
  4902. onOk: function onOk() {
  4903. _this.$emit('on-close');
  4904. }
  4905. });
  4906. }
  4907. },
  4908. updateTime: function updateTime(item) {
  4909. var original = this.getRawTime(item.id);
  4910. if (Math.abs(original.end - item.time.end) > 1000 || Math.abs(original.start - item.time.start) > 1000) {
  4911. //修改时间(变化超过1秒钟)
  4912. var backTime = $A.cloneData(original);
  4913. var newTime = $A.cloneData(item.time);
  4914. var findData = this.editData.find(function (_ref) {
  4915. var id = _ref.id;
  4916. return id == item.id;
  4917. });
  4918. if (findData) {
  4919. findData.newTime = newTime;
  4920. } else {
  4921. this.editData.push({
  4922. id: item.id,
  4923. label: item.label,
  4924. notime: item.notime,
  4925. backTime: backTime,
  4926. newTime: newTime
  4927. });
  4928. }
  4929. }
  4930. },
  4931. clickItem: function clickItem(item) {
  4932. this.taskDetail(item.id);
  4933. },
  4934. editSubmit: function editSubmit(save) {
  4935. var _this2 = this;
  4936. var triggerTask = [];
  4937. this.editData.forEach(function (item) {
  4938. if (save) {
  4939. _this2.editLoad++;
  4940. var timeStart = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.start / 1000));
  4941. var timeEnd = $A.formatDate('Y-m-d H:i', Math.round(item.newTime.end / 1000));
  4942. var ajaxData = {
  4943. act: 'plannedtime',
  4944. taskid: item.id,
  4945. content: timeStart + "," + timeEnd
  4946. };
  4947. $A.apiAjax({
  4948. url: 'project/task/edit',
  4949. method: 'post',
  4950. data: ajaxData,
  4951. error: function error() {
  4952. _this2.lists.some(function (task) {
  4953. if (task.id == item.id) {
  4954. _this2.$set(task, 'time', item.backTime);
  4955. return true;
  4956. }
  4957. });
  4958. },
  4959. success: function success(res) {
  4960. if (res.ret === 1) {
  4961. triggerTask.push({
  4962. status: 'await',
  4963. act: ajaxData.act,
  4964. taskid: ajaxData.taskid,
  4965. data: res.data
  4966. });
  4967. } else {
  4968. _this2.lists.some(function (task) {
  4969. if (task.id == item.id) {
  4970. _this2.$set(task, 'time', item.backTime);
  4971. return true;
  4972. }
  4973. });
  4974. }
  4975. },
  4976. afterComplete: function afterComplete() {
  4977. _this2.editLoad--;
  4978. if (_this2.editLoad <= 0) {
  4979. triggerTask.forEach(function (info) {
  4980. if (info.status == 'await') {
  4981. info.status = 'trigger';
  4982. $A.triggerTaskInfoListener(info.act, info.data);
  4983. $A.triggerTaskInfoChange(info.taskid);
  4984. }
  4985. });
  4986. }
  4987. }
  4988. });
  4989. } else {
  4990. _this2.lists.some(function (task) {
  4991. if (task.id == item.id) {
  4992. _this2.$set(task, 'time', item.backTime);
  4993. return true;
  4994. }
  4995. });
  4996. }
  4997. });
  4998. this.editData = [];
  4999. },
  5000. getRawTime: function getRawTime(taskId) {
  5001. var _this3 = this;
  5002. var times = null;
  5003. this.projectLabel.some(function (item) {
  5004. item.taskLists.some(function (taskData) {
  5005. if (taskData.id == taskId) {
  5006. times = _this3.getTimeObj(taskData);
  5007. return true;
  5008. }
  5009. });
  5010. if (times) {
  5011. return true;
  5012. }
  5013. });
  5014. return times;
  5015. },
  5016. getTimeObj: function getTimeObj(taskData) {
  5017. var start = taskData.startdate || taskData.indate;
  5018. var end = taskData.enddate || taskData.indate + 86400;
  5019. if (end == start) {
  5020. end = Math.round(new Date($A.formatDate('Y-m-d 23:59:59', end)).getTime() / 1000);
  5021. }
  5022. end = Math.max(end, start + 60);
  5023. start *= 1000;
  5024. end *= 1000;
  5025. return { start: start, end: end };
  5026. },
  5027. tapProject: function tapProject(e) {
  5028. this.filtrProjectId = $A.runNum(e);
  5029. this.initData();
  5030. }
  5031. }
  5032. });
  5033. /***/ }),
  5034. /***/ 793:
  5035. /***/ (function(module, exports, __webpack_require__) {
  5036. var disposed = false
  5037. function injectStyle (ssrContext) {
  5038. if (disposed) return
  5039. __webpack_require__(794)
  5040. }
  5041. var normalizeComponent = __webpack_require__(2)
  5042. /* script */
  5043. var __vue_script__ = __webpack_require__(796)
  5044. /* template */
  5045. var __vue_template__ = __webpack_require__(797)
  5046. /* template functional */
  5047. var __vue_template_functional__ = false
  5048. /* styles */
  5049. var __vue_styles__ = injectStyle
  5050. /* scopeId */
  5051. var __vue_scopeId__ = "data-v-ab75349c"
  5052. /* moduleIdentifier (server only) */
  5053. var __vue_module_identifier__ = null
  5054. var Component = normalizeComponent(
  5055. __vue_script__,
  5056. __vue_template__,
  5057. __vue_template_functional__,
  5058. __vue_styles__,
  5059. __vue_scopeId__,
  5060. __vue_module_identifier__
  5061. )
  5062. Component.options.__file = "resources/assets/js/main/components/gantt/index.vue"
  5063. /* hot reload */
  5064. if (false) {(function () {
  5065. var hotAPI = require("vue-hot-reload-api")
  5066. hotAPI.install(require("vue"), false)
  5067. if (!hotAPI.compatible) return
  5068. module.hot.accept()
  5069. if (!module.hot.data) {
  5070. hotAPI.createRecord("data-v-ab75349c", Component.options)
  5071. } else {
  5072. hotAPI.reload("data-v-ab75349c", Component.options)
  5073. }
  5074. module.hot.dispose(function (data) {
  5075. disposed = true
  5076. })
  5077. })()}
  5078. module.exports = Component.exports
  5079. /***/ }),
  5080. /***/ 794:
  5081. /***/ (function(module, exports, __webpack_require__) {
  5082. // style-loader: Adds some css to the DOM by adding a <style> tag
  5083. // load the styles
  5084. var content = __webpack_require__(795);
  5085. if(typeof content === 'string') content = [[module.i, content, '']];
  5086. if(content.locals) module.exports = content.locals;
  5087. // add the styles to the DOM
  5088. var update = __webpack_require__(1)("1f2ff96e", content, false, {});
  5089. // Hot Module Replacement
  5090. if(false) {
  5091. // When the styles change, update the <style> tags
  5092. if(!content.locals) {
  5093. 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() {
  5094. 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");
  5095. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5096. update(newContent);
  5097. });
  5098. }
  5099. // When the module is disposed, remove the <style> tags
  5100. module.hot.dispose(function() { update(); });
  5101. }
  5102. /***/ }),
  5103. /***/ 795:
  5104. /***/ (function(module, exports, __webpack_require__) {
  5105. exports = module.exports = __webpack_require__(0)(false);
  5106. // imports
  5107. // module
  5108. 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", ""]);
  5109. // exports
  5110. /***/ }),
  5111. /***/ 796:
  5112. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5113. "use strict";
  5114. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5115. 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; };
  5116. //
  5117. //
  5118. //
  5119. //
  5120. //
  5121. //
  5122. //
  5123. //
  5124. //
  5125. //
  5126. //
  5127. //
  5128. //
  5129. //
  5130. //
  5131. //
  5132. //
  5133. //
  5134. //
  5135. //
  5136. //
  5137. //
  5138. //
  5139. //
  5140. //
  5141. //
  5142. //
  5143. //
  5144. //
  5145. //
  5146. //
  5147. //
  5148. //
  5149. //
  5150. //
  5151. //
  5152. //
  5153. //
  5154. //
  5155. //
  5156. //
  5157. //
  5158. //
  5159. //
  5160. //
  5161. //
  5162. //
  5163. //
  5164. //
  5165. //
  5166. /* harmony default export */ __webpack_exports__["default"] = ({
  5167. name: 'GanttView',
  5168. props: {
  5169. lists: {
  5170. type: Array
  5171. },
  5172. menuWidth: {
  5173. type: Number,
  5174. default: 300
  5175. },
  5176. itemWidth: {
  5177. type: Number,
  5178. default: 100
  5179. }
  5180. },
  5181. data: function data() {
  5182. return {
  5183. mouseType: '',
  5184. mouseWidth: 0,
  5185. mouseScaleWidth: 0,
  5186. dateWidth: 100,
  5187. ganttWidth: 0,
  5188. mouseItem: null,
  5189. mouseBak: {},
  5190. dateMove: null
  5191. };
  5192. },
  5193. mounted: function mounted() {
  5194. this.dateWidth = this.itemWidth;
  5195. this.$refs.ganttRight.addEventListener('mousewheel', this.handleScroll, false);
  5196. document.addEventListener('mousemove', this.itemMouseMove);
  5197. document.addEventListener('mouseup', this.itemMouseUp);
  5198. window.addEventListener("resize", this.handleResize, false);
  5199. this.handleResize();
  5200. },
  5201. beforeDestroy: function beforeDestroy() {
  5202. this.$refs.ganttRight.removeEventListener('mousewheel', this.handleScroll, false);
  5203. document.removeEventListener('mousemove', this.itemMouseMove);
  5204. document.removeEventListener('mouseup', this.itemMouseUp);
  5205. window.removeEventListener("resize", this.handleResize, false);
  5206. },
  5207. watch: {
  5208. itemWidth: function itemWidth(val) {
  5209. this.dateWidth = val;
  5210. }
  5211. },
  5212. computed: {
  5213. monthNum: function monthNum() {
  5214. var ganttWidth = this.ganttWidth,
  5215. dateWidth = this.dateWidth;
  5216. return Math.floor(ganttWidth / dateWidth / 30) + 2;
  5217. },
  5218. monthStyle: function monthStyle() {
  5219. var mouseWidth = this.mouseWidth,
  5220. dateWidth = this.dateWidth;
  5221. return function (index) {
  5222. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5223. var date = new Date();
  5224. //今天00:00:00
  5225. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5226. //当前时间
  5227. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5228. //当月最后一天
  5229. var lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1, 0, 23, 59, 59);
  5230. //相差天数
  5231. var diffDay = (lastDay - curDay) / 1000 / 60 / 60 / 24;
  5232. //
  5233. var width = dateWidth * diffDay;
  5234. if (index > 0) {
  5235. lastDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5236. width = lastDay.getDate() * dateWidth;
  5237. }
  5238. return {
  5239. width: width + 'px'
  5240. };
  5241. };
  5242. },
  5243. monthFormat: function monthFormat() {
  5244. var mouseWidth = this.mouseWidth,
  5245. dateWidth = this.dateWidth;
  5246. return function (index) {
  5247. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5248. var date = new Date();
  5249. //开始位置时间(今天00:00:00)
  5250. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5251. //当前时间
  5252. var curDay = new Date(nowDay.getTime() + mouseDay * 86400000);
  5253. //
  5254. if (index > 0) {
  5255. curDay = new Date(curDay.getFullYear(), curDay.getMonth() + 1 + index, 0);
  5256. }
  5257. return $A.formatDate("Y-m", curDay);
  5258. };
  5259. },
  5260. dateNum: function dateNum() {
  5261. var ganttWidth = this.ganttWidth,
  5262. dateWidth = this.dateWidth;
  5263. return Math.floor(ganttWidth / dateWidth) + 2;
  5264. },
  5265. dateStyle: function dateStyle() {
  5266. var mouseWidth = this.mouseWidth,
  5267. dateWidth = this.dateWidth;
  5268. return function (index) {
  5269. var style = {};
  5270. //
  5271. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5272. var mouseData = Math.floor(mouseDay) + index;
  5273. if (mouseDay == Math.floor(mouseDay)) {
  5274. mouseData--;
  5275. }
  5276. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5277. var date = new Date(new Date().getTime() + j * 86400000);
  5278. if ([0, 6].indexOf(date.getDay()) !== -1) {
  5279. style.backgroundColor = '#f9fafb';
  5280. }
  5281. //
  5282. var width = dateWidth;
  5283. if (index == 0) {
  5284. width = Math.abs((mouseWidth % width - width) % width);
  5285. }
  5286. style.width = width + 'px';
  5287. return style;
  5288. };
  5289. },
  5290. dateFormat: function dateFormat() {
  5291. var mouseWidth = this.mouseWidth,
  5292. dateWidth = this.dateWidth;
  5293. return function (index, type) {
  5294. var mouseDay = mouseWidth == 0 ? 0 : mouseWidth / dateWidth;
  5295. var mouseData = Math.floor(mouseDay) + index;
  5296. if (mouseDay == Math.floor(mouseDay)) {
  5297. mouseData--;
  5298. }
  5299. var j = mouseWidth == 0 ? index - 1 : mouseData;
  5300. var date = new Date(new Date().getTime() + j * 86400000);
  5301. if (type == 'day') {
  5302. return date.getDate();
  5303. } else if (type == 'wook') {
  5304. return this.$L('\u661F\u671F' + '日一二三四五六'.charAt(date.getDay()));
  5305. } else {
  5306. return date;
  5307. }
  5308. };
  5309. },
  5310. itemStyle: function itemStyle() {
  5311. var mouseWidth = this.mouseWidth,
  5312. dateWidth = this.dateWidth,
  5313. ganttWidth = this.ganttWidth;
  5314. return function (item) {
  5315. var _item$time = item.time,
  5316. start = _item$time.start,
  5317. end = _item$time.end;
  5318. var style = item.style,
  5319. moveX = item.moveX,
  5320. moveW = item.moveW;
  5321. var date = new Date();
  5322. //开始位置时间戳(今天00:00:00时间戳)
  5323. var nowTime = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0).getTime();
  5324. //距离开始位置多少天
  5325. var diffStartDay = (start - nowTime) / 1000 / 60 / 60 / 24;
  5326. var diffEndDay = (end - nowTime) / 1000 / 60 / 60 / 24;
  5327. //
  5328. var left = dateWidth * diffStartDay + mouseWidth * -1;
  5329. var width = dateWidth * (diffEndDay - diffStartDay);
  5330. if (typeof moveX === "number") {
  5331. left += moveX;
  5332. }
  5333. if (typeof moveW === "number") {
  5334. width += moveW;
  5335. }
  5336. //
  5337. var customStyle = {
  5338. left: Math.min(Math.max(left, width * -1.2), ganttWidth * 1.2).toFixed(2) + 'px',
  5339. width: width.toFixed(2) + 'px'
  5340. };
  5341. if (left < 0 && Math.abs(left) < width) {
  5342. customStyle.paddingLeft = Math.abs(left).toFixed(2) + 'px';
  5343. }
  5344. if (left + width > ganttWidth && left < ganttWidth) {
  5345. customStyle.paddingRight = Math.abs(left + width - ganttWidth).toFixed(2) + 'px';
  5346. }
  5347. if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) === "object") {
  5348. return Object.assign(customStyle, style);
  5349. }
  5350. return customStyle;
  5351. };
  5352. }
  5353. },
  5354. methods: {
  5355. itemScrollListener: function itemScrollListener(e) {
  5356. if (this.mouseType == 'timeline') {
  5357. return;
  5358. }
  5359. this.$refs.ganttTimeline.scrollTop = e.target.scrollTop;
  5360. },
  5361. timelineScrollListener: function timelineScrollListener(e) {
  5362. if (this.mouseType == 'item') {
  5363. return;
  5364. }
  5365. this.$refs.ganttItem.scrollTop = e.target.scrollTop;
  5366. },
  5367. handleScroll: function handleScroll(e) {
  5368. e.preventDefault();
  5369. if (e.ctrlKey) {
  5370. //缩放
  5371. this.dateWidth = Math.min(600, Math.max(24, this.dateWidth - Math.floor(e.deltaY)));
  5372. this.mouseWidth = this.ganttWidth / 2 * ((this.dateWidth - 100) / 100) + this.dateWidth / 100 * this.mouseScaleWidth;
  5373. return;
  5374. }
  5375. if (e.deltaY != 0) {
  5376. var ganttTimeline = this.$refs.ganttTimeline;
  5377. var newTop = ganttTimeline.scrollTop + e.deltaY;
  5378. if (newTop < 0) {
  5379. newTop = 0;
  5380. } else if (newTop > ganttTimeline.scrollHeight - ganttTimeline.clientHeight) {
  5381. newTop = ganttTimeline.scrollHeight - ganttTimeline.clientHeight;
  5382. }
  5383. if (ganttTimeline.scrollTop != newTop) {
  5384. this.mouseType = 'timeline';
  5385. ganttTimeline.scrollTop = newTop;
  5386. }
  5387. }
  5388. if (e.deltaX != 0) {
  5389. this.mouseWidth += e.deltaX;
  5390. this.mouseScaleWidth += e.deltaX * (100 / this.dateWidth);
  5391. }
  5392. },
  5393. handleResize: function handleResize() {
  5394. this.ganttWidth = this.$refs.ganttTimeline.clientWidth;
  5395. },
  5396. dateMouseDown: function dateMouseDown(e) {
  5397. e.preventDefault();
  5398. this.mouseItem = null;
  5399. this.dateMove = {
  5400. clientX: e.clientX
  5401. };
  5402. },
  5403. itemMouseDown: function itemMouseDown(e, item) {
  5404. e.preventDefault();
  5405. var type = 'moveX';
  5406. if (e.target.className == 'timeline-resizer') {
  5407. type = 'moveW';
  5408. }
  5409. if (typeof item[type] !== "number") {
  5410. this.$set(item, type, 0);
  5411. }
  5412. this.mouseBak = {
  5413. type: type,
  5414. clientX: e.clientX,
  5415. value: item[type]
  5416. };
  5417. this.mouseItem = item;
  5418. this.dateMove = null;
  5419. },
  5420. itemMouseMove: function itemMouseMove(e) {
  5421. if (this.mouseItem != null) {
  5422. e.preventDefault();
  5423. var diff = e.clientX - this.mouseBak.clientX;
  5424. this.$set(this.mouseItem, this.mouseBak.type, this.mouseBak.value + diff);
  5425. } else if (this.dateMove != null) {
  5426. e.preventDefault();
  5427. var moveX = (this.dateMove.clientX - e.clientX) * 5;
  5428. this.dateMove.clientX = e.clientX;
  5429. this.mouseWidth += moveX;
  5430. this.mouseScaleWidth += moveX * (100 / this.dateWidth);
  5431. }
  5432. },
  5433. itemMouseUp: function itemMouseUp(e) {
  5434. if (this.mouseItem != null) {
  5435. var _mouseItem$time = this.mouseItem.time,
  5436. start = _mouseItem$time.start,
  5437. end = _mouseItem$time.end;
  5438. var isM = false;
  5439. //一个宽度的时间
  5440. var oneWidthTime = 86400000 / this.dateWidth;
  5441. //修改起止时间
  5442. if (typeof this.mouseItem.moveX === "number" && this.mouseItem.moveX != 0) {
  5443. var moveTime = this.mouseItem.moveX * oneWidthTime;
  5444. this.$set(this.mouseItem.time, 'start', start + moveTime);
  5445. this.$set(this.mouseItem.time, 'end', end + moveTime);
  5446. this.$set(this.mouseItem, 'moveX', 0);
  5447. isM = true;
  5448. }
  5449. //修改结束时间
  5450. if (typeof this.mouseItem.moveW === "number" && this.mouseItem.moveW != 0) {
  5451. var _moveTime = this.mouseItem.moveW * oneWidthTime;
  5452. this.$set(this.mouseItem.time, 'end', end + _moveTime);
  5453. this.$set(this.mouseItem, 'moveW', 0);
  5454. isM = true;
  5455. }
  5456. //
  5457. if (isM) {
  5458. this.$emit("on-change", this.mouseItem);
  5459. } else if (e.target.className == 'timeline-title') {
  5460. this.clickItem(this.mouseItem);
  5461. }
  5462. this.mouseItem = null;
  5463. } else if (this.dateMove != null) {
  5464. this.dateMove = null;
  5465. }
  5466. },
  5467. scrollPosition: function scrollPosition(pos) {
  5468. var date = new Date();
  5469. //今天00:00:00
  5470. var nowDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
  5471. //一个宽度的时间
  5472. var oneWidthTime = 86400000 / this.dateWidth;
  5473. //
  5474. var moveWidth = (this.lists[pos].time.start - nowDay) / oneWidthTime - this.dateWidth - this.mouseWidth;
  5475. this.mouseWidth += moveWidth;
  5476. this.mouseScaleWidth += moveWidth * (100 / this.dateWidth);
  5477. },
  5478. clickItem: function clickItem(item) {
  5479. this.$emit("on-click", item);
  5480. }
  5481. }
  5482. });
  5483. /***/ }),
  5484. /***/ 797:
  5485. /***/ (function(module, exports, __webpack_require__) {
  5486. var render = function() {
  5487. var _vm = this
  5488. var _h = _vm.$createElement
  5489. var _c = _vm._self._c || _h
  5490. return _c("div", { staticClass: "wook-gantt" }, [
  5491. _c(
  5492. "div",
  5493. { staticClass: "gantt-left", style: { width: _vm.menuWidth + "px" } },
  5494. [
  5495. _c("div", { staticClass: "gantt-title" }, [
  5496. _c("div", { staticClass: "gantt-title-text" }, [
  5497. _vm._v(_vm._s(_vm.$L("任务名称")))
  5498. ])
  5499. ]),
  5500. _vm._v(" "),
  5501. _c(
  5502. "ul",
  5503. {
  5504. ref: "ganttItem",
  5505. staticClass: "gantt-item",
  5506. on: {
  5507. scroll: _vm.itemScrollListener,
  5508. mouseenter: function($event) {
  5509. _vm.mouseType = "item"
  5510. }
  5511. }
  5512. },
  5513. _vm._l(_vm.lists, function(item, key) {
  5514. return _c(
  5515. "li",
  5516. { key: key },
  5517. [
  5518. _c(
  5519. "div",
  5520. {
  5521. staticClass: "item-title",
  5522. on: {
  5523. click: function($event) {
  5524. return _vm.clickItem(item)
  5525. }
  5526. }
  5527. },
  5528. [_vm._v(_vm._s(item.label))]
  5529. ),
  5530. _vm._v(" "),
  5531. _c("Icon", {
  5532. staticClass: "item-icon",
  5533. attrs: { type: "ios-locate-outline" },
  5534. on: {
  5535. click: function($event) {
  5536. return _vm.scrollPosition(key)
  5537. }
  5538. }
  5539. })
  5540. ],
  5541. 1
  5542. )
  5543. }),
  5544. 0
  5545. )
  5546. ]
  5547. ),
  5548. _vm._v(" "),
  5549. _c("div", { ref: "ganttRight", staticClass: "gantt-right" }, [
  5550. _c("div", { staticClass: "gantt-chart" }, [
  5551. _c(
  5552. "ul",
  5553. { staticClass: "gantt-month" },
  5554. _vm._l(_vm.monthNum, function(item, key) {
  5555. return _c("li", { key: key, style: _vm.monthStyle(key) }, [
  5556. _c("div", { staticClass: "month-format" }, [
  5557. _vm._v(_vm._s(_vm.monthFormat(key)))
  5558. ])
  5559. ])
  5560. }),
  5561. 0
  5562. ),
  5563. _vm._v(" "),
  5564. _c(
  5565. "ul",
  5566. { staticClass: "gantt-date", on: { mousedown: _vm.dateMouseDown } },
  5567. _vm._l(_vm.dateNum, function(item, key) {
  5568. return _c("li", { key: key, style: _vm.dateStyle(key) }, [
  5569. _c("div", { staticClass: "date-format" }, [
  5570. _c("div", { staticClass: "format-day" }, [
  5571. _vm._v(_vm._s(_vm.dateFormat(key, "day")))
  5572. ]),
  5573. _vm._v(" "),
  5574. _vm.dateWidth > 46
  5575. ? _c("div", { staticClass: "format-wook" }, [
  5576. _vm._v(_vm._s(_vm.dateFormat(key, "wook")))
  5577. ])
  5578. : _vm._e()
  5579. ])
  5580. ])
  5581. }),
  5582. 0
  5583. ),
  5584. _vm._v(" "),
  5585. _c(
  5586. "ul",
  5587. {
  5588. ref: "ganttTimeline",
  5589. staticClass: "gantt-timeline",
  5590. on: {
  5591. scroll: _vm.timelineScrollListener,
  5592. mouseenter: function($event) {
  5593. _vm.mouseType = "timeline"
  5594. }
  5595. }
  5596. },
  5597. _vm._l(_vm.lists, function(item, key) {
  5598. return _c("li", { key: key }, [
  5599. _c(
  5600. "div",
  5601. {
  5602. staticClass: "timeline-item",
  5603. style: _vm.itemStyle(item),
  5604. on: {
  5605. mousedown: function($event) {
  5606. return _vm.itemMouseDown($event, item)
  5607. }
  5608. }
  5609. },
  5610. [
  5611. _c("div", { staticClass: "timeline-title" }, [
  5612. _vm._v(_vm._s(item.label))
  5613. ]),
  5614. _vm._v(" "),
  5615. _c("div", { staticClass: "timeline-resizer" })
  5616. ]
  5617. )
  5618. ])
  5619. }),
  5620. 0
  5621. )
  5622. ])
  5623. ])
  5624. ])
  5625. }
  5626. var staticRenderFns = []
  5627. render._withStripped = true
  5628. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5629. if (false) {
  5630. module.hot.accept()
  5631. if (module.hot.data) {
  5632. require("vue-hot-reload-api") .rerender("data-v-ab75349c", module.exports)
  5633. }
  5634. }
  5635. /***/ }),
  5636. /***/ 798:
  5637. /***/ (function(module, exports, __webpack_require__) {
  5638. var render = function() {
  5639. var _vm = this
  5640. var _h = _vm.$createElement
  5641. var _c = _vm._self._c || _h
  5642. return _c(
  5643. "div",
  5644. { staticClass: "project-gstc-gantt" },
  5645. [
  5646. _c("GanttView", {
  5647. attrs: {
  5648. lists: _vm.lists,
  5649. menuWidth: _vm.windowMax768 ? 180 : 260,
  5650. itemWidth: 80
  5651. },
  5652. on: { "on-change": _vm.updateTime, "on-click": _vm.clickItem }
  5653. }),
  5654. _vm._v(" "),
  5655. _c(
  5656. "Dropdown",
  5657. {
  5658. staticClass: "project-gstc-dropdown-filtr",
  5659. style: _vm.windowMax768 ? { left: "142px" } : {},
  5660. on: { "on-click": _vm.tapProject }
  5661. },
  5662. [
  5663. _c("Icon", {
  5664. staticClass: "project-gstc-dropdown-icon",
  5665. class: { filtr: _vm.filtrProjectId > 0 },
  5666. attrs: { type: "md-funnel" }
  5667. }),
  5668. _vm._v(" "),
  5669. _c(
  5670. "DropdownMenu",
  5671. { attrs: { slot: "list" }, slot: "list" },
  5672. [
  5673. _c(
  5674. "DropdownItem",
  5675. {
  5676. class: { "dropdown-active": _vm.filtrProjectId == 0 },
  5677. attrs: { name: 0 }
  5678. },
  5679. [_vm._v(_vm._s(_vm.$L("全部")))]
  5680. ),
  5681. _vm._v(" "),
  5682. _vm._l(_vm.projectLabel, function(item, index) {
  5683. return _c(
  5684. "DropdownItem",
  5685. {
  5686. key: index,
  5687. class: { "dropdown-active": _vm.filtrProjectId == item.id },
  5688. attrs: { name: item.id }
  5689. },
  5690. [
  5691. _vm._v(
  5692. _vm._s(item.title) +
  5693. " (" +
  5694. _vm._s(item.taskLists.length) +
  5695. ")"
  5696. )
  5697. ]
  5698. )
  5699. })
  5700. ],
  5701. 2
  5702. )
  5703. ],
  5704. 1
  5705. ),
  5706. _vm._v(" "),
  5707. _c(
  5708. "div",
  5709. {
  5710. staticClass: "project-gstc-close",
  5711. on: {
  5712. click: function($event) {
  5713. return _vm.$emit("on-close")
  5714. }
  5715. }
  5716. },
  5717. [_c("Icon", { attrs: { type: "md-close" } })],
  5718. 1
  5719. ),
  5720. _vm._v(" "),
  5721. _c(
  5722. "div",
  5723. {
  5724. staticClass: "project-gstc-edit",
  5725. class: { info: _vm.editShowInfo, visible: _vm.editData.length > 0 }
  5726. },
  5727. [
  5728. _c(
  5729. "div",
  5730. { staticClass: "project-gstc-edit-info" },
  5731. [
  5732. _c("Table", {
  5733. staticClass: "tableFill",
  5734. attrs: {
  5735. size: "small",
  5736. "max-height": "600",
  5737. columns: _vm.editColumns,
  5738. data: _vm.editData
  5739. }
  5740. }),
  5741. _vm._v(" "),
  5742. _c(
  5743. "div",
  5744. { staticClass: "project-gstc-edit-btns" },
  5745. [
  5746. _c(
  5747. "Button",
  5748. {
  5749. attrs: {
  5750. loading: _vm.editLoad > 0,
  5751. size: "small",
  5752. type: "text"
  5753. },
  5754. on: {
  5755. click: function($event) {
  5756. return _vm.editSubmit(false)
  5757. }
  5758. }
  5759. },
  5760. [_vm._v(_vm._s(_vm.$L("取消")))]
  5761. ),
  5762. _vm._v(" "),
  5763. _c(
  5764. "Button",
  5765. {
  5766. attrs: {
  5767. loading: _vm.editLoad > 0,
  5768. size: "small",
  5769. type: "primary"
  5770. },
  5771. on: {
  5772. click: function($event) {
  5773. return _vm.editSubmit(true)
  5774. }
  5775. }
  5776. },
  5777. [_vm._v(_vm._s(_vm.$L("保存")))]
  5778. ),
  5779. _vm._v(" "),
  5780. _c("Icon", {
  5781. staticClass: "zoom",
  5782. attrs: { type: "md-arrow-dropright" },
  5783. on: {
  5784. click: function($event) {
  5785. _vm.editShowInfo = false
  5786. }
  5787. }
  5788. })
  5789. ],
  5790. 1
  5791. )
  5792. ],
  5793. 1
  5794. ),
  5795. _vm._v(" "),
  5796. _c(
  5797. "div",
  5798. { staticClass: "project-gstc-edit-small" },
  5799. [
  5800. _c(
  5801. "div",
  5802. {
  5803. staticClass: "project-gstc-edit-text",
  5804. on: {
  5805. click: function($event) {
  5806. _vm.editShowInfo = true
  5807. }
  5808. }
  5809. },
  5810. [
  5811. _vm._v(
  5812. _vm._s(_vm.$L("未保存计划时间")) +
  5813. ": " +
  5814. _vm._s(_vm.editData.length)
  5815. )
  5816. ]
  5817. ),
  5818. _vm._v(" "),
  5819. _c(
  5820. "Button",
  5821. {
  5822. attrs: {
  5823. loading: _vm.editLoad > 0,
  5824. size: "small",
  5825. type: "text"
  5826. },
  5827. on: {
  5828. click: function($event) {
  5829. return _vm.editSubmit(false)
  5830. }
  5831. }
  5832. },
  5833. [_vm._v(_vm._s(_vm.$L("取消")))]
  5834. ),
  5835. _vm._v(" "),
  5836. _c(
  5837. "Button",
  5838. {
  5839. attrs: {
  5840. loading: _vm.editLoad > 0,
  5841. size: "small",
  5842. type: "primary"
  5843. },
  5844. on: {
  5845. click: function($event) {
  5846. return _vm.editSubmit(true)
  5847. }
  5848. }
  5849. },
  5850. [_vm._v(_vm._s(_vm.$L("保存")))]
  5851. )
  5852. ],
  5853. 1
  5854. )
  5855. ]
  5856. )
  5857. ],
  5858. 1
  5859. )
  5860. }
  5861. var staticRenderFns = []
  5862. render._withStripped = true
  5863. module.exports = { render: render, staticRenderFns: staticRenderFns }
  5864. if (false) {
  5865. module.hot.accept()
  5866. if (module.hot.data) {
  5867. require("vue-hot-reload-api") .rerender("data-v-91cfb088", module.exports)
  5868. }
  5869. }
  5870. /***/ }),
  5871. /***/ 799:
  5872. /***/ (function(module, exports, __webpack_require__) {
  5873. var disposed = false
  5874. function injectStyle (ssrContext) {
  5875. if (disposed) return
  5876. __webpack_require__(800)
  5877. }
  5878. var normalizeComponent = __webpack_require__(2)
  5879. /* script */
  5880. var __vue_script__ = __webpack_require__(802)
  5881. /* template */
  5882. var __vue_template__ = __webpack_require__(803)
  5883. /* template functional */
  5884. var __vue_template_functional__ = false
  5885. /* styles */
  5886. var __vue_styles__ = injectStyle
  5887. /* scopeId */
  5888. var __vue_scopeId__ = "data-v-6f0e28b5"
  5889. /* moduleIdentifier (server only) */
  5890. var __vue_module_identifier__ = null
  5891. var Component = normalizeComponent(
  5892. __vue_script__,
  5893. __vue_template__,
  5894. __vue_template_functional__,
  5895. __vue_styles__,
  5896. __vue_scopeId__,
  5897. __vue_module_identifier__
  5898. )
  5899. Component.options.__file = "resources/assets/js/main/components/project/setting.vue"
  5900. /* hot reload */
  5901. if (false) {(function () {
  5902. var hotAPI = require("vue-hot-reload-api")
  5903. hotAPI.install(require("vue"), false)
  5904. if (!hotAPI.compatible) return
  5905. module.hot.accept()
  5906. if (!module.hot.data) {
  5907. hotAPI.createRecord("data-v-6f0e28b5", Component.options)
  5908. } else {
  5909. hotAPI.reload("data-v-6f0e28b5", Component.options)
  5910. }
  5911. module.hot.dispose(function (data) {
  5912. disposed = true
  5913. })
  5914. })()}
  5915. module.exports = Component.exports
  5916. /***/ }),
  5917. /***/ 800:
  5918. /***/ (function(module, exports, __webpack_require__) {
  5919. // style-loader: Adds some css to the DOM by adding a <style> tag
  5920. // load the styles
  5921. var content = __webpack_require__(801);
  5922. if(typeof content === 'string') content = [[module.i, content, '']];
  5923. if(content.locals) module.exports = content.locals;
  5924. // add the styles to the DOM
  5925. var update = __webpack_require__(1)("6310644a", content, false, {});
  5926. // Hot Module Replacement
  5927. if(false) {
  5928. // When the styles change, update the <style> tags
  5929. if(!content.locals) {
  5930. 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() {
  5931. 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");
  5932. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  5933. update(newContent);
  5934. });
  5935. }
  5936. // When the module is disposed, remove the <style> tags
  5937. module.hot.dispose(function() { update(); });
  5938. }
  5939. /***/ }),
  5940. /***/ 801:
  5941. /***/ (function(module, exports, __webpack_require__) {
  5942. exports = module.exports = __webpack_require__(0)(false);
  5943. // imports
  5944. // module
  5945. 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", ""]);
  5946. // exports
  5947. /***/ }),
  5948. /***/ 802:
  5949. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5950. "use strict";
  5951. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5952. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  5953. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  5954. //
  5955. //
  5956. //
  5957. //
  5958. //
  5959. //
  5960. //
  5961. //
  5962. //
  5963. //
  5964. //
  5965. //
  5966. //
  5967. //
  5968. //
  5969. //
  5970. //
  5971. //
  5972. //
  5973. //
  5974. //
  5975. //
  5976. //
  5977. //
  5978. //
  5979. //
  5980. //
  5981. //
  5982. //
  5983. //
  5984. //
  5985. //
  5986. //
  5987. //
  5988. //
  5989. //
  5990. //
  5991. //
  5992. //
  5993. //
  5994. //
  5995. //
  5996. //
  5997. //
  5998. //
  5999. //
  6000. //
  6001. //
  6002. //
  6003. //
  6004. //
  6005. //
  6006. //
  6007. //
  6008. //
  6009. //
  6010. //
  6011. //
  6012. //
  6013. //
  6014. //
  6015. //
  6016. //
  6017. //
  6018. //
  6019. //
  6020. //
  6021. //
  6022. //
  6023. //
  6024. //
  6025. //
  6026. //
  6027. //
  6028. //
  6029. //
  6030. //
  6031. //
  6032. //
  6033. //
  6034. //
  6035. //
  6036. //
  6037. //
  6038. //
  6039. //
  6040. //
  6041. //
  6042. //
  6043. //
  6044. //
  6045. //
  6046. //
  6047. //
  6048. //
  6049. //
  6050. //
  6051. //
  6052. //
  6053. //
  6054. /* harmony default export */ __webpack_exports__["default"] = ({
  6055. name: 'ProjectSetting',
  6056. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  6057. props: {
  6058. projectid: {
  6059. default: 0
  6060. },
  6061. canload: {
  6062. type: Boolean,
  6063. default: true
  6064. }
  6065. },
  6066. data: function data() {
  6067. return {
  6068. loadYet: false,
  6069. loadIng: 0,
  6070. formSystem: {}
  6071. };
  6072. },
  6073. mounted: function mounted() {
  6074. if (this.canload) {
  6075. this.loadYet = true;
  6076. this.getSetting();
  6077. }
  6078. },
  6079. watch: {
  6080. projectid: function projectid() {
  6081. if (this.loadYet) {
  6082. this.getSetting();
  6083. }
  6084. },
  6085. canload: function canload(val) {
  6086. if (val && !this.loadYet) {
  6087. this.loadYet = true;
  6088. this.getSetting();
  6089. }
  6090. }
  6091. },
  6092. methods: {
  6093. getSetting: function getSetting(save) {
  6094. var _this = this;
  6095. this.loadIng++;
  6096. $A.apiAjax({
  6097. url: 'project/setting?act=' + (save ? 'save' : 'get'),
  6098. data: Object.assign(this.formSystem, {
  6099. projectid: this.projectid
  6100. }),
  6101. complete: function complete() {
  6102. _this.loadIng--;
  6103. },
  6104. success: function success(res) {
  6105. if (res.ret === 1) {
  6106. _this.formSystem = res.data;
  6107. _this.formSystem__reset = $A.cloneData(_this.formSystem);
  6108. if (save) {
  6109. _this.$Message.success(_this.$L('修改成功'));
  6110. _this.$emit('on-change', res.data);
  6111. }
  6112. } else {
  6113. if (save) {
  6114. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  6115. }
  6116. }
  6117. }
  6118. });
  6119. },
  6120. handleSubmit: function handleSubmit(name) {
  6121. var _this2 = this;
  6122. this.$refs[name].validate(function (valid) {
  6123. if (valid) {
  6124. switch (name) {
  6125. case "formSystem":
  6126. {
  6127. _this2.getSetting(true);
  6128. break;
  6129. }
  6130. }
  6131. }
  6132. });
  6133. },
  6134. handleReset: function handleReset(name) {
  6135. if (typeof this[name + '__reset'] !== "undefined") {
  6136. this[name] = $A.cloneData(this[name + '__reset']);
  6137. return;
  6138. }
  6139. this.$refs[name].resetFields();
  6140. }
  6141. }
  6142. });
  6143. /***/ }),
  6144. /***/ 803:
  6145. /***/ (function(module, exports, __webpack_require__) {
  6146. var render = function() {
  6147. var _vm = this
  6148. var _h = _vm.$createElement
  6149. var _c = _vm._self._c || _h
  6150. return _c("drawer-tabs-container", [
  6151. _c(
  6152. "div",
  6153. { staticClass: "project-setting" },
  6154. [
  6155. _c(
  6156. "Form",
  6157. {
  6158. ref: "formSystem",
  6159. attrs: { model: _vm.formSystem, "label-width": 110 },
  6160. nativeOn: {
  6161. submit: function($event) {
  6162. $event.preventDefault()
  6163. }
  6164. }
  6165. },
  6166. [
  6167. _c("div", { staticClass: "project-setting-title" }, [
  6168. _vm._v(_vm._s(_vm.$L("项目信息")) + ":")
  6169. ]),
  6170. _vm._v(" "),
  6171. _c(
  6172. "FormItem",
  6173. { attrs: { label: _vm.$L("项目简介") } },
  6174. [
  6175. _c("Input", {
  6176. staticStyle: { "max-width": "450px" },
  6177. attrs: {
  6178. type: "textarea",
  6179. autosize: { minRows: 3, maxRows: 20 }
  6180. },
  6181. model: {
  6182. value: _vm.formSystem.project_desc,
  6183. callback: function($$v) {
  6184. _vm.$set(_vm.formSystem, "project_desc", $$v)
  6185. },
  6186. expression: "formSystem.project_desc"
  6187. }
  6188. })
  6189. ],
  6190. 1
  6191. ),
  6192. _vm._v(" "),
  6193. _c("div", { staticClass: "project-setting-title" }, [
  6194. _vm._v(_vm._s(_vm.$L("项目权限")) + ":")
  6195. ]),
  6196. _vm._v(" "),
  6197. _c(
  6198. "FormItem",
  6199. { attrs: { prop: "project_role_export" } },
  6200. [
  6201. _c(
  6202. "div",
  6203. { attrs: { slot: "label" }, slot: "label" },
  6204. [
  6205. _c(
  6206. "Tooltip",
  6207. {
  6208. attrs: {
  6209. content: _vm.$L("任务列表导出Excel"),
  6210. transfer: ""
  6211. }
  6212. },
  6213. [_vm._v(_vm._s(_vm.$L("导出列表")))]
  6214. )
  6215. ],
  6216. 1
  6217. ),
  6218. _vm._v(" "),
  6219. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6220. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6221. ]),
  6222. _vm._v(" "),
  6223. _c(
  6224. "CheckboxGroup",
  6225. {
  6226. staticClass: "project-setting-group",
  6227. model: {
  6228. value: _vm.formSystem.project_role_export,
  6229. callback: function($$v) {
  6230. _vm.$set(_vm.formSystem, "project_role_export", $$v)
  6231. },
  6232. expression: "formSystem.project_role_export"
  6233. }
  6234. },
  6235. [
  6236. _c("Checkbox", { attrs: { label: "member" } }, [
  6237. _vm._v(_vm._s(_vm.$L("项目成员")))
  6238. ])
  6239. ],
  6240. 1
  6241. )
  6242. ],
  6243. 1
  6244. ),
  6245. _vm._v(" "),
  6246. _c("div", { staticClass: "project-setting-title" }, [
  6247. _vm._v(_vm._s(_vm.$L("任务权限")) + ":")
  6248. ]),
  6249. _vm._v(" "),
  6250. _c(
  6251. "FormItem",
  6252. { attrs: { label: _vm.$L("添加任务") } },
  6253. [
  6254. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6255. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6256. ]),
  6257. _vm._v(" "),
  6258. _c(
  6259. "CheckboxGroup",
  6260. {
  6261. staticClass: "project-setting-group",
  6262. model: {
  6263. value: _vm.formSystem.add_role,
  6264. callback: function($$v) {
  6265. _vm.$set(_vm.formSystem, "add_role", $$v)
  6266. },
  6267. expression: "formSystem.add_role"
  6268. }
  6269. },
  6270. [
  6271. _c("Checkbox", { attrs: { label: "member" } }, [
  6272. _vm._v(_vm._s(_vm.$L("项目成员")))
  6273. ])
  6274. ],
  6275. 1
  6276. )
  6277. ],
  6278. 1
  6279. ),
  6280. _vm._v(" "),
  6281. _c(
  6282. "FormItem",
  6283. { attrs: { label: _vm.$L("修改任务") } },
  6284. [
  6285. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6286. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6287. ]),
  6288. _vm._v(" "),
  6289. _c(
  6290. "CheckboxGroup",
  6291. {
  6292. staticClass: "project-setting-group",
  6293. model: {
  6294. value: _vm.formSystem.edit_role,
  6295. callback: function($$v) {
  6296. _vm.$set(_vm.formSystem, "edit_role", $$v)
  6297. },
  6298. expression: "formSystem.edit_role"
  6299. }
  6300. },
  6301. [
  6302. _c("Checkbox", { attrs: { label: "owner" } }, [
  6303. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6304. ]),
  6305. _vm._v(" "),
  6306. _c("Checkbox", { attrs: { label: "member" } }, [
  6307. _vm._v(_vm._s(_vm.$L("项目成员")))
  6308. ])
  6309. ],
  6310. 1
  6311. )
  6312. ],
  6313. 1
  6314. ),
  6315. _vm._v(" "),
  6316. _c(
  6317. "FormItem",
  6318. { attrs: { label: _vm.$L("标记完成") } },
  6319. [
  6320. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6321. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6322. ]),
  6323. _vm._v(" "),
  6324. _c(
  6325. "CheckboxGroup",
  6326. {
  6327. staticClass: "project-setting-group",
  6328. model: {
  6329. value: _vm.formSystem.complete_role,
  6330. callback: function($$v) {
  6331. _vm.$set(_vm.formSystem, "complete_role", $$v)
  6332. },
  6333. expression: "formSystem.complete_role"
  6334. }
  6335. },
  6336. [
  6337. _c("Checkbox", { attrs: { label: "owner" } }, [
  6338. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6339. ]),
  6340. _vm._v(" "),
  6341. _c("Checkbox", { attrs: { label: "member" } }, [
  6342. _vm._v(_vm._s(_vm.$L("项目成员")))
  6343. ])
  6344. ],
  6345. 1
  6346. )
  6347. ],
  6348. 1
  6349. ),
  6350. _vm._v(" "),
  6351. _c(
  6352. "FormItem",
  6353. { attrs: { label: _vm.$L("归档任务") } },
  6354. [
  6355. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6356. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6357. ]),
  6358. _vm._v(" "),
  6359. _c(
  6360. "CheckboxGroup",
  6361. {
  6362. staticClass: "project-setting-group",
  6363. model: {
  6364. value: _vm.formSystem.archived_role,
  6365. callback: function($$v) {
  6366. _vm.$set(_vm.formSystem, "archived_role", $$v)
  6367. },
  6368. expression: "formSystem.archived_role"
  6369. }
  6370. },
  6371. [
  6372. _c("Checkbox", { attrs: { label: "owner" } }, [
  6373. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6374. ]),
  6375. _vm._v(" "),
  6376. _c("Checkbox", { attrs: { label: "member" } }, [
  6377. _vm._v(_vm._s(_vm.$L("项目成员")))
  6378. ])
  6379. ],
  6380. 1
  6381. )
  6382. ],
  6383. 1
  6384. ),
  6385. _vm._v(" "),
  6386. _c(
  6387. "FormItem",
  6388. { attrs: { label: _vm.$L("删除任务") } },
  6389. [
  6390. _c("Checkbox", { attrs: { value: true, disabled: "" } }, [
  6391. _vm._v(_vm._s(_vm.$L("项目负责人")))
  6392. ]),
  6393. _vm._v(" "),
  6394. _c(
  6395. "CheckboxGroup",
  6396. {
  6397. staticClass: "project-setting-group",
  6398. model: {
  6399. value: _vm.formSystem.del_role,
  6400. callback: function($$v) {
  6401. _vm.$set(_vm.formSystem, "del_role", $$v)
  6402. },
  6403. expression: "formSystem.del_role"
  6404. }
  6405. },
  6406. [
  6407. _c("Checkbox", { attrs: { label: "owner" } }, [
  6408. _vm._v(_vm._s(_vm.$L("任务负责人")))
  6409. ]),
  6410. _vm._v(" "),
  6411. _c("Checkbox", { attrs: { label: "member" } }, [
  6412. _vm._v(_vm._s(_vm.$L("项目成员")))
  6413. ])
  6414. ],
  6415. 1
  6416. )
  6417. ],
  6418. 1
  6419. ),
  6420. _vm._v(" "),
  6421. _c("div", { staticClass: "project-setting-title" }, [
  6422. _vm._v(_vm._s(_vm.$L("面板显示")) + ":")
  6423. ]),
  6424. _vm._v(" "),
  6425. _c("FormItem", { attrs: { label: _vm.$L("显示已完成") } }, [
  6426. _c(
  6427. "div",
  6428. [
  6429. _c(
  6430. "RadioGroup",
  6431. {
  6432. model: {
  6433. value: _vm.formSystem.complete_show,
  6434. callback: function($$v) {
  6435. _vm.$set(_vm.formSystem, "complete_show", $$v)
  6436. },
  6437. expression: "formSystem.complete_show"
  6438. }
  6439. },
  6440. [
  6441. _c("Radio", { attrs: { label: "show" } }, [
  6442. _vm._v(_vm._s(_vm.$L("显示")))
  6443. ]),
  6444. _vm._v(" "),
  6445. _c("Radio", { attrs: { label: "hide" } }, [
  6446. _vm._v(_vm._s(_vm.$L("隐藏")))
  6447. ])
  6448. ],
  6449. 1
  6450. )
  6451. ],
  6452. 1
  6453. ),
  6454. _vm._v(" "),
  6455. _vm.formSystem.complete_show == "show"
  6456. ? _c("div", { staticClass: "form-placeholder" }, [
  6457. _vm._v(
  6458. "\n " +
  6459. _vm._s(_vm.$L("项目面板显示已完成的任务。")) +
  6460. "\n "
  6461. )
  6462. ])
  6463. : _c("div", { staticClass: "form-placeholder" }, [
  6464. _vm._v(
  6465. "\n " +
  6466. _vm._s(_vm.$L("项目面板隐藏已完成的任务。")) +
  6467. "\n "
  6468. )
  6469. ])
  6470. ]),
  6471. _vm._v(" "),
  6472. _c(
  6473. "FormItem",
  6474. [
  6475. _c(
  6476. "Button",
  6477. {
  6478. attrs: { loading: _vm.loadIng > 0, type: "primary" },
  6479. on: {
  6480. click: function($event) {
  6481. return _vm.handleSubmit("formSystem")
  6482. }
  6483. }
  6484. },
  6485. [_vm._v(_vm._s(_vm.$L("提交")))]
  6486. ),
  6487. _vm._v(" "),
  6488. _c(
  6489. "Button",
  6490. {
  6491. staticStyle: { "margin-left": "8px" },
  6492. attrs: { loading: _vm.loadIng > 0 },
  6493. on: {
  6494. click: function($event) {
  6495. return _vm.handleReset("formSystem")
  6496. }
  6497. }
  6498. },
  6499. [_vm._v(_vm._s(_vm.$L("重置")))]
  6500. )
  6501. ],
  6502. 1
  6503. )
  6504. ],
  6505. 1
  6506. )
  6507. ],
  6508. 1
  6509. )
  6510. ])
  6511. }
  6512. var staticRenderFns = []
  6513. render._withStripped = true
  6514. module.exports = { render: render, staticRenderFns: staticRenderFns }
  6515. if (false) {
  6516. module.hot.accept()
  6517. if (module.hot.data) {
  6518. require("vue-hot-reload-api") .rerender("data-v-6f0e28b5", module.exports)
  6519. }
  6520. }
  6521. /***/ }),
  6522. /***/ 804:
  6523. /***/ (function(module, exports, __webpack_require__) {
  6524. var baseOrderBy = __webpack_require__(805),
  6525. isArray = __webpack_require__(16);
  6526. /**
  6527. * This method is like `_.sortBy` except that it allows specifying the sort
  6528. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  6529. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  6530. * descending or "asc" for ascending sort order of corresponding values.
  6531. *
  6532. * @static
  6533. * @memberOf _
  6534. * @since 4.0.0
  6535. * @category Collection
  6536. * @param {Array|Object} collection The collection to iterate over.
  6537. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  6538. * The iteratees to sort by.
  6539. * @param {string[]} [orders] The sort orders of `iteratees`.
  6540. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  6541. * @returns {Array} Returns the new sorted array.
  6542. * @example
  6543. *
  6544. * var users = [
  6545. * { 'user': 'fred', 'age': 48 },
  6546. * { 'user': 'barney', 'age': 34 },
  6547. * { 'user': 'fred', 'age': 40 },
  6548. * { 'user': 'barney', 'age': 36 }
  6549. * ];
  6550. *
  6551. * // Sort by `user` in ascending order and by `age` in descending order.
  6552. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  6553. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  6554. */
  6555. function orderBy(collection, iteratees, orders, guard) {
  6556. if (collection == null) {
  6557. return [];
  6558. }
  6559. if (!isArray(iteratees)) {
  6560. iteratees = iteratees == null ? [] : [iteratees];
  6561. }
  6562. orders = guard ? undefined : orders;
  6563. if (!isArray(orders)) {
  6564. orders = orders == null ? [] : [orders];
  6565. }
  6566. return baseOrderBy(collection, iteratees, orders);
  6567. }
  6568. module.exports = orderBy;
  6569. /***/ }),
  6570. /***/ 805:
  6571. /***/ (function(module, exports, __webpack_require__) {
  6572. var arrayMap = __webpack_require__(437),
  6573. baseGet = __webpack_require__(359),
  6574. baseIteratee = __webpack_require__(811),
  6575. baseMap = __webpack_require__(833),
  6576. baseSortBy = __webpack_require__(839),
  6577. baseUnary = __webpack_require__(20),
  6578. compareMultiple = __webpack_require__(840),
  6579. identity = __webpack_require__(443),
  6580. isArray = __webpack_require__(16);
  6581. /**
  6582. * The base implementation of `_.orderBy` without param guards.
  6583. *
  6584. * @private
  6585. * @param {Array|Object} collection The collection to iterate over.
  6586. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  6587. * @param {string[]} orders The sort orders of `iteratees`.
  6588. * @returns {Array} Returns the new sorted array.
  6589. */
  6590. function baseOrderBy(collection, iteratees, orders) {
  6591. if (iteratees.length) {
  6592. iteratees = arrayMap(iteratees, function(iteratee) {
  6593. if (isArray(iteratee)) {
  6594. return function(value) {
  6595. return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
  6596. }
  6597. }
  6598. return iteratee;
  6599. });
  6600. } else {
  6601. iteratees = [identity];
  6602. }
  6603. var index = -1;
  6604. iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
  6605. var result = baseMap(collection, function(value, key, collection) {
  6606. var criteria = arrayMap(iteratees, function(iteratee) {
  6607. return iteratee(value);
  6608. });
  6609. return { 'criteria': criteria, 'index': ++index, 'value': value };
  6610. });
  6611. return baseSortBy(result, function(object, other) {
  6612. return compareMultiple(object, other, orders);
  6613. });
  6614. }
  6615. module.exports = baseOrderBy;
  6616. /***/ }),
  6617. /***/ 806:
  6618. /***/ (function(module, exports, __webpack_require__) {
  6619. var memoizeCapped = __webpack_require__(807);
  6620. /** Used to match property names within property paths. */
  6621. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  6622. /** Used to match backslashes in property paths. */
  6623. var reEscapeChar = /\\(\\)?/g;
  6624. /**
  6625. * Converts `string` to a property path array.
  6626. *
  6627. * @private
  6628. * @param {string} string The string to convert.
  6629. * @returns {Array} Returns the property path array.
  6630. */
  6631. var stringToPath = memoizeCapped(function(string) {
  6632. var result = [];
  6633. if (string.charCodeAt(0) === 46 /* . */) {
  6634. result.push('');
  6635. }
  6636. string.replace(rePropName, function(match, number, quote, subString) {
  6637. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  6638. });
  6639. return result;
  6640. });
  6641. module.exports = stringToPath;
  6642. /***/ }),
  6643. /***/ 807:
  6644. /***/ (function(module, exports, __webpack_require__) {
  6645. var memoize = __webpack_require__(808);
  6646. /** Used as the maximum memoize cache size. */
  6647. var MAX_MEMOIZE_SIZE = 500;
  6648. /**
  6649. * A specialized version of `_.memoize` which clears the memoized function's
  6650. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  6651. *
  6652. * @private
  6653. * @param {Function} func The function to have its output memoized.
  6654. * @returns {Function} Returns the new memoized function.
  6655. */
  6656. function memoizeCapped(func) {
  6657. var result = memoize(func, function(key) {
  6658. if (cache.size === MAX_MEMOIZE_SIZE) {
  6659. cache.clear();
  6660. }
  6661. return key;
  6662. });
  6663. var cache = result.cache;
  6664. return result;
  6665. }
  6666. module.exports = memoizeCapped;
  6667. /***/ }),
  6668. /***/ 808:
  6669. /***/ (function(module, exports, __webpack_require__) {
  6670. var MapCache = __webpack_require__(54);
  6671. /** Error message constants. */
  6672. var FUNC_ERROR_TEXT = 'Expected a function';
  6673. /**
  6674. * Creates a function that memoizes the result of `func`. If `resolver` is
  6675. * provided, it determines the cache key for storing the result based on the
  6676. * arguments provided to the memoized function. By default, the first argument
  6677. * provided to the memoized function is used as the map cache key. The `func`
  6678. * is invoked with the `this` binding of the memoized function.
  6679. *
  6680. * **Note:** The cache is exposed as the `cache` property on the memoized
  6681. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  6682. * constructor with one whose instances implement the
  6683. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  6684. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  6685. *
  6686. * @static
  6687. * @memberOf _
  6688. * @since 0.1.0
  6689. * @category Function
  6690. * @param {Function} func The function to have its output memoized.
  6691. * @param {Function} [resolver] The function to resolve the cache key.
  6692. * @returns {Function} Returns the new memoized function.
  6693. * @example
  6694. *
  6695. * var object = { 'a': 1, 'b': 2 };
  6696. * var other = { 'c': 3, 'd': 4 };
  6697. *
  6698. * var values = _.memoize(_.values);
  6699. * values(object);
  6700. * // => [1, 2]
  6701. *
  6702. * values(other);
  6703. * // => [3, 4]
  6704. *
  6705. * object.a = 2;
  6706. * values(object);
  6707. * // => [1, 2]
  6708. *
  6709. * // Modify the result cache.
  6710. * values.cache.set(object, ['a', 'b']);
  6711. * values(object);
  6712. * // => ['a', 'b']
  6713. *
  6714. * // Replace `_.memoize.Cache`.
  6715. * _.memoize.Cache = WeakMap;
  6716. */
  6717. function memoize(func, resolver) {
  6718. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  6719. throw new TypeError(FUNC_ERROR_TEXT);
  6720. }
  6721. var memoized = function() {
  6722. var args = arguments,
  6723. key = resolver ? resolver.apply(this, args) : args[0],
  6724. cache = memoized.cache;
  6725. if (cache.has(key)) {
  6726. return cache.get(key);
  6727. }
  6728. var result = func.apply(this, args);
  6729. memoized.cache = cache.set(key, result) || cache;
  6730. return result;
  6731. };
  6732. memoized.cache = new (memoize.Cache || MapCache);
  6733. return memoized;
  6734. }
  6735. // Expose `MapCache`.
  6736. memoize.Cache = MapCache;
  6737. module.exports = memoize;
  6738. /***/ }),
  6739. /***/ 809:
  6740. /***/ (function(module, exports, __webpack_require__) {
  6741. var baseToString = __webpack_require__(810);
  6742. /**
  6743. * Converts `value` to a string. An empty string is returned for `null`
  6744. * and `undefined` values. The sign of `-0` is preserved.
  6745. *
  6746. * @static
  6747. * @memberOf _
  6748. * @since 4.0.0
  6749. * @category Lang
  6750. * @param {*} value The value to convert.
  6751. * @returns {string} Returns the converted string.
  6752. * @example
  6753. *
  6754. * _.toString(null);
  6755. * // => ''
  6756. *
  6757. * _.toString(-0);
  6758. * // => '-0'
  6759. *
  6760. * _.toString([1, 2, 3]);
  6761. * // => '1,2,3'
  6762. */
  6763. function toString(value) {
  6764. return value == null ? '' : baseToString(value);
  6765. }
  6766. module.exports = toString;
  6767. /***/ }),
  6768. /***/ 810:
  6769. /***/ (function(module, exports, __webpack_require__) {
  6770. var Symbol = __webpack_require__(18),
  6771. arrayMap = __webpack_require__(437),
  6772. isArray = __webpack_require__(16),
  6773. isSymbol = __webpack_require__(325);
  6774. /** Used as references for various `Number` constants. */
  6775. var INFINITY = 1 / 0;
  6776. /** Used to convert symbols to primitives and strings. */
  6777. var symbolProto = Symbol ? Symbol.prototype : undefined,
  6778. symbolToString = symbolProto ? symbolProto.toString : undefined;
  6779. /**
  6780. * The base implementation of `_.toString` which doesn't convert nullish
  6781. * values to empty strings.
  6782. *
  6783. * @private
  6784. * @param {*} value The value to process.
  6785. * @returns {string} Returns the string.
  6786. */
  6787. function baseToString(value) {
  6788. // Exit early for strings to avoid a performance hit in some environments.
  6789. if (typeof value == 'string') {
  6790. return value;
  6791. }
  6792. if (isArray(value)) {
  6793. // Recursively convert values (susceptible to call stack limits).
  6794. return arrayMap(value, baseToString) + '';
  6795. }
  6796. if (isSymbol(value)) {
  6797. return symbolToString ? symbolToString.call(value) : '';
  6798. }
  6799. var result = (value + '');
  6800. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  6801. }
  6802. module.exports = baseToString;
  6803. /***/ }),
  6804. /***/ 811:
  6805. /***/ (function(module, exports, __webpack_require__) {
  6806. var baseMatches = __webpack_require__(812),
  6807. baseMatchesProperty = __webpack_require__(825),
  6808. identity = __webpack_require__(443),
  6809. isArray = __webpack_require__(16),
  6810. property = __webpack_require__(830);
  6811. /**
  6812. * The base implementation of `_.iteratee`.
  6813. *
  6814. * @private
  6815. * @param {*} [value=_.identity] The value to convert to an iteratee.
  6816. * @returns {Function} Returns the iteratee.
  6817. */
  6818. function baseIteratee(value) {
  6819. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  6820. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  6821. if (typeof value == 'function') {
  6822. return value;
  6823. }
  6824. if (value == null) {
  6825. return identity;
  6826. }
  6827. if (typeof value == 'object') {
  6828. return isArray(value)
  6829. ? baseMatchesProperty(value[0], value[1])
  6830. : baseMatches(value);
  6831. }
  6832. return property(value);
  6833. }
  6834. module.exports = baseIteratee;
  6835. /***/ }),
  6836. /***/ 812:
  6837. /***/ (function(module, exports, __webpack_require__) {
  6838. var baseIsMatch = __webpack_require__(813),
  6839. getMatchData = __webpack_require__(824),
  6840. matchesStrictComparable = __webpack_require__(442);
  6841. /**
  6842. * The base implementation of `_.matches` which doesn't clone `source`.
  6843. *
  6844. * @private
  6845. * @param {Object} source The object of property values to match.
  6846. * @returns {Function} Returns the new spec function.
  6847. */
  6848. function baseMatches(source) {
  6849. var matchData = getMatchData(source);
  6850. if (matchData.length == 1 && matchData[0][2]) {
  6851. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  6852. }
  6853. return function(object) {
  6854. return object === source || baseIsMatch(object, source, matchData);
  6855. };
  6856. }
  6857. module.exports = baseMatches;
  6858. /***/ }),
  6859. /***/ 813:
  6860. /***/ (function(module, exports, __webpack_require__) {
  6861. var Stack = __webpack_require__(55),
  6862. baseIsEqual = __webpack_require__(439);
  6863. /** Used to compose bitmasks for value comparisons. */
  6864. var COMPARE_PARTIAL_FLAG = 1,
  6865. COMPARE_UNORDERED_FLAG = 2;
  6866. /**
  6867. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  6868. *
  6869. * @private
  6870. * @param {Object} object The object to inspect.
  6871. * @param {Object} source The object of property values to match.
  6872. * @param {Array} matchData The property names, values, and compare flags to match.
  6873. * @param {Function} [customizer] The function to customize comparisons.
  6874. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  6875. */
  6876. function baseIsMatch(object, source, matchData, customizer) {
  6877. var index = matchData.length,
  6878. length = index,
  6879. noCustomizer = !customizer;
  6880. if (object == null) {
  6881. return !length;
  6882. }
  6883. object = Object(object);
  6884. while (index--) {
  6885. var data = matchData[index];
  6886. if ((noCustomizer && data[2])
  6887. ? data[1] !== object[data[0]]
  6888. : !(data[0] in object)
  6889. ) {
  6890. return false;
  6891. }
  6892. }
  6893. while (++index < length) {
  6894. data = matchData[index];
  6895. var key = data[0],
  6896. objValue = object[key],
  6897. srcValue = data[1];
  6898. if (noCustomizer && data[2]) {
  6899. if (objValue === undefined && !(key in object)) {
  6900. return false;
  6901. }
  6902. } else {
  6903. var stack = new Stack;
  6904. if (customizer) {
  6905. var result = customizer(objValue, srcValue, key, object, source, stack);
  6906. }
  6907. if (!(result === undefined
  6908. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  6909. : result
  6910. )) {
  6911. return false;
  6912. }
  6913. }
  6914. }
  6915. return true;
  6916. }
  6917. module.exports = baseIsMatch;
  6918. /***/ }),
  6919. /***/ 814:
  6920. /***/ (function(module, exports, __webpack_require__) {
  6921. var Stack = __webpack_require__(55),
  6922. equalArrays = __webpack_require__(440),
  6923. equalByTag = __webpack_require__(820),
  6924. equalObjects = __webpack_require__(823),
  6925. getTag = __webpack_require__(21),
  6926. isArray = __webpack_require__(16),
  6927. isBuffer = __webpack_require__(34),
  6928. isTypedArray = __webpack_require__(63);
  6929. /** Used to compose bitmasks for value comparisons. */
  6930. var COMPARE_PARTIAL_FLAG = 1;
  6931. /** `Object#toString` result references. */
  6932. var argsTag = '[object Arguments]',
  6933. arrayTag = '[object Array]',
  6934. objectTag = '[object Object]';
  6935. /** Used for built-in method references. */
  6936. var objectProto = Object.prototype;
  6937. /** Used to check objects for own properties. */
  6938. var hasOwnProperty = objectProto.hasOwnProperty;
  6939. /**
  6940. * A specialized version of `baseIsEqual` for arrays and objects which performs
  6941. * deep comparisons and tracks traversed objects enabling objects with circular
  6942. * references to be compared.
  6943. *
  6944. * @private
  6945. * @param {Object} object The object to compare.
  6946. * @param {Object} other The other object to compare.
  6947. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  6948. * @param {Function} customizer The function to customize comparisons.
  6949. * @param {Function} equalFunc The function to determine equivalents of values.
  6950. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  6951. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  6952. */
  6953. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  6954. var objIsArr = isArray(object),
  6955. othIsArr = isArray(other),
  6956. objTag = objIsArr ? arrayTag : getTag(object),
  6957. othTag = othIsArr ? arrayTag : getTag(other);
  6958. objTag = objTag == argsTag ? objectTag : objTag;
  6959. othTag = othTag == argsTag ? objectTag : othTag;
  6960. var objIsObj = objTag == objectTag,
  6961. othIsObj = othTag == objectTag,
  6962. isSameTag = objTag == othTag;
  6963. if (isSameTag && isBuffer(object)) {
  6964. if (!isBuffer(other)) {
  6965. return false;
  6966. }
  6967. objIsArr = true;
  6968. objIsObj = false;
  6969. }
  6970. if (isSameTag && !objIsObj) {
  6971. stack || (stack = new Stack);
  6972. return (objIsArr || isTypedArray(object))
  6973. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  6974. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  6975. }
  6976. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  6977. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  6978. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  6979. if (objIsWrapped || othIsWrapped) {
  6980. var objUnwrapped = objIsWrapped ? object.value() : object,
  6981. othUnwrapped = othIsWrapped ? other.value() : other;
  6982. stack || (stack = new Stack);
  6983. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  6984. }
  6985. }
  6986. if (!isSameTag) {
  6987. return false;
  6988. }
  6989. stack || (stack = new Stack);
  6990. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  6991. }
  6992. module.exports = baseIsEqualDeep;
  6993. /***/ }),
  6994. /***/ 815:
  6995. /***/ (function(module, exports, __webpack_require__) {
  6996. var MapCache = __webpack_require__(54),
  6997. setCacheAdd = __webpack_require__(816),
  6998. setCacheHas = __webpack_require__(817);
  6999. /**
  7000. *
  7001. * Creates an array cache object to store unique values.
  7002. *
  7003. * @private
  7004. * @constructor
  7005. * @param {Array} [values] The values to cache.
  7006. */
  7007. function SetCache(values) {
  7008. var index = -1,
  7009. length = values == null ? 0 : values.length;
  7010. this.__data__ = new MapCache;
  7011. while (++index < length) {
  7012. this.add(values[index]);
  7013. }
  7014. }
  7015. // Add methods to `SetCache`.
  7016. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  7017. SetCache.prototype.has = setCacheHas;
  7018. module.exports = SetCache;
  7019. /***/ }),
  7020. /***/ 816:
  7021. /***/ (function(module, exports) {
  7022. /** Used to stand-in for `undefined` hash values. */
  7023. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  7024. /**
  7025. * Adds `value` to the array cache.
  7026. *
  7027. * @private
  7028. * @name add
  7029. * @memberOf SetCache
  7030. * @alias push
  7031. * @param {*} value The value to cache.
  7032. * @returns {Object} Returns the cache instance.
  7033. */
  7034. function setCacheAdd(value) {
  7035. this.__data__.set(value, HASH_UNDEFINED);
  7036. return this;
  7037. }
  7038. module.exports = setCacheAdd;
  7039. /***/ }),
  7040. /***/ 817:
  7041. /***/ (function(module, exports) {
  7042. /**
  7043. * Checks if `value` is in the array cache.
  7044. *
  7045. * @private
  7046. * @name has
  7047. * @memberOf SetCache
  7048. * @param {*} value The value to search for.
  7049. * @returns {number} Returns `true` if `value` is found, else `false`.
  7050. */
  7051. function setCacheHas(value) {
  7052. return this.__data__.has(value);
  7053. }
  7054. module.exports = setCacheHas;
  7055. /***/ }),
  7056. /***/ 818:
  7057. /***/ (function(module, exports) {
  7058. /**
  7059. * A specialized version of `_.some` for arrays without support for iteratee
  7060. * shorthands.
  7061. *
  7062. * @private
  7063. * @param {Array} [array] The array to iterate over.
  7064. * @param {Function} predicate The function invoked per iteration.
  7065. * @returns {boolean} Returns `true` if any element passes the predicate check,
  7066. * else `false`.
  7067. */
  7068. function arraySome(array, predicate) {
  7069. var index = -1,
  7070. length = array == null ? 0 : array.length;
  7071. while (++index < length) {
  7072. if (predicate(array[index], index, array)) {
  7073. return true;
  7074. }
  7075. }
  7076. return false;
  7077. }
  7078. module.exports = arraySome;
  7079. /***/ }),
  7080. /***/ 819:
  7081. /***/ (function(module, exports) {
  7082. /**
  7083. * Checks if a `cache` value for `key` exists.
  7084. *
  7085. * @private
  7086. * @param {Object} cache The cache to query.
  7087. * @param {string} key The key of the entry to check.
  7088. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  7089. */
  7090. function cacheHas(cache, key) {
  7091. return cache.has(key);
  7092. }
  7093. module.exports = cacheHas;
  7094. /***/ }),
  7095. /***/ 820:
  7096. /***/ (function(module, exports, __webpack_require__) {
  7097. var Symbol = __webpack_require__(18),
  7098. Uint8Array = __webpack_require__(59),
  7099. eq = __webpack_require__(33),
  7100. equalArrays = __webpack_require__(440),
  7101. mapToArray = __webpack_require__(821),
  7102. setToArray = __webpack_require__(822);
  7103. /** Used to compose bitmasks for value comparisons. */
  7104. var COMPARE_PARTIAL_FLAG = 1,
  7105. COMPARE_UNORDERED_FLAG = 2;
  7106. /** `Object#toString` result references. */
  7107. var boolTag = '[object Boolean]',
  7108. dateTag = '[object Date]',
  7109. errorTag = '[object Error]',
  7110. mapTag = '[object Map]',
  7111. numberTag = '[object Number]',
  7112. regexpTag = '[object RegExp]',
  7113. setTag = '[object Set]',
  7114. stringTag = '[object String]',
  7115. symbolTag = '[object Symbol]';
  7116. var arrayBufferTag = '[object ArrayBuffer]',
  7117. dataViewTag = '[object DataView]';
  7118. /** Used to convert symbols to primitives and strings. */
  7119. var symbolProto = Symbol ? Symbol.prototype : undefined,
  7120. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  7121. /**
  7122. * A specialized version of `baseIsEqualDeep` for comparing objects of
  7123. * the same `toStringTag`.
  7124. *
  7125. * **Note:** This function only supports comparing values with tags of
  7126. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  7127. *
  7128. * @private
  7129. * @param {Object} object The object to compare.
  7130. * @param {Object} other The other object to compare.
  7131. * @param {string} tag The `toStringTag` of the objects to compare.
  7132. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7133. * @param {Function} customizer The function to customize comparisons.
  7134. * @param {Function} equalFunc The function to determine equivalents of values.
  7135. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7136. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7137. */
  7138. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  7139. switch (tag) {
  7140. case dataViewTag:
  7141. if ((object.byteLength != other.byteLength) ||
  7142. (object.byteOffset != other.byteOffset)) {
  7143. return false;
  7144. }
  7145. object = object.buffer;
  7146. other = other.buffer;
  7147. case arrayBufferTag:
  7148. if ((object.byteLength != other.byteLength) ||
  7149. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  7150. return false;
  7151. }
  7152. return true;
  7153. case boolTag:
  7154. case dateTag:
  7155. case numberTag:
  7156. // Coerce booleans to `1` or `0` and dates to milliseconds.
  7157. // Invalid dates are coerced to `NaN`.
  7158. return eq(+object, +other);
  7159. case errorTag:
  7160. return object.name == other.name && object.message == other.message;
  7161. case regexpTag:
  7162. case stringTag:
  7163. // Coerce regexes to strings and treat strings, primitives and objects,
  7164. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  7165. // for more details.
  7166. return object == (other + '');
  7167. case mapTag:
  7168. var convert = mapToArray;
  7169. case setTag:
  7170. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  7171. convert || (convert = setToArray);
  7172. if (object.size != other.size && !isPartial) {
  7173. return false;
  7174. }
  7175. // Assume cyclic values are equal.
  7176. var stacked = stack.get(object);
  7177. if (stacked) {
  7178. return stacked == other;
  7179. }
  7180. bitmask |= COMPARE_UNORDERED_FLAG;
  7181. // Recursively compare objects (susceptible to call stack limits).
  7182. stack.set(object, other);
  7183. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  7184. stack['delete'](object);
  7185. return result;
  7186. case symbolTag:
  7187. if (symbolValueOf) {
  7188. return symbolValueOf.call(object) == symbolValueOf.call(other);
  7189. }
  7190. }
  7191. return false;
  7192. }
  7193. module.exports = equalByTag;
  7194. /***/ }),
  7195. /***/ 821:
  7196. /***/ (function(module, exports) {
  7197. /**
  7198. * Converts `map` to its key-value pairs.
  7199. *
  7200. * @private
  7201. * @param {Object} map The map to convert.
  7202. * @returns {Array} Returns the key-value pairs.
  7203. */
  7204. function mapToArray(map) {
  7205. var index = -1,
  7206. result = Array(map.size);
  7207. map.forEach(function(value, key) {
  7208. result[++index] = [key, value];
  7209. });
  7210. return result;
  7211. }
  7212. module.exports = mapToArray;
  7213. /***/ }),
  7214. /***/ 822:
  7215. /***/ (function(module, exports) {
  7216. /**
  7217. * Converts `set` to an array of its values.
  7218. *
  7219. * @private
  7220. * @param {Object} set The set to convert.
  7221. * @returns {Array} Returns the values.
  7222. */
  7223. function setToArray(set) {
  7224. var index = -1,
  7225. result = Array(set.size);
  7226. set.forEach(function(value) {
  7227. result[++index] = value;
  7228. });
  7229. return result;
  7230. }
  7231. module.exports = setToArray;
  7232. /***/ }),
  7233. /***/ 823:
  7234. /***/ (function(module, exports, __webpack_require__) {
  7235. var getAllKeys = __webpack_require__(60);
  7236. /** Used to compose bitmasks for value comparisons. */
  7237. var COMPARE_PARTIAL_FLAG = 1;
  7238. /** Used for built-in method references. */
  7239. var objectProto = Object.prototype;
  7240. /** Used to check objects for own properties. */
  7241. var hasOwnProperty = objectProto.hasOwnProperty;
  7242. /**
  7243. * A specialized version of `baseIsEqualDeep` for objects with support for
  7244. * partial deep comparisons.
  7245. *
  7246. * @private
  7247. * @param {Object} object The object to compare.
  7248. * @param {Object} other The other object to compare.
  7249. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  7250. * @param {Function} customizer The function to customize comparisons.
  7251. * @param {Function} equalFunc The function to determine equivalents of values.
  7252. * @param {Object} stack Tracks traversed `object` and `other` objects.
  7253. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  7254. */
  7255. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  7256. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  7257. objProps = getAllKeys(object),
  7258. objLength = objProps.length,
  7259. othProps = getAllKeys(other),
  7260. othLength = othProps.length;
  7261. if (objLength != othLength && !isPartial) {
  7262. return false;
  7263. }
  7264. var index = objLength;
  7265. while (index--) {
  7266. var key = objProps[index];
  7267. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  7268. return false;
  7269. }
  7270. }
  7271. // Check that cyclic values are equal.
  7272. var objStacked = stack.get(object);
  7273. var othStacked = stack.get(other);
  7274. if (objStacked && othStacked) {
  7275. return objStacked == other && othStacked == object;
  7276. }
  7277. var result = true;
  7278. stack.set(object, other);
  7279. stack.set(other, object);
  7280. var skipCtor = isPartial;
  7281. while (++index < objLength) {
  7282. key = objProps[index];
  7283. var objValue = object[key],
  7284. othValue = other[key];
  7285. if (customizer) {
  7286. var compared = isPartial
  7287. ? customizer(othValue, objValue, key, other, object, stack)
  7288. : customizer(objValue, othValue, key, object, other, stack);
  7289. }
  7290. // Recursively compare objects (susceptible to call stack limits).
  7291. if (!(compared === undefined
  7292. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  7293. : compared
  7294. )) {
  7295. result = false;
  7296. break;
  7297. }
  7298. skipCtor || (skipCtor = key == 'constructor');
  7299. }
  7300. if (result && !skipCtor) {
  7301. var objCtor = object.constructor,
  7302. othCtor = other.constructor;
  7303. // Non `Object` object instances with different constructors are not equal.
  7304. if (objCtor != othCtor &&
  7305. ('constructor' in object && 'constructor' in other) &&
  7306. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  7307. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  7308. result = false;
  7309. }
  7310. }
  7311. stack['delete'](object);
  7312. stack['delete'](other);
  7313. return result;
  7314. }
  7315. module.exports = equalObjects;
  7316. /***/ }),
  7317. /***/ 824:
  7318. /***/ (function(module, exports, __webpack_require__) {
  7319. var isStrictComparable = __webpack_require__(441),
  7320. keys = __webpack_require__(19);
  7321. /**
  7322. * Gets the property names, values, and compare flags of `object`.
  7323. *
  7324. * @private
  7325. * @param {Object} object The object to query.
  7326. * @returns {Array} Returns the match data of `object`.
  7327. */
  7328. function getMatchData(object) {
  7329. var result = keys(object),
  7330. length = result.length;
  7331. while (length--) {
  7332. var key = result[length],
  7333. value = object[key];
  7334. result[length] = [key, value, isStrictComparable(value)];
  7335. }
  7336. return result;
  7337. }
  7338. module.exports = getMatchData;
  7339. /***/ }),
  7340. /***/ 825:
  7341. /***/ (function(module, exports, __webpack_require__) {
  7342. var baseIsEqual = __webpack_require__(439),
  7343. get = __webpack_require__(826),
  7344. hasIn = __webpack_require__(827),
  7345. isKey = __webpack_require__(360),
  7346. isStrictComparable = __webpack_require__(441),
  7347. matchesStrictComparable = __webpack_require__(442),
  7348. toKey = __webpack_require__(326);
  7349. /** Used to compose bitmasks for value comparisons. */
  7350. var COMPARE_PARTIAL_FLAG = 1,
  7351. COMPARE_UNORDERED_FLAG = 2;
  7352. /**
  7353. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  7354. *
  7355. * @private
  7356. * @param {string} path The path of the property to get.
  7357. * @param {*} srcValue The value to match.
  7358. * @returns {Function} Returns the new spec function.
  7359. */
  7360. function baseMatchesProperty(path, srcValue) {
  7361. if (isKey(path) && isStrictComparable(srcValue)) {
  7362. return matchesStrictComparable(toKey(path), srcValue);
  7363. }
  7364. return function(object) {
  7365. var objValue = get(object, path);
  7366. return (objValue === undefined && objValue === srcValue)
  7367. ? hasIn(object, path)
  7368. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  7369. };
  7370. }
  7371. module.exports = baseMatchesProperty;
  7372. /***/ }),
  7373. /***/ 826:
  7374. /***/ (function(module, exports, __webpack_require__) {
  7375. var baseGet = __webpack_require__(359);
  7376. /**
  7377. * Gets the value at `path` of `object`. If the resolved value is
  7378. * `undefined`, the `defaultValue` is returned in its place.
  7379. *
  7380. * @static
  7381. * @memberOf _
  7382. * @since 3.7.0
  7383. * @category Object
  7384. * @param {Object} object The object to query.
  7385. * @param {Array|string} path The path of the property to get.
  7386. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  7387. * @returns {*} Returns the resolved value.
  7388. * @example
  7389. *
  7390. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  7391. *
  7392. * _.get(object, 'a[0].b.c');
  7393. * // => 3
  7394. *
  7395. * _.get(object, ['a', '0', 'b', 'c']);
  7396. * // => 3
  7397. *
  7398. * _.get(object, 'a.b.c', 'default');
  7399. * // => 'default'
  7400. */
  7401. function get(object, path, defaultValue) {
  7402. var result = object == null ? undefined : baseGet(object, path);
  7403. return result === undefined ? defaultValue : result;
  7404. }
  7405. module.exports = get;
  7406. /***/ }),
  7407. /***/ 827:
  7408. /***/ (function(module, exports, __webpack_require__) {
  7409. var baseHasIn = __webpack_require__(828),
  7410. hasPath = __webpack_require__(829);
  7411. /**
  7412. * Checks if `path` is a direct or inherited property of `object`.
  7413. *
  7414. * @static
  7415. * @memberOf _
  7416. * @since 4.0.0
  7417. * @category Object
  7418. * @param {Object} object The object to query.
  7419. * @param {Array|string} path The path to check.
  7420. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7421. * @example
  7422. *
  7423. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  7424. *
  7425. * _.hasIn(object, 'a');
  7426. * // => true
  7427. *
  7428. * _.hasIn(object, 'a.b');
  7429. * // => true
  7430. *
  7431. * _.hasIn(object, ['a', 'b']);
  7432. * // => true
  7433. *
  7434. * _.hasIn(object, 'b');
  7435. * // => false
  7436. */
  7437. function hasIn(object, path) {
  7438. return object != null && hasPath(object, path, baseHasIn);
  7439. }
  7440. module.exports = hasIn;
  7441. /***/ }),
  7442. /***/ 828:
  7443. /***/ (function(module, exports) {
  7444. /**
  7445. * The base implementation of `_.hasIn` without support for deep paths.
  7446. *
  7447. * @private
  7448. * @param {Object} [object] The object to query.
  7449. * @param {Array|string} key The key to check.
  7450. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  7451. */
  7452. function baseHasIn(object, key) {
  7453. return object != null && key in Object(object);
  7454. }
  7455. module.exports = baseHasIn;
  7456. /***/ }),
  7457. /***/ 829:
  7458. /***/ (function(module, exports, __webpack_require__) {
  7459. var castPath = __webpack_require__(438),
  7460. isArguments = __webpack_require__(61),
  7461. isArray = __webpack_require__(16),
  7462. isIndex = __webpack_require__(62),
  7463. isLength = __webpack_require__(35),
  7464. toKey = __webpack_require__(326);
  7465. /**
  7466. * Checks if `path` exists on `object`.
  7467. *
  7468. * @private
  7469. * @param {Object} object The object to query.
  7470. * @param {Array|string} path The path to check.
  7471. * @param {Function} hasFunc The function to check properties.
  7472. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  7473. */
  7474. function hasPath(object, path, hasFunc) {
  7475. path = castPath(path, object);
  7476. var index = -1,
  7477. length = path.length,
  7478. result = false;
  7479. while (++index < length) {
  7480. var key = toKey(path[index]);
  7481. if (!(result = object != null && hasFunc(object, key))) {
  7482. break;
  7483. }
  7484. object = object[key];
  7485. }
  7486. if (result || ++index != length) {
  7487. return result;
  7488. }
  7489. length = object == null ? 0 : object.length;
  7490. return !!length && isLength(length) && isIndex(key, length) &&
  7491. (isArray(object) || isArguments(object));
  7492. }
  7493. module.exports = hasPath;
  7494. /***/ }),
  7495. /***/ 830:
  7496. /***/ (function(module, exports, __webpack_require__) {
  7497. var baseProperty = __webpack_require__(831),
  7498. basePropertyDeep = __webpack_require__(832),
  7499. isKey = __webpack_require__(360),
  7500. toKey = __webpack_require__(326);
  7501. /**
  7502. * Creates a function that returns the value at `path` of a given object.
  7503. *
  7504. * @static
  7505. * @memberOf _
  7506. * @since 2.4.0
  7507. * @category Util
  7508. * @param {Array|string} path The path of the property to get.
  7509. * @returns {Function} Returns the new accessor function.
  7510. * @example
  7511. *
  7512. * var objects = [
  7513. * { 'a': { 'b': 2 } },
  7514. * { 'a': { 'b': 1 } }
  7515. * ];
  7516. *
  7517. * _.map(objects, _.property('a.b'));
  7518. * // => [2, 1]
  7519. *
  7520. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  7521. * // => [1, 2]
  7522. */
  7523. function property(path) {
  7524. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  7525. }
  7526. module.exports = property;
  7527. /***/ }),
  7528. /***/ 831:
  7529. /***/ (function(module, exports) {
  7530. /**
  7531. * The base implementation of `_.property` without support for deep paths.
  7532. *
  7533. * @private
  7534. * @param {string} key The key of the property to get.
  7535. * @returns {Function} Returns the new accessor function.
  7536. */
  7537. function baseProperty(key) {
  7538. return function(object) {
  7539. return object == null ? undefined : object[key];
  7540. };
  7541. }
  7542. module.exports = baseProperty;
  7543. /***/ }),
  7544. /***/ 832:
  7545. /***/ (function(module, exports, __webpack_require__) {
  7546. var baseGet = __webpack_require__(359);
  7547. /**
  7548. * A specialized version of `baseProperty` which supports deep paths.
  7549. *
  7550. * @private
  7551. * @param {Array|string} path The path of the property to get.
  7552. * @returns {Function} Returns the new accessor function.
  7553. */
  7554. function basePropertyDeep(path) {
  7555. return function(object) {
  7556. return baseGet(object, path);
  7557. };
  7558. }
  7559. module.exports = basePropertyDeep;
  7560. /***/ }),
  7561. /***/ 833:
  7562. /***/ (function(module, exports, __webpack_require__) {
  7563. var baseEach = __webpack_require__(834),
  7564. isArrayLike = __webpack_require__(32);
  7565. /**
  7566. * The base implementation of `_.map` without support for iteratee shorthands.
  7567. *
  7568. * @private
  7569. * @param {Array|Object} collection The collection to iterate over.
  7570. * @param {Function} iteratee The function invoked per iteration.
  7571. * @returns {Array} Returns the new mapped array.
  7572. */
  7573. function baseMap(collection, iteratee) {
  7574. var index = -1,
  7575. result = isArrayLike(collection) ? Array(collection.length) : [];
  7576. baseEach(collection, function(value, key, collection) {
  7577. result[++index] = iteratee(value, key, collection);
  7578. });
  7579. return result;
  7580. }
  7581. module.exports = baseMap;
  7582. /***/ }),
  7583. /***/ 834:
  7584. /***/ (function(module, exports, __webpack_require__) {
  7585. var baseForOwn = __webpack_require__(835),
  7586. createBaseEach = __webpack_require__(838);
  7587. /**
  7588. * The base implementation of `_.forEach` without support for iteratee shorthands.
  7589. *
  7590. * @private
  7591. * @param {Array|Object} collection The collection to iterate over.
  7592. * @param {Function} iteratee The function invoked per iteration.
  7593. * @returns {Array|Object} Returns `collection`.
  7594. */
  7595. var baseEach = createBaseEach(baseForOwn);
  7596. module.exports = baseEach;
  7597. /***/ }),
  7598. /***/ 835:
  7599. /***/ (function(module, exports, __webpack_require__) {
  7600. var baseFor = __webpack_require__(836),
  7601. keys = __webpack_require__(19);
  7602. /**
  7603. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  7604. *
  7605. * @private
  7606. * @param {Object} object The object to iterate over.
  7607. * @param {Function} iteratee The function invoked per iteration.
  7608. * @returns {Object} Returns `object`.
  7609. */
  7610. function baseForOwn(object, iteratee) {
  7611. return object && baseFor(object, iteratee, keys);
  7612. }
  7613. module.exports = baseForOwn;
  7614. /***/ }),
  7615. /***/ 836:
  7616. /***/ (function(module, exports, __webpack_require__) {
  7617. var createBaseFor = __webpack_require__(837);
  7618. /**
  7619. * The base implementation of `baseForOwn` which iterates over `object`
  7620. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  7621. * Iteratee functions may exit iteration early by explicitly returning `false`.
  7622. *
  7623. * @private
  7624. * @param {Object} object The object to iterate over.
  7625. * @param {Function} iteratee The function invoked per iteration.
  7626. * @param {Function} keysFunc The function to get the keys of `object`.
  7627. * @returns {Object} Returns `object`.
  7628. */
  7629. var baseFor = createBaseFor();
  7630. module.exports = baseFor;
  7631. /***/ }),
  7632. /***/ 837:
  7633. /***/ (function(module, exports) {
  7634. /**
  7635. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  7636. *
  7637. * @private
  7638. * @param {boolean} [fromRight] Specify iterating from right to left.
  7639. * @returns {Function} Returns the new base function.
  7640. */
  7641. function createBaseFor(fromRight) {
  7642. return function(object, iteratee, keysFunc) {
  7643. var index = -1,
  7644. iterable = Object(object),
  7645. props = keysFunc(object),
  7646. length = props.length;
  7647. while (length--) {
  7648. var key = props[fromRight ? length : ++index];
  7649. if (iteratee(iterable[key], key, iterable) === false) {
  7650. break;
  7651. }
  7652. }
  7653. return object;
  7654. };
  7655. }
  7656. module.exports = createBaseFor;
  7657. /***/ }),
  7658. /***/ 838:
  7659. /***/ (function(module, exports, __webpack_require__) {
  7660. var isArrayLike = __webpack_require__(32);
  7661. /**
  7662. * Creates a `baseEach` or `baseEachRight` function.
  7663. *
  7664. * @private
  7665. * @param {Function} eachFunc The function to iterate over a collection.
  7666. * @param {boolean} [fromRight] Specify iterating from right to left.
  7667. * @returns {Function} Returns the new base function.
  7668. */
  7669. function createBaseEach(eachFunc, fromRight) {
  7670. return function(collection, iteratee) {
  7671. if (collection == null) {
  7672. return collection;
  7673. }
  7674. if (!isArrayLike(collection)) {
  7675. return eachFunc(collection, iteratee);
  7676. }
  7677. var length = collection.length,
  7678. index = fromRight ? length : -1,
  7679. iterable = Object(collection);
  7680. while ((fromRight ? index-- : ++index < length)) {
  7681. if (iteratee(iterable[index], index, iterable) === false) {
  7682. break;
  7683. }
  7684. }
  7685. return collection;
  7686. };
  7687. }
  7688. module.exports = createBaseEach;
  7689. /***/ }),
  7690. /***/ 839:
  7691. /***/ (function(module, exports) {
  7692. /**
  7693. * The base implementation of `_.sortBy` which uses `comparer` to define the
  7694. * sort order of `array` and replaces criteria objects with their corresponding
  7695. * values.
  7696. *
  7697. * @private
  7698. * @param {Array} array The array to sort.
  7699. * @param {Function} comparer The function to define sort order.
  7700. * @returns {Array} Returns `array`.
  7701. */
  7702. function baseSortBy(array, comparer) {
  7703. var length = array.length;
  7704. array.sort(comparer);
  7705. while (length--) {
  7706. array[length] = array[length].value;
  7707. }
  7708. return array;
  7709. }
  7710. module.exports = baseSortBy;
  7711. /***/ }),
  7712. /***/ 840:
  7713. /***/ (function(module, exports, __webpack_require__) {
  7714. var compareAscending = __webpack_require__(841);
  7715. /**
  7716. * Used by `_.orderBy` to compare multiple properties of a value to another
  7717. * and stable sort them.
  7718. *
  7719. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  7720. * specify an order of "desc" for descending or "asc" for ascending sort order
  7721. * of corresponding values.
  7722. *
  7723. * @private
  7724. * @param {Object} object The object to compare.
  7725. * @param {Object} other The other object to compare.
  7726. * @param {boolean[]|string[]} orders The order to sort by for each property.
  7727. * @returns {number} Returns the sort order indicator for `object`.
  7728. */
  7729. function compareMultiple(object, other, orders) {
  7730. var index = -1,
  7731. objCriteria = object.criteria,
  7732. othCriteria = other.criteria,
  7733. length = objCriteria.length,
  7734. ordersLength = orders.length;
  7735. while (++index < length) {
  7736. var result = compareAscending(objCriteria[index], othCriteria[index]);
  7737. if (result) {
  7738. if (index >= ordersLength) {
  7739. return result;
  7740. }
  7741. var order = orders[index];
  7742. return result * (order == 'desc' ? -1 : 1);
  7743. }
  7744. }
  7745. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  7746. // that causes it, under certain circumstances, to provide the same value for
  7747. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  7748. // for more details.
  7749. //
  7750. // This also ensures a stable sort in V8 and other engines.
  7751. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  7752. return object.index - other.index;
  7753. }
  7754. module.exports = compareMultiple;
  7755. /***/ }),
  7756. /***/ 841:
  7757. /***/ (function(module, exports, __webpack_require__) {
  7758. var isSymbol = __webpack_require__(325);
  7759. /**
  7760. * Compares values to sort them in ascending order.
  7761. *
  7762. * @private
  7763. * @param {*} value The value to compare.
  7764. * @param {*} other The other value to compare.
  7765. * @returns {number} Returns the sort order indicator for `value`.
  7766. */
  7767. function compareAscending(value, other) {
  7768. if (value !== other) {
  7769. var valIsDefined = value !== undefined,
  7770. valIsNull = value === null,
  7771. valIsReflexive = value === value,
  7772. valIsSymbol = isSymbol(value);
  7773. var othIsDefined = other !== undefined,
  7774. othIsNull = other === null,
  7775. othIsReflexive = other === other,
  7776. othIsSymbol = isSymbol(other);
  7777. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  7778. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  7779. (valIsNull && othIsDefined && othIsReflexive) ||
  7780. (!valIsDefined && othIsReflexive) ||
  7781. !valIsReflexive) {
  7782. return 1;
  7783. }
  7784. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  7785. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  7786. (othIsNull && valIsDefined && valIsReflexive) ||
  7787. (!othIsDefined && valIsReflexive) ||
  7788. !othIsReflexive) {
  7789. return -1;
  7790. }
  7791. }
  7792. return 0;
  7793. }
  7794. module.exports = compareAscending;
  7795. /***/ }),
  7796. /***/ 842:
  7797. /***/ (function(module, exports, __webpack_require__) {
  7798. var render = function() {
  7799. var _vm = this
  7800. var _h = _vm.$createElement
  7801. var _c = _vm._self._c || _h
  7802. return _c(
  7803. "div",
  7804. { staticClass: "w-main project-panel" },
  7805. [
  7806. _c("v-title", [_vm._v(_vm._s(_vm.$L("项目面板")))]),
  7807. _vm._v(" "),
  7808. _c("div", { staticClass: "w-nav" }, [
  7809. _c("div", { staticClass: "nav-row" }, [
  7810. _c("div", { staticClass: "w-nav-left" }, [
  7811. _c("div", { staticClass: "page-nav-left" }, [
  7812. _c("span", { staticClass: "bold" }, [
  7813. _vm._v(_vm._s(_vm.projectDetail.title))
  7814. ]),
  7815. _vm._v(" "),
  7816. _vm.loadIng > 0
  7817. ? _c(
  7818. "div",
  7819. { staticClass: "page-nav-loading" },
  7820. [_c("w-loading")],
  7821. 1
  7822. )
  7823. : _c("div", { staticClass: "page-nav-refresh" }, [
  7824. _c(
  7825. "em",
  7826. {
  7827. on: {
  7828. click: function($event) {
  7829. return _vm.getDetail(true)
  7830. }
  7831. }
  7832. },
  7833. [_vm._v(_vm._s(_vm.$L("刷新")))]
  7834. )
  7835. ])
  7836. ])
  7837. ]),
  7838. _vm._v(" "),
  7839. _c("div", { staticClass: "w-nav-flex" }),
  7840. _vm._v(" "),
  7841. _c("div", { staticClass: "w-nav-right" }, [
  7842. _c(
  7843. "span",
  7844. {
  7845. staticClass: "ft hover",
  7846. class: { active: _vm.filtrTask != "" }
  7847. },
  7848. [
  7849. _c(
  7850. "Dropdown",
  7851. {
  7852. attrs: { transfer: "" },
  7853. on: {
  7854. "on-click": function(res) {
  7855. _vm.filtrTask = res
  7856. }
  7857. }
  7858. },
  7859. [
  7860. _c("Icon", {
  7861. staticClass: "icon",
  7862. attrs: { type: "md-funnel" }
  7863. }),
  7864. _vm._v(
  7865. " " +
  7866. _vm._s(_vm.$L("筛选")) +
  7867. "\n "
  7868. ),
  7869. _c(
  7870. "DropdownMenu",
  7871. { attrs: { slot: "list" }, slot: "list" },
  7872. [
  7873. _c(
  7874. "DropdownItem",
  7875. {
  7876. class: { "dropdown-active": _vm.filtrTask == "" },
  7877. attrs: { name: "" }
  7878. },
  7879. [_vm._v(_vm._s(_vm.$L("全部任务")))]
  7880. ),
  7881. _vm._v(" "),
  7882. _c(
  7883. "DropdownItem",
  7884. {
  7885. class: {
  7886. "dropdown-active": _vm.filtrTask == "persons"
  7887. },
  7888. attrs: { name: "persons" }
  7889. },
  7890. [_vm._v(_vm._s(_vm.$L("我负责的任务")))]
  7891. ),
  7892. _vm._v(" "),
  7893. _c(
  7894. "DropdownItem",
  7895. {
  7896. class: {
  7897. "dropdown-active": _vm.filtrTask == "follower"
  7898. },
  7899. attrs: { name: "follower" }
  7900. },
  7901. [_vm._v(_vm._s(_vm.$L("我关注的任务")))]
  7902. ),
  7903. _vm._v(" "),
  7904. _c(
  7905. "DropdownItem",
  7906. {
  7907. class: {
  7908. "dropdown-active": _vm.filtrTask == "create"
  7909. },
  7910. attrs: { name: "create" }
  7911. },
  7912. [_vm._v(_vm._s(_vm.$L("我创建的任务")))]
  7913. )
  7914. ],
  7915. 1
  7916. )
  7917. ],
  7918. 1
  7919. )
  7920. ],
  7921. 1
  7922. ),
  7923. _vm._v(" "),
  7924. _c(
  7925. "span",
  7926. { staticClass: "m768-show-i" },
  7927. [
  7928. _c(
  7929. "Dropdown",
  7930. {
  7931. attrs: { trigger: "click", transfer: "" },
  7932. on: { "on-click": _vm.openProjectDrawer }
  7933. },
  7934. [
  7935. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  7936. _vm._v(" "),
  7937. _c(
  7938. "DropdownMenu",
  7939. { attrs: { slot: "list" }, slot: "list" },
  7940. [
  7941. _c("DropdownItem", { attrs: { name: "lists" } }, [
  7942. _vm._v(_vm._s(_vm.$L("列表")))
  7943. ]),
  7944. _vm._v(" "),
  7945. _c(
  7946. "DropdownItem",
  7947. { attrs: { name: "projectGanttShow" } },
  7948. [_vm._v(_vm._s(_vm.$L("甘特图")))]
  7949. ),
  7950. _vm._v(" "),
  7951. _c("DropdownItem", { attrs: { name: "files" } }, [
  7952. _vm._v(_vm._s(_vm.$L("文件")))
  7953. ]),
  7954. _vm._v(" "),
  7955. _c("DropdownItem", { attrs: { name: "logs" } }, [
  7956. _vm._v(_vm._s(_vm.$L("动态")))
  7957. ]),
  7958. _vm._v(" "),
  7959. _c(
  7960. "DropdownItem",
  7961. { attrs: { name: "openProjectSettingDrawer" } },
  7962. [_vm._v(_vm._s(_vm.$L("设置")))]
  7963. )
  7964. ],
  7965. 1
  7966. )
  7967. ],
  7968. 1
  7969. )
  7970. ],
  7971. 1
  7972. ),
  7973. _vm._v(" "),
  7974. _c("span", { staticClass: "m768-hide-i" }, [
  7975. _c(
  7976. "span",
  7977. {
  7978. staticClass: "ft hover",
  7979. on: {
  7980. click: function($event) {
  7981. return _vm.openProjectDrawer("lists")
  7982. }
  7983. }
  7984. },
  7985. [
  7986. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  7987. _vm._v(" " + _vm._s(_vm.$L("列表")))
  7988. ]
  7989. ),
  7990. _vm._v(" "),
  7991. _c(
  7992. "span",
  7993. {
  7994. staticClass: "ft hover",
  7995. class: { active: _vm.projectGanttShow },
  7996. on: {
  7997. click: function($event) {
  7998. _vm.projectGanttShow = !_vm.projectGanttShow
  7999. }
  8000. }
  8001. },
  8002. [
  8003. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8004. _vm._v(" " + _vm._s(_vm.$L("甘特图")))
  8005. ]
  8006. ),
  8007. _vm._v(" "),
  8008. _c(
  8009. "span",
  8010. {
  8011. staticClass: "ft hover",
  8012. on: {
  8013. click: function($event) {
  8014. return _vm.openProjectDrawer("files")
  8015. }
  8016. }
  8017. },
  8018. [
  8019. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8020. _vm._v(" " + _vm._s(_vm.$L("文件")))
  8021. ]
  8022. ),
  8023. _vm._v(" "),
  8024. _c(
  8025. "span",
  8026. {
  8027. staticClass: "ft hover",
  8028. on: {
  8029. click: function($event) {
  8030. return _vm.openProjectDrawer("logs")
  8031. }
  8032. }
  8033. },
  8034. [
  8035. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8036. _vm._v(" " + _vm._s(_vm.$L("动态")))
  8037. ]
  8038. ),
  8039. _vm._v(" "),
  8040. _c(
  8041. "span",
  8042. {
  8043. staticClass: "ft hover",
  8044. on: {
  8045. click: function($event) {
  8046. return _vm.openProjectSettingDrawer("setting")
  8047. }
  8048. }
  8049. },
  8050. [
  8051. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8052. _vm._v(" " + _vm._s(_vm.$L("设置")))
  8053. ]
  8054. )
  8055. ])
  8056. ])
  8057. ])
  8058. ]),
  8059. _vm._v(" "),
  8060. _c(
  8061. "w-content",
  8062. [
  8063. _c(
  8064. "draggable",
  8065. {
  8066. staticClass: "label-box",
  8067. style: {
  8068. visibility: _vm.projectGanttShow ? "hidden" : "visible"
  8069. },
  8070. attrs: {
  8071. draggable: ".label-draggable",
  8072. animation: 150,
  8073. disabled: _vm.projectSortDisabled || _vm.windowMax768
  8074. },
  8075. on: {
  8076. sort: function($event) {
  8077. return _vm.projectSortUpdate(true)
  8078. }
  8079. },
  8080. model: {
  8081. value: _vm.projectLabel,
  8082. callback: function($$v) {
  8083. _vm.projectLabel = $$v
  8084. },
  8085. expression: "projectLabel"
  8086. }
  8087. },
  8088. [
  8089. _vm._l(_vm.projectLabel, function(label) {
  8090. return _vm.projectLabel.length > 0
  8091. ? _c(
  8092. "div",
  8093. {
  8094. key: label.id,
  8095. staticClass: "label-item label-draggable",
  8096. class: {
  8097. "label-scroll":
  8098. label.hasScroll === true && label.endScroll !== true
  8099. },
  8100. on: {
  8101. mouseenter: function($event) {
  8102. return _vm.projectMouse(label)
  8103. }
  8104. }
  8105. },
  8106. [
  8107. _c(
  8108. "div",
  8109. { staticClass: "label-body" },
  8110. [
  8111. _c(
  8112. "div",
  8113. { staticClass: "title-box" },
  8114. [
  8115. label.loadIng === true
  8116. ? _c(
  8117. "div",
  8118. { staticClass: "title-loading" },
  8119. [_c("w-loading")],
  8120. 1
  8121. )
  8122. : _vm._e(),
  8123. _vm._v(" "),
  8124. _c("h2", [_vm._v(_vm._s(label.title))]),
  8125. _vm._v(" "),
  8126. _c(
  8127. "Dropdown",
  8128. {
  8129. attrs: { trigger: "click", transfer: "" },
  8130. on: {
  8131. "on-click": function($event) {
  8132. return _vm.handleLabel($event, label)
  8133. }
  8134. }
  8135. },
  8136. [
  8137. _c("Icon", { attrs: { type: "ios-more" } }),
  8138. _vm._v(" "),
  8139. _c(
  8140. "DropdownMenu",
  8141. { attrs: { slot: "list" }, slot: "list" },
  8142. [
  8143. _c(
  8144. "Dropdown-item",
  8145. { attrs: { name: "refresh" } },
  8146. [_vm._v(_vm._s(_vm.$L("刷新列表")))]
  8147. ),
  8148. _vm._v(" "),
  8149. _c(
  8150. "Dropdown-item",
  8151. { attrs: { name: "rename" } },
  8152. [_vm._v(_vm._s(_vm.$L("重命名")))]
  8153. ),
  8154. _vm._v(" "),
  8155. _c(
  8156. "Dropdown-item",
  8157. { attrs: { name: "delete" } },
  8158. [_vm._v(_vm._s(_vm.$L("删除")))]
  8159. )
  8160. ],
  8161. 1
  8162. )
  8163. ],
  8164. 1
  8165. )
  8166. ],
  8167. 1
  8168. ),
  8169. _vm._v(" "),
  8170. _c(
  8171. "ScrollerY",
  8172. {
  8173. ref: "box_" + label.id,
  8174. refInFor: true,
  8175. staticClass: "task-box",
  8176. on: {
  8177. "on-scroll": function($event) {
  8178. return _vm.projectBoxScroll($event, label)
  8179. }
  8180. }
  8181. },
  8182. [
  8183. _c(
  8184. "draggable",
  8185. {
  8186. staticClass: "task-main",
  8187. class: [
  8188. _vm.filtrTask
  8189. ? "filtr-" + _vm.filtrTask
  8190. : ""
  8191. ],
  8192. attrs: {
  8193. group: "task",
  8194. draggable: ".task-draggable",
  8195. animation: 150,
  8196. disabled:
  8197. _vm.projectSortDisabled ||
  8198. _vm.windowMax768
  8199. },
  8200. on: {
  8201. sort: function($event) {
  8202. return _vm.projectSortUpdate(false)
  8203. },
  8204. remove: function($event) {
  8205. return _vm.projectSortUpdate(false)
  8206. }
  8207. },
  8208. model: {
  8209. value: label.taskLists,
  8210. callback: function($$v) {
  8211. _vm.$set(label, "taskLists", $$v)
  8212. },
  8213. expression: "label.taskLists"
  8214. }
  8215. },
  8216. [
  8217. _vm._l(label.taskLists, function(task) {
  8218. return _c(
  8219. "div",
  8220. {
  8221. key: task.id,
  8222. staticClass:
  8223. "task-item task-draggable",
  8224. class: {
  8225. "persons-item": _vm.isPersonsTask(
  8226. task
  8227. ),
  8228. "follower-item": _vm.isFollowerTask(
  8229. task
  8230. ),
  8231. "create-item": _vm.isCreateTask(
  8232. task
  8233. )
  8234. }
  8235. },
  8236. [
  8237. _c(
  8238. "div",
  8239. {
  8240. staticClass: "task-shadow",
  8241. class: [
  8242. "p" + task.level,
  8243. task.complete ? "complete" : "",
  8244. task.overdue ? "overdue" : "",
  8245. task.isNewtask === true
  8246. ? "newtask"
  8247. : ""
  8248. ],
  8249. on: {
  8250. click: function($event) {
  8251. return _vm.openTaskModal(task)
  8252. }
  8253. }
  8254. },
  8255. [
  8256. _c(
  8257. "div",
  8258. {
  8259. staticClass:
  8260. "subtask-progress"
  8261. },
  8262. [
  8263. _c("em", {
  8264. style: {
  8265. width:
  8266. _vm.subtaskProgress(
  8267. task
  8268. ) + "%"
  8269. }
  8270. })
  8271. ]
  8272. ),
  8273. _vm._v(" "),
  8274. _c(
  8275. "div",
  8276. { staticClass: "task-title" },
  8277. [
  8278. _vm._v(_vm._s(task.title)),
  8279. task.desc
  8280. ? _c("Icon", {
  8281. attrs: {
  8282. type:
  8283. "ios-list-box-outline"
  8284. }
  8285. })
  8286. : _vm._e()
  8287. ],
  8288. 1
  8289. ),
  8290. _vm._v(" "),
  8291. _c(
  8292. "div",
  8293. {
  8294. staticClass: "task-plantime"
  8295. },
  8296. [
  8297. _c(
  8298. "span",
  8299. {
  8300. staticClass:
  8301. "task-title-time"
  8302. },
  8303. [
  8304. _vm._v(
  8305. _vm._s(task.plantime)
  8306. )
  8307. ]
  8308. )
  8309. ]
  8310. ),
  8311. _vm._v(" "),
  8312. _c(
  8313. "div",
  8314. { staticClass: "task-more" },
  8315. [
  8316. task.overdue
  8317. ? _c(
  8318. "div",
  8319. {
  8320. staticClass:
  8321. "task-status"
  8322. },
  8323. [
  8324. _vm._v(
  8325. _vm._s(
  8326. _vm.$L("已超期")
  8327. )
  8328. )
  8329. ]
  8330. )
  8331. : task.complete
  8332. ? _c(
  8333. "div",
  8334. {
  8335. staticClass:
  8336. "task-status"
  8337. },
  8338. [
  8339. _vm._v(
  8340. _vm._s(
  8341. _vm.$L("已完成")
  8342. )
  8343. )
  8344. ]
  8345. )
  8346. : _c(
  8347. "div",
  8348. {
  8349. staticClass:
  8350. "task-status"
  8351. },
  8352. [
  8353. _vm._v(
  8354. _vm._s(
  8355. _vm.$L("未完成")
  8356. )
  8357. )
  8358. ]
  8359. ),
  8360. _vm._v(" "),
  8361. _c(
  8362. "div",
  8363. {
  8364. staticClass:
  8365. "task-persons",
  8366. class: {
  8367. "persons-more":
  8368. task.persons.length >
  8369. 1
  8370. }
  8371. },
  8372. _vm._l(
  8373. task.persons,
  8374. function(person, iper) {
  8375. return _c(
  8376. "Tooltip",
  8377. {
  8378. key: iper,
  8379. staticClass:
  8380. "task-userimg",
  8381. attrs: {
  8382. content:
  8383. person.nickname ||
  8384. person.username,
  8385. transfer: ""
  8386. }
  8387. },
  8388. [
  8389. _c("UserImg", {
  8390. staticClass:
  8391. "avatar",
  8392. attrs: {
  8393. info: person
  8394. }
  8395. })
  8396. ],
  8397. 1
  8398. )
  8399. }
  8400. ),
  8401. 1
  8402. )
  8403. ]
  8404. )
  8405. ]
  8406. )
  8407. ]
  8408. )
  8409. }),
  8410. _vm._v(" "),
  8411. _c(
  8412. "div",
  8413. {
  8414. attrs: { slot: "footer" },
  8415. slot: "footer"
  8416. },
  8417. [
  8418. _c("project-add-task", {
  8419. ref: "add_" + label.id,
  8420. refInFor: true,
  8421. attrs: {
  8422. placeholder:
  8423. _vm.$L("添加任务至") +
  8424. '"' +
  8425. label.title +
  8426. '"',
  8427. projectid: label.projectid,
  8428. labelid: label.id
  8429. },
  8430. on: {
  8431. "on-add-success": function($event) {
  8432. return _vm.addTaskSuccess(
  8433. $event,
  8434. label
  8435. )
  8436. }
  8437. }
  8438. })
  8439. ],
  8440. 1
  8441. )
  8442. ],
  8443. 2
  8444. )
  8445. ],
  8446. 1
  8447. )
  8448. ],
  8449. 1
  8450. ),
  8451. _vm._v(" "),
  8452. _c(
  8453. "div",
  8454. {
  8455. staticClass: "label-bottom",
  8456. on: {
  8457. click: function($event) {
  8458. return _vm.projectFocus(label)
  8459. }
  8460. }
  8461. },
  8462. [
  8463. _c("Icon", {
  8464. staticClass: "label-bottom-icon",
  8465. attrs: { type: "ios-add" }
  8466. })
  8467. ],
  8468. 1
  8469. )
  8470. ]
  8471. )
  8472. : _vm._e()
  8473. }),
  8474. _vm._v(" "),
  8475. _vm.loadDetailed
  8476. ? _c(
  8477. "div",
  8478. {
  8479. staticClass: "label-item label-create",
  8480. attrs: { slot: "footer" },
  8481. on: { click: _vm.addLabel },
  8482. slot: "footer"
  8483. },
  8484. [
  8485. _c("div", { staticClass: "label-body" }, [
  8486. _c("div", { staticClass: "trigger-box ft hover" }, [
  8487. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  8488. _vm._v(_vm._s(_vm.$L("添加一个新列表")))
  8489. ])
  8490. ])
  8491. ]
  8492. )
  8493. : _vm._e()
  8494. ],
  8495. 2
  8496. ),
  8497. _vm._v(" "),
  8498. _vm.projectGanttShow
  8499. ? _c("project-gantt", {
  8500. attrs: { projectLabel: _vm.projectLabel },
  8501. on: {
  8502. "on-close": function($event) {
  8503. _vm.projectGanttShow = false
  8504. }
  8505. }
  8506. })
  8507. : _vm._e()
  8508. ],
  8509. 1
  8510. ),
  8511. _vm._v(" "),
  8512. _c(
  8513. "WDrawer",
  8514. {
  8515. attrs: { maxWidth: "1080" },
  8516. model: {
  8517. value: _vm.projectDrawerShow,
  8518. callback: function($$v) {
  8519. _vm.projectDrawerShow = $$v
  8520. },
  8521. expression: "projectDrawerShow"
  8522. }
  8523. },
  8524. [
  8525. _vm.projectDrawerShow
  8526. ? _c(
  8527. "Tabs",
  8528. {
  8529. model: {
  8530. value: _vm.projectDrawerTab,
  8531. callback: function($$v) {
  8532. _vm.projectDrawerTab = $$v
  8533. },
  8534. expression: "projectDrawerTab"
  8535. }
  8536. },
  8537. [
  8538. _c(
  8539. "TabPane",
  8540. { attrs: { label: _vm.$L("任务列表"), name: "lists" } },
  8541. [
  8542. _c("project-task-lists", {
  8543. attrs: {
  8544. canload:
  8545. _vm.projectDrawerShow &&
  8546. _vm.projectDrawerTab == "lists",
  8547. projectid: _vm.projectid,
  8548. labelLists: _vm.projectSimpleLabel
  8549. }
  8550. })
  8551. ],
  8552. 1
  8553. ),
  8554. _vm._v(" "),
  8555. _c(
  8556. "TabPane",
  8557. { attrs: { label: _vm.$L("文件列表"), name: "files" } },
  8558. [
  8559. _c("project-task-files", {
  8560. attrs: {
  8561. canload:
  8562. _vm.projectDrawerShow &&
  8563. _vm.projectDrawerTab == "files",
  8564. projectid: _vm.projectid
  8565. }
  8566. })
  8567. ],
  8568. 1
  8569. ),
  8570. _vm._v(" "),
  8571. _c(
  8572. "TabPane",
  8573. { attrs: { label: _vm.$L("项目动态"), name: "logs" } },
  8574. [
  8575. _c("project-task-logs", {
  8576. attrs: {
  8577. canload:
  8578. _vm.projectDrawerShow &&
  8579. _vm.projectDrawerTab == "logs",
  8580. projectid: _vm.projectid
  8581. }
  8582. })
  8583. ],
  8584. 1
  8585. )
  8586. ],
  8587. 1
  8588. )
  8589. : _vm._e()
  8590. ],
  8591. 1
  8592. ),
  8593. _vm._v(" "),
  8594. _c(
  8595. "WDrawer",
  8596. {
  8597. attrs: { maxWidth: "1000" },
  8598. model: {
  8599. value: _vm.projectSettingDrawerShow,
  8600. callback: function($$v) {
  8601. _vm.projectSettingDrawerShow = $$v
  8602. },
  8603. expression: "projectSettingDrawerShow"
  8604. }
  8605. },
  8606. [
  8607. _vm.projectSettingDrawerShow
  8608. ? _c(
  8609. "Tabs",
  8610. {
  8611. model: {
  8612. value: _vm.projectSettingDrawerTab,
  8613. callback: function($$v) {
  8614. _vm.projectSettingDrawerTab = $$v
  8615. },
  8616. expression: "projectSettingDrawerTab"
  8617. }
  8618. },
  8619. [
  8620. _c(
  8621. "TabPane",
  8622. { attrs: { label: _vm.$L("项目设置"), name: "setting" } },
  8623. [
  8624. _c("project-setting", {
  8625. attrs: {
  8626. canload:
  8627. _vm.projectSettingDrawerShow &&
  8628. _vm.projectSettingDrawerTab == "setting",
  8629. projectid: _vm.projectid
  8630. },
  8631. on: { "on-change": _vm.getDetail }
  8632. })
  8633. ],
  8634. 1
  8635. ),
  8636. _vm._v(" "),
  8637. _c(
  8638. "TabPane",
  8639. {
  8640. attrs: { label: _vm.$L("已归档任务"), name: "archived" }
  8641. },
  8642. [
  8643. _c("project-archived", {
  8644. attrs: {
  8645. canload:
  8646. _vm.projectSettingDrawerShow &&
  8647. _vm.projectSettingDrawerTab == "archived",
  8648. projectid: _vm.projectid
  8649. }
  8650. })
  8651. ],
  8652. 1
  8653. ),
  8654. _vm._v(" "),
  8655. _c(
  8656. "TabPane",
  8657. {
  8658. attrs: { label: _vm.$L("项目统计"), name: "statistics" }
  8659. },
  8660. [
  8661. _c("project-statistics", {
  8662. ref: "statistics",
  8663. attrs: {
  8664. canload:
  8665. _vm.projectSettingDrawerShow &&
  8666. _vm.projectSettingDrawerTab == "statistics",
  8667. projectid: _vm.projectid
  8668. }
  8669. })
  8670. ],
  8671. 1
  8672. ),
  8673. _vm._v(" "),
  8674. _c(
  8675. "TabPane",
  8676. { attrs: { label: _vm.$L("成员管理"), name: "member" } },
  8677. [
  8678. _c("project-users", {
  8679. attrs: {
  8680. canload:
  8681. _vm.projectSettingDrawerShow &&
  8682. _vm.projectSettingDrawerTab == "member",
  8683. projectid: _vm.projectid
  8684. }
  8685. })
  8686. ],
  8687. 1
  8688. )
  8689. ],
  8690. 1
  8691. )
  8692. : _vm._e()
  8693. ],
  8694. 1
  8695. )
  8696. ],
  8697. 1
  8698. )
  8699. }
  8700. var staticRenderFns = []
  8701. render._withStripped = true
  8702. module.exports = { render: render, staticRenderFns: staticRenderFns }
  8703. if (false) {
  8704. module.hot.accept()
  8705. if (module.hot.data) {
  8706. require("vue-hot-reload-api") .rerender("data-v-4bac3242", module.exports)
  8707. }
  8708. }
  8709. /***/ })
  8710. });