fix:修改批量修改的密码显示明文的问题 , asset cahrt 导入显示不正确的问题

This commit is contained in:
zhangyu
2021-05-25 10:26:13 +08:00
parent 9f73a5eb33
commit 03f3c69142
2 changed files with 6 additions and 4 deletions

View File

@@ -160,8 +160,9 @@ export default {
}
this.$delete(url + '?seq=' + this.importResult.seq).then(response => {
if (response.code == 200) {
const linkId = this.link ? this.link.id : ''
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
this.$emit('afterImport')
this.$emit('afterImport', linkId)
} else {
this.$message.error(response.msg)
}
@@ -183,7 +184,8 @@ export default {
this.$post(this.importUrl, form, { 'Content-Type': 'multipart/form-data' }).then(response => {
if (response.code == 200 && response.msg == 'success') {
this.importResult = response.data
this.$emit('afterImport')
const linkId = this.link ? this.link.id : ''
this.$emit('afterImport', linkId)
this.importBox.type = 3
this.importBox.width = '600px'
} else {

View File

@@ -37,11 +37,11 @@
<template v-if="editData.authType === assetConstants.authTypeData.key">
<!-- Key支持私钥 -->
<el-form-item :label="$t('asset.privateKey')" prop="authPriKey">
<el-input v-model="editData.authPriKey" size="small"/>
<el-input v-model="editData.authPriKey" size="small" type="password" autocomplete="new-password"/>
</el-form-item>
</template>
<el-form-item :label="$t('asset.pin')" prop="authPin">
<el-input v-model="editData.authPin" size="small"/>
<el-input v-model="editData.authPin" size="small" type="password" autocomplete="new-password"/>
</el-form-item>
<el-form-item :label="$t('asset.port')" prop="authProtocolPort">
<el-input v-model="editData.authProtocolPort" size="small"/>