1.数据未作双向绑定
//Vue2数据嵌套太深未作双向绑定。
this.$set(this.searchSelectlist.room, "message", "加载中...");
2.el-input嵌套太多,无法操作dom,需要强制刷新
//el-input
<el-input v-model="form.unitPrice" onkeyup="this.value=this.value.match(/\d+\.?\d{0,20}/)"
onafterpaste="this.value=this.value.match(/\d+\.?\d{0,20}/)" @change="unitPriceChange" @input="changeMessage">
<template slot="append">
<el-select disabled v-model="form.company" @change="companyChange" >
<el-option
v-for="item in Arr"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</template>
</el-input>
//加强制刷新事件
changeMessage() {
this.$forceUpdate();
},