|
@ -251,6 +251,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
toAdd() { |
|
|
toAdd() { |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getNumber(val, limit) { |
|
|
getNumber(val, limit) { |
|
|
val = val.replace(/[^0-9.]/g, '') // 保留数字 |
|
|
val = val.replace(/[^0-9.]/g, '') // 保留数字 |
|
@ -285,11 +288,15 @@ export default { |
|
|
handleConfirm() { |
|
|
handleConfirm() { |
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
if (resp.success) { |
|
|
if (valid) { |
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
this.getList() |
|
|
if (resp.success) { |
|
|
this.handleClose() |
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
|
|
this.getList() |
|
|
|
|
|
this.handleClose() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|