refactor: unify system list layout with filter/table sections
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"mcpServers": {
|
|
||||||
"vue-mcp": {
|
|
||||||
"url": "http://localhost:3000/__mcp/sse"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -530,7 +530,7 @@ const executeAction = async (action: AiAction) => {
|
|||||||
|
|
||||||
// 关闭对话框
|
// 关闭对话框
|
||||||
handleClose();
|
handleClose();
|
||||||
}, 800);
|
}, 1000);
|
||||||
} else if (action.type === "execute") {
|
} else if (action.type === "execute") {
|
||||||
// 执行函数调用
|
// 执行函数调用
|
||||||
ElMessage.info("功能开发中,请前往 AI 命令助手页面体验完整功能");
|
ElMessage.info("功能开发中,请前往 AI 命令助手页面体验完整功能");
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ $border: 1px solid var(--el-border-color-light);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** el-drawer */
|
/* el-drawer */
|
||||||
.el-drawer {
|
.el-drawer {
|
||||||
.el-drawer__header {
|
.el-drawer__header {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ html.sidebar-color-blue .layout-mix .layout__sidebar--left .el-menu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 全局搜索区域样式
|
// 全局筛选区域样式
|
||||||
.search-container {
|
.filter-section {
|
||||||
padding: 18px 16px 0;
|
padding: 8px 12px 0;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 8px;
|
||||||
background-color: var(--el-bg-color-overlay);
|
background-color: var(--el-bg-color-overlay);
|
||||||
border: 1px solid var(--el-border-color-light);
|
border: 1px solid var(--el-border-color-light);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -87,24 +87,24 @@ html.sidebar-color-blue .layout-mix .layout__sidebar--left .el-menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-form-item {
|
.el-form-item {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 表格区域样式
|
// 表格区域样式
|
||||||
.data-table {
|
.table-section {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 12px;
|
||||||
|
|
||||||
// 表格工具栏区域
|
// 表格工具栏区域
|
||||||
&__toolbar {
|
&__toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
&--actions,
|
&--actions,
|
||||||
&--tools {
|
&--tools {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,6 +116,6 @@ html.sidebar-color-blue .layout-mix .layout__sidebar--left .el-menu {
|
|||||||
// 分页区域
|
// 分页区域
|
||||||
.el-pagination {
|
.el-pagination {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 16px;
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:config:add']"
|
v-hasPerm="['sys:config:add']"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="pageData"
|
:data="pageData"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
border
|
border
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:dept:add']"
|
v-hasPerm="['sys:dept:add']"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- 字典项 -->
|
<!-- 字典项 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="never" class="data-table">
|
<el-card shadow="never" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button type="success" icon="plus" @click="handleOpenDialog()">新增</el-button>
|
<el-button type="success" icon="plus" @click="handleOpenDialog()">新增</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button type="success" icon="plus" @click="handleAddClick()">新增</el-button>
|
<el-button type="success" icon="plus" @click="handleAddClick()">新增</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
highlight-current-row
|
highlight-current-row
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
border
|
border
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:menu:add']"
|
v-hasPerm="['sys:menu:add']"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
children: 'children',
|
children: 'children',
|
||||||
hasChildren: 'hasChildren',
|
hasChildren: 'hasChildren',
|
||||||
}"
|
}"
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
@row-click="handleRowClick"
|
@row-click="handleRowClick"
|
||||||
>
|
>
|
||||||
<el-table-column label="菜单名称" min-width="200">
|
<el-table-column label="菜单名称" min-width="200">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item label="通知标题" prop="title">
|
<el-form-item label="通知标题" prop="title">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<el-table
|
<el-table
|
||||||
ref="dataTableRef"
|
ref="dataTableRef"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="pageData"
|
:data="pageData"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" label="序号" width="60" />
|
<el-table-column type="index" label="序号" width="60" />
|
||||||
<el-table-column label="通知标题" prop="title" min-width="200" />
|
<el-table-column label="通知标题" prop="title" min-width="200" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true" label-suffix=":">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true" label-suffix=":">
|
||||||
<el-form-item label="标题123" prop="title">
|
<el-form-item label="标题123" prop="title">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:notice:add']"
|
v-hasPerm="['sys:notice:add']"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="pageData"
|
:data="pageData"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||||
<el-form-item prop="keywords" label="关键字">
|
<el-form-item prop="keywords" label="关键字">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button type="success" icon="plus" @click="handleOpenDialog()">新增</el-button>
|
<el-button type="success" icon="plus" @click="handleOpenDialog()">新增</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
:data="roleList"
|
:data="roleList"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
border
|
border
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<!-- 用户列表 -->
|
<!-- 用户列表 -->
|
||||||
<el-col :lg="20" :xs="24">
|
<el-col :lg="20" :xs="24">
|
||||||
<!-- 搜索区域 -->
|
<!-- 搜索区域 -->
|
||||||
<div class="search-container">
|
<div class="filter-section">
|
||||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="auto">
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="auto">
|
||||||
<el-form-item label="关键字" prop="keywords">
|
<el-form-item label="关键字" prop="keywords">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -52,9 +52,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-card shadow="hover" class="data-table">
|
<el-card shadow="hover" class="table-section">
|
||||||
<div class="data-table__toolbar">
|
<div class="table-section__toolbar">
|
||||||
<div class="data-table__toolbar--actions">
|
<div class="table-section__toolbar--actions">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="['sys:user:add']"
|
v-hasPerm="['sys:user:add']"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="data-table__toolbar--tools">
|
<div class="table-section__toolbar--tools">
|
||||||
<el-button
|
<el-button
|
||||||
v-hasPerm="'sys:user:import'"
|
v-hasPerm="'sys:user:import'"
|
||||||
icon="upload"
|
icon="upload"
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
border
|
border
|
||||||
stripe
|
stripe
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
class="data-table__content"
|
class="table-section__content"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
@@ -615,3 +615,5 @@ onMounted(() => {
|
|||||||
handleQuery();
|
handleQuery();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss"></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user