Commit fc938527 authored by linxin's avatar linxin

发车tab初始化

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