0.js 173 KB

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