陈婷婷
2 天以前 2e2b0700a25ce13c7a3eb113c577375da87bc0f3
src/views/scMould/basicModeling/Gy_MouldFileList.vue
@@ -237,6 +237,7 @@
  components: { RowSettings, Edit, BtnSettings },
  props: {
    openPage: { type: String, },
    multiple: { type: Boolean, default: false },
  },
  data() {
    return {
@@ -761,16 +762,18 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      // this.rowForm = {}
      if (this.openPage) {
        //列表单选
        if (selection.length > 1) {
        if (!this.multiple && selection.length > 1) {
          const del_row = selection.shift()
          this.$refs.tableData.toggleRowSelection(del_row, false) //设置这一行取消选中
          this.$refs.tableData.toggleRowSelection(del_row, false)
        }
        this.rowForm = {}
        if (this.multiple) {
          this.ids = selection.map(item => item.hmainid)
          this.rowForm = selection
        } else {
        this.ids = selection.map(item => item.hmainid)
        this.rowForm = selection[0]
        }
      } else {
        this.ids = selection.map(item => item.hmainid)
        this.single = selection.length != 1