Commit d1b5f430 authored by 张伯涛's avatar 张伯涛

修改

parent 855415b7
...@@ -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',
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment