Commit 9024b71f by wangna

ccttra修改

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