From 6b97c47eca952901d9e81f76e35cd825b95a04ec Mon Sep 17 00:00:00 2001 From: wangwenchen <920960949@qq.com> Date: Tue, 30 Jan 2024 15:56:07 +0800 Subject: [PATCH 01/10] =?UTF-8?q?userRelation=20=E4=B8=80=E4=B8=AAprojecti?= =?UTF-8?q?on=E5=B0=91=E5=8E=BB=E4=BA=86=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/types/Projection.js | 3 +++ lib/types/Projection.js | 3 +++ src/types/Projection.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/es/types/Projection.js b/es/types/Projection.js index 80852c434..4abf556ac 100644 --- a/es/types/Projection.js +++ b/es/types/Projection.js @@ -40,6 +40,9 @@ const userProjection = { user$ref: { $entity: 'user', data: { + id: 1, + userState: 1, + refId: 1, mobile$user: { $entity: 'mobile', data: { diff --git a/lib/types/Projection.js b/lib/types/Projection.js index 4b01678bc..b4752ff79 100644 --- a/lib/types/Projection.js +++ b/lib/types/Projection.js @@ -43,6 +43,9 @@ const userProjection = { user$ref: { $entity: 'user', data: { + id: 1, + userState: 1, + refId: 1, mobile$user: { $entity: 'mobile', data: { diff --git a/src/types/Projection.ts b/src/types/Projection.ts index 3d8d0edd4..eea60c01e 100644 --- a/src/types/Projection.ts +++ b/src/types/Projection.ts @@ -45,6 +45,9 @@ const userProjection: EntityDict['user']['Selection']['data'] = { user$ref: { $entity: 'user', data: { + id: 1, + userState: 1, + refId: 1, mobile$user: { $entity: 'mobile', data: { From 917eaec869eb7fe97ff3647a60c7aeac9a5efe5a Mon Sep 17 00:00:00 2001 From: wangwenchen <920960949@qq.com> Date: Tue, 30 Jan 2024 15:57:26 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E9=A1=B5=E9=9D=A2=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E6=98=AF=E6=96=B0=E7=9A=84=E6=9C=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E6=94=B9=E6=88=90=E6=88=90=E4=B8=8A?= =?UTF-8?q?=E5=B1=82=E4=BC=A0=E4=B8=8B=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/components/userRelation/upsert/byMobile/web.d.ts | 1 + es/components/userRelation/upsert/byMobile/web.js | 4 ++-- es/components/userRelation/upsert/byMobile/web.pc.js | 2 +- es/components/userRelation/upsert/onUser/index.js | 3 ++- src/components/userRelation/upsert/byMobile/web.pc.tsx | 1 + src/components/userRelation/upsert/byMobile/web.tsx | 3 +++ src/components/userRelation/upsert/onUser/index.ts | 5 +++-- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/es/components/userRelation/upsert/byMobile/web.d.ts b/es/components/userRelation/upsert/byMobile/web.d.ts index abd5a7d44..144b1ca8b 100644 --- a/es/components/userRelation/upsert/byMobile/web.d.ts +++ b/es/components/userRelation/upsert/byMobile/web.d.ts @@ -11,6 +11,7 @@ export default function Render(props: WebComponentProps Promise; onConfirm: () => Promise; diff --git a/es/components/userRelation/upsert/byMobile/web.js b/es/components/userRelation/upsert/byMobile/web.js index 7cdee2022..5b05d0342 100644 --- a/es/components/userRelation/upsert/byMobile/web.js +++ b/es/components/userRelation/upsert/byMobile/web.js @@ -3,7 +3,7 @@ import { Form, Input, Button } from 'antd-mobile'; import Style from './web.module.less'; import OnUser from '../onUser/index'; export default function Render(props) { - const { mobileValue, mobileValueReady, relations, entity, entityId, userId, oakFullpath, oakExecutable, oakDirty, passwordRequire, allowUpdateName, allowUpdateNickname, } = props.data; + const { mobileValue, mobileValueReady, relations, entity, entityId, userId, oakFullpath, oakExecutable, oakDirty, passwordRequire, allowUpdateName, allowUpdateNickname,isNew } = props.data; const { onConfirm, onMobileChange, onReset, t } = props.methods; return (