main
			
			
		
		
							parent
							
								
									ae9fcf8996
								
							
						
					
					
						commit
						16fd1f9fab
					
				|  | @ -97,8 +97,14 @@ export default { | ||||||
|        |        | ||||||
|       if (ret.code == 0) { |       if (ret.code == 0) { | ||||||
|           // 获取数据 |           // 获取数据 | ||||||
|           // state.tableData = rule_info.decode(ret.data); |           // state.tableData = rule.decode(ret.data); | ||||||
|           // console.log(rule_info.decode(ret.data)); |           console.log(rule.decode(ret.data)); | ||||||
|  |           /** | ||||||
|  |            * 组长看这里 | ||||||
|  |            *  | ||||||
|  |            */ | ||||||
|  |            // lable 是标题 | ||||||
|  |            // info 是描述 | ||||||
|       } else { |       } else { | ||||||
|           console.log(res); |           console.log(res); | ||||||
|       } |       } | ||||||
|  | @ -122,8 +128,14 @@ export default { | ||||||
|           }).finish(); |           }).finish(); | ||||||
|           // 截取有效长度 |           // 截取有效长度 | ||||||
|           const req_data = req_databuf.slice(0, req_databuf.length); |           const req_data = req_databuf.slice(0, req_databuf.length); | ||||||
|  |           const req_databuf1 = post.encode({ | ||||||
|  |               cmd: 2, | ||||||
|  |               data: req_data, | ||||||
|  |           }).finish(); | ||||||
|  |           // 截取有效长度 | ||||||
|  |           const req_data1 = req_databuf1.slice(0, req_databuf1.length); | ||||||
|   |   | ||||||
|           const res = await infoApi.delRules(req_data); |           const res = await infoApi.postJsonRequest(req_data1); | ||||||
|           const ret = response.decode(new Uint8Array(res)); |           const ret = response.decode(new Uint8Array(res)); | ||||||
|           if (ret.code == 0) { |           if (ret.code == 0) { | ||||||
|             ElMessage.success(res.msg || "请求成功"); |             ElMessage.success(res.msg || "请求成功"); | ||||||
|  | @ -154,7 +166,22 @@ export default { | ||||||
|       // 截取有效长度 |       // 截取有效长度 | ||||||
|       const req_data = req_databuf.slice(0, req_databuf.length); |       const req_data = req_databuf.slice(0, req_databuf.length); | ||||||
| 
 | 
 | ||||||
|       const res =  item.enable==='启动' ? await infoApi.startStatus(req_data) : await infoApi.stopStatus(req_data); |       const req_databuf1 = post.encode({ | ||||||
|  |         cmd: 3, | ||||||
|  |         data: req_data, | ||||||
|  |     }).finish(); | ||||||
|  |     // 截取有效长度 | ||||||
|  |     const req_data1 = req_databuf1.slice(0, req_databuf1.length); | ||||||
|  | 
 | ||||||
|  |     const req_databuf2 = post.encode({ | ||||||
|  |         cmd: 3, | ||||||
|  |         data: req_data, | ||||||
|  |     }).finish(); | ||||||
|  |     // 截取有效长度 | ||||||
|  |     const req_data2 = req_databuf2.slice(0, req_databuf2.length); | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |       const res =  item.enable==='启动' ? await infoApi.postJsonRequest(req_data2) : await infoApi.postJsonRequest(req_data1); | ||||||
|       const ret = response.decode(new Uint8Array(res)); |       const ret = response.decode(new Uint8Array(res)); | ||||||
|       if (ret.code == 0) { |       if (ret.code == 0) { | ||||||
|         ElMessage.success(res.msg || "更新成功"); |         ElMessage.success(res.msg || "更新成功"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue