|
@@ -2,6 +2,7 @@
|
|
import { onMounted, useTemplateRef } from 'vue';
|
|
import { onMounted, useTemplateRef } from 'vue';
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
|
|
|
|
|
+import SvgIcon from '@/components/SvgIcon.vue';
|
|
import { useRequest } from '@/hooks/request';
|
|
import { useRequest } from '@/hooks/request';
|
|
import { t } from '@/i18n';
|
|
import { t } from '@/i18n';
|
|
import { completeProtocolConfig, downloadUserProtocol, getProtocolBaseInfo, updateProtocolBaseInfo } from '@/api';
|
|
import { completeProtocolConfig, downloadUserProtocol, getProtocolBaseInfo, updateProtocolBaseInfo } from '@/api';
|
|
@@ -60,24 +61,22 @@ defineExpose<UseGuideStepItemExpose>({
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
- <div class="result-header">
|
|
|
|
- <div class="use-guide-title">{{ $t('setupProtocol.recognitionResult') }}</div>
|
|
|
|
- <AButton @click="reRecognize">{{ $t('setupProtocol.reRecognize') }}</AButton>
|
|
|
|
- </div>
|
|
|
|
- <ProtocolContent class="result-protocol" ref="protocolContent" :info="form.protocolInfo" />
|
|
|
|
|
|
+ <div class="result-container">
|
|
|
|
+ <AButton class="icon-button recognize-button" @click="reRecognize">
|
|
|
|
+ <SvgIcon name="reload" />
|
|
|
|
+ {{ $t('setupProtocol.reRecognize') }}
|
|
|
|
+ </AButton>
|
|
|
|
+ <ProtocolContent ref="protocolContent" :info="form.protocolInfo" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-.result-header {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- width: calc(62% + 17px);
|
|
|
|
- margin-bottom: 36px;
|
|
|
|
|
|
+.result-container {
|
|
|
|
+ position: relative;
|
|
}
|
|
}
|
|
|
|
|
|
-.result-protocol {
|
|
|
|
- margin: 0 17px;
|
|
|
|
|
|
+.recognize-button {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: -103px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|