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
b5ca9327
Commit
b5ca9327
authored
Sep 19, 2022
by
lianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letopn公共页面Docpan.vue中detail按钮弹出页中的supress/active按钮
parent
d109df65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
Docpan.vue
src/views/Public/Docpan.vue
+34
-4
No files found.
src/views/Public/Docpan.vue
View file @
b5ca9327
...
...
@@ -218,7 +218,7 @@
width=
"60%"
center
>
<el-form
label-width=
"100px"
:model=
"dialog"
>
<el-form
label-width=
"100px"
:model=
"dialog"
:disabled=
"suppress"
>
<c-row>
<c-col
:span=
"12"
>
<c-col>
...
...
@@ -423,12 +423,12 @@
</el-date-picker
></el-form-item>
</c-col>
<c-col
<c-col
v-if=
"this.suppress!=true"
><el-form-item
label=
"Contact"
><el-input
v-model=
"dialog.ptcnam"
/></el-form-item>
</c-col>
<c-col
:span=
"22"
<c-col
:span=
"22"
v-if=
"this.suppress!=true"
><el-form-item
:label=
"
title == 'MT799'
...
...
@@ -453,7 +453,7 @@
</div>
</el-form-item>
</c-col>
<c-col
:span=
"2"
>
<c-col
:span=
"2"
v-if=
"this.suppress!=true"
>
<c-button
size=
"mini"
icon=
"el-icon-more"
>
</c-button>
</c-col>
</c-row>
...
...
@@ -463,6 +463,15 @@
<c-button
type=
"primary"
@
click=
"saveDialog"
>
确 定
</c-button
>
<c-button
type=
"primary"
@
click=
"activateDialog"
v-if=
"dialog.delflg=='D'"
>
应用
</c-button
>
<c-button
type=
"primary"
@
click=
"suppressDialog"
v-else-if=
"dialog.lev=='1'||dialog.mliflg!=''"
>
禁用
</c-button
>
<c-button
type=
"primary"
@
click=
"activateDialog"
v-else
>
删除
</c-button
>
<c-button
@
click=
"centerDialogVisible = false"
>
取 消
</c-button
>
...
...
@@ -505,6 +514,7 @@ export default {
],
data
:
[],
},
suppress
:
false
,
};
},
watch
:
{
...
...
@@ -535,6 +545,26 @@ export default {
}
})
},
activateDialog
()
{
this
.
executeRule
(
"trnmod.trndoc.doccur.butdel"
).
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
){
//TODO
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
suppressDialog
()
{
this
.
executeRule
(
"trnmod.trndoc.doccur.butdel"
).
then
(
res
=>
{
if
(
res
.
respCode
==
SUCCESS
){
//TODO
this
.
suppress
=
true
;
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
handleDisplay
(
index
,
row
,
doceot
){
//后续要根据快照模式切换请求方式
let
cortyp
=
row
.
cortyp
...
...
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