|
|
@@ -426,8 +426,8 @@ |
|
|
|
</div> |
|
|
|
<div class="right" > |
|
|
|
<div v-for="(item,index) in firstList" :key="item.id"> |
|
|
|
<div style="display:flex;"> |
|
|
|
<div>{{item.name}}</div> |
|
|
|
<div style="display:flex; margin:5px;"> |
|
|
|
<div style=" line-height: 32px; margin-right: 10px;">{{item.name}}</div> |
|
|
|
<el-select v-model="item.cityIds" clearable multiple placeholder="默认为全部" style="width:400px;"> |
|
|
|
<el-option |
|
|
|
v-for="item1 in item.cityAreaList" |
|
|
@@ -782,6 +782,7 @@ |
|
|
|
}, |
|
|
|
// 删除区域 |
|
|
|
delArea(idx,flag){ |
|
|
|
console.log(flag,idx); |
|
|
|
// 第一个删除 |
|
|
|
if(flag==0){ |
|
|
|
// 先获取删除数组的内容,将其内容放到第三个数组里面 |
|
|
@@ -796,10 +797,12 @@ |
|
|
|
// 删除数组的指定项 |
|
|
|
this.firstList.splice(idx,1) |
|
|
|
}else{ |
|
|
|
let obj=this.thirdList[idx] |
|
|
|
let obj=this.fourthList[idx] |
|
|
|
this.secondList.push(obj) |
|
|
|
// console.log(this.fourthList); |
|
|
|
// 删除数组的指定项 |
|
|
|
this.thirdList.splice(idx,1) |
|
|
|
this.fourthList.splice(idx,1) |
|
|
|
// console.log(this.fourthList); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 点击添加时的操作 |
|
|
|