Browse Source

业务员管理新增区域样式调整

qymljy 1 year ago
parent
commit
448c0671e6
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/HManagement/marketing2/saler/area/modules/areaListNew.vue

+ 4 - 5
src/HManagement/marketing2/saler/area/modules/areaListNew.vue

@@ -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)
     }
   },