Commit dd0c4567 by 李少勇

导出功能调整

parent b4cf66eb
import Api from "~/service/Api"; import Api from "~/service/Api";
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 moment from "moment"; import moment from "moment";
import Rcvsel from "../model"; import Rcvsel 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 rcvdatsta = this.model.rcvp.rcvdatsta; let rcvdatsta = this.model.rcvp.rcvdatsta;
...@@ -77,6 +78,12 @@ export default { ...@@ -77,6 +78,12 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
sta: 'stacod'
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/query', codeKeysMap, '收报疑似重复处理表');
} }
}, },
}; };
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting style="margin-left: 20" type="primary">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>
......
import Api from "~/service/Api"; import Api from "~/service/Api";
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 moment from "moment"; import moment from "moment";
import Sndsel from "../model"; import Sndsel 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 rcvdatsta = this.model.sndp.rcvdatsta; let rcvdatsta = this.model.sndp.rcvdatsta;
...@@ -77,6 +78,12 @@ export default { ...@@ -77,6 +78,12 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
sta: 'stacod'
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/query', codeKeysMap, '发报查询表');
} }
}, },
}; };
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,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>
......
import Api from "~/service/Api"; import Api from "~/service/Api";
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 moment from "moment"; import moment from "moment";
import Sndsel from "../model"; import Sndsel 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 rcvdatsta = this.model.sndp.rcvdatsta; let rcvdatsta = this.model.sndp.rcvdatsta;
...@@ -78,6 +79,12 @@ export default { ...@@ -78,6 +79,12 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
sta: 'stacod'
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/query', codeKeysMap, '发报疑似重复处理表');
} }
}, },
}; };
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,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