Commit ccc55ee4 by hulei

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

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