Browse Source

APP保修列表调整

miaofuhao 2 years ago
parent
commit
983f2e0950

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages/myTask/myTask.vue

@@ -285,7 +285,7 @@
285 285
 						if (response.data.length>0) {
286 286
 
287 287
 							this.orderListData = listUrl.getMenuData(response.data,code)
288
-							console.log(this.orderListData)
288
+							// console.log(this.orderListData)
289 289
 						}
290 290
 					}
291 291
 				})

+ 8 - 5
CallCenterWeb.UI/RMYYAPP/pages/myTask/repairList/myRepairOrderList/myRepairOrderList.vue

@@ -42,7 +42,7 @@
42 42
 			<uni-load-more :status="loadMoreState"></uni-load-more>
43 43
 		</view>
44 44
 
45
-		<uni-fab ref="fab" @trigger="trigger" @fabClick="fabClick" v-show="urlIndex == 0"/>
45
+		<uni-fab ref="fab" @trigger="trigger" @fabClick="fabClick"/>
46 46
 	</view>
47 47
 </template>
48 48
 
@@ -78,9 +78,12 @@
78 78
 		},
79 79
 		onLoad(optioin) {
80 80
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
81
-			this.urlIndex = optioin.urlIndex
82
-			console.log(this.urlIndex)
83 81
 			this.init(optioin)
82
+			if (uni.getStorageSync("roleCode") === "DDBZ"||uni.getStorageSync("roleCode") === "DDZX") {
83
+				this.urlIndex = 1
84
+			}else{
85
+				this.urlIndex = 0
86
+			}
84 87
 			pageData.getDet((res, data) => {
85 88
 				this.departList = data
86 89
 			})
@@ -121,6 +124,7 @@
121 124
 				})
122 125
 			},
123 126
 			getList(optioin) {
127
+				
124 128
 				this.$mHelper.getOrderId('3000', (id) => {
125 129
 					const params = {
126 130
 						pageindex: optioin.pageindex,
@@ -129,8 +133,7 @@
129 133
 						state: optioin.state == undefined ? "" : optioin.state,
130 134
 						wocode: optioin.wocode == undefined ? "" : optioin.wocode
131 135
 					}
132
-					let url = urlData[this.urlIndex]
133
-					this.$http.get(url, params).then((response) => {
136
+					this.$http.get(urlData[this.urlIndex], params).then((response) => {
134 137
 						if (response.state.toLowerCase() === "success") {
135 138
 							let data = response.rows
136 139
 							this.total = response.total