|
|
@ -235,10 +235,7 @@ export default { |
|
|
|
return { |
|
|
|
anjuanData: [], |
|
|
|
anjuanQuery: {}, |
|
|
|
queryOption: [ |
|
|
|
{ value: 'queryTitle', label: '题名' }, |
|
|
|
{ value: 'archiveNo', label: '档号' } |
|
|
|
], |
|
|
|
queryOption: [], |
|
|
|
anjuanInputSelect: '', |
|
|
|
isAnjuan: true, // 用于判断卷内-新增/导出按钮 |
|
|
|
lengingVisible: false // 借阅 |
|
|
@ -251,6 +248,11 @@ export default { |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
selectedCategory: function(newValue, oldValue) { |
|
|
|
this.query.queryTitle = '' |
|
|
|
this.query.archiveNo = '' |
|
|
|
this.query.archiveCtgNo = '' |
|
|
|
this.query.responsibleby = '' |
|
|
|
this.resetQuery() |
|
|
|
}, |
|
|
|
tableDisplayFields(val) { |
|
|
|
this.doLayout() |
|
|
@ -268,38 +270,51 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// 初始化带select的输入框的 - 搜索 |
|
|
|
this.anjuanInputSelect = this.queryOption[0].value |
|
|
|
this.resetQuery() |
|
|
|
this.selections = [] |
|
|
|
if (this.selectedCategory.isType === 5) { |
|
|
|
this.queryOption.push({ value: 'responsibleby', label: '责任者' }) |
|
|
|
} else { |
|
|
|
this.queryOption.push({ value: 'archiveCtgNo', label: '实体分类号' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 文件/案卷重置query |
|
|
|
resetQuery() { |
|
|
|
if (this.selectedCategory.isType === 5) { |
|
|
|
this.queryOption = [ |
|
|
|
{ value: 'queryTitle', label: '题名' }, |
|
|
|
{ value: 'archiveNo', label: '档号' }, |
|
|
|
{ value: 'responsibleby', label: '责任者' } |
|
|
|
] |
|
|
|
} else { |
|
|
|
this.queryOption = [ |
|
|
|
{ value: 'queryTitle', label: '题名' }, |
|
|
|
{ value: 'archiveNo', label: '档号' }, |
|
|
|
{ value: 'archiveCtgNo', label: '实体分类号' } |
|
|
|
] |
|
|
|
} |
|
|
|
this.anjuanInputSelect = this.queryOption[0].value |
|
|
|
}, |
|
|
|
// 档案列表获取显示列 |
|
|
|
getTableDisplayFields(type) { |
|
|
|
this.getTableItemCommon(type) |
|
|
|
}, |
|
|
|
// list |
|
|
|
getTableList(page) { |
|
|
|
this.query.queryTitle = '' |
|
|
|
this.query.archiveNo = '' |
|
|
|
this.query.archiveCtgNo = '' |
|
|
|
this.query.responsibleby = '' |
|
|
|
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.anjuanQuery[this.juanneiInputSelect] |
|
|
|
this.query.archiveCtgNo = this.anjuanQuery[this.anjuanInputSelect] |
|
|
|
break |
|
|
|
case 'responsibleby': // 责任者 |
|
|
|
this.query.responsibleby = this.anjuanQuery[this.juanneiInputSelect] |
|
|
|
this.query.responsibleby = this.anjuanQuery[this.anjuanInputSelect] |
|
|
|
break |
|
|
|
} |
|
|
|
this.getListCommon('anjuanData', page, 1) |
|
|
|