|
|
@@ -899,15 +899,14 @@ export default {
|
|
|
project_name: this.searchform.ProjectName,
|
|
|
auditor_status: this.searchform.AuditorStatus,
|
|
|
auditor_name: this.searchform.AuditorName,
|
|
|
- create_on: this.CreateOn[0] / 1000 + ',' + this.CreateOn[1] / 1000,
|
|
|
+ create_on: this.create_on,
|
|
|
show_column: showcolumnarr + '',
|
|
|
show_column_name: showcolumnnamearr + '',
|
|
|
type: 'SampleSource'
|
|
|
}
|
|
|
- /* if (this.CreateOn && this.CreateOn.length === 2) {
|
|
|
+ if (this.CreateOn && this.CreateOn.length === 2) {
|
|
|
let params2 = {
|
|
|
- CreateOnstart: this.CreateOn[0] / 1000,
|
|
|
- CreateOnend: this.CreateOn[1] / 1000
|
|
|
+ create_on: this.CreateOn[0] / 1000 + ',' + this.CreateOn[1] / 1000
|
|
|
}
|
|
|
params = Object.assign(params, params2)
|
|
|
}
|
|
|
@@ -917,7 +916,7 @@ export default {
|
|
|
Validityend: _this.Validity[1] / 1000
|
|
|
}
|
|
|
params = Object.assign(params, params3)
|
|
|
- } */
|
|
|
+ }
|
|
|
// 导出所选样本
|
|
|
if (val === 'exportchosen') {
|
|
|
for (var i = 0; i < _this.$refs.tableData.selection.length; i++) {
|
|
|
@@ -947,14 +946,11 @@ export default {
|
|
|
params = Object.assign(params, paramsid)
|
|
|
}
|
|
|
if (val === 'exportall') {
|
|
|
- params.currentPage = 0
|
|
|
+ params.current_page = 0
|
|
|
params.size = 0
|
|
|
}
|
|
|
- const dateInfo = this.formatExportDate(new Date())
|
|
|
- const name = dateInfo + '样本来源.xlsx'
|
|
|
- console.log('filename', name)
|
|
|
// 样本来源相关导出
|
|
|
- service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', name, params)
|
|
|
+ service.downloadExcel('dashoo.biobank.bee-0.1', 'SampleRelated', 'ExportExcel', params)
|
|
|
},
|
|
|
exportSamples () {
|
|
|
const dateInfo = this.formatExportDate(new Date())
|