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

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)
this.history = []
this.parentSubList && (this.parentSubList = [])
this.$nextTick(() => this.$refs.form.resetFields())
this.$nextTick(() => this.$refs.form.clearValidate())
},
//附件操作

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

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

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

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

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

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

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

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

Loading…
Cancel
Save