Commit c2ad4645 authored by 528360026@qq.com's avatar 528360026@qq.com

修复组合单透视bug

parent 0f643150
...@@ -231,8 +231,10 @@ export default { ...@@ -231,8 +231,10 @@ export default {
combinationCode: { combinationCode: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.$nextTick(() => { this.$nextTick(() => {
this.queryParams.combinationCode = newVal; if (this.combinationCode != '' && this.combinationCode != null) {
this.getList(); this.queryParams.combinationCode = this.combinationCode;
this.getList();
}
}) })
}, },
immediate: true, immediate: true,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-tab-pane v-for="item in combinationCodes"> <el-tab-pane v-for="item in combinationCodes">
<div slot="label" @click="changeCombination(item)">{{ item }} <div slot="label" @click="changeCombination(item)">{{ item }}
</div> </div>
<CombinationInfo ref="caonima" :combinationCode="combinationCode"></CombinationInfo> <CombinationInfo ref="combRef" :combinationCode="combinationCode"></CombinationInfo>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
combinationCodes: { combinationCodes: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.$nextTick(() => { this.$nextTick(() => {
console.log(newVal)
this.combinationCode = this.combinationCodes[0] this.combinationCode = this.combinationCodes[0]
}) })
}, },
...@@ -42,7 +43,7 @@ export default { ...@@ -42,7 +43,7 @@ export default {
changeCombination(combinationCode) { changeCombination(combinationCode) {
this.$nextTick(() => { this.$nextTick(() => {
this.combinationCode = combinationCode this.combinationCode = combinationCode
this.$refs.caonima[0].changeCombination(combinationCode) this.$refs.combRef[0].changeCombination(combinationCode)
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment