Commit ccc55ee4 by hulei

统一前端选择记录传值方式

parent 4608548c
......@@ -209,10 +209,9 @@ export default {
}
},
async onLiaccvDel(index,row) {
const idx = index+1;
let rule = "liaall.liaccv.del";
let params = {selDst:"liaall.liaccv.liaccvg",selIdx:idx};
let rtnmsg = await this.executeRule(rule,params)
let ids = [index+1];
let params = {selDst:"liaall.liaccv.liaccvg",selIds:ids};
let rtnmsg = await this.executeRule("liaall.liaccv.del",params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
debugger;
......@@ -341,10 +340,8 @@ export default {
async onExtkey(e) {
},
async pickDepItem(row) {
debugger;
var params = { 'selsptinr': row.srcStr };
//{params:{'selsptinr':row[0]}}
async pickDepItem(idx,row) {
var params = {selDst:"",selIds:[idx+1]}
let rtnmsg = await this.executeRule("liaall.liaccv.add", params)
if (rtnmsg.respCode == SUCCESS) {
this.dialogTableVisible = false;
......
......@@ -86,12 +86,12 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRelrow() {
async onRelrow(idx,row) {
const selIdx = row.IDX + 1 + ""; //rowno选中行
const selIds = [idx+1]; //rowno选中行
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIdx: selIdx };
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule("relrow", params)
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -418,7 +418,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="onRelrow(scope.row)"
@click="onRelrow(scope.$index,scope.row)"
>
复核
......
......@@ -199,7 +199,7 @@
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column prop="op" label="OP" width="100">
<template slot-scope="scope">
<a href="javascript:void(0)" @click="pickDepItem(scope.row)"
<a href="javascript:void(0)" @click="pickDepItem(scope.$index,scope.row)"
>选择</a
>
</template>
......
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