|
@@ -177,13 +177,18 @@
|
|
|
this.selectedRowKeys=[]
|
|
|
},
|
|
|
handleOk() {
|
|
|
- this.dataSource2 = this.selectionRows
|
|
|
+ if(this.selectedRowKeys.length>1){
|
|
|
+ this.$message.error('只能勾选一条数据');
|
|
|
+ }else{
|
|
|
+ this.dataSource2 = this.selectionRows
|
|
|
var name = []
|
|
|
this.selectionRows.map(item=>name.push(item.realname))
|
|
|
this.$emit('selectFinished', name.toString())
|
|
|
this.visible = false
|
|
|
this.selectedRowKeys = []
|
|
|
this.selectionRows = []
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
add() {
|
|
|
this.visible = true
|