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 86644451
authored
Mar 27, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-merchant-data
2 parents
3948c963
a1346f6e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
163 additions
and
96 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/views/customer/businessManagement/index.vue
src/api/businessGroup.js
View file @
8664445
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 @
8664445
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 @
8664445
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
}
business.create`
,
Channel
:
`
${
path
}
channel`
,
Type
:
`
${
path
}
type`
}
export
{
getBusinessList
methods
}
src/api/bussinessListApi.js
View file @
8664445
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 @
8664445
...
...
@@ -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 @
8664445
...
...
@@ -79,9 +79,31 @@
:width=
"diaWidth"
>
<span>
父商户信息:
</span>
<gl-table
:table=
"parentLevelTableData"
></gl-table>
<gl-table
:table=
"parentLevelTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in parentLevelTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<
template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "merchantName"'
>
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
<
template
v-else
>
{{
parentLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
<span>
子商户信息:
</span>
<gl-table
:table=
"childLevelTableData"
></gl-table>
<gl-table
:table=
"childLevelTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in childLevelTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<
template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "merchantName"'
>
<a
href=
"#"
@
click=
"goBusinessDetail(scope.scope.row)"
>
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
<
template
v-else
>
{{
childLevelTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
<span
slot=
"footer"
>
<el-button
type=
"primary"
...
...
@@ -280,8 +302,12 @@ export default {
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'业务管理列表'
])
},
goGroupDetail
(
row
)
{
console
.
log
(
row
.
merchantId
)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户详情'
],
{
merchantId
:
row
.
merchantId
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户分组详情'
],
{
merchantId
:
row
.
merchantId
})
},
goBusinessDetail
(
row
)
{
this
.
handleDetailClose
()
this
.
activeName
=
'first'
this
.
merchantId
=
row
.
merchantId
},
// 切换tab
handleClick
(
tab
,
event
)
{
...
...
@@ -302,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
()
...
...
@@ -331,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
...
...
@@ -343,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
...
...
@@ -355,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
]
...
...
@@ -389,7 +415,8 @@ export default {
margin
:
12px
;
}
.detail
a
{
color
:
#0000FF
;
/* color: #0000FF; */
text-decoration
:
underline
}
.detail-row
{
line-height
:
36px
;
...
...
src/views/customer/businessGroup/index.vue
View file @
8664445
...
...
@@ -154,10 +154,10 @@ export default {
label
:
'分组名称'
,
prop
:
'groupName'
},
{
label
:
'分组编号'
,
prop
:
'groupCode'
},
//
{
//
label: '分组编号',
//
prop: 'groupCode'
//
},
{
label
:
'业务编号'
,
prop
:
'businessCode'
...
...
@@ -193,7 +193,7 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
row
)
=>
{
this
.
detail
(
row
)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户分组详情'
],
{
groupId
:
row
.
id
}
)
}
}
]
...
...
@@ -202,8 +202,8 @@ export default {
}
},
mounted
()
{
this
.
g
etList
()
this
.
getBusinessList
()
this
.
loadingG
etList
()
//
this.getBusinessList()
},
methods
:
{
loadingGetList
()
{
...
...
@@ -223,10 +223,11 @@ export default {
getList
()
{
// const params = this.getParams()
const
params
=
{}
params
.
method
s
=
groupMethods
.
Search
params
.
method
=
groupMethods
.
Search
request
.
req
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
total
=
res
.
pagination
.
totalCount
this
.
tableData
.
data
=
res
.
groupDicts
this
.
tableLoading
=
false
...
...
@@ -238,7 +239,7 @@ export default {
},
getBusinessList
()
{
const
params
=
{}
params
.
method
s
=
groupMethods
.
BusinessList
params
.
method
=
groupMethods
.
BusinessList
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
@@ -276,7 +277,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 @
8664445
...
...
@@ -140,12 +140,16 @@ export default {
CityArea
},
watch
:
{
'searchParams.merchantId'
(
val
)
{
this
.
getList
()
}
},
// mixins: [NoticeMixin],
data
()
{
return
{
// searchCondition: {},
searchParams
:
{
groupId
:
null
,
merchantName
:
''
,
merchantId
:
null
,
merchantType
:
null
,
...
...
@@ -238,9 +242,15 @@ export default {
}
},
mounted
()
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
searchParams
.
merchantId
=
params
.
merchantId
})
this
.
getList
()
this
.
getMerchantType
()
this
.
eventBus
=
new
Vue
()
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
searchParams
.
groupId
=
params
.
groupId
})
},
methods
:
{
loadingGetList
()
{
...
...
@@ -263,7 +273,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
)
...
...
@@ -288,7 +298,7 @@ export default {
// 获取商户类型
getMerchantType
()
{
const
params
=
{}
params
.
method
s
=
groupDetailMethods
.
MerchantType
params
.
method
=
groupDetailMethods
.
MerchantType
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
@@ -335,7 +345,7 @@ export default {
}
},
merchantDetail
(
merchantId
)
{
console
.
log
(
merchantId
)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户详情'
],
{
merchantId
:
merchantId
}
)
}
}
}
...
...
src/views/customer/businessList/index.vue
View file @
8664445
...
...
@@ -134,7 +134,7 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'
业务管理
'
,
'*商户详情'
],
{
merchantId
:
rows
[
index
].
merchantId
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'
商户列表
'
,
'*商户详情'
],
{
merchantId
:
rows
[
index
].
merchantId
})
}
}]
}
...
...
@@ -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
...
...
src/views/customer/businessManagement/index.vue
View file @
8664445
...
...
@@ -21,37 +21,37 @@
>
<gl-form-item
label=
"业务名称"
prop=
"
businessName
"
prop=
"
confKey
"
>
<gl-input
v-model=
"form.
businessName
"
name=
"
businessName
"
v-model=
"form.
confKey
"
name=
"
confKey
"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('
businessName
')"
v-show=
"errorBags.has('
confKey
')"
class=
"error"
>
{{
errorBags
.
first
(
'
businessName
'
)
}}
</span>
>
{{
errorBags
.
first
(
'
confKey
'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"业务描述"
prop=
"
businessDescription
"
prop=
"
memo
"
>
<gl-input
v-model=
"form.
businessDescription
"
v-model=
"form.
memo
"
type=
"textarea"
:rows=
"4"
placeholder=
"请输入业务描述"
name=
"
businessDescription
"
name=
"
memo
"
data-vv-as=
"业务描述"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('
businessDescription
')"
v-show=
"errorBags.has('
memo
')"
class=
"error"
>
{{
errorBags
.
first
(
'
businessDescription
'
)
}}
</span>
>
{{
errorBags
.
first
(
'
memo
'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"地址"
>
<city-area
...
...
@@ -84,6 +84,8 @@
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
addBusiness
from
'./addBusiness'
import
notice
from
'@/common/notice'
import
{
businessManagenMethods
,
request
}
from
'@/api'
// import { jumpLink } from '../../../common/common.js'
export
default
{
name
:
'BusinessManagement'
,
...
...
@@ -98,64 +100,61 @@ export default {
border
:
true
,
align
:
'center'
,
data
:
[
{
businessId
:
1
,
businessName
:
'爱车保镖'
,
businessCode
:
'11'
,
businessDescription
:
' 基于车联网智能终端大数据为汽车金融提供资产保全的服务'
,
created
Time
:
'2018-03-16'
},
{
businessId
:
2
,
businessName
:
'爱车保镖'
,
businessCode
:
'11'
,
businessDescription
:
' 基于车联网智能终端大数据为汽车金融提供资产保全的服务'
,
created
Time
:
'2018-03-16'
}
//
{
//
businessId: 1,
// confKey
: '爱车保镖',
//
businessCode: '11',
// memo
: ' 基于车联网智能终端大数据为汽车金融提供资产保全的服务',
// create
Time: '2018-03-16'
//
}, {
//
businessId: 2,
// confKey
: '爱车保镖',
//
businessCode: '11',
// memo
: ' 基于车联网智能终端大数据为汽车金融提供资产保全的服务',
// create
Time: '2018-03-16'
//
}
],
column
:
[
{
label
:
'业务ID'
,
prop
:
'
business
Id'
prop
:
'
conf
Id'
},
{
label
:
'业务名称'
,
prop
:
'businessName'
},
{
label
:
'业务编号'
,
prop
:
'businessCode'
prop
:
'confKey'
},
{
label
:
'业务描述'
,
prop
:
'
businessDescription
'
prop
:
'
memo
'
},
{
label
:
'创建时间'
,
prop
:
'create
d
Time'
prop
:
'createTime'
}
]
,
]
// 详情
console
:
{
show
:
true
,
label
:
'操作'
,
width
:
'150'
,
fixed
:
'right'
,
button
:
[
{
type
:
'text'
,
label
:
'详情'
,
callback
:
(
index
,
rows
)
=>
{
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'商户详情'
],
{
id
:
rows
[
index
].
businessId
,
name
:
rows
[
index
].
businessName
})
}
}
]
}
//
console: {
//
show: true,
//
label: '操作',
//
width: '150',
//
fixed: 'right',
//
button: [
//
{
//
type: 'text',
//
label: '详情',
//
callback: (index, rows) => {
// this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '业务管理', '商户详情'], { id: rows[index].businessId, name: rows[index].confKey
})
//
}
//
}
//
]
//
}
},
form
:
{
businessName
:
''
,
businessDescription
:
''
,
confKey
:
''
,
memo
:
''
,
area
:
''
},
dialogFormVisible
:
false
,
rules
:
{
businessName
:
[{
required
:
true
}],
businessDescription
:
[{
required
:
true
}]
confKey
:
[{
required
:
true
}],
memo
:
[{
required
:
true
}]
},
// 商户分组组件数据
addDialogVisible
:
false
,
...
...
@@ -172,7 +171,7 @@ export default {
watch
:
{
dialogFormVisible
(
val
)
{
if
(
val
)
{
this
.
form
=
{
businessName
:
''
,
businessDescription
:
''
,
area
:
''
}
this
.
form
=
{
confKey
:
''
,
memo
:
''
,
area
:
''
}
}
else
{
this
.
eventBus
.
$emit
(
'reset'
)
this
.
$validator
.
errors
.
clear
()
...
...
@@ -185,6 +184,7 @@ export default {
},
mounted
()
{
this
.
eventBus
=
new
Vue
()
this
.
getList
()
},
methods
:
{
// 显示隐藏弹窗
...
...
@@ -198,9 +198,10 @@ export default {
this
.
$validator
.
validateAll
()
]).
then
((
result
)
=>
{
if
(
result
[
0
]
&&
result
[
1
])
{
console
.
log
(
'提交成功'
)
console
.
log
(
this
.
form
)
this
.
showDialog
()
this
.
businessCreate
()
// console.log('提交成功')
// console.log(this.form)
// this.showDialog()
}
})
},
...
...
@@ -212,6 +213,29 @@ export default {
},
getCityArea
(
params
)
{
console
.
log
(
params
)
},
// 接口请求
getList
()
{
const
params
=
{}
params
.
method
=
businessManagenMethods
.
Business
request
.
req
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
.
data
=
res
.
merchantDictList
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
},
businessCreate
()
{
const
params
=
this
.
$deep_clone
(
this
.
form
)
delete
params
.
area
console
.
log
(
params
)
params
.
method
=
businessManagenMethods
.
Create
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
this
.
showDialog
()
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
}
}
}
...
...
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