|
|
@ -8,13 +8,13 @@ |
|
|
|
</div> |
|
|
|
<!-- 右侧预测版本列表、正式订单、产品需求 --> |
|
|
|
<div class="homepage-top-right-wrap"> |
|
|
|
<Beta :customerId="customerId" :CreateModel="CreateModel" @calculateTableHeight="calculateTableHeight" :tableHeight="tableHeight" /> |
|
|
|
<Beta :customerId="customerId" :CreateModel="CreateModel" @calculateTableHeight="calculateTableHeight" :tableHeight="tableHeight" :transLabelObj="transLabelObj" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<DragBar /> |
|
|
|
<!-- 下面模块(多版本比较、偏差分析、客户零件清单) --> |
|
|
|
<div class="homepage-bottom-wrap" id="bottom"> |
|
|
|
<Formal :customerId="customerId" @calculateTableHeight="calculateFormalTableHeight" :tableHeight="formalTableHeight" /> |
|
|
|
<Formal :customerId="customerId" :transLabelObj="transLabelObj" @calculateTableHeight="calculateFormalTableHeight" :tableHeight="formalTableHeight" /> |
|
|
|
</div> |
|
|
|
</ContentContainer> |
|
|
|
</template> |
|
|
@ -22,6 +22,7 @@ |
|
|
|
import Customer from './customer' |
|
|
|
import Beta from './beta' |
|
|
|
import Formal from './formal' |
|
|
|
import { get } from "@/server/api.js"; |
|
|
|
export default { |
|
|
|
components:{ |
|
|
|
Customer, |
|
|
@ -35,6 +36,7 @@ export default { |
|
|
|
customerId: "", |
|
|
|
CreateModel: "", |
|
|
|
currentCustomId: '', |
|
|
|
transLabelObj: {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -47,10 +49,17 @@ export default { |
|
|
|
}, |
|
|
|
calculateFormalTableHeight(height){ |
|
|
|
this.formalTableHeight = height |
|
|
|
} |
|
|
|
}, |
|
|
|
getTransLabel() { |
|
|
|
get('/user/week_to_date').then(({data})=>{ |
|
|
|
this.transLabelObj = data || {} |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getTransLabel() |
|
|
|
this.currentCustomId = this.$route.query.CustomerId |
|
|
|
|
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
this.dragChangeSize((topHeight,bottomHeight) => { |
|
|
|