Pārlūkot izejas kodu

feature/工序点击失效

dy 1 gadu atpakaļ
vecāks
revīzija
3d27c43e5e
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/views/process/components/steps.vue

+ 1 - 2
src/views/process/components/steps.vue

@@ -46,7 +46,6 @@ const store = useProcessStore();
 const props = defineProps<{
   opsArray?: object;
 }>();
-const emit = defineEmits(["setstepindex"]);
 const selectStepIndex = ref(0);
 const setStepIndex = () => {
   for (let i = 0; i < props.opsArray.length; i++) {
@@ -61,7 +60,7 @@ const boxClick = (item, index) => {
   store.odersData.operationId = item.operationId;
   store.processInfo.operationCode = item.operationCode;
   store.processInfo.operationName = item.operationName;
-  emit("setstepindex", index);
+  selectStepIndex.value = index;
 };
 watch(
   () => props.opsArray,