Commit 15fe4f45 by zhangquan

bug修复

1 parent c048d5fa
......@@ -14,7 +14,8 @@ const importDateApi = params => {
return http({
url,
method: 'POST',
data: params
data: params,
returnAll: true
})
}
const getDetailApi = params => {
......
......@@ -43,10 +43,10 @@ export const detailShelfStatusEnum = {
},
1: {
label: '已上架',
color: '#FDB757'
color: '#2CCA74'
},
2: {
label: '上架失败',
color: '#2CCA74'
color: '#FDB757'
}
}
......@@ -400,7 +400,13 @@ export default {
},
onOk() {
const { fileUrl, fileName } = this.uploadFormObj
if (fileName && !fileUrl) return this.$message.error('文件还在上传,请稍后再点击确定')
if (fileName && !fileUrl) {
return this.$message({
message: `文件还在上传,请稍后再点击确定`,
type: `error`,
customClass: 'msgHierarchy'
})
}
this.$refs?.uploadRef?.$refs.formRef.validate(valid => {
if (valid) {
let baseInfo = window.sessionStorage.getItem('SCRM_BASE_SESSION') || '{}'
......@@ -414,11 +420,15 @@ export default {
params.taskId = id
}
this.$apis.task.importDateApi(params).then(res => {
if (res) {
if (res.code == '0') {
this.handleClose()
this.$message.success('操作成功')
this.handleOk()
}
this.$message({
message: `${res.code == '0' ? '操作成功' : res.message}`,
type: `${res.code == '0' ? 'success' : 'error'}`,
customClass: 'msgHierarchy'
})
})
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!