Commit 9bfe4abc by ZcyJames

1.bsnsel查询

parent 3f1f3973
......@@ -6,6 +6,38 @@ export default {
mixins: [getSubtyp],
methods: {
async handleSearch() {
this.load = true;
let rtnmsg = await Api.post("/frontend/bsnsel/sel", {
...this.model.bsnp,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.model.bsngrp.rcvlst = [];
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.model.bsngrp.rcvlst = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
......
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="formSubmit">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px" size="small"
......@@ -146,10 +146,12 @@
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [],
mixins: [event],
components: {
},
data() {
......
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