Procházet zdrojové kódy

驾意险限制只能选择一种

祁鹏飞 před 2 měsíci
rodič
revize
854dfdc992
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  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 = () => {
 const handleConfirm = () => {
+  if(selectedList.value.length > 1){
+     ElMessage({
+      message: '只能选择一种驾意险',
+      type: 'warning'
+    })
+    return
+  }
   emits('close', {
   emits('close', {
     list: selectedList.value,
     list: selectedList.value,
     index: editIndex.value
     index: editIndex.value