|
@ -850,7 +850,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.initData() |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
initData() { |
|
|
initData() { |
|
@ -880,6 +880,7 @@ |
|
|
|
|
|
|
|
|
this.hideUploadBtn = this.imgList.length != 0 |
|
|
this.hideUploadBtn = this.imgList.length != 0 |
|
|
console.log('this.hideUploadBtn', this.hideUploadBtn) |
|
|
console.log('this.hideUploadBtn', this.hideUploadBtn) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
saveOrUpdate() { |
|
|
saveOrUpdate() { |
|
@ -934,6 +935,7 @@ |
|
|
this.$emit('doback') |
|
|
this.$emit('doback') |
|
|
}, |
|
|
}, |
|
|
showAdd() { |
|
|
showAdd() { |
|
|
|
|
|
this.initData() |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
@ -946,6 +948,7 @@ |
|
|
return index + 1 |
|
|
return index + 1 |
|
|
}, |
|
|
}, |
|
|
showEdit(row) { |
|
|
showEdit(row) { |
|
|
|
|
|
this.initData() |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
this.$refs['form_obj'].clearValidate() |
|
|
}) |
|
|
}) |
|
|