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
29ae3e225475605525e8e42f1896ce27f5e5ce2a
1 parent
fbd06b82
乙方运维优化;
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
19 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/script/global.js
hg-monitor-web-zj/src/main/resources/static/vue3/public/css/operationMaintenance.css
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/ry/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/script/global.js
View file @
29ae3e2
...
...
@@ -10,6 +10,16 @@ var global = {};
global
.
layui
=
window
.
parent
.
layui
;
global
.
common
=
{
getUserName
:
function
(){
return
localStorage
.
getItem
(
'lgn'
);
},
getUserRole
:
function
(){
let
roleStr
=
sessionStorage
.
getItem
(
'roles'
);
if
(
roleStr
){
return
roleStr
.
split
(
","
);
}
return
[];
}
};
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/public/css/operationMaintenance.css
View file @
29ae3e2
...
...
@@ -5,11 +5,17 @@
/* 属性配置 -- end */
.yfyw-user
{
padding-top
:
6px
;
width
:
99%
;
}
.yfyw-user
.el-avatar
img
{
width
:
80px
!important
;
height
:
80px
!important
;
}
.yfyw-user
.title
{
font-weight
:
bold
;
text-align
:
left
;
padding-left
:
40px
;
margin-bottom
:
6px
}
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/ry/index.js
View file @
29ae3e2
...
...
@@ -61,8 +61,9 @@ export default {
sortable
:
true
,
click
:
function
(
row
)
{
// 点击弹框展示人员信息
title
.
value
=
"
人员
信息"
;
title
.
value
=
"
个人
信息"
;
componentName
.
value
=
"USER"
;
props
.
parentNode
.
id
=
row
.
id
;
showDialog
(
true
);
}
},
{
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.html
View file @
29ae3e2
<div
class=
"yfyw-user"
>
<div>
<el-avatar
:size=
"80"
:src=
"imageUrl"
>
<el-avatar
:size=
"80"
:src=
"imageUrl"
shape=
"circle"
>
<i
class=
"iconfont icon-yonghu"
style=
"font-size: 80px;"
/>
</el-avatar>
<el-upload
...
...
@@ -21,7 +21,7 @@
<el-row
:gutter=
"5"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"姓名"
prop=
"nickname"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.nickname"
:readonly=
"
isAdmin()
"
></el-input>
<el-input
v-model=
"ruleForm.nickname"
:readonly=
"
true
"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -34,7 +34,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"年龄"
prop=
"age"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.age"
type=
"number"
></el-input>
<el-input
v-model=
"ruleForm.age"
type=
"number"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -43,7 +43,7 @@
<el-row
:gutter=
"5"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"座机号码"
prop=
"tel"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.tel"
></el-input>
<el-input
v-model=
"ruleForm.tel"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -53,7 +53,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"电子邮箱"
prop=
"email"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.email"
id=
"email"
></el-input>
<el-input
v-model=
"ruleForm.email"
id=
"email"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -67,7 +67,7 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"学历"
prop=
"education"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.education"
></el-input>
<el-input
v-model=
"ruleForm.education"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -80,7 +80,7 @@
<el-row
:gutter=
"5"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"身份证"
prop=
"idcard"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.idcard"
></el-input>
<el-input
v-model=
"ruleForm.idcard"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -108,12 +108,12 @@
<el-row
:gutter=
"5"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"政治面貌"
prop=
"politicsStatus"
class=
"form-class"
>
<el-input
v-model=
"ruleForm.politicsStatus"
></el-input>
<el-input
v-model=
"ruleForm.politicsStatus"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"在职状态"
prop=
"certificate"
:readonly=
"isAdmin()"
class=
"form-class"
>
<el-radio-group
v-model=
"ruleForm.state"
>
<el-form-item
label=
"在职状态"
prop=
"certificate"
:readonly=
"true"
class=
"form-class"
>
<el-radio-group
v-model=
"ruleForm.state"
:disabled=
"true"
>
<el-radio
:label=
"1"
>
在职
</el-radio>
<el-radio
:label=
"2"
>
离职
</el-radio>
</el-radio-group>
...
...
@@ -124,18 +124,18 @@
<el-row
:gutter=
"5"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"获得证书"
prop=
"post"
class=
"form-textarea"
>
<el-input
v-model=
"ruleForm.certificate"
type=
"textarea"
></el-input>
<el-input
v-model=
"ruleForm.certificate"
type=
"textarea"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"5"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"家庭住址"
prop=
"post"
class=
"form-textarea"
>
<el-input
v-model=
"ruleForm.post"
type=
"textarea"
></el-input>
<el-input
v-model=
"ruleForm.post"
type=
"textarea"
:readonly=
"isAdmin()"
></el-input>
</el-form-item>
</el-col>
</el-row>
<div
style=
"text-align: center;padding-top: 10px"
>
<div
style=
"text-align: center;padding-top: 10px"
v-if=
"!isAdmin()"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"saveUser()"
>
保存基本信息
</el-button>
</div>
</el-form>
...
...
@@ -173,13 +173,10 @@
</div>
</div>
<div
class=
"zc-item-tools"
>
<el-button-group
size=
"mini"
>
<el-button-group
size=
"mini"
v-if=
"!isAdmin()"
>
<el-button
@
click=
"btnClick('add',arr,`新建${icon[k].name}资产`)"
>
<i
class=
"el-icon-plus"
/>
</el-button>
<!--<el-button @click="btnClick('save',arr,`保存${icon[k].name}资产`)">
<i class="el-icon-check"/>
</el-button>-->
<el-button
@
click=
"btnClick('edit',arr,`编辑${icon[k].name}资产`)"
>
<i
class=
"el-icon-edit"
/>
</el-button>
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
View file @
29ae3e2
...
...
@@ -421,7 +421,9 @@ export default {
}
let
isAdmin
=
()
=>
{
return
localStorage
.
getItem
(
'lgn'
)
!=
'admin'
;
let
userRoleArr
=
proxy
.
$global
.
common
.
getUserRole
();
let
userName
=
proxy
.
$global
.
common
.
getUserName
();
return
userName
!=
'admin'
&&
userName
!=
'root'
&&
!
userRoleArr
.
concat
(
'pmp'
);
}
const
{
...
...
Please
register
or
login
to post a comment