Commit 96ab29ea by yuananting

fix:正确率修改

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