Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
96ab29ea
Commit
96ab29ea
authored
Apr 12, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:正确率修改
parent
e0c834f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+15
-11
No files found.
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
96ab29ea
...
@@ -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
>
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment