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
12c3225b
Commit
12c3225b
authored
Oct 11, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分前台状态信息由后端控制
parent
2c3516ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
FunctionBtn.vue
src/components/FunctionBtn.vue
+9
-4
commonProcess.js
src/mixin/commonProcess.js
+19
-0
index.js
src/model/Litopn/index.js
+3
-1
No files found.
src/components/FunctionBtn.vue
View file @
12c3225b
...
...
@@ -5,9 +5,9 @@
<
template
>
<div
class=
"m-Btn-eContainer"
v-if=
"!buttonHide && ((!isReview && !funcBtnHide) || showSetBtn)"
>
<div
class=
"m-funcBtn-eContainer"
v-if=
"!isReview && !buttonHide && !funcBtnHide"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"confirm"
:loading=
"$store.state.Status.loading.confirm"
>
{{
$t
(
'buttons.confirm'
)
}}
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"start"
:loading=
"$store.state.Status.loading.submit"
>
{{
$t
(
'buttons.submit'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"check"
:loading=
"$store.state.Status.loading.check"
>
{{
$t
(
'buttons.check'
)
}}
</el-button>
<el-button
type=
"primary"
v-show=
"root.judgeVisiableInfo('mtabut.usrcon')"
size=
"small"
@
click=
"confirm"
:loading=
"$store.state.Status.loading.confirm"
>
{{
$t
(
'buttons.confirm'
)
}}
</el-button>
<el-button
type=
"primary"
v-show=
"root.judgeVisiableInfo('mtabut.sav')"
size=
"small"
@
click=
"start"
:loading=
"$store.state.Status.loading.submit"
>
{{
$t
(
'buttons.submit'
)
}}
</el-button>
<el-button
size=
"small"
v-show=
"root.judgeVisiableInfo('mtabut.chk')"
@
click=
"check"
:loading=
"$store.state.Status.loading.check"
>
{{
$t
(
'buttons.check'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"save"
:loading=
"$store.state.Status.loading.stash"
>
{{
$t
(
'buttons.stash'
)
}}
</el-button>
<el-button
size=
"small"
@
click=
"handleCancel"
>
{{
$t
(
'buttons.quit'
)
}}
</el-button>
</div>
...
...
@@ -45,6 +45,7 @@
// 反洗钱组件引入
export
default
{
inject
:
[
"root"
],
// 如果需要制裁信息按钮则给组件传 showAml 方法,如果不需要则不传
props
:
[
"handleSubmit"
,
"handleCheck"
,
"handleStash"
,
"handleExit"
,
"hideFuncBtn"
,
"handleConfirm"
],
data
:
function
()
{
...
...
@@ -79,9 +80,13 @@ export default {
},
buttonHide
()
{
return
this
.
$route
.
path
.
indexOf
(
"display"
)
!==
-
1
;
}
},
},
methods
:
{
// judgeVisiableInfo() {
// },
start
:
async
function
()
{
this
.
handleSubmit
&&
(
await
this
.
handleSubmit
());
},
...
...
src/mixin/commonProcess.js
View file @
12c3225b
...
...
@@ -382,6 +382,25 @@ export default {
layout
.
changeSize
(
1
);
layout
.
currentTool
=
currentTool
;
layout
.
toolTitle
=
toolTitle
;
},
/**
* 判断状态信息,包括visiable,modified,enabled等
*/
judgeVisiableInfo
(
rulePath
){
var
model
=
this
.
model
;
if
(
model
==
null
){
return
false
;
}
var
info
=
this
.
model
.
statusInfo
;
if
(
info
==
null
||
info
.
length
==
0
){
return
false
;
}
var
visiable
=
info
[
"visiable"
];
if
(
visiable
[
rulePath
]
==
null
){
return
false
;
}
return
visiable
[
rulePath
];
}
},
computed
:
{
...
...
src/model/Litopn/index.js
View file @
12c3225b
...
...
@@ -299,7 +299,8 @@ export default class Litopn{
hmdmod2
:{
bennam
:
""
,
// 交易对手名称 .hmdmod2.bennam
},
pageId
:
""
// ctx的key
pageId
:
""
,
// ctx的key
statusInfo
:
""
,
}
}
}
\ No newline at end of file
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