소스 검색

驾意险限制只能选择一种

祁鹏飞 2 달 전
부모
커밋
854dfdc992
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/layouts/components/DrivingType/index.vue

+ 7 - 0
src/layouts/components/DrivingType/index.vue

@@ -201,6 +201,13 @@ const handleCancel = () => {
 }
 // 保存
 const handleConfirm = () => {
+  if(selectedList.value.length > 1){
+     ElMessage({
+      message: '只能选择一种驾意险',
+      type: 'warning'
+    })
+    return
+  }
   emits('close', {
     list: selectedList.value,
     index: editIndex.value