Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 15fe4f45
authored
Apr 01, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
c048d5fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
src/api/modules/task.js
src/views/taskList/constant.js
src/views/taskList/index.vue
src/api/modules/task.js
View file @
15fe4f4
...
...
@@ -14,7 +14,8 @@ const importDateApi = params => {
return
http
({
url
,
method
:
'POST'
,
data
:
params
data
:
params
,
returnAll
:
true
})
}
const
getDetailApi
=
params
=>
{
...
...
src/views/taskList/constant.js
View file @
15fe4f4
...
...
@@ -43,10 +43,10 @@ export const detailShelfStatusEnum = {
},
1
:
{
label
:
'已上架'
,
color
:
'#
FDB757
'
color
:
'#
2CCA74
'
},
2
:
{
label
:
'上架失败'
,
color
:
'#
2CCA74
'
color
:
'#
FDB757
'
}
}
src/views/taskList/index.vue
View file @
15fe4f4
...
...
@@ -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'
})
})
}
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment