Browse Source

refactor(market): 修改资源分配相关文案并更新 API 地址

- 将"区域公海"相关文案统一修改为"资源分配"
- 更新 API 地址和图片域名
- 删除旧的 API 地址和图片域名
master
liutong 1 year ago
parent
commit
8cddba83d2
  1. 18
      pages/market/clue/index.vue

18
pages/market/clue/index.vue

@ -71,7 +71,7 @@
</view> </view>
</scroll-view> </scroll-view>
<!--区域公海--> <!--资源分配-->
<scroll-view <scroll-view
v-if="segmented_type == 2" v-if="segmented_type == 2"
scroll-y="true" scroll-y="true"
@ -155,7 +155,7 @@ export default {
limit:10,//每页返回数据条数 limit:10,//每页返回数据条数
total:10,//数据总条数 total:10,//数据总条数
type: '0',//0=全部,1=待跟进,2=7天,3=30天 type: '0',//0=全部,1=待跟进,2=7天,3=30天
is_gh: '2',//1=区域公海,2=我的客户 is_gh: '2',//1=资源分配,2=我的客户
}, },
countArr:{ countArr:{
@ -176,11 +176,11 @@ export default {
}, },
// { // {
// id: 2, // id: 2,
// name: '区域公海' // name: '资源分配'
// } // }
], ],
select_type: 1,//筛选标签列表|1,2,3,4 select_type: 1,//筛选标签列表|1,2,3,4
segmented_type: 1,//1=我的客户,2=区域公海 segmented_type: 1,//1=我的客户,2=资源分配
userInfo:{},//用户信息 userInfo:{},//用户信息
@ -216,7 +216,7 @@ export default {
this.userInfo = res.data this.userInfo = res.data
//判断用户是不是经理,是就展示"区域公海" //判断用户是不是经理,是就展示"资源分配"
if(this.userInfo.role_key_arr.includes('manager')){ if(this.userInfo.role_key_arr.includes('manager')){
this.values = [ this.values = [
{ {
@ -225,7 +225,7 @@ export default {
}, },
{ {
id: 2, id: 2,
name: '区域公海' name: '资源分配'
} }
] ]
}else{ }else{
@ -314,7 +314,7 @@ export default {
if(this.segmented_type == 1){ if(this.segmented_type == 1){
this.filteredData.is_gh = '2'//2=我的客户 this.filteredData.is_gh = '2'//2=我的客户
}else{ }else{
this.filteredData.is_gh = '1'//1=区域公海 this.filteredData.is_gh = '1'//1=资源分配
} }
switch (type) { switch (type) {
@ -340,14 +340,14 @@ export default {
//切换tag列表 //切换tag列表
async segmented(index) { async segmented(index) {
this.select_type = 1 this.select_type = 1
this.segmented_type = index.id//1=我的客户,2=区域公海 this.segmented_type = index.id//1=我的客户,2=资源分配
//重置为第一页 //重置为第一页
await this.resetFilteredData() await this.resetFilteredData()
if(this.segmented_type == 1){ if(this.segmented_type == 1){
this.filteredData.is_gh = '2'//2=我的客户 this.filteredData.is_gh = '2'//2=我的客户
}else{ }else{
this.filteredData.is_gh = '1'//1=区域公海 this.filteredData.is_gh = '1'//1=资源分配
} }

Loading…
Cancel
Save