Commit 1263ee26 by 潘际乾

release点击

parent c3644195
...@@ -131,16 +131,21 @@ export default { ...@@ -131,16 +131,21 @@ export default {
}) })
}, },
onRelrow() { onRelrow() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { const that = this
that.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
return; return;
let rtnmsg = await Api.post("trnrel/relrow", Utils.flatObject(this.model)) that.model.trncorco.selinr = {
"rows": that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
}
const data = Utils.flatObject(this.model)
let rtnmsg = await Api.post("/trnrel/executeRule/relrow", data)
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
console.log(res)
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); that.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}) })
}, },
...@@ -214,6 +219,7 @@ export default { ...@@ -214,6 +219,7 @@ export default {
} }
}) })
}, },
onRecpanDet() { onRecpanDet() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => { this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid) if (!valid)
......
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