feat(User Management): The initial password is displayed on the new user page.

This commit is contained in:
dataeaseShu
2025-11-06 14:05:44 +08:00
committed by dataeaseShu
parent a7521f2260
commit d52a2b6411
4 changed files with 28 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
{
"menu": {
"Dashboard1:": "Default password:{msg}",
"add_interface_credentials": "Please add interface credentials",
"Data Q&A": "Data Q&A",
"Data Connections": "Data Sources",
+1
View File
@@ -1,5 +1,6 @@
{
"menu": {
"Dashboard1:": "기본 비밀번호:{msg}",
"add_interface_credentials": "인터페이스 자격 증명을 추가하십시오",
"Data Q&A": "스마트 데이터 조회",
"Data Connections": "데이터 소스",
+3 -1
View File
@@ -1,6 +1,8 @@
{
"menu": {
"Dashboard1": "默认密码:{msg}",
"add_interface_credentials": "请添加接口凭证",
"kkk:": "默认密码:{msg}",
"Data Q&A": "智能问数",
"Data Connections": "数据源",
"Dashboard": "仪表盘",
@@ -716,4 +718,4 @@
"input_account": "请输入账号",
"redirect_2_auth": "正在跳转至 {0} 认证,{1} 秒..."
}
}
}
+23
View File
@@ -236,6 +236,19 @@
size="600px"
:before-close="onFormClose"
>
<div style="margin-bottom: 12px" class="down-template">
<span class="icon-span">
<el-icon>
<Icon name="icon_warning_filled"><icon_warning_filled class="svg-icon" /></Icon>
</el-icon>
</span>
<div class="down-template-content" style="align-items: center">
<span>{{ t('menu.Dashboard1', { msg: 'SQLBot@123456' }) }}</span>
<el-button style="margin-left: 4px" size="small" text @click="copyPassword">{{
t('datasource.copy')
}}</el-button>
</div>
</div>
<el-form
ref="termFormRef"
:model="state.form"
@@ -521,6 +534,16 @@ const copyText = () => {
})
}
const copyPassword = () => {
copy('SQLBot@123456')
.then(function () {
ElMessage.success(t('embedded.copy_successful'))
})
.catch(function () {
ElMessage.error(t('embedded.copy_failed'))
})
}
const setButtonRef = (el: any, row: any) => {
row.buttonRef = el
}