用户管理-区域搜索:输入框设置为只读
This commit is contained in:
parent
76e1fb7e1b
commit
f93550990f
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<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-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-input :value="value" style="display: none"></el-input>
|
<el-input :value="value" style="display: none"></el-input>
|
||||||
|
@ -63,6 +64,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handlePaste() {
|
||||||
|
return false
|
||||||
|
},
|
||||||
deptDialog() {
|
deptDialog() {
|
||||||
this.expandedKeys = null
|
this.expandedKeys = null
|
||||||
if (this.$refs.tree) {
|
if (this.$refs.tree) {
|
||||||
|
|
Loading…
Reference in New Issue