Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
10 additions
and
0 deletions
| ... | @@ -31,6 +31,7 @@ | ... | @@ -31,6 +31,7 @@ |
| 31 | :data="tableData" | 31 | :data="tableData" |
| 32 | style="width: 100%" | 32 | style="width: 100%" |
| 33 | @selection-change="handleSelectionChange" | 33 | @selection-change="handleSelectionChange" |
| 34 | @row-dblclick="rowDbclick" | ||
| 34 | border | 35 | border |
| 35 | > | 36 | > |
| 36 | <el-table-column type="selection" width="40" align="center"> | 37 | <el-table-column type="selection" width="40" align="center"> |
| ... | @@ -453,6 +454,15 @@ | ... | @@ -453,6 +454,15 @@ |
| 453 | }); | 454 | }); |
| 454 | } | 455 | } |
| 455 | }, | 456 | }, |
| 457 | //行双击事件 | ||
| 458 | rowDbclick(row){ | ||
| 459 | this.dialogVisible = true; | ||
| 460 | this.update=true; | ||
| 461 | this.formData=row; | ||
| 462 | if(row.frList.length>0){ | ||
| 463 | this.formData.fr=row.frList[0]; | ||
| 464 | } | ||
| 465 | }, | ||
| 456 | //删除行数据 | 466 | //删除行数据 |
| 457 | delRow() { | 467 | delRow() { |
| 458 | if (this.multipleSelection.length > 0) { | 468 | if (this.multipleSelection.length > 0) { | ... | ... |
-
Please register or sign in to post a comment