Commit c048d5fa by zhangquan

bug修复

1 parent d1a47e6a
......@@ -92,7 +92,7 @@ export default {
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = { id: this.$route.params.id }
this.searchForm = { taskId: this.$route.params.id }
resolve()
})
}
......
......@@ -369,8 +369,13 @@ export default {
if (res.data) {
this.uploadFormObj.fileUrl = res.data
this.$refs?.uploadRef?.$refs.formRef && this.$refs.uploadRef.$refs.formRef.clearValidate('fileUrl')
} else {
this.uploadFormObj.fileName = ''
}
})
.catch(err => {
this.uploadFormObj.fileName = ''
})
.finally(end => {
this.$refs.file.value = ''
})
......@@ -394,6 +399,8 @@ export default {
this.uploadFormObj.fileName = ''
},
onOk() {
const { fileUrl, fileName } = this.uploadFormObj
if (fileName && !fileUrl) return this.$message.error('文件还在上传,请稍后再点击确定')
this.$refs?.uploadRef?.$refs.formRef.validate(valid => {
if (valid) {
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!