|
|
@@ -184,7 +184,7 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
key: 'action',
|
|
|
width: 200,
|
|
|
fixed: 'right' as const,
|
|
|
- render: (_, record: SilverTalent) => (
|
|
|
+ render: (_: any, record: SilverTalent) => (
|
|
|
<Space>
|
|
|
<Button
|
|
|
type="link"
|
|
|
@@ -309,8 +309,11 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
if (!selectedTalent) return;
|
|
|
|
|
|
try {
|
|
|
- const response = await silverTalentsAdminClient[selectedTalent.id.toString()].$put({
|
|
|
- json: values
|
|
|
+ const response = await silverTalentsAdminClient[`:${selectedTalent.id}`]['$put']({
|
|
|
+ json: values,
|
|
|
+ param: {
|
|
|
+ id: selectedTalent.id.toString()
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
if (response.status === 200) {
|
|
|
@@ -328,10 +331,13 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
if (!selectedTalent) return;
|
|
|
|
|
|
try {
|
|
|
- const response = await silverTalentsAdminClient[selectedTalent.id.toString()].certification.$put({
|
|
|
+ const response = await silverTalentsAdminClient[`:${selectedTalent.id}`].certification['$put']({
|
|
|
json: {
|
|
|
certificationStatus: values.certificationStatus,
|
|
|
certificationInfo: values.certificationInfo || ''
|
|
|
+ },
|
|
|
+ param: {
|
|
|
+ id: selectedTalent.id.toString()
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -353,7 +359,7 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
<Card>
|
|
|
<Statistic
|
|
|
title="总人才数"
|
|
|
- value={stats?.total || 0}
|
|
|
+ value={stats?.totalCount || 0}
|
|
|
prefix={<TeamOutlined />}
|
|
|
/>
|
|
|
</Card>
|
|
|
@@ -362,7 +368,7 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
<Card>
|
|
|
<Statistic
|
|
|
title="已认证"
|
|
|
- value={stats?.certified || 0}
|
|
|
+ value={stats?.certifiedCount || 0}
|
|
|
prefix={<CheckCircleOutlined style={{ color: '#52c41a' }} />}
|
|
|
/>
|
|
|
</Card>
|
|
|
@@ -371,7 +377,7 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
<Card>
|
|
|
<Statistic
|
|
|
title="认证中"
|
|
|
- value={stats?.pending || 0}
|
|
|
+ value={stats?.pendingCount || 0}
|
|
|
prefix={<BarChartOutlined style={{ color: '#1890ff' }} />}
|
|
|
/>
|
|
|
</Card>
|
|
|
@@ -380,7 +386,7 @@ export const SilverTalentsPage: React.FC = () => {
|
|
|
<Card>
|
|
|
<Statistic
|
|
|
title="未认证"
|
|
|
- value={stats?.notCertified || 0}
|
|
|
+ value={stats?.unCertifiedCount || 0}
|
|
|
prefix={<CloseCircleOutlined style={{ color: '#ff4d4f' }} />}
|
|
|
/>
|
|
|
</Card>
|