fix: 优化系统页面样式与交互细节
This commit is contained in:
1 parent
4baf7a7b55
commit
0b63c573a2
11 files changed
+621
-543
No files matched your search
@@ -23,37 +23,46 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="page-content" shadow="never">
|
<el-card class="page-content" shadow="never">
|
||||||
<el-table v-loading="loading" :data="list" highlight-current-row border>
|
<div class="page-table-wrapper">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table
|
||||||
<el-table-column label="表名" prop="tableName" min-width="100" />
|
v-loading="loading"
|
||||||
<el-table-column label="描述" prop="tableComment" width="150" />
|
:data="list"
|
||||||
<el-table-column label="存储引擎" align="center" prop="engine" />
|
class="page-table"
|
||||||
<el-table-column label="排序规则" align="center" prop="tableCollation" />
|
height="100%"
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
highlight-current-row
|
||||||
<el-table-column fixed="right" label="操作" width="200">
|
border
|
||||||
<template #default="scope">
|
>
|
||||||
<el-button
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
type="primary"
|
<el-table-column label="表名" prop="tableName" min-width="100" />
|
||||||
size="small"
|
<el-table-column label="描述" prop="tableComment" width="150" />
|
||||||
link
|
<el-table-column label="存储引擎" align="center" prop="engine" />
|
||||||
@click="emit('generate', scope.row.tableName)"
|
<el-table-column label="排序规则" align="center" prop="tableCollation" />
|
||||||
>
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
<template #icon><MagicStick /></template>
|
<el-table-column fixed="right" label="操作" width="200">
|
||||||
生成代码
|
<template #default="scope">
|
||||||
</el-button>
|
<el-button
|
||||||
<el-button
|
type="primary"
|
||||||
v-if="scope.row.isConfigured === TABLE_CONFIGURED"
|
size="small"
|
||||||
type="danger"
|
link
|
||||||
size="small"
|
@click="emit('generate', scope.row.tableName)"
|
||||||
link
|
>
|
||||||
@click="emit('reset-config', scope.row.tableName)"
|
<template #icon><MagicStick /></template>
|
||||||
>
|
生成代码
|
||||||
<template #icon><RefreshLeft /></template>
|
</el-button>
|
||||||
重置配置
|
<el-button
|
||||||
</el-button>
|
v-if="scope.row.isConfigured === TABLE_CONFIGURED"
|
||||||
</template>
|
type="danger"
|
||||||
</el-table-column>
|
size="small"
|
||||||
</el-table>
|
link
|
||||||
|
@click="emit('reset-config', scope.row.tableName)"
|
||||||
|
>
|
||||||
|
<template #icon><RefreshLeft /></template>
|
||||||
|
重置配置
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -29,41 +29,49 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="page-content" shadow="never">
|
<el-card class="page-content" shadow="never">
|
||||||
<el-table v-loading="loading" :data="list" highlight-current-row>
|
<div class="page-table-wrapper">
|
||||||
<el-table-column type="index" label="序号" width="60" />
|
<el-table
|
||||||
<el-table-column label="通知标题" prop="title" min-width="200" />
|
v-loading="loading"
|
||||||
<el-table-column align="center" label="通知类型" width="150">
|
:data="list"
|
||||||
<template #default="scope">
|
class="page-table"
|
||||||
<DictTag v-model="scope.row.type" code="notice_type" />
|
height="100%"
|
||||||
</template>
|
highlight-current-row
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column align="center" label="通知等级" width="100">
|
<el-table-column type="index" label="序号" width="60" />
|
||||||
<template #default="scope">
|
<el-table-column label="通知标题" prop="title" min-width="200" />
|
||||||
<DictTag v-model="scope.row.level" code="notice_level" />
|
<el-table-column align="center" label="通知类型" width="150">
|
||||||
</template>
|
<template #default="scope">
|
||||||
</el-table-column>
|
<DictTag v-model="scope.row.type" code="notice_type" />
|
||||||
<el-table-column
|
</template>
|
||||||
key="releaseTime"
|
</el-table-column>
|
||||||
align="center"
|
<el-table-column align="center" label="通知等级" width="100">
|
||||||
label="发布时间"
|
<template #default="scope">
|
||||||
prop="publishTime"
|
<DictTag v-model="scope.row.level" code="notice_level" />
|
||||||
width="150"
|
</template>
|
||||||
/>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="发布人" prop="publisherName" width="150" />
|
<el-table-column
|
||||||
<el-table-column align="center" label="状态" width="100">
|
key="releaseTime"
|
||||||
<template #default="scope">
|
align="center"
|
||||||
<el-tag v-if="scope.row.isRead === NOTICE_READ" type="success">已读</el-tag>
|
label="发布时间"
|
||||||
<el-tag v-else type="info">未读</el-tag>
|
prop="publishTime"
|
||||||
</template>
|
width="150"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column align="center" fixed="right" label="操作" width="80">
|
<el-table-column align="center" label="发布人" prop="publisherName" width="150" />
|
||||||
<template #default="scope">
|
<el-table-column align="center" label="状态" width="100">
|
||||||
<el-button type="primary" size="small" link @click="handleReadNotice(scope.row.id)">
|
<template #default="scope">
|
||||||
查看
|
<el-tag v-if="scope.row.isRead === NOTICE_READ" type="success">已读</el-tag>
|
||||||
</el-button>
|
<el-tag v-else type="info">未读</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
<el-table-column align="center" fixed="right" label="操作" width="80">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button type="primary" size="small" link @click="handleReadNotice(scope.row.id)">
|
||||||
|
查看
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="list"
|
:data="list"
|
||||||
class="page-table"
|
class="page-table"
|
||||||
|
height="100%"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
border
|
border
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
|||||||
@@ -54,59 +54,63 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
v-loading="loading"
|
<el-table
|
||||||
:data="list"
|
v-loading="loading"
|
||||||
row-key="id"
|
:data="list"
|
||||||
default-expand-all
|
class="page-table"
|
||||||
border
|
row-key="id"
|
||||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
default-expand-all
|
||||||
@selection-change="handleSelectionChange"
|
border
|
||||||
>
|
height="100%"
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||||
<el-table-column prop="name" label="部门名称" min-width="200" />
|
@selection-change="handleSelectionChange"
|
||||||
<el-table-column prop="code" label="部门编号" width="200" />
|
>
|
||||||
<el-table-column prop="status" label="状态" width="100">
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<template #default="scope">
|
<el-table-column prop="name" label="部门名称" min-width="200" />
|
||||||
<el-tag v-if="scope.row.status === CommonStatus.ENABLED" type="success">正常</el-tag>
|
<el-table-column prop="code" label="部门编号" width="200" />
|
||||||
<el-tag v-else type="info">禁用</el-tag>
|
<el-table-column prop="status" label="状态" width="100">
|
||||||
</template>
|
<template #default="scope">
|
||||||
</el-table-column>
|
<el-tag v-if="scope.row.status === CommonStatus.ENABLED" type="success">正常</el-tag>
|
||||||
|
<el-tag v-else type="info">禁用</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="sort" label="排序" width="100" />
|
<el-table-column prop="sort" label="排序" width="100" />
|
||||||
|
|
||||||
<el-table-column label="操作" fixed="right" align="left" width="200">
|
<el-table-column label="操作" fixed="right" align="left" width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:dept:create']"
|
v-hasPerm="['sys:dept:create']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="openDialog(scope.row.id, undefined)"
|
@click.stop="openDialog(scope.row.id, undefined)"
|
||||||
>
|
>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:dept:update']"
|
v-hasPerm="['sys:dept:update']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="openDialog(scope.row.parentId, scope.row.id)"
|
@click.stop="openDialog(scope.row.parentId, scope.row.id)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:dept:delete']"
|
v-hasPerm="['sys:dept:delete']"
|
||||||
type="danger"
|
type="danger"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="handleDelete(scope.row.id)"
|
@click.stop="handleDelete(scope.row.id)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
|||||||
@@ -40,41 +40,45 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
v-loading="loading"
|
<el-table
|
||||||
highlight-current-row
|
v-loading="loading"
|
||||||
:data="list"
|
highlight-current-row
|
||||||
border
|
:data="list"
|
||||||
@selection-change="handleSelectionChange"
|
class="page-table"
|
||||||
>
|
border
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
height="100%"
|
||||||
<el-table-column label="字典项标签" prop="label" />
|
@selection-change="handleSelectionChange"
|
||||||
<el-table-column label="字典项值" prop="value" />
|
>
|
||||||
<el-table-column label="排序" prop="sort" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="状态">
|
<el-table-column label="字典项标签" prop="label" />
|
||||||
<template #default="scope">
|
<el-table-column label="字典项值" prop="value" />
|
||||||
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
<el-table-column label="排序" prop="sort" />
|
||||||
{{ scope.row.status === CommonStatus.ENABLED ? "启用" : "禁用" }}
|
<el-table-column label="状态">
|
||||||
</el-tag>
|
<template #default="scope">
|
||||||
</template>
|
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
||||||
</el-table-column>
|
{{ scope.row.status === CommonStatus.ENABLED ? "启用" : "禁用" }}
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column fixed="right" label="操作" align="center" width="220">
|
<el-table-column fixed="right" label="操作" align="center" width="220">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="handleEditClick(scope.row as DictItem)"
|
@click.stop="handleEditClick(scope.row as DictItem)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="danger" link size="small" @click.stop="handleDelete(scope.row.id)">
|
<el-button type="danger" link size="small" @click.stop="handleDelete(scope.row.id)">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -40,43 +40,52 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
v-loading="loading"
|
<el-table
|
||||||
highlight-current-row
|
v-loading="loading"
|
||||||
:data="list"
|
highlight-current-row
|
||||||
border
|
:data="list"
|
||||||
@selection-change="handleSelectionChange"
|
class="page-table"
|
||||||
>
|
border
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
height="100%"
|
||||||
<el-table-column label="字典名称" prop="name" />
|
@selection-change="handleSelectionChange"
|
||||||
<el-table-column label="字典编码" prop="dictCode" />
|
>
|
||||||
<el-table-column label="状态" prop="status">
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<template #default="scope">
|
<el-table-column label="字典名称" prop="name" />
|
||||||
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
<el-table-column label="字典编码" prop="dictCode" />
|
||||||
{{ scope.row.status === CommonStatus.ENABLED ? "启用" : "禁用" }}
|
<el-table-column label="状态" prop="status">
|
||||||
</el-tag>
|
<template #default="scope">
|
||||||
</template>
|
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
||||||
</el-table-column>
|
{{ scope.row.status === CommonStatus.ENABLED ? "启用" : "禁用" }}
|
||||||
<el-table-column fixed="right" label="操作" align="center" width="220">
|
</el-tag>
|
||||||
<template #default="scope">
|
</template>
|
||||||
<el-button
|
</el-table-column>
|
||||||
type="primary"
|
<el-table-column fixed="right" label="操作" align="center" width="220">
|
||||||
link
|
<template #default="scope">
|
||||||
size="small"
|
<el-button
|
||||||
@click.stop="openDictData(scope.row as any)"
|
type="primary"
|
||||||
>
|
link
|
||||||
字典数据
|
size="small"
|
||||||
</el-button>
|
@click.stop="openDictData(scope.row as any)"
|
||||||
|
>
|
||||||
|
字典数据
|
||||||
|
</el-button>
|
||||||
|
|
||||||
<el-button type="primary" link size="small" @click.stop="handleEditClick(scope.row.id)">
|
<el-button
|
||||||
编辑
|
type="primary"
|
||||||
</el-button>
|
link
|
||||||
<el-button type="danger" link size="small" @click.stop="handleDelete(scope.row.id)">
|
size="small"
|
||||||
删除
|
@click.stop="handleEditClick(scope.row.id)"
|
||||||
</el-button>
|
>
|
||||||
</template>
|
编辑
|
||||||
</el-table-column>
|
</el-button>
|
||||||
</el-table>
|
<el-button type="danger" link size="small" @click.stop="handleDelete(scope.row.id)">
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -46,35 +46,49 @@
|
|||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="list" highlight-current-row border>
|
<div class="page-table-wrapper">
|
||||||
<el-table-column label="操作标题" prop="title" min-width="180" show-overflow-tooltip />
|
<el-table
|
||||||
<el-table-column label="状态" prop="status" width="80" align="center">
|
v-loading="loading"
|
||||||
<template #default="{ row }">
|
class="page-table"
|
||||||
<el-tag :type="row.status === LOG_STATUS_SUCCESS ? 'success' : 'danger'" size="small">
|
:data="list"
|
||||||
{{ row.status === LOG_STATUS_SUCCESS ? "成功" : "失败" }}
|
height="100%"
|
||||||
</el-tag>
|
highlight-current-row
|
||||||
</template>
|
border
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column label="IP地址" prop="ip" width="140" />
|
<el-table-column label="操作标题" prop="title" min-width="180" show-overflow-tooltip />
|
||||||
<el-table-column label="请求路径" prop="requestUri" min-width="180" show-overflow-tooltip />
|
<el-table-column label="状态" prop="status" width="80" align="center">
|
||||||
<el-table-column label="请求方法" prop="requestMethod" width="100" align="center">
|
<template #default="{ row }">
|
||||||
<template #default="{ row }">
|
<el-tag :type="row.status === LOG_STATUS_SUCCESS ? 'success' : 'danger'" size="small">
|
||||||
<el-tag :type="getMethodTagType(row.requestMethod)" size="small" effect="plain">
|
{{ row.status === LOG_STATUS_SUCCESS ? "成功" : "失败" }}
|
||||||
{{ row.requestMethod }}
|
</el-tag>
|
||||||
</el-tag>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
<el-table-column label="IP地址" prop="ip" width="140" />
|
||||||
<el-table-column label="执行时间(ms)" prop="executionTime" width="120" align="center" />
|
<el-table-column
|
||||||
<el-table-column label="操作人" prop="operatorName" width="120" />
|
label="请求路径"
|
||||||
<el-table-column label="操作时间" prop="createTime" width="180" />
|
prop="requestUri"
|
||||||
<el-table-column label="操作" width="80" align="center" fixed="right">
|
min-width="180"
|
||||||
<template #default="{ row }">
|
show-overflow-tooltip
|
||||||
<el-button type="primary" link size="small" @click="handleDetail(row as LogItem)">
|
/>
|
||||||
详情
|
<el-table-column label="请求方法" prop="requestMethod" width="100" align="center">
|
||||||
</el-button>
|
<template #default="{ row }">
|
||||||
</template>
|
<el-tag :type="getMethodTagType(row.requestMethod)" size="small" effect="plain">
|
||||||
</el-table-column>
|
{{ row.requestMethod }}
|
||||||
</el-table>
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="执行时间(ms)" prop="executionTime" width="120" align="center" />
|
||||||
|
<el-table-column label="操作人" prop="operatorName" width="120" />
|
||||||
|
<el-table-column label="操作时间" prop="createTime" width="180" />
|
||||||
|
<el-table-column label="操作" width="80" align="center" fixed="right">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-button type="primary" link size="small" @click="handleDetail(row as LogItem)">
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
+100
-94
@@ -39,103 +39,109 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
ref="dataTableRef"
|
<el-table
|
||||||
v-loading="loading"
|
ref="dataTableRef"
|
||||||
border
|
v-loading="loading"
|
||||||
row-key="id"
|
class="page-table"
|
||||||
:data="list"
|
border
|
||||||
:tree-props="{
|
row-key="id"
|
||||||
children: 'children',
|
:data="list"
|
||||||
hasChildren: 'hasChildren',
|
height="100%"
|
||||||
}"
|
:tree-props="{
|
||||||
@row-click="handleRowClick"
|
children: 'children',
|
||||||
>
|
hasChildren: 'hasChildren',
|
||||||
<el-table-column label="菜单名称" min-width="200">
|
}"
|
||||||
<template #default="scope">
|
@row-click="handleRowClick"
|
||||||
<div class="menu-name-cell">
|
>
|
||||||
<span class="menu-name-cell__icon">
|
<el-table-column label="菜单名称" min-width="200">
|
||||||
<template v-if="scope.row.icon && scope.row.icon.startsWith('el-icon')">
|
<template #default="scope">
|
||||||
<el-icon style="vertical-align: -0.15em">
|
<div class="menu-name-cell">
|
||||||
<component :is="scope.row.icon.replace('el-icon-', '')" />
|
<span class="menu-name-cell__icon">
|
||||||
</el-icon>
|
<template v-if="scope.row.icon && scope.row.icon.startsWith('el-icon')">
|
||||||
</template>
|
<el-icon style="vertical-align: -0.15em">
|
||||||
<template v-else-if="scope.row.icon">
|
<component :is="scope.row.icon.replace('el-icon-', '')" />
|
||||||
<span :class="`i-svg:${scope.row.icon}`" />
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</span>
|
<template v-else-if="scope.row.icon">
|
||||||
<span class="menu-name-cell__text">{{ scope.row.name }}</span>
|
<span :class="`i-svg:${scope.row.icon}`" />
|
||||||
</div>
|
</template>
|
||||||
</template>
|
</span>
|
||||||
</el-table-column>
|
<span class="menu-name-cell__text">{{ scope.row.name }}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="类型" align="center" width="80">
|
<el-table-column label="类型" align="center" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.type === MenuTypeEnum.CATALOG" type="warning">目录</el-tag>
|
<el-tag v-if="scope.row.type === MenuTypeEnum.CATALOG" type="warning">目录</el-tag>
|
||||||
<el-tag v-if="scope.row.type === MenuTypeEnum.MENU" type="success">菜单</el-tag>
|
<el-tag v-if="scope.row.type === MenuTypeEnum.MENU" type="success">菜单</el-tag>
|
||||||
<el-tag v-if="scope.row.type === MenuTypeEnum.EXTERNAL" type="primary">外链</el-tag>
|
<el-tag v-if="scope.row.type === MenuTypeEnum.EXTERNAL" type="primary">外链</el-tag>
|
||||||
<el-tag v-if="scope.row.type === MenuTypeEnum.BUTTON" type="danger">按钮</el-tag>
|
<el-tag v-if="scope.row.type === MenuTypeEnum.BUTTON" type="danger">按钮</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="访问路径" align="left" min-width="180">
|
<el-table-column label="访问路径" align="left" min-width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ getMenuAccessPath(scope.row) }}
|
{{ getMenuAccessPath(scope.row) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="页面组件" align="left" min-width="180">
|
<el-table-column label="页面组件" align="left" min-width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{ getMenuComponentPath(scope.row) }}
|
{{ getMenuComponentPath(scope.row) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="权限标识" align="center" width="200" prop="perm" />
|
<el-table-column label="权限标识" align="center" width="200" prop="perm" />
|
||||||
<el-table-column v-if="showMenuScope" label="范围" align="center" width="100">
|
<el-table-column v-if="showMenuScope" label="范围" align="center" width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.scope === MenuScopeEnum.PLATFORM" type="danger">平台</el-tag>
|
<el-tag v-if="scope.row.scope === MenuScopeEnum.PLATFORM" type="danger">平台</el-tag>
|
||||||
<el-tag v-else type="success">业务</el-tag>
|
<el-tag v-else type="success">业务</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column label="状态" align="center" width="80">
|
<el-table-column label="状态" align="center" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.visible === CommonStatus.ENABLED" type="success">显示</el-tag>
|
<el-tag v-if="scope.row.visible === CommonStatus.ENABLED" type="success">显示</el-tag>
|
||||||
<el-tag v-else type="info">隐藏</el-tag>
|
<el-tag v-else type="info">隐藏</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="排序" align="center" width="80" prop="sort" />
|
<el-table-column label="排序" align="center" width="80" prop="sort" />
|
||||||
<el-table-column fixed="right" align="center" label="操作" width="220">
|
<el-table-column fixed="right" align="center" label="操作" width="220">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.type === MenuTypeEnum.CATALOG || scope.row.type === MenuTypeEnum.MENU"
|
v-if="
|
||||||
v-hasPerm="['sys:menu:create']"
|
scope.row.type === MenuTypeEnum.CATALOG || scope.row.type === MenuTypeEnum.MENU
|
||||||
type="primary"
|
"
|
||||||
link
|
v-hasPerm="['sys:menu:create']"
|
||||||
size="small"
|
type="primary"
|
||||||
@click.stop="openDialog(scope.row.id)"
|
link
|
||||||
>
|
size="small"
|
||||||
新增
|
@click.stop="openDialog(scope.row.id)"
|
||||||
</el-button>
|
>
|
||||||
|
新增
|
||||||
|
</el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:menu:update']"
|
v-hasPerm="['sys:menu:update']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="openDialog(undefined, scope.row.id)"
|
@click.stop="openDialog(undefined, scope.row.id)"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:menu:delete']"
|
v-hasPerm="['sys:menu:delete']"
|
||||||
type="danger"
|
type="danger"
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click.stop="handleDelete(scope.row.id)"
|
@click.stop="handleDelete(scope.row.id)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-drawer
|
<el-drawer
|
||||||
|
|||||||
+117
-107
@@ -60,114 +60,124 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
ref="dataTableRef"
|
<el-table
|
||||||
v-loading="loading"
|
ref="dataTableRef"
|
||||||
:data="list"
|
v-loading="loading"
|
||||||
border
|
:data="list"
|
||||||
highlight-current-row
|
class="page-table"
|
||||||
@selection-change="handleSelectionChange"
|
border
|
||||||
>
|
height="100%"
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
highlight-current-row
|
||||||
<el-table-column type="index" label="序号" width="60" />
|
@selection-change="handleSelectionChange"
|
||||||
<el-table-column label="通知标题" prop="title" min-width="200" />
|
>
|
||||||
<el-table-column align="center" label="通知类型" width="150">
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<template #default="scope">
|
<el-table-column type="index" label="序号" width="60" />
|
||||||
<DictTag v-model="scope.row.type" :code="'notice_type'" />
|
<el-table-column label="通知标题" prop="title" min-width="200" />
|
||||||
</template>
|
<el-table-column align="center" label="通知类型" width="150">
|
||||||
</el-table-column>
|
<template #default="scope">
|
||||||
<el-table-column align="center" label="发布人" prop="publisherName" width="150" />
|
<DictTag v-model="scope.row.type" :code="'notice_type'" />
|
||||||
<el-table-column align="center" label="通知等级" width="100">
|
</template>
|
||||||
<template #default="scope">
|
</el-table-column>
|
||||||
<DictTag v-model="scope.row.level" code="notice_level" />
|
<el-table-column align="center" label="发布人" prop="publisherName" width="150" />
|
||||||
</template>
|
<el-table-column align="center" label="通知等级" width="100">
|
||||||
</el-table-column>
|
<template #default="scope">
|
||||||
<el-table-column align="center" label="通告目标类型" prop="targetType" min-width="100">
|
<DictTag v-model="scope.row.level" code="notice_level" />
|
||||||
<template #default="scope">
|
</template>
|
||||||
<el-tag v-if="scope.row.targetType === NOTICE_TARGET_ALL" type="warning">全体</el-tag>
|
</el-table-column>
|
||||||
<el-tag v-if="scope.row.targetType === NOTICE_TARGET_SPECIFIED" type="success">
|
<el-table-column align="center" label="通告目标类型" prop="targetType" min-width="100">
|
||||||
指定
|
<template #default="scope">
|
||||||
</el-tag>
|
<el-tag v-if="scope.row.targetType === NOTICE_TARGET_ALL" type="warning">全体</el-tag>
|
||||||
</template>
|
<el-tag v-if="scope.row.targetType === NOTICE_TARGET_SPECIFIED" type="success">
|
||||||
</el-table-column>
|
指定
|
||||||
<el-table-column align="center" label="发布状态" min-width="100">
|
</el-tag>
|
||||||
<template #default="scope">
|
</template>
|
||||||
<el-tag v-if="scope.row.publishStatus === NOTICE_STATUS_DRAFT" type="info">
|
</el-table-column>
|
||||||
未发布
|
<el-table-column align="center" label="发布状态" min-width="100">
|
||||||
</el-tag>
|
<template #default="scope">
|
||||||
<el-tag v-else-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED" type="success">
|
<el-tag v-if="scope.row.publishStatus === NOTICE_STATUS_DRAFT" type="info">
|
||||||
已发布
|
未发布
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag v-else-if="scope.row.publishStatus === NOTICE_STATUS_REVOKED" type="warning">
|
<el-tag
|
||||||
已撤回
|
v-else-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED"
|
||||||
</el-tag>
|
type="success"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
已发布
|
||||||
<el-table-column label="操作时间" width="250">
|
</el-tag>
|
||||||
<template #default="scope">
|
<el-tag v-else-if="scope.row.publishStatus === NOTICE_STATUS_REVOKED" type="warning">
|
||||||
<div class="flex-x-start">
|
已撤回
|
||||||
<span>创建时间:</span>
|
</el-tag>
|
||||||
<span>{{ scope.row.createTime || "-" }}</span>
|
</template>
|
||||||
</div>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作时间" width="250">
|
||||||
|
<template #default="scope">
|
||||||
|
<div class="flex-x-start">
|
||||||
|
<span>创建时间:</span>
|
||||||
|
<span>{{ scope.row.createTime || "-" }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED" class="flex-x-start">
|
<div v-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED" class="flex-x-start">
|
||||||
<span>发布时间:</span>
|
<span>发布时间:</span>
|
||||||
<span>{{ scope.row.publishTime || "-" }}</span>
|
<span>{{ scope.row.publishTime || "-" }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="scope.row.publishStatus === NOTICE_STATUS_REVOKED" class="flex-x-start">
|
<div
|
||||||
<span>撤回时间:</span>
|
v-else-if="scope.row.publishStatus === NOTICE_STATUS_REVOKED"
|
||||||
<span>{{ scope.row.revokeTime || "-" }}</span>
|
class="flex-x-start"
|
||||||
</div>
|
>
|
||||||
</template>
|
<span>撤回时间:</span>
|
||||||
</el-table-column>
|
<span>{{ scope.row.revokeTime || "-" }}</span>
|
||||||
<el-table-column align="center" fixed="right" label="操作" width="150">
|
</div>
|
||||||
<template #default="scope">
|
</template>
|
||||||
<el-button type="primary" size="small" link @click="openDetailDialog(scope.row.id)">
|
</el-table-column>
|
||||||
查看
|
<el-table-column align="center" fixed="right" label="操作" width="150">
|
||||||
</el-button>
|
<template #default="scope">
|
||||||
<el-button
|
<el-button type="primary" size="small" link @click="openDetailDialog(scope.row.id)">
|
||||||
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
查看
|
||||||
v-hasPerm="['sys:notice:publish']"
|
</el-button>
|
||||||
type="primary"
|
<el-button
|
||||||
size="small"
|
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
||||||
link
|
v-hasPerm="['sys:notice:publish']"
|
||||||
@click="handlePublish(scope.row.id)"
|
type="primary"
|
||||||
>
|
size="small"
|
||||||
发布
|
link
|
||||||
</el-button>
|
@click="handlePublish(scope.row.id)"
|
||||||
<el-button
|
>
|
||||||
v-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED"
|
发布
|
||||||
v-hasPerm="['sys:notice:revoke']"
|
</el-button>
|
||||||
type="primary"
|
<el-button
|
||||||
size="small"
|
v-if="scope.row.publishStatus === NOTICE_STATUS_PUBLISHED"
|
||||||
link
|
v-hasPerm="['sys:notice:revoke']"
|
||||||
@click="handleRevoke(scope.row.id)"
|
type="primary"
|
||||||
>
|
size="small"
|
||||||
撤回
|
link
|
||||||
</el-button>
|
@click="handleRevoke(scope.row.id)"
|
||||||
<el-button
|
>
|
||||||
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
撤回
|
||||||
v-hasPerm="['sys:notice:update']"
|
</el-button>
|
||||||
type="primary"
|
<el-button
|
||||||
size="small"
|
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
||||||
link
|
v-hasPerm="['sys:notice:update']"
|
||||||
@click="openDialog(scope.row.id)"
|
type="primary"
|
||||||
>
|
size="small"
|
||||||
编辑
|
link
|
||||||
</el-button>
|
@click="openDialog(scope.row.id)"
|
||||||
<el-button
|
>
|
||||||
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
编辑
|
||||||
v-hasPerm="['sys:notice:delete']"
|
</el-button>
|
||||||
type="danger"
|
<el-button
|
||||||
size="small"
|
v-if="scope.row.publishStatus !== NOTICE_STATUS_PUBLISHED"
|
||||||
link
|
v-hasPerm="['sys:notice:delete']"
|
||||||
@click="handleDelete(scope.row.id)"
|
type="danger"
|
||||||
>
|
size="small"
|
||||||
删除
|
link
|
||||||
</el-button>
|
@click="handleDelete(scope.row.id)"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
删除
|
||||||
</el-table>
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -54,97 +54,101 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<div class="page-table-wrapper">
|
||||||
v-loading="loading"
|
<el-table
|
||||||
:data="list"
|
v-loading="loading"
|
||||||
highlight-current-row
|
:data="list"
|
||||||
border
|
highlight-current-row
|
||||||
@selection-change="handleSelectionChange"
|
class="page-table"
|
||||||
>
|
border
|
||||||
<el-table-column
|
height="100%"
|
||||||
type="selection"
|
@selection-change="handleSelectionChange"
|
||||||
width="55"
|
>
|
||||||
align="center"
|
<el-table-column
|
||||||
:selectable="isTenantSelectable"
|
type="selection"
|
||||||
/>
|
width="55"
|
||||||
<el-table-column label="租户名称" prop="name" min-width="140" />
|
align="center"
|
||||||
<el-table-column label="租户编码" prop="code" width="120" />
|
:selectable="isTenantSelectable"
|
||||||
<el-table-column label="租户套餐" min-width="120">
|
/>
|
||||||
<template #default="scope">
|
<el-table-column label="租户名称" prop="name" min-width="140" />
|
||||||
<span>{{ resolvePlanLabel(scope.row.planId) }}</span>
|
<el-table-column label="租户编码" prop="code" width="120" />
|
||||||
</template>
|
<el-table-column label="租户套餐" min-width="120">
|
||||||
</el-table-column>
|
<template #default="scope">
|
||||||
<el-table-column label="域名" prop="domain" min-width="140" />
|
<span>{{ resolvePlanLabel(scope.row.planId) }}</span>
|
||||||
<el-table-column label="联系人" prop="contactName" width="100" />
|
</template>
|
||||||
<el-table-column label="电话" prop="contactPhone" width="120" />
|
</el-table-column>
|
||||||
<el-table-column label="状态" width="90" align="center">
|
<el-table-column label="域名" prop="domain" min-width="140" />
|
||||||
<template #default="scope">
|
<el-table-column label="联系人" prop="contactName" width="100" />
|
||||||
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
<el-table-column label="电话" prop="contactPhone" width="120" />
|
||||||
{{ scope.row.status === CommonStatus.ENABLED ? "正常" : "禁用" }}
|
<el-table-column label="状态" width="90" align="center">
|
||||||
</el-tag>
|
<template #default="scope">
|
||||||
</template>
|
<el-tag :type="scope.row.status === CommonStatus.ENABLED ? 'success' : 'info'">
|
||||||
</el-table-column>
|
{{ scope.row.status === CommonStatus.ENABLED ? "正常" : "禁用" }}
|
||||||
<el-table-column label="过期时间" prop="expireTime" width="160" />
|
</el-tag>
|
||||||
<el-table-column label="创建时间" prop="createTime" width="160" />
|
</template>
|
||||||
<el-table-column fixed="right" label="操作" width="320">
|
</el-table-column>
|
||||||
<template #default="scope">
|
<el-table-column label="过期时间" prop="expireTime" width="160" />
|
||||||
<el-tooltip
|
<el-table-column label="创建时间" prop="createTime" width="160" />
|
||||||
v-if="!isPlatformTenantId(scope.row.id)"
|
<el-table-column fixed="right" label="操作" width="320">
|
||||||
content="更换租户套餐(将影响可用功能)"
|
<template #default="scope">
|
||||||
placement="top"
|
<el-tooltip
|
||||||
>
|
v-if="!isPlatformTenantId(scope.row.id)"
|
||||||
|
content="更换租户套餐(将影响可用功能)"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
v-hasPerm="['sys:tenant:plan-assign']"
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
link
|
||||||
|
icon="menu"
|
||||||
|
title="更换租户套餐(将影响可用功能)"
|
||||||
|
@click="openTenantPlanDialog(scope.row)"
|
||||||
|
>
|
||||||
|
更换套餐
|
||||||
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip
|
||||||
|
v-if="!isPlatformTenantId(scope.row.id)"
|
||||||
|
content="在当前套餐范围内配置租户可用功能"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
v-hasPerm="['sys:tenant:plan-assign']"
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
link
|
||||||
|
icon="setting"
|
||||||
|
:disabled="!scope.row.planId"
|
||||||
|
title="在当前套餐范围内配置租户可用功能"
|
||||||
|
@click="openTenantCustomizeDialog(scope.row)"
|
||||||
|
>
|
||||||
|
套餐功能配置
|
||||||
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:tenant:plan-assign']"
|
v-hasPerm="['sys:tenant:update']"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
link
|
link
|
||||||
icon="menu"
|
@click="openDialog(scope.row.id)"
|
||||||
title="更换租户套餐(将影响可用功能)"
|
|
||||||
@click="openTenantPlanDialog(scope.row)"
|
|
||||||
>
|
>
|
||||||
更换套餐
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
|
||||||
<el-tooltip
|
|
||||||
v-if="!isPlatformTenantId(scope.row.id)"
|
|
||||||
content="在当前套餐范围内配置租户可用功能"
|
|
||||||
placement="top"
|
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:tenant:plan-assign']"
|
v-if="!isPlatformTenantId(scope.row.id)"
|
||||||
type="primary"
|
v-hasPerm="['sys:tenant:delete']"
|
||||||
|
type="danger"
|
||||||
size="small"
|
size="small"
|
||||||
link
|
link
|
||||||
icon="setting"
|
@click="handleDelete(scope.row.id)"
|
||||||
:disabled="!scope.row.planId"
|
|
||||||
title="在当前套餐范围内配置租户可用功能"
|
|
||||||
@click="openTenantCustomizeDialog(scope.row)"
|
|
||||||
>
|
>
|
||||||
套餐功能配置
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</template>
|
||||||
<el-button
|
</el-table-column>
|
||||||
v-hasPerm="['sys:tenant:update']"
|
</el-table>
|
||||||
type="primary"
|
</div>
|
||||||
size="small"
|
|
||||||
link
|
|
||||||
@click="openDialog(scope.row.id)"
|
|
||||||
>
|
|
||||||
编辑
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
v-if="!isPlatformTenantId(scope.row.id)"
|
|
||||||
v-hasPerm="['sys:tenant:delete']"
|
|
||||||
type="danger"
|
|
||||||
size="small"
|
|
||||||
link
|
|
||||||
@click="handleDelete(scope.row.id)"
|
|
||||||
>
|
|
||||||
删除
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
@@ -50,52 +50,61 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="list" highlight-current-row border>
|
<div class="page-table-wrapper">
|
||||||
<el-table-column type="index" label="序号" width="60" />
|
<el-table
|
||||||
<el-table-column label="套餐名称" prop="name" min-width="120" />
|
v-loading="loading"
|
||||||
<el-table-column label="套餐编码" prop="code" width="160" />
|
:data="list"
|
||||||
<el-table-column label="状态" width="100" align="center">
|
class="page-table"
|
||||||
<template #default="scope">
|
height="100%"
|
||||||
<el-tag v-if="scope.row.status === CommonStatus.ENABLED" type="success">启用</el-tag>
|
highlight-current-row
|
||||||
<el-tag v-else type="info">停用</el-tag>
|
border
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<el-table-column type="index" label="序号" width="60" />
|
||||||
<el-table-column label="排序" prop="sort" width="80" align="center" />
|
<el-table-column label="套餐名称" prop="name" min-width="120" />
|
||||||
<el-table-column label="备注" prop="remark" min-width="140" />
|
<el-table-column label="套餐编码" prop="code" width="160" />
|
||||||
<el-table-column label="创建时间" prop="createTime" width="180" />
|
<el-table-column label="状态" width="100" align="center">
|
||||||
<el-table-column fixed="right" label="操作" width="240">
|
<template #default="scope">
|
||||||
<template #default="scope">
|
<el-tag v-if="scope.row.status === CommonStatus.ENABLED" type="success">启用</el-tag>
|
||||||
<el-button
|
<el-tag v-else type="info">停用</el-tag>
|
||||||
v-hasPerm="['sys:tenant-plan:assign']"
|
</template>
|
||||||
type="primary"
|
</el-table-column>
|
||||||
size="small"
|
<el-table-column label="排序" prop="sort" width="80" align="center" />
|
||||||
link
|
<el-table-column label="备注" prop="remark" min-width="140" />
|
||||||
icon="menu"
|
<el-table-column label="创建时间" prop="createTime" width="180" />
|
||||||
@click="handleAssignMenuClick(scope.row)"
|
<el-table-column fixed="right" label="操作" width="240">
|
||||||
>
|
<template #default="scope">
|
||||||
菜单配置
|
<el-button
|
||||||
</el-button>
|
v-hasPerm="['sys:tenant-plan:assign']"
|
||||||
<el-button
|
type="primary"
|
||||||
v-hasPerm="['sys:tenant-plan:update']"
|
size="small"
|
||||||
type="primary"
|
link
|
||||||
size="small"
|
icon="menu"
|
||||||
link
|
@click="handleAssignMenuClick(scope.row)"
|
||||||
@click="handleEditClick(scope.row.id)"
|
>
|
||||||
>
|
菜单配置
|
||||||
编辑
|
</el-button>
|
||||||
</el-button>
|
<el-button
|
||||||
<el-button
|
v-hasPerm="['sys:tenant-plan:update']"
|
||||||
v-hasPerm="['sys:tenant-plan:delete']"
|
type="primary"
|
||||||
type="danger"
|
size="small"
|
||||||
size="small"
|
link
|
||||||
link
|
@click="handleEditClick(scope.row.id)"
|
||||||
@click="handleDelete(scope.row.id)"
|
>
|
||||||
>
|
编辑
|
||||||
删除
|
</el-button>
|
||||||
</el-button>
|
<el-button
|
||||||
</template>
|
v-hasPerm="['sys:tenant-plan:delete']"
|
||||||
</el-table-column>
|
type="danger"
|
||||||
</el-table>
|
size="small"
|
||||||
|
link
|
||||||
|
@click="handleDelete(scope.row.id)"
|
||||||
|
>
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-if="total > 0"
|
v-if="total > 0"
|
||||||
|
|||||||
Reference in new issue
Block a user