接口权限过滤.

This commit is contained in:
许晓东
2023-05-18 22:56:00 +08:00
parent 7e98a58f60
commit 571efe6ddc
30 changed files with 463 additions and 63 deletions

View File

@@ -21,6 +21,12 @@ const errorHandler = (error) => {
description: "请登录",
});
Router.push({ path: "/login-page" });
} else if (error.response.status == 403) {
// const data = error.response.data;
// notification.error({
// message: error.response.status,
// description: data.msg,
// });
} else {
const data = error.response.data;
notification.error({

View File

@@ -116,7 +116,9 @@
cancel-text="取消"
@confirm="resend"
>
<a-button type="primary" icon="reload"> 重新发送 </a-button>
<a-button type="primary" icon="reload" v-action:message:resend>
重新发送
</a-button>
</a-popconfirm>
</div>
</a-spin>

View File

@@ -17,6 +17,7 @@
href="javascript:;"
class="operation-btn"
@click="openDetailDialog(record)"
v-action:message:detail
>消息详情
</a-button>
</div>

View File

@@ -39,7 +39,11 @@
cancel-text="取消"
@confirm="cancelReassignment(record)"
>
<a-button size="small" href="javascript:;" class="operation-btn"
<a-button
size="small"
href="javascript:;"
class="operation-btn"
v-action:op:replication-update-detail:cancel
>取消
</a-button>
</a-popconfirm>

View File

@@ -35,6 +35,7 @@
class="operation-btn"
v-show="!record.readOnly"
@click="openEditConfigDialog(record)"
v-action:topic:property-config:edit
>编辑
</a-button>
<a-popconfirm
@@ -44,7 +45,11 @@
v-show="isDynamic(record.source)"
@confirm="deleteTopicConfig(record)"
>
<a-button size="small" href="javascript:;" class="operation-btn"
<a-button
size="small"
href="javascript:;"
class="operation-btn"
v-action:topic:property-config:del
>删除
</a-button>
</a-popconfirm>

View File

@@ -45,7 +45,7 @@
bordered
row-key="id"
>
<div slot="operation" slot-scope="record" v-show="!record.internal">
<div slot="operation" slot-scope="record" v-show="record.username != 'super-admin'">
<a-popconfirm
:title="'删除用户: ' + record.username + ''"
ok-text="确认"