Browse Source

收集库

master
xuhuajiao 2 years ago
parent
commit
9b362a17c8
  1. 6
      src/api/collect/collect.js
  2. 45
      src/views/collectReorganizi/collectionLibrary/anjuan/tableData.json
  3. 285
      src/views/collectReorganizi/collectionLibrary/anjuan/tableFields.json
  4. 55
      src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
  5. 26
      src/views/collectReorganizi/collectionLibrary/file/index.vue
  6. 197
      src/views/collectReorganizi/collectionLibrary/file/tableJson.json
  7. 92
      src/views/collectReorganizi/collectionLibrary/index.vue
  8. 33
      src/views/collectReorganizi/collectionLibrary/juannei/index.vue
  9. 60
      src/views/collectReorganizi/collectionLibrary/juannei/tableData.json
  10. 285
      src/views/collectReorganizi/collectionLibrary/juannei/tableFields.json
  11. 93
      src/views/collectReorganizi/collectionLibrary/mixins/index.js
  12. 71
      src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
  13. 2
      src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue
  14. 2
      src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue
  15. 2
      src/views/collectReorganizi/collectionLibrary/module/print/index.vue
  16. 38
      src/views/collectReorganizi/collectionLibrary/project/index.vue
  17. 51
      src/views/collectReorganizi/collectionLibrary/project/tableData.json
  18. 523
      src/views/collectReorganizi/collectionLibrary/project/tableFields.json
  19. 117
      src/views/collectReorganizi/collectionLibrary/tree.json
  20. 2
      src/views/components/category/PreviewForm.vue
  21. 2
      src/views/components/category/SettingForm.vue
  22. 5
      src/views/prearchiveLibrary/module/moveFile.vue

6
src/api/collect/collect.js

@ -10,12 +10,12 @@ export function FetchInitCategoryViewTable(params) {
}
// 根据门类父id获取卷内列表
export function FetchInitSingleCategoryView(params) {
export function FetchInitCategoryView(params) {
return request({
url: 'api/collect/initSingleCategoryView',
url: 'api/collect/initCategoryView',
method: 'get',
params
})
}
export default { FetchInitCategoryViewTable, FetchInitSingleCategoryView }
export default { FetchInitCategoryViewTable, FetchInitCategoryView }

45
src/views/collectReorganizi/collectionLibrary/anjuan/tableData.json

@ -1,45 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": {
"list": {
"content": [
{
"case_no": "746DF968E7E629CAEFF889",
"begin_date": "2023-07-02",
"piece_qty": "3",
"children_num": 3,
"tid": "",
"maintitle": "测试案卷001",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "AA001-Y-WS.W-2023-001",
"id": "256E752BC0280618840600",
"is_storage": 2,
"keyword": "测试主题词001",
"is_borrow": 3
},
{
"case_no": "EFF2101F6A116FFC93B35A",
"begin_date": "",
"piece_qty": "2",
"children_num": 2,
"tid": "",
"maintitle": "测试案卷002",
"security_class": "机密",
"archive_year": 2023,
"archive_no": "AA001-Y-WS.W-2023-002",
"id": "F33725454340EA10A2C8B9",
"is_storage": 1,
"keyword": "",
"is_borrow": ""
}
],
"totalElements": 2
},
"yearGroup": [
2023
]
},
"timestamp": 1689579707329
}

285
src/views/collectReorganizi/collectionLibrary/anjuan/tableFields.json

@ -1,285 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": [
{
"id": "5385EE4261D5D5D69C86D1",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "archive_year",
"fieldCnName": "年度",
"isDefaultValue": "",
"isInputClass": "number",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 4,
"isColumnType": 2,
"isSequence": 4,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 1,
"displayOrderBy": null,
"isDisplayformat": true,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "2604E1A40EB3B355A3C370",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "archive_no",
"fieldCnName": "档号",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 200,
"isColumnType": 2,
"isSequence": 6,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": true,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 2,
"displayOrderBy": "asc",
"isDisplayformat": null,
"displayformatType": "left",
"editLength": 510,
"displayLength": 250,
"queue": 1,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "E8AAD60B450EF88BA7415D",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "maintitle",
"fieldCnName": "题名",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 1000,
"isColumnType": 2,
"isSequence": 7,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 3,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "left",
"editLength": 510,
"displayLength": 450,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "3DCF574299CB2061F07E06",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "keyword",
"fieldCnName": "主题词",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 1000,
"isColumnType": 2,
"isSequence": 8,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 4,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 510,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "DD1AC11CFC48B42B152DD1",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": {
"id": "8984F55841E2D541C23318",
"dicName": "密级",
"dicCode": "Search_MJ",
"dicExplain": null,
"dicSequence": 2,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656921207000,
"update_time": 1656991705000
},
"fieldName": "security_class",
"fieldCnName": "密级",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 10,
"isColumnType": 2,
"isSequence": 9,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 5,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 150,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "AB02D37F2F2F86A255DE91",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "begin_date",
"fieldCnName": "开始时间",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 2,
"isSequence": 13,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 6,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "A9F24C3CDC805513389502",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "piece_qty",
"fieldCnName": "文件件数",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 2,
"isSequence": 12,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 7,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "right",
"editLength": 196,
"displayLength": 150,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
}
],
"timestamp": 1689579706946
}

55
src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue

