Skip to content

Commit ffd2b5b

Browse files
committed
系统管理/租户管理/租户列表新增时账号额度默认为1
用户管理不选择性别 修改时选择框为0
1 parent 9095970 commit ffd2b5b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/views/system/tenant/tenant.data.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
143143
}
144144
},
145145
form: {
146-
component: 'InputNumber'
146+
component: 'InputNumber',
147+
value: null,
148+
componentProps: {
149+
min: 0
150+
}
147151
}
148152
},
149153
{

src/views/system/user/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ const handleUpdate = async (rowId: number) => {
394394
unref(formRef)?.delSchema('password')
395395
// 设置数据
396396
const res = await UserApi.getUserApi(rowId)
397+
if (res.sex == 0) res.sex = null
397398
unref(formRef)?.setValues(res)
398399
}
399400
const detailData = ref()

0 commit comments

Comments
 (0)