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
xwx
3 years ago
Commit
192dc49dd35f762ab4f7314a48a44fd479d19c20
1 parent
92444d3d
乙方运维在职状态修改为必填项,录入时头像设置为添加用户成功之后添加
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
14 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/ry/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/ry/index.js
View file @
192dc49
...
...
@@ -180,7 +180,7 @@ export default {
let
total
=
Vue
.
ref
(
0
);
let
add
=
()
=>
{
title
.
value
=
"
运维人员
录入"
;
title
.
value
=
"
个人信息
录入"
;
componentName
.
value
=
"USER"
;
isAdd
.
value
=
true
;
showDialog
(
true
);
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.html
View file @
192dc49
...
...
@@ -99,7 +99,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"在职状态"
prop=
"
certific
ate"
:readonly=
"true"
class=
"form-class"
>
<el-form-item
label=
"在职状态"
prop=
"
st
ate"
:readonly=
"true"
class=
"form-class"
>
<el-radio-group
v-model=
"ruleForm.state"
:disabled=
"whether"
>
<el-radio
:label=
"1"
>
在职
</el-radio>
<el-radio
:label=
"2"
>
离职
</el-radio>
...
...
hg-monitor-web-base/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
View file @
192dc49
...
...
@@ -187,8 +187,10 @@ const assets = (props, {attrs, slots, emit}) => {
let
showDialog
=
(
flg
)
=>
{
if
(
!
props
.
isAdd
){
op
.
value
=
flg
;
}
else
{
proxy
.
$global
.
showMsg
(
"请先添加用户!"
,
"error"
);
}
proxy
.
$global
.
showMsg
(
"请先添加用户!"
,
"error"
);
}
let
okFunc
=
()
=>
{
...
...
@@ -350,6 +352,9 @@ export default {
],
entryTime
:
[
{
required
:
true
,
message
:
'请选择入职时间'
,
trigger
:
'blur'
}
],
state
:
[
{
required
:
true
,
message
:
'请选择在职状态'
,
trigger
:
'blur'
}
]
});
...
...
@@ -380,18 +385,23 @@ export default {
let
getFile
=
(
param
)
=>
{
let
fileObj
=
param
.
file
let
params
=
{
file
:
fileObj
,
id
:
props
.
parentNode
.
id
}
// 上传文件
proxy
.
$http
.
uploadFile
(
"/api-web/bOpsPerson/uploadFile"
,
params
,
function
(
res
)
{
if
(
res
&&
res
.
success
)
{
proxy
.
$global
.
showMsg
(
"上传成功!"
);
if
(
!
props
.
isAdd
){
let
fileObj
=
param
.
file
let
params
=
{
file
:
fileObj
,
id
:
props
.
parentNode
.
id
}
})
imageUrl
.
value
=
URL
.
createObjectURL
(
fileObj
);
// 上传文件
proxy
.
$http
.
uploadFile
(
"/api-web/bOpsPerson/uploadFile"
,
params
,
function
(
res
)
{
if
(
res
&&
res
.
success
)
{
proxy
.
$global
.
showMsg
(
"上传成功!"
);
}
})
imageUrl
.
value
=
URL
.
createObjectURL
(
fileObj
);
}
else
{
proxy
.
$global
.
showMsg
(
"请先添加用户!"
,
"error"
);
}
}
let
beforeAvatarUpload
=
(
file
)
=>
{
...
...
Please
register
or
login
to post a comment