feat-调整AI创建背景样式和AI接口超时时间

This commit is contained in:
zhang.weiwei
2025-03-11 16:59:55 +08:00
parent 20b96a4765
commit 3bc409517e
8 changed files with 42 additions and 13 deletions

View File

@@ -137,12 +137,12 @@
</a-modal>
<!-- 下载中心 -->
<DownloadCenter v-model:visible="downloadVisible" v-if="downloadVisible"></DownloadCenter>
<!-- add by zhangweiwei 20250331_ai AI 质检 start -->
<!-- add by zhangweiwei 20250331_ai AI 质检 start -->
<ai-loading
:visible="showAiLoading"
desc="我正在为您分析问卷内容,这个过程可能会多花一点点时间,不过马上就好,稍等哦~"
/>
<!-- add by zhangweiwei 20250331_ai AI 质检 end -->
<!-- add by zhangweiwei 20250331_ai AI 质检 end -->
</template>
<script setup>
@@ -341,9 +341,10 @@ const toAiInspection = () => {
message.success('AI问卷质检完成');
return;
}
// 3. 有质检结果,将质检结果合并到问题列表中
// 3. 有质检结果,先清空质检结果,再将质检结果合并到问题列表中
const questionMap = {};
questions.forEach((question) => {
question.ai_inspection_result = null;
questionMap[question.title] = question;
});
resultList.forEach((result) => {

View File

@@ -13,7 +13,8 @@ export function aiQualityInspection(sn, data) {
return request({
url: `/ai/${sn}/qualityInspectionAssistant`,
method: 'post',
data
data,
timeout: 120000
});
}
/** add by zhangweiwei 20250331_ai AI 质检 end */

View File

@@ -189,7 +189,8 @@ export function aiSampleMark(sn, data) {
return request({
url: `/console/surveys/${sn}/answer_mark_ai`,
method: 'post',
data
data,
timeout: 120000
});
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -14,7 +14,8 @@
<!--带有图标的标题AI/人工样本标记-->
<div class="common-text">{{ titleInfo.title }}</div>
</a-tooltip>
<a-tooltip placement="top">
<a-tooltip placement="top" mouseLeaveDelay="100">
<template #title>
<div class="custom-head-preview">{{ titleInfo.titleIconTip }}</div>
</template>
@@ -22,7 +23,7 @@
<img class="icon-title__icon" :src="titleInfo.titleIconSrc" alt="" @click="onIconClicked" />
</a-tooltip>
</div>
<!-- add by zhangweiwei 20250331_ai 无效样本标记-列表新增AI/人工样本标记 end-->
<!-- add by zhangweiwei 20250331_ai 无效样本标记-列表新增AI/人工样本标记 end-->
<a-tooltip placement="topLeft" v-else>
<template #title>
<div class="custom-head-preview" v-html="content"></div>
@@ -183,5 +184,29 @@ watchEffect(() => {
margin-left: 4px;
}
}
.custom-tooltip {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
}
}
.icon-tip-wrapper {
:deep(.ant-tooltip) {
z-index: 9999;
.ant-tooltip-inner {
min-width: 58px;
background-color: transparent;
background-image: url('~@/assets/img/ai/data-analyse-ai-mark-tip-bg.png');
background-size: cover;
}
.ant-tooltip-arrow {
display: none;
}
}
}
</style>

View File

@@ -67,6 +67,7 @@ export default function useGeneratorTableColumns(columns, options = {}) {
titleType: 'withIcon', // 标题类型,带图标
titleIconSrc: require('@/assets/img/ai/data-analyse-ai-mark.png'), // 图标资源
titleIconTip: 'AI智筛精准标记', // 图标hover提示
titleIconTipType: 'ai', // 自定义样式
key: 'mark_des_ai',
dataIndex: 'mark_des_ai',
align: 'left',

View File

@@ -8,9 +8,7 @@
<div class="desc">{{ item.desc }}</div>
</div>
<div v-if="item.id === 1" class="action ai-action flex-none flex center">
<div class="ai-action__btn flex center" @click="createCustom(item.id)">
立即创建
</div>
<div class="ai-action__btn flex center" @click="createCustom(item.id)">立即创建</div>
</div>
<div v-else class="action flex-none flex center">
<img :src="item.icon" alt="" class="action-icon flex-none" />
@@ -773,6 +771,7 @@ function professionalPrev() {
}
.custom-create {
position: relative;
flex: auto;
width: 37.5%;
min-width: 300px;
@@ -784,7 +783,8 @@ function professionalPrev() {
&:first-child {
width: 25%;
margin-right: 16px;
background: #fafbff;
background-image: url(./img/ai-create-bg.png);
background-size: cover;
}
&:last-child {
@@ -822,8 +822,8 @@ function professionalPrev() {
width: 84px;
height: 28px;
background-image: url(./img/ai-create-btn-bg.png);
background-size: cover; /* 背景图片覆盖整个按钮 */
background-position: center; /* 背景图片居中 */
background-size: cover;
background-position: center;
color: white;
font-size: 12px;
font-weight: 400;

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB