qinxianzhangyao
2024-07-05 97261fe1216d84c14e9f257050f09ff9101d307f
src/views/doctor/examination/index.vue
@@ -311,6 +311,7 @@
      exaList: [],
      // 表单参数
      form: {},
      clearTimeSet:null,
      tjNumbers: "",
      multipleSelection: "",
      tjnum: "",
@@ -505,7 +506,6 @@
      });
    },
    tableRowClassName({ row, rowIndex }) {
      console.log(111);
      for (let i = 0; i < this.selectList.length; i++) {
        if (row === this.selectList[i]) {
          return "warning-row";
@@ -549,13 +549,24 @@
        });
      });
    },
    setTime() {
      //设置定时器
      this.clearTimeSet = setInterval(() => {
        this.$modal.closeLoading();
      }, 300000);
    },
    tongbu(row) {
      // this.$refs.tb.toggleRowSelection(row);
      this.$modal.loading("正在同步,请稍候...");
      this.setTime();
      let tjNumber = row.tjNumber;
      dataSynchronization(tjNumber).then((res) => {
        if (res.code == 200) {
          // this.$forceUpdate();
          // this.getList();
          clearInterval(this.clearTimeSet)
          this.clearTimeSet=null
          this.$modal.closeLoading();
          this.$modal.msgSuccess("同步成功!");
        }
      });
@@ -592,7 +603,7 @@
.el-table .warning-row {
  background: #e5f3ff !important;
}
::v-deep .el-table__body tr.current-row>td {
      background: #edf2fa !important;
   }
::v-deep .el-table__body tr.current-row > td {
  background: #edf2fa !important;
}
</style>