|
|
@@ -175,7 +175,28 @@ Page({
|
|
|
[`list[${index}].status`]: res.data.status
|
|
|
})
|
|
|
}
|
|
|
- if (res.data.status != '待跟进' && res.data.status != '跟进中') this.setData({
|
|
|
+
|
|
|
+ if (res.data.status == '已转化') {
|
|
|
+ tabbarList = tabbarList.filter(item => {
|
|
|
+ return item.label == '编辑' || item.label == '跟进' || item.label == '转化客户' || item.label == '转化项目'
|
|
|
+ })
|
|
|
+ if (res.data.isproject == 1) {
|
|
|
+ let i = tabbarList.findIndex(item => item.label == '转化项目')
|
|
|
+ tabbarList.splice(i,1)
|
|
|
+ console.log('触发项目');
|
|
|
+ }
|
|
|
+ if (res.data.iscustomer == 1) {
|
|
|
+ let i = tabbarList.findIndex(item => item.label == '转化客户')
|
|
|
+ tabbarList.splice(i,1)
|
|
|
+ console.log('触发客户');
|
|
|
+ }
|
|
|
+ console.log(tabbarList);
|
|
|
+ this.setData({
|
|
|
+ tabbarList
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ if (res.data.status != '待跟进' && res.data.status != '跟进中' && res.data.status != '已转化') this.setData({
|
|
|
tabbarList: []
|
|
|
})
|
|
|
this.getTags();
|