瀏覽代碼

APP保修列表调整

miaofuhao 2 年之前
父節點
當前提交
983f2e0950

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

285
 						if (response.data.length>0) {
285
 						if (response.data.length>0) {
286
 
286
 
287
 							this.orderListData = listUrl.getMenuData(response.data,code)
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
 			<uni-load-more :status="loadMoreState"></uni-load-more>
42
 			<uni-load-more :status="loadMoreState"></uni-load-more>
43
 		</view>
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
 	</view>
46
 	</view>
47
 </template>
47
 </template>
48
 
48
 
78
 		},
78
 		},
79
 		onLoad(optioin) {
79
 		onLoad(optioin) {
80
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
80
 			this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
81
-			this.urlIndex = optioin.urlIndex
82
-			console.log(this.urlIndex)
83
 			this.init(optioin)
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
 			pageData.getDet((res, data) => {
87
 			pageData.getDet((res, data) => {
85
 				this.departList = data
88
 				this.departList = data
86
 			})
89
 			})
121
 				})
124
 				})
122
 			},
125
 			},
123
 			getList(optioin) {
126
 			getList(optioin) {
127
+				
124
 				this.$mHelper.getOrderId('3000', (id) => {
128
 				this.$mHelper.getOrderId('3000', (id) => {
125
 					const params = {
129
 					const params = {
126
 						pageindex: optioin.pageindex,
130
 						pageindex: optioin.pageindex,
129
 						state: optioin.state == undefined ? "" : optioin.state,
133
 						state: optioin.state == undefined ? "" : optioin.state,
130
 						wocode: optioin.wocode == undefined ? "" : optioin.wocode
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
 						if (response.state.toLowerCase() === "success") {
137
 						if (response.state.toLowerCase() === "success") {
135
 							let data = response.rows
138
 							let data = response.rows
136
 							this.total = response.total
139
 							this.total = response.total