Commit 5fd271f2 by 匡雅琴

解决全选主营品牌提交时报400错误问题

1 parent 81be5bfc
...@@ -203,6 +203,7 @@ export default { ...@@ -203,6 +203,7 @@ export default {
}, },
handleSave() { handleSave() {
const params = this.infoForm const params = this.infoForm
params.merchantBrandMain = ''
// 获取省市信息 // 获取省市信息
const { provinceName, provinceCode, cityName, cityCode } = this.$refs.provinceForm.provinceForm const { provinceName, provinceCode, cityName, cityCode } = this.$refs.provinceForm.provinceForm
if (!params.provinceCode) { if (!params.provinceCode) {
......
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
handler() { handler() {
const getCheckedNodes = this.$refs.tree.getCheckedNodes() const getCheckedNodes = this.$refs.tree.getCheckedNodes()
this.getCheckedArr = getCheckedNodes.reduce((prev, cur) => { this.getCheckedArr = getCheckedNodes.reduce((prev, cur) => {
if (Object.keys(cur).includes('children') && cur.children.length > 0) { if (Object.keys(cur).includes('children') && cur.children && cur.children.length > 0) {
return prev return prev
} }
return prev.concat(cur) return prev.concat(cur)
...@@ -252,4 +252,7 @@ export default { ...@@ -252,4 +252,7 @@ export default {
align-items: center; align-items: center;
} }
} }
.tree-footer-reset {
cursor: pointer;
}
</style> </style>
<template> <template>
<div> <div>
<el-dialog :visible.sync="dialogTelVisible" width="30%"> <el-dialog :visible.sync="dialogTelVisible" width="30%" top="30px">
<div class="dialog-show"> <div class="dialog-show">
<img src="@/assets/tel-show.png" alt="" /> <img src="@/assets/tel-show.png" alt="" />
<div class="tel-plus">联系电话:{{ residentPhone }}</div> <div class="tel-plus">联系电话:{{ residentPhone }}</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!