Commit fc938527 authored by linxin's avatar linxin

发车tab初始化

parent 89437671
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span>合同发车</span> <span>合同发车</span>
</div> </div>
</h-header> </h-header>
<Tab @getTabNum="getTabNum" /> <Tab :fatherTabNum = "tabNum" @getTabNum="getTabNum" />
<div class="search"> <div class="search">
<input placeholder="请输入合同号/产品线/承租人名称" > <input placeholder="请输入合同号/产品线/承租人名称" >
</div> </div>
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
}, },
data () { data () {
return { return {
tabNum: '', tabNum: 0,
contructs: [], contructs: [],
lists: [], lists: [],
showList: [], showList: [],
......
...@@ -20,12 +20,11 @@ import sign from '@/assets/contractStart/1.png' ...@@ -20,12 +20,11 @@ import sign from '@/assets/contractStart/1.png'
import finish from '@/assets/contractStart/3.png' import finish from '@/assets/contractStart/3.png'
export default { export default {
// props: { props: {
// 'tabNum': { 'fatherTabNum': {
// type: Number, type: Number,
// default: 0, },
// }, },
// },
data () { data () {
return { return {
tabNum: 0, tabNum: 0,
...@@ -35,6 +34,13 @@ export default { ...@@ -35,6 +34,13 @@ export default {
finish: finish, finish: finish,
} }
}, },
watch: {
'fatherTabNum': {
handler (newVal, oldVal) {
this.tabNum = newVal
},
},
},
methods: { methods: {
sendTabNum () { sendTabNum () {
this.$emit('getTabNum', this.tabNum) this.$emit('getTabNum', this.tabNum)
......
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