|
@ -228,6 +228,7 @@ export default { |
|
|
init () { |
|
|
init () { |
|
|
this.dataForm.id = this.$route.query.id |
|
|
this.dataForm.id = this.$route.query.id |
|
|
this.visible = true |
|
|
this.visible = true |
|
|
|
|
|
this.isAble = false |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['dataForm'].resetFields() |
|
|
this.$refs['dataForm'].resetFields() |
|
|
if (this.dataForm.id) { |
|
|
if (this.dataForm.id) { |
|
@ -333,7 +334,6 @@ export default { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.isAble = true |
|
|
this.isAble = true |
|
|
console.log(this.dataForm) |
|
|
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/dailyrecordinfo/', this.dataForm).then(({ data: res }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/workRecord/dailyrecordinfo/', this.dataForm).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
this.isAble = false |
|
|
this.isAble = false |
|
@ -344,7 +344,6 @@ export default { |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
duration: 500, |
|
|
duration: 500, |
|
|
onClose: () => { |
|
|
onClose: () => { |
|
|
this.isAble = false |
|
|
|
|
|
this.visible = false |
|
|
this.visible = false |
|
|
this.$emit('refreshDataList') |
|
|
this.$emit('refreshDataList') |
|
|
// 返回主列表 |
|
|
// 返回主列表 |
|
|