mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 20:57:17 +08:00
fix: 修复用户管理分页条消失错误,优化表格 slot 命名
This commit is contained in:
@@ -7,12 +7,15 @@
|
||||
</slot>
|
||||
</a-space>
|
||||
</a-row>
|
||||
<a-row>
|
||||
<slot name="top"></slot>
|
||||
</a-row>
|
||||
<a-row justify="space-between" align="center" class="gi-table__toolbar">
|
||||
<a-space wrap class="gi-table__toolbar-left" :size="[8, 8]">
|
||||
<slot name="custom-left"></slot>
|
||||
<slot name="toolbar-left"></slot>
|
||||
</a-space>
|
||||
<a-space wrap class="gi-table__toolbar-right" :size="[8, 8]">
|
||||
<slot name="custom-right"></slot>
|
||||
<slot name="toolbar-right"></slot>
|
||||
<a-tooltip content="刷新">
|
||||
<a-button v-if="showRefreshBtn" @click="refresh">
|
||||
<template #icon><icon-refresh /></template>
|
||||
|
@@ -2,9 +2,7 @@
|
||||
<div class="table-page">
|
||||
<a-row justify="space-between" align="center" class="header">
|
||||
<a-space wrap>
|
||||
<slot name="custom-title">
|
||||
<div class="title">系统日志</div>
|
||||
</slot>
|
||||
<div class="title">系统日志</div>
|
||||
</a-space>
|
||||
</a-row>
|
||||
<a-tabs v-model:active-key="activeKey" type="card-gutter" size="large" @change="change">
|
||||
|
@@ -10,7 +10,7 @@
|
||||
@filter-change="filterChange"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.createUserString" placeholder="请输入登录用户" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -23,7 +23,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['monitor:log:export']" @click="onExport">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
|
@@ -11,7 +11,7 @@
|
||||
@filter-change="filterChange"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.createUserString" placeholder="请输入操作人" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -24,7 +24,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['monitor:log:export']" @click="onExport">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
|
@@ -11,7 +11,7 @@
|
||||
:disabled-tools="['size']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.nickname" placeholder="请输入用户名/昵称" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
:disabled-column-keys="['name']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-select
|
||||
v-model="queryForm.groupName"
|
||||
placeholder="请选择任务组"
|
||||
@@ -27,7 +27,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['schedule:job:add']" type="primary" @click="onAdd">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
:disabled-tools="['size']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-select
|
||||
v-model="queryForm.groupName"
|
||||
placeholder="请选择任务组"
|
||||
|
@@ -16,7 +16,7 @@
|
||||
@select="select"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.title" placeholder="请输入标题" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -35,7 +35,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button type="primary" status="danger" :disabled="!selectedKeys.length" @click="onDelete">
|
||||
<template #icon><icon-delete /></template>
|
||||
<span>删除</span>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
<IconDown v-if="expanded" />
|
||||
<IconRight v-else />
|
||||
</template>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="name" placeholder="请输入名称" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -26,7 +26,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:dept:add']" type="primary" @click="onAdd()">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -2,9 +2,7 @@
|
||||
<div class="table-page">
|
||||
<a-row justify="space-between" align="center" class="header page_header">
|
||||
<a-space wrap>
|
||||
<slot name="custom-title">
|
||||
<div class="title">字典管理</div>
|
||||
</slot>
|
||||
<div class="title">字典管理</div>
|
||||
</a-space>
|
||||
</a-row>
|
||||
<a-row align="stretch" :gutter="14" class="h-full page_content">
|
||||
@@ -23,7 +21,7 @@
|
||||
:disabled-column-keys="['label']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.description" placeholder="请输入标签/描述" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -32,7 +30,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:dict:item:add']" type="primary" @click="onAdd">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -16,7 +16,7 @@
|
||||
<IconDown v-if="expanded" />
|
||||
<IconRight v-else />
|
||||
</template>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="title" placeholder="请输入菜单标题" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -25,7 +25,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:menu:add']" type="primary" @click="onAdd()">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
:disabled-column-keys="['title']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.title" placeholder="请输入标题" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -29,7 +29,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:notice:add']" type="primary" @click="onAdd">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
:disabled-column-keys="['name']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.description" placeholder="请输入名称/编码/描述" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -21,7 +21,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:role:add']" type="primary" @click="onAdd">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
:disabled-column-keys="['name']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.description" placeholder="请输入名称/编码/描述" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
@@ -29,7 +29,7 @@
|
||||
<template #default>重置</template>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:storage:add']" type="primary" @click="onAdd">
|
||||
<template #icon><icon-plus /></template>
|
||||
<span>新增</span>
|
||||
|
@@ -2,9 +2,7 @@
|
||||
<div class="table-page">
|
||||
<a-row justify="space-between" align="center" class="header page_header">
|
||||
<a-space wrap>
|
||||
<slot name="custom-title">
|
||||
<div class="title">用户管理</div>
|
||||
</slot>
|
||||
<div class="title">用户管理</div>
|
||||
</a-space>
|
||||
</a-row>
|
||||
<a-row align="stretch" :gutter="14" class="h-full page_content">
|
||||
@@ -12,7 +10,6 @@
|
||||
<DeptTree placeholder="请输入名称" @node-click="handleSelectDept" />
|
||||
</a-col>
|
||||
<a-col :xs="24" :sm="24" :md="18" :lg="19" :xl="19" :xxl="20" class="h-full ov-hidden">
|
||||
<GiForm v-model="queryForm" :options="options" :columns="queryFormColumns" @search="search" @reset="reset"></GiForm>
|
||||
<GiTable
|
||||
row-key="id"
|
||||
:data="dataList"
|
||||
@@ -24,7 +21,10 @@
|
||||
:disabled-column-keys="['username']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #top>
|
||||
<GiForm v-model="queryForm" :options="options" :columns="queryFormColumns" @search="search" @reset="reset"></GiForm>
|
||||
</template>
|
||||
<template #toolbar-left>
|
||||
<a-button v-permission="['system:user:add']" type="primary" @click="onAdd">
|
||||
<template #icon>
|
||||
<icon-plus />
|
||||
@@ -38,7 +38,7 @@
|
||||
<span>导入</span>
|
||||
</a-button>
|
||||
</template>
|
||||
<template #custom-right>
|
||||
<template #toolbar-right>
|
||||
<a-button v-permission="['system:user:export']" @click="onExport">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
@@ -76,7 +76,11 @@
|
||||
删除
|
||||
</a-link>
|
||||
<a-dropdown>
|
||||
<a-link v-if="has.hasPermOr(['system:user:resetPwd'])" type="text">更多</a-link>
|
||||
<a-button v-if="has.hasPermOr(['system:user:resetPwd'])" type="text" size="mini">
|
||||
<template #icon>
|
||||
<icon-more :size="16" />
|
||||
</template>
|
||||
</a-button>
|
||||
<template #content>
|
||||
<a-doption v-permission="['system:user:resetPwd']" @click="onResetPwd(record)">重置密码</a-doption>
|
||||
</template>
|
||||
@@ -201,7 +205,7 @@ const columns: TableInstanceColumns[] = [
|
||||
{
|
||||
title: '操作',
|
||||
slotName: 'action',
|
||||
width: 200,
|
||||
width: 150,
|
||||
align: 'center',
|
||||
fixed: !isMobile() ? 'right' : undefined,
|
||||
show: has.hasPermOr(['system:user:update', 'system:user:delete', 'system:user:resetPwd'])
|
||||
|
@@ -47,7 +47,7 @@
|
||||
:disabled-column-keys="['tableName']"
|
||||
@change="handleChangeSort"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-popconfirm
|
||||
content="是否确定同步最新数据表结构?同步后只要不点击确定保存,则不影响原有配置数据。"
|
||||
type="warning"
|
||||
|
@@ -12,7 +12,7 @@
|
||||
:disabled-column-keys="['tableName']"
|
||||
@refresh="search"
|
||||
>
|
||||
<template #custom-left>
|
||||
<template #toolbar-left>
|
||||
<a-input v-model="queryForm.tableName" placeholder="请输入表名称" allow-clear @change="search">
|
||||
<template #prefix><icon-search /></template>
|
||||
</a-input>
|
||||
|
Reference in New Issue
Block a user