refactor(权限管理): 性能测试权限

This commit is contained in:
Captain.B 2021-05-21 15:08:07 +08:00 committed by 刘瑞斌
parent c04eeff4ec
commit 60e8036c2a
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<span>
<ms-table-operator-button v-for="(btn, index) in buttons" :key="index"
v-permission="btn.meta.permissions"
v-permission="btn.permissions"
:disabled="isDisable(btn)"
:tip="btn.tip" :icon="btn.icon" :type="btn.type" :isDivButton="btn.isDivButton"
@exec="click(btn)" @click.stop="clickStop(btn)"/>

View File

@ -131,15 +131,15 @@ export default {
{
tip: this.$t('commons.edit'), icon: "el-icon-edit",
exec: this.handleEdit,
meta: {permissions: ['PROJECT_PERFORMANCE_TEST:READ+EDIT']}
permissions: ['PROJECT_PERFORMANCE_TEST:READ+EDIT']
}, {
tip: this.$t('commons.copy'), icon: "el-icon-copy-document", type: "success",
exec: this.handleCopy,
meta: {permissions: ['PROJECT_PERFORMANCE_TEST:READ+COPY']}
permissions: ['PROJECT_PERFORMANCE_TEST:READ+COPY']
}, {
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
exec: this.handleDelete,
meta: {permissions: ['PROJECT_PERFORMANCE_TEST:READ+DELETE']}
permissions: ['PROJECT_PERFORMANCE_TEST:READ+DELETE']
}
],
statusFilters: [