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 0fe5e70a
authored
Mar 23, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
更新代码
2 parents
828d5677
9d2cbddb
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
344 additions
and
162 deletions
src/api/businessGroupDetail.js
src/api/businessManagement.js
src/api/index.js
src/common/common.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/addBusiness.vue
src/views/customer/businessManagement/index.vue
src/views/customer/components/index.js
src/views/customer/components/src/cityArea.vue
src/api/businessGroupDetail.js
0 → 100644
View file @
0fe5e70
import
{
GlAxios
}
from
'glsx-vue-common'
const
path
=
'/glsx.accounts.admin.merchant.group'
const
__groupDetailList
=
`
${
path
}
.search`
const
getMerchantGroupDetailList
=
{
p
:
[
__groupDetailList
],
req
:
params
=>
GlAxios
.
get
(
__groupDetailList
,
{
params
})
}
export
{
getMerchantGroupDetailList
}
src/api/businessManagement.js
View file @
0fe5e70
...
...
@@ -11,4 +11,4 @@ const getBusinessList = {
export
{
getBusinessList
}
\ No newline at end of file
}
src/api/index.js
View file @
0fe5e70
...
...
@@ -3,16 +3,28 @@ import {
}
from
'./businessManagement'
import
{
getList
,
saveMerchant
merchantDetail
,
merchantPersonal
,
merchantGroup
,
saveMerchant
,
merchantGroupLevel
}
from
'./bussinessListApi'
import
{
getMerchantGroupList
,
createGroup
}
from
'./businessGroup'
import
{
getMerchantGroupDetailList
}
from
'./businessGroupDetail'
export
{
getBusinessList
,
getList
,
saveMerchant
,
getMerchantGroupList
,
createGroup
createGroup
,
getMerchantGroupDetailList
,
merchantDetail
,
merchantPersonal
,
merchantGroup
,
merchantGroupLevel
}
src/common/common.js
View file @
0fe5e70
...
...
@@ -13,6 +13,7 @@ function urlEncode(param, key, encode) {
}
return
paramStr
}
function
jumpLink
(
url
,
params
,
_this
)
{
location
.
href
=
url
+
urlEncode
(
params
)
// setTimeout(() => {
...
...
src/views/customer/businessDetails/index.vue
View file @
0fe5e70
...
...
@@ -24,7 +24,7 @@
</gl-tab-pane>
<gl-tab-pane
label=
'员工信息'
name=
'second'
>
配置管理
<gl-table
:table=
"staffTableData"
></gl-table>
</gl-tab-pane>
<gl-tab-pane
label=
'分组信息'
name=
'third'
>
角色管理
...
...
@@ -36,6 +36,8 @@
<
script
>
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
{
merchantPersonal
}
from
'@/api/index'
import
notice
from
'@/common/notice'
const
amapManager
=
new
VueAMap
.
AMapManager
()
VueAMap
.
initAMapApiLoader
({
key
:
'44cc16e43ad7ed3358df507bd0618181'
,
...
...
@@ -98,12 +100,38 @@ export default {
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
()
{
console
.
log
(
this
)
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
console
.
log
(
params
)
this
.
name
=
params
.
name
})
...
...
@@ -113,7 +141,7 @@ export default {
// }, 1000)
// const theme = new this.$Theme()
// console.log(theme)
// theme.change('#FF0000')
// this.center = this.point
// 链接,接受参数
...
...
@@ -139,6 +167,14 @@ export default {
},
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
},
// 员工信息-接口
getStaffList
()
{
merchantPersonal
.
req
().
then
(
res
=>
{
notice
.
okTips
(
res
)
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
}
}
}
...
...
src/views/customer/businessGroup/index.vue
View file @
0fe5e70
...
...
@@ -100,7 +100,7 @@
<
script
>
// import Edit from './Edit'
// import { fn, treeCheckKeys, deleteEmptyAttribute } from '@/common/common'
import
{
getMerchantGroupList
,
createGroup
}
from
'@/api'
import
{
getMerchantGroupList
,
createGroup
}
from
'@/api
/index
'
// import { NoticeMixin } from '@/mixins'
// import Vue from 'vue'
export
default
{
...
...
@@ -281,9 +281,4 @@ export default {
}
}
}
//
.tableImg
{
//
width
:
36px
;
//
height
:
36px
;
//
cursor
:
pointer
;
//
}
</
style
>
src/views/customer/businessGroupDetail/index.vue
View file @
0fe5e70
...
...
@@ -3,7 +3,6 @@
<div
class=
"default"
>
<gl-form
:inline=
"true"
:model=
"searchCondition"
>
<!--
<gl-form-item>
<gl-input
...
...
@@ -92,6 +91,7 @@
</gl-option>
</gl-select>
</gl-form-item>
<!-- <gl-form-item label="地区:" prop="area">
<gl-cascader
:options="areaOptions"
...
...
@@ -125,7 +125,7 @@
<
script
>
// import Edit from './Edit'
// import { fn, treeCheckKeys, deleteEmptyAttribute } from '@/common/common'
// import { getExpList, mergeExp } from '@/api
'
import
{
getMerchantGroupDetailList
}
from
'@/api/index
'
// import { NoticeMixin } from '@/mixins'
// import Vue from 'vue'
import
AddBusiness
from
'./addBusiness'
...
...
@@ -139,7 +139,7 @@ export default {
// mixins: [NoticeMixin],
data
()
{
return
{
searchCondition
:
{},
//
searchCondition: {},
searchParams
:
{
merchantName
:
''
,
merchantId
:
null
,
...
...
@@ -182,12 +182,12 @@ export default {
},
{
label
:
'加入分组时间'
,
prop
:
'createTime'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
createTime
)
{
return
new
Date
(
cellValue
.
createTime
).
format
(
'yyyy-MM-dd'
)
}
}
prop
:
'createTime'
//
formatter: cellValue => {
//
if (cellValue.createTime) {
//
return new Date(cellValue.createTime).format('yyyy-MM-dd')
//
}
//
}
},
{
label
:
'父商户名称'
,
...
...
@@ -197,7 +197,7 @@ export default {
label
:
'父商户号'
,
prop
:
'parentMerchantId'
}
]
,
]
// number: {
// label: '序号',
// width: '50px',
...
...
@@ -206,20 +206,20 @@ export default {
// return index < 10 && index > 0 ? '0' + index : index
// }
// },
console
:
{
show
:
true
,
label
:
'操作'
,
prop
:
'options'
,
button
:
[
{
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
row
)
=>
{
this
.
detail
(
row
)
}
}
]
}
//
console: {
//
show: true,
//
label: '操作',
//
prop: 'options',
//
button: [
//
{
//
label: '详情',
//
type: 'text',
//
callback: (index, row) => {
//
this.detail(row)
//
}
//
}
//
]
//
}
}
}
},
...
...
@@ -239,22 +239,22 @@ export default {
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
},
this
.
search
Condition
this
.
search
Params
)
},
getList
()
{
//
const params = this.getParams()
// getExp
List
//
.req(params)
//
.then(res => {
// this.total = res.total
// this.tableData.data = res.list
//
this.tableLoading = false
//
})
//
.catch(err => {
//
this.tableLoading = false
// this.error
(err)
//
})
const
params
=
this
.
getParams
()
getMerchantGroupDetail
List
.
req
(
params
)
.
then
(
res
=>
{
this
.
total
=
res
.
pagination
.
totalCount
this
.
tableData
.
data
=
res
.
merchantGroupRelations
this
.
tableLoading
=
false
})
.
catch
(
err
=>
{
this
.
tableLoading
=
false
console
.
log
(
err
)
})
},
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
...
...
src/views/customer/businessList/index.vue
View file @
0fe5e70
...
...
@@ -19,7 +19,7 @@
:current-page
.
sync=
"currentPage"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"pageSize"
layout=
"sizes, total, ->, prev, pager, next"
layout=
"sizes, total, ->, prev, pager, next
, jumper
"
:total=
"total"
>
</gl-pagination>
...
...
@@ -152,7 +152,7 @@ export default {
const
params
=
this
.
getParams
()
getList
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
total
=
res
.
total
this
.
total
=
res
.
pagination
.
totalCount
this
.
reset
(
this
.
merchantSearch
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
src/views/customer/businessManagement/addBusiness.vue
View file @
0fe5e70
...
...
@@ -113,23 +113,23 @@ export default {
// 远程搜索
loading
:
false
,
options4
:
[],
states
:
[
"Alabama"
,
"Alaska"
,
"Arizona"
,
"Arkansas"
,
"California"
,
"Colorado"
,
"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"
],
states
:
[
'Alabama'
,
'Alaska'
,
'Arizona'
,
'Arkansas'
,
'California'
,
'Colorado'
,
'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
:
[
{
label
:
'子商户1'
,
...
...
@@ -144,10 +144,10 @@ export default {
this
.
$validator
.
errors
.
clear
()
}
},
mounted
()
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
return
{
value
:
item
,
label
:
item
}
})
mounted
()
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
return
{
value
:
item
,
label
:
item
}
})
},
methods
:
{
ok
()
{
...
...
@@ -186,8 +186,8 @@ export default {
this
.
loading
=
false
this
.
options4
=
this
.
list
.
filter
(
item
=>
{
return
item
.
label
.
toLowerCase
()
.
indexOf
(
query
.
toLowerCase
())
>
-
1
})
.
indexOf
(
query
.
toLowerCase
())
>
-
1
})
},
200
)
}
else
{
this
.
options4
=
[]
...
...
src/views/customer/businessManagement/index.vue
View file @
0fe5e70
<
template
>
<div>
<gl-button
type=
"primary"
@
click=
"showDialog"
>
新增业务
</gl-button>
<gl-button
type=
"primary"
@
click=
"add"
>
新增商户
</gl-button>
<gl-button
type=
"primary"
@
click=
"showDialog"
>
新增业务
</gl-button>
<gl-button
type=
"primary"
@
click=
"add"
>
新增商户
</gl-button>
<gl-table
:table=
"tableData"
></gl-table>
<gl-dialog
title=
"新增业务"
:visible
.
sync=
"dialogFormVisible"
:close-on-click-modal=
"false"
>
<gl-form
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<gl-form-item
label=
"业务名称"
prop=
"businessName"
>
<gl-input
v-model=
"form.businessName"
name=
"businessName"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('businessName')"
class=
"error"
>
{{
errorBags
.
first
(
'businessName'
)
}}
</span>
<gl-dialog
title=
"新增业务"
:visible
.
sync=
"dialogFormVisible"
:close-on-click-modal=
"false"
>
<gl-form
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<gl-form-item
label=
"业务名称"
prop=
"businessName"
>
<gl-input
v-model=
"form.businessName"
name=
"businessName"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('businessName')"
class=
"error"
>
{{
errorBags
.
first
(
'businessName'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"业务描述"
prop=
"businessDescription"
>
<gl-input
v-model=
"form.businessDescription"
type=
"textarea"
:rows=
"4"
placeholder=
"请输入业务描述"
name=
"businessDescription"
data-vv-as=
"业务描述"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('businessDescription')"
class=
"error"
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
<gl-form-item
label=
"业务描述"
prop=
"businessDescription"
>
<gl-input
v-model=
"form.businessDescription"
type=
"textarea"
:rows=
"4"
placeholder=
"请输入业务描述"
name=
"businessDescription"
data-vv-as=
"业务描述"
v-validate=
"'required'"
></gl-input>
<span
v-show=
"errorBags.has('businessDescription')"
class=
"error"
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"地址"
>
<city-area></city-area>
<city-area
@
cityArea=
"getCityArea"
></city-area>
</gl-form-item>
</gl-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<gl-button
@
click=
"showDialog"
>
取 消
</gl-button>
<gl-button
type=
"primary"
@
click=
"submit"
>
确 定
</gl-button>
<div
slot=
"footer"
class=
"dialog-footer"
>
<gl-button
@
click=
"showDialog"
>
取 消
</gl-button>
<gl-button
type=
"primary"
@
click=
"submit"
>
确 定
</gl-button>
</div>
</gl-dialog>
<add-business
<add-business
:addDialogVisible=
"addDialogVisible"
@
addData=
"handleAddData"
></add-business>
</div>
</
template
>
<
script
>
import
{
CityArea
}
from
'../components'
import
{
CityArea
}
from
'../components'
import
addBusiness
from
'./addBusiness'
import
{
jumpLink
}
from
'../../../common/common.js'
export
default
{
...
...
@@ -104,11 +134,7 @@ export default {
type
:
'text'
,
label
:
'详情'
,
callback
:
(
index
,
rows
)
=>
{
// const url = encodeURI(`./businessDetails.html?id=${rows[index].businessId}&name=${rows[index].businessName}`)
// location.href = url
const
url
=
jumpLink
(
'./businessDetails.html?'
,
{
id
:
rows
[
index
].
businessId
,
name
:
rows
[
index
].
businessName
},
_this
)
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'商户详情'
],{
id
:
rows
[
index
].
businessId
,
name
:
rows
[
index
].
businessName
})
// console.log(url)
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'商户详情'
],
{
id
:
rows
[
index
].
businessId
,
name
:
rows
[
index
].
businessName
})
}
}
]
...
...
@@ -149,6 +175,9 @@ export default {
},
handleAddData
()
{
this
.
addDialogVisible
=
!
this
.
addDialogVisible
},
getCityArea
(
params
)
{
console
.
log
(
params
)
}
}
}
...
...
src/views/customer/components/index.js
View file @
0fe5e70
import
CityArea
from
'./src/cityArea.vue'
export
{
CityArea
}
\ No newline at end of file
}
src/views/customer/components/src/cityArea.vue
View file @
0fe5e70
<
template
>
<div>
<gl-select
style=
"width: 20%;margin-right: 20px"
v-model=
"province"
@
click=
"selectProvince"
@
focus=
"selectProvince"
placeholder=
"请选择省"
>
<gl-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</gl-option>
</gl-select>
<gl-select
style=
"width: 20%;margin-right: 20px"
v-model=
"province"
placeholder=
"请选择市"
>
<gl-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</gl-option>
</gl-select>
<gl-select
style=
"width: 20%"
v-model=
"province"
placeholder=
"请选择区"
>
<gl-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</gl-option>
</gl-select>
</div>
<!--
<div>
-->
<gl-row
style=
"margin-left: 0"
:gutter=
"10"
>
<gl-col
:span=
"8"
>
<gl-select
filterable
clearable
v-model=
"province"
@
change=
"selectProvince"
placeholder=
"请选择省"
>
<gl-option
v-for=
"(item, k) in provinceList"
:key=
"k"
:label=
"item.provinceName"
:value=
"item.provinceId"
>
</gl-option>
</gl-select>
</gl-col>
<gl-col
:span=
"8"
>
<gl-select
filterable
clearable
v-model=
"city"
@
change=
"selectCity"
placeholder=
"请选择市"
>
<gl-option
v-for=
"item in cityList"
:key=
"item.cityId"
:label=
"item.cityName"
:value=
"item.cityId"
>
</gl-option>
</gl-select>
</gl-col>
<gl-col
:span=
"8"
>
<gl-select
filterable
clearable
v-model=
"area"
@
change=
"selectArea"
placeholder=
"请选择区"
>
<gl-option
v-for=
"item in areaList"
:key=
"item.areaId"
:label=
"item.areaName"
:value=
"item.areaId"
>
</gl-option>
</gl-select>
</gl-col>
</gl-row>
<!--
</div>
-->
</
template
>
<
script
>
...
...
@@ -32,36 +64,99 @@ export default {
name
:
'CityArea'
,
data
()
{
return
{
options
:
[
{
value
:
'选项1'
,
label
:
'黄金糕黄金糕黄金糕黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
],
AllData
:
[],
provinceList
:
[],
cityList
:
[],
areaList
:
[],
province
:
''
,
// 省值
city
:
''
,
// 市值
area
:
''
// 区值
area
:
''
,
// 区值
mutIndex
:
[],
// 存储下标
mutArray
:
[]
//
}
},
methods
:
{
selectProvince
()
{
console
.
log
(
'我选择了省'
)
props
:
{
// value: Array
},
mounted
()
{
const
URL
=
' http://192.168.3.171:7300/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/area_config'
)
=>
{
return
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
()
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
resolve
({
'config'
:
JSON
.
parse
(
xhr
.
responseText
)
})
}
}
xhr
.
open
(
'GET'
,
url
)
xhr
.
send
()
})
}
// 初始化
getConfig
().
then
(
data
=>
{
console
.
log
(
data
.
config
)
this
.
AllData
=
JSON
.
parse
(
JSON
.
stringify
(
data
.
config
.
provinceInfoList
))
this
.
AllData
.
forEach
(
element
=>
{
this
.
provinceList
.
push
({
provinceId
:
element
.
provinceId
,
provinceName
:
element
.
provinceName
})
})
this
.
getCity
(
0
)
this
.
getArea
(
0
,
0
)
})
},
methods
:
{
// 选择省
selectProvince
(
val
)
{
this
.
mutArray
=
[
val
,
,
]
this
.
AllData
.
forEach
((
element
,
index
)
=>
{
if
(
element
.
provinceId
===
val
)
{
this
.
mutIndex
[
0
]
=
index
}
})
this
.
getCity
(
this
.
mutIndex
[
0
])
this
.
getArea
(
this
.
mutIndex
[
0
],
0
)
this
.
city
=
''
this
.
area
=
''
this
.
$emit
(
'cityArea'
,
this
.
mutArray
)
},
// 选择市
selectCity
(
val
)
{
this
.
mutArray
[
1
]
=
val
this
.
mutArray
[
2
]
=
''
const
i
=
this
.
mutIndex
[
0
]
this
.
AllData
[
i
].
cityInfoList
.
forEach
((
element
,
index
)
=>
{
if
(
element
.
cityId
===
val
)
{
this
.
mutIndex
[
1
]
=
index
}
})
this
.
getArea
(
this
.
mutIndex
[
0
],
this
.
mutIndex
[
1
])
this
.
area
=
''
val
?
this
.
$emit
(
'cityArea'
,
this
.
mutArray
)
:
false
},
// 选择区
selectArea
(
val
)
{
this
.
mutArray
[
2
]
=
val
val
?
this
.
$emit
(
'cityArea'
,
this
.
mutArray
)
:
false
},
// 获取市
getCity
(
index
)
{
const
arr
=
[]
this
.
AllData
[
index
].
cityInfoList
.
forEach
(
element
=>
{
arr
.
push
({
cityId
:
element
.
cityId
,
cityName
:
element
.
cityName
})
})
this
.
cityList
=
arr
},
// 获取区
getArea
(
i
,
j
)
{
const
arr
=
[]
this
.
AllData
[
i
].
cityInfoList
[
j
].
areaInfoList
.
forEach
(
element
=>
{
arr
.
push
({
areaId
:
element
.
areaId
,
areaName
:
element
.
areaName
})
})
this
.
areaList
=
arr
}
}
}
</
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