소스 검색

成本分配列表/面料损耗列表-指派-勾选人员信息校验

jbb 1 년 전
부모
커밋
6fbe8b63a7
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/cost-allocation-total/modal/SelectUserModal.vue

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

@@ -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() {