21.js 160 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002
  1. webpackJsonp([21],{
  2. /***/ 534:
  3. /***/ (function(module, exports, __webpack_require__) {
  4. var disposed = false
  5. function injectStyle (ssrContext) {
  6. if (disposed) return
  7. __webpack_require__(758)
  8. }
  9. var normalizeComponent = __webpack_require__(4)
  10. /* script */
  11. var __vue_script__ = __webpack_require__(760)
  12. /* template */
  13. var __vue_template__ = __webpack_require__(776)
  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. /***/ 550:
  49. /***/ (function(module, exports, __webpack_require__) {
  50. var disposed = false
  51. function injectStyle (ssrContext) {
  52. if (disposed) return
  53. __webpack_require__(551)
  54. }
  55. var normalizeComponent = __webpack_require__(4)
  56. /* script */
  57. var __vue_script__ = __webpack_require__(553)
  58. /* template */
  59. var __vue_template__ = __webpack_require__(554)
  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. /***/ 551:
  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__(552);
  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__(3)("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. /***/ 552:
  118. /***/ (function(module, exports, __webpack_require__) {
  119. exports = module.exports = __webpack_require__(2)(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. /***/ 553:
  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. /***/ 554:
  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. /***/ 564:
  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. /***/ 578:
  303. /***/ (function(module, exports, __webpack_require__) {
  304. var disposed = false
  305. function injectStyle (ssrContext) {
  306. if (disposed) return
  307. __webpack_require__(579)
  308. }
  309. var normalizeComponent = __webpack_require__(4)
  310. /* script */
  311. var __vue_script__ = __webpack_require__(581)
  312. /* template */
  313. var __vue_template__ = __webpack_require__(582)
  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. /***/ 579:
  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__(580);
  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__(3)("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. /***/ 580:
  372. /***/ (function(module, exports, __webpack_require__) {
  373. exports = module.exports = __webpack_require__(2)(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. /***/ 581:
  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. /***/ 582:
  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. /***/ 583:
  733. /***/ (function(module, exports, __webpack_require__) {
  734. var disposed = false
  735. function injectStyle (ssrContext) {
  736. if (disposed) return
  737. __webpack_require__(584)
  738. }
  739. var normalizeComponent = __webpack_require__(4)
  740. /* script */
  741. var __vue_script__ = __webpack_require__(586)
  742. /* template */
  743. var __vue_template__ = __webpack_require__(587)
  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. /***/ 584:
  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__(585);
  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__(3)("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. /***/ 585:
  802. /***/ (function(module, exports, __webpack_require__) {
  803. exports = module.exports = __webpack_require__(2)(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. /***/ 586:
  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__(11);
  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__(38);
  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. /***/ 587:
  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. /***/ 588:
  1129. /***/ (function(module, exports, __webpack_require__) {
  1130. var disposed = false
  1131. function injectStyle (ssrContext) {
  1132. if (disposed) return
  1133. __webpack_require__(589)
  1134. }
  1135. var normalizeComponent = __webpack_require__(4)
  1136. /* script */
  1137. var __vue_script__ = __webpack_require__(591)
  1138. /* template */
  1139. var __vue_template__ = __webpack_require__(592)
  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. /***/ 589:
  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__(590);
  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__(3)("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. /***/ 590:
  1198. /***/ (function(module, exports, __webpack_require__) {
  1199. exports = module.exports = __webpack_require__(2)(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. /***/ 591:
  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__(11);
  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. /***/ 592:
  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. /***/ 593:
  1561. /***/ (function(module, exports, __webpack_require__) {
  1562. var disposed = false
  1563. function injectStyle (ssrContext) {
  1564. if (disposed) return
  1565. __webpack_require__(594)
  1566. }
  1567. var normalizeComponent = __webpack_require__(4)
  1568. /* script */
  1569. var __vue_script__ = __webpack_require__(596)
  1570. /* template */
  1571. var __vue_template__ = __webpack_require__(597)
  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. /***/ 594:
  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__(595);
  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__(3)("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. /***/ 595:
  1630. /***/ (function(module, exports, __webpack_require__) {
  1631. exports = module.exports = __webpack_require__(2)(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. /***/ 596:
  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__(11);
  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__(38);
  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. /***/ 597:
  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. /***/ 758:
  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__(759);
  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__(3)("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. /***/ 759:
  2138. /***/ (function(module, exports, __webpack_require__) {
  2139. exports = module.exports = __webpack_require__(2)(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. /***/ 760:
  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__(6);
  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__(578);
  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__(550);
  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__(583);
  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__(588);
  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__(593);
  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__(761);
  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__(766);
  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__(771);
  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__(564);
  2168. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_iview_WDrawer__ = __webpack_require__(60);
  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('测试'), this.$L('发布'), this.$L('其它')]
  2665. }, {
  2666. label: this.$L('产品开发'),
  2667. value: [this.$L('产品计划'), 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. /***/ 761:
  2967. /***/ (function(module, exports, __webpack_require__) {
  2968. var disposed = false
  2969. function injectStyle (ssrContext) {
  2970. if (disposed) return
  2971. __webpack_require__(762)
  2972. }
  2973. var normalizeComponent = __webpack_require__(4)
  2974. /* script */
  2975. var __vue_script__ = __webpack_require__(764)
  2976. /* template */
  2977. var __vue_template__ = __webpack_require__(765)
  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. /***/ 762:
  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__(763);
  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__(3)("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. /***/ 763:
  3036. /***/ (function(module, exports, __webpack_require__) {
  3037. exports = module.exports = __webpack_require__(2)(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. /***/ 764:
  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__(564);
  3048. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(11);
  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. /***/ 765:
  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. /***/ 766:
  3265. /***/ (function(module, exports, __webpack_require__) {
  3266. var disposed = false
  3267. function injectStyle (ssrContext) {
  3268. if (disposed) return
  3269. __webpack_require__(767)
  3270. }
  3271. var normalizeComponent = __webpack_require__(4)
  3272. /* script */
  3273. var __vue_script__ = __webpack_require__(769)
  3274. /* template */
  3275. var __vue_template__ = __webpack_require__(770)
  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. /***/ 767:
  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__(768);
  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__(3)("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. /***/ 768:
  3334. /***/ (function(module, exports, __webpack_require__) {
  3335. exports = module.exports = __webpack_require__(2)(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. /***/ 769:
  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__(564);
  3346. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(11);
  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. /***/ 770:
  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. /***/ 771:
  3556. /***/ (function(module, exports, __webpack_require__) {
  3557. var disposed = false
  3558. function injectStyle (ssrContext) {
  3559. if (disposed) return
  3560. __webpack_require__(772)
  3561. }
  3562. var normalizeComponent = __webpack_require__(4)
  3563. /* script */
  3564. var __vue_script__ = __webpack_require__(774)
  3565. /* template */
  3566. var __vue_template__ = __webpack_require__(775)
  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. /***/ 772:
  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__(773);
  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__(3)("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. /***/ 773:
  3625. /***/ (function(module, exports, __webpack_require__) {
  3626. exports = module.exports = __webpack_require__(2)(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. /***/ 774:
  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__(564);
  3637. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DrawerTabsContainer__ = __webpack_require__(11);
  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. /***/ 775:
  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. /***/ 776:
  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", [
  3857. _vm._v(
  3858. _vm._s(_vm.$L("项目")) + "-" + _vm._s(_vm.$L("轻量级的团队在线协作"))
  3859. )
  3860. ]),
  3861. _vm._v(" "),
  3862. _c("div", { staticClass: "w-nav" }, [
  3863. _c("div", { staticClass: "nav-row" }, [
  3864. _c("div", { staticClass: "w-nav-left" }, [
  3865. _c("div", { staticClass: "page-nav-left" }, [
  3866. _c(
  3867. "span",
  3868. {
  3869. staticClass: "hover",
  3870. on: {
  3871. click: function($event) {
  3872. _vm.addShow = true
  3873. }
  3874. }
  3875. },
  3876. [
  3877. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3878. _vm._v(" " + _vm._s(_vm.$L("新建项目")))
  3879. ]
  3880. ),
  3881. _vm._v(" "),
  3882. _vm.loadIng > 0
  3883. ? _c(
  3884. "div",
  3885. { staticClass: "page-nav-loading" },
  3886. [_c("w-loading")],
  3887. 1
  3888. )
  3889. : _c("div", { staticClass: "page-nav-refresh" }, [
  3890. _c(
  3891. "em",
  3892. {
  3893. on: {
  3894. click: function($event) {
  3895. return _vm.getLists(true)
  3896. }
  3897. }
  3898. },
  3899. [_vm._v(_vm._s(_vm.$L("刷新")))]
  3900. )
  3901. ])
  3902. ])
  3903. ]),
  3904. _vm._v(" "),
  3905. _c("div", { staticClass: "w-nav-flex" }),
  3906. _vm._v(" "),
  3907. _c(
  3908. "div",
  3909. { staticClass: "w-nav-right m768-show" },
  3910. [
  3911. _c(
  3912. "Dropdown",
  3913. {
  3914. attrs: { trigger: "click", transfer: "" },
  3915. on: { "on-click": _vm.handleProject }
  3916. },
  3917. [
  3918. _c("Icon", { attrs: { type: "md-menu", size: "18" } }),
  3919. _vm._v(" "),
  3920. _c(
  3921. "DropdownMenu",
  3922. { attrs: { slot: "list" }, slot: "list" },
  3923. [
  3924. _c("DropdownItem", { attrs: { name: "myjoin" } }, [
  3925. _vm._v(_vm._s(_vm.$L("参与的项目")))
  3926. ]),
  3927. _vm._v(" "),
  3928. _c("DropdownItem", { attrs: { name: "myfavor" } }, [
  3929. _vm._v(_vm._s(_vm.$L("收藏的项目")))
  3930. ]),
  3931. _vm._v(" "),
  3932. _c("DropdownItem", { attrs: { name: "mycreate" } }, [
  3933. _vm._v(_vm._s(_vm.$L("我管理的项目")))
  3934. ])
  3935. ],
  3936. 1
  3937. )
  3938. ],
  3939. 1
  3940. )
  3941. ],
  3942. 1
  3943. ),
  3944. _vm._v(" "),
  3945. _c("div", { staticClass: "w-nav-right m768-hide" }, [
  3946. _c(
  3947. "span",
  3948. {
  3949. staticClass: "ft hover",
  3950. on: {
  3951. click: function($event) {
  3952. return _vm.handleProject("myjoin", null)
  3953. }
  3954. }
  3955. },
  3956. [
  3957. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3958. _vm._v(" " + _vm._s(_vm.$L("参与的项目")))
  3959. ]
  3960. ),
  3961. _vm._v(" "),
  3962. _c(
  3963. "span",
  3964. {
  3965. staticClass: "ft hover",
  3966. on: {
  3967. click: function($event) {
  3968. return _vm.handleProject("myfavor", null)
  3969. }
  3970. }
  3971. },
  3972. [
  3973. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3974. _vm._v(" " + _vm._s(_vm.$L("收藏的项目")))
  3975. ]
  3976. ),
  3977. _vm._v(" "),
  3978. _c(
  3979. "span",
  3980. {
  3981. staticClass: "ft hover",
  3982. on: {
  3983. click: function($event) {
  3984. return _vm.handleProject("mycreate", null)
  3985. }
  3986. }
  3987. },
  3988. [
  3989. _c("i", { staticClass: "ft icon" }, [_vm._v("")]),
  3990. _vm._v(" " + _vm._s(_vm.$L("我管理的项目")))
  3991. ]
  3992. )
  3993. ])
  3994. ])
  3995. ]),
  3996. _vm._v(" "),
  3997. _c(
  3998. "w-content",
  3999. [
  4000. _c(
  4001. "ul",
  4002. { staticClass: "project-list" },
  4003. _vm._l(_vm.lists, function(item) {
  4004. return _c("li", [
  4005. _c("div", { staticClass: "project-item" }, [
  4006. _c("div", { staticClass: "project-head" }, [
  4007. item.loadIng === true
  4008. ? _c(
  4009. "div",
  4010. { staticClass: "project-loading" },
  4011. [_c("w-loading")],
  4012. 1
  4013. )
  4014. : _vm._e(),
  4015. _vm._v(" "),
  4016. _c(
  4017. "div",
  4018. {
  4019. staticClass: "project-title",
  4020. on: {
  4021. click: function($event) {
  4022. return _vm.handleProject("open", item)
  4023. }
  4024. }
  4025. },
  4026. [_vm._v(_vm._s(item.title))]
  4027. ),
  4028. _vm._v(" "),
  4029. _c(
  4030. "div",
  4031. { staticClass: "project-setting" },
  4032. [
  4033. _c(
  4034. "Dropdown",
  4035. {
  4036. staticClass: "right-info",
  4037. attrs: { trigger: "click", transfer: "" },
  4038. on: {
  4039. "on-click": function($event) {
  4040. return _vm.handleProject($event, item)
  4041. }
  4042. }
  4043. },
  4044. [
  4045. _c("Icon", {
  4046. staticClass: "project-setting-icon",
  4047. attrs: { type: "md-settings", size: "16" }
  4048. }),
  4049. _vm._v(" "),
  4050. _c(
  4051. "Dropdown-menu",
  4052. { attrs: { slot: "list" }, slot: "list" },
  4053. [
  4054. _c(
  4055. "Dropdown-item",
  4056. { attrs: { name: "open" } },
  4057. [_vm._v(_vm._s(_vm.$L("打开")))]
  4058. ),
  4059. _vm._v(" "),
  4060. _c(
  4061. "Dropdown-item",
  4062. { attrs: { name: "favor" } },
  4063. [_vm._v(_vm._s(_vm.$L("收藏")))]
  4064. ),
  4065. _vm._v(" "),
  4066. item.isowner
  4067. ? _c(
  4068. "Dropdown-item",
  4069. { attrs: { name: "rename" } },
  4070. [_vm._v(_vm._s(_vm.$L("重命名")))]
  4071. )
  4072. : _vm._e(),
  4073. _vm._v(" "),
  4074. item.isowner
  4075. ? _c(
  4076. "Dropdown-item",
  4077. { attrs: { name: "transfer" } },
  4078. [_vm._v(_vm._s(_vm.$L("移交项目")))]
  4079. )
  4080. : _vm._e(),
  4081. _vm._v(" "),
  4082. item.isowner
  4083. ? _c(
  4084. "Dropdown-item",
  4085. { attrs: { name: "delete" } },
  4086. [_vm._v(_vm._s(_vm.$L("删除")))]
  4087. )
  4088. : _c(
  4089. "Dropdown-item",
  4090. { attrs: { name: "out" } },
  4091. [_vm._v(_vm._s(_vm.$L("退出")))]
  4092. )
  4093. ],
  4094. 1
  4095. )
  4096. ],
  4097. 1
  4098. )
  4099. ],
  4100. 1
  4101. )
  4102. ]),
  4103. _vm._v(" "),
  4104. _c(
  4105. "div",
  4106. {
  4107. staticClass: "project-num",
  4108. on: {
  4109. click: function($event) {
  4110. return _vm.handleProject("open", item)
  4111. }
  4112. }
  4113. },
  4114. [
  4115. _c(
  4116. "div",
  4117. { staticClass: "project-circle" },
  4118. [
  4119. _c(
  4120. "i-circle",
  4121. {
  4122. attrs: {
  4123. size: 100,
  4124. "trail-width": 8,
  4125. "stroke-width": 8,
  4126. percent: _vm.selfProportion(
  4127. item.self_complete,
  4128. item.self_count
  4129. ),
  4130. "stroke-linecap": "round",
  4131. "stroke-color": "#62C5FE"
  4132. }
  4133. },
  4134. [
  4135. _c("div", { staticClass: "project-circle-box" }, [
  4136. _c(
  4137. "div",
  4138. { staticClass: "project-circle-num" },
  4139. [
  4140. _c("em", [
  4141. _vm._v(_vm._s(item.self_complete))
  4142. ]),
  4143. _vm._v(" "),
  4144. _c("span", [
  4145. _vm._v(_vm._s(item.self_count))
  4146. ])
  4147. ]
  4148. ),
  4149. _vm._v(" "),
  4150. _c(
  4151. "div",
  4152. { staticClass: "project-circle-title" },
  4153. [_vm._v(_vm._s(_vm.$L("个人总计")))]
  4154. )
  4155. ])
  4156. ]
  4157. )
  4158. ],
  4159. 1
  4160. ),
  4161. _vm._v(" "),
  4162. _c("div", { staticClass: "project-situation" }, [
  4163. _c("ul", [
  4164. _c("li", [
  4165. _vm._v(_vm._s(_vm.$L("项目总任务数"))),
  4166. _c("em", [
  4167. _vm._v(_vm._s(item.complete + item.unfinished))
  4168. ])
  4169. ]),
  4170. _vm._v(" "),
  4171. _c("li", [
  4172. _vm._v(_vm._s(_vm.$L("项目已完成数"))),
  4173. _c("em", [_vm._v(_vm._s(item.complete))])
  4174. ]),
  4175. _vm._v(" "),
  4176. _c("li", [
  4177. _vm._v(_vm._s(_vm.$L("项目未完成数"))),
  4178. _c("em", [_vm._v(_vm._s(item.unfinished))])
  4179. ])
  4180. ])
  4181. ])
  4182. ]
  4183. ),
  4184. _vm._v(" "),
  4185. _c("div", { staticClass: "project-bottom" }, [
  4186. _c(
  4187. "div",
  4188. { staticClass: "project-iconbtn" },
  4189. [
  4190. _c("Icon", {
  4191. staticClass: "project-iconbtn-icon",
  4192. attrs: { type: "md-stats" }
  4193. }),
  4194. _vm._v(" "),
  4195. _c(
  4196. "div",
  4197. {
  4198. staticClass: "project-iconbtn-text",
  4199. on: {
  4200. click: function($event) {
  4201. $event.stopPropagation()
  4202. return _vm.handleProject("statistics", item)
  4203. }
  4204. }
  4205. },
  4206. [_vm._v(_vm._s(_vm.$L("项目统计")))]
  4207. )
  4208. ],
  4209. 1
  4210. ),
  4211. _vm._v(" "),
  4212. _c(
  4213. "div",
  4214. { staticClass: "project-iconbtn" },
  4215. [
  4216. _c("Icon", {
  4217. staticClass: "project-iconbtn-icon",
  4218. attrs: { type: "md-filing" }
  4219. }),
  4220. _vm._v(" "),
  4221. _c(
  4222. "div",
  4223. {
  4224. staticClass: "project-iconbtn-text",
  4225. on: {
  4226. click: function($event) {
  4227. $event.stopPropagation()
  4228. return _vm.handleProject("archived", item)
  4229. }
  4230. }
  4231. },
  4232. [_vm._v(_vm._s(_vm.$L("已归档任务")))]
  4233. )
  4234. ],
  4235. 1
  4236. ),
  4237. _vm._v(" "),
  4238. _c(
  4239. "div",
  4240. {
  4241. staticClass: "project-iconbtn project-people",
  4242. on: {
  4243. click: function($event) {
  4244. $event.stopPropagation()
  4245. return _vm.handleProject("member", item)
  4246. }
  4247. }
  4248. },
  4249. [
  4250. _vm._l(item.people_lists, function(uItem, uKey) {
  4251. return _c("UserImg", {
  4252. key: uKey,
  4253. staticClass: "userimg-icon",
  4254. attrs: {
  4255. info: uItem,
  4256. "two-words": "",
  4257. "show-title": ""
  4258. }
  4259. })
  4260. }),
  4261. _vm._v(" "),
  4262. item.people_count > 99
  4263. ? _c(
  4264. "div",
  4265. {
  4266. staticClass: "userimg-count",
  4267. attrs: { title: item.people_count }
  4268. },
  4269. [_vm._v("99+")]
  4270. )
  4271. : item.people_count > 5
  4272. ? _c("div", { staticClass: "userimg-count" }, [
  4273. _vm._v(_vm._s(item.people_count))
  4274. ])
  4275. : _vm._e()
  4276. ],
  4277. 2
  4278. )
  4279. ])
  4280. ])
  4281. ])
  4282. }),
  4283. 0
  4284. ),
  4285. _vm._v(" "),
  4286. _vm.listTotal > 0
  4287. ? _c("Page", {
  4288. staticClass: "pageBox",
  4289. attrs: {
  4290. total: _vm.listTotal,
  4291. current: _vm.listPage,
  4292. disabled: _vm.loadIng > 0,
  4293. pageSize: _vm.listPageSize,
  4294. "page-size-opts": [20, 40, 60, 100],
  4295. placement: "top",
  4296. transfer: "",
  4297. "show-elevator": "",
  4298. "show-sizer": "",
  4299. "show-total": "",
  4300. simple: _vm.windowMax768
  4301. },
  4302. on: {
  4303. "on-change": _vm.setPage,
  4304. "on-page-size-change": _vm.setPageSize
  4305. }
  4306. })
  4307. : _vm._e()
  4308. ],
  4309. 1
  4310. ),
  4311. _vm._v(" "),
  4312. _c(
  4313. "Modal",
  4314. {
  4315. attrs: {
  4316. title: _vm.$L("新建项目"),
  4317. closable: false,
  4318. "mask-closable": false,
  4319. "class-name": "simple-modal"
  4320. },
  4321. model: {
  4322. value: _vm.addShow,
  4323. callback: function($$v) {
  4324. _vm.addShow = $$v
  4325. },
  4326. expression: "addShow"
  4327. }
  4328. },
  4329. [
  4330. _c(
  4331. "Form",
  4332. {
  4333. ref: "add",
  4334. attrs: {
  4335. model: _vm.formAdd,
  4336. rules: _vm.ruleAdd,
  4337. "label-width": 80
  4338. },
  4339. nativeOn: {
  4340. submit: function($event) {
  4341. $event.preventDefault()
  4342. }
  4343. }
  4344. },
  4345. [
  4346. _c(
  4347. "FormItem",
  4348. { attrs: { prop: "title", label: _vm.$L("项目名称") } },
  4349. [
  4350. _c("Input", {
  4351. attrs: { type: "text" },
  4352. model: {
  4353. value: _vm.formAdd.title,
  4354. callback: function($$v) {
  4355. _vm.$set(_vm.formAdd, "title", $$v)
  4356. },
  4357. expression: "formAdd.title"
  4358. }
  4359. })
  4360. ],
  4361. 1
  4362. ),
  4363. _vm._v(" "),
  4364. _c(
  4365. "FormItem",
  4366. { attrs: { prop: "labels", label: _vm.$L("项目模板") } },
  4367. [
  4368. _c(
  4369. "Select",
  4370. {
  4371. on: {
  4372. "on-change": function(res) {
  4373. _vm.$set(
  4374. _vm.formAdd,
  4375. "labels",
  4376. _vm.labelLists[res].value
  4377. )
  4378. }
  4379. },
  4380. model: {
  4381. value: _vm.formAdd.template,
  4382. callback: function($$v) {
  4383. _vm.$set(_vm.formAdd, "template", $$v)
  4384. },
  4385. expression: "formAdd.template"
  4386. }
  4387. },
  4388. _vm._l(_vm.labelLists, function(item, index) {
  4389. return _c(
  4390. "Option",
  4391. { key: index, attrs: { value: index } },
  4392. [_vm._v(_vm._s(item.label))]
  4393. )
  4394. }),
  4395. 1
  4396. )
  4397. ],
  4398. 1
  4399. ),
  4400. _vm._v(" "),
  4401. _c("FormItem", { attrs: { label: _vm.$L("项目流程") } }, [
  4402. _c(
  4403. "div",
  4404. { staticStyle: { "line-height": "38px" } },
  4405. _vm._l(_vm.formAdd.labels, function(item, index) {
  4406. return _c(
  4407. "span",
  4408. [
  4409. index > 0 ? _c("span", [_vm._v(">")]) : _vm._e(),
  4410. _vm._v(" "),
  4411. _c(
  4412. "Tag",
  4413. {
  4414. attrs: {
  4415. closable: "",
  4416. size: "large",
  4417. color: "primary"
  4418. },
  4419. on: {
  4420. "on-close": function() {
  4421. _vm.formAdd.labels.splice(index, 1)
  4422. }
  4423. }
  4424. },
  4425. [_vm._v(_vm._s(item))]
  4426. )
  4427. ],
  4428. 1
  4429. )
  4430. }),
  4431. 0
  4432. ),
  4433. _vm._v(" "),
  4434. _vm.formAdd.labels.length > 0
  4435. ? _c("div", { staticStyle: { "margin-top": "4px" } })
  4436. : _vm._e(),
  4437. _vm._v(" "),
  4438. _c(
  4439. "div",
  4440. { staticStyle: { "margin-bottom": "-16px" } },
  4441. [
  4442. _c(
  4443. "Button",
  4444. {
  4445. attrs: { icon: "ios-add", type: "dashed" },
  4446. on: { click: _vm.addLabels }
  4447. },
  4448. [_vm._v(_vm._s(_vm.$L("添加流程")))]
  4449. )
  4450. ],
  4451. 1
  4452. )
  4453. ])
  4454. ],
  4455. 1
  4456. ),
  4457. _vm._v(" "),
  4458. _c(
  4459. "div",
  4460. { attrs: { slot: "footer" }, slot: "footer" },
  4461. [
  4462. _c(
  4463. "Button",
  4464. {
  4465. attrs: { type: "default" },
  4466. on: {
  4467. click: function($event) {
  4468. _vm.addShow = false
  4469. }
  4470. }
  4471. },
  4472. [_vm._v(_vm._s(_vm.$L("取消")))]
  4473. ),
  4474. _vm._v(" "),
  4475. _c(
  4476. "Button",
  4477. {
  4478. attrs: { type: "primary", loading: _vm.loadIng > 0 },
  4479. on: { click: _vm.onAdd }
  4480. },
  4481. [_vm._v(_vm._s(_vm.$L("添加")))]
  4482. )
  4483. ],
  4484. 1
  4485. )
  4486. ],
  4487. 1
  4488. ),
  4489. _vm._v(" "),
  4490. _c(
  4491. "WDrawer",
  4492. {
  4493. attrs: { maxWidth: "1000" },
  4494. model: {
  4495. value: _vm.projectDrawerShow,
  4496. callback: function($$v) {
  4497. _vm.projectDrawerShow = $$v
  4498. },
  4499. expression: "projectDrawerShow"
  4500. }
  4501. },
  4502. [
  4503. _vm.projectDrawerShow
  4504. ? _c(
  4505. "Tabs",
  4506. {
  4507. model: {
  4508. value: _vm.projectDrawerTab,
  4509. callback: function($$v) {
  4510. _vm.projectDrawerTab = $$v
  4511. },
  4512. expression: "projectDrawerTab"
  4513. }
  4514. },
  4515. [
  4516. _c(
  4517. "TabPane",
  4518. {
  4519. attrs: { label: _vm.$L("已归档任务"), name: "archived" }
  4520. },
  4521. [
  4522. _c("project-archived", {
  4523. attrs: {
  4524. canload:
  4525. _vm.projectDrawerShow &&
  4526. _vm.projectDrawerTab == "archived",
  4527. projectid: _vm.handleProjectId
  4528. }
  4529. })
  4530. ],
  4531. 1
  4532. ),
  4533. _vm._v(" "),
  4534. _c(
  4535. "TabPane",
  4536. {
  4537. attrs: { label: _vm.$L("项目统计"), name: "statistics" }
  4538. },
  4539. [
  4540. _c("project-statistics", {
  4541. attrs: {
  4542. canload:
  4543. _vm.projectDrawerShow &&
  4544. _vm.projectDrawerTab == "statistics",
  4545. projectid: _vm.handleProjectId
  4546. }
  4547. })
  4548. ],
  4549. 1
  4550. ),
  4551. _vm._v(" "),
  4552. _c(
  4553. "TabPane",
  4554. { attrs: { label: _vm.$L("成员管理"), name: "member" } },
  4555. [
  4556. _c("project-users", {
  4557. attrs: {
  4558. canload:
  4559. _vm.projectDrawerShow &&
  4560. _vm.projectDrawerTab == "member",
  4561. projectid: _vm.handleProjectId
  4562. }
  4563. })
  4564. ],
  4565. 1
  4566. )
  4567. ],
  4568. 1
  4569. )
  4570. : _vm._e()
  4571. ],
  4572. 1
  4573. ),
  4574. _vm._v(" "),
  4575. _c(
  4576. "WDrawer",
  4577. {
  4578. attrs: { maxWidth: "740" },
  4579. model: {
  4580. value: _vm.projectListDrawerShow,
  4581. callback: function($$v) {
  4582. _vm.projectListDrawerShow = $$v
  4583. },
  4584. expression: "projectListDrawerShow"
  4585. }
  4586. },
  4587. [
  4588. _vm.projectListDrawerShow
  4589. ? _c(
  4590. "Tabs",
  4591. {
  4592. model: {
  4593. value: _vm.projectListDrawerTab,
  4594. callback: function($$v) {
  4595. _vm.projectListDrawerTab = $$v
  4596. },
  4597. expression: "projectListDrawerTab"
  4598. }
  4599. },
  4600. [
  4601. _c(
  4602. "TabPane",
  4603. { attrs: { label: _vm.$L("参与的项目"), name: "myjoin" } },
  4604. [
  4605. _c("project-my-join", {
  4606. attrs: {
  4607. canload:
  4608. _vm.projectListDrawerShow &&
  4609. _vm.projectListDrawerTab == "myjoin"
  4610. }
  4611. })
  4612. ],
  4613. 1
  4614. ),
  4615. _vm._v(" "),
  4616. _c(
  4617. "TabPane",
  4618. { attrs: { label: _vm.$L("收藏的项目"), name: "myfavor" } },
  4619. [
  4620. _c("project-my-favor", {
  4621. attrs: {
  4622. canload:
  4623. _vm.projectListDrawerShow &&
  4624. _vm.projectListDrawerTab == "myfavor"
  4625. }
  4626. })
  4627. ],
  4628. 1
  4629. ),
  4630. _vm._v(" "),
  4631. _c(
  4632. "TabPane",
  4633. {
  4634. attrs: { label: _vm.$L("管理的项目"), name: "mycreate" }
  4635. },
  4636. [
  4637. _c("project-my-manage", {
  4638. attrs: {
  4639. canload:
  4640. _vm.projectListDrawerShow &&
  4641. _vm.projectListDrawerTab == "mycreate"
  4642. }
  4643. })
  4644. ],
  4645. 1
  4646. )
  4647. ],
  4648. 1
  4649. )
  4650. : _vm._e()
  4651. ],
  4652. 1
  4653. )
  4654. ],
  4655. 1
  4656. )
  4657. }
  4658. var staticRenderFns = []
  4659. render._withStripped = true
  4660. module.exports = { render: render, staticRenderFns: staticRenderFns }
  4661. if (false) {
  4662. module.hot.accept()
  4663. if (module.hot.data) {
  4664. require("vue-hot-reload-api") .rerender("data-v-426c4faa", module.exports)
  4665. }
  4666. }
  4667. /***/ })
  4668. });