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 @@

{{ collectTitle }}

- @@ -40,6 +40,8 @@ height="calc(100vh - 600px)" :row-class-name="tableRowClassName" :row-key="rowKey" + @row-click="clickRowHandler" + @cell-dblclick="tableDoubleClick" > - + - + - + - + @@ -175,21 +177,24 @@
+ +
+ + 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 + } }) }, // 获取弹窗内部门数据