From 0cca7543115164ceaf1681cf723094907f687dba Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 25 Apr 2024 17:00:55 +0800 Subject: [PATCH] =?UTF-8?q?0425=E9=9C=80=E6=B1=82=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archivesList/archivesAnjuan/index.vue | 53 +- .../archivesList/archivesJuannei/index.vue | 24 +- .../archivesList/archivesProject/index.vue | 508 +++++++++--------- .../archivesManage/archivesSearch/index.vue | 5 +- .../caseManage/caseList/index.vue | 5 +- .../fileImport/importLog/index.vue | 4 + .../fileImport/module/detail.vue | 4 +- 7 files changed, 329 insertions(+), 274 deletions(-) diff --git a/src/views/archivesManage/archivesList/archivesAnjuan/index.vue b/src/views/archivesManage/archivesList/archivesAnjuan/index.vue index c4c7eff..79ebef7 100644 --- a/src/views/archivesManage/archivesList/archivesAnjuan/index.vue +++ b/src/views/archivesManage/archivesList/archivesAnjuan/index.vue @@ -255,15 +255,7 @@ export default { anjuanQuery: {}, queryOption: [], anjuanInputSelect: '', - stateOptions: [ // 搜索 - 状态选择 - { value: '0', label: '全部' }, - { value: '1', label: '未装' }, - { value: '2', label: '未入' }, - { value: '3', label: '待入' }, - { value: '4', label: '在库' }, - { value: '5', label: '待借' }, - { value: '6', label: '已借' } - ], + stateOptions: [], isAnjuan: true, // 用于判断卷内-新增/导出按钮 lengingVisible: false // 借阅 } @@ -275,10 +267,31 @@ export default { }, watch: { selectedCategory: function(newValue, oldValue) { + console.log('selectedCategory', newValue.isType) this.query.queryTitle = '' this.query.archiveNo = '' this.query.archiveCtgNo = '' this.query.responsibleby = '' + + if (newValue.isType === 5) { + this.stateOptions = [ + { value: '0', label: '全部' }, + { value: '1', label: '未装' }, + { value: '2', label: '未入' }, + { value: '3', label: '待入' }, + { value: '4', label: '在库' }, + { value: '5', label: '待借' }, + { value: '6', label: '已借' } + ] + } else { + this.stateOptions = [ + { value: '0', label: '全部' }, + { value: '1', label: '未装' }, + { value: '2', label: '未入' }, + { value: '3', label: '待入' }, + { value: '7', label: '已入' } + ] + } this.resetQuery() }, tableDisplayFields(val) { @@ -301,6 +314,25 @@ export default { created() { this.resetQuery() this.selections = [] + if (this.selectedCategory.isType === 5) { + this.stateOptions = [ + { value: '0', label: '全部' }, + { value: '1', label: '未装' }, + { value: '2', label: '未入' }, + { value: '3', label: '待入' }, + { value: '4', label: '在库' }, + { value: '5', label: '待借' }, + { value: '6', label: '已借' } + ] + } else { + this.stateOptions = [ + { value: '0', label: '全部' }, + { value: '1', label: '未装' }, + { value: '2', label: '未入' }, + { value: '3', label: '待入' }, + { value: '7', label: '已入' } + ] + } this.query.queryType = this.stateOptions[0].value }, mounted() { @@ -380,11 +412,12 @@ export default { tableDoubleClick(row) { if (this.selectedCategory.isType !== 5) { this.$refs.archivesInfo.isHasFile = false + this.$refs.archivesInfo.isTidOrBorrow = false } else { this.$refs.archivesInfo.isHasFile = true + this.$refs.archivesInfo.isTidOrBorrow = true } this.$refs.archivesInfo.isDetailsInfo = true - this.$refs.archivesInfo.isTidOrBorrow = true this.arcId = row.id this.$refs.archivesInfo.detailTitle = '档案详情' this.$refs.archivesInfo.archivesInfoVisible = true diff --git a/src/views/archivesManage/archivesList/archivesJuannei/index.vue b/src/views/archivesManage/archivesList/archivesJuannei/index.vue index ff2cc2e..8aea3c7 100644 --- a/src/views/archivesManage/archivesList/archivesJuannei/index.vue +++ b/src/views/archivesManage/archivesList/archivesJuannei/index.vue @@ -24,6 +24,10 @@