对接问题知识库

This commit is contained in:
qq787203167
2022-08-09 10:44:32 +08:00
parent bc3f1be1a0
commit 42819e62e9
6 changed files with 111 additions and 21 deletions
@@ -142,6 +142,7 @@
},
getData() {
this.visible = true
this.commentContent = ''
this.getList()
},
handleSubmit() {
@@ -162,7 +163,7 @@
this.loading = true
getAction(this.url.list, {
id: this.$route.query.id,
commentContent: this.commentContent
str: this.commentContent
}).then((res) => {
if (res.success) {
this.loading = false
@@ -169,7 +169,10 @@
checkAll: false,
isDisplay: false,
fullCheckbox: false,
resultData: {}
resultData: {},
url: {
exportData: '/compare/sarFileCompareItemComment/exportResXls'
}
}
},
mounted() {
@@ -190,7 +193,20 @@
this.$refs.commentListRef.getData()
},
exportComparisonReportClick() {
let checkboxList = JSON.parse(JSON.stringify(this.checkboxList))
let fullCheckbox = this.fullCheckbox
let query = {
selectIds: checkboxList.join(','),
includeComments: fullCheckbox,
infoId: this.$route.query.id
}
downloadFile(this.url.exportData, this.resultData.serialNumberLeft + ' - ' + this.resultData.serialNumberRight + '.xls', query, this.Deselect)
},
Deselect() {
this.checkboxList = []
this.fullCheckbox = false
this.indeterminate = false
this.checkAll = false
},
getData() {
let query = {