Commit 1840b102 authored by baixian's avatar baixian

bug修改

parent 884f70c9
......@@ -44,7 +44,9 @@ export default {
editLoading: false,
materialVisible: false,
materialVisible2: false,
courseChartData: {},
courseChartData: {
visitor_count: [0, 0, 0, 0, 0, 0, 0],
},
coursewareInfo: {},
queryParams: {
type: '',
......@@ -915,7 +917,9 @@ export default {
editLoading: false,
materialVisible: false,
materialVisible2: false,
courseChartData: {},
courseChartData: {
visitor_count: [0, 0, 0, 0, 0, 0, 0],
},
coursewareInfo: {},
queryParams: {
type: '',
......
......@@ -89,6 +89,12 @@
}
.listitem {
position: relative;
cursor: pointer;
&:hover {
transform: scale(1.05);
transform-origin: center;
transition: transform .3s ease-in-out;
}
}
.notpublishicon {
bottom: 28px;
......
......@@ -318,7 +318,7 @@ class CourseDetailForm extends React.Component {
initialValue: addCourseObj.study_count,
rules: [
{
required: false,
required: true,
message: '请输入正整数',
pattern: new RegExp(/^[1-9]\d*$/, 'g'),
},
......
.box {
&:hover {
transform: scale(1.04);
transform-origin: center;
transition: transform .3s ease-in-out;
}
overflow: hidden;
//width: 455px;
height: 125px;
......
......@@ -386,7 +386,7 @@ class CourseDetailForm extends React.Component {
initialValue: addCourseObj.study_count,
rules: [
{
required: false,
required: true,
message: '请输入正整数',
pattern: new RegExp(/^[1-9]\d*$/, 'g'),
},
......
......@@ -55,7 +55,7 @@ class StaticBox extends React.Component {
tickCount: 10,
},
};
const courseChart = courseChartData;
const courseChart = { ...courseChartData };
const dataChart = [];
const month = courseChart.dates || [];
const visitorCount = courseChart.visitor_count || [];
......
......@@ -59,7 +59,7 @@
position: absolute;
right: 0;
color: #c2c2c2;
top: 0;
top: -3px;
cursor: pointer;
}
.deleteIcon:hover {
......@@ -90,10 +90,20 @@
}
.listitem {
position: relative;
:global {
.ant-card {
cursor: pointer;
}
.ant-card:hover {
transform: scale(1.05);
transform-origin: center;
transition: transform .3s ease-in-out;
}
}
}
.notpublishicon {
bottom: 28px;
right: 44px;
bottom: 27px;
right: 4px;
width: 71px;
height: 44px;
position: absolute;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment