5.js 159 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998
  1. webpackJsonp([5],{
  2. /***/ 290:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(753)
  8. }
  9. var normalizeComponent = __webpack_require__(2)
  10. /* script */
  11. var __vue_script__ = __webpack_require__(755)
  12. /* template */
  13. var __vue_template__ = __webpack_require__(771)
  14. /* template functional */
  15. var __vue_template_functional__ = false
  16. /* styles */
  17. var __vue_styles__ = injectStyle
  18. /* scopeId */
  19. var __vue_scopeId__ = "data-v-426c4faa"
  20. /* moduleIdentifier (server only) */
  21. var __vue_module_identifier__ = null
  22. var Component = normalizeComponent(
  23. __vue_script__,
  24. __vue_template__,
  25. __vue_template_functional__,
  26. __vue_styles__,
  27. __vue_scopeId__,
  28. __vue_module_identifier__
  29. )
  30. Component.options.__file = "resources/assets/js/main/pages/project.vue"
  31. /* hot reload */
  32. if (false) {(function () {
  33. var hotAPI = require("vue-hot-reload-api")
  34. hotAPI.install(require("vue"), false)
  35. if (!hotAPI.compatible) return
  36. module.hot.accept()
  37. if (!module.hot.data) {
  38. hotAPI.createRecord("data-v-426c4faa", Component.options)
  39. } else {
  40. hotAPI.reload("data-v-426c4faa", Component.options)
  41. }
  42. module.hot.dispose(function (data) {
  43. disposed = true
  44. })
  45. })()}
  46. module.exports = Component.exports
  47. /***/ }),
  48. /***/ 307:
  49. /***/ (function(module, exports, __webpack_require__) {
  50. var disposed = false
  51. function injectStyle (ssrContext) {
  52. if (disposed) return
  53. __webpack_require__(308)
  54. }
  55. var normalizeComponent = __webpack_require__(2)
  56. /* script */
  57. var __vue_script__ = __webpack_require__(310)
  58. /* template */
  59. var __vue_template__ = __webpack_require__(311)
  60. /* template functional */
  61. var __vue_template_functional__ = false
  62. /* styles */
  63. var __vue_styles__ = injectStyle
  64. /* scopeId */
  65. var __vue_scopeId__ = "data-v-35be3d57"
  66. /* moduleIdentifier (server only) */
  67. var __vue_module_identifier__ = null
  68. var Component = normalizeComponent(
  69. __vue_script__,
  70. __vue_template__,
  71. __vue_template_functional__,
  72. __vue_styles__,
  73. __vue_scopeId__,
  74. __vue_module_identifier__
  75. )
  76. Component.options.__file = "resources/assets/js/main/components/WContent.vue"
  77. /* hot reload */
  78. if (false) {(function () {
  79. var hotAPI = require("vue-hot-reload-api")
  80. hotAPI.install(require("vue"), false)
  81. if (!hotAPI.compatible) return
  82. module.hot.accept()
  83. if (!module.hot.data) {
  84. hotAPI.createRecord("data-v-35be3d57", Component.options)
  85. } else {
  86. hotAPI.reload("data-v-35be3d57", Component.options)
  87. }
  88. module.hot.dispose(function (data) {
  89. disposed = true
  90. })
  91. })()}
  92. module.exports = Component.exports
  93. /***/ }),
  94. /***/ 308:
  95. /***/ (function(module, exports, __webpack_require__) {
  96. // style-loader: Adds some css to the DOM by adding a <style> tag
  97. // load the styles
  98. var content = __webpack_require__(309);
  99. if(typeof content === 'string') content = [[module.i, content, '']];
  100. if(content.locals) module.exports = content.locals;
  101. // add the styles to the DOM
  102. var update = __webpack_require__(1)("5ee96958", content, false, {});
  103. // Hot Module Replacement
  104. if(false) {
  105. // When the styles change, update the <style> tags
  106. if(!content.locals) {
  107. 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() {
  108. 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");
  109. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  110. update(newContent);
  111. });
  112. }
  113. // When the module is disposed, remove the <style> tags
  114. module.hot.dispose(function() { update(); });
  115. }
  116. /***/ }),
  117. /***/ 309:
  118. /***/ (function(module, exports, __webpack_require__) {
  119. exports = module.exports = __webpack_require__(0)(false);
  120. // imports
  121. // module
  122. 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", ""]);
  123. // exports
  124. /***/ }),
  125. /***/ 310:
  126. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  127. "use strict";
  128. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. /* harmony default export */ __webpack_exports__["default"] = ({
  154. name: 'WContent',
  155. data: function data() {
  156. return {
  157. bgid: -1
  158. };
  159. },
  160. mounted: function mounted() {
  161. this.bgid = $A.runNum(this.usrInfo.bgid);
  162. },
  163. watch: {
  164. usrInfo: {
  165. handler: function handler(info) {
  166. this.bgid = $A.runNum(info.bgid);
  167. },
  168. deep: true
  169. }
  170. },
  171. methods: {
  172. getBgUrl: function getBgUrl(id, thumb) {
  173. if (id < 0) {
  174. return 'none';
  175. }
  176. id = Math.max(1, parseInt(id));
  177. return 'url(' + window.location.origin + '/images/bg/' + (thumb ? 'thumb/' : '') + id + '.jpg' + ')';
  178. }
  179. }
  180. });
  181. /***/ }),
  182. /***/ 311:
  183. /***/ (function(module, exports, __webpack_require__) {
  184. var render = function() {
  185. var _vm = this
  186. var _h = _vm.$createElement
  187. var _c = _vm._self._c || _h
  188. return _c(
  189. "div",
  190. {
  191. staticClass: "w-content",
  192. style: "background-image:" + _vm.getBgUrl(_vm.bgid)
  193. },
  194. [_vm._t("default")],
  195. 2
  196. )
  197. }
  198. var staticRenderFns = []
  199. render._withStripped = true
  200. module.exports = { render: render, staticRenderFns: staticRenderFns }
  201. if (false) {
  202. module.hot.accept()
  203. if (module.hot.data) {
  204. require("vue-hot-reload-api") .rerender("data-v-35be3d57", module.exports)
  205. }
  206. }
  207. /***/ }),
  208. /***/ 324:
  209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  210. "use strict";
  211. /* harmony default export */ __webpack_exports__["a"] = ({
  212. methods: {
  213. openProject: function openProject(projectid, otherParam) {
  214. var statistics = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  215. this.goForward({ name: 'project-panel', params: { projectid: projectid, statistics: statistics, other: otherParam || {} } });
  216. },
  217. outProject: function outProject(projectid, successCallback) {
  218. var _this = this;
  219. this.$Modal.confirm({
  220. title: this.$L('退出项目'),
  221. content: this.$L('你确定要退出此项目吗?'),
  222. loading: true,
  223. onOk: function onOk() {
  224. $A.apiAjax({
  225. url: 'project/out?projectid=' + projectid,
  226. error: function error() {
  227. _this.$Modal.remove();
  228. alert(_this.$L('网络繁忙,请稍后再试!'));
  229. },
  230. success: function success(res) {
  231. _this.$Modal.remove();
  232. typeof successCallback === "function" && successCallback();
  233. setTimeout(function () {
  234. if (res.ret === 1) {
  235. _this.$Message.success(res.msg);
  236. } else {
  237. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  238. }
  239. }, 350);
  240. }
  241. });
  242. }
  243. });
  244. },
  245. favorProject: function favorProject(act, projectid, successCallback) {
  246. var _this2 = this;
  247. $A.apiAjax({
  248. url: 'project/favor',
  249. data: {
  250. act: act,
  251. projectid: projectid
  252. },
  253. error: function error() {
  254. _this2.$Modal.remove();
  255. alert(_this2.$L('网络繁忙,请稍后再试!'));
  256. },
  257. success: function success(res) {
  258. _this2.$Modal.remove();
  259. typeof successCallback === "function" && successCallback();
  260. setTimeout(function () {
  261. if (res.ret === 1) {
  262. _this2.$Message.success(res.msg);
  263. } else {
  264. _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
  265. }
  266. }, 350);
  267. }
  268. });
  269. },
  270. deleteProject: function deleteProject(projectid, successCallback) {
  271. var _this3 = this;
  272. this.$Modal.confirm({
  273. title: this.$L('删除项目'),
  274. content: this.$L('你确定要删除此项目吗?'),
  275. loading: true,
  276. onOk: function onOk() {
  277. $A.apiAjax({
  278. url: 'project/delete?projectid=' + projectid,
  279. error: function error() {
  280. _this3.$Modal.remove();
  281. alert(_this3.$L('网络繁忙,请稍后再试!'));
  282. },
  283. success: function success(res) {
  284. _this3.$Modal.remove();
  285. typeof successCallback === "function" && successCallback();
  286. setTimeout(function () {
  287. if (res.ret === 1) {
  288. _this3.$Message.success(res.msg);
  289. $A.triggerTaskInfoListener('deleteproject', { projectid: projectid });
  290. } else {
  291. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  292. }
  293. }, 350);
  294. }
  295. });
  296. }
  297. });
  298. }
  299. }
  300. });
  301. /***/ }),
  302. /***/ 339:
  303. /***/ (function(module, exports, __webpack_require__) {
  304. var disposed = false
  305. function injectStyle (ssrContext) {
  306. if (disposed) return
  307. __webpack_require__(340)
  308. }
  309. var normalizeComponent = __webpack_require__(2)
  310. /* script */
  311. var __vue_script__ = __webpack_require__(342)
  312. /* template */
  313. var __vue_template__ = __webpack_require__(343)
  314. /* template functional */
  315. var __vue_template_functional__ = false
  316. /* styles */
  317. var __vue_styles__ = injectStyle
  318. /* scopeId */
  319. var __vue_scopeId__ = null
  320. /* moduleIdentifier (server only) */
  321. var __vue_module_identifier__ = null
  322. var Component = normalizeComponent(
  323. __vue_script__,
  324. __vue_template__,
  325. __vue_template_functional__,
  326. __vue_styles__,
  327. __vue_scopeId__,
  328. __vue_module_identifier__
  329. )
  330. Component.options.__file = "resources/assets/js/main/components/TagInput.vue"
  331. /* hot reload */
  332. if (false) {(function () {
  333. var hotAPI = require("vue-hot-reload-api")
  334. hotAPI.install(require("vue"), false)
  335. if (!hotAPI.compatible) return
  336. module.hot.accept()
  337. if (!module.hot.data) {
  338. hotAPI.createRecord("data-v-63d616a5", Component.options)
  339. } else {
  340. hotAPI.reload("data-v-63d616a5", Component.options)
  341. }
  342. module.hot.dispose(function (data) {
  343. disposed = true
  344. })
  345. })()}
  346. module.exports = Component.exports
  347. /***/ }),
  348. /***/ 340:
  349. /***/ (function(module, exports, __webpack_require__) {
  350. // style-loader: Adds some css to the DOM by adding a <style> tag
  351. // load the styles
  352. var content = __webpack_require__(341);
  353. if(typeof content === 'string') content = [[module.i, content, '']];
  354. if(content.locals) module.exports = content.locals;
  355. // add the styles to the DOM
  356. var update = __webpack_require__(1)("72d872d6", content, false, {});
  357. // Hot Module Replacement
  358. if(false) {
  359. // When the styles change, update the <style> tags
  360. if(!content.locals) {
  361. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-63d616a5\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TagInput.vue", function() {
  362. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-63d616a5\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./TagInput.vue");
  363. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  364. update(newContent);
  365. });
  366. }
  367. // When the module is disposed, remove the <style> tags
  368. module.hot.dispose(function() { update(); });
  369. }
  370. /***/ }),
  371. /***/ 341:
  372. /***/ (function(module, exports, __webpack_require__) {
  373. exports = module.exports = __webpack_require__(0)(false);
  374. // imports
  375. // module
  376. exports.push([module.i, "\n.tags-wrap {\n display: inline-block;\n width: 100%;\n min-height: 32px;\n padding: 2px 7px;\n border: 1px solid #dddee1;\n border-radius: 4px;\n color: #495060;\n background: #fff;\n position: relative;\n cursor: text;\n vertical-align: middle;\n line-height: normal;\n -webkit-transition: border .2s ease-in-out, background .2s ease-in-out, -webkit-box-shadow .2s ease-in-out;\n transition: border .2s ease-in-out, background .2s ease-in-out, -webkit-box-shadow .2s ease-in-out;\n}\n.tags-wrap .tags-item, .tags-wrap .tags-input {\n position: relative;\n float: left;\n color: #495060;\n background-color: #f1f8ff;\n border-radius: 3px;\n line-height: 22px;\n margin: 2px 6px 2px 0;\n padding: 0 20px 0 6px;\n}\n.tags-wrap .tags-item .tags-content, .tags-wrap .tags-input .tags-content {\n line-height: 22px;\n}\n.tags-wrap .tags-item .tags-del, .tags-wrap .tags-input .tags-del {\n width: 20px;\n height: 22px;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: -1px;\n right: 0;\n}\n.tags-wrap .tags-input {\n max-width: 80%;\n padding: 0;\n background-color: inherit;\n border: none;\n color: inherit;\n height: 22px;\n line-height: 22px;\n -webkit-appearance: none;\n outline: none;\n resize: none;\n overflow: hidden;\n}\n.tags-wrap .tags-input::-webkit-input-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::-moz-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::-ms-input-placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-input::placeholder {\n color: #bbbbbb;\n}\n.tags-wrap .tags-placeholder {\n position: absolute;\n left: 0;\n top: 0;\n z-index: -1;\n color: #ffffff00;\n}\n.tags-wrap::after {\n content: \"\";\n display: block;\n height: 0;\n clear: both;\n}\n", ""]);
  377. // exports
  378. /***/ }),
  379. /***/ 342:
  380. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  381. "use strict";
  382. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  383. //
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  442. //
  443. //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. //
  465. /* harmony default export */ __webpack_exports__["default"] = ({
  466. name: 'TagInput',
  467. props: {
  468. value: {
  469. default: ''
  470. },
  471. cut: {
  472. default: ','
  473. },
  474. disabled: {
  475. type: Boolean,
  476. default: false
  477. },
  478. readonly: {
  479. type: Boolean,
  480. default: false
  481. },
  482. placeholder: {
  483. default: ''
  484. },
  485. max: {
  486. default: 0
  487. }
  488. },
  489. data: function data() {
  490. var disSource = [];
  491. this.value.split(",").forEach(function (item) {
  492. if (item) {
  493. disSource.push(item);
  494. }
  495. });
  496. return {
  497. minWidth: 80,
  498. tis: '',
  499. tisTimeout: null,
  500. showPlaceholder: true,
  501. content: '',
  502. disSource: disSource
  503. };
  504. },
  505. mounted: function mounted() {
  506. this.wayMinWidth();
  507. },
  508. watch: {
  509. placeholder: function placeholder() {
  510. this.wayMinWidth();
  511. },
  512. value: function value(val) {
  513. var disSource = [];
  514. if ($A.count(val) > 0) {
  515. val.split(",").forEach(function (item) {
  516. if (item) {
  517. disSource.push(item);
  518. }
  519. });
  520. }
  521. this.disSource = disSource;
  522. },
  523. disSource: function disSource(val) {
  524. var _this = this;
  525. var temp = '';
  526. val.forEach(function (item) {
  527. if (temp != '') {
  528. temp += _this.cut;
  529. }
  530. temp += item;
  531. });
  532. this.$emit('input', temp);
  533. }
  534. },
  535. methods: {
  536. wayMinWidth: function wayMinWidth() {
  537. var _this2 = this;
  538. this.showPlaceholder = true;
  539. this.$nextTick(function () {
  540. if (_this2.$refs.myPlaceholder) {
  541. _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
  542. }
  543. setTimeout(function () {
  544. try {
  545. _this2.minWidth = Math.max(_this2.minWidth, _this2.$refs.myPlaceholder.offsetWidth);
  546. _this2.showPlaceholder = false;
  547. } catch (e) {}
  548. if (!$A(_this2.$refs.myPlaceholder).is(":visible")) {
  549. _this2.wayMinWidth();
  550. }
  551. }, 500);
  552. });
  553. },
  554. pasteText: function pasteText(e) {
  555. e.preventDefault();
  556. var content = (e.clipboardData || window.clipboardData).getData('text');
  557. this.addTag(false, content);
  558. },
  559. clickWrap: function clickWrap() {
  560. this.$refs.myTextarea.focus();
  561. },
  562. downEnter: function downEnter(e) {
  563. e.preventDefault();
  564. },
  565. addTag: function addTag(e, content) {
  566. var _this3 = this;
  567. if (e.keyCode === 13 || e === false) {
  568. if (content.trim() != '' && this.disSource.indexOf(content.trim()) === -1) {
  569. this.disSource.push(content.trim());
  570. }
  571. this.content = '';
  572. } else {
  573. if (this.max > 0 && this.disSource.length >= this.max) {
  574. this.content = '';
  575. this.tis = '最多只能添加' + this.max + '个';
  576. clearInterval(this.tisTimeout);
  577. this.tisTimeout = setTimeout(function () {
  578. _this3.tis = '';
  579. }, 2000);
  580. return;
  581. }
  582. var temp = content.trim();
  583. var cutPos = temp.length - this.cut.length;
  584. if (temp != '' && temp.substring(cutPos) === this.cut) {
  585. temp = temp.substring(0, cutPos);
  586. if (temp.trim() != '' && this.disSource.indexOf(temp.trim()) === -1) {
  587. this.disSource.push(temp.trim());
  588. }
  589. this.content = '';
  590. }
  591. }
  592. },
  593. delTag: function delTag(index) {
  594. if (index === false) {
  595. if (this.content !== '') {
  596. return;
  597. }
  598. index = this.disSource.length - 1;
  599. }
  600. this.disSource.splice(index, 1);
  601. }
  602. }
  603. });
  604. /***/ }),
  605. /***/ 343:
  606. /***/ (function(module, exports, __webpack_require__) {
  607. var render = function() {
  608. var _vm = this
  609. var _h = _vm.$createElement
  610. var _c = _vm._self._c || _h
  611. return _c(
  612. "div",
  613. {
  614. staticClass: "tags-wrap",
  615. on: {
  616. paste: function($event) {
  617. return _vm.pasteText($event)
  618. },
  619. click: _vm.clickWrap
  620. }
  621. },
  622. [
  623. _vm._l(_vm.disSource, function(text, index) {
  624. return _c("div", { staticClass: "tags-item" }, [
  625. _c(
  626. "span",
  627. {
  628. staticClass: "tags-content",
  629. on: {
  630. click: function($event) {
  631. $event.stopPropagation()
  632. }
  633. }
  634. },
  635. [_vm._v(_vm._s(text))]
  636. ),
  637. _c(
  638. "span",
  639. {
  640. staticClass: "tags-del",
  641. on: {
  642. click: function($event) {
  643. $event.stopPropagation()
  644. return _vm.delTag(index)
  645. }
  646. }
  647. },
  648. [_vm._v("×")]
  649. )
  650. ])
  651. }),
  652. _vm._v(" "),
  653. _c("textarea", {
  654. directives: [
  655. {
  656. name: "model",
  657. rawName: "v-model",
  658. value: _vm.content,
  659. expression: "content"
  660. }
  661. ],
  662. ref: "myTextarea",
  663. staticClass: "tags-input",
  664. style: { minWidth: _vm.minWidth + "px" },
  665. attrs: {
  666. placeholder: _vm.tis || _vm.placeholder,
  667. disabled: _vm.disabled,
  668. readonly: _vm.readonly
  669. },
  670. domProps: { value: _vm.content },
  671. on: {
  672. keydown: [
  673. function($event) {
  674. if (
  675. !$event.type.indexOf("key") &&
  676. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  677. ) {
  678. return null
  679. }
  680. return _vm.downEnter($event)
  681. },
  682. function($event) {
  683. if (
  684. !$event.type.indexOf("key") &&
  685. _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
  686. "Backspace",
  687. "Delete",
  688. "Del"
  689. ])
  690. ) {
  691. return null
  692. }
  693. return _vm.delTag(false)
  694. }
  695. ],
  696. keyup: function($event) {
  697. return _vm.addTag($event, _vm.content)
  698. },
  699. blur: function($event) {
  700. return _vm.addTag(false, _vm.content)
  701. },
  702. input: function($event) {
  703. if ($event.target.composing) {
  704. return
  705. }
  706. _vm.content = $event.target.value
  707. }
  708. }
  709. }),
  710. _vm._v(" "),
  711. _vm.showPlaceholder || _vm.tis !== ""
  712. ? _c(
  713. "span",
  714. { ref: "myPlaceholder", staticClass: "tags-placeholder" },
  715. [_vm._v(_vm._s(_vm.tis || _vm.placeholder))]
  716. )
  717. : _vm._e()
  718. ],
  719. 2
  720. )
  721. }
  722. var staticRenderFns = []
  723. render._withStripped = true
  724. module.exports = { render: render, staticRenderFns: staticRenderFns }
  725. if (false) {
  726. module.hot.accept()
  727. if (module.hot.data) {
  728. require("vue-hot-reload-api") .rerender("data-v-63d616a5", module.exports)
  729. }
  730. }
  731. /***/ }),
  732. /***/ 344:
  733. /***/ (function(module, exports, __webpack_require__) {
  734. var disposed = false
  735. function injectStyle (ssrContext) {
  736. if (disposed) return
  737. __webpack_require__(345)
  738. }
  739. var normalizeComponent = __webpack_require__(2)
  740. /* script */
  741. var __vue_script__ = __webpack_require__(347)
  742. /* template */
  743. var __vue_template__ = __webpack_require__(348)
  744. /* template functional */
  745. var __vue_template_functional__ = false
  746. /* styles */
  747. var __vue_styles__ = injectStyle
  748. /* scopeId */
  749. var __vue_scopeId__ = "data-v-1b3dd966"
  750. /* moduleIdentifier (server only) */
  751. var __vue_module_identifier__ = null
  752. var Component = normalizeComponent(
  753. __vue_script__,
  754. __vue_template__,
  755. __vue_template_functional__,
  756. __vue_styles__,
  757. __vue_scopeId__,
  758. __vue_module_identifier__
  759. )
  760. Component.options.__file = "resources/assets/js/main/components/project/archived.vue"
  761. /* hot reload */
  762. if (false) {(function () {
  763. var hotAPI = require("vue-hot-reload-api")
  764. hotAPI.install(require("vue"), false)
  765. if (!hotAPI.compatible) return
  766. module.hot.accept()
  767. if (!module.hot.data) {
  768. hotAPI.createRecord("data-v-1b3dd966", Component.options)
  769. } else {
  770. hotAPI.reload("data-v-1b3dd966", Component.options)
  771. }
  772. module.hot.dispose(function (data) {
  773. disposed = true
  774. })
  775. })()}
  776. module.exports = Component.exports
  777. /***/ }),
  778. /***/ 345:
  779. /***/ (function(module, exports, __webpack_require__) {
  780. // style-loader: Adds some css to the DOM by adding a <style> tag
  781. // load the styles
  782. var content = __webpack_require__(346);
  783. if(typeof content === 'string') content = [[module.i, content, '']];
  784. if(content.locals) module.exports = content.locals;
  785. // add the styles to the DOM
  786. var update = __webpack_require__(1)("3653cc78", content, false, {});
  787. // Hot Module Replacement
  788. if(false) {
  789. // When the styles change, update the <style> tags
  790. if(!content.locals) {
  791. 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() {
  792. 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");
  793. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  794. update(newContent);
  795. });
  796. }
  797. // When the module is disposed, remove the <style> tags
  798. module.hot.dispose(function() { update(); });
  799. }
  800. /***/ }),
  801. /***/ 346:
  802. /***/ (function(module, exports, __webpack_require__) {
  803. exports = module.exports = __webpack_require__(0)(false);
  804. // imports
  805. // module
  806. exports.push([module.i, "\n.project-archived .tableFill[data-v-1b3dd966] {\n margin: 12px 12px 20px;\n}\n", ""]);
  807. // exports
  808. /***/ }),
  809. /***/ 347:
  810. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  811. "use strict";
  812. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  813. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  814. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  815. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  816. //
  817. //
  818. //
  819. //
  820. //
  821. //
  822. //
  823. //
  824. //
  825. //
  826. //
  827. //
  828. //
  829. //
  830. //
  831. //
  832. //
  833. //
  834. /**
  835. * 项目已归档任务
  836. */
  837. /* harmony default export */ __webpack_exports__["default"] = ({
  838. name: 'ProjectArchived',
  839. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  840. props: {
  841. projectid: {
  842. default: 0
  843. },
  844. canload: {
  845. type: Boolean,
  846. default: true
  847. }
  848. },
  849. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  850. data: function data() {
  851. return {
  852. loadYet: false,
  853. loadIng: 0,
  854. columns: [],
  855. lists: [],
  856. listPage: 1,
  857. listTotal: 0,
  858. noDataText: ""
  859. };
  860. },
  861. mounted: function mounted() {
  862. var _this = this;
  863. if (this.canload) {
  864. this.loadYet = true;
  865. this.getLists(true);
  866. }
  867. $A.setOnTaskInfoListener('components/project/archived', function (act, detail) {
  868. if (detail.projectid != _this.projectid) {
  869. return;
  870. }
  871. //
  872. _this.lists.some(function (task, i) {
  873. if (task.id == detail.id) {
  874. _this.lists.splice(i, 1, detail);
  875. return true;
  876. }
  877. });
  878. //
  879. switch (act) {
  880. case "delete": // 删除任务
  881. case "unarchived":
  882. // 取消归档
  883. _this.lists.some(function (task, i) {
  884. if (task.id == detail.id) {
  885. _this.lists.splice(i, 1);
  886. return true;
  887. }
  888. });
  889. break;
  890. case "archived":
  891. // 归档
  892. var has = false;
  893. _this.lists.some(function (task) {
  894. if (task.id == detail.id) {
  895. return has = true;
  896. }
  897. });
  898. if (!has) {
  899. _this.lists.unshift(detail);
  900. }
  901. break;
  902. }
  903. });
  904. },
  905. watch: {
  906. projectid: function projectid() {
  907. if (this.loadYet) {
  908. this.getLists(true);
  909. }
  910. },
  911. canload: function canload(val) {
  912. if (val && !this.loadYet) {
  913. this.loadYet = true;
  914. this.getLists(true);
  915. }
  916. }
  917. },
  918. methods: {
  919. initLanguage: function initLanguage() {
  920. var _this2 = this;
  921. this.noDataText = this.$L("数据加载中.....");
  922. this.columns = [{
  923. "title": this.$L("任务名称"),
  924. "key": 'title',
  925. "minWidth": 120,
  926. render: function render(h, params) {
  927. return _this2.renderTaskTitle(h, params);
  928. }
  929. }, {
  930. "title": this.$L("创建人"),
  931. "key": 'createuser',
  932. "minWidth": 80,
  933. render: function render(h, params) {
  934. return h('UserView', {
  935. props: {
  936. username: params.row.createuser
  937. }
  938. });
  939. }
  940. }, {
  941. "title": this.$L("负责人"),
  942. "key": 'username',
  943. "minWidth": 80,
  944. render: function render(h, params) {
  945. return h('UserView', {
  946. props: {
  947. username: params.row.username
  948. }
  949. });
  950. }
  951. }, {
  952. "title": this.$L("完成"),
  953. "minWidth": 70,
  954. "align": "center",
  955. render: function render(h, params) {
  956. return h('span', params.row.complete ? '√' : '-');
  957. }
  958. }, {
  959. "title": this.$L("归档时间"),
  960. "width": 160,
  961. render: function render(h, params) {
  962. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.archiveddate));
  963. }
  964. }, {
  965. "title": this.$L("操作"),
  966. "key": 'action',
  967. "width": 100,
  968. "align": 'center',
  969. render: function render(h, params) {
  970. return h('Button', {
  971. props: {
  972. type: 'primary',
  973. size: 'small'
  974. },
  975. style: {
  976. fontSize: '12px'
  977. },
  978. on: {
  979. click: function click() {
  980. _this2.$Modal.confirm({
  981. title: _this2.$L('取消归档'),
  982. content: _this2.$L('你确定要取消归档吗?'),
  983. loading: true,
  984. onOk: function onOk() {
  985. $A.apiAjax({
  986. url: 'project/task/edit',
  987. method: 'post',
  988. data: {
  989. act: 'unarchived',
  990. taskid: params.row.id
  991. },
  992. error: function error() {
  993. _this2.$Modal.remove();
  994. alert(_this2.$L('网络繁忙,请稍后再试!'));
  995. },
  996. success: function success(res) {
  997. _this2.$Modal.remove();
  998. _this2.getLists();
  999. setTimeout(function () {
  1000. if (res.ret === 1) {
  1001. _this2.$Message.success(res.msg);
  1002. $A.triggerTaskInfoListener('unarchived', res.data);
  1003. $A.triggerTaskInfoChange(params.row.id);
  1004. } else {
  1005. _this2.$Modal.error({ title: _this2.$L('温馨提示'), content: res.msg });
  1006. }
  1007. }, 350);
  1008. }
  1009. });
  1010. }
  1011. });
  1012. }
  1013. }
  1014. }, _this2.$L('取消归档'));
  1015. }
  1016. }];
  1017. },
  1018. setPage: function setPage(page) {
  1019. this.listPage = page;
  1020. this.getLists();
  1021. },
  1022. setPageSize: function setPageSize(size) {
  1023. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1024. this.listPageSize = size;
  1025. this.getLists();
  1026. }
  1027. },
  1028. getLists: function getLists(resetLoad) {
  1029. var _this3 = this;
  1030. if (resetLoad === true) {
  1031. this.listPage = 1;
  1032. }
  1033. if (this.projectid == 0) {
  1034. this.lists = [];
  1035. this.listTotal = 0;
  1036. this.noDataText = this.$L("没有相关的数据");
  1037. return;
  1038. }
  1039. this.loadIng++;
  1040. this.noDataText = this.$L("数据加载中.....");
  1041. $A.apiAjax({
  1042. url: 'project/task/lists',
  1043. data: {
  1044. page: Math.max(this.listPage, 1),
  1045. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  1046. projectid: this.projectid,
  1047. archived: '已归档'
  1048. },
  1049. complete: function complete() {
  1050. _this3.loadIng--;
  1051. },
  1052. error: function error() {
  1053. _this3.noDataText = _this3.$L("数据加载失败!");
  1054. },
  1055. success: function success(res) {
  1056. if (res.ret === 1) {
  1057. _this3.lists = res.data.lists;
  1058. _this3.listTotal = res.data.total;
  1059. _this3.noDataText = _this3.$L("没有相关的数据");
  1060. } else {
  1061. _this3.lists = [];
  1062. _this3.listTotal = 0;
  1063. _this3.noDataText = res.msg;
  1064. }
  1065. }
  1066. });
  1067. }
  1068. }
  1069. });
  1070. /***/ }),
  1071. /***/ 348:
  1072. /***/ (function(module, exports, __webpack_require__) {
  1073. var render = function() {
  1074. var _vm = this
  1075. var _h = _vm.$createElement
  1076. var _c = _vm._self._c || _h
  1077. return _c("drawer-tabs-container", [
  1078. _c(
  1079. "div",
  1080. { staticClass: "project-archived" },
  1081. [
  1082. _c("Table", {
  1083. ref: "tableRef",
  1084. staticClass: "tableFill",
  1085. attrs: {
  1086. columns: _vm.columns,
  1087. data: _vm.lists,
  1088. loading: _vm.loadIng > 0,
  1089. "no-data-text": _vm.noDataText,
  1090. stripe: ""
  1091. }
  1092. }),
  1093. _vm._v(" "),
  1094. _c("Page", {
  1095. staticClass: "pageBox",
  1096. attrs: {
  1097. total: _vm.listTotal,
  1098. current: _vm.listPage,
  1099. disabled: _vm.loadIng > 0,
  1100. "page-size-opts": [10, 20, 30, 50, 100],
  1101. placement: "top",
  1102. "show-elevator": "",
  1103. "show-sizer": "",
  1104. "show-total": "",
  1105. transfer: "",
  1106. simple: _vm.windowMax768
  1107. },
  1108. on: {
  1109. "on-change": _vm.setPage,
  1110. "on-page-size-change": _vm.setPageSize
  1111. }
  1112. })
  1113. ],
  1114. 1
  1115. )
  1116. ])
  1117. }
  1118. var staticRenderFns = []
  1119. render._withStripped = true
  1120. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1121. if (false) {
  1122. module.hot.accept()
  1123. if (module.hot.data) {
  1124. require("vue-hot-reload-api") .rerender("data-v-1b3dd966", module.exports)
  1125. }
  1126. }
  1127. /***/ }),
  1128. /***/ 349:
  1129. /***/ (function(module, exports, __webpack_require__) {
  1130. var disposed = false
  1131. function injectStyle (ssrContext) {
  1132. if (disposed) return
  1133. __webpack_require__(350)
  1134. }
  1135. var normalizeComponent = __webpack_require__(2)
  1136. /* script */
  1137. var __vue_script__ = __webpack_require__(352)
  1138. /* template */
  1139. var __vue_template__ = __webpack_require__(353)
  1140. /* template functional */
  1141. var __vue_template_functional__ = false
  1142. /* styles */
  1143. var __vue_styles__ = injectStyle
  1144. /* scopeId */
  1145. var __vue_scopeId__ = "data-v-720a9bad"
  1146. /* moduleIdentifier (server only) */
  1147. var __vue_module_identifier__ = null
  1148. var Component = normalizeComponent(
  1149. __vue_script__,
  1150. __vue_template__,
  1151. __vue_template_functional__,
  1152. __vue_styles__,
  1153. __vue_scopeId__,
  1154. __vue_module_identifier__
  1155. )
  1156. Component.options.__file = "resources/assets/js/main/components/project/users.vue"
  1157. /* hot reload */
  1158. if (false) {(function () {
  1159. var hotAPI = require("vue-hot-reload-api")
  1160. hotAPI.install(require("vue"), false)
  1161. if (!hotAPI.compatible) return
  1162. module.hot.accept()
  1163. if (!module.hot.data) {
  1164. hotAPI.createRecord("data-v-720a9bad", Component.options)
  1165. } else {
  1166. hotAPI.reload("data-v-720a9bad", Component.options)
  1167. }
  1168. module.hot.dispose(function (data) {
  1169. disposed = true
  1170. })
  1171. })()}
  1172. module.exports = Component.exports
  1173. /***/ }),
  1174. /***/ 350:
  1175. /***/ (function(module, exports, __webpack_require__) {
  1176. // style-loader: Adds some css to the DOM by adding a <style> tag
  1177. // load the styles
  1178. var content = __webpack_require__(351);
  1179. if(typeof content === 'string') content = [[module.i, content, '']];
  1180. if(content.locals) module.exports = content.locals;
  1181. // add the styles to the DOM
  1182. var update = __webpack_require__(1)("6db19cd1", content, false, {});
  1183. // Hot Module Replacement
  1184. if(false) {
  1185. // When the styles change, update the <style> tags
  1186. if(!content.locals) {
  1187. 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() {
  1188. 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");
  1189. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1190. update(newContent);
  1191. });
  1192. }
  1193. // When the module is disposed, remove the <style> tags
  1194. module.hot.dispose(function() { update(); });
  1195. }
  1196. /***/ }),
  1197. /***/ 351:
  1198. /***/ (function(module, exports, __webpack_require__) {
  1199. exports = module.exports = __webpack_require__(0)(false);
  1200. // imports
  1201. // module
  1202. 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", ""]);
  1203. // exports
  1204. /***/ }),
  1205. /***/ 352:
  1206. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1207. "use strict";
  1208. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1209. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  1210. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  1211. //
  1212. //
  1213. //
  1214. //
  1215. //
  1216. //
  1217. //
  1218. //
  1219. //
  1220. //
  1221. //
  1222. //
  1223. //
  1224. //
  1225. //
  1226. //
  1227. //
  1228. //
  1229. //
  1230. //
  1231. //
  1232. /* harmony default export */ __webpack_exports__["default"] = ({
  1233. name: 'ProjectUsers',
  1234. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  1235. props: {
  1236. projectid: {
  1237. default: 0
  1238. },
  1239. canload: {
  1240. type: Boolean,
  1241. default: true
  1242. }
  1243. },
  1244. data: function data() {
  1245. return {
  1246. loadYet: false,
  1247. loadIng: 0,
  1248. columns: [],
  1249. lists: [],
  1250. listPage: 1,
  1251. listTotal: 0,
  1252. noDataText: ""
  1253. };
  1254. },
  1255. mounted: function mounted() {
  1256. if (this.canload) {
  1257. this.loadYet = true;
  1258. this.getLists(true);
  1259. }
  1260. },
  1261. watch: {
  1262. projectid: function projectid() {
  1263. if (this.loadYet) {
  1264. this.getLists(true);
  1265. }
  1266. },
  1267. canload: function canload(val) {
  1268. if (val && !this.loadYet) {
  1269. this.loadYet = true;
  1270. this.getLists(true);
  1271. }
  1272. }
  1273. },
  1274. methods: {
  1275. initLanguage: function initLanguage() {
  1276. var _this = this;
  1277. this.noDataText = this.$L("数据加载中.....");
  1278. this.columns = [{
  1279. "title": this.$L("头像"),
  1280. "minWidth": 60,
  1281. "maxWidth": 100,
  1282. render: function render(h, params) {
  1283. return h('UserImg', {
  1284. props: {
  1285. info: params.row
  1286. },
  1287. style: {
  1288. width: "30px",
  1289. height: "30px",
  1290. fontSize: "16px",
  1291. lineHeight: "30px",
  1292. borderRadius: "15px",
  1293. verticalAlign: "middle"
  1294. }
  1295. });
  1296. }
  1297. }, {
  1298. "title": this.$L("用户名"),
  1299. "key": 'username',
  1300. "minWidth": 80,
  1301. "ellipsis": true
  1302. }, {
  1303. "title": this.$L("昵称"),
  1304. "minWidth": 80,
  1305. "ellipsis": true,
  1306. render: function render(h, params) {
  1307. return h('span', params.row.nickname || '-');
  1308. }
  1309. }, {
  1310. "title": this.$L("职位/职称"),
  1311. "minWidth": 100,
  1312. "ellipsis": true,
  1313. render: function render(h, params) {
  1314. return h('span', params.row.profession || '-');
  1315. }
  1316. }, {
  1317. "title": this.$L("成员角色"),
  1318. "minWidth": 100,
  1319. render: function render(h, params) {
  1320. return h('span', params.row.isowner ? _this.$L('项目负责人') : _this.$L('成员'));
  1321. }
  1322. }, {
  1323. "title": this.$L("加入时间"),
  1324. "width": 160,
  1325. render: function render(h, params) {
  1326. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  1327. }
  1328. }, {
  1329. "title": this.$L("操作"),
  1330. "key": 'action',
  1331. "width": 80,
  1332. "align": 'center',
  1333. render: function render(h, params) {
  1334. return h('Button', {
  1335. props: {
  1336. type: 'primary',
  1337. size: 'small'
  1338. },
  1339. style: {
  1340. fontSize: '12px'
  1341. },
  1342. on: {
  1343. click: function click() {
  1344. _this.$Modal.confirm({
  1345. title: _this.$L('移出成员'),
  1346. content: _this.$L('你确定要将此成员移出项目吗?'),
  1347. loading: true,
  1348. onOk: function onOk() {
  1349. $A.apiAjax({
  1350. url: 'project/users/join',
  1351. data: {
  1352. act: 'delete',
  1353. projectid: params.row.projectid,
  1354. username: params.row.username
  1355. },
  1356. error: function error() {
  1357. _this.$Modal.remove();
  1358. alert(_this.$L('网络繁忙,请稍后再试!'));
  1359. },
  1360. success: function success(res) {
  1361. _this.$Modal.remove();
  1362. _this.getLists();
  1363. setTimeout(function () {
  1364. if (res.ret === 1) {
  1365. _this.$Message.success(res.msg);
  1366. } else {
  1367. _this.$Modal.error({ title: _this.$L('温馨提示'), content: res.msg });
  1368. }
  1369. }, 350);
  1370. }
  1371. });
  1372. }
  1373. });
  1374. }
  1375. }
  1376. }, _this.$L('删除'));
  1377. }
  1378. }];
  1379. },
  1380. setPage: function setPage(page) {
  1381. this.listPage = page;
  1382. this.getLists();
  1383. },
  1384. setPageSize: function setPageSize(size) {
  1385. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1386. this.listPageSize = size;
  1387. this.getLists();
  1388. }
  1389. },
  1390. getLists: function getLists(resetLoad) {
  1391. var _this2 = this;
  1392. if (resetLoad === true) {
  1393. this.listPage = 1;
  1394. }
  1395. if (this.projectid == 0) {
  1396. this.lists = [];
  1397. this.listTotal = 0;
  1398. this.noDataText = this.$L("没有相关的数据");
  1399. return;
  1400. }
  1401. this.loadIng++;
  1402. this.noDataText = this.$L("数据加载中.....");
  1403. $A.apiAjax({
  1404. url: 'project/users/lists',
  1405. data: {
  1406. page: Math.max(this.listPage, 1),
  1407. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  1408. projectid: this.projectid
  1409. },
  1410. complete: function complete() {
  1411. _this2.loadIng--;
  1412. },
  1413. error: function error() {
  1414. _this2.noDataText = _this2.$L("数据加载失败!");
  1415. },
  1416. success: function success(res) {
  1417. if (res.ret === 1) {
  1418. _this2.lists = res.data.lists;
  1419. _this2.listTotal = res.data.total;
  1420. _this2.noDataText = _this2.$L("没有相关的数据");
  1421. } else {
  1422. _this2.lists = [];
  1423. _this2.listTotal = 0;
  1424. _this2.noDataText = res.msg;
  1425. }
  1426. }
  1427. });
  1428. },
  1429. addUser: function addUser() {
  1430. var _this3 = this;
  1431. this.userValue = "";
  1432. this.$Modal.confirm({
  1433. render: function render(h) {
  1434. return h('div', [h('div', {
  1435. style: {
  1436. fontSize: '16px',
  1437. fontWeight: '500',
  1438. marginBottom: '20px'
  1439. }
  1440. }, _this3.$L('添加成员')), h('UserInput', {
  1441. props: {
  1442. value: _this3.userValue,
  1443. multiple: true,
  1444. noprojectid: _this3.projectid,
  1445. placeholder: _this3.$L('请输入昵称/用户名搜索')
  1446. },
  1447. on: {
  1448. input: function input(val) {
  1449. _this3.userValue = val;
  1450. }
  1451. }
  1452. })]);
  1453. },
  1454. loading: true,
  1455. onOk: function onOk() {
  1456. if (_this3.userValue) {
  1457. var username = _this3.userValue;
  1458. $A.apiAjax({
  1459. url: 'project/users/join',
  1460. data: {
  1461. act: 'join',
  1462. projectid: _this3.projectid,
  1463. username: username
  1464. },
  1465. error: function error() {
  1466. _this3.$Modal.remove();
  1467. alert(_this3.$L('网络繁忙,请稍后再试!'));
  1468. },
  1469. success: function success(res) {
  1470. _this3.$Modal.remove();
  1471. _this3.getLists();
  1472. setTimeout(function () {
  1473. if (res.ret === 1) {
  1474. _this3.$Message.success(res.msg);
  1475. } else {
  1476. _this3.$Modal.error({ title: _this3.$L('温馨提示'), content: res.msg });
  1477. }
  1478. }, 350);
  1479. }
  1480. });
  1481. } else {
  1482. _this3.$Modal.remove();
  1483. }
  1484. }
  1485. });
  1486. }
  1487. }
  1488. });
  1489. /***/ }),
  1490. /***/ 353:
  1491. /***/ (function(module, exports, __webpack_require__) {
  1492. var render = function() {
  1493. var _vm = this
  1494. var _h = _vm.$createElement
  1495. var _c = _vm._self._c || _h
  1496. return _c("drawer-tabs-container", [
  1497. _c(
  1498. "div",
  1499. { staticClass: "project-users" },
  1500. [
  1501. _c(
  1502. "Button",
  1503. {
  1504. attrs: {
  1505. loading: _vm.loadIng > 0,
  1506. type: "primary",
  1507. icon: "md-add"
  1508. },
  1509. on: { click: _vm.addUser }
  1510. },
  1511. [_vm._v(_vm._s(_vm.$L("添加成员")))]
  1512. ),
  1513. _vm._v(" "),
  1514. _c("Table", {
  1515. ref: "tableRef",
  1516. staticClass: "tableFill",
  1517. attrs: {
  1518. columns: _vm.columns,
  1519. data: _vm.lists,
  1520. loading: _vm.loadIng > 0,
  1521. "no-data-text": _vm.noDataText,
  1522. stripe: ""
  1523. }
  1524. }),
  1525. _vm._v(" "),
  1526. _c("Page", {
  1527. staticClass: "pageBox",
  1528. attrs: {
  1529. total: _vm.listTotal,
  1530. current: _vm.listPage,
  1531. disabled: _vm.loadIng > 0,
  1532. "page-size-opts": [10, 20, 30, 50, 100],
  1533. placement: "top",
  1534. "show-elevator": "",
  1535. "show-sizer": "",
  1536. "show-total": "",
  1537. transfer: "",
  1538. simple: _vm.windowMax768
  1539. },
  1540. on: {
  1541. "on-change": _vm.setPage,
  1542. "on-page-size-change": _vm.setPageSize
  1543. }
  1544. })
  1545. ],
  1546. 1
  1547. )
  1548. ])
  1549. }
  1550. var staticRenderFns = []
  1551. render._withStripped = true
  1552. module.exports = { render: render, staticRenderFns: staticRenderFns }
  1553. if (false) {
  1554. module.hot.accept()
  1555. if (module.hot.data) {
  1556. require("vue-hot-reload-api") .rerender("data-v-720a9bad", module.exports)
  1557. }
  1558. }
  1559. /***/ }),
  1560. /***/ 354:
  1561. /***/ (function(module, exports, __webpack_require__) {
  1562. var disposed = false
  1563. function injectStyle (ssrContext) {
  1564. if (disposed) return
  1565. __webpack_require__(355)
  1566. }
  1567. var normalizeComponent = __webpack_require__(2)
  1568. /* script */
  1569. var __vue_script__ = __webpack_require__(357)
  1570. /* template */
  1571. var __vue_template__ = __webpack_require__(358)
  1572. /* template functional */
  1573. var __vue_template_functional__ = false
  1574. /* styles */
  1575. var __vue_styles__ = injectStyle
  1576. /* scopeId */
  1577. var __vue_scopeId__ = "data-v-4466db4e"
  1578. /* moduleIdentifier (server only) */
  1579. var __vue_module_identifier__ = null
  1580. var Component = normalizeComponent(
  1581. __vue_script__,
  1582. __vue_template__,
  1583. __vue_template_functional__,
  1584. __vue_styles__,
  1585. __vue_scopeId__,
  1586. __vue_module_identifier__
  1587. )
  1588. Component.options.__file = "resources/assets/js/main/components/project/statistics.vue"
  1589. /* hot reload */
  1590. if (false) {(function () {
  1591. var hotAPI = require("vue-hot-reload-api")
  1592. hotAPI.install(require("vue"), false)
  1593. if (!hotAPI.compatible) return
  1594. module.hot.accept()
  1595. if (!module.hot.data) {
  1596. hotAPI.createRecord("data-v-4466db4e", Component.options)
  1597. } else {
  1598. hotAPI.reload("data-v-4466db4e", Component.options)
  1599. }
  1600. module.hot.dispose(function (data) {
  1601. disposed = true
  1602. })
  1603. })()}
  1604. module.exports = Component.exports
  1605. /***/ }),
  1606. /***/ 355:
  1607. /***/ (function(module, exports, __webpack_require__) {
  1608. // style-loader: Adds some css to the DOM by adding a <style> tag
  1609. // load the styles
  1610. var content = __webpack_require__(356);
  1611. if(typeof content === 'string') content = [[module.i, content, '']];
  1612. if(content.locals) module.exports = content.locals;
  1613. // add the styles to the DOM
  1614. var update = __webpack_require__(1)("ffb4ffa8", content, false, {});
  1615. // Hot Module Replacement
  1616. if(false) {
  1617. // When the styles change, update the <style> tags
  1618. if(!content.locals) {
  1619. 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() {
  1620. 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");
  1621. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  1622. update(newContent);
  1623. });
  1624. }
  1625. // When the module is disposed, remove the <style> tags
  1626. module.hot.dispose(function() { update(); });
  1627. }
  1628. /***/ }),
  1629. /***/ 356:
  1630. /***/ (function(module, exports, __webpack_require__) {
  1631. exports = module.exports = __webpack_require__(0)(false);
  1632. // imports
  1633. // module
  1634. 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", ""]);
  1635. // exports
  1636. /***/ }),
  1637. /***/ 357:
  1638. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1639. "use strict";
  1640. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1641. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__ = __webpack_require__(7);
  1642. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer__);
  1643. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_task__ = __webpack_require__(30);
  1644. //
  1645. //
  1646. //
  1647. //
  1648. //
  1649. //
  1650. //
  1651. //
  1652. //
  1653. //
  1654. //
  1655. //
  1656. //
  1657. //
  1658. //
  1659. //
  1660. //
  1661. //
  1662. //
  1663. //
  1664. //
  1665. //
  1666. //
  1667. //
  1668. //
  1669. //
  1670. //
  1671. //
  1672. //
  1673. //
  1674. //
  1675. //
  1676. //
  1677. //
  1678. //
  1679. //
  1680. //
  1681. //
  1682. //
  1683. //
  1684. //
  1685. //
  1686. //
  1687. //
  1688. //
  1689. //
  1690. //
  1691. //
  1692. //
  1693. //
  1694. //
  1695. //
  1696. //
  1697. //
  1698. //
  1699. //
  1700. //
  1701. //
  1702. //
  1703. //
  1704. //
  1705. //
  1706. //
  1707. //
  1708. //
  1709. //
  1710. //
  1711. //
  1712. //
  1713. //
  1714. //
  1715. //
  1716. //
  1717. //
  1718. //
  1719. //
  1720. //
  1721. //
  1722. //
  1723. //
  1724. //
  1725. //
  1726. //
  1727. //
  1728. //
  1729. //
  1730. //
  1731. //
  1732. //
  1733. //
  1734. //
  1735. //
  1736. //
  1737. //
  1738. //
  1739. //
  1740. //
  1741. //
  1742. //
  1743. //
  1744. //
  1745. //
  1746. //
  1747. //
  1748. //
  1749. //
  1750. //
  1751. //
  1752. //
  1753. //
  1754. //
  1755. //
  1756. //
  1757. //
  1758. //
  1759. //
  1760. //
  1761. //
  1762. //
  1763. //
  1764. //
  1765. //
  1766. //
  1767. /**
  1768. * 项目统计
  1769. */
  1770. /* harmony default export */ __webpack_exports__["default"] = ({
  1771. name: 'ProjectStatistics',
  1772. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_0__DrawerTabsContainer___default.a },
  1773. props: {
  1774. projectid: {
  1775. default: 0
  1776. },
  1777. canload: {
  1778. type: Boolean,
  1779. default: true
  1780. }
  1781. },
  1782. mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_task__["a" /* default */]],
  1783. data: function data() {
  1784. return {
  1785. loadYet: false,
  1786. loadIng: 0,
  1787. columns: [],
  1788. taskType: '未完成',
  1789. lists: [],
  1790. listPage: 1,
  1791. listTotal: 0,
  1792. noDataText: "",
  1793. statistics_unfinished: 0,
  1794. statistics_overdue: 0,
  1795. statistics_complete: 0
  1796. };
  1797. },
  1798. mounted: function mounted() {
  1799. var _this = this;
  1800. if (this.canload) {
  1801. this.loadYet = true;
  1802. this.getLists(true);
  1803. }
  1804. $A.setOnTaskInfoListener('components/project/statistics', function (act, detail) {
  1805. if (detail.projectid != _this.projectid) {
  1806. return;
  1807. }
  1808. //
  1809. _this.lists.some(function (task, i) {
  1810. if (task.id == detail.id) {
  1811. _this.lists.splice(i, 1, detail);
  1812. return true;
  1813. }
  1814. });
  1815. //
  1816. switch (act) {
  1817. case "delete": // 删除任务
  1818. case "archived":
  1819. // 归档
  1820. _this.lists.some(function (task, i) {
  1821. if (task.id == detail.id) {
  1822. _this.lists.splice(i, 1);
  1823. if (task.complete) {
  1824. _this.statistics_complete--;
  1825. } else {
  1826. _this.statistics_unfinished++;
  1827. }
  1828. return true;
  1829. }
  1830. });
  1831. break;
  1832. case "unarchived":
  1833. // 取消归档
  1834. var has = false;
  1835. _this.lists.some(function (task) {
  1836. if (task.id == detail.id) {
  1837. if (task.complete) {
  1838. _this.statistics_complete++;
  1839. } else {
  1840. _this.statistics_unfinished--;
  1841. }
  1842. return has = true;
  1843. }
  1844. });
  1845. if (!has) {
  1846. _this.lists.unshift(detail);
  1847. }
  1848. break;
  1849. case "complete":
  1850. // 标记完成
  1851. _this.statistics_complete++;
  1852. _this.statistics_unfinished--;
  1853. break;
  1854. case "unfinished":
  1855. // 标记未完成
  1856. _this.statistics_complete--;
  1857. _this.statistics_unfinished++;
  1858. break;
  1859. }
  1860. });
  1861. },
  1862. watch: {
  1863. projectid: function projectid() {
  1864. if (this.loadYet) {
  1865. this.getLists(true);
  1866. }
  1867. },
  1868. canload: function canload(val) {
  1869. if (val && !this.loadYet) {
  1870. this.loadYet = true;
  1871. this.getLists(true);
  1872. }
  1873. },
  1874. taskType: function taskType() {
  1875. if (this.loadYet) {
  1876. this.getLists(true);
  1877. }
  1878. }
  1879. },
  1880. methods: {
  1881. initLanguage: function initLanguage() {
  1882. var _this2 = this;
  1883. this.noDataText = this.$L("数据加载中.....");
  1884. this.columns = [{
  1885. "title": this.$L("任务名称"),
  1886. "key": 'title',
  1887. "minWidth": 120,
  1888. render: function render(h, params) {
  1889. return _this2.renderTaskTitle(h, params);
  1890. }
  1891. }, {
  1892. "title": this.$L("创建人"),
  1893. "key": 'createuser',
  1894. "minWidth": 80,
  1895. render: function render(h, params) {
  1896. return h('UserView', {
  1897. props: {
  1898. username: params.row.createuser
  1899. }
  1900. });
  1901. }
  1902. }, {
  1903. "title": this.$L("负责人"),
  1904. "key": 'username',
  1905. "minWidth": 80,
  1906. render: function render(h, params) {
  1907. return h('UserView', {
  1908. props: {
  1909. username: params.row.username
  1910. }
  1911. });
  1912. }
  1913. }, {
  1914. "title": this.$L("完成"),
  1915. "minWidth": 70,
  1916. "align": "center",
  1917. render: function render(h, params) {
  1918. return h('span', params.row.complete ? '√' : '-');
  1919. }
  1920. }, {
  1921. "title": this.$L("创建时间"),
  1922. "width": 160,
  1923. render: function render(h, params) {
  1924. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  1925. }
  1926. }];
  1927. },
  1928. setTaskType: function setTaskType(type) {
  1929. this.taskType = type;
  1930. },
  1931. setPage: function setPage(page) {
  1932. this.listPage = page;
  1933. this.getLists();
  1934. },
  1935. setPageSize: function setPageSize(size) {
  1936. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  1937. this.listPageSize = size;
  1938. this.getLists();
  1939. }
  1940. },
  1941. getLists: function getLists(resetLoad) {
  1942. var _this3 = this;
  1943. if (resetLoad === true) {
  1944. this.listPage = 1;
  1945. }
  1946. if (this.projectid == 0) {
  1947. this.lists = [];
  1948. this.listTotal = 0;
  1949. this.noDataText = this.$L("没有相关的数据");
  1950. return;
  1951. }
  1952. this.loadIng++;
  1953. var tempType = this.taskType;
  1954. this.noDataText = this.$L("数据加载中.....");
  1955. $A.apiAjax({
  1956. url: 'project/task/lists',
  1957. data: {
  1958. page: Math.max(this.listPage, 1),
  1959. pagesize: Math.max($A.runNum(this.listPageSize), 10),
  1960. projectid: this.projectid,
  1961. type: this.taskType,
  1962. statistics: 1
  1963. },
  1964. complete: function complete() {
  1965. _this3.loadIng--;
  1966. },
  1967. error: function error() {
  1968. _this3.noDataText = _this3.$L("数据加载失败!");
  1969. },
  1970. success: function success(res) {
  1971. if (tempType != _this3.taskType) {
  1972. return;
  1973. }
  1974. if (res.ret === 1) {
  1975. _this3.lists = res.data.lists;
  1976. _this3.listTotal = res.data.total;
  1977. _this3.noDataText = _this3.$L("没有相关的数据");
  1978. } else {
  1979. _this3.lists = [];
  1980. _this3.listTotal = 0;
  1981. _this3.noDataText = res.msg;
  1982. }
  1983. _this3.statistics_unfinished = res.data.statistics_unfinished || 0;
  1984. _this3.statistics_overdue = res.data.statistics_overdue || 0;
  1985. _this3.statistics_complete = res.data.statistics_complete || 0;
  1986. }
  1987. });
  1988. }
  1989. }
  1990. });
  1991. /***/ }),
  1992. /***/ 358:
  1993. /***/ (function(module, exports, __webpack_require__) {
  1994. var render = function() {
  1995. var _vm = this
  1996. var _h = _vm.$createElement
  1997. var _c = _vm._self._c || _h
  1998. return _c("drawer-tabs-container", [
  1999. _c(
  2000. "div",
  2001. { staticClass: "project-statistics" },
  2002. [
  2003. _c("ul", { staticClass: "state-overview" }, [
  2004. _c(
  2005. "li",
  2006. {
  2007. class: [_vm.taskType === "未完成" ? "active" : ""],
  2008. on: {
  2009. click: function($event) {
  2010. _vm.taskType = "未完成"
  2011. }
  2012. }
  2013. },
  2014. [
  2015. _c("div", { staticClass: "yellow" }, [
  2016. _c("h1", { staticClass: "count" }, [
  2017. _vm._v(_vm._s(_vm.statistics_unfinished))
  2018. ]),
  2019. _vm._v(" "),
  2020. _c("p", [_vm._v(_vm._s(_vm.$L("未完成任务")))])
  2021. ])
  2022. ]
  2023. ),
  2024. _vm._v(" "),
  2025. _c(
  2026. "li",
  2027. {
  2028. class: [_vm.taskType === "已超期" ? "active" : ""],
  2029. on: {
  2030. click: function($event) {
  2031. _vm.taskType = "已超期"
  2032. }
  2033. }
  2034. },
  2035. [
  2036. _c("div", { staticClass: "red" }, [
  2037. _c("h1", { staticClass: "count" }, [
  2038. _vm._v(_vm._s(_vm.statistics_overdue))
  2039. ]),
  2040. _vm._v(" "),
  2041. _c("p", [_vm._v(_vm._s(_vm.$L("超期任务")))])
  2042. ])
  2043. ]
  2044. ),
  2045. _vm._v(" "),
  2046. _c(
  2047. "li",
  2048. {
  2049. class: [_vm.taskType === "已完成" ? "active" : ""],
  2050. on: {
  2051. click: function($event) {
  2052. _vm.taskType = "已完成"
  2053. }
  2054. }
  2055. },
  2056. [
  2057. _c("div", { staticClass: "terques" }, [
  2058. _c("h1", { staticClass: "count" }, [
  2059. _vm._v(_vm._s(_vm.statistics_complete))
  2060. ]),
  2061. _vm._v(" "),
  2062. _c("p", [_vm._v(_vm._s(_vm.$L("已完成任务")))])
  2063. ])
  2064. ]
  2065. )
  2066. ]),
  2067. _vm._v(" "),
  2068. _c("Table", {
  2069. ref: "tableRef",
  2070. staticClass: "tableFill",
  2071. attrs: {
  2072. columns: _vm.columns,
  2073. data: _vm.lists,
  2074. loading: _vm.loadIng > 0,
  2075. "no-data-text": _vm.noDataText,
  2076. stripe: ""
  2077. }
  2078. }),
  2079. _vm._v(" "),
  2080. _c("Page", {
  2081. staticClass: "pageBox",
  2082. attrs: {
  2083. total: _vm.listTotal,
  2084. current: _vm.listPage,
  2085. disabled: _vm.loadIng > 0,
  2086. "page-size-opts": [10, 20, 30, 50, 100],
  2087. placement: "top",
  2088. "show-elevator": "",
  2089. "show-sizer": "",
  2090. "show-total": "",
  2091. transfer: "",
  2092. simple: _vm.windowMax768
  2093. },
  2094. on: {
  2095. "on-change": _vm.setPage,
  2096. "on-page-size-change": _vm.setPageSize
  2097. }
  2098. })
  2099. ],
  2100. 1
  2101. )
  2102. ])
  2103. }
  2104. var staticRenderFns = []
  2105. render._withStripped = true
  2106. module.exports = { render: render, staticRenderFns: staticRenderFns }
  2107. if (false) {
  2108. module.hot.accept()
  2109. if (module.hot.data) {
  2110. require("vue-hot-reload-api") .rerender("data-v-4466db4e", module.exports)
  2111. }
  2112. }
  2113. /***/ }),
  2114. /***/ 753:
  2115. /***/ (function(module, exports, __webpack_require__) {
  2116. // style-loader: Adds some css to the DOM by adding a <style> tag
  2117. // load the styles
  2118. var content = __webpack_require__(754);
  2119. if(typeof content === 'string') content = [[module.i, content, '']];
  2120. if(content.locals) module.exports = content.locals;
  2121. // add the styles to the DOM
  2122. var update = __webpack_require__(1)("6f61a682", content, false, {});
  2123. // Hot Module Replacement
  2124. if(false) {
  2125. // When the styles change, update the <style> tags
  2126. if(!content.locals) {
  2127. module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-426c4faa\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./project.vue", function() {
  2128. var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-426c4faa\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/sass-loader/lib/loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./project.vue");
  2129. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  2130. update(newContent);
  2131. });
  2132. }
  2133. // When the module is disposed, remove the <style> tags
  2134. module.hot.dispose(function() { update(); });
  2135. }
  2136. /***/ }),
  2137. /***/ 754:
  2138. /***/ (function(module, exports, __webpack_require__) {
  2139. exports = module.exports = __webpack_require__(0)(false);
  2140. // imports
  2141. // module
  2142. exports.push([module.i, "\n.project ul.project-list[data-v-426c4faa] {\n padding: 5px;\n max-width: 2200px;\n margin: 0 auto;\n}\n.project ul.project-list li[data-v-426c4faa] {\n float: left;\n width: 20%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n@media (max-width: 2000px) {\n.project ul.project-list li[data-v-426c4faa] {\n width: 25%;\n}\n}\n@media (max-width: 1400px) {\n.project ul.project-list li[data-v-426c4faa] {\n width: 33.33%;\n}\n}\n@media (max-width: 1080px) {\n.project ul.project-list li[data-v-426c4faa] {\n width: 50%;\n}\n}\n@media (max-width: 640px) {\n.project ul.project-list li[data-v-426c4faa] {\n width: 100%;\n}\n}\n.project ul.project-list li .project-item[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n margin: 10px;\n width: 100%;\n height: 313px;\n padding: 20px;\n background-color: #ffffff;\n border-radius: 4px;\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 ul.project-list li .project-item .project-head[data-v-426c4faa] {\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}\n.project ul.project-list li .project-item .project-head .project-loading[data-v-426c4faa] {\n width: 18px;\n height: 18px;\n margin-right: 6px;\n margin-top: 3px;\n}\n.project ul.project-list li .project-item .project-head .project-title[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-size: 16px;\n padding-right: 6px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #333333;\n cursor: pointer;\n}\n.project ul.project-list li .project-item .project-head .project-setting[data-v-426c4faa] {\n width: 30px;\n text-align: right;\n}\n.project ul.project-list li .project-item .project-head .project-setting .project-setting-icon[data-v-426c4faa] {\n cursor: pointer;\n color: #333333;\n}\n.project ul.project-list li .project-item .project-head .project-setting .project-setting-icon[data-v-426c4faa]:hover {\n color: #0396f2;\n}\n.project ul.project-list li .project-item .project-num[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n padding: 34px 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: 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 cursor: pointer;\n position: relative;\n}\n.project ul.project-list li .project-item .project-num[data-v-426c4faa]:before {\n content: \"\";\n position: absolute;\n width: 1px;\n height: 60%;\n background-color: #EFEFEF;\n}\n.project ul.project-list li .project-item .project-num .project-circle[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n text-align: center;\n margin-right: 10px;\n}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box[data-v-426c4faa] {\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}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box .project-circle-num[data-v-426c4faa] {\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 font-weight: 600;\n}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box .project-circle-num em[data-v-426c4faa] {\n color: #62C5FE;\n font-size: 26px;\n}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box .project-circle-num span[data-v-426c4faa] {\n color: #666666;\n}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box .project-circle-num span[data-v-426c4faa]:before {\n content: \"/\";\n}\n.project ul.project-list li .project-item .project-num .project-circle .project-circle-box .project-circle-title[data-v-426c4faa] {\n font-size: 12px;\n padding-top: 4px;\n color: #999999;\n}\n.project ul.project-list li .project-item .project-num .project-situation[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n.project ul.project-list li .project-item .project-num .project-situation ul[data-v-426c4faa] {\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 position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.project ul.project-list li .project-item .project-num .project-situation ul > li[data-v-426c4faa] {\n width: 100%;\n color: #BBBBBB;\n font-size: 12px;\n white-space: nowrap;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 6px 0;\n line-height: 20px;\n}\n.project ul.project-list li .project-item .project-num .project-situation ul > li > em[data-v-426c4faa] {\n padding-left: 14px;\n font-size: 18px;\n color: #666666;\n font-weight: 500;\n}\n.project ul.project-list li .project-item .project-bottom[data-v-426c4faa] {\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 border-top: 1px solid #EFEFEF;\n padding: 18px 0;\n cursor: default;\n position: relative;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn[data-v-426c4faa] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 50%;\n text-align: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 4px 0;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn.project-people[data-v-426c4faa] {\n width: auto;\n min-width: 36px;\n position: absolute;\n bottom: 18px;\n right: 0;\n cursor: pointer;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn.project-people .userimg-icon[data-v-426c4faa],\n .project ul.project-list li .project-item .project-bottom .project-iconbtn.project-people .userimg-count[data-v-426c4faa] {\n width: 36px;\n height: 36px;\n border-radius: 18px;\n margin-left: -16px;\n border: 2px solid #ffffff;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn.project-people .userimg-count[data-v-426c4faa] {\n -webkit-transform: scale(1);\n transform: scale(1);\n color: #ffffff;\n font-size: 16px;\n font-weight: 500;\n line-height: 32px;\n background-color: #62C5FE;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn .project-iconbtn-icon[data-v-426c4faa] {\n font-size: 16px;\n margin-right: 6px;\n color: #999;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn .project-iconbtn-text[data-v-426c4faa] {\n color: #999999;\n cursor: pointer;\n}\n.project ul.project-list li .project-item .project-bottom .project-iconbtn .project-iconbtn-text[data-v-426c4faa]:hover {\n color: #0396f2;\n}\n.project ul.project-list[data-v-426c4faa]:before, .project ul.project-list[data-v-426c4faa]:after {\n display: table;\n content: \"\";\n}\n.project ul.project-list[data-v-426c4faa]:after {\n clear: both;\n}\n", ""]);
  2143. // exports
  2144. /***/ }),
  2145. /***/ 755:
  2146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2147. "use strict";
  2148. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  2149. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(4);
  2150. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
  2151. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_TagInput__ = __webpack_require__(339);
  2152. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_TagInput___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_TagInput__);
  2153. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_WContent__ = __webpack_require__(307);
  2154. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_WContent___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_WContent__);
  2155. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_archived__ = __webpack_require__(344);
  2156. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_project_archived___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_project_archived__);
  2157. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_users__ = __webpack_require__(349);
  2158. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_project_users___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_project_users__);
  2159. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_statistics__ = __webpack_require__(354);
  2160. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_project_statistics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__components_project_statistics__);
  2161. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_my_favor__ = __webpack_require__(756);
  2162. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_project_my_favor___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_project_my_favor__);
  2163. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_my_join__ = __webpack_require__(761);
  2164. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_project_my_join___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__components_project_my_join__);
  2165. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_my_manage__ = __webpack_require__(766);
  2166. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_project_my_manage___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__components_project_my_manage__);
  2167. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__mixins_project__ = __webpack_require__(324);
  2168. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_iview_WDrawer__ = __webpack_require__(49);
  2169. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_iview_WDrawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__components_iview_WDrawer__);
  2170. //
  2171. //
  2172. //
  2173. //
  2174. //
  2175. //
  2176. //
  2177. //
  2178. //
  2179. //
  2180. //
  2181. //
  2182. //
  2183. //
  2184. //
  2185. //
  2186. //
  2187. //
  2188. //
  2189. //
  2190. //
  2191. //
  2192. //
  2193. //
  2194. //
  2195. //
  2196. //
  2197. //
  2198. //
  2199. //
  2200. //
  2201. //
  2202. //
  2203. //
  2204. //
  2205. //
  2206. //
  2207. //
  2208. //
  2209. //
  2210. //
  2211. //
  2212. //
  2213. //
  2214. //
  2215. //
  2216. //
  2217. //
  2218. //
  2219. //
  2220. //
  2221. //
  2222. //
  2223. //
  2224. //
  2225. //
  2226. //
  2227. //
  2228. //
  2229. //
  2230. //
  2231. //
  2232. //
  2233. //
  2234. //
  2235. //
  2236. //
  2237. //
  2238. //
  2239. //
  2240. //
  2241. //
  2242. //
  2243. //
  2244. //
  2245. //
  2246. //
  2247. //
  2248. //
  2249. //
  2250. //
  2251. //
  2252. //
  2253. //
  2254. //
  2255. //
  2256. //
  2257. //
  2258. //
  2259. //
  2260. //
  2261. //
  2262. //
  2263. //
  2264. //
  2265. //
  2266. //
  2267. //
  2268. //
  2269. //
  2270. //
  2271. //
  2272. //
  2273. //
  2274. //
  2275. //
  2276. //
  2277. //
  2278. //
  2279. //
  2280. //
  2281. //
  2282. //
  2283. //
  2284. //
  2285. //
  2286. //
  2287. //
  2288. //
  2289. //
  2290. //
  2291. //
  2292. //
  2293. //
  2294. //
  2295. //
  2296. //
  2297. //
  2298. //
  2299. //
  2300. //
  2301. //
  2302. //
  2303. //
  2304. //
  2305. //
  2306. //
  2307. //
  2308. //
  2309. //
  2310. //
  2311. //
  2312. //
  2313. //
  2314. //
  2315. //
  2316. //
  2317. //
  2318. //
  2319. //
  2320. //
  2321. //
  2322. //
  2323. //
  2324. //
  2325. //
  2326. //
  2327. //
  2328. //
  2329. //
  2330. //
  2331. //
  2332. //
  2333. //
  2334. //
  2335. //
  2336. //
  2337. //
  2338. //
  2339. //
  2340. //
  2341. //
  2342. //
  2343. //
  2344. //
  2345. //
  2346. //
  2347. //
  2348. //
  2349. //
  2350. //
  2351. //
  2352. //
  2353. //
  2354. //
  2355. //
  2356. //
  2357. //
  2358. //
  2359. //
  2360. //
  2361. //
  2362. //
  2363. //
  2364. //
  2365. //
  2366. //
  2367. //
  2368. //
  2369. //
  2370. //
  2371. //
  2372. //
  2373. //
  2374. //
  2375. //
  2376. //
  2377. //
  2378. //
  2379. //
  2380. //
  2381. //
  2382. //
  2383. //
  2384. //
  2385. //
  2386. //
  2387. //
  2388. //
  2389. //
  2390. //
  2391. //
  2392. //
  2393. //
  2394. //
  2395. //
  2396. //
  2397. //
  2398. //
  2399. //
  2400. //
  2401. //
  2402. //
  2403. //
  2404. //
  2405. //
  2406. //
  2407. //
  2408. //
  2409. //
  2410. //
  2411. //
  2412. //
  2413. //
  2414. //
  2415. //
  2416. //
  2417. //
  2418. //
  2419. //
  2420. //
  2421. //
  2422. //
  2423. //
  2424. //
  2425. //
  2426. //
  2427. //
  2428. //
  2429. //
  2430. //
  2431. //
  2432. //
  2433. //
  2434. //
  2435. //
  2436. //
  2437. //
  2438. //
  2439. //
  2440. //
  2441. //
  2442. //
  2443. //
  2444. //
  2445. //
  2446. //
  2447. //
  2448. //
  2449. //
  2450. //
  2451. //
  2452. //
  2453. //
  2454. //
  2455. //
  2456. //
  2457. //
  2458. //
  2459. //
  2460. //
  2461. //
  2462. //
  2463. //
  2464. //
  2465. //
  2466. //
  2467. //
  2468. //
  2469. //
  2470. //
  2471. //
  2472. //
  2473. //
  2474. //
  2475. //
  2476. //
  2477. //
  2478. //
  2479. //
  2480. //
  2481. //
  2482. //
  2483. //
  2484. //
  2485. //
  2486. //
  2487. //
  2488. //
  2489. //
  2490. //
  2491. //
  2492. //
  2493. //
  2494. //
  2495. //
  2496. //
  2497. //
  2498. //
  2499. //
  2500. //
  2501. //
  2502. //
  2503. //
  2504. //
  2505. //
  2506. //
  2507. //
  2508. //
  2509. //
  2510. //
  2511. //
  2512. //
  2513. //
  2514. //
  2515. //
  2516. //
  2517. //
  2518. //
  2519. //
  2520. //
  2521. //
  2522. //
  2523. //
  2524. //
  2525. //
  2526. //
  2527. //
  2528. //
  2529. //
  2530. //
  2531. //
  2532. //
  2533. //
  2534. //
  2535. //
  2536. //
  2537. //
  2538. //
  2539. //
  2540. //
  2541. //
  2542. //
  2543. //
  2544. __WEBPACK_IMPORTED_MODULE_0_vue___default.a.component('TagInput', __WEBPACK_IMPORTED_MODULE_1__components_TagInput___default.a);
  2545. /* harmony default export */ __webpack_exports__["default"] = ({
  2546. components: {
  2547. WDrawer: __WEBPACK_IMPORTED_MODULE_10__components_iview_WDrawer___default.a,
  2548. ProjectMyManage: __WEBPACK_IMPORTED_MODULE_8__components_project_my_manage___default.a,
  2549. ProjectMyJoin: __WEBPACK_IMPORTED_MODULE_7__components_project_my_join___default.a,
  2550. ProjectMyFavor: __WEBPACK_IMPORTED_MODULE_6__components_project_my_favor___default.a, ProjectStatistics: __WEBPACK_IMPORTED_MODULE_5__components_project_statistics___default.a, ProjectUsers: __WEBPACK_IMPORTED_MODULE_4__components_project_users___default.a, ProjectArchived: __WEBPACK_IMPORTED_MODULE_3__components_project_archived___default.a, WContent: __WEBPACK_IMPORTED_MODULE_2__components_WContent___default.a },
  2551. mixins: [__WEBPACK_IMPORTED_MODULE_9__mixins_project__["a" /* default */]],
  2552. data: function data() {
  2553. return {
  2554. loadIng: 0,
  2555. addShow: false,
  2556. formAdd: {
  2557. title: '',
  2558. labels: [],
  2559. template: 0
  2560. },
  2561. ruleAdd: {},
  2562. labelLists: [],
  2563. lists: [],
  2564. listPage: 1,
  2565. listTotal: 0,
  2566. listPageSize: 20,
  2567. projectDrawerShow: false,
  2568. projectDrawerTab: 'archived',
  2569. projectListDrawerShow: false,
  2570. projectListDrawerTab: 'myjoin',
  2571. handleProjectId: 0
  2572. };
  2573. },
  2574. mounted: function mounted() {
  2575. var _this = this;
  2576. this.getLists(true);
  2577. //
  2578. $A.setOnTaskInfoListener('pages/project', function (act, detail) {
  2579. var item = _this.lists.find(function (item) {
  2580. return item.id == detail.projectid;
  2581. });
  2582. if (!item) {
  2583. return;
  2584. }
  2585. var persons = detail.persons ? !!detail.persons.find(function (_ref) {
  2586. var username = _ref.username;
  2587. return username == _this.usrName;
  2588. }) : null;
  2589. var unfinishedNum = function unfinishedNum(add) {
  2590. if (add) {
  2591. item.unfinished++;
  2592. persons === true && item.self_count++;
  2593. } else {
  2594. item.unfinished--;
  2595. persons === true && item.self_count--;
  2596. }
  2597. };
  2598. var completeNum = function completeNum(add) {
  2599. if (add) {
  2600. item.complete++;
  2601. persons === true && item.self_complete++;
  2602. } else {
  2603. item.complete--;
  2604. persons === true && item.self_complete--;
  2605. }
  2606. };
  2607. switch (act) {
  2608. case 'deleteproject': // 删除项目
  2609. case 'deletelabel':
  2610. // 删除分类
  2611. _this.getLists(true);
  2612. break;
  2613. case "create":
  2614. // 创建任务
  2615. unfinishedNum(true);
  2616. break;
  2617. case "delete": // 删除任务
  2618. case "archived":
  2619. // 归档
  2620. if (detail.complete) {
  2621. completeNum();
  2622. } else {
  2623. unfinishedNum();
  2624. }
  2625. break;
  2626. case "unarchived":
  2627. // 取消归档
  2628. if (detail.complete) {
  2629. completeNum(true);
  2630. } else {
  2631. unfinishedNum(true);
  2632. }
  2633. break;
  2634. case "complete":
  2635. // 标记完成
  2636. completeNum(true);
  2637. unfinishedNum();
  2638. break;
  2639. case "unfinished":
  2640. // 标记未完成
  2641. completeNum();
  2642. unfinishedNum(true);
  2643. break;
  2644. }
  2645. }, true);
  2646. },
  2647. deactivated: function deactivated() {
  2648. this.addShow = false;
  2649. this.projectDrawerShow = false;
  2650. this.projectListDrawerShow = false;
  2651. },
  2652. watch: {
  2653. usrName: function usrName() {
  2654. this.usrLogin && this.getLists(true);
  2655. }
  2656. },
  2657. methods: {
  2658. initLanguage: function initLanguage() {
  2659. this.labelLists = [{
  2660. label: this.$L('空白模板'),
  2661. value: []
  2662. }, {
  2663. label: this.$L('工作流'),
  2664. value: [this.$L('未启动'), this.$L('进行中'), this.$L('已完成'), this.$L('已搁置')]
  2665. }, {
  2666. label: this.$L('时间流'),
  2667. value: [this.$L('第一季度'), this.$L('第二季度'), this.$L('第三季度'), this.$L('第四季度'), this.$L('已搁置')]
  2668. }];
  2669. this.ruleAdd = {
  2670. title: [{ required: true, message: this.$L('请填写项目名称!'), trigger: 'change' }, { type: 'string', min: 2, message: this.$L('项目名称至少2个字!'), trigger: 'change' }]
  2671. };
  2672. },
  2673. setPage: function setPage(page) {
  2674. this.listPage = page;
  2675. this.getLists();
  2676. },
  2677. setPageSize: function setPageSize(size) {
  2678. if (Math.max($A.runNum(this.listPageSize), 20) != size) {
  2679. this.listPageSize = size;
  2680. this.getLists();
  2681. }
  2682. },
  2683. getLists: function getLists(resetLoad) {
  2684. var _this2 = this;
  2685. if (resetLoad === true) {
  2686. this.listPage = 1;
  2687. }
  2688. this.loadIng++;
  2689. $A.apiAjax({
  2690. url: 'project/lists',
  2691. data: {
  2692. page: Math.max(this.listPage, 1),
  2693. pagesize: Math.max($A.runNum(this.listPageSize), 20)
  2694. },
  2695. complete: function complete() {
  2696. _this2.loadIng--;
  2697. },
  2698. success: function success(res) {
  2699. if (res.ret === 1) {
  2700. _this2.lists = res.data.lists;
  2701. _this2.listTotal = res.data.total;
  2702. } else {
  2703. _this2.lists = [];
  2704. _this2.listTotal = 0;
  2705. }
  2706. }
  2707. });
  2708. },
  2709. addLabels: function addLabels() {
  2710. var _this3 = this;
  2711. this.labelsValue = "";
  2712. this.$Modal.confirm({
  2713. render: function render(h) {
  2714. return h('div', [h('div', {
  2715. style: {
  2716. fontSize: '16px',
  2717. fontWeight: '500',
  2718. marginBottom: '20px'
  2719. }
  2720. }, _this3.$L('添加流程')), h('TagInput', {
  2721. props: {
  2722. value: _this3.labelsValue,
  2723. autofocus: true,
  2724. placeholder: _this3.$L('请输入流程名称,多个可用英文逗号分隔。')
  2725. },
  2726. on: {
  2727. input: function input(val) {
  2728. _this3.labelsValue = val;
  2729. }
  2730. }
  2731. })]);
  2732. },
  2733. onOk: function onOk() {
  2734. if (_this3.labelsValue) {
  2735. var array = $A.trim(_this3.labelsValue).split(",");
  2736. array.forEach(function (name) {
  2737. if ($A.trim(name)) {
  2738. _this3.formAdd.labels.push($A.trim(name));
  2739. }
  2740. });
  2741. }
  2742. }
  2743. });
  2744. },
  2745. onAdd: function onAdd() {
  2746. var _this4 = this;
  2747. this.$refs.add.validate(function (valid) {
  2748. if (valid) {
  2749. _this4.loadIng++;
  2750. $A.apiAjax({
  2751. url: 'project/add',
  2752. data: _this4.formAdd,
  2753. complete: function complete() {
  2754. _this4.loadIng--;
  2755. },
  2756. success: function success(res) {
  2757. if (res.ret === 1) {
  2758. _this4.addShow = false;
  2759. _this4.$Message.success(res.msg);
  2760. _this4.$refs.add.resetFields();
  2761. _this4.$set(_this4.formAdd, 'template', 0);
  2762. //
  2763. _this4.getLists(true);
  2764. } else {
  2765. _this4.$Modal.error({ title: _this4.$L('温馨提示'), content: res.msg });
  2766. }
  2767. }
  2768. });
  2769. }
  2770. });
  2771. },
  2772. openComplete: function openComplete(item) {
  2773. if (item.complete > 0) {
  2774. this.openProject(item.id, item, '已完成');
  2775. } else {
  2776. this.handleProject('open', item);
  2777. }
  2778. },
  2779. handleProject: function handleProject(event, item) {
  2780. var _this5 = this;
  2781. if (item) {
  2782. this.handleProjectId = item.id;
  2783. }
  2784. switch (event) {
  2785. case 'favor':
  2786. {
  2787. this.favorProject('add', item.id);
  2788. break;
  2789. }
  2790. case 'rename':
  2791. {
  2792. this.renameProject(item);
  2793. break;
  2794. }
  2795. case 'transfer':
  2796. {
  2797. this.transferProject(item);
  2798. break;
  2799. }
  2800. case 'delete':
  2801. {
  2802. this.deleteProject(item.id, function () {
  2803. _this5.getLists();
  2804. });
  2805. break;
  2806. }
  2807. case 'out':
  2808. {
  2809. this.outProject(item.id, function () {
  2810. _this5.getLists();
  2811. });
  2812. break;
  2813. }
  2814. case 'open':
  2815. {
  2816. this.openProject(item.id, item);
  2817. break;
  2818. }
  2819. case 'archived':
  2820. case 'member':
  2821. case 'statistics':
  2822. {
  2823. this.projectDrawerShow = true;
  2824. this.projectDrawerTab = event;
  2825. break;
  2826. }
  2827. case 'myjoin':
  2828. case 'myfavor':
  2829. case 'mycreate':
  2830. {
  2831. this.projectListDrawerShow = true;
  2832. this.projectListDrawerTab = event;
  2833. break;
  2834. }
  2835. }
  2836. },
  2837. renameProject: function renameProject(item) {
  2838. var _this6 = this;
  2839. this.renameValue = "";
  2840. this.$Modal.confirm({
  2841. render: function render(h) {
  2842. return h('div', [h('div', {
  2843. style: {
  2844. fontSize: '16px',
  2845. fontWeight: '500',
  2846. marginBottom: '20px'
  2847. }
  2848. }, _this6.$L('重命名项目')), h('Input', {
  2849. props: {
  2850. value: _this6.renameValue,
  2851. autofocus: true,
  2852. placeholder: _this6.$L('请输入新的项目名称')
  2853. },
  2854. on: {
  2855. input: function input(val) {
  2856. _this6.renameValue = val;
  2857. }
  2858. }
  2859. })]);
  2860. },
  2861. loading: true,
  2862. onOk: function onOk() {
  2863. if (_this6.renameValue) {
  2864. _this6.$set(item, 'loadIng', true);
  2865. var title = _this6.renameValue;
  2866. $A.apiAjax({
  2867. url: 'project/rename',
  2868. data: {
  2869. projectid: item.id,
  2870. title: title
  2871. },
  2872. complete: function complete() {
  2873. _this6.$set(item, 'loadIng', false);
  2874. },
  2875. error: function error() {
  2876. _this6.$Modal.remove();
  2877. alert(_this6.$L('网络繁忙,请稍后再试!'));
  2878. },
  2879. success: function success(res) {
  2880. _this6.$Modal.remove();
  2881. _this6.$set(item, 'title', title);
  2882. setTimeout(function () {
  2883. if (res.ret === 1) {
  2884. _this6.$Message.success(res.msg);
  2885. } else {
  2886. _this6.$Modal.error({ title: _this6.$L('温馨提示'), content: res.msg });
  2887. }
  2888. }, 350);
  2889. }
  2890. });
  2891. } else {
  2892. _this6.$Modal.remove();
  2893. }
  2894. }
  2895. });
  2896. },
  2897. transferProject: function transferProject(item) {
  2898. var _this7 = this;
  2899. this.transferValue = "";
  2900. this.$Modal.confirm({
  2901. render: function render(h) {
  2902. return h('div', [h('div', {
  2903. style: {
  2904. fontSize: '16px',
  2905. fontWeight: '500',
  2906. marginBottom: '20px'
  2907. }
  2908. }, _this7.$L('移交项目')), h('UserInput', {
  2909. props: {
  2910. value: _this7.transferValue,
  2911. nousername: item.username,
  2912. placeholder: _this7.$L('请输入昵称/用户名搜索')
  2913. },
  2914. on: {
  2915. input: function input(val) {
  2916. _this7.transferValue = val;
  2917. }
  2918. }
  2919. })]);
  2920. },
  2921. loading: true,
  2922. onOk: function onOk() {
  2923. if (_this7.transferValue) {
  2924. _this7.$set(item, 'loadIng', true);
  2925. var username = _this7.transferValue;
  2926. $A.apiAjax({
  2927. url: 'project/transfer',
  2928. data: {
  2929. projectid: item.id,
  2930. username: username
  2931. },
  2932. complete: function complete() {
  2933. _this7.$set(item, 'loadIng', false);
  2934. },
  2935. error: function error() {
  2936. _this7.$Modal.remove();
  2937. alert(_this7.$L('网络繁忙,请稍后再试!'));
  2938. },
  2939. success: function success(res) {
  2940. _this7.$Modal.remove();
  2941. _this7.getLists();
  2942. setTimeout(function () {
  2943. if (res.ret === 1) {
  2944. _this7.$Message.success(res.msg);
  2945. } else {
  2946. _this7.$Modal.error({ title: _this7.$L('温馨提示'), content: res.msg });
  2947. }
  2948. }, 350);
  2949. }
  2950. });
  2951. } else {
  2952. _this7.$Modal.remove();
  2953. }
  2954. }
  2955. });
  2956. },
  2957. selfProportion: function selfProportion(complete, count) {
  2958. if (count <= 0) {
  2959. return 100;
  2960. }
  2961. return Math.round(complete / count * 100);
  2962. }
  2963. }
  2964. });
  2965. /***/ }),
  2966. /***/ 756:
  2967. /***/ (function(module, exports, __webpack_require__) {
  2968. var disposed = false
  2969. function injectStyle (ssrContext) {
  2970. if (disposed) return
  2971. __webpack_require__(757)
  2972. }
  2973. var normalizeComponent = __webpack_require__(2)
  2974. /* script */
  2975. var __vue_script__ = __webpack_require__(759)
  2976. /* template */
  2977. var __vue_template__ = __webpack_require__(760)
  2978. /* template functional */
  2979. var __vue_template_functional__ = false
  2980. /* styles */
  2981. var __vue_styles__ = injectStyle
  2982. /* scopeId */
  2983. var __vue_scopeId__ = "data-v-6c4e3706"
  2984. /* moduleIdentifier (server only) */
  2985. var __vue_module_identifier__ = null
  2986. var Component = normalizeComponent(
  2987. __vue_script__,
  2988. __vue_template__,
  2989. __vue_template_functional__,
  2990. __vue_styles__,
  2991. __vue_scopeId__,
  2992. __vue_module_identifier__
  2993. )
  2994. Component.options.__file = "resources/assets/js/main/components/project/my/favor.vue"
  2995. /* hot reload */
  2996. if (false) {(function () {
  2997. var hotAPI = require("vue-hot-reload-api")
  2998. hotAPI.install(require("vue"), false)
  2999. if (!hotAPI.compatible) return
  3000. module.hot.accept()
  3001. if (!module.hot.data) {
  3002. hotAPI.createRecord("data-v-6c4e3706", Component.options)
  3003. } else {
  3004. hotAPI.reload("data-v-6c4e3706", Component.options)
  3005. }
  3006. module.hot.dispose(function (data) {
  3007. disposed = true
  3008. })
  3009. })()}
  3010. module.exports = Component.exports
  3011. /***/ }),
  3012. /***/ 757:
  3013. /***/ (function(module, exports, __webpack_require__) {
  3014. // style-loader: Adds some css to the DOM by adding a <style> tag
  3015. // load the styles
  3016. var content = __webpack_require__(758);
  3017. if(typeof content === 'string') content = [[module.i, content, '']];
  3018. if(content.locals) module.exports = content.locals;
  3019. // add the styles to the DOM
  3020. var update = __webpack_require__(1)("66fbcb3b", content, false, {});
  3021. // Hot Module Replacement
  3022. if(false) {
  3023. // When the styles change, update the <style> tags
  3024. if(!content.locals) {
  3025. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6c4e3706\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./favor.vue", function() {
  3026. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-6c4e3706\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./favor.vue");
  3027. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3028. update(newContent);
  3029. });
  3030. }
  3031. // When the module is disposed, remove the <style> tags
  3032. module.hot.dispose(function() { update(); });
  3033. }
  3034. /***/ }),
  3035. /***/ 758:
  3036. /***/ (function(module, exports, __webpack_require__) {
  3037. exports = module.exports = __webpack_require__(0)(false);
  3038. // imports
  3039. // module
  3040. exports.push([module.i, "\n.project-my-favor .tableFill[data-v-6c4e3706] {\n margin: 12px 12px 20px;\n}\n", ""]);
  3041. // exports
  3042. /***/ }),
  3043. /***/ 759:
  3044. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3045. "use strict";
  3046. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3047. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_project__ = __webpack_require__(324);
  3048. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(7);
  3049. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__);
  3050. //
  3051. //
  3052. //
  3053. //
  3054. //
  3055. //
  3056. //
  3057. //
  3058. //
  3059. //
  3060. //
  3061. //
  3062. //
  3063. //
  3064. //
  3065. //
  3066. //
  3067. //
  3068. /* harmony default export */ __webpack_exports__["default"] = ({
  3069. name: 'ProjectMyFavor',
  3070. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default.a },
  3071. props: {
  3072. canload: {
  3073. type: Boolean,
  3074. default: true
  3075. }
  3076. },
  3077. mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_project__["a" /* default */]],
  3078. data: function data() {
  3079. return {
  3080. loadYet: false,
  3081. loadIng: 0,
  3082. columns: [],
  3083. lists: [],
  3084. listPage: 1,
  3085. listTotal: 0,
  3086. noDataText: ""
  3087. };
  3088. },
  3089. mounted: function mounted() {
  3090. if (this.canload) {
  3091. this.loadYet = true;
  3092. this.getLists(true);
  3093. }
  3094. },
  3095. watch: {
  3096. canload: function canload(val) {
  3097. if (val && !this.loadYet) {
  3098. this.loadYet = true;
  3099. this.getLists(true);
  3100. }
  3101. }
  3102. },
  3103. methods: {
  3104. initLanguage: function initLanguage() {
  3105. var _this = this;
  3106. this.noDataText = this.$L("数据加载中.....");
  3107. this.columns = [{
  3108. "title": this.$L("项目名称"),
  3109. "key": 'title',
  3110. "minWidth": 100,
  3111. render: function render(h, params) {
  3112. return h('a', {
  3113. attrs: {
  3114. href: 'javascript:void(0)'
  3115. },
  3116. on: {
  3117. click: function click() {
  3118. _this.openProject(params.row.id);
  3119. }
  3120. }
  3121. }, params.row.title);
  3122. }
  3123. }, {
  3124. "title": this.$L("收藏时间"),
  3125. "minWidth": 160,
  3126. render: function render(h, params) {
  3127. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.uindate));
  3128. }
  3129. }, {
  3130. "title": this.$L("操作"),
  3131. "key": 'action',
  3132. "width": 80,
  3133. "align": 'center',
  3134. render: function render(h, params) {
  3135. return h('Button', {
  3136. props: {
  3137. type: 'primary',
  3138. size: 'small'
  3139. },
  3140. style: {
  3141. fontSize: '12px'
  3142. },
  3143. on: {
  3144. click: function click() {
  3145. _this.$Modal.confirm({
  3146. title: _this.$L('取消收藏'),
  3147. content: _this.$L('你确定要取消收藏此项目吗?'),
  3148. loading: true,
  3149. onOk: function onOk() {
  3150. _this.favorProject('cancel', params.row.id, function () {
  3151. _this.getLists();
  3152. });
  3153. }
  3154. });
  3155. }
  3156. }
  3157. }, _this.$L('取消'));
  3158. }
  3159. }];
  3160. },
  3161. setPage: function setPage(page) {
  3162. this.listPage = page;
  3163. this.getLists();
  3164. },
  3165. setPageSize: function setPageSize(size) {
  3166. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  3167. this.listPageSize = size;
  3168. this.getLists();
  3169. }
  3170. },
  3171. getLists: function getLists(resetLoad) {
  3172. var _this2 = this;
  3173. if (resetLoad === true) {
  3174. this.listPage = 1;
  3175. }
  3176. this.loadIng++;
  3177. this.noDataText = this.$L("数据加载中.....");
  3178. $A.apiAjax({
  3179. url: 'project/lists',
  3180. data: {
  3181. act: 'favor',
  3182. page: Math.max(this.listPage, 1),
  3183. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  3184. },
  3185. complete: function complete() {
  3186. _this2.loadIng--;
  3187. },
  3188. error: function error() {
  3189. _this2.noDataText = _this2.$L("数据加载失败!");
  3190. },
  3191. success: function success(res) {
  3192. if (res.ret === 1) {
  3193. _this2.lists = res.data.lists;
  3194. _this2.listTotal = res.data.total;
  3195. _this2.noDataText = _this2.$L("没有相关的数据");
  3196. } else {
  3197. _this2.lists = [];
  3198. _this2.listTotal = 0;
  3199. _this2.noDataText = res.msg;
  3200. }
  3201. }
  3202. });
  3203. }
  3204. }
  3205. });
  3206. /***/ }),
  3207. /***/ 760:
  3208. /***/ (function(module, exports, __webpack_require__) {
  3209. var render = function() {
  3210. var _vm = this
  3211. var _h = _vm.$createElement
  3212. var _c = _vm._self._c || _h
  3213. return _c("drawer-tabs-container", [
  3214. _c(
  3215. "div",
  3216. { staticClass: "project-my-favor" },
  3217. [
  3218. _c("Table", {
  3219. ref: "tableRef",
  3220. staticClass: "tableFill",
  3221. attrs: {
  3222. columns: _vm.columns,
  3223. data: _vm.lists,
  3224. loading: _vm.loadIng > 0,
  3225. "no-data-text": _vm.noDataText,
  3226. stripe: ""
  3227. }
  3228. }),
  3229. _vm._v(" "),
  3230. _c("Page", {
  3231. staticClass: "pageBox",
  3232. attrs: {
  3233. total: _vm.listTotal,
  3234. current: _vm.listPage,
  3235. disabled: _vm.loadIng > 0,
  3236. "page-size-opts": [10, 20, 30, 50, 100],
  3237. placement: "top",
  3238. "show-elevator": "",
  3239. "show-sizer": "",
  3240. "show-total": "",
  3241. transfer: "",
  3242. simple: _vm.windowMax768
  3243. },
  3244. on: {
  3245. "on-change": _vm.setPage,
  3246. "on-page-size-change": _vm.setPageSize
  3247. }
  3248. })
  3249. ],
  3250. 1
  3251. )
  3252. ])
  3253. }
  3254. var staticRenderFns = []
  3255. render._withStripped = true
  3256. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3257. if (false) {
  3258. module.hot.accept()
  3259. if (module.hot.data) {
  3260. require("vue-hot-reload-api") .rerender("data-v-6c4e3706", module.exports)
  3261. }
  3262. }
  3263. /***/ }),
  3264. /***/ 761:
  3265. /***/ (function(module, exports, __webpack_require__) {
  3266. var disposed = false
  3267. function injectStyle (ssrContext) {
  3268. if (disposed) return
  3269. __webpack_require__(762)
  3270. }
  3271. var normalizeComponent = __webpack_require__(2)
  3272. /* script */
  3273. var __vue_script__ = __webpack_require__(764)
  3274. /* template */
  3275. var __vue_template__ = __webpack_require__(765)
  3276. /* template functional */
  3277. var __vue_template_functional__ = false
  3278. /* styles */
  3279. var __vue_styles__ = injectStyle
  3280. /* scopeId */
  3281. var __vue_scopeId__ = "data-v-3770ef92"
  3282. /* moduleIdentifier (server only) */
  3283. var __vue_module_identifier__ = null
  3284. var Component = normalizeComponent(
  3285. __vue_script__,
  3286. __vue_template__,
  3287. __vue_template_functional__,
  3288. __vue_styles__,
  3289. __vue_scopeId__,
  3290. __vue_module_identifier__
  3291. )
  3292. Component.options.__file = "resources/assets/js/main/components/project/my/join.vue"
  3293. /* hot reload */
  3294. if (false) {(function () {
  3295. var hotAPI = require("vue-hot-reload-api")
  3296. hotAPI.install(require("vue"), false)
  3297. if (!hotAPI.compatible) return
  3298. module.hot.accept()
  3299. if (!module.hot.data) {
  3300. hotAPI.createRecord("data-v-3770ef92", Component.options)
  3301. } else {
  3302. hotAPI.reload("data-v-3770ef92", Component.options)
  3303. }
  3304. module.hot.dispose(function (data) {
  3305. disposed = true
  3306. })
  3307. })()}
  3308. module.exports = Component.exports
  3309. /***/ }),
  3310. /***/ 762:
  3311. /***/ (function(module, exports, __webpack_require__) {
  3312. // style-loader: Adds some css to the DOM by adding a <style> tag
  3313. // load the styles
  3314. var content = __webpack_require__(763);
  3315. if(typeof content === 'string') content = [[module.i, content, '']];
  3316. if(content.locals) module.exports = content.locals;
  3317. // add the styles to the DOM
  3318. var update = __webpack_require__(1)("5e5666bc", content, false, {});
  3319. // Hot Module Replacement
  3320. if(false) {
  3321. // When the styles change, update the <style> tags
  3322. if(!content.locals) {
  3323. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-3770ef92\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./join.vue", function() {
  3324. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-3770ef92\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./join.vue");
  3325. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3326. update(newContent);
  3327. });
  3328. }
  3329. // When the module is disposed, remove the <style> tags
  3330. module.hot.dispose(function() { update(); });
  3331. }
  3332. /***/ }),
  3333. /***/ 763:
  3334. /***/ (function(module, exports, __webpack_require__) {
  3335. exports = module.exports = __webpack_require__(0)(false);
  3336. // imports
  3337. // module
  3338. exports.push([module.i, "\n.project-my-join .tableFill[data-v-3770ef92] {\n margin: 12px 12px 20px;\n}\n", ""]);
  3339. // exports
  3340. /***/ }),
  3341. /***/ 764:
  3342. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3343. "use strict";
  3344. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3345. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_project__ = __webpack_require__(324);
  3346. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(7);
  3347. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__);
  3348. //
  3349. //
  3350. //
  3351. //
  3352. //
  3353. //
  3354. //
  3355. //
  3356. //
  3357. //
  3358. //
  3359. //
  3360. //
  3361. //
  3362. //
  3363. //
  3364. //
  3365. //
  3366. /* harmony default export */ __webpack_exports__["default"] = ({
  3367. name: 'ProjectMyJoin',
  3368. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default.a },
  3369. props: {
  3370. canload: {
  3371. type: Boolean,
  3372. default: true
  3373. }
  3374. },
  3375. mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_project__["a" /* default */]],
  3376. data: function data() {
  3377. return {
  3378. loadYet: false,
  3379. loadIng: 0,
  3380. columns: [],
  3381. lists: [],
  3382. listPage: 1,
  3383. listTotal: 0,
  3384. noDataText: ""
  3385. };
  3386. },
  3387. mounted: function mounted() {
  3388. if (this.canload) {
  3389. this.loadYet = true;
  3390. this.getLists(true);
  3391. }
  3392. },
  3393. watch: {
  3394. canload: function canload(val) {
  3395. if (val && !this.loadYet) {
  3396. this.loadYet = true;
  3397. this.getLists(true);
  3398. }
  3399. }
  3400. },
  3401. methods: {
  3402. initLanguage: function initLanguage() {
  3403. var _this = this;
  3404. this.noDataText = this.$L("数据加载中.....");
  3405. this.columns = [{
  3406. "title": this.$L("项目名称"),
  3407. "key": 'title',
  3408. "minWidth": 100,
  3409. render: function render(h, params) {
  3410. return h('a', {
  3411. attrs: {
  3412. href: 'javascript:void(0)'
  3413. },
  3414. on: {
  3415. click: function click() {
  3416. _this.openProject(params.row.id);
  3417. }
  3418. }
  3419. }, params.row.title);
  3420. }
  3421. }, {
  3422. "title": this.$L("加入时间"),
  3423. "minWidth": 160,
  3424. render: function render(h, params) {
  3425. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.uindate));
  3426. }
  3427. }, {
  3428. "title": this.$L("操作"),
  3429. "key": 'action',
  3430. "width": 80,
  3431. "align": 'center',
  3432. render: function render(h, params) {
  3433. return h('Button', {
  3434. props: {
  3435. type: 'primary',
  3436. size: 'small'
  3437. },
  3438. style: {
  3439. fontSize: '12px'
  3440. },
  3441. on: {
  3442. click: function click() {
  3443. _this.outProject(params.row.id, function () {
  3444. _this.getLists();
  3445. });
  3446. }
  3447. }
  3448. }, _this.$L('退出'));
  3449. }
  3450. }];
  3451. },
  3452. setPage: function setPage(page) {
  3453. this.listPage = page;
  3454. this.getLists();
  3455. },
  3456. setPageSize: function setPageSize(size) {
  3457. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  3458. this.listPageSize = size;
  3459. this.getLists();
  3460. }
  3461. },
  3462. getLists: function getLists(resetLoad) {
  3463. var _this2 = this;
  3464. if (resetLoad === true) {
  3465. this.listPage = 1;
  3466. }
  3467. this.loadIng++;
  3468. this.noDataText = this.$L("数据加载中.....");
  3469. $A.apiAjax({
  3470. url: 'project/lists',
  3471. data: {
  3472. act: 'join',
  3473. page: Math.max(this.listPage, 1),
  3474. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  3475. },
  3476. complete: function complete() {
  3477. _this2.loadIng--;
  3478. },
  3479. error: function error() {
  3480. _this2.noDataText = _this2.$L("数据加载失败!");
  3481. },
  3482. success: function success(res) {
  3483. if (res.ret === 1) {
  3484. _this2.lists = res.data.lists;
  3485. _this2.listTotal = res.data.total;
  3486. _this2.noDataText = _this2.$L("没有相关的数据");
  3487. } else {
  3488. _this2.lists = [];
  3489. _this2.listTotal = 0;
  3490. _this2.noDataText = res.msg;
  3491. }
  3492. }
  3493. });
  3494. }
  3495. }
  3496. });
  3497. /***/ }),
  3498. /***/ 765:
  3499. /***/ (function(module, exports, __webpack_require__) {
  3500. var render = function() {
  3501. var _vm = this
  3502. var _h = _vm.$createElement
  3503. var _c = _vm._self._c || _h
  3504. return _c("drawer-tabs-container", [
  3505. _c(
  3506. "div",
  3507. { staticClass: "project-my-join" },
  3508. [
  3509. _c("Table", {
  3510. ref: "tableRef",
  3511. staticClass: "tableFill",
  3512. attrs: {
  3513. columns: _vm.columns,
  3514. data: _vm.lists,
  3515. loading: _vm.loadIng > 0,
  3516. "no-data-text": _vm.noDataText,
  3517. stripe: ""
  3518. }
  3519. }),
  3520. _vm._v(" "),
  3521. _c("Page", {
  3522. staticClass: "pageBox",
  3523. attrs: {
  3524. total: _vm.listTotal,
  3525. current: _vm.listPage,
  3526. disabled: _vm.loadIng > 0,
  3527. "page-size-opts": [10, 20, 30, 50, 100],
  3528. placement: "top",
  3529. "show-elevator": "",
  3530. "show-sizer": "",
  3531. "show-total": "",
  3532. transfer: "",
  3533. simple: _vm.windowMax768
  3534. },
  3535. on: {
  3536. "on-change": _vm.setPage,
  3537. "on-page-size-change": _vm.setPageSize
  3538. }
  3539. })
  3540. ],
  3541. 1
  3542. )
  3543. ])
  3544. }
  3545. var staticRenderFns = []
  3546. render._withStripped = true
  3547. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3548. if (false) {
  3549. module.hot.accept()
  3550. if (module.hot.data) {
  3551. require("vue-hot-reload-api") .rerender("data-v-3770ef92", module.exports)
  3552. }
  3553. }
  3554. /***/ }),
  3555. /***/ 766:
  3556. /***/ (function(module, exports, __webpack_require__) {
  3557. var disposed = false
  3558. function injectStyle (ssrContext) {
  3559. if (disposed) return
  3560. __webpack_require__(767)
  3561. }
  3562. var normalizeComponent = __webpack_require__(2)
  3563. /* script */
  3564. var __vue_script__ = __webpack_require__(769)
  3565. /* template */
  3566. var __vue_template__ = __webpack_require__(770)
  3567. /* template functional */
  3568. var __vue_template_functional__ = false
  3569. /* styles */
  3570. var __vue_styles__ = injectStyle
  3571. /* scopeId */
  3572. var __vue_scopeId__ = "data-v-d009b366"
  3573. /* moduleIdentifier (server only) */
  3574. var __vue_module_identifier__ = null
  3575. var Component = normalizeComponent(
  3576. __vue_script__,
  3577. __vue_template__,
  3578. __vue_template_functional__,
  3579. __vue_styles__,
  3580. __vue_scopeId__,
  3581. __vue_module_identifier__
  3582. )
  3583. Component.options.__file = "resources/assets/js/main/components/project/my/manage.vue"
  3584. /* hot reload */
  3585. if (false) {(function () {
  3586. var hotAPI = require("vue-hot-reload-api")
  3587. hotAPI.install(require("vue"), false)
  3588. if (!hotAPI.compatible) return
  3589. module.hot.accept()
  3590. if (!module.hot.data) {
  3591. hotAPI.createRecord("data-v-d009b366", Component.options)
  3592. } else {
  3593. hotAPI.reload("data-v-d009b366", Component.options)
  3594. }
  3595. module.hot.dispose(function (data) {
  3596. disposed = true
  3597. })
  3598. })()}
  3599. module.exports = Component.exports
  3600. /***/ }),
  3601. /***/ 767:
  3602. /***/ (function(module, exports, __webpack_require__) {
  3603. // style-loader: Adds some css to the DOM by adding a <style> tag
  3604. // load the styles
  3605. var content = __webpack_require__(768);
  3606. if(typeof content === 'string') content = [[module.i, content, '']];
  3607. if(content.locals) module.exports = content.locals;
  3608. // add the styles to the DOM
  3609. var update = __webpack_require__(1)("3c32c461", content, false, {});
  3610. // Hot Module Replacement
  3611. if(false) {
  3612. // When the styles change, update the <style> tags
  3613. if(!content.locals) {
  3614. module.hot.accept("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-d009b366\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./manage.vue", function() {
  3615. var newContent = require("!!../../../../../../../node_modules/css-loader/index.js!../../../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-d009b366\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../../../node_modules/sass-loader/lib/loader.js!../../../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./manage.vue");
  3616. if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
  3617. update(newContent);
  3618. });
  3619. }
  3620. // When the module is disposed, remove the <style> tags
  3621. module.hot.dispose(function() { update(); });
  3622. }
  3623. /***/ }),
  3624. /***/ 768:
  3625. /***/ (function(module, exports, __webpack_require__) {
  3626. exports = module.exports = __webpack_require__(0)(false);
  3627. // imports
  3628. // module
  3629. exports.push([module.i, "\n.project-my-manage .tableFill[data-v-d009b366] {\n margin: 12px 12px 20px;\n}\n", ""]);
  3630. // exports
  3631. /***/ }),
  3632. /***/ 769:
  3633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3634. "use strict";
  3635. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3636. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_project__ = __webpack_require__(324);
  3637. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(7);
  3638. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__);
  3639. //
  3640. //
  3641. //
  3642. //
  3643. //
  3644. //
  3645. //
  3646. //
  3647. //
  3648. //
  3649. //
  3650. //
  3651. //
  3652. //
  3653. //
  3654. //
  3655. //
  3656. //
  3657. /* harmony default export */ __webpack_exports__["default"] = ({
  3658. name: 'ProjectMyManage',
  3659. components: { DrawerTabsContainer: __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer___default.a },
  3660. props: {
  3661. canload: {
  3662. type: Boolean,
  3663. default: true
  3664. }
  3665. },
  3666. mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_project__["a" /* default */]],
  3667. data: function data() {
  3668. return {
  3669. loadYet: false,
  3670. loadIng: 0,
  3671. columns: [],
  3672. lists: [],
  3673. listPage: 1,
  3674. listTotal: 0,
  3675. noDataText: ""
  3676. };
  3677. },
  3678. mounted: function mounted() {
  3679. if (this.canload) {
  3680. this.loadYet = true;
  3681. this.getLists(true);
  3682. }
  3683. },
  3684. watch: {
  3685. canload: function canload(val) {
  3686. if (val && !this.loadYet) {
  3687. this.loadYet = true;
  3688. this.getLists(true);
  3689. }
  3690. }
  3691. },
  3692. methods: {
  3693. initLanguage: function initLanguage() {
  3694. var _this = this;
  3695. this.noDataText = this.$L("数据加载中.....");
  3696. this.columns = [{
  3697. "title": this.$L("项目名称"),
  3698. "key": 'title',
  3699. "minWidth": 100,
  3700. render: function render(h, params) {
  3701. return h('a', {
  3702. attrs: {
  3703. href: 'javascript:void(0)'
  3704. },
  3705. on: {
  3706. click: function click() {
  3707. _this.openProject(params.row.id);
  3708. }
  3709. }
  3710. }, params.row.title);
  3711. }
  3712. }, {
  3713. "title": this.$L("创建时间"),
  3714. "minWidth": 160,
  3715. render: function render(h, params) {
  3716. return h('span', $A.formatDate("Y-m-d H:i:s", params.row.indate));
  3717. }
  3718. }, {
  3719. "title": this.$L("操作"),
  3720. "key": 'action',
  3721. "width": 80,
  3722. "align": 'center',
  3723. render: function render(h, params) {
  3724. return h('Button', {
  3725. props: {
  3726. type: 'primary',
  3727. size: 'small'
  3728. },
  3729. style: {
  3730. fontSize: '12px'
  3731. },
  3732. on: {
  3733. click: function click() {
  3734. _this.deleteProject(params.row.id, function () {
  3735. _this.getLists();
  3736. });
  3737. }
  3738. }
  3739. }, _this.$L('删除'));
  3740. }
  3741. }];
  3742. },
  3743. setPage: function setPage(page) {
  3744. this.listPage = page;
  3745. this.getLists();
  3746. },
  3747. setPageSize: function setPageSize(size) {
  3748. if (Math.max($A.runNum(this.listPageSize), 10) != size) {
  3749. this.listPageSize = size;
  3750. this.getLists();
  3751. }
  3752. },
  3753. getLists: function getLists(resetLoad) {
  3754. var _this2 = this;
  3755. if (resetLoad === true) {
  3756. this.listPage = 1;
  3757. }
  3758. this.loadIng++;
  3759. this.noDataText = this.$L("数据加载中.....");
  3760. $A.apiAjax({
  3761. url: 'project/lists',
  3762. data: {
  3763. act: 'manage',
  3764. page: Math.max(this.listPage, 1),
  3765. pagesize: Math.max($A.runNum(this.listPageSize), 10)
  3766. },
  3767. complete: function complete() {
  3768. _this2.loadIng--;
  3769. },
  3770. error: function error() {
  3771. _this2.noDataText = _this2.$L("数据加载失败!");
  3772. },
  3773. success: function success(res) {
  3774. if (res.ret === 1) {
  3775. _this2.lists = res.data.lists;
  3776. _this2.listTotal = res.data.total;
  3777. _this2.noDataText = _this2.$L("没有相关的数据");
  3778. } else {
  3779. _this2.lists = [];
  3780. _this2.listTotal = 0;
  3781. _this2.noDataText = res.msg;
  3782. }
  3783. }
  3784. });
  3785. }
  3786. }
  3787. });
  3788. /***/ }),
  3789. /***/ 770:
  3790. /***/ (function(module, exports, __webpack_require__) {
  3791. var render = function() {
  3792. var _vm = this
  3793. var _h = _vm.$createElement
  3794. var _c = _vm._self._c || _h
  3795. return _c("drawer-tabs-container", [
  3796. _c(
  3797. "div",
  3798. { staticClass: "project-my-manage" },
  3799. [
  3800. _c("Table", {
  3801. ref: "tableRef",
  3802. staticClass: "tableFill",
  3803. attrs: {
  3804. columns: _vm.columns,
  3805. data: _vm.lists,
  3806. loading: _vm.loadIng > 0,
  3807. "no-data-text": _vm.noDataText,
  3808. stripe: ""
  3809. }
  3810. }),
  3811. _vm._v(" "),
  3812. _c("Page", {
  3813. staticClass: "pageBox",
  3814. attrs: {
  3815. total: _vm.listTotal,
  3816. current: _vm.listPage,
  3817. disabled: _vm.loadIng > 0,
  3818. "page-size-opts": [10, 20, 30, 50, 100],
  3819. placement: "top",
  3820. "show-elevator": "",
  3821. "show-sizer": "",
  3822. "show-total": "",
  3823. transfer: "",
  3824. simple: _vm.windowMax768
  3825. },
  3826. on: {
  3827. "on-change": _vm.setPage,
  3828. "on-page-size-change": _vm.setPageSize
  3829. }
  3830. })
  3831. ],
  3832. 1
  3833. )
  3834. ])
  3835. }
  3836. var staticRenderFns = []
  3837. render._withStripped = true
  3838. module.exports = { render: render, staticRenderFns: staticRenderFns }
  3839. if (false) {
  3840. module.hot.accept()
  3841. if (module.hot.data) {
  3842. require("vue-hot-reload-api") .rerender("data-v-d009b366", module.exports)
  3843. }
  3844. }
  3845. /***/ }),
  3846. /***/ 771:
  3847. /***/ (function(module, exports, __webpack_require__) {
  3848. var render = function() {
  3849. var _vm = this
  3850. var _h = _vm.$createElement
  3851. var _c = _vm._self._c || _h
  3852. return _c(
  3853. "div",
  3854. { staticClass: "w-main project" },
  3855. [
  3856. _c("v-title", [_vm._v(_vm._s(_vm.$L("项目")))]),
  3857. _vm._v(" "),
  3858. _c("div", { staticClass: "w-nav" }, [
  3859. _c("div", { staticClass: "nav-row" }, [
  3860. _c("div", { staticClass: "w-nav-left" }, [
  3861. _c("div", { staticClass: "page-nav-left" }, [
  3862. _c(
  3863. "span",
  3864. {
  3865. staticClass: "hover",
  3866. on: {
  3867. click: function($event) {
  3868. _vm.addShow = true
  3869. }
  3870. }
  3871. },
  3872. [
  3873. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3874. _vm._v(" " + _vm._s(_vm.$L("新建项目")))
  3875. ]
  3876. ),
  3877. _vm._v(" "),
  3878. _vm.loadIng > 0
  3879. ? _c(
  3880. "div",
  3881. { staticClass: "page-nav-loading" },
  3882. [_c("w-loading")],
  3883. 1
  3884. )
  3885. : _c("div", { staticClass: "page-nav-refresh" }, [
  3886. _c(
  3887. "em",
  3888. {
  3889. on: {
  3890. click: function($event) {
  3891. return _vm.getLists(true)
  3892. }
  3893. }
  3894. },
  3895. [_vm._v(_vm._s(_vm.$L("刷新")))]
  3896. )
  3897. ])
  3898. ])
  3899. ]),
  3900. _vm._v(" "),
  3901. _c("div", { staticClass: "w-nav-flex" }),
  3902. _vm._v(" "),
  3903. _c(
  3904. "div",
  3905. { staticClass: "w-nav-right m768-show" },
  3906. [
  3907. _c(
  3908. "Dropdown",
  3909. {
  3910. attrs: { trigger: "click", transfer: "" },
  3911. on: { "on-click": _vm.handleProject }
  3912. },
  3913. [
  3914. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  3915. _vm._v(" "),
  3916. _c(
  3917. "DropdownMenu",
  3918. { attrs: { slot: "list" }, slot: "list" },
  3919. [
  3920. _c("DropdownItem", { attrs: { name: "myjoin" } }, [
  3921. _vm._v(_vm._s(_vm.$L("参与的项目")))
  3922. ]),
  3923. _vm._v(" "),
  3924. _c("DropdownItem", { attrs: { name: "myfavor" } }, [
  3925. _vm._v(_vm._s(_vm.$L("收藏的项目")))
  3926. ]),
  3927. _vm._v(" "),
  3928. _c("DropdownItem", { attrs: { name: "mycreate" } }, [
  3929. _vm._v(_vm._s(_vm.$L("我管理的项目")))
  3930. ])
  3931. ],
  3932. 1
  3933. )
  3934. ],
  3935. 1
  3936. )
  3937. ],
  3938. 1
  3939. ),
  3940. _vm._v(" "),
  3941. _c("div", { staticClass: "w-nav-right m768-hide" }, [
  3942. _c(
  3943. "span",
  3944. {
  3945. staticClass: "ft hover",
  3946. on: {
  3947. click: function($event) {
  3948. return _vm.handleProject("myjoin", null)
  3949. }
  3950. }
  3951. },
  3952. [
  3953. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3954. _vm._v(" " + _vm._s(_vm.$L("参与的项目")))
  3955. ]
  3956. ),
  3957. _vm._v(" "),
  3958. _c(
  3959. "span",
  3960. {
  3961. staticClass: "ft hover",
  3962. on: {
  3963. click: function($event) {
  3964. return _vm.handleProject("myfavor", null)
  3965. }
  3966. }
  3967. },
  3968. [
  3969. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3970. _vm._v(" " + _vm._s(_vm.$L("收藏的项目")))
  3971. ]
  3972. ),
  3973. _vm._v(" "),
  3974. _c(
  3975. "span",
  3976. {
  3977. staticClass: "ft hover",
  3978. on: {
  3979. click: function($event) {
  3980. return _vm.handleProject("mycreate", null)
  3981. }
  3982. }
  3983. },
  3984. [
  3985. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3986. _vm._v(" " + _vm._s(_vm.$L("我管理的项目")))
  3987. ]
  3988. )
  3989. ])
  3990. ])
  3991. ]),
  3992. _vm._v(" "),
  3993. _c(
  3994. "w-content",
  3995. [
  3996. _c(
  3997. "ul",
  3998. { staticClass: "project-list" },
  3999. _vm._l(_vm.lists, function(item) {
  4000. return _c("li", [
  4001. _c("div", { staticClass: "project-item" }, [
  4002. _c("div", { staticClass: "project-head" }, [
  4003. item.loadIng === true
  4004. ? _c(
  4005. "div",
  4006. { staticClass: "project-loading" },
  4007. [_c("w-loading")],
  4008. 1
  4009. )
  4010. : _vm._e(),
  4011. _vm._v(" "),
  4012. _c(
  4013. "div",
  4014. {
  4015. staticClass: "project-title",
  4016. on: {
  4017. click: function($event) {
  4018. return _vm.handleProject("open", item)
  4019. }
  4020. }
  4021. },
  4022. [_vm._v(_vm._s(item.title))]
  4023. ),
  4024. _vm._v(" "),
  4025. _c(
  4026. "div",
  4027. { staticClass: "project-setting" },
  4028. [
  4029. _c(
  4030. "Dropdown",
  4031. {
  4032. staticClass: "right-info",
  4033. attrs: { trigger: "click", transfer: "" },
  4034. on: {
  4035. "on-click": function($event) {
  4036. return _vm.handleProject($event, item)
  4037. }
  4038. }
  4039. },
  4040. [
  4041. _c("Icon", {
  4042. staticClass: "project-setting-icon",
  4043. attrs: { type: "md-settings", size: "16" }
  4044. }),
  4045. _vm._v(" "),
  4046. _c(
  4047. "Dropdown-menu",
  4048. { attrs: { slot: "list" }, slot: "list" },
  4049. [
  4050. _c(
  4051. "Dropdown-item",
  4052. { attrs: { name: "open" } },
  4053. [_vm._v(_vm._s(_vm.$L("打开")))]
  4054. ),
  4055. _vm._v(" "),
  4056. _c(
  4057. "Dropdown-item",
  4058. { attrs: { name: "favor" } },
  4059. [_vm._v(_vm._s(_vm.$L("收藏")))]
  4060. ),
  4061. _vm._v(" "),
  4062. item.isowner
  4063. ? _c(
  4064. "Dropdown-item",
  4065. { attrs: { name: "rename" } },
  4066. [_vm._v(_vm._s(_vm.$L("重命名")))]
  4067. )
  4068. : _vm._e(),
  4069. _vm._v(" "),
  4070. item.isowner
  4071. ? _c(
  4072. "Dropdown-item",
  4073. { attrs: { name: "transfer" } },
  4074. [_vm._v(_vm._s(_vm.$L("移交项目")))]
  4075. )
  4076. : _vm._e(),
  4077. _vm._v(" "),
  4078. item.isowner
  4079. ? _c(
  4080. "Dropdown-item",
  4081. { attrs: { name: "delete" } },
  4082. [_vm._v(_vm._s(_vm.$L("删除")))]
  4083. )
  4084. : _c(
  4085. "Dropdown-item",
  4086. { attrs: { name: "out" } },
  4087. [_vm._v(_vm._s(_vm.$L("退出")))]
  4088. )
  4089. ],
  4090. 1
  4091. )
  4092. ],
  4093. 1
  4094. )
  4095. ],
  4096. 1
  4097. )
  4098. ]),
  4099. _vm._v(" "),
  4100. _c(
  4101. "div",
  4102. {
  4103. staticClass: "project-num",
  4104. on: {
  4105. click: function($event) {
  4106. return _vm.handleProject("open", item)
  4107. }
  4108. }
  4109. },
  4110. [
  4111. _c(
  4112. "div",
  4113. { staticClass: "project-circle" },
  4114. [
  4115. _c(
  4116. "i-circle",
  4117. {
  4118. attrs: {
  4119. size: 100,
  4120. "trail-width": 8,
  4121. "stroke-width": 8,
  4122. percent: _vm.selfProportion(
  4123. item.self_complete,
  4124. item.self_count
  4125. ),
  4126. "stroke-linecap": "round",
  4127. "stroke-color": "#62C5FE"
  4128. }
  4129. },
  4130. [
  4131. _c("div", { staticClass: "project-circle-box" }, [
  4132. _c(
  4133. "div",
  4134. { staticClass: "project-circle-num" },
  4135. [
  4136. _c("em", [
  4137. _vm._v(_vm._s(item.self_complete))
  4138. ]),
  4139. _vm._v(" "),
  4140. _c("span", [
  4141. _vm._v(_vm._s(item.self_count))
  4142. ])
  4143. ]
  4144. ),
  4145. _vm._v(" "),
  4146. _c(
  4147. "div",
  4148. { staticClass: "project-circle-title" },
  4149. [_vm._v(_vm._s(_vm.$L("个人总计")))]
  4150. )
  4151. ])
  4152. ]
  4153. )
  4154. ],
  4155. 1
  4156. ),
  4157. _vm._v(" "),
  4158. _c("div", { staticClass: "project-situation" }, [
  4159. _c("ul", [
  4160. _c("li", [
  4161. _vm._v(_vm._s(_vm.$L("项目总任务数"))),
  4162. _c("em", [
  4163. _vm._v(_vm._s(item.complete + item.unfinished))
  4164. ])
  4165. ]),
  4166. _vm._v(" "),
  4167. _c("li", [
  4168. _vm._v(_vm._s(_vm.$L("项目已完成数"))),
  4169. _c("em", [_vm._v(_vm._s(item.complete))])
  4170. ]),
  4171. _vm._v(" "),
  4172. _c("li", [
  4173. _vm._v(_vm._s(_vm.$L("项目未完成数"))),
  4174. _c("em", [_vm._v(_vm._s(item.unfinished))])
  4175. ])
  4176. ])
  4177. ])
  4178. ]
  4179. ),
  4180. _vm._v(" "),
  4181. _c("div", { staticClass: "project-bottom" }, [
  4182. _c(
  4183. "div",
  4184. { staticClass: "project-iconbtn" },
  4185. [
  4186. _c("Icon", {
  4187. staticClass: "project-iconbtn-icon",
  4188. attrs: { type: "md-stats" }
  4189. }),
  4190. _vm._v(" "),
  4191. _c(
  4192. "div",
  4193. {
  4194. staticClass: "project-iconbtn-text",
  4195. on: {
  4196. click: function($event) {
  4197. $event.stopPropagation()
  4198. return _vm.handleProject("statistics", item)
  4199. }
  4200. }
  4201. },
  4202. [_vm._v(_vm._s(_vm.$L("项目统计")))]
  4203. )
  4204. ],
  4205. 1
  4206. ),
  4207. _vm._v(" "),
  4208. _c(
  4209. "div",
  4210. { staticClass: "project-iconbtn" },
  4211. [
  4212. _c("Icon", {
  4213. staticClass: "project-iconbtn-icon",
  4214. attrs: { type: "md-filing" }
  4215. }),
  4216. _vm._v(" "),
  4217. _c(
  4218. "div",
  4219. {
  4220. staticClass: "project-iconbtn-text",
  4221. on: {
  4222. click: function($event) {
  4223. $event.stopPropagation()
  4224. return _vm.handleProject("archived", item)
  4225. }
  4226. }
  4227. },
  4228. [_vm._v(_vm._s(_vm.$L("已归档任务")))]
  4229. )
  4230. ],
  4231. 1
  4232. ),
  4233. _vm._v(" "),
  4234. _c(
  4235. "div",
  4236. {
  4237. staticClass: "project-iconbtn project-people",
  4238. on: {
  4239. click: function($event) {
  4240. $event.stopPropagation()
  4241. return _vm.handleProject("member", item)
  4242. }
  4243. }
  4244. },
  4245. [
  4246. _vm._l(item.people_lists, function(uItem, uKey) {
  4247. return _c("UserImg", {
  4248. key: uKey,
  4249. staticClass: "userimg-icon",
  4250. attrs: {
  4251. info: uItem,
  4252. "two-words": "",
  4253. "show-title": ""
  4254. }
  4255. })
  4256. }),
  4257. _vm._v(" "),
  4258. item.people_count > 99
  4259. ? _c(
  4260. "div",
  4261. {
  4262. staticClass: "userimg-count",
  4263. attrs: { title: item.people_count }
  4264. },
  4265. [_vm._v("99+")]
  4266. )
  4267. : item.people_count > 5
  4268. ? _c("div", { staticClass: "userimg-count" }, [
  4269. _vm._v(_vm._s(item.people_count))
  4270. ])
  4271. : _vm._e()
  4272. ],
  4273. 2
  4274. )
  4275. ])
  4276. ])
  4277. ])
  4278. }),
  4279. 0
  4280. ),
  4281. _vm._v(" "),
  4282. _vm.listTotal > 0
  4283. ? _c("Page", {
  4284. staticClass: "pageBox",
  4285. attrs: {
  4286. total: _vm.listTotal,
  4287. current: _vm.listPage,
  4288. disabled: _vm.loadIng > 0,
  4289. pageSize: _vm.listPageSize,
  4290. "page-size-opts": [20, 40, 60, 100],
  4291. placement: "top",
  4292. transfer: "",
  4293. "show-elevator": "",
  4294. "show-sizer": "",
  4295. "show-total": "",
  4296. simple: _vm.windowMax768
  4297. },
  4298. on: {
  4299. "on-change": _vm.setPage,
  4300. "on-page-size-change": _vm.setPageSize
  4301. }
  4302. })
  4303. : _vm._e()
  4304. ],
  4305. 1
  4306. ),
  4307. _vm._v(" "),
  4308. _c(
  4309. "Modal",
  4310. {
  4311. attrs: {
  4312. title: _vm.$L("新建项目"),
  4313. closable: false,
  4314. "mask-closable": false,
  4315. "class-name": "simple-modal"
  4316. },
  4317. model: {
  4318. value: _vm.addShow,
  4319. callback: function($$v) {
  4320. _vm.addShow = $$v
  4321. },
  4322. expression: "addShow"
  4323. }
  4324. },
  4325. [
  4326. _c(
  4327. "Form",
  4328. {
  4329. ref: "add",
  4330. attrs: {
  4331. model: _vm.formAdd,
  4332. rules: _vm.ruleAdd,
  4333. "label-width": 80
  4334. },
  4335. nativeOn: {
  4336. submit: function($event) {
  4337. $event.preventDefault()
  4338. }
  4339. }
  4340. },
  4341. [
  4342. _c(
  4343. "FormItem",
  4344. { attrs: { prop: "title", label: _vm.$L("项目名称") } },
  4345. [
  4346. _c("Input", {
  4347. attrs: { type: "text" },
  4348. model: {
  4349. value: _vm.formAdd.title,
  4350. callback: function($$v) {
  4351. _vm.$set(_vm.formAdd, "title", $$v)
  4352. },
  4353. expression: "formAdd.title"
  4354. }
  4355. })
  4356. ],
  4357. 1
  4358. ),
  4359. _vm._v(" "),
  4360. _c(
  4361. "FormItem",
  4362. { attrs: { prop: "labels", label: _vm.$L("项目模板") } },
  4363. [
  4364. _c(
  4365. "Select",
  4366. {
  4367. on: {
  4368. "on-change": function(res) {
  4369. _vm.$set(
  4370. _vm.formAdd,
  4371. "labels",
  4372. _vm.labelLists[res].value
  4373. )
  4374. }
  4375. },
  4376. model: {
  4377. value: _vm.formAdd.template,
  4378. callback: function($$v) {
  4379. _vm.$set(_vm.formAdd, "template", $$v)
  4380. },
  4381. expression: "formAdd.template"
  4382. }
  4383. },
  4384. _vm._l(_vm.labelLists, function(item, index) {
  4385. return _c(
  4386. "Option",
  4387. { key: index, attrs: { value: index } },
  4388. [_vm._v(_vm._s(item.label))]
  4389. )
  4390. }),
  4391. 1
  4392. )
  4393. ],
  4394. 1
  4395. ),
  4396. _vm._v(" "),
  4397. _c("FormItem", { attrs: { label: _vm.$L("项目流程") } }, [
  4398. _c(
  4399. "div",
  4400. { staticStyle: { "line-height": "38px" } },
  4401. _vm._l(_vm.formAdd.labels, function(item, index) {
  4402. return _c(
  4403. "span",
  4404. [
  4405. index > 0 ? _c("span", [_vm._v(">")]) : _vm._e(),
  4406. _vm._v(" "),
  4407. _c(
  4408. "Tag",
  4409. {
  4410. attrs: {
  4411. closable: "",
  4412. size: "large",
  4413. color: "primary"
  4414. },
  4415. on: {
  4416. "on-close": function() {
  4417. _vm.formAdd.labels.splice(index, 1)
  4418. }
  4419. }
  4420. },
  4421. [_vm._v(_vm._s(item))]
  4422. )
  4423. ],
  4424. 1
  4425. )
  4426. }),
  4427. 0
  4428. ),
  4429. _vm._v(" "),
  4430. _vm.formAdd.labels.length > 0
  4431. ? _c("div", { staticStyle: { "margin-top": "4px" } })
  4432. : _vm._e(),
  4433. _vm._v(" "),
  4434. _c(
  4435. "div",
  4436. { staticStyle: { "margin-bottom": "-16px" } },
  4437. [
  4438. _c(
  4439. "Button",
  4440. {
  4441. attrs: { icon: "ios-add", type: "dashed" },
  4442. on: { click: _vm.addLabels }
  4443. },
  4444. [_vm._v(_vm._s(_vm.$L("添加流程")))]
  4445. )
  4446. ],
  4447. 1
  4448. )
  4449. ])
  4450. ],
  4451. 1
  4452. ),
  4453. _vm._v(" "),
  4454. _c(
  4455. "div",
  4456. { attrs: { slot: "footer" }, slot: "footer" },
  4457. [
  4458. _c(
  4459. "Button",
  4460. {
  4461. attrs: { type: "default" },
  4462. on: {
  4463. click: function($event) {
  4464. _vm.addShow = false
  4465. }
  4466. }
  4467. },
  4468. [_vm._v(_vm._s(_vm.$L("取消")))]
  4469. ),
  4470. _vm._v(" "),
  4471. _c(
  4472. "Button",
  4473. {
  4474. attrs: { type: "primary", loading: _vm.loadIng > 0 },
  4475. on: { click: _vm.onAdd }
  4476. },
  4477. [_vm._v(_vm._s(_vm.$L("添加")))]
  4478. )
  4479. ],
  4480. 1
  4481. )
  4482. ],
  4483. 1
  4484. ),
  4485. _vm._v(" "),
  4486. _c(
  4487. "WDrawer",
  4488. {
  4489. attrs: { maxWidth: "1000" },
  4490. model: {
  4491. value: _vm.projectDrawerShow,
  4492. callback: function($$v) {
  4493. _vm.projectDrawerShow = $$v
  4494. },
  4495. expression: "projectDrawerShow"
  4496. }
  4497. },
  4498. [
  4499. _vm.projectDrawerShow
  4500. ? _c(
  4501. "Tabs",
  4502. {
  4503. model: {
  4504. value: _vm.projectDrawerTab,
  4505. callback: function($$v) {
  4506. _vm.projectDrawerTab = $$v
  4507. },
  4508. expression: "projectDrawerTab"
  4509. }
  4510. },
  4511. [
  4512. _c(
  4513. "TabPane",
  4514. {
  4515. attrs: { label: _vm.$L("已归档任务"), name: "archived" }
  4516. },
  4517. [
  4518. _c("project-archived", {
  4519. attrs: {
  4520. canload:
  4521. _vm.projectDrawerShow &&
  4522. _vm.projectDrawerTab == "archived",
  4523. projectid: _vm.handleProjectId
  4524. }
  4525. })
  4526. ],
  4527. 1
  4528. ),
  4529. _vm._v(" "),
  4530. _c(
  4531. "TabPane",
  4532. {
  4533. attrs: { label: _vm.$L("项目统计"), name: "statistics" }
  4534. },
  4535. [
  4536. _c("project-statistics", {
  4537. attrs: {
  4538. canload:
  4539. _vm.projectDrawerShow &&
  4540. _vm.projectDrawerTab == "statistics",
  4541. projectid: _vm.handleProjectId
  4542. }
  4543. })
  4544. ],
  4545. 1
  4546. ),
  4547. _vm._v(" "),
  4548. _c(
  4549. "TabPane",
  4550. { attrs: { label: _vm.$L("成员管理"), name: "member" } },
  4551. [
  4552. _c("project-users", {
  4553. attrs: {
  4554. canload:
  4555. _vm.projectDrawerShow &&
  4556. _vm.projectDrawerTab == "member",
  4557. projectid: _vm.handleProjectId
  4558. }
  4559. })
  4560. ],
  4561. 1
  4562. )
  4563. ],
  4564. 1
  4565. )
  4566. : _vm._e()
  4567. ],
  4568. 1
  4569. ),
  4570. _vm._v(" "),
  4571. _c(
  4572. "WDrawer",
  4573. {
  4574. attrs: { maxWidth: "740" },
  4575. model: {
  4576. value: _vm.projectListDrawerShow,
  4577. callback: function($$v) {
  4578. _vm.projectListDrawerShow = $$v
  4579. },
  4580. expression: "projectListDrawerShow"
  4581. }
  4582. },
  4583. [
  4584. _vm.projectListDrawerShow
  4585. ? _c(
  4586. "Tabs",
  4587. {
  4588. model: {
  4589. value: _vm.projectListDrawerTab,
  4590. callback: function($$v) {
  4591. _vm.projectListDrawerTab = $$v
  4592. },
  4593. expression: "projectListDrawerTab"
  4594. }
  4595. },
  4596. [
  4597. _c(
  4598. "TabPane",
  4599. { attrs: { label: _vm.$L("参与的项目"), name: "myjoin" } },
  4600. [
  4601. _c("project-my-join", {
  4602. attrs: {
  4603. canload:
  4604. _vm.projectListDrawerShow &&
  4605. _vm.projectListDrawerTab == "myjoin"
  4606. }
  4607. })
  4608. ],
  4609. 1
  4610. ),
  4611. _vm._v(" "),
  4612. _c(
  4613. "TabPane",
  4614. { attrs: { label: _vm.$L("收藏的项目"), name: "myfavor" } },
  4615. [
  4616. _c("project-my-favor", {
  4617. attrs: {
  4618. canload:
  4619. _vm.projectListDrawerShow &&
  4620. _vm.projectListDrawerTab == "myfavor"
  4621. }
  4622. })
  4623. ],
  4624. 1
  4625. ),
  4626. _vm._v(" "),
  4627. _c(
  4628. "TabPane",
  4629. {
  4630. attrs: { label: _vm.$L("管理的项目"), name: "mycreate" }
  4631. },
  4632. [
  4633. _c("project-my-manage", {
  4634. attrs: {
  4635. canload:
  4636. _vm.projectListDrawerShow &&
  4637. _vm.projectListDrawerTab == "mycreate"
  4638. }
  4639. })
  4640. ],
  4641. 1
  4642. )
  4643. ],
  4644. 1
  4645. )
  4646. : _vm._e()
  4647. ],
  4648. 1
  4649. )
  4650. ],
  4651. 1
  4652. )
  4653. }
  4654. var staticRenderFns = []
  4655. render._withStripped = true
  4656. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4657. if (false) {
  4658. module.hot.accept()
  4659. if (module.hot.data) {
  4660. require("vue-hot-reload-api") .rerender("data-v-426c4faa", module.exports)
  4661. }
  4662. }
  4663. /***/ })
  4664. });