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 7dec7994
authored
Mar 27, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
e3ca96ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
61 deletions
src/api/businessManagement.js
src/views/customer/businessGroup/index.vue
src/views/customer/businessManagement/index.vue
src/api/businessManagement.js
View file @
7dec799
const
path
=
'glsx.accounts.admin.merchant.dict.'
const
path
=
'glsx.accounts.admin.merchant.dict.'
const
methods
=
{
const
methods
=
{
Business
:
`
${
path
}
business`
,
Business
:
`
${
path
}
business`
,
Create
:
`
${
path
}
create`
,
Create
:
`
${
path
}
business.
create`
,
Channel
:
`
${
path
}
channel`
,
Channel
:
`
${
path
}
channel`
,
Type
:
`
${
path
}
type`
Type
:
`
${
path
}
type`
}
}
...
...
src/views/customer/businessGroup/index.vue
View file @
7dec799
...
@@ -154,10 +154,10 @@ export default {
...
@@ -154,10 +154,10 @@ export default {
label
:
'分组名称'
,
label
:
'分组名称'
,
prop
:
'groupName'
prop
:
'groupName'
},
},
{
//
{
label
:
'分组编号'
,
//
label: '分组编号',
prop
:
'groupCode'
//
prop: 'groupCode'
},
//
},
{
{
label
:
'业务编号'
,
label
:
'业务编号'
,
prop
:
'businessCode'
prop
:
'businessCode'
...
@@ -202,8 +202,8 @@ export default {
...
@@ -202,8 +202,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
g
etList
()
this
.
loadingG
etList
()
this
.
getBusinessList
()
//
this.getBusinessList()
},
},
methods
:
{
methods
:
{
loadingGetList
()
{
loadingGetList
()
{
...
@@ -227,6 +227,7 @@ export default {
...
@@ -227,6 +227,7 @@ export default {
request
request
.
req
(
params
)
.
req
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
total
=
res
.
pagination
.
totalCount
this
.
total
=
res
.
pagination
.
totalCount
this
.
tableData
.
data
=
res
.
groupDicts
this
.
tableData
.
data
=
res
.
groupDicts
this
.
tableLoading
=
false
this
.
tableLoading
=
false
...
...
src/views/customer/businessManagement/index.vue
View file @
7dec799
...
@@ -21,37 +21,37 @@
...
@@ -21,37 +21,37 @@
>
>
<gl-form-item
<gl-form-item
label=
"业务名称"
label=
"业务名称"
prop=
"
businessName
"
prop=
"
confKey
"
>
>
<gl-input
<gl-input
v-model=
"form.
businessName
"
v-model=
"form.
confKey
"
name=
"
businessName
"
name=
"
confKey
"
placeholder=
"请输入业务名称"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
v-validate=
"'required'"
></gl-input>
></gl-input>
<span
<span
v-show=
"errorBags.has('
businessName
')"
v-show=
"errorBags.has('
confKey
')"
class=
"error"
class=
"error"
>
{{
errorBags
.
first
(
'
businessName
'
)
}}
</span>
>
{{
errorBags
.
first
(
'
confKey
'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
<gl-form-item
label=
"业务描述"
label=
"业务描述"
prop=
"
businessDescription
"
prop=
"
memo
"
>
>
<gl-input
<gl-input
v-model=
"form.
businessDescription
"
v-model=
"form.
memo
"
type=
"textarea"
type=
"textarea"
:rows=
"4"
:rows=
"4"
placeholder=
"请输入业务描述"
placeholder=
"请输入业务描述"
name=
"
businessDescription
"
name=
"
memo
"
data-vv-as=
"业务描述"
data-vv-as=
"业务描述"
v-validate=
"'required'"
v-validate=
"'required'"
></gl-input>
></gl-input>
<span
<span
v-show=
"errorBags.has('
businessDescription
')"
v-show=
"errorBags.has('
memo
')"
class=
"error"
class=
"error"
>
{{
errorBags
.
first
(
'
businessDescription
'
)
}}
</span>
>
{{
errorBags
.
first
(
'
memo
'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"地址"
>
<gl-form-item
label=
"地址"
>
<city-area
<city-area
...
@@ -84,6 +84,8 @@
...
@@ -84,6 +84,8 @@
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
{
CityArea
}
from
'../components'
import
addBusiness
from
'./addBusiness'
import
addBusiness
from
'./addBusiness'
import
notice
from
'@/common/notice'
import
{
businessManagenMethods
,
request
}
from
'@/api'
// import { jumpLink } from '../../../common/common.js'
// import { jumpLink } from '../../../common/common.js'
export
default
{
export
default
{
name
:
'BusinessManagement'
,
name
:
'BusinessManagement'
,
...
@@ -98,64 +100,61 @@ export default {
...
@@ -98,64 +100,61 @@ export default {
border
:
true
,
border
:
true
,
align
:
'center'
,
align
:
'center'
,
data
:
[
data
:
[
{
//
{
businessId
:
1
,
//
businessId: 1,
businessName
:
'爱车保镖'
,
// confKey
: '爱车保镖',
businessCode
:
'11'
,
//
businessCode: '11',
businessDescription
:
' 基于车联网智能终端大数据为汽车金融提供资产保全的服务'
,
// memo
: ' 基于车联网智能终端大数据为汽车金融提供资产保全的服务',
created
Time
:
'2018-03-16'
// create
Time: '2018-03-16'
},
{
//
}, {
businessId
:
2
,
//
businessId: 2,
businessName
:
'爱车保镖'
,
// confKey
: '爱车保镖',
businessCode
:
'11'
,
//
businessCode: '11',
businessDescription
:
' 基于车联网智能终端大数据为汽车金融提供资产保全的服务'
,
// memo
: ' 基于车联网智能终端大数据为汽车金融提供资产保全的服务',
created
Time
:
'2018-03-16'
// create
Time: '2018-03-16'
}
//
}
],
],
column
:
[
column
:
[
{
{
label
:
'业务ID'
,
label
:
'业务ID'
,
prop
:
'
business
Id'
prop
:
'
conf
Id'
},
{
},
{
label
:
'业务名称'
,
label
:
'业务名称'
,
prop
:
'businessName'
prop
:
'confKey'
},
{
label
:
'业务编号'
,
prop
:
'businessCode'
},
{
},
{
label
:
'业务描述'
,
label
:
'业务描述'
,
prop
:
'
businessDescription
'
prop
:
'
memo
'
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'create
d
Time'
prop
:
'createTime'
}
}
]
,
]
// 详情
// 详情
console
:
{
//
console: {
show
:
true
,
//
show: true,
label
:
'操作'
,
//
label: '操作',
width
:
'150'
,
//
width: '150',
fixed
:
'right'
,
//
fixed: 'right',
button
:
[
//
button: [
{
//
{
type
:
'text'
,
//
type: 'text',
label
:
'详情'
,
//
label: '详情',
callback
:
(
index
,
rows
)
=>
{
//
callback: (index, rows) => {
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'商户详情'
],
{
id
:
rows
[
index
].
businessId
,
name
:
rows
[
index
].
businessName
})
// this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '业务管理', '商户详情'], { id: rows[index].businessId, name: rows[index].confKey
})
}
//
}
}
//
}
]
//
]
}
//
}
},
},
form
:
{
form
:
{
businessName
:
''
,
confKey
:
''
,
businessDescription
:
''
,
memo
:
''
,
area
:
''
area
:
''
},
},
dialogFormVisible
:
false
,
dialogFormVisible
:
false
,
rules
:
{
rules
:
{
businessName
:
[{
required
:
true
}],
confKey
:
[{
required
:
true
}],
businessDescription
:
[{
required
:
true
}]
memo
:
[{
required
:
true
}]
},
},
// 商户分组组件数据
// 商户分组组件数据
addDialogVisible
:
false
,
addDialogVisible
:
false
,
...
@@ -172,7 +171,7 @@ export default {
...
@@ -172,7 +171,7 @@ export default {
watch
:
{
watch
:
{
dialogFormVisible
(
val
)
{
dialogFormVisible
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
form
=
{
businessName
:
''
,
businessDescription
:
''
,
area
:
''
}
this
.
form
=
{
confKey
:
''
,
memo
:
''
,
area
:
''
}
}
else
{
}
else
{
this
.
eventBus
.
$emit
(
'reset'
)
this
.
eventBus
.
$emit
(
'reset'
)
this
.
$validator
.
errors
.
clear
()
this
.
$validator
.
errors
.
clear
()
...
@@ -185,6 +184,7 @@ export default {
...
@@ -185,6 +184,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
eventBus
=
new
Vue
()
this
.
eventBus
=
new
Vue
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
// 显示隐藏弹窗
// 显示隐藏弹窗
...
@@ -198,9 +198,10 @@ export default {
...
@@ -198,9 +198,10 @@ export default {
this
.
$validator
.
validateAll
()
this
.
$validator
.
validateAll
()
]).
then
((
result
)
=>
{
]).
then
((
result
)
=>
{
if
(
result
[
0
]
&&
result
[
1
])
{
if
(
result
[
0
]
&&
result
[
1
])
{
console
.
log
(
'提交成功'
)
this
.
businessCreate
()
console
.
log
(
this
.
form
)
// console.log('提交成功')
this
.
showDialog
()
// console.log(this.form)
// this.showDialog()
}
}
})
})
},
},
...
@@ -212,6 +213,29 @@ export default {
...
@@ -212,6 +213,29 @@ export default {
},
},
getCityArea
(
params
)
{
getCityArea
(
params
)
{
console
.
log
(
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