Commit 193766f3 by 匡雅琴

预发布bug修复

1 parent b4c5f44e
...@@ -945,7 +945,6 @@ ...@@ -945,7 +945,6 @@
if (treeObj) { if (treeObj) {
let getCheckedNodes = treeObj.getCheckedNodes(true) let getCheckedNodes = treeObj.getCheckedNodes(true)
const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id) const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id)
console.log(getCheckedKeys)
getCheckedNodes = getCheckedNodes.filter(item => item.children) getCheckedNodes = getCheckedNodes.filter(item => item.children)
merchantForm.merchantBrandList = getCheckedNodes.map(car => { merchantForm.merchantBrandList = getCheckedNodes.map(car => {
let merchantBrandId = [] let merchantBrandId = []
...@@ -959,7 +958,6 @@ ...@@ -959,7 +958,6 @@
merchantBrandId merchantBrandId
} }
}) })
console.log(merchantForm.merchantBrandList)
params.merchantBrandListJson = JSON.stringify(merchantForm.merchantBrandList) params.merchantBrandListJson = JSON.stringify(merchantForm.merchantBrandList)
} }
if (merchantForm.merchantFiles.length) { if (merchantForm.merchantFiles.length) {
...@@ -1047,12 +1045,12 @@ ...@@ -1047,12 +1045,12 @@
} else { } else {
provinceIdx = merchantForm.provinceName provinceIdx = merchantForm.provinceName
cityIdx = merchantForm.cityName cityIdx = merchantForm.cityName
provincecode = merchantForm.cityCode
} }
const municipalities = ['北京市', '天津市', '上海市', '重庆市'] const municipalities = ['北京市', '天津市', '上海市', '重庆市']
var municipality = municipalities.find(item => item == provinceIdx) var municipality = municipalities.find(item => item == provinceIdx)
if (municipality) { if (municipality) {
cityIdx = cityIdx.slice(0, 2) + '城区' cityIdx = cityIdx.slice(0, 2) + '城区'
console.log(cityIdx);
if (municipality === '重庆市') { if (municipality === '重庆市') {
provincecode = provincecode.slice(0, 4) provincecode = provincecode.slice(0, 4)
provincecode == 5001 ? (cityIdx = cityIdx.slice(0, 2) + '城区') : (cityIdx = cityIdx.slice(0, 2) + '郊县') provincecode == 5001 ? (cityIdx = cityIdx.slice(0, 2) + '城区') : (cityIdx = cityIdx.slice(0, 2) + '郊县')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!