From ffd2b5b8eee96c95bc379ae9dbe1992f6b6bcbd9 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Tue, 28 Mar 2023 16:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86/=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86/=E7=A7=9F=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=96=B0=E5=A2=9E=E6=97=B6=E8=B4=A6=E5=8F=B7=E9=A2=9D?= =?UTF-8?q?=E5=BA=A6=E9=BB=98=E8=AE=A4=E4=B8=BA1=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=8D=E9=80=89=E6=8B=A9=E6=80=A7=E5=88=AB?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=97=B6=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tenant/tenant.data.ts | 6 +++++- src/views/system/user/index.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/system/tenant/tenant.data.ts b/src/views/system/tenant/tenant.data.ts index 1137b44a..4d9e6d33 100644 --- a/src/views/system/tenant/tenant.data.ts +++ b/src/views/system/tenant/tenant.data.ts @@ -143,7 +143,11 @@ const crudSchemas = reactive({ } }, form: { - component: 'InputNumber' + component: 'InputNumber', + value: null, + componentProps: { + min: 0 + } } }, { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 2f9ba9b0..c59e6d18 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -394,6 +394,7 @@ const handleUpdate = async (rowId: number) => { unref(formRef)?.delSchema('password') // 设置数据 const res = await UserApi.getUserApi(rowId) + if (res.sex == 0) res.sex = null unref(formRef)?.setValues(res) } const detailData = ref()