|
@@ -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,
|