赞
踩
<el-form-item label="付费类型:">
<el-select
v-model="productForm.spFeeType"
placeholder="请选择"
>
<el-option
v-for="item in stateOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
stateOptions: [
{
value: '',
label: '全部',
},
{
value: '0',
label: '预付费',
},
{
value: '1',
label: '后付费',
},
],
//或者是请求过来,在前面unshift()值
好处:下拉框默认状态:就是全部
<el-form-item label="付费类型:">
<el-select
v-model="productForm.spFeeType"
placeholder="请选择"
>
<el-option label="全部" value=""></el-option>
<el-option
v-for="item in stateOptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
stateOptions: [
{
value: '0',
label: '预付费',
},
{
value: '1',
label: '后付费',
},
],
<el-select v-model="formData.status" >
<el-option label="全部" value="null"></el-option>
<el-option label="预付费" value="0"></el-option>
<el-option label="后付费" value="1"></el-option>
<el-option label="全部" :value="null"></el-option>
<el-option label="联通" :value="0"></el-option>
<el-option label="移动" :value="1"></el-option>
<el-option label="电信" :value="2"></el-option>
</el-select>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。