Commit 040a2f6b authored by jingnan's avatar jingnan 👀

履历本上传文件重复性校验

parent 5f330e67
...@@ -242,6 +242,11 @@ export default { ...@@ -242,6 +242,11 @@ export default {
} }
}, },
fileChange(fileList, scope) { fileChange(fileList, scope) {
const fileNameRepeat = this.tableData.find(r => r.fileName === fileList.name)
if (fileNameRepeat) {
this.$utils.showMessageError('同一附件不能重复上传!')
return false
}
this.showBtns = true this.showBtns = true
this.$set(scope.row, 'fileName', fileList.name) this.$set(scope.row, 'fileName', fileList.name)
this.$set(scope.row, 'fileListRaw', fileList.raw) this.$set(scope.row, 'fileListRaw', fileList.raw)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment