1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b1b67dd"],{"0aed":function(t,e,a){"use strict";a("aaba");var r=a("bf16"),n=a("86d4"),i=a("238a"),s=a("f6b4"),o=a("cb3d"),c=a("8714"),u=o("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var p=o(t),f=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),h=f?!i((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[u]=function(){return a}),a[p](""),!e})):void 0;if(!f||!h||"replace"===t&&!l||"split"===t&&!d){var g=/./[p],m=a(s,p,""[t],(function(t,e,a,r,n){return e.exec===c?f&&!n?{done:!0,value:g.call(e,a,r)}:{done:!0,value:t.call(a,e,r)}:{done:!1}})),b=m[0],y=m[1];r(String.prototype,t,b),n(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"0e8f":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"e",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return c}));var r=a("b775");function n(t){return Object(r["a"])({url:"/department/addDepartment",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/department/deleteDepartment/"+t,method:"delete"})}function s(t){return Object(r["a"])({url:"/department/updateDepartment",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/department/getDepartment/",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/department/getDepartmentList",method:"post",data:t})}},"0f34":function(t,e,a){t.exports=a.p+"static/img/user.fbf3b328.png"},"24fd":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"e",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return c}));var r=a("b775");function n(t){return Object(r["a"])({url:"/org/addOrg",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/org/deleteOrg/"+t,method:"delete"})}function s(t){return Object(r["a"])({url:"/org/updateOrg",method:"put",data:t})}function o(t){return Object(r["a"])({url:"/org/getOrg",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/org/getOrgList",method:"post",data:t})}},"37f9":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-scrollbar",{staticStyle:{height:"100%"}},[a("div",{staticClass:"dashboard-container"},[a("el-row",{attrs:{gutter:12}},[a("el-col",{attrs:{span:6}},[a("el-card",{attrs:{shadow:"always"}},[a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.userUrl,fit:"fit"}}),a("span",{staticClass:"card-text"},[t._v(" 党员 "),a("div",{staticClass:"card-text-detai"},[t._v(t._s(t.userNum))])])],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{attrs:{shadow:"always"}},[a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.orgUrl,fit:"fit"}}),a("span",{staticClass:"card-text"},[t._v(" 单位 "),a("div",{staticClass:"card-text-detai"},[t._v(t._s(t.orgNum))])])],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{attrs:{shadow:"always"}},[a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.departmentUrl,fit:"fit"}}),a("span",{staticClass:"card-text"},[t._v(" 部门 "),a("div",{staticClass:"card-text-detai"},[t._v(t._s(t.departmentNum))])])],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{attrs:{shadow:"always"}},[a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"}),a("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.moneyUrl,fit:"fit"}}),a("span",{staticClass:"card-text"},[t._v(" 党费总金额 "),a("div",{staticClass:"card-text-detai"},[t._v(t._s(t.payMoneyNum))])])],1)])],1)],1),a("div",{staticClass:"pie-data-time"},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:t.filtrateData,callback:function(e){t.filtrateData=e},expression:"filtrateData"}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:t.filtrate}},[t._v("筛选")])],1),a("div",{staticClass:"echart"},[a("div",{staticClass:"orgOptionsbar-style",attrs:{id:"myChart"}}),a("div",{staticClass:"orgOptionspie-style",attrs:{id:"myChart_pie"}})])],1)])},n=[],i=(a("5ab2"),a("6d57"),a("e10e"),a("88d6")),s=a("52c1"),o=a("c24f"),c=a("24fd"),u=a("0e8f"),l=a("e285");a("2b45"),a("9a33");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(i["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var f={data:function(){return{userUrl:a("0f34"),orgUrl:a("aedc"),moneyUrl:a("3daf"),departmentUrl:a("b667"),userNum:0,orgNum:0,payMoneyNum:0,noPayMoneyNum:0,payList:{},noPayList:{},pieDate:[],barDate:[],departmentNum:0,departmentNameList:[],payFiltrateObj:{payStatus:1},noPayFiltrateObj:{payStatus:0},barPayFiltrateObj:{payStatus:1},orgOptionsbar:{color:["#3398DB"],grid:{left:"3%",right:"4%",bottom:"5%",containLabel:!0},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}"},xAxis:[{type:"category",data:[],axisTick:{show:!0},axisLabel:{interval:0,show:!0},axisLine:{show:!0}}],yAxis:[{type:"value",splitLine:{lineStyle:{color:"#e7e7e7"}},axisTick:{show:!0},axisLine:{show:!0}}],series:[{name:"已支付党费总金额",type:"bar",barWidth:"60%",legendHoverLink:!0,data:[]}]},orgOptionspie_charts:{},orgOptionspie:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",left:10,data:["已缴党费金额","未缴党费金额"]},series:[{name:"党费信息",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]},filtrateData:[]}},created:function(){this.getUserListByOrgId(),this.getOrgListByAdmin(),this.getDepartmentByOrgId(),this.updatePieData(),this.updateBarData(),this.payFiltrateObj.orgId=this.userInfo.orgId,this.noPayFiltrateObj.orgId=this.userInfo.orgId,this.barPayFiltrateObj.orgId=this.userInfo.orgId},computed:p({},Object(s["b"])(["name","userInfo"])),mounted:function(){this.echarts()},watch:{orgOptionspie:{handler:function(t,e){this.echarts()},deep:!0},orgOptionsbar:{handler:function(t,e){this.echarts()},deep:!0}},methods:{getUserListByOrgId:function(){var t=this;Object(o["e"])({orgId:this.userInfo.orgId}).then((function(e){t.userNum=e.data.size}))},getOrgListByAdmin:function(){var t=this;null===this.userInfo.orgId||void 0===this.userInfo.orgId?Object(c["d"])({orgId:this.userInfo.orgId}).then((function(e){t.orgNum=e.data.size})):this.orgNum=1},getDepartmentByOrgId:function(){var t=this;Object(u["d"])({orgId:this.userInfo.orgId}).then((function(e){t.departmentNum=e.data.size}))},filtrate:function(){null!==this.filtrateData&&void 0!==this.filtrateData?(this.payFiltrateObj.managerStartTime=this.filtrateData[0],this.payFiltrateObj.managerEndTime=this.filtrateData[1],this.noPayFiltrateObj.managerStartTime=this.filtrateData[0],this.noPayFiltrateObj.managerEndTime=this.filtrateData[1],this.barPayFiltrateObj.managerStartTime=this.filtrateData[0],this.barPayFiltrateObj.managerEndTime=this.filtrateData[1],this.updatePieData(),this.updateBarData()):(this.payFiltrateObj.managerStartTime=null,this.payFiltrateObj.managerEndTime=null,this.noPayFiltrateObj.managerStartTime=null,this.noPayFiltrateObj.managerEndTime=null,this.barPayFiltrateObj.managerStartTime=null,this.barPayFiltrateObj.managerEndTime=null,this.updatePieData(),this.updateBarData())},updatePieData:function(){this.pieDate=[],this.getPay(),this.getNoPay(),this.orgOptionspie.series[0].data=this.pieDate},getPay:function(){var t=this;Object(l["f"])(this.payFiltrateObj).then((function(e){var a={};t.payMoneyNum=e.data,a.value=t.payMoneyNum,a.name="已缴党费金额",t.pieDate.push(a)}))},getNoPay:function(){var t=this;Object(l["f"])(this.noPayFiltrateObj).then((function(e){var a={};a.value=e.data,a.name="未缴党费金额",t.pieDate.push(a)}))},updateBarData:function(){var t=this;Object(l["c"])(this.barPayFiltrateObj).then((function(e){t.orgOptionsbar.xAxis[0].data=e.data.departmentNameList,t.orgOptionsbar.series[0].data=e.data.departmentPayTotalList}))},echarts:function(){var t=this.$echarts.init(document.getElementById("myChart"));t.setOption(this.orgOptionsbar);var e=this.$echarts.init(document.getElementById("myChart_pie"));e.setOption(this.orgOptionspie)}}},h=f,g=(a("623e"),a("4023")),m=Object(g["a"])(h,r,n,!1,null,"42b15b65",null);e["default"]=m.exports},"3daf":function(t,e,a){t.exports=a.p+"static/img/money.72707b5d.png"},"623e":function(t,e,a){"use strict";var r=a("85bd"),n=a.n(r);n.a},7108:function(t,e,a){"use strict";var r=a("7e23"),n=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"===typeof a){var i=a.call(t,e);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},"85bd":function(t,e,a){},8714:function(t,e,a){"use strict";var r=a("f1fe"),n=RegExp.prototype.exec,i=String.prototype.replace,s=n,o="lastIndex",c=function(){var t=/a/,e=/b*/g;return n.call(t,"a"),n.call(e,"a"),0!==t[o]||0!==e[o]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(s=function(t){var e,a,s,l,d=this;return u&&(a=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(e=d[o]),s=n.call(d,t),c&&s&&(d[o]=d.global?s.index+s[0].length:e),u&&s&&s.length>1&&i.call(s[0],a,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s}),t.exports=s},"9a33":function(t,e,a){"use strict";var r=a("2fd4"),n=a("69b3"),i=a("f63e"),s=a("e754"),o=a("eafa"),c=a("7108"),u=a("8714"),l=a("238a"),d=Math.min,p=[].push,f="split",h="length",g="lastIndex",m=4294967295,b=!l((function(){RegExp(m,"y")}));a("0aed")("split",2,(function(t,e,a,l){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!r(t))return a.call(n,t,e);var i,s,o,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,f=void 0===e?m:e>>>0,b=new RegExp(t.source,l+"g");while(i=u.call(b,n)){if(s=b[g],s>d&&(c.push(n.slice(d,i.index)),i[h]>1&&i.index<n[h]&&p.apply(c,i.slice(1)),o=i[0][h],d=s,c[h]>=f))break;b[g]===i.index&&b[g]++}return d===n[h]?!o&&b.test("")||c.push(""):c.push(n.slice(d)),c[h]>f?c.slice(0,f):c}:"0"[f](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,r){var n=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,n,r):y.call(String(n),a,r)},function(t,e){var r=l(y,t,this,e,y!==a);if(r.done)return r.value;var u=n(t),p=String(this),f=i(u,RegExp),h=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(b?"y":"g"),v=new f(b?u:"^(?:"+u.source+")",g),O=void 0===e?m:e>>>0;if(0===O)return[];if(0===p.length)return null===c(v,p)?[p]:[];var x=0,j=0,w=[];while(j<p.length){v.lastIndex=b?j:0;var D,P=c(v,b?p:p.slice(j));if(null===P||(D=d(o(v.lastIndex+(b?0:j)),p.length))===x)j=s(p,j,h);else{if(w.push(p.slice(x,j)),w.length===O)return w;for(var I=1;I<=P.length-1;I++)if(w.push(P[I]),w.length===O)return w;j=x=D}}return w.push(p.slice(x)),w}]}))},aaba:function(t,e,a){"use strict";var r=a("8714");a("e46b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},aedc:function(t,e,a){t.exports=a.p+"static/img/org.55909bc3.png"},b667:function(t,e,a){t.exports=a.p+"static/img/department.cbbebf5d.png"},e285:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"g",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"e",(function(){return c})),a.d(e,"f",(function(){return u})),a.d(e,"c",(function(){return l}));var r=a("b775");function n(t){return Object(r["a"])({url:"/manager/addManager",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/manager/deleteManager/"+t,method:"delete"})}function s(t){return Object(r["a"])({url:"/manager/updateManager",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/manager/getManager/",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/manager/getManagerList",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/manager/getPayTotal",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/manager/getBarStatistics",method:"post",data:t})}},e754:function(t,e,a){"use strict";var r=a("fc81")(!0);t.exports=function(t,e,a){return e+(a?r(t,e).length:1)}},fc81:function(t,e,a){var r=a("ee21"),n=a("f6b4");t.exports=function(t){return function(e,a){var i,s,o=String(n(e)),c=r(a),u=o.length;return c<0||c>=u?t?"":void 0:(i=o.charCodeAt(c),i<55296||i>56319||c+1===u||(s=o.charCodeAt(c+1))<56320||s>57343?t?o.charAt(c):i:t?o.slice(c,c+2):s-56320+(i-55296<<10)+65536)}}}}]);
|