页面所有el-select设为只读、不可编辑

如果页面有多个el-select

<el-select v-model="ysStore.businessCateory" filterable placeholder="请选择"  :disabled="isSearch">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>	</el-select>

加 :disabled=“isSearch”
再改变背景色

var Inp = document.getElementsByTagName("input");
for (var i = 0; i < Inp.length; i++) {
Inp[i].style.backgroundColor = '#FFFFFF'  
}
this.isSearch = true

你可能感兴趣的:(js,element,javascript)