瀏覽代碼

mod:工单

weieryang 11 月之前
父節點
當前提交
6f53cab96c

+ 21 - 11
双汇APP-h5/workOrder/Work-HT.html

@@ -50,15 +50,22 @@
50 50
 		<script src="../js/mui.picker.min.js"></script>
51 51
 		<script type="text/javascript">
52 52
 			mui.init();
53
-			mui.plusReady(function() {
54
-				var wv = plus.webview.currentWebview();
53
+			mui.ready(function() {
54
+				var urlParams = new URLSearchParams(window.location.search);
55
+				var param1 = urlParams.get('name');
56
+				var param2 = urlParams.get('classImport');
57
+				var wv = {
58
+					name: param1,
59
+					classImport: param2
60
+				}
61
+				var token = localStorage.getItem("token");
55 62
 				var vText = wv.name;
56 63
 				var classImport = wv.classImport;
57
-				var token = wv.token; 
64
+				//var token = wv.token; 
58 65
 					document.getElementById("submit").addEventListener('tap', function() {
59 66
 						var question = $("#question").val();
60 67
 						if(!question) {
61
-							plus.nativeUI.toast('输入退单原因');
68
+							mui.toast('输入退单原因');
62 69
 						} else {
63 70
 							var btnArray = ['取消', '确定'];
64 71
 							mui.confirm('是否申请退单', '提示', btnArray, function(e) {
@@ -73,26 +80,29 @@
73 80
 										type: 'post', //HTTP请求类型
74 81
 										timeout: 10000, //超时时间设置为10秒;
75 82
 										success: function(data) {
76
-											plus.nativeUI.toast('成功');
83
+											mui.toast('成功');
77 84
 											$("#question").val('');
78 85
 											if (classImport) {
79 86
 												if (classImport==2) {
80
-													var wobj = plus.webview.getWebviewById("Work-listCJ");
87
+													//var wobj = plus.webview.getWebviewById("Work-listCJ");
88
+													window.location.href = 'Work-listCJ.html'
81 89
 												}else{
82
-													var wobj = plus.webview.getWebviewById("Work-listClass");
90
+													//var wobj = plus.webview.getWebviewById("Work-listClass");
91
+													window.location.href = 'Work-listClass.html'
83 92
 												}
84 93
 												
85 94
 											}else{
86
-												var wobj = plus.webview.getWebviewById("Work-list");
95
+												//var wobj = plus.webview.getWebviewById("Work-list");
96
+												window.location.href = 'Work-list.html'
87 97
 											}
88
-											wobj.reload(true);
98
+											//wobj.reload(true);
89 99
 										},
90 100
 										error: function(xhr, type, errorThrown) {
91
-											plus.nativeUI.toast('失败');
101
+											mui.toast('失败');
92 102
 										}
93 103
 									});
94 104
 								} else {
95
-									plus.nativeUI.toast('取消');
105
+									mui.toast('取消');
96 106
 								}
97 107
 							})
98 108
 

+ 22 - 12
双汇APP-h5/workOrder/Work-complete.html

@@ -50,16 +50,23 @@
50 50
 		<script src="../js/mui.picker.min.js"></script>
51 51
 		<script type="text/javascript">
52 52
 			mui.init();
53
-			mui.plusReady(function() {
54
-				var wv = plus.webview.currentWebview();
53
+			mui.ready(function() {
54
+				var urlParams = new URLSearchParams(window.location.search);
55
+			    var param1 = urlParams.get('name');
56
+			    var param2 = urlParams.get('classImport');
57
+				var wv = {
58
+					name: param1,
59
+					classImport: classImport,
60
+				}//plus.webview.currentWebview();
61
+				var token = localStorage.getItem("token");
55 62
 				var vText = wv.name;
56 63
 				var classImport = wv.classImport;
57
-				var token = wv.token; 
64
+//				var token = wv.token; 
58 65
         
59 66
 					document.getElementById("submit").addEventListener('tap', function() {
60 67
 						var question = $("#question").val();
61 68
 						if(!question) {
62
-							plus.nativeUI.toast('输入完善内容');
69
+							mui.toast('输入完善内容');
63 70
 						} else {
64 71
 							var btnArray = ['取消', '确定'];
65 72
 							mui.confirm('是否完善', '提示', btnArray, function(e) {
@@ -76,30 +83,33 @@
76 83
 										success: function(data) {
77 84
                       alert(JSON.stringify(data))
78 85
                       if (data.state.toLowerCase() == 'success') {
79
-                       plus.nativeUI.toast('成功');
86
+                       mui.toast('成功');
80 87
                        $("#question").val('');
81 88
                        if (classImport) {
82 89
                        	if (classImport==2) {
83
-                       		var wobj = plus.webview.getWebviewById("Work-listCJ");
90
+                       		//var wobj = plus.webview.getWebviewById("Work-listCJ");
91
+                       		window.location.href = 'Work-listCJ.html'
84 92
                        	}else{
85
-                       		var wobj = plus.webview.getWebviewById("Work-listClass");
93
+                       		//var wobj = plus.webview.getWebviewById("Work-listClass");
94
+                       		window.location.href = 'Work-listClass.html'
86 95
                        	}
87 96
                        	
88 97
                        }else{
89
-                       	var wobj = plus.webview.getWebviewById("Work-list");
98
+                       	//var wobj = plus.webview.getWebviewById("Work-list");
99
+                       	window.location.href = 'Work-list.html'
90 100
                        }
91
-                       wobj.reload(true);
101
+                       //wobj.reload(true);
92 102
                       } else {
93
-                        plus.nativeUI.toast('失败');
103
+                        mui.toast('失败');
94 104
                       }
95 105
 											
96 106
 										},
97 107
 										error: function(xhr, type, errorThrown) {
98
-											plus.nativeUI.toast('失败');
108
+											mui.toast('失败');
99 109
 										}
100 110
 									});
101 111
 								} else {
102
-									plus.nativeUI.toast('取消');
112
+									mui.toast('取消');
103 113
 								}
104 114
 							})
105 115
 

+ 19 - 9
双汇APP-h5/workOrder/Work-remind.html

@@ -50,11 +50,18 @@
50 50
 		<script src="../js/mui.picker.min.js"></script>
51 51
 		<script type="text/javascript">
52 52
 			mui.init();
53
-			mui.plusReady(function() {
54
-				var wv = plus.webview.currentWebview();
53
+			mui.ready(function() {
54
+				var urlParams = new URLSearchParams(window.location.search);
55
+				var param1 = urlParams.get('name');
56
+				var param2 = urlParams.get('classImport');
57
+				var wv = {
58
+					name: param1,
59
+					classImport: param2
60
+				}
61
+				var token = localStorage.getItem("token");
55 62
 				var vText = wv.name;
56 63
 				var classImport = wv.classImport;
57
-				var token = wv.token;
64
+				// var token = wv.token;
58 65
 				document.getElementById("submit").addEventListener('tap', function() {
59 66
 					var question = $("#question").val();
60 67
 					var btnArray = ['取消', '确定'];
@@ -75,25 +82,28 @@
75 82
 											mui.toast("催单成功");
76 83
 											if (classImport) {
77 84
 												if (classImport==2) {
78
-													var wobj = plus.webview.getWebviewById("WorkDetailsCJ");
85
+													//var wobj = plus.webview.getWebviewById("WorkDetailsCJ");
86
+													window.location.href = 'WorkDetailsCJ.html';
79 87
 												}else{
80
-													var wobj = plus.webview.getWebviewById("WorkDetails");
88
+													//var wobj = plus.webview.getWebviewById("WorkDetails");
89
+													window.location.href = 'WorkDetails.html';
81 90
 												}
82 91
 												
83 92
 											} else {
84
-												var wobj = plus.webview.getWebviewById("WorkDetails");
93
+												//var wobj = plus.webview.getWebviewById("WorkDetails");
94
+												window.location.href = 'WorkDetails.html';
85 95
 											}
86
-											wobj.reload(true);
96
+											//wobj.reload(true);
87 97
 										} else {
88 98
 											mui.toast(JSON.stringify(data));
89 99
 										}
90 100
 									},
91 101
 									error: function(xhr, type, errorThrown) {
92
-										plus.nativeUI.toast('失败');
102
+										mui.toast('失败');
93 103
 									}
94 104
 								});
95 105
 							} else {
96
-								plus.nativeUI.toast('取消');
106
+								mui.toast('取消');
97 107
 							}
98 108
 						})
99 109
 					}else{

+ 15 - 7
双汇APP-h5/workOrder/js/Work-list.js

@@ -5,12 +5,20 @@ window.onload = function() {
5 5
 		var token = localStorage.getItem("token");
6 6
 		var F_See = localStorage.getItem("F_See");
7 7
 		var F_RoleId = localStorage.getItem("F_RoleId");
8
+		
9
+		var urlParams = new URLSearchParams(window.location.search);
10
+	    var param1 = urlParams.get('index');
11
+	    var param2 = urlParams.get('importClass');
12
+	    var wv = {
13
+			index: param1,
14
+			importClass: param2
15
+		}
8 16
     
9 17
 		var page = 1; //页数
10 18
 		var pageSize = 10; //每页显示条目
11 19
 		var comprehensive = -1
12 20
 		var total; //数据总条数
13
-		var wv = {}//plus.webview.currentWebview();
21
+		
14 22
 		var index = wv.index; //交办条件
15 23
 		var importClass = wv.importClass; //工单等级
16 24
 		var keyw="";
@@ -77,10 +85,10 @@ window.onload = function() {
77 85
 				}
78 86
 			},
79 87
 			beforeback: function() {
80
-			    var list = plus.webview.currentWebview().opener();    
81
-			    //refresh是A页面自定义事件
82
-			    mui.fire(list, 'refreshPer');
83
-			    //返回true,继续页面关闭逻辑
88
+//			    var list = plus.webview.currentWebview().opener();    
89
+//			    //refresh是A页面自定义事件
90
+//			    mui.fire(list, 'refreshPer');
91
+//			    //返回true,继续页面关闭逻辑
84 92
 			    return true;
85 93
 			}
86 94
 		});
@@ -375,7 +383,7 @@ window.onload = function() {
375 383
 		function appointFun(b) {
376 384
 			mui.openWindow({
377 385
 				id: 'Work-appoint',
378
-				url: 'Work-appoint.html',
386
+				url: 'Work-appoint.html?name=' + b,
379 387
 				createNew: true,
380 388
 				show: {
381 389
 					aniShow: 'pop-in'
@@ -396,7 +404,7 @@ window.onload = function() {
396 404
 		function disposeFun(b) {
397 405
 			mui.openWindow({
398 406
 				id: 'Work-dispose',
399
-				url: 'Work-dispose.html',
407
+				url: 'Work-dispose.html?name=' + b,
400 408
 				createNew: true,
401 409
 				show: {
402 410
 					aniShow: 'pop-in'

+ 9 - 3
双汇APP-h5/workOrder/js/Work-listCJ.js

@@ -1,13 +1,19 @@
1 1
 window.onload = function() {
2 2
 
3
-	mui.plusReady(function() {
3
+	mui.ready(function() {
4 4
 		//var isdeal=helper.request.queryString("isdeal");
5 5
 		var token = localStorage.getItem("token");
6 6
 		var F_See = localStorage.getItem("F_See");
7 7
 		var page = 1; //页数
8 8
 		var pageSize = 10; //每页显示条目
9 9
 		var total; //数据总条数
10
-		var wv = plus.webview.currentWebview();
10
+		var urlParams = new URLSearchParams(window.location.search);
11
+	    var param1 = urlParams.get('index');
12
+	    var param2 = urlParams.get('importClass');
13
+	    var wv = {
14
+			index: param1,
15
+			importClass: param2
16
+		}
11 17
 		var importClass = wv.importClass; //工单等级
12 18
 		var choujian = wv.choujian; //抽检
13 19
 		var keyw="";
@@ -349,7 +355,7 @@ window.onload = function() {
349 355
 			}
350 356
 			mui.openWindow({
351 357
 				id: DetailID,
352
-				url: DetailUrl,
358
+				url: DetailUrl + '?name=' + id + '&classImport=' + classImport,
353 359
 				createNew: true,
354 360
 				show: {
355 361
 					aniShow: 'pop-in'

+ 9 - 3
双汇APP-h5/workOrder/js/Work-listClass.js

@@ -1,13 +1,19 @@
1 1
 window.onload = function() {
2 2
 
3
-	mui.plusReady(function() {
3
+	mui.ready(function() {
4 4
 		//var isdeal=helper.request.queryString("isdeal");
5 5
 		var token = localStorage.getItem("token");
6 6
 		var F_See = localStorage.getItem("F_See");
7 7
 		var page = 1; //页数
8 8
 		var pageSize = 10; //每页显示条目
9 9
 		var total; //数据总条数
10
-		var wv = plus.webview.currentWebview();
10
+		var urlParams = new URLSearchParams(window.location.search);
11
+	    var param1 = urlParams.get('choujian');
12
+	    var param2 = urlParams.get('importClass');
13
+	    var wv = {
14
+			choujian: param1,
15
+			importClass: param2
16
+		}
11 17
 		var importClass = wv.importClass; //工单等级
12 18
 		var choujian = wv.choujian; //抽检
13 19
 		var keyw="";
@@ -349,7 +355,7 @@ window.onload = function() {
349 355
 			}
350 356
 			mui.openWindow({
351 357
 				id: DetailID,
352
-				url: DetailUrl,
358
+				url: DetailUrl + '?name=' + id + '&classImport=' + classImport,
353 359
 				createNew: true,
354 360
 				show: {
355 361
 					aniShow: 'pop-in'

+ 5 - 3
双汇APP-h5/workOrder/js/detail.js

@@ -248,11 +248,13 @@ mui.ready(function() {
248 248
 						if(data.state.toLowerCase() == "success") {
249 249
 							mui.toast("删除成功");
250 250
 							if (classImport) {
251
-								var wobj = plus.webview.getWebviewById("Work-listClass");
251
+								// var wobj = plus.webview.getWebviewById("Work-listClass");
252
+								window.location.href = "Work-listClass.html";
252 253
 							}else{
253
-								var wobj = plus.webview.getWebviewById("Work-list");
254
+								// var wobj = plus.webview.getWebviewById("Work-list");
255
+								window.location.href = "Work-list.html";
254 256
 							}
255
-							wobj.reload(true);
257
+							// wobj.reload(true);
256 258
 						}else{
257 259
               mui.toast(data.message);
258 260
             }

+ 20 - 12
双汇APP-h5/workOrder/js/detailCJ.js

@@ -2,12 +2,18 @@ mui.init({
2 2
 	swipeBack: true //启用右滑关闭功能
3 3
 });
4 4
 mui.previewImage();
5
-mui.plusReady(function() {
6
-	var wv = plus.webview.currentWebview();
5
+mui.ready(function() {
6
+	var urlParams = new URLSearchParams(window.location.search);
7
+    var param1 = urlParams.get('name');
8
+    var param2 = urlParams.get('classImport');
9
+	var wv = {
10
+		name: param1,
11
+		classImport: classImport,
12
+	}//plus.webview.currentWebview();
13
+	var token = localStorage.getItem("token");
7 14
 	var vText = wv.name;
8 15
 	//var classImport = wv.classImport;
9 16
 	var ID = vText;
10
-	var token = localStorage.getItem("token");
11 17
 	var classImport = wv.classImport;
12 18
 	//工单详情
13 19
 	mui.ajax(huayi.config.callcenter_url + '/WorkorderApp/GetDetails', {
@@ -224,11 +230,13 @@ mui.plusReady(function() {
224 230
 						if(data.state.toLowerCase() == "success") {
225 231
 							mui.toast("删除成功");
226 232
 							if (classImport) {
227
-								var wobj = plus.webview.getWebviewById("Work-listCJ");
233
+								// var wobj = plus.webview.getWebviewById("Work-listCJ");
234
+								window.location.herf = 'Work-listCJ.html'
228 235
 							}else{
229
-								var wobj = plus.webview.getWebviewById("Work-list");
236
+								// var wobj = plus.webview.getWebviewById("Work-list");
237
+								window.location.herf = 'Work-list.html'
230 238
 							}
231
-							wobj.reload(true);
239
+							// wobj.reload(true);
232 240
 						}
233 241
 					}
234 242
 				})
@@ -241,7 +249,7 @@ mui.plusReady(function() {
241 249
 	function remind() {
242 250
 		mui.openWindow({
243 251
 			id: 'Work-remind',
244
-			url: 'Work-remind.html',
252
+			url: 'Work-remind.html?name=' + vText +'&classImport=2',
245 253
 			createNew:true,
246 254
 			show: {
247 255
 				aniShow: 'pop-in'
@@ -263,7 +271,7 @@ mui.plusReady(function() {
263 271
 	function backFun() {
264 272
 		mui.openWindow({
265 273
 			id: 'Work-HT',
266
-			url: 'Work-HT.html',
274
+			url: 'Work-HT.html?name=' + vText +'&classImport=2',
267 275
 			createNew:true,
268 276
 			show: {
269 277
 				aniShow: 'pop-in'
@@ -285,7 +293,7 @@ mui.plusReady(function() {
285 293
 	function submitFun() {
286 294
 		mui.openWindow({
287 295
 			id: 'Work-assign',
288
-			url: 'Work-assign.html',
296
+			url: 'Work-assign.html?name=' + vText +'&classImport=2',
289 297
 			createNew:true,
290 298
 			show: {
291 299
 				aniShow: 'pop-in'
@@ -307,7 +315,7 @@ mui.plusReady(function() {
307 315
 	function appointFun() {
308 316
 		mui.openWindow({
309 317
 			id: 'Work-appoint',
310
-			url: 'Work-appoint.html',
318
+			url: 'Work-appoint.html?name=' + vText +'&classImport=2',
311 319
 			createNew:true,
312 320
 			show: {
313 321
 				aniShow: 'pop-in'
@@ -329,7 +337,7 @@ mui.plusReady(function() {
329 337
 	function disposeFun() {
330 338
 		mui.openWindow({
331 339
 			id: 'Work-dispose',
332
-			url: 'Work-dispose.html',
340
+			url: 'Work-dispose.html?name=' + vText +'&classImport=2',
333 341
 			createNew:true,
334 342
 			show: {
335 343
 				aniShow: 'pop-in'
@@ -351,7 +359,7 @@ mui.plusReady(function() {
351 359
 	function signFun() {
352 360
 		mui.openWindow({
353 361
 			id: 'Work-sign',
354
-			url: 'Work-sign.html',
362
+			url: 'Work-sign.html?name=' + vText +'&classImport=2',
355 363
 			createNew:true,
356 364
 			show: {
357 365
 				aniShow: 'pop-in'

+ 20 - 11
双汇APP-h5/workOrder/js/work-appoint.js

@@ -1,10 +1,17 @@
1 1
 mui.init({
2 2
 	swipeBack: false,
3 3
 })
4
-mui.plusReady(function() {
5
-	var wv = plus.webview.currentWebview();
4
+mui.ready(function() {
5
+	var urlParams = new URLSearchParams(window.location.search);
6
+    var param1 = urlParams.get('name');
7
+    var param2 = urlParams.get('classImport');
8
+	var wv = {
9
+		name: param1,
10
+		classImport: classImport,
11
+	}//plus.webview.currentWebview();
12
+	var token = localStorage.getItem("token");
6 13
 	var classImport = wv.classImport;
7
-	var token = wv.token;
14
+//	var token = wv.token;
8 15
 	var isdeals = wv.name;
9 16
 	//交办单位
10 17
 	var dwList = [];
@@ -50,7 +57,7 @@ mui.plusReady(function() {
50 57
 	$('.submit').on('tap', function() {
51 58
 		var DWResult = $("#DWResult").attr('data-index');
52 59
 		if(!DWResult) {
53
-			plus.nativeUI.toast('请选择提交人');
60
+			mui.toast('请选择提交人');
54 61
 		} else {
55 62
 			var btnArray = ['取消', '确定'];
56 63
 			mui.confirm('是否提交工单', '提示', btnArray, function(e) {
@@ -66,25 +73,27 @@ mui.plusReady(function() {
66 73
 						type: 'post', //HTTP请求类型
67 74
 						timeout: 10000, //超时时间设置为10秒;
68 75
 						success: function(data) {
69
-							plus.nativeUI.toast('成功');
76
+							mui.toast('成功');
70 77
 							$("#ower_recive").val('');
71 78
 							if (classImport) {
72 79
 								if (classImport==2) {
73
-									var wobj = plus.webview.getWebviewById("Work-listCJ");
80
+									// var wobj = plus.webview.getWebviewById("Work-listCJ");
81
+									window.location.herf = 'Work-listCJ.html';
74 82
 								}else{
75
-									var wobj = plus.webview.getWebviewById("Work-listClass");
83
+									// var wobj = plus.webview.getWebviewById("Work-listClass");
84
+									window.location.herf = 'Work-listClass.html';
76 85
 								}
77 86
 							}else{
78
-								var wobj = plus.webview.getWebviewById("Work-list");
87
+								// var wobj = plus.webview.getWebviewById("Work-list");
79 88
 							}
80
-							wobj.reload(true);
89
+							// wobj.reload(true);
81 90
 						},
82 91
 						error: function(xhr, type, errorThrown) {
83
-							plus.nativeUI.toast('失败');
92
+							mui.toast('失败');
84 93
 						}
85 94
 					});
86 95
 				} else {
87
-					plus.nativeUI.toast('取消申请');
96
+					mui.toast('取消申请');
88 97
 				}
89 98
 			})
90 99
 

+ 12 - 9
双汇APP-h5/workOrder/js/work-assign.js

@@ -111,9 +111,9 @@ mui.ready(function() {
111 111
 		var DWResult = $("#DWResult").val();
112 112
 		var ower_recive = $("#ower_recive").val();
113 113
 		if(!DWResult) {
114
-			plus.nativeUI.toast('请选择部门');
114
+			mui.toast('请选择部门');
115 115
 		} else if(!ower_recive) {
116
-			plus.nativeUI.toast('请选择提交人');
116
+			mui.toast('请选择提交人');
117 117
 		} else {
118 118
 			var btnArray = ['取消', '确定'];
119 119
 			mui.confirm('是否提交工单', '提示', btnArray, function(e) {
@@ -130,26 +130,29 @@ mui.ready(function() {
130 130
 						type: 'post', //HTTP请求类型
131 131
 						timeout: 10000, //超时时间设置为10秒;
132 132
 						success: function(data) {
133
-							plus.nativeUI.toast('成功');
133
+							mui.toast('成功');
134 134
 							$("#ower_recive").val('');
135 135
 							$("#DWResult").val('');
136 136
 							if (classImport) {
137 137
 								if (classImport==2) {
138
-									var wobj = plus.webview.getWebviewById("Work-listCJ");
138
+									// var wobj = plus.webview.getWebviewById("Work-listCJ");
139
+									window.location.href = 'Work-listCJ.html';
139 140
 								}else{
140
-									var wobj = plus.webview.getWebviewById("Work-listClass");
141
+									// var wobj = plus.webview.getWebviewById("Work-listClass");
142
+									window.location.href = 'Work-listClass.html';
141 143
 								}
142 144
 							}else{
143
-								var wobj = plus.webview.getWebviewById("Work-list");
145
+								// var wobj = plus.webview.getWebviewById("Work-list");
146
+								window.location.href = 'Work-list.html';
144 147
 							}
145
-							wobj.reload(true);
148
+							// wobj.reload(true);
146 149
 						},
147 150
 						error: function(xhr, type, errorThrown) {
148
-							plus.nativeUI.toast('失败');
151
+							mui.toast('失败');
149 152
 						}
150 153
 					});
151 154
 				} else {
152
-					plus.nativeUI.toast('取消申请');
155
+					mui.toast('取消申请');
153 156
 				}
154 157
 			})
155 158
 

+ 20 - 11
双汇APP-h5/workOrder/js/work-sign.js

@@ -1,10 +1,16 @@
1 1
 mui.init({
2 2
 	swipeBack: false,
3 3
 })
4
-mui.plusReady(function() {
4
+mui.ready(function() {
5 5
 	
6
-	var wv = plus.webview.currentWebview();
7
-	var token = wv.token;
6
+	var urlParams = new URLSearchParams(window.location.search);
7
+	var param1 = urlParams.get('name');
8
+	var param2 = urlParams.get('classImport');
9
+	var wv = {
10
+		name: param1,
11
+		classImport: param2
12
+	}
13
+	var token = localStorage.getItem("token");
8 14
 	var isdeals = wv.name;
9 15
 	var classImport = wv.classImport;
10 16
 		//交办单位
@@ -105,7 +111,7 @@ mui.plusReady(function() {
105 111
 		var DWResult = $("#DWResult").val();
106 112
 		var DWcause = $("#DWcause").val();
107 113
 		if(!DWResult) {
108
-			plus.nativeUI.toast('请选择重要级别');
114
+			mui.toast('请选择重要级别');
109 115
 		}else {
110 116
 			var btnArray = ['取消', '确定'];
111 117
 			mui.confirm('是否提交', '提示', btnArray, function(e) {
@@ -121,26 +127,29 @@ mui.plusReady(function() {
121 127
 						type: 'post', //HTTP请求类型
122 128
 						timeout: 10000, //超时时间设置为10秒;
123 129
 						success: function(data) {
124
-							plus.nativeUI.toast('标记成功');
130
+							mui.toast('标记成功');
125 131
 							$("#ower_recive").val('');
126 132
 							$("#DWcause").val('')
127 133
 							if (classImport) {
128 134
 								if (classImport==2) {
129
-									var wobj = plus.webview.getWebviewById("Work-listCJ");
135
+									// var wobj = plus.webview.getWebviewById("Work-listCJ");
136
+									window.location.href = 'Work-listCJ.html';
130 137
 								}else{
131
-									var wobj = plus.webview.getWebviewById("Work-listClass");
138
+									//var wobj = plus.webview.getWebviewById("Work-listClass");
139
+									window.location.href = 'Work-listClass.html';
132 140
 								}
133 141
 							}else{
134
-								var wobj = plus.webview.getWebviewById("Work-list");
142
+								//var wobj = plus.webview.getWebviewById("Work-list");
143
+								window.location.href = 'Work-list.html';
135 144
 							}
136
-							wobj.reload(true);
145
+							//wobj.reload(true);
137 146
 						},
138 147
 						error: function(xhr, type, errorThrown) {
139
-							plus.nativeUI.toast('失败');
148
+							mui.toast('失败');
140 149
 						}
141 150
 					});
142 151
 				} else {
143
-					plus.nativeUI.toast('取消申请');
152
+					mui.toast('取消申请');
144 153
 				}
145 154
 			})
146 155