Browse Source

快速筛选/档案详情修改

master
xuhuajiao 12 months ago
parent
commit
4c09b3ee5a
  1. 2
      src/views/archiveKeeping/inStorage/pendingInArchive/file/index.vue
  2. 6
      src/views/archiveKeeping/inStorage/pendingInArchive/module/uploadFile/index.vue
  3. 2
      src/views/archivesManage/managementLibrary/file/index.vue
  4. 6
      src/views/archivesManage/managementLibrary/module/uploadFile/index.vue
  5. 2
      src/views/collectReorganizi/collectionLibrary/file/index.vue
  6. 105
      src/views/collectReorganizi/collectionLibrary/index.vue
  7. 6
      src/views/collectReorganizi/collectionLibrary/module/uploadFile/index.vue
  8. 6
      src/views/components/archivesDetail/juannei.vue
  9. 6
      src/views/components/archivesDetail/uploadFile/index.vue
  10. 6
      src/views/prearchiveLibrary/module/detail.vue
  11. 4
      src/views/system/archivesCategory/listBrowsing/index.vue
  12. 4
      src/views/system/fileLibraryManage/listBrowsing/index.vue

2
src/views/archiveKeeping/inStorage/pendingInArchive/file/index.vue

@ -44,7 +44,7 @@
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

6
src/views/archiveKeeping/inStorage/pendingInArchive/module/uploadFile/index.vue

@ -28,13 +28,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

2
src/views/archivesManage/managementLibrary/file/index.vue

@ -44,7 +44,7 @@
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

6
src/views/archivesManage/managementLibrary/module/uploadFile/index.vue

@ -28,13 +28,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

2
src/views/collectReorganizi/collectionLibrary/file/index.vue

@ -44,7 +44,7 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- @click="showCoverPreview(scope.row)" --> <!-- @click="showCoverPreview(scope.row)" -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

105
src/views/collectReorganizi/collectionLibrary/index.vue

