优化报表中仓库选择的组件,增加key参数

This commit is contained in:
jishenghua
2024-04-07 15:22:07 +08:00
parent 9e173e39b1
commit 40a87c395f
5 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@
showSearch allow-clear style="width: 100%" showSearch allow-clear style="width: 100%"
placeholder="请选择仓库" placeholder="请选择仓库"
v-model="queryParam.depotIdF"> v-model="queryParam.depotIdF">
<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>
@@ -72,7 +72,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>

View File

@@ -64,7 +64,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>

View File

@@ -58,7 +58,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>

View File

@@ -64,7 +64,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>

View File

@@ -58,7 +58,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>