| | |
| | | import UnbindBox from "@/views/equipmentManagement/equipmentDetail/components/UnbindBox"; |
| | | import QuitClusterBox from "@/views/equipmentManagement/equipmentList/components/QuitClusterBox"; |
| | | import JoinClusterBox from "@/views/equipmentManagement/equipmentList/components/JoinClusterBox"; |
| | | |
| | | import bus from "@/plugin/bus"; |
| | | |
| | | export default { |
| | | components: { |
| | | AddBox, |
| | |
| | | let param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | // startTime: this.searchTime[0], |
| | | // endTime: this.searchTime[1], |
| | | startTime: this.searchTime[0], |
| | | endTime: this.searchTime[1], |
| | | clusterId: this.cluster, |
| | | inputText: this.inputText, |
| | | }; |
| | | findDevList(param) |
| | | .then((res) => { |
| | | this.dataList = res.data.list; |
| | | //时间分行显示 |
| | | |
| | | this.dataList.forEach((item) => { |
| | | item.installTime = item.installTime.split(" "); |
| | | item.firstUseTime = item.firstUseTime.split(" "); |
| | |
| | | if (res.data.total <= this.size) { |
| | | this.page = 1; |
| | | } |
| | | |
| | | bus.$emit("refleshNode", this.dataList); |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | |
| | | |
| | | //解绑按钮 |
| | | Untying(row) { |
| | | console.log(row); |
| | | this.unbindId = row.devId; |
| | | this.isShowUnbind = true; |
| | | }, |
| | |
| | | //关闭新增弹窗 |
| | | closeAddBox() { |
| | | this.isShowAdd = false; |
| | | this.searchingBtn(); |
| | | }, |
| | | // 关闭解绑弹窗 |
| | | closeUnbindBox() { |
| | |
| | | |
| | | //解绑成功回调 |
| | | reflash() { |
| | | console.log("1111"); |
| | | this.isShowUnbind = false; |
| | | this.searchingBtn(); |
| | | }, |
| | |
| | | padding: 60px 0 30px 0; |
| | | font-size: 14px; |
| | | border-bottom: 1px solid #e9ebee; |
| | | background-color: #fff; |
| | | |
| | | .left, |
| | | .right, |