haoxuan
2024-02-28 fb20919d312b7f3bf81805eda670f42fa2d18e39
src/components/makepager/TableCommonView.vue
@@ -398,35 +398,12 @@
      this.$emit("tableRowClassName", row)
    },
    selectable(row) {
      console.log(row, this.selectBoxList, "888899")
      let list = this.selectBoxList.map((item) => item.number)
      console.log(
        list,
        list.findIndex((v) => v == row.number)
      )
      if (list.findIndex((v) => v == row.number) == -1) {
        console.log("33")
        return true
      } else {
        console.log("44")
        return false
      }
      // if (this.selectBoxList.length == 1 && this.selectBoxList[0].number.length == 0) {
      //   return true
      // } else {
      //   let list = this.selectBoxList.map((item) => item.number)
      //   console.log(
      //     list,
      //     list.findIndex((v) => v === row.number),
      //     "5555"
      //   )
      //   if (list.findIndex((v) => v === row.number)) {
      //     return true
      //   } else {
      // }
      // }
    }
  }
}