You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
745 B
22 lines
745 B
2 months ago
|
<template>
|
||
|
<q-btn v-if="showComputed" icon="next_plan" color="primary" label="下一步" @click="rating.step.nextClick" />
|
||
|
</template>
|
||
|
<script setup lang="ts">
|
||
|
import { inject, computed } from 'vue';
|
||
|
import { Rating } from './ts/Rating';
|
||
|
import { Step } from './ts/Step';
|
||
|
import { Constant } from './ts/Constant';
|
||
|
|
||
|
const rating = <Rating>inject('rating');
|
||
|
const showComputed = computed(() => {
|
||
|
if (rating.ratingData.value['processStatus'] === Constant.RATING_PROCESS_STATUS.BACK && rating.step.currStep.value === Step.type.reportInfo.value) {
|
||
|
return false;
|
||
|
} else {
|
||
|
if (rating.cm.isApplyUserProcessStatus.value && rating.step.currStep.value !== Step.type.opinion.value) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
});
|
||
|
</script>
|