|
|
|
|
@ -382,9 +382,9 @@
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<footer v-if="configuredSteps.length" class="step-navigation" aria-label="步骤操作">
|
|
|
|
|
<el-button v-if="currentStep > 1" plain @click="goPreviousStep">上一步</el-button>
|
|
|
|
|
<el-button v-if="!isFirstConfiguredStep" plain @click="goPreviousStep">上一步</el-button>
|
|
|
|
|
<el-button type="primary" :loading="saving" @click="saveCurrentProgress">保存当前进度</el-button>
|
|
|
|
|
<el-button v-if="currentStep < configuredSteps.length" plain @click="goNextStep">下一步</el-button>
|
|
|
|
|
<el-button v-if="!isLastConfiguredStep" plain @click="goNextStep">下一步</el-button>
|
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
@ -744,6 +744,8 @@ const saving = ref(false);
|
|
|
|
|
const uploading = ref(false);
|
|
|
|
|
const currentStep = ref(1);
|
|
|
|
|
const configuredSteps = computed(() => parseArray(remoteTask.value?.steps));
|
|
|
|
|
const isFirstConfiguredStep = computed(() => currentStep.value <= 1);
|
|
|
|
|
const isLastConfiguredStep = computed(() => configuredSteps.value.length > 0 && currentStep.value >= configuredSteps.value.length);
|
|
|
|
|
const indexedConfiguredSteps = computed(() => configuredSteps.value.map((step, index) => ({ step, index })));
|
|
|
|
|
const comprehensiveStepNavRef = ref(null);
|
|
|
|
|
const comprehensiveNavDragging = ref(false);
|
|
|
|
|
|