用户管理-区域搜索:输入框设置为只读

This commit is contained in:
guoyue 2022-10-26 14:05:05 +08:00
parent 76e1fb7e1b
commit f93550990f
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<template>
<div>
<el-input v-model="showDeptName" :placeholder="placeholder" @focus="deptDialog">
<el-input v-model="showDeptName" :placeholder="placeholder" @focus="deptDialog" readonly
@paste.native.capture.prevent="handlePaste">
<el-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button>
</el-input>
<el-input :value="value" style="display: none"></el-input>
@ -63,6 +64,9 @@ export default {
}
},
methods: {
handlePaste() {
return false
},
deptDialog() {
this.expandedKeys = null
if (this.$refs.tree) {