下拉框选择

main
mo 1 year ago
parent eeb6c2b01c
commit 16e311e53a

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

Loading…
Cancel
Save