Commit 6158e6cc by nanrui

botpay “setp”面板测试bug第二个表格事件关联处理

parent 4681c44e
......@@ -252,7 +252,7 @@
<c-col :span="24">
<c-col :span="11">
<c-istream-table ref="table" :list="model.liaall.tenstm.rows || []" :columns="stmData.columns"
:showSelection="true" v-on:multipleSelect="multipleSelect">
:showSelection="true" v-on:multipleSelect="multipleSelect" prop="liaall.tenstm">
</c-istream-table>
</c-col>
</c-col>
......@@ -361,6 +361,38 @@ export default {
this.model.setmod.redamt = "0.00";
}
},
async multipleSelect(selection) {
if (selection.length > 1) {
this.$notify({
title: "error",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let selIds;
if (selection.length === 0) {
selIds = [];
this.model.setmod.docamt = "0.000";
this.model.liaall.tensetstm.rows = [];
this.isDisabled = false;
// this.model.liaall.tenstm.rows = []
} else {
selIds = [selection[0] + 1];
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
this.isDisabled = true;
}
//
console.log(this.model.liaall.tensetstm);
let params = { selDst: "liaall.tenstm", selIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},
},
created: function () {
......
......@@ -16,7 +16,7 @@
<!--PD000027 -->
<el-tab-pane label="Funds Settlement" name="setp">
<m-setp :model="model" :codes="codes" />
<m-setp ref="setp" :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000049 -->
......@@ -138,7 +138,10 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
this.$nextTick(() => {
this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
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