diff --git a/src/views/order/intention/Step2.vue b/src/views/order/intention/Step2.vue index 550ee5e..903dce4 100644 --- a/src/views/order/intention/Step2.vue +++ b/src/views/order/intention/Step2.vue @@ -29,42 +29,93 @@
车轴: - +
齿轮箱: - +
车轮: - +
制动盘: - +
- 查询 - 参数对比 + 查询
-
- -
- -
- -
-
{{ item.label }}
-
{{ item.code }}
-
-
+
+ + 参数对比 + +
+ +
+ +
+ +
+
{{ item.label }}
+
{{ item.code }}
+
+
+
- +
- +
{{ item.label }}
@@ -75,19 +126,29 @@
- +
上一步 - 下一步 + 下一步
- + @@ -118,10 +179,17 @@ const selectedCarTypeProxy = computed({ }, }); -const paramAxle = ref(""); -const paramGearbox = ref(""); -const paramWheel = ref(""); -const paramBrake = ref(""); +const paramAxle = ref("不限"); +const paramGearbox = ref("不限"); +const paramWheel = ref("不限"); +const paramBrake = ref("不限"); + +onMounted(() => { + if (!props.form.selectedCarType) { + selectedCarTypeProxy.value = "其他"; + } + onQuery(); // 首次自动查询,展示卡片 +}); function selectCarType(val) { selectedCarTypeProxy.value = val; @@ -153,7 +221,9 @@ function onQuery() { } const compareDialogVisible = ref(false); -const selectedCompareList = computed(() => queryResultList.value.filter(i => i.selected)); +const selectedCompareList = computed(() => + queryResultList.value.filter((i) => i.selected) +); const compareTableData = ref([ { param: "动车组联轴节", @@ -193,6 +263,10 @@ function onCompare() { } compareDialogVisible.value = true; } + +function toggleSelect(item) { + item.selected = !item.selected; +} \ No newline at end of file