|
@@ -19,15 +19,23 @@
|
|
<el-table-column prop="realName" label="姓名" width="120" show-overflow-tooltip />
|
|
<el-table-column prop="realName" label="姓名" width="120" show-overflow-tooltip />
|
|
<el-table-column prop="phone" label="手机号" width="120" show-overflow-tooltip />
|
|
<el-table-column prop="phone" label="手机号" width="120" show-overflow-tooltip />
|
|
<el-table-column prop="email" label="邮箱" min-width="120" show-overflow-tooltip />
|
|
<el-table-column prop="email" label="邮箱" min-width="120" show-overflow-tooltip />
|
|
- <el-table-column label="启用" width="70" align="center" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column label="状态" width="80" align="center">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<el-switch
|
|
<el-switch
|
|
|
|
+ v-if="auth('api:admin:tenant:set-enable')"
|
|
v-model="row.enabled"
|
|
v-model="row.enabled"
|
|
:loading="row.loading"
|
|
:loading="row.loading"
|
|
:active-value="true"
|
|
:active-value="true"
|
|
:inactive-value="false"
|
|
:inactive-value="false"
|
|
|
|
+ inline-prompt
|
|
|
|
+ active-text="启用"
|
|
|
|
+ inactive-text="禁用"
|
|
:before-change="() => onSetEnable(row)"
|
|
:before-change="() => onSetEnable(row)"
|
|
/>
|
|
/>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-tag type="success" v-if="row.enabled">启用</el-tag>
|
|
|
|
+ <el-tag type="danger" v-else>禁用</el-tag>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="160" fixed="right" header-align="center" align="center">
|
|
<el-table-column label="操作" width="160" fixed="right" header-align="center" align="center">
|