fix: 修复编辑出问题的bug

perf: 优化嵌套的form

perf: 优化嵌套的form

perf: 优化其那套form

perf: 优化nestfield, 但报错存在问题

perf: 优化
This commit is contained in:
ibuler
2021-03-01 16:41:42 +08:00
committed by Orange
parent 6fde735cbd
commit 917d95cc7b
8 changed files with 259 additions and 252 deletions

View File

@@ -9,7 +9,6 @@
import { GenericCreateUpdatePage } from '@/layout/components'
import UserPassword from '@/components/UserPassword'
import RoleCheckbox from '@/views/users/User/components/RoleCheckbox'
import { getDayFuture } from '@/utils/common'
import { mapGetters } from 'vuex'
import rules from '@/components/DataForm/rules'
@@ -20,12 +19,12 @@ export default {
data() {
return {
initial: {
password_strategy: 0,
mfa_level: 0,
role: 'User',
source: 'local',
org_roles: ['User'],
date_expired: getDayFuture(36500, new Date()).toISOString()
// password_strategy: 0,
// mfa_level: 0,
// role: 'User',
// source: 'local',
// org_roles: ['User'],
// date_expired: getDayFuture(36500, new Date()).toISOString()
},
fields: [
[this.$t('users.Account'), ['name', 'username', 'email', 'groups']],