|
|
@ -111,6 +111,7 @@ |
|
|
|
@close-dialog="closeDialog" |
|
|
|
@formLoadingShow="formLoadingShow" |
|
|
|
@refreshTree="refreshTreeList" |
|
|
|
@resetQuery="resetQuery" |
|
|
|
/> |
|
|
|
<div slot="footer" class="dialog-footer" style="margin-top: 20px !important;"> |
|
|
|
<el-button type="text" @click="closeDialog">取消</el-button> |
|
|
@ -277,7 +278,13 @@ export default { |
|
|
|
formLoadingShow(loadingType) { |
|
|
|
this.archivesBtnLoading = loadingType |
|
|
|
}, |
|
|
|
handleNodeClick(data) { |
|
|
|
handleNodeClick(data, type) { |
|
|
|
if (type && type === 'targetNode') { |
|
|
|
console.log('非手动点击tree') |
|
|
|
} else { |
|
|
|
this.search = '' |
|
|
|
this.crud.query.search = '' |
|
|
|
} |
|
|
|
this.selectedDocument = data |
|
|
|
let documentId = null |
|
|
|
if (data.isType === 2) { |
|
|
@ -285,10 +292,10 @@ export default { |
|
|
|
} else { |
|
|
|
documentId = data.documentId |
|
|
|
} |
|
|
|
this.getInitDocumentsViewTable(documentId) |
|
|
|
this.getInitDocumentsViewTable(documentId, type) |
|
|
|
}, |
|
|
|
// table字段项 |
|
|
|
getInitDocumentsViewTable(documentId) { |
|
|
|
getInitDocumentsViewTable(documentId, type) { |
|
|
|
crudDocumentArchives.FetchInitDocumentsViewTable({ documentId: documentId }).then(data => { |
|
|
|
if (data) { |
|
|
|
this.arrySort = [] |
|
|
@ -307,12 +314,16 @@ export default { |
|
|
|
this.crud.query.docDepartment = this.selectedDocument.dictionaryName |
|
|
|
this.crud.query.archiveYear = this.selectedDocument.label |
|
|
|
} else { |
|
|
|
this.search = '' |
|
|
|
this.crud.query.search = '' |
|
|
|
// this.search = '' |
|
|
|
// this.crud.query.search = '' |
|
|
|
this.crud.query.docDepartment = null |
|
|
|
this.crud.query.archiveYear = null |
|
|
|
} |
|
|
|
this.crud.toQuery() |
|
|
|
if (type && type === 'targetNode') { |
|
|
|
this.crud.refresh() |
|
|
|
} else { |
|
|
|
this.crud.toQuery() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
@ -346,7 +357,6 @@ export default { |
|
|
|
|
|
|
|
this.getFormInfo(params, type) |
|
|
|
}, |
|
|
|
|
|
|
|
getFormInfo(params, type) { |
|
|
|
this.archivesType = type |
|
|
|
crudDocumentArchives.FetchDoeditDocument(params).then(data => { |
|
|
|