修复选项

This commit is contained in:
huangdeliang 2021-02-22 19:45:33 +08:00
parent 3f620ed894
commit de4e43af4e
4 changed files with 11 additions and 7 deletions

View File

@ -86,16 +86,16 @@ const actions = {
});
//
getDicts("cus_cus_unit").then(response => {
commit("healthDataLoading", { cusUnitOptions: response.data });
commit("updateStateData", { cusUnitOptions: response.data });
});
getDicts("cus_cus_weight").then(response => {
commit("healthDataLoading", { cusWeightOptions: response.data });
commit("updateStateData", { cusWeightOptions: response.data });
});
getDicts("cus_dishes_type").then(response => {
commit("healthDataLoading", { typeOptions: response.data });
commit("updateStateData", { typeOptions: response.data });
});
getDicts("cus_dishes_type").then(response => {
commit("healthDataLoading", { dishesTypeOptions: response.data });
commit("updateStateData", { dishesTypeOptions: response.data });
});
//

View File

@ -138,7 +138,9 @@ export default {
watch: {
data(newVal, oldVal) {
if (newVal) {
this.updateChart(newVal);
this.$nextTick(() => {
this.updateChart(newVal);
});
}
},
},

View File

@ -174,7 +174,9 @@ export default {
watch: {
data(newVal, oldVal) {
if (newVal) {
this.updateChart(newVal[0]);
this.$nextTick(() => {
this.updateChart(newVal[0]);
});
}
},
},

View File

@ -242,7 +242,7 @@ export default {
}
return arr;
}, []);
// console.log(mData);
console.log(mData);
return mData;
},
...mapGetters(["typeDict"]),