Commit 6714a322 by zangsuyun

style:更换图标

parent 43c3187e
......@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-19 18:05:23
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-06 11:17:10
* @LastEditTime: 2021-04-08 11:29:12
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -143,13 +143,31 @@ class Classification extends Component {
);
item.icon =
item.categoryName === "未分类" ? (
<span className="icon iconfont" style={{ color: "#FBD140" }}>
&#xe7f6;
</span>
<img
style={{
width: "24px",
height: "24px",
opacity:
!value || (value && item.categoryName.indexOf(value) > -1)
? 1
: 0.5,
}}
src="https://image.xiaomaiketang.com/xm/defaultCategory.png"
alt=""
/>
) : (
<span className="icon iconfont" style={{ color: "#FBD140" }}>
&#xe7f1;
</span>
<img
style={{
width: "24px",
height: "24px",
opacity:
!value || (value && item.categoryName.indexOf(value) > -1)
? 1
: 0.5,
}}
src="https://image.xiaomaiketang.com/xm/hasCategory.png"
alt=""
/>
);
if (item.sonCategoryList) {
item.children = this.renderTreeNodes(item.sonCategoryList, value);
......@@ -178,6 +196,7 @@ class Classification extends Component {
// TODO 调用查询分类接口
this.queryCategoryTree(value);
}}
enterButton={<span className="icon iconfont">&#xe832;</span>}
/>
<div className="sider-btn">
<Button
......
......@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 11:16:38
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-02 15:32:13
* @LastEditTime: 2021-04-08 11:51:42
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -39,7 +39,7 @@ class KnowledgeBaseFilter extends React.Component {
},
},
() => {
flag && this.props.onChange(this.state.query);
this.props.onChange(this.state.query,flag);
}
);
};
......@@ -60,7 +60,6 @@ class KnowledgeBaseFilter extends React.Component {
const {
query: { name, type },
} = this.state;
return (
<div className="knowledge-base-filter">
<Row type="flex" justify="space-between" align="top">
......
......@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 10:43:10
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-07 13:50:11
* @LastEditTime: 2021-04-08 11:52:42
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
import React from "react";
......@@ -52,7 +52,7 @@ export default class KnowledgeBase extends React.Component {
});
};
// 获取知识库列表
handleFetchScheduleList = (_query = {}) => {
handleFetchScheduleList = (_query = {},flag = true) => {
const query = {
...this.state.query,
..._query,
......@@ -61,7 +61,7 @@ export default class KnowledgeBase extends React.Component {
// 更新请求参数
this.setState({ query });
KnowledgeAPI.queryPageKnowledgeForManager(query).then((res) => {
flag && KnowledgeAPI.queryPageKnowledgeForManager(query).then((res) => {
// KnowledgeAPI.videoSchedulePage(query).then((res) => {
const { result = {} } = res || {};
const { records = [], total = 0 } = result;
......@@ -95,7 +95,7 @@ export default class KnowledgeBase extends React.Component {
</div>
<div
className="liner"
style={{ backgroundColor: "#ddd", width: 1, margin: "1px 20px" }}
style={{ backgroundColor: "rgb(238, 238, 238)", width: 0.5, margin: "1px 24px 1px 2px" }}
></div>
<div className="right" style={{ width: "calc(100% - 285px)" }}>
<KnowledgeBaseFilter onChange={this.handleFetchScheduleList} />
......
......@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-04-29 10:26:32
* @LastEditors: zangsuyun
* @LastEditTime: 2021-03-29 09:57:08
* @LastEditTime: 2021-04-07 16:12:14
* @Description: 内容线路由配置
*/
import Home from "@/modules/home/Home";
......@@ -25,7 +25,7 @@ import PlanPage from "@/modules/plan-manage/PlanPage";
import AddPlanPage from "@/modules/plan-manage/AddPlan";
import LearningDataPage from "@/modules/plan-manage/LearningData";
import StoreInfoPage from "@/modules/store-manage/StoreInfo";
import KnowledgeBase from "@/modules/knowledge-base";
import KnowledgeBase from "@/modules/knowledge-base/index";
import QuestionBankIndex from "@/modules/teach-tool/QuestionBankIndex";
import QuestionCategoryManage from "@/modules/teach-tool/QuestionCategoryManage";
import AddNewQuestion from "@/modules/teach-tool/AddNewQuestion";
......
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