Commit e15d318a by Wuyuqiu

bftset页面bug临时提交

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