Commit 9582dea4 by 李少勇

oftopn 交易导出功能开发

parent 3a053636
import Api from "~/service/Api";
import moment from "moment";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
import Oftopn from '../model';
import Utils from "~/utils";
export default {
mixins: [getSubtyp],
mixins: [getSubtyp, exportExcel],
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
......@@ -69,6 +70,21 @@ export default {
},
handleSelectionChange (val) {
this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
typ: 'kpasta',
sta: 'stacd1',
area: 'area',
offsta: 'offsta',
multimsg: 'chncod',
chk: 'chncod',
kpatyp: 'chncod',
};
let params = {
...this.model.oftp.rel,
}
this.exportExcel(this.stmData.columns, '/frontend/oftopn/exportExcel', params, codeKeysMap, '待关联报文处理');
}
},
};
......@@ -114,7 +114,7 @@
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
ReRouting
</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') }}
</c-button>
</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