Note that the elementUi el-select drop-down box displays the label, and the value is displayed when selected

The content of the select drop-down box needs to be displayed in Chinese, and only its id will be displayed after selection. The implementation is as follows. You can also remove the label attribute

<el-select v-model="tacheForm.tacheCode" ref="tacheCode"
                                       @change="handleTacheCode" :disabled="isView">
                                <el-option v-for="item in list.TACHE"
                                           :key="item.id"
                                           :value="item.id" :label="item.id">
                                    <span>{
   
   {item.name}}</span>
                                </el-option>
                            </el-select>

Effect picture:

Guess you like

Origin blog.csdn.net/qq_39139322/article/details/113109505