Vue.component('appoint-doptroon', {
template:
'
',
props: ['doptroon'],
data: function () {
return {
ind: null,
keyword: ''
}
},
watch: {
keyword: function (i) {
// this.$parent.initData(i)
}
},
mounted: function () {},
methods: {
selDoptroon: function (index, list) {
this.ind = index
this.$emit('seldoptroon', list)
},
searchItem: function () {
this.$parent.initData(this.keyword)
}
}
})