From 14ff639507ffd367b2d61694924652746621847d Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 6 Jul 2022 13:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86-list?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E9=A1=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archivesList/archivesDetail.vue | 3 +- .../archivesManage/archivesList/index.vue | 16 ++- .../module/archivesAnjuan/index.vue | 27 +++- .../module/archivesJuannei/index.vue | 22 +-- .../module/archivesProject/index.vue | 10 +- .../archivesList/module/binding/index.vue | 133 ------------------ 6 files changed, 51 insertions(+), 160 deletions(-) delete mode 100644 src/views/archivesManage/archivesList/module/binding/index.vue diff --git a/src/views/archivesManage/archivesList/archivesDetail.vue b/src/views/archivesManage/archivesList/archivesDetail.vue index 75caea1..2d336a4 100644 --- a/src/views/archivesManage/archivesList/archivesDetail.vue +++ b/src/views/archivesManage/archivesList/archivesDetail.vue @@ -171,11 +171,10 @@ import PreviewForm from '@/views/components/category/PreviewForm' import UploadFile from './module/uploadFile/index' import ArchivesInfo from './module/archivesInfo/index' import Packing from './module/packing/index' -import Binding from './module/binding/index' export default { name: 'ArchivesDetail', - components: { crudOperation, rrOperation, pagination, PreviewForm, UploadFile, ArchivesInfo, Packing, Binding }, + components: { crudOperation, rrOperation, pagination, PreviewForm, UploadFile, ArchivesInfo, Packing }, mixins: [ presenter(), header(), diff --git a/src/views/archivesManage/archivesList/index.vue b/src/views/archivesManage/archivesList/index.vue index 20cd9e1..d015486 100644 --- a/src/views/archivesManage/archivesList/index.vue +++ b/src/views/archivesManage/archivesList/index.vue @@ -393,7 +393,9 @@ export default { this.$refs.anjuan.getTableDisplayFields() this.$refs.file.getTableDisplayFields() } - this.$refs.project.getTableList() + setTimeout(() => { + this.$refs.project.getTableList() + }, 200) if (!this.treeCurrentNode) { this.getYear('project') } @@ -406,7 +408,9 @@ export default { if (this.selectedCategory.children.length !== 0) { this.$refs.file.getTableDisplayFields() } - this.$refs.anjuan.getTableList() + setTimeout(() => { + this.$refs.anjuan.getTableList() + }, 200) if (!this.treeCurrentNode) { this.getYear('anjuan') } @@ -415,7 +419,9 @@ export default { this.$nextTick(() => { this.$refs.file.junneiData = [] this.$refs.file.getTableDisplayFields() - this.$refs.file.getTableList() + setTimeout(() => { + this.$refs.file.getTableList() + }, 200) if (!this.treeCurrentNode) { this.getYear('file') } @@ -424,7 +430,9 @@ export default { this.$nextTick(() => { this.$refs.anjuan.anjuanData = [] this.$refs.anjuan.getTableDisplayFields() - this.$refs.anjuan.getTableList() + setTimeout(() => { + this.$refs.anjuan.getTableList() + }, 200) if (!this.treeCurrentNode) { this.getYear('anjuan') } diff --git a/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue b/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue index a0cf9c6..3786c17 100644 --- a/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue @@ -28,7 +28,7 @@ - + { if (data) { + this.arrySort = [] this.tableDisplayFields = data this.getTableDisplayFieldsLoading = false - this.tableDisplayFields.map(item => { - if (item.queue) { - this.arrySort.push(item.fieldName + ', ' + (item.displayOrder === 1 ? 'asc' : 'desc')) - } + const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue) + orderSortArry.forEach(item => { + this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) }) } }) @@ -394,9 +400,17 @@ export default { switch (this.anjuanInputSelect) { case 'queryTitle': // 题名 this.query.queryTitle = this.anjuanQuery[this.anjuanInputSelect] + this.query.archiveNo = '' break case 'archiveNo': // 档号 this.query.archiveNo = this.anjuanQuery[this.anjuanInputSelect] + this.query.queryTitle = '' + break + case 'archiveCtgNo': // 实体分类号 + this.query.archiveCtgNo = this.juanneiQuery[this.juanneiInputSelect] + break + case 'responsibleby': // 责任者 + this.query.responsibleby = this.juanneiQuery[this.juanneiInputSelect] break } this.page.page = isNaN(page - 1) ? 0 : page - 1 @@ -418,6 +432,7 @@ export default { 'queryTitle': this.query.queryTitle, 'recordNo': this.query.recordNo, 'archiveCtgNo': this.query.archiveCtgNo, + 'responsibleby': this.query.responsibleby, 'archiveNo': this.query.archiveNo, 'archiveYear': this.smartQuery.archiveYear, 'department': this.smartQuery.department, diff --git a/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue b/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue index adecb29..26ce0b1 100644 --- a/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue @@ -22,7 +22,7 @@ - + { if (data) { + this.arrySort = [] this.tableDisplayFields = data this.getTableDisplayFieldsLoading = false - this.tableDisplayFields.map(item => { - if (item.queue) { - this.arrySort.push(item.fieldName + ', ' + (item.displayOrder === 1 ? 'asc' : 'desc')) - } + const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue) + orderSortArry.forEach(item => { + this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) }) } }) @@ -345,8 +346,8 @@ export default { case 'archiveNo': // 档号 this.query.archiveNo = this.juanneiQuery[this.juanneiInputSelect] break - case 'archiveCtgNo': // 实体分类号 - this.query.archiveCtgNo = this.juanneiQuery[this.juanneiInputSelect] + case 'responsibleby': // 责任者 + this.query.responsibleby = this.juanneiQuery[this.juanneiInputSelect] break } this.page.page = isNaN(page - 1) ? 0 : page - 1 @@ -368,6 +369,7 @@ export default { 'queryTitle': this.query.queryTitle, 'recordNo': this.query.recordNo, 'archiveCtgNo': this.query.archiveCtgNo, + 'responsibleby': this.query.responsibleby, 'archiveNo': this.query.archiveNo, 'archiveYear': this.smartQuery.archiveYear, 'department': this.smartQuery.department, @@ -444,9 +446,9 @@ export default { }, // table - 当前选中得row clickRowHandler(row) { - this.selections = this.crud.selections this.$refs.table.clearSelection() this.$refs.table.toggleRowSelection(row) + this.selections = this.crud.selections }, // 触发单选 handleCurrentChange(selection, row) { diff --git a/src/views/archivesManage/archivesList/module/archivesProject/index.vue b/src/views/archivesManage/archivesList/module/archivesProject/index.vue index c935a4b..ddb9e9b 100644 --- a/src/views/archivesManage/archivesList/module/archivesProject/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesProject/index.vue @@ -18,7 +18,7 @@ - + { if (data) { + this.arrySort = [] this.tableDisplayFields = data this.getTableDisplayFieldsLoading = false - this.tableDisplayFields.map(item => { - if (item.queue) { - this.arrySort.push(item.fieldName + ', ' + (item.displayOrder === 1 ? 'asc' : 'desc')) - } + const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue) + orderSortArry.forEach(item => { + this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) }) } }) diff --git a/src/views/archivesManage/archivesList/module/binding/index.vue b/src/views/archivesManage/archivesList/module/binding/index.vue deleted file mode 100644 index c16aa4c..0000000 --- a/src/views/archivesManage/archivesList/module/binding/index.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - TID - - - - - - 1 - - 第一步连接读写器 - 连接成功 - - - - - - 2 - - - - - 第二步放入标签 - 请放入标签 - - - - - - 3 - - 第三步读取标签 - 放入标签后开始读取标签 - - - - - - 4 - - 第四步开始绑定 - 标签读取成功后,开始绑定档案 - - - - - - - - - 5 - - 第五步绑定成功 - 当前标签与档案绑定成功 - - - - - - - - - - - - - - - - 当前标签已被绑定,是否覆盖? - - - - - - - - - -
第一步连接读写器
连接成功
第二步放入标签
请放入标签
第三步读取标签
放入标签后开始读取标签
第四步开始绑定
标签读取成功后,开始绑定档案
第五步绑定成功
当前标签与档案绑定成功
当前标签已被绑定,是否覆盖?