Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 57d1ceff
authored
Oct 09, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加失败列表下载
1 parent
c3239549
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
8 deletions
src/views/redEnvelope/components/RedEnvelopeConfig/edit.vue
src/views/redEnvelope/components/RedEnvelopeRecord/importRecord.vue
src/views/redEnvelope/components/RedEnvelopeConfig/edit.vue
View file @
57d1cef
...
@@ -112,6 +112,15 @@
...
@@ -112,6 +112,15 @@
<div
class=
"el-icon-success"
></div>
<div
class=
"el-icon-success"
></div>
</div>
</div>
</
template
>
</
template
>
<
template
v-if=
"fileError"
>
<div
class=
"file-info flex error"
>
<a
:href=
"fileError"
target=
"_blank"
>
下载失败列表
</a>
<div
class=
"el-icon-error"
></div>
</div>
</
template
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -187,7 +196,8 @@ export default {
...
@@ -187,7 +196,8 @@ export default {
],
],
},
},
merchantList
:
[],
merchantList
:
[],
fileName
:
''
fileName
:
''
,
fileError
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -233,6 +243,7 @@ export default {
...
@@ -233,6 +243,7 @@ export default {
handleClose
()
{
handleClose
()
{
this
.
configForm
=
this
.
$options
.
data
.
call
(
this
).
configForm
this
.
configForm
=
this
.
$options
.
data
.
call
(
this
).
configForm
this
.
disabled
=
false
this
.
disabled
=
false
this
.
fileError
=
''
this
.
$emit
(
'update:editObj'
,
{})
this
.
$emit
(
'update:editObj'
,
{})
},
},
handleConfirm
()
{
handleConfirm
()
{
...
@@ -274,7 +285,16 @@ export default {
...
@@ -274,7 +285,16 @@ export default {
this
.
$refs
.
file
.
value
=
''
this
.
$refs
.
file
.
value
=
''
const
res
=
await
this
.
$apis
.
redenvelope
[
target
](
params
)
const
res
=
await
this
.
$apis
.
redenvelope
[
target
](
params
)
if
(
res
)
{
if
(
res
)
{
if
(
res
.
failCount
>
0
)
return
this
.
$message
.
error
(
'红包链接导入失败'
)
if
(
res
.
failCount
>
0
)
{
this
.
fileError
=
res
.
errorUrl
this
.
$message
.
error
(
'红包链接导入失败'
)
return
}
this
.
$message
({
message
:
'导入成功'
,
type
:
'success'
})
this
.
fileError
=
''
this
.
configForm
.
exportUrl
=
url
this
.
configForm
.
exportUrl
=
url
this
.
fileName
=
name
this
.
fileName
=
name
}
}
...
@@ -292,7 +312,6 @@ export default {
...
@@ -292,7 +312,6 @@ export default {
.activity-link
{
.activity-link
{
display
:
flex
;
display
:
flex
;
width
:
500px
;
width
:
500px
;
cursor
:
pointer
;
.upload-btn
{
.upload-btn
{
position
:
relative
;
position
:
relative
;
width
:
110px
;
width
:
110px
;
...
@@ -311,17 +330,24 @@ export default {
...
@@ -311,17 +330,24 @@ export default {
font-size
:
0px
;
font-size
:
0px
;
}
}
}
}
a
{
a
,
.error
{
margin-left
:
8px
;
margin-left
:
8px
;
color
:
#5850ff
;
color
:
#5850ff
;
font-size
:
14px
;
font-size
:
14px
;
cursor
:
pointer
;
}
}
.file-info
{
.file-info
{
margin-left
:
8px
;
margin-left
:
8px
;
.el-icon-success
{
.el-icon-success
{
margin-left
:
8px
;
margin-left
:
8px
;
color
:
#67c23a
;
color
:
#67c23a
;
}
}
.el-icon-error
{
margin-left
:
8px
;
color
:
red
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/redEnvelope/components/RedEnvelopeRecord/importRecord.vue
View file @
57d1cef
...
@@ -56,6 +56,15 @@
...
@@ -56,6 +56,15 @@
<div
class=
"el-icon-success"
></div>
<div
class=
"el-icon-success"
></div>
</div>
</div>
</
template
>
</
template
>
<
template
v-if=
"fileError"
>
<div
class=
"file-info flex error"
>
<a
:href=
"fileError"
target=
"_blank"
>
下载失败列表
</a>
<div
class=
"el-icon-error"
></div>
</div>
</
template
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -93,7 +102,8 @@ export default {
...
@@ -93,7 +102,8 @@ export default {
}
}
],
],
},
},
fileName
:
''
,
fileError
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -101,6 +111,7 @@ export default {
...
@@ -101,6 +111,7 @@ export default {
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
recordForm
=
this
.
$options
.
data
.
call
(
this
).
recordForm
this
.
recordForm
=
this
.
$options
.
data
.
call
(
this
).
recordForm
this
.
fileError
=
''
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
},
},
handleConfirm
()
{
handleConfirm
()
{
...
@@ -131,7 +142,16 @@ export default {
...
@@ -131,7 +142,16 @@ export default {
this
.
$refs
.
file
.
value
=
''
this
.
$refs
.
file
.
value
=
''
const
res
=
await
this
.
$apis
.
redenvelope
.
checkImport
({
importType
,
exportUrl
:
url
})
const
res
=
await
this
.
$apis
.
redenvelope
.
checkImport
({
importType
,
exportUrl
:
url
})
if
(
res
)
{
if
(
res
)
{
if
(
res
.
failCount
>
0
)
return
this
.
$message
.
error
(
'红包记录导入失败'
)
if
(
res
.
failCount
>
0
)
{
this
.
fileError
=
res
.
errorUrl
this
.
$message
.
error
(
'红包记录导入失败'
)
return
}
this
.
$message
({
message
:
'导入成功'
,
type
:
'success'
})
this
.
fileError
=
''
this
.
recordForm
.
exportUrl
=
url
this
.
recordForm
.
exportUrl
=
url
this
.
fileName
=
name
this
.
fileName
=
name
}
}
...
@@ -147,7 +167,6 @@ export default {
...
@@ -147,7 +167,6 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.activity-link
{
.activity-link
{
display
:
flex
;
display
:
flex
;
cursor
:
pointer
;
width
:
500px
;
width
:
500px
;
.upload-btn
{
.upload-btn
{
position
:
relative
;
position
:
relative
;
...
@@ -167,10 +186,12 @@ export default {
...
@@ -167,10 +186,12 @@ export default {
font-size
:
0px
;
font-size
:
0px
;
}
}
}
}
a
{
a
,
.error
{
margin-left
:
8px
;
margin-left
:
8px
;
color
:
#5850ff
;
color
:
#5850ff
;
font-size
:
14px
;
font-size
:
14px
;
cursor
:
pointer
;
}
}
.file-info
{
.file-info
{
margin-left
:
8px
;
margin-left
:
8px
;
...
@@ -178,6 +199,10 @@ export default {
...
@@ -178,6 +199,10 @@ export default {
margin-left
:
8px
;
margin-left
:
8px
;
color
:
#67c23a
;
color
:
#67c23a
;
}
}
.el-icon-error
{
margin-left
:
8px
;
color
:
red
;
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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