From d82e842bc27811f5e9f3d0d8e0ec6d68c84c7982 Mon Sep 17 00:00:00 2001 From: xiangcongshuai Date: Wed, 13 Nov 2024 08:45:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConversationDialog/index.vue | 6 +- src/config/net.config.js | 2 +- .../caseDetails/components/CaseRecord.vue | 20 +++--- src/views/caseDetails/index.vue | 5 +- .../components/EditCaseInfo.vue | 7 +- src/views/caseManagement/index.vue | 4 +- .../PromptConfig/add/index.vue | 21 +++--- .../atomicIndex/components/EditAtomic.vue | 4 +- src/views/ruleEngine/indexRule/index.vue | 68 ++++++++++--------- 9 files changed, 76 insertions(+), 61 deletions(-) diff --git a/src/components/ConversationDialog/index.vue b/src/components/ConversationDialog/index.vue index 776a1f1..bfa2b50 100644 --- a/src/components/ConversationDialog/index.vue +++ b/src/components/ConversationDialog/index.vue @@ -119,9 +119,9 @@ :key="subItem.key" class="index-item" > - - {{ subItem.shortName }} - + + {{ subItem.shortName }} + diff --git a/src/config/net.config.js b/src/config/net.config.js index f8258a8..b717749 100644 --- a/src/config/net.config.js +++ b/src/config/net.config.js @@ -5,7 +5,7 @@ const network = { // 默认的接口地址 如果是开发环境和生产环境走vab-mock-server,当然你也可以选择自己配置成需要的接口地址 baseURL: process.env.NODE_ENV === 'development' - ? 'http://192.168.10.25:8097/fu-hsi-server' + ? 'http://192.168.10.138:8097/fu-hsi-server' : '/fuHsiApi', // 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8 contentType: 'application/json;charset=UTF-8', diff --git a/src/views/caseDetails/components/CaseRecord.vue b/src/views/caseDetails/components/CaseRecord.vue index c394f64..8ccb4af 100644 --- a/src/views/caseDetails/components/CaseRecord.vue +++ b/src/views/caseDetails/components/CaseRecord.vue @@ -29,41 +29,41 @@ - + - + - + - + -
+ - + @@ -113,7 +113,7 @@ export default { { title: '角色', field: 'roleName' }, { title: '供述材料', field: 'confessionMaterial' }, { title: '询问人', field: 'lawAsker' }, - { title: '进度', field: 'percentage', slots: { default: 'percentage' }}, + { title: '进度', field: 'rowPercentage', sortable: true, slots: { default: 'percentage' }}, { title: '供述开始时间', field: 'confessionStartTime' }, { title: '供述结束时间', field: 'confessionEndTime' }, { title: '最新时间', field: 'updateTime' }, @@ -149,7 +149,7 @@ export default { }), // 获取数据 fetchData() { - queryRecordList({ name: this.searchName, caseId: this.caseId }, this.queryForm.page, this.queryForm.size).then(res => { + queryRecordList({ name: this.searchName, caseId: this.caseId }, this.queryForm.page, 999999).then(res => { this.gridOptions.data = res.data.result this.gridOptions.data.forEach(e => { if (e.percentage == null) { diff --git a/src/views/caseDetails/index.vue b/src/views/caseDetails/index.vue index ccb75fe..4b9c92e 100644 --- a/src/views/caseDetails/index.vue +++ b/src/views/caseDetails/index.vue @@ -20,7 +20,8 @@ 综合得分 {{ caseData['totalScore'] }} {{ caseData['identifyResultName'] }} - {{ `最新时间:${caseData['updateTime']}` }} + + {{ `最新时间:${caseData['caseAnalysisSuccessTime']}` }}
{ + clearInterval(this.timer) + this.timer = undefined this.showFlag = true }) }, diff --git a/src/views/caseManagement/components/EditCaseInfo.vue b/src/views/caseManagement/components/EditCaseInfo.vue index 26dc780..6fea595 100644 --- a/src/views/caseManagement/components/EditCaseInfo.vue +++ b/src/views/caseManagement/components/EditCaseInfo.vue @@ -140,9 +140,12 @@ export default { this.$refs['form'].validate(async valid => { if (valid) { const loading = this.$baseLoading(1, '保存中...') - const { code, msg } = await addCaseInfo(this.caseForm) - loading.close() + const { code, msg } = await addCaseInfo(this.caseForm).catch(() => { + loading.close() + }) + code === 200 ? (this.isEdit ? this.$baseMessage.success(msg || '编辑成功!') : this.$baseMessage.success(msg || '新增成功!')) : (this.isEdit ? this.$baseMessage.error(msg || '编辑失败!') : this.$baseMessage.error(msg || '新增失败!')) + loading.close() this.drawerOption.show = false this.$emit('reloadData') } diff --git a/src/views/caseManagement/index.vue b/src/views/caseManagement/index.vue index 3a1a5aa..b9e72a3 100644 --- a/src/views/caseManagement/index.vue +++ b/src/views/caseManagement/index.vue @@ -80,7 +80,7 @@ {{ formatterStatusName(item) }}
- {{ item.updateTime }} + {{ item.caseAnalysisSuccessTime }}
{{ item.totalScore }} @@ -269,6 +269,8 @@ export default { executeModelAnalyse(params).then(res => { this.$set(item, 'isAnalysing', false) this.fetchData() + }).catch(() => { + this.$set(item, 'isAnalysing', false) }) }, // 对话 diff --git a/src/views/promptManagement/PromptConfig/add/index.vue b/src/views/promptManagement/PromptConfig/add/index.vue index f1bdadd..d2ee9ff 100644 --- a/src/views/promptManagement/PromptConfig/add/index.vue +++ b/src/views/promptManagement/PromptConfig/add/index.vue @@ -45,13 +45,16 @@ 操作
-
- - - - - -
+ +
+ + + + + +
+
+
@@ -123,13 +126,15 @@ import SelectImg from './SelectImg.vue' import { getCaseEvidenceTree } from '@/api/caseDetails/evidence' import PromptInput from './PromptInput.vue' import { addOrUpdPrompt, getChunkClassify, queryPromptDetails } from '@/api/promptManagement' +import * as vuedraggable from 'vuedraggable' import mixin from '@/views/mixin' export default { name: 'AddPrompt', components: { PromptDebug, SelectImg, - PromptInput + PromptInput, + vuedraggable }, data() { return { diff --git a/src/views/ruleEngine/atomicIndex/components/EditAtomic.vue b/src/views/ruleEngine/atomicIndex/components/EditAtomic.vue index 2ee757a..24389d6 100644 --- a/src/views/ruleEngine/atomicIndex/components/EditAtomic.vue +++ b/src/views/ruleEngine/atomicIndex/components/EditAtomic.vue @@ -48,7 +48,7 @@ 人工指定 - +
请选择
{{ `已选:${selectInfo.promptName}` }}
- +
新增 - - - - - -
- -
+ + + + + + +
+ +
+