|
@@ -1,5 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
+ <v-select
|
|
|
+ id="addBoxModal-status"
|
|
|
+ ref="rubbishType"
|
|
|
+ code="RUBBISH_TYPE"
|
|
|
+ placeholder="请选择分类"
|
|
|
+ v-show="false"
|
|
|
+ >
|
|
|
+ </v-select>
|
|
|
<a-modal
|
|
|
class="modalBox"
|
|
|
:title="titleText"
|
|
@@ -84,15 +92,13 @@
|
|
|
trigger: ['change'],
|
|
|
}"
|
|
|
>
|
|
|
- <v-select
|
|
|
- id="addBoxModal-status"
|
|
|
- ref="orderStatus"
|
|
|
- code="RUBBISH_TYPE"
|
|
|
+ <a-select
|
|
|
+ :id="'addBoxModal-status' + index"
|
|
|
placeholder="请选择分类"
|
|
|
allowClear
|
|
|
- v-model="item.rubbishType"
|
|
|
- >
|
|
|
- </v-select>
|
|
|
+ v-model="item.rubbishType">
|
|
|
+ <a-select-option v-for="item in $refs.rubbishType.getOptionDatas()" :key="item.code" :value="item.code">{{ item.dispName }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -158,7 +164,7 @@ export default {
|
|
|
for (let i = 0; i < v; i++) {
|
|
|
this.formData.deviceTypeBoxList.push({
|
|
|
maxWeight: '',
|
|
|
- rubbishType: '',
|
|
|
+ rubbishType: undefined,
|
|
|
boxCode: i + 1
|
|
|
})
|
|
|
}
|