wangxy 1 mese fa
parent
commit
04e07b85c5
1 ha cambiato i file con 13 aggiunte e 2 eliminazioni
  1. 13 2
      components/selectZyLevel/index.vue

+ 13 - 2
components/selectZyLevel/index.vue

@@ -73,7 +73,11 @@
 		},
 		id: {
 			type: Number,
-		}
+		},
+    mode: {
+      type: String,
+      default: 'duoxuan' // danxuan / duoxuan
+    }
 	});
 
 	const commonPopup = ref(null);
@@ -158,7 +162,14 @@
 			if (ite.id === data.activeId) {
 				ite.zyLevel = item.id;
 				ite.zyLevelName = item.name
-			}
+			} else {
+        if (props.mode == 'danxuan') {
+          ite.zyLevel = null;
+          ite.zyLevelName = null;
+        }
+      }
+
+
 			return ite;
 		})
 		commonPopup2.value.handleClose()