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:"#2dd4
|