1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-139ec2b3"],{"0c6d":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return u}));var n=r("2b0e"),a=r("bc3a"),o=r.n(a),c=r("5c96");o.a.defaults.withCredentials=!0,o.a.defaults.crossDomain=!0;var i=o.a.create({baseURL:"http://51.31.219.42:6896",timeout:12e4});i.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),i.interceptors.response.use((function(e){if(e.data.body){if(e.data&&e.data.body&&"0000"===e.data.body.rtnCode)return e.data.body.dataSet;if(!e.data)return e;var t={code:e.data.body.rtnCode,message:e.data.body.rtnMessage};return Promise.reject(t)}return e.data}),(function(e){if(e&&e.response)switch(e.response.status){case 400:c["Message"].error("错误请求");break;case 401:window.location.href=n["default"].prototype.$loginURL;break;case 403:c["Message"].error("拒绝访问");break;case 404:c["Message"].error("请求错误,未找到该资源");break;case 405:c["Message"].error("请求方法未允许");break;case 408:c["Message"].error("请求超时");break;case 500:c["Message"].error("服务器端出错");break;case 501:c["Message"].error("网络未实现");break;case 502:c["Message"].error("网络错误");break;case 503:c["Message"].error("服务不可用");break;case 504:c["Message"].error("网络超时");break;case 505:c["Message"].error("http版本不支持该请求");break;default:c["Message"].error("连接错误".concat(e.response.status))}else JSON.stringify(e).includes("timeout")&&c["Message"].error("服务器响应超时,请刷新当前页"),c["Message"].error("连接服务器失败")}));function u(e,t){return i({url:e,method:"post",data:t})}function s(e,t){return i({url:e,method:"post",data:t})}},"264d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main"},[t("div",{staticClass:"menuSearch"},[t("el-date-picker",{attrs:{"value-format":"yyyy",type:"year",placeholder:"选择开始年份","picker-options":e.pickerOptions},model:{value:e.param.startYear,callback:function(t){e.$set(e.param,"startYear",t)},expression:"param.startYear"}}),e._v(" 至 "),t("el-date-picker",{attrs:{"value-format":"yyyy",type:"year",placeholder:"选择结束年份","picker-options":e.pickerOptions},model:{value:e.param.endYear,callback:function(t){e.$set(e.param,"endYear",t)},expression:"param.endYear"}}),t("el-button",{attrs:{type:"primary",round:""},on:{click:e.search}},[t("i",{staticClass:"iconfont iconchaxun"}),e._v("查询")])],1),t("h2",[e._v("项目预算金额趋势分析")]),t("dv-border-box-7",{staticStyle:{height:"30%",padding:"0 50px","box-sizing":"border-box"},attrs:{color:["#15369F","#fff"]}},[t("Echarts",{key:e.echartObjKey,attrs:{echartObj:e.echartObj1}})],1),t("p",{staticStyle:{"margin-top":"10px"}},[e._v("单位(元)")]),t("el-table",{staticClass:"summary lh32 bg",attrs:{data:e.tableData,border:"",height:e.tableHeight,"show-summary":"","summary-method":e.getSummaries}},[t("el-table-column",{attrs:{prop:"name",label:"申报处室","min-width":"120px"}}),e._l(e.column,(function(e,r){return t("el-table-column",{key:r,attrs:{label:e.time,align:"center"}},[t("el-table-column",{attrs:{prop:e.budget,align:"right","min-width":"100px",label:"预算金额"}}),t("el-table-column",{attrs:{prop:e.reply,align:"right","min-width":"100px",label:"批复金额"}})],1)}))],2)],1)},a=[],o=r("bd29"),c=r("ac41"),i=r("4ec3"),u={data:function(){var e=this;return{echartObjKey:"echartObjKey",pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},date:"",date1:"",param:{startYear:"",endYear:""},tableHeight:.7*(window.innerHeight-76-90)-20-50-29,tableData:[],column:[],echartObj1:{color:["#1179ff","#f3a858","#20f292"],tooltip:{trigger:"axis",position:"inside"},legend:{top:"10",icon:"circle",right:"20",textStyle:{color:"#fff"}},grid:{top:"60",left:"20",right:"40",bottom:"10",containLabel:!0},xAxis:[{type:"category",boundaryGap:!0,data:[],axisLine:{lineStyle:{color:"#2dd4fc",width:2}},axisLabel:{show:!0,textStyle:{color:"#2dd4fc"},interval:0}}],yAxis:[{name:"金额(元)",type:"value",axisLine:{lineStyle:{color:"#2dd4fc",width:2}},axisLabel:{show:!0,textStyle:{color:"#2dd4fc"}},splitLine:{show:!0,lineStyle:{color:"#355184",width:1}}}],series:[{name:"预算金额",type:"line",animationDuration:2e3,smooth:!0,symbol:"circle",data:[],areaStyle:{normal:{color:new this.$echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#d8a842"},{offset:1,color:"#1d4791"}])}},itemStyle:{normal:{color:"#f19634",lineStyle:{color:"#f19634"},label:{show:!0,formatter:function(t){return e.formatNum(t.value)}}}}},{name:"批复金额",type:"line",animationDuration:2e3,smooth:!0,symbol:"circle",data:[],areaStyle:{normal:{color:new this.$echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#d16464"},{offset:1,color:"#FF1E10"}])}},itemStyle:{normal:{color:"#FF1E10",lineStyle:{color:"#FF1E10"},label:{show:!0,formatter:function(t){return e.formatNum(t.value)}}}}}]}}},created:function(){this.param={startYear:"",endYear:""},this.getData()},components:{Echarts:o["a"]},methods:{search:function(){this.getData()},getData:function(){var e=this,t={opeLogExceptionInfo:"进入日常办公专题模块查询了项目预算数据",opeLogUserAccount:this.$cookies.get("username"),opeLogSystem:"BJCM-DSJ",opeLogStatus:1,opeLogIp:""};Object(i["j"])(t).then((function(e){})),Object(c["b"])(this.param).then((function(t){e.echartObj1.xAxis[0].data=[],e.echartObj1.series[0].data=[],e.echartObj1.series[1].data=[],t.selectprobud.forEach((function(t){e.echartObj1.xAxis[0].data.push(t["YEAR"]),e.echartObj1.series[0].data.push(t["BUDGET"]),e.echartObj1.series[1].data.push(t["RATIO"])}));var r=[],n=[];t.typevalue.forEach((function(n,a){r.push({name:n.type});for(var o=[],c=0;c<n.val.length;c+=2)o.push(n.val.slice(c,c+2));t.typetime.forEach((function(t,n){r[a]["budget"+t]=e.formatNum(o[n][0]),r[a]["reply"+t]=e.formatNum(o[n][1])}))})),t.typetime.forEach((function(e,t){n.push({budget:"budget"+e,reply:"reply"+e,time:e})})),e.tableData=r,e.column=n,e.echartObjKey=(new Date).getTime()+1})).catch((function(e){}))},getSummaries:function(e){var t=this,r=e.columns,n=e.data,a=[];return r.forEach((function(e,r){if(0!==r){var o=n.map((function(t){return Number(-1!=String(t[e.property]).indexOf(",")?String(t[e.property]).replace(",",""):t[e.property])}));if(!o.every((function(e){return isNaN(e)}))){var c=o.reduce((function(e,t){var r=Number(t);return isNaN(r)?e:e+t}),0);a[r]=t.formatNum(c)}}else a[r]="合计(元)"})),a}}},s=u,d=(r("d6e9"),r("2877")),f=Object(d["a"])(s,n,a,!1,null,"21cd10e1",null);t["default"]=f.exports},"4ec3":function(e,t,r){"use strict";r.d(t,"t",(function(){return i})),r.d(t,"u",(function(){return u})),r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return f})),r.d(t,"f",(function(){return b})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return y})),r.d(t,"K",(function(){return p})),r.d(t,"H",(function(){return m})),r.d(t,"I",(function(){return h})),r.d(t,"J",(function(){return O})),r.d(t,"n",(function(){return g})),r.d(t,"k",(function(){return j})),r.d(t,"m",(function(){return v})),r.d(t,"l",(function(){return k})),r.d(t,"s",(function(){return w})),r.d(t,"o",(function(){return C})),r.d(t,"q",(function(){return x})),r.d(t,"p",(function(){return S})),r.d(t,"r",(function(){return M})),r.d(t,"v",(function(){return L})),r.d(t,"w",(function(){return N})),r.d(t,"x",(function(){return T})),r.d(t,"A",(function(){return D})),r.d(t,"C",(function(){return E})),r.d(t,"B",(function(){return P})),r.d(t,"M",(function(){return A})),r.d(t,"N",(function(){return F})),r.d(t,"y",(function(){return R})),r.d(t,"G",(function(){return _})),r.d(t,"E",(function(){return B})),r.d(t,"F",(function(){return G})),r.d(t,"z",(function(){return I})),r.d(t,"O",(function(){return J})),r.d(t,"P",(function(){return $})),r.d(t,"i",(function(){return K})),r.d(t,"L",(function(){return c})),r.d(t,"b",(function(){return Y})),r.d(t,"D",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"j",(function(){return U}));var n=r("0c6d"),a=function(e){return Object(n["b"])("/bd/rest/ap-system/loginUser",e)},o=function(e){return Object(n["a"])("/bd/ap-system/casLoginOut",e)},c=function(e){return Object(n["a"])("/bd/rest/society/secuIndex/1",e)},i=function(e){return Object(n["a"])("/bd/rest/society/getNumLeftOne/1",e)},u=function(e){return Object(n["a"])("/bd/rest/society/getNumRightTwo/1",e)},s=function(e){return Object(n["a"])("/bd/rest/society/GetNumRightOne/1",e)},d=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseFil/1",e)},f=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseType/1",e)},b=function(e){return Object(n["a"])("/bd/rest/society/communityPreventableCaseTypee/1",e)},l=function(e){return Object(n["a"])("/bd/rest/society/communityPreventablePopulati/1",e)},y=function(e){return Object(n["a"])("/bd/rest/society/communityPreventablePopulatiMap/1",e)},p=function(e){return Object(n["a"])("/bd/rest/society/publicSecurityCaseType/1",e)},m=function(e){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrend/1",e)},h=function(e){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrendMap/1",e)},O=function(e){return Object(n["a"])("/bd/rest/society/publicSecurityCaseTrendcc/1",e)},g=function(e){return Object(n["a"])("/bd/rest/society/criminalCaseMap/1",e)},j=function(e){return Object(n["a"])("/bd/rest/society/criminalCase8Num/1",e)},v=function(e){return Object(n["a"])("/bd/rest/society/criminalCase8Trend/1",e)},k=function(e){return Object(n["a"])("/bd/rest/society/criminalCase8NumTrend/1",e)},w=function(e){return Object(n["a"])("/bd/rest/society/criminalcrownCaseMap/1",e)},C=function(e){return Object(n["a"])("/bd/rest/society/criminalCaseNum/1",e)},x=function(e){return Object(n["a"])("/bd/rest/society/criminalCaseTrend2/1",e)},S=function(e){return Object(n["a"])("/bd/rest/society/criminalCaseTrend/1",e)},M=function(e){return Object(n["a"])("/bd/rest/society/criminalcrownCaseClass/1",e)},L=function(e){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpot/1",e)},N=function(e){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpotMap/1",e)},T=function(e){return Object(n["a"])("/bd/rest/society/groupPreventionCureSpotTrend/1",e)},D=function(e){return Object(n["a"])("/bd/rest/society/keyOrg/1",e)},E=function(e){return Object(n["a"])("/bd/rest/society/keyOrgByYearMonth/1",e)},P=function(e){return Object(n["a"])("/bd/rest/society/keyOrgByType/1",e)},Y=function(e){return Object(n["a"])("/bd/rest/society/baseYearMonthQuarter/1",e)},A=function(e){return Object(n["a"])("/bd/rest/society/sensitiveCase/1",e)},F=function(e){return Object(n["a"])("/bd/rest/society/sensitiveCaseType/1",e)},R=function(e){return Object(n["a"])("/bd/rest/society/infomation/1",e)},_=function(e){return Object(n["a"])("/bd/rest/society/petition/1",e)},B=function(e){return Object(n["a"])("/bd/rest/society/majorDecisions/1",e)},G=function(e){return Object(n["a"])("/bd/rest/society/majorDecisionsReport/1",e)},I=function(e){return Object(n["a"])("/bd/rest/society/keyAreas/1",e)},J=function(e){return Object(n["a"])("/bd/rest/society/townAndCountry/1",e)},$=function(e){return Object(n["a"])("/bd/rest/society/townAndCountryEatOther/1",e)},K=function(e){return Object(n["a"])("/bd/rest/society/contradiction/1",e)},U=function(e){return Object(n["a"])("http://51.31.219.28:6893/ap-system/outer/log-audit/createOperationLog",e)}},ac41:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return i})),r.d(t,"e",(function(){return u}));var n=r("0c6d"),a=function(e){return Object(n["a"])("/bd/rest/dailyOffice/WorkIndex/1",e)},o=function(e){return Object(n["a"])("/bd/rest/dailyOffice/projectBudget/1",e)},c=function(e){return Object(n["a"])("/bd/rest/dailyOffice/transceiverSituation/1",e)},i=function(e){return Object(n["a"])("/bd/rest/dailyOffice/property/1",e)},u=function(e){return Object(n["a"])("/bd/rest/dailyOffice/vehicleCondition/1",e)}},d6e9:function(e,t,r){"use strict";r("f008")},f008:function(e,t,r){}}]); |