Commit fb7cfa77 by 李少勇

qrtmsg 导出功能开发

parent afedbbc0
import Api from "~/service/Api"; import Api from "~/service/Api";
import moment from "moment"; import moment from "moment";
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
export default { export default {
mixins: [exportExcel],
methods: { methods: {
async handleSearch() { async handleSearch() {
let dts = this.model.qrtp.dts; let dts = this.model.qrtp.dts;
...@@ -122,6 +123,16 @@ export default { ...@@ -122,6 +123,16 @@ export default {
}, },
updateAck() { updateAck() {
},
exportToExcel() {
let codeKeysMap = {
sta: 'stacd1'
};
let params = {
...this.model,
}
let columns = this.activeTab == 'fb' ? this.stmData.columns : this.stmData1.columns;
this.exportExcel(columns, '/frontend/qrtsel/exportExcel', params, codeKeysMap, '报文查询');
} }
}, },
}; };
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
ReRouting ReRouting
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary" @click="exportToExcel">
{{ $t('public.导出Excel') }} {{ $t('public.导出Excel') }}
</c-button> </c-button>
</el-col> </el-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment