Commit dbc73bcb by SunJie
parents f2724c35 f0de7afd
...@@ -169,22 +169,27 @@ export default { ...@@ -169,22 +169,27 @@ export default {
const label = vm.label const label = vm.label
if (label === "帐务") { if (label === "帐务") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
const data = res.data; if (res.respCode == "AAAAAA"){
Utils.copyValueFromVO(this.model, data) const data = res.data;
Utils.copyValueFromVO(this.model, data)
}
}) })
} }
if (label === "面函") { if (label === "面函") {
//didgrp.adv.pts.extkey
this.executeRule("trnmod.trndoc.docpan").then(res => { this.executeRule("trnmod.trndoc.docpan").then(res => {
const data = res.data; if (res.respCode == "AAAAAA"){
Utils.copyValueFromVO(this.model, data) const data = res.data;
var stm = []; Utils.copyValueFromVO(this.model, data)
let k = 0; var stm = [];
for(let i = 0; i < res.data.trnmod_trndoc_doceot.length; i++){ let k = 0;
if(res.data.trnmod_trndoc_doceot[i].role != ""){ for(let i = 0; i < res.data.trnmod_trndoc_doceot.length; i++){
stm[k++] = res.data.trnmod_trndoc_doceot[i]; if(res.data.trnmod_trndoc_doceot[i].role != ""){
stm[k++] = res.data.trnmod_trndoc_doceot[i];
}
} }
this.$refs.docpan.stmData.data = stm
} }
this.$refs.docpan.stmData.data = stm
}) })
} }
} }
......
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