Commit c048d5fa by zhangquan

bug修复

1 parent d1a47e6a
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchForm = { id: this.$route.params.id } this.searchForm = { taskId: this.$route.params.id }
resolve() resolve()
}) })
} }
......
...@@ -369,8 +369,13 @@ export default { ...@@ -369,8 +369,13 @@ export default {
if (res.data) { if (res.data) {
this.uploadFormObj.fileUrl = res.data this.uploadFormObj.fileUrl = res.data
this.$refs?.uploadRef?.$refs.formRef && this.$refs.uploadRef.$refs.formRef.clearValidate('fileUrl') this.$refs?.uploadRef?.$refs.formRef && this.$refs.uploadRef.$refs.formRef.clearValidate('fileUrl')
} else {
this.uploadFormObj.fileName = ''
} }
}) })
.catch(err => {
this.uploadFormObj.fileName = ''
})
.finally(end => { .finally(end => {
this.$refs.file.value = '' this.$refs.file.value = ''
}) })
...@@ -394,6 +399,8 @@ export default { ...@@ -394,6 +399,8 @@ export default {
this.uploadFormObj.fileName = '' this.uploadFormObj.fileName = ''
}, },
onOk() { onOk() {
const { fileUrl, fileName } = this.uploadFormObj
if (fileName && !fileUrl) return this.$message.error('文件还在上传,请稍后再点击确定')
this.$refs?.uploadRef?.$refs.formRef.validate(valid => { this.$refs?.uploadRef?.$refs.formRef.validate(valid => {
if (valid) { if (valid) {
let baseInfo = window.sessionStorage.getItem('SCRM_BASE_SESSION') || '{}' let baseInfo = window.sessionStorage.getItem('SCRM_BASE_SESSION') || '{}'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!