template
<a-modal
:title="ModalText"
:visible="visible"
:confirm-loading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
>
<a-input size="large" placeholder="请填写···" v-model="addLabelValue" ref="addLabel"/>
</a-modal>
export default
handleAddLableFn (e) {
this.addLabelValue = ''
this.visible = true
this.ModalText = '为' + this.rowData[e.rowIndex].name + '添加标签'
this.enrollment_no = this.rowData[e.rowIndex].enrollment_no
this.rowDetail = e
this.$nextTick(res => {
console.log(this.$refs['addLabel'])
this.$refs['addLabel'].focus()
})
},