|
@@ -18,7 +18,9 @@
|
|
|
<span>{{ node.label }}</span>
|
|
|
<span>
|
|
|
<!-- <el-button size="small" type="text" @click="selectArea(data,visible=false)" v-if="data.areaname === pointValue" style="color: #FFFFFF">选 择</el-button>-->
|
|
|
- <el-button size="small" type="text" @click="selectArea(data,visible=false)" >选 择</el-button>
|
|
|
+<!-- <el-button size="small" type="text" @click="selectArea(data,visible=false)" >选 择</el-button>-->
|
|
|
+ <el-button size="small" type="text" @click="selectArea(data,visible=false)" v-if="data.sa_saleareaid === pointValue" style="color: #FFFFFF">选 择</el-button>
|
|
|
+ <el-button size="small" type="text" @click="selectArea(data,visible=false)" v-else >选 择</el-button>
|
|
|
</span>
|
|
|
</span>
|
|
|
</el-tree>
|
|
@@ -47,12 +49,10 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
onClick(){
|
|
|
- console.log('点击')
|
|
|
this.listData()
|
|
|
},
|
|
|
async listData(){
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
- console.log(res.data,'区域列表')
|
|
|
this.areaList = this.createMenu(res.data)
|
|
|
this.$emit('areaList',res.data)
|
|
|
},
|
|
@@ -82,10 +82,9 @@ export default {
|
|
|
return arr
|
|
|
},
|
|
|
nodeClick(val){
|
|
|
- this.pointValue = val.areaname
|
|
|
+ this.pointValue = val.sa_saleareaid
|
|
|
},
|
|
|
selectArea(data){
|
|
|
- console.log(data,'选择区域')
|
|
|
this.$emit('selectArea',data)
|
|
|
}
|
|
|
},
|