From 4f5203d4e0f3253095417ba79fadb12dda2eb472 Mon Sep 17 00:00:00 2001 From: "zhang.weiwei" <578974917@qq.com> Date: Fri, 7 Mar 2025 17:18:53 +0800 Subject: [PATCH] =?UTF-8?q?feat-=E5=AE=9E=E7=8E=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=86=E6=9E=90-=E5=8E=9F=E5=A7=8B=E6=95=B0=E6=8D=AEAI?= =?UTF-8?q?=E6=A0=87=E8=AE=B0=E7=AD=9B=E9=80=89=E5=92=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- .env.sit | 3 +- src/Layouts/BaseLayout.vue | 10 +- .../components/CustomTableHeaderCell.vue | 50 +++++++- .../DataAnalyse/components/DataTable.vue | 14 ++- .../components/diagram/newBtnList.vue | 43 +++++-- .../components/diagram/newModal.vue | 50 ++++++-- .../components/diagram/newSearch.vue | 111 ++++++++++++++---- .../use-generator-table-columns.js | 74 ++++++------ .../composables/useCustomHeaderTitle.js | 18 ++- src/views/DataAnalyse/particulars/list.vue | 54 ++++++++- src/views/ProjectManage/create/Index.vue | 56 +++++---- .../Design/components/AiInspectionResult.vue | 50 ++++---- 13 files changed, 390 insertions(+), 145 deletions(-) diff --git a/.env.dev b/.env.dev index 7efc0732..cc7a4b2e 100644 --- a/.env.dev +++ b/.env.dev @@ -3,7 +3,7 @@ VUE_APP_CURRENTMODE = 'dev' VUE_APP_BASEOSS = 'https://diaoyan-files.automark.cc' #VUE_APP_BASEURL = 'http://planetg-java.test.automark.cc/' -VUE_APP_BASEURL = 'http://yls-api-uat.dctest.digitalyili.com/' +VUE_APP_BASEURL = 'https://yls-api-uat.dctest.digitalyili.com' VUE_APP_DELiVERY_BASEURL='https://javaxq.test.automark.cc/' VUE_APP_MESSAGE_CENTER ='http://gtech-gateway.dcin-test.digitalyili.com/apigtech/message-send-center/'; diff --git a/.env.sit b/.env.sit index cf27b4eb..f651f46e 100644 --- a/.env.sit +++ b/.env.sit @@ -2,7 +2,8 @@ NODE_ENV = 'production' VUE_APP_CURRENTMODE = 'sit' VUE_APP_BASEOSS = 'https://test-cxp-pubcos.yili.com/uat-yls' -VUE_APP_BASEURL = 'https://yls-api-uat.dctest.digitalyili.com' + +VUE_APP_BASEURL = 'https://ylst-api-sit.dctest.digitalyili.com' VUE_APP_JAVA_DELiVERY_BASEURL='https://ylsdist-net-uat.dctest.digitalyili.com' diff --git a/src/Layouts/BaseLayout.vue b/src/Layouts/BaseLayout.vue index 24c930a7..24918c1a 100644 --- a/src/Layouts/BaseLayout.vue +++ b/src/Layouts/BaseLayout.vue @@ -311,12 +311,12 @@ const toAiInspection = () => { console.log('questions', questionInfo.questions); if (!questionInfo.questions || questionInfo.questions.length === 0) { // 未设计问卷,不允许质检 - message.error('请先设计问卷'); + message.error('您还没添加任何问题,请添加后再进行AI质检。'); return; } const questions = questionInfo.questions; emitter.emit('app-loading', { visible: true, description: '正在 AI 质检...请您稍候~' }); - aiQualityInspection(sn) + aiQualityInspection(route.query.sn, { sn}) .then((res) => { if (!res || !res.code === 0 || !res.data) { // 质检接口调用失败 @@ -338,11 +338,11 @@ const toAiInspection = () => { questions.forEach((question) => { questionMap[question.title] = question; }); - resultList.forEach((resultQuestion) => { - const question = questionMap[resultQuestion.title]; + resultList.forEach((result) => { + const question = questionMap[result.title]; if (question) { // 有匹配上的问题,将质检结果合并到问题中 - question.ai_inspection_result = resultQuestion; + question.ai_inspection_result = result.advice; } }); store.commit('common/M_COMMON_SET_QUESTION_INFO', questionInfo); diff --git a/src/views/DataAnalyse/components/CustomTableHeaderCell.vue b/src/views/DataAnalyse/components/CustomTableHeaderCell.vue index ea6e610d..7f7bb1dc 100644 --- a/src/views/DataAnalyse/components/CustomTableHeaderCell.vue +++ b/src/views/DataAnalyse/components/CustomTableHeaderCell.vue @@ -5,22 +5,46 @@ v-if="[12, 13, 14].includes(question_type)" v-html="content" > +