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
Show 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
path
=
'glsx.accounts.admin.merchant.group.'
const
businessPath
=
'
/
glsx.accounts.admin.merchant.'
const
businessPath
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
const
methods
=
{
Search
:
`
${
path
}
dict`
,
Search
:
`
${
path
}
dict`
,
Create
:
`
${
path
}
create`
,
Create
:
`
${
path
}
create`
,
...
...
src/api/businessGroupDetail.js
View file @
e3ca96c
const
path
=
'
/
glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
const
methods
=
{
Search
:
`
${
path
}
group.search`
,
Search
:
`
${
path
}
group.search`
,
MerchantType
:
`
${
path
}
dict.type`
MerchantType
:
`
${
path
}
dict.type`
...
...
src/api/businessManagement.js
View file @
e3ca96c
import
{
const
path
=
'glsx.accounts.admin.merchant.dict.'
GlAxios
const
methods
=
{
}
from
'glsx-vue-common'
Business
:
`
${
path
}
business`
,
const
path
=
'glsx.accounts.admin.merchant'
Create
:
`
${
path
}
create`
,
const
__dictBusiness
=
`
${
path
}
.dict.business`
Channel
:
`
${
path
}
channel`
,
Type
:
`
${
path
}
type`
const
getBusinessList
=
{
p
:
[
__dictBusiness
],
req
:
params
=>
GlAxios
.
get
(
__dictBusiness
,
{
params
})
}
}
export
{
export
{
getBusinessList
methods
}
}
src/api/bussinessListApi.js
View file @
e3ca96c
const
path
=
'
/
glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
const
methods
=
{
Search
:
`
${
path
}
search`
,
Search
:
`
${
path
}
search`
,
Detail
:
`
${
path
}
detail`
,
Detail
:
`
${
path
}
detail`
,
...
...
src/api/index.js
View file @
e3ca96c
...
@@ -12,16 +12,25 @@ import {
...
@@ -12,16 +12,25 @@ import {
import
{
import
{
methods
as
groupDetailMethods
methods
as
groupDetailMethods
}
from
'./businessGroupDetail'
}
from
'./businessGroupDetail'
import
{
methods
as
businessManagenMethods
}
from
'./businessManagement'
const
request
=
{
const
request
=
{
req
:
params
=>
{
req
:
params
=>
{
params
.
source
=
'glsx-oss-merchant-data'
params
.
source
=
'glsx-oss-merchant-data'
const
url
=
process
.
env
.
NODE_ENV
===
'production'
?
'router'
:
params
.
methods
params
.
app_key
=
'48e5e13229b82c1b4e6e8c96151f0637'
return
GlAxios
.
get
(
url
,
{
'params'
:
sign
(
params
)
})
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
{
export
{
bizMethods
,
bizMethods
,
request
,
request
,
groupMethods
,
groupMethods
,
groupDetailMethods
groupDetailMethods
,
businessManagenMethods
}
}
src/views/customer/businessDetails/index.vue
View file @
e3ca96c
...
@@ -328,7 +328,7 @@ export default {
...
@@ -328,7 +328,7 @@ export default {
// 基本信息
// 基本信息
getBasicInfo
()
{
getBasicInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Detail
params
.
method
=
bizMethods
.
Detail
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
merchantInfo
=
res
this
.
merchantInfo
=
res
this
.
assignBasicInfo
()
this
.
assignBasicInfo
()
...
@@ -357,7 +357,7 @@ export default {
...
@@ -357,7 +357,7 @@ export default {
// 员工信息
// 员工信息
getStaffInfo
()
{
getStaffInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Personal
params
.
method
=
bizMethods
.
Personal
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
this
.
IdChange
[
1
]
=
0
...
@@ -369,7 +369,7 @@ export default {
...
@@ -369,7 +369,7 @@ export default {
// 分组信息
// 分组信息
getGroupInfo
()
{
getGroupInfo
()
{
const
params
=
({
merchantId
:
this
.
merchantId
})
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
method
s
=
bizMethods
.
Group
params
.
method
=
bizMethods
.
Group
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
this
.
IdChange
[
2
]
=
0
...
@@ -381,7 +381,7 @@ export default {
...
@@ -381,7 +381,7 @@ export default {
// 分组信息-详情
// 分组信息-详情
getGroupLevelInfo
(
groupName
)
{
getGroupLevelInfo
(
groupName
)
{
const
params
=
({
merchantId
:
this
.
merchantId
,
groupId
:
groupName
})
const
params
=
({
merchantId
:
this
.
merchantId
,
groupId
:
groupName
})
params
.
method
s
=
bizMethods
.
GroupLevel
params
.
method
=
bizMethods
.
GroupLevel
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
console
.
log
([
res
.
parentMerchantLevel
])
console
.
log
([
res
.
parentMerchantLevel
])
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
]
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
]
...
...
src/views/customer/businessGroup/index.vue
View file @
e3ca96c
...
@@ -223,7 +223,7 @@ export default {
...
@@ -223,7 +223,7 @@ export default {
getList
()
{
getList
()
{
// const params = this.getParams()
// const params = this.getParams()
const
params
=
{}
const
params
=
{}
params
.
method
s
=
groupMethods
.
Search
params
.
method
=
groupMethods
.
Search
request
request
.
req
(
params
)
.
req
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -238,7 +238,7 @@ export default {
...
@@ -238,7 +238,7 @@ export default {
},
},
getBusinessList
()
{
getBusinessList
()
{
const
params
=
{}
const
params
=
{}
params
.
method
s
=
groupMethods
.
BusinessList
params
.
method
=
groupMethods
.
BusinessList
request
request
.
req
(
params
)
.
req
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
},
},
createGroup
(
pas
)
{
createGroup
(
pas
)
{
const
params
=
pas
const
params
=
pas
params
.
method
s
=
groupMethods
.
Create
params
.
method
=
groupMethods
.
Create
request
request
.
req
(
params
)
.
req
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
e3ca96c
...
@@ -269,7 +269,7 @@ export default {
...
@@ -269,7 +269,7 @@ export default {
this
.
searchParams
.
endTime
=
this
.
times
[
1
].
format
(
'yyyy-MM-dd HH:mm:ss'
)
this
.
searchParams
.
endTime
=
this
.
times
[
1
].
format
(
'yyyy-MM-dd HH:mm:ss'
)
}
}
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
params
.
method
s
=
groupDetailMethods
.
Search
params
.
method
=
groupDetailMethods
.
Search
console
.
log
(
params
)
console
.
log
(
params
)
request
request
.
req
(
params
)
.
req
(
params
)
...
@@ -294,7 +294,7 @@ export default {
...
@@ -294,7 +294,7 @@ export default {
// 获取商户类型
// 获取商户类型
getMerchantType
()
{
getMerchantType
()
{
const
params
=
{}
const
params
=
{}
params
.
method
s
=
groupDetailMethods
.
MerchantType
params
.
method
=
groupDetailMethods
.
MerchantType
request
request
.
req
(
params
)
.
req
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
src/views/customer/businessList/index.vue
View file @
e3ca96c
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
// 接口请求-start
// 接口请求-start
getList
()
{
getList
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
params
.
method
s
=
bizMethods
.
Search
params
.
method
=
bizMethods
.
Search
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
ListTableData
.
data
=
res
.
merchants
this
.
totalCount
=
res
.
pagination
.
totalCount
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