You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
30 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"089d":function(t,e,a){"use strict";a.r(e);var o=a("ffc2"),i=a("0e87");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("dfd3");var n,l=a("f0c5"),s=Object(l["a"])(i["default"],o["b"],o["c"],!1,null,"cc2ad83a",null,!1,o["a"],n);e["default"]=s.exports},"0e87":function(t,e,a){"use strict";a.r(e);var o=a("6b9b"),i=a.n(o);for(var r in o)"default"!==r&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},1412:function(t,e,a){"use strict";var o=a("686c"),i=a.n(o);i.a},"672e":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return o}));var o={uSwiper:a("e778").default,uCard:a("089d").default,uToast:a("f8a5").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-demo-block"},[a("u-swiper",{staticStyle:{"margin-top":"10px"},attrs:{list:t.list3,effect3d:!0,height:"300"}}),a("u-card",{attrs:{title:t.title,"sub-title":t.subTitle,padding:t.padding,border:t.border},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.headClick.apply(void 0,arguments)}}},[a("v-uni-view",{attrs:{slot:"body"},slot:"body"},t._l(t.dataList.slice(0,2),(function(e,o){return a("v-uni-view",{key:o,staticClass:"u-body-item u-flex u-border-bottom u-col-between u-p-t-0"},[a("v-uni-view",{staticClass:"u-body-item-title u-line-2"},[t._v(t._s(e.title))])],1)})),1)],1),a("u-card",{attrs:{title:"待审批","sub-title":"查看详情",padding:t.padding,border:t.border},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.headClick1.apply(void 0,arguments)}}},[a("v-uni-view",{attrs:{slot:"body"},slot:"body"},t._l(t.dataProcessList.slice(0,2),(function(e,o){return a("v-uni-view",{key:o,staticClass:"u-body-item u-flex u-border-bottom u-col-between u-p-t-0"},[a("v-uni-view",{staticClass:"u-body-item-title u-line-2"},[t._v(t._s(e.tittle))])],1)})),1)],1),a("el-select",{staticClass:"my-el-select",staticStyle:{width:"120px"},attrs:{placeholder:"请选择月份"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeMonth.apply(void 0,arguments)}},model:{value:t.serMonth,callback:function(e){t.serMonth=e},expression:"serMonth"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-carousel",{attrs:{arrow:"always",autoplay:!1,"indicator-position":"none"}},[a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"safety"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"environment"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"health"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"production"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"craft"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"equipment"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"labor"}})],1),a("el-carousel-item",[a("v-uni-view",{staticStyle:{height:"250px"},attrs:{id:"educate"}})],1)],1),a("v-uni-view",{staticStyle:{height:"250px","margin-top":"-60px"},attrs:{id:"scoreEchart"}}),a("u-toast",{ref:"uToast"})],1)},r=[]},"686c":function(t,e,a){var o=a("74ab");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("4f06").default;i("f069e96c",o,!0,{sourceMap:!1,shadowMode:!1})},"6b9b":function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"u-card",props:{full:{type:Boolean,default:!1},title:{type:String,default:""},titleColor:{type:String,default:"#303133"},titleSize:{type:[Number,String],default:"30"},subTitle:{type:String,default:""},subTitleColor:{type:String,default:"#909399"},subTitleSize:{type:[Number,String],default:"26"},border:{type:Boolean,default:!0},index:{type:[Number,String,Object],default:""},margin:{type:String,default:"30rpx"},borderRadius:{type:[Number,String],default:"16"},headStyle:{type:Object,default:function(){return{}}},bodyStyle:{type:Object,default:function(){return{}}},footStyle:{type:Object,default:function(){return{}}},headBorderBottom:{type:Boolean,default:!0},footBorderTop:{type:Boolean,default:!0},thumb:{type:String,default:""},thumbWidth:{type:[String,Number],default:"60"},thumbCircle:{type:Boolean,default:!1},padding:{type:[String,Number],default:"30"},showHead:{type:Boolean,default:!0},showFoot:{type:Boolean,default:!0},boxShadow:{type:String,default:"none"}},data:function(){return{}},methods:{click:function(){this.$emit("click",this.index)},headClick:function(){this.$emit("head-click",this.index)},bodyClick:function(){this.$emit("body-click",this.index)},footClick:function(){this.$emit("foot-click",this.index)}}};e.default=o},"6c543":function(t,e,a){var o=a("cab0");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("4f06").default;i("2be06c60",o,!0,{sourceMap:!1,shadowMode:!1})},"74ab":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-demo[data-v-daac4f3c]{padding-top:0}.u-card-wrap[data-v-daac4f3c]{background-color:#f3f4f6;padding:1px}.u-body-item[data-v-daac4f3c]{font-size:%?32?%;color:#333;padding:%?20?% %?10?%}.u-body-item uni-image[data-v-daac4f3c]{width:%?120?%;flex:0 0 %?120?%;height:%?120?%;border-radius:%?8?%;margin-left:%?12?%}\n/* 自定义宽度 */[data-v-daac4f3c] .my-el-select{margin-left:15px;width:320px\n /* selecte 框的高度设置,默认是 40px*/\n /* 下面设置右侧按钮居中 */}[data-v-daac4f3c] .my-el-select .el-input__inner{height:30px}[data-v-daac4f3c] .my-el-select .el-input__suffix{top:5px}[data-v-daac4f3c] .my-el-select .el-input__icon{line-height:inherit}[data-v-daac4f3c] .my-el-select .el-input__suffix-inner{display:inline-block}',""]),t.exports=e},"9b2c":function(t,e,a){"use strict";a.r(e);var o=a("f687"),i=a.n(o);for(var r in o)"default"!==r&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},ac09:function(t,e,a){"use strict";a.r(e);var o=a("672e"),i=a("9b2c");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("1412");var n,l=a("f0c5"),s=Object(l["a"])(i["default"],o["b"],o["c"],!1,null,"daac4f3c",null,!1,o["a"],n);e["default"]=s.exports},cab0:function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-card[data-v-cc2ad83a]{position:relative;overflow:hidden;font-size:%?28?%;background-color:#fff;box-sizing:border-box}.u-card-full[data-v-cc2ad83a]{margin-left:0!important;margin-right:0!important;width:100%}.u-card--border[data-v-cc2ad83a]:after{border-radius:%?16?%}.u-card__head--left[data-v-cc2ad83a]{color:#303133}.u-card__head--left__thumb[data-v-cc2ad83a]{margin-right:%?16?%}.u-card__head--left__title[data-v-cc2ad83a]{max-width:%?400?%}.u-card__head--right[data-v-cc2ad83a]{color:#909399;margin-left:%?6?%}.u-card__body[data-v-cc2ad83a]{color:#606266}.u-card__foot[data-v-cc2ad83a]{color:#909399}',""]),t.exports=e},dfd3:function(t,e,a){"use strict";var o=a("6c543"),i=a.n(o);i.a},f687:function(t,e,a){"use strict";var o=a("4ea4");a("4160"),a("d81d"),a("d3b7"),a("e25e"),a("ac1f"),a("25f0"),a("1276"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(a("ade3"));a("96cf");var r=o(a("1da1")),n={data:function(){return{serMonth:"",options:[{value:1,label:"1月"},{value:2,label:"2月"},{value:3,label:"3月"},{value:4,label:"4月"},{value:5,label:"5月"},{value:6,label:"6月"},{value:7,label:"7月"},{value:8,label:"8月"},{value:9,label:"9月"},{value:10,label:"10月"},{value:11,label:"11月"},{value:12,label:"12月"}],buoptions:[],month:[],year:[],keyFrom:{key:"",token:""},dataProcessList:[],dataList:[],key:"",token:"",title:"待提交",subTitle:"查看详情",thumb:"http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg",padding:20,bottomSlot:!0,border:!0,list3:["http://new.hxgk.group/sj/1.png","http://new.hxgk.group/sj/2.png","http://new.hxgk.group/sj/3.png"]}},onLoad:function(t){this.$store.commit("SET_USER_apiPass",2),console.log("option"),console.log(t),console.log("onLoad")},onShow:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log("onShow"),t.getData(),t.getProcessData(),console.log(t.$store.state.userKey);case 4:case"end":return e.stop()}}),e)})))()},created:function(){console.log(this.$store.state.apiPass),this.getYear(),this.getSafetyData(),this.getEnvironmentData(),this.getHealthData(),this.getProductionData(),this.getCraftData(),this.getEquipmentData(),this.getLaborData(),this.getEducateData(),this.getScore()},methods:{changeMonth:function(){this.month=[],this.serMonth=parseInt(this.serMonth),this.month.push(this.serMonth),this.getSafetyData(),this.getEnvironmentData(),this.getHealthData(),this.getProductionData(),this.getCraftData(),this.getEquipmentData(),this.getLaborData(),this.getEducateData(),this.getScore()},getYear:function(){var t=(new Date).getFullYear(),e=(new Date).getMonth();this.year.push(t),this.month.push(e)},getScore:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{rotate:60,show:!0,interval:0},data:[]},yAxis:(0,i.default)({type:"value",min:90},"min",(function(t){return Math.floor(t.min)})),tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],r={year:t.year.map(String),month:t.month},uni.request({url:"http://new.hxgk.group/api/ststic/departmenttranscript",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:r,success:function(e){if(200===e.statusCode){console.log("res.data.data"),console.log(e.data.data),a.xAxis.data=e.data.data.echarsListOrg.xline,a.title.text=e.data.data.echarsListOrg.cylindrical+"份绩效成绩",o=e.data.data.echarsListOrg.cylindricaldata,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"itemStyle",{color:function(t){return"#"+Math.floor(16777215*Math.random()).toString(16)}}),t.$set(e,"label",{show:!0,rotate:70,position:"top",distance:20,verticalAlign:"middle",textStyle:{color:"black",fontSize:10}}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));o[0].data;console.log(o);var i=t.$echarts.init(document.getElementById("scoreEchart"));i.clear(),console.log("safetyEchart"),console.log(a),i.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getEducateData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["11"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log("教育培训缩略图"),console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}],console.log(o);var r=t.$echarts.init(document.getElementById("educate"));r.clear(),console.log("safetyEchart"),console.log(a),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getLaborData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["10"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}],console.log("safetyEchart"),console.log(a);var r=t.$echarts.init(document.getElementById("labor"));r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getEquipmentData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["8"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}];var r=t.$echarts.init(document.getElementById("equipment"));r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getCraftData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["9"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}];var r=t.$echarts.init(document.getElementById("craft"));r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getProductionData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["7"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}],console.log(o);var r=t.$echarts.init(document.getElementById("production"));r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getHealthData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["85"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}],console.log(o);var r=t.$echarts.init(document.getElementById("health"));console.log("safetyEchart"),console.log(a),r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getEnvironmentData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["84"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)}));var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}],console.log(o);var r=t.$echarts.init(document.getElementById("environment"));r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getSafetyData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={title:{text:"",left:"center",textStyle:{fontSize:14,fontWeight:400,align:"center",verticalAlign:"middle"}},xAxis:{type:"category",axisLabel:{show:!0,interval:0},data:[]},yAxis:{type:"value"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},series:[]},o=[],i={targetid:["6"],org:["115","282","116","349","354","126"],year:t.year.map(String),timeattribute:{class:3,time:t.month},AccMethod:[1],analysisangle:1},uni.request({url:"http://new.hxgk.group/api/quant/quantechart",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:i,success:function(e){if(console.log(e),200===e.statusCode){a.xAxis.data=e.data.data.xAxis,a.title.text=e.data.data.legend,o=e.data.data.series,console.log("cylindricaldata"),console.log(o),o.forEach((function(e){t.$set(e,"type","bar"),t.$set(e,"showBackground",!0),t.$set(e,"backgroundStyle",{color:"rgba(180, 180, 180, 0.2)"}),t.$set(e,"formatter",(function(t){for(var e=t.seriesName.split(""),a="",o=0;o<e.length;o++)a+=e[o]+"\n";return a})),a.series.push(e)})),console.log(o);var i=o[0].data;o[0].data=[],o[0].data=[{value:i[0],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#5470C6"}},{value:i[1],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#91CC75"}},{value:i[2],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#FAC858"}},{value:i[3],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#EE6666"}},{value:i[4],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#73C0DE"}},{value:i[5],label:{show:!0,position:"top",color:"black"},itemStyle:{color:"#3BA272"}}];var r=t.$echarts.init(document.getElementById("safety"));console.log("safetyEchart"),console.log(a),r.clear(),r.setOption(a)}}});case 4:case"end":return e.stop()}}),e)})))()},getData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,uni.request({url:"http://new.hxgk.group/api/eval/newqualitative",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},success:function(t){console.log(t),200===t.statusCode&&(a.dataList=t.data.data)}});case 2:case"end":return e.stop()}}),e)})))()},getProcessData:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,uni.request({url:"http://new.hxgk.group/api/eval/seeflowlog",method:"POST",header:{"content-type":"application/json","user-key":t.keyFrom.key,"user-token":t.keyFrom.token},data:{isset:2,page:1,pagesize:1e6,state:0},success:function(t){console.log(t),200===t.statusCode&&(a.dataProcessList=t.data.data.list)}});case 2:case"end":return e.stop()}}),e)})))()},thumbChange:function(t){this.thumb=0==t?"http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg":""},paddingChange:function(t){this.padding=[20,30,40][t]},bottomChange:function(t){this.bottomSlot=!t},borderChange:function(t){this.border=!t},click:function(t){console.log(t)},headClick:function(t){uni.switchTab({url:"/pages/task/index"})},headClick1:function(t){uni.switchTab({url:"/pages/approval/index"})},toRen:function(){uni.switchTab({url:"/pages/task/index"})},toShen:function(){uni.switchTab({url:"/pages/approval/index"})},toMy:function(){uni.switchTab({url:"/pages/personal/index"})}}};e.default=n},ffc2:function(t,e,a){"use strict";var o;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-card",class:{"u-border":t.border,"u-card-full":t.full,"u-card--border":t.borderRadius>0},style:{borderRadius:t.borderRadius+"rpx",margin:t.margin,boxShadow:t.boxShadow},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t.showHead?a("v-uni-view",{staticClass:"u-card__head",class:{"u-border-bottom":t.headBorderBottom},style:[{padding:t.padding+"rpx"},t.headStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.headClick.apply(void 0,arguments)}}},[t.$slots.head?t._t("head"):a("v-uni-view",{staticClass:"u-flex u-row-between"},[t.title?a("v-uni-view",{staticClass:"u-card__head--left u-flex u-line-1"},[t.thumb?a("v-uni-image",{staticClass:"u-card__head--left__thumb",style:{height:t.thumbWidth+"rpx",width:t.thumbWidth+"rpx",borderRadius:t.thumbCircle?"100rpx":"6rpx"},attrs:{src:t.thumb,mode:"aspectfull"}}):t._e(),a("v-uni-text",{staticClass:"u-card__head--left__title u-line-1",style:{fontSize:t.titleSize+"rpx",color:t.titleColor}},[t._v(t._s(t.title))])],1):t._e(),t.subTitle?a("v-uni-view",{staticClass:"u-card__head--right u-line-1"},[a("v-uni-text",{staticClass:"u-card__head__title__text",style:{fontSize:t.subTitleSize+"rpx",color:t.subTitleColor}},[t._v(t._s(t.subTitle))])],1):t._e()],1)],2):t._e(),a("v-uni-view",{staticClass:"u-card__body",style:[{padding:t.padding+"rpx"},t.bodyStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bodyClick.apply(void 0,arguments)}}},[t._t("body")],2),t.showFoot?a("v-uni-view",{staticClass:"u-card__foot",class:{"u-border-top":t.footBorderTop},style:[{padding:t.$slots.foot?t.padding+"rpx":0},t.footStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.footClick.apply(void 0,arguments)}}},[t._t("foot")],2):t._e()],1)},r=[]}}]);