bug入库新增上传了附件,在编辑时,再次上传了一个附件,提交后,查看详情页面,附件为空
This commit is contained in:
@@ -255,7 +255,7 @@ export default {
|
|||||||
uploadSuccess(res, file, fileList) {
|
uploadSuccess(res, file, fileList) {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
// this.value += res.data.id + ','
|
// this.value += res.data.id + ','
|
||||||
this.$emit('input', this.value + res.data.id + ',')
|
this.$emit('input', this.value ? this.value + ',' : this.value+ res.data.id + ',')
|
||||||
this.$emit('success')
|
this.$emit('success')
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '文件上传成功',
|
message: '文件上传成功',
|
||||||
|
|||||||
@@ -876,8 +876,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getRule(){
|
getRule(){
|
||||||
if (this.formTongGuo.approvalOpinion !== '1') {
|
if (this.formTongGuo.approvalOpinion === '0') {
|
||||||
|
this.rules.commentText.required = false
|
||||||
this.$refs.formTongGuo.clearValidate('commentText')
|
this.$refs.formTongGuo.clearValidate('commentText')
|
||||||
|
} else {
|
||||||
|
this.rules.commentText.required = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHide (checkedIds, checkedData) {
|
popoverHide (checkedIds, checkedData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user