|
|
|
@ -7,9 +7,7 @@ import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
|
|
|
const { t } = useI18n()
|
|
|
|
const { t } = useI18n()
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
export const rules = reactive({
|
|
|
|
export const rules = reactive({
|
|
|
|
name: [required],
|
|
|
|
nickname: [required],
|
|
|
|
code: [required],
|
|
|
|
|
|
|
|
sort: [required],
|
|
|
|
|
|
|
|
status: [required]
|
|
|
|
status: [required]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// crudSchemas
|
|
|
|
// crudSchemas
|
|
|
|
@ -28,6 +26,9 @@ const crudSchemas = reactive<CrudSchema[]>([
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '用户账号',
|
|
|
|
label: '用户账号',
|
|
|
|
field: 'username',
|
|
|
|
field: 'username',
|
|
|
|
|
|
|
|
form: {
|
|
|
|
|
|
|
|
show: false
|
|
|
|
|
|
|
|
},
|
|
|
|
search: {
|
|
|
|
search: {
|
|
|
|
show: true
|
|
|
|
show: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|