This commit is contained in:
parent
46e43b2113
commit
185e2e8e81
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue