29 changed files with 343 additions and 63 deletions
-
BINsrc/assets/images/4011.png
-
12src/utils/upload.js
-
4src/views/AIAssistant/AICataloging/running/index.vue
-
4src/views/AIAssistant/AIIntelligentCoding/aiForm.vue
-
3src/views/archivesManage/managementLibrary/anjuan/index.vue
-
1src/views/archivesManage/managementLibrary/file/index.vue
-
4src/views/archivesManage/managementLibrary/index.vue
-
2src/views/archivesManage/managementLibrary/juannei/index.vue
-
9src/views/archivesManage/managementLibrary/module/archivesInfo/index.vue
-
6src/views/archivesManage/managementLibrary/module/fourTestInfo/index.vue
-
6src/views/archivesManage/managementLibrary/module/handleInfo/index.vue
-
119src/views/archivesManage/managementLibrary/module/markInfo/index.vue
-
75src/views/archivesStatistics/ureport/designer/index.vue
-
1src/views/collectReorganizi/batchConnection/index.vue
-
5src/views/collectReorganizi/batchConnection/module/form.vue
-
2src/views/collectReorganizi/collectionLibrary/anjuan/index.vue
-
1src/views/collectReorganizi/collectionLibrary/file/index.vue
-
4src/views/collectReorganizi/collectionLibrary/index.vue
-
2src/views/collectReorganizi/collectionLibrary/juannei/index.vue
-
4src/views/collectReorganizi/collectionLibrary/module/archivesFilling/index.vue
-
1src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
-
3src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue
-
4src/views/collectReorganizi/collectionLibrary/module/fourTestInfo/index.vue
-
4src/views/collectReorganizi/collectionLibrary/module/handleInfo/index.vue
-
2src/views/collectReorganizi/collectionLibrary/module/markInfo/index.vue
-
5src/views/collectReorganizi/collectionLibrary/module/quickPaper/index.vue
-
7src/views/collectReorganizi/collectionLibrary/module/uploadOriginal/index.vue
-
28src/views/components/category/PreviewForm.vue
-
52src/views/system/processManage/modelDesign/index.vue
After Width: 1024 | Height: 1024 | Size: 117 KiB |
@ -0,0 +1,119 @@ |
|||||
|
<template> |
||||
|
<!--档案详情-标注信息--> |
||||
|
<div class="fourTest-container"> |
||||
|
<el-table class="archives-table" :data="tableData" style="min-width: 100%" height="calc(100vh - 440px)"> |
||||
|
<el-table-column prop="file_name" label="标注对象" min-width="60"> |
||||
|
<template slot-scope="scope"> |
||||
|
<p v-if="scope.row.type">【档案】{{ scope.row.file_name }}</p> |
||||
|
<p v-else>【原文】{{ scope.row.file_name }}</p> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="keyworks" label="标注"> |
||||
|
<template slot-scope="scope"> |
||||
|
<!-- <p>{{ scope.row.keyworks ? scope.row.keyworks:'-' }}</p> --> |
||||
|
<div v-if="scope.row.keyworks && scope.row.keyworks.trim()!== ''"> |
||||
|
<el-tag |
||||
|
v-for="tag in scope.row.keyworks.split(',')" |
||||
|
:key="tag" |
||||
|
type="info" |
||||
|
> |
||||
|
{{ tag.trim() }} |
||||
|
</el-tag> |
||||
|
|
||||
|
</div> |
||||
|
<p v-else>-</p> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { FetchInitFileMarkCategoryView } from '@/api/collect/collect' |
||||
|
export default { |
||||
|
name: 'MarkInfo', |
||||
|
components: { }, |
||||
|
mixins: [], |
||||
|
props: { |
||||
|
selectedCategory: { |
||||
|
type: Object, |
||||
|
default: function() { |
||||
|
return {} |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
archivesDetailsData: [], |
||||
|
currentArcId: null, |
||||
|
tableData: [], |
||||
|
page: { |
||||
|
page: 0, |
||||
|
size: 10, |
||||
|
total: 0 |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
mounted() { |
||||
|
}, |
||||
|
methods: { |
||||
|
getFileMarkList(arcId) { |
||||
|
const params = { |
||||
|
'categoryId': this.selectedCategory.id, |
||||
|
'archivesId': this.currentArcId |
||||
|
} |
||||
|
console.log(params) |
||||
|
FetchInitFileMarkCategoryView(params).then(data => { |
||||
|
const arcTitleData = this.archivesDetailsData.filter(item => item.fieldName === 'maintitle') |
||||
|
if (data.returnlist.length !== 0) { |
||||
|
this.tableData = data.returnlist |
||||
|
} else { |
||||
|
this.tableData = [] |
||||
|
} |
||||
|
|
||||
|
try { |
||||
|
if (Array.isArray(arcTitleData) && arcTitleData.length > 0) { |
||||
|
const context = arcTitleData[0].context |
||||
|
const allKeywords = data.returnlist.reduce((acc, item) => { |
||||
|
return acc.concat(item.keyworks || []) |
||||
|
}, []).join(', ') // 拼接成字符串 |
||||
|
this.tableData.unshift({ |
||||
|
type: 1, |
||||
|
file_name: context, |
||||
|
keyworks: allKeywords |
||||
|
}) |
||||
|
console.log('this.tableData', this.tableData) |
||||
|
} else { |
||||
|
console.warn('arcTitleData') |
||||
|
} |
||||
|
} catch (error) { |
||||
|
console.error(error) |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
handleSizeChange(size) { |
||||
|
this.page.size = size |
||||
|
this.page.page = 0 |
||||
|
this.getArchivesOperateLog(this.currentArcId) |
||||
|
}, |
||||
|
handleCurrentPage(val) { |
||||
|
this.page.page = val - 1 |
||||
|
this.getArchivesOperateLog(this.currentArcId) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang='scss' scoped> |
||||
|
@import "~@/assets/styles/collect-reorganizi.scss"; |
||||
|
.fourTest-container{ |
||||
|
height: calc(100vh - 380px) !important; |
||||
|
overflow: hidden; |
||||
|
} |
||||
|
::v-deep .el-tag.el-tag--info{ |
||||
|
margin: 0 8px 0 0 !important; |
||||
|
} |
||||
|
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue