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 c048d5fa
authored
Apr 01, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
d1a47e6a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
src/views/taskList/detail.vue
src/views/taskList/index.vue
src/views/taskList/detail.vue
View file @
c048d5f
...
@@ -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
=
{
i
d
:
this
.
$route
.
params
.
id
}
this
.
searchForm
=
{
taskI
d
:
this
.
$route
.
params
.
id
}
resolve
()
resolve
()
})
})
}
}
...
...
src/views/taskList/index.vue
View file @
c048d5f
...
@@ -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'
)
||
'{}'
...
...
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