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
a7098639
Commit
a7098639
authored
Dec 27, 2022
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打开隐藏标签页无数据缺陷解决
parent
43d7ffcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
6 deletions
+54
-6
Pattern.js
src/model/Botset/Pattern.js
+2
-1
Cnyp.vue
src/views/Business/Botset/Cnyp.vue
+44
-2
index.vue
src/views/Business/Botset/index.vue
+8
-3
No files found.
src/model/Botset/Pattern.js
View file @
a7098639
...
@@ -642,7 +642,8 @@ export default {
...
@@ -642,7 +642,8 @@ export default {
{
max
:
4
,
message
:
"长度不能超过4"
}
{
max
:
4
,
message
:
"长度不能超过4"
}
],
],
"cnybop.cnyinc.dpayeedate"
:[
"cnybop.cnyinc.dpayeedate"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
// {type: "date", required: false, message: "输入正确的日期"}
{
type
:
"string"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
],
"cnybop.cnyinc.fprepayeeamt"
:[
"cnybop.cnyinc.fprepayeeamt"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
...
...
src/views/Business/Botset/Cnyp.vue
View file @
a7098639
...
@@ -37,7 +37,11 @@
...
@@ -37,7 +37,11 @@
import
Basp2
from
"./Basp2"
;
import
Basp2
from
"./Basp2"
;
import
Basp3
from
"./Basp3"
;
import
Basp3
from
"./Basp3"
;
const
tabNameToRulePathMapping
=
{
"basp2"
:
"bopmod.dbdp.basp"
,
"basp3"
:
"bopmod.dbap.basp"
,
"incp"
:
"cnybop.incp"
,
}
export
default
{
export
default
{
inject
:
[
"root"
],
inject
:
[
"root"
],
...
@@ -57,7 +61,45 @@
...
@@ -57,7 +61,45 @@
},
},
methods
:
{
methods
:
{
...
Event
,
...
Event
,
handleChange
()
{}
handleChange
(
names
)
{
if
(
this
.
isInDisplay
)
{
return
}
const
arr
=
[];
for
(
let
i
=
0
;
i
<
names
.
length
;
i
++
)
{
const
n
=
names
[
i
];
const
path
=
tabNameToRulePathMapping
[
n
]
if
(
path
)
{
arr
.
push
(
path
)
}
}
let
rulePath
=
arr
.
join
(
","
);
if
(
!!
rulePath
)
{
//rulePath不为空串
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
);
}
});
}
},
myTabClick
(
tab
)
{
this
.
tabClick
(
tab
);
let
name
=
tab
.
name
;
let
rulePath
;
if
(
name
===
"basp3"
)
{
rulePath
=
"bopmod.dbap.basp"
;
}
if
(
name
===
"basp2"
)
{
rulePath
=
"bopmod.dbdp.basp"
;
}
if
(
!!
rulePath
)
{
this
.
executeRule
(
rulePath
).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
res
.
data
);
}
});
}
},
},
},
created
:
function
()
{},
created
:
function
()
{},
};
};
...
...
src/views/Business/Botset/index.vue
View file @
a7098639
...
@@ -254,9 +254,14 @@ export default {
...
@@ -254,9 +254,14 @@ export default {
},
},
},
},
},
},
methods
:{
methods
:
{
//tabClick(){}
myTabClick
(
tab
)
{
},
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
}
},
created
:
async
function
(){
created
:
async
function
(){
console
.
log
(
"进入botset交易"
);
console
.
log
(
"进入botset交易"
);
let
rtnmsg
=
await
this
.
init
({})
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