feat: 产品迭代7月份
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m51s

This commit is contained in:
luo
2026-07-27 16:30:29 +08:00
parent cc6fc9243e
commit f0a2b84e53
75 changed files with 2926 additions and 534 deletions

View File

@@ -247,8 +247,8 @@
ElOption
} from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus'
import { RoleType } from '@/types/api'
import type { PlatformRole, PermissionTreeNode } from '@/types/api'
import { RoleStatus, RoleType } from '@/types/api'
import type { PlatformRole, PermissionTreeNode, PlatformRoleFormData } from '@/types/api'
import type { SearchFormItem } from '@/types'
import { useRouter } from 'vue-router'
import { RoutesAlias } from '@/router/routesAlias'
@@ -381,12 +381,18 @@
]
})
const form = reactive<any>({
type RoleFormState = PlatformRoleFormData & {
id: number
credit_enabled: boolean
credit_limit_yuan: number
}
const form = reactive<RoleFormState>({
id: 0,
role_name: '',
role_desc: '',
role_type: 1,
status: CommonStatus.ENABLED,
role_type: RoleType.PLATFORM,
status: RoleStatus.ENABLED,
credit_enabled: false,
credit_limit_yuan: 0
})
@@ -1138,7 +1144,7 @@
form.role_name = ''
form.role_desc = ''
form.role_type = 1
form.status = CommonStatus.ENABLED
form.status = RoleStatus.ENABLED
form.credit_enabled = false
form.credit_limit_yuan = 0
}