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 c9227d1b
authored
Mar 29, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-oss-merchant-data
2 parents
180d4632
627a9fe2
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
92 additions
and
138 deletions
src/base.js
src/views/customer/businessDetails/index.vue
src/views/customer/businessGroup/index.vue
src/views/customer/businessGroupDetail/addBusiness.vue
src/views/customer/businessGroupDetail/index.vue
src/views/customer/businessList/AddDialog.vue
src/views/customer/businessList/SearchDialog.vue
src/views/customer/businessList/index.vue
src/views/customer/businessManagement/index.vue
src/views/customer/components/src/cityArea.vue
src/base.js
View file @
c9227d1
...
...
@@ -105,7 +105,7 @@ var mixin = {
// }
}
}
const
URL
=
'
http://192.168.3.171:7300
/mock/5be17454f31545347559d499/config'
const
URL
=
'
http://oss-config.test.glsx.com.cn
/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/business_data_config'
)
=>
{
return
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
()
...
...
src/views/customer/businessDetails/index.vue
View file @
c9227d1
...
...
@@ -257,7 +257,8 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
// console.log(rows[index])
this
.
parentLevelTableData
.
data
=
[]
this
.
childLevelTableData
.
data
=
[]
this
.
getGroupLevelInfo
(
rows
[
index
].
id
)
}
}]
...
...
@@ -311,11 +312,10 @@ export default {
},
methods
:
{
back
()
{
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据
平台'
,
'商户数据平台'
,
'商户列表'
,
'商户
列表'
])
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据
管理'
,
'商户数据'
,
'商户列表管理'
,
'商户数据
列表'
])
},
goGroupDetail
(
row
)
{
// console.log(row)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户分组详情'
],
{
groupId
:
row
.
id
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据管理'
,
'商户数据'
,
'商户分组管理'
,
'*商户分组详情'
],
{
groupId
:
row
.
id
})
},
goBusinessDetail
(
row
)
{
this
.
detailVisible
()
...
...
@@ -324,8 +324,6 @@ export default {
},
// 切换tab
handleClick
(
tab
,
event
)
{
// console.log(tab, event)
// console.log(this.IdChange)
switch
(
tab
.
name
)
{
case
'first'
:
this
.
IdChange
[
0
]
&&
this
.
getBasicInfo
()
...
...
@@ -348,10 +346,10 @@ export default {
this
.
merchantInfo
=
res
this
.
assignBasicInfo
()
this
.
IdChange
[
0
]
=
0
// notice.okTips()
}).
catch
(
err
=>
{
this
.
IdChange
[
0
]
=
0
notice
.
errorTips
(
err
)
console
.
log
(
err
)
notice
.
errorTips
(
'查询失败'
)
})
},
assignBasicInfo
()
{
...
...
@@ -378,12 +376,10 @@ export default {
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
this
.
staffLoading
=
false
// console.log(this.IdChange[1])
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(()
=>
{
this
.
IdChange
[
1
]
=
0
this
.
staffLoading
=
false
notice
.
errorTips
(
err
)
notice
.
errorTips
(
'查询失败'
)
})
},
// 分组信息
...
...
@@ -394,27 +390,22 @@ export default {
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
this
.
groupLoading
=
false
// console.log(this.IdChange[2])
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(()
=>
{
this
.
IdChange
[
2
]
=
0
this
.
groupLoading
=
false
notice
.
errorTips
(
err
)
notice
.
errorTips
(
'查询失败'
)
})
},
// 分组信息-详情
getGroupLevelInfo
(
groupId
)
{
const
params
=
{
merchantId
:
this
.
merchantId
,
groupId
:
groupId
}
params
.
method
=
bizMethods
.
GroupLevel
console
.
log
(
params
)
this
.
detailVisible
()
request
.
req
(
params
).
then
(
res
=>
{
// console.log([res.parentMerchantLevel])
res
.
parentMerchantLevel
&&
(
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
])
res
.
childMerchantLevels
&&
(
this
.
childLevelTableData
.
data
=
res
.
childMerchantLevels
)
}).
catch
(
err
=>
{
// console.log(err)
notice
.
errorTips
(
err
)
}).
catch
(()
=>
{
notice
.
errorTips
(
'查询失败'
)
})
},
detailVisible
()
{
...
...
@@ -429,15 +420,12 @@ export default {
<
style
>
.amap-page-container
{
/* display: inline-block; */
width
:
100%
;
height
:
300px
;
/* vertical-align: text-top; */
}
.amap-demo
{
height
:
300px
;
border
:
1px
solid
#ebeef5
;
border-radius
:
10px
;
}
.detail
{
margin
:
12px
;
...
...
src/views/customer/businessGroup/index.vue
View file @
c9227d1
...
...
@@ -8,6 +8,7 @@
>
新增分组
</gl-button>
</div>
<gl-table
class=
"m-b10"
:table=
"tableData"
v-loading=
"tableLoading"
>
</gl-table>
...
...
@@ -18,7 +19,7 @@
:current-page=
"pageNum"
:page-sizes=
"[10,20,30,40]"
:page-size=
"pageSize"
layout=
"
sizes, total
, ->, prev, pager, next, jumper"
layout=
"
total, sizes
, ->, prev, pager, next, jumper"
:total=
"total"
></gl-pagination>
<gl-dialog
...
...
@@ -144,7 +145,7 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
row
)
=>
{
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
平台'
,
'商户数据平台'
,
'商户分组
'
,
'*商户分组详情'
],
{
groupId
:
row
[
index
].
id
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
管理'
,
'商户数据'
,
'商户分组管理
'
,
'*商户分组详情'
],
{
groupId
:
row
[
index
].
id
})
}
}
]
...
...
@@ -154,7 +155,6 @@ export default {
},
mounted
()
{
this
.
loadingGetList
()
this
.
getBusinessList
()
},
methods
:
{
loadingGetList
()
{
...
...
@@ -174,7 +174,7 @@ export default {
request
.
req
(
params
)
.
then
(
res
=>
{
this
.
total
=
res
.
pagination
.
totalCount
res
.
pagination
&&
(
this
.
total
=
res
.
pagination
.
totalCount
)
this
.
tableData
.
data
=
res
.
groupDicts
this
.
tableLoading
=
false
})
...
...
@@ -206,6 +206,7 @@ export default {
},
dialog
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
this
.
getBusinessList
()
},
// 新增分组
handleSubmit
(
formName
)
{
...
...
@@ -213,7 +214,6 @@ export default {
if
(
valid
)
{
this
.
createGroup
(
this
.
addParams
)
}
else
{
console
.
log
(
'error submit!!'
)
return
false
}
})
...
...
src/views/customer/businessGroupDetail/addBusiness.vue
View file @
c9227d1
...
...
@@ -56,6 +56,7 @@
v-validate="item.merchantId || item.merchantType ? 'required' : ''"
:data-vv-as="`子商户`"
clearable
@change="changeMerchant"
placeholder="请输入商户名称/商户号"
:remote-method="remoteChildList"
:loading="childLoading">
...
...
@@ -101,7 +102,7 @@
<
/template
>
<
script
>
import
{
resetSearch
}
from
'@/common/common'
//
import
{
resetSearch
}
from
'@/common/common'
import
notice
from
'@/common/notice'
import
{
businessManagenMethods
,
groupDetailMethods
,
request
}
from
'@/api'
export
default
{
...
...
@@ -138,11 +139,13 @@ export default {
'addForm.merchantId'
(
val
)
{
if
(
this
.
addList
.
length
!==
0
)
{
this
.
addList
.
forEach
(
item
=>
{
for
(
var
j
in
item
)
{
if
(
j
==
'merchantId'
||
j
==
'merchantType'
)
{
item
[
j
]
=
''
}
}
// for (var j in item)
{
// if (j == 'merchantId' || j == 'merchantType')
{
// item[j] = ''
//
}
//
}
item
[
'merchantId'
]
=
''
item
[
'merchantType'
]
=
''
}
)
}
}
...
...
@@ -158,7 +161,6 @@ export default {
this
.
$validator
.
validateAll
().
then
((
result
)
=>
{
if
(
result
)
{
if
(
this
.
addList
.
length
!==
0
)
{
console
.
log
(
this
.
addList
)
if
(
this
.
addList
[
0
].
merchantId
)
{
this
.
addList
.
forEach
(
item
=>
{
delete
item
.
label
...
...
@@ -169,7 +171,6 @@ export default {
}
const
params
=
this
.
$deep_clone
(
this
.
addForm
)
params
.
groupId
=
this
.
groupId
console
.
log
(
params
)
params
.
method
=
groupDetailMethods
.
Create
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
...
...
@@ -190,7 +191,6 @@ export default {
}
,
// 添加更多按钮
addMore
()
{
console
.
log
(
this
.
addForm
.
merchantId
)
if
(
this
.
addForm
.
merchantId
)
{
this
.
isAdd
=
false
if
(
this
.
addList
.
length
===
0
)
{
...
...
@@ -250,7 +250,23 @@ export default {
params
.
method
=
groupDetailMethods
.
SearchChildList
request
.
req
(
params
).
then
(
res
=>
{
this
.
childLoading
=
false
this
.
businessChildList
=
res
.
merchantParams
const
arr
=
res
.
merchantParams
const
index
=
[]
let
list
=
[]
if
(
!
res
.
merchantParams
||
!
res
.
merchantParams
.
length
)
{
this
.
businessChildList
=
[]
return
}
for
(
var
i
of
res
.
merchantParams
)
{
for
(
var
j
of
this
.
addList
)
{
if
(
i
.
merchantId
===
j
.
merchantId
)
{
index
.
push
(
i
.
merchantId
)
}
}
}
list
=
arr
.
filter
(
item
=>
!
index
.
includes
(
item
.
merchantId
))
// list = [...arr].filter(item => [...this.addList].every(obj => obj.merchantId !== item.merchantId))
this
.
businessChildList
=
index
.
length
?
list
:
arr
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
}
)
...
...
@@ -258,6 +274,9 @@ export default {
this
.
businessChildList
=
[]
}
}
,
changeMerchant
(
val
)
{
this
.
businessChildList
=
[]
}
,
// 获取商户类型列表
getBusinessType
()
{
const
params
=
{
}
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
c9227d1
...
...
@@ -36,7 +36,7 @@
:current-page=
"pageNum"
:page-sizes=
"[10,20,30,40]"
:page-size=
"pageSize"
layout=
"
sizes, total
, ->, prev, pager, next, jumper"
layout=
"
total, sizes
, ->, prev, pager, next, jumper"
:total=
"total"
>
</gl-pagination>
...
...
@@ -232,7 +232,6 @@ export default {
const
params
=
this
.
getParams
()
params
.
groupId
=
this
.
groupId
params
.
method
=
groupDetailMethods
.
Search
console
.
log
(
params
)
request
.
req
(
params
)
.
then
(
res
=>
{
...
...
@@ -310,7 +309,7 @@ export default {
}
},
merchantDetail
(
merchantId
)
{
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
平台'
,
'商户数据平台'
,
'商户列表
'
,
'*商户详情'
],
{
merchantId
:
merchantId
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
管理'
,
'商户数据'
,
'商户列表管理
'
,
'*商户详情'
],
{
merchantId
:
merchantId
})
}
}
}
...
...
src/views/customer/businessList/AddDialog.vue
View file @
c9227d1
...
...
@@ -9,11 +9,11 @@
:close-on-click-modal=
"false"
>
<gl-form
label-width=
"
85
px"
label-width=
"
90
px"
:model=
"merchantForm"
:rules=
"rules"
>
<gl-form-item
label=
"商户名称
:
"
>
<gl-form-item
label=
"商户名称
"
prop=
"merchantName
"
>
<gl-input
v-model=
"merchantForm.merchantName"
placeholder=
"请输入商户名称"
...
...
@@ -24,7 +24,7 @@
></gl-input>
<span
v-show=
"errorBags.has('name')"
class=
"error"
>
{{
errorBags
.
first
(
'name'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"商户地址
:
"
>
<gl-form-item
label=
"商户地址
"
prop=
"address
"
>
<city-area
ref=
"c"
:showCity=
"showCity"
...
...
@@ -45,10 +45,13 @@
</gl-input>
<span
v-show=
"errorBags.has('address')"
class=
"error"
>
{{
errorBags
.
first
(
'address'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"商户渠道
:
"
>
<gl-form-item
label=
"商户渠道
"
prop=
"merchantChannel
"
>
<gl-select
v-model=
"merchantForm.merchantChannel"
placeholder=
"请选择"
name=
"merchantChannel"
data-vv-as=
"商户渠道"
v-validate=
"'required'"
>
<gl-option
v-for=
"item in channelList"
...
...
@@ -57,8 +60,9 @@
:value=
"item.confId"
>
</gl-option>
</gl-select>
<span
v-show=
"errorBags.has('merchantChannel')"
class=
"error"
>
{{
errorBags
.
first
(
'merchantChannel'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"联系人
:
"
>
<gl-form-item
label=
"联系人
"
prop=
"contactor
"
>
<gl-input
v-model=
"merchantForm.contactor"
placeholder=
"请输入联系人姓名"
...
...
@@ -69,7 +73,7 @@
></gl-input>
<span
v-show=
"errorBags.has('contactor')"
class=
"error"
>
{{
errorBags
.
first
(
'contactor'
)
}}
</span>
</gl-form-item>
<gl-form-item
label=
"手机号码
:
"
>
<gl-form-item
label=
"手机号码
"
prop=
"contactPhone
"
>
<gl-input
v-model=
"merchantForm.contactPhone"
placeholder=
"请输入联系人手机号码"
...
...
@@ -93,7 +97,6 @@
</
template
>
<
script
>
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
{
businessManagenMethods
,
request
}
from
'@/api'
const
isPhone
=
{
...
...
@@ -148,7 +151,7 @@ export default {
},
mounted
()
{
this
.
$validator
.
extend
(
'is_phone'
,
isPhone
)
this
.
eventBus
=
new
Vue
()
this
.
eventBus
=
this
.
$root
.
eventBus
},
methods
:
{
handleClose
()
{
...
...
@@ -174,7 +177,6 @@ export default {
})
},
getCityArea
(
params
)
{
// console.log(params)
params
[
0
]
&&
(
this
.
areaInfo
.
provinceId
=
params
[
0
])
params
[
1
]
&&
(
this
.
areaInfo
.
cityId
=
params
[
1
])
params
[
2
]
&&
(
this
.
areaInfo
.
areaId
=
params
[
2
])
...
...
@@ -190,4 +192,7 @@ export default {
.newBusiness
.el-dialog__body
{
padding
:
0
20px
;
}
.newBusiness
.el-select
{
width
:
100%
;
}
</
style
>
\ No newline at end of file
src/views/customer/businessList/SearchDialog.vue
View file @
c9227d1
...
...
@@ -10,9 +10,9 @@
>
<gl-form
:model=
"merchantSearch"
label-width=
"
85
px"
label-width=
"
90
px"
>
<gl-form-item
label=
"商户名称
:
"
>
<gl-form-item
label=
"商户名称"
>
<gl-input
v-model=
"merchantSearch.name"
placeholder=
"请输入商户名称"
...
...
@@ -20,7 +20,7 @@
></gl-input>
</gl-form-item>
<gl-col
:span=
"12"
>
<gl-form-item
label=
"商户号
:
"
>
<gl-form-item
label=
"商户号"
>
<gl-input
v-model=
"merchantSearch.merchantId"
placeholder=
"请输入商户号"
...
...
@@ -29,33 +29,16 @@
</gl-form-item>
</gl-col>
<gl-col
:span=
"12"
>
<gl-form-item
label=
"地区
:
"
>
<gl-form-item
label=
"地区"
>
<city-area
:showCity=
"showCity"
:eventBus=
"eventBus"
@
cityArea=
"getCityArea"
></city-area>
<!--
<gl-col
:span=
"11"
>
<gl-select
v-model=
"merchantSearch.provinceId"
placeholder=
"省"
>
</gl-select>
</gl-col>
<gl-col
:span=
"11"
:push=
"2"
>
<gl-select
v-model=
"merchantSearch.cityId"
placeholder=
"市"
>
</gl-select>
</gl-col>
-->
</gl-form-item>
</gl-col>
<gl-col
:span=
"12"
>
<gl-form-item
label=
"渠道
:
"
>
<gl-form-item
label=
"渠道"
>
<gl-select
style=
"width: 100%;"
v-model=
"merchantSearch.merchantChannel"
...
...
@@ -72,18 +55,12 @@
</gl-form-item>
</gl-col>
<gl-col
:span=
"12"
>
<gl-form-item
label=
"状态
:
"
>
<gl-form-item
label=
"状态"
>
<gl-select
style=
"width: 100%;"
v-model=
"merchantSearch.merchantStatus"
placeholder=
"请选择状态"
>
<!--
<gl-option
v-for=
"(item, index) in statusItems"
:key=
"item"
:value=
"index"
:label=
"item"
></gl-option>
-->
<gl-option
v-for=
"(value, key) in statusItems"
:key=
"value"
...
...
@@ -94,28 +71,16 @@
</gl-form-item>
</gl-col>
<gl-col>
<gl-form-item
label=
"注册时间
:
"
>
<gl-form-item
label=
"注册时间"
>
<gl-col
:span=
"11"
>
<gl-date-picker
type=
"date"
placeholder=
"选择日期"
v-model=
"merchantSearch.startTime"
v-model=
"merchantSearch.times"
type=
"daterange"
value-format=
"yyyy-MM-dd"
style=
"width:92%;"
></gl-date-picker>
</gl-col>
<gl-col
class=
"line"
:span=
"2"
>
至
</gl-col>
<gl-col
:span=
"11"
>
<gl-date-picker
type=
"date"
placeholder=
"选择日期"
v-model=
"merchantSearch.endTime"
value-format=
"yyyy-MM-dd"
style=
"width: 100%;"
></gl-date-picker>
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</gl-date-picker>
</gl-col>
</gl-form-item>
</gl-col>
...
...
@@ -132,7 +97,6 @@
</
template
>
<
script
>
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
{
businessManagenMethods
,
request
}
from
'@/api'
export
default
{
...
...
@@ -166,14 +130,13 @@ export default {
}
},
mounted
()
{
this
.
eventBus
=
new
Vue
()
this
.
eventBus
=
this
.
$root
.
eventBus
},
methods
:
{
getChannelList
()
{
const
params
=
{}
params
.
method
=
businessManagenMethods
.
Channel
request
.
req
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
channelList
=
res
.
merchantDictList
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
@@ -184,6 +147,11 @@ export default {
this
.
$emit
(
'hideDialog'
,
true
)
},
handleComfrim
()
{
if
(
this
.
merchantSearch
.
times
)
{
this
.
merchantSearch
.
startTime
=
this
.
merchantSearch
.
times
[
0
]
this
.
merchantSearch
.
endTime
=
this
.
merchantSearch
.
times
[
1
]
delete
this
.
merchantSearch
.
times
}
this
.
eventBus
.
$emit
(
'reset'
)
this
.
$emit
(
'comfirmDialog'
)
},
...
...
@@ -192,7 +160,6 @@ export default {
this
.
$emit
(
'hideDialog'
)
},
getCityArea
(
params
)
{
console
.
log
(
params
)
params
[
0
]
&&
(
this
.
merchantSearch
.
provinceId
=
params
[
0
])
params
[
1
]
&&
(
this
.
merchantSearch
.
cityId
=
params
[
1
])
}
...
...
src/views/customer/businessList/index.vue
View file @
c9227d1
...
...
@@ -20,7 +20,7 @@
:current-page
.
sync=
"pageNum"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"pageSize"
layout=
"
sizes, total
, ->, prev, pager, next, jumper"
layout=
"
total, sizes
, ->, prev, pager, next, jumper"
:total=
"totalCount"
>
</gl-pagination>
...
...
@@ -135,7 +135,7 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
平台'
,
'商户数据平台'
,
'商户列表
'
,
'*商户详情'
],
{
merchantId
:
rows
[
index
].
merchantId
})
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据
管理'
,
'商户数据'
,
'商户列表管理
'
,
'*商户详情'
],
{
merchantId
:
rows
[
index
].
merchantId
})
}
}]
},
...
...
@@ -169,14 +169,14 @@ export default {
getList
()
{
const
params
=
this
.
getParams
()
params
.
method
=
bizMethods
.
Search
console
.
log
(
params
)
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
totalCount
=
res
.
pagination
.
totalCount
res
.
pagination
&&
(
this
.
totalCount
=
res
.
pagination
.
totalCount
)
resetSearch
(
this
.
merchantSearch
)
this
.
tableLoading
=
false
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
console
.
log
(
err
)
notice
.
errorTips
(
'查询失败'
)
resetSearch
(
this
.
merchantSearch
)
this
.
tableLoading
=
false
})
...
...
@@ -187,13 +187,11 @@ export default {
params
.
method
=
bizMethods
.
Create
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
// resetSearch(this.merchantForm)
this
.
handleAddHide
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
console
.
log
(
err
)
// resetSearch(this.merchantForm)
notice
.
errorTips
(
err
)
notice
.
errorTips
(
'新增失败'
)
})
},
// 接口请求-end
...
...
@@ -205,11 +203,6 @@ export default {
this
.
pageNum
=
val
this
.
loadingGetList
()
},
// reset(params) {
// for (var item in params) {
// params[item] = ''
// }
// },
// 搜索-start--------
handleSearch
()
{
this
.
searchVisible
=
!
this
.
searchVisible
...
...
@@ -218,7 +211,6 @@ export default {
handleSearchHide
(
hide
)
{
resetSearch
(
this
.
merchantSearch
)
hide
&&
this
.
handleSearch
()
console
.
log
(
this
.
merchantSearch
)
},
// 搜索
handleSearchComfirm
()
{
...
...
src/views/customer/businessManagement/index.vue
View file @
c9227d1
...
...
@@ -146,25 +146,24 @@ export default {
const
params
=
{}
params
.
method
=
businessManagenMethods
.
Business
request
.
req
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
.
data
=
res
.
merchantDictList
this
.
tableLoading
=
false
}).
catch
(
err
=>
{
console
.
log
(
err
)
this
.
tableLoading
=
false
notice
.
errorTips
(
err
)
notice
.
errorTips
(
'查询失败'
)
})
},
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
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
console
.
log
(
err
)
notice
.
errorTips
(
'新增失败'
)
})
}
}
...
...
src/views/customer/components/src/cityArea.vue
View file @
c9227d1
...
...
@@ -97,25 +97,13 @@ export default {
watch
:
{
// 监听省市被clear清空市区数组
province
(
val
)
{
// console.log(val)
!
val
?
this
.
cityList
=
[]
&&
(
this
.
areaList
=
[])
:
false
},
city
(
val
)
{
!
val
?
this
.
areaList
=
[]
:
false
}
// eventBus: {
// handler(__eventBus) {
// if (__eventBus) {
// __eventBus.$on('reset', () => {
// console.log('reset----------')
// this.$validator.errors.clear()
// })
// }
// }
// }
},
mounted
()
{
// console.log(this.showCity)
this
.
eventBus
.
$on
(
'reset'
,
()
=>
{
this
.
resetAll
()
})
...
...
@@ -125,8 +113,6 @@ export default {
this
.
AllData
.
forEach
(
element
=>
{
this
.
provinceList
.
push
({
provinceId
:
element
.
provinceId
,
provinceName
:
element
.
provinceName
})
})
// this.getCity(0)
// this.getArea(0, 0)
})
},
methods
:
{
...
...
@@ -153,7 +139,6 @@ export default {
this
.
mutIndex
[
1
]
=
''
this
.
mutIndex
[
2
]
=
''
this
.
getCity
(
this
.
mutIndex
[
0
])
// this.getArea(this.mutIndex[0], 0)
// 选择省清空已选的市区value
this
.
city
=
''
this
.
area
=
''
...
...
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