Commit 51abf76e authored by 前端-许佳敏's avatar 前端-许佳敏

替换所有未填字段为空状态显示

parent 5ce88410
......@@ -521,7 +521,7 @@ const auditDetail: React.FC<ItemProps> = (props: any) => {
destroyOnClose
>
<NiceForm
previewPlaceholder="loading..."
previewPlaceholder="' '"
effects={($, { setFieldState }) => {
FormEffectHooks.onFieldValueChange$('agree').subscribe(state => {
setFieldState('reason', targetState => {
......
......@@ -308,7 +308,7 @@ const memberMaintain: React.FC<[]> = () => {
destroyOnClose
>
<NiceForm
previewPlaceholder="loading..."
previewPlaceholder="' '"
effects={($, { setFieldState }) => {
FormEffectHooks.onFieldValueChange$('agree').subscribe(state => {
setFieldState('reason', targetState => {
......
......@@ -289,7 +289,7 @@ const memberMaintain: React.FC<[]> = () => {
destroyOnClose
>
<NiceForm
previewPlaceholder="loading..."
previewPlaceholder="' '"
effects={($, { setFieldState }) => {
FormEffectHooks.onFieldValueChange$('agree').subscribe(state => {
setFieldState('reason', targetState => {
......
......@@ -221,7 +221,7 @@ const PositionSetting:React.FC<PositionSettingProps> = (props) => {
return (
<>
<NiceForm
previewPlaceholder='loading...'
previewPlaceholder='' ''
editable={pageStatus !== PageStatus.PREVIEW}
initialValues={initValue}
expressionScope={{
......
......@@ -133,6 +133,10 @@ export const repositMoreSchema: ISchema = {
{
required: true,
message: '请输入仓位名称'
},
{
limitByte: true, // 自定义校验规则
maxByte: 60
}
],
title: '仓位名称',
......
......@@ -59,7 +59,7 @@ const AddWarehouse: React.FC<{}> = props => {
>
<Card>
<NiceForm
previewPlaceholder="loading..."
previewPlaceholder="' '"
editable={pageStatus !== PageStatus.PREVIEW}
effects={$ => {}}
initialValues={initValue}
......
......@@ -66,7 +66,7 @@ const AddWarehouse: React.FC<{}> = (props: any) => {
>
<Card>
<NiceForm
previewPlaceholder="loading..."
previewPlaceholder="' '"
editable={pageStatus !== PageStatus.PREVIEW}
effects={($, { setFieldState }) => {
$('onFormMount').subscribe(state => {
......
......@@ -16,15 +16,17 @@ const LoginWrap: React.FC = () => {
const finish = (value:any) => {
PublicApi.postMemberLogin(value).then(res => {
const { data } = res
setAuth({
memberId: data.memberId,
userId: data.userId,
token: data.token
})
setRouters(data.urls)
// 此处需使用href跳转, 否则无法触发app.ts中的路由初始化校验
window.location.href = '/memberCenter/home'
const { data, code } = res
if (code === 1000) {
setAuth({
memberId: data.memberId,
userId: data.userId,
token: data.token
})
setRouters(data.urls)
// 此处需使用href跳转, 否则无法触发app.ts中的路由初始化校验
window.location.href = '/memberCenter/home'
}
})
}
......
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