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 9d2cbddb
authored
Mar 21, 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
831952c4
7be6e49d
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
115 additions
and
40 deletions
src/api/businessManagement.js
src/api/index.js
src/common/common.js
src/views/customer/businessDetails/index.vue
src/views/customer/businessList/index.vue
src/views/customer/businessManagement/addBusiness.vue
src/views/customer/businessManagement/index.vue
src/views/customer/components/index.js
src/views/customer/components/src/cityArea.vue
src/api/businessManagement.js
View file @
9d2cbdd
src/api/index.js
View file @
9d2cbdd
...
@@ -3,10 +3,18 @@ import {
...
@@ -3,10 +3,18 @@ import {
}
from
'./businessManagement'
}
from
'./businessManagement'
import
{
import
{
getList
,
getList
,
saveMerchant
merchantDetail
,
merchantPersonal
,
merchantGroup
,
saveMerchant
,
merchantGroupLevel
}
from
'./bussinessListApi'
}
from
'./bussinessListApi'
export
{
export
{
getBusinessList
,
getBusinessList
,
getList
,
getList
,
saveMerchant
merchantDetail
,
merchantPersonal
,
merchantGroup
,
saveMerchant
,
merchantGroupLevel
}
}
src/common/common.js
View file @
9d2cbdd
...
@@ -13,6 +13,7 @@ function urlEncode(param, key, encode) {
...
@@ -13,6 +13,7 @@ function urlEncode(param, key, encode) {
}
}
return
paramStr
return
paramStr
}
}
function
jumpLink
(
url
,
params
,
_this
)
{
function
jumpLink
(
url
,
params
,
_this
)
{
location
.
href
=
url
+
urlEncode
(
params
)
location
.
href
=
url
+
urlEncode
(
params
)
// setTimeout(() => {
// setTimeout(() => {
...
...
src/views/customer/businessDetails/index.vue
View file @
9d2cbdd
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
label=
'员工信息'
name=
'second'
>
配置管理
<gl-tab-pane
label=
'员工信息'
name=
'second'
>
配置管理
<gl-table
:table=
"staffTableData"
></gl-table>
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
label=
'分组信息'
name=
'third'
>
角色管理
<gl-tab-pane
label=
'分组信息'
name=
'third'
>
角色管理
...
@@ -36,6 +36,8 @@
...
@@ -36,6 +36,8 @@
<
script
>
<
script
>
import
VueAMap
from
'vue-amap'
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
merchantPersonal
}
from
'@/api/index'
import
notice
from
'@/common/notice'
const
amapManager
=
new
VueAMap
.
AMapManager
()
const
amapManager
=
new
VueAMap
.
AMapManager
()
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
key
:
'44cc16e43ad7ed3358df507bd0618181'
,
key
:
'44cc16e43ad7ed3358df507bd0618181'
,
...
@@ -98,12 +100,38 @@ export default {
...
@@ -98,12 +100,38 @@ export default {
marker
.
setMap
(
o
)
marker
.
setMap
(
o
)
}
}
},
},
point
:
[
116.397428
,
39.90923
]
// 赋值的点,有接口可删
point
:
[
116.397428
,
39.90923
],
// 赋值的点,有接口可删
// 员工信息
staffTableData
:
{
border
:
true
,
height
:
parseInt
(
this
.
$client_height
()
-
140
),
align
:
'center'
,
data
:
[],
column
:
[{
label
:
'ID'
,
prop
:
'id'
},
{
label
:
'员工姓名'
,
prop
:
'userName'
},
{
label
:
'用户名'
,
prop
:
'nickName'
},
{
label
:
'权限'
,
prop
:
'department'
},
{
label
:
'手机号码'
,
prop
:
'phone'
},
{
label
:
'状态'
,
prop
:
'status'
}]
}
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
)
console
.
log
(
this
)
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
console
.
log
(
params
)
console
.
log
(
params
)
this
.
name
=
params
.
name
this
.
name
=
params
.
name
})
})
...
@@ -139,6 +167,14 @@ export default {
...
@@ -139,6 +167,14 @@ export default {
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
console
.
log
(
tab
,
event
)
},
// 员工信息-接口
getStaffList
()
{
merchantPersonal
.
req
().
then
(
res
=>
{
notice
.
okTips
(
res
)
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
}
}
}
}
}
}
...
...
src/views/customer/businessList/index.vue
View file @
9d2cbdd
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-sizes=
"[10, 20, 30, 40]"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"pageSize"
:page-size=
"pageSize"
layout=
"sizes, total, ->, prev, pager, next"
layout=
"sizes, total, ->, prev, pager, next
, jumper
"
:total=
"total"
:total=
"total"
>
>
</gl-pagination>
</gl-pagination>
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
getList
.
req
(
params
).
then
(
res
=>
{
getList
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
ListTableData
.
data
=
res
.
merchants
this
.
total
=
res
.
total
this
.
total
=
res
.
pagination
.
totalCount
this
.
reset
(
this
.
merchantSearch
)
this
.
reset
(
this
.
merchantSearch
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
...
src/views/customer/businessManagement/addBusiness.vue
View file @
9d2cbdd
...
@@ -113,23 +113,23 @@ export default {
...
@@ -113,23 +113,23 @@ export default {
// 远程搜索
// 远程搜索
loading
:
false
,
loading
:
false
,
options4
:
[],
options4
:
[],
states
:
[
"Alabama"
,
"Alaska"
,
"Arizona"
,
states
:
[
'Alabama'
,
'Alaska'
,
'Arizona'
,
"Arkansas"
,
"California"
,
"Colorado"
,
'Arkansas'
,
'California'
,
'Colorado'
,
"Connecticut"
,
"Delaware"
,
"Florida"
,
'Connecticut'
,
'Delaware'
,
'Florida'
,
"Georgia"
,
"Hawaii"
,
"Idaho"
,
"Illinois"
,
'Georgia'
,
'Hawaii'
,
'Idaho'
,
'Illinois'
,
"Indiana"
,
"Iowa"
,
"Kansas"
,
"Kentucky"
,
'Indiana'
,
'Iowa'
,
'Kansas'
,
'Kentucky'
,
"Louisiana"
,
"Maine"
,
"Maryland"
,
'Louisiana'
,
'Maine'
,
'Maryland'
,
"Massachusetts"
,
"Michigan"
,
"Minnesota"
,
'Massachusetts'
,
'Michigan'
,
'Minnesota'
,
"Mississippi"
,
"Missouri"
,
"Montana"
,
'Mississippi'
,
'Missouri'
,
'Montana'
,
"Nebraska"
,
"Nevada"
,
"New Hampshire"
,
'Nebraska'
,
'Nevada'
,
'New Hampshire'
,
"New Jersey"
,
"New Mexico"
,
"New York"
,
'New Jersey'
,
'New Mexico'
,
'New York'
,
"North Carolina"
,
"North Dakota"
,
"Ohio"
,
'North Carolina'
,
'North Dakota'
,
'Ohio'
,
"Oklahoma"
,
"Oregon"
,
"Pennsylvania"
,
'Oklahoma'
,
'Oregon'
,
'Pennsylvania'
,
"Rhode Island"
,
"South Carolina"
,
'Rhode Island'
,
'South Carolina'
,
"South Dakota"
,
"Tennessee"
,
"Texas"
,
'South Dakota'
,
'Tennessee'
,
'Texas'
,
"Utah"
,
"Vermont"
,
"Virginia"
,
'Utah'
,
'Vermont'
,
'Virginia'
,
"Washington"
,
"West Virginia"
,
"Wisconsin"
,
'Washington'
,
'West Virginia'
,
'Wisconsin'
,
"Wyoming"
],
'Wyoming'
],
addList
:
[
addList
:
[
{
{
label
:
'子商户1'
,
label
:
'子商户1'
,
...
...
src/views/customer/businessManagement/index.vue
View file @
9d2cbdd
<
template
>
<
template
>
<div>
<div>
<gl-button
type=
"primary"
@
click=
"showDialog"
>
新增业务
</gl-button>
<gl-button
<gl-button
type=
"primary"
@
click=
"add"
>
新增商户
</gl-button>
type=
"primary"
@
click=
"showDialog"
>
新增业务
</gl-button>
<gl-button
type=
"primary"
@
click=
"add"
>
新增商户
</gl-button>
<gl-table
:table=
"tableData"
></gl-table>
<gl-table
:table=
"tableData"
></gl-table>
<gl-dialog
title=
"新增业务"
<gl-dialog
title=
"新增业务"
:visible
.
sync=
"dialogFormVisible"
:visible
.
sync=
"dialogFormVisible"
:close-on-click-modal=
"false"
>
:close-on-click-modal=
"false"
<gl-form
:model=
"form"
>
<gl-form
:model=
"form"
label-width=
"100px"
label-width=
"100px"
:rules=
"rules"
>
:rules=
"rules"
<gl-form-item
label=
"业务名称"
prop=
"businessName"
>
>
<gl-input
v-model=
"form.businessName"
<gl-form-item
label=
"业务名称"
prop=
"businessName"
>
<gl-input
v-model=
"form.businessName"
name=
"businessName"
name=
"businessName"
placeholder=
"请输入业务名称"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
></gl-input>
v-validate=
"'required'"
<span
v-show=
"errorBags.has('businessName')"
class=
"error"
>
{{
errorBags
.
first
(
'businessName'
)
}}
</span>
></gl-input>
<span
v-show=
"errorBags.has('businessName')"
class=
"error"
>
{{
errorBags
.
first
(
'businessName'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"业务描述"
prop=
"businessDescription"
>
<gl-form-item
label=
"业务描述"
prop=
"businessDescription"
>
<gl-input
<gl-input
v-model=
"form.businessDescription"
v-model=
"form.businessDescription"
type=
"textarea"
type=
"textarea"
...
@@ -27,15 +48,24 @@
...
@@ -27,15 +48,24 @@
data-vv-as=
"业务描述"
data-vv-as=
"业务描述"
v-validate=
"'required'"
v-validate=
"'required'"
></gl-input>
></gl-input>
<span
v-show=
"errorBags.has('businessDescription')"
class=
"error"
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
<span
v-show=
"errorBags.has('businessDescription')"
class=
"error"
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"地址"
>
<gl-form-item
label=
"地址"
>
<city-area
@
cityArea=
"getCityArea"
></city-area>
<city-area
@
cityArea=
"getCityArea"
></city-area>
</gl-form-item>
</gl-form-item>
</gl-form>
</gl-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<gl-button
@
click=
"showDialog"
>
取 消
</gl-button>
<gl-button
@
click=
"showDialog"
>
取 消
</gl-button>
<gl-button
type=
"primary"
@
click=
"submit"
>
确 定
</gl-button>
<gl-button
type=
"primary"
@
click=
"submit"
>
确 定
</gl-button>
</div>
</div>
</gl-dialog>
</gl-dialog>
<add-business
<add-business
...
@@ -104,7 +134,7 @@ export default {
...
@@ -104,7 +134,7 @@ export default {
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
].
businessName
})
}
}
}
}
]
]
...
...
src/views/customer/components/index.js
View file @
9d2cbdd
src/views/customer/components/src/cityArea.vue
View file @
9d2cbdd
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
})
})
this
.
areaList
=
arr
this
.
areaList
=
arr
}
}
}
,
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
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