This commit is contained in:
xielue 2023-06-25 11:52:37 +08:00
parent 46e43b2113
commit 185e2e8e81
1 changed files with 61 additions and 32 deletions

View File

@ -769,7 +769,7 @@ export default {
currentConfigName: "",
// ID
currentBeid: 0,
settignsValues : {},
settignsValues: {},
tabKey: 'main',
showAll: false,
showExp: false,
@ -1157,6 +1157,8 @@ export default {
this.drawer_detailsData = JSON.parse(data.drawer_list || "[]");
this.materialHeightInit();
this.detailDataInit();
@ -1186,6 +1188,33 @@ export default {
methods: {
materialHeightInit() {
this.$mk.post({
url: `${BASE_URL.BASE_URL}/BathroomMaterial/v1/bathroom/material/list`,
data: { "page": 1, "limit": 100, "order_bys": [], "search_rules": [] }
}).then(a => {
a.data.BathroomMaterial.forEach(o => {
this.fittings_detailsData.forEach(item => {
if (item.material && item.material[0] && item.material[0].toString() == o.id.toString()) {
item.material_default_height = o.spec || "15";
}
});
});
console.log(this.fittings_detailsData)
});
},
loadSettings() {
this.$mk.post({