Commit 4608548c by wangguangchao

trnrel交易复核按钮事件提交

parent d83c249d
......@@ -87,27 +87,28 @@ export default {
}
},
async onRelrow() {
const that = this
that.model.trncorco.selinr.empty = false
that.model.trncorco.selinr.rows = that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
let rtnmsg = await this.executeRule("relrow")
const selIdx = row.IDX + 1 + ""; //rowno选中行
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIdx: selIdx };
let rtnmsg = await this.executeRule("relrow", params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.$message({
type: 'success',
message: 'Release成功!'
message: 'Reject成功!'
});
await this.sleep(2000);
this.$router.go(0);
}
else {
that.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
sleep (ms) {
sleep(ms) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
......@@ -278,20 +279,20 @@ export default {
onSeainf() {
},
display(index, row){
display(index, row) {
const d = this.stmData.data[index]
const ds = d.split("\t")
let viewurl ="/#/display/"+ds['10'].toLowerCase()+"?trn="+ds['1']
let viewurl = "/#/display/" + ds['10'].toLowerCase() + "?trn=" + ds['1']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
},
async handleSearch() {
const that = this.root;
if(this.model.searchAllUsers){
if (this.model.searchAllUsers) {
that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
})
}else{
} else {
that.executeRule("searow").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
......@@ -300,7 +301,7 @@ export default {
}
},
async handleReset(){
async handleReset() {
this.model.bchcon = "";
this.model.trncorco.ownref = "";
this.model.trncorco.relflg = "";
......
......@@ -401,7 +401,7 @@
label="操作"
width="200px"
>
<template>
<template slot-scope="scope">
<!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>-->
<!-- <a href="javascript:void(0)" @click="display(scope.$index, scope.row)"
>显示快照</a
......@@ -418,6 +418,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="onRelrow(scope.row)"
>
复核
......
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