From ae8795df8e77f3e9c0836d70b22ac55fd1b20cf0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 26 Nov 2022 22:12:02 +0800 Subject: [PATCH] =?UTF-8?q?vue3=EF=BC=9Areview=20=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E3=80=81=E7=A7=9F=E6=88=B7=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E3=80=81=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/dept/dept.data.ts | 2 +- yudao-ui-admin-vue3/src/views/system/dept/index.vue | 2 +- .../src/views/system/tenant/tenant.data.ts | 3 ++- .../system/tenantPackage/tenantPackage.data.ts | 3 ++- yudao-ui-admin-vue3/src/views/system/user/index.vue | 13 +++++++++++-- .../src/views/system/user/user.data.ts | 9 +++++---- 6 files changed, 22 insertions(+), 10 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts index 7eca4f62b..757958524 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts @@ -13,7 +13,7 @@ export const rules = reactive({ phone: [ { pattern: - /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, + /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, // TODO @星语:前端只校验长度,格式交给后端;因为号码格式不断在变的 trigger: 'blur', message: '请输入正确的手机号码' } diff --git a/yudao-ui-admin-vue3/src/views/system/dept/index.vue b/yudao-ui-admin-vue3/src/views/system/dept/index.vue index a4d2f9ec9..6a884c637 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/dept/index.vue @@ -204,7 +204,7 @@ const handleDelete = async (rowId: number) => { } const userNicknameFormat = (row) => { - if (!row || !row.leaderUserId || row.leaderUserId == null) { + if (!row || !row.leaderUserId) { return '未设置' } for (const user of userOption.value) { diff --git a/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts b/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts index 3b83d6efe..ad65b2dd6 100644 --- a/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts @@ -36,6 +36,7 @@ export const rules = reactive({ // CrudSchema. const crudSchemas = reactive({ primaryKey: 'id', + primaryTitle: '租户编号', primaryType: 'seq', action: true, columns: [ @@ -121,7 +122,7 @@ const crudSchemas = reactive({ { title: t('table.createTime'), field: 'createTime', - formatter: 'formatDate', + formatter: 'formatDate', // TODO 星语:要不给 formatter = formatDate 的时候,设置一个它的默认宽度,避免缩进 isForm: false } ] diff --git a/yudao-ui-admin-vue3/src/views/system/tenantPackage/tenantPackage.data.ts b/yudao-ui-admin-vue3/src/views/system/tenantPackage/tenantPackage.data.ts index 3b398273c..42199efc0 100644 --- a/yudao-ui-admin-vue3/src/views/system/tenantPackage/tenantPackage.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/tenantPackage/tenantPackage.data.ts @@ -19,6 +19,7 @@ export const rules = reactive({ const crudSchemas = reactive({ primaryKey: 'id', primaryType: 'seq', + primaryTitle: '套餐编号', action: true, columns: [ { @@ -35,7 +36,7 @@ const crudSchemas = reactive({ }, { title: '菜单权限', - field: 'menuIds', + field: 'menuIds', // TODO 星语:菜单权限,表单可以搞大点哇? isTable: false }, { diff --git a/yudao-ui-admin-vue3/src/views/system/user/index.vue b/yudao-ui-admin-vue3/src/views/system/user/index.vue index 126a1dfed..2cee995fd 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue @@ -28,8 +28,8 @@ - +