|
@@ -739,10 +739,18 @@ export default {
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.$confirm('创建密码并发送到邮箱:' + row.mailbox, '提示', {
|
|
|
|
|
|
+
|
|
|
|
+ this.$prompt('请输入登录密码', '鉴别操作', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ inputType: 'text',
|
|
|
|
+ customClass:'no-autofill-pwd',
|
|
|
|
+ inputValidator: (val) => {
|
|
|
|
+ if (val === null || val.length < 1 || val.length > 20) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ inputErrorMessage: '不能为空,最多可录入20个字符',
|
|
beforeClose(action, instance, done) {
|
|
beforeClose(action, instance, done) {
|
|
if (action === "confirm") {
|
|
if (action === "confirm") {
|
|
instance.$refs["confirm"].$el.onclick = (function (e) {
|
|
instance.$refs["confirm"].$el.onclick = (function (e) {
|
|
@@ -755,13 +763,12 @@ export default {
|
|
done();
|
|
done();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }).then(() => {
|
|
|
|
- this.doResetPwd(row)
|
|
|
|
- }).catch(() => {
|
|
|
|
- //取消操作
|
|
|
|
- });
|
|
|
|
|
|
+ }).then(async ({value}) => {
|
|
|
|
+ this.doResetPwd(row, value)
|
|
|
|
+ }).catch((e) => {
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- doResetPwd: debounce(async function (row) {
|
|
|
|
|
|
+ doResetPwd: debounce(async function (row,againPwd) {
|
|
let sysTime
|
|
let sysTime
|
|
let lk
|
|
let lk
|
|
await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
@@ -772,6 +779,7 @@ export default {
|
|
|
|
|
|
const param = {
|
|
const param = {
|
|
id: row.id,
|
|
id: row.id,
|
|
|
|
+ againPwd: againPwd,
|
|
sysTime: sysTime,
|
|
sysTime: sysTime,
|
|
lk: lk
|
|
lk: lk
|
|
}
|
|
}
|
|
@@ -956,10 +964,18 @@ export default {
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.$confirm('是否解锁用户?', '提示', {
|
|
|
|
|
|
+
|
|
|
|
+ this.$prompt('请输入登录密码', '鉴别操作', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
- type: 'warning',
|
|
|
|
|
|
+ inputType: 'text',
|
|
|
|
+ customClass:'no-autofill-pwd',
|
|
|
|
+ inputValidator: (val) => {
|
|
|
|
+ if (val === null || val.length < 1 || val.length > 20) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ inputErrorMessage: '不能为空,最多可录入20个字符',
|
|
beforeClose(action, instance, done) {
|
|
beforeClose(action, instance, done) {
|
|
if (action === "confirm") {
|
|
if (action === "confirm") {
|
|
instance.$refs["confirm"].$el.onclick = (function (e) {
|
|
instance.$refs["confirm"].$el.onclick = (function (e) {
|
|
@@ -972,16 +988,17 @@ export default {
|
|
done();
|
|
done();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }).then(() => {
|
|
|
|
- this.doRelock(_selectData)
|
|
|
|
- }).catch(() => {
|
|
|
|
- //取消操作
|
|
|
|
- });
|
|
|
|
|
|
+ }).then(async ({value}) => {
|
|
|
|
+ this.doRelock(_selectData, value)
|
|
|
|
+ }).catch((e) => {
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 解锁提交
|
|
* 解锁提交
|
|
*/
|
|
*/
|
|
- doRelock: debounce(async function (_selectData) {
|
|
|
|
|
|
+ doRelock: debounce(async function (_selectData, againPwd) {
|
|
let sysTime
|
|
let sysTime
|
|
let lk
|
|
let lk
|
|
await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
await this.$axios.get('/sysPolicyController/getLicenseKey').then((res) => {
|
|
@@ -991,6 +1008,7 @@ export default {
|
|
})
|
|
})
|
|
const param = {
|
|
const param = {
|
|
id: _selectData.id,
|
|
id: _selectData.id,
|
|
|
|
+ againPwd: againPwd,
|
|
sysTime: sysTime,
|
|
sysTime: sysTime,
|
|
lk: lk
|
|
lk: lk
|
|
}
|
|
}
|
|
@@ -1233,14 +1251,13 @@ export default {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
- .no-autofill-pwd{
|
|
|
|
- .el-message-box__content{
|
|
|
|
- .el-input__inner{
|
|
|
|
- text-security:disc!important;
|
|
|
|
- -webkit-text-security:disc!important;
|
|
|
|
- }
|
|
|
|
|
|
+.no-autofill-pwd{
|
|
|
|
+ .el-message-box__content{
|
|
|
|
+ .el-input__inner{
|
|
|
|
+ text-security:disc!important;
|
|
|
|
+ -webkit-text-security:disc!important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+}
|
|
</style>
|
|
</style>
|