|
@@ -177,9 +177,9 @@
|
|
|
this.selectedRowKeys=[]
|
|
|
},
|
|
|
handleOk() {
|
|
|
- // if(this.selectedRowKeys.length>1){
|
|
|
- // this.$message.error('只能勾选一条数据');
|
|
|
- // }else{
|
|
|
+ if(this.selectedRowKeys.length==0){
|
|
|
+ this.$message.error('必须勾选一条数据');
|
|
|
+ }else{
|
|
|
this.dataSource2 = this.selectionRows
|
|
|
var name = []
|
|
|
this.selectionRows.map(item=>name.push(item.realname))
|
|
@@ -187,7 +187,7 @@
|
|
|
this.visible = false
|
|
|
this.selectedRowKeys = []
|
|
|
this.selectionRows = []
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
add() {
|