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 0a5d3b8d
authored
Mar 29, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
清理console
1 parent
22d18884
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
64 deletions
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/views/customer/businessDetails/index.vue
View file @
0a5d3b8
...
...
@@ -257,7 +257,6 @@ export default {
label
:
'详情'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
// console.log(rows[index])
this
.
parentLevelTableData
.
data
=
[]
this
.
childLevelTableData
.
data
=
[]
this
.
getGroupLevelInfo
(
rows
[
index
].
id
)
...
...
@@ -316,7 +315,6 @@ export default {
this
.
$parent
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户列表'
,
'商户列表'
])
},
goGroupDetail
(
row
)
{
console
.
log
(
row
)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'商户分组'
,
'*商户分组详情'
],
{
groupId
:
row
.
id
})
},
goBusinessDetail
(
row
)
{
...
...
@@ -326,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
()
...
...
@@ -350,7 +346,6 @@ export default {
this
.
merchantInfo
=
res
this
.
assignBasicInfo
()
this
.
IdChange
[
0
]
=
0
// notice.okTips()
}).
catch
(
err
=>
{
this
.
IdChange
[
0
]
=
0
notice
.
errorTips
(
err
)
...
...
@@ -380,8 +375,6 @@ export default {
this
.
staffTableData
.
data
=
res
.
merchantPersonals
this
.
IdChange
[
1
]
=
0
this
.
staffLoading
=
false
// console.log(this.IdChange[1])
// notice.okTips()
}).
catch
(
err
=>
{
this
.
IdChange
[
1
]
=
0
this
.
staffLoading
=
false
...
...
@@ -396,8 +389,6 @@ export default {
this
.
groupTableData
.
data
=
res
.
merchantGroups
this
.
IdChange
[
2
]
=
0
this
.
groupLoading
=
false
// console.log(this.IdChange[2])
// notice.okTips()
}).
catch
(
err
=>
{
this
.
IdChange
[
2
]
=
0
this
.
groupLoading
=
false
...
...
@@ -408,14 +399,11 @@ export default {
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
)
})
},
...
...
@@ -431,10 +419,8 @@ export default {
<
style
>
.amap-page-container
{
/* display: inline-block; */
width
:
100%
;
height
:
300px
;
/* vertical-align: text-top; */
}
.amap-demo
{
height
:
300px
;
...
...
src/views/customer/businessGroup/index.vue
View file @
0a5d3b8
...
...
@@ -213,7 +213,6 @@ export default {
if
(
valid
)
{
this
.
createGroup
(
this
.
addParams
)
}
else
{
console
.
log
(
'error submit!!'
)
return
false
}
})
...
...
src/views/customer/businessGroupDetail/addBusiness.vue
View file @
0a5d3b8
...
...
@@ -139,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
]
=
''
}
)
}
}
...
...
@@ -159,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
...
...
@@ -170,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
()
...
...
@@ -191,7 +191,6 @@ export default {
}
,
// 添加更多按钮
addMore
()
{
console
.
log
(
this
.
addForm
.
merchantId
)
if
(
this
.
addForm
.
merchantId
)
{
this
.
isAdd
=
false
if
(
this
.
addList
.
length
===
0
)
{
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
0a5d3b8
...
...
@@ -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
=>
{
...
...
src/views/customer/businessList/AddDialog.vue
View file @
0a5d3b8
...
...
@@ -177,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
])
...
...
src/views/customer/businessList/SearchDialog.vue
View file @
0a5d3b8
...
...
@@ -35,23 +35,6 @@
: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"
>
...
...
@@ -154,7 +137,6 @@ export default {
const
params
=
{}
params
.
method
=
businessManagenMethods
.
Channel
request
.
req
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
channelList
=
res
.
merchantDictList
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
@@ -178,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 @
0a5d3b8
...
...
@@ -169,7 +169,6 @@ 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
...
...
@@ -211,7 +210,6 @@ export default {
handleSearchHide
(
hide
)
{
resetSearch
(
this
.
merchantSearch
)
hide
&&
this
.
handleSearch
()
console
.
log
(
this
.
merchantSearch
)
},
// 搜索
handleSearchComfirm
()
{
...
...
src/views/customer/businessManagement/index.vue
View file @
0a5d3b8
...
...
@@ -146,7 +146,6 @@ 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
=>
{
...
...
@@ -156,8 +155,6 @@ export default {
},
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
()
...
...
src/views/customer/components/src/cityArea.vue
View file @
0a5d3b8
...
...
@@ -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