mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
fix: 遗漏sql补充
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user