✨ feat: 乱起八糟的东西
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<el-button v-if="canAdd" @click="add" icon="el-icon-plus">未搜索到原材料,点击添加</el-button>
|
||||
<div v-else style="padding: 10px;">未搜索到原材料</div>
|
||||
</template>
|
||||
<el-option v-for="item in options" :key="item.rawMaterialId"
|
||||
<el-option v-for="item in rawMaterialList" :key="item.rawMaterialId"
|
||||
:label="`${item.rawMaterialName}(${item.rawMaterialCode})`" :value="item.rawMaterialId">
|
||||
<div class="option-label">
|
||||
<span class="material-name">{{ item.rawMaterialName }}</span>
|
||||
@@ -117,7 +117,9 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.options = this.rawMaterialList;
|
||||
if (this.rawMaterialList.length < 0) {
|
||||
this.$store.dispatch('category/getRawMaterialMap')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['rawMaterialList'])
|
||||
|
||||
Reference in New Issue
Block a user