Commit e15d318a by Wuyuqiu

bftset页面bug临时提交

parent 3b905cfc
......@@ -868,6 +868,7 @@ export default {
],
data: [],
},
preSelectedRow: 0
};
},
computed: {
......@@ -900,23 +901,56 @@ export default {
methods: {
...Event,
async multipleSelect(selection) {
console.log(selection);
if (selection) {
let selIds = selection.map(x=>x+1);
let params = {selDst:"liaall.tenstm",selIds}
if (selection.length > 1) {
// this.$
} else {
let idx;
if (selection.length === 0) {
idx = this.preSelectedRow
} else {
idx = selection[0]
this.preSelectedRow = idx
}
//
let params = {selDst:"liaall.tenstm",selIds: [idx+1]}
const rtnmsg = await this.executeRule("liaall.tenstm",params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}else{
// this.model.setmod.docamt = "";
// this.model.setmod.setamt = "";
// this.model.aamset.utlamt = "";
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
// console.log(selection);
// if (selection) {
// let selIds = selection.map(x=>x+1);
// 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: '服务请求失败!'});
// }
// }else{
// let selIds = selection.map(x=>x+1);
// 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: '服务请求失败!'});
// }
// // this.model.setmod.docamt = "";
// // this.model.setmod.setamt = "";
// // this.model.aamset.utlamt = "";
// }
},
},
......
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