| | |
| | | return item.gasValue; |
| | | }) |
| | | dataZoomEnd.value = xData.value.length > 25 ? 30 : 100; |
| | | markLines.value = 110; |
| | | |
| | | }else { |
| | | xData.value = []; |
| | | yData.value = []; |
| | |
| | | let res = await gasManageApi().getGas({}); |
| | | if(res.data.code == 100) { |
| | | state.tableData.gasList = res.data.data; |
| | | console.log("气体",state.tableData.gasList) |
| | | //默认选择第一个气体 |
| | | state.tableData.listQuery.searchParams.gas = state.tableData.gasList[0].id; |
| | | markLines.value = state.tableData.gasList[0].threshold; |
| | | initInfoData(); |
| | | }else { |
| | | ElMessage({ |
| | |
| | | }; |
| | | const search = () => { |
| | | state.tableData.listQuery.pageIndex = 1; |
| | | const gasObj = state.tableData.gasList.filter(item => { |
| | | return item.id == state.tableData.listQuery.searchParams.gas |
| | | }); |
| | | markLines.value = gasObj[0].threshold; |
| | | |
| | | initInfoData(); |
| | | console.log("vla",state.tableData.listQuery.searchParams) |
| | | } |
| | | const reset = () => { |
| | | getNowTime(); |
| | | state.tableData.listQuery.searchParams.gas = state.tableData.gasList[0].id; |
| | | markLines.value = state.tableData.gasList[0].threshold; |
| | | state.tableData.listQuery.pageIndex = 1; |
| | | initInfoData(); |
| | | } |