Commit 9582dea4 by 李少勇

oftopn 交易导出功能开发

parent 3a053636
import Api from "~/service/Api"; import Api from "~/service/Api";
import moment from "moment"; import moment from "moment";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js'; import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
import Oftopn from '../model'; import Oftopn from '../model';
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp, exportExcel],
methods: { methods: {
async handleSearch () { async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims; let rsptims = this.model.oftp.rel.rsptims;
...@@ -69,6 +70,21 @@ export default { ...@@ -69,6 +70,21 @@ export default {
}, },
handleSelectionChange (val) { handleSelectionChange (val) {
this.multipleSelection = 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 @@ ...@@ -114,7 +114,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