|
@@ -2,11 +2,12 @@
|
|
|
<div class="app-container" v-loading="loading">
|
|
|
<evaluation-title :title="title" :sub-title="subTitle" nav-back-button></evaluation-title>
|
|
|
<el-card>
|
|
|
- <mx-condition :query-params="queryParams" :require-fields="requireFields" :local-data="localData"
|
|
|
+ <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" :local-data="localData"
|
|
|
@query="handleQuery"></mx-condition>
|
|
|
</el-card>
|
|
|
<div v-if="enableOutput" class="text-right mt20">
|
|
|
- <el-button type="primary" icon="el-icon-printer" @click="exportExcel">导出</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-printer" @click="exportExcel($event,'output-table',outputName)">导出
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<mx-table :rows="detailTable.rows" :prop-defines="detailTable.columns" border
|
|
|
id="output-table" class="mt20 elective-flow-table">
|
|
@@ -184,6 +185,15 @@ export default {
|
|
|
},
|
|
|
pageSizes() {
|
|
|
return this.enableOutput ? [20, 50, 100, 200, 500, 9999] : undefined
|
|
|
+ },
|
|
|
+ outputName() {
|
|
|
+ const params = [this.title]
|
|
|
+ const group = this.$refs.condition.getConditionLabel('generationGroupId', this.queryParams.generationGroupId)
|
|
|
+ const type = this.$refs.condition.getConditionLabel('generationQueryCode', this.queryParams.generationQueryCode)
|
|
|
+ if (group) params.push(group)
|
|
|
+ if (type) params.push(type)
|
|
|
+
|
|
|
+ return params.join('-')
|
|
|
}
|
|
|
},
|
|
|
data() {
|