Commit 5fd271f2 by 匡雅琴

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

1 parent 81be5bfc
......@@ -203,6 +203,7 @@ export default {
},
handleSave() {
const params = this.infoForm
params.merchantBrandMain = ''
// 获取省市信息
const { provinceName, provinceCode, cityName, cityCode } = this.$refs.provinceForm.provinceForm
if (!params.provinceCode) {
......
......@@ -66,7 +66,7 @@ export default {
handler() {
const getCheckedNodes = this.$refs.tree.getCheckedNodes()
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.concat(cur)
......@@ -252,4 +252,7 @@ export default {
align-items: center;
}
}
.tree-footer-reset {
cursor: pointer;
}
</style>
<template>
<div>
<el-dialog :visible.sync="dialogTelVisible" width="30%">
<el-dialog :visible.sync="dialogTelVisible" width="30%" top="30px">
<div class="dialog-show">
<img src="@/assets/tel-show.png" alt="" />
<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!