| | |
| | | <div style="display: flex; justify-content: center"> |
| | | <div class="header_box"> |
| | | <div class="tabs-box"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tabs v-model="activeName" @tab-click="tabChange"> |
| | | <el-tab-pane |
| | | v-for="item in testData1" |
| | | :label="item.name" |
| | |
| | | <div class="card_header"> |
| | | <div class="title">设备正常率</div> |
| | | <div style="margin: 10px 10px"> |
| | | <ScreenTable></ScreenTable> |
| | | <ScreenTable :tableData="tableData"></ScreenTable> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import ExamineChart from "../components/screen-examine/components/examine-chart.vue"; |
| | | import ScreenData from "../components/screen-data/index.vue"; |
| | | import NewMap from "./components/newMap.vue"; |
| | | import { getDeviceData, getWorkOrderData } from "@/api/newpage"; |
| | | import { getDeviceData, getWorkOrderData, getNormalRate } from "@/api/newpage"; |
| | | export default { |
| | | name: "Newpage", |
| | | components: { |
| | |
| | | totalNum: 28, |
| | | }, |
| | | }, |
| | | tableData: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | getData() { |
| | | getDeviceData() |
| | | .then((res) => { |
| | | this.deviceList = res.data.monitorTotal; |
| | | this.deviceList = res.data; |
| | | }) |
| | | .catch((err) => {}); |
| | | getWorkOrderData() |
| | | .then((res) => { |
| | | this.workOrderData = res.data; |
| | | console.log(res, "zxczxczxcxc"); |
| | | }) |
| | | .catch((err) => {}); |
| | | this.getTableList(); |
| | | }, |
| | | getTableList() { |
| | | getNormalRate(this.activeName) |
| | | .then((res) => { |
| | | this.tableData = res.data; |
| | | }) |
| | | .catch((err) => {}); |
| | | }, |
| | | tabChange(){ |
| | | this. getTableList() |
| | | } |
| | | }, |
| | | }; |
| | | </script> |