修复选项
This commit is contained in:
parent
3f620ed894
commit
de4e43af4e
@ -86,16 +86,16 @@ const actions = {
|
|||||||
});
|
});
|
||||||
//
|
//
|
||||||
getDicts("cus_cus_unit").then(response => {
|
getDicts("cus_cus_unit").then(response => {
|
||||||
commit("healthDataLoading", { cusUnitOptions: response.data });
|
commit("updateStateData", { cusUnitOptions: response.data });
|
||||||
});
|
});
|
||||||
getDicts("cus_cus_weight").then(response => {
|
getDicts("cus_cus_weight").then(response => {
|
||||||
commit("healthDataLoading", { cusWeightOptions: response.data });
|
commit("updateStateData", { cusWeightOptions: response.data });
|
||||||
});
|
});
|
||||||
getDicts("cus_dishes_type").then(response => {
|
getDicts("cus_dishes_type").then(response => {
|
||||||
commit("healthDataLoading", { typeOptions: response.data });
|
commit("updateStateData", { typeOptions: response.data });
|
||||||
});
|
});
|
||||||
getDicts("cus_dishes_type").then(response => {
|
getDicts("cus_dishes_type").then(response => {
|
||||||
commit("healthDataLoading", { dishesTypeOptions: response.data });
|
commit("updateStateData", { dishesTypeOptions: response.data });
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -138,7 +138,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
data(newVal, oldVal) {
|
data(newVal, oldVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.updateChart(newVal);
|
this.$nextTick(() => {
|
||||||
|
this.updateChart(newVal);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -174,7 +174,9 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
data(newVal, oldVal) {
|
data(newVal, oldVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.updateChart(newVal[0]);
|
this.$nextTick(() => {
|
||||||
|
this.updateChart(newVal[0]);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -242,7 +242,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return arr;
|
return arr;
|
||||||
}, []);
|
}, []);
|
||||||
// console.log(mData);
|
console.log(mData);
|
||||||
return mData;
|
return mData;
|
||||||
},
|
},
|
||||||
...mapGetters(["typeDict"]),
|
...mapGetters(["typeDict"]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user