修复编辑框关闭再打开数据未还原的问题

master
toesbieya 6 years ago
parent 70cff0bf54
commit 8c8a7b4aca
  1. 2
      vue/src/mixins/bizDocumentDialogMixin.js
  2. 2
      vue/src/views/system/category/components/Form.vue
  3. 2
      vue/src/views/system/customer/EditDialog.vue
  4. 3
      vue/src/views/system/department/components/EditDialog.vue
  5. 6
      vue/src/views/system/resource/EditDialog.vue
  6. 3
      vue/src/views/system/role/components/EditDialog.vue
  7. 2
      vue/src/views/system/supplier/EditDialog.vue
  8. 3
      vue/src/views/system/user/components/EditDialog.vue
  9. 2
      vue/src/views/userCenter/components/Account.vue

@ -269,7 +269,7 @@ export default {
resetObj(this.form) resetObj(this.form)
this.history = [] this.history = []
this.parentSubList && (this.parentSubList = []) this.parentSubList && (this.parentSubList = [])
this.$nextTick(() => this.$refs.form.resetFields()) this.$nextTick(() => this.$refs.form.clearValidate())
}, },
//附件操作 //附件操作

@ -121,7 +121,7 @@
cancel() { cancel() {
this.type = 'none' this.type = 'none'
this.clearForm() this.clearForm()
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
clearForm() { clearForm() {
this.form.id = null this.form.id = null

@ -130,7 +130,7 @@
clearForm() { clearForm() {
resetObj(this.form) resetObj(this.form)
this.form.status = 1 this.form.status = 1
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)

@ -87,7 +87,6 @@
methods: { methods: {
open() { open() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form.resetFields()
if (this.type === 'edit') { if (this.type === 'edit') {
Object Object
.keys(this.data) .keys(this.data)
@ -101,7 +100,7 @@
this.form.pid = null this.form.pid = null
this.form.name = null this.form.name = null
this.form.status = 1 this.form.status = 1
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)

@ -58,14 +58,12 @@
}, },
methods: { methods: {
open() { open() {
this.$nextTick(() => { this.$nextTick(() => mergeObj(this.form, this.data))
this.$refs.form.resetFields()
mergeObj(this.form, this.data)
})
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)
resetObj(this.form) resetObj(this.form)
this.$nextTick(() => this.$refs.form.clearValidate())
}, },
confirm() { confirm() {
if (this.loading) return if (this.loading) return

@ -105,7 +105,6 @@
}, },
open() { open() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form.resetFields()
if (this.type === 'edit') { if (this.type === 'edit') {
mergeObj(this.form, this.data) mergeObj(this.form, this.data)
this.$refs.tree.setCheckedKeys(this.form.resource_id) this.$refs.tree.setCheckedKeys(this.form.resource_id)
@ -118,7 +117,7 @@
this.form.status = 1 this.form.status = 1
this.form.resource_id = [] this.form.resource_id = []
this.$refs.tree.setCheckedKeys([]) this.$refs.tree.setCheckedKeys([])
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)

@ -129,7 +129,7 @@
clearForm() { clearForm() {
resetObj(this.form) resetObj(this.form)
this.form.status = 1 this.form.status = 1
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)

@ -97,7 +97,6 @@
methods: { methods: {
open() { open() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form.resetFields()
if (this.type === 'edit') { if (this.type === 'edit') {
Object Object
.keys(this.data) .keys(this.data)
@ -111,7 +110,7 @@
this.form.role = null this.form.role = null
this.form.role_name = null this.form.role_name = null
this.form.status = 1 this.form.status = 1
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
cancel() { cancel() {
this.$emit('input', false) this.$emit('input', false)

@ -49,7 +49,7 @@
clearForm() { clearForm() {
this.form.old_pwd = null this.form.old_pwd = null
this.form.new_pwd = null this.form.new_pwd = null
this.$refs.form.resetFields() this.$nextTick(() => this.$refs.form.clearValidate())
}, },
submit() { submit() {
if (this.loading) return if (this.loading) return

Loading…
Cancel
Save