From c1be4339d6688cfd03aab2556389cb1dfd0a4c00 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Wed, 15 Mar 2023 14:33:04 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81bpmnjs=E4=B8=ADtemplate=E4=B8=AD?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=86=99=E6=B3=A8=E9=87=8A=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99=202=E3=80=81=E7=A7=9F?= =?UTF-8?q?=E5=AE=A2=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi-instance/ElementMultiInstance.vue | 2 -- src/views/system/tenant/index.vue | 25 ++++++++++++++++++- src/views/system/tenant/tenant.data.ts | 6 ++--- src/views/system/user/user.data.ts | 7 ++++++ 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue b/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue index 962234d5..2e5bc8a7 100644 --- a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue +++ b/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue @@ -3,10 +3,8 @@ - - diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 20c697d6..bb1ca1a3 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -123,14 +123,37 @@ const setDialogTile = (type: string) => { } // 新增操作 -const handleCreate = () => { +const handleCreate = async () => { // 重置表单 setDialogTile('create') + await nextTick() + console.log(allSchemas.formSchema, 'allSchemas.formSchema') + if (allSchemas.formSchema[4].field !== 'username') { + unref(formRef)?.addSchema( + { + field: 'username', + label: '用户名称', + component: 'Input' + }, + 0 + ) + unref(formRef)?.addSchema( + { + field: 'password', + label: '用户密码', + component: 'InputPassword' + }, + 1 + ) + } } // 修改操作 const handleUpdate = async (rowId: number) => { setDialogTile('update') + await nextTick() + unref(formRef)?.delSchema('username') + unref(formRef)?.delSchema('password') // 设置数据 const res = await TenantApi.getTenantApi(rowId) unref(formRef)?.setValues(res) diff --git a/src/views/system/tenant/tenant.data.ts b/src/views/system/tenant/tenant.data.ts index adda1807..1137b44a 100644 --- a/src/views/system/tenant/tenant.data.ts +++ b/src/views/system/tenant/tenant.data.ts @@ -123,8 +123,7 @@ const crudSchemas = reactive({ title: '用户名称', field: 'username', isTable: false, - isDetail: false, - isForm: false + isDetail: false }, { title: '用户密码', @@ -133,8 +132,7 @@ const crudSchemas = reactive({ isDetail: false, form: { component: 'InputPassword' - }, - isForm: false + } }, { title: '账号额度', diff --git a/src/views/system/user/user.data.ts b/src/views/system/user/user.data.ts index 59a795e7..3a702c04 100644 --- a/src/views/system/user/user.data.ts +++ b/src/views/system/user/user.data.ts @@ -60,6 +60,13 @@ const crudSchemas = reactive({ component: 'InputPassword' } }, + { + title: '用户' + t('profile.user.sex'), + field: 'sex', + dictType: DICT_TYPE.SYSTEM_USER_SEX, + dictClass: 'number', + table: { show: false } + }, { title: '用户昵称', field: 'nickname'