<el-select filterable @change="getHtInfo" v-model="form.hth" placeholder="请选择合同号" >
      <el-option
         v-for="(item,index) in hthOptions"
         :key="index"
         :label="item.hth + '__' + item.qdr + '__' + item.htmc"
         :value="item.htid"
       ></el-option>
</el-select>
getHtInfo(value) {
      var newForm = this.hthOptions.filter((item) => {
        return item.htid === value;
      });
       //选择后 需要显示的字段
      this.form.hth = newForm[0].hth;
},

Logo

前往低代码交流专区

更多推荐