给select控件增加key属性
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
<a-select placeholder="请选择仓库" showSearch optionFilterProp="children" v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<a-form :form="form" id="batchSetDepot">
|
<a-form :form="form" id="batchSetDepot">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓库名称">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓库名称">
|
||||||
<a-select placeholder="请选择仓库" v-decorator="[ 'depotId', validatorRules.depotId ]" showSearch optionFilterProp="children">
|
<a-select placeholder="请选择仓库" v-decorator="[ 'depotId', validatorRules.depotId ]" showSearch optionFilterProp="children">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
showSearch allow-clear style="width: 100%"
|
showSearch allow-clear style="width: 100%"
|
||||||
placeholder="请选择仓库"
|
placeholder="请选择仓库"
|
||||||
v-model="queryParam.depotId">
|
v-model="queryParam.depotId">
|
||||||
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
|
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
|
||||||
{{ depot.depotName }}
|
{{ depot.depotName }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|||||||
Reference in New Issue
Block a user