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 a86c2e1b
authored
Mar 25, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
232e3b4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
135 additions
and
30 deletions
package-lock.json
src/views/customer/businessDetails/index.vue
src/views/customer/businessManagement/index.vue
src/views/customer/components/src/cityArea.vue
package-lock.json
View file @
a86c2e1
...
@@ -2270,6 +2270,11 @@
...
@@ -2270,6 +2270,11 @@
"integrity"
:
"sha1-2VUfnemPH82h5oPRfukaBgLuLrk="
,
"integrity"
:
"sha1-2VUfnemPH82h5oPRfukaBgLuLrk="
,
"dev"
:
true
"dev"
:
true
},
},
"blueimp-md5"
:
{
"version"
:
"2.10.0"
,
"resolved"
:
"https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.10.0.tgz"
,
"integrity"
:
"sha512-EkNUOi7tpV68TqjpiUz9D9NcT8um2+qtgntmMbi5UKssVX2m/2PLqotcric0RE63pB3HPN/fjf3cKHN2ufGSUQ=="
},
"bn.js"
:
{
"bn.js"
:
{
"version"
:
"4.11.8"
,
"version"
:
"4.11.8"
,
"resolved"
:
"http://registry.npm.taobao.org/bn.js/download/bn.js-4.11.8.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/bn.js/download/bn.js-4.11.8.tgz"
,
...
@@ -5495,9 +5500,9 @@
...
@@ -5495,9 +5500,9 @@
}
}
},
},
"glsx-vue-common"
:
{
"glsx-vue-common"
:
{
"version"
:
"1.2.
0
"
,
"version"
:
"1.2.
1
"
,
"resolved"
:
"http
://registry.npm.taobao.org/glsx-vue-common/download/glsx-vue-common-1.2.0
.tgz"
,
"resolved"
:
"http
s://registry.npmjs.org/glsx-vue-common/-/glsx-vue-common-1.2.1
.tgz"
,
"integrity"
:
"sha
1-wyMWhUiCwyjsQjM2kih4NuTbMgM
="
,
"integrity"
:
"sha
512-QlTi29xq4lwV4I0l7FgdEaIyXyCbdKMUF6JvlYT0S/7rdfHzZRR3Y1GtO3e3y62S3dyku+7EQLXbr7y9Qd27Xw=
="
,
"requires"
:
{
"requires"
:
{
"vue"
:
"2.5.17"
"vue"
:
"2.5.17"
}
}
...
@@ -6774,6 +6779,11 @@
...
@@ -6774,6 +6779,11 @@
"resolved"
:
"http://registry.npm.taobao.org/js-base64/download/js-base64-2.4.9.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/js-base64/download/js-base64-2.4.9.tgz"
,
"integrity"
:
"sha1-dIkR+wT0imDEdxs3XKxFqA3xHAM="
"integrity"
:
"sha1-dIkR+wT0imDEdxs3XKxFqA3xHAM="
},
},
"js-md5"
:
{
"version"
:
"0.7.3"
,
"resolved"
:
"https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz"
,
"integrity"
:
"sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
},
"js-message"
:
{
"js-message"
:
{
"version"
:
"1.0.5"
,
"version"
:
"1.0.5"
,
"resolved"
:
"http://registry.npm.taobao.org/js-message/download/js-message-1.0.5.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/js-message/download/js-message-1.0.5.tgz"
,
...
...
src/views/customer/businessDetails/index.vue
View file @
a86c2e1
...
@@ -47,8 +47,6 @@
...
@@ -47,8 +47,6 @@
<span
v-else
>
{{
i
.
value
}}
</span>
<span
v-else
>
{{
i
.
value
}}
</span>
</span>
</span>
</gl-col>
</gl-col>
<!--
<gl-col
:span=
'24'
style=
''
><span>
商户名称:
</span>
</gl-col>
-->
</gl-tab-pane>
</gl-tab-pane>
<gl-tab-pane
<gl-tab-pane
...
@@ -61,16 +59,43 @@
...
@@ -61,16 +59,43 @@
label=
'分组信息'
label=
'分组信息'
name=
'third'
name=
'third'
>
>
<gl-table
:table=
"groupTableData"
></gl-table>
<gl-table
:table=
"groupTableData"
>
<gl-table-column
align=
"center"
v-for=
"(i, index) in groupTableData.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
>
<template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "groupName"'
>
{{
groupTableData
.
data
[
scope
.
scope
.
$index
][
i
.
prop
]
===
'云商'
?
1
:
2
}}
</
template
>
<
template
v-else
>
{{
22222222222222
}}
</
template
>
</template>
</gl-table-column>
</gl-table>
</gl-tab-pane>
</gl-tab-pane>
</gl-tabs>
</gl-tabs>
<gl-dialog
:visible
.
sync=
"isVisible"
:before-close=
"handleDetailClose"
:width=
"diaWidth"
>
<span>
父商户信息:
</span>
<gl-table
:table=
"parentLevelTableData"
></gl-table>
<span>
子商户信息:
</span>
<gl-table
:table=
"childLevelTableData"
></gl-table>
<span
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"handleDetailClose"
>
确 定
</el-button>
</span>
</gl-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
VueAMap
from
'vue-amap'
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
merchantDetail
,
merchantPersonal
,
merchantGroup
}
from
'@/api/index
'
import
{
bizMethods
,
request
}
from
'@/api
'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
const
amapManager
=
new
VueAMap
.
AMapManager
()
const
amapManager
=
new
VueAMap
.
AMapManager
()
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
...
@@ -201,10 +226,37 @@ export default {
...
@@ -201,10 +226,37 @@ export default {
label
:
'详情'
,
label
:
'详情'
,
type
:
'text'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
callback
:
(
index
,
rows
)
=>
{
console
.
log
(
rows
[
index
]
)
this
.
getGroupLevelInfo
(
rows
[
index
].
GroupName
)
}
}
}]
}]
}
}
},
// 分组信息-详情
isVisible
:
false
,
diaWidth
:
'40%'
,
parentLevelTableData
:
{
border
:
true
,
align
:
'center'
,
data
:
[],
column
:
[{
label
:
'商户号'
,
prop
:
'merchantId'
},
{
label
:
'商户名称'
,
prop
:
'merchantName'
}]
},
childLevelTableData
:
{
border
:
true
,
align
:
'center'
,
data
:
[],
column
:
[{
label
:
'商户号'
,
prop
:
'merchantId'
},
{
label
:
'商户名称'
,
prop
:
'merchantName'
}]
}
}
}
}
},
},
...
@@ -245,7 +297,9 @@ export default {
...
@@ -245,7 +297,9 @@ export default {
},
},
// 基本信息
// 基本信息
getBasicInfo
()
{
getBasicInfo
()
{
merchantDetail
.
req
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
methods
=
bizMethods
.
Detail
request
.
req
(
params
).
then
(
res
=>
{
this
.
merchantInfo
=
res
this
.
merchantInfo
=
res
this
.
assignBasicInfo
()
this
.
assignBasicInfo
()
this
.
IdChange
[
0
]
=
0
this
.
IdChange
[
0
]
=
0
...
@@ -272,7 +326,9 @@ export default {
...
@@ -272,7 +326,9 @@ export default {
},
},
// 员工信息
// 员工信息
getStaffInfo
()
{
getStaffInfo
()
{
merchantPersonal
.
req
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
methods
=
bizMethods
.
Personal
request
.
req
(
params
).
then
(
res
=>
{
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
this
.
IdChange
[
1
]
=
0
// notice.okTips()
// notice.okTips()
...
@@ -282,13 +338,34 @@ export default {
...
@@ -282,13 +338,34 @@ export default {
},
},
// 分组信息
// 分组信息
getGroupInfo
()
{
getGroupInfo
()
{
merchantGroup
.
req
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
const
params
=
({
merchantId
:
this
.
merchantId
})
params
.
methods
=
bizMethods
.
Group
request
.
req
(
params
).
then
(
res
=>
{
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
this
.
IdChange
[
2
]
=
0
// notice.okTips()
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
})
})
},
// 分组信息-详情
getGroupLevelInfo
(
groupName
)
{
const
params
=
({
merchantId
:
this
.
merchantId
,
groupId
:
groupName
})
params
.
methods
=
bizMethods
.
GroupLevel
request
.
req
(
params
).
then
(
res
=>
{
console
.
log
([
res
.
parentMerchantLevel
])
this
.
parentLevelTableData
.
data
=
[
res
.
parentMerchantLevel
]
this
.
childLevelTableData
.
data
=
res
.
childMerchantLevels
this
.
detailVisible
()
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
},
detailVisible
()
{
this
.
isVisible
=
!
this
.
isVisible
},
handleDetailClose
()
{
this
.
detailVisible
()
}
}
}
}
}
}
...
...
src/views/customer/businessManagement/index.vue
View file @
a86c2e1
...
@@ -54,7 +54,13 @@
...
@@ -54,7 +54,13 @@
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
>
{{
errorBags
.
first
(
'businessDescription'
)
}}
</span>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"地址"
>
<gl-form-item
label=
"地址"
>
<city-area
ref=
"c"
:showCity=
"showCity"
:eventBus=
"$root.eventBus"
:validateCity=
"validateCity"
@
cityArea=
"getCityArea"
></city-area>
<city-area
ref=
"c"
:showCity=
"showCity"
:eventBus=
"eventBus"
:validateCity=
"validateCity"
@
cityArea=
"getCityArea"
></city-area>
</gl-form-item>
</gl-form-item>
</gl-form>
</gl-form>
<div
<div
...
@@ -75,6 +81,7 @@
...
@@ -75,6 +81,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
{
CityArea
}
from
'../components'
import
addBusiness
from
'./addBusiness'
import
addBusiness
from
'./addBusiness'
// import { jumpLink } from '../../../common/common.js'
// import { jumpLink } from '../../../common/common.js'
...
@@ -86,6 +93,7 @@ export default {
...
@@ -86,6 +93,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
eventBus
:
null
,
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
align
:
'center'
,
align
:
'center'
,
...
@@ -166,17 +174,18 @@ export default {
...
@@ -166,17 +174,18 @@ export default {
if
(
val
)
{
if
(
val
)
{
this
.
form
=
{
businessName
:
''
,
businessDescription
:
''
,
area
:
''
}
this
.
form
=
{
businessName
:
''
,
businessDescription
:
''
,
area
:
''
}
}
else
{
}
else
{
this
.
eventBus
.
$emit
(
'reset'
)
this
.
$validator
.
errors
.
clear
()
this
.
$validator
.
errors
.
clear
()
this
.
$refs
[
'c'
].
$validator
.
errors
.
clear
()
clearTimeout
(
timer
)
}
const
timer
=
setTimeout
(()
=>
{
},
this
.
$refs
[
'c'
].
$validator
.
errors
.
clear
()
'this.$root.eventBus'
(
val
)
{
},
400
)
console
.
log
(
val
,
11212
)
if
(
val
)
{
this
.
$root
.
eventBus
.
$emit
(
'reset'
)
}
}
}
}
},
},
mounted
()
{
this
.
eventBus
=
new
Vue
()
},
methods
:
{
methods
:
{
// 显示隐藏弹窗
// 显示隐藏弹窗
showDialog
()
{
showDialog
()
{
...
...
src/views/customer/components/src/cityArea.vue
View file @
a86c2e1
...
@@ -90,24 +90,33 @@ export default {
...
@@ -90,24 +90,33 @@ export default {
watch
:
{
watch
:
{
// 监听省市被clear清空市区数组
// 监听省市被clear清空市区数组
province
(
val
)
{
province
(
val
)
{
console
.
log
(
val
)
//
console.log(val)
!
val
?
this
.
cityList
=
[]
&&
(
this
.
areaList
=
[])
:
false
!
val
?
this
.
cityList
=
[]
&&
(
this
.
areaList
=
[])
:
false
},
},
city
(
val
)
{
city
(
val
)
{
!
val
?
this
.
areaList
=
[]
:
false
!
val
?
this
.
areaList
=
[]
:
false
},
eventBus
:
{
handler
(
__eventBus
)
{
if
(
__eventBus
)
{
__eventBus
.
$on
(
'reset'
,
()
=>
{
console
.
log
(
'虫豸'
)
})
}
}
}
}
// eventBus(val) {
// console.log(val)
// },
// eventBus: {
// handler(__eventBus) {
// if (__eventBus) {
// __eventBus.$on('reset', () => {
// console.log('reset----------')
// this.$validator.errors.clear()
// })
// }
// }
// }
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
showCity
)
// console.log(this.showCity)
this
.
eventBus
.
$on
(
'reset'
,
()
=>
{
this
.
province
=
''
this
.
city
=
''
this
.
area
=
''
})
// 初始化
// 初始化
this
.
$request
({
url
:
'http://192.168.3.171:7300/mock/5be17454f31545347559d499/config/area_config'
}).
then
(
data
=>
{
this
.
$request
({
url
:
'http://192.168.3.171:7300/mock/5be17454f31545347559d499/config/area_config'
}).
then
(
data
=>
{
this
.
AllData
=
JSON
.
parse
(
data
.
data
).
provinceInfoList
this
.
AllData
=
JSON
.
parse
(
data
.
data
).
provinceInfoList
...
...
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