@@ -174,6 +306,7 @@ class FullScreen extends React.Component {
mediaList,
announcementList,
currentMediaIndex,
+ trainingData,
} = this.state;
return (
@@ -237,6 +370,7 @@ class FullScreen extends React.Component {
currentMediaIndex={currentMediaIndex}
onCarouselChange={this.handleCarouselChange}
onDotClick={this.handleDotClick}
+ trainingData={trainingData} // 新增传递
/>
) : (
this.renderOtherTabContent()
diff --git a/src/layout/fullinter.less b/src/layout/fullinter.less
index 0e7a020..7905938 100644
--- a/src/layout/fullinter.less
+++ b/src/layout/fullinter.less
@@ -590,3 +590,86 @@
height: 100%;
}
}
+// fullinter.less - 在文件末尾添加以下样式
+
+// ========== TrainingContent 组件样式 ==========
+.trainingContentWrapper {
+ flex: 1;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ padding: 0 10px 10px 10px;
+ box-sizing: border-box;
+}
+
+.trainingGrid {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.trainingRow {
+ flex: 1;
+ display: flex;
+ gap: 10px;
+ min-height: 0;
+}
+
+.trainingCard {
+ flex: 1;
+ min-width: 0; // 防止内容溢出
+ background-color: #fff;
+ border-radius: 8px;
+ overflow: hidden;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
+ transition: box-shadow 0.3s ease;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+
+ position: relative;
+ overflow: hidden;
+
+ &:hover {
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
+ }
+}
+
+.trainingChartContainer {
+ width: 100%;
+ height: 100%;
+ min-height: 0;
+}
+// 月份选择器样式
+.monthSelectorWrapper {
+ position: absolute;
+ top: 15px;
+ left: 20px;
+ z-index: 10;
+ display: flex;
+ align-items: center;
+ background: rgba(255, 255, 255, 0.9);
+ padding: 4px 12px;
+ border-radius: 20px;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+}
+
+.monthSelectorLabel {
+ font-size: 13px;
+ color: #333;
+ margin-right: 8px;
+ font-weight: 500;
+}
+
+.monthSelect {
+ .ant-select-selector {
+ border-radius: 16px !important;
+ border-color: #4285f4 !important;
+
+ &:hover {
+ border-color: #66bb6a !important;
+ }
+ }
+}