Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart-office-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-office-platform
Commits
a4fb4d67
Commit
a4fb4d67
authored
May 26, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步用户
parent
43ef0998
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
3 deletions
+71
-3
smart-office-manager-ui/admin/src/views/workman/list.vue
smart-office-manager-ui/admin/src/views/workman/list.vue
+68
-0
smart-office-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+1
-1
smart-office-manager/src/test/java/com/mortals/httpclient/workman/WorkmanController.http
...ava/com/mortals/httpclient/workman/WorkmanController.http
+2
-2
No files found.
smart-office-manager-ui/admin/src/views/workman/list.vue
View file @
a4fb4d67
...
...
@@ -60,6 +60,25 @@
</div>
</el-dialog>
<el-dialog
:title=
"user.title"
:visible.sync=
"user.open"
width=
"400px"
append-to-body
>
<el-form
label-width=
"80px"
>
<el-form-item
label=
"新密码"
>
<el-input
v-model=
"newPwd"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitUserForm"
>
确 定
</el-button>
<el-button
@
click=
"user.open = false"
>
取 消
</el-button>
</div>
</el-dialog>
<drawer-show
ref=
"drawerform"
@
ok=
"getData"
/>
</div>
</
template
>
...
...
@@ -131,9 +150,38 @@
this
.
$refs
.
drawerform
.
view
(
row
);
},
handleChangePwd
(
row
)
{
this
.
user
.
title
=
"
修改密码
"
;
this
.
loginName
=
row
.
loginName
;
this
.
newPwd
=
null
;
this
.
user
.
open
=
true
;
},
submitUserForm
()
{
this
.
$post
(
"
/workman/change/password
"
,
{
loginName
:
this
.
loginName
,
newPwd
:
this
.
newPwd
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
"
批量更新大厅设备成功!
"
);
this
.
user
.
open
=
false
;
this
.
getData
();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
},
data
()
{
return
{
loginName
:
null
,
newPwd
:
null
,
// 用户导入参数
upload
:
{
// 是否显示弹出层(工作人员导入)
...
...
@@ -147,6 +195,12 @@
// 上传的地址
url
:
"
/m/workman/importData
"
,
},
user
:
{
// 是否显示弹出层(工作人员导入)
open
:
false
,
// 弹出层标题(工作人员导入)
title
:
"
修改密码
"
,
},
isExport
:
false
,
config
:
{
search
:
[
...
...
@@ -186,7 +240,21 @@
width
:
240
,
formatter
:
row
=>
{
return
(
<
div
>
<
table
-
buttons
noAdd
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
<
span
>
<
/span
>
<
el
-
button
type
=
"
text
"
size
=
"
mini
"
onClick
=
{()
=>
this
.
handleChangePwd
(
row
)}
>
修改密码
<
/el-button
>
<
/div
>
);
}
}
...
...
smart-office-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
a4fb4d67
...
...
@@ -8,7 +8,7 @@
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"test"
:
{
"baseUrl"
:
"http://192.168.0.98:110
91/m
"
,
"baseUrl"
:
"http://192.168.0.98:110
85/office
"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"portal"
:
{
...
...
smart-office-manager/src/test/java/com/mortals/httpclient/workman/WorkmanController.http
View file @
a4fb4d67
...
...
@@ -15,12 +15,12 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
###工作人员列表
POST {{baseUrl}}/workman/list
Authorization: {{authToken}}
Content-Type: application/json
{
"page":1,
"size":10
"size":10,
"deviceCode": "18-93-7f-b7-f9-4a"
}
...
...
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