@ -411,49 +411,39 @@ var Page = function Page(_ref3) {
// itemWidth: 22,
// itemHeight: 6,
// },
dataZoom : [
// 滚动条
{
start : 0 ,
//默认为0
end : 100 - 1500 / 31 ,
//默认为100
type : 'slider' ,
show : false ,
xAxisIndex : [ 0 ] ,
handleSize : 0 ,
//滑动条的 左右2个滑动条的大小
height : 0 ,
//组件高度
left : '10%' ,
//左边的距离
right : '10%' ,
//右边的距离
bottom : 26 ,
//右边的距离
// borderColor: "#000",
// fillerColor: '#269cdb',
//borderRadius:5,
//backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色
showDataShadow : false ,
//是否显示数据阴影 默认auto
showDetail : false ,
//即拖拽时候是否显示详细数值信息 默认true
realtime : true ,
//是否实时更新
filterMode : 'filter' ,
zoomLock : true
} ,
// 拖动内容
{
type : 'inside' ,
show : true ,
xAxisIndex : [ 0 ] ,
start : 0 ,
//默认为1
end : 100 - 1500 / 31 //默认为100
// zoomLock:true,
} ] ,
// dataZoom: [
// // 滚动条
// {
// start:0,//默认为0
// end: 100-1500/31,//默认为100
// type: 'slider',
// show: false,
// xAxisIndex: [0],
// handleSize: 0,//滑动条的 左右2个滑动条的大小
// height: 0,//组件高度
// left: '10%', //左边的距离
// right: '10%',//右边的距离
// bottom: 26,//右边的距离
// // borderColor: "#000",
// // fillerColor: '#269cdb',
// //borderRadius:5,
// //backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色
// showDataShadow: false,//是否显示数据阴影 默认auto
// showDetail: false,//即拖拽时候是否显示详细数值信息 默认true
// realtime:true, //是否实时更新
// filterMode: 'filter',
// zoomLock:true,
// },
// // 拖动内容
// {
// type: 'inside',
// show: true,
// xAxisIndex: [0],
// start: 0,//默认为1
// end: 100-1500/31,//默认为100
// // zoomLock:true,
// },
// ],
grid : {
right : 0 ,
bottom : "10%"
@ -525,28 +515,28 @@ var Page = function Page(_ref3) {
} ;
} ;
var transXAxis = function transXAxis ( ) {
var _StatInfo$Clearance4 , _StatInfo$Clearance5 , _StatInfo$Clearance6 , _StatInfo$Clearance7 , _StatInfo$Clearance8 , _StatInfo$Clearance9 ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clea ranc e4 = S tatInfo. Clearance ) === n ull || _StatInfo$Clea ra nce4 === void 0 ? void 0 : _StatInfo$Clearance4. time _type ) == 1 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance 5 = StatInfo . Clearance ) === null || _StatInfo$Clearance 5 === void 0 || ( _StatInfo$Clearance5 = _StatInfo$Clearance5 . times ) === null || _StatInfo$Clearance5 === void 0 ? void 0 : _StatInfo$Clearance 5 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u5929" ) ;
} ) ) || [ ] ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance6 = StatInfo . Clearance ) === null || _StatInfo$Clearance6 === void 0 ? void 0 : _StatInfo$Clearance6 . time _type ) == 2 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance7 = StatInfo . Clearance ) === null || _StatInfo$Clearance7 === void 0 || ( _StatInfo$Clearance7 = _StatInfo$Clearance7 . times ) === null || _StatInfo$Clearance7 === void 0 ? void 0 : _StatInfo$Clearance7 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u5468" ) ;
} ) ) || [ ] ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance8 = StatInfo . Clearance ) === null || _StatInfo$Clearance8 === void 0 ? void 0 : _StatInfo$Clearance8 . time _type ) == 3 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance9 = StatInfo . Clearance ) === null || _StatInfo$Clearance9 === void 0 || ( _StatInfo$Clearance9 = _StatInfo$Clearance9 . times ) === null || _StatInfo$Clearance9 === void 0 ? void 0 : _StatInfo$Clearance9 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u6708" ) ;
} ) ) || [ ] ;
var _StatInfo$Clearance4 ;
return StatInfo === null || StatInfo === void 0 || ( _StatInfo$Clearance 4 = StatInfo . Clearance ) === null || _StatInfo$Clearance 4 === void 0 || ( _StatInfo$Clearance4 = _StatInfo$Clearance4 . times ) === null || _StatInfo$Clearance4 === void 0 ? void 0 : _StatInfo$Clearance 4 . map ( function ( item ) {
return item ;
} ) ;
// if (StatInfo?.Clearance?.time_type == 1)
// return StatInfo?.Clearance?.times?.map((item: any) => `第${item}天`) || []
// if (StatInfo?.Clearance?.time_type == 2)
// return StatInfo?.Clearance?.times?.map((item: any) => `第${item}周`) || []
// if (StatInfo?.Clearance?.time_type == 3)
// return StatInfo?.Clearance?.times?.map((item: any) => `第${item}月`) || []
} ;
var transXAxis2 = function transXAxis2 ( ) {
var _StatInfo$Evaluation , _StatInfo$Evaluation2 , _StatInfo$Evaluation3 , _StatInfo$Evaluation4 , _StatInfo$Evaluation5 , _StatInfo$Evaluation6 ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation = StatInfo . Evaluation ) === null || _StatInfo$Evaluation === void 0 ? void 0 : _StatInfo$Evaluation . time _type ) == 1 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation 2 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation 2 === void 0 || ( _StatInfo$Evaluation 2 = _StatInfo$Evaluation 2 . times ) === null || _StatInfo$Evaluation 2 === void 0 ? void 0 : _StatInfo$Evaluation 2 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u5929" ) ;
} ) ) || [ ] ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation3 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation3 === void 0 ? void 0 : _StatInfo$Evaluation3 . time _type ) == 2 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation4 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation4 === void 0 || ( _StatInfo$Evaluation4 = _StatInfo$Evaluation4 . times ) === null || _StatInfo$Evaluation4 === void 0 ? void 0 : _StatInfo$Evaluation4 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u5468" ) ;
} ) ) || [ ] ;
if ( ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation5 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation5 === void 0 ? void 0 : _StatInfo$Evaluation5 . time _type ) == 3 ) return ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation6 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation6 === void 0 || ( _StatInfo$Evaluation6 = _StatInfo$Evaluation6 . times ) === null || _StatInfo$Evaluation6 === void 0 ? void 0 : _StatInfo$Evaluation6 . map ( function ( item ) {
return "\u7B2C" . concat ( item , "\u6708" ) ;
} ) ) || [ ] ;
var _StatInfo$Evaluation ;
return StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation = StatInfo . Evaluation ) === null || _StatInfo$Evaluation === void 0 || ( _StatInfo$Evaluation = _StatInfo$Evaluation . times ) === null || _StatInfo$Evaluation === void 0 ? void 0 : _StatInfo$Evaluation . map ( function ( item ) {
return item ;
} ) ;
// if (StatInfo?.Evaluation?.time_type == 1)
// return StatInfo?.Evaluation?.times?.map((item: any) => `第${item}天`) || []
// if (StatInfo?.Evaluation?.time_type == 2)
// return StatInfo?.Evaluation?.times?.map((item: any) => `第${item}周`) || []
// if (StatInfo?.Evaluation?.time_type == 3)
// return StatInfo?.Evaluation?.times?.map((item: any) => `第${item}月`) || []
} ;
var hanleItemDiffOption = function hanleItemDiffOption ( ) {
// 实践项目难度分布
@ -672,7 +662,7 @@ var Page = function Page(_ref3) {
} ;
} ;
var hanleEvaluationOption = function hanleEvaluationOption ( ) {
var _StatInfo$Evaluation 7 ;
var _StatInfo$Evaluation 2 ;
// 评测次数统计
return {
// title: [
@ -706,49 +696,39 @@ var Page = function Page(_ref3) {
right : 0 ,
bottom : "10%"
} ,
dataZoom : [
// 滚动条
{
start : 0 ,
//默认为0
end : 100 - 1500 / 31 ,
//默认为100
type : 'slider' ,
show : false ,
xAxisIndex : [ 0 ] ,
handleSize : 0 ,
//滑动条的 左右2个滑动条的大小
height : 0 ,
//组件高度
left : '10%' ,
//左边的距离
right : '10%' ,
//右边的距离
bottom : 26 ,
//右边的距离
// borderColor: "#000",
// fillerColor: '#269cdb',
//borderRadius:5,
//backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色
showDataShadow : false ,
//是否显示数据阴影 默认auto
showDetail : false ,
//即拖拽时候是否显示详细数值信息 默认true
realtime : true ,
//是否实时更新
filterMode : 'filter' ,
zoomLock : true
} ,
// 拖动内容
{
type : 'inside' ,
show : true ,
xAxisIndex : [ 0 ] ,
start : 0 ,
//默认为1
end : 100 - 1500 / 31 //默认为100
// zoomLock:true,
} ] ,
// dataZoom: [
// // 滚动条
// {
// start:0,//默认为0
// end: 100-1500/31,//默认为100
// type: 'slider',
// show: false,
// xAxisIndex: [0],
// handleSize: 0,//滑动条的 左右2个滑动条的大小
// height: 0,//组件高度
// left: '10%', //左边的距离
// right: '10%',//右边的距离
// bottom: 26,//右边的距离
// // borderColor: "#000",
// // fillerColor: '#269cdb',
// //borderRadius:5,
// //backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色
// showDataShadow: false,//是否显示数据阴影 默认auto
// showDetail: false,//即拖拽时候是否显示详细数值信息 默认true
// realtime:true, //是否实时更新
// filterMode: 'filter',
// zoomLock:true,
// },
// // 拖动内容
// {
// type: 'inside',
// show: true,
// xAxisIndex: [0],
// start: 0,//默认为1
// end: 100-1500/31,//默认为100
// // zoomLock:true,
// },
// ],
xAxis : {
type : 'category' ,
data : transXAxis2 ( ) ,
@ -796,7 +776,7 @@ var Page = function Page(_ref3) {
name : '评测次数' ,
type : 'line' ,
stack : 'Total' ,
data : ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation 7 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation 7 === void 0 ? void 0 : _StatInfo$Evaluation 7 . nums ) || [ ] ,
data : ( StatInfo === null || StatInfo === void 0 || ( _StatInfo$Evaluation 2 = StatInfo . Evaluation ) === null || _StatInfo$Evaluation 2 === void 0 ? void 0 : _StatInfo$Evaluation 2 . nums ) || [ ] ,
areaStyle : { } ,
color : {
type : 'linear' ,
@ -1150,7 +1130,7 @@ var Page = function Page(_ref3) {
style : {
width : 99
} ,
defaultV alue: picker ,
v alue: picker ,
onChange : function onChange ( key ) {
setPicker ( key ) ;
if ( key == 'year' ) {
@ -1176,6 +1156,9 @@ var Page = function Page(_ref3) {
getStatData ( ) ;
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
value : "all" ,
children : "\u81EA\u5B9A\u4E49"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
value : "year" ,
children : "\u672C\u5E74"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
@ -1191,13 +1174,14 @@ var Page = function Page(_ref3) {
} ,
allowClear : false ,
defaultValue : [ dayjs _min _default ( ) ( defauleDate . start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( defauleDate . end _time , 'YYYY-MM-DD' ) ] ,
value : [ dayjs _min _default ( ) ( defauleDate . start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( defauleDate . end _time , 'YYYY-MM-DD' ) ] ,
value : [ dayjs _min _default ( ) ( statParams . start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( statParams . end _time , 'YYYY-MM-DD' ) ] ,
format : 'YYYY-MM-DD' ,
onChange : function onChange ( date , dateString ) {
console . log ( dateString ) ;
statParams . start _time = dateString [ 0 ] ;
statParams . end _time = dateString [ 1 ] ;
setStatParams ( objectSpread2 _default ( ) ( { } , statParams ) ) ;
setPicker ( "all" ) ;
getStatData ( ) ;
}
} ) ]
@ -1241,7 +1225,7 @@ var Page = function Page(_ref3) {
style : {
width : 99
} ,
defaultV alue: picker2 ,
v alue: picker2 ,
onChange : function onChange ( key ) {
setPicker2 ( key ) ;
if ( key == 'year' ) {
@ -1267,6 +1251,9 @@ var Page = function Page(_ref3) {
getStatData2 ( ) ;
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
value : "all" ,
children : "\u81EA\u5B9A\u4E49"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
value : "year" ,
children : "\u672C\u5E74"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( Option , {
@ -1282,13 +1269,14 @@ var Page = function Page(_ref3) {
} ,
allowClear : false ,
defaultValue : [ dayjs _min _default ( ) ( defauleDate2 . start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( defauleDate2 . end _time , 'YYYY-MM-DD' ) ] ,
value : [ dayjs _min _default ( ) ( defauleDate 2. start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( defauleDate 2. end _time , 'YYYY-MM-DD' ) ] ,
value : [ dayjs _min _default ( ) ( statParams 2. start _time , 'YYYY-MM-DD' ) , dayjs _min _default ( ) ( statParams 2. end _time , 'YYYY-MM-DD' ) ] ,
format : 'YYYY-MM-DD' ,
onChange : function onChange ( date , dateString ) {
console . log ( dateString ) ;
statParams2 . start _time = dateString [ 0 ] ;
statParams2 . end _time = dateString [ 1 ] ;
setStatParams2 ( objectSpread2 _default ( ) ( { } , statParams2 ) ) ;
setPicker2 ( "all" ) ;
getStatData2 ( ) ;
}
} ) ]