zqyy-yl/dist1/assets/js/chunk-0899bdda.048f5136.js
2023-09-08 11:34:27 +08:00

1 line
17 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-0899bdda"],{"0c6d":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return s}));var r=a("2b0e"),n=a("bc3a"),i=a.n(n),o=a("5c96");i.a.defaults.withCredentials=!0,i.a.defaults.crossDomain=!0;var c=i.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:o["Message"].error("错误请求");break;case 401:window.location.href=r["default"].prototype.$loginURL;break;case 403:o["Message"].error("拒绝访问");break;case 404:o["Message"].error("请求错误,未找到该资源");break;case 405:o["Message"].error("请求方法未允许");break;case 408:o["Message"].error("请求超时");break;case 500:o["Message"].error("服务器端出错");break;case 501:o["Message"].error("网络未实现");break;case 502:o["Message"].error("网络错误");break;case 503:o["Message"].error("服务不可用");break;case 504:o["Message"].error("网络超时");break;case 505:o["Message"].error("http版本不支持该请求");break;default:o["Message"].error("连接错误".concat(t.response.status))}else JSON.stringify(t).includes("timeout")&&o["Message"].error("服务器响应超时,请刷新当前页"),o["Message"].error("连接服务器失败")}));function s(t,e){return c({url:t,method:"post",data:e})}function l(t,e){return c({url:t,method:"post",data:e})}},"115b":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main vehicle"},[e("div",{staticClass:"menuSearch"},[e("el-date-picker",{attrs:{"value-format":"yyyy-MM",type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份","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("div",{staticClass:"left"},[e("ul",[e("li",[e("h3",{staticClass:"title"},[t._v("公车使用情况")]),e("Echarts",{key:t.echartObjKey,attrs:{echartObj:t.echartObj1}})],1),e("li",[e("h3",{staticClass:"title"},[e("span",{staticClass:"size"},[t._v("各处室公车使用次数排名")]),e("span",{on:{click:function(e){t.dialogVisible=!0}}},[t._v("更多>>")])]),e("div",{staticClass:"table"},[e("el-table",{staticClass:"table_header lh32 shwdzspm",attrs:{height:t.tableHeight,data:t.tableData}},[e("el-table-column",{attrs:{prop:"a1",width:"80",label:"排名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{class:1==a.row.a1?"one":2==a.row.a1?"two":3==a.row.a1?"three":"",staticStyle:{color:"#fe8e3c"}},[t._v(t._s(a.row.a1))])]}}])}),e("el-table-column",{attrs:{prop:"a2",label:"用车处室",align:"center"}}),e("el-table-column",{attrs:{prop:"a3",label:"累计次数",align:"center"}})],1)],1)])])]),e("div",{staticClass:"middle"},[e("div",{staticClass:"box"},[t._l(t.carNum,(function(a,r){return e("div",{key:r},[e("p",[t._v(t._s(a["NAME"]))]),e("p",[e("span",{staticClass:"digifaw"},[t._v(t._s(t._f("formatNum")(a["NUM"])))]),t._v("辆 ")])])})),e("span",{staticClass:"total"},[e("i",{staticClass:"digifaw"},[t._v(t._s(t._f("formatNum")(t.carNum.total)))]),t._v("辆")])],2)]),e("div",{staticClass:"right"},[e("ul",[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("li",[e("h3",{staticClass:"title"},[e("span",{staticClass:"size"},[t._v("车辆使用次数排名")]),e("span",{on:{click:function(e){t.dialogVisible1=!0}}},[t._v("更多>>")])]),e("div",{staticClass:"table"},[e("el-table",{staticClass:"table_header lh32 shwdzspm",attrs:{data:t.tableData2}},[e("el-table-column",{attrs:{prop:"a1",width:"180",label:"车号",align:"center"}}),e("el-table-column",{attrs:{prop:"a2",label:"品牌",align:"center"}}),e("el-table-column",{attrs:{prop:"a3",label:"颜色",align:"center"}}),e("el-table-column",{attrs:{prop:"a4",label:"使用次数",align:"center"}})],1)],1)])])]),e("el-dialog",{staticStyle:{background:"url('../../assets/img/body.jpg') no-repeat","background-size":"100% 100%"},attrs:{title:"各处室公车使用次数排名",visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("el-table",{staticClass:"lh40 mgasj",attrs:{data:t.tableData}},[e("el-table-column",{attrs:{prop:"a1",width:"80",label:"排名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{class:1==a.row.a1?"one":2==a.row.a1?"two":3==a.row.a1?"three":"",staticStyle:{color:"#fe8e3c"}},[t._v(t._s(a.row.a1))])]}}])}),e("el-table-column",{attrs:{prop:"a2",label:"用车处室",align:"center"}}),e("el-table-column",{attrs:{prop:"a3",label:"累计次数",align:"center"}})],1)],1),e("el-dialog",{staticStyle:{background:"url('../../assets/img/body.jpg') no-repeat","background-size":"100% 100%"},attrs:{title:"车辆使用次数排名",visible:t.dialogVisible1,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible1=e}}},[e("el-table",{staticClass:"lh40 mgasj",attrs:{data:t.tableData2}},[e("el-table-column",{attrs:{prop:"a1",width:"180",label:"车号",align:"center"}}),e("el-table-column",{attrs:{prop:"a2",label:"品牌",align:"center"}}),e("el-table-column",{attrs:{prop:"a3",label:"颜色",align:"center"}}),e("el-table-column",{attrs:{prop:"a4",label:"使用次数",align:"center"}})],1)],1)],1)},n=[],i=a("bd29"),o=a("ac41"),c=a("4ec3"),s={data:function(){var t=this;return{dialogVisible:!1,dialogVisible1:!1,echartObjKey:"echartObjKey",pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()-864e4}},param:{startYear:"",endYear:""},date:"",value:"",tableHeight:.5*(window.innerHeight-76-92)-20-50,tableData:[],tableData2:[],echartObj1:{color:["#1179ff","#f3a858","#20f292"],tooltip:{trigger:"axis",position:"inside"},legend:{top:"10",icon:"circle",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:{rotate:30,show:!0,textStyle:{color:"#2dd4fc"},interval:0}}],yAxis:[{name:"单位(辆)",type:"value",axisLine:{lineStyle:{color:"#2dd4fc",width:2}},axisLabel:{show:!0,textStyle:{color:"#2dd4fc"}}},{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:"bar",animationDuration:2e3,smooth:!0,data:[],label:{show:!0},barWidth:20,itemStyle:{normal:{color:"#2dd4fc",lineStyle:{color:"#2dd4fc"},label:{show:!0,position:"top"}}}},{name:"使用率",type:"line",animationDuration:2e3,smooth:!0,symbol:"circle",yAxisIndex:1,data:[],label:{show:!0},itemStyle:{normal:{color:"#f19634",lineStyle:{color:"#f19634"},label:{show:!0,position:"top"}}}}]},echartObj2:{color:["#1179ff","#f3a858","#20f292"],tooltip:{trigger:"axis",position:"inside"},legend:{top:"10",right:"20",icon:"circle",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"},rotate:30,interval:0}}],yAxis:[{type:"value",axisLine:{lineStyle:{color:"#2dd4fc",width:2}},axisLabel:{show:!0,textStyle:{color:"#2dd4fc"}},splitLine:{show:!0,lineStyle:{color:"#355184",width:1}}},{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:"bar",animationDuration:2e3,yAxisIndex:1,smooth:!0,symbol:"circle",symbolSize:8,data:[],label:{show:!0,position:"insideBottom",color:"#fff"}},{name:"金额(元)",type:"line",animationDuration:2e3,smooth:!0,symbol:"circle",symbolSize:8,data:[],label:{show:!0,formatter:function(e){return t.formatNum(e.value)}},areaStyle:{normal:{color:new this.$echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#cca84c"},{offset:1,color:"#152f61"}])}},itemStyle:{normal:{color:"#f19634",lineStyle:{color:"#f19634"}}}}]},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:[],itemStyle:{normal:{label:{show:!0,formatter:function(e){return e.name+""+t.formatNum(e.value)+"辆"}},labelLine:{show:!0}}}},{name:"车辆公里数分析",type:"pie",animationDuration:2e3,radius:["30%","70%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[],itemStyle:{normal:{label:{show:!0,position:"inside",formatter:"{d}%"},labelLine:{show:!0}}}},{radius:["30%","35%"],type:"pie",animationDuration:2e3,animation:!1,tooltip:{show:!1},data:[{value:0,itemStyle:{color:"rgba(0,0,0,0.2)"}}]}]},carNum:[]}},created:function(){this.param={startYear:"",endYear:""},this.getData()},components:{Echarts:i["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(o["e"])(this.param).then((function(e){t.carNum=e.selectcartype,t.carNum.total=0,e.selectcartype.forEach((function(e){t.carNum.total+=e["NUM"]})),t.echartObj1.xAxis[0].data=[],t.echartObj1.series[0].data=[],t.echartObj1.series[1].data=[],e.selectcarnum.forEach((function(e){t.echartObj1.xAxis[0].data.push(e["YEAR_MONTH"]),t.echartObj1.series[0].data.push(e["CAR"]),t.echartObj1.series[1].data.push(e["RATIO"])})),t.tableData=e.selectcarrank.map((function(t,e){return{a1:e+1,a2:t["NAME"],a3:t["NUM"]}})),t.echartObj2.xAxis[0].data=[],t.echartObj2.series[0].data=[],t.echartObj2.series[1].data=[],e.selectcartypeanasy.forEach((function(e){t.echartObj2.xAxis[0].data.push(e["NAME"]),t.echartObj2.series[0].data.push(e["MAINTAIN"]),t.echartObj2.series[1].data.push(e["AMOUNT"])})),t.echartObj3.series[0].data=e.selectcarmileage.map((function(t){return{value:t["NUM"],name:t["NAME"]}})),t.echartObj3.series[1].data=e.selectcarmileage.map((function(t){return{value:t["NUM"],name:t["NAME"]}})),t.tableData2=[],e.selectusenumber.forEach((function(e){t.tableData2.push({a1:e[0],a2:e[1],a3:e[2],a4:e[3]})})),t.echartObjKey=(new Date).getTime()+1})).catch((function(t){}))},dateChange:function(t){t?(this.param.startYear=t[0],this.param.endYear=t[1]):(this.param.startYear="",this.param.endYear="")},handleClose:function(){this.dialogVisible=!1,this.dialogVisible1=!1}}},l=s,u=(a("c676"),a("2877")),d=Object(u["a"])(l,r,n,!1,null,"1be6d49f",null);e["default"]=d.exports},"28fe":function(t,e,a){},"4ec3":function(t,e,a){"use strict";a.d(e,"t",(function(){return c})),a.d(e,"u",(function(){return s})),a.d(e,"a",(function(){return l})),a.d(e,"d",(function(){return u})),a.d(e,"e",(function(){return d})),a.d(e,"f",(function(){return b})),a.d(e,"g",(function(){return f})),a.d(e,"h",(function(){return p})),a.d(e,"K",(function(){return y})),a.d(e,"H",(function(){return h})),a.d(e,"I",(function(){return m})),a.d(e,"J",(function(){return g})),a.d(e,"n",(function(){return O})),a.d(e,"k",(function(){return j})),a.d(e,"m",(function(){return w})),a.d(e,"l",(function(){return v})),a.d(e,"s",(function(){return C})),a.d(e,"o",(function(){return S})),a.d(e,"q",(function(){return x})),a.d(e,"p",(function(){return k})),a.d(e,"r",(function(){return M})),a.d(e,"v",(function(){return N})),a.d(e,"w",(function(){return L})),a.d(e,"x",(function(){return _})),a.d(e,"A",(function(){return D})),a.d(e,"C",(function(){return A})),a.d(e,"B",(function(){return T})),a.d(e,"M",(function(){return P})),a.d(e,"N",(function(){return Y})),a.d(e,"y",(function(){return I})),a.d(e,"G",(function(){return U})),a.d(e,"E",(function(){return V})),a.d(e,"F",(function(){return z})),a.d(e,"z",(function(){return R})),a.d(e,"O",(function(){return K})),a.d(e,"P",(function(){return B})),a.d(e,"i",(function(){return J})),a.d(e,"L",(function(){return o})),a.d(e,"b",(function(){return E})),a.d(e,"D",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"j",(function(){return G}));var r=a("0c6d"),n=function(t){return Object(r["b"])("/bd/rest/ap-system/loginUser",t)},i=function(t){return Object(r["a"])("/bd/ap-system/casLoginOut",t)},o=function(t){return Object(r["a"])("/bd/rest/society/secuIndex/1",t)},c=function(t){return Object(r["a"])("/bd/rest/society/getNumLeftOne/1",t)},s=function(t){return Object(r["a"])("/bd/rest/society/getNumRightTwo/1",t)},l=function(t){return Object(r["a"])("/bd/rest/society/GetNumRightOne/1",t)},u=function(t){return Object(r["a"])("/bd/rest/society/communityPreventableCaseFil/1",t)},d=function(t){return Object(r["a"])("/bd/rest/society/communityPreventableCaseType/1",t)},b=function(t){return Object(r["a"])("/bd/rest/society/communityPreventableCaseTypee/1",t)},f=function(t){return Object(r["a"])("/bd/rest/society/communityPreventablePopulati/1",t)},p=function(t){return Object(r["a"])("/bd/rest/society/communityPreventablePopulatiMap/1",t)},y=function(t){return Object(r["a"])("/bd/rest/society/publicSecurityCaseType/1",t)},h=function(t){return Object(r["a"])("/bd/rest/society/publicSecurityCaseTrend/1",t)},m=function(t){return Object(r["a"])("/bd/rest/society/publicSecurityCaseTrendMap/1",t)},g=function(t){return Object(r["a"])("/bd/rest/society/publicSecurityCaseTrendcc/1",t)},O=function(t){return Object(r["a"])("/bd/rest/society/criminalCaseMap/1",t)},j=function(t){return Object(r["a"])("/bd/rest/society/criminalCase8Num/1",t)},w=function(t){return Object(r["a"])("/bd/rest/society/criminalCase8Trend/1",t)},v=function(t){return Object(r["a"])("/bd/rest/society/criminalCase8NumTrend/1",t)},C=function(t){return Object(r["a"])("/bd/rest/society/criminalcrownCaseMap/1",t)},S=function(t){return Object(r["a"])("/bd/rest/society/criminalCaseNum/1",t)},x=function(t){return Object(r["a"])("/bd/rest/society/criminalCaseTrend2/1",t)},k=function(t){return Object(r["a"])("/bd/rest/society/criminalCaseTrend/1",t)},M=function(t){return Object(r["a"])("/bd/rest/society/criminalcrownCaseClass/1",t)},N=function(t){return Object(r["a"])("/bd/rest/society/groupPreventionCureSpot/1",t)},L=function(t){return Object(r["a"])("/bd/rest/society/groupPreventionCureSpotMap/1",t)},_=function(t){return Object(r["a"])("/bd/rest/society/groupPreventionCureSpotTrend/1",t)},D=function(t){return Object(r["a"])("/bd/rest/society/keyOrg/1",t)},A=function(t){return Object(r["a"])("/bd/rest/society/keyOrgByYearMonth/1",t)},T=function(t){return Object(r["a"])("/bd/rest/society/keyOrgByType/1",t)},E=function(t){return Object(r["a"])("/bd/rest/society/baseYearMonthQuarter/1",t)},P=function(t){return Object(r["a"])("/bd/rest/society/sensitiveCase/1",t)},Y=function(t){return Object(r["a"])("/bd/rest/society/sensitiveCaseType/1",t)},I=function(t){return Object(r["a"])("/bd/rest/society/infomation/1",t)},U=function(t){return Object(r["a"])("/bd/rest/society/petition/1",t)},V=function(t){return Object(r["a"])("/bd/rest/society/majorDecisions/1",t)},z=function(t){return Object(r["a"])("/bd/rest/society/majorDecisionsReport/1",t)},R=function(t){return Object(r["a"])("/bd/rest/society/keyAreas/1",t)},K=function(t){return Object(r["a"])("/bd/rest/society/townAndCountry/1",t)},B=function(t){return Object(r["a"])("/bd/rest/society/townAndCountryEatOther/1",t)},J=function(t){return Object(r["a"])("/bd/rest/society/contradiction/1",t)},G=function(t){return Object(r["a"])("http://51.31.219.28:6893/ap-system/outer/log-audit/createOperationLog",t)}},ac41:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"c",(function(){return c})),a.d(e,"e",(function(){return s}));var r=a("0c6d"),n=function(t){return Object(r["a"])("/bd/rest/dailyOffice/WorkIndex/1",t)},i=function(t){return Object(r["a"])("/bd/rest/dailyOffice/projectBudget/1",t)},o=function(t){return Object(r["a"])("/bd/rest/dailyOffice/transceiverSituation/1",t)},c=function(t){return Object(r["a"])("/bd/rest/dailyOffice/property/1",t)},s=function(t){return Object(r["a"])("/bd/rest/dailyOffice/vehicleCondition/1",t)}},c676:function(t,e,a){"use strict";a("28fe")}}]);