feiyu02
2025-09-17 b330e57051e54789eb83d10dc58c4d9d10c608e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<template>
  <BaseProdProcess :active="active">
    <template #step1>
      <ProdQueryOpt :loading="loading" @submit="onSearch"> </ProdQueryOpt>
    </template>
    <template #step2></template>
    <template #step3></template>
  </BaseProdProcess>
</template>
<script setup>
import { ref } from 'vue';
import BaseProdProcess from '@/views/fysp/data-product/base-data-product/components/BaseProdProcess.vue';
import ProdQueryOpt from '@/views/fysp/data-product/base-data-product/components/ProdQueryOpt.vue';
 
const active = ref(1);
const loading = ref(false)
 
function changeActive() {
  active.value++;
  active.value = active.value > 3 ? 1 : active.value;
}
 
function onSearch(opt) {
  console.log(opt);
  loading.value = true;
  setTimeout(() => {
    changeActive()
    loading.value = false;
  }, 1000);
}
</script>