ZZJ
2022-05-05 d889eaf990af99c06970e51f2bc421ac0015489c
src/views/equipmentManagement/equipmentList/components/FormList.vue
@@ -186,6 +186,9 @@
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,
@@ -260,15 +263,15 @@
      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(" ");
@@ -277,6 +280,8 @@
          if (res.data.total <= this.size) {
            this.page = 1;
          }
          bus.$emit("refleshNode", this.dataList);
        })
        .catch((err) => {
          console.log(err);
@@ -296,7 +301,6 @@
    //解绑按钮
    Untying(row) {
      console.log(row);
      this.unbindId = row.devId;
      this.isShowUnbind = true;
    },
@@ -322,6 +326,7 @@
    //关闭新增弹窗
    closeAddBox() {
      this.isShowAdd = false;
      this.searchingBtn();
    },
    // 关闭解绑弹窗
    closeUnbindBox() {
@@ -330,6 +335,7 @@
    //解绑成功回调
    reflash() {
      console.log("1111");
      this.isShowUnbind = false;
      this.searchingBtn();
    },
@@ -367,6 +373,7 @@
    padding: 60px 0 30px 0;
    font-size: 14px;
    border-bottom: 1px solid #e9ebee;
    background-color: #fff;
    .left,
    .right,