Commit 96ab29ea by yuananting

fix:正确率修改

parent e0c834f5
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-04-07 12:07:44
* @LastEditTime: 2021-04-12 11:10:09
* @Description: 助学工具-题库-题目列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -27,7 +27,7 @@ import AidToolService from "@/domains/aid-tool-domain/AidToolService";
import _ from "underscore";
import PreviewQuestionModal from "../modal/PreviewQuestionModal";
import BatchImportQuestionModal from "../modal/BatchImportQuestionModal";
import { Route, withRouter } from 'react-router-dom';
import { Route, withRouter } from "react-router-dom";
import OperateQuestion from "../OperateQuestion";
import Bus from "@/core/bus";
......@@ -85,15 +85,16 @@ class QuestionList extends Component {
};
}
componentDidMount() {
this.queryQuestionPageList()
Bus.bind('queryQuestionPageList', (selectedCategoryId) => {
selectedCategoryId = selectedCategoryId === "null" ? null : selectedCategoryId;
this.InitSearch(selectedCategoryId)
})
this.queryQuestionPageList();
Bus.bind("queryQuestionPageList", (selectedCategoryId) => {
selectedCategoryId =
selectedCategoryId === "null" ? null : selectedCategoryId;
this.InitSearch(selectedCategoryId);
});
}
componentWillUnmount() {
Bus.unbind('queryQuestionPageList', this.queryQuestionPageList)
Bus.unbind("queryQuestionPageList", this.queryQuestionPageList);
}
// 初始化列表查询
......@@ -146,7 +147,7 @@ class QuestionList extends Component {
queryQuestionPageList = () => {
AidToolService.queryQuestionPageList(this.state.query).then((res) => {
const { records = [], total = 0 } = res.result;
this.setState({ dataSource: records, total })
this.setState({ dataSource: records, total });
});
};
......@@ -255,7 +256,7 @@ class QuestionList extends Component {
showSorterTooltip: false,
width: "14%",
render: (val) => {
return val + "%";
return val * 100 + "%";
},
},
{
......@@ -532,7 +533,10 @@ class QuestionList extends Component {
{previewQuestionModal}
{batchImportQuestionModal}
</div>
<Route path={`${match.url}/question-operate-page`} component={OperateQuestion} />
<Route
path={`${match.url}/question-operate-page`}
component={OperateQuestion}
/>
</div>
);
}
......
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