批量开票、开票邮寄图标需求变更,密码禁止粘贴

This commit is contained in:
zhaoxiao
2021-10-11 14:36:54 +08:00
parent 74b0c33a55
commit e6422d1009
6 changed files with 186 additions and 136 deletions
+5
View File
@@ -30,6 +30,7 @@
type="password"
autocomplete="false"
placeholder="请输入密码"
@paste.native.capture.prevent="handleOperate"
>
<a-icon slot="prefix" type="lock" :style="{ color: '#B3B7C2',fontSize:'20px' }"/>
</a-input>
@@ -307,6 +308,10 @@ export default {
}
})
},
// 密码禁止粘贴
handleOperate() {
return false
},
}
}
</script>
+8 -1
View File
@@ -73,6 +73,8 @@
<a-input
placeholder="请输入新密码"
v-decorator="['password', { rules: validatorRules.password.rules}]"
@paste.native.capture.prevent="handleOperate"
autocomplete="false"
type="password">
</a-input>
</a-form-item>
@@ -89,6 +91,7 @@
placeholder="请输入确认密码"
v-decorator="['confirmPassword', { rules: validatorRules.confirmPassword.rules}]"
type="password"
@paste.native.capture.prevent="handleOperate"
autocomplete="false">
</a-input>
</a-form-item>
@@ -265,7 +268,11 @@ export default {
getRSAPublicKey().then(res => {
this.rsaPublicKey = res.result
})
}
},
// 密码禁止粘贴
handleOperate() {
return false
},
}
}
</script>