| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div class="btns"> |
| | | <div class="searchBtn" @click="searchingBtn">保存</div> |
| | | <div class="searchBtn" @click="save">保存</div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | goto(i) { |
| | | this.activeIndex = i; |
| | | }, |
| | | save(){ |
| | | |
| | | }, |
| | | // 跳到设备详情 |
| | | checkDetail(row) { |
| | | this.$router.push({ |
| | |
| | | }, |
| | | |
| | | // 查询列表 |
| | | searchingBtn() { |
| | | let param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | // startTime: this.searchTime[0], |
| | | // endTime: this.searchTime[1], |
| | | inputText: this.inputText, |
| | | }; |
| | | findDevList(param) |
| | | .then((res) => { |
| | | this.dataList = res.data.list; |
| | | //时间分行显示 |
| | | // searchingBtn() { |
| | | // let param = { |
| | | // page: this.page, |
| | | // size: this.size, |
| | | // // startTime: this.searchTime[0], |
| | | // // endTime: this.searchTime[1], |
| | | // 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(" "); |
| | | }); |
| | | this.total = res.data.total; |
| | | if (res.data.total <= this.size) { |
| | | this.page = 1; |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err); |
| | | }); |
| | | }, |
| | | // this.dataList.forEach((item) => { |
| | | // item.installTime = item.installTime.split(" "); |
| | | // item.firstUseTime = item.firstUseTime.split(" "); |
| | | // }); |
| | | // this.total = res.data.total; |
| | | // if (res.data.total <= this.size) { |
| | | // this.page = 1; |
| | | // } |
| | | // }) |
| | | // .catch((err) => { |
| | | // console.log(err); |
| | | // }); |
| | | // }, |
| | | |
| | | //分页功能 |
| | | handleSizeChange(size) { |
| | | this.size = size; |
| | | this.searchingBtn(); |
| | | }, |
| | | //分页功能 |
| | | refrash(page) { |
| | | this.page = page; |
| | | this.searchingBtn(); |
| | | }, |
| | | |
| | | //解绑按钮 |
| | |
| | | //解绑成功回调 |
| | | reflash() { |
| | | this.isShowUnbind = false; |
| | | this.searchingBtn(); |
| | | }, |
| | | |
| | | clearSearch() { |
| | | this.searchTime = this.getDateInit(); |
| | | this.inputText = ""; |
| | | this.searchingBtn(); |
| | | }, |
| | | |
| | | //退出集群 |