forked from github/dataease
Merge pull request #4316 from dataease/pr@dev@feat_local_user_resetpwd
feat(用户管理): 第三方平台用户禁止重置密码
This commit is contained in:
commit
f8ae11398f
@ -285,6 +285,7 @@
|
||||
<el-button
|
||||
slot="reference"
|
||||
v-permission="['user:editPwd']"
|
||||
:disabled="resetPwdDisabled(scope.row)"
|
||||
class="de-text-btn mar16"
|
||||
type="text"
|
||||
>{{ $t("member.edit_password") }}</el-button>
|
||||
@ -436,6 +437,9 @@ export default {
|
||||
bus.$off('reload-user-grid', this.search)
|
||||
},
|
||||
methods: {
|
||||
resetPwdDisabled(row) {
|
||||
return ((row.from ?? '') !== '') && row.from > 0
|
||||
},
|
||||
resizeObserver() {
|
||||
this.resizeForFilter = new ResizeObserver(entries => {
|
||||
if (!this.filterTexts.length) return
|
||||
|
Loading…
Reference in New Issue
Block a user