Skip to content

Commit

Permalink
refactor: update user list edit dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-xufei committed Oct 28, 2024
1 parent ff603a9 commit 53fcd1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/daas/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import getRouter from '@/router'
import VConfirm from '@/components/v-confirm'
import { settingsApi, usersApi, timeStampApi } from '@tap/api'
import { getCurrentLanguage, setCurrentLanguage } from '@tap/i18n/src/shared/util'
// import FormBuilder from '@tap/component/src/form-builder'
import FormBuilder from '@tap/component/src/form-builder'

import '@/plugins/element'
import '@/plugins/icon'
Expand All @@ -26,7 +26,7 @@ import { installOEM } from '@/oem'
Vue.config.productionTip = false
Vue.use(VueClipboard)
Vue.use(LoadMore)
// Vue.use(FormBuilder)
Vue.use(FormBuilder)

Vue.mixin({
created() {
Expand Down
4 changes: 4 additions & 0 deletions apps/daas/src/views/user/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ export default {
emailVerified: true,
account_status: 1
}
this.createFormConfig.items.find(item => item.field === 'email').show = true
this.$nextTick(() => {
this.$refs.form.clearValidate()
})
Expand All @@ -583,6 +584,8 @@ export default {
edit(item) {
this.createDialogVisible = true
this.createFormConfig.items.find(item => item.field === 'email').show = !!item.email
this.createForm = {
id: item.id,
username: item.username,
Expand All @@ -601,6 +604,7 @@ export default {
},
// 保存用户表单
createNewUser() {
debugger
let that = this
this.$refs.form.validate(valid => {
Expand Down

0 comments on commit 53fcd1b

Please sign in to comment.