Commit 00c4b6fe by 潘际乾

ditopn的初始化

parent 6e2d8b8e
......@@ -235,6 +235,7 @@ export default class Ditopn{
conexedat:"", // Execution Date .mtabut.coninf.conexedat
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -170,7 +170,49 @@ export default {
}
},
methods:{
tabClick(){
tabClick(vm){
if(this.isInDisplay){
return
}
const name = vm.name
if (name === "engp") {
this.executeRule("liaall.engp").then(res => {
const data = res.data;
Utils.copyValueFromVO(this.model, data)
})
}
if (name === "glepan") {
this.executeRule("setmod.glemod.glepan").then(res => {
const data = res.data;
this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
//Utils.copyValueFromVO(this.model, data)
})
}
if (name === "setpan") {
this.executeRule("setmod.setpan").then(res => {
if (res.respCode == "AAAAAA"){
const data = res.data;
Utils.copyValueFromVO(this.model, data)
}
})
}
if (name === "docpan") {
this.executeRule("trnmod.trndoc.docpan").then(res => {
if (res.respCode == "AAAAAA"){
const data = res.data;
Utils.copyValueFromVO(this.model, data)
var stm = [];
let k = 0;
for(let i = 0; i < res.data.trnmod_trndoc_doceot.length; i++){
if(res.data.trnmod_trndoc_doceot[i].role != ""){
stm[k++] = res.data.trnmod_trndoc_doceot[i];
}
}
this.$refs.docpan.stmData.data = stm
}
})
}
}
},
created:async function(){
......
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