Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
593ef8c4
Commit
593ef8c4
authored
Feb 01, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改添加工作人员图片
parent
2dbcca49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
base-manager-ui/admin/src/pages/basicset/workman/components/EditPersonel.vue
...in/src/pages/basicset/workman/components/EditPersonel.vue
+16
-10
base-manager-ui/admin/src/pages/basicset/workman/components/addpersonnel.vue
...in/src/pages/basicset/workman/components/addpersonnel.vue
+2
-1
No files found.
base-manager-ui/admin/src/pages/basicset/workman/components/EditPersonel.vue
View file @
593ef8c4
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
title=
"编辑工作人员"
title=
"编辑工作人员"
ok-text=
"确认"
ok-text=
"确认"
cancel-text=
"取消"
cancel-text=
"取消"
@
ok=
"hideModal"
width=
"820px"
width=
"820px"
:maskClosable=
"false"
:maskClosable=
"false"
>
>
...
@@ -199,9 +198,10 @@
...
@@ -199,9 +198,10 @@
list-type=
"picture-card"
list-type=
"picture-card"
class=
"avatar-uploader"
class=
"avatar-uploader"
:show-upload-list=
"false"
:show-upload-list=
"false"
:customRequest=
"uploadImg"
:before-upload=
"beforeUpload"
:before-upload=
"beforeUpload"
:action=
"api + 'base/file/commonupload'"
:accept=
"accept"
:accept=
"accept"
@
change=
"handleChange"
>
>
<img
<img
v-if=
"form.photoPath"
v-if=
"form.photoPath"
...
@@ -307,11 +307,16 @@
...
@@ -307,11 +307,16 @@
</a-col>
</a-col>
</a-row>
</a-row>
</a-form-model>
</a-form-model>
<!-- 按钮 -->
<div
slot=
"footer"
>
<a-button
@
click=
"handleReset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"hideModal"
>
确定
</a-button>
</div>
</a-modal>
</a-modal>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getWindowList
,
saveWorkman
,
uploadFile
}
from
"
@/services/dept
"
;
import
{
getWindowList
,
saveWorkman
}
from
"
@/services/dept
"
;
import
{
modelList
}
from
"
@/services/basicsetFun
"
;
import
{
modelList
}
from
"
@/services/basicsetFun
"
;
import
{
changePhone
,
changeLandline
}
from
"
@/utils/validate
"
;
import
{
changePhone
,
changeLandline
}
from
"
@/utils/validate
"
;
export
default
{
export
default
{
...
@@ -485,17 +490,18 @@ export default {
...
@@ -485,17 +490,18 @@ export default {
// 关闭对话框
// 关闭对话框
handleClose
()
{
handleClose
()
{
this
.
$refs
.
formData
.
resetFields
();
this
.
$refs
.
formData
.
resetFields
();
this
.
loading
=
false
;
this
.
Visible
=
false
;
this
.
Visible
=
false
;
},
},
// 重置
handleReset
()
{
this
.
$refs
.
formData
.
resetFields
();
},
// 照片上传
// 照片上传
async
uploadImg
(
info
)
{
handleChange
({
file
}
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
const
formData
=
new
FormData
();
if
(
file
.
status
==
"
done
"
)
{
formData
.
append
(
"
file
"
,
info
.
file
);
this
.
form
.
photoPath
=
file
.
response
.
url
;
let
res
=
await
uploadFile
(
formData
);
let
{
code
,
url
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
form
.
photoPath
=
url
;
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
},
},
...
...
base-manager-ui/admin/src/pages/basicset/workman/components/addpersonnel.vue
View file @
593ef8c4
...
@@ -555,12 +555,13 @@ export default {
...
@@ -555,12 +555,13 @@ export default {
// 关闭对话框
// 关闭对话框
handleClose
()
{
handleClose
()
{
this
.
$refs
.
formData
.
resetFields
();
this
.
$refs
.
formData
.
resetFields
();
this
.
loading
=
false
;
this
.
Visible
=
false
;
this
.
Visible
=
false
;
},
},
// 照片上传
// 照片上传
handleChange
({
file
})
{
handleChange
({
file
})
{
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
file
.
type
==
"
done
"
)
{
if
(
file
.
status
==
"
done
"
)
{
this
.
form
.
photoPath
=
file
.
response
.
url
;
this
.
form
.
photoPath
=
file
.
response
.
url
;
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
...
...
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