有的地方点击可以正常弹出,有的又不行。解决方法如下:
<el-popover
placement="top"
width="160"
:ref="scope.$index">
<p>确认取出该仪器?</p>
<div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="scope._self.$refs[scope.$index].doClose()">取消</el-button>
<el-button type="primary" size="mini" @click="scope._self.$refs[scope.$index].doClose();;takeOut(scope.row)">确定</el-button>
</div>
<el-button slot="reference" size="small" type="text" >取出</el-button>
</el-popover>