diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue
deleted file mode 100644
index efbac4a..0000000
--- a/src/views/system/user/select.tree.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue
deleted file mode 100644
index efbac4a..0000000
--- a/src/views/system/user/select.tree.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/user-interface.ts b/src/views/system/user/user-interface.ts
new file mode 100644
index 0000000..e27a855
--- /dev/null
+++ b/src/views/system/user/user-interface.ts
@@ -0,0 +1,66 @@
+export interface IlistQueryType {
+ keywords: string
+ beginTime: string
+ endTime: string
+ offset: number
+ limit: number
+ sort: string
+ deptId: string
+ deptType: string
+}
+// 树形结构
+export interface TreeStructure {
+ checked: boolean
+ children: TreeStructure[]
+ code: string
+ id: string
+ name: string
+ open: boolean
+ pCodes: string
+ pid: string
+ value: string
+
+}
+// 新增或添加
+export interface addInfo {
+ id: string // 编号
+ account: string // 账号
+ name: string // 姓名
+ email: string // 邮箱,
+ phone: string // 手机号,
+ deptId: string // 组织机构编号
+ roleid: string // 角色
+ password?: string // 密码
+ rePassword?: string // 重复密码
+ birthday?: string
+ sex?: string // 性别
+ roleName?: string
+}
+// 用户列表返回值类型
+export interface userType {
+ account: string
+ attr1: string
+ avatar: string
+ birthday: string
+ createtime: string
+ deptId: string
+ deptName: string
+ email: string
+ id: string
+ name: string
+ phone: string
+ roleId: string
+ roleName: string
+ sex: string
+ sexName: string
+ status: string
+ statusName: string
+ syncId: string
+ syncName: string
+ version: string
+
+}
+export interface changePageType {
+ page?: number
+ size?: number
+}
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue
deleted file mode 100644
index efbac4a..0000000
--- a/src/views/system/user/select.tree.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/user-interface.ts b/src/views/system/user/user-interface.ts
new file mode 100644
index 0000000..e27a855
--- /dev/null
+++ b/src/views/system/user/user-interface.ts
@@ -0,0 +1,66 @@
+export interface IlistQueryType {
+ keywords: string
+ beginTime: string
+ endTime: string
+ offset: number
+ limit: number
+ sort: string
+ deptId: string
+ deptType: string
+}
+// 树形结构
+export interface TreeStructure {
+ checked: boolean
+ children: TreeStructure[]
+ code: string
+ id: string
+ name: string
+ open: boolean
+ pCodes: string
+ pid: string
+ value: string
+
+}
+// 新增或添加
+export interface addInfo {
+ id: string // 编号
+ account: string // 账号
+ name: string // 姓名
+ email: string // 邮箱,
+ phone: string // 手机号,
+ deptId: string // 组织机构编号
+ roleid: string // 角色
+ password?: string // 密码
+ rePassword?: string // 重复密码
+ birthday?: string
+ sex?: string // 性别
+ roleName?: string
+}
+// 用户列表返回值类型
+export interface userType {
+ account: string
+ attr1: string
+ avatar: string
+ birthday: string
+ createtime: string
+ deptId: string
+ deptName: string
+ email: string
+ id: string
+ name: string
+ phone: string
+ roleId: string
+ roleName: string
+ sex: string
+ sexName: string
+ status: string
+ statusName: string
+ syncId: string
+ syncName: string
+ version: string
+
+}
+export interface changePageType {
+ page?: number
+ size?: number
+}
diff --git a/src/views/system/user/user.add.vue b/src/views/system/user/user.add.vue
deleted file mode 100644
index 2505000..0000000
--- a/src/views/system/user/user.add.vue
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue
deleted file mode 100644
index efbac4a..0000000
--- a/src/views/system/user/select.tree.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/user-interface.ts b/src/views/system/user/user-interface.ts
new file mode 100644
index 0000000..e27a855
--- /dev/null
+++ b/src/views/system/user/user-interface.ts
@@ -0,0 +1,66 @@
+export interface IlistQueryType {
+ keywords: string
+ beginTime: string
+ endTime: string
+ offset: number
+ limit: number
+ sort: string
+ deptId: string
+ deptType: string
+}
+// 树形结构
+export interface TreeStructure {
+ checked: boolean
+ children: TreeStructure[]
+ code: string
+ id: string
+ name: string
+ open: boolean
+ pCodes: string
+ pid: string
+ value: string
+
+}
+// 新增或添加
+export interface addInfo {
+ id: string // 编号
+ account: string // 账号
+ name: string // 姓名
+ email: string // 邮箱,
+ phone: string // 手机号,
+ deptId: string // 组织机构编号
+ roleid: string // 角色
+ password?: string // 密码
+ rePassword?: string // 重复密码
+ birthday?: string
+ sex?: string // 性别
+ roleName?: string
+}
+// 用户列表返回值类型
+export interface userType {
+ account: string
+ attr1: string
+ avatar: string
+ birthday: string
+ createtime: string
+ deptId: string
+ deptName: string
+ email: string
+ id: string
+ name: string
+ phone: string
+ roleId: string
+ roleName: string
+ sex: string
+ sexName: string
+ status: string
+ statusName: string
+ syncId: string
+ syncName: string
+ version: string
+
+}
+export interface changePageType {
+ page?: number
+ size?: number
+}
diff --git a/src/views/system/user/user.add.vue b/src/views/system/user/user.add.vue
deleted file mode 100644
index 2505000..0000000
--- a/src/views/system/user/user.add.vue
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/userAdd.vue b/src/views/system/user/userAdd.vue
new file mode 100644
index 0000000..6d35832
--- /dev/null
+++ b/src/views/system/user/userAdd.vue
@@ -0,0 +1,332 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js
index 1de9011..26c2d38 100644
--- a/plop-templates/page/prompt.js
+++ b/plop-templates/page/prompt.js
@@ -42,7 +42,7 @@
const actions = [
{
type: 'add',
- path: `${data.path}/{{dotCase name}}.vue`,
+ path: `${data.path}/{{camelCase name}}.vue`,
templateFile: 'plop-templates/page/index.hbs',
data: {
componentName: `${relativePath} ${data.name}`,
diff --git a/src/assets/styles/element-plus/index.scss b/src/assets/styles/element-plus/index.scss
index 79a85dc..3b53223 100644
--- a/src/assets/styles/element-plus/index.scss
+++ b/src/assets/styles/element-plus/index.scss
@@ -3,6 +3,10 @@
"primary": (
"base": #4384ff
)
+ ),
+ $table:(
+ "header-bg-color":#f2f6ff,
+ "header-text-color":#444c59
)
);
@use "element-plus/theme-chalk/src/index.scss" as *;
diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss
index a7b0974..4565a0f 100644
--- a/src/assets/styles/globals.scss
+++ b/src/assets/styles/globals.scss
@@ -58,10 +58,10 @@
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
[data-fixed-calc-width] {
position: fixed;
- left: 50%;
+ left: var(--g-main-sidebar-actual-width) + var(--g-sub-sidebar-actual-width);
right: 0;
width: calc(100% - var(--g-main-sidebar-actual-width) - var(--g-sub-sidebar-actual-width));
- transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
+ // transform: translateX(-50%) translateX(calc(var(--g-main-sidebar-actual-width) / 2)) translateX(calc(var(--g-sub-sidebar-actual-width) / 2));
}
[data-mode="mobile"] {
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 94d28ef..1271d43 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -17,7 +17,7 @@
{
path: 'list',
name: 'AreaList',
- component: () => import('@/views/system/area/list.area.vue'),
+ component: () => import('@/views/system/area/listArea.vue'),
meta: {
title: '区域管理',
auth: '/sys/area',
@@ -113,7 +113,7 @@
{
path: 'list',
name: 'UserList',
- component: () => import('@/views/system/user/list.user.vue'),
+ component: () => import('@/views/system/user/listUser.vue'),
meta: {
title: '用户管理',
auth: '/sys/mgr',
diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts
index c41731e..7de3b8b 100644
--- a/src/store/modules/dict.ts
+++ b/src/store/modules/dict.ts
@@ -1,4 +1,4 @@
-import type { DeptTreeNode } from '@/views/system/dept/dept_interface'
+import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
const useDictStore = defineStore(
'dict',
diff --git a/src/views/system/area/areaSelectTree.vue b/src/views/system/area/areaSelectTree.vue
index 43e73d7..190617e 100644
--- a/src/views/system/area/areaSelectTree.vue
+++ b/src/views/system/area/areaSelectTree.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
new file mode 100644
index 0000000..7b4c159
--- /dev/null
+++ b/src/views/system/area/listArea.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
index 07382e9..1dc8d94 100644
--- a/src/views/system/dept/listDept.vue
+++ b/src/views/system/dept/listDept.vue
@@ -111,8 +111,6 @@
展开/折叠
-
-
@@ -126,7 +124,7 @@
-
+
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 8c035ca..5accccb 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delLog,
getBizLogDetail,
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
index ce05c27..4b7c501 100644
--- a/src/views/system/log/listErrorLog.vue
+++ b/src/views/system/log/listErrorLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import {
delErrorLog,
getErrorLogDetail,
diff --git a/src/views/system/log/log-interface.ts b/src/views/system/log/log-interface.ts
new file mode 100644
index 0000000..09be72c
--- /dev/null
+++ b/src/views/system/log/log-interface.ts
@@ -0,0 +1,10 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType?: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
deleted file mode 100644
index 09be72c..0000000
--- a/src/views/system/log/log_interface.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export interface IlistQuery {
- keywords: string
- beginTime: string
- endTime: string
- logType?: string
- offset: number
- limit: number
- sort: string
- order: string
-}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
index 904f51c..429e18c 100644
--- a/src/views/system/log/loginLog.vue
+++ b/src/views/system/log/loginLog.vue
@@ -2,7 +2,7 @@
import { reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'
-import type { IlistQuery } from './log_interface'
+import type { IlistQuery } from './log-interface'
import { delLoginLog, getLoginLogList } from '@/api/system/log'
const { proxy } = getCurrentInstance() as any
diff --git a/src/views/system/user/list.user.vue b/src/views/system/user/list.user.vue
deleted file mode 100644
index b4b8abb..0000000
--- a/src/views/system/user/list.user.vue
+++ /dev/null
@@ -1,385 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 重置密码
-
-
- 角色分配
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
-
- {{ scope.row.statusName }}
-
-
-
-
-
-
- {{ (btnNames as any)[scope.row.statusName] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue
new file mode 100644
index 0000000..8f86f10
--- /dev/null
+++ b/src/views/system/user/listUser.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 重置密码
+
+
+ 角色分配
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ {{ scope.row.statusName }}
+
+
+
+
+
+
+ {{ (btnNames as any)[scope.row.statusName] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/role.assignment.vue b/src/views/system/user/role.assignment.vue
deleted file mode 100644
index 52b9073..0000000
--- a/src/views/system/user/role.assignment.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/roleAssignment.vue b/src/views/system/user/roleAssignment.vue
new file mode 100644
index 0000000..4b09678
--- /dev/null
+++ b/src/views/system/user/roleAssignment.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/selecTree.vue b/src/views/system/user/selecTree.vue
new file mode 100644
index 0000000..efbac4a
--- /dev/null
+++ b/src/views/system/user/selecTree.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue
deleted file mode 100644
index efbac4a..0000000
--- a/src/views/system/user/select.tree.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/user-interface.ts b/src/views/system/user/user-interface.ts
new file mode 100644
index 0000000..e27a855
--- /dev/null
+++ b/src/views/system/user/user-interface.ts
@@ -0,0 +1,66 @@
+export interface IlistQueryType {
+ keywords: string
+ beginTime: string
+ endTime: string
+ offset: number
+ limit: number
+ sort: string
+ deptId: string
+ deptType: string
+}
+// 树形结构
+export interface TreeStructure {
+ checked: boolean
+ children: TreeStructure[]
+ code: string
+ id: string
+ name: string
+ open: boolean
+ pCodes: string
+ pid: string
+ value: string
+
+}
+// 新增或添加
+export interface addInfo {
+ id: string // 编号
+ account: string // 账号
+ name: string // 姓名
+ email: string // 邮箱,
+ phone: string // 手机号,
+ deptId: string // 组织机构编号
+ roleid: string // 角色
+ password?: string // 密码
+ rePassword?: string // 重复密码
+ birthday?: string
+ sex?: string // 性别
+ roleName?: string
+}
+// 用户列表返回值类型
+export interface userType {
+ account: string
+ attr1: string
+ avatar: string
+ birthday: string
+ createtime: string
+ deptId: string
+ deptName: string
+ email: string
+ id: string
+ name: string
+ phone: string
+ roleId: string
+ roleName: string
+ sex: string
+ sexName: string
+ status: string
+ statusName: string
+ syncId: string
+ syncName: string
+ version: string
+
+}
+export interface changePageType {
+ page?: number
+ size?: number
+}
diff --git a/src/views/system/user/user.add.vue b/src/views/system/user/user.add.vue
deleted file mode 100644
index 2505000..0000000
--- a/src/views/system/user/user.add.vue
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/userAdd.vue b/src/views/system/user/userAdd.vue
new file mode 100644
index 0000000..6d35832
--- /dev/null
+++ b/src/views/system/user/userAdd.vue
@@ -0,0 +1,332 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/user/user_interface.ts b/src/views/system/user/user_interface.ts
deleted file mode 100644
index e27a855..0000000
--- a/src/views/system/user/user_interface.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-export interface IlistQueryType {
- keywords: string
- beginTime: string
- endTime: string
- offset: number
- limit: number
- sort: string
- deptId: string
- deptType: string
-}
-// 树形结构
-export interface TreeStructure {
- checked: boolean
- children: TreeStructure[]
- code: string
- id: string
- name: string
- open: boolean
- pCodes: string
- pid: string
- value: string
-
-}
-// 新增或添加
-export interface addInfo {
- id: string // 编号
- account: string // 账号
- name: string // 姓名
- email: string // 邮箱,
- phone: string // 手机号,
- deptId: string // 组织机构编号
- roleid: string // 角色
- password?: string // 密码
- rePassword?: string // 重复密码
- birthday?: string
- sex?: string // 性别
- roleName?: string
-}
-// 用户列表返回值类型
-export interface userType {
- account: string
- attr1: string
- avatar: string
- birthday: string
- createtime: string
- deptId: string
- deptName: string
- email: string
- id: string
- name: string
- phone: string
- roleId: string
- roleName: string
- sex: string
- sexName: string
- status: string
- statusName: string
- syncId: string
- syncName: string
- version: string
-
-}
-export interface changePageType {
- page?: number
- size?: number
-}