|
@@ -339,6 +339,7 @@ export default {
|
|
|
this.$message.error("请选择上推送的数据!!!");
|
|
|
return
|
|
|
}
|
|
|
+ this.setTreeDataCopy(this.cityList,this.form.cityId)
|
|
|
let flog = false
|
|
|
let list = []
|
|
|
this.multipleSelection.forEach((item)=>{
|
|
@@ -374,6 +375,18 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ setTreeDataCopy(list,value) {
|
|
|
+ list.forEach((item,index)=>{
|
|
|
+ if(item.value == value) {
|
|
|
+ this.form.cityName = item.name
|
|
|
+ }
|
|
|
+ if(item.child && item.child.length>0){
|
|
|
+ this.setTreeDataCopy(item.child,value)
|
|
|
+ }else {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
/**
|
|
|
* 重置
|
|
|
* @date 2023-11-22
|