From 0e145841e4a8447a931bd08dc8a7796b6bc1313d Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Mon, 10 Mar 2025 17:26:47 +0800
Subject: [PATCH] =?UTF-8?q?AI=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8/bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/collect/collect.js | 22 +-
.../AIAssistant/AIKeywords/archivesList.vue | 273 +++++++++---------
src/views/AIAssistant/AIKeywords/index.vue | 5 +-
.../AIKeywords/module/editOcrContent.vue | 240 +++++++++++++--
.../module/archivesInfo/index.vue | 9 +-
.../module/markInfo/index.vue | 79 +++++
src/views/system/user/index.vue | 55 ++--
7 files changed, 491 insertions(+), 192 deletions(-)
create mode 100644 src/views/collectReorganizi/collectionLibrary/module/markInfo/index.vue
diff --git a/src/api/collect/collect.js b/src/api/collect/collect.js
index be2932a..6d1c891 100644
--- a/src/api/collect/collect.js
+++ b/src/api/collect/collect.js
@@ -322,6 +322,24 @@ export function FetchAIResultZhulu(params) {
})
}
+// 手动解析电子原文
+export function FetchManualAnalysis(data) {
+ return request({
+ url: 'api/collect/manualAnalysis',
+ method: 'post',
+ data
+ })
+}
+
+// 获取已解析的文本
+export function FetchAnalysisedText(params) {
+ return request({
+ url: 'api/collect/getAnalysisedText',
+ method: 'get',
+ params
+ })
+}
+
export default {
collectAdd,
collectEdit,
@@ -354,5 +372,7 @@ export default {
FetchBusinessFlowTitle,
FetchBecomeDocument,
FetchInitExternalReceptionDetailsList,
- FetchAIResultZhulu
+ FetchAIResultZhulu,
+ FetchManualAnalysis,
+ FetchAnalysisedText
}
diff --git a/src/views/AIAssistant/AIKeywords/archivesList.vue b/src/views/AIAssistant/AIKeywords/archivesList.vue
index d5f0e5b..e802b9a 100644
--- a/src/views/AIAssistant/AIKeywords/archivesList.vue
+++ b/src/views/AIAssistant/AIKeywords/archivesList.vue
@@ -3,17 +3,17 @@
+
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 0cf2693..75ca6f2 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -364,18 +364,20 @@ export default {
[CRUD.HOOK.afterToCU](crud, form) {
this.getRoles()
this.getPosts()
+ },
+ // 新增前将多选的值设置为空
+ [CRUD.HOOK.beforeToAdd](crud, form) {
+ this.postDatas = []
+ this.roleDatas = []
+ crud.form.id = null
if (this.leftFondsId) {
this.changeFondsValue(this.leftFondsId)
form.fonds.id = this.leftFondsId
- form.dept.id = this.query.deptsId ? this.query.deptsId : null
+ this.leftDeptsId = null
+ form.dept.id = this.crud.query.deptsId ? this.crud.query.deptsId : null
}
},
- // 新增前将多选的值设置为空
- [CRUD.HOOK.beforeToAdd]() {
- this.postDatas = []
- this.roleDatas = []
- },
// 初始化编辑时候的角色与岗位
[CRUD.HOOK.beforeToEdit](crud, form) {
this.lastValue = ''
@@ -384,9 +386,8 @@ export default {
form.posts = []
this.leftDeptsId = crud.form.deptId
if (this.leftFondsId) {
- form.fonds.id = this.leftFondsId
- form.dept.id = this.leftDeptsId
this.changeFondsValue(this.leftFondsId)
+ form.fonds.id = this.leftFondsId
this.levelNumber = 4
}
if (form.roleIds.includes(',')) {
@@ -437,6 +438,8 @@ export default {
const data = { id: job.id }
userPosts.push(data)
})
+
+ crud.form.id = crud.form.userId
},
// 提交前做的操作
[CRUD.HOOK.afterValidateCU](crud) {
@@ -453,12 +456,12 @@ export default {
this.$message({ message: '角色不能为空', type: 'warning', offset: 8 })
return false
}
-
- if (crud.form.userId) {
- crud.form.id = crud.form.userId
- } else {
- crud.form.id = null
- }
+ // console.log('crud.form.userId', crud.form.userId)
+ // if (crud.form.userId) {
+ // crud.form.id = crud.form.userId
+ // } else {
+ // crud.form.id = null
+ // }
crud.form.roles = userRoles
crud.form.posts = userPosts
delete crud.form.deptsId
@@ -468,6 +471,8 @@ export default {
delete crud.form.roleIds
delete crud.form.deptsName
delete crud.form.job
+
+ console.log(' crud.form', crud.form)
return true
},
clickRowHandler(row) {
@@ -539,25 +544,29 @@ export default {
const selectedKey = this.$refs.tree.getCurrentNode()
// const selectedParentVal = this.$refs.tree.getNode(selectedKey).parent.data.id
console.log('selectedKey', selectedKey)
+ console.log('data.pid', data.pid)
if (data.pid === 0) {
- this.query.deptsId = null
- this.query.deptsName = null
+ this.crud.query.deptsId = null
+ this.crud.query.deptsName = null
this.leftFondsId = null
this.leftDeptsId = null
} else {
+ console.log('data.fondsNo', data.fondsNo)
if (data.fondsNo) {
const selectedParentVal = this.$refs.tree.getNode(selectedKey).data.id
- this.query.fondsId = data.id
- this.query.deptsId = null
- this.query.deptsName = null
+ this.crud.query.fondsId = data.id
+ this.crud.query.deptsId = null
+ this.crud.query.deptsName = null
this.leftFondsId = selectedParentVal
} else {
const selectedParentVal = this.$refs.tree.getNode(selectedKey).parent.data.id
- this.query.deptsId = data.id
- this.query.deptsName = data.deptsName
+ console.log('const selectedParentVal ', selectedParentVal)
+ this.crud.query.deptsId = data.id
+ this.crud.query.deptsName = data.deptsName
this.leftFondsId = selectedParentVal
}
}
+ this.crud.query.fondsId = this.leftFondsId
this.crud.toQuery()
},
getFondsDatas() {
@@ -621,6 +630,10 @@ export default {
}
return obj
})
+
+ if (this.leftDeptsId) {
+ this.form.dept.id = this.leftDeptsId
+ }
})
},
// 获取弹窗内部门数据