merge-requests/1/head
qiushui 4 years ago
parent e28ef3e027
commit a5c9dd6a36

@ -23,7 +23,7 @@
</a-layout>
<a-layout-footer>
<!-- <a-tabs default-active-key="1" tab-position="bottom" @change="value => select.row = value" v-if="total.row > nums.row"> -->
<a-tabs default-active-key="1" tab-position="bottom" @onchange="changeTab" @change="value => select.row = value" v-if="total.row > nums.row">
<a-tabs default-active-key="1" tab-position="bottom" @onChange="changeTab" @change="value => select.row = value" v-if="total.row > nums.row">
<a-tab-pane
v-for="index in latticeRow"
:key="index"
@ -71,8 +71,8 @@ export default {
}
}
},
stockInfo: {
type: Object,
shelveId: {
type: String,
default: () => {
return {}
}
@ -94,13 +94,13 @@ export default {
column: this.getRandomColumn(this.select.column),
}
},
watchStockInfo() {
return JSON.stringify(this.stockInfo);
watchShelveIdInfo() {
return this.shelveId;
}
},
watch: {
watchStockInfo() {
this.getStatus();
watchShelveIdInfo() {
//this.getStatus();
}
},
data() {
@ -115,7 +115,7 @@ export default {
},
created() {
this.getStatus();
//this.getStatus();
},
destroyed() {
},

@ -48,7 +48,7 @@
</div>
<div class="check-content" v-for="item in data" :key="item.id">
<subsection v-if="item.id == select" :total="{row: item.leftRow, column: item.leftColumn}" :stockInfo="stockInfo.left">
<subsection v-if="item.id == select" :total="{row: item.leftRow, column: item.leftColumn}" :shelveId="leftShelveId.shelveId">
<template v-slot="scope">
<div class="roadway-top">
<div class="roadway-box">
@ -91,7 +91,7 @@
</div>
<div class="check-content" v-for="item in data" :key="item.name">
<subsection v-if="item.id == select" :total="{row:item.leftRow, column: item.leftColumn}" :stockInfo="stockInfo.right">
<subsection v-if="item.id == select" :total="{row:item.leftRow, column: item.leftColumn}" :shelveId="rightShelveId.shelveId">
<template v-slot="scope">
<div class="roadway-buttom">
<div class="roadway-box">
@ -266,8 +266,7 @@ export default {
// });
// },
handleChange(value) {
console.error('handleChange');
console.log(value)
this.select = value
this.getStreetDetail(value)
//this.getStockList(value);

Loading…
Cancel
Save