@ -29,8 +29,7 @@
</el-tree> </el-tree>
</div> </div>
<h3 class="arc-title arc-title-bottom">快速筛选</h3> <h3 class="arc-title arc-title-bottom">快速筛选</h3>
<!-- show-checkbox
@check-change="handleCheckChange" -->
<!-- @node-click="handleClassifyFilter" -->
<el-tree <el-tree
ref="classifyTree" ref="classifyTree"
v-loading="classifyLoading" v-loading="classifyLoading"
@ -40,7 +39,8 @@
node-key="id" node-key="id"
:expand-on-click-node="false" :expand-on-click-node="false"
highlight-current highlight-current
@node-click="handleClassifyFilter"
show-checkbox
@check-change="handleCheckChange"
> >
<span slot-scope="{ node, data }" class="custom-tree-node"> <span slot-scope="{ node, data }" class="custom-tree-node">
<span v-if="data.childDictionarys || data.fondsName" class="iconClassify"> <span v-if="data.childDictionarys || data.fondsName" class="iconClassify">
@ -170,6 +170,7 @@ export default {
const json = {} const json = {}
json.id = index json.id = index
json.dictionaryName = item json.dictionaryName = item
json.dictionaryParents = '-1'
json.childDictionarys = [] json.childDictionarys = []
return json return json
}) })
@ -398,17 +399,99 @@ export default {
} }
}, },
handleCheckChange(data, checked, indeterminate) { handleCheckChange(data, checked, indeterminate) {
// start
//
const res = this.$refs.classifyTree.getCheckedNodes() const res = this.$refs.classifyTree.getCheckedNodes()
const arrClassify = []
res.forEach((item) => {
arrClassify.push(item)
if (res.some(obj => obj.fondsName === '全宗')) {
this.smartQuery.fonds_no = null
} else {
const fondsGroup = res.filter(item => item.fondsId).map(item => item.fondsNo)
this.smartQuery.fonds_no = fondsGroup.join(',')
}
const groupedData = {}
res.forEach(function(item) {
if (item.dictionaryParents === '-1') {
groupedData.archive_year = groupedData.archive_year || []
groupedData.archive_year.push(item.dictionaryName)
} else if (item.dictionaryParents === '4028e3c389cee5920189cf0af3d30000') {
groupedData.security_class = groupedData.security_class || []
groupedData.security_class.push(item.dictionaryName)
} else if (item.dictionaryParents === '4028e3c38a20f4d4018a213c26ff001c') {
groupedData.retention = groupedData.retention || []
groupedData.retention.push(item.dictionaryName)
} else if (item.dictionaryParents === '4028e3c38b4159fe018b415a7c470000') {
groupedData.doc_type = groupedData.doc_type || []
groupedData.doc_type.push(item.dictionaryName)
} else if (item.dictionaryParents === '4028e3c38b415cea018b417f4a6c0011') {
groupedData.medium_type = groupedData.medium_type || []
groupedData.medium_type.push(item.dictionaryName)
}
}) })
// this.dataTree
// this.dataTree = arrDeptId
console.log(arrClassify)
console.log(data, checked, indeterminate)
if (data.id) {
const selectedParentVal = this.$refs.classifyTree.getNode(data.id).parent.data.dictionaryCode
switch (selectedParentVal) {
case 'security_class':
if (res.some(obj => obj.dictionaryCode === 'security_class')) {
this.smartQuery.security_class = null
} else {
if (groupedData.security_class) {
this.smartQuery.security_class = groupedData.security_class.join(',')
} else {
this.smartQuery.security_class = null
}
}
break
case 'retention':
if (res.some(obj => obj.dictionaryCode === 'retention')) {
this.smartQuery.retention = null
} else {
if (groupedData.retention) {
this.smartQuery.retention = groupedData.retention.join(',')
} else {
this.smartQuery.retention = null
}
}
break
case 'doc_type':
if (res.some(obj => obj.dictionaryCode === 'doc_type')) {
this.smartQuery.doc_type = null
} else {
if (groupedData.doc_type) {
this.smartQuery.doc_type = groupedData.doc_type.join(',')
} else {
this.smartQuery.doc_type = null
}
}
break
case 'medium_type':
if (res.some(obj => obj.dictionaryCode === 'medium_type')) {
this.smartQuery.medium_type = null
} else {
if (groupedData.medium_type) {
this.smartQuery.medium_type = groupedData.medium_type.join(',')
} else {
this.smartQuery.medium_type = null
}
}
break
default:
if (res.some(obj => obj.dictionaryCode === 'archive_year')) {
this.smartQuery.archive_year = null
} else {
if (groupedData.archive_year) {
this.smartQuery.archive_year = groupedData.archive_year.join(',')
} else {
this.smartQuery.archive_year = null
}
}
}
}
this.$nextTick(() => {
this.handlePageList('quickFilter')
})
}, },
handleOpenAnjuan(data, parentId, parentsRow) { handleOpenAnjuan(data, parentId, parentsRow) {
this.parentsProjectId = parentId this.parentsProjectId = parentId

6
src/views/collectReorganizi/collectionLibrary/module/uploadFile/index.vue

@ -28,13 +28,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

6
src/views/components/archivesDetail/juannei.vue

@ -61,13 +61,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="85" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="85" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<img width="60px" height="32px" class="screenshot" :src="baseApi+ '/downloadFile' +scope.row.file_path" :onerror="defaultImg" @click="showCoverPreview(scope.row)"> <img width="60px" height="32px" class="screenshot" :src="baseApi+ '/downloadFile' +scope.row.file_path" :onerror="defaultImg" @click="showCoverPreview(scope.row)">

6
src/views/components/archivesDetail/uploadFile/index.vue

@ -28,13 +28,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

6
src/views/prearchiveLibrary/module/detail.vue

@ -36,13 +36,13 @@
{{ getFileSize(scope.row.file_size) }} {{ getFileSize(scope.row.file_size) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_dpi" label="分辨率" min-width="85" align="center">
<!-- <el-table-column prop="file_dpi" label="分辨率" min-width="85" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div> <div v-if="!scope.row.file_dpi || scope.row.file_dpi === 'null'"> - </div>
<div v-else> {{ scope.row.file_dpi }} </div> <div v-else> {{ scope.row.file_dpi }} </div>
</template> </template>
</el-table-column>
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
</el-table-column> -->
<el-table-column prop="file_thumbnail" label="缩图" min-width="60" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'"> <div v-if="scope.row.file_type === 'jpg' || scope.row.file_type === 'jpeg' || scope.row.file_type === 'png' || scope.row.file_type === 'bmp'|| scope.row.file_type === 'gif'">
<i class="fileIcon icon-image" /> <i class="fileIcon icon-image" />

4
src/views/system/archivesCategory/listBrowsing/index.vue

@ -74,7 +74,7 @@
</template> </template>
<script> <script>
import { FetchCategoryFieldManage } from '@/api/system/category/category' import { FetchCategoryFieldManage } from '@/api/system/category/category'
import { FetchInitArchivesView } from '@/api/archivesManage/archivesList'
import { FetchInitCategoryView } from '@/api/collect/collect'
import { add } from '@/api/system/category/listBrowsing' import { add } from '@/api/system/category/listBrowsing'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
@ -151,7 +151,7 @@ export default {
}) })
}, },
getBottomTableData() { getBottomTableData() {
FetchInitArchivesView({ categoryId: this.selectedCategory.id, isdel: false, page: 0, size: 10 }).then((res) => {
FetchInitCategoryView({ categoryId: this.selectedCategory.pid, isdel: false, page: 0, size: 10, ignore: false, categoryLevel: this.selectedCategory.categoryLevel }).then((res) => {
this.table.bottom.data.splice(0, this.table.bottom.data.length) this.table.bottom.data.splice(0, this.table.bottom.data.length)
if (res && res.list) { if (res && res.list) {
res.list.content.forEach((item) => { res.list.content.forEach((item) => {

4
src/views/system/fileLibraryManage/listBrowsing/index.vue

@ -74,7 +74,7 @@
</template> </template>
<script> <script>
import { FetchDocumentFieldManage } from '@/api/system/fileLibrary/fileLibrary' import { FetchDocumentFieldManage } from '@/api/system/fileLibrary/fileLibrary'
import { FetchInitArchivesView } from '@/api/archivesManage/archivesList'
import { FetchInitPreDocument } from '@/api/prearchiveLibrary/prearchiveLibrary'
import { add } from '@/api/system/fileLibrary/listBrowsing' import { add } from '@/api/system/fileLibrary/listBrowsing'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
@ -151,7 +151,7 @@ export default {
}) })
}, },
getBottomTableData() { getBottomTableData() {
FetchInitArchivesView({ documentId: this.selectedCategory.id, isdel: false, page: 0, size: 10 }).then((res) => {
FetchInitPreDocument({ documentId: this.selectedCategory.pid, page: 0, size: 10 }).then((res) => {
this.table.bottom.data.splice(0, this.table.bottom.data.length) this.table.bottom.data.splice(0, this.table.bottom.data.length)
if (res && res.list) { if (res && res.list) {
res.list.content.forEach((item) => { res.list.content.forEach((item) => {

Loading…
Cancel
Save