Commit 01be0860 by hulei

add moduleList rule

parent f9029fd6
...@@ -208,9 +208,11 @@ export default { ...@@ -208,9 +208,11 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async onLiaccvDel() { async onLiaccvDel(index,row) {
let rtnmsg = await this.executeRule("liaall.liaccv.del") const idx = index+1;
//const that = this.root; let rule = "liaall.liaccv.del";
let params = {selDst:"liaall.liaccv.liaccvg",selIdx:idx};
let rtnmsg = await this.executeRule(rule,params)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
debugger; debugger;
......
...@@ -244,8 +244,9 @@ ...@@ -244,8 +244,9 @@
<el-table-column prop="acccovamt" label="Acc Amount" width="auto"> <el-table-column prop="acccovamt" label="Acc Amount" width="auto">
</el-table-column> </el-table-column>
<el-table-column label="OP" width="auto"> <el-table-column label="OP" width="auto">
<template slot-scope=""> <template slot-scope="scope">
<a href="javascript:void(0)" @click="onLiaccvDel()">删除</a> <c-button size="small" icon="el-icon-delete" @click="onLiaccvDel(scope.$index,scope.row)">
Del</c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-table> </c-table>
......
...@@ -137,9 +137,11 @@ ...@@ -137,9 +137,11 @@
</c-col> </c-col>
<c-col :span="2"> <c-col :span="2">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel"> <template slot-scope="scope">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel(scope.$index,scope.row)">
Del Del
</c-button> </c-button>
</template>
</c-col> </c-col>
</c-row> </c-row>
</c-col> </c-col>
......
...@@ -448,7 +448,7 @@ export default { ...@@ -448,7 +448,7 @@ export default {
}, },
// 第二个表格 // 第二个表格
detail1(index, row) { detail1(index, row) {
this.executeDefault("det").then(res=>{ this.executeDefault("setfel/det").then(res=>{
this.dialogVisible = true; this.dialogVisible = true;
this.dialog = row; this.dialog = row;
this.index = index; this.index = index;
...@@ -464,7 +464,8 @@ export default { ...@@ -464,7 +464,8 @@ export default {
// 第三个表格 // 第三个表格
detail2(index, row) { detail2(index, row) {
const that = this; const that = this;
that.executeRule("det").then(res=>{ const rule = "setmod.setfeg.setfel("+(index+1)+").det";
that.executeRule(rule).then(res=>{
that.$refs.setpanDialog.visiable = true; that.$refs.setpanDialog.visiable = true;
that.$refs.setpanDialog.formData = Object.assign({}, that.model.setmod.setfeg.setfel[index]); that.$refs.setpanDialog.formData = Object.assign({}, that.model.setmod.setfeg.setfel[index]);
that.index = index; that.index = index;
......
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