1.因为使用v-if 导致 元素是彻底消失
2.所以在数据切换的时候 权限值 会不保留
3.有 v-hasPermi这个 的情况下 将 v-if 换成 v-show
<el-button v-show="scope.row.invoiceStatus == '02'" v-hasPermi="['collection:invoice:negative']" type="text" typeC="warning" @click="handleNegativeInvoice(scope.row)">负数发票</el-button>