1
This commit is contained in:
parent
5351f6bf18
commit
84f52f64e3
|
@ -95,28 +95,38 @@
|
|||
</el-row>
|
||||
|
||||
<div class="borderLine"></div>
|
||||
<el-table v-loading="loading" height="calc(100vh - 376px)" :data="userList" @selection-change="handleSelectionChange">
|
||||
<el-table v-loading="loading" height="calc(100vh - 376px)" :data="userList"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="用户编号" align="center" min-width="100" key="userId" prop="userId" v-if="columns[0].visible" />
|
||||
<el-table-column label="用户名称" align="center" min-width="130" key="userName" prop="userName" v-if="columns[1].visible"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="用户昵称" align="center" min-width="130" key="nickName" prop="nickName" v-if="columns[2].visible"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="部门" align="center" min-width="130" key="deptName" prop="dept.deptName" v-if="columns[3].visible"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="手机号码" align="center" width="160" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" />
|
||||
<el-table-column label="序号" width="60">
|
||||
<template #default="scope">
|
||||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="用户编号" align="center" min-width="100" key="userId" prop="userId"
|
||||
v-if="columns[0].visible" /> -->
|
||||
<el-table-column label="用户账号" align="center" min-width="130" key="userName" prop="userName"
|
||||
v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="真实姓名" align="center" min-width="130" key="nickName" prop="nickName"
|
||||
v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="部门" align="center" min-width="130" key="deptName" prop="dept.deptName"
|
||||
v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="手机号码" align="center" width="160" key="phonenumber" prop="phonenumber"
|
||||
v-if="columns[4].visible" />
|
||||
<el-table-column label="状态" align="center" min-width="80" key="status" v-if="columns[5].visible">
|
||||
<template #default="scope">
|
||||
<el-switch v-model="scope.row.status" active-value="0" inactive-value="1"
|
||||
@change="handleStatusChange(scope.row)"></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" min-width="230" prop="createTime" v-if="columns[6].visible" >
|
||||
<el-table-column label="创建时间" align="center" min-width="230" prop="createTime"
|
||||
v-if="columns[6].visible">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" fixed="right" width="150" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" fixed="right" width="150"
|
||||
class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="修改" placement="top" v-if="scope.row.userId !== 1">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
||||
|
@ -698,25 +708,26 @@ onMounted(() => {
|
|||
}
|
||||
|
||||
:deep(.el-radio__inner) {
|
||||
width: 16px !important;
|
||||
height: 16px !important;
|
||||
width: 16px !important;
|
||||
height: 16px !important;
|
||||
}
|
||||
|
||||
:deep(.el-radio__label) {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
:deep(.el-textarea__inner) {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
:deep(.el-tag.el-tag--info) {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
text-align: left;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
:deep(.el-textarea__inner) {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
:deep(.el-tag.el-tag--info) {
|
||||
font-weight: 400;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue
Block a user