Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
9a13bbfd
Commit
9a13bbfd
authored
Jul 09, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改考评列表
parent
c95fe42b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
11 deletions
+18
-11
package.json
package.json
+1
-0
index.tsx
src/pages/member/memberEvaluate/allQuery/index.tsx
+1
-6
index.tsx
src/pages/member/memberEvaluate/createEvaluate/index.tsx
+1
-1
useEvaluateColumn.tsx
src/pages/member/memberEvaluate/hooks/useEvaluateColumn.tsx
+12
-2
index.tsx
src/pages/member/memberEvaluate/tobeEvaluate/index.tsx
+2
-1
index.tsx
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
+1
-1
No files found.
package.json
View file @
9a13bbfd
...
...
@@ -30,6 +30,7 @@
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
,
"test"
:
"umi-test"
,
"test:coverage"
:
"umi-test --coverage"
,
"start:cross"
:
"cross-env SITE_ID=352 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.25:9400 yarn start"
,
"start:scm"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com yarn start"
,
"start:url"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com USE_ROUTE_CONFIG=true SOCKET_URL=ws://lingxi-all.wg.shushangyun.com yarn start"
,
...
...
src/pages/member/memberEvaluate/allQuery/index.tsx
View file @
9a13bbfd
...
...
@@ -24,12 +24,7 @@ interface Iprops {};
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
{
fetchListData
}
=
useFetchList
();
const
{
columns
,
fetchStatusOptions
}
=
useEvaluateColumn
<
GetMemberAppraisalSummaryPageResponseDetail
>
(
defaultColumns
,
[
{
title
:
"考评最终分"
,
dataIndex
:
"totalScore"
}
])
const
{
columns
,
fetchStatusOptions
}
=
useEvaluateColumn
<
GetMemberAppraisalSummaryPageResponseDetail
>
(
defaultColumns
,
[])
const
controllerBtns
=
(
<
div
>
...
...
src/pages/member/memberEvaluate/createEvaluate/index.tsx
View file @
9a13bbfd
...
...
@@ -18,7 +18,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable';
const
defaultColumns
=
setColumnsByLinks
({
detail
:
"/memberCenter/memberAbility/memberEvaluate/createEvaluate/view"
});
}
,
[
'totalScore'
]
);
interface
Iprops
{};
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
...
...
src/pages/member/memberEvaluate/hooks/useEvaluateColumn.tsx
View file @
9a13bbfd
...
...
@@ -40,6 +40,11 @@ const commonColumns = [
sorter
:
(
_a
,
_b
)
=>
moment
(
_a
.
completeDay
).
valueOf
()
-
moment
(
_b
.
completeDay
).
valueOf
(),
},
{
title
:
'考评最终分'
,
dataIndex
:
'totalScore'
,
sorter
:
(
_a
,
_b
)
=>
_a
.
totalScore
-
_b
.
totalScore
,
},
{
title
:
'内部状态'
,
dataIndex
:
'status'
,
filters
:
[],
...
...
@@ -53,7 +58,7 @@ const commonColumns = [
},
]
export
const
setColumnsByLinks
=
(
link
?:
{
[
key
:
string
]:
string
})
=>
{
export
const
setColumnsByLinks
=
(
link
?:
{
[
key
:
string
]:
string
}
,
blackList
?:
string
[]
)
=>
{
const
linksColumns
:
ColumnsType
<
any
>
=
[
{
title
:
'考评单号/主题'
,
...
...
@@ -75,7 +80,12 @@ export const setColumnsByLinks = (link?: { [key: string]: string }) => {
}
},
]
return
linksColumns
.
concat
(
commonColumns
);
const
column
=
linksColumns
.
concat
(
commonColumns
);
if
(
typeof
blackList
===
'undefined'
||
blackList
.
length
===
0
)
{
return
column
}
return
column
.
filter
((
_item
)
=>
!
blackList
.
includes
((
_item
as
any
)?.
dataIndex
))
}
function
useEvaluateColumn
<
T
extends
{
[
key
:
string
]:
any
}
=
any
>
(
defaultColumns
:
ColumnsType
<
T
>
,
mergeColumn
?:
ColumnsType
<
T
>
)
{
...
...
src/pages/member/memberEvaluate/tobeEvaluate/index.tsx
View file @
9a13bbfd
...
...
@@ -15,7 +15,8 @@ interface Iprops {};
const
defaultColumns
=
setColumnsByLinks
(
{
detail
:
'/memberCenter/memberAbility/memberEvaluate/tobeEvaluate/detail'
}
},
[
'totalScore'
]
);
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
...
...
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
View file @
9a13bbfd
...
...
@@ -15,7 +15,7 @@ import { querySchema } from '../tobeEvaluate/schema';
const
defaultColumns
=
setColumnsByLinks
({
detail
:
'/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail'
,
});
}
,
[
'totalScore'
]
);
interface
Iprops
{};
...
...
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