Browse Source

面损列表-选择指派人

jbb 1 year ago
parent
commit
93046d35ee
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/cost-allocation-total/modal/SelectUserModal.vue

+ 6 - 1
src/views/cost-allocation-total/modal/SelectUserModal.vue

@@ -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