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 57511f8a
authored
Oct 26, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
07c2d150
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
src/api/modules/redenvelope.js
src/config/index.js
src/views/redEnvelope/components/RedEnvelopeRecord/index.vue
src/views/redEnvelope/components/RedEnvelopeWithdraw/index.vue
src/api/modules/redenvelope.js
View file @
57511f8
...
@@ -143,4 +143,12 @@ export default {
...
@@ -143,4 +143,12 @@ export default {
data
:
params
data
:
params
})
})
},
},
exportRedEnvelopeRecord
(
params
)
{
params
.
method
=
'marketing.api.activityRedEnvelope.record.export'
return
http
({
url
,
data
:
params
})
}
}
}
src/config/index.js
View file @
57511f8
...
@@ -20,6 +20,7 @@ export const fetchConfig = function(common) {
...
@@ -20,6 +20,7 @@ export const fetchConfig = function(common) {
// }
// }
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
let
params
=
{
moduleName
:
'outbound'
,
mockUrl
:
'https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
let
params
=
{
moduleName
:
'outbound'
,
mockUrl
:
'https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
console
.
log
(
common
.
utils
.
getConfig
(
params
))
return
common
.
utils
.
getConfig
(
params
)
return
common
.
utils
.
getConfig
(
params
)
}
}
export
const
config
=
{
export
const
config
=
{
...
...
src/views/redEnvelope/components/RedEnvelopeRecord/index.vue
View file @
57511f8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</el-button>
</el-button>
<el-button
<el-button
@
click=
"handleExport"
@
click=
"handleExport"
>
导出
11
>
导出
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
importRecord
from
'./importRecord.vue'
import
importRecord
from
'./importRecord.vue'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'RedEnvelopeConfig'
,
name
:
'RedEnvelopeConfig'
,
components
:
{
importRecord
},
components
:
{
importRecord
},
...
@@ -206,7 +206,12 @@ export default {
...
@@ -206,7 +206,12 @@ export default {
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleExport
()
{
const
params
=
this
.
getParams
()
this
.
$apis
.
redenvelope
.
exportRedEnvelopeRecord
(
params
).
then
(
res
=>
{
exportFn
(
res
)
})
},
getParams
()
{
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'showTime'
,
'showTime'
,
'startShowTime'
,
'endShowTime'
);
this
.
updateParams
(
params
,
'showTime'
,
'showTime'
,
'startShowTime'
,
'endShowTime'
);
...
...
src/views/redEnvelope/components/RedEnvelopeWithdraw/index.vue
View file @
57511f8
...
@@ -212,8 +212,9 @@ export default {
...
@@ -212,8 +212,9 @@ export default {
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'thirdCashOutTime'
,
'thirdCashOutTime'
,
'startThirdCashOutTime'
,
'endThirdCashOutTime'
);
this
.
updateParams
(
params
,
'thirdCashOutTime'
,
'thirdCashOutTime'
,
'startThirdCashOutTime'
,
'endThirdCashOutTime'
);
params
.
startThirdCashOutMoney
?
params
.
startThirdCashOutMoney
*=
100
:
' '
params
.
startThirdCashOutMoney
=
params
.
startThirdCashOutMoney
?
Math
.
round
(
params
.
startThirdCashOutMoney
*
100
)
:
''
params
.
endThirdCashOutMoney
?
params
.
endThirdCashOutMoney
*=
100
:
''
params
.
endThirdCashOutMoney
=
params
.
endThirdCashOutMoney
?
Math
.
round
(
params
.
endThirdCashOutMoney
*
100
)
:
''
;
console
.
log
(
params
)
return
params
return
params
},
},
handleExport
()
{
handleExport
()
{
...
...
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