zqyy-yl/dist1/assets/js/chunk-5de2d7e3.467c8ec2.js
2023-09-08 11:34:27 +08:00

1 line
14 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5de2d7e3"],{"0c6d":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return u}));var n=r("2b0e"),a=r("bc3a"),o=r.n(a),i=r("5c96");o.a.defaults.withCredentials=!0,o.a.defaults.crossDomain=!0;var c=o.a.create({baseURL:"http://51.31.219.42:6896",timeout:12e4});c.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),c.interceptors.response.use((function(t){if(t.data.body){if(t.data&&t.data.body&&"0000"===t.data.body.rtnCode)return t.data.body.dataSet;if(!t.data)return t;var e={code:t.data.body.rtnCode,message:t.data.body.rtnMessage};return Promise.reject(e)}return t.data}),(function(t){if(t&&t.response)switch(t.response.status){case 400:i["Message"].error("错误请求");break;case 401:window.location.href=n["default"].prototype.$loginURL;break;case 403:i["Message"].error("拒绝访问");break;case 404:i["Message"].error("请求错误,未找到该资源");break;case 405:i["Message"].error("请求方法未允许");break;case 408:i["Message"].error("请求超时");break;case 500:i["Message"].error("服务器端出错");break;case 501:i["Message"].error("网络未实现");break;case 502:i["Message"].error("网络错误");break;case 503:i["Message"].error("服务不可用");break;case 504:i["Message"].error("网络超时");break;case 505:i["Message"].error("http版本不支持该请求");break;default:i["Message"].error("连接错误".concat(t.response.status))}else JSON.stringify(t).includes("timeout")&&i["Message"].error("服务器响应超时,请刷新当前页"),i["Message"].error("连接服务器失败")}));function u(t,e){return c({url:t,method:"post",data:e})}function s(t,e){return c({url:t,method:"post",data:e})}},1833:function(t,e,r){},"4ec3":function(t,e,r){"use strict";r.d(e,"t",(function(){return c})),r.d(e,"u",(function(){return u})),r.d(e,"a",(function(){return s})),r.d(e,"d",(function(){return f})),r.d(e,"e",(function(){return d})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return b})),r.d(e,"h",(function(){return p})),r.d(e,"K",(function(){return m})),r.d(e,"H",(function(){return y})),r.d(e,"I",(function(){return h})),r.d(e,"J",(function(){return O})),r.d(e,"n",(function(){return g})),r.d(e,"k",(function(){return j})),r.d(e,"m",(function(){return v})),r.d(e,"l",(function(){return C})),r.d(e,"s",(function(){return M})),r.d(e,"o",(function(){return N})),r.d(e,"q",(function(){return k})),r.d(e,"p",(function(){return w})),r.d(e,"r",(function(){return S})),r.d(e,"v",(function(){return D})),r.d(e,"w",(function(){return E})),r.d(e,"x",(function(){return T})),r.d(e,"A",(function(){return A})),r.d(e,"C",(function(){return _})),r.d(e,"B",(function(){return x})),r.d(e,"M",(function(){return P})),r.d(e,"N",(function(){return Y})),r.d(e,"y",(function(){return I})),r.d(e,"G",(function(){return R})),r.d(e,"E",(function(){return U})),r.d(e,"F",(function(){return B})),r.d(e,"z",(function(){return J})),r.d(e,"O",(function(){return K})),r.d(e,"P",(function(){return F})),r.d(e,"i",(function(){return H})),r.d(e,"L",(function(){return i})),r.d(e,"b",(function(){return L})),r.d(e,"D",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"j",(function(){return z}));var n=r("0c6d"),a=function(t){return Object(n["b"])("/bd/rest/ap-system/loginUser",t)},o=function(t){return Object(n["a"])("/bd/ap-system/casLoginOut",t)},i=function(t){return Object(n["a"])("/bd/rest/society/secuIndex/1",t)},c=function(t){return Object(n["a"])("/bd/rest/society/getNumLeftOne/1",t)},u=function(t){return Object(n["a"])("/bd/rest/society/getNumRightTwo/1",t)},s=function(t){return Object(n["a"])("/bd/rest/society/GetNumRightOne/1",t)},f=function(t){return Object(n["a"])("/bd/rest/society/communityPreventableCaseFil/1",t)},d=function(t){return Object(n["a"])("/bd/rest/society/communityPreventableCaseType/1",t)},l=function(t){return Object(n["a"])("/bd/rest/society/communityPreventableCaseTypee/1",t)},b=function(t){return Object(n["a"])("/bd/rest/society/communityPreventablePopulati/1",t)},p=function(t){return Object(n["a"])("/bd/rest/society/communityPreventablePopulatiMap/1",t)},m=function(t){return Object(n["a"])("/bd/rest/society/publicSecurityCaseType/1",t)},y=function(t){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrend/1",t)},h=function(t){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrendMap/1",t)},O=function(t){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrendcc/1",t)},g=function(t){return Object(n["a"])("/bd/rest/society/criminalCaseMap/1",t)},j=function(t){return Object(n["a"])("/bd/rest/society/criminalCase8Num/1",t)},v=function(t){return Object(n["a"])("/bd/rest/society/criminalCase8Trend/1",t)},C=function(t){return Object(n["a"])("/bd/rest/society/criminalCase8NumTrend/1",t)},M=function(t){return Object(n["a"])("/bd/rest/society/criminalcrownCaseMap/1",t)},N=function(t){return Object(n["a"])("/bd/rest/society/criminalCaseNum/1",t)},k=function(t){return Object(n["a"])("/bd/rest/society/criminalCaseTrend2/1",t)},w=function(t){return Object(n["a"])("/bd/rest/society/criminalCaseTrend/1",t)},S=function(t){return Object(n["a"])("/bd/rest/society/criminalcrownCaseClass/1",t)},D=function(t){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpot/1",t)},E=function(t){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpotMap/1",t)},T=function(t){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpotTrend/1",t)},A=function(t){return Object(n["a"])("/bd/rest/society/keyOrg/1",t)},_=function(t){return Object(n["a"])("/bd/rest/society/keyOrgByYearMonth/1",t)},x=function(t){return Object(n["a"])("/bd/rest/society/keyOrgByType/1",t)},L=function(t){return Object(n["a"])("/bd/rest/society/baseYearMonthQuarter/1",t)},P=function(t){return Object(n["a"])("/bd/rest/society/sensitiveCase/1",t)},Y=function(t){return Object(n["a"])("/bd/rest/society/sensitiveCaseType/1",t)},I=function(t){return Object(n["a"])("/bd/rest/society/infomation/1",t)},R=function(t){return Object(n["a"])("/bd/rest/society/petition/1",t)},U=function(t){return Object(n["a"])("/bd/rest/society/majorDecisions/1",t)},B=function(t){return Object(n["a"])("/bd/rest/society/majorDecisionsReport/1",t)},J=function(t){return Object(n["a"])("/bd/rest/society/keyAreas/1",t)},K=function(t){return Object(n["a"])("/bd/rest/society/townAndCountry/1",t)},F=function(t){return Object(n["a"])("/bd/rest/society/townAndCountryEatOther/1",t)},H=function(t){return Object(n["a"])("/bd/rest/society/contradiction/1",t)},z=function(t){return Object(n["a"])("http://51.31.219.28:6893/ap-system/outer/log-audit/createOperationLog",t)}},ac41:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"e",(function(){return u}));var n=r("0c6d"),a=function(t){return Object(n["a"])("/bd/rest/dailyOffice/WorkIndex/1",t)},o=function(t){return Object(n["a"])("/bd/rest/dailyOffice/projectBudget/1",t)},i=function(t){return Object(n["a"])("/bd/rest/dailyOffice/transceiverSituation/1",t)},c=function(t){return Object(n["a"])("/bd/rest/dailyOffice/property/1",t)},u=function(t){return Object(n["a"])("/bd/rest/dailyOffice/vehicleCondition/1",t)}},d6b4:function(t,e,r){"use strict";r("1833")},f663:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main"},[e("div",{staticClass:"menuSearch"},[e("el-date-picker",{attrs:{type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份","value-format":"yyyy-MM","picker-options":t.pickerOptions,"default-value":(new Date).getFullYear()-1+"-"+((new Date).getMonth()+1)},on:{change:t.dateChange},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}}),e("el-button",{attrs:{type:"primary",round:""},on:{click:t.search}},[e("i",{staticClass:"iconfont iconchaxun"}),t._v("查询")])],1),e("ul",{staticClass:"top"},[e("li",[e("h3",{staticClass:"title"},[t._v("资产")]),e("div",{staticClass:"asset"},t._l(t.asset,(function(r,n){return e("div",{key:n},[e("p",[t._v(t._s(r["NAME"]))]),e("p",[e("span",[t._v(t._s(t._f("formatNum")(r["NUM"])))]),t._v("件 ")])])})),0)]),e("li",[e("h3",{staticClass:"title"},[t._v("各办公用品库存种类占比")]),e("Echarts",{key:t.echartObjKey,attrs:{echartObj:t.echartObj2}})],1),e("li",[e("h3",{staticClass:"title"},[t._v("各办公用品金额占比分析")]),e("Echarts",{key:t.echartObjKey,attrs:{echartObj:t.echartObj3}})],1)]),e("ul",{staticClass:"bottom"},[e("li",[e("h3",{staticClass:"title"},[t._v("办公用品用量统计")]),e("el-table",{staticClass:"lh32 summary",attrs:{data:t.tableData,height:t.tableHeight,"show-summary":"","summary-method":t.getSummaries,"sum-text":"合计(件)"}},[e("el-table-column",{attrs:{prop:"name",width:"150",label:"办公用品类型"}}),t._l(t.column,(function(t,r){return e("el-table-column",{key:r,attrs:{prop:t.prop,label:t.label,align:"right"}})}))],2)],1),e("li",[e("h3",{staticClass:"title"},[t._v("办公用品金额统计")]),e("el-table",{staticClass:"lh32 summary",attrs:{data:t.tableData2,height:t.tableHeight,"show-summary":"","summary-method":t.getSummaries1,"sum-text":"合计(元)"}},[e("el-table-column",{attrs:{prop:"name",width:"150",label:"办公用品类型"}}),t._l(t.column2,(function(t,r){return e("el-table-column",{key:r,attrs:{prop:t.prop,label:t.label,align:"right"}})}))],2)],1)])])},a=[],o=r("bd29"),i=r("ac41"),c=r("4ec3");function u(t){return l(t)||d(t)||f(t)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,e){if(t){if("string"===typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}function d(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function l(t){if(Array.isArray(t))return b(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p={data:function(){var t=this;return{echartObjKey:"echartObjKey",pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()-864e4}},param:{startYear:"",endYear:""},date:"",asset:[],tableHeight:200,column:[],tableData:[],column2:[],tableData2:[],echartObj2:{tooltip:{formatter:"{a} <br/>{b}"},series:[{name:"各办公用品库存种类占比",type:"wordCloud",gridSize:24,sizeRange:[10,18],rotationRange:[0,0,45,90],textStyle:{normal:{color:"#fff",textBorderColor:"#0000ff"}},left:"center",top:"center",right:null,bottom:null,width:"90%",height:"100%",data:[]}]},echartObj3:{color:["#ff7723","#29b584","#af7dff","#05C7F6","#8fdd20","#35e0e3","#ffd200"],tooltip:{trigger:"item",formatter:function(e){return e.seriesName+"<br>"+e.name+""+t.formatNum(e.value)+"元("+e.percent+"%)"}},series:[{name:"各处室办公用品消耗比例",type:"pie",animationDuration:2e3,radius:["30%","70%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[],label:{normal:{show:!0,position:"inner",color:"#fff",formatter:"{d}%"}}},{name:"各处室办公用品消耗比例",type:"pie",animationDuration:2e3,radius:["30%","70%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[],itemStyle:{normal:{label:{show:!0,formatter:function(e){return e.name+"\n"+t.formatNum(e.value)+"元"}},labelLine:{show:!0}}}}]}}},created:function(){this.param={startYear:"",endYear:""},this.getData()},components:{Echarts:o["a"]},methods:{search:function(){this.getData()},getData:function(){var t=this,e={opeLogExceptionInfo:"进入日常办公专题模块查询了资产数据",opeLogUserAccount:this.$cookies.get("username"),opeLogSystem:"BJCM-DSJ",opeLogStatus:1,opeLogIp:""};Object(c["j"])(e).then((function(t){})),Object(i["c"])(this.param).then((function(e){t.asset=e.selectasssetstype;var r=0,n=u(e.selectOfficeSuppliesratio);n.forEach((function(t){r+=t["NUM"]})),n.forEach((function(t){t["proportion"]=(t["NUM"]/r*100).toFixed(2)+"%"})),t.echartObj2.series[0].data=n.map((function(t){return{name:t["NAME"]+""+t["proportion"],value:t["NUM"]}})),t.echartObj3.series[0].data=e.selectratio.map((function(t){return{name:t["NAME"],value:t["RATIO"]}})),t.echartObj3.series[1].data=e.selectratio.map((function(t){return{name:t["NAME"],value:t["RATIO"]}})),t.column2=[],t.tableData2=[],e.selectratioyear.forEach((function(e){t.column2.push({label:e,prop:"prop"+e})})),e.trendtypelist.forEach((function(r,n){t.tableData2.push({name:r.type}),e.selectratioyear.forEach((function(e,a){t.tableData2[n]["prop"+e]=t.formatNum(r.val[a])}))})),t.column=[],t.tableData=[],e.officetypeuseyear.forEach((function(e){t.column.push({label:e,prop:"prop"+e})})),e.officetypeuse.forEach((function(r,n){t.tableData.push({name:r.type}),e.officetypeuseyear.forEach((function(e,a){t.tableData[n]["prop"+e]=t.formatNum(r.val[a])}))})),t.echartObjKey=(new Date).getTime()+1})).catch((function(t){}))},getSummaries:function(t){var e=this,r=t.columns,n=t.data,a=[];return r.forEach((function(t,r){if(0!==r){var o=n.map((function(e){return Number(-1!=String(e[t.property]).indexOf(",")?String(e[t.property]).replace(",",""):e[t.property])}));if(!o.every((function(t){return isNaN(t)}))){var i=o.reduce((function(t,e){var r=Number(e);return isNaN(r)?t:t+e}),0);a[r]=e.formatNum(i)}}else a[r]="合计(件)"})),a},getSummaries1:function(t){var e=this,r=t.columns,n=t.data,a=[];return r.forEach((function(t,r){if(0!==r){var o=n.map((function(e){return Number(-1!=String(e[t.property]).indexOf(",")?String(e[t.property]).replace(",",""):e[t.property])}));if(!o.every((function(t){return isNaN(t)}))){var i=o.reduce((function(t,e){var r=Number(e);return isNaN(r)?t:t+e}),0);a[r]=e.formatNum(i)}}else a[r]="合计(元)"})),a},dateChange:function(t){t?(this.param.startYear=t[0],this.param.endYear=t[1]):(this.param.startYear="",this.param.endYear="")}}},m=p,y=(r("d6b4"),r("2877")),h=Object(y["a"])(m,n,a,!1,null,"5d0baf04",null);e["default"]=h.exports}}]);