Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
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 e3ca96ca
authored
Mar 26, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
a8ecc4c1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
28 deletions
src/api/businessGroup.js
src/api/businessGroupDetail.js
src/api/businessManagement.js
src/api/bussinessListApi.js
src/api/index.js
src/views/customer/businessDetails/index.vue
src/views/customer/businessGroup/index.vue
src/views/customer/businessGroupDetail/index.vue
src/views/customer/businessList/index.vue
src/api/businessGroup.js
View file @
e3ca96c
const
path
=
'
/
glsx.accounts.admin.merchant.group.'
const
businessPath
=
'
/
glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.group.'
const
businessPath
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
Search
:
`
${
path
}
dict`
,
Create
:
`
${
path
}
create`
,
...
...
src/api/businessGroupDetail.js
View file @
e3ca96c
const
path
=
'
/
glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
Search
:
`
${
path
}
group.search`
,
MerchantType
:
`
${
path
}
dict.type`
...
...
src/api/businessManagement.js
View file @
e3ca96c
import
{
GlAxios
}
from
'glsx-vue-common'
const
path
=
'glsx.accounts.admin.merchant'
const
__dictBusiness
=
`
${
path
}
.dict.business`
const
getBusinessList
=
{
p
:
[
__dictBusiness
],
req
:
params
=>
GlAxios
.
get
(
__dictBusiness
,
{
params
})
const
path
=
'glsx.accounts.admin.merchant.dict.'
const
methods
=
{
Business
:
`
${
path
}
business`
,
Create
:
`
${
path
}
create`
,
Channel
:
`
${
path
}
channel`
,
Type
:
`
${
path
}
type`
}
export
{
getBusinessList
methods
}
src/api/bussinessListApi.js
View file @
e3ca96c
const
path
=
'
/
glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
Search
:
`
${
path
}
search`
,
Detail
:
`
${
path
}
detail`
,
...
...
src/api/index.js
View file @
e3ca96c
...
...
@@ -12,16 +12,25 @@ import {
import
{
methods
as
groupDetailMethods
}
from
'./businessGroupDetail'
import
{
methods
as
businessManagenMethods
}
from
'./businessManagement'
const
request
=
{
req
:
params
=>
{
params
.
source
=
'glsx-oss-merchant-data'
const
url
=
process
.
env
.
NODE_ENV
===
'production'
?
'router'
:
params
.
methods
return
GlAxios
.
get
(
url
,
{
'params'
:
sign
(
params
)
})
params
.
app_key
=
'48e5e13229b82c1b4e6e8c96151f0637'
params
.
timestamp
=
new
Date
().
getTime
()
params
.
v
=
'1.0.0'
params
.
format
=
'json'
// const url = process.env.NODE_ENV === 'production' ? 'router' : params.methods
// return GlAxios.get(url, { 'params': sign(params) })
return
GlAxios
.
get
(
'router'
,
{
'params'
:
sign
(
params
)
})
}
}
export
{
bizMethods
,
request
,
groupMethods
,
groupDetailMethods
groupDetailMethods
,
businessManagenMethods
}
src/views/customer/businessDetails/index.vue
View file @
e3ca96c
...
...
@@ -328,7 +328,7 @@ export default {
// 基本信息
getBasicInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Detail
params
.
method
=
bizMethods
.
Detail
request
.
req
(
params
).
then
(
res
=>
{
this
.
merchantInfo
=
res
this
.
assignBasicInfo
()
...
...
@@ -357,7 +357,7 @@ export default {
// 员工信息
getStaffInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Personal
params
.
method
=
bizMethods
.
Personal
request
.
req
(
params
).
then
(
res
=>
{
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
...
...
@@ -369,7 +369,7 @@ export default {
// 分组信息
getGroupInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Group
params
.
method
=
bizMethods
.
Group
request
.
req
(
params
).
then
(
res
=>
{
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
...
...
@@ -381,7 +381,7 @@ export default {
// 分组信息-详情
getGroupLevelInfo
(
groupName
)
{
const
params
=
({
merchantId
:
this
.
merchantId
,
groupId
:
groupName
})
params
.
method
s
=
bizMethods
.
GroupLevel
params
.
method
=
bizMethods
.
GroupLevel
request
.
req
(
params
).
then
(
res
=>
{
console
.
log
([
res
.
parentMerchantLevel
])
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
]
...
...
src/views/customer/businessGroup/index.vue
View file @
e3ca96c
...
...
@@ -223,7 +223,7 @@ export default {
getList
()
{
// const params = this.getParams()
const
params
=
{}
params
.
method
s
=
groupMethods
.
Search
params
.
method
=
groupMethods
.
Search
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
@@ -238,7 +238,7 @@ export default {
},
getBusinessList
()
{
const
params
=
{}
params
.
method
s
=
groupMethods
.
BusinessList
params
.
method
=
groupMethods
.
BusinessList
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
@@ -276,7 +276,7 @@ export default {
},
createGroup
(
pas
)
{
const
params
=
pas
params
.
method
s
=
groupMethods
.
Create
params
.
method
=
groupMethods
.
Create
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
e3ca96c
...
...
@@ -269,7 +269,7 @@ export default {
this
.
searchParams
.
endTime
=
this
.
times
[
1
].
format
(
'yyyy-MM-dd HH:mm:ss'
)
}
const
params
=
this
.
getParams
()
params
.
method
s
=
groupDetailMethods
.
Search
params
.
method
=
groupDetailMethods
.
Search
console
.
log
(
params
)
request
.
req
(
params
)
...
...
@@ -294,7 +294,7 @@ export default {
// 获取商户类型
getMerchantType
()
{
const
params
=
{}
params
.
method
s
=
groupDetailMethods
.
MerchantType
params
.
method
=
groupDetailMethods
.
MerchantType
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
src/views/customer/businessList/index.vue
View file @
e3ca96c
...
...
@@ -155,7 +155,7 @@ export default {
// 接口请求-start
getList
()
{
const
params
=
this
.
getParams
()
params
.
method
s
=
bizMethods
.
Search
params
.
method
=
bizMethods
.
Search
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
totalCount
=
res
.
pagination
.
totalCount
...
...
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