|
|
@ -316,6 +316,9 @@ export default { |
|
|
|
toEdit() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.dialogVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
req.fetchBySid(this.sids[0]).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
@ -350,6 +353,7 @@ export default { |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
|
this.dialogVisible = false |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.formobj = { |
|
|
|
createBySid: '', |
|
|
|
remarks: '', |
|
|
|