Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
NLT-e-cigarette
Commits
d1b5f430
Commit
d1b5f430
authored
Jul 05, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
855415b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
user.js
src/api/system/user.js
+2
-3
index.vue
src/views/system/user/index.vue
+21
-22
No files found.
src/api/system/user.js
View file @
d1b5f430
...
@@ -76,10 +76,9 @@ export function delUser(userId) {
...
@@ -76,10 +76,9 @@ export function delUser(userId) {
}
}
// 用户密码重置
// 用户密码重置
export
function
resetUserPwd
(
businessId
,
password
)
{
export
function
resetUserPwd
(
businessId
)
{
const
data
=
{
const
data
=
{
businessId
,
businessId
password
}
}
return
request
({
return
request
({
url
:
'/system/user/resetPassword'
,
url
:
'/system/user/resetPassword'
,
...
...
src/views/system/user/index.vue
View file @
d1b5f430
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
<div>
Group
</div>
<div>
Group
</div>
</
template
>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
nltBz
===
'D'
?
'白班'
:
scope
.
row
.
nltBz
===
'N'
?
'夜班'
:
'-'
}}
{{
scope
.
row
.
nltBz
===
'D'
?
'白班'
:
scope
.
row
.
nltBz
===
'N'
?
'夜班'
:
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"nltLw"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
prop=
"nltLw"
:show-overflow-tooltip=
"true"
>
...
@@ -314,7 +314,7 @@
...
@@ -314,7 +314,7 @@
</el-row>
</el-row>
<!-- 添加或修改参数配置对话框 -->
<!-- 添加或修改参数配置对话框 -->
<el-dialog
:close-on-click-modal=
"false"
class=
"userDialog"
:title=
"title"
:visible
.
sync=
"open"
width=
"60%"
append-to-body
>
<el-dialog
:close-on-click-modal=
"false"
class=
"userDialog"
:title=
"title"
:visible
.
sync=
"open"
width=
"60%"
append-to-body
>
<el-form
v-loading=
"updateLoading"
ref=
"form
"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
v-loading=
"updateLoading
"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
class=
"labelHeight"
label=
"工号"
prop=
"username"
>
<el-form-item
class=
"labelHeight"
label=
"工号"
prop=
"username"
>
...
@@ -1069,27 +1069,25 @@ export default {
...
@@ -1069,27 +1069,25 @@ export default {
},
},
/** 重置密码按钮操作 */
/** 重置密码按钮操作 */
handleResetPwd
(
row
)
{
handleResetPwd
(
row
)
{
this
.
ruleForm
.
newPassword
=
''
//
this.ruleForm.newPassword = ''
this
.
ruleForm
.
row
=
row
.
businessId
this
.
ruleForm
.
row
=
row
.
businessId
this
.
resetPwdDiaLog
=
!
this
.
resetPwdDiaLog
// this.resetPwdDiaLog = !this.resetPwdDiaLog
},
this
.
$confirm
(
'所选择用户密码将被重置,是否继续?'
,
'提示'
,
{
handleResetPwdSure
()
{
confirmButtonText
:
'确定 Confirm'
,
this
.
$refs
.
ruleForm
.
validate
(
pass
=>
{
cancelButtonText
:
'取消 Cancel'
,
if
(
pass
)
{
cancelButtonClass
:
'btn-custom-cancel'
,
this
.
userRestLoading
=
true
type
:
'warning'
resetUserPwd
(
this
.
ruleForm
.
row
,
this
.
ruleForm
.
newPassword
).
then
(
response
=>
{
}).
then
(()
=>
{
if
(
response
.
code
===
200
)
{
resetUserPwd
(
this
.
ruleForm
.
row
).
then
(
response
=>
{
this
.
$message
({
if
(
response
.
code
===
200
)
{
message
:
'修改成功'
,
this
.
$message
({
type
:
'success'
message
:
'重置成功'
,
})
type
:
'success'
this
.
resetPwdDiaLog
=
false
})
}
this
.
resetPwdDiaLog
=
false
this
.
userRestLoading
=
false
}
}).
catch
(
e
=>
{
this
.
userRestLoading
=
false
})
this
.
userRestLoading
=
false
}
else
{
}).
catch
(
e
=>
{
this
.
userRestLoading
=
false
})
return
false
}
})
})
},
},
// 数组值是否相同
// 数组值是否相同
...
@@ -1271,6 +1269,7 @@ export default {
...
@@ -1271,6 +1269,7 @@ export default {
}
}
},
},
employeeUpload
(
file
,
fileList
)
{
employeeUpload
(
file
,
fileList
)
{
console
.
log
(
'file'
,
file
)
this
.
$nextTick
(
_
=>
{
this
.
$nextTick
(
_
=>
{
const
a
=
document
.
querySelectorAll
(
'.el-upload-list__item-name'
)
const
a
=
document
.
querySelectorAll
(
'.el-upload-list__item-name'
)
a
[
0
].
title
=
file
.
name
a
[
0
].
title
=
file
.
name
...
...
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