Element-ui el-select selection data problem

 <el-select v-model="value" @change="currentSel" placeholder="">
        <el-option v-for="item in options1" :key="item.value" :label="item.parentId" :value="item.labelName"></el-option>
 </el-select>

data structure

 [
    {
        "id": 1,
        "labelName": "",
        "labelContent": null,
        "labelRemark": null,
        "parentId": 1
    },
    {
        "id": 2,
        "labelName": "",
        "labelContent": null,
        "labelRemark": null,
        "parentId": 2
    },
    {
        "id": 3,
        "labelName": "",
        "labelContent": null,
        "labelRemark": null,
        "parentId": 3
    }
]

callback method

currentSel(selVal){
    this.selVal = selVal;
    console.log(selVal)
},

how to let me choose accessories selVal print 1, jewelry selVal print 2. That is, the value of the corresponding parentId


: label : value two fields are reversed


swap the values bound by label and value

 <el-select v-model="selVal" @change="currentSel" placeholder="">
        <el-option v-for="item in options1" :key="item.value" :label="item.labelName" :value="item.parentId"></el-option>
 </el-select>

get the v-model value of this drop-down box in the function

currentSel(){
    //selValv-model
    console.log(this.selVal)
},

< el-select VMI model = "selVal" @ change= "currentSel" placeholder= "Select Category" >

    <el-option v-for="item in options1" :key="item.parentId" :label="item.labelName" :value="item.parentId"></el-option>

< / el-select >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a87d-2c22a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a87d-2c22a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?