| | |
| | | align="center" |
| | | label="选择" |
| | | width="40" |
| | | :selectable="isSelectable" |
| | | |
| | | > |
| | | <!-- :selectable="isSelectable" --> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="姓名" align="center" prop="name" width="80px" /> |
| | |
| | | let del_row = val.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | console.log(val, 999); |
| | | // console.log(val, 999); |
| | | |
| | | if (val.length > 0) { |
| | | const selectedRow = val[0]; |
| | | console.log(val[0], 555); |
| | | // console.log(val[0], 555); |
| | | /* if (!selectedRow.mzh) { |
| | | this.$refs.tb.toggleRowSelection(selectedRow, false); |
| | | this.$message.warning("当前行无有效门诊号,不能选中"); |
| | |
| | | }, |
| | | // 根据选中的行数据请求右边表格数据 |
| | | fetchRightTableData(selectedRow) { |
| | | const code = selectedRow.mzh; |
| | | if (!code) return; |
| | | const code = this.queryParams.tjNum; |
| | | // const code = selectedRow.mzh; |
| | | // if (!code) return; |
| | | this.loading = true; |
| | | getRightList(code).then((response) => { |
| | | this.checkList = response.data; |
| | |
| | | |
| | | handleSelectionChangeSecond(selectedRows) { |
| | | this.selectedSecondTable = selectedRows; |
| | | if (selectedRows.length > 1) { |
| | | let del_row = selectedRows.shift(); |
| | | this.$refs.tab1.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | console.log("当前选中的行数据:", this.selectedSecondTable); |
| | | }, |
| | | getList() { |
| | |
| | | this.$modal.loading("正在同步,请稍候..."); |
| | | this.setTime(); |
| | | // console.log(val, 66); |
| | | this.selectedFirstTable.tjnum = this.queryParams.tjNum; |
| | | const requestData = { |
| | | pacs: this.selectedFirstTable, // 左侧表格选中数据 |
| | | tj: this.selectedSecondTable[0], // 右侧表格选中数据 |