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 ae9ffb1c
authored
Mar 28, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
80261b22
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
37 deletions
src/views/customer/businessDetails/index.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/views/customer/businessDetails/index.vue
View file @
ae9ffb1
...
...
@@ -18,7 +18,7 @@
label=
'基本信息'
name=
'first'
>
<gl-col
:span=
"24"
style=
"border: 1px solid #ebeef5;background: #fafafa;padding: 10px 20px;"
>
<gl-col
v-loading=
"IdChange[0]"
:span=
"24"
style=
"border: 1px solid #ebeef5;background: #fafafa;padding: 10px 20px;"
>
<gl-col
class=
"detail-row"
:span=
"i.isMap || i.img? 24 : 12"
...
...
@@ -132,6 +132,11 @@ export default {
return
{
tabPosition
:
'left'
,
merchantId
:
''
,
// loading标记
// loading: [0, 0, 0],
// basicLoading: false,
// staffLoading: false,
// groupLoading: false,
// 标记merchantId是否改变
IdChange
:
[
0
,
0
,
0
],
activeName
:
'first'
,
...
...
@@ -339,6 +344,7 @@ export default {
this
.
IdChange
[
0
]
=
0
// notice.okTips()
}).
catch
(
err
=>
{
this
.
IdChange
[
0
]
=
0
notice
.
errorTips
(
err
)
})
},
...
...
@@ -365,8 +371,10 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
// notice.okTips()
console
.
log
(
this
.
IdChange
[
1
])
notice
.
okTips
()
}).
catch
(
err
=>
{
this
.
IdChange
[
1
]
=
0
notice
.
errorTips
(
err
)
})
},
...
...
@@ -377,8 +385,10 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
// notice.okTips()
console
.
log
(
this
.
IdChange
[
2
])
notice
.
okTips
()
}).
catch
(
err
=>
{
this
.
IdChange
[
2
]
=
0
notice
.
errorTips
(
err
)
})
},
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
ae9ffb1
...
...
@@ -118,7 +118,7 @@ export default {
},
watch
:
{
groupId
(
val
)
{
this
.
g
etList
()
this
.
loadingG
etList
()
}
},
// mixins: [NoticeMixin],
...
...
src/views/customer/businessList/AddDialog.vue
View file @
ae9ffb1
...
...
@@ -152,7 +152,6 @@ export default {
},
methods
:
{
handleClose
()
{
// this.eventBus.$emit('reset')
this
.
$emit
(
'hideDialog'
)
},
handleComfrim
()
{
...
...
@@ -162,7 +161,6 @@ export default {
]).
then
((
result
)
=>
{
if
(
result
[
0
]
&&
result
[
1
])
{
this
.
$emit
(
'comfirmDialog'
,
this
.
areaInfo
)
// this.eventBus.$emit('reset')
}
})
},
...
...
@@ -177,12 +175,12 @@ export default {
},
getCityArea
(
params
)
{
// console.log(params)
this
.
areaInfo
.
provinceId
=
params
[
0
]
this
.
areaInfo
.
cityId
=
params
[
1
]
this
.
areaInfo
.
areaId
=
params
[
2
]
this
.
areaInfo
.
provinceName
=
params
[
3
]
this
.
areaInfo
.
cityName
=
params
[
4
]
this
.
areaInfo
.
areaName
=
params
[
5
]
params
[
0
]
&&
(
this
.
areaInfo
.
provinceId
=
params
[
0
])
params
[
1
]
&&
(
this
.
areaInfo
.
cityId
=
params
[
1
])
params
[
2
]
&&
(
this
.
areaInfo
.
areaId
=
params
[
2
])
params
[
3
]
&&
(
this
.
areaInfo
.
provinceName
=
params
[
3
])
params
[
4
]
&&
(
this
.
areaInfo
.
cityName
=
params
[
4
])
params
[
5
]
&&
(
this
.
areaInfo
.
areaName
=
params
[
5
])
}
}
}
...
...
src/views/customer/businessList/SearchDialog.vue
View file @
ae9ffb1
...
...
@@ -60,7 +60,15 @@
style=
"width: 100%;"
v-model=
"merchantSearch.merchantChannel"
placeholder=
"请选择渠道"
></gl-select>
>
<gl-option
v-for=
"item in channelList"
:key=
"item.confId"
:label=
"item.confKey"
:value=
"item.confId"
>
</gl-option>
</gl-select>
</gl-form-item>
</gl-col>
<gl-col
:span=
"12"
>
...
...
@@ -79,8 +87,8 @@
<gl-option
v-for=
"(value, key) in statusItems"
:key=
"value"
:value=
"key"
:label=
"value"
:value=
"key"
></gl-option>
</gl-select>
</gl-form-item>
...
...
@@ -126,13 +134,15 @@
<
script
>
import
Vue
from
'vue'
import
{
CityArea
}
from
'../components'
import
{
businessManagenMethods
,
request
}
from
'@/api'
export
default
{
name
:
'SearchDialog'
,
data
()
{
return
{
title
:
'高级搜索'
,
eventBus
:
null
,
showCity
:
[
1
,
1
]
showCity
:
[
1
,
1
],
channelList
:
[]
}
},
props
:
{
...
...
@@ -150,10 +160,25 @@ export default {
components
:
{
CityArea
},
watch
:
{
isVisible
(
val
)
{
val
&&
this
.
getChannelList
()
}
},
mounted
()
{
this
.
eventBus
=
new
Vue
()
},
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
)
})
},
handleClose
()
{
this
.
eventBus
.
$emit
(
'reset'
)
this
.
$emit
(
'hideDialog'
,
true
)
...
...
@@ -167,8 +192,9 @@ export default {
this
.
$emit
(
'hideDialog'
)
},
getCityArea
(
params
)
{
this
.
merchantSearch
.
provinceId
=
params
[
0
]
this
.
merchantSearch
.
cityId
=
params
[
1
]
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 @
ae9ffb1
...
...
@@ -11,6 +11,7 @@
<gl-table
class=
"m-b10"
:table=
"ListTableData"
v-loading=
"tableLoading"
></gl-table>
<gl-pagination
background
...
...
@@ -45,6 +46,7 @@
import
SearchDialog
from
'./SearchDialog'
import
AddDialog
from
'./AddDialog'
import
{
bizMethods
,
request
}
from
'@/api'
import
{
resetSearch
}
from
'@/common/common'
import
notice
from
'@/common/notice'
export
default
{
name
:
'businessList'
,
...
...
@@ -54,6 +56,7 @@ export default {
},
data
()
{
return
{
tableLoading
:
false
,
// 新增弹窗
addVisible
:
false
,
merchantForm
:
{
...
...
@@ -147,7 +150,7 @@ export default {
}
},
mounted
()
{
this
.
g
etList
()
this
.
loadingG
etList
()
},
methods
:
{
// 获取页面参数
...
...
@@ -157,6 +160,10 @@ export default {
params
.
pageCount
=
this
.
pageSize
return
params
},
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
// 接口请求-start
getList
()
{
const
params
=
this
.
getParams
()
...
...
@@ -165,10 +172,12 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
this
.
ListTableData
.
data
=
res
.
merchants
this
.
totalCount
=
res
.
pagination
.
totalCount
this
.
reset
(
this
.
merchantSearch
)
resetSearch
(
this
.
merchantSearch
)
this
.
tableLoading
=
false
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
this
.
reset
(
this
.
merchantSearch
)
resetSearch
(
this
.
merchantSearch
)
this
.
tableLoading
=
false
})
},
saveMerchant
(
areaInfo
)
{
...
...
@@ -177,42 +186,43 @@ export default {
params
.
method
=
bizMethods
.
Create
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
this
.
reset
(
this
.
merchantForm
)
this
.
handleAdd
()
this
.
g
etList
()
// resetSearch
(this.merchantForm)
this
.
handleAdd
Hide
()
this
.
loadingG
etList
()
}).
catch
(
err
=>
{
console
.
log
(
err
)
// resetSearch(this.merchantForm)
notice
.
errorTips
(
err
)
})
},
// 接口请求-end
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
this
.
g
etList
()
this
.
loadingG
etList
()
},
handleCurrentChange
(
val
)
{
this
.
pageNum
=
val
this
.
getList
()
},
reset
(
params
)
{
for
(
var
item
in
params
)
{
params
[
item
]
=
''
}
this
.
loadingGetList
()
},
// reset(params) {
// for (var item in params) {
// params[item] = ''
// }
// },
// 搜索-start--------
handleSearch
()
{
this
.
searchVisible
=
!
this
.
searchVisible
},
// 隐藏/重置
handleSearchHide
(
hide
)
{
this
.
reset
(
this
.
merchantSearch
)
resetSearch
(
this
.
merchantSearch
)
hide
&&
this
.
handleSearch
()
console
.
log
(
this
.
merchantSearch
)
},
// 搜索
handleSearchComfirm
()
{
this
.
handleSearch
()
this
.
g
etList
()
this
.
loadingG
etList
()
},
// 搜索-end--------
// 新增
...
...
@@ -221,10 +231,9 @@ export default {
},
handleAddHide
()
{
this
.
handleAdd
()
this
.
reset
(
this
.
merchantForm
)
resetSearch
(
this
.
merchantForm
)
},
handleAddComfirm
(
areaInfo
)
{
// this.handleAdd()
this
.
saveMerchant
(
areaInfo
)
}
}
...
...
src/views/customer/businessManagement/index.vue
View file @
ae9ffb1
...
...
@@ -10,7 +10,7 @@
@
click=
"add"
>
新增商户
</gl-button>
-->
</div>
<gl-table
:table=
"tableData"
></gl-table>
<gl-table
v-loading=
"tableLoading"
:table=
"tableData"
></gl-table>
<gl-dialog
title=
"新增业务"
:visible
.
sync=
"dialogFormVisible"
...
...
@@ -69,13 +69,14 @@
</div>
</
template
>
<
script
>
import
Vue
from
'vue'
//
import Vue from 'vue'
import
notice
from
'@/common/notice'
import
{
businessManagenMethods
,
request
}
from
'@/api'
export
default
{
name
:
'BusinessManagement'
,
data
()
{
return
{
tableLoading
:
false
,
tableData
:
{
border
:
true
,
stripe
:
true
,
...
...
@@ -120,9 +121,13 @@ export default {
}
},
mounted
()
{
this
.
g
etList
()
this
.
loadingG
etList
()
},
methods
:
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
// 显示隐藏弹窗
showDialog
()
{
this
.
dialogFormVisible
=
!
this
.
dialogFormVisible
...
...
@@ -142,7 +147,9 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
.
data
=
res
.
merchantDictList
this
.
tableLoading
=
false
}).
catch
(
err
=>
{
this
.
tableLoading
=
false
notice
.
errorTips
(
err
)
})
},
...
...
@@ -154,6 +161,7 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
this
.
showDialog
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
})
...
...
src/views/customer/components/src/cityArea.vue
View file @
ae9ffb1
...
...
@@ -135,6 +135,7 @@ export default {
this
.
city
=
''
this
.
area
=
''
this
.
mutIndex
=
[]
this
.
namesArr
=
[]
clearTimeout
(
timer
)
const
timer
=
setTimeout
(()
=>
{
this
.
$validator
.
errors
.
clear
()
...
...
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