Merge pull request #4316 from dataease/pr@dev@feat_local_user_resetpwd

feat(用户管理): 第三方平台用户禁止重置密码
This commit is contained in:
fit2cloud-chenyw 2023-01-09 11:53:47 +08:00 committed by GitHub
commit f8ae11398f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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