refactor(权限管理): 性能测试权限
This commit is contained in:
parent
c04eeff4ec
commit
60e8036c2a
|
@ -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)"/>
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue