From 9dcf0218cd7e9a419683e6d34e06a6d65ecfcc2d Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 16 Nov 2022 19:56:58 +0800 Subject: [PATCH] fix: error --- yudao-ui-admin-vue3/src/views/system/role/role.data.ts | 5 +---- yudao-ui-admin-vue3/src/views/system/user/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/role/role.data.ts b/yudao-ui-admin-vue3/src/views/system/role/role.data.ts index 5043cc22a..4338e4295 100644 --- a/yudao-ui-admin-vue3/src/views/system/role/role.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/role/role.data.ts @@ -35,10 +35,7 @@ const crudSchemas = reactive({ }, { title: '显示顺序', - field: 'sort', - form: { - component: 'InputNumber' - } + field: 'sort' }, { title: t('common.status'), 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 6b2242234..e4ffdcaf9 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue @@ -351,16 +351,17 @@ const setDialogTile = async (type: string) => { // 新增操作 const handleCreate = async () => { + actionType.value = 'create' // 重置表单 deptId.value = null postIds.value = [] dialogVisible.value = true dialogTitle.value = t('action.create') - actionType.value = 'create' } // 修改操作 const handleUpdate = async (rowId: number) => { + setDialogTile('update') unref(formRef)?.delSchema('username') unref(formRef)?.delSchema('password') // 设置数据 @@ -368,7 +369,6 @@ const handleUpdate = async (rowId: number) => { deptId.value = res.deptId postIds.value = res.postIds unref(formRef)?.setValues(res) - setDialogTile('update') } const detailData = ref()