Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
c474a79bf357fbbaac103bf07c5d561b7271ab6e
1 parent
88c8fc09
告警消除页面审批人修改
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
hg-monitor-web-base/src/main/resources/static/vue3/public/css/alarmsClear.css
hg-monitor-web-base/src/main/resources/static/vue3/src/views/alarmsClearEditor/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/views/alarmsClearEditor/index.js
hg-monitor-web-base/src/main/resources/static/vue3/public/css/alarmsClear.css
View file @
c474a79
...
...
@@ -121,3 +121,7 @@
text-align
:
left
;
padding-bottom
:
10px
;
}
.update-icon
{
cursor
:
pointer
;
color
:
#409EFF
;
}
\ No newline at end of file
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/alarmsClearEditor/index.html
View file @
c474a79
...
...
@@ -106,7 +106,8 @@
clearable
/>
</span>
<span
class=
"title-handle-per"
v-if=
"!isExamine"
>
审批人:{{approverName}}
<el-button
v-if=
"!isExamine"
type=
"primary"
@
click=
"showUserDialog(true)"
size=
"small"
>
选择审批人
</el-button>
<span
class=
"title-handle-per"
v-if=
"!isExamine"
>
审批人:
<span
class=
"approve-name"
>
{{approverLabel}}
<i
class=
"el-icon-edit-outline update-icon"
v-if=
"!isExamine"
@
click=
"showUserDialog(true)"
></i></span>
<!-- <el-button v-if="!isExamine" type="primary" @click="showUserDialog(true)" size="small">选择审批人</el-button>-->
</span>
<span
class=
"title-handle-per"
v-if=
"!isExamine"
>
时间:{{dateTime}}
</span>
</div>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/views/alarmsClearEditor/index.js
View file @
c474a79
...
...
@@ -22,6 +22,7 @@ export default {
//审批人
let
approver
=
Vue
.
ref
(
''
);
let
approverName
=
Vue
.
ref
(
'admin'
);
let
approverLabel
=
Vue
.
ref
(
'admin'
);
//操作人
let
loginName
=
Vue
.
ref
(
''
);
let
options
=
Vue
.
ref
([{
value
:
'001'
,
name
:
'admin'
},{
value
:
'002'
,
name
:
'root'
}])
...
...
@@ -89,7 +90,7 @@ export default {
//关键字标签
const
inputValue
=
Vue
.
ref
(
''
)
const
dynamicTags
=
Vue
.
ref
([
'
Tag 1'
,
'Tag 2'
,
'Tag 3
'
])
const
dynamicTags
=
Vue
.
ref
([
'
服务器'
,
'虚拟机
'
])
const
inputVisible
=
Vue
.
ref
(
false
)
//tag标签
...
...
@@ -247,8 +248,12 @@ export default {
let
userIds
=
userObj
.
user
.
map
(
function
(
v
)
{
return
v
.
username
;
});
let
userNames
=
userObj
.
user
.
map
(
function
(
v
)
{
return
v
.
nickname
;
});
console
.
log
(
"userIds"
,
userObj
)
approverName
.
value
=
userIds
[
0
];
approverLabel
.
value
=
userNames
[
0
];
}
...
...
@@ -397,7 +402,8 @@ export default {
if
(
res
&&
res
.
code
==
0
)
{
let
data
=
res
.
object
;
if
(
data
){
approverName
.
value
=
data
.
adminName
;
approverName
.
value
=
data
.
admin
;
approverLabel
.
value
=
data
.
adminName
;
}
}
})
...
...
@@ -415,7 +421,7 @@ export default {
timer
.
value
=
null
;
})
return
{
change
,
changetext
,
saveDetail
,
approver
,
approverName
,
loginName
,
detailText
,
detail
,
repositoryInto
,
reason
,
citeCover
,
alarmType
,
change
,
changetext
,
saveDetail
,
approver
,
approverName
,
approverLabel
,
loginName
,
detailText
,
detail
,
repositoryInto
,
reason
,
citeCover
,
alarmType
,
options
,
inputValue
,
dynamicTags
,
inputVisible
,
handleClose
,
showInput
,
handleInputConfirm
,
getKeyword
,
timer
,
dateTime
,
getDateTime
,
timeFormat
,
title
,
dialogVisible
,
height
,
dataList
,
columns
,
closeDetail
,
okfunc
,
getPage
,
selectionChange
,
dynamicTagsAppend
,
...
...
Please
register
or
login
to post a comment