Elementui select label value conflict

                <el-form-item label=": " >
                    <el-select v-model="couponID"  placeholder="">
                        <template v-for="(val, key, index) in couForm.couponData" >
                            <el-option :label="**val.name**"  :value="**val.total**"></el-option>
                        </template>
                    </el-select>
                </el-form-item>
                <el-form-item label=": ">
                    <el-input v-model="couponID" disabled></el-input>
                </el-form-item>
                

the select control selects a value and binds it to input. The problem is: label.name: val.total conflict, name is a string type, and as long as total is a numeric type, it will appear when select is selected, the drop-down is normal, but when it is checked into the box, the value is abnormal. For example, if "aa" is selected in the drop-down box, "bb" is displayed on the result box.

and if total chooses character data, everything will be fine.
adding value-key= "id" to select is invalid.

Mar.28,2021

has solved that,: value is not as strong as I thought, and you still have to get parameters through events.

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-1b3c66a-2c31b.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-1b3c66a-2c31b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?