Commit 0a5d3b8d by 胡悦

清理console

1 parent 22d18884
...@@ -257,7 +257,6 @@ export default { ...@@ -257,7 +257,6 @@ export default {
label: '详情', label: '详情',
type: 'text', type: 'text',
callback: (index, rows) => { callback: (index, rows) => {
// console.log(rows[index])
this.parentLevelTableData.data = [] this.parentLevelTableData.data = []
this.childLevelTableData.data = [] this.childLevelTableData.data = []
this.getGroupLevelInfo(rows[index].id) this.getGroupLevelInfo(rows[index].id)
...@@ -316,7 +315,6 @@ export default { ...@@ -316,7 +315,6 @@ export default {
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表']) this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表'])
}, },
goGroupDetail(row) { goGroupDetail(row) {
console.log(row)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id }) this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id })
}, },
goBusinessDetail(row) { goBusinessDetail(row) {
...@@ -326,8 +324,6 @@ export default { ...@@ -326,8 +324,6 @@ export default {
}, },
// 切换tab // 切换tab
handleClick(tab, event) { handleClick(tab, event) {
// console.log(tab, event)
// console.log(this.IdChange)
switch (tab.name) { switch (tab.name) {
case 'first': case 'first':
this.IdChange[0] && this.getBasicInfo() this.IdChange[0] && this.getBasicInfo()
...@@ -350,7 +346,6 @@ export default { ...@@ -350,7 +346,6 @@ export default {
this.merchantInfo = res this.merchantInfo = res
this.assignBasicInfo() this.assignBasicInfo()
this.IdChange[0] = 0 this.IdChange[0] = 0
// notice.okTips()
}).catch(err => { }).catch(err => {
this.IdChange[0] = 0 this.IdChange[0] = 0
notice.errorTips(err) notice.errorTips(err)
...@@ -380,8 +375,6 @@ export default { ...@@ -380,8 +375,6 @@ export default {
this.staffTableData.data = res.merchantPersonals this.staffTableData.data = res.merchantPersonals
this.IdChange[1] = 0 this.IdChange[1] = 0
this.staffLoading = false this.staffLoading = false
// console.log(this.IdChange[1])
// notice.okTips()
}).catch(err => { }).catch(err => {
this.IdChange[1] = 0 this.IdChange[1] = 0
this.staffLoading = false this.staffLoading = false
...@@ -396,8 +389,6 @@ export default { ...@@ -396,8 +389,6 @@ export default {
this.groupTableData.data = res.merchantGroups this.groupTableData.data = res.merchantGroups
this.IdChange[2] = 0 this.IdChange[2] = 0
this.groupLoading = false this.groupLoading = false
// console.log(this.IdChange[2])
// notice.okTips()
}).catch(err => { }).catch(err => {
this.IdChange[2] = 0 this.IdChange[2] = 0
this.groupLoading = false this.groupLoading = false
...@@ -408,14 +399,11 @@ export default { ...@@ -408,14 +399,11 @@ export default {
getGroupLevelInfo(groupId) { getGroupLevelInfo(groupId) {
const params = { merchantId: this.merchantId, groupId: groupId } const params = { merchantId: this.merchantId, groupId: groupId }
params.method = bizMethods.GroupLevel params.method = bizMethods.GroupLevel
console.log(params)
this.detailVisible() this.detailVisible()
request.req(params).then(res => { request.req(params).then(res => {
// console.log([res.parentMerchantLevel])
res.parentMerchantLevel && (this.parentLevelTableData.data = [res.parentMerchantLevel]) res.parentMerchantLevel && (this.parentLevelTableData.data = [res.parentMerchantLevel])
res.childMerchantLevels && (this.childLevelTableData.data = res.childMerchantLevels) res.childMerchantLevels && (this.childLevelTableData.data = res.childMerchantLevels)
}).catch(err => { }).catch(err => {
// console.log(err)
notice.errorTips(err) notice.errorTips(err)
}) })
}, },
...@@ -431,10 +419,8 @@ export default { ...@@ -431,10 +419,8 @@ export default {
<style> <style>
.amap-page-container { .amap-page-container {
/* display: inline-block; */
width: 100%; width: 100%;
height: 300px; height: 300px;
/* vertical-align: text-top; */
} }
.amap-demo { .amap-demo {
height: 300px; height: 300px;
......
...@@ -213,7 +213,6 @@ export default { ...@@ -213,7 +213,6 @@ export default {
if (valid) { if (valid) {
this.createGroup(this.addParams) this.createGroup(this.addParams)
} else { } else {
console.log('error submit!!')
return false return false
} }
}) })
......
...@@ -139,11 +139,13 @@ export default { ...@@ -139,11 +139,13 @@ export default {
'addForm.merchantId'(val) { 'addForm.merchantId'(val) {
if (this.addList.length !== 0) { if (this.addList.length !== 0) {
this.addList.forEach(item => { this.addList.forEach(item => {
for (var j in item) { // for (var j in item) {
if (j == 'merchantId' || j == 'merchantType') { // if (j == 'merchantId' || j == 'merchantType') {
item[j] = '' // item[j] = ''
} // }
} // }
item[merchantId] = ''
item[merchantType] = ''
}) })
} }
} }
...@@ -159,7 +161,6 @@ export default { ...@@ -159,7 +161,6 @@ export default {
this.$validator.validateAll().then((result) => { this.$validator.validateAll().then((result) => {
if (result) { if (result) {
if (this.addList.length !== 0) { if (this.addList.length !== 0) {
console.log(this.addList)
if (this.addList[0].merchantId) { if (this.addList[0].merchantId) {
this.addList.forEach(item => { this.addList.forEach(item => {
delete item.label delete item.label
...@@ -170,7 +171,6 @@ export default { ...@@ -170,7 +171,6 @@ export default {
} }
const params = this.$deep_clone(this.addForm) const params = this.$deep_clone(this.addForm)
params.groupId = this.groupId params.groupId = this.groupId
console.log(params)
params.method = groupDetailMethods.Create params.method = groupDetailMethods.Create
request.req(params).then(res => { request.req(params).then(res => {
notice.okTips() notice.okTips()
...@@ -191,7 +191,6 @@ export default { ...@@ -191,7 +191,6 @@ export default {
}, },
// 添加更多按钮 // 添加更多按钮
addMore() { addMore() {
console.log(this.addForm.merchantId)
if (this.addForm.merchantId) { if (this.addForm.merchantId) {
this.isAdd = false this.isAdd = false
if (this.addList.length === 0) { if (this.addList.length === 0) {
......
...@@ -232,7 +232,6 @@ export default { ...@@ -232,7 +232,6 @@ export default {
const params = this.getParams() const params = this.getParams()
params.groupId = this.groupId params.groupId = this.groupId
params.method = groupDetailMethods.Search params.method = groupDetailMethods.Search
console.log(params)
request request
.req(params) .req(params)
.then(res => { .then(res => {
......
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
}) })
}, },
getCityArea(params) { getCityArea(params) {
// console.log(params)
params[0] && (this.areaInfo.provinceId = params[0]) params[0] && (this.areaInfo.provinceId = params[0])
params[1] && (this.areaInfo.cityId = params[1]) params[1] && (this.areaInfo.cityId = params[1])
params[2] && (this.areaInfo.areaId = params[2]) params[2] && (this.areaInfo.areaId = params[2])
......
...@@ -35,23 +35,6 @@ ...@@ -35,23 +35,6 @@
:eventBus="eventBus" :eventBus="eventBus"
@cityArea="getCityArea" @cityArea="getCityArea"
></city-area> ></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-form-item>
</gl-col> </gl-col>
<gl-col :span="12"> <gl-col :span="12">
...@@ -154,7 +137,6 @@ export default { ...@@ -154,7 +137,6 @@ export default {
const params = {} const params = {}
params.method = businessManagenMethods.Channel params.method = businessManagenMethods.Channel
request.req(params).then(res => { request.req(params).then(res => {
// console.log(res)
this.channelList = res.merchantDictList this.channelList = res.merchantDictList
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
...@@ -178,7 +160,6 @@ export default { ...@@ -178,7 +160,6 @@ export default {
this.$emit('hideDialog') this.$emit('hideDialog')
}, },
getCityArea(params) { getCityArea(params) {
console.log(params)
params[0] && (this.merchantSearch.provinceId = params[0]) params[0] && (this.merchantSearch.provinceId = params[0])
params[1] && (this.merchantSearch.cityId = params[1]) params[1] && (this.merchantSearch.cityId = params[1])
} }
......
...@@ -169,7 +169,6 @@ export default { ...@@ -169,7 +169,6 @@ export default {
getList() { getList() {
const params = this.getParams() const params = this.getParams()
params.method = bizMethods.Search params.method = bizMethods.Search
console.log(params)
request.req(params).then(res => { request.req(params).then(res => {
this.ListTableData.data = res.merchants this.ListTableData.data = res.merchants
this.totalCount = res.pagination.totalCount this.totalCount = res.pagination.totalCount
...@@ -211,7 +210,6 @@ export default { ...@@ -211,7 +210,6 @@ export default {
handleSearchHide(hide) { handleSearchHide(hide) {
resetSearch(this.merchantSearch) resetSearch(this.merchantSearch)
hide && this.handleSearch() hide && this.handleSearch()
console.log(this.merchantSearch)
}, },
// 搜索 // 搜索
handleSearchComfirm() { handleSearchComfirm() {
......
...@@ -146,7 +146,6 @@ export default { ...@@ -146,7 +146,6 @@ export default {
const params = {} const params = {}
params.method = businessManagenMethods.Business params.method = businessManagenMethods.Business
request.req(params).then(res => { request.req(params).then(res => {
// console.log(res)
this.tableData.data = res.merchantDictList this.tableData.data = res.merchantDictList
this.tableLoading = false this.tableLoading = false
}).catch(err => { }).catch(err => {
...@@ -156,8 +155,6 @@ export default { ...@@ -156,8 +155,6 @@ export default {
}, },
businessCreate() { businessCreate() {
const params = this.$deep_clone(this.form) const params = this.$deep_clone(this.form)
delete params.area
console.log(params)
params.method = businessManagenMethods.Create params.method = businessManagenMethods.Create
request.req(params).then(res => { request.req(params).then(res => {
notice.okTips() notice.okTips()
......
...@@ -97,25 +97,13 @@ export default { ...@@ -97,25 +97,13 @@ export default {
watch: { watch: {
// 监听省市被clear清空市区数组 // 监听省市被clear清空市区数组
province(val) { province(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('reset----------')
// this.$validator.errors.clear()
// })
// }
// }
// }
}, },
mounted() { mounted() {
// console.log(this.showCity)
this.eventBus.$on('reset', () => { this.eventBus.$on('reset', () => {
this.resetAll() this.resetAll()
}) })
...@@ -125,8 +113,6 @@ export default { ...@@ -125,8 +113,6 @@ export default {
this.AllData.forEach(element => { this.AllData.forEach(element => {
this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName }) this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName })
}) })
// this.getCity(0)
// this.getArea(0, 0)
}) })
}, },
methods: { methods: {
...@@ -153,7 +139,6 @@ export default { ...@@ -153,7 +139,6 @@ export default {
this.mutIndex[1] = '' this.mutIndex[1] = ''
this.mutIndex[2] = '' this.mutIndex[2] = ''
this.getCity(this.mutIndex[0]) this.getCity(this.mutIndex[0])
// this.getArea(this.mutIndex[0], 0)
// 选择省清空已选的市区value // 选择省清空已选的市区value
this.city = '' this.city = ''
this.area = '' this.area = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!