Commit 8371424c authored by tjy's avatar tjy

调整

parent fdf3352a
...@@ -10,7 +10,7 @@ import NiceForm from '@/components/NiceForm'; ...@@ -10,7 +10,7 @@ import NiceForm from '@/components/NiceForm';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'; import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
import { initDetailSchema } from './schema'; import { initDetailSchema } from './schema';
import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect' import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'; import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
......
...@@ -57,7 +57,7 @@ const memberMaintain: React.FC<[]> = () => { ...@@ -57,7 +57,7 @@ const memberMaintain: React.FC<[]> = () => {
key: 'name', key: 'name',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<EyePreview <EyePreview
url={`/memberAbility/manage/addMember?id=${record.id}&preview=1`} url={`/memberAbility/manage/memberDetail?id=${record.id}&preview=1`}
> >
{text} {text}
</EyePreview> </EyePreview>
......
...@@ -37,21 +37,29 @@ const MemberUpgradeRule: React.FC<[]> = () => { ...@@ -37,21 +37,29 @@ const MemberUpgradeRule: React.FC<[]> = () => {
}, },
{ {
title: '可获取的分值', title: '可获取的分值',
dataIndex: 'score', dataIndex: 'point',
align: 'center', align: 'center',
key: 'score', key: 'point',
render: (text: any, record: any) => { render: (text: any, record: any) => {
let component: ReactNode = null; let component: ReactNode = null;
component = component =
record.ruleTypeEnum === 1 ? ( record.id === 1 ? (
<Input addonAfter="%" value={record.score} /> <Input
addonAfter="%"
value={record.point}
onChange={e => {
e.preventDefault();
record.point = e.target.value;
}}
/>
) : ( ) : (
<Input value={record.score} /> <Input value={record.point} />
); );
return component; return component;
}, },
}, },
]; ];
const handleSubmit = () => {}; const handleSubmit = () => {};
return ( return (
......
...@@ -47,7 +47,8 @@ const errorHandler = (error: ResponseError): IRequestError => { ...@@ -47,7 +47,8 @@ const errorHandler = (error: ResponseError): IRequestError => {
const defaultHeaders = { const defaultHeaders = {
'Content-Type': 'Application/json', 'Content-Type': 'Application/json',
'token': '99dbcd04b7253c8920f319f4103ec5c1' 'token': '99dbcd04b7253c8920f319f4103ec5c1',
'source': '99'
} }
/** /**
......
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