添加黑名单页面

This commit is contained in:
初志鑫 2020-07-27 19:03:07 +08:00
parent a88ad53c66
commit 918a08716b
4 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,30 @@
const data = [
{
name: "奉/fendou飘逸的梦",
qq: "812770127",
excuse: "上来就开骂,不可原谅",
},
{
name: "江荻",
qq: "2324945654",
excuse: "上来就开骂,不可原谅",
},
{
name: "Diamond",
qq: "494904935",
excuse: "跟我道歉可以选择原谅",
},
];
export default [
{
url: "/blacklist/getList",
type: "post",
response: () => {
return {
code: 200,
msg: "success",
data,
};
},
},
];

9
src/api/blacklist.js Normal file
View File

@ -0,0 +1,9 @@
import request from "@/utils/request";
export function getList(data) {
return request({
url: "/blacklist/getList",
method: "post",
data,
});
}

View File

@ -410,6 +410,12 @@ export const asyncRoutes = [
component: () => import("@/views/vab/more/index"),
meta: { title: "更多组件", permissions: ["admin"] },
},
{
path: "blacklist",
name: "Blacklist",
component: () => import("@/views/vab/blacklist/index"),
meta: { title: "黑名单", permissions: ["admin"] },
},
],
},
{

View File

@ -0,0 +1,38 @@
<template>
<div class="blacklist-container">
<el-divider content-position="left">
vue-admin-beautiful禁止以下人员使用
</el-divider>
<el-alert :closable="false">
这世界嘲笑你的人有很多你又不是圣人干嘛对每个人都仁慈面对无端的辱骂和攻击你只能选择将他记在这里时刻提醒自己
</el-alert>
<br />
<el-table :data="tableData" style="width: 100%;">
<el-table-column prop="name" label="QQ昵称" width="180"></el-table-column>
<el-table-column prop="qq" label="QQ号" width="180"></el-table-column>
<el-table-column prop="excuse" label="是否可原谅"></el-table-column>
</el-table>
</div>
</template>
<script>
import { getList } from "@/api/blacklist";
export default {
name: "Blacklist",
components: {},
data() {
return { tableData: [] };
},
created() {
this.fetchData();
},
mounted() {},
methods: {
fetchData() {
getList().then(({ data }) => {
this.tableData = data;
});
},
},
};
</script>