Commit fcf70036 by 李少勇

rcvselblk交易导出接口联调

parent 54608764
......@@ -87,7 +87,7 @@ export default {
...this.model.rcvp,
dir: ">",
}
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '收报查询');
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '收报查询');
}
},
};
import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
import moment from "moment";
import Rcvsel from "../model";
import Utils from "~/utils";
export default {
mixins: [getSubtyp],
mixins: [getSubtyp, exportExcel],
methods: {
async handleSearch() {
let rcvdatsta = this.model.rcvp.rcvdatsta;
......@@ -36,15 +37,6 @@ export default {
this.load = false;
this.stmData.data = [];
const { list } = rtnmsg.data;
const { codes: { sta1 } } = this;
list.forEach(v => {
for (let i in sta1) {
if (sta1[i].value == v.sta) {
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
......@@ -77,6 +69,17 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
sta: 'sta1'
};
let params = {
...this.model.rcvp,
dir: ">",
querytyp: "rcvblk",
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '收报灰名单');
}
},
};
......@@ -143,7 +143,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>
......@@ -166,7 +166,7 @@
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.sta1"></c-select-value-to-label>
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
......
......@@ -88,7 +88,7 @@ export default {
dir: ">",
querytyp: "rsm",
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '收报疑似重复处理');
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '收报疑似重复处理');
}
},
};
......@@ -78,7 +78,7 @@ export default {
...this.model.sndp,
dir: "<",
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '发报查询');
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '发报查询');
}
},
};
......@@ -80,7 +80,7 @@ export default {
dir: "<",
querytyp: "rsm",
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '发报疑似重复处理');
this.exportExcel(this.stmData.columns, '/frontend/msgsel/exportExcel', params, codeKeysMap, '发报疑似重复处理');
}
},
};
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