Commit 9dcf0218cd7e9a419683e6d34e06a6d65ecfcc2d

Authored by xingyu
1 parent 6360d432

fix: error

yudao-ui-admin-vue3/src/views/system/role/role.data.ts
@@ -35,10 +35,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ @@ -35,10 +35,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
35 }, 35 },
36 { 36 {
37 title: '显示顺序', 37 title: '显示顺序',
38 - field: 'sort',  
39 - form: {  
40 - component: 'InputNumber'  
41 - } 38 + field: 'sort'
42 }, 39 },
43 { 40 {
44 title: t('common.status'), 41 title: t('common.status'),
yudao-ui-admin-vue3/src/views/system/user/index.vue
@@ -351,16 +351,17 @@ const setDialogTile = async (type: string) => { @@ -351,16 +351,17 @@ const setDialogTile = async (type: string) => {
351 351
352 // 新增操作 352 // 新增操作
353 const handleCreate = async () => { 353 const handleCreate = async () => {
  354 + actionType.value = 'create'
354 // 重置表单 355 // 重置表单
355 deptId.value = null 356 deptId.value = null
356 postIds.value = [] 357 postIds.value = []
357 dialogVisible.value = true 358 dialogVisible.value = true
358 dialogTitle.value = t('action.create') 359 dialogTitle.value = t('action.create')
359 - actionType.value = 'create'  
360 } 360 }
361 361
362 // 修改操作 362 // 修改操作
363 const handleUpdate = async (rowId: number) => { 363 const handleUpdate = async (rowId: number) => {
  364 + setDialogTile('update')
364 unref(formRef)?.delSchema('username') 365 unref(formRef)?.delSchema('username')
365 unref(formRef)?.delSchema('password') 366 unref(formRef)?.delSchema('password')
366 // 设置数据 367 // 设置数据
@@ -368,7 +369,6 @@ const handleUpdate = async (rowId: number) => { @@ -368,7 +369,6 @@ const handleUpdate = async (rowId: number) => {
368 deptId.value = res.deptId 369 deptId.value = res.deptId
369 postIds.value = res.postIds 370 postIds.value = res.postIds
370 unref(formRef)?.setValues(res) 371 unref(formRef)?.setValues(res)
371 - setDialogTile('update')  
372 } 372 }
373 const detailData = ref() 373 const detailData = ref()
374 374