iview Select 数据不及时刷新问题

博客指出在Vue搜索后台数据时,若输入关键字有数据但界面不刷新显示存在BUG。解决办法是要把输入关键字信息包含在label或<Option></Option>中,否则界面无法立即显示数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 <FormItem label="客户" prop="custname">
                  <Select
                    v-model="formData.custname"
                    :remote-method="getRemoteCustomer"
                    remote
                    filterable
                    placeholder="请输入供应商名称查询"
                    @on-change="fn_select_customer"
                  >
                    <Button
                      icon="md-add"
                      :type="customer_status"
                      size="small"
                      slot="prefix"
                      @click="fn_edit_customer"
                    ></Button>
                    <Option
                      :value="item.cnname"
                      :label="item.cnname"
                      v-for="(item,index) in remoteCustomerList"
                      :key="index"
                    >[{{item.assistwords}}]{{item.cnname + item.enname }}</Option>
                  </Select>
                </FormItem>

在搜索后台数据的时候,如果输入的关键字有数据,但是不刷新显示,这里存在一个BUG,必须要把输入关键字的信息也包含在label 或者<Option></Option>中,否则界面不立即显示。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值