Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
116d91fa
Commit
116d91fa
authored
Jul 12, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusNavbar兼容多种模型
parent
e1be1dd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
Ovwp.vue
src/views/Business/Detopn/Ovwp.vue
+0
-16
BusNavbar.vue
src/views/Public/BusNavbar.vue
+17
-3
No files found.
src/views/Business/Detopn/Ovwp.vue
View file @
116d91fa
...
@@ -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=
"请选择贸易类型"
...
...
src/views/Public/BusNavbar.vue
View file @
116d91fa
...
@@ -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
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment