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
d8e8d403
Commit
d8e8d403
authored
Aug 14, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a2806bcd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
src/modules/task-center/data-center/components/ExamTable.tsx
+1
-1
src/modules/task-center/data-center/components/StudyTable.tsx
+22
-2
No files found.
src/modules/task-center/data-center/components/ExamTable.tsx
View file @
d8e8d403
...
...
@@ -114,7 +114,7 @@ function ExamTable(props: any) {
pageSize=
{
query
.
size
}
total=
{
total
}
toPage=
{
(
page
:
any
)
=>
{
setQuery
({
...
query
,
current
:
query
.
current
+
1
})
setQuery
({
...
query
,
current
:
page
+
1
})
}
}
/>
...
...
src/modules/task-center/data-center/components/StudyTable.tsx
View file @
d8e8d403
...
...
@@ -2,6 +2,7 @@ import React, { useEffect, useRef, useState } from 'react';
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
Row
,
Input
,
Select
,
Tooltip
,
Col
}
from
'antd'
;
import
RangePicker
from
'@/modules/common/DateRangePicker'
;
import
WWOpenDataCom
from
'@/components/WWOpenDataCom'
;
import
{
PageControl
,
XMTable
}
from
'@/components'
;
import
Service
from
'@/common/js/service'
;
import
ENUM
from
'../../enum'
;
...
...
@@ -34,6 +35,16 @@ function StudyTable(props: any) {
function
getList
()
{
Service
.
Hades
(
'public/hades/getTaskCustomerRecordPage'
,
query
).
then
((
res
:
any
)
=>
{
res
.
result
.
records
.
map
((
item
:
any
)
=>
{
item
.
department
=
item
.
departmentNameList
.
map
((
_item
:
any
)
=>
{
if
(
_item
==
'1000'
)
{
return
'微信'
}
else
{
return
<
WWOpenDataCom
type=
"departmentName"
openid=
{
_item
}
/>
}
})
})
setList
(
res
.
result
.
records
)
setTotal
(
res
.
result
.
total
)
})
...
...
@@ -63,8 +74,17 @@ function StudyTable(props: any) {
key
:
'departmentNameList'
,
dataIndex
:
'departmentNameList'
,
render
:
(
val
:
any
,
record
:
any
)
=>
{
return
<
div
>
{
record
.
department
.
map
((
item
:
any
,
index
:
number
)
=>
{
if
((
index
+
1
)
==
record
.
department
.
length
){
return
item
}
else
{
return
[
item
,
';'
]
}
return
<
div
>
{
val
.
join
(
';'
)
}
</
div
>;
})
}
</
div
>
},
},
...
...
@@ -267,7 +287,7 @@ function StudyTable(props: any) {
pageSize=
{
query
.
size
}
total=
{
total
}
toPage=
{
(
page
:
any
)
=>
{
setQuery
({
...
query
,
current
:
query
.
current
+
1
})
setQuery
({
...
query
,
current
:
page
+
1
})
}
}
/>
...
...
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