From d94b2b7086914bdb639507e8fc1cc212aefc3524 Mon Sep 17 00:00:00 2001 From: eduauto Date: Fri, 5 Jan 2024 11:13:19 +0800 Subject: [PATCH] autoUpdataFile --- p__Classrooms__Overview__index.async.js | 110 ++++++------ p__Paths__Overview__index.async.js | 103 ++++++------ p__Shixuns__Overview__index.async.js | 212 +++++++++++------------- 3 files changed, 200 insertions(+), 225 deletions(-) diff --git a/p__Classrooms__Overview__index.async.js b/p__Classrooms__Overview__index.async.js index 1093401c6b..6a3d63eca6 100644 --- a/p__Classrooms__Overview__index.async.js +++ b/p__Classrooms__Overview__index.async.js @@ -564,49 +564,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: transXAxis(), @@ -674,16 +664,16 @@ var Page = function Page(_ref3) { }; }; var transXAxis = function transXAxis() { - var _StatInfo$times, _StatInfo$times2, _StatInfo$times3; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 1) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times = StatInfo.times) === null || _StatInfo$times === void 0 ? void 0 : _StatInfo$times.map(function (item) { - return "\u7B2C".concat(item, "\u5929"); - })) || []; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 2) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times2 = StatInfo.times) === null || _StatInfo$times2 === void 0 ? void 0 : _StatInfo$times2.map(function (item) { - return "\u7B2C".concat(item, "\u5468"); - })) || []; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 3) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times3 = StatInfo.times) === null || _StatInfo$times3 === void 0 ? void 0 : _StatInfo$times3.map(function (item) { - return "\u7B2C".concat(item, "\u6708"); - })) || []; + var _StatInfo$times; + return StatInfo === null || StatInfo === void 0 || (_StatInfo$times = StatInfo.times) === null || _StatInfo$times === void 0 ? void 0 : _StatInfo$times.map(function (item) { + return item; + }); + // if (StatInfo?.time_type == 1) + // return StatInfo?.times?.map((item: any) => `第${item}天`) || [] + // if (StatInfo?.time_type == 2) + // return StatInfo?.times?.map((item: any) => `第${item}周`) || [] + // if (StatInfo?.time_type == 3) + // return StatInfo?.times?.map((item: any) => `第${item}月`) || [] }; var seriesName = function seriesName() { switch (statParams.data_type) { @@ -1035,7 +1025,7 @@ var Page = function Page(_ref3) { style: { width: 99 }, - defaultValue: picker, + value: picker, onChange: function onChange(key) { setPicker(key); if (key == 'year') { @@ -1061,6 +1051,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, { @@ -1076,13 +1069,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(); } })] @@ -1183,7 +1177,7 @@ var Page = function Page(_ref3) { className: "".concat(Overviewmodules.DivInit, " ").concat(Overviewmodules.PopularityChart), children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { - color: "#995B0B", + color: "#ffffff", letterSpacing: "2px", fontWeight: "bold" }, @@ -1195,7 +1189,7 @@ var Page = function Page(_ref3) { className: "".concat(Overviewmodules.DivInit, " ").concat(Overviewmodules.HotChart), children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { - color: "#905043", + color: "#ffffff", letterSpacing: "2px", fontWeight: "bold" }, @@ -1207,7 +1201,7 @@ var Page = function Page(_ref3) { className: "".concat(Overviewmodules.DivInit, " ").concat(Overviewmodules.ClassChart), children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { - color: "#5B6D9B", + color: "#ffffff", letterSpacing: "2px", fontWeight: "bold" }, diff --git a/p__Paths__Overview__index.async.js b/p__Paths__Overview__index.async.js index d3341c2491..f811260450 100644 --- a/p__Paths__Overview__index.async.js +++ b/p__Paths__Overview__index.async.js @@ -706,49 +706,38 @@ var Page = function Page(_ref) { bottom: "10%", left: "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: 1000 ,//默认为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: 1000 ,//默认为100 + // }, + // ], xAxis: { type: 'category', data: transXAxis(), @@ -816,16 +805,16 @@ var Page = function Page(_ref) { }; }; var transXAxis = function transXAxis() { - var _StatInfo$times, _StatInfo$times2, _StatInfo$times3; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 1) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times = StatInfo.times) === null || _StatInfo$times === void 0 ? void 0 : _StatInfo$times.map(function (item) { - return "\u7B2C".concat(item, "\u5929"); - })) || []; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 2) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times2 = StatInfo.times) === null || _StatInfo$times2 === void 0 ? void 0 : _StatInfo$times2.map(function (item) { - return "\u7B2C".concat(item, "\u5468"); - })) || []; - if ((StatInfo === null || StatInfo === void 0 ? void 0 : StatInfo.time_type) == 3) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$times3 = StatInfo.times) === null || _StatInfo$times3 === void 0 ? void 0 : _StatInfo$times3.map(function (item) { - return "\u7B2C".concat(item, "\u6708"); - })) || []; + var _StatInfo$times; + return StatInfo === null || StatInfo === void 0 || (_StatInfo$times = StatInfo.times) === null || _StatInfo$times === void 0 ? void 0 : _StatInfo$times.map(function (item) { + return item; + }); + // if (StatInfo?.time_type == 1) + // return StatInfo?.times?.map((item: any) => `第${item}天`) || [] + // if (StatInfo?.time_type == 2) + // return StatInfo?.times?.map((item: any) => `第${item}周`) || [] + // if (StatInfo?.time_type == 3) + // return StatInfo?.times?.map((item: any) => `第${item}月`) || [] }; (0,_react_17_0_2_react.useEffect)(function () { (0,util/* setDocumentTitle */.Dk)("实践课程概览"); @@ -1101,7 +1090,7 @@ var Page = function Page(_ref) { style: { width: 99 }, - defaultValue: picker, + value: picker, onChange: function onChange(key) { setPicker(key); if (key == 'year') { @@ -1127,6 +1116,9 @@ var Page = function Page(_ref) { 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, { @@ -1142,13 +1134,14 @@ var Page = function Page(_ref) { }, 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(); } })] diff --git a/p__Shixuns__Overview__index.async.js b/p__Shixuns__Overview__index.async.js index cf53639bb6..9069dbb7f3 100644 --- a/p__Shixuns__Overview__index.async.js +++ b/p__Shixuns__Overview__index.async.js @@ -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$Clearance4 = StatInfo.Clearance) === null || _StatInfo$Clearance4 === void 0 ? void 0 : _StatInfo$Clearance4.time_type) == 1) return (StatInfo === null || StatInfo === void 0 || (_StatInfo$Clearance5 = StatInfo.Clearance) === null || _StatInfo$Clearance5 === void 0 || (_StatInfo$Clearance5 = _StatInfo$Clearance5.times) === null || _StatInfo$Clearance5 === void 0 ? void 0 : _StatInfo$Clearance5.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$Clearance4 = StatInfo.Clearance) === null || _StatInfo$Clearance4 === void 0 || (_StatInfo$Clearance4 = _StatInfo$Clearance4.times) === null || _StatInfo$Clearance4 === void 0 ? void 0 : _StatInfo$Clearance4.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$Evaluation2 = StatInfo.Evaluation) === null || _StatInfo$Evaluation2 === void 0 || (_StatInfo$Evaluation2 = _StatInfo$Evaluation2.times) === null || _StatInfo$Evaluation2 === void 0 ? void 0 : _StatInfo$Evaluation2.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$Evaluation7; + var _StatInfo$Evaluation2; // 评测次数统计 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$Evaluation7 = StatInfo.Evaluation) === null || _StatInfo$Evaluation7 === void 0 ? void 0 : _StatInfo$Evaluation7.nums) || [], + data: (StatInfo === null || StatInfo === void 0 || (_StatInfo$Evaluation2 = StatInfo.Evaluation) === null || _StatInfo$Evaluation2 === void 0 ? void 0 : _StatInfo$Evaluation2.nums) || [], areaStyle: {}, color: { type: 'linear', @@ -1150,7 +1130,7 @@ var Page = function Page(_ref3) { style: { width: 99 }, - defaultValue: picker, + value: 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 }, - defaultValue: picker2, + value: 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()(defauleDate2.start_time, 'YYYY-MM-DD'), dayjs_min_default()(defauleDate2.end_time, 'YYYY-MM-DD')], + value: [dayjs_min_default()(statParams2.start_time, 'YYYY-MM-DD'), dayjs_min_default()(statParams2.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(); } })]