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
fukai
vue-gjjs
Commits
005c8c4b
Commit
005c8c4b
authored
Dec 29, 2022
by
nanrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
betset禅道缺陷修改
parent
fcdf9269
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
9 deletions
+47
-9
Cnyp.vue
src/views/Business/Betset/Cnyp.vue
+28
-2
index.vue
src/views/Business/Betset/index.vue
+19
-7
No files found.
src/views/Business/Betset/Cnyp.vue
View file @
005c8c4b
...
...
@@ -39,6 +39,11 @@ import Incp from "./Incp";
import
Basp
from
"./Basp"
import
Basp1
from
"./Basp1"
const
tabNameToRulePathMapping
=
{
"basp"
:
"bopmod.dbap.basp"
,
"basp1"
:
"bopmod.dbdp.basp"
,
}
export
default
{
inject
:
[
"root"
],
...
...
@@ -57,9 +62,30 @@ export default {
};
},
methods
:
{
...
Event
,
handleChange
()
{
}
...
Event
,
handleChange
(
names
){
// console.log(names);//激活的(展开的)面板的name数组集合
if
(
this
.
isInDisplay
)
{
return
}
const
arr
=
[]
for
(
let
i
=
0
;
i
<
names
.
length
;
i
++
)
{
const
n
=
names
[
i
];
const
path
=
tabNameToRulePathMapping
[
n
]
//取出激活/展开面板name对应的rulePath
if
(
path
)
{
arr
.
push
(
path
)
}
}
let
rulePath
=
arr
.
join
(
","
);
//把arr数组加入逗号分割,变成字符串
if
(
!!
rulePath
)
{
//rulePath不为空串
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
);
}
});
}
},
},
created
:
function
()
{
},
};
</
script
>
...
...
src/views/Business/Betset/index.vue
View file @
005c8c4b
...
...
@@ -146,14 +146,26 @@ export default {
activeNames
:
[
"engp"
],
}
},
methods
:{
myTabClick
(
tab
){
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
}
methods
:
{
myTabClick
(
tab
)
{
this
.
tabClick
(
tab
);
let
name
=
tab
.
name
;
let
rulePath
;
if
(
name
===
"basp"
)
{
rulePath
=
"bopmod.dbap.basp"
;
}
if
(
name
===
"basp1"
)
{
rulePath
=
"bopmod.dbdp.basp"
;
}
if
(
!!
rulePath
)
{
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
);
}
});
}
},
},
created
:
async
function
(){
console
.
log
(
"进入betset交易"
);
let
rtnmsg
=
await
this
.
init
({})
...
...
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