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 27be62e9
authored
Oct 26, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.21.0_10' into 'v3.21.0'
修复bug See merge request
!14
2 parents
abf0260d
2681b7dc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
5 deletions
src/api/modules/redenvelope.js
src/config/index.js
src/views/redEnvelope/components/RedEnvelopeRecord/importRecord.vue
src/views/redEnvelope/components/RedEnvelopeRecord/index.vue
src/views/redEnvelope/components/RedEnvelopeWithdraw/index.vue
src/api/modules/redenvelope.js
View file @
27be62e
...
@@ -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 @
27be62e
...
@@ -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/importRecord.vue
View file @
27be62e
...
@@ -85,7 +85,7 @@ export default {
...
@@ -85,7 +85,7 @@ export default {
size
:
'small'
,
size
:
'small'
,
channelList
:
[],
channelList
:
[],
recordForm
:
{
recordForm
:
{
importType
:
3
,
importType
:
1
,
exportUrl
:
''
exportUrl
:
''
},
},
configRules
:
{
configRules
:
{
...
@@ -108,6 +108,11 @@ export default {
...
@@ -108,6 +108,11 @@ export default {
},
},
mounted
()
{
mounted
()
{
},
},
watch
:{
'recordForm.importType'
(){
this
.
fileError
=
false
}
},
computed
:{
computed
:{
downloadLink
(){
downloadLink
(){
const
links
=
{
const
links
=
{
...
...
src/views/redEnvelope/components/RedEnvelopeRecord/index.vue
View file @
27be62e
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
@
click=
"showImportRecord = true"
@
click=
"showImportRecord = true"
>
导入记录
>
导入记录
</el-button>
</el-button>
<el-button
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -50,7 +54,7 @@
...
@@ -50,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
},
...
@@ -202,7 +206,12 @@ export default {
...
@@ -202,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 @
27be62e
...
@@ -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