Commit 8f29722d by chenwq

bug修复

1 parent 9a60a23d
......@@ -209,7 +209,9 @@ export default {
},
mounted() {
this.brandList()
if (!this.isWatch) {
this.brandList()
}
},
methods: {
......@@ -300,9 +302,7 @@ export default {
})
})
this.brandListTree = brandListTree
console.log(this.formObj, '0000')
if (this.formObj?.merchantBrandIds) {
console.log(this.$refs.brandListTree, 'this.$refs.brandListTree---')
this.$refs.brandListTree[0].getCheckList(this.formObj.merchantBrandIds)
}
this.$nextTick(() => {
......
......@@ -236,7 +236,6 @@ export default {
// 打开地图弹框
hanleSelectMap() {
console.log(this.provinceForm)
this.dialogMapVisible = true
this.$nextTick(() => {
if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) {
......@@ -259,7 +258,6 @@ export default {
this.provinceForm.lng = lnglat.lng
var mapData = this.$refs.mapForm.geocoderAddress
// 赋值省市区名称和code
console.log(this.$refs.mapForm, '\\\\\\')
const { city, citycode, province, district, towncode } = mapData.addressComponent
if (!this.provinceForm.provinceName) {
this.provinceForm.provinceName = province
......
......@@ -153,7 +153,6 @@ export default {
},
getCheckList(checkArr = []) {
checkArr.forEach(item => (item = parseInt(item)))
console.log(checkArr, 'checkArr')
this.$refs.tree.setCheckedKeys(checkArr)
this.$nextTick(() => {
this.handleCheck()
......
......@@ -264,11 +264,11 @@ export default {
if (!this.provinceForm.lat || !this.provinceForm.lng) {
this.getLoc(this.provinceForm.provinceName + this.provinceForm.cityName + this.provinceForm.townName)
}
this.$emit('selectAddressByMap', this.provinceForm)
},
// 打开地图弹框
hanleSelectMap() {
console.log(this.provinceForm)
this.dialogMapVisible = true
this.$nextTick(() => {
if (this.provinceForm.fullAddress && !this.$refs.mapForm.address) {
......@@ -348,7 +348,6 @@ export default {
return
}
}
console.log('????')
this.dialogMapVisible = false
// this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town)
// 通过地图选择省市区
......
......@@ -8,7 +8,7 @@
<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>
</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-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>
......@@ -215,7 +215,7 @@ export default {
this.editForm.latitude = res.lat
this.editForm.longitude = res.lng
this.editForm.merchantAddress = res.merchantAddress
const merchantBrandList = res.brandTreeList
const merchantBrandList = res.brandTreeList || []
this.editForm.merchantBrandList = []
this.editForm.merchantBrandIds = ''
merchantBrandList.forEach(item => {
......@@ -226,9 +226,10 @@ export default {
},
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.$refs.editFormRef.brandList()
this.$refs.provinceForm && this.$refs.provinceForm.init(this.editForm)
this.$nextTick(() => {
this.editStatus = false
......@@ -273,6 +274,7 @@ export default {
}
params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
delete params.merchantBrandList
delete params.merchantBrandIds
params.sceneList = []
this.baseData.sceneList.forEach(item => {
const productCodeIds = item.productList.map(k => k.productCode)
......@@ -355,7 +357,7 @@ export default {
}
}
</script>
<style scoped>
<style>
.shop.edit-zone .select-merchant {
/* width: calc(98% - 140px); */
width: 98%;
......@@ -367,4 +369,20 @@ export default {
margin-left: 103px;
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>
......@@ -232,7 +232,6 @@ export default {
})
},
handleDetail(row) {
console.log(row)
this.$router.push({
path: '/customerManage/customerDetail',
query: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!