diff --git a/nezha-fronted/src/assets/css/components/page/config/backups.scss b/nezha-fronted/src/assets/css/components/page/config/backups.scss index cb9d40cd3..c8f1f13a3 100644 --- a/nezha-fronted/src/assets/css/components/page/config/backups.scss +++ b/nezha-fronted/src/assets/css/components/page/config/backups.scss @@ -260,6 +260,18 @@ width: 348px; margin-top: 8px; margin-bottom: 20px; + .el-input__suffix{ + right: 8px; + .el-input__icon{ + transition: none; + cursor: pointer; + font-size: 12px; + } + .nz-icon-mimabukejian{ + font-size: 13px; + margin-right: 1px; + } + } } .backup-tip{ font-family: PingFangSC-Regular; @@ -268,6 +280,7 @@ line-height: 20px; font-weight: 400; display: flex; + align-items: center; word-break: break-word; .nz-icon{ margin-right: 6px; diff --git a/nezha-fronted/src/components/common/table/settings/backupsTable.vue b/nezha-fronted/src/components/common/table/settings/backupsTable.vue index 1c5d8d1bf..852ec3828 100644 --- a/nezha-fronted/src/components/common/table/settings/backupsTable.vue +++ b/nezha-fronted/src/components/common/table/settings/backupsTable.vue @@ -101,7 +101,7 @@
- +
@@ -130,7 +130,9 @@

{{$t('backup.enterPassword')}}

- + + +
@@ -172,7 +174,8 @@ export default { backupDialog: false, backupForm: { remark: '' - } + }, + showPassword: false // tableData: [ // { // retention: '', @@ -197,6 +200,14 @@ export default { computed: {}, methods: { + changePassType () { + this.showPassword = !this.showPassword + if (this.restoreForm.pin) { + this.$nextTick(() => { + this.$refs.myInput.focus() + }) + } + }, changeType (item) { if (item == 1) { return this.$t('backup.only') @@ -253,6 +264,7 @@ export default { pin: '', file: {} } + this.showPassword = false }, restore (row) { this.restoreDialog = true