Commit 9340b607 by wangweidong

整体优化

parent ad090899
...@@ -259,12 +259,12 @@ export default { ...@@ -259,12 +259,12 @@ export default {
this.$refs.formObj.resetFields() this.$refs.formObj.resetFields()
if (this.$string(formObj).isEmpty()) { if (this.$string(formObj).isEmpty()) {
this.id = '' this.id = ''
this.modalTitle = '添加定依据' this.modalTitle = '添加定依据'
} else { } else {
this.formObj = formObj this.formObj = formObj
this.id = formObj.id this.id = formObj.id
console.log(this.formObj) console.log(this.formObj)
this.modalTitle = '编辑定依据' this.modalTitle = '编辑定依据'
} }
this.showModal = true this.showModal = true
}, },
......
...@@ -98,11 +98,11 @@ export default { ...@@ -98,11 +98,11 @@ export default {
this.$refs.formObj.resetFields() this.$refs.formObj.resetFields()
if (this.$string(formObj).isEmpty()) { if (this.$string(formObj).isEmpty()) {
this.id = '' this.id = ''
this.modalTitle = '添加定依据' this.modalTitle = '添加定依据'
} else { } else {
this.formObj = formObj this.formObj = formObj
this.id = formObj.id this.id = formObj.id
this.modalTitle = '编辑定依据' this.modalTitle = '编辑定依据'
} }
this.showModal = true this.showModal = true
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment