select!!!!!!

 <el-select v-model="dept" filterable placeholder="请选择"  @change="getDept">
                              <el-option
                                v-for="item1 in subjectList"
                                :key="item1.dKey"
                                :label="item1.dValue"
                                :value="item1.dKey"
                              ></el-option>
</el-select>
  getDept(val) {
            var obj = {};
            obj = this.subjectList.find(function (item) {
                return item.dKey === val;
            });
            console.log(obj.dValue);
            console.log(val);
        }
posted @ 2020-08-22 11:38  小小小小小前端  阅读(77)  评论(0编辑  收藏  举报