Commit 9024b71f by wangna

ccttra修改

parent ec067956
......@@ -171,6 +171,7 @@
v-model="model.advrol"
style="width: 100%"
placeholder="请选择Receive of Message"
:code="advrol"
>
</c-select>
</el-form-item>
......@@ -454,7 +455,7 @@ import Event from "~/model/Ccttra/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
props: ["model", "codes","advrol"],
mixins: [commonProcess],
data() {
return {};
......
......@@ -25,7 +25,7 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--ccttra PD000002 Tracer BC -->
<el-tab-pane label="Tracer BC" name="ccttra1">
<m-ccttra1 :model="model" :codes="codes" />
<m-ccttra1 :model="model" :codes="codes" :advrol="advrol"/>
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="Messages" name="docpan">
......@@ -95,6 +95,7 @@ export default {
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
advrol:[],
};
},
methods: {
......@@ -104,12 +105,28 @@ export default {
* do it yourself
**/
},
buildAdvrol(data){
var result = [];
for(let i = 0; i < data.length; i++){
if(data[i] === 'COL'){
let newList = {
value: "COL",
label: "Collecting Bank",
}
result.push(newList);
}
}
this.advrol = result;
console.log(this.advrol)
},
},
created: async function () {
console.log("进入ccttra交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
console.log(rtnmsg.codeSet['advrol'])
this.buildAdvrol(rtnmsg.codeSet['advrol'] || []);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
......
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