heyujie
2022-04-01 85841ef9441aff46d80c7458c928e085e78911a1
src/views/personalCenter/components/BasicInfo.vue
@@ -68,7 +68,7 @@
      </el-form-item>
    </el-form>
    <div class="btns">
      <div class="searchBtn" @click="searchingBtn">保存</div>
      <div class="searchBtn" @click="save">保存</div>
    </div>
  </div>
</template>
@@ -286,6 +286,9 @@
    goto(i) {
      this.activeIndex = i;
    },
    save(){
    },
    // 跳到设备详情
    checkDetail(row) {
      this.$router.push({
@@ -312,42 +315,40 @@
    },
    // 查询列表
    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();
    },
    //解绑按钮
@@ -387,13 +388,11 @@
    //解绑成功回调
    reflash() {
      this.isShowUnbind = false;
      this.searchingBtn();
    },
    clearSearch() {
      this.searchTime = this.getDateInit();
      this.inputText = "";
      this.searchingBtn();
    },
    //退出集群