Commit 1402a09b by guomingpang

fix:merge hotfix/hotfix/pangguoming/20210601/plan_list_add_cover to master

parents 5bd610bd e340da37
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Last Modified by: chenshu * @Last Modified by: chenshu
* @Last Modified time: 2020-08-31 14:55:30 * @Last Modified time: 2020-08-31 14:55:30
*/ */
@import "./variables.less"; @import './variables.less';
@active-color: #2966ff; @active-color: #2966ff;
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
} }
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
font-weight: 500!important; font-weight: 500 !important;
} }
.ant-tabs-nav .ant-tabs-tab-active { .ant-tabs-nav .ant-tabs-tab-active {
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
//display: none!important; //display: none!important;
&:after { &:after {
content: ""; content: '';
display: inline-block; display: inline-block;
position: absolute; position: absolute;
width: 30px; width: 30px;
...@@ -660,8 +660,8 @@ td.ant-table-column-sort { ...@@ -660,8 +660,8 @@ td.ant-table-column-sort {
background-color: #2966ff !important; background-color: #2966ff !important;
opacity: 0.8 !important; opacity: 0.8 !important;
} }
&:active{ &:active {
background-color:#5C8AFF !important; background-color: #5c8aff !important;
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
left: 0px; left: 0px;
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index:3; z-index: 3;
background-color: #fff; background-color: #fff;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
bottom: 0; bottom: 0;
z-index: 102; z-index: 102;
overflow: auto; overflow: auto;
margin:0 16px; margin: 0 16px;
.box{ .box {
&:first-child{ &:first-child {
margin-bottom: 8px; margin-bottom: 8px;
} }
&:last-child{ &:last-child {
margin-bottom: 16px; margin-bottom: 16px;
} }
} }
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
.content-header { .content-header {
padding: 16px 16px 8px 16px; padding: 16px 16px 8px 16px;
line-height: 30px; line-height: 30px;
font-size:24px; font-size: 24px;
color:#333; color: #333;
font-weight:bold; font-weight: bold;
background: #FFF; background: #fff;
h1 { h1 {
font-weight: normal; font-weight: normal;
display: inline-block; display: inline-block;
......
...@@ -450,7 +450,7 @@ class VideoCourseList extends React.Component { ...@@ -450,7 +450,7 @@ class VideoCourseList extends React.Component {
}, },
() => { () => {
this.props.onChange(); this.props.onChange();
}, }
); );
}; };
render() { render() {
......
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
background: #fff; background: #fff;
width: ~'calc(50% - 8px)'; width: ~'calc(50% - 8px)';
padding: 16px; padding: 16px;
overflow: hidden;
.study-title { .study-title {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
......
import React from 'react';
import React from 'react' import KnowledgeBaseFilter from './components/KnowledgeBaseFilter';
import KnowledgeBaseOpt from './components/KnowledgeBaseOpt';
import KnowledgeBaseList from './components/KnowledgeBaseList';
import Classification from './components/Classification';
import KnowledgeBaseFilter from './components/KnowledgeBaseFilter' import KnowledgeAPI from '@/data-source/knowledge/request-api';
import KnowledgeBaseOpt from './components/KnowledgeBaseOpt' import User from '@/common/js/user';
import KnowledgeBaseList from './components/KnowledgeBaseList'
import Classification from './components/Classification'
import KnowledgeAPI from '@/data-source/knowledge/request-api'
import User from '@/common/js/user'
export default class KnowledgeBase extends React.Component { export default class KnowledgeBase extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props);
this.state = { this.state = {
query: { query: {
size: 10, size: 10,
...@@ -23,51 +22,51 @@ export default class KnowledgeBase extends React.Component { ...@@ -23,51 +22,51 @@ export default class KnowledgeBase extends React.Component {
totalCount: 0, // 知识库数据总条数 totalCount: 0, // 知识库数据总条数
categoryId: '0', categoryId: '0',
updateCategoryFlag: false, updateCategoryFlag: false,
} };
} }
componentWillMount() { componentWillMount() {
// 获取知识库列表 // 获取知识库列表
this.handleFetchScheduleList() this.handleFetchScheduleList();
// this.getCategoryTree() // this.getCategoryTree()
} }
getSelectedCategoryId = (categoryId) => { getSelectedCategoryId = (categoryId) => {
this.setState({ this.setState({
categoryId, categoryId,
}) });
this.handleFetchScheduleList({ categoryId, current: 1 }) this.handleFetchScheduleList({ categoryId, current: 1 });
} };
// 更新分类树 // 更新分类树
updateCategoryTree = () => { updateCategoryTree = () => {
this.setState({ this.setState({
updateCategoryFlag: !this.state.updateCategoryFlag, updateCategoryFlag: !this.state.updateCategoryFlag,
}) });
} };
// 获取知识库列表 // 获取知识库列表
handleFetchScheduleList = (_query = {}, flag = true) => { handleFetchScheduleList = (_query = {}, flag = true) => {
const query = { const query = {
...this.state.query, ...this.state.query,
..._query, ..._query,
} };
// 更新请求参数 // 更新请求参数
this.setState({ query }) this.setState({ query });
flag && flag &&
KnowledgeAPI.queryPageKnowledgeForManager(query).then((res) => { KnowledgeAPI.queryPageKnowledgeForManager(query).then((res) => {
// KnowledgeAPI.videoSchedulePage(query).then((res) => { // KnowledgeAPI.videoSchedulePage(query).then((res) => {
const { result = {} } = res || {} const { result = {} } = res || {};
const { records = [], total = 0 } = result const { records = [], total = 0 } = result;
this.setState({ this.setState({
dataSource: records, dataSource: records,
totalCount: Number(total), totalCount: Number(total),
}) });
}) });
} };
render() { render() {
const { dataSource, totalCount, query, categoryId, updateCategoryFlag } = this.state const { dataSource, totalCount, query, categoryId, updateCategoryFlag } = this.state;
return ( return (
<div className='page'> <div className='page'>
<div className='content-header'>知识库</div> <div className='content-header'>知识库</div>
...@@ -77,11 +76,8 @@ export default class KnowledgeBase extends React.Component { ...@@ -77,11 +76,8 @@ export default class KnowledgeBase extends React.Component {
<div className='left' style={{ width: 245 }}> <div className='left' style={{ width: 245 }}>
<Classification updateCategoryFlag={updateCategoryFlag} categoryId={categoryId} getSelectedCategoryId={this.getSelectedCategoryId} /> <Classification updateCategoryFlag={updateCategoryFlag} categoryId={categoryId} getSelectedCategoryId={this.getSelectedCategoryId} />
</div> </div>
<div <div className='liner' style={{ backgroundColor: 'rgb(238, 238, 238)', width: 0.5, margin: '1px 16px 1px 2px' }}></div>
className="liner" <div className='right' style={{ width: 'calc(100% - 265px)' }}>
style={{ backgroundColor: "rgb(238, 238, 238)", width: 0.5, margin: "1px 16px 1px 2px" }}
></div>
<div className="right" style={{ width: "calc(100% - 265px)" }}>
<KnowledgeBaseFilter onChange={this.handleFetchScheduleList} /> <KnowledgeBaseFilter onChange={this.handleFetchScheduleList} />
{/* 操作模块 */} {/* 操作模块 */}
...@@ -101,6 +97,6 @@ export default class KnowledgeBase extends React.Component { ...@@ -101,6 +97,6 @@ export default class KnowledgeBase extends React.Component {
</div> </div>
</div> </div>
</div> </div>
) );
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: zangsuyun * @Author: zangsuyun
* @Date: 2021-03-13 09:54:26 * @Date: 2021-03-13 09:54:26
* @LastEditors: fusanqiasng * @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-31 18:23:28 * @LastEditTime: 2021-06-01 10:26:46
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -258,7 +258,7 @@ class AddCourse extends React.Component { ...@@ -258,7 +258,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchLiveList(); this.handleFetchLiveList();
}, }
); );
}; };
...@@ -272,7 +272,7 @@ class AddCourse extends React.Component { ...@@ -272,7 +272,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchVideoList(); this.handleFetchVideoList();
}, }
); );
}; };
...@@ -286,7 +286,7 @@ class AddCourse extends React.Component { ...@@ -286,7 +286,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchPictureList(); this.handleFetchPictureList();
}, }
); );
}; };
...@@ -593,7 +593,7 @@ class AddCourse extends React.Component { ...@@ -593,7 +593,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchVideoList(); this.handleFetchVideoList();
}, }
); );
}; };
...@@ -615,7 +615,7 @@ class AddCourse extends React.Component { ...@@ -615,7 +615,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchLiveList(); this.handleFetchLiveList();
}, }
); );
}; };
...@@ -629,7 +629,7 @@ class AddCourse extends React.Component { ...@@ -629,7 +629,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchPictureList(); this.handleFetchPictureList();
}, }
); );
}; };
handAddCourse = () => { handAddCourse = () => {
...@@ -696,7 +696,7 @@ class AddCourse extends React.Component { ...@@ -696,7 +696,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchVideoList(); this.handleFetchVideoList();
}, }
); );
}; };
...@@ -858,7 +858,7 @@ class AddCourse extends React.Component { ...@@ -858,7 +858,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchLiveList(); this.handleFetchLiveList();
}, }
); );
}} }}
onShowSizeChange={this.onShowLiveSizeChange} onShowSizeChange={this.onShowLiveSizeChange}
...@@ -893,6 +893,7 @@ class AddCourse extends React.Component { ...@@ -893,6 +893,7 @@ class AddCourse extends React.Component {
<TreeSelect <TreeSelect
treeNodeFilterProp='categoryName' treeNodeFilterProp='categoryName'
showSearch showSearch
value={videoQuery[videoCourseDivision].categoryId || null}
style={{ minWidth: 'calc(100% - 75px)' }} style={{ minWidth: 'calc(100% - 75px)' }}
value={videoQuery[videoCourseDivision].categoryId || null} value={videoQuery[videoCourseDivision].categoryId || null}
dropdownMatchSelectWidth={false} dropdownMatchSelectWidth={false}
...@@ -950,7 +951,7 @@ class AddCourse extends React.Component { ...@@ -950,7 +951,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchVideoList(); this.handleFetchVideoList();
}, }
); );
}} }}
onShowSizeChange={this.onShowVideoSizeChange} onShowSizeChange={this.onShowVideoSizeChange}
...@@ -1030,7 +1031,7 @@ class AddCourse extends React.Component { ...@@ -1030,7 +1031,7 @@ class AddCourse extends React.Component {
}, },
() => { () => {
this.handleFetchPictureList(); this.handleFetchPictureList();
}, }
); );
}} }}
onShowSizeChange={this.onShowPictureSizeChange} onShowSizeChange={this.onShowPictureSizeChange}
......
...@@ -71,13 +71,13 @@ ...@@ -71,13 +71,13 @@
} }
.courseware { .courseware {
font-size: 14px; font-size: 14px;
color: #2966FF; color: #2966ff;
line-height: 20px; line-height: 20px;
text-align: right; text-align: right;
cursor: pointer; cursor: pointer;
} }
.quota-icon { .quota-icon {
color: #2966FF; color: #2966ff;
cursor: pointer; cursor: pointer;
} }
.operate { .operate {
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
.operate__item { .operate__item {
color: #2966FF; color: #2966ff;
cursor: pointer; cursor: pointer;
&.split { &.split {
margin: 0 8px; margin: 0 8px;
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
} }
} }
.operate-text { .operate-text {
color: #2966FF; color: #2966ff;
cursor: pointer; cursor: pointer;
} }
.course-start-end { .course-start-end {
...@@ -127,8 +127,8 @@ ...@@ -127,8 +127,8 @@
.add-course-modal { .add-course-modal {
.ant-tabs-nav .ant-tabs-tab-active { .ant-tabs-nav .ant-tabs-tab-active {
// border: 1px solid #2966FF; // border: 1px solid #2966FF;
color: #2966FF; color: #2966ff;
} }
.ant-modal-content tr > td { .ant-modal-content tr > td {
padding: 12px 8px !important; padding: 12px 8px !important;
} }
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
* @Author: zhangleyuan * @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39 * @Date: 2021-02-20 16:13:39
* @LastEditors: wufan * @LastEditors: wufan
<<<<<<< HEAD
* @LastEditTime: 2021-05-30 17:40:39 * @LastEditTime: 2021-05-30 17:40:39
=======
* @LastEditTime: 2021-05-30 20:39:16
>>>>>>> hotfix/pangguoming/20210601/plan_list_add_cover
* @Description: 描述一下 * @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
......
...@@ -134,6 +134,7 @@ class EmployeeShareData extends React.Component { ...@@ -134,6 +134,7 @@ class EmployeeShareData extends React.Component {
) )
} }
}, },
//产品暂时性隐藏
// { // {
// title: '手机号', // title: '手机号',
// key: 'storeUserPhone', // key: 'storeUserPhone',
......
.plan-list{ .plan-list {
margin-top:12px; margin-top: 12px;
.course-number{ .course-number {
text-align:right; text-align: right;
margin-right:45px; margin-right: 45px;
}
.plan-list-table {
thead.ant-table-thead {
tr {
th {
padding: 10px 12px;
}
}
} }
.plan-list-table{ tbody {
tbody { tr {
tr{ td.ant-table-cell {
&:nth-child(even){ padding: 16px 12px;
background: transparent !important; color: #333;
td{ }
background:#FFF !important; &:nth-child(even) {
} background: transparent;
td {
background: #fff;
} }
&:nth-child(odd){ }
background: #FAFAFA !important; &:nth-child(odd) {
td{ background: #fafafa;
background: #FAFAFA !important; td {
} background: #fafafa;
} }
&:hover{ }
td{ &:hover {
background:#F3f6fa !important; td {
} background: #f3f6fa;
} }
} }
} }
} }
.plan-name{ }
text-overflow: -o-ellipsis-lastline; .plan_name_item {
display: flex;
align-items: center;
.plan-cover {
width: 106px;
height: 60px;
border-radius: 2px;
margin-right: 8px;
}
.plan-name {
width: 188px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
height: 40px;
} }
.operate-text { }
color: #2966FF; .operate-text {
color: #2966ff;
cursor: pointer;
}
.operate {
display: flex;
&__item {
color: #2966ff;
cursor: pointer; cursor: pointer;
}
.operate { &.split {
display: flex; margin: 0 8px;
color: #bfbfbf;
&__item {
color: #2966FF;
cursor: pointer;
&.split {
margin: 0 8px;
color: #BFBFBF;
}
} }
} }
.join-number{ }
text-align:right; .join-number {
margin-right:12px; text-align: right;
} margin-right: 12px;
.more-operate{ }
line-height:20px; .more-operate {
} line-height: 20px;
} }
\ No newline at end of file }
...@@ -12,7 +12,47 @@ ...@@ -12,7 +12,47 @@
text-align: left; text-align: left;
display: inline-block; display: inline-block;
span { span {
color: #5289fa; color: #2966ff;
}
}
.search-container {
margin-bottom: 16px;
}
.select-area {
margin-bottom: 12px;
display: flex;
justify-content: space-between;
.select-box {
display: inline-box;
width: 186px;
background: #e9efff;
border-radius: 4px;
padding: 6px 16px;
margin-right: 8px;
display: flex;
justify-content: space-between;
.tip-icon {
color: #2966ff;
font-size: 14px;
margin-right: 4px;
}
.select-num {
color: #666666;
font-size: 14px;
}
.clear-btn {
text-align: right;
color: #2966ff;
font-size: 14px;
}
}
.related-box {
padding: 6px 16px;
background: #e9efff;
border-radius: 4px;
flex: 1;
color: #666666;
font-size: 14px;
} }
} }
.search-container { .search-container {
......
...@@ -9,42 +9,40 @@ ...@@ -9,42 +9,40 @@
color: #999999; color: #999999;
line-height: 20px; line-height: 20px;
} }
.rwm {
.rwm{ position: relative;
position: relative; width: 210px;
width: 210px; height: 210px;
height: 210px; text-align: center;
text-align: center; display: inline-block;
display: inline-block; margin-top: 24px;
margin-top: 24px; border: 1px solid #e8e8e8;
border: 1px solid #e8e8e8; border-radius: 2px;
border-radius: 2px; padding: 15px;
padding:15px; .error {
.error{ position: absolute;
position: absolute; width: 200px;
width: 200px; height: 200px;
height: 200px; background: rgba(255, 255, 255, 0.95);
background: rgba(255, 255, 255, 0.95); display: flex;
display: flex; align-items: center;
align-items:center; justify-content: center;
justify-content:center; left: 5px;
left:5px; top: 5px;
top:5px; div {
div{ margin: 0 10px;
margin: 0 10px; font-size: 14px;
font-size: 14px; font-family: PingFangSC-Regular, PingFang SC;
font-family: PingFangSC-Regular, PingFang SC; font-weight: 400;
font-weight: 400; color: #333333;
color: #333333; line-height: 20px;
line-height: 20px; }
.ope {
} cursor: pointer;
.ope{ color: rgba(82, 137, 250, 1);
cursor: pointer; }
color:rgba(82, 137, 250, 1);
}
}
} }
}
.ant-tabs-tab-active { .ant-tabs-tab-active {
.ant-tabs-tab-btn { .ant-tabs-tab-btn {
......
...@@ -129,6 +129,7 @@ function ExaminationManager(props: any) { ...@@ -129,6 +129,7 @@ function ExaminationManager(props: any) {
{ {
title: "创建时间", title: "创建时间",
dataIndex: "examCreateTime", dataIndex: "examCreateTime",
align:fixStr.right,
sorter: true, sorter: true,
sortOrder: field === "examCreateTime" ? order : sortStatus.type, sortOrder: field === "examCreateTime" ? order : sortStatus.type,
render: (text: any, record: any) => <span>{moment(text).format("YYYY-MM-DD HH:mm")}</span>, render: (text: any, record: any) => <span>{moment(text).format("YYYY-MM-DD HH:mm")}</span>,
......
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