Commit 8f29722d by chenwq

bug修复

1 parent 9a60a23d
...@@ -209,7 +209,9 @@ export default { ...@@ -209,7 +209,9 @@ export default {
}, },
mounted() { mounted() {
if (!this.isWatch) {
this.brandList() this.brandList()
}
}, },
methods: { methods: {
...@@ -300,9 +302,7 @@ export default { ...@@ -300,9 +302,7 @@ export default {
}) })
}) })
this.brandListTree = brandListTree this.brandListTree = brandListTree
console.log(this.formObj, '0000')
if (this.formObj?.merchantBrandIds) { if (this.formObj?.merchantBrandIds) {
console.log(this.$refs.brandListTree, 'this.$refs.brandListTree---')
this.$refs.brandListTree[0].getCheckList(this.formObj.merchantBrandIds) this.$refs.brandListTree[0].getCheckList(this.formObj.merchantBrandIds)
} }
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -236,7 +236,6 @@ export default { ...@@ -236,7 +236,6 @@ export default {
// 打开地图弹框 // 打开地图弹框
hanleSelectMap() { hanleSelectMap() {
console.log(this.provinceForm)
this.dialogMapVisible = true this.dialogMapVisible = true
this.$nextTick(() => { this.$nextTick(() => {
if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) { if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) {
...@@ -259,7 +258,6 @@ export default { ...@@ -259,7 +258,6 @@ export default {
this.provinceForm.lng = lnglat.lng this.provinceForm.lng = lnglat.lng
var mapData = this.$refs.mapForm.geocoderAddress var mapData = this.$refs.mapForm.geocoderAddress
// 赋值省市区名称和code // 赋值省市区名称和code
console.log(this.$refs.mapForm, '\\\\\\')
const { city, citycode, province, district, towncode } = mapData.addressComponent const { city, citycode, province, district, towncode } = mapData.addressComponent
if (!this.provinceForm.provinceName) { if (!this.provinceForm.provinceName) {
this.provinceForm.provinceName = province this.provinceForm.provinceName = province
......
...@@ -153,7 +153,6 @@ export default { ...@@ -153,7 +153,6 @@ export default {
}, },
getCheckList(checkArr = []) { getCheckList(checkArr = []) {
checkArr.forEach(item => (item = parseInt(item))) checkArr.forEach(item => (item = parseInt(item)))
console.log(checkArr, 'checkArr')
this.$refs.tree.setCheckedKeys(checkArr) this.$refs.tree.setCheckedKeys(checkArr)
this.$nextTick(() => { this.$nextTick(() => {
this.handleCheck() this.handleCheck()
......
...@@ -264,11 +264,11 @@ export default { ...@@ -264,11 +264,11 @@ export default {
if (!this.provinceForm.lat || !this.provinceForm.lng) { if (!this.provinceForm.lat || !this.provinceForm.lng) {
this.getLoc(this.provinceForm.provinceName + this.provinceForm.cityName + this.provinceForm.townName) this.getLoc(this.provinceForm.provinceName + this.provinceForm.cityName + this.provinceForm.townName)
} }
this.$emit('selectAddressByMap', this.provinceForm)
}, },
// 打开地图弹框 // 打开地图弹框
hanleSelectMap() { hanleSelectMap() {
console.log(this.provinceForm)
this.dialogMapVisible = true this.dialogMapVisible = true
this.$nextTick(() => { this.$nextTick(() => {
if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) { if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) {
...@@ -348,7 +348,6 @@ export default { ...@@ -348,7 +348,6 @@ export default {
return return
} }
} }
console.log('????')
this.dialogMapVisible = false this.dialogMapVisible = false
// this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town) // this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town)
// 通过地图选择省市区 // 通过地图选择省市区
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<span class="province-icon">*</span> <span class="province-icon">*</span>
<Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="scope.scope.labelName" :inline="scope.scope.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province> <Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="scope.scope.labelName" :inline="scope.scope.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province>
</div> </div>
<div slot="business" slot-scope="scope"> <div slot="business" slot-scope="scope" class="business">
<el-select v-model="editForm[scope.scope.name]" multiple filterable placeholder="请选择" @change="handleMutiSelctChange"> <el-select v-model="editForm[scope.scope.name]" multiple filterable placeholder="请选择" @change="handleMutiSelctChange">
<el-option-group v-for="group in baseData.sceneList" :key="group.sceneCode" :label="group.name"> <el-option-group v-for="group in baseData.sceneList" :key="group.sceneCode" :label="group.name">
<el-option v-for="item in group.productList" :key="item.productCode" :label="item.productName" :value="item.productCode"></el-option> <el-option v-for="item in group.productList" :key="item.productCode" :label="item.productName" :value="item.productCode"></el-option>
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
this.editForm.latitude = res.lat this.editForm.latitude = res.lat
this.editForm.longitude = res.lng this.editForm.longitude = res.lng
this.editForm.merchantAddress = res.merchantAddress this.editForm.merchantAddress = res.merchantAddress
const merchantBrandList = res.brandTreeList const merchantBrandList = res.brandTreeList || []
this.editForm.merchantBrandList = [] this.editForm.merchantBrandList = []
this.editForm.merchantBrandIds = '' this.editForm.merchantBrandIds = ''
merchantBrandList.forEach(item => { merchantBrandList.forEach(item => {
...@@ -226,9 +226,10 @@ export default { ...@@ -226,9 +226,10 @@ export default {
}, },
merchantSecondBrandDetailList: item.subList merchantSecondBrandDetailList: item.subList
}) })
this.editForm.merchantBrandIds = this.editForm.merchantBrandIds + item.subList.map(k => k.id).join(',') this.editForm.merchantBrandIds = this.editForm.merchantBrandIds + (this.editForm.merchantBrandIds ? ',' : '') + item.subList.map(k => k.id).join(',')
}) })
this.editForm.merchantBrandIds = this.editForm.merchantBrandIds.split(',') this.editForm.merchantBrandIds = this.editForm.merchantBrandIds.split(',')
this.$refs.editFormRef.brandList()
this.$refs.provinceForm && this.$refs.provinceForm.init(this.editForm) this.$refs.provinceForm && this.$refs.provinceForm.init(this.editForm)
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
...@@ -273,6 +274,7 @@ export default { ...@@ -273,6 +274,7 @@ export default {
} }
params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList)) params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
delete params.merchantBrandList delete params.merchantBrandList
delete params.merchantBrandIds
params.sceneList = [] params.sceneList = []
this.baseData.sceneList.forEach(item => { this.baseData.sceneList.forEach(item => {
const productCodeIds = item.productList.map(k => k.productCode) const productCodeIds = item.productList.map(k => k.productCode)
...@@ -355,7 +357,7 @@ export default { ...@@ -355,7 +357,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
.shop.edit-zone .select-merchant { .shop.edit-zone .select-merchant {
/* width: calc(98% - 140px); */ /* width: calc(98% - 140px); */
width: 98%; width: 98%;
...@@ -367,4 +369,20 @@ export default { ...@@ -367,4 +369,20 @@ export default {
margin-left: 103px; margin-left: 103px;
margin-top: 0px; margin-top: 0px;
} }
.business .el-select .el-tag {
height: 26px;
background: #fafbfe !important;
border: 1px solid #e5e5e5 !important;
border-radius: 4px !important;
padding: 0 10px;
}
.business .el-select .el-tag__close.el-icon-close {
background: transparent;
color: #909399;
font-size: 20px;
}
.business .el-select .el-tag__close.el-icon-close:hover {
/* background: ; */
}
</style> </style>
...@@ -232,7 +232,6 @@ export default { ...@@ -232,7 +232,6 @@ export default {
}) })
}, },
handleDetail(row) { handleDetail(row) {
console.log(row)
this.$router.push({ this.$router.push({
path: '/customerManage/customerDetail', path: '/customerManage/customerDetail',
query: { query: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!