fix: 遗漏sql补充

This commit is contained in:
meilin.huang
2023-06-21 15:18:43 +08:00
parent 414de9f2eb
commit 4709edcd1c
8 changed files with 33 additions and 12 deletions

View File

@@ -60,15 +60,15 @@
</el-dialog>
<el-dialog title="OTP校验" v-model="otpDialog.visible" @close="loading.signIn = false" :close-on-click-modal="false"
width="450px" :destroy-on-close="true">
width="350px" :destroy-on-close="true">
<el-form ref="otpFormRef" :model="otpDialog.form" :rules="otpDialog.rules" label-width="65px">
<el-form-item v-if="otpDialog.otpUrl" label="二维码">
<qrcode-vue :value="otpDialog.otpUrl" :size="200" level="H" />
</el-form-item>
<el-form-item prop="code" label="OTP" required>
<el-input ref="otpCodeInputRef" v-model.trim="otpDialog.form.code" clearable @keyup.enter="otpVerify"
placeholder="请输入双因素认证APP中显示的授权码"></el-input>
<el-input style="width:220px" ref="otpCodeInputRef" v-model.trim="otpDialog.form.code" clearable @keyup.enter="otpVerify"
placeholder="请输入令牌APP中显示的授权码"></el-input>
</el-form-item>
</el-form>

View File

@@ -59,9 +59,9 @@
<el-button v-auth="'account:changeStatus'" v-if="scope.row.status == -1" type="success"
@click="changeStatus(scope.row)" size="small" plain>启用</el-button>
<el-button v-auth="'account:add'" @click="resetOtpSecret(scope.row)" type="warning" size="small"
plain>重置OTP</el-button>
<el-button v-auth="'account:add'" :disabled="!scope.row.otpSecret || scope.row.otpSecret == '-'"
@click="resetOtpSecret(scope.row)" type="warning" size="small" plain>重置OTP</el-button>
</template>
</el-table-column>
</el-table>
@@ -219,6 +219,7 @@ const resetOtpSecret = async (row: any) => {
id,
});
ElMessage.success('操作成功');
row.otpSecret = "-";
};
const handlePageChange = (curPage: number) => {

View File

@@ -1,8 +1,9 @@
<template>
<div class="role-list">
<el-card>
<el-button type="primary" icon="plus" @click="editConfig(false)">添加</el-button>
<el-button :disabled="chooseId == null" @click="editConfig(chooseData)" type="primary" icon="edit">编辑
<el-button v-auth="'config:save'" type="primary" icon="plus" @click="editConfig(false)">添加</el-button>
<el-button v-auth="'config:save'" :disabled="chooseId == null" @click="editConfig(chooseData)" type="primary"
icon="edit">编辑
</el-button>
<el-table :data="configs" @current-change="choose" ref="table" style="width: 100%">
@@ -60,7 +61,7 @@
<template #footer>
<span class="dialog-footer">
<el-button @click="closeSetConfigDialog()"> </el-button>
<el-button type="primary" @click="setConfig()"> </el-button>
<el-button v-auth="'config:save'" type="primary" @click="setConfig()"> </el-button>
</span>
</template>
</el-dialog>