Commit 829c544e72f19676d381b1c8bb2a45ecb58de9d2
1 parent
e9417fb0
优化代码
Showing
1 changed file
with
2 additions
and
2 deletions
src/components/inspection/addInspectionPoint.vue
| ... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 | <el-form-item :label="$t('addInspectionPoint.itemId')" prop="itemId"> |
| 45 | 45 | <el-select v-model="addInspectionPointInfo.itemId" |
| 46 | 46 | :placeholder="$t('addInspectionPoint.placeholder.itemId')" style="width: 100%;"> |
| 47 | - <el-option v-for="item in addInspectionPointInfo.items" :key="item.itemId" :label="item.itemName" | |
| 47 | + <el-option v-for="(item, index) in addInspectionPointInfo.items" :key="index" :label="item.itemName" | |
| 48 | 48 | :value="item.itemId" /> |
| 49 | 49 | </el-select> |
| 50 | 50 | </el-form-item> |
| ... | ... | @@ -158,10 +158,10 @@ export default { |
| 158 | 158 | this.dialogVisible = true |
| 159 | 159 | this.resetForm() |
| 160 | 160 | this.getDictData() |
| 161 | + this._listAddInspectionItems() | |
| 161 | 162 | |
| 162 | 163 | this.$nextTick(() => { |
| 163 | 164 | this.initMap() |
| 164 | - this._listAddInspectionItems() | |
| 165 | 165 | }) |
| 166 | 166 | }, |
| 167 | 167 | ... | ... |