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 834357bd
authored
Mar 27, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改代码
1 parent
0b7da08e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
172 additions
and
173 deletions
src/api/businessGroupDetail.js
src/views/customer/businessGroup/index.vue
src/views/customer/businessGroupDetail/addBusiness.vue
src/views/customer/businessGroupDetail/index.vue
src/views/customer/businessManagement/index.vue
src/api/businessGroupDetail.js
View file @
834357b
const
path
=
'glsx.accounts.admin.merchant.'
const
path
=
'glsx.accounts.admin.merchant.'
const
methods
=
{
const
methods
=
{
Create
:
`
${
path
}
group.relation.create`
,
// 分组新增商户
Create
:
`
${
path
}
group.relation.create`
,
// 分组新增商户
//
Search: `${path}group.search`,
Search
:
`
${
path
}
group.search`
,
// MerchantType: `${path}dict.type`
MerchantType
:
`
${
path
}
dict.type`
,
SearchChildList
:
`
${
path
}
group.search.param`
,
// 子商户根据商户号或者商户名搜索商户列表
SearchChildList
:
`
${
path
}
group.search.param`
,
// 子商户根据商户号或者商户名搜索商户列表
SearchList
:
`
${
path
}
group.search.parampar`
// 父商户根据商户号或者商户名搜索商户列表
SearchList
:
`
${
path
}
group.search.parampar`
// 父商户根据商户号或者商户名搜索商户列表
...
...
src/views/customer/businessGroup/index.vue
View file @
834357b
...
@@ -104,7 +104,7 @@ export default {
...
@@ -104,7 +104,7 @@ export default {
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
align
:
'center'
,
align
:
'center'
,
//
height: parseInt(this.$client_height() - 140),
height
:
parseInt
(
this
.
$client_height
()
-
140
),
data
:
[],
data
:
[],
column
:
[
column
:
[
{
{
...
...
src/views/customer/businessGroupDetail/addBusiness.vue
View file @
834357b
...
@@ -19,25 +19,28 @@
...
@@ -19,25 +19,28 @@
placeholder=
"请输入商户名称/商户号"
placeholder=
"请输入商户名称/商户号"
data-vv-as=
"商户名称/商户号"
data-vv-as=
"商户名称/商户号"
v-validate=
"'required'"
v-validate=
"'required'"
:remote-method=
"remote
Method
"
:remote-method=
"remote
List
"
:loading=
"loading"
>
:loading=
"loading"
>
<gl-option
<gl-option
v-for=
"item in
options4
"
v-for=
"item in
businessList
"
:key=
"item.
value
"
:key=
"item.
merchantId
"
:label=
"item.
label
"
:label=
"item.
merchantName
"
:value=
"item.
value
"
>
:value=
"item.
merchantId
"
>
</gl-option>
</gl-option>
</gl-select>
</gl-select>
<span
v-show=
"errorBags.has('merchant')"
class=
"error"
>
{{
errorBags
.
first
(
'merchant'
)
}}
</span>
<span
v-show=
"errorBags.has('merchant')"
class=
"error"
>
{{
errorBags
.
first
(
'merchant'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"商户类型:"
prop=
"merchantType"
>
<gl-form-item
label=
"商户类型:"
prop=
"merchantType"
>
<gl-select
v-model=
"addForm.merchantType"
name=
"merchantType"
<gl-select
v-model=
"addForm.merchantType"
data-vv-as=
"商户类型"
v-validate=
"'required'"
placeholder=
"请搜索"
>
name=
"merchantType"
data-vv-as=
"商户类型"
v-validate=
"'required'"
placeholder=
"请搜索"
>
<gl-option
<gl-option
v-for=
"item in merchantTypeList"
v-for=
"item in merchantTypeList"
:key=
"item.
merchant
Id"
:key=
"item.
conf
Id"
:label=
"item.
merchantName
"
:label=
"item.
confKey
"
:value=
"item.
merchant
Id"
>
:value=
"item.
conf
Id"
>
</gl-option>
</gl-option>
</gl-select>
</gl-select>
<span
v-show=
"errorBags.has('merchantType')"
class=
"error"
>
{{
errorBags
.
first
(
'merchantType'
)
}}
</span>
<span
v-show=
"errorBags.has('merchantType')"
class=
"error"
>
{{
errorBags
.
first
(
'merchantType'
)
}}
</span>
...
@@ -48,30 +51,43 @@
...
@@ -48,30 +51,43 @@
v-model=
"item.merchant"
v-model=
"item.merchant"
filterable
filterable
remote
remote
:name=
"`item.merchant$
{idx+1}`"
v-validate="item.merchant || item.merchantType ? 'required' : ''"
:data-vv-as="`子商户${idx+1}`"
clearable
clearable
placeholder="请输入商户名称/商户号"
placeholder="请输入商户名称/商户号"
:remote-method=
"remote
Method
"
:remote-method="remote
ChildList
"
:loading=
"
l
oading"
>
:loading="
childL
oading">
<gl-option
<gl-option
v-for=
"item in
options4
"
v-for=
"item in
businessChildList
"
:key=
"item.
value
"
:key=
"item.
merchantId
"
:label=
"item.
label"
:label=
"item.
merchantName"
:value=
"item.
value
"
>
:value=
"item.
merchantId
"
>
</gl-option>
</gl-option>
</gl-select>
</gl-select>
<i
v-show=
"item.show"
class=
"el-icon-delete delete"
@
click=
"deleteBusiness(idx)"
></i>
<i
v-show=
"item.show"
class=
"el-icon-delete delete"
@
click=
"deleteBusiness(idx)"
></i>
<span
v-show=
"errorBags.has(`item.merchant$
{idx+1}`)" class="error">
{{
errorBags
.
first
(
`item.merchant${idx+1
}
`
)
}}
<
/span
>
<!--
<
span
v
-
show
=
"item.merchant? !item.merchant : !!item.merchantType"
class
=
"error"
>
{{
`请填写子商户${idx+1
}
的商户名称/商户号`
}}
<
/span> --
>
<
/gl-form-item
>
<
/gl-form-item
>
<
gl
-
form
-
item
label
=
"商户类型:"
>
<
gl
-
form
-
item
label
=
"商户类型:"
>
<gl-select
v-model=
"item.merchantType"
placeholder=
"请选择"
>
<
gl
-
select
v
-
model
=
"item.merchantType"
:
name
=
"
`item.merchantType${idx+1
}
`"
v-validate="
item
.
merchant
||
item
.
merchantType
?
'required'
:
''
"
:data-vv-as="`子商户${idx+1
}
类型`"
clearable
placeholder="
请选择
">
<gl-option
<gl-option
v-for="
item
in
merchantTypeList
"
v-for="
item
in
merchantTypeList
"
:key=
"item.
merchant
Id"
:key="
item
.
conf
Id
"
:label=
"item.
merchantName
"
:label="
item
.
confKey
"
:value=
"item.
merchant
Id"
>
:value="
item
.
conf
Id
">
</gl-option>
</gl-option>
</gl-select>
</gl-select>
<span v-show="
errorBags
.
has
(
`item.merchantType${idx+1
}
`
)
" class="
error
"
>
{{
errorBags
.
first
(
`item.merchantType${idx+1
}
`
)
}}
<
/span
>
<!--
<
span
v
-
show
=
"item.merchantType? !item.merchantType : !!item.merchant"
class
=
"error"
>
{{
`请填写子商户${idx+1
}
的商户类型`
}}
<
/span> --
>
<
/gl-form-item
>
<
/gl-form-item
>
<
/div
>
<
/div
>
<
span
v
-
show
=
"tip"
class
=
"error"
style
=
"float:right; margin-right: 43px;"
>
{{
'请填写上一条子商户数据'
}}
<
/span
>
<
gl
-
button
@
click
=
"addMore"
>
添加更多
<
/gl-button
>
<
gl
-
button
@
click
=
"addMore"
>
添加更多
<
/gl-button
>
<
/gl-form
>
<
/gl-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
...
@@ -83,6 +99,8 @@
...
@@ -83,6 +99,8 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
notice
from
'@/common/notice'
import
{
businessManagenMethods
,
groupDetailMethods
,
request
}
from
'@/api'
export
default
{
export
default
{
name
:
'AddBusiness'
,
name
:
'AddBusiness'
,
props
:
{
props
:
{
...
@@ -90,46 +108,21 @@ export default {
...
@@ -90,46 +108,21 @@ export default {
}
,
}
,
data
()
{
data
()
{
return
{
return
{
tip
:
false
,
addForm
:
{
addForm
:
{
merchant
:
''
,
merchant
:
''
,
merchantType
:
''
merchantType
:
''
}
,
}
,
merchantTypeList
:
[
merchantTypeList
:
[],
{
merchantId
:
1
,
merchantName
:
'广联'
},
{
merchantId
:
2
,
merchantName
:
'分组'
},
{
merchantId
:
3
,
merchantName
:
'富强'
}
],
rules
:
{
rules
:
{
merchant
:
[{
required
:
true
}
],
merchant
:
[{
required
:
true
}
],
merchantType
:
[{
required
:
true
}
]
merchantType
:
[{
required
:
true
}
]
}
,
}
,
// 远程搜索
// 远程搜索
loading
:
false
,
loading
:
false
,
options4
:
[],
childLoading
:
false
,
states
:
[
'Alabama'
,
'Alaska'
,
'Arizona'
,
businessList
:
[],
'Arkansas'
,
'California'
,
'Colorado'
,
businessChildList
:
[],
'Connecticut'
,
'Delaware'
,
'Florida'
,
'Georgia'
,
'Hawaii'
,
'Idaho'
,
'Illinois'
,
'Indiana'
,
'Iowa'
,
'Kansas'
,
'Kentucky'
,
'Louisiana'
,
'Maine'
,
'Maryland'
,
'Massachusetts'
,
'Michigan'
,
'Minnesota'
,
'Mississippi'
,
'Missouri'
,
'Montana'
,
'Nebraska'
,
'Nevada'
,
'New Hampshire'
,
'New Jersey'
,
'New Mexico'
,
'New York'
,
'North Carolina'
,
'North Dakota'
,
'Ohio'
,
'Oklahoma'
,
'Oregon'
,
'Pennsylvania'
,
'Rhode Island'
,
'South Carolina'
,
'South Dakota'
,
'Tennessee'
,
'Texas'
,
'Utah'
,
'Vermont'
,
'Virginia'
,
'Washington'
,
'West Virginia'
,
'Wisconsin'
,
'Wyoming'
],
addList
:
[
addList
:
[
{
{
label
:
'子商户1'
,
label
:
'子商户1'
,
...
@@ -145,53 +138,102 @@ export default {
...
@@ -145,53 +138,102 @@ export default {
}
}
}
,
}
,
mounted
()
{
mounted
()
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
this
.
getBusinessType
()
return
{
value
:
item
,
label
:
item
}
})
}
,
}
,
methods
:
{
methods
:
{
// 确定按钮
ok
()
{
ok
()
{
this
.
tip
=
false
this
.
$validator
.
validateAll
().
then
((
result
)
=>
{
this
.
$validator
.
validateAll
().
then
((
result
)
=>
{
if
(
result
)
{
if
(
result
)
{
this
.
addList
.
forEach
(
item
=>
{
this
.
addList
.
forEach
(
item
=>
{
delete
item
.
label
delete
item
.
label
}
)
}
)
this
.
addForm
.
merchantRelationAdds
=
this
.
addList
if
(
this
.
addList
[
0
].
merchantId
)
{
this
.
showAddDialog
()
this
.
addForm
.
merchantRelationAdds
=
this
.
addList
this
.
addList
=
[{
label
:
'子商户1'
,
merchant
:
''
,
merchantType
:
''
}]
}
this
.
addForm
=
{
merchant
:
''
,
merchantType
:
''
}
const
params
=
this
.
$deep_clone
(
this
.
addForm
)
params
.
method
=
groupDetailMethods
.
Create
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
this
.
showAddDialog
()
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
}
)
}
}
}
)
}
)
}
,
}
,
// 显示隐藏添加商户按钮
showAddDialog
()
{
showAddDialog
()
{
this
.
$emit
(
'addData'
)
this
.
$emit
(
'addData'
)
setTimeout
(()
=>
{
this
.
addList
=
[{
label
:
'子商户1'
,
merchant
:
''
,
merchantType
:
''
}
]
this
.
addForm
=
{
merchant
:
''
,
merchantType
:
''
}
}
,
400
)
}
,
}
,
// 添加更多按钮
addMore
()
{
addMore
()
{
console
.
log
(
this
.
addList
.
length
)
const
len
=
this
.
addList
.
length
-
1
this
.
addList
.
push
({
if
(
this
.
addList
[
len
].
merchant
==
''
||
this
.
addList
[
len
].
merchantType
==
''
)
{
label
:
'子商户'
+
(
this
.
addList
.
length
+
1
),
this
.
tip
=
true
merchant
:
''
,
}
else
{
merchantType
:
''
,
this
.
tip
=
false
show
:
true
this
.
addList
.
push
({
})
label
:
'子商户'
+
(
this
.
addList
.
length
+
1
),
merchant
:
''
,
merchantType
:
''
,
show
:
true
}
)
}
}
,
}
,
deleteBusiness
(
idx
)
{
deleteBusiness
(
idx
)
{
console
.
log
(
idx
)
this
.
addList
.
splice
(
idx
,
1
)
this
.
addList
.
splice
(
idx
,
1
)
}
,
}
,
remoteMethod
(
query
)
{
// 父商户搜索
remoteList
(
query
)
{
if
(
query
!==
''
)
{
if
(
query
!==
''
)
{
this
.
loading
=
true
this
.
loading
=
true
setTimeout
(()
=>
{
const
params
=
{
}
params
.
groupId
=
1
params
.
searchWrod
=
query
params
.
method
=
groupDetailMethods
.
SearchList
request
.
req
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
options4
=
this
.
list
.
filter
(
item
=>
{
this
.
businessList
=
res
.
merchantParams
return
item
.
label
.
toLowerCase
()
}
).
catch
(
err
=>
{
.
indexOf
(
query
.
toLowerCase
())
>
-
1
notice
.
errorTips
(
err
)
})
}
)
},
200
)
}
else
{
}
else
{
this
.
options4
=
[]
this
.
businessList
=
[]
}
}
}
,
// 子商户远程搜索
remoteChildList
(
query
)
{
if
(
query
!==
''
)
{
this
.
childLoading
=
true
const
params
=
{
}
params
.
groupId
=
1
params
.
searchWrod
=
query
params
.
method
=
groupDetailMethods
.
SearchChildList
request
.
req
(
params
).
then
(
res
=>
{
this
.
childLoading
=
false
this
.
businessChildList
=
res
.
merchantParams
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
}
)
}
else
{
this
.
businessChildList
=
[]
}
}
,
// 获取商户类型列表
getBusinessType
()
{
const
params
=
{
}
params
.
method
=
businessManagenMethods
.
Type
request
.
req
(
params
).
then
(
res
=>
{
this
.
merchantTypeList
=
res
.
merchantDictList
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
}
)
}
}
}
}
}
}
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
834357b
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"default"
>
<div
class=
"default"
>
<gl-form
<div
class=
"m-b10"
>
:inline=
"true"
<gl-button
>
class=
"newButton"
<!--
<gl-form-item>
type=
"primary"
<gl-input
@
click=
"searchDialog"
v-model=
"searchCondition.brand"
>
高级搜索
</gl-button>
class=
"input-with-select"
<gl-button
placeholder=
"请输入品牌"
class=
"newButton"
clearable
type=
"primary"
/>
@
click=
"addDialog"
</gl-form-item>
>
添加商户
</gl-button>
<gl-form-item>
</div>
<gl-button
<gl-table
type=
"primary"
:table=
"tableData"
@
click=
"getList"
v-loading=
"tableLoading"
>
>
搜索
</gl-button>
<gl-table-column
align=
"center"
v-for=
"(i, index) in tableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
:width=
'i.width'
>
</gl-form-item>
-->
<template
slot-scope=
"scope"
>
<gl-form-item
style=
"float:right;"
>
<template
v-if=
'i.prop === "merchantName"'
>
<gl-button
<a
@
click=
"merchantDetail(scope.scope.row.merchantId)"
class=
"el-button el-button--text"
>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
class=
"newButton"
</
template
>
type=
"primary"
<
template
v-else-if=
'i.prop === "parentMerchantName"'
>
@
click=
"searchDialog"
<a
@
click=
"merchantDetail(scope.scope.row.parentMerchantId)"
class=
"el-button el-button--text"
>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
>
高级搜索
</gl-button>
<gl-button
class=
"newButton"
type=
"primary"
@
click=
"addDialog"
>
添加商户
</gl-button>
</gl-form-item>
</gl-form>
</div>
<gl-table
:table=
"tableData"
v-loading=
"tableLoading"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in tableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
:width=
'i.width'
>
<template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "merchantName"'
>
<a
@
click=
"merchantDetail(scope.scope.row.merchantId)"
class=
"el-button el-button--text"
>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
<
template
v-else-if=
'i.prop === "parentMerchantName"'
>
<a
@
click=
"merchantDetail(scope.scope.row.parentMerchantId)"
class=
"el-button el-button--text"
>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
<
template
v-else
>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</
template
>
</
template
>
</gl-table-column>
<
template
v-else
>
</gl-table>
{{
tableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
<gl-pagination
<gl-pagination
background
background
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
...
@@ -65,13 +44,11 @@
...
@@ -65,13 +44,11 @@
title=
"高级搜索"
title=
"高级搜索"
width=
"40%"
width=
"40%"
:visible
.
sync=
"dialogVisible_search"
:visible
.
sync=
"dialogVisible_search"
:before-close=
"handleClose_search"
:before-close=
"handleClose_search"
>
>
<gl-form
<gl-form
:model=
"searchParams"
:model=
"searchParams"
ref=
"searchParams"
ref=
"searchParams"
label-width=
"120px"
label-width=
"120px"
>
>
<gl-form-item
label=
"商户名称:"
prop=
"merchantName"
>
<gl-form-item
label=
"商户名称:"
prop=
"merchantName"
>
<gl-input
name=
"merchantName"
placeholder=
"请输入商户名称"
v-model=
"searchParams.merchantName"
></gl-input>
<gl-input
name=
"merchantName"
placeholder=
"请输入商户名称"
v-model=
"searchParams.merchantName"
></gl-input>
</gl-form-item>
</gl-form-item>
...
@@ -82,8 +59,7 @@
...
@@ -82,8 +59,7 @@
<gl-select
<gl-select
name=
"merchantType"
name=
"merchantType"
v-model=
"searchParams.merchantType"
v-model=
"searchParams.merchantType"
placeholder=
"请选择"
placeholder=
"请选择"
>
>
<gl-option
<gl-option
v-for=
"item in merchantTypeList"
v-for=
"item in merchantTypeList"
:key=
"item.value"
:key=
"item.value"
...
@@ -92,7 +68,6 @@
...
@@ -92,7 +68,6 @@
</gl-option>
</gl-option>
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"地区:"
prop=
"area"
>
<gl-form-item
label=
"地区:"
prop=
"area"
>
<city-area
<city-area
ref=
"c"
ref=
"c"
...
@@ -217,28 +192,6 @@ export default {
...
@@ -217,28 +192,6 @@ export default {
prop
:
'parentMerchantId'
prop
:
'parentMerchantId'
}
}
]
]
// number: {
// label: '序号',
// width: '50px',
// index: index => {
// ++index
// return index < 10 && index > 0 ? '0' + index : index
// }
// },
// console: {
// show: true,
// label: '操作',
// prop: 'options',
// button: [
// {
// label: '详情',
// type: 'text',
// callback: (index, row) => {
// this.detail(row)
// }
// }
// ]
// }
}
}
}
}
},
},
...
@@ -263,7 +216,7 @@ export default {
...
@@ -263,7 +216,7 @@ export default {
getParams
()
{
getParams
()
{
return
Object
.
assign
(
return
Object
.
assign
(
{
{
page
Num
:
this
.
pageNum
,
page
Count
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
},
},
this
.
searchParams
this
.
searchParams
...
@@ -275,11 +228,13 @@ export default {
...
@@ -275,11 +228,13 @@ 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
.
groupId
=
1
params
.
method
=
groupDetailMethods
.
Search
params
.
method
=
groupDetailMethods
.
Search
console
.
log
(
params
)
console
.
log
(
params
)
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
.
merchantGroupRelations
this
.
tableData
.
data
=
res
.
merchantGroupRelations
this
.
tableLoading
=
false
this
.
tableLoading
=
false
...
...
src/views/customer/businessManagement/index.vue
View file @
834357b
<
template
>
<
template
>
<div
class=
"default"
>
<div
class=
"default"
>
<div
class=
"m-b10"
>
<div
class=
"m-b10"
>
<gl-button
<gl-button
type=
"primary"
type=
"primary"
@
click=
"showDialog"
@
click=
"showDialog"
>
新增业务
</gl-button>
>
新增业务
</gl-button>
<gl-button
<!--
<gl-button
type=
"primary"
type=
"primary"
@
click=
"add"
@
click=
"add"
>
新增商户
</gl-button
>
>
新增商户
</gl-button>
--
>
</div>
</div>
<gl-table
:table=
"tableData"
></gl-table>
<gl-table
:table=
"tableData"
></gl-table>
<gl-dialog
<gl-dialog
...
@@ -66,10 +66,10 @@
...
@@ -66,10 +66,10 @@
>
确 定
</gl-button>
>
确 定
</gl-button>
</div>
</div>
</gl-dialog>
</gl-dialog>
<add-business
<
!--
<
add-business
:addDialogVisible=
"addDialogVisible"
:addDialogVisible=
"addDialogVisible"
@
addData=
"add"
@
addData=
"add"
></add-business>
></add-business>
-->
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -86,12 +86,14 @@ export default {
...
@@ -86,12 +86,14 @@ export default {
return
{
return
{
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
stripe
:
'true'
,
align
:
'center'
,
align
:
'center'
,
data
:
[],
data
:
[],
column
:
[
column
:
[
{
{
label
:
'业务ID'
,
label
:
'业务ID'
,
prop
:
'confId'
prop
:
'confId'
,
width
:
'100'
},
{
},
{
label
:
'业务名称'
,
label
:
'业务名称'
,
prop
:
'confKey'
prop
:
'confKey'
...
@@ -115,7 +117,7 @@ export default {
...
@@ -115,7 +117,7 @@ export default {
memo
:
[{
required
:
true
}]
memo
:
[{
required
:
true
}]
},
},
// 商户分组组件数据
// 商户分组组件数据
addDialogVisible
:
false
,
//
addDialogVisible: false,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -143,12 +145,12 @@ export default {
...
@@ -143,12 +145,12 @@ export default {
}
}
})
})
},
},
add
()
{
//
add() {
this
.
addDialogVisible
=
!
this
.
addDialogVisible
//
this.addDialogVisible = !this.addDialogVisible
},
//
},
handleAddData
()
{
//
handleAddData() {
this
.
addDialogVisible
=
!
this
.
addDialogVisible
//
this.addDialogVisible = !this.addDialogVisible
},
//
},
// 接口请求
// 接口请求
getList
()
{
getList
()
{
const
params
=
{}
const
params
=
{}
...
...
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