Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
709b3e3b
authored
2024-05-16 13:23:07 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户信息模块功能的完善
1 parent
5265bc92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
src/api/dzqm.js
src/views/system/userInfo/index.vue
src/api/dzqm.js
View file @
709b3e3
...
...
@@ -16,4 +16,10 @@ export function dzqmUpload (data) {
method
:
'post'
,
data
})
}
export
function
dzqmDelete
(
bsm
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/dzqm/delete?bsm='
+
bsm
,
method
:
'delete'
})
}
\ No newline at end of file
...
...
src/views/system/userInfo/index.vue
View file @
709b3e3
...
...
@@ -21,11 +21,13 @@
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"签名路径:"
>
<img
:src=
"ruleForm.dzqmurl"
class=
"signature-image"
>
</el-form-item>
</el-col>
<el-form-item
label=
"签名路径:"
>
<div
class=
"signature-image"
>
<img
:src=
"ruleForm.dzqmurl"
v-if=
"ruleForm.dzqmurl"
>
<el-empty
description=
"暂无签名"
v-else
></el-empty>
<i
class=
"el-icon-circle-close"
@
click=
"handleDel"
v-if=
"ruleForm.dzqmurl"
></i>
</div>
</el-form-item>
</el-row>
</el-form>
</div>
...
...
@@ -50,7 +52,7 @@
</div>
</
template
>
<
script
>
import
{
dzqmUpload
}
from
'@/api/dzqm'
import
{
dzqmUpload
,
dzqmDelete
}
from
'@/api/dzqm'
import
{
getUserInfo
}
from
'@/api/user'
export
default
{
name
:
"dzqm"
,
...
...
@@ -97,6 +99,16 @@
this
.
ruleForm
.
dzqmurl
=
res
.
message
}
})
},
async
handleDel
()
{
let
res
=
await
dzqmDelete
(
this
.
ruleForm
.
dzqbsm
)
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'删除成功!'
,
type
:
'success'
})
this
.
ruleForm
.
dzqmurl
=
''
}
}
}
};
...
...
@@ -104,9 +116,20 @@
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
.signature-image
{
width
:
100%
;
max-height
:
360px
;
object-fit
:
contain
;
position
:
relative
;
min-height
:
200px
;
img
{
width
:
100%
;
max-height
:
350px
;
object-fit
:
contain
;
}
.el-icon-circle-close
{
position
:
absolute
;
right
:
0
;
top
:
0
;
cursor
:
pointer
;
font-size
:
26px
;
}
}
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment