提交代码

This commit is contained in:
遥望-倪浩天 2024-09-25 16:26:41 +08:00
parent baf0e5e483
commit 0bc67c300f
1 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<el-table :data="state.tableDataNew.data" v-loading="state.tableDataNew.loading" style="width: 100%" @selection-change="selectionChange">
<!-- <el-table-column type="selection" width="60" @select="selectRow" />-->
<el-table-column prop="userName" label="Name" show-overflow-tooltip></el-table-column>
<el-table-column prop="userEmail" label="E-mail" show-overflow-tooltip></el-table-column>
<!-- <el-table-column prop="userEmail" label="E-mail" show-overflow-tooltip></el-table-column>-->
<el-table-column prop="userStatus" label="role" show-overflow-tooltip>
<template #default="scope">
<el-tag type="info" v-if="scope.row.userStatus == 1">Admin</el-tag>
@ -47,7 +47,7 @@
<el-card shadow="hover" class="layout-padding-auto">
<el-table :data="state.selectData" style="width: 100%">
<el-table-column prop="name" label="Name" show-overflow-tooltip></el-table-column>
<el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>
<!-- <el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>-->
<el-table-column prop="userStatus" label="role" show-overflow-tooltip>
<template #default="scope">
<el-tag type="info" v-if="scope.row.roleId == '1123598816738675203'">Admin</el-tag>
@ -85,7 +85,7 @@
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%" @selection-change="selectionChange">
<!-- <el-table-column type="selection" width="60" @select="selectRow" />-->
<el-table-column prop="name" label="Name" show-overflow-tooltip></el-table-column>
<el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>
<!-- <el-table-column prop="email" label="E-mail" show-overflow-tooltip></el-table-column>-->
<el-table-column prop="userStatus" label="role" show-overflow-tooltip>
<template #default="scope">
<el-tag type="info" v-if="scope.row.roleId == '1123598816738675203'">Admin</el-tag>
@ -371,7 +371,8 @@ const getTableData = async () => {
);
let userData = [];
res.records.forEach((item) => {
if (item.roleId == '1123598816738675203' || item.roleId == '1793193529859244033') {
//if (item.roleId == '1123598816738675203' || item.roleId == '1793193529859244033') {
if (item.roleId == '1793193529859244033') {
userData.push(item);
}
});