Browse Source

获取范围修改

zhaoxiaohai 3 years ago
parent
commit
d002722079

+ 5 - 5
packageA/activity/index.js

@@ -7,7 +7,7 @@ Page({
      */
      */
     data: {
     data: {
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -27,15 +27,15 @@ Page({
         }],
         }],
         classShow: false,
         classShow: false,
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
             {
             {
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
+            }, {
+                name: '我创建的',
+                index: 5
             },
             },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",
@@ -51,6 +51,7 @@ Page({
             "version": 1,
             "version": 1,
             "pageNumber": 1,
             "pageNumber": 1,
             "pageSize": 20,
             "pageSize": 20,
+            type: 1,
             "where": {
             "where": {
                 "condition": "",
                 "condition": "",
                 "startdate": "",
                 "startdate": "",
@@ -75,7 +76,6 @@ Page({
         })
         })
         this.getList();
         this.getList();
         this.getTypeList()
         this.getTypeList()
-        this.getareaList()
     },
     },
     /* 获取列表 */
     /* 获取列表 */
     getList(init = false, data) {
     getList(init = false, data) {

+ 5 - 5
packageA/contract/index.js

@@ -23,7 +23,7 @@ Page({
             route: 'type5'
             route: 'type5'
         }],
         }],
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -43,15 +43,15 @@ Page({
         }],
         }],
         classShow: false,
         classShow: false,
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
             {
             {
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
+            }, {
+                name: '我创建的',
+                index: 5
             },
             },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",
@@ -63,7 +63,7 @@ Page({
         ],
         ],
         content: {
         content: {
             "nocache": true,
             "nocache": true,
-            "type": 0,
+            "type": 1,
             "version": 1,
             "version": 1,
             "pageNumber": 1,
             "pageNumber": 1,
             "pageSize": 20,
             "pageSize": 20,

+ 5 - 5
packageA/offers/index.js

@@ -15,7 +15,7 @@ Page({
         }],
         }],
         typeShow: false,
         typeShow: false,
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -35,15 +35,15 @@ Page({
         }],
         }],
         classShow: false,
         classShow: false,
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
             {
             {
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
+            }, {
+                name: '我创建的',
+                index: 5
             },
             },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",
@@ -55,7 +55,7 @@ Page({
         ],
         ],
         content: {
         content: {
             "nocache": true,
             "nocache": true,
-            "type": 0,
+            "type": 1,
             "version": 1,
             "version": 1,
             "pageNumber": 1,
             "pageNumber": 1,
             "pageSize": 20,
             "pageSize": 20,

+ 6 - 6
packageA/project/index.js

@@ -5,7 +5,7 @@ Page({
     data: {
     data: {
         listHeight: null,
         listHeight: null,
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -25,15 +25,15 @@ Page({
         }],
         }],
         classShow: false,
         classShow: false,
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
             {
             {
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
+            }, {
+                name: '我创建的',
+                index: 5
             },
             },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",
@@ -45,7 +45,7 @@ Page({
         ],
         ],
         content: {
         content: {
             nocache: true,
             nocache: true,
-            "type": 0,
+            "type": 1,
             "pageNumber": 1,
             "pageNumber": 1,
             "pageSize": 20,
             "pageSize": 20,
             "where": {
             "where": {
@@ -122,7 +122,7 @@ Page({
                 v.progress = v.stage / v.totalstage * 100;
                 v.progress = v.stage / v.totalstage * 100;
                 return v
                 return v
             })
             })
-            
+
             this.setData({
             this.setData({
                 'content.pageNumber': res.pageNumber + 1,
                 'content.pageNumber': res.pageNumber + 1,
                 'content.pageTotal': res.pageTotal,
                 'content.pageTotal': res.pageTotal,

+ 22 - 3
packageA/saleClue/index.js

@@ -7,7 +7,7 @@ Page({
      */
      */
     data: {
     data: {
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -26,13 +26,32 @@ Page({
             id: "2"
             id: "2"
         }],
         }],
         classShow: false,
         classShow: false,
-        classActions: [],
+        classActions: [{
+                name: '我负责的',
+                index: 1
+            },
+            {
+                name: '我参与的',
+                index: 2
+            }, {
+                name: '我创建的',
+                index: 5
+            },
+            {
+                name: "我下属负责的",
+                index: 3
+            }, {
+                name: "我下属参与的",
+                index: 4
+            }
+        ],
         content: {
         content: {
             "isAll": 0,
             "isAll": 0,
             "nocache": true,
             "nocache": true,
             "version": 1,
             "version": 1,
             "pageNumber": 1,
             "pageNumber": 1,
             "pageSize": 20,
             "pageSize": 20,
+            type: 1,
             "where": {
             "where": {
                 "condition": "",
                 "condition": "",
             },
             },
@@ -51,7 +70,7 @@ Page({
             insert: wx.getStorageSync('auth').worderclue.options.some(v => v == 'insert'), //查询新增权限
             insert: wx.getStorageSync('auth').worderclue.options.some(v => v == 'insert'), //查询新增权限
         })
         })
         this.getList()
         this.getList()
-        this.getTypeList()
+        // this.getTypeList()
         this.getClueArea()
         this.getClueArea()
     },
     },
     /* 获取列表 */
     /* 获取列表 */

+ 4 - 4
packageA/setclient/index.js

@@ -3,7 +3,7 @@ const _Http = getApp().globalData.http,
 Page({
 Page({
     data: {
     data: {
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -43,15 +43,15 @@ Page({
         list: [],
         list: [],
         classShow: false, //type类型
         classShow: false, //type类型
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
             {
             {
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
+            }, {
+                name: '我创建的',
+                index: 5
             },
             },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",

+ 19 - 18
packageA/work/index.js

@@ -11,7 +11,7 @@ Page({
     data: {
     data: {
         list: [],
         list: [],
         navList: [{
         navList: [{
-            label: "全部",
+            label: "我负责的",
             icon: "icon-webxialaxuanxiangjiantou",
             icon: "icon-webxialaxuanxiangjiantou",
             color: "",
             color: "",
             width: "",
             width: "",
@@ -23,24 +23,7 @@ Page({
             width: "",
             width: "",
             id: "sort"
             id: "sort"
         }],
         }],
-        content: {
-            nocache: true,
-            "pageNumber": 1,
-            "pageSize": 20,
-            "isExport": 0,
-            "type": 0,
-            "where": {
-                "condition": "",
-                "startdate": "",
-                "enddate": ""
-            },
-            "sort": []
-        },
-        classShow: false, //type类型
         classActions: [{
         classActions: [{
-                name: '全部',
-                index: 0
-            }, {
                 name: '我负责的',
                 name: '我负责的',
                 index: 1
                 index: 1
             },
             },
@@ -48,6 +31,10 @@ Page({
                 name: '我参与的',
                 name: '我参与的',
                 index: 2
                 index: 2
             },
             },
+            {
+                name: '我创建的',
+                index: 5
+            },
             {
             {
                 name: "我下属负责的",
                 name: "我下属负责的",
                 index: 3
                 index: 3
@@ -56,6 +43,20 @@ Page({
                 index: 4
                 index: 4
             }
             }
         ],
         ],
+        content: {
+            nocache: true,
+            "pageNumber": 1,
+            "pageSize": 20,
+            "isExport": 0,
+            "type": 1,
+            "where": {
+                "condition": "",
+                "startdate": "",
+                "enddate": ""
+            },
+            "sort": []
+        },
+        classShow: false, //type类型
         filter: {
         filter: {
             statusActive: "",
             statusActive: "",
             startdate: "",
             startdate: "",