Commit 116d91fa by liuxin

BusNavbar兼容多种模型

parent e1be1dd6
...@@ -241,22 +241,6 @@ ...@@ -241,22 +241,6 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="贸易类型" prop="dedgrp.rec.mytype"> <el-form-item label="贸易类型" prop="dedgrp.rec.mytype">
<c-select <c-select
v-if="model.dedgrp.rec.elcflg == 'N'"
v-model="model.dedgrp.rec.mytype"
style="width: 100%"
placeholder="请选择贸易类型"
@change="mytypeChange"
>
<el-option
v-for="item in codes.mylx"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<c-select
v-else
v-model="model.dedgrp.rec.mytype" v-model="model.dedgrp.rec.mytype"
style="width: 100%" style="width: 100%"
placeholder="请选择贸易类型" placeholder="请选择贸易类型"
......
...@@ -21,7 +21,21 @@ import Api from "~/service/Api"; ...@@ -21,7 +21,21 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
export default { export default {
props: ["ownref", "trnCode", "model"], props: {
"ownref": {
required: true,
},
"trnCode": {
required: true,
},
"model": {
required: true,
},
"ownrefPath": {
required: false,
default: "didgrp"
}
},
components: {}, components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
...@@ -59,10 +73,10 @@ export default { ...@@ -59,10 +73,10 @@ export default {
this.$on("childmethods", async function () { this.$on("childmethods", async function () {
this.navcode = []; this.navcode = [];
//请求按钮数据 //请求按钮数据
this.model.didgrp.rec.ownref = this.ownref; this.model[this.ownrefPath].rec.ownref = this.ownref;
// console.log("ownref:" + this.ownref); // console.log("ownref:" + this.ownref);
let rtnmsg = await this.executeRule("didgrp.rec.ownref"); //didgrp_rec_ownref let rtnmsg = await this.executeRule(this.ownrefPath+".rec.ownref"); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//重置数组 //重置数组
this.navcode = []; this.navcode = [];
......
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