下拉框选择

main
mo 1 year ago
parent eeb6c2b01c
commit 16e311e53a

@ -38,12 +38,20 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="借/贷" prop="debitOrCredit"> <el-form-item label="借/贷" prop="debitOrCredit">
<el-input <el-select
v-model="queryParams.debitOrCredit" v-model="queryParams.debitOrCredit"
placeholder="请输入借/贷" placeholder="请选择"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> >
<el-option
v-for="item in options"
:key="item.label"
:label="item.label"
:value="item.label"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="我方账户" prop="myCompany"> <el-form-item label="我方账户" prop="myCompany">
<el-input <el-input
@ -408,10 +416,15 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="借/贷" prop="debitOrCredit"> <el-form-item label="借/贷" prop="debitOrCredit">
<el-input <el-select v-model="form.debitOrCredit" placeholder="请选择">
v-model="form.debitOrCredit" <el-option
placeholder="请输入借/贷" v-for="item in options"
/> :key="item.label"
:label="item.label"
:value="item.label"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -779,6 +792,14 @@ export default {
inputPassword: null, inputPassword: null,
}, },
userOptions: [], // userOptions: [], //
options: [
{
label: "借",
},
{
label: "贷",
},
],
// //
form: {}, form: {},
form1: {}, form1: {},

Loading…
Cancel
Save