@ -3,7 +3,7 @@
<CollectHeader :is-title-type="isTitleType" :selected-category="selectedCategory" :arc-id="arcId" :selections="selections" :active-index="activeIndex" :test="test" :is-recycle="isRecycle" />
<el-table
ref="table"
v-loading="crud.loading || getTableDisplayFieldsLoading"
v-loading="getTableDisplayFieldsLoading"
class="archives-table"
:data="anjuanData"
highlight-current-row
@ -37,6 +37,7 @@
</el-table>
<!--分页组件-->
<el-pagination
v-if="anjuanData.length !== 0"
:current-page="page.page"
:total="page.total"
:page-size="page.size"
@ -52,16 +53,16 @@
<script>
import { header, form } from '@crud/crud'
import { collectionLibraryCrud } from '../mixins/index'
import ArchivesInfo from '../module/archivesInfo/index'
import CollectHeader from '../module/collectHeader.vue'
import tableFields from './tableFields.json'
import tableData from './tableData.json'
export default {
name: 'Sorted',
components: { ArchivesInfo, CollectHeader },
mixins: [
header(),
form({})
form({}),
collectionLibraryCrud
],
props: {
isTitleType: {
@ -89,18 +90,8 @@ export default {
},
data() {
return {
anjuanData: [],
tableDisplayFields: [], // table-list-title
getTableDisplayFieldsLoading: false, // table-loading
selections: [],
categoryId: 'F0F59CC713C83AE4BAB99B',
arcId: '256E752BC0280618840600',
page: {
page: 1,
size: 10,
total: 0
},
timer: null
arcId: '256E752BC0280618840600'
}
},
watch: {
@ -117,12 +108,17 @@ export default {
}
},
created() {
this.tableDisplayFields = tableFields.data
this.anjuanData = tableData.data.list.content
},
mounted() {
},
methods: {
getCommonData(type) {
this.getViewTable(type)
},
rowKey(row) {
return row.id
},
openJuannei(data) {
// this.$emit('openJuannei', '')
if (this.selectedCategory.arrangeType === 3) {
@ -131,12 +127,6 @@ export default {
this.$parent.$parent.$emit('openJuannei', data)
}
},
handleSelect(key, keyPath) {
console.log(key, keyPath)
},
rowKey(row) {
return row.id
},
// table
tableRowClassName({ row, rowIndex }) {
// console.log('', row, rowIndex)
@ -172,17 +162,6 @@ export default {
this.$refs.archivesInfo.isHasFile = true
this.$refs.archivesInfo.detailTitle = '文件详情'
}
// if (this.selectedCategory.arrangeType === 2) {
// if (this.activeIndex === 1) {
// this.$refs.archivesInfo.detailTitle = ''
// this.$refs.archivesInfo.isHasFile = true
// } else {
// this.$refs.archivesInfo.detailTitle = ''
// }
// } else {
// this.$refs.archivesInfo.detailTitle = ''
// }
this.$refs.archivesInfo.archivesInfoVisible = true
this.$refs.archivesInfo.archivesTabIndex = 0
// this.$refs.archivesInfo.getDetial(row.id)
@ -206,15 +185,11 @@ export default {
handleSizeChange(size) {
this.page.size = size
this.page.page = 1
this.getViewTable(2)
},
handleCurrentPage(val) {
this.page.page = val
},
/* 重新渲染table组件 防止table-fixed 错位 配合watch-table数据 */
doLayout() {
this.$nextTick(() => {
this.$refs.table.doLayout()
})
this.getViewTable(2)
}
}
}

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

@ -54,6 +54,7 @@
</el-table>
<!--分页组件-->
<el-pagination
v-if="fileData.length !== 0"
:current-page="page.page"
:total="page.total"
:page-size="page.size"
@ -66,15 +67,16 @@
</template>
<script>
import { collectionLibraryCrud } from '../mixins/index'
import { header, form } from '@crud/crud'
import CollectHeader from '../module/collectHeader.vue'
import tableData from './tableJson.json'
export default {
name: 'File',
components: { CollectHeader },
mixins: [
header(),
form({})
form({}),
collectionLibraryCrud
],
props: {
selectedCategory: {
@ -92,14 +94,6 @@ export default {
return {
isTitleType: 6,
fileDrawer: false,
fileData: [],
getTableDisplayFieldsLoading: false, // table-loading
selections: [],
page: {
page: 1,
size: 10,
total: 0
},
test: '',
isAjNo: 0
}
@ -109,7 +103,6 @@ export default {
}
},
created() {
this.fileData = tableData.data.returnlist
},
mounted() {
},
@ -117,9 +110,6 @@ export default {
closeDrawer() {
this.fileDrawer = false
},
handleSelect(key, keyPath) {
console.log(key, keyPath)
},
rowKey(row) {
return row.id
},
@ -156,21 +146,17 @@ export default {
handleSizeChange(size) {
this.page.size = size
this.page.page = 1
this.getViewTable(3)
},
handleCurrentPage(val) {
this.page.page = val
this.getViewTable(3)
}
}
}
</script>
<style lang='scss' scoped>
// ::v-deep .el-drawer__body{
// padding-top: 56px;
// }
// [data-theme=dark] ::v-deep .el-drawer__body{
// padding-top: 22px;
// }
.svg-style{
width: 60px;
height: 32px;

197
src/views/collectReorganizi/collectionLibrary/file/tableJson.json

@ -1,197 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": {
"queryShow": [
{
"id": "B364CE97D2AB807CE91EB2",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_name",
"fieldCnName": "原文名称",
"isDefaultValue": "",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 255,
"isColumnType": 3,
"isSequence": 1,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "3549E5DB7212DCFABFD5BD",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_size",
"fieldCnName": "原文大小",
"isDefaultValue": "",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 11,
"isColumnType": 3,
"isSequence": 2,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "CCC09BD40D3E53A97FEBEB",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_type",
"fieldCnName": "原文类型",
"isDefaultValue": "",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 50,
"isColumnType": 3,
"isSequence": 3,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "426777CBDB63BDC09157BA",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_path",
"fieldCnName": "原文路径",
"isDefaultValue": "",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 255,
"isColumnType": 3,
"isSequence": 4,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "ECCE0B935CA897CBC0DBF2",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "sequence",
"fieldCnName": "原文序号",
"isDefaultValue": "",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 11,
"isColumnType": 3,
"isSequence": 5,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "F1CAA516797C775110FC02",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "archive_id",
"fieldCnName": "档案id",
"isDefaultValue": "",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 50,
"isColumnType": 3,
"isSequence": 6,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "6F0941F24D2758470E8478",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_dpi",
"fieldCnName": "分辨率",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 100,
"isColumnType": 3,
"isSequence": 7,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "FC38D5417DADFB1F077FC1",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "file_thumbnail",
"fieldCnName": "缩略图",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 255,
"isColumnType": 3,
"isSequence": 8,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
},
{
"id": "0DDBD51BC51844050364D8",
"categoryId": "DA92B36D1AE9BC95FC6B26",
"fieldName": "create_time",
"fieldCnName": "创建时间",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 255,
"isColumnType": 3,
"isSequence": 9,
"isType": 3,
"isSystem": true,
"isInput": true,
"createBy": "admin",
"updatedBy": "admin",
"createTime": 1661222927000,
"updateTime": 1661222927000
}
],
"returnlist": [
{
"file_path": "/0/0ED1F5CF0EBAC01B914132/4619D58B908B0031C42C36/699CD61A5E0320DB77600E/DA92B36D1AE9BC95FC6B26/1e61676a-73cd-40a4-8014-4c38db4dca2e.pdf",
"create_time": "2022-9-6 15:33:12",
"file_name": "阿里前端开发规范.pdf",
"file_type": "pdf",
"id": "3A611D8AD8E516F1D4776A",
"archive_id": "547371155E0D8A4DF9BB13",
"file_size": 402460
},
{
"file_path": "/0/0ED1F5CF0EBAC01B914132/4619D58B908B0031C42C36/699CD61A5E0320DB77600E/DA92B36D1AE9BC95FC6B26/1e61676a-73cd-40a4-8014-4c38db4dca2e.pdf",
"create_time": "2022-9-6 15:33:12",
"file_name": "阿里前端开发规范.pdf",
"file_type": "pdf",
"id": "3A611D8AD8E516F1D4776B",
"archive_id": "547371155E0D8A4DF9BB13",
"file_size": 402460
}
]
},
"timestamp": 1690439465603
}

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

@ -7,31 +7,6 @@
<span class="left-bottom-line" />
<div class="arc-left-tree">
<h3 class="arc-title arc-title-top">档案门类</h3>
<!-- <el-tree
ref="tree"
v-loading="crud.loading"
class="arc-tree arc-tree-01"
:data="treeJson"
:props="defaultProps"
node-key="id"
:expand-on-click-node="false"
highlight-current
:default-expanded-keys="[1]"
:default-checked-keys="[1]"
@node-click="handleNodeClick"
>
<span slot-scope="{ node, data }" class="custom-tree-node">
<span v-if="data.isType===1 " class="iconFolder">
{{ data.cnName }}
</span>
<span v-if="data.isType===2 || data.isType === 3 || data.isType===5" class="iconArch">
{{ data.cnName }}
</span>
<span v-if="data.isType===4" class="iconFile">
{{ data.cnName }}
</span>
</span>
</el-tree> -->
<div class="tree-scroll">
<el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree arc-tree-01" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick">
<span slot-scope="{ node, data }" class="custom-tree-node">
@ -48,9 +23,8 @@
</el-tree>
</div>
<h3 class="arc-title arc-title-bottom">快速筛选</h3>
<!-- @node-click="handleNodeClick" -->
<el-tree
ref="tree"
ref="classifyTree"
v-loading="classifyLoading"
class="arc-tree arc-tree-02"
:data="classifyTree"
@ -88,13 +62,13 @@
<script>
import crudCategory from '@/api/category/category'
import { collectionLibraryCrud } from './mixins/index'
import { FetchArchivesClassTree } from '@/api/system/archivesClass'
import CRUD, { presenter, header } from '@crud/crud'
import Project from './project/index'
import Anjuan from './anjuan/index'
import Juannei from './juannei/index'
import File from './file/index'
import treeJson from './tree.json'
export default {
name: 'CollectionLibrary',
components: { Project, Anjuan, Juannei, File },
@ -113,7 +87,7 @@ export default {
})
]
},
mixins: [presenter(), header()],
mixins: [presenter(), header(), collectionLibraryCrud],
props: {
isRecycle: {
type: Boolean,
@ -141,7 +115,6 @@ export default {
}
},
created() {
this.treeJson = treeJson.data
},
mounted() {
},
@ -154,20 +127,6 @@ export default {
return node.isType !== 3 // isType3
})
},
// filterData(nodes) {
// nodes.forEach(node => {
// if (node.isType === 3) {
// const parent = nodes.find(item => item.id === node.parentId)
// if (parent) {
// parent.sonNum = parent.sonNum ? parent.sonNum + 1 : 1
// }
// }
// if (node.children && node.children.length > 0) {
// this.filterData(node.children)
// }
// })
// return nodes.filter(node => node.isType !== 3)
// },
//
findNode(tree, func) {
for (const node of tree) {
@ -230,20 +189,38 @@ export default {
})
},
handleNodeClick(val) {
this.selectedCategory = val
this.getInitArchivesClass(val.id)
//
localStorage.setItem('currentArchivesKey', JSON.stringify(val))
if (this.$refs.anjuanEle) {
this.$refs.anjuanEle.anjuanDrawer = false
this.$refs.anjuanEle.$refs.ajContent.activeIndex = 0
}
if (this.$refs.juanneiEle) {
this.$refs.juanneiEle.juanneiDrawer = false
}
if (this.$refs.fileEle) {
this.$refs.fileEle.fileDrawer = false
this.selectedCategory = val
if (this.selectedCategory.isType !== 1) {
this.getInitArchivesClass(val.id)
} else {
this.classifyTree = []
}
this.$nextTick(() => {
if (this.selectedCategory.arrangeType === 3) {
this.$refs.projectEle.getCommonData(1)
} else if (this.selectedCategory.arrangeType === 2) {
this.$refs.anjuanEle.$refs.ajContent.$refs.tableList.getCommonData(2)
} else if (this.selectedCategory.arrangeType === 1) {
this.$refs.anjuanEle.$refs.ajContent.$refs.tableList.getCommonData(3)
}
if (this.$refs.anjuanEle) {
this.$refs.anjuanEle.anjuanDrawer = false
if (this.$refs.anjuanEle.$refs.ajContent) {
this.$refs.anjuanEle.$refs.ajContent.activeIndex = 0
}
}
if (this.$refs.juanneiEle) {
this.$refs.juanneiEle.juanneiDrawer = false
}
if (this.$refs.fileEle) {
this.$refs.fileEle.fileDrawer = false
}
})
},
getInitArchivesClass(categoryId) {
this.classifyLoading = true
@ -291,9 +268,12 @@ export default {
<style lang="scss" scoped>
.elect-cont-left{
width: 296px;
width: 276px;
padding: 0 !important;
}
.hideSidebar .elect-cont-left {
width: 265px !important;
}
[data-theme=light] .elect-cont-left .container-left {
min-height: calc(100vh - 140px);
}

33
src/views/collectReorganizi/collectionLibrary/juannei/index.vue

@ -45,6 +45,7 @@
</el-table>
<!--分页组件-->
<el-pagination
v-if="junneiData.length !== 0"
:current-page="page.page"
:total="page.total"
:page-size="page.size"
@ -60,17 +61,17 @@
</template>
<script>
import { collectionLibraryCrud } from '../mixins/index'
import { header, form } from '@crud/crud'
import CollectHeader from '../module/collectHeader.vue'
import ArchivesInfo from '../module/archivesInfo/index'
import tableFields from './tableFields.json'
import tableData from './tableData.json'
export default {
name: 'Juannei',
components: { CollectHeader, ArchivesInfo },
mixins: [
header(),
form({})
form({}),
collectionLibraryCrud
],
props: {
selectedCategory: {
@ -88,18 +89,8 @@ export default {
return {
isTitleType: 4,
juanneiDrawer: false,
junneiData: [],
tableDisplayFields: [], // table-list-title
getTableDisplayFieldsLoading: false, // table-loading
selections: [],
categoryId: 'CD135F6A77018CE04D4FDB',
arcId: '256E752BC0280618840600',
page: {
page: 1,
size: 10,
total: 0
},
timer: null,
test: ''
}
},
@ -111,13 +102,14 @@ export default {
}
},
created() {
this.tableDisplayFields = tableFields.data
this.junneiData = tableData.data.list.content
},
mounted() {
console.log('nei2', this.selectedCategory.arrangeType)
},
methods: {
getCommonData(type) {
this.getViewTable(type)
},
openFile(data) {
// this.$emit('openFile', '')
this.$emit('openFile', data)
@ -125,9 +117,6 @@ export default {
closeDrawer() {
this.juanneiDrawer = false
},
handleSelect(key, keyPath) {
console.log(key, keyPath)
},
rowKey(row) {
return row.id
},
@ -178,15 +167,11 @@ export default {
handleSizeChange(size) {
this.page.size = size
this.page.page = 1
this.getViewTable(3)
},
handleCurrentPage(val) {
this.page.page = val
},
/* 重新渲染table组件 防止table-fixed 错位 配合watch-table数据 */
doLayout() {
// this.$nextTick(() => {
// this.$refs.table.doLayout()
// })
this.getViewTable(3)
}
}
}

60
src/views/collectReorganizi/collectionLibrary/juannei/tableData.json

@ -1,60 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": {
"list": {
"content": [
{
"case_no": "746DF968E7E629CAEFF889",
"responsibleby": "发文机关003",
"children_num": 0,
"tid": "",
"medium_qty": "1",
"maintitle": "发文标题003",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "AA001-Y-WS.W-2023-001-001",
"created_date": "2023-07-02",
"id": "17D5B3A9B0A0092CA96DAE",
"is_storage": 2,
"is_borrow": 3
},
{
"case_no": "746DF968E7E629CAEFF889",
"responsibleby": "",
"children_num": 0,
"tid": "",
"medium_qty": "0",
"maintitle": "卷册01002",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "AA001-Y-WS.W-2023-001-002",
"created_date": "",
"id": "8B7D6D926100324DFCCDA5",
"is_storage": 2,
"is_borrow": 3
},
{
"case_no": "746DF968E7E629CAEFF889",
"responsibleby": "",
"children_num": 0,
"tid": "",
"medium_qty": "0",
"maintitle": "",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "AA001-Y-WS.W-2023-001-003",
"created_date": "",
"id": "90EC69CA21CD3417E1ACE6",
"is_storage": 2,
"is_borrow": ""
}
],
"totalElements": 3
},
"yearGroup": [
2023
]
},
"timestamp": 1689662267142
}

285
src/views/collectReorganizi/collectionLibrary/juannei/tableFields.json

@ -1,285 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": [
{
"id": "5385EE4261D5D5D69C86D1",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "archive_year",
"fieldCnName": "年度",
"isDefaultValue": "",
"isInputClass": "number",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 4,
"isColumnType": 2,
"isSequence": 4,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 1,
"displayOrderBy": null,
"isDisplayformat": true,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "2604E1A40EB3B355A3C370",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "archive_no",
"fieldCnName": "档号",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 200,
"isColumnType": 2,
"isSequence": 6,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": true,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 2,
"displayOrderBy": "asc",
"isDisplayformat": null,
"displayformatType": "left",
"editLength": 510,
"displayLength": 250,
"queue": 1,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "E8AAD60B450EF88BA7415D",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "maintitle",
"fieldCnName": "题名",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 1000,
"isColumnType": 2,
"isSequence": 7,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 3,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "left",
"editLength": 510,
"displayLength": 450,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "3DCF574299CB2061F07E06",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "keyword",
"fieldCnName": "主题词",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 1000,
"isColumnType": 2,
"isSequence": 8,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 4,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 510,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "DD1AC11CFC48B42B152DD1",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": {
"id": "8984F55841E2D541C23318",
"dicName": "密级",
"dicCode": "Search_MJ",
"dicExplain": null,
"dicSequence": 2,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656921207000,
"update_time": 1656991705000
},
"fieldName": "security_class",
"fieldCnName": "密级",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 10,
"isColumnType": 2,
"isSequence": 9,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 5,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 150,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "AB02D37F2F2F86A255DE91",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "begin_date",
"fieldCnName": "开始时间",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 2,
"isSequence": 13,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 6,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
},
{
"id": "A9F24C3CDC805513389502",
"categoryId": "F0F59CC713C83AE4BAB99B",
"dictionaryConfigId": null,
"fieldName": "piece_qty",
"fieldCnName": "文件件数",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 2,
"isSequence": 12,
"isType": 2,
"isSystem": true,
"isLine": null,
"isInput": true,
"isRequired": null,
"isAutomatic": null,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": null,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 7,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "right",
"editLength": 196,
"displayLength": 150,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1688020466000
}
],
"timestamp": 1689662262334
}

93
src/views/collectReorganizi/collectionLibrary/mixins/index.js

@ -0,0 +1,93 @@
// import qs from 'qs'
// import { exportFile } from '@/utils/index'
import { FetchInitCategoryViewTable, FetchInitCategoryView } from '@/api/collect/collect'
export const collectionLibraryCrud = {
// 组件共用属性
data() {
return {
getTableDisplayFieldsLoading: false, // table-loading
tableDisplayFields: [],
projectData: [],
anjuanData: [],
junneiData: [],
fileData: [],
selections: [],
arrySort: [],
page: {
page: 1,
size: 10,
total: 0
},
timer: null,
query: {
search: null
}
}
},
// 组件挂载时的共用方法
mounted() {
},
// 组件共用方法
methods: {
handleSearch() {
this.getViewTableList()
},
getViewTable(categoryLevel) {
this.getTableDisplayFieldsLoading = true
this.tableDisplayFields = []
FetchInitCategoryViewTable({ categoryId: this.selectedCategory.id, categoryLevel: categoryLevel }).then((res) => {
if (res) {
this.arrySort = []
this.tableDisplayFields = res
const orderSortArry = this.tableDisplayFields.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder)
orderSortArry.forEach(item => {
if (item.displayOrderBy) {
this.arrySort.push(item.fieldName + ',' + item.displayOrderBy)
}
})
this.$nextTick(() => {
console.log('tableDisplayFields', this.tableDisplayFields)
this.getViewTableList(categoryLevel)
})
}
})
},
getViewTableList(categoryLevel) {
this.anjuanData = []
const params = {
'categoryId': this.selectedCategory.id,
'categoryLevel': categoryLevel,
'search': this.query.search,
'page': this.page.page - 1,
'size': this.page.size
}
FetchInitCategoryView(params).then((res) => {
console.log(res)
if (res.code !== 500) {
if (categoryLevel === 1) {
console.log('111')
this.projectData = res.list.content
} else if (categoryLevel === 2) {
console.log('2222222')
this.anjuanData = res.list.content
} else if (categoryLevel === 3) {
console.log('333')
if (this.isTitleType === 6) {
this.fileData = res.list.content
} else {
this.junneiData = res.list.content
}
}
this.page.total = res.list.totalElements
}
this.getTableDisplayFieldsLoading = false
})
},
/* 重新渲染table组件 防止table-fixed 错位 配合watch-table数据 */
doLayout() {
this.$nextTick(() => {
this.$refs.table.doLayout()
})
}
}
}

71
src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue

@ -3,8 +3,8 @@
<h4 :class="classType">{{ collectTitle }} <span v-if="isTitleType !== 2 && !(isTitleType === 3 && (selectedCategory.arrangeType === 1 || selectedCategory.arrangeType === 2) )"> > {{ test }}</span></h4>
<div v-if="isTitleType !== 6" :class="[!(isRecycle && (isTitleType === 2 || (isTitleType === 3 && selectedCategory.arrangeType !== 3))) ? 'head-search is-recycle':'head-search']">
<!-- 搜索 -->
<el-input v-model="query.blurry" clearable size="small" :placeholder="placeholderType" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" />
<el-button class="filter-item filter-search" size="mini" type="success" icon="el-icon-search">搜索</el-button>
<el-input v-model="query.search" clearable size="small" :placeholder="placeholderType" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" />
<el-button class="filter-item filter-search" size="mini" type="success" icon="el-icon-search" @click="handleSearch">搜索</el-button>
<el-button class="filter-item filter-refresh" size="mini" type="warning" icon="el-icon-refresh-left">重置</el-button>
</div>
<div v-if="!isRecycle" class="collect-menu">
@ -86,12 +86,13 @@
</div>
<!--新增 / 编辑 表单组件-->
<el-dialog class="preview-dialog" :modal-append-to-body="false" :close-on-click-modal="false" :before-close="handleClose" :visible="formVisible" :title="formTitle">
<el-dialog class="preview-dialog" :modal-append-to-body="false" :close-on-click-modal="false" append-to-body :before-close="handleClose" :visible="formVisible" :title="formTitle">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<!-- form -->
<PreviewForm v-if="formPreviewData.length" ref="previewForm" :is-has-code="true" :is-disabled="false" :form-preview-data.sync="formPreviewData" :selected-category="selectedCategory" :parents-id="parentsId" :arc-id="arcId" :is-des-form-type="isDesFormType" @emitTableList="getTableList" />
<!-- @emitTableList="getTableList" -->
<PreviewForm v-if="formPreviewData.length" ref="previewForm" :is-has-code="true" :is-disabled="false" :form-preview-data.sync="formPreviewData" :selected-category="selectedCategory" :parents-id="parentsId" :arc-id="arcId" :is-des-form-type="isDesFormType" />
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="handlerArchivesSubmit">保存</el-button>
</div>
@ -269,6 +270,8 @@
</template>
<script>
import { collectionLibraryCrud } from '../mixins/index'
import { FetchInitCategoryInputFieldByPid } from '@/api/system/category/category'
import PreviewForm from '@/views/components/category/PreviewForm'
import UploadOriginal from './uploadOriginal/index'
import BlukImport from './bulkImport/index'
@ -286,7 +289,7 @@ import { mapGetters } from 'vuex'
export default {
name: 'CollectHeader',
components: { PreviewForm, UploadOriginal, BlukImport, BlukEditing, FileNumberAdjustment, FileSeqAdjustment, CombineFile, InsertFile, CollectMoveFile, Print, FourTest, QuickPaper },
mixins: [],
mixins: [collectionLibraryCrud],
props: {
selectedCategory: {
type: Object,
@ -304,12 +307,12 @@ export default {
return ''
}
},
selections: {
type: Array,
default: function() {
return []
}
},
// selections: {
// type: Array,
// default: function() {
// return []
// }
// },
activeIndex: {
type: Number,
default: 0
@ -327,9 +330,6 @@ export default {
},
data() {
return {
query: {
blurry: ''
},
activeMenuIndex: '1',
formVisible: false,
formTitle: '项目',
@ -343,7 +343,9 @@ export default {
returnVisible: false,
downloadVisible: false,
recoverVisible: false,
completelyDeleteVisible: false
completelyDeleteVisible: false,
parentsId: null, // id
isDesFormType: null //
}
},
computed: {
@ -421,17 +423,42 @@ export default {
// this.form.dictionaryConfigId = {}
// this.formPreviewData = []
//
// const params = {
// categoryId: this.categoryId,
// archivesId: this.arcId
// }
// this.getFormInfo(params, type, isAnOrJuan)
this.getFormInfo(type)
},
getFormInfo(type) {
FetchInitCategoryInputFieldByPid({ categoryId: this.selectedCategory.id }).then(data => {
this.formPreviewData = data
this.$nextTick(() => {
if (type === 'edit') {
this.$refs.previewForm.addOrUpdateForm = data.echo
} else {
// if (this.recycleMain.selectedCategory.isType !== 5) {
//
// this.formPreviewData.forEach(item => {
// if (isAnOrJuan === 1) {
// if (this.recycleMain.selectedCategory.isType !== 3) {
// if (this.recycleMain.projectSelection[item.fieldName]) {
// this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.projectSelection))
// }
// }
// } else if (isAnOrJuan === 2) {
// if (this.recycleMain.anjuanSelection[item.fieldName]) {
// this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.anjuanSelection))
// }
// }
// })
// }
}
this.isDesFormType = 'arcives'
this.$refs.previewForm.FetchNoFormatField(this.selectedCategory.id)
})
})
},
// form - submit
handlerArchivesSubmit() {
this.formVisible = false
// this.$refs.previewForm.submitForm('addOrUpdateForm', this.categoryId)
// this.selections = []
this.$refs.previewForm.submitForm('addOrUpdateForm', this.selectedCategory.id)
this.selections = []
},
// -
handleClose(done) {

2
src/views/collectReorganizi/collectionLibrary/module/collectMoveFile/index.vue

@ -76,7 +76,7 @@ export default {
mixins: [presenter(), crud()],
cruds() {
return CRUD({
url: 'api/archives-type/menu',
url: 'api/category/menu',
crudMethod: { },
optShow: {
add: false,

2
src/views/collectReorganizi/collectionLibrary/module/insertFile/index.vue

@ -41,7 +41,7 @@ export default {
mixins: [presenter(), crud()],
cruds() {
return CRUD({
url: 'api/archives-type/menu',
url: 'api/category/menu',
crudMethod: { },
optShow: {
add: false,

2
src/views/collectReorganizi/collectionLibrary/module/print/index.vue

@ -62,7 +62,7 @@ export default {
mixins: [presenter()],
cruds() {
return CRUD({
url: 'api/borrow/initReturnConfirmList',
url: 'api/category/menu',
title: '',
optShow: {
}

38
src/views/collectReorganizi/collectionLibrary/project/index.vue

@ -38,6 +38,7 @@
</el-table>
<!--分页组件-->
<el-pagination
v-if="projectData.length !== 0"
:current-page="page.page"
:total="page.total"
:page-size="page.size"
@ -52,17 +53,17 @@
</template>
<script>
import { collectionLibraryCrud } from '../mixins/index'
import { header, form } from '@crud/crud'
import CollectHeader from '../module/collectHeader.vue'
import ArchivesInfo from '../module/archivesInfo/index'
import tableFields from './tableFields.json'
import tableData from './tableData.json'
export default {
name: 'Project',
components: { CollectHeader, ArchivesInfo },
mixins: [
header(),
form({})
form({}),
collectionLibraryCrud
],
props: {
data: {
@ -83,22 +84,9 @@ export default {
data() {
return {
isTitleType: 2,
projectData: [],
tableDisplayFields: [], // table-list-title
getTableDisplayFieldsLoading: false, // table-loading
selections: [],
categoryId: 'B073E8430B85B4821E7360',
arcId: '2946C34412182B73FBC287',
query: {
blurry: ''
},
activeIndex: '1',
page: {
page: 1,
size: 10,
total: 0
},
timer: null
activeIndex: '1'
}
},
watch: {
@ -109,19 +97,17 @@ export default {
}
},
created() {
this.tableDisplayFields = tableFields.data
this.projectData = tableData.data.list.content
},
mounted() {
},
methods: {
getCommonData(type) {
this.getViewTable(type)
},
openAnjuan(data) {
// this.$emit('openAnjuan', '')
this.$emit('openAnjuan', data)
},
handleSelect(key, keyPath) {
console.log(key, keyPath)
},
rowKey(row) {
return row.id
},
@ -171,15 +157,11 @@ export default {
handleSizeChange(size) {
this.page.size = size
this.page.page = 1
this.getViewTable(1)
},
handleCurrentPage(val) {
this.page.page = val
},
/* 重新渲染table组件 防止table-fixed 错位 配合watch-table数据 */
doLayout() {
this.$nextTick(() => {
this.$refs.table.doLayout()
})
this.getViewTable(1)
}
}
}

51
src/views/collectReorganizi/collectionLibrary/project/tableData.json

@ -1,51 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": {
"list": {
"content": [
{
"case_no": "",
"responsibleby": "许飞",
"piece_qty": 3,
"children_num": 1,
"item_end_date": "2022-08-25 ",
"tid": "",
"item_no": "JJ-2021-GZ-001",
"organization_matter": "机关建设",
"item_start_date": "2021-12-01 ",
"maintitle": "档案室改造",
"security_class": "公开",
"archive_year": 2021,
"fonds_no": "档案室",
"id": "2946C34412182B73FBC287",
"department": "综合部",
"retention": "永久"
},
{
"case_no": "",
"responsibleby": "许飞",
"piece_qty": 3,
"children_num": 1,
"item_end_date": "2022-08-25 ",
"tid": "",
"item_no": "JJ-2021-GZ-001",
"organization_matter": "机关建设",
"item_start_date": "2021-12-01 ",
"maintitle": "档案室改造",
"security_class": "公开",
"archive_year": 2021,
"fonds_no": "档案室",
"id": "2946C34412182B73FBC283",
"department": "综合部",
"retention": "永久"
}
],
"totalElements": 1
},
"yearGroup": [
2021
]
},
"timestamp": 1689148250262
}

523
src/views/collectReorganizi/collectionLibrary/project/tableFields.json

@ -1,523 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": [
{
"id": "25132519F2921B00A10F5B",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "item_no",
"fieldCnName": "项目号",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 50,
"isColumnType": 2,
"isSequence": 1,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": true,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 1,
"displayOrderBy": "asc",
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 170,
"queue": 1,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307993000
},
{
"id": "580C7528AC12417FF22957",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": {
"id": "C45F3FF91CC7C1F79BFB5C",
"dicName": "全宗号",
"dicCode": "QZH",
"dicExplain": null,
"dicSequence": 16,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656991927000,
"update_time": 1656991927000
},
"fieldName": "fonds_no",
"fieldCnName": "全宗号",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 100,
"isColumnType": 2,
"isSequence": 2,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": true,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 2,
"displayOrderBy": "asc",
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": 2,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307993000
},
{
"id": "203A376644F1858B4DF785",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "archive_year",
"fieldCnName": "归档年度",
"isDefaultValue": "",
"isInputClass": "number",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 4,
"isColumnType": 2,
"isSequence": 5,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 3,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307784000
},
{
"id": "882EC1B54292686C922360",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": {
"id": "EAC68B9FE234EDE61B2200",
"dicName": "保管期限",
"dicCode": "Search_BGQX",
"dicExplain": null,
"dicSequence": 11,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1654571475000,
"update_time": 1656991717000
},
"fieldName": "retention",
"fieldCnName": "保管期限",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 10,
"isColumnType": 2,
"isSequence": 4,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 4,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307777000
},
{
"id": "0501E903B3CB745D13AFB6",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "maintitle",
"fieldCnName": "项目名",
"isDefaultValue": "",
"isInputClass": "textarea",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 500,
"isColumnType": 2,
"isSequence": 3,
"isType": 2,
"isSystem": true,
"isLine": true,
"isInput": true,
"isRequired": true,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 5,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "left",
"editLength": 510,
"displayLength": 400,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307766000
},
{
"id": "9623756470527E43268B37",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": {
"id": "8984F55841E2D541C23318",
"dicName": "密级",
"dicCode": "Search_MJ",
"dicExplain": null,
"dicSequence": 10,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656921207000,
"update_time": 1656991705000
},
"fieldName": "security_class",
"fieldCnName": "密级",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 10,
"isColumnType": 2,
"isSequence": 6,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 6,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307793000
},
{
"id": "94E097186B8E99555BA396",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "responsibleby",
"fieldCnName": "责任者",
"isDefaultValue": "",
"isInputClass": "text",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 100,
"isColumnType": 2,
"isSequence": 7,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 7,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307799000
},
{
"id": "37647A997D5D97E2C405D9",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": {
"id": "426AA3EF366C7A26A942C8",
"dicName": "机构(问题)",
"dicCode": "Search_JGWT",
"dicExplain": null,
"dicSequence": 12,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656923873000,
"update_time": 1656991722000
},
"fieldName": "organization_matter",
"fieldCnName": "机构(问题)",
"isDefaultValue": null,
"isInputClass": "popover",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 100,
"isColumnType": 2,
"isSequence": 8,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 8,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 120,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307805000
},
{
"id": "6D7225900689DB532B52EA",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": {
"id": "BA3910917510B181160A9A",
"dicName": "部门",
"dicCode": "Search_BM",
"dicExplain": null,
"dicSequence": 15,
"dicType": true,
"dicPid": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1656991900000,
"update_time": 1656991900000
},
"fieldName": "department",
"fieldCnName": "部门名称",
"isDefaultValue": "",
"isInputClass": "select",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 100,
"isColumnType": 2,
"isSequence": 9,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 9,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 120,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307812000
},
{
"id": "991A9A14140F42A6B06341",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "piece_qty",
"fieldCnName": "案卷数",
"isDefaultValue": "",
"isInputClass": "number",
"isDataType": 2,
"isDataTypeDetails": "int",
"isColumnLength": 11,
"isColumnType": 2,
"isSequence": 10,
"isType": 2,
"isSystem": true,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 10,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 100,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661303816000,
"update_time": 1663307822000
},
{
"id": "40C5B388FAD4215D3295BB",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "item_start_date",
"fieldCnName": "立项时间",
"isDefaultValue": null,
"isInputClass": "date",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 1,
"isSequence": 11,
"isType": 2,
"isSystem": false,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 11,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 120,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661304557000,
"update_time": 1661327515000
},
{
"id": "FBE7A26D9C70FDFB363C09",
"categoryId": "B073E8430B85B4821E7360",
"dictionaryConfigId": null,
"fieldName": "item_end_date",
"fieldCnName": "结项时间",
"isDefaultValue": null,
"isInputClass": "date",
"isDataType": 1,
"isDataTypeDetails": "varchar",
"isColumnLength": 20,
"isColumnType": 1,
"isSequence": 12,
"isType": 2,
"isSystem": false,
"isLine": false,
"isInput": true,
"isRequired": false,
"isAutomatic": false,
"isAdd": null,
"isSearch": null,
"isInherit": null,
"isFilling": false,
"fillingDigit": null,
"isRepeat": null,
"isDisplay": true,
"displayOrder": 12,
"displayOrderBy": null,
"isDisplayformat": null,
"displayformatType": "center",
"editLength": 196,
"displayLength": 120,
"queue": null,
"create_by": "admin",
"update_by": "admin",
"create_time": 1661304593000,
"update_time": 1661327522000
}
],
"timestamp": 1689148249781
}

117
src/views/collectReorganizi/collectionLibrary/tree.json

@ -1,117 +0,0 @@
{
"code": 200,
"message": "操作成功",
"data": [
{
"id": "0ED1F5CF0EBAC01B914132",
"cnName": "档案",
"enName": "archives",
"pid": "0",
"isType": 1,
"categorySeq": 0,
"children": [
{
"id": "D70C5574B8DCE7A65F7037",
"cnName": "文书档案",
"enName": null,
"pid": "0ED1F5CF0EBAC01B914132",
"isType": 1,
"categorySeq": null,
"children": [
{
"id": "F0F59CC713C83AE4BAB99B",
"cnName": "文书档案(案卷)",
"enName": "tb_2023_06_21_1687319104861",
"pid": "D70C5574B8DCE7A65F7037",
"isType": 3,
"categorySeq": 1,
"children": [
{
"id": "CD135F6A77018CE04D4FDB",
"cnName": "文书档案(卷内)",
"enName": "tb_2023_06_21_1687319123605",
"pid": "F0F59CC713C83AE4BAB99B",
"isType": 4,
"categorySeq": null,
"children": [],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319124000,
"update_time": 1687319124000
}
],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1687319114000
},
{
"id": "005E76FEC5A2AAB368CA1F",
"cnName": "文书档案(资料)",
"enName": "tb_2023_06_21_1687330804487",
"pid": "D70C5574B8DCE7A65F7037",
"isType": 5,
"categorySeq": 2,
"children": [],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687330805000,
"update_time": 1687330811000
}
],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687243138000,
"update_time": 1687243138000
},
{
"id": "D70C5574B8DCE7A65F7038",
"cnName": "基建档案",
"enName": null,
"pid": "0ED1F5CF0EBAC01B914132",
"isType": 1,
"categorySeq": null,
"children": [
{
"id": "F0F59CC713C83AE4BAB99B",
"cnName": "基建档案(项目)",
"enName": "tb_2023_06_21_1687319104861",
"pid": "D70C5574B8DCE7A65F7037",
"isType": 2,
"categorySeq": 1,
"children": [
],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687319105000,
"update_time": 1687319114000
}
],
"remark": null,
"typeMetic": true,
"create_by": "admin",
"update_by": "admin",
"create_time": 1687243138000,
"update_time": 1687243138000
}
],
"remark": "",
"typeMetic": true,
"create_by": null,
"update_by": "admin",
"create_time": null,
"update_time": 1655112365000
}
],
"timestamp": 1688967875784
}

2
src/views/components/category/PreviewForm.vue

@ -413,7 +413,7 @@ export default {
this.isTableType = 2
this.tableTitle = '分类列表'
let categoryId
if (this.isDesFormType !== 'mergeFile') {
if (this.isDesFormType !== 'mergeFile' && this.isDesFormType !== 'arcives') {
categoryId = this.selectedCategory.pid
} else {
categoryId = this.selectedCategory.id

2
src/views/components/category/SettingForm.vue

@ -338,6 +338,8 @@ export default {
id: null,
dictionaryName: null
}
this.form.isFilling = false
this.form.fillingDigit = null
}
//
if (this.form.isDataType === 2 && this.form.isInputClass !== 'number') {

5
src/views/prearchiveLibrary/module/moveFile.vue

@ -79,7 +79,7 @@
import { preLibraryCrud } from '../mixins/index'
import CRUD, { presenter, header, crud } from '@crud/crud'
import { FetchMove } from '@/api/prearchiveLibrary/prearchiveLibrary'
import { FetchInitCategoryViewTable, FetchInitSingleCategoryView } from '@/api/collect/collect'
import { FetchInitCategoryViewTable, FetchInitCategoryView } from '@/api/collect/collect'
import Vue from 'vue'
export default {
name: 'MoveFile',
@ -197,11 +197,12 @@ export default {
this.loading = true
const params = {
'categoryId': this.selectedCategoryMove.id,
'categoryLevel': 3,
'search': this.query.search,
'page': this.page.page - 1,
'size': this.page.size
}
FetchInitSingleCategoryView(params).then((res) => {
FetchInitCategoryView(params).then((res) => {
console.log(res)
if (res.code !== 500) {
this.tableData = res.list.content

Loading…
Cancel
Save