zhaoxiaohai %!s(int64=3) %!d(string=hai) anos
pai
achega
0f2052dec8

+ 0 - 1
packageA/project/detail.wxml

@@ -22,7 +22,6 @@
     <Contacts slot='联系人' disabled="{{per.query(options,'contacts')||isAdmin||isLeader}}" id='Contacts' />
     <Opponent slot='竞争对手' id='Opponent' disabled="{{per.query(options,'opposites')||isAdmin||isLeader}}" />
     <Offers slot='报价单' disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" id='Offers' />
-
     <Record slot='操作记录' id="Record" ownertable='sa_project' ownerid='{{detail.sa_projectid}}' />
     <Files slot='附件' id="Files" ownertable='sa_project' ownerid='{{detail.sa_projectid}}' />
     <view style="height: 140rpx;" />

+ 44 - 43
packageA/project/modules/task/index.js

@@ -1,46 +1,47 @@
 const _Http = getApp().globalData.http;
 Component({
-	properties: {
-		disabled: Boolean
-	},
-	data: {
-		sa_projectid: null,
-		"content": {
-			pageSize: 9999,
-			"isAll": 0,
-			"total": null
-		}
-	},
-	methods: {
-		getList(id, init) {
-			let content = this.data.content;
-			content.sa_projectid = id;
-			if (init) content.pageNumber = 1
-			_Http.basic({
-				"id": "20221201140104",
-				content
-			}).then(res => {
-				console.log("工作任务列表", res)
-				if (res.msg != '成功') return wx.showToast({
-					title: res.data,
-					icon: "none"
-				})
-				this.setData({
-					list: res.data.rows,
-					"content.total": res.data.sumscore,
-					sa_projectid: id
-				})
-				console.log(this.data.sumscore, this.data.list)
-			})
-		},
-		onChange() {
-			this.setData({
-				"content.isAll": this.data.content.isAll == 0 ? 1 : 0
-			});
-			this.getList(this.data.sa_projectid, true)
-		},
-		handleSelectProject(item, list) {
-			this.selectComponent("#List").handleAdd(list.map(v => v.sa_project_partiesid))
-		}
-	}
+    properties: {
+        disabled: Boolean
+    },
+    data: {
+        sa_projectid: null,
+        "content": {
+            nocache: true,
+            pageSize: 9999,
+            "isAll": 0,
+            "total": null
+        }
+    },
+    methods: {
+        getList(id, init) {
+            let content = this.data.content;
+            content.sa_projectid = id;
+            if (init) content.pageNumber = 1
+            _Http.basic({
+                "id": "20221201140104",
+                content
+            }).then(res => {
+                console.log("工作任务列表", res)
+                if (res.msg != '成功') return wx.showToast({
+                    title: res.data,
+                    icon: "none"
+                })
+                this.setData({
+                    list: res.data.rows,
+                    "content.total": res.data.sumscore,
+                    sa_projectid: id
+                })
+                console.log(this.data.sumscore, this.data.list)
+            })
+        },
+        onChange() {
+            this.setData({
+                "content.isAll": this.data.content.isAll == 0 ? 1 : 0
+            });
+            this.getList(this.data.sa_projectid, true)
+        },
+        handleSelectProject(item, list) {
+            this.selectComponent("#List").handleAdd(list.map(v => v.sa_project_partiesid))
+        }
+    }
 })

+ 9 - 9
packageA/project/modules/task/tabs/index.wxml

@@ -1,9 +1,9 @@
-<scroll-view class="scroll" scroll-x>
-        <view class="box">
-            <navigator url="#" class="parallel {{active==index?'active':''}}" wx:for="{{list}}" wx:key="sa_projstagetemp_stageid" data-index="{{index}}" bindtap="changeViewItem">
-                <view class="mian">
-                    <view class="label">{{item.stagename}}</view>
-                </view>
-            </navigator>
-        </view>
-    </scroll-view>
+<scroll-view class="scroll" scroll-x wx:if="{{list.length}}">
+    <view class="box">
+        <navigator url="#" class="parallel {{active==index?'active':''}}" wx:for="{{list}}" wx:key="sa_projstagetemp_stageid" data-index="{{index}}" bindtap="changeViewItem">
+            <view class="mian">
+                <view class="label">{{item.stagename}}</view>
+            </view>
+        </navigator>
+    </view>
+</scroll-view>